@orq-ai/node 2.14.6 → 3.0.1

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 (671) hide show
  1. package/FUNCTIONS.md +106 -0
  2. package/README.md +495 -172
  3. package/RUNTIMES.md +48 -0
  4. package/core.d.ts +10 -0
  5. package/core.d.ts.map +1 -0
  6. package/core.js +17 -0
  7. package/core.js.map +1 -0
  8. package/docs/sdks/contacts/README.md +84 -0
  9. package/docs/sdks/deployments/README.md +239 -0
  10. package/docs/sdks/feedback/README.md +92 -0
  11. package/docs/sdks/files/README.md +473 -0
  12. package/docs/sdks/metrics/README.md +86 -0
  13. package/docs/sdks/orq/README.md +10 -0
  14. package/docs/sdks/prompt/README.md +6 -0
  15. package/docs/sdks/prompts/README.md +533 -0
  16. package/docs/sdks/remoteconfig/README.md +80 -0
  17. package/docs/sdks/snippets/README.md +84 -0
  18. package/docs/sdks/templates/README.md +80 -0
  19. package/funcs/contactsCreate.d.ts +15 -0
  20. package/funcs/contactsCreate.d.ts.map +1 -0
  21. package/funcs/contactsCreate.js +107 -0
  22. package/funcs/contactsCreate.js.map +1 -0
  23. package/funcs/deploymentsAll.d.ts +16 -0
  24. package/funcs/deploymentsAll.d.ts.map +1 -0
  25. package/funcs/deploymentsAll.js +115 -0
  26. package/funcs/deploymentsAll.js.map +1 -0
  27. package/funcs/deploymentsGetConfig.d.ts +15 -0
  28. package/funcs/deploymentsGetConfig.d.ts.map +1 -0
  29. package/funcs/deploymentsGetConfig.js +107 -0
  30. package/funcs/deploymentsGetConfig.js.map +1 -0
  31. package/funcs/deploymentsInvoke.d.ts +22 -0
  32. package/funcs/deploymentsInvoke.d.ts.map +1 -0
  33. package/funcs/deploymentsInvoke.js +117 -0
  34. package/funcs/deploymentsInvoke.js.map +1 -0
  35. package/funcs/deploymentsMetricsCreate.d.ts +15 -0
  36. package/funcs/deploymentsMetricsCreate.d.ts.map +1 -0
  37. package/funcs/deploymentsMetricsCreate.js +113 -0
  38. package/funcs/deploymentsMetricsCreate.js.map +1 -0
  39. package/funcs/feedbackCreate.d.ts +15 -0
  40. package/funcs/feedbackCreate.d.ts.map +1 -0
  41. package/funcs/feedbackCreate.js +107 -0
  42. package/funcs/feedbackCreate.js.map +1 -0
  43. package/funcs/filesBulkUpload.d.ts +15 -0
  44. package/funcs/filesBulkUpload.d.ts.map +1 -0
  45. package/funcs/filesBulkUpload.js +109 -0
  46. package/funcs/filesBulkUpload.js.map +1 -0
  47. package/funcs/filesDelete.d.ts +12 -0
  48. package/funcs/filesDelete.d.ts.map +1 -0
  49. package/funcs/filesDelete.js +110 -0
  50. package/funcs/filesDelete.js.map +1 -0
  51. package/funcs/filesGet.d.ts +12 -0
  52. package/funcs/filesGet.d.ts.map +1 -0
  53. package/funcs/filesGet.js +109 -0
  54. package/funcs/filesGet.js.map +1 -0
  55. package/funcs/filesList.d.ts +12 -0
  56. package/funcs/filesList.d.ts.map +1 -0
  57. package/funcs/filesList.js +110 -0
  58. package/funcs/filesList.js.map +1 -0
  59. package/funcs/filesUpdate.d.ts +12 -0
  60. package/funcs/filesUpdate.d.ts.map +1 -0
  61. package/funcs/filesUpdate.js +110 -0
  62. package/funcs/filesUpdate.js.map +1 -0
  63. package/funcs/filesUpload.d.ts +15 -0
  64. package/funcs/filesUpload.d.ts.map +1 -0
  65. package/funcs/filesUpload.js +125 -0
  66. package/funcs/filesUpload.js.map +1 -0
  67. package/funcs/promptSnippetsFindOne.d.ts +12 -0
  68. package/funcs/promptSnippetsFindOne.d.ts.map +1 -0
  69. package/funcs/promptSnippetsFindOne.js +109 -0
  70. package/funcs/promptSnippetsFindOne.js.map +1 -0
  71. package/funcs/promptTemplatesGetAll.d.ts +12 -0
  72. package/funcs/promptTemplatesGetAll.d.ts.map +1 -0
  73. package/funcs/promptTemplatesGetAll.js +109 -0
  74. package/funcs/promptTemplatesGetAll.js.map +1 -0
  75. package/funcs/promptsCreate.d.ts +12 -0
  76. package/funcs/promptsCreate.d.ts.map +1 -0
  77. package/funcs/promptsCreate.js +106 -0
  78. package/funcs/promptsCreate.js.map +1 -0
  79. package/funcs/promptsCreateVersion.d.ts +12 -0
  80. package/funcs/promptsCreateVersion.d.ts.map +1 -0
  81. package/funcs/promptsCreateVersion.js +110 -0
  82. package/funcs/promptsCreateVersion.js.map +1 -0
  83. package/funcs/promptsDelete.d.ts +12 -0
  84. package/funcs/promptsDelete.d.ts.map +1 -0
  85. package/funcs/promptsDelete.js +110 -0
  86. package/funcs/promptsDelete.js.map +1 -0
  87. package/funcs/promptsDuplicate.d.ts +12 -0
  88. package/funcs/promptsDuplicate.d.ts.map +1 -0
  89. package/funcs/promptsDuplicate.js +110 -0
  90. package/funcs/promptsDuplicate.js.map +1 -0
  91. package/funcs/promptsGetAll.d.ts +12 -0
  92. package/funcs/promptsGetAll.d.ts.map +1 -0
  93. package/funcs/promptsGetAll.js +106 -0
  94. package/funcs/promptsGetAll.js.map +1 -0
  95. package/funcs/promptsGetOne.d.ts +12 -0
  96. package/funcs/promptsGetOne.d.ts.map +1 -0
  97. package/funcs/promptsGetOne.js +110 -0
  98. package/funcs/promptsGetOne.js.map +1 -0
  99. package/funcs/promptsUpdate.d.ts +13 -0
  100. package/funcs/promptsUpdate.d.ts.map +1 -0
  101. package/funcs/promptsUpdate.js +114 -0
  102. package/funcs/promptsUpdate.js.map +1 -0
  103. package/funcs/remoteconfigGetConfig.d.ts +12 -0
  104. package/funcs/remoteconfigGetConfig.d.ts.map +1 -0
  105. package/funcs/remoteconfigGetConfig.js +107 -0
  106. package/funcs/remoteconfigGetConfig.js.map +1 -0
  107. package/hooks/hooks.d.ts +24 -0
  108. package/hooks/hooks.d.ts.map +1 -0
  109. package/hooks/hooks.js +86 -0
  110. package/hooks/hooks.js.map +1 -0
  111. package/hooks/index.d.ts +3 -0
  112. package/hooks/index.d.ts.map +1 -0
  113. package/hooks/index.js +22 -0
  114. package/hooks/index.js.map +1 -0
  115. package/hooks/registration.d.ts +3 -0
  116. package/hooks/registration.d.ts.map +1 -0
  117. package/hooks/registration.js +15 -0
  118. package/hooks/registration.js.map +1 -0
  119. package/hooks/types.d.ts +77 -0
  120. package/hooks/types.d.ts.map +1 -0
  121. package/hooks/types.js +6 -0
  122. package/hooks/types.js.map +1 -0
  123. package/index.d.ts +4 -0
  124. package/index.d.ts.map +1 -0
  125. package/index.js +46 -0
  126. package/index.js.map +1 -0
  127. package/lib/base64.d.ts +10 -0
  128. package/lib/base64.d.ts.map +1 -0
  129. package/lib/base64.js +71 -0
  130. package/lib/base64.js.map +1 -0
  131. package/lib/config.d.ts +34 -0
  132. package/lib/config.d.ts.map +1 -0
  133. package/lib/config.js +35 -0
  134. package/lib/config.js.map +1 -0
  135. package/lib/dlv.d.ts +14 -0
  136. package/lib/dlv.d.ts.map +1 -0
  137. package/lib/dlv.js +49 -0
  138. package/lib/dlv.js.map +1 -0
  139. package/lib/encodings.d.ts +52 -0
  140. package/lib/encodings.d.ts.map +1 -0
  141. package/lib/encodings.js +368 -0
  142. package/lib/encodings.js.map +1 -0
  143. package/lib/env.d.ts +15 -0
  144. package/lib/env.d.ts.map +1 -0
  145. package/lib/env.js +65 -0
  146. package/lib/env.js.map +1 -0
  147. package/lib/event-streams.d.ts +17 -0
  148. package/lib/event-streams.d.ts.map +1 -0
  149. package/lib/event-streams.js +220 -0
  150. package/lib/event-streams.js.map +1 -0
  151. package/lib/files.d.ts +8 -0
  152. package/lib/files.d.ts.map +1 -0
  153. package/lib/files.js +36 -0
  154. package/lib/files.js.map +1 -0
  155. package/lib/http.d.ts +67 -0
  156. package/lib/http.d.ts.map +1 -0
  157. package/lib/http.js +217 -0
  158. package/lib/http.js.map +1 -0
  159. package/lib/is-plain-object.d.ts +2 -0
  160. package/lib/is-plain-object.d.ts.map +1 -0
  161. package/lib/is-plain-object.js +41 -0
  162. package/lib/is-plain-object.js.map +1 -0
  163. package/lib/logger.d.ts +6 -0
  164. package/lib/logger.d.ts.map +1 -0
  165. package/lib/logger.js +6 -0
  166. package/lib/logger.js.map +1 -0
  167. package/lib/matchers.d.ts +64 -0
  168. package/lib/matchers.d.ts.map +1 -0
  169. package/lib/matchers.js +207 -0
  170. package/lib/matchers.js.map +1 -0
  171. package/lib/primitives.d.ts +23 -0
  172. package/lib/primitives.d.ts.map +1 -0
  173. package/lib/primitives.js +104 -0
  174. package/lib/primitives.js.map +1 -0
  175. package/lib/retries.d.ts +38 -0
  176. package/lib/retries.d.ts.map +1 -0
  177. package/lib/retries.js +154 -0
  178. package/lib/retries.js.map +1 -0
  179. package/lib/schemas.d.ts +19 -0
  180. package/lib/schemas.d.ts.map +1 -0
  181. package/lib/schemas.js +59 -0
  182. package/lib/schemas.js.map +1 -0
  183. package/lib/sdks.d.ts +60 -0
  184. package/lib/sdks.d.ts.map +1 -0
  185. package/lib/sdks.js +280 -0
  186. package/lib/sdks.js.map +1 -0
  187. package/lib/security.d.ts +82 -0
  188. package/lib/security.d.ts.map +1 -0
  189. package/lib/security.js +139 -0
  190. package/lib/security.js.map +1 -0
  191. package/lib/url.d.ts +5 -0
  192. package/lib/url.d.ts.map +1 -0
  193. package/lib/url.js +25 -0
  194. package/lib/url.js.map +1 -0
  195. package/models/components/deployments.d.ts +920 -0
  196. package/models/components/deployments.d.ts.map +1 -0
  197. package/models/components/deployments.js +948 -0
  198. package/models/components/deployments.js.map +1 -0
  199. package/models/components/index.d.ts +3 -0
  200. package/models/components/index.d.ts.map +1 -0
  201. package/models/components/index.js +22 -0
  202. package/models/components/index.js.map +1 -0
  203. package/models/components/security.d.ts +29 -0
  204. package/models/components/security.d.ts.map +1 -0
  205. package/models/components/security.js +78 -0
  206. package/models/components/security.js.map +1 -0
  207. package/models/errors/apierror.d.ts +8 -0
  208. package/models/errors/apierror.d.ts.map +1 -0
  209. package/models/errors/apierror.js +21 -0
  210. package/models/errors/apierror.js.map +1 -0
  211. package/models/errors/honoapierror.d.ts +42 -0
  212. package/models/errors/honoapierror.d.ts.map +1 -0
  213. package/models/errors/honoapierror.js +80 -0
  214. package/models/errors/honoapierror.js.map +1 -0
  215. package/models/errors/httpclienterrors.d.ts +44 -0
  216. package/models/errors/httpclienterrors.d.ts.map +1 -0
  217. package/models/errors/httpclienterrors.js +78 -0
  218. package/models/errors/httpclienterrors.js.map +1 -0
  219. package/models/errors/index.d.ts +6 -0
  220. package/models/errors/index.d.ts.map +1 -0
  221. package/models/errors/index.js +25 -0
  222. package/models/errors/index.js.map +1 -0
  223. package/models/errors/sdkvalidationerror.d.ts +20 -0
  224. package/models/errors/sdkvalidationerror.d.ts.map +1 -0
  225. package/models/errors/sdkvalidationerror.js +115 -0
  226. package/models/errors/sdkvalidationerror.js.map +1 -0
  227. package/models/errors/updateprompt.d.ts +36 -0
  228. package/models/errors/updateprompt.d.ts.map +1 -0
  229. package/models/errors/updateprompt.js +79 -0
  230. package/models/errors/updateprompt.js.map +1 -0
  231. package/models/operations/bulkfileupload.d.ts +173 -0
  232. package/models/operations/bulkfileupload.d.ts.map +1 -0
  233. package/models/operations/bulkfileupload.js +210 -0
  234. package/models/operations/bulkfileupload.js.map +1 -0
  235. package/models/operations/createcontact.d.ts +139 -0
  236. package/models/operations/createcontact.d.ts.map +1 -0
  237. package/models/operations/createcontact.js +149 -0
  238. package/models/operations/createcontact.js.map +1 -0
  239. package/models/operations/createfeedback.d.ts +136 -0
  240. package/models/operations/createfeedback.d.ts.map +1 -0
  241. package/models/operations/createfeedback.js +172 -0
  242. package/models/operations/createfeedback.js.map +1 -0
  243. package/models/operations/createprompt.d.ts +2035 -0
  244. package/models/operations/createprompt.d.ts.map +1 -0
  245. package/models/operations/createprompt.js +1853 -0
  246. package/models/operations/createprompt.js.map +1 -0
  247. package/models/operations/createpromptversion.d.ts +2003 -0
  248. package/models/operations/createpromptversion.d.ts.map +1 -0
  249. package/models/operations/createpromptversion.js +1852 -0
  250. package/models/operations/createpromptversion.js.map +1 -0
  251. package/models/operations/deleteprompt.d.ts +32 -0
  252. package/models/operations/deleteprompt.d.ts.map +1 -0
  253. package/models/operations/deleteprompt.js +69 -0
  254. package/models/operations/deleteprompt.js.map +1 -0
  255. package/models/operations/deploymentcreatemetric.d.ts +957 -0
  256. package/models/operations/deploymentcreatemetric.d.ts.map +1 -0
  257. package/models/operations/deploymentcreatemetric.js +954 -0
  258. package/models/operations/deploymentcreatemetric.js.map +1 -0
  259. package/models/operations/deploymentgetconfig.d.ts +1885 -0
  260. package/models/operations/deploymentgetconfig.d.ts.map +1 -0
  261. package/models/operations/deploymentgetconfig.js +1782 -0
  262. package/models/operations/deploymentgetconfig.js.map +1 -0
  263. package/models/operations/deploymentinvoke.d.ts +1350 -0
  264. package/models/operations/deploymentinvoke.d.ts.map +1 -0
  265. package/models/operations/deploymentinvoke.js +1210 -0
  266. package/models/operations/deploymentinvoke.js.map +1 -0
  267. package/models/operations/deployments.d.ts +1233 -0
  268. package/models/operations/deployments.d.ts.map +1 -0
  269. package/models/operations/deployments.js +1111 -0
  270. package/models/operations/deployments.js.map +1 -0
  271. package/models/operations/duplicateprompt.d.ts +32 -0
  272. package/models/operations/duplicateprompt.d.ts.map +1 -0
  273. package/models/operations/duplicateprompt.js +69 -0
  274. package/models/operations/duplicateprompt.js.map +1 -0
  275. package/models/operations/filedelete.d.ts +32 -0
  276. package/models/operations/filedelete.d.ts.map +1 -0
  277. package/models/operations/filedelete.js +78 -0
  278. package/models/operations/filedelete.js.map +1 -0
  279. package/models/operations/fileget.d.ts +116 -0
  280. package/models/operations/fileget.d.ts.map +1 -0
  281. package/models/operations/fileget.js +154 -0
  282. package/models/operations/fileget.js.map +1 -0
  283. package/models/operations/filelist.d.ts +174 -0
  284. package/models/operations/filelist.d.ts.map +1 -0
  285. package/models/operations/filelist.js +217 -0
  286. package/models/operations/filelist.js.map +1 -0
  287. package/models/operations/fileupdate.d.ts +143 -0
  288. package/models/operations/fileupdate.d.ts.map +1 -0
  289. package/models/operations/fileupdate.js +193 -0
  290. package/models/operations/fileupdate.js.map +1 -0
  291. package/models/operations/fileupload.d.ts +179 -0
  292. package/models/operations/fileupload.d.ts.map +1 -0
  293. package/models/operations/fileupload.js +212 -0
  294. package/models/operations/fileupload.js.map +1 -0
  295. package/models/operations/findonepromptsnippet.d.ts +6278 -0
  296. package/models/operations/findonepromptsnippet.d.ts.map +1 -0
  297. package/models/operations/findonepromptsnippet.js +5891 -0
  298. package/models/operations/findonepromptsnippet.js.map +1 -0
  299. package/models/operations/getallprompts.d.ts +10675 -0
  300. package/models/operations/getallprompts.d.ts.map +1 -0
  301. package/models/operations/getallprompts.js +9398 -0
  302. package/models/operations/getallprompts.js.map +1 -0
  303. package/models/operations/getallprompttemplates.d.ts +6607 -0
  304. package/models/operations/getallprompttemplates.d.ts.map +1 -0
  305. package/models/operations/getallprompttemplates.js +6225 -0
  306. package/models/operations/getallprompttemplates.js.map +1 -0
  307. package/models/operations/getoneprompt.d.ts +32 -0
  308. package/models/operations/getoneprompt.d.ts.map +1 -0
  309. package/models/operations/getoneprompt.js +69 -0
  310. package/models/operations/getoneprompt.js.map +1 -0
  311. package/models/operations/index.d.ts +23 -0
  312. package/models/operations/index.d.ts.map +1 -0
  313. package/models/operations/index.js +42 -0
  314. package/models/operations/index.js.map +1 -0
  315. package/models/operations/remoteconfigsgetconfig.d.ts +121 -0
  316. package/models/operations/remoteconfigsgetconfig.d.ts.map +1 -0
  317. package/models/operations/remoteconfigsgetconfig.js +126 -0
  318. package/models/operations/remoteconfigsgetconfig.js.map +1 -0
  319. package/models/operations/updateprompt.d.ts +7251 -0
  320. package/models/operations/updateprompt.d.ts.map +1 -0
  321. package/models/operations/updateprompt.js +6678 -0
  322. package/models/operations/updateprompt.js.map +1 -0
  323. package/package.json +25 -24
  324. package/packages/orq-rc/FUNCTIONS.md +106 -0
  325. package/packages/orq-rc/README.md +564 -0
  326. package/packages/orq-rc/RUNTIMES.md +22 -0
  327. package/packages/orq-rc/docs/sdks/contacts/README.md +84 -0
  328. package/packages/orq-rc/docs/sdks/deployments/README.md +239 -0
  329. package/packages/orq-rc/docs/sdks/feedback/README.md +92 -0
  330. package/packages/orq-rc/docs/sdks/files/README.md +473 -0
  331. package/packages/orq-rc/docs/sdks/metrics/README.md +86 -0
  332. package/packages/orq-rc/docs/sdks/orq/README.md +10 -0
  333. package/packages/orq-rc/docs/sdks/prompt/README.md +6 -0
  334. package/packages/orq-rc/docs/sdks/prompts/README.md +533 -0
  335. package/packages/orq-rc/docs/sdks/remoteconfig/README.md +80 -0
  336. package/packages/orq-rc/docs/sdks/snippets/README.md +84 -0
  337. package/packages/orq-rc/docs/sdks/templates/README.md +80 -0
  338. package/packages/orq-rc/src/core.ts +13 -0
  339. package/packages/orq-rc/src/funcs/contactsCreate.ts +124 -0
  340. package/packages/orq-rc/src/funcs/deploymentsAll.ts +138 -0
  341. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +132 -0
  342. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +135 -0
  343. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +132 -0
  344. package/packages/orq-rc/src/funcs/feedbackCreate.ts +124 -0
  345. package/packages/orq-rc/src/funcs/filesBulkUpload.ts +126 -0
  346. package/packages/orq-rc/src/funcs/filesDelete.ts +128 -0
  347. package/packages/orq-rc/src/funcs/filesGet.ts +127 -0
  348. package/packages/orq-rc/src/funcs/filesList.ts +129 -0
  349. package/packages/orq-rc/src/funcs/filesUpdate.ts +128 -0
  350. package/packages/orq-rc/src/funcs/filesUpload.ts +145 -0
  351. package/packages/orq-rc/src/funcs/promptSnippetsFindOne.ts +128 -0
  352. package/packages/orq-rc/src/funcs/promptTemplatesGetAll.ts +130 -0
  353. package/packages/orq-rc/src/funcs/promptsCreate.ts +124 -0
  354. package/packages/orq-rc/src/funcs/promptsCreateVersion.ts +129 -0
  355. package/packages/orq-rc/src/funcs/promptsDelete.ts +128 -0
  356. package/packages/orq-rc/src/funcs/promptsDuplicate.ts +128 -0
  357. package/packages/orq-rc/src/funcs/promptsGetAll.ts +126 -0
  358. package/packages/orq-rc/src/funcs/promptsGetOne.ts +128 -0
  359. package/packages/orq-rc/src/funcs/promptsUpdate.ts +136 -0
  360. package/packages/orq-rc/src/funcs/remoteconfigGetConfig.ts +125 -0
  361. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  362. package/packages/orq-rc/src/hooks/index.ts +6 -0
  363. package/packages/orq-rc/src/hooks/registration.ts +14 -0
  364. package/packages/orq-rc/src/hooks/types.ts +109 -0
  365. package/packages/orq-rc/src/index.ts +7 -0
  366. package/packages/orq-rc/src/lib/base64.ts +37 -0
  367. package/packages/orq-rc/src/lib/config.ts +60 -0
  368. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  369. package/packages/orq-rc/src/lib/encodings.ts +449 -0
  370. package/packages/orq-rc/src/lib/env.ts +41 -0
  371. package/packages/orq-rc/src/lib/event-streams.ts +264 -0
  372. package/packages/orq-rc/src/lib/files.ts +40 -0
  373. package/packages/orq-rc/src/lib/http.ts +323 -0
  374. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  375. package/packages/orq-rc/src/lib/logger.ts +9 -0
  376. package/packages/orq-rc/src/lib/matchers.ts +325 -0
  377. package/packages/orq-rc/src/lib/primitives.ts +122 -0
  378. package/packages/orq-rc/src/lib/retries.ts +219 -0
  379. package/packages/orq-rc/src/lib/schemas.ts +86 -0
  380. package/packages/orq-rc/src/lib/sdks.ts +397 -0
  381. package/packages/orq-rc/src/lib/security.ts +254 -0
  382. package/packages/orq-rc/src/lib/url.ts +33 -0
  383. package/packages/orq-rc/src/models/components/deployments.ts +1673 -0
  384. package/packages/orq-rc/src/models/components/index.ts +6 -0
  385. package/packages/orq-rc/src/models/components/security.ts +71 -0
  386. package/packages/orq-rc/src/models/errors/apierror.ts +27 -0
  387. package/packages/orq-rc/src/models/errors/honoapierror.ts +82 -0
  388. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  389. package/packages/orq-rc/src/models/errors/index.ts +9 -0
  390. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +97 -0
  391. package/packages/orq-rc/src/models/errors/updateprompt.ts +71 -0
  392. package/packages/orq-rc/src/models/operations/bulkfileupload.ts +315 -0
  393. package/packages/orq-rc/src/models/operations/createcontact.ts +256 -0
  394. package/packages/orq-rc/src/models/operations/createfeedback.ts +286 -0
  395. package/packages/orq-rc/src/models/operations/createprompt.ts +3461 -0
  396. package/packages/orq-rc/src/models/operations/createpromptversion.ts +3703 -0
  397. package/packages/orq-rc/src/models/operations/deleteprompt.ts +69 -0
  398. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +1790 -0
  399. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +3483 -0
  400. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +2385 -0
  401. package/packages/orq-rc/src/models/operations/deployments.ts +2098 -0
  402. package/packages/orq-rc/src/models/operations/duplicateprompt.ts +69 -0
  403. package/packages/orq-rc/src/models/operations/filedelete.ts +78 -0
  404. package/packages/orq-rc/src/models/operations/fileget.ts +222 -0
  405. package/packages/orq-rc/src/models/operations/filelist.ts +333 -0
  406. package/packages/orq-rc/src/models/operations/fileupdate.ts +298 -0
  407. package/packages/orq-rc/src/models/operations/fileupload.ts +322 -0
  408. package/packages/orq-rc/src/models/operations/findonepromptsnippet.ts +13629 -0
  409. package/packages/orq-rc/src/models/operations/getallprompts.ts +18640 -0
  410. package/packages/orq-rc/src/models/operations/getallprompttemplates.ts +13690 -0
  411. package/packages/orq-rc/src/models/operations/getoneprompt.ts +69 -0
  412. package/packages/orq-rc/src/models/operations/index.ts +26 -0
  413. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +190 -0
  414. package/packages/orq-rc/src/models/operations/updateprompt.ts +14407 -0
  415. package/packages/orq-rc/src/sdk/contacts.ts +27 -0
  416. package/packages/orq-rc/src/sdk/deployments.ts +75 -0
  417. package/packages/orq-rc/src/sdk/feedback.ts +27 -0
  418. package/packages/orq-rc/src/sdk/files.ts +105 -0
  419. package/packages/orq-rc/src/sdk/index.ts +5 -0
  420. package/packages/orq-rc/src/sdk/metrics.ts +27 -0
  421. package/packages/orq-rc/src/sdk/prompt.ts +19 -0
  422. package/packages/orq-rc/src/sdk/prompts.ts +114 -0
  423. package/packages/orq-rc/src/sdk/remoteconfig.ts +24 -0
  424. package/packages/orq-rc/src/sdk/sdk.ts +49 -0
  425. package/packages/orq-rc/src/sdk/snippets.ts +24 -0
  426. package/packages/orq-rc/src/sdk/templates.ts +24 -0
  427. package/packages/orq-rc/src/types/blobs.ts +31 -0
  428. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  429. package/packages/orq-rc/src/types/enums.ts +16 -0
  430. package/packages/orq-rc/src/types/fp.ts +50 -0
  431. package/packages/orq-rc/src/types/index.ts +11 -0
  432. package/packages/orq-rc/src/types/operations.ts +105 -0
  433. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  434. package/packages/orq-rc/src/types/streams.ts +21 -0
  435. package/sdk/contacts.d.ts +12 -0
  436. package/sdk/contacts.d.ts.map +1 -0
  437. package/sdk/contacts.js +22 -0
  438. package/sdk/contacts.js.map +1 -0
  439. package/sdk/deployments.d.ts +34 -0
  440. package/sdk/deployments.d.ts.map +1 -0
  441. package/sdk/deployments.js +48 -0
  442. package/sdk/deployments.js.map +1 -0
  443. package/sdk/feedback.d.ts +12 -0
  444. package/sdk/feedback.d.ts.map +1 -0
  445. package/sdk/feedback.js +22 -0
  446. package/sdk/feedback.js.map +1 -0
  447. package/sdk/files.d.ts +35 -0
  448. package/sdk/files.d.ts.map +1 -0
  449. package/sdk/files.js +60 -0
  450. package/sdk/files.js.map +1 -0
  451. package/sdk/index.d.ts +2 -0
  452. package/sdk/index.d.ts.map +1 -0
  453. package/sdk/index.js +21 -0
  454. package/sdk/index.js.map +1 -0
  455. package/sdk/metrics.d.ts +12 -0
  456. package/sdk/metrics.d.ts.map +1 -0
  457. package/sdk/metrics.js +22 -0
  458. package/sdk/metrics.js.map +1 -0
  459. package/sdk/prompt.d.ts +10 -0
  460. package/sdk/prompt.d.ts.map +1 -0
  461. package/sdk/prompt.js +19 -0
  462. package/sdk/prompt.js.map +1 -0
  463. package/sdk/prompts.d.ts +33 -0
  464. package/sdk/prompts.d.ts.map +1 -0
  465. package/sdk/prompts.js +61 -0
  466. package/sdk/prompts.js.map +1 -0
  467. package/sdk/remoteconfig.d.ts +9 -0
  468. package/sdk/remoteconfig.d.ts.map +1 -0
  469. package/sdk/remoteconfig.js +19 -0
  470. package/sdk/remoteconfig.js.map +1 -0
  471. package/sdk/sdk.d.ts +25 -0
  472. package/sdk/sdk.d.ts.map +1 -0
  473. package/sdk/sdk.js +39 -0
  474. package/sdk/sdk.js.map +1 -0
  475. package/sdk/snippets.d.ts +9 -0
  476. package/sdk/snippets.d.ts.map +1 -0
  477. package/sdk/snippets.js +19 -0
  478. package/sdk/snippets.js.map +1 -0
  479. package/sdk/templates.d.ts +9 -0
  480. package/sdk/templates.d.ts.map +1 -0
  481. package/sdk/templates.js +19 -0
  482. package/sdk/templates.js.map +1 -0
  483. package/src/core.ts +13 -0
  484. package/src/funcs/contactsCreate.ts +125 -0
  485. package/src/funcs/deploymentsAll.ts +139 -0
  486. package/src/funcs/deploymentsGetConfig.ts +133 -0
  487. package/src/funcs/deploymentsInvoke.ts +136 -0
  488. package/src/funcs/deploymentsMetricsCreate.ts +133 -0
  489. package/src/funcs/feedbackCreate.ts +125 -0
  490. package/src/funcs/filesBulkUpload.ts +128 -0
  491. package/src/funcs/filesDelete.ts +129 -0
  492. package/src/funcs/filesGet.ts +128 -0
  493. package/src/funcs/filesList.ts +130 -0
  494. package/src/funcs/filesUpdate.ts +129 -0
  495. package/src/funcs/filesUpload.ts +148 -0
  496. package/src/funcs/promptSnippetsFindOne.ts +129 -0
  497. package/src/funcs/promptTemplatesGetAll.ts +131 -0
  498. package/src/funcs/promptsCreate.ts +125 -0
  499. package/src/funcs/promptsCreateVersion.ts +130 -0
  500. package/src/funcs/promptsDelete.ts +129 -0
  501. package/src/funcs/promptsDuplicate.ts +129 -0
  502. package/src/funcs/promptsGetAll.ts +127 -0
  503. package/src/funcs/promptsGetOne.ts +129 -0
  504. package/src/funcs/promptsUpdate.ts +137 -0
  505. package/src/funcs/remoteconfigGetConfig.ts +126 -0
  506. package/src/hooks/hooks.ts +132 -0
  507. package/src/hooks/index.ts +6 -0
  508. package/src/hooks/registration.ts +14 -0
  509. package/src/hooks/types.ts +109 -0
  510. package/src/index.ts +7 -0
  511. package/src/lib/base64.ts +37 -0
  512. package/src/lib/config.ts +60 -0
  513. package/src/lib/dlv.ts +53 -0
  514. package/src/lib/encodings.ts +483 -0
  515. package/src/lib/env.ts +41 -0
  516. package/src/lib/event-streams.ts +264 -0
  517. package/src/lib/files.ts +40 -0
  518. package/src/lib/http.ts +323 -0
  519. package/src/lib/is-plain-object.ts +43 -0
  520. package/src/lib/logger.ts +9 -0
  521. package/src/lib/matchers.ts +325 -0
  522. package/src/lib/primitives.ts +136 -0
  523. package/src/lib/retries.ts +219 -0
  524. package/src/lib/schemas.ts +86 -0
  525. package/src/lib/sdks.ts +400 -0
  526. package/src/lib/security.ts +254 -0
  527. package/src/lib/url.ts +33 -0
  528. package/src/models/components/deployments.ts +1673 -0
  529. package/src/models/components/index.ts +6 -0
  530. package/src/models/components/security.ts +71 -0
  531. package/src/models/errors/apierror.ts +27 -0
  532. package/src/models/errors/honoapierror.ts +82 -0
  533. package/src/models/errors/httpclienterrors.ts +62 -0
  534. package/src/models/errors/index.ts +9 -0
  535. package/src/models/errors/sdkvalidationerror.ts +97 -0
  536. package/src/models/errors/updateprompt.ts +71 -0
  537. package/src/models/operations/bulkfileupload.ts +315 -0
  538. package/src/models/operations/createcontact.ts +256 -0
  539. package/src/models/operations/createfeedback.ts +286 -0
  540. package/src/models/operations/createprompt.ts +3461 -0
  541. package/src/models/operations/createpromptversion.ts +3703 -0
  542. package/src/models/operations/deleteprompt.ts +69 -0
  543. package/src/models/operations/deploymentcreatemetric.ts +1790 -0
  544. package/src/models/operations/deploymentgetconfig.ts +3483 -0
  545. package/src/models/operations/deploymentinvoke.ts +2385 -0
  546. package/src/models/operations/deployments.ts +2098 -0
  547. package/src/models/operations/duplicateprompt.ts +69 -0
  548. package/src/models/operations/filedelete.ts +78 -0
  549. package/src/models/operations/fileget.ts +222 -0
  550. package/src/models/operations/filelist.ts +333 -0
  551. package/src/models/operations/fileupdate.ts +298 -0
  552. package/src/models/operations/fileupload.ts +322 -0
  553. package/src/models/operations/findonepromptsnippet.ts +13629 -0
  554. package/src/models/operations/getallprompts.ts +18640 -0
  555. package/src/models/operations/getallprompttemplates.ts +13690 -0
  556. package/src/models/operations/getoneprompt.ts +69 -0
  557. package/src/models/operations/index.ts +26 -0
  558. package/src/models/operations/remoteconfigsgetconfig.ts +190 -0
  559. package/src/models/operations/updateprompt.ts +14407 -0
  560. package/src/sdk/contacts.ts +27 -0
  561. package/src/sdk/deployments.ts +75 -0
  562. package/src/sdk/feedback.ts +27 -0
  563. package/src/sdk/files.ts +105 -0
  564. package/src/sdk/index.ts +5 -0
  565. package/src/sdk/metrics.ts +27 -0
  566. package/src/sdk/prompt.ts +19 -0
  567. package/src/sdk/prompts.ts +114 -0
  568. package/src/sdk/remoteconfig.ts +24 -0
  569. package/src/sdk/sdk.ts +49 -0
  570. package/src/sdk/snippets.ts +24 -0
  571. package/src/sdk/templates.ts +24 -0
  572. package/src/types/blobs.ts +31 -0
  573. package/src/types/constdatetime.ts +15 -0
  574. package/src/types/enums.ts +16 -0
  575. package/src/types/fp.ts +50 -0
  576. package/src/types/index.ts +11 -0
  577. package/src/types/operations.ts +105 -0
  578. package/src/types/rfcdate.ts +54 -0
  579. package/src/types/streams.ts +21 -0
  580. package/types/blobs.d.ts +4 -0
  581. package/types/blobs.d.ts.map +1 -0
  582. package/types/blobs.js +62 -0
  583. package/types/blobs.js.map +1 -0
  584. package/types/constdatetime.d.ts +3 -0
  585. package/types/constdatetime.d.ts.map +1 -0
  586. package/types/constdatetime.js +46 -0
  587. package/types/constdatetime.js.map +1 -0
  588. package/types/enums.d.ts +12 -0
  589. package/types/enums.d.ts.map +1 -0
  590. package/types/enums.js +10 -0
  591. package/types/enums.js.map +1 -0
  592. package/types/fp.d.ts +31 -0
  593. package/types/fp.d.ts.map +1 -0
  594. package/types/fp.js +37 -0
  595. package/types/fp.js.map +1 -0
  596. package/types/index.d.ts +8 -0
  597. package/types/index.d.ts.map +1 -0
  598. package/types/index.js +16 -0
  599. package/types/index.js.map +1 -0
  600. package/types/operations.d.ts +27 -0
  601. package/types/operations.d.ts.map +1 -0
  602. package/types/operations.js +83 -0
  603. package/types/operations.js.map +1 -0
  604. package/types/rfcdate.d.ts +21 -0
  605. package/types/rfcdate.d.ts.map +1 -0
  606. package/types/rfcdate.js +46 -0
  607. package/types/rfcdate.js.map +1 -0
  608. package/types/streams.d.ts +2 -0
  609. package/types/streams.d.ts.map +1 -0
  610. package/types/streams.js +18 -0
  611. package/types/streams.js.map +1 -0
  612. package/src/index.d.ts +0 -3
  613. package/src/index.js +0 -7
  614. package/src/index.js.map +0 -1
  615. package/src/lib/api/contacts/index.d.ts +0 -9
  616. package/src/lib/api/contacts/index.js +0 -25
  617. package/src/lib/api/contacts/index.js.map +0 -1
  618. package/src/lib/api/deployments.d.ts +0 -45
  619. package/src/lib/api/deployments.js +0 -166
  620. package/src/lib/api/deployments.js.map +0 -1
  621. package/src/lib/api/feedback/feedback.d.ts +0 -20
  622. package/src/lib/api/feedback/feedback.js +0 -51
  623. package/src/lib/api/feedback/feedback.js.map +0 -1
  624. package/src/lib/api/feedback/index.d.ts +0 -1
  625. package/src/lib/api/feedback/index.js +0 -5
  626. package/src/lib/api/feedback/index.js.map +0 -1
  627. package/src/lib/api/index.d.ts +0 -1
  628. package/src/lib/api/index.js +0 -5
  629. package/src/lib/api/index.js.map +0 -1
  630. package/src/lib/api/webhooks/index.d.ts +0 -1
  631. package/src/lib/api/webhooks/index.js +0 -5
  632. package/src/lib/api/webhooks/index.js.map +0 -1
  633. package/src/lib/api/webhooks/webhooks.d.ts +0 -14
  634. package/src/lib/api/webhooks/webhooks.js +0 -40
  635. package/src/lib/api/webhooks/webhooks.js.map +0 -1
  636. package/src/lib/client.d.ts +0 -17
  637. package/src/lib/client.js +0 -47
  638. package/src/lib/client.js.map +0 -1
  639. package/src/lib/exceptions/index.d.ts +0 -9
  640. package/src/lib/exceptions/index.js +0 -31
  641. package/src/lib/exceptions/index.js.map +0 -1
  642. package/src/lib/http/index.d.ts +0 -7
  643. package/src/lib/http/index.js +0 -15
  644. package/src/lib/http/index.js.map +0 -1
  645. package/src/lib/models/contacts.d.ts +0 -8
  646. package/src/lib/models/contacts.js +0 -3
  647. package/src/lib/models/contacts.js.map +0 -1
  648. package/src/lib/models/deployments.d.ts +0 -167
  649. package/src/lib/models/deployments.js +0 -40
  650. package/src/lib/models/deployments.js.map +0 -1
  651. package/src/lib/models/feedback.models.d.ts +0 -23
  652. package/src/lib/models/feedback.models.js +0 -3
  653. package/src/lib/models/feedback.models.js.map +0 -1
  654. package/src/lib/models/index.d.ts +0 -6
  655. package/src/lib/models/index.js +0 -10
  656. package/src/lib/models/index.js.map +0 -1
  657. package/src/lib/models/options.d.ts +0 -13
  658. package/src/lib/models/options.js +0 -3
  659. package/src/lib/models/options.js.map +0 -1
  660. package/src/lib/models/user-info.d.ts +0 -3
  661. package/src/lib/models/user-info.js +0 -3
  662. package/src/lib/models/user-info.js.map +0 -1
  663. package/src/lib/models/webhooks.d.ts +0 -83
  664. package/src/lib/models/webhooks.js +0 -8
  665. package/src/lib/models/webhooks.js.map +0 -1
  666. package/src/lib/utils/index.d.ts +0 -6
  667. package/src/lib/utils/index.js +0 -51
  668. package/src/lib/utils/index.js.map +0 -1
  669. package/src/lib/version.d.ts +0 -1
  670. package/src/lib/version.js +0 -5
  671. package/src/lib/version.js.map +0 -1
