@orq-ai/node 3.14.7 → 4.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (494) hide show
  1. package/bin/mcp-server.js +210 -213
  2. package/bin/mcp-server.js.map +38 -38
  3. package/docs/sdks/agents/README.md +8 -4
  4. package/docs/sdks/budgets/README.md +4 -2
  5. package/docs/sdks/tools/README.md +4 -2
  6. package/examples/package-lock.json +5 -6
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +2 -2
  9. package/lib/config.js +2 -2
  10. package/lib/config.js.map +1 -1
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/mcp-server.js.map +1 -1
  13. package/mcp-server/server.js +1 -1
  14. package/mcp-server/server.js.map +1 -1
  15. package/models/operations/createbudget.js +2 -2
  16. package/models/operations/createcontact.js +2 -2
  17. package/models/operations/createdataset.js +2 -2
  18. package/models/operations/createdatasetitem.js +8 -8
  19. package/models/operations/createdatasource.js +2 -2
  20. package/models/operations/createeval.js +28 -28
  21. package/models/operations/createtool.js +10 -10
  22. package/models/operations/duplicatetool.js +10 -10
  23. package/models/operations/fileget.js +2 -2
  24. package/models/operations/filelist.js +2 -2
  25. package/models/operations/fileupload.js +2 -2
  26. package/models/operations/getalltools.js +10 -10
  27. package/models/operations/getbudget.js +2 -2
  28. package/models/operations/getevals.js +28 -28
  29. package/models/operations/listbudgets.js +2 -2
  30. package/models/operations/listcontacts.js +2 -2
  31. package/models/operations/listdatasetdatapoints.js +8 -8
  32. package/models/operations/listdatasets.js +2 -2
  33. package/models/operations/listdatasources.js +2 -2
  34. package/models/operations/retrievecontact.js +2 -2
  35. package/models/operations/retrievedatapoint.js +8 -8
  36. package/models/operations/retrievedataset.js +2 -2
  37. package/models/operations/retrievedatasource.js +2 -2
  38. package/models/operations/retrievetool.js +10 -10
  39. package/models/operations/updatebudget.js +2 -2
  40. package/models/operations/updatecontact.js +2 -2
  41. package/models/operations/updatedatapoint.js +8 -8
  42. package/models/operations/updatedataset.js +2 -2
  43. package/models/operations/updatedatasource.js +2 -2
  44. package/models/operations/updateeval.js +28 -28
  45. package/models/operations/updatetool.js +10 -10
  46. package/package.json +4 -4
  47. package/src/lib/config.ts +2 -2
  48. package/src/mcp-server/mcp-server.ts +1 -1
  49. package/src/mcp-server/server.ts +1 -1
  50. package/src/models/operations/createbudget.ts +2 -2
  51. package/src/models/operations/createcontact.ts +2 -2
  52. package/src/models/operations/createdataset.ts +2 -2
  53. package/src/models/operations/createdatasetitem.ts +8 -8
  54. package/src/models/operations/createdatasource.ts +2 -2
  55. package/src/models/operations/createeval.ts +28 -28
  56. package/src/models/operations/createtool.ts +10 -10
  57. package/src/models/operations/duplicatetool.ts +10 -10
  58. package/src/models/operations/fileget.ts +2 -2
  59. package/src/models/operations/filelist.ts +2 -2
  60. package/src/models/operations/fileupload.ts +2 -2
  61. package/src/models/operations/getalltools.ts +10 -10
  62. package/src/models/operations/getbudget.ts +2 -2
  63. package/src/models/operations/getevals.ts +28 -28
  64. package/src/models/operations/listbudgets.ts +2 -2
  65. package/src/models/operations/listcontacts.ts +2 -2
  66. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  67. package/src/models/operations/listdatasets.ts +2 -2
  68. package/src/models/operations/listdatasources.ts +2 -2
  69. package/src/models/operations/retrievecontact.ts +2 -2
  70. package/src/models/operations/retrievedatapoint.ts +8 -8
  71. package/src/models/operations/retrievedataset.ts +2 -2
  72. package/src/models/operations/retrievedatasource.ts +2 -2
  73. package/src/models/operations/retrievetool.ts +10 -10
  74. package/src/models/operations/updatebudget.ts +2 -2
  75. package/src/models/operations/updatecontact.ts +2 -2
  76. package/src/models/operations/updatedatapoint.ts +8 -8
  77. package/src/models/operations/updatedataset.ts +2 -2
  78. package/src/models/operations/updatedatasource.ts +2 -2
  79. package/src/models/operations/updateeval.ts +28 -28
  80. package/src/models/operations/updatetool.ts +10 -10
  81. package/packages/orq-rc/FUNCTIONS.md +0 -103
  82. package/packages/orq-rc/README.md +0 -909
  83. package/packages/orq-rc/RUNTIMES.md +0 -48
  84. package/packages/orq-rc/docs/sdks/agents/README.md +0 -1319
  85. package/packages/orq-rc/docs/sdks/budgets/README.md +0 -401
  86. package/packages/orq-rc/docs/sdks/chunking/README.md +0 -95
  87. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -450
  88. package/packages/orq-rc/docs/sdks/datasets/README.md +0 -836
  89. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -312
  90. package/packages/orq-rc/docs/sdks/evals/README.md +0 -339
  91. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -89
  92. package/packages/orq-rc/docs/sdks/files/README.md +0 -301
  93. package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1489
  94. package/packages/orq-rc/docs/sdks/memorystores/README.md +0 -1172
  95. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -83
  96. package/packages/orq-rc/docs/sdks/models/README.md +0 -76
  97. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -591
  98. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -77
  99. package/packages/orq-rc/docs/sdks/tools/README.md +0 -490
  100. package/packages/orq-rc/examples/README.md +0 -31
  101. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
  102. package/packages/orq-rc/examples/package-lock.json +0 -627
  103. package/packages/orq-rc/examples/package.json +0 -18
  104. package/packages/orq-rc/jsr.json +0 -28
  105. package/packages/orq-rc/package-lock.json +0 -3071
  106. package/packages/orq-rc/package.json +0 -43
  107. package/packages/orq-rc/src/core.ts +0 -13
  108. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -172
  109. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -176
  110. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -167
  111. package/packages/orq-rc/src/funcs/agentsList.ts +0 -167
  112. package/packages/orq-rc/src/funcs/agentsListActions.ts +0 -169
  113. package/packages/orq-rc/src/funcs/agentsListTasks.ts +0 -183
  114. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -175
  115. package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +0 -173
  116. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +0 -179
  117. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -163
  118. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -190
  119. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -188
  120. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -176
  121. package/packages/orq-rc/src/funcs/budgetsCreate.ts +0 -160
  122. package/packages/orq-rc/src/funcs/budgetsDelete.ts +0 -167
  123. package/packages/orq-rc/src/funcs/budgetsGet.ts +0 -166
  124. package/packages/orq-rc/src/funcs/budgetsList.ts +0 -170
  125. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +0 -167
  126. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
  127. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
  128. package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
  129. package/packages/orq-rc/src/funcs/contactsList.ts +0 -169
  130. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
  131. package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
  132. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
  133. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
  134. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
  135. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
  136. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
  137. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
  138. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
  139. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
  140. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
  141. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
  142. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
  143. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
  144. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
  145. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
  146. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
  147. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
  148. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
  149. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
  150. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
  151. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
  152. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
  153. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
  154. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
  155. package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
  156. package/packages/orq-rc/src/funcs/filesList.ts +0 -167
  157. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
  158. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
  159. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
  160. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
  161. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
  162. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
  163. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
  164. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
  165. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
  166. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
  167. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
  168. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
  169. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
  170. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
  171. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
  172. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
  173. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
  174. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
  175. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
  176. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -171
  177. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
  178. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
  179. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
  180. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
  181. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
  182. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
  183. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -181
  184. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -176
  185. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
  186. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -178
  187. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -173
  188. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
  189. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -179
  190. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -174
  191. package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
  192. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
  193. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
  194. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
  195. package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
  196. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
  197. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
  198. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
  199. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
  200. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -163
  201. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
  202. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +0 -175
  203. package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
  204. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
  205. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
  206. package/packages/orq-rc/src/hooks/global.ts +0 -44
  207. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  208. package/packages/orq-rc/src/hooks/index.ts +0 -6
  209. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  210. package/packages/orq-rc/src/hooks/types.ts +0 -112
  211. package/packages/orq-rc/src/index.ts +0 -9
  212. package/packages/orq-rc/src/lib/base64.ts +0 -37
  213. package/packages/orq-rc/src/lib/config.ts +0 -74
  214. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  215. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  216. package/packages/orq-rc/src/lib/env.ts +0 -89
  217. package/packages/orq-rc/src/lib/event-streams.ts +0 -135
  218. package/packages/orq-rc/src/lib/files.ts +0 -82
  219. package/packages/orq-rc/src/lib/http.ts +0 -323
  220. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  221. package/packages/orq-rc/src/lib/logger.ts +0 -9
  222. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  223. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  224. package/packages/orq-rc/src/lib/retries.ts +0 -218
  225. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  226. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  227. package/packages/orq-rc/src/lib/security.ts +0 -264
  228. package/packages/orq-rc/src/lib/url.ts +0 -33
  229. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
  230. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
  231. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  232. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  233. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  234. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  235. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
  236. package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
  237. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  238. package/packages/orq-rc/src/mcp-server/server.ts +0 -259
  239. package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
  240. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
  241. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
  242. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -37
  243. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -37
  244. package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +0 -35
  245. package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +0 -37
  246. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
  247. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +0 -35
  248. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +0 -37
  249. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
  250. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -37
  251. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
  252. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -37
  253. package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +0 -37
  254. package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +0 -35
  255. package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +0 -37
  256. package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +0 -37
  257. package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +0 -37
  258. package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
  259. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  260. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
  261. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
  262. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
  263. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
  264. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  265. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  266. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  267. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  268. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  269. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  270. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  271. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  272. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  273. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  274. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  275. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  276. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  277. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  278. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  279. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  280. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
  281. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
  282. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
  283. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
  284. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  285. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  286. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  287. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  288. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  289. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  290. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  291. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  292. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  296. package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
  297. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  298. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  299. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
  300. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  301. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  302. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  303. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  304. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
  305. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  306. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  307. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  308. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
  309. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
  310. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
  311. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
  312. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
  313. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
  314. package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
  315. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
  316. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
  317. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
  318. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
  319. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
  320. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
  321. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
  322. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
  323. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  324. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  325. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  326. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  327. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  328. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  329. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  330. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  331. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  332. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
  333. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
  334. package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +0 -37
  335. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
  336. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
  337. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
  338. package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
  339. package/packages/orq-rc/src/models/components/deployments.ts +0 -8147
  340. package/packages/orq-rc/src/models/components/index.ts +0 -6
  341. package/packages/orq-rc/src/models/components/security.ts +0 -71
  342. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  343. package/packages/orq-rc/src/models/errors/createagent.ts +0 -80
  344. package/packages/orq-rc/src/models/errors/createeval.ts +0 -80
  345. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -80
  346. package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -91
  347. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -80
  348. package/packages/orq-rc/src/models/errors/duplicatetool.ts +0 -91
  349. package/packages/orq-rc/src/models/errors/getagent.ts +0 -80
  350. package/packages/orq-rc/src/models/errors/getagenttask.ts +0 -80
  351. package/packages/orq-rc/src/models/errors/getevals.ts +0 -80
  352. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -80
  353. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -90
  354. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  355. package/packages/orq-rc/src/models/errors/index.ts +0 -29
  356. package/packages/orq-rc/src/models/errors/listagenttasks.ts +0 -80
  357. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  358. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  359. package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -91
  360. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  361. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -80
  362. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -80
  363. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -80
  364. package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -83
  365. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -80
  366. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -80
  367. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -91
  368. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -78
  369. package/packages/orq-rc/src/models/operations/createagent.ts +0 -3104
  370. package/packages/orq-rc/src/models/operations/createbudget.ts +0 -745
  371. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -428
  372. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -267
  373. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -302
  374. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -6943
  375. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
  376. package/packages/orq-rc/src/models/operations/createeval.ts +0 -9341
  377. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
  378. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1850
  379. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -274
  380. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -287
  381. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -2032
  382. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -7812
  383. package/packages/orq-rc/src/models/operations/createtool.ts +0 -4077
  384. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -78
  385. package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -69
  386. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
  387. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -243
  388. package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -69
  389. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -87
  390. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -78
  391. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
  392. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -66
  393. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
  394. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -87
  395. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -98
  396. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -78
  397. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
  398. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -75
  399. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -6547
  400. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -10532
  401. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1266
  402. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2606
  403. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -10655
  404. package/packages/orq-rc/src/models/operations/duplicatetool.ts +0 -2349
  405. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
  406. package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
  407. package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
  408. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
  409. package/packages/orq-rc/src/models/operations/getagent.ts +0 -957
  410. package/packages/orq-rc/src/models/operations/getagenttask.ts +0 -259
  411. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -318
  412. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -338
  413. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -1277
  414. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2572
  415. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2308
  416. package/packages/orq-rc/src/models/operations/getbudget.ts +0 -441
  417. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -230
  418. package/packages/orq-rc/src/models/operations/getevals.ts +0 -7486
  419. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
  420. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1292
  421. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -2437
  422. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2444
  423. package/packages/orq-rc/src/models/operations/index.ts +0 -102
  424. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -1569
  425. package/packages/orq-rc/src/models/operations/listactions.ts +0 -526
  426. package/packages/orq-rc/src/models/operations/listagents.ts +0 -1077
  427. package/packages/orq-rc/src/models/operations/listagenttasks.ts +0 -1106
  428. package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -617
  429. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
  430. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -507
  431. package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -500
  432. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -4086
  433. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
  434. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -454
  435. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1303
  436. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
  437. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2580
  438. package/packages/orq-rc/src/models/operations/parse.ts +0 -1295
  439. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
  440. package/packages/orq-rc/src/models/operations/retrieveaction.ts +0 -426
  441. package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -210
  442. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -3853
  443. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -291
  444. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
  445. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -201
  446. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -220
  447. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -1160
  448. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2333
  449. package/packages/orq-rc/src/models/operations/runagent.ts +0 -4342
  450. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -3573
  451. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -1367
  452. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -4355
  453. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -3321
  454. package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -628
  455. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
  456. package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -325
  457. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -6934
  458. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -386
  459. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
  460. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -9704
  461. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -2341
  462. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -283
  463. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -296
  464. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -1363
  465. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -8176
  466. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4288
  467. package/packages/orq-rc/src/sdk/agents.ts +0 -238
  468. package/packages/orq-rc/src/sdk/budgets.ts +0 -99
  469. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  470. package/packages/orq-rc/src/sdk/contacts.ts +0 -99
  471. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  472. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  473. package/packages/orq-rc/src/sdk/evals.ts +0 -69
  474. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  475. package/packages/orq-rc/src/sdk/files.ts +0 -78
  476. package/packages/orq-rc/src/sdk/index.ts +0 -5
  477. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  478. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  479. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  480. package/packages/orq-rc/src/sdk/models.ts +0 -25
  481. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  482. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  483. package/packages/orq-rc/src/sdk/sdk.ts +0 -97
  484. package/packages/orq-rc/src/sdk/tools.ts +0 -117
  485. package/packages/orq-rc/src/types/async.ts +0 -68
  486. package/packages/orq-rc/src/types/blobs.ts +0 -32
  487. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  488. package/packages/orq-rc/src/types/enums.ts +0 -16
  489. package/packages/orq-rc/src/types/fp.ts +0 -50
  490. package/packages/orq-rc/src/types/index.ts +0 -11
  491. package/packages/orq-rc/src/types/operations.ts +0 -105
  492. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  493. package/packages/orq-rc/src/types/streams.ts +0 -21
  494. package/packages/orq-rc/tsconfig.json +0 -41
