@orq-ai/node 3.4.0-rc.37 → 3.5.11

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