@orq-ai/node 3.3.13 → 3.4.0-rc.21

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