@epilot/sdk 2.8.0-rc.0 → 2.8.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 (293) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +0 -1
  3. package/definitions/automation.json +120 -0
  4. package/definitions/blueprint-manifest-runtime.json +1 -1
  5. package/definitions/blueprint-manifest.json +744 -20
  6. package/definitions/customer-portal-runtime.json +1 -1
  7. package/definitions/customer-portal.json +317 -26
  8. package/definitions/design.json +51 -1
  9. package/definitions/event-catalog-runtime.json +1 -1
  10. package/definitions/event-catalog.json +168 -12
  11. package/definitions/file-runtime.json +1 -1
  12. package/definitions/file.json +152 -4
  13. package/definitions/integration-toolkit-runtime.json +1 -1
  14. package/definitions/integration-toolkit.json +782 -13
  15. package/definitions/notes-runtime.json +1 -1
  16. package/definitions/notes.json +123 -1
  17. package/definitions/pricing.json +224 -406
  18. package/definitions/targeting-runtime.json +1 -1
  19. package/definitions/targeting.json +257 -7
  20. package/definitions/webhooks.json +31 -0
  21. package/dist/README-46VYEGGW.js +7 -0
  22. package/dist/README-IVBISSWB.cjs +7 -0
  23. package/dist/{_index-YTOJUFGD.js → _index-5FB6F5YY.js} +0 -3
  24. package/dist/{_index-HTUXYSTD.cjs → _index-DB2VV4PQ.cjs} +1 -4
  25. package/dist/apis/access-token.cjs +6 -6
  26. package/dist/apis/access-token.js +1 -1
  27. package/dist/apis/address-suggestions.cjs +6 -6
  28. package/dist/apis/address-suggestions.js +1 -1
  29. package/dist/apis/address.cjs +6 -6
  30. package/dist/apis/address.js +1 -1
  31. package/dist/apis/ai-agents.cjs +6 -6
  32. package/dist/apis/ai-agents.js +1 -1
  33. package/dist/apis/app.cjs +6 -6
  34. package/dist/apis/app.js +1 -1
  35. package/dist/apis/audit-logs.cjs +6 -6
  36. package/dist/apis/audit-logs.js +1 -1
  37. package/dist/apis/automation.cjs +6 -6
  38. package/dist/apis/automation.d.cts +2 -2
  39. package/dist/apis/automation.d.ts +2 -2
  40. package/dist/apis/automation.js +1 -1
  41. package/dist/apis/billing.cjs +6 -6
  42. package/dist/apis/billing.js +1 -1
  43. package/dist/apis/blueprint-manifest.cjs +8 -8
  44. package/dist/apis/blueprint-manifest.d.cts +2 -2
  45. package/dist/apis/blueprint-manifest.d.ts +2 -2
  46. package/dist/apis/blueprint-manifest.js +2 -2
  47. package/dist/apis/calendar.cjs +6 -6
  48. package/dist/apis/calendar.js +1 -1
  49. package/dist/apis/configuration-hub.cjs +6 -6
  50. package/dist/apis/configuration-hub.js +1 -1
  51. package/dist/apis/consent.cjs +6 -6
  52. package/dist/apis/consent.js +1 -1
  53. package/dist/apis/customer-portal.cjs +8 -8
  54. package/dist/apis/customer-portal.d.cts +2 -2
  55. package/dist/apis/customer-portal.d.ts +2 -2
  56. package/dist/apis/customer-portal.js +2 -2
  57. package/dist/apis/dashboard.cjs +6 -6
  58. package/dist/apis/dashboard.js +1 -1
  59. package/dist/apis/data-governance.cjs +6 -6
  60. package/dist/apis/data-governance.js +1 -1
  61. package/dist/apis/deduplication.cjs +6 -6
  62. package/dist/apis/deduplication.js +1 -1
  63. package/dist/apis/design.cjs +6 -6
  64. package/dist/apis/design.d.cts +2 -2
  65. package/dist/apis/design.d.ts +2 -2
  66. package/dist/apis/design.js +1 -1
  67. package/dist/apis/document.cjs +6 -6
  68. package/dist/apis/document.js +1 -1
  69. package/dist/apis/email-settings.cjs +6 -6
  70. package/dist/apis/email-settings.js +1 -1
  71. package/dist/apis/email-template.cjs +6 -6
  72. package/dist/apis/email-template.js +1 -1
  73. package/dist/apis/entity-mapping.cjs +6 -6
  74. package/dist/apis/entity-mapping.js +1 -1
  75. package/dist/apis/entity.cjs +6 -6
  76. package/dist/apis/entity.js +1 -1
  77. package/dist/apis/environments.cjs +6 -6
  78. package/dist/apis/environments.js +1 -1
  79. package/dist/apis/event-catalog.cjs +8 -8
  80. package/dist/apis/event-catalog.d.cts +2 -2
  81. package/dist/apis/event-catalog.d.ts +2 -2
  82. package/dist/apis/event-catalog.js +2 -2
  83. package/dist/apis/file.cjs +8 -8
  84. package/dist/apis/file.d.cts +2 -2
  85. package/dist/apis/file.d.ts +2 -2
  86. package/dist/apis/file.js +2 -2
  87. package/dist/apis/iban.cjs +6 -6
  88. package/dist/apis/iban.js +1 -1
  89. package/dist/apis/integration-toolkit.cjs +8 -8
  90. package/dist/apis/integration-toolkit.d.cts +2 -2
  91. package/dist/apis/integration-toolkit.d.ts +2 -2
  92. package/dist/apis/integration-toolkit.js +2 -2
  93. package/dist/apis/journey.cjs +6 -6
  94. package/dist/apis/journey.js +1 -1
  95. package/dist/apis/kanban.cjs +6 -6
  96. package/dist/apis/kanban.js +1 -1
  97. package/dist/apis/message.cjs +6 -6
  98. package/dist/apis/message.js +1 -1
  99. package/dist/apis/metering.cjs +6 -6
  100. package/dist/apis/metering.js +1 -1
  101. package/dist/apis/notes.cjs +8 -8
  102. package/dist/apis/notes.d.cts +2 -2
  103. package/dist/apis/notes.d.ts +2 -2
  104. package/dist/apis/notes.js +2 -2
  105. package/dist/apis/notification.cjs +6 -6
  106. package/dist/apis/notification.js +1 -1
  107. package/dist/apis/organization.cjs +6 -6
  108. package/dist/apis/organization.js +1 -1
  109. package/dist/apis/partner-directory.cjs +6 -6
  110. package/dist/apis/partner-directory.js +1 -1
  111. package/dist/apis/permissions.cjs +6 -6
  112. package/dist/apis/permissions.js +1 -1
  113. package/dist/apis/pricing-tier.cjs +6 -6
  114. package/dist/apis/pricing-tier.js +1 -1
  115. package/dist/apis/pricing.cjs +6 -6
  116. package/dist/apis/pricing.d.cts +2 -2
  117. package/dist/apis/pricing.d.ts +2 -2
  118. package/dist/apis/pricing.js +1 -1
  119. package/dist/apis/purpose.cjs +6 -6
  120. package/dist/apis/purpose.js +1 -1
  121. package/dist/apis/query.cjs +6 -6
  122. package/dist/apis/query.js +1 -1
  123. package/dist/apis/sandbox.cjs +6 -6
  124. package/dist/apis/sandbox.js +1 -1
  125. package/dist/apis/sharing.cjs +6 -6
  126. package/dist/apis/sharing.js +1 -1
  127. package/dist/apis/submission.cjs +6 -6
  128. package/dist/apis/submission.js +1 -1
  129. package/dist/apis/target.cjs +6 -6
  130. package/dist/apis/target.js +1 -1
  131. package/dist/apis/targeting.cjs +8 -8
  132. package/dist/apis/targeting.d.cts +2 -2
  133. package/dist/apis/targeting.d.ts +2 -2
  134. package/dist/apis/targeting.js +2 -2
  135. package/dist/apis/template-variables.cjs +6 -6
  136. package/dist/apis/template-variables.js +1 -1
  137. package/dist/apis/user.cjs +6 -6
  138. package/dist/apis/user.js +1 -1
  139. package/dist/apis/validation-rules.cjs +6 -6
  140. package/dist/apis/validation-rules.js +1 -1
  141. package/dist/apis/webhooks.cjs +6 -6
  142. package/dist/apis/webhooks.d.cts +2 -2
  143. package/dist/apis/webhooks.d.ts +2 -2
  144. package/dist/apis/webhooks.js +1 -1
  145. package/dist/apis/workflow-definition.cjs +6 -6
  146. package/dist/apis/workflow-definition.js +1 -1
  147. package/dist/apis/workflow.cjs +6 -6
  148. package/dist/apis/workflow.js +1 -1
  149. package/dist/automation-S6NFS5KU.cjs +7 -0
  150. package/dist/automation-W75XZG7B.js +7 -0
  151. package/dist/{automation.d-Du6-uiz5.d.cts → automation.d-DS_YXDE8.d.cts} +300 -1
  152. package/dist/{automation.d-Du6-uiz5.d.ts → automation.d-DS_YXDE8.d.ts} +300 -1
  153. package/dist/blueprint-manifest-6DEYW5MW.js +7 -0
  154. package/dist/blueprint-manifest-GCV7H74X.cjs +7 -0
  155. package/dist/{blueprint-manifest-runtime-QN2IECSA.cjs → blueprint-manifest-runtime-EIDOROIQ.cjs} +2 -2
  156. package/dist/{blueprint-manifest-runtime-5UN52LW5.js → blueprint-manifest-runtime-FRLU3ZSF.js} +1 -1
  157. package/dist/{blueprint-manifest.d-BPyzoR0X.d.ts → blueprint-manifest.d-B8yDxagC.d.cts} +572 -6
  158. package/dist/{blueprint-manifest.d-BPyzoR0X.d.cts → blueprint-manifest.d-B8yDxagC.d.ts} +572 -6
  159. package/dist/chunk-4M5V6BIT.cjs +14 -0
  160. package/dist/chunk-4YBWMDFP.js +14 -0
  161. package/dist/{chunk-KJPOUJBU.cjs → chunk-5ZXGKLB6.cjs} +1 -1
  162. package/dist/{chunk-PTEJYAYJ.js → chunk-774ASAAH.js} +1 -1
  163. package/dist/{chunk-WM74R3BD.js → chunk-7V7ECXTZ.js} +1 -1
  164. package/dist/{chunk-54KWFSCM.js → chunk-ALMZO57K.js} +21 -23
  165. package/dist/chunk-FDS727SL.cjs +14 -0
  166. package/dist/{chunk-4FFGRWLS.cjs → chunk-I53TWOTX.cjs} +1 -1
  167. package/dist/chunk-LSPXLT3A.js +14 -0
  168. package/dist/chunk-M4FO2MI4.js +14 -0
  169. package/dist/chunk-MCK2QUSD.cjs +14 -0
  170. package/dist/chunk-NGHCQ2FA.cjs +14 -0
  171. package/dist/chunk-RDVFQOCQ.js +14 -0
  172. package/dist/{chunk-RW5JOHG7.js → chunk-WIQXF7DD.js} +1 -1
  173. package/dist/{chunk-F5Z6I7TF.cjs → chunk-WPBRWQPL.cjs} +21 -23
  174. package/dist/{chunk-M2SSGV7K.cjs → chunk-ZOQUGWQL.cjs} +1 -1
  175. package/dist/customer-portal-4DXHY42V.js +7 -0
  176. package/dist/customer-portal-5OSGSYGF.cjs +7 -0
  177. package/dist/{customer-portal-runtime-IYHJ3RME.cjs → customer-portal-runtime-HA6CPWB4.cjs} +2 -2
  178. package/dist/{customer-portal-runtime-ZYU3WIXY.js → customer-portal-runtime-TDHV2YVY.js} +1 -1
  179. package/dist/{customer-portal.d-CTTCBAZI.d.cts → customer-portal.d-BRwiQehb.d.cts} +763 -31
  180. package/dist/{customer-portal.d-CTTCBAZI.d.ts → customer-portal.d-BRwiQehb.d.ts} +763 -31
  181. package/dist/data-governance-2U5UU4GM.cjs +7 -0
  182. package/dist/data-governance-36Y33JVG.js +7 -0
  183. package/dist/design-DUFBH5ZB.js +7 -0
  184. package/dist/design-W3D3UPGB.cjs +7 -0
  185. package/dist/{design.d-BRre8iLg.d.ts → design.d-DzSDu8cy.d.cts} +41 -3
  186. package/dist/{design.d-BRre8iLg.d.cts → design.d-DzSDu8cy.d.ts} +41 -3
  187. package/dist/event-catalog-3YOQ46ZW.js +7 -0
  188. package/dist/event-catalog-HLWUT7RM.cjs +7 -0
  189. package/dist/{event-catalog-runtime-N262TQ3Y.js → event-catalog-runtime-JUSLF3UR.js} +1 -1
  190. package/dist/{event-catalog-runtime-B2BPKQVG.cjs → event-catalog-runtime-RH7542GL.cjs} +2 -2
  191. package/dist/{event-catalog.d-mQJLSYUo.d.ts → event-catalog.d-CXbUn8T1.d.cts} +199 -36
  192. package/dist/{event-catalog.d-mQJLSYUo.d.cts → event-catalog.d-CXbUn8T1.d.ts} +199 -36
  193. package/dist/file-2MSILSPP.cjs +7 -0
  194. package/dist/file-JVFTT5RZ.js +7 -0
  195. package/dist/file-runtime-7AWKNQU6.cjs +5 -0
  196. package/dist/{file-runtime-BIRMXYRH.js → file-runtime-DKGFS44O.js} +1 -1
  197. package/dist/{file.d-DTlrbI40.d.cts → file.d-BjlMgTwj.d.cts} +218 -5
  198. package/dist/{file.d-DTlrbI40.d.ts → file.d-BjlMgTwj.d.ts} +218 -5
  199. package/dist/index.cjs +27 -35
  200. package/dist/index.d.cts +56 -58
  201. package/dist/index.d.ts +56 -58
  202. package/dist/index.js +16 -24
  203. package/dist/integration-toolkit-27Z3VZBZ.cjs +7 -0
  204. package/dist/integration-toolkit-NRLZZFVS.js +7 -0
  205. package/dist/{integration-toolkit-runtime-YHTU4X5J.cjs → integration-toolkit-runtime-FY7QVFL6.cjs} +2 -2
  206. package/dist/{integration-toolkit-runtime-YR4CIMKH.js → integration-toolkit-runtime-HCJ5QLCR.js} +1 -1
  207. package/dist/{integration-toolkit.d-BstNqiJb.d.cts → integration-toolkit.d-BW9RK5G-.d.cts} +1672 -27
  208. package/dist/{integration-toolkit.d-BstNqiJb.d.ts → integration-toolkit.d-BW9RK5G-.d.ts} +1672 -27
  209. package/dist/js-yaml-DLCVPJ7G.js +0 -0
  210. package/dist/notes-6JESMRLW.js +7 -0
  211. package/dist/notes-SLEUSNP4.cjs +7 -0
  212. package/dist/{notes-runtime-CVNAVKPP.js → notes-runtime-I4SWR3PZ.js} +1 -1
  213. package/dist/notes-runtime-YWTRRNH5.cjs +5 -0
  214. package/dist/{notes.d-BcV_m5fe.d.cts → notes.d-rbcyHfiB.d.cts} +101 -3
  215. package/dist/{notes.d-BcV_m5fe.d.ts → notes.d-rbcyHfiB.d.ts} +101 -3
  216. package/dist/pricing-5Y7TZHMR.js +7 -0
  217. package/dist/pricing-BJUABPHU.cjs +7 -0
  218. package/dist/{pricing.d-BHpMU4KU.d.cts → pricing.d-gPt5L7wp.d.cts} +151 -280
  219. package/dist/{pricing.d-BHpMU4KU.d.ts → pricing.d-gPt5L7wp.d.ts} +151 -280
  220. package/dist/targeting-DAFJBPIZ.cjs +7 -0
  221. package/dist/targeting-TGPCRRI6.js +7 -0
  222. package/dist/{targeting-runtime-M2VSTKFT.js → targeting-runtime-D5YUPZQM.js} +1 -1
  223. package/dist/{targeting-runtime-6JFMP262.cjs → targeting-runtime-MLMOM7CK.cjs} +2 -2
  224. package/dist/{targeting.d-BNmcVsNS.d.cts → targeting.d-DxHQbn7-.d.cts} +197 -3
  225. package/dist/{targeting.d-BNmcVsNS.d.ts → targeting.d-DxHQbn7-.d.ts} +197 -3
  226. package/dist/webhooks-6CUXSTPH.cjs +7 -0
  227. package/dist/webhooks-DTNKNJEN.js +7 -0
  228. package/dist/{webhooks.d-ByePoUWs.d.cts → webhooks.d-DKZOMj1P.d.cts} +37 -0
  229. package/dist/{webhooks.d-ByePoUWs.d.ts → webhooks.d-DKZOMj1P.d.ts} +37 -0
  230. package/docs/automation.md +180 -37
  231. package/docs/blueprint-manifest.md +728 -68
  232. package/docs/customer-portal.md +465 -56
  233. package/docs/data-governance.md +17 -17
  234. package/docs/design.md +80 -3
  235. package/docs/event-catalog.md +126 -13
  236. package/docs/file.md +113 -0
  237. package/docs/integration-toolkit.md +488 -19
  238. package/docs/notes.md +47 -1
  239. package/docs/pricing.md +290 -219
  240. package/docs/targeting.md +158 -4
  241. package/docs/webhooks.md +11 -2
  242. package/package.json +11 -21
  243. package/definitions/focus-pocus-runtime.json +0 -1
  244. package/definitions/focus-pocus.json +0 -757
  245. package/dist/README-37TXN4EL.cjs +0 -7
  246. package/dist/README-Z2WITBOR.js +0 -7
  247. package/dist/apis/focus-pocus.cjs +0 -38
  248. package/dist/apis/focus-pocus.d.cts +0 -18
  249. package/dist/apis/focus-pocus.d.ts +0 -18
  250. package/dist/apis/focus-pocus.js +0 -38
  251. package/dist/automation-BMO7ZFTN.cjs +0 -7
  252. package/dist/automation-MEZTSUR3.js +0 -7
  253. package/dist/blueprint-manifest-DBEY5PPI.js +0 -7
  254. package/dist/blueprint-manifest-IEQ6YBY7.cjs +0 -7
  255. package/dist/chunk-3APTSPY4.js +0 -14
  256. package/dist/chunk-5WNEYQII.cjs +0 -14
  257. package/dist/chunk-A6FYGWQ7.cjs +0 -14
  258. package/dist/chunk-BTTPWE2P.js +0 -14
  259. package/dist/chunk-CBDKPGO5.cjs +0 -14
  260. package/dist/chunk-L544VG3B.cjs +0 -14
  261. package/dist/chunk-O2YVXGPZ.js +0 -14
  262. package/dist/chunk-OCMIXJWC.js +0 -14
  263. package/dist/chunk-OPXGJKZR.cjs +0 -14
  264. package/dist/chunk-P42Q6HOW.js +0 -14
  265. package/dist/customer-portal-DR6XFCTQ.js +0 -7
  266. package/dist/customer-portal-PNFBVIAH.cjs +0 -7
  267. package/dist/data-governance-QYFHBCNB.cjs +0 -7
  268. package/dist/data-governance-YS2NA6W4.js +0 -7
  269. package/dist/design-EWZQZ5KX.js +0 -7
  270. package/dist/design-MUUYXB2J.cjs +0 -7
  271. package/dist/event-catalog-37B6JC7G.js +0 -7
  272. package/dist/event-catalog-5JBHJJ2I.cjs +0 -7
  273. package/dist/file-P2FUUER2.js +0 -7
  274. package/dist/file-XTY74SIX.cjs +0 -7
  275. package/dist/file-runtime-24S3QPA7.cjs +0 -5
  276. package/dist/focus-pocus-JGXH42OF.cjs +0 -7
  277. package/dist/focus-pocus-XVDVUYL6.js +0 -7
  278. package/dist/focus-pocus-runtime-QXBBYVX7.js +0 -5
  279. package/dist/focus-pocus-runtime-X6GQ3WI4.cjs +0 -5
  280. package/dist/focus-pocus.d-BRFGe53G.d.cts +0 -489
  281. package/dist/focus-pocus.d-BRFGe53G.d.ts +0 -489
  282. package/dist/integration-toolkit-3I3IPVFN.cjs +0 -7
  283. package/dist/integration-toolkit-XAFQXNQY.js +0 -7
  284. package/dist/notes-K2IIFCX3.cjs +0 -7
  285. package/dist/notes-Q7JGS7O3.js +0 -7
  286. package/dist/notes-runtime-E3YYF74V.cjs +0 -5
  287. package/dist/pricing-R5ENSVPQ.cjs +0 -7
  288. package/dist/pricing-X27CCRI6.js +0 -7
  289. package/dist/targeting-74BV7F7H.cjs +0 -7
  290. package/dist/targeting-W5EKJYR2.js +0 -7
  291. package/dist/webhooks-NZHJBT64.js +0 -7
  292. package/dist/webhooks-SK2STDKR.cjs +0 -7
  293. package/docs/focus-pocus.md +0 -460
