@orq-ai/node 3.6.2 → 3.7.0-rc.2

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