Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/file-client-async-zip-job.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@epilot/file-client": minor
---

Add async bulk ZIP download endpoints

- `createZipJob` (`POST /v1/files:zipJob`) — start an async job that bundles files into a ZIP and emails the requester when ready. Accepts either an explicit `file_entity_ids` list (≤1000) or an `entity_query` resolved server-side (≤10,000 files).
- `getZipJob` (`GET /v1/files:zipJob/{job_id}`) — poll status and pick up the signed download URL once the job completes.
2 changes: 1 addition & 1 deletion clients/file-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epilot/file-client",
"version": "1.23.0",
"version": "1.24.0",
"description": "Client library for the epilot File API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
24 changes: 24 additions & 0 deletions clients/file-client/src/openapi-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,30 @@
"responses": {}
}
},
"/v1/files:zipJob": {
"post": {
"operationId": "createZipJob",
"requestBody": {
"content": {
"application/json": {}
}
},
"responses": {}
}
},
"/v1/files:zipJob/{job_id}": {
"get": {
"operationId": "getZipJob",
"parameters": [
{
"name": "job_id",
"in": "path",
"required": true
}
],
"responses": {}
}
},
"/v1/files/{id}/preview": {
"get": {
"operationId": "previewFile",
Expand Down
Loading
Loading