@@ -0,0 +1,7 @@
1
+ import "./chunk-YPSWSI3M.js";
2
+
3
+ // src/docs/file.json
4
+ var file_default = '# File API\n\n- **Base URL:** `https://file.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/file](https://docs.epilot.io/api/file)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.file.uploadFileV2(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/file\'\n\nconst fileClient = getClient()\nauthorize(fileClient, () => \'<token>\')\nconst { data } = await fileClient.uploadFileV2(...)\n```\n\n## Operations\n\n**File**\n- [`uploadFileV2`](#uploadfilev2)\n- [`saveFileV2`](#savefilev2)\n- [`getFile`](#getfile)\n- [`deleteFile`](#deletefile)\n- [`downloadFile`](#downloadfile)\n- [`downloadS3File`](#downloads3file)\n- [`downloadFiles`](#downloadfiles)\n- [`createZipJob`](#createzipjob)\n- [`getZipJob`](#getzipjob)\n- [`generateFileSummary`](#generatefilesummary)\n- [`verifyCustomDownloadUrl`](#verifycustomdownloadurl)\n- [`uploadFilePublic`](#uploadfilepublic)\n\n**Preview**\n- [`previewFile`](#previewfile)\n- [`previewS3File`](#previews3file)\n- [`previewS3FileGet`](#previews3fileget)\n- [`previewPublicFile`](#previewpublicfile)\n\n**Session**\n- [`getSession`](#getsession)\n- [`deleteSession`](#deletesession)\n\n**Public Links**\n- [`generatePublicLink`](#generatepubliclink)\n- [`listPublicLinksForFile`](#listpubliclinksforfile)\n- [`accessPublicLink`](#accesspubliclink)\n- [`revokePublicLink`](#revokepubliclink)\n\n**File Collections**\n- [`getUserSchemaFileCollections`](#getuserschemafilecollections)\n- [`createUserSchemaFileCollection`](#createuserschemafilecollection)\n- [`updateUserSchemaFileCollection`](#updateuserschemafilecollection)\n- [`deleteUserSchemaFileCollection`](#deleteuserschemafilecollection)\n- [`getFilesInCollection`](#getfilesincollection)\n- [`getGlobalFileCollections`](#getglobalfilecollections)\n\n**Schemas**\n- [`EntityId`](#entityid)\n- [`EntitySlug`](#entityslug)\n- [`ActivityId`](#activityid)\n- [`FileEntityId`](#fileentityid)\n- [`FileAttributes`](#fileattributes)\n- [`FileType`](#filetype)\n- [`FileSummaryStatus`](#filesummarystatus)\n- [`FileSummaryGenerationStatus`](#filesummarygenerationstatus)\n- [`CustomDownloadUrl`](#customdownloadurl)\n- [`FileEntity`](#fileentity)\n- [`CommonSaveFilePayload`](#commonsavefilepayload)\n- [`SaveS3FilePayload`](#saves3filepayload)\n- [`SaveFileFromSourceURLPayload`](#savefilefromsourceurlpayload)\n- [`SaveCustomFilePayload`](#savecustomfilepayload)\n- [`SaveFilePayload`](#savefilepayload)\n- [`SaveFilePayloadV2`](#savefilepayloadv2)\n- [`BatchSaveFileVersionPayload`](#batchsavefileversionpayload)\n- [`UploadFilePayload`](#uploadfilepayload)\n- [`FileUpload`](#fileupload)\n- [`DownloadFilesPayload`](#downloadfilespayload)\n- [`CreateZipJobPayload`](#createzipjobpayload)\n- [`ZipJob`](#zipjob)\n- [`VerifyCustomDownloadUrlPayload`](#verifycustomdownloadurlpayload)\n- [`S3Reference`](#s3reference)\n- [`S3Ref`](#s3ref)\n- [`FileItem`](#fileitem)\n- [`FileRelationItem`](#filerelationitem)\n- [`PublicLink`](#publiclink)\n- [`BaseEntityOwner`](#baseentityowner)\n- [`BaseEntityAcl`](#baseentityacl)\n- [`ErrorObject`](#errorobject)\n- [`FileCollectionId`](#filecollectionid)\n- [`FileCollectionItem`](#filecollectionitem)\n- [`FileCollectionAttributes`](#filecollectionattributes)\n- [`FileCollectionCreateRequest`](#filecollectioncreaterequest)\n\n### `uploadFileV2`\n\nCreate pre-signed S3 URL to upload a file to keep temporarily (one week).\n\n`POST /v2/files/upload`\n\n```ts\nconst { data } = await client.uploadFileV2(\n {\n file_entity_id: \'example\',\n },\n {\n filename: \'document.pdf\',\n mime_type: \'application/pdf\',\n index_tag: \'2f6a377c8e78\',\n metadata: {\n color: \'blue\'\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "s3ref": {\n "bucket": "epilot-prod-user-content",\n "key": "123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"\n },\n "upload_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123",\n "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"\n}\n```\n\n</details>\n\n---\n\n### `saveFileV2`\n\nSaves a permanent file entity. Updates an existing file entity when `_id` is passed.\n\n`POST /v2/files`\n\n```ts\nconst { data } = await client.saveFileV2(\n {\n activity_id: \'example\',\n fill_activity: true,\n strict: true,\n async: true,\n delete_temp_file: true,\n version_only: true,\n },\n {\n _id: \'ef7d985c-2385-44f4-9c71-ae06a52264f8\',\n file_entity_id: \'string\',\n relations: [\n {\n entity_id: \'ef7d985c-2385-44f4-9c71-ae06a52264f8\',\n _schema: \'contact\',\n _tags: [\'string\']\n }\n ],\n _tags: [\'tag1\', \'tag2\'],\n _purpose: [\'8d396871-95a0-4c9d-bb4d-9eda9c35776c\', \'da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8\'],\n _manifest: [\'123e4567-e89b-12d3-a456-426614174000\'],\n filename: \'document.pdf\',\n type: \'document\',\n mime_type: \'application/pdf\',\n size_bytes: 1234,\n readable_size: \'1.2 MB\',\n access_control: \'private\',\n public_url: \'https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf\',\n custom_download_url: \'https://some-api-url.com/download?file_id=123\',\n preview_summary_de: \'string\',\n short_summary_de: \'string\',\n preview_summary_en: \'string\',\n short_summary_en: \'string\',\n summary_status: \'processing\',\n s3ref: {}\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "_title": "document.pdf",\n "_schema": "file",\n "_org": "123",\n "_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8",\n "_tags": ["tag1", "tag2"],\n "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"],\n "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],\n "filename": "document.pdf",\n "type": "document",\n "mime_type": "application/pdf",\n "size_bytes": 1234,\n "readable_size": "1.2 MB",\n "access_control": "private",\n "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",\n "custom_download_url": "https://some-api-url.com/download?file_id=123",\n "preview_summary_de": "string",\n "short_summary_de": "string",\n "preview_summary_en": "string",\n "short_summary_en": "string",\n "summary_status": "processing",\n "source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",\n "s3ref": {},\n "versions": [\n {\n "s3ref": {},\n "filename": "document.pdf",\n "size_bytes": 1234,\n "readable_size": "1.2 MB",\n "mime_type": "image/jpeg"\n }\n ],\n "_updated_at": "1970-01-01T00:00:00.000Z",\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_acl": {\n "view": ["org:456"],\n "edit": ["org:456"],\n "delete": ["org:456"]\n },\n "_owners": [\n {\n "org_id": "123",\n "user_id": "123"\n }\n ],\n "__additional": {}\n}\n```\n\n</details>\n\n---\n\n### `getFile`\n\nGet a file entity by id\n\n`GET /v2/files/{id}`\n\n```ts\nconst { data } = await client.getFile({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n source_url: true,\n strict: true,\n async: true,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "_title": "document.pdf",\n "_schema": "file",\n "_org": "123",\n "_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8",\n "_tags": ["tag1", "tag2"],\n "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"],\n "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],\n "filename": "document.pdf",\n "type": "document",\n "mime_type": "application/pdf",\n "size_bytes": 1234,\n "readable_size": "1.2 MB",\n "access_control": "private",\n "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",\n "custom_download_url": "https://some-api-url.com/download?file_id=123",\n "preview_summary_de": "string",\n "short_summary_de": "string",\n "preview_summary_en": "string",\n "short_summary_en": "string",\n "summary_status": "processing",\n "source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",\n "s3ref": {},\n "versions": [\n {\n "s3ref": {},\n "filename": "document.pdf",\n "size_bytes": 1234,\n "readable_size": "1.2 MB",\n "mime_type": "image/jpeg"\n }\n ],\n "_updated_at": "1970-01-01T00:00:00.000Z",\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_acl": {\n "view": ["org:456"],\n "edit": ["org:456"],\n "delete": ["org:456"]\n },\n "_owners": [\n {\n "org_id": "123",\n "user_id": "123"\n }\n ],\n "__additional": {}\n}\n```\n\n</details>\n\n---\n\n### `deleteFile`\n\nDelete a file entity by id\n\n`DELETE /v2/files/{id}`\n\n```ts\nconst { data } = await client.deleteFile({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n purge: true,\n activity_id: \'example\',\n strict: true,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "_title": "document.pdf",\n "_schema": "file",\n "_org": "123",\n "_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8",\n "_tags": ["tag1", "tag2"],\n "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"],\n "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],\n "filename": "document.pdf",\n "type": "document",\n "mime_type": "application/pdf",\n "size_bytes": 1234,\n "readable_size": "1.2 MB",\n "access_control": "private",\n "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",\n "custom_download_url": "https://some-api-url.com/download?file_id=123",\n "preview_summary_de": "string",\n "short_summary_de": "string",\n "preview_summary_en": "string",\n "short_summary_en": "string",\n "summary_status": "processing",\n "source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",\n "s3ref": {},\n "versions": [\n {\n "s3ref": {},\n "filename": "document.pdf",\n "size_bytes": 1234,\n "readable_size": "1.2 MB",\n "mime_type": "image/jpeg"\n }\n ],\n "_updated_at": "1970-01-01T00:00:00.000Z",\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_acl": {\n "view": ["org:456"],\n "edit": ["org:456"],\n "delete": ["org:456"]\n },\n "_owners": [\n {\n "org_id": "123",\n "user_id": "123"\n }\n ],\n "__additional": {}\n}\n```\n\n</details>\n\n---\n\n### `downloadFile`\n\nGenerate a pre-signed download URL for a file.\n\n`GET /v1/files/{id}/download`\n\n```ts\nconst { data } = await client.downloadFile({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n version: 1,\n attachment: true,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "download_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123"\n}\n```\n\n</details>\n\n---\n\n### `downloadS3File`\n\nGenerate a pre-signed download URL for a file using its S3 reference.\n\n`POST /v1/files:downloadS3`\n\n```ts\nconst { data } = await client.downloadS3File({\n s3_key: \'example\',\n s3_bucket: \'example\',\n attachment: true,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "download_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123"\n}\n```\n\n</details>\n\n---\n\n### `downloadFiles`\n\nBulk generate pre-signed download URLs for multiple files in a single request.\n\n`POST /v1/files:downloadFiles`\n\n```ts\nconst { data } = await client.downloadFiles(\n null,\n [\n {\n id: \'ef7d985c-2385-44f4-9c71-ae06a52264f8\',\n version: 0\n }\n ],\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n[\n {\n "download_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123",\n "file_entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"\n }\n]\n```\n\n</details>\n\n---\n\n### `createZipJob`\n\nCreate a background job to ZIP multiple files and send a download link via email.\n\n`POST /v1/files:zipJob`\n\n```ts\nconst { data } = await client.createZipJob(\n null,\n {},\n)\n```\n\n---\n\n### `getZipJob`\n\nGet the status of a ZIP job\n\n`GET /v1/files:zipJob/{job_id}`\n\n```ts\nconst { data } = await client.getZipJob({\n job_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "status": "completed",\n "progress": {\n "total_files": 100,\n "downloaded_files": 75,\n "failed_files": 2\n },\n "result": {\n "file_entity_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8",\n "download_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/files.zip?X-Amz-...",\n "expires_at": "2024-01-02T12:00:00Z",\n "zip_size_bytes": 104857600\n },\n "error": "Failed to download file: access denied",\n "created_at": "2024-01-01T12:00:00Z",\n "created_by": "10234",\n "org_id": "123",\n "updated_at": "2024-01-01T12:05:00Z"\n}\n```\n\n</details>\n\n---\n\n### `generateFileSummary`\n\nRequest AI generation of preview and short summaries for a file entity.\n\n`POST /v1/files/{id}/summary:generate`\n\n```ts\nconst { data } = await client.generateFileSummary({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `previewFile`\n\nGenerate a thumbnail preview for a file entity.\n\n`GET /v1/files/{id}/preview`\n\n```ts\nconst { data } = await client.previewFile({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n version: 1,\n w: 1,\n h: 1,\n})\n```\n\n---\n\n### `previewS3File`\n\nGenerate a thumbnail preview from an S3 reference.\n\n`POST /v1/files:previewS3`\n\n```ts\nconst { data } = await client.previewS3File(\n {\n w: 1,\n h: 1,\n },\n {},\n)\n```\n\n---\n\n### `previewS3FileGet`\n\nGet a thumbnail preview from an S3 reference using query parameters.\n\n`GET /v1/files:previewS3`\n\n```ts\nconst { data } = await client.previewS3FileGet({\n key: \'example\',\n bucket: \'example\',\n w: 1,\n h: 1,\n})\n```\n\n---\n\n### `previewPublicFile`\n\nGenerate a thumbnail preview for a public file entity.\n\n`GET /v1/files/public/{id}/preview`\n\n```ts\nconst { data } = await client.previewPublicFile({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n version: 1,\n w: 1,\n h: 1,\n org_id: \'example\',\n})\n```\n\n---\n\n### `getSession`\n\nStart a browser session by converting a Bearer token into a server-side cookie.\n\n`GET /v1/files/session`\n\n```ts\nconst { data } = await client.getSession()\n```\n\n---\n\n### `deleteSession`\n\nEnd a browser session by deleting the token cookie.\n\n`DELETE /v1/files/session`\n\n```ts\nconst { data } = await client.deleteSession()\n```\n\n---\n\n### `generatePublicLink`\n\nGenerate a public link to share a private file externally.\n\n`POST /v1/files/{id}/public/links`\n\n```ts\nconst { data } = await client.generatePublicLink({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n"string"\n```\n\n</details>\n\n---\n\n### `listPublicLinksForFile`\n\nFetches all public links previously generated for a file\n\n`GET /v1/files/{id}/public/links`\n\n```ts\nconst { data } = await client.listPublicLinksForFile({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "id": "3ef5c6d9-818d-45e6-8efb-b1de59079a1c",\n "link": "https://file.sls.epilot.io/v1/files/public/links/3ef5c6d9-818d-45e6-8efb-b1de59079a1c",\n "last_accessed_at": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `accessPublicLink`\n\nAccess a file via its public link.\n\n`GET /v1/files/public/links/{id}/{filename}`\n\n```ts\nconst { data } = await client.accessPublicLink({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n filename: \'example\',\n hash: \'example\',\n})\n```\n\n---\n\n### `revokePublicLink`\n\nRevokes a given public link by ID\n\n`DELETE /v1/files/public/links/{id}`\n\n```ts\nconst { data } = await client.revokePublicLink({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `verifyCustomDownloadUrl`\n\nVerify that a custom download URL is valid and has not expired.\n\n`POST /v1/files/download:verify`\n\n```ts\nconst { data } = await client.verifyCustomDownloadUrl(\n null,\n {\n custom_download_url: \'https://some-api-url.com?file_id=123&expires_at=1699273500029&signature=abcdefg\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "valid": true\n}\n```\n\n</details>\n\n---\n\n### `uploadFilePublic`\n\nCreate a pre-signed S3 URL for uploading a file without authentication.\n\n`POST /v1/files/public/upload`\n\n```ts\nconst { data } = await client.uploadFilePublic(\n null,\n {\n filename: \'document.pdf\',\n mime_type: \'application/pdf\',\n index_tag: \'2f6a377c8e78\',\n metadata: {\n color: \'blue\'\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "s3ref": {\n "bucket": "epilot-prod-user-content",\n "key": "123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"\n },\n "upload_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123",\n "error": "File entity not found"\n}\n```\n\n</details>\n\n---\n\n### `getUserSchemaFileCollections`\n\nGet all file collections for the current user within a specific schema.\n\n`GET /v1/{slug}/collections`\n\n```ts\nconst { data } = await client.getUserSchemaFileCollections({\n slug: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n[\n {\n "slug": "_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234:documents",\n "name": "Documents",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "parents": ["_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234"],\n "starred": false,\n "order": 0,\n "enabled_locations": ["string"],\n "enabled_purposes": ["9eefcb98-93cf-4c5b-a040-f1d26d57c177", "5c544c09-a691-43ed-a7fa-0a8b44b5b161"],\n "created_at": "2024-01-01T12:00:00Z",\n "updated_at": "2024-01-02T12:00:00Z"\n }\n]\n```\n\n</details>\n\n---\n\n### `createUserSchemaFileCollection`\n\nCreate a new file collection for the current user within a specific schema.\n\n`POST /v1/{slug}/collections`\n\n```ts\nconst { data } = await client.createUserSchemaFileCollection(\n {\n slug: \'example\',\n },\n {\n name: \'string\',\n parents: [\'string\'],\n starred: false,\n enabled_locations: [\'string\'],\n enabled_purposes: [\'string\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "slug": "_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234:documents",\n "name": "Documents",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "parents": ["_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234"],\n "starred": false,\n "order": 0,\n "enabled_locations": ["string"],\n "enabled_purposes": ["9eefcb98-93cf-4c5b-a040-f1d26d57c177", "5c544c09-a691-43ed-a7fa-0a8b44b5b161"],\n "created_at": "2024-01-01T12:00:00Z",\n "updated_at": "2024-01-02T12:00:00Z"\n}\n```\n\n</details>\n\n---\n\n### `updateUserSchemaFileCollection`\n\nUpdate an existing file collection.\n\n`PUT /v1/{slug}/collections/{collectionSlug}`\n\n```ts\nconst { data } = await client.updateUserSchemaFileCollection(\n {\n slug: \'example\',\n collectionSlug: \'example\',\n },\n {\n name: \'string\',\n parents: [\'string\'],\n starred: false,\n enabled_locations: [\'string\'],\n enabled_purposes: [\'string\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "slug": "_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234:documents",\n "name": "Documents",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "parents": ["_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234"],\n "starred": false,\n "order": 0,\n "enabled_locations": ["string"],\n "enabled_purposes": ["9eefcb98-93cf-4c5b-a040-f1d26d57c177", "5c544c09-a691-43ed-a7fa-0a8b44b5b161"],\n "created_at": "2024-01-01T12:00:00Z",\n "updated_at": "2024-01-02T12:00:00Z"\n}\n```\n\n</details>\n\n---\n\n### `deleteUserSchemaFileCollection`\n\nDelete a file collection.\n\n`DELETE /v1/{slug}/collections/{collectionSlug}`\n\n```ts\nconst { data } = await client.deleteUserSchemaFileCollection({\n slug: \'example\',\n collectionSlug: \'example\',\n})\n```\n\n---\n\n### `getFilesInCollection`\n\nGet all files within a specific collection for an entity.\n\n`GET /v1/entity/{id}/collections/{collectionSlug}/files`\n\n```ts\nconst { data } = await client.getFilesInCollection({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n collectionSlug: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n[\n {\n "_title": "document.pdf",\n "_schema": "file",\n "_org": "123",\n "_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8",\n "_tags": ["tag1", "tag2"],\n "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"],\n "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],\n "filename": "document.pdf",\n "type": "document",\n "mime_type": "application/pdf",\n "size_bytes": 1234,\n "readable_size": "1.2 MB",\n "access_control": "private",\n "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",\n "custom_download_url": "https://some-api-url.com/download?file_id=123",\n "preview_summary_de": "string",\n "short_summary_de": "string",\n "preview_summary_en": "string",\n "short_summary_en": "string",\n "summary_status": "processing",\n "source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",\n "s3ref": {},\n "versions": [\n {\n "s3ref": {},\n "filename": "document.pdf",\n "size_bytes": 1234,\n "readable_size": "1.2 MB",\n "mime_type": "image/jpeg"\n }\n ],\n "_updated_at": "1970-01-01T00:00:00.000Z",\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_acl": {\n "view": ["org:456"],\n "edit": ["org:456"],\n "delete": ["org:456"]\n },\n "_owners": [\n {\n "org_id": "123",\n "user_id": "123"\n }\n ],\n "__additional": {}\n }\n]\n```\n\n</details>\n\n---\n\n### `getGlobalFileCollections`\n\nGet all global file collections for a specific schema.\n\n`GET /v1/collections/{schemaSlug}`\n\n```ts\nconst { data } = await client.getGlobalFileCollections({\n schemaSlug: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n[\n {\n "slug": "_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234:documents",\n "name": "Documents",\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "parents": ["_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234"],\n "starred": false,\n "order": 0,\n "enabled_locations": ["string"],\n "enabled_purposes": ["9eefcb98-93cf-4c5b-a040-f1d26d57c177", "5c544c09-a691-43ed-a7fa-0a8b44b5b161"],\n "created_at": "2024-01-01T12:00:00Z",\n "updated_at": "2024-01-02T12:00:00Z"\n }\n]\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `EntityId`\n\n```ts\ntype EntityId = string\n```\n\n### `EntitySlug`\n\nURL-friendly identifier for the entity schema\n\n```ts\ntype EntitySlug = string\n```\n\n### `ActivityId`\n\nSee https://github.com/ulid/spec\n\n```ts\ntype ActivityId = string // ulid\n```\n\n### `FileEntityId`\n\n```ts\ntype FileEntityId = string | string // uuid\n```\n\n### `FileAttributes`\n\n```ts\ntype FileAttributes = {\n _tags?: string[]\n _purpose?: string[]\n _manifest?: string // uuid[]\n filename?: string\n type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"\n mime_type?: string\n size_bytes?: number\n readable_size?: string\n access_control?: "private" | "public-read"\n public_url?: string // url\n custom_download_url?: string // uri\n preview_summary_de?: string\n short_summary_de?: string\n preview_summary_en?: string\n short_summary_en?: string\n summary_status?: "processing" | "completed" | "failed" | "unsupported"\n}\n```\n\n### `FileType`\n\n```ts\ntype FileType = "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"\n```\n\n### `FileSummaryStatus`\n\nCurrent AI summary generation state for the file.\n\n```ts\ntype FileSummaryStatus = "processing" | "completed" | "failed" | "unsupported"\n```\n\n### `FileSummaryGenerationStatus`\n\n```ts\ntype FileSummaryGenerationStatus = {\n status: "processing" | "completed" | "failed" | "unsupported"\n}\n```\n\n### `CustomDownloadUrl`\n\nCustom external download url used for the file\n\n```ts\ntype CustomDownloadUrl = string // uri\n```\n\n### `FileEntity`\n\n```ts\ntype FileEntity = {\n _title: string\n _schema: "file"\n _org: string\n _id: string | string // uuid\n _tags?: string[]\n _purpose?: string[]\n _manifest?: string // uuid[]\n filename: string\n type: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"\n mime_type?: string\n size_bytes?: number\n readable_size?: string\n access_control: "private" | "public-read"\n public_url?: string // url\n custom_download_url?: string // uri\n preview_summary_de?: string\n short_summary_de?: string\n preview_summary_en?: string\n short_summary_en?: string\n summary_status?: "processing" | "completed" | "failed" | "unsupported"\n source_url?: string\n s3ref?: object\n versions: Array<{\n s3ref?: unknown\n filename?: string\n size_bytes?: number\n readable_size?: string\n mime_type?: string\n }>\n _updated_at?: string // date-time\n _created_at?: string // date-time\n _acl?: {\n view?: string[]\n edit?: string[]\n delete?: string[]\n }\n _owners?: Array<{\n org_id: string\n user_id?: string\n }>\n __additional?: Record<string, unknown>\n}\n```\n\n### `CommonSaveFilePayload`\n\n```ts\ntype CommonSaveFilePayload = {\n _id?: object\n file_entity_id?: string\n relations?: Array<{\n entity_id: string\n _schema?: string\n _tags?: string[]\n }>\n}\n```\n\n### `SaveS3FilePayload`\n\n```ts\ntype SaveS3FilePayload = {\n _id?: object\n file_entity_id?: string\n relations?: Array<{\n entity_id: string\n _schema?: string\n _tags?: string[]\n }>\n _tags?: string[]\n _purpose?: string[]\n _manifest?: string // uuid[]\n filename?: string\n type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"\n mime_type?: string\n size_bytes?: number\n readable_size?: string\n access_control?: "private" | "public-read"\n public_url?: string // url\n custom_download_url?: string // uri\n preview_summary_de?: string\n short_summary_de?: string\n preview_summary_en?: string\n short_summary_en?: string\n summary_status?: "processing" | "completed" | "failed" | "unsupported"\n s3ref?: unknown\n}\n```\n\n### `SaveFileFromSourceURLPayload`\n\n```ts\ntype SaveFileFromSourceURLPayload = {\n _id?: object\n file_entity_id?: string\n relations?: Array<{\n entity_id: string\n _schema?: string\n _tags?: string[]\n }>\n _tags?: string[]\n _purpose?: string[]\n _manifest?: string // uuid[]\n filename?: string\n type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"\n mime_type?: string\n size_bytes?: number\n readable_size?: string\n access_control?: "private" | "public-read"\n public_url?: string // url\n custom_download_url?: string // uri\n preview_summary_de?: string\n short_summary_de?: string\n preview_summary_en?: string\n short_summary_en?: string\n summary_status?: "processing" | "completed" | "failed" | "unsupported"\n source_url?: string // uri\n}\n```\n\n### `SaveCustomFilePayload`\n\n```ts\ntype SaveCustomFilePayload = {\n _id?: object\n file_entity_id?: string\n relations?: Array<{\n entity_id: string\n _schema?: string\n _tags?: string[]\n }>\n _tags?: string[]\n _purpose?: string[]\n _manifest?: string // uuid[]\n filename?: string\n type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"\n mime_type?: string\n size_bytes?: number\n readable_size?: string\n access_control?: "private" | "public-read"\n public_url?: string // url\n custom_download_url?: string // uri\n preview_summary_de?: string\n short_summary_de?: string\n preview_summary_en?: string\n short_summary_en?: string\n summary_status?: "processing" | "completed" | "failed" | "unsupported"\n}\n```\n\n### `SaveFilePayload`\n\n```ts\ntype SaveFilePayload = {\n _id?: object\n file_entity_id?: string\n relations?: Array<{\n entity_id: string\n _schema?: string\n _tags?: string[]\n }>\n _tags?: string[]\n _purpose?: string[]\n _manifest?: string // uuid[]\n filename?: string\n type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"\n mime_type?: string\n size_bytes?: number\n readable_size?: string\n access_control?: "private" | "public-read"\n public_url?: string // url\n custom_download_url?: string // uri\n preview_summary_de?: string\n short_summary_de?: string\n preview_summary_en?: string\n short_summary_en?: string\n summary_status?: "processing" | "completed" | "failed" | "unsupported"\n s3ref?: unknown\n} | {\n _id?: object\n file_entity_id?: string\n relations?: Array<{\n entity_id: string\n _schema?: string\n _tags?: string[]\n }>\n _tags?: string[]\n _purpose?: string[]\n _manifest?: string // uuid[]\n filename?: string\n type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"\n mime_type?: string\n size_bytes?: number\n readable_size?: string\n access_control?: "private" | "public-read"\n public_url?: string // url\n custom_download_url?: string // uri\n preview_summary_de?: string\n short_summary_de?: string\n preview_summary_en?: string\n short_summary_en?: string\n summary_status?: "processing" | "completed" | "failed" | "unsupported"\n source_url?: string // uri\n} | {\n _id?: object\n file_entity_id?: string\n relations?: Array<{\n entity_id: string\n _schema?: string\n _tags?: string[]\n }>\n _tags?: string[]\n _purpose?: string[]\n _manifest?: string // uuid[]\n filename?: string\n type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"\n mime_type?: string\n size_bytes?: number\n readable_size?: string\n access_control?: "private" | "public-read"\n public_url?: string // url\n custom_download_url?: string // uri\n preview_summary_de?: string\n short_summary_de?: string\n preview_summary_en?: string\n short_summary_en?: string\n summary_status?: "processing" | "completed" | "failed" | "unsupported"\n}\n```\n\n### `SaveFilePayloadV2`\n\n```ts\ntype SaveFilePayloadV2 = {\n _id?: object\n file_entity_id?: string\n relations?: Array<{\n entity_id: string\n _schema?: string\n _tags?: string[]\n }>\n _tags?: string[]\n _purpose?: string[]\n _manifest?: string // uuid[]\n filename?: string\n type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"\n mime_type?: string\n size_bytes?: number\n readable_size?: string\n access_control?: "private" | "public-read"\n public_url?: string // url\n custom_download_url?: string // uri\n preview_summary_de?: string\n short_summary_de?: string\n preview_summary_en?: string\n short_summary_en?: string\n summary_status?: "processing" | "completed" | "failed" | "unsupported"\n s3ref?: unknown\n} | {\n _id?: object\n file_entity_id?: string\n relations?: Array<{\n entity_id: string\n _schema?: string\n _tags?: string[]\n }>\n _tags?: string[]\n _purpose?: string[]\n _manifest?: string // uuid[]\n filename?: string\n type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"\n mime_type?: string\n size_bytes?: number\n readable_size?: string\n access_control?: "private" | "public-read"\n public_url?: string // url\n custom_download_url?: string // uri\n preview_summary_de?: string\n short_summary_de?: string\n preview_summary_en?: string\n short_summary_en?: string\n summary_status?: "processing" | "completed" | "failed" | "unsupported"\n source_url?: string // uri\n} | {\n _id?: object\n file_entity_id?: string\n relations?: Array<{\n entity_id: string\n _schema?: string\n _tags?: string[]\n }>\n _tags?: string[]\n _purpose?: string[]\n _manifest?: string // uuid[]\n filename?: string\n type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"\n mime_type?: string\n size_bytes?: number\n readable_size?: string\n access_control?: "private" | "public-read"\n public_url?: string // url\n custom_download_url?: string // uri\n preview_summary_de?: string\n short_summary_de?: string\n preview_summary_en?: string\n short_summary_en?: string\n summary_status?: "processing" | "completed" | "failed" | "unsupported"\n}\n```\n\n### `BatchSaveFileVersionPayload`\n\nPayload for batch version save. Only s3ref payloads are supported.\n\n```ts\ntype BatchSaveFileVersionPayload = {\n _id?: object\n file_entity_id?: string\n filename?: string\n mime_type?: string\n access_control?: "private" | "public-read"\n s3ref: unknown\n}\n```\n\n### `UploadFilePayload`\n\n```ts\ntype UploadFilePayload = {\n filename: string\n mime_type?: string\n index_tag?: string\n metadata?: Record<string, string>\n}\n```\n\n### `FileUpload`\n\n```ts\ntype FileUpload = {\n s3ref?: object\n upload_url?: string // url\n public_url?: string // url\n}\n```\n\n### `DownloadFilesPayload`\n\n```ts\ntype DownloadFilesPayload = Array<{\n id: string | string // uuid\n version?: number\n}>\n```\n\n### `CreateZipJobPayload`\n\nRequest payload to create a ZIP job for bulk file download.\nProvide either an explicit list of `file_entity_ids` (up to 1000) or an\n`entity_query` that resolves to file entities (up to 10000).\n\n\n```ts\ntype CreateZipJobPayload = unknown | unknown\n```\n\n### `ZipJob`\n\nZIP job status and result\n\n```ts\ntype ZipJob = {\n job_id?: string // uuid\n status?: "queued" | "downloading" | "zipping" | "uploading" | "sending_notification" | "completed" | "failed"\n progress?: {\n total_files?: number\n downloaded_files?: number\n failed_files?: number\n }\n result?: {\n file_entity_id?: string // uuid\n download_url?: string // uri\n expires_at?: string // date-time\n zip_size_bytes?: number\n }\n error?: string\n created_at?: string // date-time\n created_by?: string\n org_id?: string\n updated_at?: string // date-time\n}\n```\n\n### `VerifyCustomDownloadUrlPayload`\n\n```ts\ntype VerifyCustomDownloadUrlPayload = {\n custom_download_url: string\n}\n```\n\n### `S3Reference`\n\n```ts\ntype S3Reference = {\n bucket: string\n key: string\n}\n```\n\n### `S3Ref`\n\n```ts\ntype S3Ref = {\n bucket: string\n key: string\n}\n```\n\n### `FileItem`\n\n```ts\ntype FileItem = {\n s3ref?: unknown\n filename?: string\n size_bytes?: number\n readable_size?: string\n mime_type?: string\n}\n```\n\n### `FileRelationItem`\n\n```ts\ntype FileRelationItem = {\n entity_id: string\n _schema?: string\n _tags?: string[]\n}\n```\n\n### `PublicLink`\n\n```ts\ntype PublicLink = {\n id?: string\n link?: string\n last_accessed_at?: string\n}\n```\n\n### `BaseEntityOwner`\n\nThe user / organization owning this entity.\n\nNote: Owner implicitly has access to the entity regardless of ACLs.\n\n\n```ts\ntype BaseEntityOwner = {\n org_id: string\n user_id?: string\n}\n```\n\n### `BaseEntityAcl`\n\nAccess control list (ACL) for an entity. Defines sharing access to external orgs or users.\n\n```ts\ntype BaseEntityAcl = {\n view?: string[]\n edit?: string[]\n delete?: string[]\n}\n```\n\n### `ErrorObject`\n\nA generic error returned by the API\n\n```ts\ntype ErrorObject = {\n status?: number\n error?: string\n}\n```\n\n### `FileCollectionId`\n\nGenerated uuid for a file collection\n\n```ts\ntype FileCollectionId = string // uuid\n```\n\n### `FileCollectionItem`\n\nA file collection with identifiers and timestamps\n\n```ts\ntype FileCollectionItem = {\n slug?: string\n name: string\n id?: string // uuid\n parents?: string[]\n starred?: boolean\n order?: number\n enabled_locations?: string[]\n enabled_purposes?: string[]\n created_at?: string // date-time\n updated_at?: string // date-time\n}\n```\n\n### `FileCollectionAttributes`\n\n```ts\ntype FileCollectionAttributes = {\n name?: string\n parents?: string[]\n starred?: boolean\n enabled_locations?: string[]\n enabled_purposes?: string[]\n}\n```\n\n### `FileCollectionCreateRequest`\n\nRequest body for creating a file collection\n\n```ts\ntype FileCollectionCreateRequest = {\n name: string\n parents?: string[]\n starred?: boolean\n enabled_locations?: string[]\n enabled_purposes?: string[]\n}\n```\n';
5
+ export {
6
+ file_default as default
7
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk4M5V6BITcjs = require('./chunk-4M5V6BIT.cjs');
4
+ require('./chunk-NJK5F5TF.cjs');
5
+ exports. default = _chunk4M5V6BITcjs.require_file_runtime.call(void 0, );
@@ -1,5 +1,5 @@
1
1
  import {
2
2
  require_file_runtime
3
- } from "./chunk-3APTSPY4.js";
3
+ } from "./chunk-RDVFQOCQ.js";
4
4
  import "./chunk-YPSWSI3M.js";