@@ -0,0 +1,920 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export type Inputs = string | number | boolean;
6
+ /**
7
+ * The role of the prompt message
8
+ */
9
+ export declare const Role: {
10
+ readonly System: "system";
11
+ readonly Assistant: "assistant";
12
+ readonly User: "user";
13
+ readonly Exception: "exception";
14
+ readonly Tool: "tool";
15
+ readonly Prompt: "prompt";
16
+ readonly Correction: "correction";
17
+ readonly ExpectedOutput: "expected_output";
18
+ };
19
+ /**
20
+ * The role of the prompt message
21
+ */
22
+ export type Role = ClosedEnum<typeof Role>;
23
+ export declare const TwoType: {
24
+ readonly ImageUrl: "image_url";
25
+ };
26
+ export type TwoType = ClosedEnum<typeof TwoType>;
27
+ export type ImageUrl = {
28
+ /**
29
+ * Either a URL of the image or the base64 encoded data URI.
30
+ */
31
+ url: string;
32
+ /**
33
+ * Specifies the detail level of the image. Currently only supported with OpenAI models
34
+ */
35
+ detail?: string | undefined;
36
+ };
37
+ /**
38
+ * The image part of the prompt message. Only supported with vision models.
39
+ */
40
+ export type Two2 = {
41
+ type: TwoType;
42
+ imageUrl: ImageUrl;
43
+ };
44
+ export declare const Deployments2Type: {
45
+ readonly Text: "text";
46
+ };
47
+ export type Deployments2Type = ClosedEnum<typeof Deployments2Type>;
48
+ /**
49
+ * Text content part of a prompt message
50
+ */
51
+ export type One = {
52
+ type: Deployments2Type;
53
+ text: string;
54
+ };
55
+ export type Two = One | Two2;
56
+ /**
57
+ * 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.
58
+ */
59
+ export type Content = string | Array<One | Two2>;
60
+ export declare const Type: {
61
+ readonly Function: "function";
62
+ };
63
+ export type Type = ClosedEnum<typeof Type>;
64
+ export type FunctionT = {
65
+ name: string;
66
+ /**
67
+ * JSON string arguments for the functions
68
+ */
69
+ arguments: string;
70
+ };
71
+ export type ToolCalls = {
72
+ id?: string | undefined;
73
+ index?: number | undefined;
74
+ type: Type;
75
+ function: FunctionT;
76
+ };
77
+ export type PrefixMessages = {
78
+ /**
79
+ * The role of the prompt message
80
+ */
81
+ role: Role;
82
+ /**
83
+ * 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.
84
+ */
85
+ content: string | Array<One | Two2>;
86
+ toolCalls?: Array<ToolCalls> | undefined;
87
+ };
88
+ /**
89
+ * The role of the prompt message
90
+ */
91
+ export declare const DeploymentsRole: {
92
+ readonly System: "system";
93
+ readonly Assistant: "assistant";
94
+ readonly User: "user";
95
+ readonly Exception: "exception";
96
+ readonly Tool: "tool";
97
+ readonly Prompt: "prompt";
98
+ readonly Correction: "correction";
99
+ readonly ExpectedOutput: "expected_output";
100
+ };
101
+ /**
102
+ * The role of the prompt message
103
+ */
104
+ export type DeploymentsRole = ClosedEnum<typeof DeploymentsRole>;
105
+ export declare const Deployments2MessagesContentType: {
106
+ readonly ImageUrl: "image_url";
107
+ };
108
+ export type Deployments2MessagesContentType = ClosedEnum<typeof Deployments2MessagesContentType>;
109
+ export type TwoImageUrl = {
110
+ /**
111
+ * Either a URL of the image or the base64 encoded data URI.
112
+ */
113
+ url: string;
114
+ /**
115
+ * Specifies the detail level of the image. Currently only supported with OpenAI models
116
+ */
117
+ detail?: string | undefined;
118
+ };
119
+ /**
120
+ * The image part of the prompt message. Only supported with vision models.
121
+ */
122
+ export type Deployments22 = {
123
+ type: Deployments2MessagesContentType;
124
+ imageUrl: TwoImageUrl;
125
+ };
126
+ export declare const Deployments2MessagesType: {
127
+ readonly Text: "text";
128
+ };
129
+ export type Deployments2MessagesType = ClosedEnum<typeof Deployments2MessagesType>;
130
+ /**
131
+ * Text content part of a prompt message
132
+ */
133
+ export type Two1 = {
134
+ type: Deployments2MessagesType;
135
+ text: string;
136
+ };
137
+ export type Content2 = Two1 | Deployments22;
138
+ /**
139
+ * 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.
140
+ */
141
+ export type DeploymentsContent = string | Array<Two1 | Deployments22>;
142
+ export declare const DeploymentsType: {
143
+ readonly Function: "function";
144
+ };
145
+ export type DeploymentsType = ClosedEnum<typeof DeploymentsType>;
146
+ export type DeploymentsFunction = {
147
+ name: string;
148
+ /**
149
+ * JSON string arguments for the functions
150
+ */
151
+ arguments: string;
152
+ };
153
+ export type DeploymentsToolCalls = {
154
+ id?: string | undefined;
155
+ index?: number | undefined;
156
+ type: DeploymentsType;
157
+ function: DeploymentsFunction;
158
+ };
159
+ export type Messages = {
160
+ /**
161
+ * The role of the prompt message
162
+ */
163
+ role: DeploymentsRole;
164
+ /**
165
+ * 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.
166
+ */
167
+ content: string | Array<Two1 | Deployments22>;
168
+ toolCalls?: Array<DeploymentsToolCalls> | undefined;
169
+ };
170
+ /**
171
+ * Metadata about the document
172
+ */
173
+ export type Metadata = {
174
+ /**
175
+ * Name of the file the text is from.
176
+ */
177
+ fileName?: string | undefined;
178
+ /**
179
+ * Content type of the file the text is from.
180
+ */
181
+ fileType?: string | undefined;
182
+ /**
183
+ * The page number the text is from.
184
+ */
185
+ pageNumber?: number | undefined;
186
+ };
187
+ export type Documents = {
188
+ /**
189
+ * The text content of the document
190
+ */
191
+ text: string;
192
+ /**
193
+ * Metadata about the document
194
+ */
195
+ metadata?: Metadata | undefined;
196
+ };
197
+ export type InvokeOptions = {
198
+ /**
199
+ * Whether to include the retrieved knowledge chunks in the response.
200
+ */
201
+ includeRetrievals?: boolean | undefined;
202
+ };
203
+ /**
204
+ * The deployment request payload
205
+ */
206
+ export type Deployments = {
207
+ /**
208
+ * The deployment key to invoke
209
+ */
210
+ key: string;
211
+ /**
212
+ * If set, partial message content will be sent. Tokens will be sent as data-only `server-sent events` as they become available, with the stream terminated by a `data: [DONE]` message.
213
+ */
214
+ stream?: boolean | undefined;
215
+ /**
216
+ * Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
217
+ */
218
+ inputs?: {
219
+ [k: string]: string | number | boolean;
220
+ } | undefined;
221
+ /**
222
+ * Key-value pairs that match your data model and fields declared in your configuration matrix. If you send multiple prompt keys, the context will be applied to the evaluation of each key.
223
+ */
224
+ context?: {
225
+ [k: string]: any;
226
+ } | undefined;
227
+ /**
228
+ * A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
229
+ */
230
+ prefixMessages?: Array<PrefixMessages> | undefined;
231
+ /**
232
+ * A list of messages to send to the deployment.
233
+ */
234
+ messages?: Array<Messages> | undefined;
235
+ /**
236
+ * A list of file IDs that are associated with the deployment request.
237
+ */
238
+ fileIds?: Array<string> | undefined;
239
+ /**
240
+ * Key-value pairs that you want to attach to the log generated by this request.
241
+ */
242
+ metadata?: {
243
+ [k: string]: any;
244
+ } | undefined;
245
+ /**
246
+ * Utilized for passing additional parameters to the model provider. Exercise caution when using this feature, as the included parameters will overwrite any parameters specified in the deployment prompt configuration.
247
+ */
248
+ extraParams?: {
249
+ [k: string]: any;
250
+ } | undefined;
251
+ /**
252
+ * A list of relevant documents that evaluators and guardrails can cite to evaluate the user input or the model response based on your deployment settings.
253
+ */
254
+ documents?: Array<Documents> | undefined;
255
+ invokeOptions?: InvokeOptions | undefined;
256
+ };
257
+ /** @internal */
258
+ export declare const Inputs$inboundSchema: z.ZodType<Inputs, z.ZodTypeDef, unknown>;
259
+ /** @internal */
260
+ export type Inputs$Outbound = string | number | boolean;
261
+ /** @internal */
262
+ export declare const Inputs$outboundSchema: z.ZodType<Inputs$Outbound, z.ZodTypeDef, Inputs>;
263
+ /**
264
+ * @internal
265
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
266
+ */
267
+ export declare namespace Inputs$ {
268
+ /** @deprecated use `Inputs$inboundSchema` instead. */
269
+ const inboundSchema: z.ZodType<Inputs, z.ZodTypeDef, unknown>;
270
+ /** @deprecated use `Inputs$outboundSchema` instead. */
271
+ const outboundSchema: z.ZodType<Inputs$Outbound, z.ZodTypeDef, Inputs>;
272
+ /** @deprecated use `Inputs$Outbound` instead. */
273
+ type Outbound = Inputs$Outbound;
274
+ }
275
+ export declare function inputsToJSON(inputs: Inputs): string;
276
+ export declare function inputsFromJSON(jsonString: string): SafeParseResult<Inputs, SDKValidationError>;
277
+ /** @internal */
278
+ export declare const Role$inboundSchema: z.ZodNativeEnum<typeof Role>;
279
+ /** @internal */
280
+ export declare const Role$outboundSchema: z.ZodNativeEnum<typeof Role>;
281
+ /**
282
+ * @internal
283
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
284
+ */
285
+ export declare namespace Role$ {
286
+ /** @deprecated use `Role$inboundSchema` instead. */
287
+ const inboundSchema: z.ZodNativeEnum<{
288
+ readonly System: "system";
289
+ readonly Assistant: "assistant";
290
+ readonly User: "user";
291
+ readonly Exception: "exception";
292
+ readonly Tool: "tool";
293
+ readonly Prompt: "prompt";
294
+ readonly Correction: "correction";
295
+ readonly ExpectedOutput: "expected_output";
296
+ }>;
297
+ /** @deprecated use `Role$outboundSchema` instead. */
298
+ const outboundSchema: z.ZodNativeEnum<{
299
+ readonly System: "system";
300
+ readonly Assistant: "assistant";
301
+ readonly User: "user";
302
+ readonly Exception: "exception";
303
+ readonly Tool: "tool";
304
+ readonly Prompt: "prompt";
305
+ readonly Correction: "correction";
306
+ readonly ExpectedOutput: "expected_output";
307
+ }>;
308
+ }
309
+ /** @internal */
310
+ export declare const TwoType$inboundSchema: z.ZodNativeEnum<typeof TwoType>;
311
+ /** @internal */
312
+ export declare const TwoType$outboundSchema: z.ZodNativeEnum<typeof TwoType>;
313
+ /**
314
+ * @internal
315
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
316
+ */
317
+ export declare namespace TwoType$ {
318
+ /** @deprecated use `TwoType$inboundSchema` instead. */
319
+ const inboundSchema: z.ZodNativeEnum<{
320
+ readonly ImageUrl: "image_url";
321
+ }>;
322
+ /** @deprecated use `TwoType$outboundSchema` instead. */
323
+ const outboundSchema: z.ZodNativeEnum<{
324
+ readonly ImageUrl: "image_url";
325
+ }>;
326
+ }
327
+ /** @internal */
328
+ export declare const ImageUrl$inboundSchema: z.ZodType<ImageUrl, z.ZodTypeDef, unknown>;
329
+ /** @internal */
330
+ export type ImageUrl$Outbound = {
331
+ url: string;
332
+ detail?: string | undefined;
333
+ };
334
+ /** @internal */
335
+ export declare const ImageUrl$outboundSchema: z.ZodType<ImageUrl$Outbound, z.ZodTypeDef, ImageUrl>;
336
+ /**
337
+ * @internal
338
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
339
+ */
340
+ export declare namespace ImageUrl$ {
341
+ /** @deprecated use `ImageUrl$inboundSchema` instead. */
342
+ const inboundSchema: z.ZodType<ImageUrl, z.ZodTypeDef, unknown>;
343
+ /** @deprecated use `ImageUrl$outboundSchema` instead. */
344
+ const outboundSchema: z.ZodType<ImageUrl$Outbound, z.ZodTypeDef, ImageUrl>;
345
+ /** @deprecated use `ImageUrl$Outbound` instead. */
346
+ type Outbound = ImageUrl$Outbound;
347
+ }
348
+ export declare function imageUrlToJSON(imageUrl: ImageUrl): string;
349
+ export declare function imageUrlFromJSON(jsonString: string): SafeParseResult<ImageUrl, SDKValidationError>;
350
+ /** @internal */
351
+ export declare const Two2$inboundSchema: z.ZodType<Two2, z.ZodTypeDef, unknown>;
352
+ /** @internal */
353
+ export type Two2$Outbound = {
354
+ type: string;
355
+ image_url: ImageUrl$Outbound;
356
+ };
357
+ /** @internal */
358
+ export declare const Two2$outboundSchema: z.ZodType<Two2$Outbound, z.ZodTypeDef, Two2>;
359
+ /**
360
+ * @internal
361
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
362
+ */
363
+ export declare namespace Two2$ {
364
+ /** @deprecated use `Two2$inboundSchema` instead. */
365
+ const inboundSchema: z.ZodType<Two2, z.ZodTypeDef, unknown>;
366
+ /** @deprecated use `Two2$outboundSchema` instead. */
367
+ const outboundSchema: z.ZodType<Two2$Outbound, z.ZodTypeDef, Two2>;
368
+ /** @deprecated use `Two2$Outbound` instead. */
369
+ type Outbound = Two2$Outbound;
370
+ }
371
+ export declare function two2ToJSON(two2: Two2): string;
372
+ export declare function two2FromJSON(jsonString: string): SafeParseResult<Two2, SDKValidationError>;
373
+ /** @internal */
374
+ export declare const Deployments2Type$inboundSchema: z.ZodNativeEnum<typeof Deployments2Type>;
375
+ /** @internal */
376
+ export declare const Deployments2Type$outboundSchema: z.ZodNativeEnum<typeof Deployments2Type>;
377
+ /**
378
+ * @internal
379
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
380
+ */
381
+ export declare namespace Deployments2Type$ {
382
+ /** @deprecated use `Deployments2Type$inboundSchema` instead. */
383
+ const inboundSchema: z.ZodNativeEnum<{
384
+ readonly Text: "text";
385
+ }>;
386
+ /** @deprecated use `Deployments2Type$outboundSchema` instead. */
387
+ const outboundSchema: z.ZodNativeEnum<{
388
+ readonly Text: "text";
389
+ }>;
390
+ }
391
+ /** @internal */
392
+ export declare const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown>;
393
+ /** @internal */
394
+ export type One$Outbound = {
395
+ type: string;
396
+ text: string;
397
+ };
398
+ /** @internal */
399
+ export declare const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One>;
400
+ /**
401
+ * @internal
402
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
403
+ */
404
+ export declare namespace One$ {
405
+ /** @deprecated use `One$inboundSchema` instead. */
406
+ const inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown>;
407
+ /** @deprecated use `One$outboundSchema` instead. */
408
+ const outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One>;
409
+ /** @deprecated use `One$Outbound` instead. */
410
+ type Outbound = One$Outbound;
411
+ }
412
+ export declare function oneToJSON(one: One): string;
413
+ export declare function oneFromJSON(jsonString: string): SafeParseResult<One, SDKValidationError>;
414
+ /** @internal */
415
+ export declare const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown>;
416
+ /** @internal */
417
+ export type Two$Outbound = One$Outbound | Two2$Outbound;
418
+ /** @internal */
419
+ export declare const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two>;
420
+ /**
421
+ * @internal
422
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
423
+ */
424
+ export declare namespace Two$ {
425
+ /** @deprecated use `Two$inboundSchema` instead. */
426
+ const inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown>;
427
+ /** @deprecated use `Two$outboundSchema` instead. */
428
+ const outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two>;
429
+ /** @deprecated use `Two$Outbound` instead. */
430
+ type Outbound = Two$Outbound;
431
+ }
432
+ export declare function twoToJSON(two: Two): string;
433
+ export declare function twoFromJSON(jsonString: string): SafeParseResult<Two, SDKValidationError>;
434
+ /** @internal */
435
+ export declare const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown>;
436
+ /** @internal */
437
+ export type Content$Outbound = string | Array<One$Outbound | Two2$Outbound>;
438
+ /** @internal */
439
+ export declare const Content$outboundSchema: z.ZodType<Content$Outbound, z.ZodTypeDef, Content>;
440
+ /**
441
+ * @internal
442
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
443
+ */
444
+ export declare namespace Content$ {
445
+ /** @deprecated use `Content$inboundSchema` instead. */
446
+ const inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown>;
447
+ /** @deprecated use `Content$outboundSchema` instead. */
448
+ const outboundSchema: z.ZodType<Content$Outbound, z.ZodTypeDef, Content>;
449
+ /** @deprecated use `Content$Outbound` instead. */
450
+ type Outbound = Content$Outbound;
451
+ }
452
+ export declare function contentToJSON(content: Content): string;
453
+ export declare function contentFromJSON(jsonString: string): SafeParseResult<Content, SDKValidationError>;
454
+ /** @internal */
455
+ export declare const Type$inboundSchema: z.ZodNativeEnum<typeof Type>;
456
+ /** @internal */
457
+ export declare const Type$outboundSchema: z.ZodNativeEnum<typeof Type>;
458
+ /**
459
+ * @internal
460
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
461
+ */
462
+ export declare namespace Type$ {
463
+ /** @deprecated use `Type$inboundSchema` instead. */
464
+ const inboundSchema: z.ZodNativeEnum<{
465
+ readonly Function: "function";
466
+ }>;
467
+ /** @deprecated use `Type$outboundSchema` instead. */
468
+ const outboundSchema: z.ZodNativeEnum<{
469
+ readonly Function: "function";
470
+ }>;
471
+ }
472
+ /** @internal */
473
+ export declare const FunctionT$inboundSchema: z.ZodType<FunctionT, z.ZodTypeDef, unknown>;
474
+ /** @internal */
475
+ export type FunctionT$Outbound = {
476
+ name: string;
477
+ arguments: string;
478
+ };
479
+ /** @internal */
480
+ export declare const FunctionT$outboundSchema: z.ZodType<FunctionT$Outbound, z.ZodTypeDef, FunctionT>;
481
+ /**
482
+ * @internal
483
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
484
+ */
485
+ export declare namespace FunctionT$ {
486
+ /** @deprecated use `FunctionT$inboundSchema` instead. */
487
+ const inboundSchema: z.ZodType<FunctionT, z.ZodTypeDef, unknown>;
488
+ /** @deprecated use `FunctionT$outboundSchema` instead. */
489
+ const outboundSchema: z.ZodType<FunctionT$Outbound, z.ZodTypeDef, FunctionT>;
490
+ /** @deprecated use `FunctionT$Outbound` instead. */
491
+ type Outbound = FunctionT$Outbound;
492
+ }
493
+ export declare function functionToJSON(functionT: FunctionT): string;
494
+ export declare function functionFromJSON(jsonString: string): SafeParseResult<FunctionT, SDKValidationError>;
495
+ /** @internal */
496
+ export declare const ToolCalls$inboundSchema: z.ZodType<ToolCalls, z.ZodTypeDef, unknown>;
497
+ /** @internal */
498
+ export type ToolCalls$Outbound = {
499
+ id?: string | undefined;
500
+ index?: number | undefined;
501
+ type: string;
502
+ function: FunctionT$Outbound;
503
+ };
504
+ /** @internal */
505
+ export declare const ToolCalls$outboundSchema: z.ZodType<ToolCalls$Outbound, z.ZodTypeDef, ToolCalls>;
506
+ /**
507
+ * @internal
508
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
509
+ */
510
+ export declare namespace ToolCalls$ {
511
+ /** @deprecated use `ToolCalls$inboundSchema` instead. */
512
+ const inboundSchema: z.ZodType<ToolCalls, z.ZodTypeDef, unknown>;
513
+ /** @deprecated use `ToolCalls$outboundSchema` instead. */
514
+ const outboundSchema: z.ZodType<ToolCalls$Outbound, z.ZodTypeDef, ToolCalls>;
515
+ /** @deprecated use `ToolCalls$Outbound` instead. */
516
+ type Outbound = ToolCalls$Outbound;
517
+ }
518
+ export declare function toolCallsToJSON(toolCalls: ToolCalls): string;
519
+ export declare function toolCallsFromJSON(jsonString: string): SafeParseResult<ToolCalls, SDKValidationError>;
520
+ /** @internal */
521
+ export declare const PrefixMessages$inboundSchema: z.ZodType<PrefixMessages, z.ZodTypeDef, unknown>;
522
+ /** @internal */
523
+ export type PrefixMessages$Outbound = {
524
+ role: string;
525
+ content: string | Array<One$Outbound | Two2$Outbound>;
526
+ tool_calls?: Array<ToolCalls$Outbound> | undefined;
527
+ };
528
+ /** @internal */
529
+ export declare const PrefixMessages$outboundSchema: z.ZodType<PrefixMessages$Outbound, z.ZodTypeDef, PrefixMessages>;
530
+ /**
531
+ * @internal
532
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
533
+ */
534
+ export declare namespace PrefixMessages$ {
535
+ /** @deprecated use `PrefixMessages$inboundSchema` instead. */
536
+ const inboundSchema: z.ZodType<PrefixMessages, z.ZodTypeDef, unknown>;
537
+ /** @deprecated use `PrefixMessages$outboundSchema` instead. */
538
+ const outboundSchema: z.ZodType<PrefixMessages$Outbound, z.ZodTypeDef, PrefixMessages>;
539
+ /** @deprecated use `PrefixMessages$Outbound` instead. */
540
+ type Outbound = PrefixMessages$Outbound;
541
+ }
542
+ export declare function prefixMessagesToJSON(prefixMessages: PrefixMessages): string;
543
+ export declare function prefixMessagesFromJSON(jsonString: string): SafeParseResult<PrefixMessages, SDKValidationError>;
544
+ /** @internal */
545
+ export declare const DeploymentsRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentsRole>;
546
+ /** @internal */
547
+ export declare const DeploymentsRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentsRole>;
548
+ /**
549
+ * @internal
550
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
551
+ */
552
+ export declare namespace DeploymentsRole$ {
553
+ /** @deprecated use `DeploymentsRole$inboundSchema` instead. */
554
+ const inboundSchema: z.ZodNativeEnum<{
555
+ readonly System: "system";
556
+ readonly Assistant: "assistant";
557
+ readonly User: "user";
558
+ readonly Exception: "exception";
559
+ readonly Tool: "tool";
560
+ readonly Prompt: "prompt";
561
+ readonly Correction: "correction";
562
+ readonly ExpectedOutput: "expected_output";
563
+ }>;
564
+ /** @deprecated use `DeploymentsRole$outboundSchema` instead. */
565
+ const outboundSchema: z.ZodNativeEnum<{
566
+ readonly System: "system";
567
+ readonly Assistant: "assistant";
568
+ readonly User: "user";
569
+ readonly Exception: "exception";
570
+ readonly Tool: "tool";
571
+ readonly Prompt: "prompt";
572
+ readonly Correction: "correction";
573
+ readonly ExpectedOutput: "expected_output";
574
+ }>;
575
+ }
576
+ /** @internal */
577
+ export declare const Deployments2MessagesContentType$inboundSchema: z.ZodNativeEnum<typeof Deployments2MessagesContentType>;
578
+ /** @internal */
579
+ export declare const Deployments2MessagesContentType$outboundSchema: z.ZodNativeEnum<typeof Deployments2MessagesContentType>;
580
+ /**
581
+ * @internal
582
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
583
+ */
584
+ export declare namespace Deployments2MessagesContentType$ {
585
+ /** @deprecated use `Deployments2MessagesContentType$inboundSchema` instead. */
586
+ const inboundSchema: z.ZodNativeEnum<{
587
+ readonly ImageUrl: "image_url";
588
+ }>;
589
+ /** @deprecated use `Deployments2MessagesContentType$outboundSchema` instead. */
590
+ const outboundSchema: z.ZodNativeEnum<{
591
+ readonly ImageUrl: "image_url";
592
+ }>;
593
+ }
594
+ /** @internal */
595
+ export declare const TwoImageUrl$inboundSchema: z.ZodType<TwoImageUrl, z.ZodTypeDef, unknown>;
596
+ /** @internal */
597
+ export type TwoImageUrl$Outbound = {
598
+ url: string;
599
+ detail?: string | undefined;
600
+ };
601
+ /** @internal */
602
+ export declare const TwoImageUrl$outboundSchema: z.ZodType<TwoImageUrl$Outbound, z.ZodTypeDef, TwoImageUrl>;
603
+ /**
604
+ * @internal
605
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
606
+ */
607
+ export declare namespace TwoImageUrl$ {
608
+ /** @deprecated use `TwoImageUrl$inboundSchema` instead. */
609
+ const inboundSchema: z.ZodType<TwoImageUrl, z.ZodTypeDef, unknown>;
610
+ /** @deprecated use `TwoImageUrl$outboundSchema` instead. */
611
+ const outboundSchema: z.ZodType<TwoImageUrl$Outbound, z.ZodTypeDef, TwoImageUrl>;
612
+ /** @deprecated use `TwoImageUrl$Outbound` instead. */
613
+ type Outbound = TwoImageUrl$Outbound;
614
+ }
615
+ export declare function twoImageUrlToJSON(twoImageUrl: TwoImageUrl): string;
616
+ export declare function twoImageUrlFromJSON(jsonString: string): SafeParseResult<TwoImageUrl, SDKValidationError>;
617
+ /** @internal */
618
+ export declare const Deployments22$inboundSchema: z.ZodType<Deployments22, z.ZodTypeDef, unknown>;
619
+ /** @internal */
620
+ export type Deployments22$Outbound = {
621
+ type: string;
622
+ image_url: TwoImageUrl$Outbound;
623
+ };
624
+ /** @internal */
625
+ export declare const Deployments22$outboundSchema: z.ZodType<Deployments22$Outbound, z.ZodTypeDef, Deployments22>;
626
+ /**
627
+ * @internal
628
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
629
+ */
630
+ export declare namespace Deployments22$ {
631
+ /** @deprecated use `Deployments22$inboundSchema` instead. */
632
+ const inboundSchema: z.ZodType<Deployments22, z.ZodTypeDef, unknown>;
633
+ /** @deprecated use `Deployments22$outboundSchema` instead. */
634
+ const outboundSchema: z.ZodType<Deployments22$Outbound, z.ZodTypeDef, Deployments22>;
635
+ /** @deprecated use `Deployments22$Outbound` instead. */
636
+ type Outbound = Deployments22$Outbound;
637
+ }
638
+ export declare function deployments22ToJSON(deployments22: Deployments22): string;
639
+ export declare function deployments22FromJSON(jsonString: string): SafeParseResult<Deployments22, SDKValidationError>;
640
+ /** @internal */
641
+ export declare const Deployments2MessagesType$inboundSchema: z.ZodNativeEnum<typeof Deployments2MessagesType>;
642
+ /** @internal */
643
+ export declare const Deployments2MessagesType$outboundSchema: z.ZodNativeEnum<typeof Deployments2MessagesType>;
644
+ /**
645
+ * @internal
646
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
647
+ */
648
+ export declare namespace Deployments2MessagesType$ {
649
+ /** @deprecated use `Deployments2MessagesType$inboundSchema` instead. */
650
+ const inboundSchema: z.ZodNativeEnum<{
651
+ readonly Text: "text";
652
+ }>;
653
+ /** @deprecated use `Deployments2MessagesType$outboundSchema` instead. */
654
+ const outboundSchema: z.ZodNativeEnum<{
655
+ readonly Text: "text";
656
+ }>;
657
+ }
658
+ /** @internal */
659
+ export declare const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown>;
660
+ /** @internal */
661
+ export type Two1$Outbound = {
662
+ type: string;
663
+ text: string;
664
+ };
665
+ /** @internal */
666
+ export declare const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1>;
667
+ /**
668
+ * @internal
669
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
670
+ */
671
+ export declare namespace Two1$ {
672
+ /** @deprecated use `Two1$inboundSchema` instead. */
673
+ const inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown>;
674
+ /** @deprecated use `Two1$outboundSchema` instead. */
675
+ const outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1>;
676
+ /** @deprecated use `Two1$Outbound` instead. */
677
+ type Outbound = Two1$Outbound;
678
+ }
679
+ export declare function two1ToJSON(two1: Two1): string;
680
+ export declare function two1FromJSON(jsonString: string): SafeParseResult<Two1, SDKValidationError>;
681
+ /** @internal */
682
+ export declare const Content2$inboundSchema: z.ZodType<Content2, z.ZodTypeDef, unknown>;
683
+ /** @internal */
684
+ export type Content2$Outbound = Two1$Outbound | Deployments22$Outbound;
685
+ /** @internal */
686
+ export declare const Content2$outboundSchema: z.ZodType<Content2$Outbound, z.ZodTypeDef, Content2>;
687
+ /**
688
+ * @internal
689
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
690
+ */
691
+ export declare namespace Content2$ {
692
+ /** @deprecated use `Content2$inboundSchema` instead. */
693
+ const inboundSchema: z.ZodType<Content2, z.ZodTypeDef, unknown>;
694
+ /** @deprecated use `Content2$outboundSchema` instead. */
695
+ const outboundSchema: z.ZodType<Content2$Outbound, z.ZodTypeDef, Content2>;
696
+ /** @deprecated use `Content2$Outbound` instead. */
697
+ type Outbound = Content2$Outbound;
698
+ }
699
+ export declare function content2ToJSON(content2: Content2): string;
700
+ export declare function content2FromJSON(jsonString: string): SafeParseResult<Content2, SDKValidationError>;
701
+ /** @internal */
702
+ export declare const DeploymentsContent$inboundSchema: z.ZodType<DeploymentsContent, z.ZodTypeDef, unknown>;
703
+ /** @internal */
704
+ export type DeploymentsContent$Outbound = string | Array<Two1$Outbound | Deployments22$Outbound>;
705
+ /** @internal */
706
+ export declare const DeploymentsContent$outboundSchema: z.ZodType<DeploymentsContent$Outbound, z.ZodTypeDef, DeploymentsContent>;
707
+ /**
708
+ * @internal
709
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
710
+ */
711
+ export declare namespace DeploymentsContent$ {
712
+ /** @deprecated use `DeploymentsContent$inboundSchema` instead. */
713
+ const inboundSchema: z.ZodType<DeploymentsContent, z.ZodTypeDef, unknown>;
714
+ /** @deprecated use `DeploymentsContent$outboundSchema` instead. */
715
+ const outboundSchema: z.ZodType<DeploymentsContent$Outbound, z.ZodTypeDef, DeploymentsContent>;
716
+ /** @deprecated use `DeploymentsContent$Outbound` instead. */
717
+ type Outbound = DeploymentsContent$Outbound;
718
+ }
719
+ export declare function deploymentsContentToJSON(deploymentsContent: DeploymentsContent): string;
720
+ export declare function deploymentsContentFromJSON(jsonString: string): SafeParseResult<DeploymentsContent, SDKValidationError>;
721
+ /** @internal */
722
+ export declare const DeploymentsType$inboundSchema: z.ZodNativeEnum<typeof DeploymentsType>;
723
+ /** @internal */
724
+ export declare const DeploymentsType$outboundSchema: z.ZodNativeEnum<typeof DeploymentsType>;
725
+ /**
726
+ * @internal
727
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
728
+ */
729
+ export declare namespace DeploymentsType$ {
730
+ /** @deprecated use `DeploymentsType$inboundSchema` instead. */
731
+ const inboundSchema: z.ZodNativeEnum<{
732
+ readonly Function: "function";
733
+ }>;
734
+ /** @deprecated use `DeploymentsType$outboundSchema` instead. */
735
+ const outboundSchema: z.ZodNativeEnum<{
736
+ readonly Function: "function";
737
+ }>;
738
+ }
739
+ /** @internal */
740
+ export declare const DeploymentsFunction$inboundSchema: z.ZodType<DeploymentsFunction, z.ZodTypeDef, unknown>;
741
+ /** @internal */
742
+ export type DeploymentsFunction$Outbound = {
743
+ name: string;
744
+ arguments: string;
745
+ };
746
+ /** @internal */
747
+ export declare const DeploymentsFunction$outboundSchema: z.ZodType<DeploymentsFunction$Outbound, z.ZodTypeDef, DeploymentsFunction>;
748
+ /**
749
+ * @internal
750
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
751
+ */
752
+ export declare namespace DeploymentsFunction$ {
753
+ /** @deprecated use `DeploymentsFunction$inboundSchema` instead. */
754
+ const inboundSchema: z.ZodType<DeploymentsFunction, z.ZodTypeDef, unknown>;
755
+ /** @deprecated use `DeploymentsFunction$outboundSchema` instead. */
756
+ const outboundSchema: z.ZodType<DeploymentsFunction$Outbound, z.ZodTypeDef, DeploymentsFunction>;
757
+ /** @deprecated use `DeploymentsFunction$Outbound` instead. */
758
+ type Outbound = DeploymentsFunction$Outbound;
759
+ }
760
+ export declare function deploymentsFunctionToJSON(deploymentsFunction: DeploymentsFunction): string;
761
+ export declare function deploymentsFunctionFromJSON(jsonString: string): SafeParseResult<DeploymentsFunction, SDKValidationError>;
762
+ /** @internal */
763
+ export declare const DeploymentsToolCalls$inboundSchema: z.ZodType<DeploymentsToolCalls, z.ZodTypeDef, unknown>;
764
+ /** @internal */
765
+ export type DeploymentsToolCalls$Outbound = {
766
+ id?: string | undefined;
767
+ index?: number | undefined;
768
+ type: string;
769
+ function: DeploymentsFunction$Outbound;
770
+ };
771
+ /** @internal */
772
+ export declare const DeploymentsToolCalls$outboundSchema: z.ZodType<DeploymentsToolCalls$Outbound, z.ZodTypeDef, DeploymentsToolCalls>;
773
+ /**
774
+ * @internal
775
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
776
+ */
777
+ export declare namespace DeploymentsToolCalls$ {
778
+ /** @deprecated use `DeploymentsToolCalls$inboundSchema` instead. */
779
+ const inboundSchema: z.ZodType<DeploymentsToolCalls, z.ZodTypeDef, unknown>;
780
+ /** @deprecated use `DeploymentsToolCalls$outboundSchema` instead. */
781
+ const outboundSchema: z.ZodType<DeploymentsToolCalls$Outbound, z.ZodTypeDef, DeploymentsToolCalls>;
782
+ /** @deprecated use `DeploymentsToolCalls$Outbound` instead. */
783
+ type Outbound = DeploymentsToolCalls$Outbound;
784
+ }
785
+ export declare function deploymentsToolCallsToJSON(deploymentsToolCalls: DeploymentsToolCalls): string;
786
+ export declare function deploymentsToolCallsFromJSON(jsonString: string): SafeParseResult<DeploymentsToolCalls, SDKValidationError>;
787
+ /** @internal */
788
+ export declare const Messages$inboundSchema: z.ZodType<Messages, z.ZodTypeDef, unknown>;
789
+ /** @internal */
790
+ export type Messages$Outbound = {
791
+ role: string;
792
+ content: string | Array<Two1$Outbound | Deployments22$Outbound>;
793
+ tool_calls?: Array<DeploymentsToolCalls$Outbound> | undefined;
794
+ };
795
+ /** @internal */
796
+ export declare const Messages$outboundSchema: z.ZodType<Messages$Outbound, z.ZodTypeDef, Messages>;
797
+ /**
798
+ * @internal
799
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
800
+ */
801
+ export declare namespace Messages$ {
802
+ /** @deprecated use `Messages$inboundSchema` instead. */
803
+ const inboundSchema: z.ZodType<Messages, z.ZodTypeDef, unknown>;
804
+ /** @deprecated use `Messages$outboundSchema` instead. */
805
+ const outboundSchema: z.ZodType<Messages$Outbound, z.ZodTypeDef, Messages>;
806
+ /** @deprecated use `Messages$Outbound` instead. */
807
+ type Outbound = Messages$Outbound;
808
+ }
809
+ export declare function messagesToJSON(messages: Messages): string;
810
+ export declare function messagesFromJSON(jsonString: string): SafeParseResult<Messages, SDKValidationError>;
811
+ /** @internal */
812
+ export declare const Metadata$inboundSchema: z.ZodType<Metadata, z.ZodTypeDef, unknown>;
813
+ /** @internal */
814
+ export type Metadata$Outbound = {
815
+ file_name?: string | undefined;
816
+ file_type?: string | undefined;
817
+ page_number?: number | undefined;
818
+ };
819
+ /** @internal */
820
+ export declare const Metadata$outboundSchema: z.ZodType<Metadata$Outbound, z.ZodTypeDef, Metadata>;
821
+ /**
822
+ * @internal
823
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
824
+ */
825
+ export declare namespace Metadata$ {
826
+ /** @deprecated use `Metadata$inboundSchema` instead. */
827
+ const inboundSchema: z.ZodType<Metadata, z.ZodTypeDef, unknown>;
828
+ /** @deprecated use `Metadata$outboundSchema` instead. */
829
+ const outboundSchema: z.ZodType<Metadata$Outbound, z.ZodTypeDef, Metadata>;
830
+ /** @deprecated use `Metadata$Outbound` instead. */
831
+ type Outbound = Metadata$Outbound;
832
+ }
833
+ export declare function metadataToJSON(metadata: Metadata): string;
834
+ export declare function metadataFromJSON(jsonString: string): SafeParseResult<Metadata, SDKValidationError>;
835
+ /** @internal */
836
+ export declare const Documents$inboundSchema: z.ZodType<Documents, z.ZodTypeDef, unknown>;
837
+ /** @internal */
838
+ export type Documents$Outbound = {
839
+ text: string;
840
+ metadata?: Metadata$Outbound | undefined;
841
+ };
842
+ /** @internal */
843
+ export declare const Documents$outboundSchema: z.ZodType<Documents$Outbound, z.ZodTypeDef, Documents>;
844
+ /**
845
+ * @internal
846
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
847
+ */
848
+ export declare namespace Documents$ {
849
+ /** @deprecated use `Documents$inboundSchema` instead. */
850
+ const inboundSchema: z.ZodType<Documents, z.ZodTypeDef, unknown>;
851
+ /** @deprecated use `Documents$outboundSchema` instead. */
852
+ const outboundSchema: z.ZodType<Documents$Outbound, z.ZodTypeDef, Documents>;
853
+ /** @deprecated use `Documents$Outbound` instead. */
854
+ type Outbound = Documents$Outbound;
855
+ }
856
+ export declare function documentsToJSON(documents: Documents): string;
857
+ export declare function documentsFromJSON(jsonString: string): SafeParseResult<Documents, SDKValidationError>;
858
+ /** @internal */
859
+ export declare const InvokeOptions$inboundSchema: z.ZodType<InvokeOptions, z.ZodTypeDef, unknown>;
860
+ /** @internal */
861
+ export type InvokeOptions$Outbound = {
862
+ include_retrievals: boolean;
863
+ };
864
+ /** @internal */
865
+ export declare const InvokeOptions$outboundSchema: z.ZodType<InvokeOptions$Outbound, z.ZodTypeDef, InvokeOptions>;
866
+ /**
867
+ * @internal
868
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
869
+ */
870
+ export declare namespace InvokeOptions$ {
871
+ /** @deprecated use `InvokeOptions$inboundSchema` instead. */
872
+ const inboundSchema: z.ZodType<InvokeOptions, z.ZodTypeDef, unknown>;
873
+ /** @deprecated use `InvokeOptions$outboundSchema` instead. */
874
+ const outboundSchema: z.ZodType<InvokeOptions$Outbound, z.ZodTypeDef, InvokeOptions>;
875
+ /** @deprecated use `InvokeOptions$Outbound` instead. */
876
+ type Outbound = InvokeOptions$Outbound;
877
+ }
878
+ export declare function invokeOptionsToJSON(invokeOptions: InvokeOptions): string;
879
+ export declare function invokeOptionsFromJSON(jsonString: string): SafeParseResult<InvokeOptions, SDKValidationError>;
880
+ /** @internal */
881
+ export declare const Deployments$inboundSchema: z.ZodType<Deployments, z.ZodTypeDef, unknown>;
882
+ /** @internal */
883
+ export type Deployments$Outbound = {
884
+ key: string;
885
+ stream: boolean;
886
+ inputs?: {
887
+ [k: string]: string | number | boolean;
888
+ } | undefined;
889
+ context?: {
890
+ [k: string]: any;
891
+ } | undefined;
892
+ prefix_messages?: Array<PrefixMessages$Outbound> | undefined;
893
+ messages?: Array<Messages$Outbound> | undefined;
894
+ file_ids?: Array<string> | undefined;
895
+ metadata?: {
896
+ [k: string]: any;
897
+ } | undefined;
898
+ extra_params?: {
899
+ [k: string]: any;
900
+ } | undefined;
901
+ documents?: Array<Documents$Outbound> | undefined;
902
+ invoke_options?: InvokeOptions$Outbound | undefined;
903
+ };
904
+ /** @internal */
905
+ export declare const Deployments$outboundSchema: z.ZodType<Deployments$Outbound, z.ZodTypeDef, Deployments>;
906
+ /**
907
+ * @internal
908
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
909
+ */
910
+ export declare namespace Deployments$ {
911
+ /** @deprecated use `Deployments$inboundSchema` instead. */
912
+ const inboundSchema: z.ZodType<Deployments, z.ZodTypeDef, unknown>;
913
+ /** @deprecated use `Deployments$outboundSchema` instead. */
914
+ const outboundSchema: z.ZodType<Deployments$Outbound, z.ZodTypeDef, Deployments>;
915
+ /** @deprecated use `Deployments$Outbound` instead. */
916
+ type Outbound = Deployments$Outbound;
917
+ }
918
+ export declare function deploymentsToJSON(deployments: Deployments): string;
919
+ export declare function deploymentsFromJSON(jsonString: string): SafeParseResult<Deployments, SDKValidationError>;
920
+ //# sourceMappingURL=deployments.d.ts.map