@orq-ai/node 3.5.13 → 3.6.0-rc.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/README.md +6 -0
  2. package/bin/mcp-server.js +4828 -608
  3. package/bin/mcp-server.js.map +44 -35
  4. package/docs/sdks/datasets/README.md +91 -4
  5. package/docs/sdks/deployments/README.md +89 -0
  6. package/docs/sdks/knowledge/README.md +81 -4
  7. package/docs/sdks/prompts/README.md +4 -4
  8. package/funcs/datasetsCreateExperiment.d.ts +16 -0
  9. package/funcs/datasetsCreateExperiment.d.ts.map +1 -0
  10. package/funcs/datasetsCreateExperiment.js +118 -0
  11. package/funcs/datasetsCreateExperiment.js.map +1 -0
  12. package/funcs/deploymentsCreateExperiment.d.ts +16 -0
  13. package/funcs/deploymentsCreateExperiment.d.ts.map +1 -0
  14. package/funcs/deploymentsCreateExperiment.js +118 -0
  15. package/funcs/deploymentsCreateExperiment.js.map +1 -0
  16. package/funcs/knowledgeSearch.d.ts +16 -0
  17. package/funcs/knowledgeSearch.d.ts.map +1 -0
  18. package/funcs/knowledgeSearch.js +118 -0
  19. package/funcs/knowledgeSearch.js.map +1 -0
  20. package/jsr.json +1 -1
  21. package/lib/config.d.ts +2 -2
  22. package/lib/config.js +2 -2
  23. package/lib/config.js.map +1 -1
  24. package/mcp-server/mcp-server.js +1 -1
  25. package/mcp-server/mcp-server.js.map +1 -1
  26. package/mcp-server/server.d.ts.map +1 -1
  27. package/mcp-server/server.js +7 -1
  28. package/mcp-server/server.js.map +1 -1
  29. package/mcp-server/tools/datasetsCreateExperiment.d.ts +8 -0
  30. package/mcp-server/tools/datasetsCreateExperiment.d.ts.map +1 -0
  31. package/mcp-server/tools/datasetsCreateExperiment.js +64 -0
  32. package/mcp-server/tools/datasetsCreateExperiment.js.map +1 -0
  33. package/mcp-server/tools/deploymentsCreateExperiment.d.ts +8 -0
  34. package/mcp-server/tools/deploymentsCreateExperiment.d.ts.map +1 -0
  35. package/mcp-server/tools/deploymentsCreateExperiment.js +64 -0
  36. package/mcp-server/tools/deploymentsCreateExperiment.js.map +1 -0
  37. package/mcp-server/tools/knowledgeSearch.d.ts +8 -0
  38. package/mcp-server/tools/knowledgeSearch.d.ts.map +1 -0
  39. package/mcp-server/tools/knowledgeSearch.js +64 -0
  40. package/mcp-server/tools/knowledgeSearch.js.map +1 -0
  41. package/models/components/deployments.d.ts +1442 -67
  42. package/models/components/deployments.d.ts.map +1 -1
  43. package/models/components/deployments.js +1881 -126
  44. package/models/components/deployments.js.map +1 -1
  45. package/models/operations/bulkcreatedatapoints.js +2 -2
  46. package/models/operations/createchunk.d.ts +32 -17
  47. package/models/operations/createchunk.d.ts.map +1 -1
  48. package/models/operations/createchunk.js +30 -19
  49. package/models/operations/createchunk.js.map +1 -1
  50. package/models/operations/createcontact.js +2 -2
  51. package/models/operations/createdataset.js +2 -2
  52. package/models/operations/createdatasetexperiment.d.ts +140 -0
  53. package/models/operations/createdatasetexperiment.d.ts.map +1 -0
  54. package/models/operations/createdatasetexperiment.js +188 -0
  55. package/models/operations/createdatasetexperiment.js.map +1 -0
  56. package/models/operations/createdatasetitem.js +2 -2
  57. package/models/operations/createdatasource.js +2 -2
  58. package/models/operations/createdeploymentexperiment.d.ts +152 -0
  59. package/models/operations/createdeploymentexperiment.d.ts.map +1 -0
  60. package/models/operations/createdeploymentexperiment.js +189 -0
  61. package/models/operations/createdeploymentexperiment.js.map +1 -0
  62. package/models/operations/deploymentcreatemetric.d.ts +240 -28
  63. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  64. package/models/operations/deploymentcreatemetric.js +236 -29
  65. package/models/operations/deploymentcreatemetric.js.map +1 -1
  66. package/models/operations/deploymentgetconfig.d.ts +1428 -53
  67. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  68. package/models/operations/deploymentgetconfig.js +1876 -120
  69. package/models/operations/deploymentgetconfig.js.map +1 -1
  70. package/models/operations/deploymentinvoke.d.ts +34 -4
  71. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  72. package/models/operations/deploymentinvoke.js +30 -4
  73. package/models/operations/deploymentinvoke.js.map +1 -1
  74. package/models/operations/deploymentstream.d.ts +1425 -50
  75. package/models/operations/deploymentstream.d.ts.map +1 -1
  76. package/models/operations/deploymentstream.js +1840 -88
  77. package/models/operations/deploymentstream.js.map +1 -1
  78. package/models/operations/fileget.js +2 -2
  79. package/models/operations/filelist.js +2 -2
  80. package/models/operations/fileupload.d.ts +15 -15
  81. package/models/operations/fileupload.d.ts.map +1 -1
  82. package/models/operations/fileupload.js +20 -21
  83. package/models/operations/fileupload.js.map +1 -1
  84. package/models/operations/getonechunk.d.ts +24 -3
  85. package/models/operations/getonechunk.d.ts.map +1 -1
  86. package/models/operations/getonechunk.js +26 -3
  87. package/models/operations/getonechunk.js.map +1 -1
  88. package/models/operations/index.d.ts +3 -0
  89. package/models/operations/index.d.ts.map +1 -1
  90. package/models/operations/index.js +3 -0
  91. package/models/operations/index.js.map +1 -1
  92. package/models/operations/listchunks.d.ts +24 -3
  93. package/models/operations/listchunks.d.ts.map +1 -1
  94. package/models/operations/listchunks.js +26 -3
  95. package/models/operations/listchunks.js.map +1 -1
  96. package/models/operations/listdatasetdatapoints.js +2 -2
  97. package/models/operations/listdatasets.js +2 -2
  98. package/models/operations/listdatasources.js +2 -2
  99. package/models/operations/retrievedatapoint.js +2 -2
  100. package/models/operations/retrievedataset.js +2 -2
  101. package/models/operations/retrievedatasource.js +2 -2
  102. package/models/operations/searchknowledge.d.ts +1379 -0
  103. package/models/operations/searchknowledge.d.ts.map +1 -0
  104. package/models/operations/searchknowledge.js +1817 -0
  105. package/models/operations/searchknowledge.js.map +1 -0
  106. package/models/operations/updatechunk.d.ts +32 -17
  107. package/models/operations/updatechunk.d.ts.map +1 -1
  108. package/models/operations/updatechunk.js +30 -19
  109. package/models/operations/updatechunk.js.map +1 -1
  110. package/models/operations/updatedatapoint.js +2 -2
  111. package/models/operations/updatedataset.js +2 -2
  112. package/models/operations/updatedatasource.js +2 -2
  113. package/package.json +3 -2
  114. package/sdk/datasets.d.ts +7 -0
  115. package/sdk/datasets.d.ts.map +1 -1
  116. package/sdk/datasets.js +10 -0
  117. package/sdk/datasets.js.map +1 -1
  118. package/sdk/deployments.d.ts +7 -0
  119. package/sdk/deployments.d.ts.map +1 -1
  120. package/sdk/deployments.js +10 -0
  121. package/sdk/deployments.js.map +1 -1
  122. package/sdk/knowledge.d.ts +7 -0
  123. package/sdk/knowledge.d.ts.map +1 -1
  124. package/sdk/knowledge.js +10 -0
  125. package/sdk/knowledge.js.map +1 -1
  126. package/src/lib/config.ts +2 -2
  127. package/src/mcp-server/mcp-server.ts +1 -1
  128. package/src/mcp-server/server.ts +7 -1
  129. package/src/models/components/deployments.ts +3655 -165
  130. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  131. package/src/models/operations/createchunk.ts +65 -35
  132. package/src/models/operations/createcontact.ts +2 -2
  133. package/src/models/operations/createdataset.ts +2 -2
  134. package/src/models/operations/createdatasetitem.ts +2 -2
  135. package/src/models/operations/createdatasource.ts +2 -2
  136. package/src/models/operations/deploymentcreatemetric.ts +517 -40
  137. package/src/models/operations/deploymentgetconfig.ts +3656 -118
  138. package/src/models/operations/deploymentinvoke.ts +64 -8
  139. package/src/models/operations/deploymentstream.ts +3997 -116
  140. package/src/models/operations/fileget.ts +2 -2
  141. package/src/models/operations/filelist.ts +2 -2
  142. package/src/models/operations/fileupload.ts +37 -34
  143. package/src/models/operations/getonechunk.ts +55 -5
  144. package/src/models/operations/index.ts +3 -0
  145. package/src/models/operations/listchunks.ts +55 -5
  146. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  147. package/src/models/operations/listdatasets.ts +2 -2
  148. package/src/models/operations/listdatasources.ts +2 -2
  149. package/src/models/operations/retrievedatapoint.ts +2 -2
  150. package/src/models/operations/retrievedataset.ts +2 -2
  151. package/src/models/operations/retrievedatasource.ts +2 -2
  152. package/src/models/operations/updatechunk.ts +65 -35
  153. package/src/models/operations/updatedatapoint.ts +2 -2
  154. package/src/models/operations/updatedataset.ts +2 -2
  155. package/src/models/operations/updatedatasource.ts +2 -2
  156. package/src/sdk/datasets.ts +18 -0
  157. package/src/sdk/deployments.ts +18 -0
  158. package/src/sdk/knowledge.ts +18 -0
  159. package/packages/orq-rc/FUNCTIONS.md +0 -106
  160. package/packages/orq-rc/README.md +0 -707
  161. package/packages/orq-rc/RUNTIMES.md +0 -48
  162. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -84
  163. package/packages/orq-rc/docs/sdks/datasets/README.md +0 -1027
  164. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -405
  165. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -92
  166. package/packages/orq-rc/docs/sdks/files/README.md +0 -311
  167. package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1273
  168. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -86
  169. package/packages/orq-rc/docs/sdks/models/README.md +0 -79
  170. package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
  171. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -576
  172. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -80
  173. package/packages/orq-rc/jsr.json +0 -28
  174. package/packages/orq-rc/package-lock.json +0 -3217
  175. package/packages/orq-rc/package.json +0 -45
  176. package/packages/orq-rc/src/core.ts +0 -13
  177. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -154
  178. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -161
  179. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -159
  180. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -161
  181. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +0 -165
  182. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -161
  183. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -176
  184. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -161
  185. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -168
  186. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -169
  187. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -175
  188. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -170
  189. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -173
  190. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -162
  191. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -170
  192. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -170
  193. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -162
  194. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -178
  195. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -154
  196. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -174
  197. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -158
  198. package/packages/orq-rc/src/funcs/filesGet.ts +0 -160
  199. package/packages/orq-rc/src/funcs/filesList.ts +0 -161
  200. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -152
  201. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -165
  202. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -160
  203. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -161
  204. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -168
  205. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -167
  206. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -163
  207. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -172
  208. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -168
  209. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -160
  210. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -167
  211. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -163
  212. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -158
  213. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -168
  214. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -164
  215. package/packages/orq-rc/src/funcs/modelsList.ts +0 -136
  216. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -154
  217. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -158
  218. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -175
  219. package/packages/orq-rc/src/funcs/promptsList.ts +0 -161
  220. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -167
  221. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -160
  222. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -167
  223. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -155
  224. package/packages/orq-rc/src/hooks/global.ts +0 -44
  225. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  226. package/packages/orq-rc/src/hooks/index.ts +0 -6
  227. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  228. package/packages/orq-rc/src/hooks/types.ts +0 -110
  229. package/packages/orq-rc/src/index.ts +0 -7
  230. package/packages/orq-rc/src/lib/base64.ts +0 -37
  231. package/packages/orq-rc/src/lib/config.ts +0 -70
  232. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  233. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  234. package/packages/orq-rc/src/lib/env.ts +0 -73
  235. package/packages/orq-rc/src/lib/event-streams.ts +0 -264
  236. package/packages/orq-rc/src/lib/files.ts +0 -40
  237. package/packages/orq-rc/src/lib/http.ts +0 -323
  238. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  239. package/packages/orq-rc/src/lib/logger.ts +0 -9
  240. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  241. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  242. package/packages/orq-rc/src/lib/retries.ts +0 -218
  243. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  244. package/packages/orq-rc/src/lib/sdks.ts +0 -401
  245. package/packages/orq-rc/src/lib/security.ts +0 -261
  246. package/packages/orq-rc/src/lib/url.ts +0 -33
  247. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -125
  248. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -140
  249. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  250. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  251. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  252. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  253. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
  254. package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
  255. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  256. package/packages/orq-rc/src/mcp-server/server.ts +0 -163
  257. package/packages/orq-rc/src/mcp-server/shared.ts +0 -75
  258. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  259. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  260. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  261. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  262. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +0 -37
  263. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  264. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  265. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  266. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  267. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  268. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  269. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  270. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  271. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  272. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  273. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  274. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  275. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  276. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  277. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  278. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  279. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  280. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  281. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  282. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  283. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  284. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  285. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  286. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  287. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  288. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  289. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  290. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  291. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  292. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  296. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  297. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  298. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  299. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  300. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  301. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  302. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  303. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  304. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  305. package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
  306. package/packages/orq-rc/src/models/components/deployments.ts +0 -7749
  307. package/packages/orq-rc/src/models/components/index.ts +0 -6
  308. package/packages/orq-rc/src/models/components/security.ts +0 -71
  309. package/packages/orq-rc/src/models/errors/apierror.ts +0 -27
  310. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -71
  311. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -82
  312. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  313. package/packages/orq-rc/src/models/errors/index.ts +0 -10
  314. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -97
  315. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -71
  316. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +0 -1828
  317. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -75
  318. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -432
  319. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -256
  320. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -296
  321. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -1752
  322. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
  323. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
  324. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -846
  325. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -3691
  326. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
  327. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -81
  328. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -75
  329. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
  330. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
  331. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
  332. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5435
  333. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -9694
  334. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1255
  335. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2128
  336. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -9946
  337. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
  338. package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
  339. package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
  340. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
  341. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2100
  342. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
  343. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -537
  344. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1966
  345. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1962
  346. package/packages/orq-rc/src/models/operations/index.ts +0 -54
  347. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
  348. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1077
  349. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
  350. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -447
  351. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -663
  352. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
  353. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2096
  354. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
  355. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -930
  356. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -288
  357. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
  358. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
  359. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -1741
  360. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -393
  361. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
  362. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -980
  363. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -3873
  364. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  365. package/packages/orq-rc/src/sdk/datasets.ts +0 -240
  366. package/packages/orq-rc/src/sdk/deployments.ts +0 -107
  367. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  368. package/packages/orq-rc/src/sdk/files.ts +0 -78
  369. package/packages/orq-rc/src/sdk/index.ts +0 -5
  370. package/packages/orq-rc/src/sdk/knowledge.ts +0 -264
  371. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  372. package/packages/orq-rc/src/sdk/models.ts +0 -25
  373. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  374. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  375. package/packages/orq-rc/src/sdk/sdk.ts +0 -61
  376. package/packages/orq-rc/src/types/async.ts +0 -68
  377. package/packages/orq-rc/src/types/blobs.ts +0 -31
  378. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  379. package/packages/orq-rc/src/types/enums.ts +0 -16
  380. package/packages/orq-rc/src/types/fp.ts +0 -50
  381. package/packages/orq-rc/src/types/index.ts +0 -11
  382. package/packages/orq-rc/src/types/operations.ts +0 -105
  383. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  384. package/packages/orq-rc/src/types/streams.ts +0 -21
  385. package/packages/orq-rc/tsconfig.json +0 -41
  386. /package/{packages/orq-rc/src → src}/funcs/datasetsCreateExperiment.ts +0 -0
  387. /package/{packages/orq-rc/src → src}/funcs/deploymentsCreateExperiment.ts +0 -0
  388. /package/{packages/orq-rc/src → src}/funcs/knowledgeSearch.ts +0 -0
  389. /package/{packages/orq-rc/src → src}/mcp-server/tools/datasetsCreateExperiment.ts +0 -0
  390. /package/{packages/orq-rc/src → src}/mcp-server/tools/deploymentsCreateExperiment.ts +0 -0
  391. /package/{packages/orq-rc/src → src}/mcp-server/tools/knowledgeSearch.ts +0 -0
  392. /package/{packages/orq-rc/src → src}/models/operations/createdatasetexperiment.ts +0 -0
  393. /package/{packages/orq-rc/src → src}/models/operations/createdeploymentexperiment.ts +0 -0
  394. /package/{packages/orq-rc/src → src}/models/operations/searchknowledge.ts +0 -0