5
5
  export default require_file_runtime();
@@ -56,6 +56,28 @@ declare namespace Components {
56
56
  */
57
57
  error?: string;
58
58
  }
59
+ /**
60
+ * A generic error returned by the API
61
+ * example:
62
+ * {
63
+ * "status": 409,
64
+ * "error": "Extracted file content is still being prepared"
65
+ * }
66
+ */
67
+ export interface ConflictError {
68
+ /**
69
+ * The HTTP status code of the error
70
+ * example:
71
+ * 400
72
+ */
73
+ status?: number;
74
+ /**
75
+ * The error message
76
+ * example:
77
+ * Bad Request
78
+ */
79
+ error?: string;
80
+ }
59
81
  /**
60
82
  * A generic error returned by the API
61
83
  * example:
@@ -1279,9 +1301,11 @@ declare namespace Components {
1279
1301
  */
1280
1302
  zip_filename?: string;
1281
1303
  /**
1282
- * Send email notification when ZIP is ready
1304
+ * Email address to notify when the ZIP is ready. Omit to skip the email notification.
1305
+ * example:
1306
+ * user@example.com
1283
1307
  */
1284
- notify_email?: boolean;
1308
+ notify_email?: string; // email
1285
1309
  } | {
1286
1310
  /**
1287
1311
  * List of file entity IDs to include in the ZIP
@@ -2317,9 +2341,11 @@ declare namespace Components {
2317
2341
  */
2318
2342
  zip_filename?: string;
2319
2343
  /**
2320
- * Send email notification when ZIP is ready
2344
+ * Email address to notify when the ZIP is ready. Omit to skip the email notification.
2345
+ * example:
2346
+ * user@example.com
2321
2347
  */
2322
- notify_email?: boolean;
2348
+ notify_email?: string; // email
2323
2349
  };
