@orq-ai/node 3.9.2 → 3.10.0-rc.0

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