@epilot/sdk 2.1.0-rc.1 → 2.1.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 (637) hide show
  1. package/README.md +24 -0
  2. package/definitions/app.json +38 -0
  3. package/definitions/automation.json +2 -37
  4. package/definitions/blueprint-manifest-runtime.json +1 -1
  5. package/definitions/blueprint-manifest.json +115 -1
  6. package/definitions/customer-portal-runtime.json +1 -1
  7. package/definitions/customer-portal.json +279 -42
  8. package/definitions/data-management.json +10 -0
  9. package/definitions/email-template.json +25 -3
  10. package/definitions/entity.json +205 -3
  11. package/definitions/environments-runtime.json +1 -1
  12. package/definitions/erp-integration-runtime.json +1 -1
  13. package/definitions/erp-integration.json +472 -13
  14. package/definitions/journey.json +257 -12
  15. package/definitions/kanban.json +630 -78
  16. package/definitions/organization-runtime.json +1 -1
  17. package/definitions/organization.json +614 -51
  18. package/definitions/workflow.json +40 -0
  19. package/dist/README-6OOYWQYJ.cjs +7 -0
  20. package/dist/README-JUWX7KNV.js +7 -0
  21. package/dist/_index-NWNYWBIF.js +146 -0
  22. package/dist/_index-ONGE545F.cjs +146 -0
  23. package/dist/access-token-2O6ULCCN.js +633 -0
  24. package/dist/access-token-6BJDZSFE.cjs +7 -0
  25. package/dist/access-token-GSQZLDXR.js +7 -0
  26. package/dist/access-token-RKP2A2F7.cjs +633 -0
  27. package/dist/access-token-runtime-KCKGT4O7.js +5 -0
  28. package/dist/access-token-runtime-NZWZJPWV.cjs +5 -0
  29. package/dist/address-HA4RMRNQ.cjs +7 -0
  30. package/dist/address-HLBX47SQ.cjs +567 -0
  31. package/dist/address-IJF4N2UV.js +567 -0
  32. package/dist/address-QVJUGMOG.js +7 -0
  33. package/dist/address-runtime-2MNO2YRD.cjs +5 -0
  34. package/dist/address-runtime-YFCNBJBW.js +5 -0
  35. package/dist/address-suggestions-74244BAJ.js +7 -0
  36. package/dist/address-suggestions-BYUTV7OU.js +574 -0
  37. package/dist/address-suggestions-ERVGGO6Z.cjs +574 -0
  38. package/dist/address-suggestions-IUQMYF27.cjs +7 -0
  39. package/dist/address-suggestions-runtime-NIMC2J32.js +5 -0
  40. package/dist/address-suggestions-runtime-ZNGLDADE.cjs +5 -0
  41. package/dist/ai-agents-6VHVYRCC.cjs +1612 -0
  42. package/dist/ai-agents-IZWFEUSH.js +7 -0
  43. package/dist/ai-agents-PKCHKKJS.js +1612 -0
  44. package/dist/ai-agents-PWHKNRCX.cjs +7 -0
  45. package/dist/ai-agents-runtime-25YRUJHI.js +5 -0
  46. package/dist/ai-agents-runtime-TILIO3UM.cjs +5 -0
  47. package/dist/apis/access-token.cjs +10 -8
  48. package/dist/apis/access-token.d.cts +2 -2
  49. package/dist/apis/access-token.d.ts +2 -2
  50. package/dist/apis/access-token.js +6 -4
  51. package/dist/apis/address-suggestions.cjs +10 -8
  52. package/dist/apis/address-suggestions.d.cts +2 -2
  53. package/dist/apis/address-suggestions.d.ts +2 -2
  54. package/dist/apis/address-suggestions.js +6 -4
  55. package/dist/apis/address.cjs +10 -8
  56. package/dist/apis/address.d.cts +2 -2
  57. package/dist/apis/address.d.ts +2 -2
  58. package/dist/apis/address.js +6 -4
  59. package/dist/apis/ai-agents.cjs +10 -8
  60. package/dist/apis/ai-agents.d.cts +2 -2
  61. package/dist/apis/ai-agents.d.ts +2 -2
  62. package/dist/apis/ai-agents.js +6 -4
  63. package/dist/apis/app.cjs +10 -8
  64. package/dist/apis/app.d.cts +2 -2
  65. package/dist/apis/app.d.ts +2 -2
  66. package/dist/apis/app.js +6 -4
  67. package/dist/apis/audit-logs.cjs +10 -8
  68. package/dist/apis/audit-logs.d.cts +2 -2
  69. package/dist/apis/audit-logs.d.ts +2 -2
  70. package/dist/apis/audit-logs.js +6 -4
  71. package/dist/apis/automation.cjs +10 -8
  72. package/dist/apis/automation.d.cts +2 -2
  73. package/dist/apis/automation.d.ts +2 -2
  74. package/dist/apis/automation.js +6 -4
  75. package/dist/apis/billing.cjs +10 -8
  76. package/dist/apis/billing.d.cts +2 -2
  77. package/dist/apis/billing.d.ts +2 -2
  78. package/dist/apis/billing.js +6 -4
  79. package/dist/apis/blueprint-manifest.cjs +10 -8
  80. package/dist/apis/blueprint-manifest.d.cts +2 -2
  81. package/dist/apis/blueprint-manifest.d.ts +2 -2
  82. package/dist/apis/blueprint-manifest.js +6 -4
  83. package/dist/apis/consent.cjs +10 -8
  84. package/dist/apis/consent.d.cts +2 -2
  85. package/dist/apis/consent.d.ts +2 -2
  86. package/dist/apis/consent.js +6 -4
  87. package/dist/apis/customer-portal.cjs +10 -8
  88. package/dist/apis/customer-portal.d.cts +2 -2
  89. package/dist/apis/customer-portal.d.ts +2 -2
  90. package/dist/apis/customer-portal.js +6 -4
  91. package/dist/apis/dashboard.cjs +10 -8
  92. package/dist/apis/dashboard.d.cts +2 -2
  93. package/dist/apis/dashboard.d.ts +2 -2
  94. package/dist/apis/dashboard.js +6 -4
  95. package/dist/apis/data-management.cjs +10 -8
  96. package/dist/apis/data-management.d.cts +2 -2
  97. package/dist/apis/data-management.d.ts +2 -2
  98. package/dist/apis/data-management.js +6 -4
  99. package/dist/apis/deduplication.cjs +10 -8
  100. package/dist/apis/deduplication.d.cts +2 -2
  101. package/dist/apis/deduplication.d.ts +2 -2
  102. package/dist/apis/deduplication.js +6 -4
  103. package/dist/apis/design.cjs +10 -8
  104. package/dist/apis/design.d.cts +2 -2
  105. package/dist/apis/design.d.ts +2 -2
  106. package/dist/apis/design.js +6 -4
  107. package/dist/apis/document.cjs +10 -8
  108. package/dist/apis/document.d.cts +2 -2
  109. package/dist/apis/document.d.ts +2 -2
  110. package/dist/apis/document.js +6 -4
  111. package/dist/apis/email-settings.cjs +10 -8
  112. package/dist/apis/email-settings.d.cts +2 -2
  113. package/dist/apis/email-settings.d.ts +2 -2
  114. package/dist/apis/email-settings.js +6 -4
  115. package/dist/apis/email-template.cjs +10 -8
  116. package/dist/apis/email-template.d.cts +2 -2
  117. package/dist/apis/email-template.d.ts +2 -2
  118. package/dist/apis/email-template.js +6 -4
  119. package/dist/apis/entity-mapping.cjs +10 -8
  120. package/dist/apis/entity-mapping.d.cts +2 -2
  121. package/dist/apis/entity-mapping.d.ts +2 -2
  122. package/dist/apis/entity-mapping.js +6 -4
  123. package/dist/apis/entity.cjs +10 -8
  124. package/dist/apis/entity.d.cts +2 -2
  125. package/dist/apis/entity.d.ts +2 -2
  126. package/dist/apis/entity.js +6 -4
  127. package/dist/apis/environments.cjs +10 -8
  128. package/dist/apis/environments.d.cts +2 -2
  129. package/dist/apis/environments.d.ts +2 -2
  130. package/dist/apis/environments.js +6 -4
  131. package/dist/apis/erp-integration.cjs +10 -8
  132. package/dist/apis/erp-integration.d.cts +2 -2
  133. package/dist/apis/erp-integration.d.ts +2 -2
  134. package/dist/apis/erp-integration.js +6 -4
  135. package/dist/apis/event-catalog.cjs +10 -8
  136. package/dist/apis/event-catalog.d.cts +2 -2
  137. package/dist/apis/event-catalog.d.ts +2 -2
  138. package/dist/apis/event-catalog.js +6 -4
  139. package/dist/apis/file.cjs +10 -8
  140. package/dist/apis/file.d.cts +2 -2
  141. package/dist/apis/file.d.ts +2 -2
  142. package/dist/apis/file.js +6 -4
  143. package/dist/apis/iban.cjs +10 -8
  144. package/dist/apis/iban.d.cts +2 -2
  145. package/dist/apis/iban.d.ts +2 -2
  146. package/dist/apis/iban.js +6 -4
  147. package/dist/apis/journey.cjs +10 -8
  148. package/dist/apis/journey.d.cts +2 -2
  149. package/dist/apis/journey.d.ts +2 -2
  150. package/dist/apis/journey.js +6 -4
  151. package/dist/apis/kanban.cjs +10 -8
  152. package/dist/apis/kanban.d.cts +2 -2
  153. package/dist/apis/kanban.d.ts +2 -2
  154. package/dist/apis/kanban.js +6 -4
  155. package/dist/apis/message.cjs +10 -8
  156. package/dist/apis/message.d.cts +2 -2
  157. package/dist/apis/message.d.ts +2 -2
  158. package/dist/apis/message.js +6 -4
  159. package/dist/apis/metering.cjs +10 -8
  160. package/dist/apis/metering.d.cts +2 -2
  161. package/dist/apis/metering.d.ts +2 -2
  162. package/dist/apis/metering.js +6 -4
  163. package/dist/apis/notes.cjs +10 -8
  164. package/dist/apis/notes.d.cts +2 -2
  165. package/dist/apis/notes.d.ts +2 -2
  166. package/dist/apis/notes.js +6 -4
  167. package/dist/apis/notification.cjs +10 -8
  168. package/dist/apis/notification.d.cts +2 -2
  169. package/dist/apis/notification.d.ts +2 -2
  170. package/dist/apis/notification.js +6 -4
  171. package/dist/apis/organization.cjs +10 -8
  172. package/dist/apis/organization.d.cts +4 -4
  173. package/dist/apis/organization.d.ts +4 -4
  174. package/dist/apis/organization.js +6 -4
  175. package/dist/apis/partner-directory.cjs +10 -8
  176. package/dist/apis/partner-directory.d.cts +2 -2
  177. package/dist/apis/partner-directory.d.ts +2 -2
  178. package/dist/apis/partner-directory.js +6 -4
  179. package/dist/apis/permissions.cjs +10 -8
  180. package/dist/apis/permissions.d.cts +2 -2
  181. package/dist/apis/permissions.d.ts +2 -2
  182. package/dist/apis/permissions.js +6 -4
  183. package/dist/apis/pricing-tier.cjs +10 -8
  184. package/dist/apis/pricing-tier.d.cts +2 -2
  185. package/dist/apis/pricing-tier.d.ts +2 -2
  186. package/dist/apis/pricing-tier.js +6 -4
  187. package/dist/apis/pricing.cjs +10 -8
  188. package/dist/apis/pricing.d.cts +2 -2
  189. package/dist/apis/pricing.d.ts +2 -2
  190. package/dist/apis/pricing.js +6 -4
  191. package/dist/apis/purpose.cjs +10 -8
  192. package/dist/apis/purpose.d.cts +2 -2
  193. package/dist/apis/purpose.d.ts +2 -2
  194. package/dist/apis/purpose.js +6 -4
  195. package/dist/apis/sandbox.cjs +10 -8
  196. package/dist/apis/sandbox.d.cts +2 -2
  197. package/dist/apis/sandbox.d.ts +2 -2
  198. package/dist/apis/sandbox.js +6 -4
  199. package/dist/apis/submission.cjs +10 -8
  200. package/dist/apis/submission.d.cts +2 -2
  201. package/dist/apis/submission.d.ts +2 -2
  202. package/dist/apis/submission.js +6 -4
  203. package/dist/apis/targeting.cjs +10 -8
  204. package/dist/apis/targeting.d.cts +2 -2
  205. package/dist/apis/targeting.d.ts +2 -2
  206. package/dist/apis/targeting.js +6 -4
  207. package/dist/apis/template-variables.cjs +10 -8
  208. package/dist/apis/template-variables.d.cts +2 -2
  209. package/dist/apis/template-variables.d.ts +2 -2
  210. package/dist/apis/template-variables.js +6 -4
  211. package/dist/apis/user.cjs +10 -8
  212. package/dist/apis/user.d.cts +2 -2
  213. package/dist/apis/user.d.ts +2 -2
  214. package/dist/apis/user.js +6 -4
  215. package/dist/apis/validation-rules.cjs +10 -8
  216. package/dist/apis/validation-rules.d.cts +2 -2
  217. package/dist/apis/validation-rules.d.ts +2 -2
  218. package/dist/apis/validation-rules.js +6 -4
  219. package/dist/apis/webhooks.cjs +10 -8
  220. package/dist/apis/webhooks.d.cts +2 -2
  221. package/dist/apis/webhooks.d.ts +2 -2
  222. package/dist/apis/webhooks.js +6 -4
  223. package/dist/apis/workflow-definition.cjs +10 -8
  224. package/dist/apis/workflow-definition.d.cts +2 -2
  225. package/dist/apis/workflow-definition.d.ts +2 -2
  226. package/dist/apis/workflow-definition.js +6 -4
  227. package/dist/apis/workflow.cjs +10 -8
  228. package/dist/apis/workflow.d.cts +2 -2
  229. package/dist/apis/workflow.d.ts +2 -2
  230. package/dist/apis/workflow.js +6 -4
  231. package/dist/app-5VPBDFW2.cjs +4047 -0
  232. package/dist/app-IKHWU222.cjs +7 -0
  233. package/dist/app-VJW2KKWE.js +4047 -0
  234. package/dist/app-VLM3SWKA.js +7 -0
  235. package/dist/app-runtime-SSNHSBR7.cjs +5 -0
  236. package/dist/app-runtime-U7RGV7KT.js +5 -0
  237. package/dist/audit-logs-5VXHOQ7S.js +7 -0
  238. package/dist/audit-logs-D2LFUA2R.cjs +7 -0
  239. package/dist/audit-logs-F2NHDISQ.js +312 -0
  240. package/dist/audit-logs-RFEMBILB.cjs +312 -0
  241. package/dist/audit-logs-runtime-4WMHPWNX.cjs +5 -0
  242. package/dist/audit-logs-runtime-76R6WRAB.js +5 -0
  243. package/dist/automation-3HGCK725.cjs +7 -0
  244. package/dist/automation-72VGEJCY.js +7 -0
  245. package/dist/automation-HZASSUCS.cjs +4460 -0
  246. package/dist/automation-WEVRW77F.js +4460 -0
  247. package/dist/automation-runtime-L5UKEFLA.js +5 -0
  248. package/dist/automation-runtime-YBGGE5PL.cjs +5 -0
  249. package/dist/billing-3VZPNG6M.cjs +796 -0
  250. package/dist/billing-ASWY7HC3.js +796 -0
  251. package/dist/billing-DUWDISHP.cjs +7 -0
  252. package/dist/billing-IPALEAG2.js +7 -0
  253. package/dist/billing-runtime-C6BMGWCX.js +5 -0
  254. package/dist/billing-runtime-L4Y7MLM3.cjs +5 -0
  255. package/dist/blueprint-manifest-5TNVSDKC.cjs +3169 -0
  256. package/dist/blueprint-manifest-CXSCRQ5X.js +7 -0
  257. package/dist/blueprint-manifest-SHNZPK5O.cjs +7 -0
  258. package/dist/blueprint-manifest-UGGYWGRZ.js +3169 -0
  259. package/dist/blueprint-manifest-runtime-2RTW5C52.js +5 -0
  260. package/dist/blueprint-manifest-runtime-AF3FIDVX.cjs +5 -0
  261. package/dist/{chunk-ZPCMZO2O.js → chunk-24T6CJTG.js} +1 -1
  262. package/dist/{chunk-4JPVFLVU.js → chunk-265TE2OV.js} +1 -1
  263. package/dist/{chunk-NSOHW3R6.js → chunk-2BPBDRRO.js} +1 -1
  264. package/dist/{chunk-ZAPA4RPI.js → chunk-3XKBB5AE.js} +1 -1
  265. package/dist/{chunk-CFGXI3FX.js → chunk-3YSEO476.js} +1 -1
  266. package/dist/{chunk-WOOKHE7Y.cjs → chunk-46HU6232.cjs} +2 -2
  267. package/dist/{chunk-KU2XF4TS.cjs → chunk-4G6LO3JY.cjs} +2 -2
  268. package/dist/{chunk-GGBSLAVO.cjs → chunk-4QCVVDTA.cjs} +2 -2
  269. package/dist/{chunk-TUAAE3UC.cjs → chunk-4W22EIRF.cjs} +2 -2
  270. package/dist/{chunk-BDIJHJOG.js → chunk-4ZGZDE6D.js} +1 -1
  271. package/dist/{chunk-VD5TBK2T.cjs → chunk-4ZMLRFDX.cjs} +2 -2
  272. package/dist/{chunk-YNPRF4BX.js → chunk-5JPM6YUD.js} +1 -1
  273. package/dist/{chunk-FCLW3FLF.js → chunk-5MFHAXBT.js} +1 -1
  274. package/dist/{chunk-OBQIS3KU.js → chunk-5NKXJA43.js} +1 -1
  275. package/dist/{chunk-UXVV3BSC.cjs → chunk-5WNEYQII.cjs} +2 -2
  276. package/dist/chunk-6OYECNL2.js +14 -0
  277. package/dist/{chunk-D5FJ26GG.js → chunk-6UAS2VVG.js} +1 -1
  278. package/dist/{chunk-UE4XPL43.js → chunk-6VWCUZ5M.js} +1 -1
  279. package/dist/{chunk-HSGQSTVK.js → chunk-75EI2Q64.js} +1 -1
  280. package/dist/{chunk-6J7CIOKR.js → chunk-75ZWZM3L.js} +1 -1
  281. package/dist/{chunk-LXAJ722U.js → chunk-7IKQIVUS.js} +1 -1
  282. package/dist/{chunk-5YVVQBA2.js → chunk-A7AAVJGM.js} +1 -1
  283. package/dist/{chunk-ZDJ3J6Z6.cjs → chunk-ANN2QTMY.cjs} +2 -2
  284. package/dist/{chunk-MKZGM4A6.js → chunk-AUH6NP6Y.js} +1 -1
  285. package/dist/{chunk-BB7WFIE2.cjs → chunk-BLNXQAMX.cjs} +2 -2
  286. package/dist/{chunk-PLBIQ2Y7.cjs → chunk-BM6NCHPL.cjs} +2 -2
  287. package/dist/{chunk-5Y2KLUU6.cjs → chunk-BPHOGIQM.cjs} +2 -2
  288. package/dist/{chunk-Y4YQEDR3.js → chunk-BTTPWE2P.js} +1 -1
  289. package/dist/{chunk-Z5LLUUFD.cjs → chunk-COQMJFAB.cjs} +2 -2
  290. package/dist/{chunk-YFHQYQII.js → chunk-CSK5ZUTS.js} +1 -1
  291. package/dist/{chunk-7KFKA3AH.cjs → chunk-D32L2HMX.cjs} +2 -2
  292. package/dist/{chunk-Y4ZMNMYI.js → chunk-D7Q4JGN7.js} +1 -1
  293. package/dist/{chunk-UTQY2DSM.js → chunk-DZ3P537S.js} +1 -1
  294. package/dist/{chunk-CLMZ2EXW.js → chunk-E2WMGOM5.js} +1 -1
  295. package/dist/{chunk-R6WNZVTA.cjs → chunk-F5JVW2D5.cjs} +2 -2
  296. package/dist/{chunk-WAKSLH7V.cjs → chunk-FARDEGPH.cjs} +2 -2
  297. package/dist/{chunk-XIB2G42L.cjs → chunk-G3VDRMOH.cjs} +2 -2
  298. package/dist/{chunk-ZAXYMQ2B.cjs → chunk-G5FKTWUC.cjs} +2 -2
  299. package/dist/{chunk-URRL33D5.cjs → chunk-GWKHOJGD.cjs} +2 -2
  300. package/dist/{chunk-XLOXC52O.js → chunk-H45V55VT.js} +1 -1
  301. package/dist/{chunk-TBBLLEB2.cjs → chunk-HAZ3WP7V.cjs} +2 -2
  302. package/dist/{chunk-KEJRWMXR.cjs → chunk-HHMXS5NC.cjs} +2 -2
  303. package/dist/{chunk-YXPUCBVK.cjs → chunk-IGVVJMX7.cjs} +2 -2
  304. package/dist/{chunk-IXRDP4VP.js → chunk-IJR3GZKC.js} +1 -1
  305. package/dist/{chunk-OI2M6FSB.js → chunk-IQOCHPWU.js} +1 -1
  306. package/dist/{chunk-6ADJEPMJ.js → chunk-JENQHXFI.js} +1 -1
  307. package/dist/{chunk-E4IFBCNM.cjs → chunk-JICWF5VI.cjs} +2 -2
  308. package/dist/{chunk-Q5TESEDZ.cjs → chunk-JIUTCNTB.cjs} +2 -2
  309. package/dist/{chunk-RNKZDJOY.js → chunk-JJWJLY42.js} +1 -1
  310. package/dist/{chunk-CX3KG7D2.cjs → chunk-JXJC6WEW.cjs} +2 -2
  311. package/dist/{chunk-RQKN4WTW.cjs → chunk-K2UZPY6U.cjs} +2 -2
  312. package/dist/{chunk-UDO4JYVU.cjs → chunk-L66IX6GX.cjs} +2 -2
  313. package/dist/{chunk-HBPCJRZX.cjs → chunk-LKRBFBFN.cjs} +2 -2
  314. package/dist/{chunk-EIILOQ6X.js → chunk-LLZYRINH.js} +1 -1
  315. package/dist/{chunk-CVSQT5PV.cjs → chunk-M2SSGV7K.cjs} +2 -2
  316. package/dist/{chunk-MK4ZGXVE.cjs → chunk-M2UDF7PY.cjs} +2 -2
  317. package/dist/{chunk-SPZSDRM6.cjs → chunk-M56QQHVA.cjs} +2 -2
  318. package/dist/{chunk-IPFHV2FV.cjs → chunk-MB6NKETA.cjs} +2 -2
  319. package/dist/{chunk-PBNPZ7UX.js → chunk-MEUS7LCE.js} +1 -1
  320. package/dist/{chunk-S2QF6HG2.cjs → chunk-N5NFJW7Y.cjs} +2 -2
  321. package/dist/chunk-NBYH536J.js +291 -0
  322. package/dist/{chunk-W3MM2BSK.cjs → chunk-NEVFKRDU.cjs} +2 -2
  323. package/dist/chunk-NJK5F5TF.cjs +21 -0
  324. package/dist/{chunk-CK36RZXR.js → chunk-O4JDWMYD.js} +1 -1
  325. package/dist/{chunk-5RXE7X63.js → chunk-OEBV2PMV.js} +2 -2
  326. package/dist/{chunk-HKZQ56AS.cjs → chunk-OXJOO2YF.cjs} +2 -2
  327. package/dist/{chunk-U4BMKRG6.js → chunk-PSQMDY3B.js} +1 -1
  328. package/dist/{chunk-SHPXCOTN.cjs → chunk-QOAWSFXA.cjs} +3 -3
  329. package/dist/{chunk-RNBO3DEN.js → chunk-QT44OHHL.js} +1 -1
  330. package/dist/{chunk-7BPPP4M2.js → chunk-QTR3RH4N.js} +1 -1
  331. package/dist/{chunk-ID6BXIOZ.js → chunk-RELUU5QZ.js} +1 -1
  332. package/dist/{chunk-4K3MX2J6.js → chunk-RJ3DWFSK.js} +1 -1
  333. package/dist/{chunk-DBNEZWK2.cjs → chunk-RUZRPIHW.cjs} +2 -2
  334. package/dist/{chunk-O3R6C3WW.js → chunk-RW5JOHG7.js} +1 -1
  335. package/dist/{chunk-4MO4WLKA.cjs → chunk-RXMOHUBP.cjs} +2 -2
  336. package/dist/{chunk-YGULLD73.js → chunk-SBSIGQDU.js} +1 -1
  337. package/dist/{chunk-JX45ME2Z.js → chunk-SITPUXIR.js} +1 -1
  338. package/dist/{chunk-TIJGLQKO.js → chunk-SZMCMLOQ.js} +1 -1
  339. package/dist/{chunk-IPDIEZBN.cjs → chunk-T67ZXTVG.cjs} +2 -2
  340. package/dist/{chunk-33TQRYMY.js → chunk-TME4YJNP.js} +1 -1
  341. package/dist/{chunk-N2P26AAD.js → chunk-TPA4HEAO.js} +1 -1
  342. package/dist/{chunk-U52A2DMK.cjs → chunk-TTNPMFXL.cjs} +2 -2
  343. package/dist/chunk-TXDVGTQD.cjs +14 -0
  344. package/dist/{chunk-XD6XML3Z.cjs → chunk-UNCVJH6J.cjs} +2 -2
  345. package/dist/{chunk-CBRWUULQ.js → chunk-UUVJYJHD.js} +1 -1
  346. package/dist/{chunk-V56ZCL54.js → chunk-VSZEOCIE.js} +1 -1
  347. package/dist/{chunk-UX2IZQNM.cjs → chunk-WQBBB6BN.cjs} +2 -2
  348. package/dist/chunk-WSZWUQDD.cjs +291 -0
  349. package/dist/{chunk-5WN2YXNU.cjs → chunk-WTMV77T2.cjs} +2 -2
  350. package/dist/{chunk-JM6HKPSC.cjs → chunk-WWOAKRNG.cjs} +2 -2
  351. package/dist/{chunk-UNHWLNE4.js → chunk-XSE4CFSM.js} +1 -1
  352. package/dist/{chunk-HO7KACZZ.cjs → chunk-YO4M3BZL.cjs} +2 -2
  353. package/dist/chunk-YPSWSI3M.js +21 -0
  354. package/dist/{chunk-6BERHKDQ.cjs → chunk-Z5TVWG3I.cjs} +2 -2
  355. package/dist/{chunk-ONN5COYQ.cjs → chunk-ZI33AJQ5.cjs} +2 -2
  356. package/dist/{chunk-DIP442PL.js → chunk-ZKQ573B7.js} +1 -1
  357. package/dist/consent-6SIH4NQS.cjs +342 -0
  358. package/dist/consent-7MNRAINV.js +342 -0
  359. package/dist/consent-CS2ZBZX4.cjs +7 -0
  360. package/dist/consent-NNYHF2N4.js +7 -0
  361. package/dist/consent-runtime-KZ5D4XZU.cjs +5 -0
  362. package/dist/consent-runtime-OAPXBJH2.js +5 -0
  363. package/dist/customer-portal-D3SLPAHZ.js +7 -0
  364. package/dist/customer-portal-L5DEQEGC.js +14142 -0
  365. package/dist/customer-portal-MXILX4KH.cjs +14142 -0
  366. package/dist/customer-portal-UR3GN4VU.cjs +7 -0
  367. package/dist/customer-portal-runtime-MRVZ7JR4.js +5 -0
  368. package/dist/customer-portal-runtime-VGK7RMLC.cjs +5 -0
  369. package/dist/dashboard-RKUQLIME.cjs +483 -0
  370. package/dist/dashboard-UDL26RGG.js +483 -0
  371. package/dist/dashboard-UHYR5RTY.cjs +7 -0
  372. package/dist/dashboard-UTPGXFW5.js +7 -0
  373. package/dist/dashboard-runtime-EXP2AM44.cjs +5 -0
  374. package/dist/dashboard-runtime-PSKSGLCF.js +5 -0
  375. package/dist/data-management-QH2IJ5QV.js +7 -0
  376. package/dist/data-management-TEFRLGSU.cjs +7 -0
  377. package/dist/data-management-W5JQGGGH.js +925 -0
  378. package/dist/data-management-XFSRLFYA.cjs +925 -0
  379. package/dist/data-management-runtime-PAC7UFGT.cjs +5 -0
  380. package/dist/data-management-runtime-XZ347IUB.js +5 -0
  381. package/dist/deduplication-7RTGTLN5.cjs +193 -0
  382. package/dist/deduplication-ECVAZVVA.cjs +7 -0
  383. package/dist/deduplication-GYIST22B.js +7 -0
  384. package/dist/deduplication-RKLRTNZU.js +193 -0
  385. package/dist/deduplication-runtime-BBHG7MJW.cjs +5 -0
  386. package/dist/deduplication-runtime-DLGBF4RN.js +5 -0
  387. package/dist/design-AO6EGLHD.cjs +1352 -0
  388. package/dist/design-KUVXMFFK.cjs +7 -0
  389. package/dist/design-VLRA2WGV.js +1352 -0
  390. package/dist/design-YKBXRW5C.js +7 -0
  391. package/dist/design-runtime-3SKJA7QH.js +5 -0
  392. package/dist/design-runtime-Y3VGTQLP.cjs +5 -0
  393. package/dist/document-CY2A2OE7.js +7 -0
  394. package/dist/document-OVTR7RVH.cjs +744 -0
  395. package/dist/document-RYQ7MF6U.cjs +7 -0
  396. package/dist/document-SEZ45XAO.js +744 -0
  397. package/dist/document-runtime-GFEBGNMS.js +5 -0
  398. package/dist/document-runtime-RG3F4R6O.cjs +5 -0
  399. package/dist/email-settings-QGCIUWLC.js +2427 -0
  400. package/dist/email-settings-SEGEKVMF.cjs +2427 -0
  401. package/dist/email-settings-TQ5GGDYG.js +7 -0
  402. package/dist/email-settings-TQC34GST.cjs +7 -0
  403. package/dist/email-settings-runtime-NS7MU3RB.cjs +5 -0
  404. package/dist/email-settings-runtime-X7F3EPAB.js +5 -0
  405. package/dist/email-template-26SANLRD.cjs +1308 -0
  406. package/dist/email-template-346NDG4D.js +1308 -0
  407. package/dist/email-template-M2VVL4TI.cjs +7 -0
  408. package/dist/email-template-WYROV3UG.js +7 -0
  409. package/dist/email-template-runtime-QBB64BJQ.js +5 -0
  410. package/dist/email-template-runtime-UI2FS4H5.cjs +5 -0
  411. package/dist/entity-FA6PZX6S.js +7 -0
  412. package/dist/entity-HSCBRIOS.js +9411 -0
  413. package/dist/entity-IX5NSHPX.cjs +7 -0
  414. package/dist/entity-UKAWTND4.cjs +9411 -0
  415. package/dist/entity-mapping-7J3IAGKQ.js +7 -0
  416. package/dist/entity-mapping-PK2XAARN.cjs +1506 -0
  417. package/dist/entity-mapping-UOGYYCZH.js +1506 -0
  418. package/dist/entity-mapping-ZNMFCUKK.cjs +7 -0
  419. package/dist/entity-mapping-runtime-734TTUA2.cjs +5 -0
  420. package/dist/entity-mapping-runtime-HCOJM6DV.js +5 -0
  421. package/dist/entity-runtime-QSFVEFJ6.js +5 -0
  422. package/dist/entity-runtime-XSAICIVR.cjs +5 -0
  423. package/dist/environments-5IS2ZJYQ.cjs +352 -0
  424. package/dist/environments-E3X6NYGX.js +7 -0
  425. package/dist/environments-P2JS4F5N.cjs +7 -0
  426. package/dist/environments-VCREW73K.js +352 -0
  427. package/dist/environments-runtime-BPR47PW7.js +5 -0
  428. package/dist/environments-runtime-L6TJCVW6.cjs +5 -0
  429. package/dist/erp-integration-735KQ73W.js +5295 -0
  430. package/dist/erp-integration-EP2XFEH5.js +7 -0
  431. package/dist/erp-integration-NNV72VFI.cjs +7 -0
  432. package/dist/erp-integration-W7FZDJOB.cjs +5295 -0
  433. package/dist/erp-integration-runtime-FNJXDO75.js +5 -0
  434. package/dist/erp-integration-runtime-WXZIQCLJ.cjs +5 -0
  435. package/dist/event-catalog-C45ISVMP.cjs +7 -0
  436. package/dist/event-catalog-D7VJ7WRS.js +7 -0
  437. package/dist/event-catalog-MZYFJ23V.cjs +965 -0
  438. package/dist/event-catalog-ZUFXLY7B.js +965 -0
  439. package/dist/event-catalog-runtime-5HQSAJVX.cjs +5 -0
  440. package/dist/event-catalog-runtime-6FA3SCRI.js +5 -0
  441. package/dist/file-637CTR4Y.cjs +2744 -0
  442. package/dist/file-EJJBQEQI.js +2744 -0
  443. package/dist/file-UOWBTDIU.cjs +7 -0
  444. package/dist/file-XSN3NAVZ.js +7 -0
  445. package/dist/file-runtime-B6AAGZQF.js +5 -0
  446. package/dist/file-runtime-SFZIKODF.cjs +5 -0
  447. package/dist/iban-24GHLFDB.cjs +7 -0
  448. package/dist/iban-ETTCKOHK.cjs +148 -0
  449. package/dist/iban-HXFDAF4I.js +148 -0
  450. package/dist/iban-LDKYDVQV.js +7 -0
  451. package/dist/iban-runtime-EVXLFPPP.js +5 -0
  452. package/dist/iban-runtime-TUM5LVHO.cjs +5 -0
  453. package/dist/index.cjs +113 -101
  454. package/dist/index.d.cts +36 -5
  455. package/dist/index.d.ts +36 -5
  456. package/dist/index.js +64 -52
  457. package/dist/journey-7CKX67M7.js +7 -0
  458. package/dist/journey-EUZ6MVHG.cjs +7 -0
  459. package/dist/journey-KW3ZFQAL.js +2194 -0
  460. package/dist/journey-XIMSLSZC.cjs +2194 -0
  461. package/dist/journey-runtime-SPBL3F32.cjs +5 -0
  462. package/dist/journey-runtime-YXIAOTMD.js +5 -0
  463. package/dist/kanban-CHTH2ZSY.cjs +7 -0
  464. package/dist/kanban-HI6LL5WY.js +7 -0
  465. package/dist/kanban-M4P7R5TM.cjs +890 -0
  466. package/dist/kanban-QXQEQIF4.js +890 -0
  467. package/dist/kanban-runtime-NHEUWTCG.cjs +5 -0
  468. package/dist/kanban-runtime-R6EWHBFS.js +5 -0
  469. package/dist/message-2VOVRXBB.cjs +2447 -0
  470. package/dist/message-3XZLJR6R.cjs +7 -0
  471. package/dist/message-M62W3KP2.js +2447 -0
  472. package/dist/message-ZNMCS5YH.js +7 -0
  473. package/dist/message-runtime-ITR7MPKT.cjs +5 -0
  474. package/dist/message-runtime-YMKW2N3R.js +5 -0
  475. package/dist/metering-DZNZPPY6.cjs +7 -0
  476. package/dist/metering-KEMILE75.cjs +2198 -0
  477. package/dist/metering-KOSCPPKB.js +7 -0
  478. package/dist/metering-W3TA6ZUQ.js +2198 -0
  479. package/dist/metering-runtime-HAIWXZXJ.cjs +5 -0
  480. package/dist/metering-runtime-NJ6NEUMB.js +5 -0
  481. package/dist/notes-3AO5GXIT.js +7 -0
  482. package/dist/notes-4LVCGLBE.js +1427 -0
  483. package/dist/notes-MPWOQC5J.cjs +7 -0
  484. package/dist/notes-OBM5POWI.cjs +1427 -0
  485. package/dist/notes-runtime-CVNAVKPP.js +5 -0
  486. package/dist/notes-runtime-E3YYF74V.cjs +5 -0
  487. package/dist/notification-EEYPLPUV.cjs +1381 -0
  488. package/dist/notification-MJQGIBM7.js +1381 -0
  489. package/dist/notification-PZOCUYD5.cjs +7 -0
  490. package/dist/notification-VWDZRSFZ.js +7 -0
  491. package/dist/notification-runtime-7QLZTPHG.cjs +5 -0
  492. package/dist/notification-runtime-KREP32YP.js +5 -0
  493. package/dist/organization-2UK7QZLQ.cjs +615 -0
  494. package/dist/organization-RARYYG2E.cjs +7 -0
  495. package/dist/organization-U5HPX627.js +615 -0
  496. package/dist/organization-ZERPH2IH.js +7 -0
  497. package/dist/organization-runtime-LBCVCZ3W.cjs +5 -0
  498. package/dist/organization-runtime-P3WZ2BBU.js +5 -0
  499. package/dist/{organization.d-Bd2Hmk8v.d.cts → organization.d-DqwnNxMg.d.cts} +34 -7
  500. package/dist/{organization.d-Bd2Hmk8v.d.ts → organization.d-DqwnNxMg.d.ts} +34 -7
  501. package/dist/partner-directory-2XMPQWWX.js +7 -0
  502. package/dist/partner-directory-CG5CYJGB.cjs +1600 -0
  503. package/dist/partner-directory-WHNTKQ5E.cjs +7 -0
  504. package/dist/partner-directory-XJ7KI7EX.js +1600 -0
  505. package/dist/partner-directory-runtime-QURDOO4Z.js +5 -0
  506. package/dist/partner-directory-runtime-RSONSDNJ.cjs +5 -0
  507. package/dist/permissions-4T3GFNB4.js +7 -0
  508. package/dist/permissions-FGBIJNN7.cjs +7 -0
  509. package/dist/permissions-SGPGANEP.js +1415 -0
  510. package/dist/permissions-WCOABHKQ.cjs +1415 -0
  511. package/dist/permissions-runtime-D74HOCVO.js +5 -0
  512. package/dist/permissions-runtime-O5LH7WOU.cjs +5 -0
  513. package/dist/pricing-3RNPCUR6.js +9362 -0
  514. package/dist/pricing-4Z4TOETA.cjs +7 -0
  515. package/dist/pricing-C65DTZSX.js +7 -0
  516. package/dist/pricing-VYHPSVKM.cjs +9362 -0
  517. package/dist/pricing-runtime-6XNS4EOF.cjs +5 -0
  518. package/dist/pricing-runtime-JRR4FWFI.js +5 -0
  519. package/dist/pricing-tier-36WV4P4X.js +121 -0
  520. package/dist/pricing-tier-FKQPW2ND.cjs +121 -0
  521. package/dist/pricing-tier-NI35WOUP.cjs +7 -0
  522. package/dist/pricing-tier-VUOFK5Q7.js +7 -0
  523. package/dist/pricing-tier-runtime-32BCKJ7Y.cjs +5 -0
  524. package/dist/pricing-tier-runtime-LEGBNNLA.js +5 -0
  525. package/dist/purpose-AKOEUHZ4.cjs +7 -0
  526. package/dist/purpose-JC2E7W3M.cjs +523 -0
  527. package/dist/purpose-QFQ4W255.js +523 -0
  528. package/dist/purpose-RBRV3AQZ.js +7 -0
  529. package/dist/purpose-runtime-C6IGTUA6.cjs +5 -0
  530. package/dist/purpose-runtime-V5X5ESZV.js +5 -0
  531. package/dist/sandbox-2KN4X66E.cjs +7 -0
  532. package/dist/sandbox-CLZTN7IW.cjs +445 -0
  533. package/dist/sandbox-L2SOOGGR.js +7 -0
  534. package/dist/sandbox-O2NWMZGJ.js +445 -0
  535. package/dist/sandbox-runtime-4MLOMFPK.js +5 -0
  536. package/dist/sandbox-runtime-GKEK3GQB.cjs +5 -0
  537. package/dist/submission-6FD67HIE.cjs +308 -0
  538. package/dist/submission-7BISSPO6.js +7 -0
  539. package/dist/submission-MWJU4L32.js +308 -0
  540. package/dist/submission-Q24BU4GS.cjs +7 -0
  541. package/dist/submission-runtime-5FD4AQSD.cjs +5 -0
  542. package/dist/submission-runtime-JPHKPQ77.js +5 -0
  543. package/dist/targeting-4CQDSEKL.cjs +1369 -0
  544. package/dist/targeting-EYGYZD6M.cjs +7 -0
  545. package/dist/targeting-GEJTJN5Z.js +7 -0
  546. package/dist/targeting-RB7LBQMX.js +1369 -0
  547. package/dist/targeting-runtime-6JFMP262.cjs +5 -0
  548. package/dist/targeting-runtime-M2VSTKFT.js +5 -0
  549. package/dist/template-variables-JYHE2VCH.cjs +1447 -0
  550. package/dist/template-variables-OAYS2E3G.cjs +1148 -0
  551. package/dist/template-variables-VKDJJZUT.js +1148 -0
  552. package/dist/template-variables-XLIW4GY6.js +1447 -0
  553. package/dist/template-variables-runtime-62U3ZY5P.js +5 -0
  554. package/dist/template-variables-runtime-LFOA32UM.cjs +5 -0
  555. package/dist/{types-BwBvJkY_.d.ts → types-ChU9Acbv.d.cts} +3 -0
  556. package/dist/{types-BwBvJkY_.d.cts → types-ChU9Acbv.d.ts} +3 -0
  557. package/dist/user-DKA6DDPX.cjs +2265 -0
  558. package/dist/user-EIEOI3OG.js +7 -0
  559. package/dist/user-NJJ7XVKB.cjs +7 -0
  560. package/dist/user-O4JDAIRO.js +2265 -0
  561. package/dist/user-runtime-7O2HLFVQ.cjs +5 -0
  562. package/dist/user-runtime-U4HYUWJU.js +5 -0
  563. package/dist/validation-rules-AYCAOVDZ.cjs +1344 -0
  564. package/dist/validation-rules-GCI64B57.js +1344 -0
  565. package/dist/validation-rules-P6F5P73P.js +7 -0
  566. package/dist/validation-rules-VDU3CIZV.cjs +7 -0
  567. package/dist/validation-rules-runtime-6MRCS5X2.js +5 -0
  568. package/dist/validation-rules-runtime-X7M3QE5I.cjs +5 -0
  569. package/dist/webhooks-I7JWU34X.cjs +7 -0
  570. package/dist/webhooks-L3FXPRKT.cjs +1431 -0
  571. package/dist/webhooks-WPLEHVPX.js +7 -0
  572. package/dist/webhooks-XXLU2KWP.js +1431 -0
  573. package/dist/webhooks-runtime-EBM4M3SU.cjs +5 -0
  574. package/dist/webhooks-runtime-XCQYIGQK.js +5 -0
  575. package/dist/workflow-3LLURW3H.js +7 -0
  576. package/dist/workflow-RAGQDYXT.cjs +7 -0
  577. package/dist/workflow-VLNZNE3S.js +3834 -0
  578. package/dist/workflow-YJHUCGVK.cjs +3834 -0
  579. package/dist/workflow-definition-7BA4H6W3.cjs +3100 -0
  580. package/dist/workflow-definition-B6ELOZUR.cjs +7 -0
  581. package/dist/workflow-definition-D24CRCK2.js +7 -0
  582. package/dist/workflow-definition-VFYWBQQ3.js +3100 -0
  583. package/dist/workflow-definition-runtime-S7AZHOU7.js +5 -0
  584. package/dist/workflow-definition-runtime-VRND6VQR.cjs +5 -0
  585. package/dist/workflow-runtime-RLZO2OQB.js +5 -0
  586. package/dist/workflow-runtime-WCJ7NRTH.cjs +5 -0
  587. package/docs/access-token.md +440 -0
  588. package/docs/address-suggestions.md +256 -0
  589. package/docs/address.md +284 -0
  590. package/docs/ai-agents.md +1891 -0
  591. package/docs/app.md +3388 -0
  592. package/docs/audit-logs.md +242 -0
  593. package/docs/automation.md +4044 -0
  594. package/docs/billing.md +783 -0
  595. package/docs/blueprint-manifest.md +3234 -0
  596. package/docs/consent.md +213 -0
  597. package/docs/customer-portal.md +11399 -0
  598. package/docs/dashboard.md +640 -0
  599. package/docs/data-management.md +883 -0
  600. package/docs/deduplication.md +135 -0
  601. package/docs/design.md +1273 -0
  602. package/docs/document.md +590 -0
  603. package/docs/email-settings.md +1544 -0
  604. package/docs/email-template.md +1197 -0
  605. package/docs/entity-mapping.md +2864 -0
  606. package/docs/entity.md +9595 -0
  607. package/docs/environments.md +259 -0
  608. package/docs/erp-integration.md +4572 -0
  609. package/docs/event-catalog.md +835 -0
  610. package/docs/file.md +1453 -0
  611. package/docs/iban.md +61 -0
  612. package/docs/journey.md +2268 -0
  613. package/docs/kanban.md +882 -0
  614. package/docs/message.md +2122 -0
  615. package/docs/metering.md +1431 -0
  616. package/docs/notes.md +670 -0
  617. package/docs/notification.md +1207 -0
  618. package/docs/organization.md +733 -0
  619. package/docs/partner-directory.md +1197 -0
  620. package/docs/permissions.md +1047 -0
  621. package/docs/pricing-tier.md +81 -0
  622. package/docs/pricing.md +5923 -0
  623. package/docs/purpose.md +283 -0
  624. package/docs/sandbox.md +389 -0
  625. package/docs/submission.md +195 -0
  626. package/docs/targeting.md +959 -0
  627. package/docs/template-variables.md +1141 -0
  628. package/docs/user.md +2555 -0
  629. package/docs/validation-rules.md +1597 -0
  630. package/docs/webhooks.md +996 -0
  631. package/docs/workflow-definition.md +3842 -0
  632. package/docs/workflow.md +4465 -0
  633. package/package.json +5 -3
  634. package/dist/chunk-GMBRXWMD.cjs +0 -14
  635. package/dist/chunk-L43U5IO3.js +0 -14
  636. package/dist/chunk-XE25WERA.js +0 -125
  637. package/dist/chunk-XEQMAKGA.cjs +0 -125