2324
2350
  /**
2325
2351
  * Custom external download url used for the file
@@ -2426,6 +2452,23 @@ declare namespace Components {
2426
2452
  * https://some-api-url.com/download?file_id=123
2427
2453
  */
2428
2454
  CustomDownloadUrl /* uri */;
2455
+ /**
2456
+ * Compact German summary for hover and list preview surfaces.
2457
+ */
2458
+ preview_summary_de?: string;
2459
+ /**
2460
+ * Short German paragraph summary for file preview surfaces.
2461
+ */
2462
+ short_summary_de?: string;
2463
+ /**
2464
+ * Compact English summary for hover and list preview surfaces.
2465
+ */
2466
+ preview_summary_en?: string;
2467
+ /**
2468
+ * Short English paragraph summary for file preview surfaces.
2469
+ */
2470
+ short_summary_en?: string;
2471
+ summary_status?: /* Current AI summary generation state for the file. */ FileSummaryStatus;
2429
2472
  }
2430
2473
  export interface FileCollectionAttributes {
2431
2474
  /**
@@ -2625,6 +2668,23 @@ declare namespace Components {
2625
2668
  * https://some-api-url.com/download?file_id=123
2626
2669
  */
2627
2670
  CustomDownloadUrl /* uri */;
2671
+ /**
2672
+ * Compact German summary for hover and list preview surfaces.
2673
+ */
2674
+ preview_summary_de?: string;
2675
+ /**
2676
+ * Short German paragraph summary for file preview surfaces.
2677
+ */
2678
+ short_summary_de?: string;
2679
+ /**
2680
+ * Compact English summary for hover and list preview surfaces.
2681
+ */
2682
+ preview_summary_en?: string;
2683
+ /**
2684
+ * Short English paragraph summary for file preview surfaces.
2685
+ */
2686
+ short_summary_en?: string;
2687
+ summary_status?: /* Current AI summary generation state for the file. */ FileSummaryStatus;
2628
2688
  /**
2629
2689
  * Source URL for the file. Included if the entity was created from source_url, or when ?source_url=true
2630
2690
  * example:
@@ -2696,6 +2756,13 @@ declare namespace Components {
2696
2756
  EntitySlug;
2697
2757
  _tags?: string[];
2698
2758
  }
2759
+ export interface FileSummaryGenerationStatus {
2760
+ status: /* Current AI summary generation state for the file. */ FileSummaryStatus;
2761
+ }
2762
+ /**
2763
+ * Current AI summary generation state for the file.
2764
+ */
2765
+ export type FileSummaryStatus = "processing" | "completed" | "failed" | "unsupported";
2699
2766
  export type FileType = "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown";