@@ -1,2606 +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
- /**
86
- * The type of the tool. Currently, only `function` is supported.
87
- */
88
- type: DeploymentsType;
89
- function: DeploymentsFunction;
90
- id?: number | undefined;
91
- };
92
-
93
- /**
94
- * The modality of the model
95
- */
96
- export const DeploymentsModelType = {
97
- Chat: "chat",
98
- Completion: "completion",
99
- Embedding: "embedding",
100
- Image: "image",
101
- Tts: "tts",
102
- Stt: "stt",
103
- Rerank: "rerank",
104
- Moderation: "moderation",
105
- Vision: "vision",
106
- } as const;
107
- /**
108
- * The modality of the model
109
- */
110
- export type DeploymentsModelType = ClosedEnum<typeof DeploymentsModelType>;
111
-
112
- /**
113
- * Only supported on `image` models.
114
- */
115
- export const DeploymentsFormat = {
116
- Url: "url",
117
- B64Json: "b64_json",
118
- Text: "text",
119
- JsonObject: "json_object",
120
- } as const;
121
- /**
122
- * Only supported on `image` models.
123
- */
124
- export type DeploymentsFormat = ClosedEnum<typeof DeploymentsFormat>;
125
-
126
- export const DeploymentsResponseFormat6 = {
127
- Json: "json",
128
- Text: "text",
129
- Srt: "srt",
130
- VerboseJson: "verbose_json",
131
- Vtt: "vtt",
132
- } as const;
133
- export type DeploymentsResponseFormat6 = ClosedEnum<
134
- typeof DeploymentsResponseFormat6
135
- >;
136
-
137
- export const DeploymentsResponseFormat5 = {
138
- Url: "url",
139
- Base64Json: "base64_json",
140
- } as const;
141
- export type DeploymentsResponseFormat5 = ClosedEnum<
142
- typeof DeploymentsResponseFormat5
143
- >;
144
-
145
- export const DeploymentsResponseFormat4 = {
146
- Mp3: "mp3",
147
- Opus: "opus",
148
- Aac: "aac",
149
- Flac: "flac",
150
- Wav: "wav",
151
- Pcm: "pcm",
152
- } as const;
153
- export type DeploymentsResponseFormat4 = ClosedEnum<
154
- typeof DeploymentsResponseFormat4
155
- >;
156
-
157
- export const DeploymentsResponseFormatDeploymentsType = {
158
- Text: "text",
159
- } as const;
160
- export type DeploymentsResponseFormatDeploymentsType = ClosedEnum<
161
- typeof DeploymentsResponseFormatDeploymentsType
162
- >;
163
-
164
- export type DeploymentsResponseFormat3 = {
165
- type: DeploymentsResponseFormatDeploymentsType;
166
- };
167
-
168
- export const DeploymentsResponseFormatType = {
169
- JsonObject: "json_object",
170
- } as const;
171
- export type DeploymentsResponseFormatType = ClosedEnum<
172
- typeof DeploymentsResponseFormatType
173
- >;
174
-
175
- export type DeploymentsResponseFormat2 = {
176
- type: DeploymentsResponseFormatType;
177
- };
178
-
179
- export const DeploymentsResponseFormatDeploymentsResponseType = {
180
- JsonSchema: "json_schema",
181
- } as const;
182
- export type DeploymentsResponseFormatDeploymentsResponseType = ClosedEnum<
183
- typeof DeploymentsResponseFormatDeploymentsResponseType
184
- >;
185
-
186
- export type DeploymentsResponseFormatJsonSchema = {
187
- name: string;
188
- description?: string | undefined;
189
- strict?: boolean | undefined;
190
- schema: { [k: string]: any };
191
- };
192
-
193
- export type DeploymentsResponseFormat1 = {
194
- type: DeploymentsResponseFormatDeploymentsResponseType;
195
- jsonSchema: DeploymentsResponseFormatJsonSchema;
196
- };
197
-
198
- /**
199
- * An object specifying the format that the model must output.
200
- *
201
- * @remarks
202
- *
203
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
204
- *
205
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
206
- *
207
- * 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.
208
- */
209
- export type DeploymentsResponseFormat =
210
- | DeploymentsResponseFormat1
211
- | DeploymentsResponseFormat2
212
- | DeploymentsResponseFormat3
213
- | DeploymentsResponseFormat4
214
- | DeploymentsResponseFormat5
215
- | DeploymentsResponseFormat6;
216
-
217
- /**
218
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
219
- */
220
- export const DeploymentsPhotoRealVersion = {
221
- V1: "v1",
222
- V2: "v2",
223
- } as const;
224
- /**
225
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
226
- */
227
- export type DeploymentsPhotoRealVersion = ClosedEnum<
228
- typeof DeploymentsPhotoRealVersion
229
- >;
230
-
231
- /**
232
- * The format to return the embeddings
233
- */
234
- export const DeploymentsEncodingFormat = {
235
- Float: "float",
236
- Base64: "base64",
237
- } as const;
238
- /**
239
- * The format to return the embeddings
240
- */
241
- export type DeploymentsEncodingFormat = ClosedEnum<
242
- typeof DeploymentsEncodingFormat
243
- >;
244
-
245
- /**
246
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
247
- */
248
- export const DeploymentsReasoningEffort = {
249
- Disable: "disable",
250
- Minimal: "minimal",
251
- Low: "low",
252
- Medium: "medium",
253
- High: "high",
254
- } as const;
255
- /**
256
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
257
- */
258
- export type DeploymentsReasoningEffort = ClosedEnum<
259
- typeof DeploymentsReasoningEffort
260
- >;
261
-
262
- /**
263
- * Controls the verbosity of the model output.
264
- */
265
- export const DeploymentsVerbosity = {
266
- Low: "low",
267
- Medium: "medium",
268
- High: "high",
269
- } as const;
270
- /**
271
- * Controls the verbosity of the model output.
272
- */
273
- export type DeploymentsVerbosity = ClosedEnum<typeof DeploymentsVerbosity>;
274
-
275
- /**
276
- * Model Parameters: Not all parameters apply to every model
277
- */
278
- export type DeploymentsModelParameters = {
279
- /**
280
- * Only supported on `chat` and `completion` models.
281
- */
282
- temperature?: number | undefined;
283
- /**
284
- * Only supported on `chat` and `completion` models.
285
- */
286
- maxTokens?: number | undefined;
287
- /**
288
- * Only supported on `chat` and `completion` models.
289
- */
290
- topK?: number | undefined;
291
- /**
292
- * Only supported on `chat` and `completion` models.
293
- */
294
- topP?: number | undefined;
295
- /**
296
- * Only supported on `chat` and `completion` models.
297
- */
298
- frequencyPenalty?: number | undefined;
299
- /**
300
- * Only supported on `chat` and `completion` models.
301
- */
302
- presencePenalty?: number | undefined;
303
- /**
304
- * Only supported on `image` models.
305
- */
306
- numImages?: number | undefined;
307
- /**
308
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
309
- */
310
- seed?: number | undefined;
311
- /**
312
- * Only supported on `image` models.
313
- */
314
- format?: DeploymentsFormat | undefined;
315
- /**
316
- * Only supported on `image` models.
317
- */
318
- dimensions?: string | undefined;
319
- /**
320
- * Only supported on `image` models.
321
- */
322
- quality?: string | undefined;
323
- /**
324
- * Only supported on `image` models.
325
- */
326
- style?: string | undefined;
327
- /**
328
- * An object specifying the format that the model must output.
329
- *
330
- * @remarks
331
- *
332
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
333
- *
334
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
335
- *
336
- * 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.
337
- */
338
- responseFormat?:
339
- | DeploymentsResponseFormat1
340
- | DeploymentsResponseFormat2
341
- | DeploymentsResponseFormat3
342
- | DeploymentsResponseFormat4
343
- | DeploymentsResponseFormat5
344
- | DeploymentsResponseFormat6
345
- | null
346
- | undefined;
347
- /**
348
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
349
- */
350
- photoRealVersion?: DeploymentsPhotoRealVersion | undefined;
351
- /**
352
- * The format to return the embeddings
353
- */
354
- encodingFormat?: DeploymentsEncodingFormat | undefined;
355
- /**
356
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
357
- */
358
- reasoningEffort?: DeploymentsReasoningEffort | undefined;
359
- /**
360
- * 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`
361
- */
362
- budgetTokens?: number | undefined;
363
- /**
364
- * Controls the verbosity of the model output.
365
- */
366
- verbosity?: DeploymentsVerbosity | undefined;
367
- };
368
-
369
- export const DeploymentsProvider = {
370
- Cohere: "cohere",
371
- Openai: "openai",
372
- Anthropic: "anthropic",
373
- Huggingface: "huggingface",
374
- Replicate: "replicate",
375
- Google: "google",
376
- GoogleAi: "google-ai",
377
- Azure: "azure",
378
- Aws: "aws",
379
- Anyscale: "anyscale",
380
- Perplexity: "perplexity",
381
- Groq: "groq",
382
- Fal: "fal",
383
- Leonardoai: "leonardoai",
384
- Nvidia: "nvidia",
385
- Jina: "jina",
386
- Togetherai: "togetherai",
387
- Elevenlabs: "elevenlabs",
388
- Litellm: "litellm",
389
- Openailike: "openailike",
390
- Cerebras: "cerebras",
391
- Bytedance: "bytedance",
392
- Mistral: "mistral",
393
- } as const;
394
- export type DeploymentsProvider = ClosedEnum<typeof DeploymentsProvider>;
395
-
396
- /**
397
- * The role of the prompt message
398
- */
399
- export const DeploymentsRole = {
400
- System: "system",
401
- Assistant: "assistant",
402
- User: "user",
403
- Exception: "exception",
404
- Tool: "tool",
405
- Prompt: "prompt",
406
- Correction: "correction",
407
- ExpectedOutput: "expected_output",
408
- } as const;
409
- /**
410
- * The role of the prompt message
411
- */
412
- export type DeploymentsRole = ClosedEnum<typeof DeploymentsRole>;
413
-
414
- /**
415
- * The type of the content part. Always `file`.
416
- */
417
- export const Deployments2DeploymentsType = {
418
- File: "file",
419
- } as const;
420
- /**
421
- * The type of the content part. Always `file`.
422
- */
423
- export type Deployments2DeploymentsType = ClosedEnum<
424
- typeof Deployments2DeploymentsType
425
- >;
426
-
427
- export type Deployments2File = {
428
- /**
429
- * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
430
- */
431
- fileData?: string | undefined;
432
- /**
433
- * URL to the file. Only supported by Anthropic Claude models for PDF files.
434
- */
435
- uri?: string | undefined;
436
- /**
437
- * MIME type of the file (e.g., application/pdf, image/png)
438
- */
439
- mimeType?: string | undefined;
440
- /**
441
- * The name of the file, used when passing the file to the model as a string.
442
- */
443
- filename?: string | undefined;
444
- };
445
-
446
- export type Deployments23 = {
447
- /**
448
- * The type of the content part. Always `file`.
449
- */
450
- type: Deployments2DeploymentsType;
451
- file: Deployments2File;
452
- };
453
-
454
- export const Deployments2Type = {
455
- ImageUrl: "image_url",
456
- } as const;
457
- export type Deployments2Type = ClosedEnum<typeof Deployments2Type>;
458
-
459
- export type Deployments2ImageUrl = {
460
- /**
461
- * The orq.ai id of the image
462
- */
463
- id?: string | undefined;
464
- /**
465
- * Either a URL of the image or the base64 encoded data URI.
466
- */
467
- url: string;
468
- /**
469
- * Specifies the detail level of the image. Currently only supported with OpenAI models
470
- */
471
- detail?: string | undefined;
472
- };
473
-
474
- /**
475
- * The image part of the prompt message. Only supported with vision models.
476
- */
477
- export type Deployments22 = {
478
- type: Deployments2Type;
479
- imageUrl: Deployments2ImageUrl;
480
- };
481
-
482
- export const Deployments2DeploymentsResponseType = {
483
- Text: "text",
484
- } as const;
485
- export type Deployments2DeploymentsResponseType = ClosedEnum<
486
- typeof Deployments2DeploymentsResponseType
487
- >;
488
-
489
- /**
490
- * Text content part of a prompt message
491
- */
492
- export type Deployments21 = {
493
- type: Deployments2DeploymentsResponseType;
494
- text: string;
495
- };
496
-
497
- export type DeploymentsContent2 = Deployments21 | Deployments22 | Deployments23;
498
-
499
- /**
500
- * 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.
501
- */
502
- export type DeploymentsContent =
503
- | string
504
- | Array<Deployments21 | Deployments22 | Deployments23>;
505
-
506
- export const DeploymentsDeploymentsType = {
507
- Function: "function",
508
- } as const;
509
- export type DeploymentsDeploymentsType = ClosedEnum<
510
- typeof DeploymentsDeploymentsType
511
- >;
512
-
513
- export type DeploymentsDeploymentsFunction = {
514
- name: string;
515
- /**
516
- * JSON string arguments for the functions
517
- */
518
- arguments: string;
519
- };
520
-
521
- export type DeploymentsToolCalls = {
522
- id?: string | undefined;
523
- index?: number | undefined;
524
- type: DeploymentsDeploymentsType;
525
- function: DeploymentsDeploymentsFunction;
526
- };
527
-
528
- export type DeploymentsMessages = {
529
- /**
530
- * The role of the prompt message
531
- */
532
- role: DeploymentsRole;
533
- /**
534
- * 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.
535
- */
536
- content: string | Array<Deployments21 | Deployments22 | Deployments23>;
537
- toolCalls?: Array<DeploymentsToolCalls> | undefined;
538
- toolCallId?: string | undefined;
539
- };
540
-
541
- export type DeploymentsPromptConfig = {
542
- tools: Array<DeploymentsTools>;
543
- model: string;
544
- /**
545
- * The modality of the model
546
- */
547
- modelType: DeploymentsModelType;
548
- /**
549
- * Model Parameters: Not all parameters apply to every model
550
- */
551
- modelParameters: DeploymentsModelParameters;
552
- provider: DeploymentsProvider;
553
- messages: Array<DeploymentsMessages>;
554
- };
555
-
556
- export type DeploymentsData = {
557
- /**
558
- * Unique identifier for the object.
559
- */
560
- id: string;
561
- /**
562
- * Date in ISO 8601 format at which the object was created.
563
- */
564
- created: string;
565
- /**
566
- * Date in ISO 8601 format at which the object was last updated.
567
- */
568
- updated: string;
569
- /**
570
- * The deployment unique key
571
- */
572
- key: string;
573
- /**
574
- * An arbitrary string attached to the object. Often useful for displaying to users.
575
- */
576
- description: string;
577
- promptConfig: DeploymentsPromptConfig;
578
- /**
579
- * THe version of the deployment
580
- */
581
- version: string;
582
- };
583
-
584
- /**
585
- * List all deployments
586
- */
587
- export type DeploymentsResponseBody = {
588
- object: DeploymentsObject;
589
- data: Array<DeploymentsData>;
590
- hasMore: boolean;
591
- };
592
-
593
- /** @internal */
594
- export const DeploymentsRequest$inboundSchema: z.ZodType<
595
- DeploymentsRequest,
596
- z.ZodTypeDef,
597
- unknown
598
- > = z.object({
599
- limit: z.number().default(10),
600
- starting_after: z.string().optional(),
601
- ending_before: z.string().optional(),
602
- }).transform((v) => {
603
- return remap$(v, {
604
- "starting_after": "startingAfter",
605
- "ending_before": "endingBefore",
606
- });
607
- });
608
-
609
- /** @internal */
610
- export type DeploymentsRequest$Outbound = {
611
- limit: number;
612
- starting_after?: string | undefined;
613
- ending_before?: string | undefined;
614
- };
615
-
616
- /** @internal */
617
- export const DeploymentsRequest$outboundSchema: z.ZodType<
618
- DeploymentsRequest$Outbound,
619
- z.ZodTypeDef,
620
- DeploymentsRequest
621
- > = z.object({
622
- limit: z.number().default(10),
623
- startingAfter: z.string().optional(),
624
- endingBefore: z.string().optional(),
625
- }).transform((v) => {
626
- return remap$(v, {
627
- startingAfter: "starting_after",
628
- endingBefore: "ending_before",
629
- });
630
- });
631
-
632
- /**
633
- * @internal
634
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
635
- */
636
- export namespace DeploymentsRequest$ {
637
- /** @deprecated use `DeploymentsRequest$inboundSchema` instead. */
638
- export const inboundSchema = DeploymentsRequest$inboundSchema;
639
- /** @deprecated use `DeploymentsRequest$outboundSchema` instead. */
640
- export const outboundSchema = DeploymentsRequest$outboundSchema;
641
- /** @deprecated use `DeploymentsRequest$Outbound` instead. */
642
- export type Outbound = DeploymentsRequest$Outbound;
643
- }
644
-
645
- export function deploymentsRequestToJSON(
646
- deploymentsRequest: DeploymentsRequest,
647
- ): string {
648
- return JSON.stringify(
649
- DeploymentsRequest$outboundSchema.parse(deploymentsRequest),
650
- );
651
- }
652
-
653
- export function deploymentsRequestFromJSON(
654
- jsonString: string,
655
- ): SafeParseResult<DeploymentsRequest, SDKValidationError> {
656
- return safeParse(
657
- jsonString,
658
- (x) => DeploymentsRequest$inboundSchema.parse(JSON.parse(x)),
659
- `Failed to parse 'DeploymentsRequest' from JSON`,
660
- );
661
- }
662
-
663
- /** @internal */
664
- export const DeploymentsObject$inboundSchema: z.ZodNativeEnum<
665
- typeof DeploymentsObject
666
- > = z.nativeEnum(DeploymentsObject);
667
-
668
- /** @internal */
669
- export const DeploymentsObject$outboundSchema: z.ZodNativeEnum<
670
- typeof DeploymentsObject
671
- > = DeploymentsObject$inboundSchema;
672
-
673
- /**
674
- * @internal
675
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
676
- */
677
- export namespace DeploymentsObject$ {
678
- /** @deprecated use `DeploymentsObject$inboundSchema` instead. */
679
- export const inboundSchema = DeploymentsObject$inboundSchema;
680
- /** @deprecated use `DeploymentsObject$outboundSchema` instead. */
681
- export const outboundSchema = DeploymentsObject$outboundSchema;
682
- }
683
-
684
- /** @internal */
685
- export const DeploymentsType$inboundSchema: z.ZodNativeEnum<
686
- typeof DeploymentsType
687
- > = z.nativeEnum(DeploymentsType);
688
-
689
- /** @internal */
690
- export const DeploymentsType$outboundSchema: z.ZodNativeEnum<
691
- typeof DeploymentsType
692
- > = DeploymentsType$inboundSchema;
693
-
694
- /**
695
- * @internal
696
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
697
- */
698
- export namespace DeploymentsType$ {
699
- /** @deprecated use `DeploymentsType$inboundSchema` instead. */
700
- export const inboundSchema = DeploymentsType$inboundSchema;
701
- /** @deprecated use `DeploymentsType$outboundSchema` instead. */
702
- export const outboundSchema = DeploymentsType$outboundSchema;
703
- }
704
-
705
- /** @internal */
706
- export const DeploymentsDeploymentsResponseType$inboundSchema: z.ZodNativeEnum<
707
- typeof DeploymentsDeploymentsResponseType
708
- > = z.nativeEnum(DeploymentsDeploymentsResponseType);
709
-
710
- /** @internal */
711
- export const DeploymentsDeploymentsResponseType$outboundSchema: z.ZodNativeEnum<
712
- typeof DeploymentsDeploymentsResponseType
713
- > = DeploymentsDeploymentsResponseType$inboundSchema;
714
-
715
- /**
716
- * @internal
717
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
718
- */
719
- export namespace DeploymentsDeploymentsResponseType$ {
720
- /** @deprecated use `DeploymentsDeploymentsResponseType$inboundSchema` instead. */
721
- export const inboundSchema = DeploymentsDeploymentsResponseType$inboundSchema;
722
- /** @deprecated use `DeploymentsDeploymentsResponseType$outboundSchema` instead. */
723
- export const outboundSchema =
724
- DeploymentsDeploymentsResponseType$outboundSchema;
725
- }
726
-
727
- /** @internal */
728
- export const DeploymentsParameters$inboundSchema: z.ZodType<
729
- DeploymentsParameters,
730
- z.ZodTypeDef,
731
- unknown
732
- > = z.object({
733
- type: DeploymentsDeploymentsResponseType$inboundSchema,
734
- properties: z.record(z.any()),
735
- required: z.array(z.string()).optional(),
736
- additionalProperties: z.boolean().optional(),
737
- });
738
-
739
- /** @internal */
740
- export type DeploymentsParameters$Outbound = {
741
- type: string;
742
- properties: { [k: string]: any };
743
- required?: Array<string> | undefined;
744
- additionalProperties?: boolean | undefined;
745
- };
746
-
747
- /** @internal */
748
- export const DeploymentsParameters$outboundSchema: z.ZodType<
749
- DeploymentsParameters$Outbound,
750
- z.ZodTypeDef,
751
- DeploymentsParameters
752
- > = z.object({
753
- type: DeploymentsDeploymentsResponseType$outboundSchema,
754
- properties: z.record(z.any()),
755
- required: z.array(z.string()).optional(),
756
- additionalProperties: z.boolean().optional(),
757
- });
758
-
759
- /**
760
- * @internal
761
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
762
- */
763
- export namespace DeploymentsParameters$ {
764
- /** @deprecated use `DeploymentsParameters$inboundSchema` instead. */
765
- export const inboundSchema = DeploymentsParameters$inboundSchema;
766
- /** @deprecated use `DeploymentsParameters$outboundSchema` instead. */
767
- export const outboundSchema = DeploymentsParameters$outboundSchema;
768
- /** @deprecated use `DeploymentsParameters$Outbound` instead. */
769
- export type Outbound = DeploymentsParameters$Outbound;
770
- }
771
-
772
- export function deploymentsParametersToJSON(
773
- deploymentsParameters: DeploymentsParameters,
774
- ): string {
775
- return JSON.stringify(
776
- DeploymentsParameters$outboundSchema.parse(deploymentsParameters),
777
- );
778
- }
779
-
780
- export function deploymentsParametersFromJSON(
781
- jsonString: string,
782
- ): SafeParseResult<DeploymentsParameters, SDKValidationError> {
783
- return safeParse(
784
- jsonString,
785
- (x) => DeploymentsParameters$inboundSchema.parse(JSON.parse(x)),
786
- `Failed to parse 'DeploymentsParameters' from JSON`,
787
- );
788
- }
789
-
790
- /** @internal */
791
- export const DeploymentsFunction$inboundSchema: z.ZodType<
792
- DeploymentsFunction,
793
- z.ZodTypeDef,
794
- unknown
795
- > = z.object({
796
- name: z.string(),
797
- description: z.string().optional(),
798
- strict: z.boolean().optional(),
799
- parameters: z.lazy(() => DeploymentsParameters$inboundSchema),
800
- });
801
-
802
- /** @internal */
803
- export type DeploymentsFunction$Outbound = {
804
- name: string;
805
- description?: string | undefined;
806
- strict?: boolean | undefined;
807
- parameters: DeploymentsParameters$Outbound;
808
- };
809
-
810
- /** @internal */
811
- export const DeploymentsFunction$outboundSchema: z.ZodType<
812
- DeploymentsFunction$Outbound,
813
- z.ZodTypeDef,
814
- DeploymentsFunction
815
- > = z.object({
816
- name: z.string(),
817
- description: z.string().optional(),
818
- strict: z.boolean().optional(),
819
- parameters: z.lazy(() => DeploymentsParameters$outboundSchema),
820
- });
821
-
822
- /**
823
- * @internal
824
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
825
- */
826
- export namespace DeploymentsFunction$ {
827
- /** @deprecated use `DeploymentsFunction$inboundSchema` instead. */
828
- export const inboundSchema = DeploymentsFunction$inboundSchema;
829
- /** @deprecated use `DeploymentsFunction$outboundSchema` instead. */
830
- export const outboundSchema = DeploymentsFunction$outboundSchema;
831
- /** @deprecated use `DeploymentsFunction$Outbound` instead. */
832
- export type Outbound = DeploymentsFunction$Outbound;
833
- }
834
-
835
- export function deploymentsFunctionToJSON(
836
- deploymentsFunction: DeploymentsFunction,
837
- ): string {
838
- return JSON.stringify(
839
- DeploymentsFunction$outboundSchema.parse(deploymentsFunction),
840
- );
841
- }
842
-
843
- export function deploymentsFunctionFromJSON(
844
- jsonString: string,
845
- ): SafeParseResult<DeploymentsFunction, SDKValidationError> {
846
- return safeParse(
847
- jsonString,
848
- (x) => DeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
849
- `Failed to parse 'DeploymentsFunction' from JSON`,
850
- );
851
- }
852
-
853
- /** @internal */
854
- export const DeploymentsTools$inboundSchema: z.ZodType<
855
- DeploymentsTools,
856
- z.ZodTypeDef,
857
- unknown
858
- > = z.object({
859
- type: DeploymentsType$inboundSchema,
860
- function: z.lazy(() => DeploymentsFunction$inboundSchema),
861
- id: z.number().optional(),
862
- });
863
-
864
- /** @internal */
865
- export type DeploymentsTools$Outbound = {
866
- type: string;
867
- function: DeploymentsFunction$Outbound;
868
- id?: number | undefined;
869
- };
870
-
871
- /** @internal */
872
- export const DeploymentsTools$outboundSchema: z.ZodType<
873
- DeploymentsTools$Outbound,
874
- z.ZodTypeDef,
875
- DeploymentsTools
876
- > = z.object({
877
- type: DeploymentsType$outboundSchema,
878
- function: z.lazy(() => DeploymentsFunction$outboundSchema),
879
- id: z.number().optional(),
880
- });
881
-
882
- /**
883
- * @internal
884
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
885
- */
886
- export namespace DeploymentsTools$ {
887
- /** @deprecated use `DeploymentsTools$inboundSchema` instead. */
888
- export const inboundSchema = DeploymentsTools$inboundSchema;
889
- /** @deprecated use `DeploymentsTools$outboundSchema` instead. */
890
- export const outboundSchema = DeploymentsTools$outboundSchema;
891
- /** @deprecated use `DeploymentsTools$Outbound` instead. */
892
- export type Outbound = DeploymentsTools$Outbound;
893
- }
894
-
895
- export function deploymentsToolsToJSON(
896
- deploymentsTools: DeploymentsTools,
897
- ): string {
898
- return JSON.stringify(
899
- DeploymentsTools$outboundSchema.parse(deploymentsTools),
900
- );
901
- }
902
-
903
- export function deploymentsToolsFromJSON(
904
- jsonString: string,
905
- ): SafeParseResult<DeploymentsTools, SDKValidationError> {
906
- return safeParse(
907
- jsonString,
908
- (x) => DeploymentsTools$inboundSchema.parse(JSON.parse(x)),
909
- `Failed to parse 'DeploymentsTools' from JSON`,
910
- );
911
- }
912
-
913
- /** @internal */
914
- export const DeploymentsModelType$inboundSchema: z.ZodNativeEnum<
915
- typeof DeploymentsModelType
916
- > = z.nativeEnum(DeploymentsModelType);
917
-
918
- /** @internal */
919
- export const DeploymentsModelType$outboundSchema: z.ZodNativeEnum<
920
- typeof DeploymentsModelType
921
- > = DeploymentsModelType$inboundSchema;
922
-
923
- /**
924
- * @internal
925
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
926
- */
927
- export namespace DeploymentsModelType$ {
928
- /** @deprecated use `DeploymentsModelType$inboundSchema` instead. */
929
- export const inboundSchema = DeploymentsModelType$inboundSchema;
930
- /** @deprecated use `DeploymentsModelType$outboundSchema` instead. */
931
- export const outboundSchema = DeploymentsModelType$outboundSchema;
932
- }
933
-
934
- /** @internal */
935
- export const DeploymentsFormat$inboundSchema: z.ZodNativeEnum<
936
- typeof DeploymentsFormat
937
- > = z.nativeEnum(DeploymentsFormat);
938
-
939
- /** @internal */
940
- export const DeploymentsFormat$outboundSchema: z.ZodNativeEnum<
941
- typeof DeploymentsFormat
942
- > = DeploymentsFormat$inboundSchema;
943
-
944
- /**
945
- * @internal
946
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
947
- */
948
- export namespace DeploymentsFormat$ {
949
- /** @deprecated use `DeploymentsFormat$inboundSchema` instead. */
950
- export const inboundSchema = DeploymentsFormat$inboundSchema;
951
- /** @deprecated use `DeploymentsFormat$outboundSchema` instead. */
952
- export const outboundSchema = DeploymentsFormat$outboundSchema;
953
- }
954
-
955
- /** @internal */
956
- export const DeploymentsResponseFormat6$inboundSchema: z.ZodNativeEnum<
957
- typeof DeploymentsResponseFormat6
958
- > = z.nativeEnum(DeploymentsResponseFormat6);
959
-
960
- /** @internal */
961
- export const DeploymentsResponseFormat6$outboundSchema: z.ZodNativeEnum<
962
- typeof DeploymentsResponseFormat6
963
- > = DeploymentsResponseFormat6$inboundSchema;
964
-
965
- /**
966
- * @internal
967
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
968
- */
969
- export namespace DeploymentsResponseFormat6$ {
970
- /** @deprecated use `DeploymentsResponseFormat6$inboundSchema` instead. */
971
- export const inboundSchema = DeploymentsResponseFormat6$inboundSchema;
972
- /** @deprecated use `DeploymentsResponseFormat6$outboundSchema` instead. */
973
- export const outboundSchema = DeploymentsResponseFormat6$outboundSchema;
974
- }
975
-
976
- /** @internal */
977
- export const DeploymentsResponseFormat5$inboundSchema: z.ZodNativeEnum<
978
- typeof DeploymentsResponseFormat5
979
- > = z.nativeEnum(DeploymentsResponseFormat5);
980
-
981
- /** @internal */
982
- export const DeploymentsResponseFormat5$outboundSchema: z.ZodNativeEnum<
983
- typeof DeploymentsResponseFormat5
984
- > = DeploymentsResponseFormat5$inboundSchema;
985
-
986
- /**
987
- * @internal
988
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
989
- */
990
- export namespace DeploymentsResponseFormat5$ {
991
- /** @deprecated use `DeploymentsResponseFormat5$inboundSchema` instead. */
992
- export const inboundSchema = DeploymentsResponseFormat5$inboundSchema;
993
- /** @deprecated use `DeploymentsResponseFormat5$outboundSchema` instead. */
994
- export const outboundSchema = DeploymentsResponseFormat5$outboundSchema;
995
- }
996
-
997
- /** @internal */
998
- export const DeploymentsResponseFormat4$inboundSchema: z.ZodNativeEnum<
999
- typeof DeploymentsResponseFormat4
1000
- > = z.nativeEnum(DeploymentsResponseFormat4);
1001
-
1002
- /** @internal */
1003
- export const DeploymentsResponseFormat4$outboundSchema: z.ZodNativeEnum<
1004
- typeof DeploymentsResponseFormat4
1005
- > = DeploymentsResponseFormat4$inboundSchema;
1006
-
1007
- /**
1008
- * @internal
1009
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1010
- */
1011
- export namespace DeploymentsResponseFormat4$ {
1012
- /** @deprecated use `DeploymentsResponseFormat4$inboundSchema` instead. */
1013
- export const inboundSchema = DeploymentsResponseFormat4$inboundSchema;
1014
- /** @deprecated use `DeploymentsResponseFormat4$outboundSchema` instead. */
1015
- export const outboundSchema = DeploymentsResponseFormat4$outboundSchema;
1016
- }
1017
-
1018
- /** @internal */
1019
- export const DeploymentsResponseFormatDeploymentsType$inboundSchema:
1020
- z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsType> = z
1021
- .nativeEnum(DeploymentsResponseFormatDeploymentsType);
1022
-
1023
- /** @internal */
1024
- export const DeploymentsResponseFormatDeploymentsType$outboundSchema:
1025
- z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsType> =
1026
- DeploymentsResponseFormatDeploymentsType$inboundSchema;
1027
-
1028
- /**
1029
- * @internal
1030
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1031
- */
1032
- export namespace DeploymentsResponseFormatDeploymentsType$ {
1033
- /** @deprecated use `DeploymentsResponseFormatDeploymentsType$inboundSchema` instead. */
1034
- export const inboundSchema =
1035
- DeploymentsResponseFormatDeploymentsType$inboundSchema;
1036
- /** @deprecated use `DeploymentsResponseFormatDeploymentsType$outboundSchema` instead. */
1037
- export const outboundSchema =
1038
- DeploymentsResponseFormatDeploymentsType$outboundSchema;
1039
- }
1040
-
1041
- /** @internal */
1042
- export const DeploymentsResponseFormat3$inboundSchema: z.ZodType<
1043
- DeploymentsResponseFormat3,
1044
- z.ZodTypeDef,
1045
- unknown
1046
- > = z.object({
1047
- type: DeploymentsResponseFormatDeploymentsType$inboundSchema,
1048
- });
1049
-
1050
- /** @internal */
1051
- export type DeploymentsResponseFormat3$Outbound = {
1052
- type: string;
1053
- };
1054
-
1055
- /** @internal */
1056
- export const DeploymentsResponseFormat3$outboundSchema: z.ZodType<
1057
- DeploymentsResponseFormat3$Outbound,
1058
- z.ZodTypeDef,
1059
- DeploymentsResponseFormat3
1060
- > = z.object({
1061
- type: DeploymentsResponseFormatDeploymentsType$outboundSchema,
1062
- });
1063
-
1064
- /**
1065
- * @internal
1066
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1067
- */
1068
- export namespace DeploymentsResponseFormat3$ {
1069
- /** @deprecated use `DeploymentsResponseFormat3$inboundSchema` instead. */
1070
- export const inboundSchema = DeploymentsResponseFormat3$inboundSchema;
1071
- /** @deprecated use `DeploymentsResponseFormat3$outboundSchema` instead. */
1072
- export const outboundSchema = DeploymentsResponseFormat3$outboundSchema;
1073
- /** @deprecated use `DeploymentsResponseFormat3$Outbound` instead. */
1074
- export type Outbound = DeploymentsResponseFormat3$Outbound;
1075
- }
1076
-
1077
- export function deploymentsResponseFormat3ToJSON(
1078
- deploymentsResponseFormat3: DeploymentsResponseFormat3,
1079
- ): string {
1080
- return JSON.stringify(
1081
- DeploymentsResponseFormat3$outboundSchema.parse(deploymentsResponseFormat3),
1082
- );
1083
- }
1084
-
1085
- export function deploymentsResponseFormat3FromJSON(
1086
- jsonString: string,
1087
- ): SafeParseResult<DeploymentsResponseFormat3, SDKValidationError> {
1088
- return safeParse(
1089
- jsonString,
1090
- (x) => DeploymentsResponseFormat3$inboundSchema.parse(JSON.parse(x)),
1091
- `Failed to parse 'DeploymentsResponseFormat3' from JSON`,
1092
- );
1093
- }
1094
-
1095
- /** @internal */
1096
- export const DeploymentsResponseFormatType$inboundSchema: z.ZodNativeEnum<
1097
- typeof DeploymentsResponseFormatType
1098
- > = z.nativeEnum(DeploymentsResponseFormatType);
1099
-
1100
- /** @internal */
1101
- export const DeploymentsResponseFormatType$outboundSchema: z.ZodNativeEnum<
1102
- typeof DeploymentsResponseFormatType
1103
- > = DeploymentsResponseFormatType$inboundSchema;
1104
-
1105
- /**
1106
- * @internal
1107
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1108
- */
1109
- export namespace DeploymentsResponseFormatType$ {
1110
- /** @deprecated use `DeploymentsResponseFormatType$inboundSchema` instead. */
1111
- export const inboundSchema = DeploymentsResponseFormatType$inboundSchema;
1112
- /** @deprecated use `DeploymentsResponseFormatType$outboundSchema` instead. */
1113
- export const outboundSchema = DeploymentsResponseFormatType$outboundSchema;
1114
- }
1115
-
1116
- /** @internal */
1117
- export const DeploymentsResponseFormat2$inboundSchema: z.ZodType<
1118
- DeploymentsResponseFormat2,
1119
- z.ZodTypeDef,
1120
- unknown
1121
- > = z.object({
1122
- type: DeploymentsResponseFormatType$inboundSchema,
1123
- });
1124
-
1125
- /** @internal */
1126
- export type DeploymentsResponseFormat2$Outbound = {
1127
- type: string;
1128
- };
1129
-
1130
- /** @internal */
1131
- export const DeploymentsResponseFormat2$outboundSchema: z.ZodType<
1132
- DeploymentsResponseFormat2$Outbound,
1133
- z.ZodTypeDef,
1134
- DeploymentsResponseFormat2
1135
- > = z.object({
1136
- type: DeploymentsResponseFormatType$outboundSchema,
1137
- });
1138
-
1139
- /**
1140
- * @internal
1141
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1142
- */
1143
- export namespace DeploymentsResponseFormat2$ {
1144
- /** @deprecated use `DeploymentsResponseFormat2$inboundSchema` instead. */
1145
- export const inboundSchema = DeploymentsResponseFormat2$inboundSchema;
1146
- /** @deprecated use `DeploymentsResponseFormat2$outboundSchema` instead. */
1147
- export const outboundSchema = DeploymentsResponseFormat2$outboundSchema;
1148
- /** @deprecated use `DeploymentsResponseFormat2$Outbound` instead. */
1149
- export type Outbound = DeploymentsResponseFormat2$Outbound;
1150
- }
1151
-
1152
- export function deploymentsResponseFormat2ToJSON(
1153
- deploymentsResponseFormat2: DeploymentsResponseFormat2,
1154
- ): string {
1155
- return JSON.stringify(
1156
- DeploymentsResponseFormat2$outboundSchema.parse(deploymentsResponseFormat2),
1157
- );
1158
- }
1159
-
1160
- export function deploymentsResponseFormat2FromJSON(
1161
- jsonString: string,
1162
- ): SafeParseResult<DeploymentsResponseFormat2, SDKValidationError> {
1163
- return safeParse(
1164
- jsonString,
1165
- (x) => DeploymentsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1166
- `Failed to parse 'DeploymentsResponseFormat2' from JSON`,
1167
- );
1168
- }
1169
-
1170
- /** @internal */
1171
- export const DeploymentsResponseFormatDeploymentsResponseType$inboundSchema:
1172
- z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsResponseType> = z
1173
- .nativeEnum(DeploymentsResponseFormatDeploymentsResponseType);
1174
-
1175
- /** @internal */
1176
- export const DeploymentsResponseFormatDeploymentsResponseType$outboundSchema:
1177
- z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsResponseType> =
1178
- DeploymentsResponseFormatDeploymentsResponseType$inboundSchema;
1179
-
1180
- /**
1181
- * @internal
1182
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1183
- */
1184
- export namespace DeploymentsResponseFormatDeploymentsResponseType$ {
1185
- /** @deprecated use `DeploymentsResponseFormatDeploymentsResponseType$inboundSchema` instead. */
1186
- export const inboundSchema =
1187
- DeploymentsResponseFormatDeploymentsResponseType$inboundSchema;
1188
- /** @deprecated use `DeploymentsResponseFormatDeploymentsResponseType$outboundSchema` instead. */
1189
- export const outboundSchema =
1190
- DeploymentsResponseFormatDeploymentsResponseType$outboundSchema;
1191
- }
1192
-
1193
- /** @internal */
1194
- export const DeploymentsResponseFormatJsonSchema$inboundSchema: z.ZodType<
1195
- DeploymentsResponseFormatJsonSchema,
1196
- z.ZodTypeDef,
1197
- unknown
1198
- > = z.object({
1199
- name: z.string(),
1200
- description: z.string().optional(),
1201
- strict: z.boolean().optional(),
1202
- schema: z.record(z.any()),
1203
- });
1204
-
1205
- /** @internal */
1206
- export type DeploymentsResponseFormatJsonSchema$Outbound = {
1207
- name: string;
1208
- description?: string | undefined;
1209
- strict?: boolean | undefined;
1210
- schema: { [k: string]: any };
1211
- };
1212
-
1213
- /** @internal */
1214
- export const DeploymentsResponseFormatJsonSchema$outboundSchema: z.ZodType<
1215
- DeploymentsResponseFormatJsonSchema$Outbound,
1216
- z.ZodTypeDef,
1217
- DeploymentsResponseFormatJsonSchema
1218
- > = z.object({
1219
- name: z.string(),
1220
- description: z.string().optional(),
1221
- strict: z.boolean().optional(),
1222
- schema: z.record(z.any()),
1223
- });
1224
-
1225
- /**
1226
- * @internal
1227
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1228
- */
1229
- export namespace DeploymentsResponseFormatJsonSchema$ {
1230
- /** @deprecated use `DeploymentsResponseFormatJsonSchema$inboundSchema` instead. */
1231
- export const inboundSchema =
1232
- DeploymentsResponseFormatJsonSchema$inboundSchema;
1233
- /** @deprecated use `DeploymentsResponseFormatJsonSchema$outboundSchema` instead. */
1234
- export const outboundSchema =
1235
- DeploymentsResponseFormatJsonSchema$outboundSchema;
1236
- /** @deprecated use `DeploymentsResponseFormatJsonSchema$Outbound` instead. */
1237
- export type Outbound = DeploymentsResponseFormatJsonSchema$Outbound;
1238
- }
1239
-
1240
- export function deploymentsResponseFormatJsonSchemaToJSON(
1241
- deploymentsResponseFormatJsonSchema: DeploymentsResponseFormatJsonSchema,
1242
- ): string {
1243
- return JSON.stringify(
1244
- DeploymentsResponseFormatJsonSchema$outboundSchema.parse(
1245
- deploymentsResponseFormatJsonSchema,
1246
- ),
1247
- );
1248
- }
1249
-
1250
- export function deploymentsResponseFormatJsonSchemaFromJSON(
1251
- jsonString: string,
1252
- ): SafeParseResult<DeploymentsResponseFormatJsonSchema, SDKValidationError> {
1253
- return safeParse(
1254
- jsonString,
1255
- (x) =>
1256
- DeploymentsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1257
- `Failed to parse 'DeploymentsResponseFormatJsonSchema' from JSON`,
1258
- );
1259
- }
1260
-
1261
- /** @internal */
1262
- export const DeploymentsResponseFormat1$inboundSchema: z.ZodType<
1263
- DeploymentsResponseFormat1,
1264
- z.ZodTypeDef,
1265
- unknown
1266
- > = z.object({
1267
- type: DeploymentsResponseFormatDeploymentsResponseType$inboundSchema,
1268
- json_schema: z.lazy(() => DeploymentsResponseFormatJsonSchema$inboundSchema),
1269
- }).transform((v) => {
1270
- return remap$(v, {
1271
- "json_schema": "jsonSchema",
1272
- });
1273
- });
1274
-
1275
- /** @internal */
1276
- export type DeploymentsResponseFormat1$Outbound = {
1277
- type: string;
1278
- json_schema: DeploymentsResponseFormatJsonSchema$Outbound;
1279
- };
1280
-
1281
- /** @internal */
1282
- export const DeploymentsResponseFormat1$outboundSchema: z.ZodType<
1283
- DeploymentsResponseFormat1$Outbound,
1284
- z.ZodTypeDef,
1285
- DeploymentsResponseFormat1
1286
- > = z.object({
1287
- type: DeploymentsResponseFormatDeploymentsResponseType$outboundSchema,
1288
- jsonSchema: z.lazy(() => DeploymentsResponseFormatJsonSchema$outboundSchema),
1289
- }).transform((v) => {
1290
- return remap$(v, {
1291
- jsonSchema: "json_schema",
1292
- });
1293
- });
1294
-
1295
- /**
1296
- * @internal
1297
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1298
- */
1299
- export namespace DeploymentsResponseFormat1$ {
1300
- /** @deprecated use `DeploymentsResponseFormat1$inboundSchema` instead. */
1301
- export const inboundSchema = DeploymentsResponseFormat1$inboundSchema;
1302
- /** @deprecated use `DeploymentsResponseFormat1$outboundSchema` instead. */
1303
- export const outboundSchema = DeploymentsResponseFormat1$outboundSchema;
1304
- /** @deprecated use `DeploymentsResponseFormat1$Outbound` instead. */
1305
- export type Outbound = DeploymentsResponseFormat1$Outbound;
1306
- }
1307
-
1308
- export function deploymentsResponseFormat1ToJSON(
1309
- deploymentsResponseFormat1: DeploymentsResponseFormat1,
1310
- ): string {
1311
- return JSON.stringify(
1312
- DeploymentsResponseFormat1$outboundSchema.parse(deploymentsResponseFormat1),
1313
- );
1314
- }
1315
-
1316
- export function deploymentsResponseFormat1FromJSON(
1317
- jsonString: string,
1318
- ): SafeParseResult<DeploymentsResponseFormat1, SDKValidationError> {
1319
- return safeParse(
1320
- jsonString,
1321
- (x) => DeploymentsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1322
- `Failed to parse 'DeploymentsResponseFormat1' from JSON`,
1323
- );
1324
- }
1325
-
1326
- /** @internal */
1327
- export const DeploymentsResponseFormat$inboundSchema: z.ZodType<
1328
- DeploymentsResponseFormat,
1329
- z.ZodTypeDef,
1330
- unknown
1331
- > = z.union([
1332
- z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
1333
- z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
1334
- z.lazy(() => DeploymentsResponseFormat3$inboundSchema),
1335
- DeploymentsResponseFormat4$inboundSchema,
1336
- DeploymentsResponseFormat5$inboundSchema,
1337
- DeploymentsResponseFormat6$inboundSchema,
1338
- ]);
1339
-
1340
- /** @internal */
1341
- export type DeploymentsResponseFormat$Outbound =
1342
- | DeploymentsResponseFormat1$Outbound
1343
- | DeploymentsResponseFormat2$Outbound
1344
- | DeploymentsResponseFormat3$Outbound
1345
- | string
1346
- | string
1347
- | string;
1348
-
1349
- /** @internal */
1350
- export const DeploymentsResponseFormat$outboundSchema: z.ZodType<
1351
- DeploymentsResponseFormat$Outbound,
1352
- z.ZodTypeDef,
1353
- DeploymentsResponseFormat
1354
- > = z.union([
1355
- z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
1356
- z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
1357
- z.lazy(() => DeploymentsResponseFormat3$outboundSchema),
1358
- DeploymentsResponseFormat4$outboundSchema,
1359
- DeploymentsResponseFormat5$outboundSchema,
1360
- DeploymentsResponseFormat6$outboundSchema,
1361
- ]);
1362
-
1363
- /**
1364
- * @internal
1365
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1366
- */
1367
- export namespace DeploymentsResponseFormat$ {
1368
- /** @deprecated use `DeploymentsResponseFormat$inboundSchema` instead. */
1369
- export const inboundSchema = DeploymentsResponseFormat$inboundSchema;
1370
- /** @deprecated use `DeploymentsResponseFormat$outboundSchema` instead. */
1371
- export const outboundSchema = DeploymentsResponseFormat$outboundSchema;
1372
- /** @deprecated use `DeploymentsResponseFormat$Outbound` instead. */
1373
- export type Outbound = DeploymentsResponseFormat$Outbound;
1374
- }
1375
-
1376
- export function deploymentsResponseFormatToJSON(
1377
- deploymentsResponseFormat: DeploymentsResponseFormat,
1378
- ): string {
1379
- return JSON.stringify(
1380
- DeploymentsResponseFormat$outboundSchema.parse(deploymentsResponseFormat),
1381
- );
1382
- }
1383
-
1384
- export function deploymentsResponseFormatFromJSON(
1385
- jsonString: string,
1386
- ): SafeParseResult<DeploymentsResponseFormat, SDKValidationError> {
1387
- return safeParse(
1388
- jsonString,
1389
- (x) => DeploymentsResponseFormat$inboundSchema.parse(JSON.parse(x)),
1390
- `Failed to parse 'DeploymentsResponseFormat' from JSON`,
1391
- );
1392
- }
1393
-
1394
- /** @internal */
1395
- export const DeploymentsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1396
- typeof DeploymentsPhotoRealVersion
1397
- > = z.nativeEnum(DeploymentsPhotoRealVersion);
1398
-
1399
- /** @internal */
1400
- export const DeploymentsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1401
- typeof DeploymentsPhotoRealVersion
1402
- > = DeploymentsPhotoRealVersion$inboundSchema;
1403
-
1404
- /**
1405
- * @internal
1406
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1407
- */
1408
- export namespace DeploymentsPhotoRealVersion$ {
1409
- /** @deprecated use `DeploymentsPhotoRealVersion$inboundSchema` instead. */
1410
- export const inboundSchema = DeploymentsPhotoRealVersion$inboundSchema;
1411
- /** @deprecated use `DeploymentsPhotoRealVersion$outboundSchema` instead. */
1412
- export const outboundSchema = DeploymentsPhotoRealVersion$outboundSchema;
1413
- }
1414
-
1415
- /** @internal */
1416
- export const DeploymentsEncodingFormat$inboundSchema: z.ZodNativeEnum<
1417
- typeof DeploymentsEncodingFormat
1418
- > = z.nativeEnum(DeploymentsEncodingFormat);
1419
-
1420
- /** @internal */
1421
- export const DeploymentsEncodingFormat$outboundSchema: z.ZodNativeEnum<
1422
- typeof DeploymentsEncodingFormat
1423
- > = DeploymentsEncodingFormat$inboundSchema;
1424
-
1425
- /**
1426
- * @internal
1427
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1428
- */
1429
- export namespace DeploymentsEncodingFormat$ {
1430
- /** @deprecated use `DeploymentsEncodingFormat$inboundSchema` instead. */
1431
- export const inboundSchema = DeploymentsEncodingFormat$inboundSchema;
1432
- /** @deprecated use `DeploymentsEncodingFormat$outboundSchema` instead. */
1433
- export const outboundSchema = DeploymentsEncodingFormat$outboundSchema;
1434
- }
1435
-
1436
- /** @internal */
1437
- export const DeploymentsReasoningEffort$inboundSchema: z.ZodNativeEnum<
1438
- typeof DeploymentsReasoningEffort
1439
- > = z.nativeEnum(DeploymentsReasoningEffort);
1440
-
1441
- /** @internal */
1442
- export const DeploymentsReasoningEffort$outboundSchema: z.ZodNativeEnum<
1443
- typeof DeploymentsReasoningEffort
1444
- > = DeploymentsReasoningEffort$inboundSchema;
1445
-
1446
- /**
1447
- * @internal
1448
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1449
- */
1450
- export namespace DeploymentsReasoningEffort$ {
1451
- /** @deprecated use `DeploymentsReasoningEffort$inboundSchema` instead. */
1452
- export const inboundSchema = DeploymentsReasoningEffort$inboundSchema;
1453
- /** @deprecated use `DeploymentsReasoningEffort$outboundSchema` instead. */
1454
- export const outboundSchema = DeploymentsReasoningEffort$outboundSchema;
1455
- }
1456
-
1457
- /** @internal */
1458
- export const DeploymentsVerbosity$inboundSchema: z.ZodNativeEnum<
1459
- typeof DeploymentsVerbosity
1460
- > = z.nativeEnum(DeploymentsVerbosity);
1461
-
1462
- /** @internal */
1463
- export const DeploymentsVerbosity$outboundSchema: z.ZodNativeEnum<
1464
- typeof DeploymentsVerbosity
1465
- > = DeploymentsVerbosity$inboundSchema;
1466
-
1467
- /**
1468
- * @internal
1469
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1470
- */
1471
- export namespace DeploymentsVerbosity$ {
1472
- /** @deprecated use `DeploymentsVerbosity$inboundSchema` instead. */
1473
- export const inboundSchema = DeploymentsVerbosity$inboundSchema;
1474
- /** @deprecated use `DeploymentsVerbosity$outboundSchema` instead. */
1475
- export const outboundSchema = DeploymentsVerbosity$outboundSchema;
1476
- }
1477
-
1478
- /** @internal */
1479
- export const DeploymentsModelParameters$inboundSchema: z.ZodType<
1480
- DeploymentsModelParameters,
1481
- z.ZodTypeDef,
1482
- unknown
1483
- > = z.object({
1484
- temperature: z.number().optional(),
1485
- maxTokens: z.number().optional(),
1486
- topK: z.number().optional(),
1487
- topP: z.number().optional(),
1488
- frequencyPenalty: z.number().optional(),
1489
- presencePenalty: z.number().optional(),
1490
- numImages: z.number().optional(),
1491
- seed: z.number().optional(),
1492
- format: DeploymentsFormat$inboundSchema.optional(),
1493
- dimensions: z.string().optional(),
1494
- quality: z.string().optional(),
1495
- style: z.string().optional(),
1496
- responseFormat: z.nullable(
1497
- z.union([
1498
- z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
1499
- z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
1500
- z.lazy(() => DeploymentsResponseFormat3$inboundSchema),
1501
- DeploymentsResponseFormat4$inboundSchema,
1502
- DeploymentsResponseFormat5$inboundSchema,
1503
- DeploymentsResponseFormat6$inboundSchema,
1504
- ]),
1505
- ).optional(),
1506
- photoRealVersion: DeploymentsPhotoRealVersion$inboundSchema.optional(),
1507
- encoding_format: DeploymentsEncodingFormat$inboundSchema.optional(),
1508
- reasoningEffort: DeploymentsReasoningEffort$inboundSchema.optional(),
1509
- budgetTokens: z.number().optional(),
1510
- verbosity: DeploymentsVerbosity$inboundSchema.optional(),
1511
- }).transform((v) => {
1512
- return remap$(v, {
1513
- "encoding_format": "encodingFormat",
1514
- });
1515
- });
1516
-
1517
- /** @internal */
1518
- export type DeploymentsModelParameters$Outbound = {
1519
- temperature?: number | undefined;
1520
- maxTokens?: number | undefined;
1521
- topK?: number | undefined;
1522
- topP?: number | undefined;
1523
- frequencyPenalty?: number | undefined;
1524
- presencePenalty?: number | undefined;
1525
- numImages?: number | undefined;
1526
- seed?: number | undefined;
1527
- format?: string | undefined;
1528
- dimensions?: string | undefined;
1529
- quality?: string | undefined;
1530
- style?: string | undefined;
1531
- responseFormat?:
1532
- | DeploymentsResponseFormat1$Outbound
1533
- | DeploymentsResponseFormat2$Outbound
1534
- | DeploymentsResponseFormat3$Outbound
1535
- | string
1536
- | string
1537
- | string
1538
- | null
1539
- | undefined;
1540
- photoRealVersion?: string | undefined;
1541
- encoding_format?: string | undefined;
1542
- reasoningEffort?: string | undefined;
1543
- budgetTokens?: number | undefined;
1544
- verbosity?: string | undefined;
1545
- };
1546
-
1547
- /** @internal */
1548
- export const DeploymentsModelParameters$outboundSchema: z.ZodType<
1549
- DeploymentsModelParameters$Outbound,
1550
- z.ZodTypeDef,
1551
- DeploymentsModelParameters
1552
- > = z.object({
1553
- temperature: z.number().optional(),
1554
- maxTokens: z.number().optional(),
1555
- topK: z.number().optional(),
1556
- topP: z.number().optional(),
1557
- frequencyPenalty: z.number().optional(),
1558
- presencePenalty: z.number().optional(),
1559
- numImages: z.number().optional(),
1560
- seed: z.number().optional(),
1561
- format: DeploymentsFormat$outboundSchema.optional(),
1562
- dimensions: z.string().optional(),
1563
- quality: z.string().optional(),
1564
- style: z.string().optional(),
1565
- responseFormat: z.nullable(
1566
- z.union([
1567
- z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
1568
- z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
1569
- z.lazy(() => DeploymentsResponseFormat3$outboundSchema),
1570
- DeploymentsResponseFormat4$outboundSchema,
1571
- DeploymentsResponseFormat5$outboundSchema,
1572
- DeploymentsResponseFormat6$outboundSchema,
1573
- ]),
1574
- ).optional(),
1575
- photoRealVersion: DeploymentsPhotoRealVersion$outboundSchema.optional(),
1576
- encodingFormat: DeploymentsEncodingFormat$outboundSchema.optional(),
1577
- reasoningEffort: DeploymentsReasoningEffort$outboundSchema.optional(),
1578
- budgetTokens: z.number().optional(),
1579
- verbosity: DeploymentsVerbosity$outboundSchema.optional(),
1580
- }).transform((v) => {
1581
- return remap$(v, {
1582
- encodingFormat: "encoding_format",
1583
- });
1584
- });
1585
-
1586
- /**
1587
- * @internal
1588
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1589
- */
1590
- export namespace DeploymentsModelParameters$ {
1591
- /** @deprecated use `DeploymentsModelParameters$inboundSchema` instead. */
1592
- export const inboundSchema = DeploymentsModelParameters$inboundSchema;
1593
- /** @deprecated use `DeploymentsModelParameters$outboundSchema` instead. */
1594
- export const outboundSchema = DeploymentsModelParameters$outboundSchema;
1595
- /** @deprecated use `DeploymentsModelParameters$Outbound` instead. */
1596
- export type Outbound = DeploymentsModelParameters$Outbound;
1597
- }
1598
-
1599
- export function deploymentsModelParametersToJSON(
1600
- deploymentsModelParameters: DeploymentsModelParameters,
1601
- ): string {
1602
- return JSON.stringify(
1603
- DeploymentsModelParameters$outboundSchema.parse(deploymentsModelParameters),
1604
- );
1605
- }
1606
-
1607
- export function deploymentsModelParametersFromJSON(
1608
- jsonString: string,
1609
- ): SafeParseResult<DeploymentsModelParameters, SDKValidationError> {
1610
- return safeParse(
1611
- jsonString,
1612
- (x) => DeploymentsModelParameters$inboundSchema.parse(JSON.parse(x)),
1613
- `Failed to parse 'DeploymentsModelParameters' from JSON`,
1614
- );
1615
- }
1616
-
1617
- /** @internal */
1618
- export const DeploymentsProvider$inboundSchema: z.ZodNativeEnum<
1619
- typeof DeploymentsProvider
1620
- > = z.nativeEnum(DeploymentsProvider);
1621
-
1622
- /** @internal */
1623
- export const DeploymentsProvider$outboundSchema: z.ZodNativeEnum<
1624
- typeof DeploymentsProvider
1625
- > = DeploymentsProvider$inboundSchema;
1626
-
1627
- /**
1628
- * @internal
1629
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1630
- */
1631
- export namespace DeploymentsProvider$ {
1632
- /** @deprecated use `DeploymentsProvider$inboundSchema` instead. */
1633
- export const inboundSchema = DeploymentsProvider$inboundSchema;
1634
- /** @deprecated use `DeploymentsProvider$outboundSchema` instead. */
1635
- export const outboundSchema = DeploymentsProvider$outboundSchema;
1636
- }
1637
-
1638
- /** @internal */
1639
- export const DeploymentsRole$inboundSchema: z.ZodNativeEnum<
1640
- typeof DeploymentsRole
1641
- > = z.nativeEnum(DeploymentsRole);
1642
-
1643
- /** @internal */
1644
- export const DeploymentsRole$outboundSchema: z.ZodNativeEnum<
1645
- typeof DeploymentsRole
1646
- > = DeploymentsRole$inboundSchema;
1647
-
1648
- /**
1649
- * @internal
1650
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1651
- */
1652
- export namespace DeploymentsRole$ {
1653
- /** @deprecated use `DeploymentsRole$inboundSchema` instead. */
1654
- export const inboundSchema = DeploymentsRole$inboundSchema;
1655
- /** @deprecated use `DeploymentsRole$outboundSchema` instead. */
1656
- export const outboundSchema = DeploymentsRole$outboundSchema;
1657
- }
1658
-
1659
- /** @internal */
1660
- export const Deployments2DeploymentsType$inboundSchema: z.ZodNativeEnum<
1661
- typeof Deployments2DeploymentsType
1662
- > = z.nativeEnum(Deployments2DeploymentsType);
1663
-
1664
- /** @internal */
1665
- export const Deployments2DeploymentsType$outboundSchema: z.ZodNativeEnum<
1666
- typeof Deployments2DeploymentsType
1667
- > = Deployments2DeploymentsType$inboundSchema;
1668
-
1669
- /**
1670
- * @internal
1671
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1672
- */
1673
- export namespace Deployments2DeploymentsType$ {
1674
- /** @deprecated use `Deployments2DeploymentsType$inboundSchema` instead. */
1675
- export const inboundSchema = Deployments2DeploymentsType$inboundSchema;
1676
- /** @deprecated use `Deployments2DeploymentsType$outboundSchema` instead. */
1677
- export const outboundSchema = Deployments2DeploymentsType$outboundSchema;
1678
- }
1679
-
1680
- /** @internal */
1681
- export const Deployments2File$inboundSchema: z.ZodType<
1682
- Deployments2File,
1683
- z.ZodTypeDef,
1684
- unknown
1685
- > = z.object({
1686
- file_data: z.string().optional(),
1687
- uri: z.string().optional(),
1688
- mimeType: z.string().optional(),
1689
- filename: z.string().optional(),
1690
- }).transform((v) => {
1691
- return remap$(v, {
1692
- "file_data": "fileData",
1693
- });
1694
- });
1695
-
1696
- /** @internal */
1697
- export type Deployments2File$Outbound = {
1698
- file_data?: string | undefined;
1699
- uri?: string | undefined;
1700
- mimeType?: string | undefined;
1701
- filename?: string | undefined;
1702
- };
1703
-
1704
- /** @internal */
1705
- export const Deployments2File$outboundSchema: z.ZodType<
1706
- Deployments2File$Outbound,
1707
- z.ZodTypeDef,
1708
- Deployments2File
1709
- > = z.object({
1710
- fileData: z.string().optional(),
1711
- uri: z.string().optional(),
1712
- mimeType: z.string().optional(),
1713
- filename: z.string().optional(),
1714
- }).transform((v) => {
1715
- return remap$(v, {
1716
- fileData: "file_data",
1717
- });
1718
- });
1719
-
1720
- /**
1721
- * @internal
1722
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1723
- */
1724
- export namespace Deployments2File$ {
1725
- /** @deprecated use `Deployments2File$inboundSchema` instead. */
1726
- export const inboundSchema = Deployments2File$inboundSchema;
1727
- /** @deprecated use `Deployments2File$outboundSchema` instead. */
1728
- export const outboundSchema = Deployments2File$outboundSchema;
1729
- /** @deprecated use `Deployments2File$Outbound` instead. */
1730
- export type Outbound = Deployments2File$Outbound;
1731
- }
1732
-
1733
- export function deployments2FileToJSON(
1734
- deployments2File: Deployments2File,
1735
- ): string {
1736
- return JSON.stringify(
1737
- Deployments2File$outboundSchema.parse(deployments2File),
1738
- );
1739
- }
1740
-
1741
- export function deployments2FileFromJSON(
1742
- jsonString: string,
1743
- ): SafeParseResult<Deployments2File, SDKValidationError> {
1744
- return safeParse(
1745
- jsonString,
1746
- (x) => Deployments2File$inboundSchema.parse(JSON.parse(x)),
1747
- `Failed to parse 'Deployments2File' from JSON`,
1748
- );
1749
- }
1750
-
1751
- /** @internal */
1752
- export const Deployments23$inboundSchema: z.ZodType<
1753
- Deployments23,
1754
- z.ZodTypeDef,
1755
- unknown
1756
- > = z.object({
1757
- type: Deployments2DeploymentsType$inboundSchema,
1758
- file: z.lazy(() => Deployments2File$inboundSchema),
1759
- });
1760
-
1761
- /** @internal */
1762
- export type Deployments23$Outbound = {
1763
- type: string;
1764
- file: Deployments2File$Outbound;
1765
- };
1766
-
1767
- /** @internal */
1768
- export const Deployments23$outboundSchema: z.ZodType<
1769
- Deployments23$Outbound,
1770
- z.ZodTypeDef,
1771
- Deployments23
1772
- > = z.object({
1773
- type: Deployments2DeploymentsType$outboundSchema,
1774
- file: z.lazy(() => Deployments2File$outboundSchema),
1775
- });
1776
-
1777
- /**
1778
- * @internal
1779
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1780
- */
1781
- export namespace Deployments23$ {
1782
- /** @deprecated use `Deployments23$inboundSchema` instead. */
1783
- export const inboundSchema = Deployments23$inboundSchema;
1784
- /** @deprecated use `Deployments23$outboundSchema` instead. */
1785
- export const outboundSchema = Deployments23$outboundSchema;
1786
- /** @deprecated use `Deployments23$Outbound` instead. */
1787
- export type Outbound = Deployments23$Outbound;
1788
- }
1789
-
1790
- export function deployments23ToJSON(deployments23: Deployments23): string {
1791
- return JSON.stringify(Deployments23$outboundSchema.parse(deployments23));
1792
- }
1793
-
1794
- export function deployments23FromJSON(
1795
- jsonString: string,
1796
- ): SafeParseResult<Deployments23, SDKValidationError> {
1797
- return safeParse(
1798
- jsonString,
1799
- (x) => Deployments23$inboundSchema.parse(JSON.parse(x)),
1800
- `Failed to parse 'Deployments23' from JSON`,
1801
- );
1802
- }
1803
-
1804
- /** @internal */
1805
- export const Deployments2Type$inboundSchema: z.ZodNativeEnum<
1806
- typeof Deployments2Type
1807
- > = z.nativeEnum(Deployments2Type);
1808
-
1809
- /** @internal */
1810
- export const Deployments2Type$outboundSchema: z.ZodNativeEnum<
1811
- typeof Deployments2Type
1812
- > = Deployments2Type$inboundSchema;
1813
-
1814
- /**
1815
- * @internal
1816
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1817
- */
1818
- export namespace Deployments2Type$ {
1819
- /** @deprecated use `Deployments2Type$inboundSchema` instead. */
1820
- export const inboundSchema = Deployments2Type$inboundSchema;
1821
- /** @deprecated use `Deployments2Type$outboundSchema` instead. */
1822
- export const outboundSchema = Deployments2Type$outboundSchema;
1823
- }
1824
-
1825
- /** @internal */
1826
- export const Deployments2ImageUrl$inboundSchema: z.ZodType<
1827
- Deployments2ImageUrl,
1828
- z.ZodTypeDef,
1829
- unknown
1830
- > = z.object({
1831
- id: z.string().optional(),
1832
- url: z.string(),
1833
- detail: z.string().optional(),
1834
- });
1835
-
1836
- /** @internal */
1837
- export type Deployments2ImageUrl$Outbound = {
1838
- id?: string | undefined;
1839
- url: string;
1840
- detail?: string | undefined;
1841
- };
1842
-
1843
- /** @internal */
1844
- export const Deployments2ImageUrl$outboundSchema: z.ZodType<
1845
- Deployments2ImageUrl$Outbound,
1846
- z.ZodTypeDef,
1847
- Deployments2ImageUrl
1848
- > = z.object({
1849
- id: z.string().optional(),
1850
- url: z.string(),
1851
- detail: z.string().optional(),
1852
- });
1853
-
1854
- /**
1855
- * @internal
1856
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1857
- */
1858
- export namespace Deployments2ImageUrl$ {
1859
- /** @deprecated use `Deployments2ImageUrl$inboundSchema` instead. */
1860
- export const inboundSchema = Deployments2ImageUrl$inboundSchema;
1861
- /** @deprecated use `Deployments2ImageUrl$outboundSchema` instead. */
1862
- export const outboundSchema = Deployments2ImageUrl$outboundSchema;
1863
- /** @deprecated use `Deployments2ImageUrl$Outbound` instead. */
1864
- export type Outbound = Deployments2ImageUrl$Outbound;
1865
- }
1866
-
1867
- export function deployments2ImageUrlToJSON(
1868
- deployments2ImageUrl: Deployments2ImageUrl,
1869
- ): string {
1870
- return JSON.stringify(
1871
- Deployments2ImageUrl$outboundSchema.parse(deployments2ImageUrl),
1872
- );
1873
- }
1874
-
1875
- export function deployments2ImageUrlFromJSON(
1876
- jsonString: string,
1877
- ): SafeParseResult<Deployments2ImageUrl, SDKValidationError> {
1878
- return safeParse(
1879
- jsonString,
1880
- (x) => Deployments2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1881
- `Failed to parse 'Deployments2ImageUrl' from JSON`,
1882
- );
1883
- }
1884
-
1885
- /** @internal */
1886
- export const Deployments22$inboundSchema: z.ZodType<
1887
- Deployments22,
1888
- z.ZodTypeDef,
1889
- unknown
1890
- > = z.object({
1891
- type: Deployments2Type$inboundSchema,
1892
- image_url: z.lazy(() => Deployments2ImageUrl$inboundSchema),
1893
- }).transform((v) => {
1894
- return remap$(v, {
1895
- "image_url": "imageUrl",
1896
- });
1897
- });
1898
-
1899
- /** @internal */
1900
- export type Deployments22$Outbound = {
1901
- type: string;
1902
- image_url: Deployments2ImageUrl$Outbound;
1903
- };
1904
-
1905
- /** @internal */
1906
- export const Deployments22$outboundSchema: z.ZodType<
1907
- Deployments22$Outbound,
1908
- z.ZodTypeDef,
1909
- Deployments22
1910
- > = z.object({
1911
- type: Deployments2Type$outboundSchema,
1912
- imageUrl: z.lazy(() => Deployments2ImageUrl$outboundSchema),
1913
- }).transform((v) => {
1914
- return remap$(v, {
1915
- imageUrl: "image_url",
1916
- });
1917
- });
1918
-
1919
- /**
1920
- * @internal
1921
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1922
- */
1923
- export namespace Deployments22$ {
1924
- /** @deprecated use `Deployments22$inboundSchema` instead. */
1925
- export const inboundSchema = Deployments22$inboundSchema;
1926
- /** @deprecated use `Deployments22$outboundSchema` instead. */
1927
- export const outboundSchema = Deployments22$outboundSchema;
1928
- /** @deprecated use `Deployments22$Outbound` instead. */
1929
- export type Outbound = Deployments22$Outbound;
1930
- }
1931
-
1932
- export function deployments22ToJSON(deployments22: Deployments22): string {
1933
- return JSON.stringify(Deployments22$outboundSchema.parse(deployments22));
1934
- }
1935
-
1936
- export function deployments22FromJSON(
1937
- jsonString: string,
1938
- ): SafeParseResult<Deployments22, SDKValidationError> {
1939
- return safeParse(
1940
- jsonString,
1941
- (x) => Deployments22$inboundSchema.parse(JSON.parse(x)),
1942
- `Failed to parse 'Deployments22' from JSON`,
1943
- );
1944
- }
1945
-
1946
- /** @internal */
1947
- export const Deployments2DeploymentsResponseType$inboundSchema: z.ZodNativeEnum<
1948
- typeof Deployments2DeploymentsResponseType
1949
- > = z.nativeEnum(Deployments2DeploymentsResponseType);
1950
-
1951
- /** @internal */
1952
- export const Deployments2DeploymentsResponseType$outboundSchema:
1953
- z.ZodNativeEnum<typeof Deployments2DeploymentsResponseType> =
1954
- Deployments2DeploymentsResponseType$inboundSchema;
1955
-
1956
- /**
1957
- * @internal
1958
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1959
- */
1960
- export namespace Deployments2DeploymentsResponseType$ {
1961
- /** @deprecated use `Deployments2DeploymentsResponseType$inboundSchema` instead. */
1962
- export const inboundSchema =
1963
- Deployments2DeploymentsResponseType$inboundSchema;
1964
- /** @deprecated use `Deployments2DeploymentsResponseType$outboundSchema` instead. */
1965
- export const outboundSchema =
1966
- Deployments2DeploymentsResponseType$outboundSchema;
1967
- }
1968
-
1969
- /** @internal */
1970
- export const Deployments21$inboundSchema: z.ZodType<
1971
- Deployments21,
1972
- z.ZodTypeDef,
1973
- unknown
1974
- > = z.object({
1975
- type: Deployments2DeploymentsResponseType$inboundSchema,
1976
- text: z.string(),
1977
- });
1978
-
1979
- /** @internal */
1980
- export type Deployments21$Outbound = {
1981
- type: string;
1982
- text: string;
1983
- };
1984
-
1985
- /** @internal */
1986
- export const Deployments21$outboundSchema: z.ZodType<
1987
- Deployments21$Outbound,
1988
- z.ZodTypeDef,
1989
- Deployments21
1990
- > = z.object({
1991
- type: Deployments2DeploymentsResponseType$outboundSchema,
1992
- text: z.string(),
1993
- });
1994
-
1995
- /**
1996
- * @internal
1997
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1998
- */
1999
- export namespace Deployments21$ {
2000
- /** @deprecated use `Deployments21$inboundSchema` instead. */
2001
- export const inboundSchema = Deployments21$inboundSchema;
2002
- /** @deprecated use `Deployments21$outboundSchema` instead. */
2003
- export const outboundSchema = Deployments21$outboundSchema;
2004
- /** @deprecated use `Deployments21$Outbound` instead. */
2005
- export type Outbound = Deployments21$Outbound;
2006
- }
2007
-
2008
- export function deployments21ToJSON(deployments21: Deployments21): string {
2009
- return JSON.stringify(Deployments21$outboundSchema.parse(deployments21));
2010
- }
2011
-
2012
- export function deployments21FromJSON(
2013
- jsonString: string,
2014
- ): SafeParseResult<Deployments21, SDKValidationError> {
2015
- return safeParse(
2016
- jsonString,
2017
- (x) => Deployments21$inboundSchema.parse(JSON.parse(x)),
2018
- `Failed to parse 'Deployments21' from JSON`,
2019
- );
2020
- }
2021
-
2022
- /** @internal */
2023
- export const DeploymentsContent2$inboundSchema: z.ZodType<
2024
- DeploymentsContent2,
2025
- z.ZodTypeDef,
2026
- unknown
2027
- > = z.union([
2028
- z.lazy(() => Deployments21$inboundSchema),
2029
- z.lazy(() => Deployments22$inboundSchema),
2030
- z.lazy(() => Deployments23$inboundSchema),
2031
- ]);
2032
-
2033
- /** @internal */
2034
- export type DeploymentsContent2$Outbound =
2035
- | Deployments21$Outbound
2036
- | Deployments22$Outbound
2037
- | Deployments23$Outbound;
2038
-
2039
- /** @internal */
2040
- export const DeploymentsContent2$outboundSchema: z.ZodType<
2041
- DeploymentsContent2$Outbound,
2042
- z.ZodTypeDef,
2043
- DeploymentsContent2
2044
- > = z.union([
2045
- z.lazy(() => Deployments21$outboundSchema),
2046
- z.lazy(() => Deployments22$outboundSchema),
2047
- z.lazy(() => Deployments23$outboundSchema),
2048
- ]);
2049
-
2050
- /**
2051
- * @internal
2052
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2053
- */
2054
- export namespace DeploymentsContent2$ {
2055
- /** @deprecated use `DeploymentsContent2$inboundSchema` instead. */
2056
- export const inboundSchema = DeploymentsContent2$inboundSchema;
2057
- /** @deprecated use `DeploymentsContent2$outboundSchema` instead. */
2058
- export const outboundSchema = DeploymentsContent2$outboundSchema;
2059
- /** @deprecated use `DeploymentsContent2$Outbound` instead. */
2060
- export type Outbound = DeploymentsContent2$Outbound;
2061
- }
2062
-
2063
- export function deploymentsContent2ToJSON(
2064
- deploymentsContent2: DeploymentsContent2,
2065
- ): string {
2066
- return JSON.stringify(
2067
- DeploymentsContent2$outboundSchema.parse(deploymentsContent2),
2068
- );
2069
- }
2070
-
2071
- export function deploymentsContent2FromJSON(
2072
- jsonString: string,
2073
- ): SafeParseResult<DeploymentsContent2, SDKValidationError> {
2074
- return safeParse(
2075
- jsonString,
2076
- (x) => DeploymentsContent2$inboundSchema.parse(JSON.parse(x)),
2077
- `Failed to parse 'DeploymentsContent2' from JSON`,
2078
- );
2079
- }
2080
-
2081
- /** @internal */
2082
- export const DeploymentsContent$inboundSchema: z.ZodType<
2083
- DeploymentsContent,
2084
- z.ZodTypeDef,
2085
- unknown
2086
- > = z.union([
2087
- z.string(),
2088
- z.array(z.union([
2089
- z.lazy(() => Deployments21$inboundSchema),
2090
- z.lazy(() => Deployments22$inboundSchema),
2091
- z.lazy(() => Deployments23$inboundSchema),
2092
- ])),
2093
- ]);
2094
-
2095
- /** @internal */
2096
- export type DeploymentsContent$Outbound =
2097
- | string
2098
- | Array<
2099
- Deployments21$Outbound | Deployments22$Outbound | Deployments23$Outbound
2100
- >;
2101
-
2102
- /** @internal */
2103
- export const DeploymentsContent$outboundSchema: z.ZodType<
2104
- DeploymentsContent$Outbound,
2105
- z.ZodTypeDef,
2106
- DeploymentsContent
2107
- > = z.union([
2108
- z.string(),
2109
- z.array(z.union([
2110
- z.lazy(() => Deployments21$outboundSchema),
2111
- z.lazy(() => Deployments22$outboundSchema),
2112
- z.lazy(() => Deployments23$outboundSchema),
2113
- ])),
2114
- ]);
2115
-
2116
- /**
2117
- * @internal
2118
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2119
- */
2120
- export namespace DeploymentsContent$ {
2121
- /** @deprecated use `DeploymentsContent$inboundSchema` instead. */
2122
- export const inboundSchema = DeploymentsContent$inboundSchema;
2123
- /** @deprecated use `DeploymentsContent$outboundSchema` instead. */
2124
- export const outboundSchema = DeploymentsContent$outboundSchema;
2125
- /** @deprecated use `DeploymentsContent$Outbound` instead. */
2126
- export type Outbound = DeploymentsContent$Outbound;
2127
- }
2128
-
2129
- export function deploymentsContentToJSON(
2130
- deploymentsContent: DeploymentsContent,
2131
- ): string {
2132
- return JSON.stringify(
2133
- DeploymentsContent$outboundSchema.parse(deploymentsContent),
2134
- );
2135
- }
2136
-
2137
- export function deploymentsContentFromJSON(
2138
- jsonString: string,
2139
- ): SafeParseResult<DeploymentsContent, SDKValidationError> {
2140
- return safeParse(
2141
- jsonString,
2142
- (x) => DeploymentsContent$inboundSchema.parse(JSON.parse(x)),
2143
- `Failed to parse 'DeploymentsContent' from JSON`,
2144
- );
2145
- }
2146
-
2147
- /** @internal */
2148
- export const DeploymentsDeploymentsType$inboundSchema: z.ZodNativeEnum<
2149
- typeof DeploymentsDeploymentsType
2150
- > = z.nativeEnum(DeploymentsDeploymentsType);
2151
-
2152
- /** @internal */
2153
- export const DeploymentsDeploymentsType$outboundSchema: z.ZodNativeEnum<
2154
- typeof DeploymentsDeploymentsType
2155
- > = DeploymentsDeploymentsType$inboundSchema;
2156
-
2157
- /**
2158
- * @internal
2159
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2160
- */
2161
- export namespace DeploymentsDeploymentsType$ {
2162
- /** @deprecated use `DeploymentsDeploymentsType$inboundSchema` instead. */
2163
- export const inboundSchema = DeploymentsDeploymentsType$inboundSchema;
2164
- /** @deprecated use `DeploymentsDeploymentsType$outboundSchema` instead. */
2165
- export const outboundSchema = DeploymentsDeploymentsType$outboundSchema;
2166
- }
2167
-
2168
- /** @internal */
2169
- export const DeploymentsDeploymentsFunction$inboundSchema: z.ZodType<
2170
- DeploymentsDeploymentsFunction,
2171
- z.ZodTypeDef,
2172
- unknown
2173
- > = z.object({
2174
- name: z.string(),
2175
- arguments: z.string(),
2176
- });
2177
-
2178
- /** @internal */
2179
- export type DeploymentsDeploymentsFunction$Outbound = {
2180
- name: string;
2181
- arguments: string;
2182
- };
2183
-
2184
- /** @internal */
2185
- export const DeploymentsDeploymentsFunction$outboundSchema: z.ZodType<
2186
- DeploymentsDeploymentsFunction$Outbound,
2187
- z.ZodTypeDef,
2188
- DeploymentsDeploymentsFunction
2189
- > = z.object({
2190
- name: z.string(),
2191
- arguments: z.string(),
2192
- });
2193
-
2194
- /**
2195
- * @internal
2196
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2197
- */
2198
- export namespace DeploymentsDeploymentsFunction$ {
2199
- /** @deprecated use `DeploymentsDeploymentsFunction$inboundSchema` instead. */
2200
- export const inboundSchema = DeploymentsDeploymentsFunction$inboundSchema;
2201
- /** @deprecated use `DeploymentsDeploymentsFunction$outboundSchema` instead. */
2202
- export const outboundSchema = DeploymentsDeploymentsFunction$outboundSchema;
2203
- /** @deprecated use `DeploymentsDeploymentsFunction$Outbound` instead. */
2204
- export type Outbound = DeploymentsDeploymentsFunction$Outbound;
2205
- }
2206
-
2207
- export function deploymentsDeploymentsFunctionToJSON(
2208
- deploymentsDeploymentsFunction: DeploymentsDeploymentsFunction,
2209
- ): string {
2210
- return JSON.stringify(
2211
- DeploymentsDeploymentsFunction$outboundSchema.parse(
2212
- deploymentsDeploymentsFunction,
2213
- ),
2214
- );
2215
- }
2216
-
2217
- export function deploymentsDeploymentsFunctionFromJSON(
2218
- jsonString: string,
2219
- ): SafeParseResult<DeploymentsDeploymentsFunction, SDKValidationError> {
2220
- return safeParse(
2221
- jsonString,
2222
- (x) => DeploymentsDeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
2223
- `Failed to parse 'DeploymentsDeploymentsFunction' from JSON`,
2224
- );
2225
- }
2226
-
2227
- /** @internal */
2228
- export const DeploymentsToolCalls$inboundSchema: z.ZodType<
2229
- DeploymentsToolCalls,
2230
- z.ZodTypeDef,
2231
- unknown
2232
- > = z.object({
2233
- id: z.string().optional(),
2234
- index: z.number().optional(),
2235
- type: DeploymentsDeploymentsType$inboundSchema,
2236
- function: z.lazy(() => DeploymentsDeploymentsFunction$inboundSchema),
2237
- });
2238
-
2239
- /** @internal */
2240
- export type DeploymentsToolCalls$Outbound = {
2241
- id?: string | undefined;
2242
- index?: number | undefined;
2243
- type: string;
2244
- function: DeploymentsDeploymentsFunction$Outbound;
2245
- };
2246
-
2247
- /** @internal */
2248
- export const DeploymentsToolCalls$outboundSchema: z.ZodType<
2249
- DeploymentsToolCalls$Outbound,
2250
- z.ZodTypeDef,
2251
- DeploymentsToolCalls
2252
- > = z.object({
2253
- id: z.string().optional(),
2254
- index: z.number().optional(),
2255
- type: DeploymentsDeploymentsType$outboundSchema,
2256
- function: z.lazy(() => DeploymentsDeploymentsFunction$outboundSchema),
2257
- });
2258
-
2259
- /**
2260
- * @internal
2261
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2262
- */
2263
- export namespace DeploymentsToolCalls$ {
2264
- /** @deprecated use `DeploymentsToolCalls$inboundSchema` instead. */
2265
- export const inboundSchema = DeploymentsToolCalls$inboundSchema;
2266
- /** @deprecated use `DeploymentsToolCalls$outboundSchema` instead. */
2267
- export const outboundSchema = DeploymentsToolCalls$outboundSchema;
2268
- /** @deprecated use `DeploymentsToolCalls$Outbound` instead. */
2269
- export type Outbound = DeploymentsToolCalls$Outbound;
2270
- }
2271
-
2272
- export function deploymentsToolCallsToJSON(
2273
- deploymentsToolCalls: DeploymentsToolCalls,
2274
- ): string {
2275
- return JSON.stringify(
2276
- DeploymentsToolCalls$outboundSchema.parse(deploymentsToolCalls),
2277
- );
2278
- }
2279
-
2280
- export function deploymentsToolCallsFromJSON(
2281
- jsonString: string,
2282
- ): SafeParseResult<DeploymentsToolCalls, SDKValidationError> {
2283
- return safeParse(
2284
- jsonString,
2285
- (x) => DeploymentsToolCalls$inboundSchema.parse(JSON.parse(x)),
2286
- `Failed to parse 'DeploymentsToolCalls' from JSON`,
2287
- );
2288
- }
2289
-
2290
- /** @internal */
2291
- export const DeploymentsMessages$inboundSchema: z.ZodType<
2292
- DeploymentsMessages,
2293
- z.ZodTypeDef,
2294
- unknown
2295
- > = z.object({
2296
- role: DeploymentsRole$inboundSchema,
2297
- content: z.union([
2298
- z.string(),
2299
- z.array(z.union([
2300
- z.lazy(() => Deployments21$inboundSchema),
2301
- z.lazy(() => Deployments22$inboundSchema),
2302
- z.lazy(() => Deployments23$inboundSchema),
2303
- ])),
2304
- ]),
2305
- tool_calls: z.array(z.lazy(() => DeploymentsToolCalls$inboundSchema))
2306
- .optional(),
2307
- tool_call_id: z.string().optional(),
2308
- }).transform((v) => {
2309
- return remap$(v, {
2310
- "tool_calls": "toolCalls",
2311
- "tool_call_id": "toolCallId",
2312
- });
2313
- });
2314
-
2315
- /** @internal */
2316
- export type DeploymentsMessages$Outbound = {
2317
- role: string;
2318
- content:
2319
- | string
2320
- | Array<
2321
- Deployments21$Outbound | Deployments22$Outbound | Deployments23$Outbound
2322
- >;
2323
- tool_calls?: Array<DeploymentsToolCalls$Outbound> | undefined;
2324
- tool_call_id?: string | undefined;
2325
- };
2326
-
2327
- /** @internal */
2328
- export const DeploymentsMessages$outboundSchema: z.ZodType<
2329
- DeploymentsMessages$Outbound,
2330
- z.ZodTypeDef,
2331
- DeploymentsMessages
2332
- > = z.object({
2333
- role: DeploymentsRole$outboundSchema,
2334
- content: z.union([
2335
- z.string(),
2336
- z.array(z.union([
2337
- z.lazy(() => Deployments21$outboundSchema),
2338
- z.lazy(() => Deployments22$outboundSchema),
2339
- z.lazy(() => Deployments23$outboundSchema),
2340
- ])),
2341
- ]),
2342
- toolCalls: z.array(z.lazy(() => DeploymentsToolCalls$outboundSchema))
2343
- .optional(),
2344
- toolCallId: z.string().optional(),
2345
- }).transform((v) => {
2346
- return remap$(v, {
2347
- toolCalls: "tool_calls",
2348
- toolCallId: "tool_call_id",
2349
- });
2350
- });
2351
-
2352
- /**
2353
- * @internal
2354
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2355
- */
2356
- export namespace DeploymentsMessages$ {
2357
- /** @deprecated use `DeploymentsMessages$inboundSchema` instead. */
2358
- export const inboundSchema = DeploymentsMessages$inboundSchema;
2359
- /** @deprecated use `DeploymentsMessages$outboundSchema` instead. */
2360
- export const outboundSchema = DeploymentsMessages$outboundSchema;
2361
- /** @deprecated use `DeploymentsMessages$Outbound` instead. */
2362
- export type Outbound = DeploymentsMessages$Outbound;
2363
- }
2364
-
2365
- export function deploymentsMessagesToJSON(
2366
- deploymentsMessages: DeploymentsMessages,
2367
- ): string {
2368
- return JSON.stringify(
2369
- DeploymentsMessages$outboundSchema.parse(deploymentsMessages),
2370
- );
2371
- }
2372
-
2373
- export function deploymentsMessagesFromJSON(
2374
- jsonString: string,
2375
- ): SafeParseResult<DeploymentsMessages, SDKValidationError> {
2376
- return safeParse(
2377
- jsonString,
2378
- (x) => DeploymentsMessages$inboundSchema.parse(JSON.parse(x)),
2379
- `Failed to parse 'DeploymentsMessages' from JSON`,
2380
- );
2381
- }
2382
-
2383
- /** @internal */
2384
- export const DeploymentsPromptConfig$inboundSchema: z.ZodType<
2385
- DeploymentsPromptConfig,
2386
- z.ZodTypeDef,
2387
- unknown
2388
- > = z.object({
2389
- tools: z.array(z.lazy(() => DeploymentsTools$inboundSchema)),
2390
- model: z.string(),
2391
- model_type: DeploymentsModelType$inboundSchema,
2392
- model_parameters: z.lazy(() => DeploymentsModelParameters$inboundSchema),
2393
- provider: DeploymentsProvider$inboundSchema,
2394
- messages: z.array(z.lazy(() => DeploymentsMessages$inboundSchema)),
2395
- }).transform((v) => {
2396
- return remap$(v, {
2397
- "model_type": "modelType",
2398
- "model_parameters": "modelParameters",
2399
- });
2400
- });
2401
-
2402
- /** @internal */
2403
- export type DeploymentsPromptConfig$Outbound = {
2404
- tools: Array<DeploymentsTools$Outbound>;
2405
- model: string;
2406
- model_type: string;
2407
- model_parameters: DeploymentsModelParameters$Outbound;
2408
- provider: string;
2409
- messages: Array<DeploymentsMessages$Outbound>;
2410
- };
2411
-
2412
- /** @internal */
2413
- export const DeploymentsPromptConfig$outboundSchema: z.ZodType<
2414
- DeploymentsPromptConfig$Outbound,
2415
- z.ZodTypeDef,
2416
- DeploymentsPromptConfig
2417
- > = z.object({
2418
- tools: z.array(z.lazy(() => DeploymentsTools$outboundSchema)),
2419
- model: z.string(),
2420
- modelType: DeploymentsModelType$outboundSchema,
2421
- modelParameters: z.lazy(() => DeploymentsModelParameters$outboundSchema),
2422
- provider: DeploymentsProvider$outboundSchema,
2423
- messages: z.array(z.lazy(() => DeploymentsMessages$outboundSchema)),
2424
- }).transform((v) => {
2425
- return remap$(v, {
2426
- modelType: "model_type",
2427
- modelParameters: "model_parameters",
2428
- });
2429
- });
2430
-
2431
- /**
2432
- * @internal
2433
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2434
- */
2435
- export namespace DeploymentsPromptConfig$ {
2436
- /** @deprecated use `DeploymentsPromptConfig$inboundSchema` instead. */
2437
- export const inboundSchema = DeploymentsPromptConfig$inboundSchema;
2438
- /** @deprecated use `DeploymentsPromptConfig$outboundSchema` instead. */
2439
- export const outboundSchema = DeploymentsPromptConfig$outboundSchema;
2440
- /** @deprecated use `DeploymentsPromptConfig$Outbound` instead. */
2441
- export type Outbound = DeploymentsPromptConfig$Outbound;
2442
- }
2443
-
2444
- export function deploymentsPromptConfigToJSON(
2445
- deploymentsPromptConfig: DeploymentsPromptConfig,
2446
- ): string {
2447
- return JSON.stringify(
2448
- DeploymentsPromptConfig$outboundSchema.parse(deploymentsPromptConfig),
2449
- );
2450
- }
2451
-
2452
- export function deploymentsPromptConfigFromJSON(
2453
- jsonString: string,
2454
- ): SafeParseResult<DeploymentsPromptConfig, SDKValidationError> {
2455
- return safeParse(
2456
- jsonString,
2457
- (x) => DeploymentsPromptConfig$inboundSchema.parse(JSON.parse(x)),
2458
- `Failed to parse 'DeploymentsPromptConfig' from JSON`,
2459
- );
2460
- }
2461
-
2462
- /** @internal */
2463
- export const DeploymentsData$inboundSchema: z.ZodType<
2464
- DeploymentsData,
2465
- z.ZodTypeDef,
2466
- unknown
2467
- > = z.object({
2468
- id: z.string(),
2469
- created: z.string(),
2470
- updated: z.string(),
2471
- key: z.string(),
2472
- description: z.string(),
2473
- prompt_config: z.lazy(() => DeploymentsPromptConfig$inboundSchema),
2474
- version: z.string(),
2475
- }).transform((v) => {
2476
- return remap$(v, {
2477
- "prompt_config": "promptConfig",
2478
- });
2479
- });
2480
-
2481
- /** @internal */
2482
- export type DeploymentsData$Outbound = {
2483
- id: string;
2484
- created: string;
2485
- updated: string;
2486
- key: string;
2487
- description: string;
2488
- prompt_config: DeploymentsPromptConfig$Outbound;
2489
- version: string;
2490
- };
2491
-
2492
- /** @internal */
2493
- export const DeploymentsData$outboundSchema: z.ZodType<
2494
- DeploymentsData$Outbound,
2495
- z.ZodTypeDef,
2496
- DeploymentsData
2497
- > = z.object({
2498
- id: z.string(),
2499
- created: z.string(),
2500
- updated: z.string(),
2501
- key: z.string(),
2502
- description: z.string(),
2503
- promptConfig: z.lazy(() => DeploymentsPromptConfig$outboundSchema),
2504
- version: z.string(),
2505
- }).transform((v) => {
2506
- return remap$(v, {
2507
- promptConfig: "prompt_config",
2508
- });
2509
- });
2510
-
2511
- /**
2512
- * @internal
2513
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2514
- */
2515
- export namespace DeploymentsData$ {
2516
- /** @deprecated use `DeploymentsData$inboundSchema` instead. */
2517
- export const inboundSchema = DeploymentsData$inboundSchema;
2518
- /** @deprecated use `DeploymentsData$outboundSchema` instead. */
2519
- export const outboundSchema = DeploymentsData$outboundSchema;
2520
- /** @deprecated use `DeploymentsData$Outbound` instead. */
2521
- export type Outbound = DeploymentsData$Outbound;
2522
- }
2523
-
2524
- export function deploymentsDataToJSON(
2525
- deploymentsData: DeploymentsData,
2526
- ): string {
2527
- return JSON.stringify(DeploymentsData$outboundSchema.parse(deploymentsData));
2528
- }
2529
-
2530
- export function deploymentsDataFromJSON(
2531
- jsonString: string,
2532
- ): SafeParseResult<DeploymentsData, SDKValidationError> {
2533
- return safeParse(
2534
- jsonString,
2535
- (x) => DeploymentsData$inboundSchema.parse(JSON.parse(x)),
2536
- `Failed to parse 'DeploymentsData' from JSON`,
2537
- );
2538
- }
2539
-
2540
- /** @internal */
2541
- export const DeploymentsResponseBody$inboundSchema: z.ZodType<
2542
- DeploymentsResponseBody,
2543
- z.ZodTypeDef,
2544
- unknown
2545
- > = z.object({
2546
- object: DeploymentsObject$inboundSchema,
2547
- data: z.array(z.lazy(() => DeploymentsData$inboundSchema)),
2548
- has_more: z.boolean(),
2549
- }).transform((v) => {
2550
- return remap$(v, {
2551
- "has_more": "hasMore",
2552
- });
2553
- });
2554
-
2555
- /** @internal */
2556
- export type DeploymentsResponseBody$Outbound = {
2557
- object: string;
2558
- data: Array<DeploymentsData$Outbound>;
2559
- has_more: boolean;
2560
- };
2561
-
2562
- /** @internal */
2563
- export const DeploymentsResponseBody$outboundSchema: z.ZodType<
2564
- DeploymentsResponseBody$Outbound,
2565
- z.ZodTypeDef,
2566
- DeploymentsResponseBody
2567
- > = z.object({
2568
- object: DeploymentsObject$outboundSchema,
2569
- data: z.array(z.lazy(() => DeploymentsData$outboundSchema)),
2570
- hasMore: z.boolean(),
2571
- }).transform((v) => {
2572
- return remap$(v, {
2573
- hasMore: "has_more",
2574
- });
2575
- });
2576
-
2577
- /**
2578
- * @internal
2579
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2580
- */
2581
- export namespace DeploymentsResponseBody$ {
2582
- /** @deprecated use `DeploymentsResponseBody$inboundSchema` instead. */
2583
- export const inboundSchema = DeploymentsResponseBody$inboundSchema;
2584
- /** @deprecated use `DeploymentsResponseBody$outboundSchema` instead. */
2585
- export const outboundSchema = DeploymentsResponseBody$outboundSchema;
2586
- /** @deprecated use `DeploymentsResponseBody$Outbound` instead. */
2587
- export type Outbound = DeploymentsResponseBody$Outbound;
2588
- }
2589
-
2590
- export function deploymentsResponseBodyToJSON(
2591
- deploymentsResponseBody: DeploymentsResponseBody,
2592
- ): string {
2593
- return JSON.stringify(
2594
- DeploymentsResponseBody$outboundSchema.parse(deploymentsResponseBody),
2595
- );
2596
- }
2597
-
2598
- export function deploymentsResponseBodyFromJSON(
2599
- jsonString: string,
2600
- ): SafeParseResult<DeploymentsResponseBody, SDKValidationError> {
2601
- return safeParse(
2602
- jsonString,
2603
- (x) => DeploymentsResponseBody$inboundSchema.parse(JSON.parse(x)),
2604
- `Failed to parse 'DeploymentsResponseBody' from JSON`,
2605
- );
2606
- }