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