2700
2767
  export interface FileUpload {
2701
2768
  s3ref?: S3Reference;
@@ -2820,6 +2887,23 @@ declare namespace Components {
2820
2887
  * https://some-api-url.com/download?file_id=123
2821
2888
  */
2822
2889
  CustomDownloadUrl /* uri */;
2890
+ /**
2891
+ * Compact German summary for hover and list preview surfaces.
2892
+ */
2893
+ preview_summary_de?: string;
2894
+ /**
2895
+ * Short German paragraph summary for file preview surfaces.
2896
+ */
2897
+ short_summary_de?: string;
2898
+ /**
2899
+ * Compact English summary for hover and list preview surfaces.
2900
+ */
2901
+ preview_summary_en?: string;
2902
+ /**
2903
+ * Short English paragraph summary for file preview surfaces.
2904
+ */
2905
+ short_summary_en?: string;
2906
+ summary_status?: /* Current AI summary generation state for the file. */ FileSummaryStatus;
2823
2907
  }
2824
2908
  export interface SaveFileFromSourceURLPayload {
2825
2909
  [name: string]: any;
@@ -2899,6 +2983,23 @@ declare namespace Components {
2899
2983
  * https://some-api-url.com/download?file_id=123
2900
2984
  */
2901
2985
  CustomDownloadUrl /* uri */;
2986
+ /**
2987
+ * Compact German summary for hover and list preview surfaces.
2988
+ */
2989
+ preview_summary_de?: string;
2990
+ /**
2991
+ * Short German paragraph summary for file preview surfaces.
2992
+ */
2993
+ short_summary_de?: string;
2994
+ /**
2995
+ * Compact English summary for hover and list preview surfaces.
2996
+ */
2997
+ preview_summary_en?: string;
2998
+ /**
2999
+ * Short English paragraph summary for file preview surfaces.
3000
+ */
3001
+ short_summary_en?: string;
3002
+ summary_status?: /* Current AI summary generation state for the file. */ FileSummaryStatus;
2902
3003
  source_url?: /**
2903
3004
  * Custom external download url used for the file
2904
3005
  * example:
@@ -2986,6 +3087,23 @@ declare namespace Components {
2986
3087
  * https://some-api-url.com/download?file_id=123
2987
3088
  */
2988
3089
  CustomDownloadUrl /* uri */;
3090
+ /**
3091
+ * Compact German summary for hover and list preview surfaces.
3092
+ */
3093
+ preview_summary_de?: string;
3094
+ /**
3095
+ * Short German paragraph summary for file preview surfaces.
3096
+ */
3097
+ short_summary_de?: string;
3098
+ /**
3099
+ * Compact English summary for hover and list preview surfaces.
3100
+ */
3101
+ preview_summary_en?: string;
3102
+ /**
3103
+ * Short English paragraph summary for file preview surfaces.
3104
+ */
3105
+ short_summary_en?: string;
3106
+ summary_status?: /* Current AI summary generation state for the file. */ FileSummaryStatus;
2989
3107
  s3ref?: S3Ref;
2990
3108
  }
2991
3109
  export interface UploadFilePayload {
@@ -3513,6 +3631,75 @@ declare namespace Paths {
3513
3631
  Components.Responses.InternalServerError;
3514
3632
  }
3515
3633
  }
3634
+ namespace GenerateFileSummary {
3635
+ namespace Parameters {
3636
+ export type Id = /**
3637
+ * example:
3638
+ * ef7d985c-2385-44f4-9c71-ae06a52264f8
3639
+ */
3640
+ Components.Schemas.FileEntityId;
3641
+ }
3642
+ export interface PathParameters {
3643
+ id: Parameters.Id;
3644
+ }
3645
+ namespace Responses {
3646
+ export type $202 = Components.Schemas.FileSummaryGenerationStatus;
3647
+ export type $400 = /**
3648
+ * A generic error returned by the API
3649
+ * example:
3650
+ * {
3651
+ * "status": 400,
3652
+ * "error": "Bad Request: filename is required"
3653
+ * }
3654
+ */
3655
+ Components.Responses.BadRequestError;
3656
+ export type $401 = /**
3657
+ * A generic error returned by the API
3658
+ * example:
3659
+ * {
3660
+ * "status": 401,
3661
+ * "error": "Unauthorized: Invalid or expired token"
3662
+ * }
3663
+ */
3664
+ Components.Responses.UnauthorizedError;
3665
+ export type $403 = /**
3666
+ * A generic error returned by the API
3667
+ * example:
3668
+ * {
3669
+ * "status": 403,
3670
+ * "error": "Forbidden: You do not have permission to access this file"
3671
+ * }
3672
+ */
3673
+ Components.Responses.ForbiddenError;
3674
+ export type $404 = /**
3675
+ * A generic error returned by the API
3676
+ * example:
3677
+ * {
3678
+ * "status": 404,
3679
+ * "error": "Not Found: File entity not found"
3680
+ * }
3681
+ */
3682
+ Components.Responses.NotFoundError;
3683
+ export type $409 = /**
3684
+ * A generic error returned by the API
3685
+ * example:
3686
+ * {
3687
+ * "status": 409,
3688
+ * "error": "Extracted file content is still being prepared"
3689
+ * }
3690
+ */
3691
+ Components.Responses.ConflictError;
3692
+ export type $500 = /**
3693
+ * A generic error returned by the API
3694
+ * example:
3695
+ * {
3696
+ * "status": 500,
3697
+ * "error": "Internal Server Error"
3698
+ * }
3699
+ */
3700
+ Components.Responses.InternalServerError;
3701
+ }
3702
+ }
3516
3703
  namespace GeneratePublicLink {
3517
3704
  namespace Parameters {
3518
3705
  export type Id = /**
@@ -3864,6 +4051,8 @@ declare namespace Paths {
3864
4051
  }
3865
4052
  namespace Responses {
3866
4053
  export type $200 = string; // binary
4054
+ export interface $304 {
4055
+ }
3867
4056
  export type $403 = /* A generic error returned by the API */ Components.Schemas.ErrorObject;
3868
4057
  export type $404 = /**
3869
4058
  * A generic error returned by the API
@@ -4533,6 +4722,16 @@ interface OperationMethods {
4533
4722
  data?: any,
4534
4723
  config?: AxiosRequestConfig
4535
4724
  ): OperationResponse<Paths.GetZipJob.Responses.$200>
4725
+ /**
4726
+ * generateFileSummary - generateFileSummary
4727
+ *
4728
+ * Request AI generation of preview and short summaries for a file entity.
4729
+ */
4730
+ 'generateFileSummary'(
4731
+ parameters?: Parameters<Paths.GenerateFileSummary.PathParameters> | null,
4732
+ data?: any,
4733
+ config?: AxiosRequestConfig
4734
+ ): OperationResponse<Paths.GenerateFileSummary.Responses.$202>
4536
4735
  /**
4537
4736
  * previewFile - previewFile
4538
4737
  *
@@ -4984,6 +5183,18 @@ interface PathsDictionary {
4984
5183
  config?: AxiosRequestConfig
4985
5184
  ): OperationResponse<Paths.GetZipJob.Responses.$200>
4986
5185
  }
5186
+ ['/v1/files/{id}/summary:generate']: {
5187
+ /**
5188
+ * generateFileSummary - generateFileSummary
5189
+ *
5190
+ * Request AI generation of preview and short summaries for a file entity.
5191
+ */
5192
+ 'post'(
5193
+ parameters?: Parameters<Paths.GenerateFileSummary.PathParameters> | null,
5194
+ data?: any,
5195
+ config?: AxiosRequestConfig
5196
+ ): OperationResponse<Paths.GenerateFileSummary.Responses.$202>
5197
+ }
4987
5198
  ['/v1/files/{id}/preview']: {
4988
5199
  /**
4989
5200
  * previewFile - previewFile
@@ -5292,6 +5503,8 @@ type FileEntity = Components.Schemas.FileEntity;
5292
5503
  type FileEntityId = Components.Schemas.FileEntityId;
5293
5504
  type FileItem = Components.Schemas.FileItem;
5294
5505
  type FileRelationItem = Components.Schemas.FileRelationItem;
5506
+ type FileSummaryGenerationStatus = Components.Schemas.FileSummaryGenerationStatus;
5507
+ type FileSummaryStatus = Components.Schemas.FileSummaryStatus;
5295
5508
  type FileType = Components.Schemas.FileType;
5296
5509
  type FileUpload = Components.Schemas.FileUpload;
5297
5510
  type PublicLink = Components.Schemas.PublicLink;
@@ -5306,4 +5519,4 @@ type UploadFilePayload = Components.Schemas.UploadFilePayload;
5306
5519
  type VerifyCustomDownloadUrlPayload = Components.Schemas.VerifyCustomDownloadUrlPayload;
5307
5520
  type ZipJob = Components.Schemas.ZipJob;
5308
5521
 
5309
- export { type ActivityId as A, type BaseEntityAcl as B, type Client as C, type DownloadFilesPayload as D, type EntityId as E, type FileAttributes as F, type OperationMethods as O, Paths as P, type S3Ref as S, type UploadFilePayload as U, type VerifyCustomDownloadUrlPayload as V, type ZipJob as Z, Components as a, type PathsDictionary as b, type BaseEntityOwner as c, type BatchSaveFileVersionPayload as d, type CommonSaveFilePayload as e, type CreateZipJobPayload as f, type CustomDownloadUrl as g, type EntitySlug as h, type ErrorObject as i, type FileCollectionAttributes as j, type FileCollectionCreateRequest as k, type FileCollectionId as l, type FileCollectionItem as m, type FileEntity as n, type FileEntityId as o, type FileItem as p, type FileRelationItem as q, type FileType as r, type FileUpload as s, type PublicLink as t, type S3Reference as u, type SaveCustomFilePayload as v, type SaveFileFromSourceURLPayload as w, type SaveFilePayload as x, type SaveFilePayloadV2 as y, type SaveS3FilePayload as z };
5522
+ export { type ActivityId as A, type BaseEntityAcl as B, type Client as C, type DownloadFilesPayload as D, type EntityId as E, type FileAttributes as F, type SaveFilePayloadV2 as G, type SaveS3FilePayload as H, type OperationMethods as O, Paths as P, type S3Ref as S, type UploadFilePayload as U, type VerifyCustomDownloadUrlPayload as V, type ZipJob as Z, Components as a, type PathsDictionary as b, type BaseEntityOwner as c, type BatchSaveFileVersionPayload as d, type CommonSaveFilePayload as e, type CreateZipJobPayload as f, type CustomDownloadUrl as g, type EntitySlug as h, type ErrorObject as i, type FileCollectionAttributes as j, type FileCollectionCreateRequest as k, type FileCollectionId as l, type FileCollectionItem as m, type FileEntity as n, type FileEntityId as o, type FileItem as p, type FileRelationItem as q, type FileSummaryGenerationStatus as r, type FileSummaryStatus as s, type FileType as t, type FileUpload as u, type PublicLink as v, type S3Reference as w, type SaveCustomFilePayload as x, type SaveFileFromSourceURLPayload as y, type SaveFilePayload as z };