@orq-ai/node 3.10.2 → 3.11.0-rc.1

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