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