@@ -1,1966 +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 GetOnePromptRequest = {
13
- /**
14
- * Unique identifier of the prompt
15
- */
16
- id: string;
17
- };
18
-
19
- export const GetOnePromptType = {
20
- Prompt: "prompt",
21
- } as const;
22
- export type GetOnePromptType = ClosedEnum<typeof GetOnePromptType>;
23
-
24
- /**
25
- * The modality of the model
26
- */
27
- export const GetOnePromptModelType = {
28
- Chat: "chat",
29
- Completion: "completion",
30
- Embedding: "embedding",
31
- Vision: "vision",
32
- Image: "image",
33
- Tts: "tts",
34
- Stt: "stt",
35
- Rerank: "rerank",
36
- Moderations: "moderations",
37
- } as const;
38
- /**
39
- * The modality of the model
40
- */
41
- export type GetOnePromptModelType = ClosedEnum<typeof GetOnePromptModelType>;
42
-
43
- /**
44
- * Only supported on `image` models.
45
- */
46
- export const GetOnePromptFormat = {
47
- Url: "url",
48
- B64Json: "b64_json",
49
- Text: "text",
50
- JsonObject: "json_object",
51
- } as const;
52
- /**
53
- * Only supported on `image` models.
54
- */
55
- export type GetOnePromptFormat = ClosedEnum<typeof GetOnePromptFormat>;
56
-
57
- export const GetOnePromptResponseFormatPromptsType = {
58
- JsonObject: "json_object",
59
- } as const;
60
- export type GetOnePromptResponseFormatPromptsType = ClosedEnum<
61
- typeof GetOnePromptResponseFormatPromptsType
62
- >;
63
-
64
- export type GetOnePromptResponseFormat2 = {
65
- type: GetOnePromptResponseFormatPromptsType;
66
- };
67
-
68
- export const GetOnePromptResponseFormatType = {
69
- JsonSchema: "json_schema",
70
- } as const;
71
- export type GetOnePromptResponseFormatType = ClosedEnum<
72
- typeof GetOnePromptResponseFormatType
73
- >;
74
-
75
- export type GetOnePromptResponseFormatJsonSchema = {
76
- name: string;
77
- strict: boolean;
78
- schema: { [k: string]: any };
79
- };
80
-
81
- export type GetOnePromptResponseFormat1 = {
82
- type: GetOnePromptResponseFormatType;
83
- jsonSchema: GetOnePromptResponseFormatJsonSchema;
84
- };
85
-
86
- /**
87
- * An object specifying the format that the model must output.
88
- *
89
- * @remarks
90
- *
91
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
92
- *
93
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
94
- *
95
- * 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.
96
- */
97
- export type GetOnePromptResponseFormat =
98
- | GetOnePromptResponseFormat2
99
- | GetOnePromptResponseFormat1;
100
-
101
- /**
102
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
103
- */
104
- export const GetOnePromptPhotoRealVersion = {
105
- V1: "v1",
106
- V2: "v2",
107
- } as const;
108
- /**
109
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
110
- */
111
- export type GetOnePromptPhotoRealVersion = ClosedEnum<
112
- typeof GetOnePromptPhotoRealVersion
113
- >;
114
-
115
- /**
116
- * The format to return the embeddings
117
- */
118
- export const GetOnePromptEncodingFormat = {
119
- Float: "float",
120
- Base64: "base64",
121
- } as const;
122
- /**
123
- * The format to return the embeddings
124
- */
125
- export type GetOnePromptEncodingFormat = ClosedEnum<
126
- typeof GetOnePromptEncodingFormat
127
- >;
128
-
129
- /**
130
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
131
- */
132
- export const GetOnePromptReasoningEffort = {
133
- Low: "low",
134
- Medium: "medium",
135
- High: "high",
136
- } as const;
137
- /**
138
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
139
- */
140
- export type GetOnePromptReasoningEffort = ClosedEnum<
141
- typeof GetOnePromptReasoningEffort
142
- >;
143
-
144
- /**
145
- * Model Parameters: Not all parameters apply to every model
146
- */
147
- export type GetOnePromptModelParameters = {
148
- /**
149
- * Only supported on `chat` and `completion` models.
150
- */
151
- temperature?: number | undefined;
152
- /**
153
- * Only supported on `chat` and `completion` models.
154
- */
155
- maxTokens?: number | undefined;
156
- /**
157
- * Only supported on `chat` and `completion` models.
158
- */
159
- topK?: number | undefined;
160
- /**
161
- * Only supported on `chat` and `completion` models.
162
- */
163
- topP?: number | undefined;
164
- /**
165
- * Only supported on `chat` and `completion` models.
166
- */
167
- frequencyPenalty?: number | undefined;
168
- /**
169
- * Only supported on `chat` and `completion` models.
170
- */
171
- presencePenalty?: number | undefined;
172
- /**
173
- * Only supported on `image` models.
174
- */
175
- numImages?: number | undefined;
176
- /**
177
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
178
- */
179
- seed?: number | undefined;
180
- /**
181
- * Only supported on `image` models.
182
- */
183
- format?: GetOnePromptFormat | undefined;
184
- /**
185
- * Only supported on `image` models.
186
- */
187
- dimensions?: string | undefined;
188
- /**
189
- * Only supported on `image` models.
190
- */
191
- quality?: string | undefined;
192
- /**
193
- * Only supported on `image` models.
194
- */
195
- style?: string | undefined;
196
- /**
197
- * An object specifying the format that the model must output.
198
- *
199
- * @remarks
200
- *
201
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
202
- *
203
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
204
- *
205
- * 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.
206
- */
207
- responseFormat?:
208
- | GetOnePromptResponseFormat2
209
- | GetOnePromptResponseFormat1
210
- | null
211
- | undefined;
212
- /**
213
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
214
- */
215
- photoRealVersion?: GetOnePromptPhotoRealVersion | undefined;
216
- /**
217
- * The format to return the embeddings
218
- */
219
- encodingFormat?: GetOnePromptEncodingFormat | undefined;
220
- /**
221
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
222
- */
223
- reasoningEffort?: GetOnePromptReasoningEffort | undefined;
224
- /**
225
- * 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`
226
- */
227
- budgetTokens?: number | undefined;
228
- };
229
-
230
- export const GetOnePromptProvider = {
231
- Cohere: "cohere",
232
- Openai: "openai",
233
- Anthropic: "anthropic",
234
- Huggingface: "huggingface",
235
- Replicate: "replicate",
236
- Google: "google",
237
- GoogleAi: "google-ai",
238
- Azure: "azure",
239
- Aws: "aws",
240
- Anyscale: "anyscale",
241
- Perplexity: "perplexity",
242
- Groq: "groq",
243
- Fal: "fal",
244
- Leonardoai: "leonardoai",
245
- Nvidia: "nvidia",
246
- Jina: "jina",
247
- Togetherai: "togetherai",
248
- Elevenlabs: "elevenlabs",
249
- } as const;
250
- export type GetOnePromptProvider = ClosedEnum<typeof GetOnePromptProvider>;
251
-
252
- /**
253
- * The role of the prompt message
254
- */
255
- export const GetOnePromptRole = {
256
- System: "system",
257
- Assistant: "assistant",
258
- User: "user",
259
- Exception: "exception",
260
- Tool: "tool",
261
- Prompt: "prompt",
262
- Correction: "correction",
263
- ExpectedOutput: "expected_output",
264
- } as const;
265
- /**
266
- * The role of the prompt message
267
- */
268
- export type GetOnePromptRole = ClosedEnum<typeof GetOnePromptRole>;
269
-
270
- export const GetOnePrompt2PromptsType = {
271
- ImageUrl: "image_url",
272
- } as const;
273
- export type GetOnePrompt2PromptsType = ClosedEnum<
274
- typeof GetOnePrompt2PromptsType
275
- >;
276
-
277
- export type GetOnePrompt2ImageUrl = {
278
- /**
279
- * The orq.ai id of the image
280
- */
281
- id?: string | undefined;
282
- /**
283
- * Either a URL of the image or the base64 encoded data URI.
284
- */
285
- url: string;
286
- /**
287
- * Specifies the detail level of the image. Currently only supported with OpenAI models
288
- */
289
- detail?: string | undefined;
290
- };
291
-
292
- /**
293
- * The image part of the prompt message. Only supported with vision models.
294
- */
295
- export type GetOnePrompt22 = {
296
- type: GetOnePrompt2PromptsType;
297
- imageUrl: GetOnePrompt2ImageUrl;
298
- };
299
-
300
- export const GetOnePrompt2Type = {
301
- Text: "text",
302
- } as const;
303
- export type GetOnePrompt2Type = ClosedEnum<typeof GetOnePrompt2Type>;
304
-
305
- /**
306
- * Text content part of a prompt message
307
- */
308
- export type GetOnePrompt21 = {
309
- type: GetOnePrompt2Type;
310
- text: string;
311
- };
312
-
313
- export type GetOnePromptContent2 = GetOnePrompt21 | GetOnePrompt22;
314
-
315
- /**
316
- * 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.
317
- */
318
- export type GetOnePromptContent =
319
- | string
320
- | Array<GetOnePrompt21 | GetOnePrompt22>;
321
-
322
- export const GetOnePromptPromptsType = {
323
- Function: "function",
324
- } as const;
325
- export type GetOnePromptPromptsType = ClosedEnum<
326
- typeof GetOnePromptPromptsType
327
- >;
328
-
329
- export type GetOnePromptFunction = {
330
- name: string;
331
- /**
332
- * JSON string arguments for the functions
333
- */
334
- arguments: string;
335
- };
336
-
337
- export type GetOnePromptToolCalls = {
338
- id?: string | undefined;
339
- index?: number | undefined;
340
- type: GetOnePromptPromptsType;
341
- function: GetOnePromptFunction;
342
- };
343
-
344
- export type GetOnePromptMessages = {
345
- /**
346
- * The role of the prompt message
347
- */
348
- role: GetOnePromptRole;
349
- /**
350
- * 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.
351
- */
352
- content: string | Array<GetOnePrompt21 | GetOnePrompt22>;
353
- toolCalls?: Array<GetOnePromptToolCalls> | undefined;
354
- toolCallId?: string | undefined;
355
- };
356
-
357
- /**
358
- * A list of messages compatible with the openAI schema
359
- */
360
- export type GetOnePromptPromptConfig = {
361
- stream?: boolean | undefined;
362
- model?: string | undefined;
363
- /**
364
- * The id of the resource
365
- */
366
- modelDbId?: string | undefined;
367
- /**
368
- * The modality of the model
369
- */
370
- modelType?: GetOnePromptModelType | undefined;
371
- /**
372
- * Model Parameters: Not all parameters apply to every model
373
- */
374
- modelParameters?: GetOnePromptModelParameters | undefined;
375
- provider?: GetOnePromptProvider | undefined;
376
- /**
377
- * The id of the resource
378
- */
379
- integrationId?: string | null | undefined;
380
- version?: string | undefined;
381
- messages: Array<GetOnePromptMessages>;
382
- };
383
-
384
- export const GetOnePromptUseCases = {
385
- AgentsSimulations: "Agents simulations",
386
- Agents: "Agents",
387
- APIInteraction: "API interaction",
388
- AutonomousAgents: "Autonomous Agents",
389
- Chatbots: "Chatbots",
390
- Classification: "Classification",
391
- CodeUnderstanding: "Code understanding",
392
- CodeWriting: "Code writing",
393
- Conversation: "Conversation",
394
- DocumentsQA: "Documents QA",
395
- Evaluation: "Evaluation",
396
- Extraction: "Extraction",
397
- MultiModal: "Multi-modal",
398
- SelfChecking: "Self-checking",
399
- SentimentAnalysis: "Sentiment analysis",
400
- Sql: "SQL",
401
- Summarization: "Summarization",
402
- Tagging: "Tagging",
403
- TranslationDocument: "Translation (document)",
404
- TranslationSentences: "Translation (sentences)",
405
- } as const;
406
- export type GetOnePromptUseCases = ClosedEnum<typeof GetOnePromptUseCases>;
407
-
408
- /**
409
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
410
- */
411
- export const GetOnePromptLanguage = {
412
- Chinese: "Chinese",
413
- Dutch: "Dutch",
414
- English: "English",
415
- French: "French",
416
- German: "German",
417
- Russian: "Russian",
418
- Spanish: "Spanish",
419
- } as const;
420
- /**
421
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
422
- */
423
- export type GetOnePromptLanguage = ClosedEnum<typeof GetOnePromptLanguage>;
424
-
425
- export type GetOnePromptMetadata = {
426
- /**
427
- * A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
428
- */
429
- useCases?: Array<GetOnePromptUseCases> | undefined;
430
- /**
431
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
432
- */
433
- language?: GetOnePromptLanguage | null | undefined;
434
- };
435
-
436
- /**
437
- * Prompt retrieved.
438
- */
439
- export type GetOnePromptResponseBody = {
440
- id: string;
441
- type: GetOnePromptType;
442
- owner: string;
443
- domainId: string;
444
- created: string;
445
- updated: string;
446
- createdById?: string | null | undefined;
447
- updatedById?: string | null | undefined;
448
- /**
449
- * The prompt’s name, meant to be displayable in the UI.
450
- */
451
- displayName: string;
452
- /**
453
- * The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
454
- */
455
- description?: string | null | undefined;
456
- /**
457
- * A list of messages compatible with the openAI schema
458
- */
459
- promptConfig: GetOnePromptPromptConfig;
460
- metadata?: GetOnePromptMetadata | undefined;
461
- };
462
-
463
- /** @internal */
464
- export const GetOnePromptRequest$inboundSchema: z.ZodType<
465
- GetOnePromptRequest,
466
- z.ZodTypeDef,
467
- unknown
468
- > = z.object({
469
- id: z.string(),
470
- });
471
-
472
- /** @internal */
473
- export type GetOnePromptRequest$Outbound = {
474
- id: string;
475
- };
476
-
477
- /** @internal */
478
- export const GetOnePromptRequest$outboundSchema: z.ZodType<
479
- GetOnePromptRequest$Outbound,
480
- z.ZodTypeDef,
481
- GetOnePromptRequest
482
- > = z.object({
483
- id: z.string(),
484
- });
485
-
486
- /**
487
- * @internal
488
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
489
- */
490
- export namespace GetOnePromptRequest$ {
491
- /** @deprecated use `GetOnePromptRequest$inboundSchema` instead. */
492
- export const inboundSchema = GetOnePromptRequest$inboundSchema;
493
- /** @deprecated use `GetOnePromptRequest$outboundSchema` instead. */
494
- export const outboundSchema = GetOnePromptRequest$outboundSchema;
495
- /** @deprecated use `GetOnePromptRequest$Outbound` instead. */
496
- export type Outbound = GetOnePromptRequest$Outbound;
497
- }
498
-
499
- export function getOnePromptRequestToJSON(
500
- getOnePromptRequest: GetOnePromptRequest,
501
- ): string {
502
- return JSON.stringify(
503
- GetOnePromptRequest$outboundSchema.parse(getOnePromptRequest),
504
- );
505
- }
506
-
507
- export function getOnePromptRequestFromJSON(
508
- jsonString: string,
509
- ): SafeParseResult<GetOnePromptRequest, SDKValidationError> {
510
- return safeParse(
511
- jsonString,
512
- (x) => GetOnePromptRequest$inboundSchema.parse(JSON.parse(x)),
513
- `Failed to parse 'GetOnePromptRequest' from JSON`,
514
- );
515
- }
516
-
517
- /** @internal */
518
- export const GetOnePromptType$inboundSchema: z.ZodNativeEnum<
519
- typeof GetOnePromptType
520
- > = z.nativeEnum(GetOnePromptType);
521
-
522
- /** @internal */
523
- export const GetOnePromptType$outboundSchema: z.ZodNativeEnum<
524
- typeof GetOnePromptType
525
- > = GetOnePromptType$inboundSchema;
526
-
527
- /**
528
- * @internal
529
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
530
- */
531
- export namespace GetOnePromptType$ {
532
- /** @deprecated use `GetOnePromptType$inboundSchema` instead. */
533
- export const inboundSchema = GetOnePromptType$inboundSchema;
534
- /** @deprecated use `GetOnePromptType$outboundSchema` instead. */
535
- export const outboundSchema = GetOnePromptType$outboundSchema;
536
- }
537
-
538
- /** @internal */
539
- export const GetOnePromptModelType$inboundSchema: z.ZodNativeEnum<
540
- typeof GetOnePromptModelType
541
- > = z.nativeEnum(GetOnePromptModelType);
542
-
543
- /** @internal */
544
- export const GetOnePromptModelType$outboundSchema: z.ZodNativeEnum<
545
- typeof GetOnePromptModelType
546
- > = GetOnePromptModelType$inboundSchema;
547
-
548
- /**
549
- * @internal
550
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
551
- */
552
- export namespace GetOnePromptModelType$ {
553
- /** @deprecated use `GetOnePromptModelType$inboundSchema` instead. */
554
- export const inboundSchema = GetOnePromptModelType$inboundSchema;
555
- /** @deprecated use `GetOnePromptModelType$outboundSchema` instead. */
556
- export const outboundSchema = GetOnePromptModelType$outboundSchema;
557
- }
558
-
559
- /** @internal */
560
- export const GetOnePromptFormat$inboundSchema: z.ZodNativeEnum<
561
- typeof GetOnePromptFormat
562
- > = z.nativeEnum(GetOnePromptFormat);
563
-
564
- /** @internal */
565
- export const GetOnePromptFormat$outboundSchema: z.ZodNativeEnum<
566
- typeof GetOnePromptFormat
567
- > = GetOnePromptFormat$inboundSchema;
568
-
569
- /**
570
- * @internal
571
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
572
- */
573
- export namespace GetOnePromptFormat$ {
574
- /** @deprecated use `GetOnePromptFormat$inboundSchema` instead. */
575
- export const inboundSchema = GetOnePromptFormat$inboundSchema;
576
- /** @deprecated use `GetOnePromptFormat$outboundSchema` instead. */
577
- export const outboundSchema = GetOnePromptFormat$outboundSchema;
578
- }
579
-
580
- /** @internal */
581
- export const GetOnePromptResponseFormatPromptsType$inboundSchema:
582
- z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType> = z.nativeEnum(
583
- GetOnePromptResponseFormatPromptsType,
584
- );
585
-
586
- /** @internal */
587
- export const GetOnePromptResponseFormatPromptsType$outboundSchema:
588
- z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType> =
589
- GetOnePromptResponseFormatPromptsType$inboundSchema;
590
-
591
- /**
592
- * @internal
593
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
594
- */
595
- export namespace GetOnePromptResponseFormatPromptsType$ {
596
- /** @deprecated use `GetOnePromptResponseFormatPromptsType$inboundSchema` instead. */
597
- export const inboundSchema =
598
- GetOnePromptResponseFormatPromptsType$inboundSchema;
599
- /** @deprecated use `GetOnePromptResponseFormatPromptsType$outboundSchema` instead. */
600
- export const outboundSchema =
601
- GetOnePromptResponseFormatPromptsType$outboundSchema;
602
- }
603
-
604
- /** @internal */
605
- export const GetOnePromptResponseFormat2$inboundSchema: z.ZodType<
606
- GetOnePromptResponseFormat2,
607
- z.ZodTypeDef,
608
- unknown
609
- > = z.object({
610
- type: GetOnePromptResponseFormatPromptsType$inboundSchema,
611
- });
612
-
613
- /** @internal */
614
- export type GetOnePromptResponseFormat2$Outbound = {
615
- type: string;
616
- };
617
-
618
- /** @internal */
619
- export const GetOnePromptResponseFormat2$outboundSchema: z.ZodType<
620
- GetOnePromptResponseFormat2$Outbound,
621
- z.ZodTypeDef,
622
- GetOnePromptResponseFormat2
623
- > = z.object({
624
- type: GetOnePromptResponseFormatPromptsType$outboundSchema,
625
- });
626
-
627
- /**
628
- * @internal
629
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
630
- */
631
- export namespace GetOnePromptResponseFormat2$ {
632
- /** @deprecated use `GetOnePromptResponseFormat2$inboundSchema` instead. */
633
- export const inboundSchema = GetOnePromptResponseFormat2$inboundSchema;
634
- /** @deprecated use `GetOnePromptResponseFormat2$outboundSchema` instead. */
635
- export const outboundSchema = GetOnePromptResponseFormat2$outboundSchema;
636
- /** @deprecated use `GetOnePromptResponseFormat2$Outbound` instead. */
637
- export type Outbound = GetOnePromptResponseFormat2$Outbound;
638
- }
639
-
640
- export function getOnePromptResponseFormat2ToJSON(
641
- getOnePromptResponseFormat2: GetOnePromptResponseFormat2,
642
- ): string {
643
- return JSON.stringify(
644
- GetOnePromptResponseFormat2$outboundSchema.parse(
645
- getOnePromptResponseFormat2,
646
- ),
647
- );
648
- }
649
-
650
- export function getOnePromptResponseFormat2FromJSON(
651
- jsonString: string,
652
- ): SafeParseResult<GetOnePromptResponseFormat2, SDKValidationError> {
653
- return safeParse(
654
- jsonString,
655
- (x) => GetOnePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
656
- `Failed to parse 'GetOnePromptResponseFormat2' from JSON`,
657
- );
658
- }
659
-
660
- /** @internal */
661
- export const GetOnePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
662
- typeof GetOnePromptResponseFormatType
663
- > = z.nativeEnum(GetOnePromptResponseFormatType);
664
-
665
- /** @internal */
666
- export const GetOnePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
667
- typeof GetOnePromptResponseFormatType
668
- > = GetOnePromptResponseFormatType$inboundSchema;
669
-
670
- /**
671
- * @internal
672
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
673
- */
674
- export namespace GetOnePromptResponseFormatType$ {
675
- /** @deprecated use `GetOnePromptResponseFormatType$inboundSchema` instead. */
676
- export const inboundSchema = GetOnePromptResponseFormatType$inboundSchema;
677
- /** @deprecated use `GetOnePromptResponseFormatType$outboundSchema` instead. */
678
- export const outboundSchema = GetOnePromptResponseFormatType$outboundSchema;
679
- }
680
-
681
- /** @internal */
682
- export const GetOnePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
683
- GetOnePromptResponseFormatJsonSchema,
684
- z.ZodTypeDef,
685
- unknown
686
- > = z.object({
687
- name: z.string(),
688
- strict: z.boolean(),
689
- schema: z.record(z.any()),
690
- });
691
-
692
- /** @internal */
693
- export type GetOnePromptResponseFormatJsonSchema$Outbound = {
694
- name: string;
695
- strict: boolean;
696
- schema: { [k: string]: any };
697
- };
698
-
699
- /** @internal */
700
- export const GetOnePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
701
- GetOnePromptResponseFormatJsonSchema$Outbound,
702
- z.ZodTypeDef,
703
- GetOnePromptResponseFormatJsonSchema
704
- > = z.object({
705
- name: z.string(),
706
- strict: z.boolean(),
707
- schema: z.record(z.any()),
708
- });
709
-
710
- /**
711
- * @internal
712
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
713
- */
714
- export namespace GetOnePromptResponseFormatJsonSchema$ {
715
- /** @deprecated use `GetOnePromptResponseFormatJsonSchema$inboundSchema` instead. */
716
- export const inboundSchema =
717
- GetOnePromptResponseFormatJsonSchema$inboundSchema;
718
- /** @deprecated use `GetOnePromptResponseFormatJsonSchema$outboundSchema` instead. */
719
- export const outboundSchema =
720
- GetOnePromptResponseFormatJsonSchema$outboundSchema;
721
- /** @deprecated use `GetOnePromptResponseFormatJsonSchema$Outbound` instead. */
722
- export type Outbound = GetOnePromptResponseFormatJsonSchema$Outbound;
723
- }
724
-
725
- export function getOnePromptResponseFormatJsonSchemaToJSON(
726
- getOnePromptResponseFormatJsonSchema: GetOnePromptResponseFormatJsonSchema,
727
- ): string {
728
- return JSON.stringify(
729
- GetOnePromptResponseFormatJsonSchema$outboundSchema.parse(
730
- getOnePromptResponseFormatJsonSchema,
731
- ),
732
- );
733
- }
734
-
735
- export function getOnePromptResponseFormatJsonSchemaFromJSON(
736
- jsonString: string,
737
- ): SafeParseResult<GetOnePromptResponseFormatJsonSchema, SDKValidationError> {
738
- return safeParse(
739
- jsonString,
740
- (x) =>
741
- GetOnePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
742
- `Failed to parse 'GetOnePromptResponseFormatJsonSchema' from JSON`,
743
- );
744
- }
745
-
746
- /** @internal */
747
- export const GetOnePromptResponseFormat1$inboundSchema: z.ZodType<
748
- GetOnePromptResponseFormat1,
749
- z.ZodTypeDef,
750
- unknown
751
- > = z.object({
752
- type: GetOnePromptResponseFormatType$inboundSchema,
753
- json_schema: z.lazy(() => GetOnePromptResponseFormatJsonSchema$inboundSchema),
754
- }).transform((v) => {
755
- return remap$(v, {
756
- "json_schema": "jsonSchema",
757
- });
758
- });
759
-
760
- /** @internal */
761
- export type GetOnePromptResponseFormat1$Outbound = {
762
- type: string;
763
- json_schema: GetOnePromptResponseFormatJsonSchema$Outbound;
764
- };
765
-
766
- /** @internal */
767
- export const GetOnePromptResponseFormat1$outboundSchema: z.ZodType<
768
- GetOnePromptResponseFormat1$Outbound,
769
- z.ZodTypeDef,
770
- GetOnePromptResponseFormat1
771
- > = z.object({
772
- type: GetOnePromptResponseFormatType$outboundSchema,
773
- jsonSchema: z.lazy(() => GetOnePromptResponseFormatJsonSchema$outboundSchema),
774
- }).transform((v) => {
775
- return remap$(v, {
776
- jsonSchema: "json_schema",
777
- });
778
- });
779
-
780
- /**
781
- * @internal
782
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
783
- */
784
- export namespace GetOnePromptResponseFormat1$ {
785
- /** @deprecated use `GetOnePromptResponseFormat1$inboundSchema` instead. */
786
- export const inboundSchema = GetOnePromptResponseFormat1$inboundSchema;
787
- /** @deprecated use `GetOnePromptResponseFormat1$outboundSchema` instead. */
788
- export const outboundSchema = GetOnePromptResponseFormat1$outboundSchema;
789
- /** @deprecated use `GetOnePromptResponseFormat1$Outbound` instead. */
790
- export type Outbound = GetOnePromptResponseFormat1$Outbound;
791
- }
792
-
793
- export function getOnePromptResponseFormat1ToJSON(
794
- getOnePromptResponseFormat1: GetOnePromptResponseFormat1,
795
- ): string {
796
- return JSON.stringify(
797
- GetOnePromptResponseFormat1$outboundSchema.parse(
798
- getOnePromptResponseFormat1,
799
- ),
800
- );
801
- }
802
-
803
- export function getOnePromptResponseFormat1FromJSON(
804
- jsonString: string,
805
- ): SafeParseResult<GetOnePromptResponseFormat1, SDKValidationError> {
806
- return safeParse(
807
- jsonString,
808
- (x) => GetOnePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
809
- `Failed to parse 'GetOnePromptResponseFormat1' from JSON`,
810
- );
811
- }
812
-
813
- /** @internal */
814
- export const GetOnePromptResponseFormat$inboundSchema: z.ZodType<
815
- GetOnePromptResponseFormat,
816
- z.ZodTypeDef,
817
- unknown
818
- > = z.union([
819
- z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
820
- z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
821
- ]);
822
-
823
- /** @internal */
824
- export type GetOnePromptResponseFormat$Outbound =
825
- | GetOnePromptResponseFormat2$Outbound
826
- | GetOnePromptResponseFormat1$Outbound;
827
-
828
- /** @internal */
829
- export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
830
- GetOnePromptResponseFormat$Outbound,
831
- z.ZodTypeDef,
832
- GetOnePromptResponseFormat
833
- > = z.union([
834
- z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
835
- z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
836
- ]);
837
-
838
- /**
839
- * @internal
840
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
841
- */
842
- export namespace GetOnePromptResponseFormat$ {
843
- /** @deprecated use `GetOnePromptResponseFormat$inboundSchema` instead. */
844
- export const inboundSchema = GetOnePromptResponseFormat$inboundSchema;
845
- /** @deprecated use `GetOnePromptResponseFormat$outboundSchema` instead. */
846
- export const outboundSchema = GetOnePromptResponseFormat$outboundSchema;
847
- /** @deprecated use `GetOnePromptResponseFormat$Outbound` instead. */
848
- export type Outbound = GetOnePromptResponseFormat$Outbound;
849
- }
850
-
851
- export function getOnePromptResponseFormatToJSON(
852
- getOnePromptResponseFormat: GetOnePromptResponseFormat,
853
- ): string {
854
- return JSON.stringify(
855
- GetOnePromptResponseFormat$outboundSchema.parse(getOnePromptResponseFormat),
856
- );
857
- }
858
-
859
- export function getOnePromptResponseFormatFromJSON(
860
- jsonString: string,
861
- ): SafeParseResult<GetOnePromptResponseFormat, SDKValidationError> {
862
- return safeParse(
863
- jsonString,
864
- (x) => GetOnePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
865
- `Failed to parse 'GetOnePromptResponseFormat' from JSON`,
866
- );
867
- }
868
-
869
- /** @internal */
870
- export const GetOnePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
871
- typeof GetOnePromptPhotoRealVersion
872
- > = z.nativeEnum(GetOnePromptPhotoRealVersion);
873
-
874
- /** @internal */
875
- export const GetOnePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
876
- typeof GetOnePromptPhotoRealVersion
877
- > = GetOnePromptPhotoRealVersion$inboundSchema;
878
-
879
- /**
880
- * @internal
881
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
882
- */
883
- export namespace GetOnePromptPhotoRealVersion$ {
884
- /** @deprecated use `GetOnePromptPhotoRealVersion$inboundSchema` instead. */
885
- export const inboundSchema = GetOnePromptPhotoRealVersion$inboundSchema;
886
- /** @deprecated use `GetOnePromptPhotoRealVersion$outboundSchema` instead. */
887
- export const outboundSchema = GetOnePromptPhotoRealVersion$outboundSchema;
888
- }
889
-
890
- /** @internal */
891
- export const GetOnePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
892
- typeof GetOnePromptEncodingFormat
893
- > = z.nativeEnum(GetOnePromptEncodingFormat);
894
-
895
- /** @internal */
896
- export const GetOnePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
897
- typeof GetOnePromptEncodingFormat
898
- > = GetOnePromptEncodingFormat$inboundSchema;
899
-
900
- /**
901
- * @internal
902
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
903
- */
904
- export namespace GetOnePromptEncodingFormat$ {
905
- /** @deprecated use `GetOnePromptEncodingFormat$inboundSchema` instead. */
906
- export const inboundSchema = GetOnePromptEncodingFormat$inboundSchema;
907
- /** @deprecated use `GetOnePromptEncodingFormat$outboundSchema` instead. */
908
- export const outboundSchema = GetOnePromptEncodingFormat$outboundSchema;
909
- }
910
-
911
- /** @internal */
912
- export const GetOnePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
913
- typeof GetOnePromptReasoningEffort
914
- > = z.nativeEnum(GetOnePromptReasoningEffort);
915
-
916
- /** @internal */
917
- export const GetOnePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
918
- typeof GetOnePromptReasoningEffort
919
- > = GetOnePromptReasoningEffort$inboundSchema;
920
-
921
- /**
922
- * @internal
923
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
924
- */
925
- export namespace GetOnePromptReasoningEffort$ {
926
- /** @deprecated use `GetOnePromptReasoningEffort$inboundSchema` instead. */
927
- export const inboundSchema = GetOnePromptReasoningEffort$inboundSchema;
928
- /** @deprecated use `GetOnePromptReasoningEffort$outboundSchema` instead. */
929
- export const outboundSchema = GetOnePromptReasoningEffort$outboundSchema;
930
- }
931
-
932
- /** @internal */
933
- export const GetOnePromptModelParameters$inboundSchema: z.ZodType<
934
- GetOnePromptModelParameters,
935
- z.ZodTypeDef,
936
- unknown
937
- > = z.object({
938
- temperature: z.number().optional(),
939
- maxTokens: z.number().optional(),
940
- topK: z.number().optional(),
941
- topP: z.number().optional(),
942
- frequencyPenalty: z.number().optional(),
943
- presencePenalty: z.number().optional(),
944
- numImages: z.number().optional(),
945
- seed: z.number().optional(),
946
- format: GetOnePromptFormat$inboundSchema.optional(),
947
- dimensions: z.string().optional(),
948
- quality: z.string().optional(),
949
- style: z.string().optional(),
950
- responseFormat: z.nullable(
951
- z.union([
952
- z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
953
- z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
954
- ]),
955
- ).optional(),
956
- photoRealVersion: GetOnePromptPhotoRealVersion$inboundSchema.optional(),
957
- encoding_format: GetOnePromptEncodingFormat$inboundSchema.optional(),
958
- reasoningEffort: GetOnePromptReasoningEffort$inboundSchema.optional(),
959
- budgetTokens: z.number().optional(),
960
- }).transform((v) => {
961
- return remap$(v, {
962
- "encoding_format": "encodingFormat",
963
- });
964
- });
965
-
966
- /** @internal */
967
- export type GetOnePromptModelParameters$Outbound = {
968
- temperature?: number | undefined;
969
- maxTokens?: number | undefined;
970
- topK?: number | undefined;
971
- topP?: number | undefined;
972
- frequencyPenalty?: number | undefined;
973
- presencePenalty?: number | undefined;
974
- numImages?: number | undefined;
975
- seed?: number | undefined;
976
- format?: string | undefined;
977
- dimensions?: string | undefined;
978
- quality?: string | undefined;
979
- style?: string | undefined;
980
- responseFormat?:
981
- | GetOnePromptResponseFormat2$Outbound
982
- | GetOnePromptResponseFormat1$Outbound
983
- | null
984
- | undefined;
985
- photoRealVersion?: string | undefined;
986
- encoding_format?: string | undefined;
987
- reasoningEffort?: string | undefined;
988
- budgetTokens?: number | undefined;
989
- };
990
-
991
- /** @internal */
992
- export const GetOnePromptModelParameters$outboundSchema: z.ZodType<
993
- GetOnePromptModelParameters$Outbound,
994
- z.ZodTypeDef,
995
- GetOnePromptModelParameters
996
- > = z.object({
997
- temperature: z.number().optional(),
998
- maxTokens: z.number().optional(),
999
- topK: z.number().optional(),
1000
- topP: z.number().optional(),
1001
- frequencyPenalty: z.number().optional(),
1002
- presencePenalty: z.number().optional(),
1003
- numImages: z.number().optional(),
1004
- seed: z.number().optional(),
1005
- format: GetOnePromptFormat$outboundSchema.optional(),
1006
- dimensions: z.string().optional(),
1007
- quality: z.string().optional(),
1008
- style: z.string().optional(),
1009
- responseFormat: z.nullable(
1010
- z.union([
1011
- z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
1012
- z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
1013
- ]),
1014
- ).optional(),
1015
- photoRealVersion: GetOnePromptPhotoRealVersion$outboundSchema.optional(),
1016
- encodingFormat: GetOnePromptEncodingFormat$outboundSchema.optional(),
1017
- reasoningEffort: GetOnePromptReasoningEffort$outboundSchema.optional(),
1018
- budgetTokens: z.number().optional(),
1019
- }).transform((v) => {
1020
- return remap$(v, {
1021
- encodingFormat: "encoding_format",
1022
- });
1023
- });
1024
-
1025
- /**
1026
- * @internal
1027
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1028
- */
1029
- export namespace GetOnePromptModelParameters$ {
1030
- /** @deprecated use `GetOnePromptModelParameters$inboundSchema` instead. */
1031
- export const inboundSchema = GetOnePromptModelParameters$inboundSchema;
1032
- /** @deprecated use `GetOnePromptModelParameters$outboundSchema` instead. */
1033
- export const outboundSchema = GetOnePromptModelParameters$outboundSchema;
1034
- /** @deprecated use `GetOnePromptModelParameters$Outbound` instead. */
1035
- export type Outbound = GetOnePromptModelParameters$Outbound;
1036
- }
1037
-
1038
- export function getOnePromptModelParametersToJSON(
1039
- getOnePromptModelParameters: GetOnePromptModelParameters,
1040
- ): string {
1041
- return JSON.stringify(
1042
- GetOnePromptModelParameters$outboundSchema.parse(
1043
- getOnePromptModelParameters,
1044
- ),
1045
- );
1046
- }
1047
-
1048
- export function getOnePromptModelParametersFromJSON(
1049
- jsonString: string,
1050
- ): SafeParseResult<GetOnePromptModelParameters, SDKValidationError> {
1051
- return safeParse(
1052
- jsonString,
1053
- (x) => GetOnePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
1054
- `Failed to parse 'GetOnePromptModelParameters' from JSON`,
1055
- );
1056
- }
1057
-
1058
- /** @internal */
1059
- export const GetOnePromptProvider$inboundSchema: z.ZodNativeEnum<
1060
- typeof GetOnePromptProvider
1061
- > = z.nativeEnum(GetOnePromptProvider);
1062
-
1063
- /** @internal */
1064
- export const GetOnePromptProvider$outboundSchema: z.ZodNativeEnum<
1065
- typeof GetOnePromptProvider
1066
- > = GetOnePromptProvider$inboundSchema;
1067
-
1068
- /**
1069
- * @internal
1070
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1071
- */
1072
- export namespace GetOnePromptProvider$ {
1073
- /** @deprecated use `GetOnePromptProvider$inboundSchema` instead. */
1074
- export const inboundSchema = GetOnePromptProvider$inboundSchema;
1075
- /** @deprecated use `GetOnePromptProvider$outboundSchema` instead. */
1076
- export const outboundSchema = GetOnePromptProvider$outboundSchema;
1077
- }
1078
-
1079
- /** @internal */
1080
- export const GetOnePromptRole$inboundSchema: z.ZodNativeEnum<
1081
- typeof GetOnePromptRole
1082
- > = z.nativeEnum(GetOnePromptRole);
1083
-
1084
- /** @internal */
1085
- export const GetOnePromptRole$outboundSchema: z.ZodNativeEnum<
1086
- typeof GetOnePromptRole
1087
- > = GetOnePromptRole$inboundSchema;
1088
-
1089
- /**
1090
- * @internal
1091
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1092
- */
1093
- export namespace GetOnePromptRole$ {
1094
- /** @deprecated use `GetOnePromptRole$inboundSchema` instead. */
1095
- export const inboundSchema = GetOnePromptRole$inboundSchema;
1096
- /** @deprecated use `GetOnePromptRole$outboundSchema` instead. */
1097
- export const outboundSchema = GetOnePromptRole$outboundSchema;
1098
- }
1099
-
1100
- /** @internal */
1101
- export const GetOnePrompt2PromptsType$inboundSchema: z.ZodNativeEnum<
1102
- typeof GetOnePrompt2PromptsType
1103
- > = z.nativeEnum(GetOnePrompt2PromptsType);
1104
-
1105
- /** @internal */
1106
- export const GetOnePrompt2PromptsType$outboundSchema: z.ZodNativeEnum<
1107
- typeof GetOnePrompt2PromptsType
1108
- > = GetOnePrompt2PromptsType$inboundSchema;
1109
-
1110
- /**
1111
- * @internal
1112
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1113
- */
1114
- export namespace GetOnePrompt2PromptsType$ {
1115
- /** @deprecated use `GetOnePrompt2PromptsType$inboundSchema` instead. */
1116
- export const inboundSchema = GetOnePrompt2PromptsType$inboundSchema;
1117
- /** @deprecated use `GetOnePrompt2PromptsType$outboundSchema` instead. */
1118
- export const outboundSchema = GetOnePrompt2PromptsType$outboundSchema;
1119
- }
1120
-
1121
- /** @internal */
1122
- export const GetOnePrompt2ImageUrl$inboundSchema: z.ZodType<
1123
- GetOnePrompt2ImageUrl,
1124
- z.ZodTypeDef,
1125
- unknown
1126
- > = z.object({
1127
- id: z.string().optional(),
1128
- url: z.string(),
1129
- detail: z.string().optional(),
1130
- });
1131
-
1132
- /** @internal */
1133
- export type GetOnePrompt2ImageUrl$Outbound = {
1134
- id?: string | undefined;
1135
- url: string;
1136
- detail?: string | undefined;
1137
- };
1138
-
1139
- /** @internal */
1140
- export const GetOnePrompt2ImageUrl$outboundSchema: z.ZodType<
1141
- GetOnePrompt2ImageUrl$Outbound,
1142
- z.ZodTypeDef,
1143
- GetOnePrompt2ImageUrl
1144
- > = z.object({
1145
- id: z.string().optional(),
1146
- url: z.string(),
1147
- detail: z.string().optional(),
1148
- });
1149
-
1150
- /**
1151
- * @internal
1152
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1153
- */
1154
- export namespace GetOnePrompt2ImageUrl$ {
1155
- /** @deprecated use `GetOnePrompt2ImageUrl$inboundSchema` instead. */
1156
- export const inboundSchema = GetOnePrompt2ImageUrl$inboundSchema;
1157
- /** @deprecated use `GetOnePrompt2ImageUrl$outboundSchema` instead. */
1158
- export const outboundSchema = GetOnePrompt2ImageUrl$outboundSchema;
1159
- /** @deprecated use `GetOnePrompt2ImageUrl$Outbound` instead. */
1160
- export type Outbound = GetOnePrompt2ImageUrl$Outbound;
1161
- }
1162
-
1163
- export function getOnePrompt2ImageUrlToJSON(
1164
- getOnePrompt2ImageUrl: GetOnePrompt2ImageUrl,
1165
- ): string {
1166
- return JSON.stringify(
1167
- GetOnePrompt2ImageUrl$outboundSchema.parse(getOnePrompt2ImageUrl),
1168
- );
1169
- }
1170
-
1171
- export function getOnePrompt2ImageUrlFromJSON(
1172
- jsonString: string,
1173
- ): SafeParseResult<GetOnePrompt2ImageUrl, SDKValidationError> {
1174
- return safeParse(
1175
- jsonString,
1176
- (x) => GetOnePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1177
- `Failed to parse 'GetOnePrompt2ImageUrl' from JSON`,
1178
- );
1179
- }
1180
-
1181
- /** @internal */
1182
- export const GetOnePrompt22$inboundSchema: z.ZodType<
1183
- GetOnePrompt22,
1184
- z.ZodTypeDef,
1185
- unknown
1186
- > = z.object({
1187
- type: GetOnePrompt2PromptsType$inboundSchema,
1188
- image_url: z.lazy(() => GetOnePrompt2ImageUrl$inboundSchema),
1189
- }).transform((v) => {
1190
- return remap$(v, {
1191
- "image_url": "imageUrl",
1192
- });
1193
- });
1194
-
1195
- /** @internal */
1196
- export type GetOnePrompt22$Outbound = {
1197
- type: string;
1198
- image_url: GetOnePrompt2ImageUrl$Outbound;
1199
- };
1200
-
1201
- /** @internal */
1202
- export const GetOnePrompt22$outboundSchema: z.ZodType<
1203
- GetOnePrompt22$Outbound,
1204
- z.ZodTypeDef,
1205
- GetOnePrompt22
1206
- > = z.object({
1207
- type: GetOnePrompt2PromptsType$outboundSchema,
1208
- imageUrl: z.lazy(() => GetOnePrompt2ImageUrl$outboundSchema),
1209
- }).transform((v) => {
1210
- return remap$(v, {
1211
- imageUrl: "image_url",
1212
- });
1213
- });
1214
-
1215
- /**
1216
- * @internal
1217
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1218
- */
1219
- export namespace GetOnePrompt22$ {
1220
- /** @deprecated use `GetOnePrompt22$inboundSchema` instead. */
1221
- export const inboundSchema = GetOnePrompt22$inboundSchema;
1222
- /** @deprecated use `GetOnePrompt22$outboundSchema` instead. */
1223
- export const outboundSchema = GetOnePrompt22$outboundSchema;
1224
- /** @deprecated use `GetOnePrompt22$Outbound` instead. */
1225
- export type Outbound = GetOnePrompt22$Outbound;
1226
- }
1227
-
1228
- export function getOnePrompt22ToJSON(getOnePrompt22: GetOnePrompt22): string {
1229
- return JSON.stringify(GetOnePrompt22$outboundSchema.parse(getOnePrompt22));
1230
- }
1231
-
1232
- export function getOnePrompt22FromJSON(
1233
- jsonString: string,
1234
- ): SafeParseResult<GetOnePrompt22, SDKValidationError> {
1235
- return safeParse(
1236
- jsonString,
1237
- (x) => GetOnePrompt22$inboundSchema.parse(JSON.parse(x)),
1238
- `Failed to parse 'GetOnePrompt22' from JSON`,
1239
- );
1240
- }
1241
-
1242
- /** @internal */
1243
- export const GetOnePrompt2Type$inboundSchema: z.ZodNativeEnum<
1244
- typeof GetOnePrompt2Type
1245
- > = z.nativeEnum(GetOnePrompt2Type);
1246
-
1247
- /** @internal */
1248
- export const GetOnePrompt2Type$outboundSchema: z.ZodNativeEnum<
1249
- typeof GetOnePrompt2Type
1250
- > = GetOnePrompt2Type$inboundSchema;
1251
-
1252
- /**
1253
- * @internal
1254
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1255
- */
1256
- export namespace GetOnePrompt2Type$ {
1257
- /** @deprecated use `GetOnePrompt2Type$inboundSchema` instead. */
1258
- export const inboundSchema = GetOnePrompt2Type$inboundSchema;
1259
- /** @deprecated use `GetOnePrompt2Type$outboundSchema` instead. */
1260
- export const outboundSchema = GetOnePrompt2Type$outboundSchema;
1261
- }
1262
-
1263
- /** @internal */
1264
- export const GetOnePrompt21$inboundSchema: z.ZodType<
1265
- GetOnePrompt21,
1266
- z.ZodTypeDef,
1267
- unknown
1268
- > = z.object({
1269
- type: GetOnePrompt2Type$inboundSchema,
1270
- text: z.string(),
1271
- });
1272
-
1273
- /** @internal */
1274
- export type GetOnePrompt21$Outbound = {
1275
- type: string;
1276
- text: string;
1277
- };
1278
-
1279
- /** @internal */
1280
- export const GetOnePrompt21$outboundSchema: z.ZodType<
1281
- GetOnePrompt21$Outbound,
1282
- z.ZodTypeDef,
1283
- GetOnePrompt21
1284
- > = z.object({
1285
- type: GetOnePrompt2Type$outboundSchema,
1286
- text: z.string(),
1287
- });
1288
-
1289
- /**
1290
- * @internal
1291
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1292
- */
1293
- export namespace GetOnePrompt21$ {
1294
- /** @deprecated use `GetOnePrompt21$inboundSchema` instead. */
1295
- export const inboundSchema = GetOnePrompt21$inboundSchema;
1296
- /** @deprecated use `GetOnePrompt21$outboundSchema` instead. */
1297
- export const outboundSchema = GetOnePrompt21$outboundSchema;
1298
- /** @deprecated use `GetOnePrompt21$Outbound` instead. */
1299
- export type Outbound = GetOnePrompt21$Outbound;
1300
- }
1301
-
1302
- export function getOnePrompt21ToJSON(getOnePrompt21: GetOnePrompt21): string {
1303
- return JSON.stringify(GetOnePrompt21$outboundSchema.parse(getOnePrompt21));
1304
- }
1305
-
1306
- export function getOnePrompt21FromJSON(
1307
- jsonString: string,
1308
- ): SafeParseResult<GetOnePrompt21, SDKValidationError> {
1309
- return safeParse(
1310
- jsonString,
1311
- (x) => GetOnePrompt21$inboundSchema.parse(JSON.parse(x)),
1312
- `Failed to parse 'GetOnePrompt21' from JSON`,
1313
- );
1314
- }
1315
-
1316
- /** @internal */
1317
- export const GetOnePromptContent2$inboundSchema: z.ZodType<
1318
- GetOnePromptContent2,
1319
- z.ZodTypeDef,
1320
- unknown
1321
- > = z.union([
1322
- z.lazy(() => GetOnePrompt21$inboundSchema),
1323
- z.lazy(() => GetOnePrompt22$inboundSchema),
1324
- ]);
1325
-
1326
- /** @internal */
1327
- export type GetOnePromptContent2$Outbound =
1328
- | GetOnePrompt21$Outbound
1329
- | GetOnePrompt22$Outbound;
1330
-
1331
- /** @internal */
1332
- export const GetOnePromptContent2$outboundSchema: z.ZodType<
1333
- GetOnePromptContent2$Outbound,
1334
- z.ZodTypeDef,
1335
- GetOnePromptContent2
1336
- > = z.union([
1337
- z.lazy(() => GetOnePrompt21$outboundSchema),
1338
- z.lazy(() => GetOnePrompt22$outboundSchema),
1339
- ]);
1340
-
1341
- /**
1342
- * @internal
1343
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1344
- */
1345
- export namespace GetOnePromptContent2$ {
1346
- /** @deprecated use `GetOnePromptContent2$inboundSchema` instead. */
1347
- export const inboundSchema = GetOnePromptContent2$inboundSchema;
1348
- /** @deprecated use `GetOnePromptContent2$outboundSchema` instead. */
1349
- export const outboundSchema = GetOnePromptContent2$outboundSchema;
1350
- /** @deprecated use `GetOnePromptContent2$Outbound` instead. */
1351
- export type Outbound = GetOnePromptContent2$Outbound;
1352
- }
1353
-
1354
- export function getOnePromptContent2ToJSON(
1355
- getOnePromptContent2: GetOnePromptContent2,
1356
- ): string {
1357
- return JSON.stringify(
1358
- GetOnePromptContent2$outboundSchema.parse(getOnePromptContent2),
1359
- );
1360
- }
1361
-
1362
- export function getOnePromptContent2FromJSON(
1363
- jsonString: string,
1364
- ): SafeParseResult<GetOnePromptContent2, SDKValidationError> {
1365
- return safeParse(
1366
- jsonString,
1367
- (x) => GetOnePromptContent2$inboundSchema.parse(JSON.parse(x)),
1368
- `Failed to parse 'GetOnePromptContent2' from JSON`,
1369
- );
1370
- }
1371
-
1372
- /** @internal */
1373
- export const GetOnePromptContent$inboundSchema: z.ZodType<
1374
- GetOnePromptContent,
1375
- z.ZodTypeDef,
1376
- unknown
1377
- > = z.union([
1378
- z.string(),
1379
- z.array(z.union([
1380
- z.lazy(() => GetOnePrompt21$inboundSchema),
1381
- z.lazy(() => GetOnePrompt22$inboundSchema),
1382
- ])),
1383
- ]);
1384
-
1385
- /** @internal */
1386
- export type GetOnePromptContent$Outbound =
1387
- | string
1388
- | Array<GetOnePrompt21$Outbound | GetOnePrompt22$Outbound>;
1389
-
1390
- /** @internal */
1391
- export const GetOnePromptContent$outboundSchema: z.ZodType<
1392
- GetOnePromptContent$Outbound,
1393
- z.ZodTypeDef,
1394
- GetOnePromptContent
1395
- > = z.union([
1396
- z.string(),
1397
- z.array(z.union([
1398
- z.lazy(() => GetOnePrompt21$outboundSchema),
1399
- z.lazy(() => GetOnePrompt22$outboundSchema),
1400
- ])),
1401
- ]);
1402
-
1403
- /**
1404
- * @internal
1405
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1406
- */
1407
- export namespace GetOnePromptContent$ {
1408
- /** @deprecated use `GetOnePromptContent$inboundSchema` instead. */
1409
- export const inboundSchema = GetOnePromptContent$inboundSchema;
1410
- /** @deprecated use `GetOnePromptContent$outboundSchema` instead. */
1411
- export const outboundSchema = GetOnePromptContent$outboundSchema;
1412
- /** @deprecated use `GetOnePromptContent$Outbound` instead. */
1413
- export type Outbound = GetOnePromptContent$Outbound;
1414
- }
1415
-
1416
- export function getOnePromptContentToJSON(
1417
- getOnePromptContent: GetOnePromptContent,
1418
- ): string {
1419
- return JSON.stringify(
1420
- GetOnePromptContent$outboundSchema.parse(getOnePromptContent),
1421
- );
1422
- }
1423
-
1424
- export function getOnePromptContentFromJSON(
1425
- jsonString: string,
1426
- ): SafeParseResult<GetOnePromptContent, SDKValidationError> {
1427
- return safeParse(
1428
- jsonString,
1429
- (x) => GetOnePromptContent$inboundSchema.parse(JSON.parse(x)),
1430
- `Failed to parse 'GetOnePromptContent' from JSON`,
1431
- );
1432
- }
1433
-
1434
- /** @internal */
1435
- export const GetOnePromptPromptsType$inboundSchema: z.ZodNativeEnum<
1436
- typeof GetOnePromptPromptsType
1437
- > = z.nativeEnum(GetOnePromptPromptsType);
1438
-
1439
- /** @internal */
1440
- export const GetOnePromptPromptsType$outboundSchema: z.ZodNativeEnum<
1441
- typeof GetOnePromptPromptsType
1442
- > = GetOnePromptPromptsType$inboundSchema;
1443
-
1444
- /**
1445
- * @internal
1446
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1447
- */
1448
- export namespace GetOnePromptPromptsType$ {
1449
- /** @deprecated use `GetOnePromptPromptsType$inboundSchema` instead. */
1450
- export const inboundSchema = GetOnePromptPromptsType$inboundSchema;
1451
- /** @deprecated use `GetOnePromptPromptsType$outboundSchema` instead. */
1452
- export const outboundSchema = GetOnePromptPromptsType$outboundSchema;
1453
- }
1454
-
1455
- /** @internal */
1456
- export const GetOnePromptFunction$inboundSchema: z.ZodType<
1457
- GetOnePromptFunction,
1458
- z.ZodTypeDef,
1459
- unknown
1460
- > = z.object({
1461
- name: z.string(),
1462
- arguments: z.string(),
1463
- });
1464
-
1465
- /** @internal */
1466
- export type GetOnePromptFunction$Outbound = {
1467
- name: string;
1468
- arguments: string;
1469
- };
1470
-
1471
- /** @internal */
1472
- export const GetOnePromptFunction$outboundSchema: z.ZodType<
1473
- GetOnePromptFunction$Outbound,
1474
- z.ZodTypeDef,
1475
- GetOnePromptFunction
1476
- > = z.object({
1477
- name: z.string(),
1478
- arguments: z.string(),
1479
- });
1480
-
1481
- /**
1482
- * @internal
1483
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1484
- */
1485
- export namespace GetOnePromptFunction$ {
1486
- /** @deprecated use `GetOnePromptFunction$inboundSchema` instead. */
1487
- export const inboundSchema = GetOnePromptFunction$inboundSchema;
1488
- /** @deprecated use `GetOnePromptFunction$outboundSchema` instead. */
1489
- export const outboundSchema = GetOnePromptFunction$outboundSchema;
1490
- /** @deprecated use `GetOnePromptFunction$Outbound` instead. */
1491
- export type Outbound = GetOnePromptFunction$Outbound;
1492
- }
1493
-
1494
- export function getOnePromptFunctionToJSON(
1495
- getOnePromptFunction: GetOnePromptFunction,
1496
- ): string {
1497
- return JSON.stringify(
1498
- GetOnePromptFunction$outboundSchema.parse(getOnePromptFunction),
1499
- );
1500
- }
1501
-
1502
- export function getOnePromptFunctionFromJSON(
1503
- jsonString: string,
1504
- ): SafeParseResult<GetOnePromptFunction, SDKValidationError> {
1505
- return safeParse(
1506
- jsonString,
1507
- (x) => GetOnePromptFunction$inboundSchema.parse(JSON.parse(x)),
1508
- `Failed to parse 'GetOnePromptFunction' from JSON`,
1509
- );
1510
- }
1511
-
1512
- /** @internal */
1513
- export const GetOnePromptToolCalls$inboundSchema: z.ZodType<
1514
- GetOnePromptToolCalls,
1515
- z.ZodTypeDef,
1516
- unknown
1517
- > = z.object({
1518
- id: z.string().optional(),
1519
- index: z.number().optional(),
1520
- type: GetOnePromptPromptsType$inboundSchema,
1521
- function: z.lazy(() => GetOnePromptFunction$inboundSchema),
1522
- });
1523
-
1524
- /** @internal */
1525
- export type GetOnePromptToolCalls$Outbound = {
1526
- id?: string | undefined;
1527
- index?: number | undefined;
1528
- type: string;
1529
- function: GetOnePromptFunction$Outbound;
1530
- };
1531
-
1532
- /** @internal */
1533
- export const GetOnePromptToolCalls$outboundSchema: z.ZodType<
1534
- GetOnePromptToolCalls$Outbound,
1535
- z.ZodTypeDef,
1536
- GetOnePromptToolCalls
1537
- > = z.object({
1538
- id: z.string().optional(),
1539
- index: z.number().optional(),
1540
- type: GetOnePromptPromptsType$outboundSchema,
1541
- function: z.lazy(() => GetOnePromptFunction$outboundSchema),
1542
- });
1543
-
1544
- /**
1545
- * @internal
1546
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1547
- */
1548
- export namespace GetOnePromptToolCalls$ {
1549
- /** @deprecated use `GetOnePromptToolCalls$inboundSchema` instead. */
1550
- export const inboundSchema = GetOnePromptToolCalls$inboundSchema;
1551
- /** @deprecated use `GetOnePromptToolCalls$outboundSchema` instead. */
1552
- export const outboundSchema = GetOnePromptToolCalls$outboundSchema;
1553
- /** @deprecated use `GetOnePromptToolCalls$Outbound` instead. */
1554
- export type Outbound = GetOnePromptToolCalls$Outbound;
1555
- }
1556
-
1557
- export function getOnePromptToolCallsToJSON(
1558
- getOnePromptToolCalls: GetOnePromptToolCalls,
1559
- ): string {
1560
- return JSON.stringify(
1561
- GetOnePromptToolCalls$outboundSchema.parse(getOnePromptToolCalls),
1562
- );
1563
- }
1564
-
1565
- export function getOnePromptToolCallsFromJSON(
1566
- jsonString: string,
1567
- ): SafeParseResult<GetOnePromptToolCalls, SDKValidationError> {
1568
- return safeParse(
1569
- jsonString,
1570
- (x) => GetOnePromptToolCalls$inboundSchema.parse(JSON.parse(x)),
1571
- `Failed to parse 'GetOnePromptToolCalls' from JSON`,
1572
- );
1573
- }
1574
-
1575
- /** @internal */
1576
- export const GetOnePromptMessages$inboundSchema: z.ZodType<
1577
- GetOnePromptMessages,
1578
- z.ZodTypeDef,
1579
- unknown
1580
- > = z.object({
1581
- role: GetOnePromptRole$inboundSchema,
1582
- content: z.union([
1583
- z.string(),
1584
- z.array(z.union([
1585
- z.lazy(() => GetOnePrompt21$inboundSchema),
1586
- z.lazy(() => GetOnePrompt22$inboundSchema),
1587
- ])),
1588
- ]),
1589
- tool_calls: z.array(z.lazy(() => GetOnePromptToolCalls$inboundSchema))
1590
- .optional(),
1591
- tool_call_id: z.string().optional(),
1592
- }).transform((v) => {
1593
- return remap$(v, {
1594
- "tool_calls": "toolCalls",
1595
- "tool_call_id": "toolCallId",
1596
- });
1597
- });
1598
-
1599
- /** @internal */
1600
- export type GetOnePromptMessages$Outbound = {
1601
- role: string;
1602
- content: string | Array<GetOnePrompt21$Outbound | GetOnePrompt22$Outbound>;
1603
- tool_calls?: Array<GetOnePromptToolCalls$Outbound> | undefined;
1604
- tool_call_id?: string | undefined;
1605
- };
1606
-
1607
- /** @internal */
1608
- export const GetOnePromptMessages$outboundSchema: z.ZodType<
1609
- GetOnePromptMessages$Outbound,
1610
- z.ZodTypeDef,
1611
- GetOnePromptMessages
1612
- > = z.object({
1613
- role: GetOnePromptRole$outboundSchema,
1614
- content: z.union([
1615
- z.string(),
1616
- z.array(z.union([
1617
- z.lazy(() => GetOnePrompt21$outboundSchema),
1618
- z.lazy(() => GetOnePrompt22$outboundSchema),
1619
- ])),
1620
- ]),
1621
- toolCalls: z.array(z.lazy(() => GetOnePromptToolCalls$outboundSchema))
1622
- .optional(),
1623
- toolCallId: z.string().optional(),
1624
- }).transform((v) => {
1625
- return remap$(v, {
1626
- toolCalls: "tool_calls",
1627
- toolCallId: "tool_call_id",
1628
- });
1629
- });
1630
-
1631
- /**
1632
- * @internal
1633
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1634
- */
1635
- export namespace GetOnePromptMessages$ {
1636
- /** @deprecated use `GetOnePromptMessages$inboundSchema` instead. */
1637
- export const inboundSchema = GetOnePromptMessages$inboundSchema;
1638
- /** @deprecated use `GetOnePromptMessages$outboundSchema` instead. */
1639
- export const outboundSchema = GetOnePromptMessages$outboundSchema;
1640
- /** @deprecated use `GetOnePromptMessages$Outbound` instead. */
1641
- export type Outbound = GetOnePromptMessages$Outbound;
1642
- }
1643
-
1644
- export function getOnePromptMessagesToJSON(
1645
- getOnePromptMessages: GetOnePromptMessages,
1646
- ): string {
1647
- return JSON.stringify(
1648
- GetOnePromptMessages$outboundSchema.parse(getOnePromptMessages),
1649
- );
1650
- }
1651
-
1652
- export function getOnePromptMessagesFromJSON(
1653
- jsonString: string,
1654
- ): SafeParseResult<GetOnePromptMessages, SDKValidationError> {
1655
- return safeParse(
1656
- jsonString,
1657
- (x) => GetOnePromptMessages$inboundSchema.parse(JSON.parse(x)),
1658
- `Failed to parse 'GetOnePromptMessages' from JSON`,
1659
- );
1660
- }
1661
-
1662
- /** @internal */
1663
- export const GetOnePromptPromptConfig$inboundSchema: z.ZodType<
1664
- GetOnePromptPromptConfig,
1665
- z.ZodTypeDef,
1666
- unknown
1667
- > = z.object({
1668
- stream: z.boolean().optional(),
1669
- model: z.string().optional(),
1670
- model_db_id: z.string().optional(),
1671
- model_type: GetOnePromptModelType$inboundSchema.optional(),
1672
- model_parameters: z.lazy(() => GetOnePromptModelParameters$inboundSchema)
1673
- .optional(),
1674
- provider: GetOnePromptProvider$inboundSchema.optional(),
1675
- integration_id: z.nullable(z.string()).optional(),
1676
- version: z.string().optional(),
1677
- messages: z.array(z.lazy(() => GetOnePromptMessages$inboundSchema)),
1678
- }).transform((v) => {
1679
- return remap$(v, {
1680
- "model_db_id": "modelDbId",
1681
- "model_type": "modelType",
1682
- "model_parameters": "modelParameters",
1683
- "integration_id": "integrationId",
1684
- });
1685
- });
1686
-
1687
- /** @internal */
1688
- export type GetOnePromptPromptConfig$Outbound = {
1689
- stream?: boolean | undefined;
1690
- model?: string | undefined;
1691
- model_db_id?: string | undefined;
1692
- model_type?: string | undefined;
1693
- model_parameters?: GetOnePromptModelParameters$Outbound | undefined;
1694
- provider?: string | undefined;
1695
- integration_id?: string | null | undefined;
1696
- version?: string | undefined;
1697
- messages: Array<GetOnePromptMessages$Outbound>;
1698
- };
1699
-
1700
- /** @internal */
1701
- export const GetOnePromptPromptConfig$outboundSchema: z.ZodType<
1702
- GetOnePromptPromptConfig$Outbound,
1703
- z.ZodTypeDef,
1704
- GetOnePromptPromptConfig
1705
- > = z.object({
1706
- stream: z.boolean().optional(),
1707
- model: z.string().optional(),
1708
- modelDbId: z.string().optional(),
1709
- modelType: GetOnePromptModelType$outboundSchema.optional(),
1710
- modelParameters: z.lazy(() => GetOnePromptModelParameters$outboundSchema)
1711
- .optional(),
1712
- provider: GetOnePromptProvider$outboundSchema.optional(),
1713
- integrationId: z.nullable(z.string()).optional(),
1714
- version: z.string().optional(),
1715
- messages: z.array(z.lazy(() => GetOnePromptMessages$outboundSchema)),
1716
- }).transform((v) => {
1717
- return remap$(v, {
1718
- modelDbId: "model_db_id",
1719
- modelType: "model_type",
1720
- modelParameters: "model_parameters",
1721
- integrationId: "integration_id",
1722
- });
1723
- });
1724
-
1725
- /**
1726
- * @internal
1727
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1728
- */
1729
- export namespace GetOnePromptPromptConfig$ {
1730
- /** @deprecated use `GetOnePromptPromptConfig$inboundSchema` instead. */
1731
- export const inboundSchema = GetOnePromptPromptConfig$inboundSchema;
1732
- /** @deprecated use `GetOnePromptPromptConfig$outboundSchema` instead. */
1733
- export const outboundSchema = GetOnePromptPromptConfig$outboundSchema;
1734
- /** @deprecated use `GetOnePromptPromptConfig$Outbound` instead. */
1735
- export type Outbound = GetOnePromptPromptConfig$Outbound;
1736
- }
1737
-
1738
- export function getOnePromptPromptConfigToJSON(
1739
- getOnePromptPromptConfig: GetOnePromptPromptConfig,
1740
- ): string {
1741
- return JSON.stringify(
1742
- GetOnePromptPromptConfig$outboundSchema.parse(getOnePromptPromptConfig),
1743
- );
1744
- }
1745
-
1746
- export function getOnePromptPromptConfigFromJSON(
1747
- jsonString: string,
1748
- ): SafeParseResult<GetOnePromptPromptConfig, SDKValidationError> {
1749
- return safeParse(
1750
- jsonString,
1751
- (x) => GetOnePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
1752
- `Failed to parse 'GetOnePromptPromptConfig' from JSON`,
1753
- );
1754
- }
1755
-
1756
- /** @internal */
1757
- export const GetOnePromptUseCases$inboundSchema: z.ZodNativeEnum<
1758
- typeof GetOnePromptUseCases
1759
- > = z.nativeEnum(GetOnePromptUseCases);
1760
-
1761
- /** @internal */
1762
- export const GetOnePromptUseCases$outboundSchema: z.ZodNativeEnum<
1763
- typeof GetOnePromptUseCases
1764
- > = GetOnePromptUseCases$inboundSchema;
1765
-
1766
- /**
1767
- * @internal
1768
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1769
- */
1770
- export namespace GetOnePromptUseCases$ {
1771
- /** @deprecated use `GetOnePromptUseCases$inboundSchema` instead. */
1772
- export const inboundSchema = GetOnePromptUseCases$inboundSchema;
1773
- /** @deprecated use `GetOnePromptUseCases$outboundSchema` instead. */
1774
- export const outboundSchema = GetOnePromptUseCases$outboundSchema;
1775
- }
1776
-
1777
- /** @internal */
1778
- export const GetOnePromptLanguage$inboundSchema: z.ZodNativeEnum<
1779
- typeof GetOnePromptLanguage
1780
- > = z.nativeEnum(GetOnePromptLanguage);
1781
-
1782
- /** @internal */
1783
- export const GetOnePromptLanguage$outboundSchema: z.ZodNativeEnum<
1784
- typeof GetOnePromptLanguage
1785
- > = GetOnePromptLanguage$inboundSchema;
1786
-
1787
- /**
1788
- * @internal
1789
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1790
- */
1791
- export namespace GetOnePromptLanguage$ {
1792
- /** @deprecated use `GetOnePromptLanguage$inboundSchema` instead. */
1793
- export const inboundSchema = GetOnePromptLanguage$inboundSchema;
1794
- /** @deprecated use `GetOnePromptLanguage$outboundSchema` instead. */
1795
- export const outboundSchema = GetOnePromptLanguage$outboundSchema;
1796
- }
1797
-
1798
- /** @internal */
1799
- export const GetOnePromptMetadata$inboundSchema: z.ZodType<
1800
- GetOnePromptMetadata,
1801
- z.ZodTypeDef,
1802
- unknown
1803
- > = z.object({
1804
- use_cases: z.array(GetOnePromptUseCases$inboundSchema).optional(),
1805
- language: z.nullable(GetOnePromptLanguage$inboundSchema).optional(),
1806
- }).transform((v) => {
1807
- return remap$(v, {
1808
- "use_cases": "useCases",
1809
- });
1810
- });
1811
-
1812
- /** @internal */
1813
- export type GetOnePromptMetadata$Outbound = {
1814
- use_cases?: Array<string> | undefined;
1815
- language?: string | null | undefined;
1816
- };
1817
-
1818
- /** @internal */
1819
- export const GetOnePromptMetadata$outboundSchema: z.ZodType<
1820
- GetOnePromptMetadata$Outbound,
1821
- z.ZodTypeDef,
1822
- GetOnePromptMetadata
1823
- > = z.object({
1824
- useCases: z.array(GetOnePromptUseCases$outboundSchema).optional(),
1825
- language: z.nullable(GetOnePromptLanguage$outboundSchema).optional(),
1826
- }).transform((v) => {
1827
- return remap$(v, {
1828
- useCases: "use_cases",
1829
- });
1830
- });
1831
-
1832
- /**
1833
- * @internal
1834
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1835
- */
1836
- export namespace GetOnePromptMetadata$ {
1837
- /** @deprecated use `GetOnePromptMetadata$inboundSchema` instead. */
1838
- export const inboundSchema = GetOnePromptMetadata$inboundSchema;
1839
- /** @deprecated use `GetOnePromptMetadata$outboundSchema` instead. */
1840
- export const outboundSchema = GetOnePromptMetadata$outboundSchema;
1841
- /** @deprecated use `GetOnePromptMetadata$Outbound` instead. */
1842
- export type Outbound = GetOnePromptMetadata$Outbound;
1843
- }
1844
-
1845
- export function getOnePromptMetadataToJSON(
1846
- getOnePromptMetadata: GetOnePromptMetadata,
1847
- ): string {
1848
- return JSON.stringify(
1849
- GetOnePromptMetadata$outboundSchema.parse(getOnePromptMetadata),
1850
- );
1851
- }
1852
-
1853
- export function getOnePromptMetadataFromJSON(
1854
- jsonString: string,
1855
- ): SafeParseResult<GetOnePromptMetadata, SDKValidationError> {
1856
- return safeParse(
1857
- jsonString,
1858
- (x) => GetOnePromptMetadata$inboundSchema.parse(JSON.parse(x)),
1859
- `Failed to parse 'GetOnePromptMetadata' from JSON`,
1860
- );
1861
- }
1862
-
1863
- /** @internal */
1864
- export const GetOnePromptResponseBody$inboundSchema: z.ZodType<
1865
- GetOnePromptResponseBody,
1866
- z.ZodTypeDef,
1867
- unknown
1868
- > = z.object({
1869
- _id: z.string(),
1870
- type: GetOnePromptType$inboundSchema,
1871
- owner: z.string(),
1872
- domain_id: z.string(),
1873
- created: z.string(),
1874
- updated: z.string(),
1875
- created_by_id: z.nullable(z.string()).optional(),
1876
- updated_by_id: z.nullable(z.string()).optional(),
1877
- display_name: z.string(),
1878
- description: z.nullable(z.string()).optional(),
1879
- prompt_config: z.lazy(() => GetOnePromptPromptConfig$inboundSchema),
1880
- metadata: z.lazy(() => GetOnePromptMetadata$inboundSchema).optional(),
1881
- }).transform((v) => {
1882
- return remap$(v, {
1883
- "_id": "id",
1884
- "domain_id": "domainId",
1885
- "created_by_id": "createdById",
1886
- "updated_by_id": "updatedById",
1887
- "display_name": "displayName",
1888
- "prompt_config": "promptConfig",
1889
- });
1890
- });
1891
-
1892
- /** @internal */
1893
- export type GetOnePromptResponseBody$Outbound = {
1894
- _id: string;
1895
- type: string;
1896
- owner: string;
1897
- domain_id: string;
1898
- created: string;
1899
- updated: string;
1900
- created_by_id?: string | null | undefined;
1901
- updated_by_id?: string | null | undefined;
1902
- display_name: string;
1903
- description?: string | null | undefined;
1904
- prompt_config: GetOnePromptPromptConfig$Outbound;
1905
- metadata?: GetOnePromptMetadata$Outbound | undefined;
1906
- };
1907
-
1908
- /** @internal */
1909
- export const GetOnePromptResponseBody$outboundSchema: z.ZodType<
1910
- GetOnePromptResponseBody$Outbound,
1911
- z.ZodTypeDef,
1912
- GetOnePromptResponseBody
1913
- > = z.object({
1914
- id: z.string(),
1915
- type: GetOnePromptType$outboundSchema,
1916
- owner: z.string(),
1917
- domainId: z.string(),
1918
- created: z.string(),
1919
- updated: z.string(),
1920
- createdById: z.nullable(z.string()).optional(),
1921
- updatedById: z.nullable(z.string()).optional(),
1922
- displayName: z.string(),
1923
- description: z.nullable(z.string()).optional(),
1924
- promptConfig: z.lazy(() => GetOnePromptPromptConfig$outboundSchema),
1925
- metadata: z.lazy(() => GetOnePromptMetadata$outboundSchema).optional(),
1926
- }).transform((v) => {
1927
- return remap$(v, {
1928
- id: "_id",
1929
- domainId: "domain_id",
1930
- createdById: "created_by_id",
1931
- updatedById: "updated_by_id",
1932
- displayName: "display_name",
1933
- promptConfig: "prompt_config",
1934
- });
1935
- });
1936
-
1937
- /**
1938
- * @internal
1939
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1940
- */
1941
- export namespace GetOnePromptResponseBody$ {
1942
- /** @deprecated use `GetOnePromptResponseBody$inboundSchema` instead. */
1943
- export const inboundSchema = GetOnePromptResponseBody$inboundSchema;
1944
- /** @deprecated use `GetOnePromptResponseBody$outboundSchema` instead. */
1945
- export const outboundSchema = GetOnePromptResponseBody$outboundSchema;
1946
- /** @deprecated use `GetOnePromptResponseBody$Outbound` instead. */
1947
- export type Outbound = GetOnePromptResponseBody$Outbound;
1948
- }
1949
-
1950
- export function getOnePromptResponseBodyToJSON(
1951
- getOnePromptResponseBody: GetOnePromptResponseBody,
1952
- ): string {
1953
- return JSON.stringify(
1954
- GetOnePromptResponseBody$outboundSchema.parse(getOnePromptResponseBody),
1955
- );
1956
- }
1957
-
1958
- export function getOnePromptResponseBodyFromJSON(
1959
- jsonString: string,
1960
- ): SafeParseResult<GetOnePromptResponseBody, SDKValidationError> {
1961
- return safeParse(
1962
- jsonString,
1963
- (x) => GetOnePromptResponseBody$inboundSchema.parse(JSON.parse(x)),
1964
- `Failed to parse 'GetOnePromptResponseBody' from JSON`,
1965
- );
1966
- }