package/docs/file.md ADDED
@@ -0,0 +1,1453 @@
1
+ # File API
2
+
3
+ - **Base URL:** `https://file.sls.epilot.io`
4
+ - **Full API Docs:** [https://docs.epilot.io/api/file](https://docs.epilot.io/api/file)
5
+
6
+ ## Usage
7
+
8
+ ```ts
9
+ import { epilot } from '@epilot/sdk'
10
+
11
+ epilot.authorize(() => '<token>')
12
+ const { data } = await epilot.file.uploadFileV2(...)
13
+ ```
14
+
15
+ ### Tree-shakeable import
16
+
17
+ ```ts
18
+ import { getClient, authorize } from '@epilot/sdk/file'
19
+
20
+ const fileClient = getClient()
21
+ authorize(fileClient, () => '<token>')
22
+ const { data } = await fileClient.uploadFileV2(...)
23
+ ```
24
+
25
+ ## Operations
26
+
27
+ **File**
28
+ - [`uploadFileV2`](#uploadfilev2)
29
+ - [`saveFileV2`](#savefilev2)
30
+ - [`getFile`](#getfile)
31
+ - [`deleteFile`](#deletefile)
32
+ - [`downloadFile`](#downloadfile)
33
+ - [`downloadS3File`](#downloads3file)
34
+ - [`downloadFiles`](#downloadfiles)
35
+ - [`verifyCustomDownloadUrl`](#verifycustomdownloadurl)
36
+ - [`uploadFilePublic`](#uploadfilepublic)
37
+
38
+ **Preview**
39
+ - [`previewFile`](#previewfile)
40
+ - [`previewS3File`](#previews3file)
41
+ - [`previewS3FileGet`](#previews3fileget)
42
+ - [`previewPublicFile`](#previewpublicfile)
43
+
44
+ **Session**
45
+ - [`getSession`](#getsession)
46
+ - [`deleteSession`](#deletesession)
47
+
48
+ **Public Links**
49
+ - [`generatePublicLink`](#generatepubliclink)
50
+ - [`listPublicLinksForFile`](#listpubliclinksforfile)
51
+ - [`accessPublicLink`](#accesspubliclink)
52
+ - [`revokePublicLink`](#revokepubliclink)
53
+
54
+ **File Collections**
55
+ - [`getUserSchemaFileCollections`](#getuserschemafilecollections)
56
+ - [`createUserSchemaFileCollection`](#createuserschemafilecollection)
57
+ - [`updateUserSchemaFileCollection`](#updateuserschemafilecollection)
58
+ - [`deleteUserSchemaFileCollection`](#deleteuserschemafilecollection)
59
+ - [`getFilesInCollection`](#getfilesincollection)
60
+ - [`getGlobalFileCollections`](#getglobalfilecollections)
61
+
62
+ **Schemas**
63
+ - [`EntityId`](#entityid)
64
+ - [`EntitySlug`](#entityslug)
65
+ - [`ActivityId`](#activityid)
66
+ - [`FileEntityId`](#fileentityid)
67
+ - [`FileAttributes`](#fileattributes)
68
+ - [`FileType`](#filetype)
69
+ - [`CustomDownloadUrl`](#customdownloadurl)
70
+ - [`FileEntity`](#fileentity)
71
+ - [`CommonSaveFilePayload`](#commonsavefilepayload)
72
+ - [`SaveS3FilePayload`](#saves3filepayload)
73
+ - [`SaveFileFromSourceURLPayload`](#savefilefromsourceurlpayload)
74
+ - [`SaveCustomFilePayload`](#savecustomfilepayload)
75
+ - [`SaveFilePayload`](#savefilepayload)
76
+ - [`SaveFilePayloadV2`](#savefilepayloadv2)
77
+ - [`BatchSaveFileVersionPayload`](#batchsavefileversionpayload)
78
+ - [`UploadFilePayload`](#uploadfilepayload)
79
+ - [`FileUpload`](#fileupload)
80
+ - [`DownloadFilesPayload`](#downloadfilespayload)
81
+ - [`VerifyCustomDownloadUrlPayload`](#verifycustomdownloadurlpayload)
82
+ - [`S3Reference`](#s3reference)
83
+ - [`S3Ref`](#s3ref)
84
+ - [`FileItem`](#fileitem)
85
+ - [`FileRelationItem`](#filerelationitem)
86
+ - [`PublicLink`](#publiclink)
87
+ - [`BaseEntityOwner`](#baseentityowner)
88
+ - [`BaseEntityAcl`](#baseentityacl)
89
+ - [`ErrorObject`](#errorobject)
90
+ - [`FileCollectionId`](#filecollectionid)
91
+ - [`FileCollectionItem`](#filecollectionitem)
92
+ - [`FileCollectionAttributes`](#filecollectionattributes)
93
+ - [`FileCollectionCreateRequest`](#filecollectioncreaterequest)
94
+
95
+ ### `uploadFileV2`
96
+
97
+ Create pre-signed S3 URL to upload a file to keep temporarily (one week).
98
+
99
+ `POST /v2/files/upload`
100
+
101
+ ```ts
102
+ const { data } = await client.uploadFileV2(
103
+ {
104
+ file_entity_id: 'example',
105
+ },
106
+ {
107
+ filename: 'document.pdf',
108
+ mime_type: 'application/pdf',
109
+ index_tag: '2f6a377c8e78',
110
+ metadata: {
111
+ color: 'blue'
112
+ }
113
+ },
114
+ )
115
+ ```
116
+
117
+ <details>
118
+ <summary>Response</summary>
119
+
120
+ ```json
121
+ {
122
+ "s3ref": {
123
+ "bucket": "epilot-prod-user-content",
124
+ "key": "123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
125
+ },
126
+ "upload_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123",
127
+ "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
128
+ }
129
+ ```
130
+
131
+ </details>
132
+
133
+ ---
134
+
135
+ ### `saveFileV2`
136
+
137
+ Saves a permanent file entity. Updates an existing file entity when `_id` is passed.
138
+
139
+ `POST /v2/files`
140
+
141
+ ```ts
142
+ const { data } = await client.saveFileV2(
143
+ {
144
+ activity_id: 'example',
145
+ fill_activity: true,
146
+ strict: true,
147
+ async: true,
148
+ delete_temp_file: true,
149
+ version_only: true,
150
+ },
151
+ {
152
+ _id: 'ef7d985c-2385-44f4-9c71-ae06a52264f8',
153
+ file_entity_id: 'string',
154
+ relations: [
155
+ {
156
+ entity_id: 'ef7d985c-2385-44f4-9c71-ae06a52264f8',
157
+ _schema: 'contact',
158
+ _tags: ['string']
159
+ }
160
+ ],
161
+ _tags: ['tag1', 'tag2'],
162
+ _purpose: ['8d396871-95a0-4c9d-bb4d-9eda9c35776c', 'da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8'],
163
+ _manifest: ['123e4567-e89b-12d3-a456-426614174000'],
164
+ filename: 'document.pdf',
165
+ type: 'document',
166
+ mime_type: 'application/pdf',
167
+ size_bytes: 1234,
168
+ readable_size: '1.2 MB',
169
+ access_control: 'private',
170
+ public_url: 'https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf',
171
+ custom_download_url: 'https://some-api-url.com/download?file_id=123',
172
+ s3ref: {}
173
+ },
174
+ )
175
+ ```
176
+
177
+ <details>
178
+ <summary>Response</summary>
179
+
180
+ ```json
181
+ {
182
+ "_title": "document.pdf",
183
+ "_schema": "file",
184
+ "_org": "123",
185
+ "_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8",
186
+ "_tags": ["tag1", "tag2"],
187
+ "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"],
188
+ "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
189
+ "filename": "document.pdf",
190
+ "type": "document",
191
+ "mime_type": "application/pdf",
192
+ "size_bytes": 1234,
193
+ "readable_size": "1.2 MB",
194
+ "access_control": "private",
195
+ "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",
196
+ "custom_download_url": "https://some-api-url.com/download?file_id=123",
197
+ "source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",
198
+ "s3ref": {},
199
+ "versions": [
200
+ {
201
+ "s3ref": {},
202
+ "filename": "document.pdf",
203
+ "size_bytes": 1234,
204
+ "readable_size": "1.2 MB",
205
+ "mime_type": "image/jpeg"
206
+ }
207
+ ],
208
+ "_updated_at": "1970-01-01T00:00:00.000Z",
209
+ "_created_at": "1970-01-01T00:00:00.000Z",
210
+ "_acl": {
211
+ "view": ["org:456"],
212
+ "edit": ["org:456"],
213
+ "delete": ["org:456"]
214
+ },
215
+ "_owners": [
216
+ {
217
+ "org_id": "123",
218
+ "user_id": "123"
219
+ }
220
+ ],
221
+ "__additional": {}
222
+ }
223
+ ```
224
+
225
+ </details>
226
+
227
+ ---
228
+
229
+ ### `getFile`
230
+
231
+ Get a file entity by id
232
+
233
+ `GET /v2/files/{id}`
234
+
235
+ ```ts
236
+ const { data } = await client.getFile({
237
+ id: '123e4567-e89b-12d3-a456-426614174000',
238
+ source_url: true,
239
+ strict: true,
240
+ async: true,
241
+ })
242
+ ```
243
+
244
+ <details>
245
+ <summary>Response</summary>
246
+
247
+ ```json
248
+ {
249
+ "_title": "document.pdf",
250
+ "_schema": "file",
251
+ "_org": "123",
252
+ "_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8",
253
+ "_tags": ["tag1", "tag2"],
254
+ "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"],
255
+ "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
256
+ "filename": "document.pdf",
257
+ "type": "document",
258
+ "mime_type": "application/pdf",
259
+ "size_bytes": 1234,
260
+ "readable_size": "1.2 MB",
261
+ "access_control": "private",
262
+ "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",
263
+ "custom_download_url": "https://some-api-url.com/download?file_id=123",
264
+ "source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",
265
+ "s3ref": {},
266
+ "versions": [
267
+ {
268
+ "s3ref": {},
269
+ "filename": "document.pdf",
270
+ "size_bytes": 1234,
271
+ "readable_size": "1.2 MB",
272
+ "mime_type": "image/jpeg"
273
+ }
274
+ ],
275
+ "_updated_at": "1970-01-01T00:00:00.000Z",
276
+ "_created_at": "1970-01-01T00:00:00.000Z",
277
+ "_acl": {
278
+ "view": ["org:456"],
279
+ "edit": ["org:456"],
280
+ "delete": ["org:456"]
281
+ },
282
+ "_owners": [
283
+ {
284
+ "org_id": "123",
285
+ "user_id": "123"
286
+ }
287
+ ],
288
+ "__additional": {}
289
+ }
290
+ ```
291
+
292
+ </details>
293
+
294
+ ---
295
+
296
+ ### `deleteFile`
297
+
298
+ Delete a file entity by id
299
+
300
+ `DELETE /v2/files/{id}`
301
+
302
+ ```ts
303
+ const { data } = await client.deleteFile({
304
+ id: '123e4567-e89b-12d3-a456-426614174000',
305
+ purge: true,
306
+ activity_id: 'example',
307
+ strict: true,
308
+ })
309
+ ```
310
+
311
+ <details>
312
+ <summary>Response</summary>
313
+
314
+ ```json
315
+ {
316
+ "_title": "document.pdf",
317
+ "_schema": "file",
318
+ "_org": "123",
319
+ "_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8",
320
+ "_tags": ["tag1", "tag2"],
321
+ "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"],
322
+ "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
323
+ "filename": "document.pdf",
324
+ "type": "document",
325
+ "mime_type": "application/pdf",
326
+ "size_bytes": 1234,
327
+ "readable_size": "1.2 MB",
328
+ "access_control": "private",
329
+ "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",
330
+ "custom_download_url": "https://some-api-url.com/download?file_id=123",
331
+ "source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",
332
+ "s3ref": {},
333
+ "versions": [
334
+ {
335
+ "s3ref": {},
336
+ "filename": "document.pdf",
337
+ "size_bytes": 1234,
338
+ "readable_size": "1.2 MB",
339
+ "mime_type": "image/jpeg"
340
+ }
341
+ ],
342
+ "_updated_at": "1970-01-01T00:00:00.000Z",
343
+ "_created_at": "1970-01-01T00:00:00.000Z",
344
+ "_acl": {
345
+ "view": ["org:456"],
346
+ "edit": ["org:456"],
347
+ "delete": ["org:456"]
348
+ },
349
+ "_owners": [
350
+ {
351
+ "org_id": "123",
352
+ "user_id": "123"
353
+ }
354
+ ],
355
+ "__additional": {}
356
+ }
357
+ ```
358
+
359
+ </details>
360
+
361
+ ---
362
+
363
+ ### `downloadFile`
364
+
365
+ Generate a pre-signed download URL for a file.
366
+
367
+ `GET /v1/files/{id}/download`
368
+
369
+ ```ts
370
+ const { data } = await client.downloadFile({
371
+ id: '123e4567-e89b-12d3-a456-426614174000',
372
+ version: 1,
373
+ attachment: true,
374
+ })
375
+ ```
376
+
377
+ <details>
378
+ <summary>Response</summary>
379
+
380
+ ```json
381
+ {
382
+ "download_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123"
383
+ }
384
+ ```
385
+
386
+ </details>
387
+
388
+ ---
389
+
390
+ ### `downloadS3File`
391
+
392
+ Generate a pre-signed download URL for a file using its S3 reference.
393
+
394
+ `POST /v1/files:downloadS3`
395
+
396
+ ```ts
397
+ const { data } = await client.downloadS3File({
398
+ s3_key: 'example',
399
+ s3_bucket: 'example',
400
+ attachment: true,
401
+ })
402
+ ```
403
+
404
+ <details>
405
+ <summary>Response</summary>
406
+
407
+ ```json
408
+ {
409
+ "download_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123"
410
+ }
411
+ ```
412
+
413
+ </details>
414
+
415
+ ---
416
+
417
+ ### `downloadFiles`
418
+
419
+ Bulk generate pre-signed download URLs for multiple files in a single request.
420
+
421
+ `POST /v1/files:downloadFiles`
422
+
423
+ ```ts
424
+ const { data } = await client.downloadFiles(
425
+ null,
426
+ [
427
+ {
428
+ id: 'ef7d985c-2385-44f4-9c71-ae06a52264f8',
429
+ version: 0
430
+ }
431
+ ],
432
+ )
433
+ ```
434
+
435
+ <details>
436
+ <summary>Response</summary>
437
+
438
+ ```json
439
+ [
440
+ {
441
+ "download_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123",
442
+ "file_entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
443
+ }
444
+ ]
445
+ ```
446
+
447
+ </details>
448
+
449
+ ---
450
+
451
+ ### `previewFile`
452
+
453
+ Generate a thumbnail preview for a file entity.
454
+
455
+ `GET /v1/files/{id}/preview`
456
+
457
+ ```ts
458
+ const { data } = await client.previewFile({
459
+ id: '123e4567-e89b-12d3-a456-426614174000',
460
+ version: 1,
461
+ w: 1,
462
+ h: 1,
463
+ })
464
+ ```
465
+
466
+ ---
467
+
468
+ ### `previewS3File`
469
+
470
+ Generate a thumbnail preview from an S3 reference.
471
+
472
+ `POST /v1/files:previewS3`
473
+
474
+ ```ts
475
+ const { data } = await client.previewS3File(
476
+ {
477
+ w: 1,
478
+ h: 1,
479
+ },
480
+ {},
481
+ )
482
+ ```
483
+
484
+ ---
485
+
486
+ ### `previewS3FileGet`
487
+
488
+ Get a thumbnail preview from an S3 reference using query parameters.
489
+
490
+ `GET /v1/files:previewS3`
491
+
492
+ ```ts
493
+ const { data } = await client.previewS3FileGet({
494
+ key: 'example',
495
+ bucket: 'example',
496
+ w: 1,
497
+ h: 1,
498
+ })
499
+ ```
500
+
501
+ ---
502
+
503
+ ### `previewPublicFile`
504
+
505
+ Generate a thumbnail preview for a public file entity.
506
+
507
+ `GET /v1/files/public/{id}/preview`
508
+
509
+ ```ts
510
+ const { data } = await client.previewPublicFile({
511
+ id: '123e4567-e89b-12d3-a456-426614174000',
512
+ version: 1,
513
+ w: 1,
514
+ h: 1,
515
+ org_id: 'example',
516
+ })
517
+ ```
518
+
519
+ ---
520
+
521
+ ### `getSession`
522
+
523
+ Start a browser session by converting a Bearer token into a server-side cookie.
524
+
525
+ `GET /v1/files/session`
526
+
527
+ ```ts
528
+ const { data } = await client.getSession()
529
+ ```
530
+
531
+ ---
532
+
533
+ ### `deleteSession`
534
+
535
+ End a browser session by deleting the token cookie.
536
+
537
+ `DELETE /v1/files/session`
538
+
539
+ ```ts
540
+ const { data } = await client.deleteSession()
541
+ ```
542
+
543
+ ---
544
+
545
+ ### `generatePublicLink`
546
+
547
+ Generate a public link to share a private file externally.
548
+
549
+ `POST /v1/files/{id}/public/links`
550
+
551
+ ```ts
552
+ const { data } = await client.generatePublicLink({
553
+ id: '123e4567-e89b-12d3-a456-426614174000',
554
+ })
555
+ ```
556
+
557
+ <details>
558
+ <summary>Response</summary>
559
+
560
+ ```json
561
+ "string"
562
+ ```
563
+
564
+ </details>
565
+
566
+ ---
567
+
568
+ ### `listPublicLinksForFile`
569
+
570
+ **Not yet implemented.**
571
+
572
+ `GET /v1/files/{id}/public/links`
573
+
574
+ ```ts
575
+ const { data } = await client.listPublicLinksForFile({
576
+ id: '123e4567-e89b-12d3-a456-426614174000',
577
+ })
578
+ ```
579
+
580
+ <details>
581
+ <summary>Response</summary>
582
+
583
+ ```json
584
+ {
585
+ "results": [
586
+ {
587
+ "id": "3ef5c6d9-818d-45e6-8efb-b1de59079a1c",
588
+ "link": "https://file.sls.epilot.io/v1/files/public/links/3ef5c6d9-818d-45e6-8efb-b1de59079a1c",
589
+ "last_accessed_at": "string"
590
+ }
591
+ ]
592
+ }
593
+ ```
594
+
595
+ </details>
596
+
597
+ ---
598
+
599
+ ### `accessPublicLink`
600
+
601
+ Access a file via its public link.
602
+
603
+ `GET /v1/files/public/links/{id}/{filename}`
604
+
605
+ ```ts
606
+ const { data } = await client.accessPublicLink({
607
+ id: '123e4567-e89b-12d3-a456-426614174000',
608
+ filename: 'example',
609
+ hash: 'example',
610
+ })
611
+ ```
612
+
613
+ ---
614
+
615
+ ### `revokePublicLink`
616
+
617
+ **Not yet implemented.**
618
+
619
+ `DELETE /v1/files/public/links/{id}`
620
+
621
+ ```ts
622
+ const { data } = await client.revokePublicLink({
623
+ id: '123e4567-e89b-12d3-a456-426614174000',
624
+ })
625
+ ```
626
+
627
+ ---
628
+
629
+ ### `verifyCustomDownloadUrl`
630
+
631
+ Verify that a custom download URL is valid and has not expired.
632
+
633
+ `POST /v1/files/download:verify`
634
+
635
+ ```ts
636
+ const { data } = await client.verifyCustomDownloadUrl(
637
+ null,
638
+ {
639
+ custom_download_url: 'https://some-api-url.com?file_id=123&expires_at=1699273500029&signature=abcdefg'
640
+ },
641
+ )
642
+ ```
643
+
644
+ <details>
645
+ <summary>Response</summary>
646
+
647
+ ```json
648
+ {
649
+ "valid": true
650
+ }
651
+ ```
652
+
653
+ </details>
654
+
655
+ ---
656
+
657
+ ### `uploadFilePublic`
658
+
659
+ Create a pre-signed S3 URL for uploading a file without authentication.
660
+
661
+ `POST /v1/files/public/upload`
662
+
663
+ ```ts
664
+ const { data } = await client.uploadFilePublic(
665
+ null,
666
+ {
667
+ filename: 'document.pdf',
668
+ mime_type: 'application/pdf',
669
+ index_tag: '2f6a377c8e78',
670
+ metadata: {
671
+ color: 'blue'
672
+ }
673
+ },
674
+ )
675
+ ```
676
+
677
+ <details>
678
+ <summary>Response</summary>
679
+
680
+ ```json
681
+ {
682
+ "s3ref": {
683
+ "bucket": "epilot-prod-user-content",
684
+ "key": "123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
685
+ },
686
+ "upload_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123",
687
+ "error": "File entity not found"
688
+ }
689
+ ```
690
+
691
+ </details>
692
+
693
+ ---
694
+
695
+ ### `getUserSchemaFileCollections`
696
+
697
+ Get all file collections for the current user within a specific schema.
698
+
699
+ `GET /v1/{slug}/collections`
700
+
701
+ ```ts
702
+ const { data } = await client.getUserSchemaFileCollections({
703
+ slug: 'example',
704
+ })
705
+ ```
706
+
707
+ <details>
708
+ <summary>Response</summary>
709
+
710
+ ```json
711
+ [
712
+ {
713
+ "slug": "_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234:documents",
714
+ "name": "Documents",
715
+ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
716
+ "parents": ["_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234"],
717
+ "starred": false,
718
+ "order": 0,
719
+ "enabled_locations": ["string"],
720
+ "enabled_purposes": ["9eefcb98-93cf-4c5b-a040-f1d26d57c177", "5c544c09-a691-43ed-a7fa-0a8b44b5b161"],
721
+ "created_at": "2024-01-01T12:00:00Z",
722
+ "updated_at": "2024-01-02T12:00:00Z"
723
+ }
724
+ ]
725
+ ```
726
+
727
+ </details>
728
+
729
+ ---
730
+
731
+ ### `createUserSchemaFileCollection`
732
+
733
+ Create a new file collection for the current user within a specific schema.
734
+
735
+ `POST /v1/{slug}/collections`
736
+
737
+ ```ts
738
+ const { data } = await client.createUserSchemaFileCollection(
739
+ {
740
+ slug: 'example',
741
+ },
742
+ {
743
+ name: 'string',
744
+ parents: ['string'],
745
+ starred: false,
746
+ enabled_locations: ['string'],
747
+ enabled_purposes: ['string']
748
+ },
749
+ )
750
+ ```
751
+
752
+ <details>
753
+ <summary>Response</summary>
754
+
755
+ ```json
756
+ {
757
+ "slug": "_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234:documents",
758
+ "name": "Documents",
759
+ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
760
+ "parents": ["_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234"],
761
+ "starred": false,
762
+ "order": 0,
763
+ "enabled_locations": ["string"],
764
+ "enabled_purposes": ["9eefcb98-93cf-4c5b-a040-f1d26d57c177", "5c544c09-a691-43ed-a7fa-0a8b44b5b161"],
765
+ "created_at": "2024-01-01T12:00:00Z",
766
+ "updated_at": "2024-01-02T12:00:00Z"
767
+ }
768
+ ```
769
+
770
+ </details>
771
+
772
+ ---
773
+
774
+ ### `updateUserSchemaFileCollection`
775
+
776
+ Update an existing file collection.
777
+
778
+ `PUT /v1/{slug}/collections/{collectionSlug}`
779
+
780
+ ```ts
781
+ const { data } = await client.updateUserSchemaFileCollection(
782
+ {
783
+ slug: 'example',
784
+ collectionSlug: 'example',
785
+ },
786
+ {
787
+ name: 'string',
788
+ parents: ['string'],
789
+ starred: false,
790
+ enabled_locations: ['string'],
791
+ enabled_purposes: ['string']
792
+ },
793
+ )
794
+ ```
795
+
796
+ <details>
797
+ <summary>Response</summary>
798
+
799
+ ```json
800
+ {
801
+ "slug": "_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234:documents",
802
+ "name": "Documents",
803
+ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
804
+ "parents": ["_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234"],
805
+ "starred": false,
806
+ "order": 0,
807
+ "enabled_locations": ["string"],
808
+ "enabled_purposes": ["9eefcb98-93cf-4c5b-a040-f1d26d57c177", "5c544c09-a691-43ed-a7fa-0a8b44b5b161"],
809
+ "created_at": "2024-01-01T12:00:00Z",
810
+ "updated_at": "2024-01-02T12:00:00Z"
811
+ }
812
+ ```
813
+
814
+ </details>
815
+
816
+ ---
817
+
818
+ ### `deleteUserSchemaFileCollection`
819
+
820
+ Delete a file collection.
821
+
822
+ `DELETE /v1/{slug}/collections/{collectionSlug}`
823
+
824
+ ```ts
825
+ const { data } = await client.deleteUserSchemaFileCollection({
826
+ slug: 'example',
827
+ collectionSlug: 'example',
828
+ })
829
+ ```
830
+
831
+ ---
832
+
833
+ ### `getFilesInCollection`
834
+
835
+ Get all files within a specific collection for an entity.
836
+
837
+ `GET /v1/entity/{id}/collections/{collectionSlug}/files`
838
+
839
+ ```ts
840
+ const { data } = await client.getFilesInCollection({
841
+ id: '123e4567-e89b-12d3-a456-426614174000',
842
+ collectionSlug: 'example',
843
+ })
844
+ ```
845
+
846
+ <details>
847
+ <summary>Response</summary>
848
+
849
+ ```json
850
+ [
851
+ {
852
+ "_title": "document.pdf",
853
+ "_schema": "file",
854
+ "_org": "123",
855
+ "_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8",
856
+ "_tags": ["tag1", "tag2"],
857
+ "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"],
858
+ "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
859
+ "filename": "document.pdf",
860
+ "type": "document",
861
+ "mime_type": "application/pdf",
862
+ "size_bytes": 1234,
863
+ "readable_size": "1.2 MB",
864
+ "access_control": "private",
865
+ "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",
866
+ "custom_download_url": "https://some-api-url.com/download?file_id=123",
867
+ "source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",
868
+ "s3ref": {},
869
+ "versions": [
870
+ {
871
+ "s3ref": {},
872
+ "filename": "document.pdf",
873
+ "size_bytes": 1234,
874
+ "readable_size": "1.2 MB",
875
+ "mime_type": "image/jpeg"
876
+ }
877
+ ],
878
+ "_updated_at": "1970-01-01T00:00:00.000Z",
879
+ "_created_at": "1970-01-01T00:00:00.000Z",
880
+ "_acl": {
881
+ "view": ["org:456"],
882
+ "edit": ["org:456"],
883
+ "delete": ["org:456"]
884
+ },
885
+ "_owners": [
886
+ {
887
+ "org_id": "123",
888
+ "user_id": "123"
889
+ }
890
+ ],
891
+ "__additional": {}
892
+ }
893
+ ]
894
+ ```
895
+
896
+ </details>
897
+
898
+ ---
899
+
900
+ ### `getGlobalFileCollections`
901
+
902
+ Get all global file collections for a specific schema.
903
+
904
+ `GET /v1/collections/{schemaSlug}`
905
+
906
+ ```ts
907
+ const { data } = await client.getGlobalFileCollections({
908
+ schemaSlug: 'example',
909
+ })
910
+ ```
911
+
912
+ <details>
913
+ <summary>Response</summary>
914
+
915
+ ```json
916
+ [
917
+ {
918
+ "slug": "_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234:documents",
919
+ "name": "Documents",
920
+ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
921
+ "parents": ["_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234"],
922
+ "starred": false,
923
+ "order": 0,
924
+ "enabled_locations": ["string"],
925
+ "enabled_purposes": ["9eefcb98-93cf-4c5b-a040-f1d26d57c177", "5c544c09-a691-43ed-a7fa-0a8b44b5b161"],
926
+ "created_at": "2024-01-01T12:00:00Z",
927
+ "updated_at": "2024-01-02T12:00:00Z"
928
+ }
929
+ ]
930
+ ```
931
+
932
+ </details>
933
+
934
+ ---
935
+
936
+ ## Schemas
937
+
938
+ ### `EntityId`
939
+
940
+ ```ts
941
+ type EntityId = string
942
+ ```
943
+
944
+ ### `EntitySlug`
945
+
946
+ URL-friendly identifier for the entity schema
947
+
948
+ ```ts
949
+ type EntitySlug = string
950
+ ```
951
+
952
+ ### `ActivityId`
953
+
954
+ See https://github.com/ulid/spec
955
+
956
+ ```ts
957
+ type ActivityId = string // ulid
958
+ ```
959
+
960
+ ### `FileEntityId`
961
+
962
+ ```ts
963
+ type FileEntityId = string | string // uuid
964
+ ```
965
+
966
+ ### `FileAttributes`
967
+
968
+ ```ts
969
+ type FileAttributes = {
970
+ _tags?: string[]
971
+ _purpose?: string[]
972
+ _manifest?: string // uuid[]
973
+ filename?: string
974
+ type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"
975
+ mime_type?: string
976
+ size_bytes?: number
977
+ readable_size?: string
978
+ access_control?: "private" | "public-read"
979
+ public_url?: string // url
980
+ custom_download_url?: string // uri
981
+ }
982
+ ```
983
+
984
+ ### `FileType`
985
+
986
+ ```ts
987
+ type FileType = "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"
988
+ ```
989
+
990
+ ### `CustomDownloadUrl`
991
+
992
+ Custom external download url used for the file
993
+
994
+ ```ts
995
+ type CustomDownloadUrl = string // uri
996
+ ```
997
+
998
+ ### `FileEntity`
999
+
1000
+ ```ts
1001
+ type FileEntity = {
1002
+ _title: string
1003
+ _schema: "file"
1004
+ _org: string
1005
+ _id: string | string // uuid
1006
+ _tags?: string[]
1007
+ _purpose?: string[]
1008
+ _manifest?: string // uuid[]
1009
+ filename: string
1010
+ type: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"
1011
+ mime_type?: string
1012
+ size_bytes?: number
1013
+ readable_size?: string
1014
+ access_control: "private" | "public-read"
1015
+ public_url?: string // url
1016
+ custom_download_url?: string // uri
1017
+ source_url?: string
1018
+ s3ref?: object
1019
+ versions: Array<{
1020
+ s3ref?: unknown
1021
+ filename?: string
1022
+ size_bytes?: number
1023
+ readable_size?: string
1024
+ mime_type?: string
1025
+ }>
1026
+ _updated_at?: string // date-time
1027
+ _created_at?: string // date-time
1028
+ _acl?: {
1029
+ view?: string[]
1030
+ edit?: string[]
1031
+ delete?: string[]
1032
+ }
1033
+ _owners?: Array<{
1034
+ org_id: string
1035
+ user_id?: string
1036
+ }>
1037
+ __additional?: Record<string, unknown>
1038
+ }
1039
+ ```
1040
+
1041
+ ### `CommonSaveFilePayload`
1042
+
1043
+ ```ts
1044
+ type CommonSaveFilePayload = {
1045
+ _id?: object
1046
+ file_entity_id?: string
1047
+ relations?: Array<{
1048
+ entity_id: string
1049
+ _schema?: string
1050
+ _tags?: string[]
1051
+ }>
1052
+ }
1053
+ ```
1054
+
1055
+ ### `SaveS3FilePayload`
1056
+
1057
+ ```ts
1058
+ type SaveS3FilePayload = {
1059
+ _id?: object
1060
+ file_entity_id?: string
1061
+ relations?: Array<{
1062
+ entity_id: string
1063
+ _schema?: string
1064
+ _tags?: string[]
1065
+ }>
1066
+ _tags?: string[]
1067
+ _purpose?: string[]
1068
+ _manifest?: string // uuid[]
1069
+ filename?: string
1070
+ type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"
1071
+ mime_type?: string
1072
+ size_bytes?: number
1073
+ readable_size?: string
1074
+ access_control?: "private" | "public-read"
1075
+ public_url?: string // url
1076
+ custom_download_url?: string // uri
1077
+ s3ref?: unknown
1078
+ }
1079
+ ```
1080
+
1081
+ ### `SaveFileFromSourceURLPayload`
1082
+
1083
+ ```ts
1084
+ type SaveFileFromSourceURLPayload = {
1085
+ _id?: object
1086
+ file_entity_id?: string
1087
+ relations?: Array<{
1088
+ entity_id: string
1089
+ _schema?: string
1090
+ _tags?: string[]
1091
+ }>
1092
+ _tags?: string[]
1093
+ _purpose?: string[]
1094
+ _manifest?: string // uuid[]
1095
+ filename?: string
1096
+ type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"
1097
+ mime_type?: string
1098
+ size_bytes?: number
1099
+ readable_size?: string
1100
+ access_control?: "private" | "public-read"
1101
+ public_url?: string // url
1102
+ custom_download_url?: string // uri
1103
+ source_url?: string // uri
1104
+ }
1105
+ ```
1106
+
1107
+ ### `SaveCustomFilePayload`
1108
+
1109
+ ```ts
1110
+ type SaveCustomFilePayload = {
1111
+ _id?: object
1112
+ file_entity_id?: string
1113
+ relations?: Array<{
1114
+ entity_id: string
1115
+ _schema?: string
1116
+ _tags?: string[]
1117
+ }>
1118
+ _tags?: string[]
1119
+ _purpose?: string[]
1120
+ _manifest?: string // uuid[]
1121
+ filename?: string
1122
+ type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"
1123
+ mime_type?: string
1124
+ size_bytes?: number
1125
+ readable_size?: string
1126
+ access_control?: "private" | "public-read"
1127
+ public_url?: string // url
1128
+ custom_download_url?: string // uri
1129
+ }
1130
+ ```
1131
+
1132
+ ### `SaveFilePayload`
1133
+
1134
+ ```ts
1135
+ type SaveFilePayload = {
1136
+ _id?: object
1137
+ file_entity_id?: string
1138
+ relations?: Array<{
1139
+ entity_id: string
1140
+ _schema?: string
1141
+ _tags?: string[]
1142
+ }>
1143
+ _tags?: string[]
1144
+ _purpose?: string[]
1145
+ _manifest?: string // uuid[]
1146
+ filename?: string
1147
+ type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"
1148
+ mime_type?: string
1149
+ size_bytes?: number
1150
+ readable_size?: string
1151
+ access_control?: "private" | "public-read"
1152
+ public_url?: string // url
1153
+ custom_download_url?: string // uri
1154
+ s3ref?: unknown
1155
+ } | {
1156
+ _id?: object
1157
+ file_entity_id?: string
1158
+ relations?: Array<{
1159
+ entity_id: string
1160
+ _schema?: string
1161
+ _tags?: string[]
1162
+ }>
1163
+ _tags?: string[]
1164
+ _purpose?: string[]
1165
+ _manifest?: string // uuid[]
1166
+ filename?: string
1167
+ type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"
1168
+ mime_type?: string
1169
+ size_bytes?: number
1170
+ readable_size?: string
1171
+ access_control?: "private" | "public-read"
1172
+ public_url?: string // url
1173
+ custom_download_url?: string // uri
1174
+ source_url?: string // uri
1175
+ } | {
1176
+ _id?: object
1177
+ file_entity_id?: string
1178
+ relations?: Array<{
1179
+ entity_id: string
1180
+ _schema?: string
1181
+ _tags?: string[]
1182
+ }>
1183
+ _tags?: string[]
1184
+ _purpose?: string[]
1185
+ _manifest?: string // uuid[]
1186
+ filename?: string
1187
+ type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"
1188
+ mime_type?: string
1189
+ size_bytes?: number
1190
+ readable_size?: string
1191
+ access_control?: "private" | "public-read"
1192
+ public_url?: string // url
1193
+ custom_download_url?: string // uri
1194
+ }
1195
+ ```
1196
+
1197
+ ### `SaveFilePayloadV2`
1198
+
1199
+ ```ts
1200
+ type SaveFilePayloadV2 = {
1201
+ _id?: object
1202
+ file_entity_id?: string
1203
+ relations?: Array<{
1204
+ entity_id: string
1205
+ _schema?: string
1206
+ _tags?: string[]
1207
+ }>
1208
+ _tags?: string[]
1209
+ _purpose?: string[]
1210
+ _manifest?: string // uuid[]
1211
+ filename?: string
1212
+ type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"
1213
+ mime_type?: string
1214
+ size_bytes?: number
1215
+ readable_size?: string
1216
+ access_control?: "private" | "public-read"
1217
+ public_url?: string // url
1218
+ custom_download_url?: string // uri
1219
+ s3ref?: unknown
1220
+ } | {
1221
+ _id?: object
1222
+ file_entity_id?: string
1223
+ relations?: Array<{
1224
+ entity_id: string
1225
+ _schema?: string
1226
+ _tags?: string[]
1227
+ }>
1228
+ _tags?: string[]
1229
+ _purpose?: string[]
1230
+ _manifest?: string // uuid[]
1231
+ filename?: string
1232
+ type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"
1233
+ mime_type?: string
1234
+ size_bytes?: number
1235
+ readable_size?: string
1236
+ access_control?: "private" | "public-read"
1237
+ public_url?: string // url
1238
+ custom_download_url?: string // uri
1239
+ source_url?: string // uri
1240
+ } | {
1241
+ _id?: object
1242
+ file_entity_id?: string
1243
+ relations?: Array<{
1244
+ entity_id: string
1245
+ _schema?: string
1246
+ _tags?: string[]
1247
+ }>
1248
+ _tags?: string[]
1249
+ _purpose?: string[]
1250
+ _manifest?: string // uuid[]
1251
+ filename?: string
1252
+ type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"
1253
+ mime_type?: string
1254
+ size_bytes?: number
1255
+ readable_size?: string
1256
+ access_control?: "private" | "public-read"
1257
+ public_url?: string // url
1258
+ custom_download_url?: string // uri
1259
+ }
1260
+ ```
1261
+
1262
+ ### `BatchSaveFileVersionPayload`
1263
+
1264
+ Payload for batch version save. Only s3ref payloads are supported.
1265
+
1266
+ ```ts
1267
+ type BatchSaveFileVersionPayload = {
1268
+ _id?: object
1269
+ file_entity_id?: string
1270
+ filename?: string
1271
+ mime_type?: string
1272
+ access_control?: "private" | "public-read"
1273
+ s3ref: unknown
1274
+ }
1275
+ ```
1276
+
1277
+ ### `UploadFilePayload`
1278
+
1279
+ ```ts
1280
+ type UploadFilePayload = {
1281
+ filename: string
1282
+ mime_type?: string
1283
+ index_tag?: string
1284
+ metadata?: Record<string, string>
1285
+ }
1286
+ ```
1287
+
1288
+ ### `FileUpload`
1289
+
1290
+ ```ts
1291
+ type FileUpload = {
1292
+ s3ref?: object
1293
+ upload_url?: string // url
1294
+ public_url?: string // url
1295
+ }
1296
+ ```
1297
+
1298
+ ### `DownloadFilesPayload`
1299
+
1300
+ ```ts
1301
+ type DownloadFilesPayload = Array<{
1302
+ id: string | string // uuid
1303
+ version?: number
1304
+ }>
1305
+ ```
1306
+
1307
+ ### `VerifyCustomDownloadUrlPayload`
1308
+
1309
+ ```ts
1310
+ type VerifyCustomDownloadUrlPayload = {
1311
+ custom_download_url: string
1312
+ }
1313
+ ```
1314
+
1315
+ ### `S3Reference`
1316
+
1317
+ ```ts
1318
+ type S3Reference = {
1319
+ bucket: string
1320
+ key: string
1321
+ }
1322
+ ```
1323
+
1324
+ ### `S3Ref`
1325
+
1326
+ ```ts
1327
+ type S3Ref = {
1328
+ bucket: string
1329
+ key: string
1330
+ }
1331
+ ```
1332
+
1333
+ ### `FileItem`
1334
+
1335
+ ```ts
1336
+ type FileItem = {
1337
+ s3ref?: unknown
1338
+ filename?: string
1339
+ size_bytes?: number
1340
+ readable_size?: string
1341
+ mime_type?: string
1342
+ }
1343
+ ```
1344
+
1345
+ ### `FileRelationItem`
1346
+
1347
+ ```ts
1348
+ type FileRelationItem = {
1349
+ entity_id: string
1350
+ _schema?: string
1351
+ _tags?: string[]
1352
+ }
1353
+ ```
1354
+
1355
+ ### `PublicLink`
1356
+
1357
+ ```ts
1358
+ type PublicLink = {
1359
+ id?: string
1360
+ link?: string
1361
+ last_accessed_at?: string
1362
+ }
1363
+ ```
1364
+
1365
+ ### `BaseEntityOwner`
1366
+
1367
+ The user / organization owning this entity.
1368
+
1369
+ Note: Owner implicitly has access to the entity regardless of ACLs.
1370
+
1371
+
1372
+ ```ts
1373
+ type BaseEntityOwner = {
1374
+ org_id: string
1375
+ user_id?: string
1376
+ }
1377
+ ```
1378
+
1379
+ ### `BaseEntityAcl`
1380
+
1381
+ Access control list (ACL) for an entity. Defines sharing access to external orgs or users.
1382
+
1383
+ ```ts
1384
+ type BaseEntityAcl = {
1385
+ view?: string[]
1386
+ edit?: string[]
1387
+ delete?: string[]
1388
+ }
1389
+ ```
1390
+
1391
+ ### `ErrorObject`
1392
+
1393
+ A generic error returned by the API
1394
+
1395
+ ```ts
1396
+ type ErrorObject = {
1397
+ status?: number
1398
+ error?: string
1399
+ }
1400
+ ```
1401
+
1402
+ ### `FileCollectionId`
1403
+
1404
+ Generated uuid for a file collection
1405
+
1406
+ ```ts
1407
+ type FileCollectionId = string // uuid
1408
+ ```
1409
+
1410
+ ### `FileCollectionItem`
1411
+
1412
+ A file collection with identifiers and timestamps
1413
+
1414
+ ```ts
1415
+ type FileCollectionItem = {
1416
+ slug?: string
1417
+ name: string
1418
+ id?: string // uuid
1419
+ parents?: string[]
1420
+ starred?: boolean
1421
+ order?: number
1422
+ enabled_locations?: string[]
1423
+ enabled_purposes?: string[]
1424
+ created_at?: string // date-time
1425
+ updated_at?: string // date-time
1426
+ }
1427
+ ```
1428
+
1429
+ ### `FileCollectionAttributes`
1430
+
1431
+ ```ts
1432
+ type FileCollectionAttributes = {
1433
+ name?: string
1434
+ parents?: string[]
1435
+ starred?: boolean
1436
+ enabled_locations?: string[]
1437
+ enabled_purposes?: string[]
1438
+ }
1439
+ ```
1440
+
1441
+ ### `FileCollectionCreateRequest`
1442
+
1443
+ Request body for creating a file collection
1444
+
1445
+ ```ts
1446
+ type FileCollectionCreateRequest = {
1447
+ name: string
1448
+ parents?: string[]
1449
+ starred?: boolean
1450
+ enabled_locations?: string[]
1451
+ enabled_purposes?: string[]
1452
+ }
1453
+ ```