@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,3743 +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
- /**
13
- * The modality of the model
14
- */
15
- export const ModelType = {
16
- Chat: "chat",
17
- Completion: "completion",
18
- Embedding: "embedding",
19
- Vision: "vision",
20
- Image: "image",
21
- Tts: "tts",
22
- Stt: "stt",
23
- Rerank: "rerank",
24
- Moderations: "moderations",
25
- } as const;
26
- /**
27
- * The modality of the model
28
- */
29
- export type ModelType = ClosedEnum<typeof ModelType>;
30
-
31
- /**
32
- * Only supported on `image` models.
33
- */
34
- export const CreatePromptFormat = {
35
- Url: "url",
36
- B64Json: "b64_json",
37
- Text: "text",
38
- JsonObject: "json_object",
39
- } as const;
40
- /**
41
- * Only supported on `image` models.
42
- */
43
- export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
44
-
45
- /**
46
- * Only supported on `image` models.
47
- */
48
- export const Quality = {
49
- Standard: "standard",
50
- Hd: "hd",
51
- } as const;
52
- /**
53
- * Only supported on `image` models.
54
- */
55
- export type Quality = ClosedEnum<typeof Quality>;
56
-
57
- export const CreatePromptResponseFormatType = {
58
- JsonObject: "json_object",
59
- } as const;
60
- export type CreatePromptResponseFormatType = ClosedEnum<
61
- typeof CreatePromptResponseFormatType
62
- >;
63
-
64
- export type ResponseFormat2 = {
65
- type: CreatePromptResponseFormatType;
66
- };
67
-
68
- export const ResponseFormatType = {
69
- JsonSchema: "json_schema",
70
- } as const;
71
- export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
72
-
73
- export type JsonSchema = {
74
- name: string;
75
- strict: boolean;
76
- schema: { [k: string]: any };
77
- };
78
-
79
- export type ResponseFormat1 = {
80
- type: ResponseFormatType;
81
- jsonSchema: JsonSchema;
82
- };
83
-
84
- /**
85
- * An object specifying the format that the model must output.
86
- *
87
- * @remarks
88
- *
89
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
90
- *
91
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
92
- *
93
- * 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.
94
- */
95
- export type ResponseFormat = ResponseFormat2 | ResponseFormat1;
96
-
97
- /**
98
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
99
- */
100
- export const PhotoRealVersion = {
101
- V1: "v1",
102
- V2: "v2",
103
- } as const;
104
- /**
105
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
106
- */
107
- export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
108
-
109
- /**
110
- * The format to return the embeddings
111
- */
112
- export const EncodingFormat = {
113
- Float: "float",
114
- Base64: "base64",
115
- } as const;
116
- /**
117
- * The format to return the embeddings
118
- */
119
- export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
120
-
121
- /**
122
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
123
- */
124
- export const ReasoningEffort = {
125
- Low: "low",
126
- Medium: "medium",
127
- High: "high",
128
- } as const;
129
- /**
130
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
131
- */
132
- export type ReasoningEffort = ClosedEnum<typeof ReasoningEffort>;
133
-
134
- /**
135
- * Model Parameters: Not all parameters apply to every model
136
- */
137
- export type ModelParameters = {
138
- /**
139
- * Only supported on `chat` and `completion` models.
140
- */
141
- temperature?: number | undefined;
142
- /**
143
- * Only supported on `chat` and `completion` models.
144
- */
145
- maxTokens?: number | undefined;
146
- /**
147
- * Only supported on `chat` and `completion` models.
148
- */
149
- topK?: number | undefined;
150
- /**
151
- * Only supported on `chat` and `completion` models.
152
- */
153
- topP?: number | undefined;
154
- /**
155
- * Only supported on `chat` and `completion` models.
156
- */
157
- frequencyPenalty?: number | undefined;
158
- /**
159
- * Only supported on `chat` and `completion` models.
160
- */
161
- presencePenalty?: number | undefined;
162
- /**
163
- * Only supported on `image` models.
164
- */
165
- numImages?: number | undefined;
166
- /**
167
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
168
- */
169
- seed?: number | undefined;
170
- /**
171
- * Only supported on `image` models.
172
- */
173
- format?: CreatePromptFormat | undefined;
174
- /**
175
- * Only supported on `image` models.
176
- */
177
- dimensions?: string | undefined;
178
- /**
179
- * Only supported on `image` models.
180
- */
181
- quality?: Quality | undefined;
182
- /**
183
- * Only supported on `image` models.
184
- */
185
- style?: string | undefined;
186
- /**
187
- * An object specifying the format that the model must output.
188
- *
189
- * @remarks
190
- *
191
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
192
- *
193
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
194
- *
195
- * 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.
196
- */
197
- responseFormat?: ResponseFormat2 | ResponseFormat1 | null | undefined;
198
- /**
199
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
200
- */
201
- photoRealVersion?: PhotoRealVersion | undefined;
202
- /**
203
- * The format to return the embeddings
204
- */
205
- encodingFormat?: EncodingFormat | undefined;
206
- /**
207
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
208
- */
209
- reasoningEffort?: ReasoningEffort | undefined;
210
- /**
211
- * 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`
212
- */
213
- budgetTokens?: number | undefined;
214
- };
215
-
216
- export const Provider = {
217
- Cohere: "cohere",
218
- Openai: "openai",
219
- Anthropic: "anthropic",
220
- Huggingface: "huggingface",
221
- Replicate: "replicate",
222
- Google: "google",
223
- GoogleAi: "google-ai",
224
- Azure: "azure",
225
- Aws: "aws",
226
- Anyscale: "anyscale",
227
- Perplexity: "perplexity",
228
- Groq: "groq",
229
- Fal: "fal",
230
- Leonardoai: "leonardoai",
231
- Nvidia: "nvidia",
232
- Jina: "jina",
233
- Togetherai: "togetherai",
234
- Elevenlabs: "elevenlabs",
235
- } as const;
236
- export type Provider = ClosedEnum<typeof Provider>;
237
-
238
- /**
239
- * The role of the prompt message
240
- */
241
- export const CreatePromptRole = {
242
- System: "system",
243
- Assistant: "assistant",
244
- User: "user",
245
- Exception: "exception",
246
- Tool: "tool",
247
- Prompt: "prompt",
248
- Correction: "correction",
249
- ExpectedOutput: "expected_output",
250
- } as const;
251
- /**
252
- * The role of the prompt message
253
- */
254
- export type CreatePromptRole = ClosedEnum<typeof CreatePromptRole>;
255
-
256
- export const CreatePrompt2PromptsType = {
257
- ImageUrl: "image_url",
258
- } as const;
259
- export type CreatePrompt2PromptsType = ClosedEnum<
260
- typeof CreatePrompt2PromptsType
261
- >;
262
-
263
- export type CreatePrompt2ImageUrl = {
264
- /**
265
- * Either a URL of the image or the base64 encoded data URI.
266
- */
267
- url: string;
268
- /**
269
- * Specifies the detail level of the image. Currently only supported with OpenAI models
270
- */
271
- detail?: string | undefined;
272
- };
273
-
274
- /**
275
- * The image part of the prompt message. Only supported with vision models.
276
- */
277
- export type CreatePrompt22 = {
278
- type: CreatePrompt2PromptsType;
279
- imageUrl: CreatePrompt2ImageUrl;
280
- };
281
-
282
- export const CreatePrompt2Type = {
283
- Text: "text",
284
- } as const;
285
- export type CreatePrompt2Type = ClosedEnum<typeof CreatePrompt2Type>;
286
-
287
- /**
288
- * Text content part of a prompt message
289
- */
290
- export type CreatePrompt21 = {
291
- type: CreatePrompt2Type;
292
- text: string;
293
- };
294
-
295
- export type CreatePromptContent2 = CreatePrompt21 | CreatePrompt22;
296
-
297
- /**
298
- * 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.
299
- */
300
- export type CreatePromptContent =
301
- | string
302
- | Array<CreatePrompt21 | CreatePrompt22>;
303
-
304
- export const CreatePromptType = {
305
- Function: "function",
306
- } as const;
307
- export type CreatePromptType = ClosedEnum<typeof CreatePromptType>;
308
-
309
- export type CreatePromptFunction = {
310
- name: string;
311
- /**
312
- * JSON string arguments for the functions
313
- */
314
- arguments: string;
315
- };
316
-
317
- export type CreatePromptToolCalls = {
318
- id?: string | undefined;
319
- index?: number | undefined;
320
- type: CreatePromptType;
321
- function: CreatePromptFunction;
322
- };
323
-
324
- export type CreatePromptMessages = {
325
- /**
326
- * The role of the prompt message
327
- */
328
- role: CreatePromptRole;
329
- /**
330
- * 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.
331
- */
332
- content: string | Array<CreatePrompt21 | CreatePrompt22>;
333
- toolCalls?: Array<CreatePromptToolCalls> | undefined;
334
- };
335
-
336
- /**
337
- * A list of messages compatible with the openAI schema
338
- */
339
- export type PromptConfig = {
340
- stream?: boolean | undefined;
341
- model?: string | undefined;
342
- /**
343
- * The modality of the model
344
- */
345
- modelType?: ModelType | undefined;
346
- /**
347
- * Model Parameters: Not all parameters apply to every model
348
- */
349
- modelParameters?: ModelParameters | undefined;
350
- provider?: Provider | undefined;
351
- version?: string | undefined;
352
- messages: Array<CreatePromptMessages>;
353
- };
354
-
355
- export const UseCases = {
356
- AgentsSimulations: "Agents simulations",
357
- Agents: "Agents",
358
- APIInteraction: "API interaction",
359
- AutonomousAgents: "Autonomous Agents",
360
- Chatbots: "Chatbots",
361
- Classification: "Classification",
362
- CodeUnderstanding: "Code understanding",
363
- CodeWriting: "Code writing",
364
- Conversation: "Conversation",
365
- DocumentsQA: "Documents QA",
366
- Evaluation: "Evaluation",
367
- Extraction: "Extraction",
368
- MultiModal: "Multi-modal",
369
- SelfChecking: "Self-checking",
370
- SentimentAnalysis: "Sentiment analysis",
371
- Sql: "SQL",
372
- Summarization: "Summarization",
373
- Tagging: "Tagging",
374
- TranslationDocument: "Translation (document)",
375
- TranslationSentences: "Translation (sentences)",
376
- } as const;
377
- export type UseCases = ClosedEnum<typeof UseCases>;
378
-
379
- /**
380
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
381
- */
382
- export const Language = {
383
- Chinese: "Chinese",
384
- Dutch: "Dutch",
385
- English: "English",
386
- French: "French",
387
- German: "German",
388
- Russian: "Russian",
389
- Spanish: "Spanish",
390
- } as const;
391
- /**
392
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
393
- */
394
- export type Language = ClosedEnum<typeof Language>;
395
-
396
- export type CreatePromptMetadata = {
397
- /**
398
- * 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
399
- */
400
- useCases?: Array<UseCases> | undefined;
401
- /**
402
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
403
- */
404
- language?: Language | undefined;
405
- };
406
-
407
- export type CreatePromptRequestBody = {
408
- /**
409
- * The prompt’s name, meant to be displayable in the UI.
410
- */
411
- displayName: string;
412
- /**
413
- * 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
414
- */
415
- description?: string | null | undefined;
416
- /**
417
- * A list of messages compatible with the openAI schema
418
- */
419
- promptConfig: PromptConfig;
420
- metadata?: CreatePromptMetadata | undefined;
421
- /**
422
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
423
- */
424
- path: string;
425
- };
426
-
427
- export const CreatePromptPromptsType = {
428
- Prompt: "prompt",
429
- } as const;
430
- export type CreatePromptPromptsType = ClosedEnum<
431
- typeof CreatePromptPromptsType
432
- >;
433
-
434
- /**
435
- * The modality of the model
436
- */
437
- export const CreatePromptModelType = {
438
- Chat: "chat",
439
- Completion: "completion",
440
- Embedding: "embedding",
441
- Vision: "vision",
442
- Image: "image",
443
- Tts: "tts",
444
- Stt: "stt",
445
- Rerank: "rerank",
446
- Moderations: "moderations",
447
- } as const;
448
- /**
449
- * The modality of the model
450
- */
451
- export type CreatePromptModelType = ClosedEnum<typeof CreatePromptModelType>;
452
-
453
- /**
454
- * Only supported on `image` models.
455
- */
456
- export const CreatePromptPromptsFormat = {
457
- Url: "url",
458
- B64Json: "b64_json",
459
- Text: "text",
460
- JsonObject: "json_object",
461
- } as const;
462
- /**
463
- * Only supported on `image` models.
464
- */
465
- export type CreatePromptPromptsFormat = ClosedEnum<
466
- typeof CreatePromptPromptsFormat
467
- >;
468
-
469
- /**
470
- * Only supported on `image` models.
471
- */
472
- export const CreatePromptQuality = {
473
- Standard: "standard",
474
- Hd: "hd",
475
- } as const;
476
- /**
477
- * Only supported on `image` models.
478
- */
479
- export type CreatePromptQuality = ClosedEnum<typeof CreatePromptQuality>;
480
-
481
- export const CreatePromptResponseFormatPromptsResponseType = {
482
- JsonObject: "json_object",
483
- } as const;
484
- export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<
485
- typeof CreatePromptResponseFormatPromptsResponseType
486
- >;
487
-
488
- export type CreatePromptResponseFormat2 = {
489
- type: CreatePromptResponseFormatPromptsResponseType;
490
- };
491
-
492
- export const CreatePromptResponseFormatPromptsType = {
493
- JsonSchema: "json_schema",
494
- } as const;
495
- export type CreatePromptResponseFormatPromptsType = ClosedEnum<
496
- typeof CreatePromptResponseFormatPromptsType
497
- >;
498
-
499
- export type CreatePromptResponseFormatJsonSchema = {
500
- name: string;
501
- strict: boolean;
502
- schema: { [k: string]: any };
503
- };
504
-
505
- export type CreatePromptResponseFormat1 = {
506
- type: CreatePromptResponseFormatPromptsType;
507
- jsonSchema: CreatePromptResponseFormatJsonSchema;
508
- };
509
-
510
- /**
511
- * An object specifying the format that the model must output.
512
- *
513
- * @remarks
514
- *
515
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
516
- *
517
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
518
- *
519
- * 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.
520
- */
521
- export type CreatePromptResponseFormat =
522
- | CreatePromptResponseFormat2
523
- | CreatePromptResponseFormat1;
524
-
525
- /**
526
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
527
- */
528
- export const CreatePromptPhotoRealVersion = {
529
- V1: "v1",
530
- V2: "v2",
531
- } as const;
532
- /**
533
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
534
- */
535
- export type CreatePromptPhotoRealVersion = ClosedEnum<
536
- typeof CreatePromptPhotoRealVersion
537
- >;
538
-
539
- /**
540
- * The format to return the embeddings
541
- */
542
- export const CreatePromptEncodingFormat = {
543
- Float: "float",
544
- Base64: "base64",
545
- } as const;
546
- /**
547
- * The format to return the embeddings
548
- */
549
- export type CreatePromptEncodingFormat = ClosedEnum<
550
- typeof CreatePromptEncodingFormat
551
- >;
552
-
553
- /**
554
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
555
- */
556
- export const CreatePromptReasoningEffort = {
557
- Low: "low",
558
- Medium: "medium",
559
- High: "high",
560
- } as const;
561
- /**
562
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
563
- */
564
- export type CreatePromptReasoningEffort = ClosedEnum<
565
- typeof CreatePromptReasoningEffort
566
- >;
567
-
568
- /**
569
- * Model Parameters: Not all parameters apply to every model
570
- */
571
- export type CreatePromptModelParameters = {
572
- /**
573
- * Only supported on `chat` and `completion` models.
574
- */
575
- temperature?: number | undefined;
576
- /**
577
- * Only supported on `chat` and `completion` models.
578
- */
579
- maxTokens?: number | undefined;
580
- /**
581
- * Only supported on `chat` and `completion` models.
582
- */
583
- topK?: number | undefined;
584
- /**
585
- * Only supported on `chat` and `completion` models.
586
- */
587
- topP?: number | undefined;
588
- /**
589
- * Only supported on `chat` and `completion` models.
590
- */
591
- frequencyPenalty?: number | undefined;
592
- /**
593
- * Only supported on `chat` and `completion` models.
594
- */
595
- presencePenalty?: number | undefined;
596
- /**
597
- * Only supported on `image` models.
598
- */
599
- numImages?: number | undefined;
600
- /**
601
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
602
- */
603
- seed?: number | undefined;
604
- /**
605
- * Only supported on `image` models.
606
- */
607
- format?: CreatePromptPromptsFormat | undefined;
608
- /**
609
- * Only supported on `image` models.
610
- */
611
- dimensions?: string | undefined;
612
- /**
613
- * Only supported on `image` models.
614
- */
615
- quality?: CreatePromptQuality | undefined;
616
- /**
617
- * Only supported on `image` models.
618
- */
619
- style?: string | undefined;
620
- /**
621
- * An object specifying the format that the model must output.
622
- *
623
- * @remarks
624
- *
625
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
626
- *
627
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
628
- *
629
- * 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.
630
- */
631
- responseFormat?:
632
- | CreatePromptResponseFormat2
633
- | CreatePromptResponseFormat1
634
- | null
635
- | undefined;
636
- /**
637
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
638
- */
639
- photoRealVersion?: CreatePromptPhotoRealVersion | undefined;
640
- /**
641
- * The format to return the embeddings
642
- */
643
- encodingFormat?: CreatePromptEncodingFormat | undefined;
644
- /**
645
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
646
- */
647
- reasoningEffort?: CreatePromptReasoningEffort | undefined;
648
- /**
649
- * 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`
650
- */
651
- budgetTokens?: number | undefined;
652
- };
653
-
654
- export const CreatePromptProvider = {
655
- Cohere: "cohere",
656
- Openai: "openai",
657
- Anthropic: "anthropic",
658
- Huggingface: "huggingface",
659
- Replicate: "replicate",
660
- Google: "google",
661
- GoogleAi: "google-ai",
662
- Azure: "azure",
663
- Aws: "aws",
664
- Anyscale: "anyscale",
665
- Perplexity: "perplexity",
666
- Groq: "groq",
667
- Fal: "fal",
668
- Leonardoai: "leonardoai",
669
- Nvidia: "nvidia",
670
- Jina: "jina",
671
- Togetherai: "togetherai",
672
- Elevenlabs: "elevenlabs",
673
- } as const;
674
- export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
675
-
676
- /**
677
- * The role of the prompt message
678
- */
679
- export const CreatePromptPromptsRole = {
680
- System: "system",
681
- Assistant: "assistant",
682
- User: "user",
683
- Exception: "exception",
684
- Tool: "tool",
685
- Prompt: "prompt",
686
- Correction: "correction",
687
- ExpectedOutput: "expected_output",
688
- } as const;
689
- /**
690
- * The role of the prompt message
691
- */
692
- export type CreatePromptPromptsRole = ClosedEnum<
693
- typeof CreatePromptPromptsRole
694
- >;
695
-
696
- export const CreatePrompt2PromptsResponse200Type = {
697
- ImageUrl: "image_url",
698
- } as const;
699
- export type CreatePrompt2PromptsResponse200Type = ClosedEnum<
700
- typeof CreatePrompt2PromptsResponse200Type
701
- >;
702
-
703
- export type CreatePrompt2PromptsImageUrl = {
704
- /**
705
- * The orq.ai id of the image
706
- */
707
- id?: string | undefined;
708
- /**
709
- * Either a URL of the image or the base64 encoded data URI.
710
- */
711
- url: string;
712
- /**
713
- * Specifies the detail level of the image. Currently only supported with OpenAI models
714
- */
715
- detail?: string | undefined;
716
- };
717
-
718
- /**
719
- * The image part of the prompt message. Only supported with vision models.
720
- */
721
- export type CreatePrompt2Prompts2 = {
722
- type: CreatePrompt2PromptsResponse200Type;
723
- imageUrl: CreatePrompt2PromptsImageUrl;
724
- };
725
-
726
- export const CreatePrompt2PromptsResponseType = {
727
- Text: "text",
728
- } as const;
729
- export type CreatePrompt2PromptsResponseType = ClosedEnum<
730
- typeof CreatePrompt2PromptsResponseType
731
- >;
732
-
733
- /**
734
- * Text content part of a prompt message
735
- */
736
- export type CreatePrompt2Prompts1 = {
737
- type: CreatePrompt2PromptsResponseType;
738
- text: string;
739
- };
740
-
741
- export type CreatePromptContentPrompts2 =
742
- | CreatePrompt2Prompts1
743
- | CreatePrompt2Prompts2;
744
-
745
- /**
746
- * 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.
747
- */
748
- export type CreatePromptPromptsContent =
749
- | string
750
- | Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
751
-
752
- export const CreatePromptPromptsResponseType = {
753
- Function: "function",
754
- } as const;
755
- export type CreatePromptPromptsResponseType = ClosedEnum<
756
- typeof CreatePromptPromptsResponseType
757
- >;
758
-
759
- export type CreatePromptPromptsFunction = {
760
- name: string;
761
- /**
762
- * JSON string arguments for the functions
763
- */
764
- arguments: string;
765
- };
766
-
767
- export type CreatePromptPromptsToolCalls = {
768
- id?: string | undefined;
769
- index?: number | undefined;
770
- type: CreatePromptPromptsResponseType;
771
- function: CreatePromptPromptsFunction;
772
- };
773
-
774
- export type CreatePromptPromptsMessages = {
775
- /**
776
- * The role of the prompt message
777
- */
778
- role: CreatePromptPromptsRole;
779
- /**
780
- * 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.
781
- */
782
- content: string | Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
783
- toolCalls?: Array<CreatePromptPromptsToolCalls> | undefined;
784
- };
785
-
786
- /**
787
- * A list of messages compatible with the openAI schema
788
- */
789
- export type CreatePromptPromptConfig = {
790
- stream?: boolean | undefined;
791
- model?: string | undefined;
792
- /**
793
- * The id of the resource
794
- */
795
- modelDbId?: string | undefined;
796
- /**
797
- * The modality of the model
798
- */
799
- modelType?: CreatePromptModelType | undefined;
800
- /**
801
- * Model Parameters: Not all parameters apply to every model
802
- */
803
- modelParameters?: CreatePromptModelParameters | undefined;
804
- provider?: CreatePromptProvider | undefined;
805
- /**
806
- * The id of the resource
807
- */
808
- integrationId?: string | null | undefined;
809
- version?: string | undefined;
810
- messages: Array<CreatePromptPromptsMessages>;
811
- };
812
-
813
- export const CreatePromptUseCases = {
814
- AgentsSimulations: "Agents simulations",
815
- Agents: "Agents",
816
- APIInteraction: "API interaction",
817
- AutonomousAgents: "Autonomous Agents",
818
- Chatbots: "Chatbots",
819
- Classification: "Classification",
820
- CodeUnderstanding: "Code understanding",
821
- CodeWriting: "Code writing",
822
- Conversation: "Conversation",
823
- DocumentsQA: "Documents QA",
824
- Evaluation: "Evaluation",
825
- Extraction: "Extraction",
826
- MultiModal: "Multi-modal",
827
- SelfChecking: "Self-checking",
828
- SentimentAnalysis: "Sentiment analysis",
829
- Sql: "SQL",
830
- Summarization: "Summarization",
831
- Tagging: "Tagging",
832
- TranslationDocument: "Translation (document)",
833
- TranslationSentences: "Translation (sentences)",
834
- } as const;
835
- export type CreatePromptUseCases = ClosedEnum<typeof CreatePromptUseCases>;
836
-
837
- /**
838
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
839
- */
840
- export const CreatePromptLanguage = {
841
- Chinese: "Chinese",
842
- Dutch: "Dutch",
843
- English: "English",
844
- French: "French",
845
- German: "German",
846
- Russian: "Russian",
847
- Spanish: "Spanish",
848
- } as const;
849
- /**
850
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
851
- */
852
- export type CreatePromptLanguage = ClosedEnum<typeof CreatePromptLanguage>;
853
-
854
- export type CreatePromptPromptsMetadata = {
855
- /**
856
- * 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
857
- */
858
- useCases?: Array<CreatePromptUseCases> | undefined;
859
- /**
860
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
861
- */
862
- language?: CreatePromptLanguage | undefined;
863
- };
864
-
865
- /**
866
- * Prompt created.
867
- */
868
- export type CreatePromptResponseBody = {
869
- id: string;
870
- type: CreatePromptPromptsType;
871
- owner: string;
872
- domainId: string;
873
- created: string;
874
- updated: string;
875
- createdById?: string | null | undefined;
876
- updatedById?: string | null | undefined;
877
- /**
878
- * The prompt’s name, meant to be displayable in the UI.
879
- */
880
- displayName: string;
881
- /**
882
- * 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
883
- */
884
- description?: string | null | undefined;
885
- /**
886
- * A list of messages compatible with the openAI schema
887
- */
888
- promptConfig: CreatePromptPromptConfig;
889
- metadata?: CreatePromptPromptsMetadata | undefined;
890
- };
891
-
892
- /** @internal */
893
- export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
894
- .nativeEnum(ModelType);
895
-
896
- /** @internal */
897
- export const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType> =
898
- ModelType$inboundSchema;
899
-
900
- /**
901
- * @internal
902
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
903
- */
904
- export namespace ModelType$ {
905
- /** @deprecated use `ModelType$inboundSchema` instead. */
906
- export const inboundSchema = ModelType$inboundSchema;
907
- /** @deprecated use `ModelType$outboundSchema` instead. */
908
- export const outboundSchema = ModelType$outboundSchema;
909
- }
910
-
911
- /** @internal */
912
- export const CreatePromptFormat$inboundSchema: z.ZodNativeEnum<
913
- typeof CreatePromptFormat
914
- > = z.nativeEnum(CreatePromptFormat);
915
-
916
- /** @internal */
917
- export const CreatePromptFormat$outboundSchema: z.ZodNativeEnum<
918
- typeof CreatePromptFormat
919
- > = CreatePromptFormat$inboundSchema;
920
-
921
- /**
922
- * @internal
923
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
924
- */
925
- export namespace CreatePromptFormat$ {
926
- /** @deprecated use `CreatePromptFormat$inboundSchema` instead. */
927
- export const inboundSchema = CreatePromptFormat$inboundSchema;
928
- /** @deprecated use `CreatePromptFormat$outboundSchema` instead. */
929
- export const outboundSchema = CreatePromptFormat$outboundSchema;
930
- }
931
-
932
- /** @internal */
933
- export const Quality$inboundSchema: z.ZodNativeEnum<typeof Quality> = z
934
- .nativeEnum(Quality);
935
-
936
- /** @internal */
937
- export const Quality$outboundSchema: z.ZodNativeEnum<typeof Quality> =
938
- Quality$inboundSchema;
939
-
940
- /**
941
- * @internal
942
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
943
- */
944
- export namespace Quality$ {
945
- /** @deprecated use `Quality$inboundSchema` instead. */
946
- export const inboundSchema = Quality$inboundSchema;
947
- /** @deprecated use `Quality$outboundSchema` instead. */
948
- export const outboundSchema = Quality$outboundSchema;
949
- }
950
-
951
- /** @internal */
952
- export const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
953
- typeof CreatePromptResponseFormatType
954
- > = z.nativeEnum(CreatePromptResponseFormatType);
955
-
956
- /** @internal */
957
- export const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
958
- typeof CreatePromptResponseFormatType
959
- > = CreatePromptResponseFormatType$inboundSchema;
960
-
961
- /**
962
- * @internal
963
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
964
- */
965
- export namespace CreatePromptResponseFormatType$ {
966
- /** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
967
- export const inboundSchema = CreatePromptResponseFormatType$inboundSchema;
968
- /** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
969
- export const outboundSchema = CreatePromptResponseFormatType$outboundSchema;
970
- }
971
-
972
- /** @internal */
973
- export const ResponseFormat2$inboundSchema: z.ZodType<
974
- ResponseFormat2,
975
- z.ZodTypeDef,
976
- unknown
977
- > = z.object({
978
- type: CreatePromptResponseFormatType$inboundSchema,
979
- });
980
-
981
- /** @internal */
982
- export type ResponseFormat2$Outbound = {
983
- type: string;
984
- };
985
-
986
- /** @internal */
987
- export const ResponseFormat2$outboundSchema: z.ZodType<
988
- ResponseFormat2$Outbound,
989
- z.ZodTypeDef,
990
- ResponseFormat2
991
- > = z.object({
992
- type: CreatePromptResponseFormatType$outboundSchema,
993
- });
994
-
995
- /**
996
- * @internal
997
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
998
- */
999
- export namespace ResponseFormat2$ {
1000
- /** @deprecated use `ResponseFormat2$inboundSchema` instead. */
1001
- export const inboundSchema = ResponseFormat2$inboundSchema;
1002
- /** @deprecated use `ResponseFormat2$outboundSchema` instead. */
1003
- export const outboundSchema = ResponseFormat2$outboundSchema;
1004
- /** @deprecated use `ResponseFormat2$Outbound` instead. */
1005
- export type Outbound = ResponseFormat2$Outbound;
1006
- }
1007
-
1008
- export function responseFormat2ToJSON(
1009
- responseFormat2: ResponseFormat2,
1010
- ): string {
1011
- return JSON.stringify(ResponseFormat2$outboundSchema.parse(responseFormat2));
1012
- }
1013
-
1014
- export function responseFormat2FromJSON(
1015
- jsonString: string,
1016
- ): SafeParseResult<ResponseFormat2, SDKValidationError> {
1017
- return safeParse(
1018
- jsonString,
1019
- (x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1020
- `Failed to parse 'ResponseFormat2' from JSON`,
1021
- );
1022
- }
1023
-
1024
- /** @internal */
1025
- export const ResponseFormatType$inboundSchema: z.ZodNativeEnum<
1026
- typeof ResponseFormatType
1027
- > = z.nativeEnum(ResponseFormatType);
1028
-
1029
- /** @internal */
1030
- export const ResponseFormatType$outboundSchema: z.ZodNativeEnum<
1031
- typeof ResponseFormatType
1032
- > = ResponseFormatType$inboundSchema;
1033
-
1034
- /**
1035
- * @internal
1036
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1037
- */
1038
- export namespace ResponseFormatType$ {
1039
- /** @deprecated use `ResponseFormatType$inboundSchema` instead. */
1040
- export const inboundSchema = ResponseFormatType$inboundSchema;
1041
- /** @deprecated use `ResponseFormatType$outboundSchema` instead. */
1042
- export const outboundSchema = ResponseFormatType$outboundSchema;
1043
- }
1044
-
1045
- /** @internal */
1046
- export const JsonSchema$inboundSchema: z.ZodType<
1047
- JsonSchema,
1048
- z.ZodTypeDef,
1049
- unknown
1050
- > = z.object({
1051
- name: z.string(),
1052
- strict: z.boolean(),
1053
- schema: z.record(z.any()),
1054
- });
1055
-
1056
- /** @internal */
1057
- export type JsonSchema$Outbound = {
1058
- name: string;
1059
- strict: boolean;
1060
- schema: { [k: string]: any };
1061
- };
1062
-
1063
- /** @internal */
1064
- export const JsonSchema$outboundSchema: z.ZodType<
1065
- JsonSchema$Outbound,
1066
- z.ZodTypeDef,
1067
- JsonSchema
1068
- > = z.object({
1069
- name: z.string(),
1070
- strict: z.boolean(),
1071
- schema: z.record(z.any()),
1072
- });
1073
-
1074
- /**
1075
- * @internal
1076
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1077
- */
1078
- export namespace JsonSchema$ {
1079
- /** @deprecated use `JsonSchema$inboundSchema` instead. */
1080
- export const inboundSchema = JsonSchema$inboundSchema;
1081
- /** @deprecated use `JsonSchema$outboundSchema` instead. */
1082
- export const outboundSchema = JsonSchema$outboundSchema;
1083
- /** @deprecated use `JsonSchema$Outbound` instead. */
1084
- export type Outbound = JsonSchema$Outbound;
1085
- }
1086
-
1087
- export function jsonSchemaToJSON(jsonSchema: JsonSchema): string {
1088
- return JSON.stringify(JsonSchema$outboundSchema.parse(jsonSchema));
1089
- }
1090
-
1091
- export function jsonSchemaFromJSON(
1092
- jsonString: string,
1093
- ): SafeParseResult<JsonSchema, SDKValidationError> {
1094
- return safeParse(
1095
- jsonString,
1096
- (x) => JsonSchema$inboundSchema.parse(JSON.parse(x)),
1097
- `Failed to parse 'JsonSchema' from JSON`,
1098
- );
1099
- }
1100
-
1101
- /** @internal */
1102
- export const ResponseFormat1$inboundSchema: z.ZodType<
1103
- ResponseFormat1,
1104
- z.ZodTypeDef,
1105
- unknown
1106
- > = z.object({
1107
- type: ResponseFormatType$inboundSchema,
1108
- json_schema: z.lazy(() => JsonSchema$inboundSchema),
1109
- }).transform((v) => {
1110
- return remap$(v, {
1111
- "json_schema": "jsonSchema",
1112
- });
1113
- });
1114
-
1115
- /** @internal */
1116
- export type ResponseFormat1$Outbound = {
1117
- type: string;
1118
- json_schema: JsonSchema$Outbound;
1119
- };
1120
-
1121
- /** @internal */
1122
- export const ResponseFormat1$outboundSchema: z.ZodType<
1123
- ResponseFormat1$Outbound,
1124
- z.ZodTypeDef,
1125
- ResponseFormat1
1126
- > = z.object({
1127
- type: ResponseFormatType$outboundSchema,
1128
- jsonSchema: z.lazy(() => JsonSchema$outboundSchema),
1129
- }).transform((v) => {
1130
- return remap$(v, {
1131
- jsonSchema: "json_schema",
1132
- });
1133
- });
1134
-
1135
- /**
1136
- * @internal
1137
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1138
- */
1139
- export namespace ResponseFormat1$ {
1140
- /** @deprecated use `ResponseFormat1$inboundSchema` instead. */
1141
- export const inboundSchema = ResponseFormat1$inboundSchema;
1142
- /** @deprecated use `ResponseFormat1$outboundSchema` instead. */
1143
- export const outboundSchema = ResponseFormat1$outboundSchema;
1144
- /** @deprecated use `ResponseFormat1$Outbound` instead. */
1145
- export type Outbound = ResponseFormat1$Outbound;
1146
- }
1147
-
1148
- export function responseFormat1ToJSON(
1149
- responseFormat1: ResponseFormat1,
1150
- ): string {
1151
- return JSON.stringify(ResponseFormat1$outboundSchema.parse(responseFormat1));
1152
- }
1153
-
1154
- export function responseFormat1FromJSON(
1155
- jsonString: string,
1156
- ): SafeParseResult<ResponseFormat1, SDKValidationError> {
1157
- return safeParse(
1158
- jsonString,
1159
- (x) => ResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1160
- `Failed to parse 'ResponseFormat1' from JSON`,
1161
- );
1162
- }
1163
-
1164
- /** @internal */
1165
- export const ResponseFormat$inboundSchema: z.ZodType<
1166
- ResponseFormat,
1167
- z.ZodTypeDef,
1168
- unknown
1169
- > = z.union([
1170
- z.lazy(() => ResponseFormat2$inboundSchema),
1171
- z.lazy(() => ResponseFormat1$inboundSchema),
1172
- ]);
1173
-
1174
- /** @internal */
1175
- export type ResponseFormat$Outbound =
1176
- | ResponseFormat2$Outbound
1177
- | ResponseFormat1$Outbound;
1178
-
1179
- /** @internal */
1180
- export const ResponseFormat$outboundSchema: z.ZodType<
1181
- ResponseFormat$Outbound,
1182
- z.ZodTypeDef,
1183
- ResponseFormat
1184
- > = z.union([
1185
- z.lazy(() => ResponseFormat2$outboundSchema),
1186
- z.lazy(() => ResponseFormat1$outboundSchema),
1187
- ]);
1188
-
1189
- /**
1190
- * @internal
1191
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1192
- */
1193
- export namespace ResponseFormat$ {
1194
- /** @deprecated use `ResponseFormat$inboundSchema` instead. */
1195
- export const inboundSchema = ResponseFormat$inboundSchema;
1196
- /** @deprecated use `ResponseFormat$outboundSchema` instead. */
1197
- export const outboundSchema = ResponseFormat$outboundSchema;
1198
- /** @deprecated use `ResponseFormat$Outbound` instead. */
1199
- export type Outbound = ResponseFormat$Outbound;
1200
- }
1201
-
1202
- export function responseFormatToJSON(responseFormat: ResponseFormat): string {
1203
- return JSON.stringify(ResponseFormat$outboundSchema.parse(responseFormat));
1204
- }
1205
-
1206
- export function responseFormatFromJSON(
1207
- jsonString: string,
1208
- ): SafeParseResult<ResponseFormat, SDKValidationError> {
1209
- return safeParse(
1210
- jsonString,
1211
- (x) => ResponseFormat$inboundSchema.parse(JSON.parse(x)),
1212
- `Failed to parse 'ResponseFormat' from JSON`,
1213
- );
1214
- }
1215
-
1216
- /** @internal */
1217
- export const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1218
- typeof PhotoRealVersion
1219
- > = z.nativeEnum(PhotoRealVersion);
1220
-
1221
- /** @internal */
1222
- export const PhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1223
- typeof PhotoRealVersion
1224
- > = PhotoRealVersion$inboundSchema;
1225
-
1226
- /**
1227
- * @internal
1228
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1229
- */
1230
- export namespace PhotoRealVersion$ {
1231
- /** @deprecated use `PhotoRealVersion$inboundSchema` instead. */
1232
- export const inboundSchema = PhotoRealVersion$inboundSchema;
1233
- /** @deprecated use `PhotoRealVersion$outboundSchema` instead. */
1234
- export const outboundSchema = PhotoRealVersion$outboundSchema;
1235
- }
1236
-
1237
- /** @internal */
1238
- export const EncodingFormat$inboundSchema: z.ZodNativeEnum<
1239
- typeof EncodingFormat
1240
- > = z.nativeEnum(EncodingFormat);
1241
-
1242
- /** @internal */
1243
- export const EncodingFormat$outboundSchema: z.ZodNativeEnum<
1244
- typeof EncodingFormat
1245
- > = EncodingFormat$inboundSchema;
1246
-
1247
- /**
1248
- * @internal
1249
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1250
- */
1251
- export namespace EncodingFormat$ {
1252
- /** @deprecated use `EncodingFormat$inboundSchema` instead. */
1253
- export const inboundSchema = EncodingFormat$inboundSchema;
1254
- /** @deprecated use `EncodingFormat$outboundSchema` instead. */
1255
- export const outboundSchema = EncodingFormat$outboundSchema;
1256
- }
1257
-
1258
- /** @internal */
1259
- export const ReasoningEffort$inboundSchema: z.ZodNativeEnum<
1260
- typeof ReasoningEffort
1261
- > = z.nativeEnum(ReasoningEffort);
1262
-
1263
- /** @internal */
1264
- export const ReasoningEffort$outboundSchema: z.ZodNativeEnum<
1265
- typeof ReasoningEffort
1266
- > = ReasoningEffort$inboundSchema;
1267
-
1268
- /**
1269
- * @internal
1270
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1271
- */
1272
- export namespace ReasoningEffort$ {
1273
- /** @deprecated use `ReasoningEffort$inboundSchema` instead. */
1274
- export const inboundSchema = ReasoningEffort$inboundSchema;
1275
- /** @deprecated use `ReasoningEffort$outboundSchema` instead. */
1276
- export const outboundSchema = ReasoningEffort$outboundSchema;
1277
- }
1278
-
1279
- /** @internal */
1280
- export const ModelParameters$inboundSchema: z.ZodType<
1281
- ModelParameters,
1282
- z.ZodTypeDef,
1283
- unknown
1284
- > = z.object({
1285
- temperature: z.number().optional(),
1286
- maxTokens: z.number().optional(),
1287
- topK: z.number().optional(),
1288
- topP: z.number().optional(),
1289
- frequencyPenalty: z.number().optional(),
1290
- presencePenalty: z.number().optional(),
1291
- numImages: z.number().optional(),
1292
- seed: z.number().optional(),
1293
- format: CreatePromptFormat$inboundSchema.optional(),
1294
- dimensions: z.string().optional(),
1295
- quality: Quality$inboundSchema.optional(),
1296
- style: z.string().optional(),
1297
- responseFormat: z.nullable(
1298
- z.union([
1299
- z.lazy(() => ResponseFormat2$inboundSchema),
1300
- z.lazy(() => ResponseFormat1$inboundSchema),
1301
- ]),
1302
- ).optional(),
1303
- photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
1304
- encoding_format: EncodingFormat$inboundSchema.optional(),
1305
- reasoningEffort: ReasoningEffort$inboundSchema.optional(),
1306
- budgetTokens: z.number().optional(),
1307
- }).transform((v) => {
1308
- return remap$(v, {
1309
- "encoding_format": "encodingFormat",
1310
- });
1311
- });
1312
-
1313
- /** @internal */
1314
- export type ModelParameters$Outbound = {
1315
- temperature?: number | undefined;
1316
- maxTokens?: number | undefined;
1317
- topK?: number | undefined;
1318
- topP?: number | undefined;
1319
- frequencyPenalty?: number | undefined;
1320
- presencePenalty?: number | undefined;
1321
- numImages?: number | undefined;
1322
- seed?: number | undefined;
1323
- format?: string | undefined;
1324
- dimensions?: string | undefined;
1325
- quality?: string | undefined;
1326
- style?: string | undefined;
1327
- responseFormat?:
1328
- | ResponseFormat2$Outbound
1329
- | ResponseFormat1$Outbound
1330
- | null
1331
- | undefined;
1332
- photoRealVersion?: string | undefined;
1333
- encoding_format?: string | undefined;
1334
- reasoningEffort?: string | undefined;
1335
- budgetTokens?: number | undefined;
1336
- };
1337
-
1338
- /** @internal */
1339
- export const ModelParameters$outboundSchema: z.ZodType<
1340
- ModelParameters$Outbound,
1341
- z.ZodTypeDef,
1342
- ModelParameters
1343
- > = z.object({
1344
- temperature: z.number().optional(),
1345
- maxTokens: z.number().optional(),
1346
- topK: z.number().optional(),
1347
- topP: z.number().optional(),
1348
- frequencyPenalty: z.number().optional(),
1349
- presencePenalty: z.number().optional(),
1350
- numImages: z.number().optional(),
1351
- seed: z.number().optional(),
1352
- format: CreatePromptFormat$outboundSchema.optional(),
1353
- dimensions: z.string().optional(),
1354
- quality: Quality$outboundSchema.optional(),
1355
- style: z.string().optional(),
1356
- responseFormat: z.nullable(
1357
- z.union([
1358
- z.lazy(() => ResponseFormat2$outboundSchema),
1359
- z.lazy(() => ResponseFormat1$outboundSchema),
1360
- ]),
1361
- ).optional(),
1362
- photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
1363
- encodingFormat: EncodingFormat$outboundSchema.optional(),
1364
- reasoningEffort: ReasoningEffort$outboundSchema.optional(),
1365
- budgetTokens: z.number().optional(),
1366
- }).transform((v) => {
1367
- return remap$(v, {
1368
- encodingFormat: "encoding_format",
1369
- });
1370
- });
1371
-
1372
- /**
1373
- * @internal
1374
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1375
- */
1376
- export namespace ModelParameters$ {
1377
- /** @deprecated use `ModelParameters$inboundSchema` instead. */
1378
- export const inboundSchema = ModelParameters$inboundSchema;
1379
- /** @deprecated use `ModelParameters$outboundSchema` instead. */
1380
- export const outboundSchema = ModelParameters$outboundSchema;
1381
- /** @deprecated use `ModelParameters$Outbound` instead. */
1382
- export type Outbound = ModelParameters$Outbound;
1383
- }
1384
-
1385
- export function modelParametersToJSON(
1386
- modelParameters: ModelParameters,
1387
- ): string {
1388
- return JSON.stringify(ModelParameters$outboundSchema.parse(modelParameters));
1389
- }
1390
-
1391
- export function modelParametersFromJSON(
1392
- jsonString: string,
1393
- ): SafeParseResult<ModelParameters, SDKValidationError> {
1394
- return safeParse(
1395
- jsonString,
1396
- (x) => ModelParameters$inboundSchema.parse(JSON.parse(x)),
1397
- `Failed to parse 'ModelParameters' from JSON`,
1398
- );
1399
- }
1400
-
1401
- /** @internal */
1402
- export const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider> = z
1403
- .nativeEnum(Provider);
1404
-
1405
- /** @internal */
1406
- export const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider> =
1407
- Provider$inboundSchema;
1408
-
1409
- /**
1410
- * @internal
1411
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1412
- */
1413
- export namespace Provider$ {
1414
- /** @deprecated use `Provider$inboundSchema` instead. */
1415
- export const inboundSchema = Provider$inboundSchema;
1416
- /** @deprecated use `Provider$outboundSchema` instead. */
1417
- export const outboundSchema = Provider$outboundSchema;
1418
- }
1419
-
1420
- /** @internal */
1421
- export const CreatePromptRole$inboundSchema: z.ZodNativeEnum<
1422
- typeof CreatePromptRole
1423
- > = z.nativeEnum(CreatePromptRole);
1424
-
1425
- /** @internal */
1426
- export const CreatePromptRole$outboundSchema: z.ZodNativeEnum<
1427
- typeof CreatePromptRole
1428
- > = CreatePromptRole$inboundSchema;
1429
-
1430
- /**
1431
- * @internal
1432
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1433
- */
1434
- export namespace CreatePromptRole$ {
1435
- /** @deprecated use `CreatePromptRole$inboundSchema` instead. */
1436
- export const inboundSchema = CreatePromptRole$inboundSchema;
1437
- /** @deprecated use `CreatePromptRole$outboundSchema` instead. */
1438
- export const outboundSchema = CreatePromptRole$outboundSchema;
1439
- }
1440
-
1441
- /** @internal */
1442
- export const CreatePrompt2PromptsType$inboundSchema: z.ZodNativeEnum<
1443
- typeof CreatePrompt2PromptsType
1444
- > = z.nativeEnum(CreatePrompt2PromptsType);
1445
-
1446
- /** @internal */
1447
- export const CreatePrompt2PromptsType$outboundSchema: z.ZodNativeEnum<
1448
- typeof CreatePrompt2PromptsType
1449
- > = CreatePrompt2PromptsType$inboundSchema;
1450
-
1451
- /**
1452
- * @internal
1453
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1454
- */
1455
- export namespace CreatePrompt2PromptsType$ {
1456
- /** @deprecated use `CreatePrompt2PromptsType$inboundSchema` instead. */
1457
- export const inboundSchema = CreatePrompt2PromptsType$inboundSchema;
1458
- /** @deprecated use `CreatePrompt2PromptsType$outboundSchema` instead. */
1459
- export const outboundSchema = CreatePrompt2PromptsType$outboundSchema;
1460
- }
1461
-
1462
- /** @internal */
1463
- export const CreatePrompt2ImageUrl$inboundSchema: z.ZodType<
1464
- CreatePrompt2ImageUrl,
1465
- z.ZodTypeDef,
1466
- unknown
1467
- > = z.object({
1468
- url: z.string(),
1469
- detail: z.string().optional(),
1470
- });
1471
-
1472
- /** @internal */
1473
- export type CreatePrompt2ImageUrl$Outbound = {
1474
- url: string;
1475
- detail?: string | undefined;
1476
- };
1477
-
1478
- /** @internal */
1479
- export const CreatePrompt2ImageUrl$outboundSchema: z.ZodType<
1480
- CreatePrompt2ImageUrl$Outbound,
1481
- z.ZodTypeDef,
1482
- CreatePrompt2ImageUrl
1483
- > = z.object({
1484
- url: z.string(),
1485
- detail: z.string().optional(),
1486
- });
1487
-
1488
- /**
1489
- * @internal
1490
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1491
- */
1492
- export namespace CreatePrompt2ImageUrl$ {
1493
- /** @deprecated use `CreatePrompt2ImageUrl$inboundSchema` instead. */
1494
- export const inboundSchema = CreatePrompt2ImageUrl$inboundSchema;
1495
- /** @deprecated use `CreatePrompt2ImageUrl$outboundSchema` instead. */
1496
- export const outboundSchema = CreatePrompt2ImageUrl$outboundSchema;
1497
- /** @deprecated use `CreatePrompt2ImageUrl$Outbound` instead. */
1498
- export type Outbound = CreatePrompt2ImageUrl$Outbound;
1499
- }
1500
-
1501
- export function createPrompt2ImageUrlToJSON(
1502
- createPrompt2ImageUrl: CreatePrompt2ImageUrl,
1503
- ): string {
1504
- return JSON.stringify(
1505
- CreatePrompt2ImageUrl$outboundSchema.parse(createPrompt2ImageUrl),
1506
- );
1507
- }
1508
-
1509
- export function createPrompt2ImageUrlFromJSON(
1510
- jsonString: string,
1511
- ): SafeParseResult<CreatePrompt2ImageUrl, SDKValidationError> {
1512
- return safeParse(
1513
- jsonString,
1514
- (x) => CreatePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1515
- `Failed to parse 'CreatePrompt2ImageUrl' from JSON`,
1516
- );
1517
- }
1518
-
1519
- /** @internal */
1520
- export const CreatePrompt22$inboundSchema: z.ZodType<
1521
- CreatePrompt22,
1522
- z.ZodTypeDef,
1523
- unknown
1524
- > = z.object({
1525
- type: CreatePrompt2PromptsType$inboundSchema,
1526
- image_url: z.lazy(() => CreatePrompt2ImageUrl$inboundSchema),
1527
- }).transform((v) => {
1528
- return remap$(v, {
1529
- "image_url": "imageUrl",
1530
- });
1531
- });
1532
-
1533
- /** @internal */
1534
- export type CreatePrompt22$Outbound = {
1535
- type: string;
1536
- image_url: CreatePrompt2ImageUrl$Outbound;
1537
- };
1538
-
1539
- /** @internal */
1540
- export const CreatePrompt22$outboundSchema: z.ZodType<
1541
- CreatePrompt22$Outbound,
1542
- z.ZodTypeDef,
1543
- CreatePrompt22
1544
- > = z.object({
1545
- type: CreatePrompt2PromptsType$outboundSchema,
1546
- imageUrl: z.lazy(() => CreatePrompt2ImageUrl$outboundSchema),
1547
- }).transform((v) => {
1548
- return remap$(v, {
1549
- imageUrl: "image_url",
1550
- });
1551
- });
1552
-
1553
- /**
1554
- * @internal
1555
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1556
- */
1557
- export namespace CreatePrompt22$ {
1558
- /** @deprecated use `CreatePrompt22$inboundSchema` instead. */
1559
- export const inboundSchema = CreatePrompt22$inboundSchema;
1560
- /** @deprecated use `CreatePrompt22$outboundSchema` instead. */
1561
- export const outboundSchema = CreatePrompt22$outboundSchema;
1562
- /** @deprecated use `CreatePrompt22$Outbound` instead. */
1563
- export type Outbound = CreatePrompt22$Outbound;
1564
- }
1565
-
1566
- export function createPrompt22ToJSON(createPrompt22: CreatePrompt22): string {
1567
- return JSON.stringify(CreatePrompt22$outboundSchema.parse(createPrompt22));
1568
- }
1569
-
1570
- export function createPrompt22FromJSON(
1571
- jsonString: string,
1572
- ): SafeParseResult<CreatePrompt22, SDKValidationError> {
1573
- return safeParse(
1574
- jsonString,
1575
- (x) => CreatePrompt22$inboundSchema.parse(JSON.parse(x)),
1576
- `Failed to parse 'CreatePrompt22' from JSON`,
1577
- );
1578
- }
1579
-
1580
- /** @internal */
1581
- export const CreatePrompt2Type$inboundSchema: z.ZodNativeEnum<
1582
- typeof CreatePrompt2Type
1583
- > = z.nativeEnum(CreatePrompt2Type);
1584
-
1585
- /** @internal */
1586
- export const CreatePrompt2Type$outboundSchema: z.ZodNativeEnum<
1587
- typeof CreatePrompt2Type
1588
- > = CreatePrompt2Type$inboundSchema;
1589
-
1590
- /**
1591
- * @internal
1592
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1593
- */
1594
- export namespace CreatePrompt2Type$ {
1595
- /** @deprecated use `CreatePrompt2Type$inboundSchema` instead. */
1596
- export const inboundSchema = CreatePrompt2Type$inboundSchema;
1597
- /** @deprecated use `CreatePrompt2Type$outboundSchema` instead. */
1598
- export const outboundSchema = CreatePrompt2Type$outboundSchema;
1599
- }
1600
-
1601
- /** @internal */
1602
- export const CreatePrompt21$inboundSchema: z.ZodType<
1603
- CreatePrompt21,
1604
- z.ZodTypeDef,
1605
- unknown
1606
- > = z.object({
1607
- type: CreatePrompt2Type$inboundSchema,
1608
- text: z.string(),
1609
- });
1610
-
1611
- /** @internal */
1612
- export type CreatePrompt21$Outbound = {
1613
- type: string;
1614
- text: string;
1615
- };
1616
-
1617
- /** @internal */
1618
- export const CreatePrompt21$outboundSchema: z.ZodType<
1619
- CreatePrompt21$Outbound,
1620
- z.ZodTypeDef,
1621
- CreatePrompt21
1622
- > = z.object({
1623
- type: CreatePrompt2Type$outboundSchema,
1624
- text: z.string(),
1625
- });
1626
-
1627
- /**
1628
- * @internal
1629
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1630
- */
1631
- export namespace CreatePrompt21$ {
1632
- /** @deprecated use `CreatePrompt21$inboundSchema` instead. */
1633
- export const inboundSchema = CreatePrompt21$inboundSchema;
1634
- /** @deprecated use `CreatePrompt21$outboundSchema` instead. */
1635
- export const outboundSchema = CreatePrompt21$outboundSchema;
1636
- /** @deprecated use `CreatePrompt21$Outbound` instead. */
1637
- export type Outbound = CreatePrompt21$Outbound;
1638
- }
1639
-
1640
- export function createPrompt21ToJSON(createPrompt21: CreatePrompt21): string {
1641
- return JSON.stringify(CreatePrompt21$outboundSchema.parse(createPrompt21));
1642
- }
1643
-
1644
- export function createPrompt21FromJSON(
1645
- jsonString: string,
1646
- ): SafeParseResult<CreatePrompt21, SDKValidationError> {
1647
- return safeParse(
1648
- jsonString,
1649
- (x) => CreatePrompt21$inboundSchema.parse(JSON.parse(x)),
1650
- `Failed to parse 'CreatePrompt21' from JSON`,
1651
- );
1652
- }
1653
-
1654
- /** @internal */
1655
- export const CreatePromptContent2$inboundSchema: z.ZodType<
1656
- CreatePromptContent2,
1657
- z.ZodTypeDef,
1658
- unknown
1659
- > = z.union([
1660
- z.lazy(() => CreatePrompt21$inboundSchema),
1661
- z.lazy(() => CreatePrompt22$inboundSchema),
1662
- ]);
1663
-
1664
- /** @internal */
1665
- export type CreatePromptContent2$Outbound =
1666
- | CreatePrompt21$Outbound
1667
- | CreatePrompt22$Outbound;
1668
-
1669
- /** @internal */
1670
- export const CreatePromptContent2$outboundSchema: z.ZodType<
1671
- CreatePromptContent2$Outbound,
1672
- z.ZodTypeDef,
1673
- CreatePromptContent2
1674
- > = z.union([
1675
- z.lazy(() => CreatePrompt21$outboundSchema),
1676
- z.lazy(() => CreatePrompt22$outboundSchema),
1677
- ]);
1678
-
1679
- /**
1680
- * @internal
1681
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1682
- */
1683
- export namespace CreatePromptContent2$ {
1684
- /** @deprecated use `CreatePromptContent2$inboundSchema` instead. */
1685
- export const inboundSchema = CreatePromptContent2$inboundSchema;
1686
- /** @deprecated use `CreatePromptContent2$outboundSchema` instead. */
1687
- export const outboundSchema = CreatePromptContent2$outboundSchema;
1688
- /** @deprecated use `CreatePromptContent2$Outbound` instead. */
1689
- export type Outbound = CreatePromptContent2$Outbound;
1690
- }
1691
-
1692
- export function createPromptContent2ToJSON(
1693
- createPromptContent2: CreatePromptContent2,
1694
- ): string {
1695
- return JSON.stringify(
1696
- CreatePromptContent2$outboundSchema.parse(createPromptContent2),
1697
- );
1698
- }
1699
-
1700
- export function createPromptContent2FromJSON(
1701
- jsonString: string,
1702
- ): SafeParseResult<CreatePromptContent2, SDKValidationError> {
1703
- return safeParse(
1704
- jsonString,
1705
- (x) => CreatePromptContent2$inboundSchema.parse(JSON.parse(x)),
1706
- `Failed to parse 'CreatePromptContent2' from JSON`,
1707
- );
1708
- }
1709
-
1710
- /** @internal */
1711
- export const CreatePromptContent$inboundSchema: z.ZodType<
1712
- CreatePromptContent,
1713
- z.ZodTypeDef,
1714
- unknown
1715
- > = z.union([
1716
- z.string(),
1717
- z.array(z.union([
1718
- z.lazy(() => CreatePrompt21$inboundSchema),
1719
- z.lazy(() => CreatePrompt22$inboundSchema),
1720
- ])),
1721
- ]);
1722
-
1723
- /** @internal */
1724
- export type CreatePromptContent$Outbound =
1725
- | string
1726
- | Array<CreatePrompt21$Outbound | CreatePrompt22$Outbound>;
1727
-
1728
- /** @internal */
1729
- export const CreatePromptContent$outboundSchema: z.ZodType<
1730
- CreatePromptContent$Outbound,
1731
- z.ZodTypeDef,
1732
- CreatePromptContent
1733
- > = z.union([
1734
- z.string(),
1735
- z.array(z.union([
1736
- z.lazy(() => CreatePrompt21$outboundSchema),
1737
- z.lazy(() => CreatePrompt22$outboundSchema),
1738
- ])),
1739
- ]);
1740
-
1741
- /**
1742
- * @internal
1743
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1744
- */
1745
- export namespace CreatePromptContent$ {
1746
- /** @deprecated use `CreatePromptContent$inboundSchema` instead. */
1747
- export const inboundSchema = CreatePromptContent$inboundSchema;
1748
- /** @deprecated use `CreatePromptContent$outboundSchema` instead. */
1749
- export const outboundSchema = CreatePromptContent$outboundSchema;
1750
- /** @deprecated use `CreatePromptContent$Outbound` instead. */
1751
- export type Outbound = CreatePromptContent$Outbound;
1752
- }
1753
-
1754
- export function createPromptContentToJSON(
1755
- createPromptContent: CreatePromptContent,
1756
- ): string {
1757
- return JSON.stringify(
1758
- CreatePromptContent$outboundSchema.parse(createPromptContent),
1759
- );
1760
- }
1761
-
1762
- export function createPromptContentFromJSON(
1763
- jsonString: string,
1764
- ): SafeParseResult<CreatePromptContent, SDKValidationError> {
1765
- return safeParse(
1766
- jsonString,
1767
- (x) => CreatePromptContent$inboundSchema.parse(JSON.parse(x)),
1768
- `Failed to parse 'CreatePromptContent' from JSON`,
1769
- );
1770
- }
1771
-
1772
- /** @internal */
1773
- export const CreatePromptType$inboundSchema: z.ZodNativeEnum<
1774
- typeof CreatePromptType
1775
- > = z.nativeEnum(CreatePromptType);
1776
-
1777
- /** @internal */
1778
- export const CreatePromptType$outboundSchema: z.ZodNativeEnum<
1779
- typeof CreatePromptType
1780
- > = CreatePromptType$inboundSchema;
1781
-
1782
- /**
1783
- * @internal
1784
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1785
- */
1786
- export namespace CreatePromptType$ {
1787
- /** @deprecated use `CreatePromptType$inboundSchema` instead. */
1788
- export const inboundSchema = CreatePromptType$inboundSchema;
1789
- /** @deprecated use `CreatePromptType$outboundSchema` instead. */
1790
- export const outboundSchema = CreatePromptType$outboundSchema;
1791
- }
1792
-
1793
- /** @internal */
1794
- export const CreatePromptFunction$inboundSchema: z.ZodType<
1795
- CreatePromptFunction,
1796
- z.ZodTypeDef,
1797
- unknown
1798
- > = z.object({
1799
- name: z.string(),
1800
- arguments: z.string(),
1801
- });
1802
-
1803
- /** @internal */
1804
- export type CreatePromptFunction$Outbound = {
1805
- name: string;
1806
- arguments: string;
1807
- };
1808
-
1809
- /** @internal */
1810
- export const CreatePromptFunction$outboundSchema: z.ZodType<
1811
- CreatePromptFunction$Outbound,
1812
- z.ZodTypeDef,
1813
- CreatePromptFunction
1814
- > = z.object({
1815
- name: z.string(),
1816
- arguments: z.string(),
1817
- });
1818
-
1819
- /**
1820
- * @internal
1821
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1822
- */
1823
- export namespace CreatePromptFunction$ {
1824
- /** @deprecated use `CreatePromptFunction$inboundSchema` instead. */
1825
- export const inboundSchema = CreatePromptFunction$inboundSchema;
1826
- /** @deprecated use `CreatePromptFunction$outboundSchema` instead. */
1827
- export const outboundSchema = CreatePromptFunction$outboundSchema;
1828
- /** @deprecated use `CreatePromptFunction$Outbound` instead. */
1829
- export type Outbound = CreatePromptFunction$Outbound;
1830
- }
1831
-
1832
- export function createPromptFunctionToJSON(
1833
- createPromptFunction: CreatePromptFunction,
1834
- ): string {
1835
- return JSON.stringify(
1836
- CreatePromptFunction$outboundSchema.parse(createPromptFunction),
1837
- );
1838
- }
1839
-
1840
- export function createPromptFunctionFromJSON(
1841
- jsonString: string,
1842
- ): SafeParseResult<CreatePromptFunction, SDKValidationError> {
1843
- return safeParse(
1844
- jsonString,
1845
- (x) => CreatePromptFunction$inboundSchema.parse(JSON.parse(x)),
1846
- `Failed to parse 'CreatePromptFunction' from JSON`,
1847
- );
1848
- }
1849
-
1850
- /** @internal */
1851
- export const CreatePromptToolCalls$inboundSchema: z.ZodType<
1852
- CreatePromptToolCalls,
1853
- z.ZodTypeDef,
1854
- unknown
1855
- > = z.object({
1856
- id: z.string().optional(),
1857
- index: z.number().optional(),
1858
- type: CreatePromptType$inboundSchema,
1859
- function: z.lazy(() => CreatePromptFunction$inboundSchema),
1860
- });
1861
-
1862
- /** @internal */
1863
- export type CreatePromptToolCalls$Outbound = {
1864
- id?: string | undefined;
1865
- index?: number | undefined;
1866
- type: string;
1867
- function: CreatePromptFunction$Outbound;
1868
- };
1869
-
1870
- /** @internal */
1871
- export const CreatePromptToolCalls$outboundSchema: z.ZodType<
1872
- CreatePromptToolCalls$Outbound,
1873
- z.ZodTypeDef,
1874
- CreatePromptToolCalls
1875
- > = z.object({
1876
- id: z.string().optional(),
1877
- index: z.number().optional(),
1878
- type: CreatePromptType$outboundSchema,
1879
- function: z.lazy(() => CreatePromptFunction$outboundSchema),
1880
- });
1881
-
1882
- /**
1883
- * @internal
1884
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1885
- */
1886
- export namespace CreatePromptToolCalls$ {
1887
- /** @deprecated use `CreatePromptToolCalls$inboundSchema` instead. */
1888
- export const inboundSchema = CreatePromptToolCalls$inboundSchema;
1889
- /** @deprecated use `CreatePromptToolCalls$outboundSchema` instead. */
1890
- export const outboundSchema = CreatePromptToolCalls$outboundSchema;
1891
- /** @deprecated use `CreatePromptToolCalls$Outbound` instead. */
1892
- export type Outbound = CreatePromptToolCalls$Outbound;
1893
- }
1894
-
1895
- export function createPromptToolCallsToJSON(
1896
- createPromptToolCalls: CreatePromptToolCalls,
1897
- ): string {
1898
- return JSON.stringify(
1899
- CreatePromptToolCalls$outboundSchema.parse(createPromptToolCalls),
1900
- );
1901
- }
1902
-
1903
- export function createPromptToolCallsFromJSON(
1904
- jsonString: string,
1905
- ): SafeParseResult<CreatePromptToolCalls, SDKValidationError> {
1906
- return safeParse(
1907
- jsonString,
1908
- (x) => CreatePromptToolCalls$inboundSchema.parse(JSON.parse(x)),
1909
- `Failed to parse 'CreatePromptToolCalls' from JSON`,
1910
- );
1911
- }
1912
-
1913
- /** @internal */
1914
- export const CreatePromptMessages$inboundSchema: z.ZodType<
1915
- CreatePromptMessages,
1916
- z.ZodTypeDef,
1917
- unknown
1918
- > = z.object({
1919
- role: CreatePromptRole$inboundSchema,
1920
- content: z.union([
1921
- z.string(),
1922
- z.array(z.union([
1923
- z.lazy(() => CreatePrompt21$inboundSchema),
1924
- z.lazy(() => CreatePrompt22$inboundSchema),
1925
- ])),
1926
- ]),
1927
- tool_calls: z.array(z.lazy(() => CreatePromptToolCalls$inboundSchema))
1928
- .optional(),
1929
- }).transform((v) => {
1930
- return remap$(v, {
1931
- "tool_calls": "toolCalls",
1932
- });
1933
- });
1934
-
1935
- /** @internal */
1936
- export type CreatePromptMessages$Outbound = {
1937
- role: string;
1938
- content: string | Array<CreatePrompt21$Outbound | CreatePrompt22$Outbound>;
1939
- tool_calls?: Array<CreatePromptToolCalls$Outbound> | undefined;
1940
- };
1941
-
1942
- /** @internal */
1943
- export const CreatePromptMessages$outboundSchema: z.ZodType<
1944
- CreatePromptMessages$Outbound,
1945
- z.ZodTypeDef,
1946
- CreatePromptMessages
1947
- > = z.object({
1948
- role: CreatePromptRole$outboundSchema,
1949
- content: z.union([
1950
- z.string(),
1951
- z.array(z.union([
1952
- z.lazy(() => CreatePrompt21$outboundSchema),
1953
- z.lazy(() => CreatePrompt22$outboundSchema),
1954
- ])),
1955
- ]),
1956
- toolCalls: z.array(z.lazy(() => CreatePromptToolCalls$outboundSchema))
1957
- .optional(),
1958
- }).transform((v) => {
1959
- return remap$(v, {
1960
- toolCalls: "tool_calls",
1961
- });
1962
- });
1963
-
1964
- /**
1965
- * @internal
1966
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1967
- */
1968
- export namespace CreatePromptMessages$ {
1969
- /** @deprecated use `CreatePromptMessages$inboundSchema` instead. */
1970
- export const inboundSchema = CreatePromptMessages$inboundSchema;
1971
- /** @deprecated use `CreatePromptMessages$outboundSchema` instead. */
1972
- export const outboundSchema = CreatePromptMessages$outboundSchema;
1973
- /** @deprecated use `CreatePromptMessages$Outbound` instead. */
1974
- export type Outbound = CreatePromptMessages$Outbound;
1975
- }
1976
-
1977
- export function createPromptMessagesToJSON(
1978
- createPromptMessages: CreatePromptMessages,
1979
- ): string {
1980
- return JSON.stringify(
1981
- CreatePromptMessages$outboundSchema.parse(createPromptMessages),
1982
- );
1983
- }
1984
-
1985
- export function createPromptMessagesFromJSON(
1986
- jsonString: string,
1987
- ): SafeParseResult<CreatePromptMessages, SDKValidationError> {
1988
- return safeParse(
1989
- jsonString,
1990
- (x) => CreatePromptMessages$inboundSchema.parse(JSON.parse(x)),
1991
- `Failed to parse 'CreatePromptMessages' from JSON`,
1992
- );
1993
- }
1994
-
1995
- /** @internal */
1996
- export const PromptConfig$inboundSchema: z.ZodType<
1997
- PromptConfig,
1998
- z.ZodTypeDef,
1999
- unknown
2000
- > = z.object({
2001
- stream: z.boolean().optional(),
2002
- model: z.string().optional(),
2003
- model_type: ModelType$inboundSchema.optional(),
2004
- model_parameters: z.lazy(() => ModelParameters$inboundSchema).optional(),
2005
- provider: Provider$inboundSchema.optional(),
2006
- version: z.string().optional(),
2007
- messages: z.array(z.lazy(() => CreatePromptMessages$inboundSchema)),
2008
- }).transform((v) => {
2009
- return remap$(v, {
2010
- "model_type": "modelType",
2011
- "model_parameters": "modelParameters",
2012
- });
2013
- });
2014
-
2015
- /** @internal */
2016
- export type PromptConfig$Outbound = {
2017
- stream?: boolean | undefined;
2018
- model?: string | undefined;
2019
- model_type?: string | undefined;
2020
- model_parameters?: ModelParameters$Outbound | undefined;
2021
- provider?: string | undefined;
2022
- version?: string | undefined;
2023
- messages: Array<CreatePromptMessages$Outbound>;
2024
- };
2025
-
2026
- /** @internal */
2027
- export const PromptConfig$outboundSchema: z.ZodType<
2028
- PromptConfig$Outbound,
2029
- z.ZodTypeDef,
2030
- PromptConfig
2031
- > = z.object({
2032
- stream: z.boolean().optional(),
2033
- model: z.string().optional(),
2034
- modelType: ModelType$outboundSchema.optional(),
2035
- modelParameters: z.lazy(() => ModelParameters$outboundSchema).optional(),
2036
- provider: Provider$outboundSchema.optional(),
2037
- version: z.string().optional(),
2038
- messages: z.array(z.lazy(() => CreatePromptMessages$outboundSchema)),
2039
- }).transform((v) => {
2040
- return remap$(v, {
2041
- modelType: "model_type",
2042
- modelParameters: "model_parameters",
2043
- });
2044
- });
2045
-
2046
- /**
2047
- * @internal
2048
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2049
- */
2050
- export namespace PromptConfig$ {
2051
- /** @deprecated use `PromptConfig$inboundSchema` instead. */
2052
- export const inboundSchema = PromptConfig$inboundSchema;
2053
- /** @deprecated use `PromptConfig$outboundSchema` instead. */
2054
- export const outboundSchema = PromptConfig$outboundSchema;
2055
- /** @deprecated use `PromptConfig$Outbound` instead. */
2056
- export type Outbound = PromptConfig$Outbound;
2057
- }
2058
-
2059
- export function promptConfigToJSON(promptConfig: PromptConfig): string {
2060
- return JSON.stringify(PromptConfig$outboundSchema.parse(promptConfig));
2061
- }
2062
-
2063
- export function promptConfigFromJSON(
2064
- jsonString: string,
2065
- ): SafeParseResult<PromptConfig, SDKValidationError> {
2066
- return safeParse(
2067
- jsonString,
2068
- (x) => PromptConfig$inboundSchema.parse(JSON.parse(x)),
2069
- `Failed to parse 'PromptConfig' from JSON`,
2070
- );
2071
- }
2072
-
2073
- /** @internal */
2074
- export const UseCases$inboundSchema: z.ZodNativeEnum<typeof UseCases> = z
2075
- .nativeEnum(UseCases);
2076
-
2077
- /** @internal */
2078
- export const UseCases$outboundSchema: z.ZodNativeEnum<typeof UseCases> =
2079
- UseCases$inboundSchema;
2080
-
2081
- /**
2082
- * @internal
2083
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2084
- */
2085
- export namespace UseCases$ {
2086
- /** @deprecated use `UseCases$inboundSchema` instead. */
2087
- export const inboundSchema = UseCases$inboundSchema;
2088
- /** @deprecated use `UseCases$outboundSchema` instead. */
2089
- export const outboundSchema = UseCases$outboundSchema;
2090
- }
2091
-
2092
- /** @internal */
2093
- export const Language$inboundSchema: z.ZodNativeEnum<typeof Language> = z
2094
- .nativeEnum(Language);
2095
-
2096
- /** @internal */
2097
- export const Language$outboundSchema: z.ZodNativeEnum<typeof Language> =
2098
- Language$inboundSchema;
2099
-
2100
- /**
2101
- * @internal
2102
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2103
- */
2104
- export namespace Language$ {
2105
- /** @deprecated use `Language$inboundSchema` instead. */
2106
- export const inboundSchema = Language$inboundSchema;
2107
- /** @deprecated use `Language$outboundSchema` instead. */
2108
- export const outboundSchema = Language$outboundSchema;
2109
- }
2110
-
2111
- /** @internal */
2112
- export const CreatePromptMetadata$inboundSchema: z.ZodType<
2113
- CreatePromptMetadata,
2114
- z.ZodTypeDef,
2115
- unknown
2116
- > = z.object({
2117
- use_cases: z.array(UseCases$inboundSchema).optional(),
2118
- language: Language$inboundSchema.optional(),
2119
- }).transform((v) => {
2120
- return remap$(v, {
2121
- "use_cases": "useCases",
2122
- });
2123
- });
2124
-
2125
- /** @internal */
2126
- export type CreatePromptMetadata$Outbound = {
2127
- use_cases?: Array<string> | undefined;
2128
- language?: string | undefined;
2129
- };
2130
-
2131
- /** @internal */
2132
- export const CreatePromptMetadata$outboundSchema: z.ZodType<
2133
- CreatePromptMetadata$Outbound,
2134
- z.ZodTypeDef,
2135
- CreatePromptMetadata
2136
- > = z.object({
2137
- useCases: z.array(UseCases$outboundSchema).optional(),
2138
- language: Language$outboundSchema.optional(),
2139
- }).transform((v) => {
2140
- return remap$(v, {
2141
- useCases: "use_cases",
2142
- });
2143
- });
2144
-
2145
- /**
2146
- * @internal
2147
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2148
- */
2149
- export namespace CreatePromptMetadata$ {
2150
- /** @deprecated use `CreatePromptMetadata$inboundSchema` instead. */
2151
- export const inboundSchema = CreatePromptMetadata$inboundSchema;
2152
- /** @deprecated use `CreatePromptMetadata$outboundSchema` instead. */
2153
- export const outboundSchema = CreatePromptMetadata$outboundSchema;
2154
- /** @deprecated use `CreatePromptMetadata$Outbound` instead. */
2155
- export type Outbound = CreatePromptMetadata$Outbound;
2156
- }
2157
-
2158
- export function createPromptMetadataToJSON(
2159
- createPromptMetadata: CreatePromptMetadata,
2160
- ): string {
2161
- return JSON.stringify(
2162
- CreatePromptMetadata$outboundSchema.parse(createPromptMetadata),
2163
- );
2164
- }
2165
-
2166
- export function createPromptMetadataFromJSON(
2167
- jsonString: string,
2168
- ): SafeParseResult<CreatePromptMetadata, SDKValidationError> {
2169
- return safeParse(
2170
- jsonString,
2171
- (x) => CreatePromptMetadata$inboundSchema.parse(JSON.parse(x)),
2172
- `Failed to parse 'CreatePromptMetadata' from JSON`,
2173
- );
2174
- }
2175
-
2176
- /** @internal */
2177
- export const CreatePromptRequestBody$inboundSchema: z.ZodType<
2178
- CreatePromptRequestBody,
2179
- z.ZodTypeDef,
2180
- unknown
2181
- > = z.object({
2182
- display_name: z.string(),
2183
- description: z.nullable(z.string()).optional(),
2184
- prompt_config: z.lazy(() => PromptConfig$inboundSchema),
2185
- metadata: z.lazy(() => CreatePromptMetadata$inboundSchema).optional(),
2186
- path: z.string(),
2187
- }).transform((v) => {
2188
- return remap$(v, {
2189
- "display_name": "displayName",
2190
- "prompt_config": "promptConfig",
2191
- });
2192
- });
2193
-
2194
- /** @internal */
2195
- export type CreatePromptRequestBody$Outbound = {
2196
- display_name: string;
2197
- description?: string | null | undefined;
2198
- prompt_config: PromptConfig$Outbound;
2199
- metadata?: CreatePromptMetadata$Outbound | undefined;
2200
- path: string;
2201
- };
2202
-
2203
- /** @internal */
2204
- export const CreatePromptRequestBody$outboundSchema: z.ZodType<
2205
- CreatePromptRequestBody$Outbound,
2206
- z.ZodTypeDef,
2207
- CreatePromptRequestBody
2208
- > = z.object({
2209
- displayName: z.string(),
2210
- description: z.nullable(z.string()).optional(),
2211
- promptConfig: z.lazy(() => PromptConfig$outboundSchema),
2212
- metadata: z.lazy(() => CreatePromptMetadata$outboundSchema).optional(),
2213
- path: z.string(),
2214
- }).transform((v) => {
2215
- return remap$(v, {
2216
- displayName: "display_name",
2217
- promptConfig: "prompt_config",
2218
- });
2219
- });
2220
-
2221
- /**
2222
- * @internal
2223
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2224
- */
2225
- export namespace CreatePromptRequestBody$ {
2226
- /** @deprecated use `CreatePromptRequestBody$inboundSchema` instead. */
2227
- export const inboundSchema = CreatePromptRequestBody$inboundSchema;
2228
- /** @deprecated use `CreatePromptRequestBody$outboundSchema` instead. */
2229
- export const outboundSchema = CreatePromptRequestBody$outboundSchema;
2230
- /** @deprecated use `CreatePromptRequestBody$Outbound` instead. */
2231
- export type Outbound = CreatePromptRequestBody$Outbound;
2232
- }
2233
-
2234
- export function createPromptRequestBodyToJSON(
2235
- createPromptRequestBody: CreatePromptRequestBody,
2236
- ): string {
2237
- return JSON.stringify(
2238
- CreatePromptRequestBody$outboundSchema.parse(createPromptRequestBody),
2239
- );
2240
- }
2241
-
2242
- export function createPromptRequestBodyFromJSON(
2243
- jsonString: string,
2244
- ): SafeParseResult<CreatePromptRequestBody, SDKValidationError> {
2245
- return safeParse(
2246
- jsonString,
2247
- (x) => CreatePromptRequestBody$inboundSchema.parse(JSON.parse(x)),
2248
- `Failed to parse 'CreatePromptRequestBody' from JSON`,
2249
- );
2250
- }
2251
-
2252
- /** @internal */
2253
- export const CreatePromptPromptsType$inboundSchema: z.ZodNativeEnum<
2254
- typeof CreatePromptPromptsType
2255
- > = z.nativeEnum(CreatePromptPromptsType);
2256
-
2257
- /** @internal */
2258
- export const CreatePromptPromptsType$outboundSchema: z.ZodNativeEnum<
2259
- typeof CreatePromptPromptsType
2260
- > = CreatePromptPromptsType$inboundSchema;
2261
-
2262
- /**
2263
- * @internal
2264
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2265
- */
2266
- export namespace CreatePromptPromptsType$ {
2267
- /** @deprecated use `CreatePromptPromptsType$inboundSchema` instead. */
2268
- export const inboundSchema = CreatePromptPromptsType$inboundSchema;
2269
- /** @deprecated use `CreatePromptPromptsType$outboundSchema` instead. */
2270
- export const outboundSchema = CreatePromptPromptsType$outboundSchema;
2271
- }
2272
-
2273
- /** @internal */
2274
- export const CreatePromptModelType$inboundSchema: z.ZodNativeEnum<
2275
- typeof CreatePromptModelType
2276
- > = z.nativeEnum(CreatePromptModelType);
2277
-
2278
- /** @internal */
2279
- export const CreatePromptModelType$outboundSchema: z.ZodNativeEnum<
2280
- typeof CreatePromptModelType
2281
- > = CreatePromptModelType$inboundSchema;
2282
-
2283
- /**
2284
- * @internal
2285
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2286
- */
2287
- export namespace CreatePromptModelType$ {
2288
- /** @deprecated use `CreatePromptModelType$inboundSchema` instead. */
2289
- export const inboundSchema = CreatePromptModelType$inboundSchema;
2290
- /** @deprecated use `CreatePromptModelType$outboundSchema` instead. */
2291
- export const outboundSchema = CreatePromptModelType$outboundSchema;
2292
- }
2293
-
2294
- /** @internal */
2295
- export const CreatePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<
2296
- typeof CreatePromptPromptsFormat
2297
- > = z.nativeEnum(CreatePromptPromptsFormat);
2298
-
2299
- /** @internal */
2300
- export const CreatePromptPromptsFormat$outboundSchema: z.ZodNativeEnum<
2301
- typeof CreatePromptPromptsFormat
2302
- > = CreatePromptPromptsFormat$inboundSchema;
2303
-
2304
- /**
2305
- * @internal
2306
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2307
- */
2308
- export namespace CreatePromptPromptsFormat$ {
2309
- /** @deprecated use `CreatePromptPromptsFormat$inboundSchema` instead. */
2310
- export const inboundSchema = CreatePromptPromptsFormat$inboundSchema;
2311
- /** @deprecated use `CreatePromptPromptsFormat$outboundSchema` instead. */
2312
- export const outboundSchema = CreatePromptPromptsFormat$outboundSchema;
2313
- }
2314
-
2315
- /** @internal */
2316
- export const CreatePromptQuality$inboundSchema: z.ZodNativeEnum<
2317
- typeof CreatePromptQuality
2318
- > = z.nativeEnum(CreatePromptQuality);
2319
-
2320
- /** @internal */
2321
- export const CreatePromptQuality$outboundSchema: z.ZodNativeEnum<
2322
- typeof CreatePromptQuality
2323
- > = CreatePromptQuality$inboundSchema;
2324
-
2325
- /**
2326
- * @internal
2327
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2328
- */
2329
- export namespace CreatePromptQuality$ {
2330
- /** @deprecated use `CreatePromptQuality$inboundSchema` instead. */
2331
- export const inboundSchema = CreatePromptQuality$inboundSchema;
2332
- /** @deprecated use `CreatePromptQuality$outboundSchema` instead. */
2333
- export const outboundSchema = CreatePromptQuality$outboundSchema;
2334
- }
2335
-
2336
- /** @internal */
2337
- export const CreatePromptResponseFormatPromptsResponseType$inboundSchema:
2338
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> = z
2339
- .nativeEnum(CreatePromptResponseFormatPromptsResponseType);
2340
-
2341
- /** @internal */
2342
- export const CreatePromptResponseFormatPromptsResponseType$outboundSchema:
2343
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> =
2344
- CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2345
-
2346
- /**
2347
- * @internal
2348
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2349
- */
2350
- export namespace CreatePromptResponseFormatPromptsResponseType$ {
2351
- /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2352
- export const inboundSchema =
2353
- CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2354
- /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2355
- export const outboundSchema =
2356
- CreatePromptResponseFormatPromptsResponseType$outboundSchema;
2357
- }
2358
-
2359
- /** @internal */
2360
- export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
2361
- CreatePromptResponseFormat2,
2362
- z.ZodTypeDef,
2363
- unknown
2364
- > = z.object({
2365
- type: CreatePromptResponseFormatPromptsResponseType$inboundSchema,
2366
- });
2367
-
2368
- /** @internal */
2369
- export type CreatePromptResponseFormat2$Outbound = {
2370
- type: string;
2371
- };
2372
-
2373
- /** @internal */
2374
- export const CreatePromptResponseFormat2$outboundSchema: z.ZodType<
2375
- CreatePromptResponseFormat2$Outbound,
2376
- z.ZodTypeDef,
2377
- CreatePromptResponseFormat2
2378
- > = z.object({
2379
- type: CreatePromptResponseFormatPromptsResponseType$outboundSchema,
2380
- });
2381
-
2382
- /**
2383
- * @internal
2384
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2385
- */
2386
- export namespace CreatePromptResponseFormat2$ {
2387
- /** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
2388
- export const inboundSchema = CreatePromptResponseFormat2$inboundSchema;
2389
- /** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
2390
- export const outboundSchema = CreatePromptResponseFormat2$outboundSchema;
2391
- /** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
2392
- export type Outbound = CreatePromptResponseFormat2$Outbound;
2393
- }
2394
-
2395
- export function createPromptResponseFormat2ToJSON(
2396
- createPromptResponseFormat2: CreatePromptResponseFormat2,
2397
- ): string {
2398
- return JSON.stringify(
2399
- CreatePromptResponseFormat2$outboundSchema.parse(
2400
- createPromptResponseFormat2,
2401
- ),
2402
- );
2403
- }
2404
-
2405
- export function createPromptResponseFormat2FromJSON(
2406
- jsonString: string,
2407
- ): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError> {
2408
- return safeParse(
2409
- jsonString,
2410
- (x) => CreatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
2411
- `Failed to parse 'CreatePromptResponseFormat2' from JSON`,
2412
- );
2413
- }
2414
-
2415
- /** @internal */
2416
- export const CreatePromptResponseFormatPromptsType$inboundSchema:
2417
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> = z.nativeEnum(
2418
- CreatePromptResponseFormatPromptsType,
2419
- );
2420
-
2421
- /** @internal */
2422
- export const CreatePromptResponseFormatPromptsType$outboundSchema:
2423
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> =
2424
- CreatePromptResponseFormatPromptsType$inboundSchema;
2425
-
2426
- /**
2427
- * @internal
2428
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2429
- */
2430
- export namespace CreatePromptResponseFormatPromptsType$ {
2431
- /** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
2432
- export const inboundSchema =
2433
- CreatePromptResponseFormatPromptsType$inboundSchema;
2434
- /** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
2435
- export const outboundSchema =
2436
- CreatePromptResponseFormatPromptsType$outboundSchema;
2437
- }
2438
-
2439
- /** @internal */
2440
- export const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
2441
- CreatePromptResponseFormatJsonSchema,
2442
- z.ZodTypeDef,
2443
- unknown
2444
- > = z.object({
2445
- name: z.string(),
2446
- strict: z.boolean(),
2447
- schema: z.record(z.any()),
2448
- });
2449
-
2450
- /** @internal */
2451
- export type CreatePromptResponseFormatJsonSchema$Outbound = {
2452
- name: string;
2453
- strict: boolean;
2454
- schema: { [k: string]: any };
2455
- };
2456
-
2457
- /** @internal */
2458
- export const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
2459
- CreatePromptResponseFormatJsonSchema$Outbound,
2460
- z.ZodTypeDef,
2461
- CreatePromptResponseFormatJsonSchema
2462
- > = z.object({
2463
- name: z.string(),
2464
- strict: z.boolean(),
2465
- schema: z.record(z.any()),
2466
- });
2467
-
2468
- /**
2469
- * @internal
2470
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2471
- */
2472
- export namespace CreatePromptResponseFormatJsonSchema$ {
2473
- /** @deprecated use `CreatePromptResponseFormatJsonSchema$inboundSchema` instead. */
2474
- export const inboundSchema =
2475
- CreatePromptResponseFormatJsonSchema$inboundSchema;
2476
- /** @deprecated use `CreatePromptResponseFormatJsonSchema$outboundSchema` instead. */
2477
- export const outboundSchema =
2478
- CreatePromptResponseFormatJsonSchema$outboundSchema;
2479
- /** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
2480
- export type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
2481
- }
2482
-
2483
- export function createPromptResponseFormatJsonSchemaToJSON(
2484
- createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema,
2485
- ): string {
2486
- return JSON.stringify(
2487
- CreatePromptResponseFormatJsonSchema$outboundSchema.parse(
2488
- createPromptResponseFormatJsonSchema,
2489
- ),
2490
- );
2491
- }
2492
-
2493
- export function createPromptResponseFormatJsonSchemaFromJSON(
2494
- jsonString: string,
2495
- ): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError> {
2496
- return safeParse(
2497
- jsonString,
2498
- (x) =>
2499
- CreatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
2500
- `Failed to parse 'CreatePromptResponseFormatJsonSchema' from JSON`,
2501
- );
2502
- }
2503
-
2504
- /** @internal */
2505
- export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
2506
- CreatePromptResponseFormat1,
2507
- z.ZodTypeDef,
2508
- unknown
2509
- > = z.object({
2510
- type: CreatePromptResponseFormatPromptsType$inboundSchema,
2511
- json_schema: z.lazy(() => CreatePromptResponseFormatJsonSchema$inboundSchema),
2512
- }).transform((v) => {
2513
- return remap$(v, {
2514
- "json_schema": "jsonSchema",
2515
- });
2516
- });
2517
-
2518
- /** @internal */
2519
- export type CreatePromptResponseFormat1$Outbound = {
2520
- type: string;
2521
- json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
2522
- };
2523
-
2524
- /** @internal */
2525
- export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
2526
- CreatePromptResponseFormat1$Outbound,
2527
- z.ZodTypeDef,
2528
- CreatePromptResponseFormat1
2529
- > = z.object({
2530
- type: CreatePromptResponseFormatPromptsType$outboundSchema,
2531
- jsonSchema: z.lazy(() => CreatePromptResponseFormatJsonSchema$outboundSchema),
2532
- }).transform((v) => {
2533
- return remap$(v, {
2534
- jsonSchema: "json_schema",
2535
- });
2536
- });
2537
-
2538
- /**
2539
- * @internal
2540
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2541
- */
2542
- export namespace CreatePromptResponseFormat1$ {
2543
- /** @deprecated use `CreatePromptResponseFormat1$inboundSchema` instead. */
2544
- export const inboundSchema = CreatePromptResponseFormat1$inboundSchema;
2545
- /** @deprecated use `CreatePromptResponseFormat1$outboundSchema` instead. */
2546
- export const outboundSchema = CreatePromptResponseFormat1$outboundSchema;
2547
- /** @deprecated use `CreatePromptResponseFormat1$Outbound` instead. */
2548
- export type Outbound = CreatePromptResponseFormat1$Outbound;
2549
- }
2550
-
2551
- export function createPromptResponseFormat1ToJSON(
2552
- createPromptResponseFormat1: CreatePromptResponseFormat1,
2553
- ): string {
2554
- return JSON.stringify(
2555
- CreatePromptResponseFormat1$outboundSchema.parse(
2556
- createPromptResponseFormat1,
2557
- ),
2558
- );
2559
- }
2560
-
2561
- export function createPromptResponseFormat1FromJSON(
2562
- jsonString: string,
2563
- ): SafeParseResult<CreatePromptResponseFormat1, SDKValidationError> {
2564
- return safeParse(
2565
- jsonString,
2566
- (x) => CreatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
2567
- `Failed to parse 'CreatePromptResponseFormat1' from JSON`,
2568
- );
2569
- }
2570
-
2571
- /** @internal */
2572
- export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
2573
- CreatePromptResponseFormat,
2574
- z.ZodTypeDef,
2575
- unknown
2576
- > = z.union([
2577
- z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
2578
- z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
2579
- ]);
2580
-
2581
- /** @internal */
2582
- export type CreatePromptResponseFormat$Outbound =
2583
- | CreatePromptResponseFormat2$Outbound
2584
- | CreatePromptResponseFormat1$Outbound;
2585
-
2586
- /** @internal */
2587
- export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
2588
- CreatePromptResponseFormat$Outbound,
2589
- z.ZodTypeDef,
2590
- CreatePromptResponseFormat
2591
- > = z.union([
2592
- z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
2593
- z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
2594
- ]);
2595
-
2596
- /**
2597
- * @internal
2598
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2599
- */
2600
- export namespace CreatePromptResponseFormat$ {
2601
- /** @deprecated use `CreatePromptResponseFormat$inboundSchema` instead. */
2602
- export const inboundSchema = CreatePromptResponseFormat$inboundSchema;
2603
- /** @deprecated use `CreatePromptResponseFormat$outboundSchema` instead. */
2604
- export const outboundSchema = CreatePromptResponseFormat$outboundSchema;
2605
- /** @deprecated use `CreatePromptResponseFormat$Outbound` instead. */
2606
- export type Outbound = CreatePromptResponseFormat$Outbound;
2607
- }
2608
-
2609
- export function createPromptResponseFormatToJSON(
2610
- createPromptResponseFormat: CreatePromptResponseFormat,
2611
- ): string {
2612
- return JSON.stringify(
2613
- CreatePromptResponseFormat$outboundSchema.parse(createPromptResponseFormat),
2614
- );
2615
- }
2616
-
2617
- export function createPromptResponseFormatFromJSON(
2618
- jsonString: string,
2619
- ): SafeParseResult<CreatePromptResponseFormat, SDKValidationError> {
2620
- return safeParse(
2621
- jsonString,
2622
- (x) => CreatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
2623
- `Failed to parse 'CreatePromptResponseFormat' from JSON`,
2624
- );
2625
- }
2626
-
2627
- /** @internal */
2628
- export const CreatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
2629
- typeof CreatePromptPhotoRealVersion
2630
- > = z.nativeEnum(CreatePromptPhotoRealVersion);
2631
-
2632
- /** @internal */
2633
- export const CreatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
2634
- typeof CreatePromptPhotoRealVersion
2635
- > = CreatePromptPhotoRealVersion$inboundSchema;
2636
-
2637
- /**
2638
- * @internal
2639
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2640
- */
2641
- export namespace CreatePromptPhotoRealVersion$ {
2642
- /** @deprecated use `CreatePromptPhotoRealVersion$inboundSchema` instead. */
2643
- export const inboundSchema = CreatePromptPhotoRealVersion$inboundSchema;
2644
- /** @deprecated use `CreatePromptPhotoRealVersion$outboundSchema` instead. */
2645
- export const outboundSchema = CreatePromptPhotoRealVersion$outboundSchema;
2646
- }
2647
-
2648
- /** @internal */
2649
- export const CreatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
2650
- typeof CreatePromptEncodingFormat
2651
- > = z.nativeEnum(CreatePromptEncodingFormat);
2652
-
2653
- /** @internal */
2654
- export const CreatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
2655
- typeof CreatePromptEncodingFormat
2656
- > = CreatePromptEncodingFormat$inboundSchema;
2657
-
2658
- /**
2659
- * @internal
2660
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2661
- */
2662
- export namespace CreatePromptEncodingFormat$ {
2663
- /** @deprecated use `CreatePromptEncodingFormat$inboundSchema` instead. */
2664
- export const inboundSchema = CreatePromptEncodingFormat$inboundSchema;
2665
- /** @deprecated use `CreatePromptEncodingFormat$outboundSchema` instead. */
2666
- export const outboundSchema = CreatePromptEncodingFormat$outboundSchema;
2667
- }
2668
-
2669
- /** @internal */
2670
- export const CreatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
2671
- typeof CreatePromptReasoningEffort
2672
- > = z.nativeEnum(CreatePromptReasoningEffort);
2673
-
2674
- /** @internal */
2675
- export const CreatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
2676
- typeof CreatePromptReasoningEffort
2677
- > = CreatePromptReasoningEffort$inboundSchema;
2678
-
2679
- /**
2680
- * @internal
2681
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2682
- */
2683
- export namespace CreatePromptReasoningEffort$ {
2684
- /** @deprecated use `CreatePromptReasoningEffort$inboundSchema` instead. */
2685
- export const inboundSchema = CreatePromptReasoningEffort$inboundSchema;
2686
- /** @deprecated use `CreatePromptReasoningEffort$outboundSchema` instead. */
2687
- export const outboundSchema = CreatePromptReasoningEffort$outboundSchema;
2688
- }
2689
-
2690
- /** @internal */
2691
- export const CreatePromptModelParameters$inboundSchema: z.ZodType<
2692
- CreatePromptModelParameters,
2693
- z.ZodTypeDef,
2694
- unknown
2695
- > = z.object({
2696
- temperature: z.number().optional(),
2697
- maxTokens: z.number().optional(),
2698
- topK: z.number().optional(),
2699
- topP: z.number().optional(),
2700
- frequencyPenalty: z.number().optional(),
2701
- presencePenalty: z.number().optional(),
2702
- numImages: z.number().optional(),
2703
- seed: z.number().optional(),
2704
- format: CreatePromptPromptsFormat$inboundSchema.optional(),
2705
- dimensions: z.string().optional(),
2706
- quality: CreatePromptQuality$inboundSchema.optional(),
2707
- style: z.string().optional(),
2708
- responseFormat: z.nullable(
2709
- z.union([
2710
- z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
2711
- z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
2712
- ]),
2713
- ).optional(),
2714
- photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
2715
- encoding_format: CreatePromptEncodingFormat$inboundSchema.optional(),
2716
- reasoningEffort: CreatePromptReasoningEffort$inboundSchema.optional(),
2717
- budgetTokens: z.number().optional(),
2718
- }).transform((v) => {
2719
- return remap$(v, {
2720
- "encoding_format": "encodingFormat",
2721
- });
2722
- });
2723
-
2724
- /** @internal */
2725
- export type CreatePromptModelParameters$Outbound = {
2726
- temperature?: number | undefined;
2727
- maxTokens?: number | undefined;
2728
- topK?: number | undefined;
2729
- topP?: number | undefined;
2730
- frequencyPenalty?: number | undefined;
2731
- presencePenalty?: number | undefined;
2732
- numImages?: number | undefined;
2733
- seed?: number | undefined;
2734
- format?: string | undefined;
2735
- dimensions?: string | undefined;
2736
- quality?: string | undefined;
2737
- style?: string | undefined;
2738
- responseFormat?:
2739
- | CreatePromptResponseFormat2$Outbound
2740
- | CreatePromptResponseFormat1$Outbound
2741
- | null
2742
- | undefined;
2743
- photoRealVersion?: string | undefined;
2744
- encoding_format?: string | undefined;
2745
- reasoningEffort?: string | undefined;
2746
- budgetTokens?: number | undefined;
2747
- };
2748
-
2749
- /** @internal */
2750
- export const CreatePromptModelParameters$outboundSchema: z.ZodType<
2751
- CreatePromptModelParameters$Outbound,
2752
- z.ZodTypeDef,
2753
- CreatePromptModelParameters
2754
- > = z.object({
2755
- temperature: z.number().optional(),
2756
- maxTokens: z.number().optional(),
2757
- topK: z.number().optional(),
2758
- topP: z.number().optional(),
2759
- frequencyPenalty: z.number().optional(),
2760
- presencePenalty: z.number().optional(),
2761
- numImages: z.number().optional(),
2762
- seed: z.number().optional(),
2763
- format: CreatePromptPromptsFormat$outboundSchema.optional(),
2764
- dimensions: z.string().optional(),
2765
- quality: CreatePromptQuality$outboundSchema.optional(),
2766
- style: z.string().optional(),
2767
- responseFormat: z.nullable(
2768
- z.union([
2769
- z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
2770
- z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
2771
- ]),
2772
- ).optional(),
2773
- photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),
2774
- encodingFormat: CreatePromptEncodingFormat$outboundSchema.optional(),
2775
- reasoningEffort: CreatePromptReasoningEffort$outboundSchema.optional(),
2776
- budgetTokens: z.number().optional(),
2777
- }).transform((v) => {
2778
- return remap$(v, {
2779
- encodingFormat: "encoding_format",
2780
- });
2781
- });
2782
-
2783
- /**
2784
- * @internal
2785
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2786
- */
2787
- export namespace CreatePromptModelParameters$ {
2788
- /** @deprecated use `CreatePromptModelParameters$inboundSchema` instead. */
2789
- export const inboundSchema = CreatePromptModelParameters$inboundSchema;
2790
- /** @deprecated use `CreatePromptModelParameters$outboundSchema` instead. */
2791
- export const outboundSchema = CreatePromptModelParameters$outboundSchema;
2792
- /** @deprecated use `CreatePromptModelParameters$Outbound` instead. */
2793
- export type Outbound = CreatePromptModelParameters$Outbound;
2794
- }
2795
-
2796
- export function createPromptModelParametersToJSON(
2797
- createPromptModelParameters: CreatePromptModelParameters,
2798
- ): string {
2799
- return JSON.stringify(
2800
- CreatePromptModelParameters$outboundSchema.parse(
2801
- createPromptModelParameters,
2802
- ),
2803
- );
2804
- }
2805
-
2806
- export function createPromptModelParametersFromJSON(
2807
- jsonString: string,
2808
- ): SafeParseResult<CreatePromptModelParameters, SDKValidationError> {
2809
- return safeParse(
2810
- jsonString,
2811
- (x) => CreatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
2812
- `Failed to parse 'CreatePromptModelParameters' from JSON`,
2813
- );
2814
- }
2815
-
2816
- /** @internal */
2817
- export const CreatePromptProvider$inboundSchema: z.ZodNativeEnum<
2818
- typeof CreatePromptProvider
2819
- > = z.nativeEnum(CreatePromptProvider);
2820
-
2821
- /** @internal */
2822
- export const CreatePromptProvider$outboundSchema: z.ZodNativeEnum<
2823
- typeof CreatePromptProvider
2824
- > = CreatePromptProvider$inboundSchema;
2825
-
2826
- /**
2827
- * @internal
2828
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2829
- */
2830
- export namespace CreatePromptProvider$ {
2831
- /** @deprecated use `CreatePromptProvider$inboundSchema` instead. */
2832
- export const inboundSchema = CreatePromptProvider$inboundSchema;
2833
- /** @deprecated use `CreatePromptProvider$outboundSchema` instead. */
2834
- export const outboundSchema = CreatePromptProvider$outboundSchema;
2835
- }
2836
-
2837
- /** @internal */
2838
- export const CreatePromptPromptsRole$inboundSchema: z.ZodNativeEnum<
2839
- typeof CreatePromptPromptsRole
2840
- > = z.nativeEnum(CreatePromptPromptsRole);
2841
-
2842
- /** @internal */
2843
- export const CreatePromptPromptsRole$outboundSchema: z.ZodNativeEnum<
2844
- typeof CreatePromptPromptsRole
2845
- > = CreatePromptPromptsRole$inboundSchema;
2846
-
2847
- /**
2848
- * @internal
2849
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2850
- */
2851
- export namespace CreatePromptPromptsRole$ {
2852
- /** @deprecated use `CreatePromptPromptsRole$inboundSchema` instead. */
2853
- export const inboundSchema = CreatePromptPromptsRole$inboundSchema;
2854
- /** @deprecated use `CreatePromptPromptsRole$outboundSchema` instead. */
2855
- export const outboundSchema = CreatePromptPromptsRole$outboundSchema;
2856
- }
2857
-
2858
- /** @internal */
2859
- export const CreatePrompt2PromptsResponse200Type$inboundSchema: z.ZodNativeEnum<
2860
- typeof CreatePrompt2PromptsResponse200Type
2861
- > = z.nativeEnum(CreatePrompt2PromptsResponse200Type);
2862
-
2863
- /** @internal */
2864
- export const CreatePrompt2PromptsResponse200Type$outboundSchema:
2865
- z.ZodNativeEnum<typeof CreatePrompt2PromptsResponse200Type> =
2866
- CreatePrompt2PromptsResponse200Type$inboundSchema;
2867
-
2868
- /**
2869
- * @internal
2870
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2871
- */
2872
- export namespace CreatePrompt2PromptsResponse200Type$ {
2873
- /** @deprecated use `CreatePrompt2PromptsResponse200Type$inboundSchema` instead. */
2874
- export const inboundSchema =
2875
- CreatePrompt2PromptsResponse200Type$inboundSchema;
2876
- /** @deprecated use `CreatePrompt2PromptsResponse200Type$outboundSchema` instead. */
2877
- export const outboundSchema =
2878
- CreatePrompt2PromptsResponse200Type$outboundSchema;
2879
- }
2880
-
2881
- /** @internal */
2882
- export const CreatePrompt2PromptsImageUrl$inboundSchema: z.ZodType<
2883
- CreatePrompt2PromptsImageUrl,
2884
- z.ZodTypeDef,
2885
- unknown
2886
- > = z.object({
2887
- id: z.string().optional(),
2888
- url: z.string(),
2889
- detail: z.string().optional(),
2890
- });
2891
-
2892
- /** @internal */
2893
- export type CreatePrompt2PromptsImageUrl$Outbound = {
2894
- id?: string | undefined;
2895
- url: string;
2896
- detail?: string | undefined;
2897
- };
2898
-
2899
- /** @internal */
2900
- export const CreatePrompt2PromptsImageUrl$outboundSchema: z.ZodType<
2901
- CreatePrompt2PromptsImageUrl$Outbound,
2902
- z.ZodTypeDef,
2903
- CreatePrompt2PromptsImageUrl
2904
- > = z.object({
2905
- id: z.string().optional(),
2906
- url: z.string(),
2907
- detail: z.string().optional(),
2908
- });
2909
-
2910
- /**
2911
- * @internal
2912
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2913
- */
2914
- export namespace CreatePrompt2PromptsImageUrl$ {
2915
- /** @deprecated use `CreatePrompt2PromptsImageUrl$inboundSchema` instead. */
2916
- export const inboundSchema = CreatePrompt2PromptsImageUrl$inboundSchema;
2917
- /** @deprecated use `CreatePrompt2PromptsImageUrl$outboundSchema` instead. */
2918
- export const outboundSchema = CreatePrompt2PromptsImageUrl$outboundSchema;
2919
- /** @deprecated use `CreatePrompt2PromptsImageUrl$Outbound` instead. */
2920
- export type Outbound = CreatePrompt2PromptsImageUrl$Outbound;
2921
- }
2922
-
2923
- export function createPrompt2PromptsImageUrlToJSON(
2924
- createPrompt2PromptsImageUrl: CreatePrompt2PromptsImageUrl,
2925
- ): string {
2926
- return JSON.stringify(
2927
- CreatePrompt2PromptsImageUrl$outboundSchema.parse(
2928
- createPrompt2PromptsImageUrl,
2929
- ),
2930
- );
2931
- }
2932
-
2933
- export function createPrompt2PromptsImageUrlFromJSON(
2934
- jsonString: string,
2935
- ): SafeParseResult<CreatePrompt2PromptsImageUrl, SDKValidationError> {
2936
- return safeParse(
2937
- jsonString,
2938
- (x) => CreatePrompt2PromptsImageUrl$inboundSchema.parse(JSON.parse(x)),
2939
- `Failed to parse 'CreatePrompt2PromptsImageUrl' from JSON`,
2940
- );
2941
- }
2942
-
2943
- /** @internal */
2944
- export const CreatePrompt2Prompts2$inboundSchema: z.ZodType<
2945
- CreatePrompt2Prompts2,
2946
- z.ZodTypeDef,
2947
- unknown
2948
- > = z.object({
2949
- type: CreatePrompt2PromptsResponse200Type$inboundSchema,
2950
- image_url: z.lazy(() => CreatePrompt2PromptsImageUrl$inboundSchema),
2951
- }).transform((v) => {
2952
- return remap$(v, {
2953
- "image_url": "imageUrl",
2954
- });
2955
- });
2956
-
2957
- /** @internal */
2958
- export type CreatePrompt2Prompts2$Outbound = {
2959
- type: string;
2960
- image_url: CreatePrompt2PromptsImageUrl$Outbound;
2961
- };
2962
-
2963
- /** @internal */
2964
- export const CreatePrompt2Prompts2$outboundSchema: z.ZodType<
2965
- CreatePrompt2Prompts2$Outbound,
2966
- z.ZodTypeDef,
2967
- CreatePrompt2Prompts2
2968
- > = z.object({
2969
- type: CreatePrompt2PromptsResponse200Type$outboundSchema,
2970
- imageUrl: z.lazy(() => CreatePrompt2PromptsImageUrl$outboundSchema),
2971
- }).transform((v) => {
2972
- return remap$(v, {
2973
- imageUrl: "image_url",
2974
- });
2975
- });
2976
-
2977
- /**
2978
- * @internal
2979
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2980
- */
2981
- export namespace CreatePrompt2Prompts2$ {
2982
- /** @deprecated use `CreatePrompt2Prompts2$inboundSchema` instead. */
2983
- export const inboundSchema = CreatePrompt2Prompts2$inboundSchema;
2984
- /** @deprecated use `CreatePrompt2Prompts2$outboundSchema` instead. */
2985
- export const outboundSchema = CreatePrompt2Prompts2$outboundSchema;
2986
- /** @deprecated use `CreatePrompt2Prompts2$Outbound` instead. */
2987
- export type Outbound = CreatePrompt2Prompts2$Outbound;
2988
- }
2989
-
2990
- export function createPrompt2Prompts2ToJSON(
2991
- createPrompt2Prompts2: CreatePrompt2Prompts2,
2992
- ): string {
2993
- return JSON.stringify(
2994
- CreatePrompt2Prompts2$outboundSchema.parse(createPrompt2Prompts2),
2995
- );
2996
- }
2997
-
2998
- export function createPrompt2Prompts2FromJSON(
2999
- jsonString: string,
3000
- ): SafeParseResult<CreatePrompt2Prompts2, SDKValidationError> {
3001
- return safeParse(
3002
- jsonString,
3003
- (x) => CreatePrompt2Prompts2$inboundSchema.parse(JSON.parse(x)),
3004
- `Failed to parse 'CreatePrompt2Prompts2' from JSON`,
3005
- );
3006
- }
3007
-
3008
- /** @internal */
3009
- export const CreatePrompt2PromptsResponseType$inboundSchema: z.ZodNativeEnum<
3010
- typeof CreatePrompt2PromptsResponseType
3011
- > = z.nativeEnum(CreatePrompt2PromptsResponseType);
3012
-
3013
- /** @internal */
3014
- export const CreatePrompt2PromptsResponseType$outboundSchema: z.ZodNativeEnum<
3015
- typeof CreatePrompt2PromptsResponseType
3016
- > = CreatePrompt2PromptsResponseType$inboundSchema;
3017
-
3018
- /**
3019
- * @internal
3020
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3021
- */
3022
- export namespace CreatePrompt2PromptsResponseType$ {
3023
- /** @deprecated use `CreatePrompt2PromptsResponseType$inboundSchema` instead. */
3024
- export const inboundSchema = CreatePrompt2PromptsResponseType$inboundSchema;
3025
- /** @deprecated use `CreatePrompt2PromptsResponseType$outboundSchema` instead. */
3026
- export const outboundSchema = CreatePrompt2PromptsResponseType$outboundSchema;
3027
- }
3028
-
3029
- /** @internal */
3030
- export const CreatePrompt2Prompts1$inboundSchema: z.ZodType<
3031
- CreatePrompt2Prompts1,
3032
- z.ZodTypeDef,
3033
- unknown
3034
- > = z.object({
3035
- type: CreatePrompt2PromptsResponseType$inboundSchema,
3036
- text: z.string(),
3037
- });
3038
-
3039
- /** @internal */
3040
- export type CreatePrompt2Prompts1$Outbound = {
3041
- type: string;
3042
- text: string;
3043
- };
3044
-
3045
- /** @internal */
3046
- export const CreatePrompt2Prompts1$outboundSchema: z.ZodType<
3047
- CreatePrompt2Prompts1$Outbound,
3048
- z.ZodTypeDef,
3049
- CreatePrompt2Prompts1
3050
- > = z.object({
3051
- type: CreatePrompt2PromptsResponseType$outboundSchema,
3052
- text: z.string(),
3053
- });
3054
-
3055
- /**
3056
- * @internal
3057
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3058
- */
3059
- export namespace CreatePrompt2Prompts1$ {
3060
- /** @deprecated use `CreatePrompt2Prompts1$inboundSchema` instead. */
3061
- export const inboundSchema = CreatePrompt2Prompts1$inboundSchema;
3062
- /** @deprecated use `CreatePrompt2Prompts1$outboundSchema` instead. */
3063
- export const outboundSchema = CreatePrompt2Prompts1$outboundSchema;
3064
- /** @deprecated use `CreatePrompt2Prompts1$Outbound` instead. */
3065
- export type Outbound = CreatePrompt2Prompts1$Outbound;
3066
- }
3067
-
3068
- export function createPrompt2Prompts1ToJSON(
3069
- createPrompt2Prompts1: CreatePrompt2Prompts1,
3070
- ): string {
3071
- return JSON.stringify(
3072
- CreatePrompt2Prompts1$outboundSchema.parse(createPrompt2Prompts1),
3073
- );
3074
- }
3075
-
3076
- export function createPrompt2Prompts1FromJSON(
3077
- jsonString: string,
3078
- ): SafeParseResult<CreatePrompt2Prompts1, SDKValidationError> {
3079
- return safeParse(
3080
- jsonString,
3081
- (x) => CreatePrompt2Prompts1$inboundSchema.parse(JSON.parse(x)),
3082
- `Failed to parse 'CreatePrompt2Prompts1' from JSON`,
3083
- );
3084
- }
3085
-
3086
- /** @internal */
3087
- export const CreatePromptContentPrompts2$inboundSchema: z.ZodType<
3088
- CreatePromptContentPrompts2,
3089
- z.ZodTypeDef,
3090
- unknown
3091
- > = z.union([
3092
- z.lazy(() => CreatePrompt2Prompts1$inboundSchema),
3093
- z.lazy(() => CreatePrompt2Prompts2$inboundSchema),
3094
- ]);
3095
-
3096
- /** @internal */
3097
- export type CreatePromptContentPrompts2$Outbound =
3098
- | CreatePrompt2Prompts1$Outbound
3099
- | CreatePrompt2Prompts2$Outbound;
3100
-
3101
- /** @internal */
3102
- export const CreatePromptContentPrompts2$outboundSchema: z.ZodType<
3103
- CreatePromptContentPrompts2$Outbound,
3104
- z.ZodTypeDef,
3105
- CreatePromptContentPrompts2
3106
- > = z.union([
3107
- z.lazy(() => CreatePrompt2Prompts1$outboundSchema),
3108
- z.lazy(() => CreatePrompt2Prompts2$outboundSchema),
3109
- ]);
3110
-
3111
- /**
3112
- * @internal
3113
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3114
- */
3115
- export namespace CreatePromptContentPrompts2$ {
3116
- /** @deprecated use `CreatePromptContentPrompts2$inboundSchema` instead. */
3117
- export const inboundSchema = CreatePromptContentPrompts2$inboundSchema;
3118
- /** @deprecated use `CreatePromptContentPrompts2$outboundSchema` instead. */
3119
- export const outboundSchema = CreatePromptContentPrompts2$outboundSchema;
3120
- /** @deprecated use `CreatePromptContentPrompts2$Outbound` instead. */
3121
- export type Outbound = CreatePromptContentPrompts2$Outbound;
3122
- }
3123
-
3124
- export function createPromptContentPrompts2ToJSON(
3125
- createPromptContentPrompts2: CreatePromptContentPrompts2,
3126
- ): string {
3127
- return JSON.stringify(
3128
- CreatePromptContentPrompts2$outboundSchema.parse(
3129
- createPromptContentPrompts2,
3130
- ),
3131
- );
3132
- }
3133
-
3134
- export function createPromptContentPrompts2FromJSON(
3135
- jsonString: string,
3136
- ): SafeParseResult<CreatePromptContentPrompts2, SDKValidationError> {
3137
- return safeParse(
3138
- jsonString,
3139
- (x) => CreatePromptContentPrompts2$inboundSchema.parse(JSON.parse(x)),
3140
- `Failed to parse 'CreatePromptContentPrompts2' from JSON`,
3141
- );
3142
- }
3143
-
3144
- /** @internal */
3145
- export const CreatePromptPromptsContent$inboundSchema: z.ZodType<
3146
- CreatePromptPromptsContent,
3147
- z.ZodTypeDef,
3148
- unknown
3149
- > = z.union([
3150
- z.string(),
3151
- z.array(z.union([
3152
- z.lazy(() => CreatePrompt2Prompts1$inboundSchema),
3153
- z.lazy(() => CreatePrompt2Prompts2$inboundSchema),
3154
- ])),
3155
- ]);
3156
-
3157
- /** @internal */
3158
- export type CreatePromptPromptsContent$Outbound =
3159
- | string
3160
- | Array<CreatePrompt2Prompts1$Outbound | CreatePrompt2Prompts2$Outbound>;
3161
-
3162
- /** @internal */
3163
- export const CreatePromptPromptsContent$outboundSchema: z.ZodType<
3164
- CreatePromptPromptsContent$Outbound,
3165
- z.ZodTypeDef,
3166
- CreatePromptPromptsContent
3167
- > = z.union([
3168
- z.string(),
3169
- z.array(z.union([
3170
- z.lazy(() => CreatePrompt2Prompts1$outboundSchema),
3171
- z.lazy(() => CreatePrompt2Prompts2$outboundSchema),
3172
- ])),
3173
- ]);
3174
-
3175
- /**
3176
- * @internal
3177
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3178
- */
3179
- export namespace CreatePromptPromptsContent$ {
3180
- /** @deprecated use `CreatePromptPromptsContent$inboundSchema` instead. */
3181
- export const inboundSchema = CreatePromptPromptsContent$inboundSchema;
3182
- /** @deprecated use `CreatePromptPromptsContent$outboundSchema` instead. */
3183
- export const outboundSchema = CreatePromptPromptsContent$outboundSchema;
3184
- /** @deprecated use `CreatePromptPromptsContent$Outbound` instead. */
3185
- export type Outbound = CreatePromptPromptsContent$Outbound;
3186
- }
3187
-
3188
- export function createPromptPromptsContentToJSON(
3189
- createPromptPromptsContent: CreatePromptPromptsContent,
3190
- ): string {
3191
- return JSON.stringify(
3192
- CreatePromptPromptsContent$outboundSchema.parse(createPromptPromptsContent),
3193
- );
3194
- }
3195
-
3196
- export function createPromptPromptsContentFromJSON(
3197
- jsonString: string,
3198
- ): SafeParseResult<CreatePromptPromptsContent, SDKValidationError> {
3199
- return safeParse(
3200
- jsonString,
3201
- (x) => CreatePromptPromptsContent$inboundSchema.parse(JSON.parse(x)),
3202
- `Failed to parse 'CreatePromptPromptsContent' from JSON`,
3203
- );
3204
- }
3205
-
3206
- /** @internal */
3207
- export const CreatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
3208
- typeof CreatePromptPromptsResponseType
3209
- > = z.nativeEnum(CreatePromptPromptsResponseType);
3210
-
3211
- /** @internal */
3212
- export const CreatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<
3213
- typeof CreatePromptPromptsResponseType
3214
- > = CreatePromptPromptsResponseType$inboundSchema;
3215
-
3216
- /**
3217
- * @internal
3218
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3219
- */
3220
- export namespace CreatePromptPromptsResponseType$ {
3221
- /** @deprecated use `CreatePromptPromptsResponseType$inboundSchema` instead. */
3222
- export const inboundSchema = CreatePromptPromptsResponseType$inboundSchema;
3223
- /** @deprecated use `CreatePromptPromptsResponseType$outboundSchema` instead. */
3224
- export const outboundSchema = CreatePromptPromptsResponseType$outboundSchema;
3225
- }
3226
-
3227
- /** @internal */
3228
- export const CreatePromptPromptsFunction$inboundSchema: z.ZodType<
3229
- CreatePromptPromptsFunction,
3230
- z.ZodTypeDef,
3231
- unknown
3232
- > = z.object({
3233
- name: z.string(),
3234
- arguments: z.string(),
3235
- });
3236
-
3237
- /** @internal */
3238
- export type CreatePromptPromptsFunction$Outbound = {
3239
- name: string;
3240
- arguments: string;
3241
- };
3242
-
3243
- /** @internal */
3244
- export const CreatePromptPromptsFunction$outboundSchema: z.ZodType<
3245
- CreatePromptPromptsFunction$Outbound,
3246
- z.ZodTypeDef,
3247
- CreatePromptPromptsFunction
3248
- > = z.object({
3249
- name: z.string(),
3250
- arguments: z.string(),
3251
- });
3252
-
3253
- /**
3254
- * @internal
3255
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3256
- */
3257
- export namespace CreatePromptPromptsFunction$ {
3258
- /** @deprecated use `CreatePromptPromptsFunction$inboundSchema` instead. */
3259
- export const inboundSchema = CreatePromptPromptsFunction$inboundSchema;
3260
- /** @deprecated use `CreatePromptPromptsFunction$outboundSchema` instead. */
3261
- export const outboundSchema = CreatePromptPromptsFunction$outboundSchema;
3262
- /** @deprecated use `CreatePromptPromptsFunction$Outbound` instead. */
3263
- export type Outbound = CreatePromptPromptsFunction$Outbound;
3264
- }
3265
-
3266
- export function createPromptPromptsFunctionToJSON(
3267
- createPromptPromptsFunction: CreatePromptPromptsFunction,
3268
- ): string {
3269
- return JSON.stringify(
3270
- CreatePromptPromptsFunction$outboundSchema.parse(
3271
- createPromptPromptsFunction,
3272
- ),
3273
- );
3274
- }
3275
-
3276
- export function createPromptPromptsFunctionFromJSON(
3277
- jsonString: string,
3278
- ): SafeParseResult<CreatePromptPromptsFunction, SDKValidationError> {
3279
- return safeParse(
3280
- jsonString,
3281
- (x) => CreatePromptPromptsFunction$inboundSchema.parse(JSON.parse(x)),
3282
- `Failed to parse 'CreatePromptPromptsFunction' from JSON`,
3283
- );
3284
- }
3285
-
3286
- /** @internal */
3287
- export const CreatePromptPromptsToolCalls$inboundSchema: z.ZodType<
3288
- CreatePromptPromptsToolCalls,
3289
- z.ZodTypeDef,
3290
- unknown
3291
- > = z.object({
3292
- id: z.string().optional(),
3293
- index: z.number().optional(),
3294
- type: CreatePromptPromptsResponseType$inboundSchema,
3295
- function: z.lazy(() => CreatePromptPromptsFunction$inboundSchema),
3296
- });
3297
-
3298
- /** @internal */
3299
- export type CreatePromptPromptsToolCalls$Outbound = {
3300
- id?: string | undefined;
3301
- index?: number | undefined;
3302
- type: string;
3303
- function: CreatePromptPromptsFunction$Outbound;
3304
- };
3305
-
3306
- /** @internal */
3307
- export const CreatePromptPromptsToolCalls$outboundSchema: z.ZodType<
3308
- CreatePromptPromptsToolCalls$Outbound,
3309
- z.ZodTypeDef,
3310
- CreatePromptPromptsToolCalls
3311
- > = z.object({
3312
- id: z.string().optional(),
3313
- index: z.number().optional(),
3314
- type: CreatePromptPromptsResponseType$outboundSchema,
3315
- function: z.lazy(() => CreatePromptPromptsFunction$outboundSchema),
3316
- });
3317
-
3318
- /**
3319
- * @internal
3320
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3321
- */
3322
- export namespace CreatePromptPromptsToolCalls$ {
3323
- /** @deprecated use `CreatePromptPromptsToolCalls$inboundSchema` instead. */
3324
- export const inboundSchema = CreatePromptPromptsToolCalls$inboundSchema;
3325
- /** @deprecated use `CreatePromptPromptsToolCalls$outboundSchema` instead. */
3326
- export const outboundSchema = CreatePromptPromptsToolCalls$outboundSchema;
3327
- /** @deprecated use `CreatePromptPromptsToolCalls$Outbound` instead. */
3328
- export type Outbound = CreatePromptPromptsToolCalls$Outbound;
3329
- }
3330
-
3331
- export function createPromptPromptsToolCallsToJSON(
3332
- createPromptPromptsToolCalls: CreatePromptPromptsToolCalls,
3333
- ): string {
3334
- return JSON.stringify(
3335
- CreatePromptPromptsToolCalls$outboundSchema.parse(
3336
- createPromptPromptsToolCalls,
3337
- ),
3338
- );
3339
- }
3340
-
3341
- export function createPromptPromptsToolCallsFromJSON(
3342
- jsonString: string,
3343
- ): SafeParseResult<CreatePromptPromptsToolCalls, SDKValidationError> {
3344
- return safeParse(
3345
- jsonString,
3346
- (x) => CreatePromptPromptsToolCalls$inboundSchema.parse(JSON.parse(x)),
3347
- `Failed to parse 'CreatePromptPromptsToolCalls' from JSON`,
3348
- );
3349
- }
3350
-
3351
- /** @internal */
3352
- export const CreatePromptPromptsMessages$inboundSchema: z.ZodType<
3353
- CreatePromptPromptsMessages,
3354
- z.ZodTypeDef,
3355
- unknown
3356
- > = z.object({
3357
- role: CreatePromptPromptsRole$inboundSchema,
3358
- content: z.union([
3359
- z.string(),
3360
- z.array(z.union([
3361
- z.lazy(() => CreatePrompt2Prompts1$inboundSchema),
3362
- z.lazy(() => CreatePrompt2Prompts2$inboundSchema),
3363
- ])),
3364
- ]),
3365
- tool_calls: z.array(z.lazy(() => CreatePromptPromptsToolCalls$inboundSchema))
3366
- .optional(),
3367
- }).transform((v) => {
3368
- return remap$(v, {
3369
- "tool_calls": "toolCalls",
3370
- });
3371
- });
3372
-
3373
- /** @internal */
3374
- export type CreatePromptPromptsMessages$Outbound = {
3375
- role: string;
3376
- content:
3377
- | string
3378
- | Array<CreatePrompt2Prompts1$Outbound | CreatePrompt2Prompts2$Outbound>;
3379
- tool_calls?: Array<CreatePromptPromptsToolCalls$Outbound> | undefined;
3380
- };
3381
-
3382
- /** @internal */
3383
- export const CreatePromptPromptsMessages$outboundSchema: z.ZodType<
3384
- CreatePromptPromptsMessages$Outbound,
3385
- z.ZodTypeDef,
3386
- CreatePromptPromptsMessages
3387
- > = z.object({
3388
- role: CreatePromptPromptsRole$outboundSchema,
3389
- content: z.union([
3390
- z.string(),
3391
- z.array(z.union([
3392
- z.lazy(() => CreatePrompt2Prompts1$outboundSchema),
3393
- z.lazy(() => CreatePrompt2Prompts2$outboundSchema),
3394
- ])),
3395
- ]),
3396
- toolCalls: z.array(z.lazy(() => CreatePromptPromptsToolCalls$outboundSchema))
3397
- .optional(),
3398
- }).transform((v) => {
3399
- return remap$(v, {
3400
- toolCalls: "tool_calls",
3401
- });
3402
- });
3403
-
3404
- /**
3405
- * @internal
3406
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3407
- */
3408
- export namespace CreatePromptPromptsMessages$ {
3409
- /** @deprecated use `CreatePromptPromptsMessages$inboundSchema` instead. */
3410
- export const inboundSchema = CreatePromptPromptsMessages$inboundSchema;
3411
- /** @deprecated use `CreatePromptPromptsMessages$outboundSchema` instead. */
3412
- export const outboundSchema = CreatePromptPromptsMessages$outboundSchema;
3413
- /** @deprecated use `CreatePromptPromptsMessages$Outbound` instead. */
3414
- export type Outbound = CreatePromptPromptsMessages$Outbound;
3415
- }
3416
-
3417
- export function createPromptPromptsMessagesToJSON(
3418
- createPromptPromptsMessages: CreatePromptPromptsMessages,
3419
- ): string {
3420
- return JSON.stringify(
3421
- CreatePromptPromptsMessages$outboundSchema.parse(
3422
- createPromptPromptsMessages,
3423
- ),
3424
- );
3425
- }
3426
-
3427
- export function createPromptPromptsMessagesFromJSON(
3428
- jsonString: string,
3429
- ): SafeParseResult<CreatePromptPromptsMessages, SDKValidationError> {
3430
- return safeParse(
3431
- jsonString,
3432
- (x) => CreatePromptPromptsMessages$inboundSchema.parse(JSON.parse(x)),
3433
- `Failed to parse 'CreatePromptPromptsMessages' from JSON`,
3434
- );
3435
- }
3436
-
3437
- /** @internal */
3438
- export const CreatePromptPromptConfig$inboundSchema: z.ZodType<
3439
- CreatePromptPromptConfig,
3440
- z.ZodTypeDef,
3441
- unknown
3442
- > = z.object({
3443
- stream: z.boolean().optional(),
3444
- model: z.string().optional(),
3445
- model_db_id: z.string().optional(),
3446
- model_type: CreatePromptModelType$inboundSchema.optional(),
3447
- model_parameters: z.lazy(() => CreatePromptModelParameters$inboundSchema)
3448
- .optional(),
3449
- provider: CreatePromptProvider$inboundSchema.optional(),
3450
- integration_id: z.nullable(z.string()).optional(),
3451
- version: z.string().optional(),
3452
- messages: z.array(z.lazy(() => CreatePromptPromptsMessages$inboundSchema)),
3453
- }).transform((v) => {
3454
- return remap$(v, {
3455
- "model_db_id": "modelDbId",
3456
- "model_type": "modelType",
3457
- "model_parameters": "modelParameters",
3458
- "integration_id": "integrationId",
3459
- });
3460
- });
3461
-
3462
- /** @internal */
3463
- export type CreatePromptPromptConfig$Outbound = {
3464
- stream?: boolean | undefined;
3465
- model?: string | undefined;
3466
- model_db_id?: string | undefined;
3467
- model_type?: string | undefined;
3468
- model_parameters?: CreatePromptModelParameters$Outbound | undefined;
3469
- provider?: string | undefined;
3470
- integration_id?: string | null | undefined;
3471
- version?: string | undefined;
3472
- messages: Array<CreatePromptPromptsMessages$Outbound>;
3473
- };
3474
-
3475
- /** @internal */
3476
- export const CreatePromptPromptConfig$outboundSchema: z.ZodType<
3477
- CreatePromptPromptConfig$Outbound,
3478
- z.ZodTypeDef,
3479
- CreatePromptPromptConfig
3480
- > = z.object({
3481
- stream: z.boolean().optional(),
3482
- model: z.string().optional(),
3483
- modelDbId: z.string().optional(),
3484
- modelType: CreatePromptModelType$outboundSchema.optional(),
3485
- modelParameters: z.lazy(() => CreatePromptModelParameters$outboundSchema)
3486
- .optional(),
3487
- provider: CreatePromptProvider$outboundSchema.optional(),
3488
- integrationId: z.nullable(z.string()).optional(),
3489
- version: z.string().optional(),
3490
- messages: z.array(z.lazy(() => CreatePromptPromptsMessages$outboundSchema)),
3491
- }).transform((v) => {
3492
- return remap$(v, {
3493
- modelDbId: "model_db_id",
3494
- modelType: "model_type",
3495
- modelParameters: "model_parameters",
3496
- integrationId: "integration_id",
3497
- });
3498
- });
3499
-
3500
- /**
3501
- * @internal
3502
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3503
- */
3504
- export namespace CreatePromptPromptConfig$ {
3505
- /** @deprecated use `CreatePromptPromptConfig$inboundSchema` instead. */
3506
- export const inboundSchema = CreatePromptPromptConfig$inboundSchema;
3507
- /** @deprecated use `CreatePromptPromptConfig$outboundSchema` instead. */
3508
- export const outboundSchema = CreatePromptPromptConfig$outboundSchema;
3509
- /** @deprecated use `CreatePromptPromptConfig$Outbound` instead. */
3510
- export type Outbound = CreatePromptPromptConfig$Outbound;
3511
- }
3512
-
3513
- export function createPromptPromptConfigToJSON(
3514
- createPromptPromptConfig: CreatePromptPromptConfig,
3515
- ): string {
3516
- return JSON.stringify(
3517
- CreatePromptPromptConfig$outboundSchema.parse(createPromptPromptConfig),
3518
- );
3519
- }
3520
-
3521
- export function createPromptPromptConfigFromJSON(
3522
- jsonString: string,
3523
- ): SafeParseResult<CreatePromptPromptConfig, SDKValidationError> {
3524
- return safeParse(
3525
- jsonString,
3526
- (x) => CreatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
3527
- `Failed to parse 'CreatePromptPromptConfig' from JSON`,
3528
- );
3529
- }
3530
-
3531
- /** @internal */
3532
- export const CreatePromptUseCases$inboundSchema: z.ZodNativeEnum<
3533
- typeof CreatePromptUseCases
3534
- > = z.nativeEnum(CreatePromptUseCases);
3535
-
3536
- /** @internal */
3537
- export const CreatePromptUseCases$outboundSchema: z.ZodNativeEnum<
3538
- typeof CreatePromptUseCases
3539
- > = CreatePromptUseCases$inboundSchema;
3540
-
3541
- /**
3542
- * @internal
3543
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3544
- */
3545
- export namespace CreatePromptUseCases$ {
3546
- /** @deprecated use `CreatePromptUseCases$inboundSchema` instead. */
3547
- export const inboundSchema = CreatePromptUseCases$inboundSchema;
3548
- /** @deprecated use `CreatePromptUseCases$outboundSchema` instead. */
3549
- export const outboundSchema = CreatePromptUseCases$outboundSchema;
3550
- }
3551
-
3552
- /** @internal */
3553
- export const CreatePromptLanguage$inboundSchema: z.ZodNativeEnum<
3554
- typeof CreatePromptLanguage
3555
- > = z.nativeEnum(CreatePromptLanguage);
3556
-
3557
- /** @internal */
3558
- export const CreatePromptLanguage$outboundSchema: z.ZodNativeEnum<
3559
- typeof CreatePromptLanguage
3560
- > = CreatePromptLanguage$inboundSchema;
3561
-
3562
- /**
3563
- * @internal
3564
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3565
- */
3566
- export namespace CreatePromptLanguage$ {
3567
- /** @deprecated use `CreatePromptLanguage$inboundSchema` instead. */
3568
- export const inboundSchema = CreatePromptLanguage$inboundSchema;
3569
- /** @deprecated use `CreatePromptLanguage$outboundSchema` instead. */
3570
- export const outboundSchema = CreatePromptLanguage$outboundSchema;
3571
- }
3572
-
3573
- /** @internal */
3574
- export const CreatePromptPromptsMetadata$inboundSchema: z.ZodType<
3575
- CreatePromptPromptsMetadata,
3576
- z.ZodTypeDef,
3577
- unknown
3578
- > = z.object({
3579
- use_cases: z.array(CreatePromptUseCases$inboundSchema).optional(),
3580
- language: CreatePromptLanguage$inboundSchema.optional(),
3581
- }).transform((v) => {
3582
- return remap$(v, {
3583
- "use_cases": "useCases",
3584
- });
3585
- });
3586
-
3587
- /** @internal */
3588
- export type CreatePromptPromptsMetadata$Outbound = {
3589
- use_cases?: Array<string> | undefined;
3590
- language?: string | undefined;
3591
- };
3592
-
3593
- /** @internal */
3594
- export const CreatePromptPromptsMetadata$outboundSchema: z.ZodType<
3595
- CreatePromptPromptsMetadata$Outbound,
3596
- z.ZodTypeDef,
3597
- CreatePromptPromptsMetadata
3598
- > = z.object({
3599
- useCases: z.array(CreatePromptUseCases$outboundSchema).optional(),
3600
- language: CreatePromptLanguage$outboundSchema.optional(),
3601
- }).transform((v) => {
3602
- return remap$(v, {
3603
- useCases: "use_cases",
3604
- });
3605
- });
3606
-
3607
- /**
3608
- * @internal
3609
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3610
- */
3611
- export namespace CreatePromptPromptsMetadata$ {
3612
- /** @deprecated use `CreatePromptPromptsMetadata$inboundSchema` instead. */
3613
- export const inboundSchema = CreatePromptPromptsMetadata$inboundSchema;
3614
- /** @deprecated use `CreatePromptPromptsMetadata$outboundSchema` instead. */
3615
- export const outboundSchema = CreatePromptPromptsMetadata$outboundSchema;
3616
- /** @deprecated use `CreatePromptPromptsMetadata$Outbound` instead. */
3617
- export type Outbound = CreatePromptPromptsMetadata$Outbound;
3618
- }
3619
-
3620
- export function createPromptPromptsMetadataToJSON(
3621
- createPromptPromptsMetadata: CreatePromptPromptsMetadata,
3622
- ): string {
3623
- return JSON.stringify(
3624
- CreatePromptPromptsMetadata$outboundSchema.parse(
3625
- createPromptPromptsMetadata,
3626
- ),
3627
- );
3628
- }
3629
-
3630
- export function createPromptPromptsMetadataFromJSON(
3631
- jsonString: string,
3632
- ): SafeParseResult<CreatePromptPromptsMetadata, SDKValidationError> {
3633
- return safeParse(
3634
- jsonString,
3635
- (x) => CreatePromptPromptsMetadata$inboundSchema.parse(JSON.parse(x)),
3636
- `Failed to parse 'CreatePromptPromptsMetadata' from JSON`,
3637
- );
3638
- }
3639
-
3640
- /** @internal */
3641
- export const CreatePromptResponseBody$inboundSchema: z.ZodType<
3642
- CreatePromptResponseBody,
3643
- z.ZodTypeDef,
3644
- unknown
3645
- > = z.object({
3646
- _id: z.string(),
3647
- type: CreatePromptPromptsType$inboundSchema,
3648
- owner: z.string(),
3649
- domain_id: z.string(),
3650
- created: z.string(),
3651
- updated: z.string(),
3652
- created_by_id: z.nullable(z.string()).optional(),
3653
- updated_by_id: z.nullable(z.string()).optional(),
3654
- display_name: z.string(),
3655
- description: z.nullable(z.string()).optional(),
3656
- prompt_config: z.lazy(() => CreatePromptPromptConfig$inboundSchema),
3657
- metadata: z.lazy(() => CreatePromptPromptsMetadata$inboundSchema).optional(),
3658
- }).transform((v) => {
3659
- return remap$(v, {
3660
- "_id": "id",
3661
- "domain_id": "domainId",
3662
- "created_by_id": "createdById",
3663
- "updated_by_id": "updatedById",
3664
- "display_name": "displayName",
3665
- "prompt_config": "promptConfig",
3666
- });
3667
- });
3668
-
3669
- /** @internal */
3670
- export type CreatePromptResponseBody$Outbound = {
3671
- _id: string;
3672
- type: string;
3673
- owner: string;
3674
- domain_id: string;
3675
- created: string;
3676
- updated: string;
3677
- created_by_id?: string | null | undefined;
3678
- updated_by_id?: string | null | undefined;
3679
- display_name: string;
3680
- description?: string | null | undefined;
3681
- prompt_config: CreatePromptPromptConfig$Outbound;
3682
- metadata?: CreatePromptPromptsMetadata$Outbound | undefined;
3683
- };
3684
-
3685
- /** @internal */
3686
- export const CreatePromptResponseBody$outboundSchema: z.ZodType<
3687
- CreatePromptResponseBody$Outbound,
3688
- z.ZodTypeDef,
3689
- CreatePromptResponseBody
3690
- > = z.object({
3691
- id: z.string(),
3692
- type: CreatePromptPromptsType$outboundSchema,
3693
- owner: z.string(),
3694
- domainId: z.string(),
3695
- created: z.string(),
3696
- updated: z.string(),
3697
- createdById: z.nullable(z.string()).optional(),
3698
- updatedById: z.nullable(z.string()).optional(),
3699
- displayName: z.string(),
3700
- description: z.nullable(z.string()).optional(),
3701
- promptConfig: z.lazy(() => CreatePromptPromptConfig$outboundSchema),
3702
- metadata: z.lazy(() => CreatePromptPromptsMetadata$outboundSchema).optional(),
3703
- }).transform((v) => {
3704
- return remap$(v, {
3705
- id: "_id",
3706
- domainId: "domain_id",
3707
- createdById: "created_by_id",
3708
- updatedById: "updated_by_id",
3709
- displayName: "display_name",
3710
- promptConfig: "prompt_config",
3711
- });
3712
- });
3713
-
3714
- /**
3715
- * @internal
3716
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3717
- */
3718
- export namespace CreatePromptResponseBody$ {
3719
- /** @deprecated use `CreatePromptResponseBody$inboundSchema` instead. */
3720
- export const inboundSchema = CreatePromptResponseBody$inboundSchema;
3721
- /** @deprecated use `CreatePromptResponseBody$outboundSchema` instead. */
3722
- export const outboundSchema = CreatePromptResponseBody$outboundSchema;
3723
- /** @deprecated use `CreatePromptResponseBody$Outbound` instead. */
3724
- export type Outbound = CreatePromptResponseBody$Outbound;
3725
- }
3726
-
3727
- export function createPromptResponseBodyToJSON(
3728
- createPromptResponseBody: CreatePromptResponseBody,
3729
- ): string {
3730
- return JSON.stringify(
3731
- CreatePromptResponseBody$outboundSchema.parse(createPromptResponseBody),
3732
- );
3733
- }
3734
-
3735
- export function createPromptResponseBodyFromJSON(
3736
- jsonString: string,
3737
- ): SafeParseResult<CreatePromptResponseBody, SDKValidationError> {
3738
- return safeParse(
3739
- jsonString,
3740
- (x) => CreatePromptResponseBody$inboundSchema.parse(JSON.parse(x)),
3741
- `Failed to parse 'CreatePromptResponseBody' from JSON`,
3742
- );
3743
- }