@epilot/file-client 1.0.3 → 1.1.2

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.
@@ -1 +1 @@
1
- !function(e,t){for(var i in t)e[i]=t[i];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"use strict";var e={914:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=a(i(279));t.default=n.default},279:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"File API","version":"0.1.0","description":"File Upload and Management for epilot SaaS"},"tags":[{"name":"files","description":"Files"}],"security":[{"EpilotAuth":[]},{"AsOrganization":[]}],"paths":{"/v1/files/public/upload":{"post":{"operationId":"uploadFilePublic","summary":"uploadFilePublic","security":[],"description":"Create pre-signed S3 URL to upload a file to keep temporarily (one week).\\n\\nUse the createFile operation to store file file permanently.\\n","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadFilePayload"}}}},"responses":{"201":{"description":"Pre-signed URL for POST / PUT upload","content":{"application/json":{"schema":{"type":"object","properties":{"upload_url":{"type":"string","format":"url","example":"https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123"},"s3ref":{"allOf":[{"$ref":"#/components/schemas/S3Reference"},{"example":{"bucket":"epilot-files-prod","key":"123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}}]}}}}}}}}},"/v1/files/upload":{"post":{"operationId":"uploadFile","summary":"uploadFile","description":"Create pre-signed S3 URL to upload a file to keep temporarily (one week).\\n\\nUse the createFile operation to store file file permanently.\\n","tags":["files"],"parameters":[{"name":"file_entity_id","in":"query","description":"file entity id","schema":{"$ref":"#/components/schemas/FileEntityId"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadFilePayload","type":"object"}}}},"responses":{"201":{"description":"Pre-signed URL for POST / PUT upload","content":{"application/json":{"schema":{"type":"object","properties":{"upload_url":{"type":"string","format":"url","example":"https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123"},"s3ref":{"allOf":[{"$ref":"#/components/schemas/S3Reference"},{"example":{"bucket":"epilot-files-prod","key":"123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}}]}}}}}}}}},"/v1/files":{"post":{"operationId":"saveFile","summary":"saveFile","description":"Create / Update a permanent File entity\\n\\nMakes file object permanent\\n\\nSaves metadata to file entity\\n","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveFilePayload"}}}},"responses":{"201":{"description":"Created File Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileEntity"}}}}}}},"/v1/files/{id}/download":{"get":{"operationId":"downloadFile","summary":"downloadFile","description":"Generate pre-signed download S3 url for a file","tags":["files"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/FileEntityId"}},{"name":"version","in":"query","description":"index of file version","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"Generated thumbnail image","content":{"application/json":{"schema":{"type":"object","properties":{"download_url":{"type":"string","format":"uri","example":"https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123"}}}}}}}}},"/v1/files/{id}/preview":{"get":{"operationId":"previewFile","summary":"previewFile","description":"Generate thumbnail preview for a file entity","tags":["files"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/FileEntityId"}},{"name":"version","in":"query","description":"index of file version","schema":{"type":"integer","default":0}},{"name":"w","in":"query","description":"width","schema":{"type":"integer"}},{"name":"h","in":"query","description":"height","schema":{"type":"integer"}}],"responses":{"200":{"description":"Generated thumbnail image","content":{"image/png":{},"image/jpeg":{}}}}}},"/v1/files/delete":{"delete":{"operationId":"deleteFile","summary":"deleteFile","description":"Delete file entity","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteFilePayload"}}}},"responses":{"200":{"description":"File delete response"}}}}},"components":{"securitySchemes":{"EpilotAuth":{"type":"http","scheme":"bearer","description":"Epilot Bearer Token"},"AsOrganization":{"type":"apiKey","in":"header","name":"x-ivy-org-id","description":"Set organization id when using internal auth"}},"schemas":{"FileEntityId":{"type":"string","example":"ef7d985c-2385-44f4-9c71-ae06a52264f8"},"FileEntity":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/FileEntityId"},"filename":{"type":"string","example":"document.pdf"},"access_control":{"type":"string","default":"private","enum":["private","public"]},"versions":{"type":"array","items":{"type":"object","properties":{"s3ref":{"$ref":"#/components/schemas/S3Reference"}}}}}},"UploadFilePayload":{"type":"object","properties":{"filename":{"type":"string","example":"document.pdf"},"mime_type":{"description":"MIME type of file","type":"string","example":"image/png","default":"application/octet-stream"}},"required":["filename"]},"SaveFilePayload":{"type":"object","properties":{"s3ref":{"$ref":"#/components/schemas/S3Reference"},"file_entity_id":{"type":"string","description":"if passed, adds a new version to existing file entity"},"filename":{"type":"string","example":"document.pdf"},"size_bytes":{"type":"number","example":42012},"mime_type":{"type":"string","example":"image/jpeg"},"access_control":{"type":"string","default":"private","enum":["private","public"]}},"required":["s3ref"]},"DeleteFilePayload":{"type":"object","properties":{"s3ref":{"$ref":"#/components/schemas/S3Reference"}},"required":["s3ref"]},"S3Reference":{"type":"object","properties":{"bucket":{"type":"string","example":"epilot-files-prod"},"key":{"type":"string","example":"123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}},"required":["bucket","key"]},"FileItem":{"allOf":[{"$ref":"#/components/schemas/S3Reference"},{"type":"object","properties":{"filename":{"type":"string","example":"document.pdf"},"size_bytes":{"type":"integer","example":1234},"mime_type":{"type":"string","example":"image/jpeg"}}}]}}}}')}},t={};return function i(a){if(t[a])return t[a].exports;var n=t[a]={exports:{}};return e[a].call(n.exports,n,n.exports,i),n.exports}(914)})());
1
+ !function(e,t){for(var i in t)e[i]=t[i];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"use strict";var e={914:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=a(i(279));t.default=n.default},279:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"File API","version":"0.1.0","description":"File Upload and Management for epilot SaaS"},"tags":[{"name":"files","description":"Files"}],"security":[{"EpilotAuth":[]},{"AsOrganization":[]}],"paths":{"/v1/files/public/upload":{"post":{"operationId":"uploadFilePublic","summary":"uploadFilePublic","security":[],"description":"Create pre-signed S3 URL to upload a file to keep temporarily (one week).\\n\\nUse the createFile operation to store file file permanently.\\n","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadFilePayload"}}}},"responses":{"201":{"description":"Pre-signed URL for POST / PUT upload","content":{"application/json":{"schema":{"type":"object","properties":{"s3ref":{"allOf":[{"$ref":"#/components/schemas/S3Reference"},{"example":{"bucket":"epilot-files-prod","key":"123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}}]},"upload_url":{"type":"string","format":"url","example":"https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123"}}}}}}}}},"/v1/files/upload":{"post":{"operationId":"uploadFile","summary":"uploadFile","description":"Create pre-signed S3 URL to upload a file to keep temporarily (one week).\\n\\nUse the createFile operation to store file file permanently.\\n","tags":["files"],"parameters":[{"name":"file_entity_id","in":"query","description":"file entity id","schema":{"$ref":"#/components/schemas/FileEntityId"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadFilePayload","type":"object"}}}},"responses":{"201":{"description":"Pre-signed URL for POST / PUT upload","content":{"application/json":{"schema":{"type":"object","properties":{"s3ref":{"allOf":[{"$ref":"#/components/schemas/S3Reference"},{"example":{"bucket":"epilot-files-prod","key":"123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}}]},"upload_url":{"type":"string","format":"url","example":"https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123"},"public_url":{"description":"Returned only if file is permanent i.e. file_entity_id is passed","type":"string","format":"url","example":"https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}}}}}}}}},"/v1/files":{"post":{"operationId":"saveFile","summary":"saveFile","description":"Create / Update a permanent File entity\\n\\nMakes file object permanent\\n\\nSaves metadata to file entity\\n","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveFilePayload"}}}},"responses":{"201":{"description":"Created File Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileEntity"}}}}}}},"/v1/files/{id}/download":{"get":{"operationId":"downloadFile","summary":"downloadFile","description":"Generate pre-signed download S3 url for a file","tags":["files"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/FileEntityId"}},{"name":"version","in":"query","description":"index of file version","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"Generated thumbnail image","content":{"application/json":{"schema":{"type":"object","properties":{"download_url":{"type":"string","format":"uri","example":"https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123"}}}}}}}}},"/v1/files/{id}/preview":{"get":{"operationId":"previewFile","summary":"previewFile","description":"Generate thumbnail preview for a file entity","tags":["files"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/FileEntityId"}},{"name":"version","in":"query","description":"index of file version","schema":{"type":"integer","default":0}},{"name":"w","in":"query","description":"width","schema":{"type":"integer"}},{"name":"h","in":"query","description":"height","schema":{"type":"integer"}}],"responses":{"200":{"description":"Generated thumbnail image","content":{"image/png":{},"image/jpeg":{}}}}}},"/v1/files:previewS3":{"post":{"operationId":"previewS3File","summary":"previewS3File","description":"Generate thumbnail preview from an s3 reference for a file entity","tags":["files"],"parameters":[{"name":"w","in":"query","description":"width","schema":{"type":"integer"}},{"name":"h","in":"query","description":"height","schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/S3Reference"}}}},"responses":{"200":{"description":"Generated thumbnail image","content":{"image/png":{},"image/jpeg":{}}}}}},"/v1/files/delete":{"delete":{"operationId":"deleteFile","summary":"deleteFile","description":"Delete file entity","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteFilePayload"}}}},"responses":{"200":{"description":"File delete response"}}}}},"components":{"securitySchemes":{"EpilotAuth":{"type":"http","scheme":"bearer","description":"Epilot Bearer Token"},"AsOrganization":{"type":"apiKey","in":"header","name":"x-ivy-org-id","description":"Set organization id when using internal auth"}},"schemas":{"FileEntityId":{"type":"string","example":"ef7d985c-2385-44f4-9c71-ae06a52264f8"},"FileEntity":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/FileEntityId"},"filename":{"type":"string","example":"document.pdf"},"access_control":{"type":"string","default":"private","enum":["private","public"]},"versions":{"type":"array","items":{"type":"object","properties":{"s3ref":{"$ref":"#/components/schemas/S3Reference"}}}}}},"UploadFilePayload":{"type":"object","properties":{"filename":{"type":"string","example":"document.pdf"},"mime_type":{"description":"MIME type of file","type":"string","example":"application/pdf","default":"application/octet-stream"}},"required":["filename"]},"SaveFilePayload":{"type":"object","properties":{"s3ref":{"$ref":"#/components/schemas/S3Reference"},"file_entity_id":{"type":"string","description":"if passed, adds a new version to existing file entity"},"filename":{"type":"string","example":"document.pdf"},"_tags":{"type":"array","items":{"type":"string"}},"access_control":{"type":"string","default":"private","enum":["private","public"]}},"required":["s3ref"]},"DeleteFilePayload":{"type":"object","properties":{"s3ref":{"$ref":"#/components/schemas/S3Reference"}},"required":["s3ref"]},"S3Reference":{"type":"object","properties":{"bucket":{"type":"string","example":"epilot-files-prod"},"key":{"type":"string","example":"123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}},"required":["bucket","key"]},"FileItem":{"allOf":[{"$ref":"#/components/schemas/S3Reference"},{"type":"object","properties":{"filename":{"type":"string","example":"document.pdf"},"size_bytes":{"type":"integer","example":1234},"mime_type":{"type":"string","example":"image/jpeg"}}}]}}}}')}},t={};return function i(a){if(t[a])return t[a].exports;var n=t[a]={exports:{}};return e[a].call(n.exports,n,n.exports,i),n.exports}(914)})());
package/dist/openapi.d.ts CHANGED
@@ -79,16 +79,7 @@ declare namespace Components {
79
79
  * document.pdf
80
80
  */
81
81
  filename?: string;
82
- /**
83
- * example:
84
- * 42012
85
- */
86
- size_bytes?: number;
87
- /**
88
- * example:
89
- * image/jpeg
90
- */
91
- mime_type?: string;
82
+ _tags?: string[];
92
83
  access_control?: "private" | "public";
93
84
  }
94
85
  export interface UploadFilePayload {
@@ -100,7 +91,7 @@ declare namespace Components {
100
91
  /**
101
92
  * MIME type of file
102
93
  * example:
103
- * image/png
94
+ * application/pdf
104
95
  */
105
96
  mime_type?: string;
106
97
  }
@@ -147,6 +138,17 @@ declare namespace Paths {
147
138
  h?: Parameters.H;
148
139
  }
149
140
  }
141
+ namespace PreviewS3File {
142
+ namespace Parameters {
143
+ export type H = number;
144
+ export type W = number;
145
+ }
146
+ export interface QueryParameters {
147
+ w?: Parameters.W;
148
+ h?: Parameters.H;
149
+ }
150
+ export type RequestBody = Components.Schemas.S3Reference;
151
+ }
150
152
  namespace SaveFile {
151
153
  export type RequestBody = Components.Schemas.SaveFilePayload;
152
154
  namespace Responses {
@@ -163,11 +165,6 @@ declare namespace Paths {
163
165
  export type RequestBody = Components.Schemas.UploadFilePayload;
164
166
  namespace Responses {
165
167
  export interface $201 {
166
- /**
167
- * example:
168
- * https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123
169
- */
170
- upload_url?: string; // url
171
168
  /**
172
169
  * example:
173
170
  * {
@@ -187,6 +184,17 @@ declare namespace Paths {
187
184
  */
188
185
  key: string;
189
186
  };
187
+ /**
188
+ * example:
189
+ * https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123
190
+ */
191
+ upload_url?: string; // url
192
+ /**
193
+ * Returned only if file is permanent i.e. file_entity_id is passed
194
+ * example:
195
+ * https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf
196
+ */
197
+ public_url?: string; // url
190
198
  }
191
199
  }
192
200
  }
@@ -194,11 +202,6 @@ declare namespace Paths {
194
202
  export type RequestBody = Components.Schemas.UploadFilePayload;
195
203
  namespace Responses {
196
204
  export interface $201 {
197
- /**
198
- * example:
199
- * https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123
200
- */
201
- upload_url?: string; // url
202
205
  /**
203
206
  * example:
204
207
  * {
@@ -218,6 +221,11 @@ declare namespace Paths {
218
221
  */
219
222
  key: string;
220
223
  };
224
+ /**
225
+ * example:
226
+ * https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123
227
+ */
228
+ upload_url?: string; // url
221
229
  }
222
230
  }
223
231
  }
@@ -285,6 +293,16 @@ export interface OperationMethods {
285
293
  data?: any,
286
294
  config?: AxiosRequestConfig
287
295
  ): OperationResponse<any>
296
+ /**
297
+ * previewS3File - previewS3File
298
+ *
299
+ * Generate thumbnail preview from an s3 reference for a file entity
300
+ */
301
+ 'previewS3File'(
302
+ parameters?: Parameters<Paths.PreviewS3File.QueryParameters> | null,
303
+ data?: Paths.PreviewS3File.RequestBody,
304
+ config?: AxiosRequestConfig
305
+ ): OperationResponse<any>
288
306
  /**
289
307
  * deleteFile - deleteFile
290
308
  *
@@ -369,6 +387,18 @@ export interface PathsDictionary {
369
387
  config?: AxiosRequestConfig
370
388
  ): OperationResponse<any>
371
389
  }
390
+ ['/v1/files:previewS3']: {
391
+ /**
392
+ * previewS3File - previewS3File
393
+ *
394
+ * Generate thumbnail preview from an s3 reference for a file entity
395
+ */
396
+ 'post'(
397
+ parameters?: Parameters<Paths.PreviewS3File.QueryParameters> | null,
398
+ data?: Paths.PreviewS3File.RequestBody,
399
+ config?: AxiosRequestConfig
400
+ ): OperationResponse<any>
401
+ }
372
402
  ['/v1/files/delete']: {
373
403
  /**
374
404
  * deleteFile - deleteFile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/file-client",
3
- "version": "1.0.3",
3
+ "version": "1.1.2",
4
4
  "description": "API client for epilot File API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,6 +14,12 @@
14
14
  "eslint": "../node_modules/.bin/eslint -c ../.eslintrc.yml",
15
15
  "prepublishOnly": "npm run build"
16
16
  },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://gitlab.com/e-pilot/product/entities/entity-api.git",
20
+ "directory": "client"
21
+ },
22
+ "homepage": "https://gitlab.com/e-pilot/product/entities/entity-api.git#readme",
17
23
  "files": [
18
24
  "*.js",
19
25
  "*.d.ts",
package/src/openapi.d.ts CHANGED
@@ -79,16 +79,7 @@ declare namespace Components {
79
79
  * document.pdf
80
80
  */
81
81
  filename?: string;
82
- /**
83
- * example:
84
- * 42012
85
- */
86
- size_bytes?: number;
87
- /**
88
- * example:
89
- * image/jpeg
90
- */
91
- mime_type?: string;
82
+ _tags?: string[];
92
83
  access_control?: "private" | "public";
93
84
  }
94
85
  export interface UploadFilePayload {
@@ -100,7 +91,7 @@ declare namespace Components {
100
91
  /**
101
92
  * MIME type of file
102
93
  * example:
103
- * image/png
94
+ * application/pdf
104
95
  */
105
96
  mime_type?: string;
106
97
  }
@@ -147,6 +138,17 @@ declare namespace Paths {
147
138
  h?: Parameters.H;
148
139
  }
149
140
  }
141
+ namespace PreviewS3File {
142
+ namespace Parameters {
143
+ export type H = number;
144
+ export type W = number;
145
+ }
146
+ export interface QueryParameters {
147
+ w?: Parameters.W;
148
+ h?: Parameters.H;
149
+ }
150
+ export type RequestBody = Components.Schemas.S3Reference;
151
+ }
150
152
  namespace SaveFile {
151
153
  export type RequestBody = Components.Schemas.SaveFilePayload;
152
154
  namespace Responses {
@@ -163,11 +165,6 @@ declare namespace Paths {
163
165
  export type RequestBody = Components.Schemas.UploadFilePayload;
164
166
  namespace Responses {
165
167
  export interface $201 {
166
- /**
167
- * example:
168
- * https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123
169
- */
170
- upload_url?: string; // url
171
168
  /**
172
169
  * example:
173
170
  * {
@@ -187,6 +184,17 @@ declare namespace Paths {
187
184
  */
188
185
  key: string;
189
186
  };
187
+ /**
188
+ * example:
189
+ * https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123
190
+ */
191
+ upload_url?: string; // url
192
+ /**
193
+ * Returned only if file is permanent i.e. file_entity_id is passed
194
+ * example:
195
+ * https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf
196
+ */
197
+ public_url?: string; // url
190
198
  }
191
199
  }
192
200
  }
@@ -194,11 +202,6 @@ declare namespace Paths {
194
202
  export type RequestBody = Components.Schemas.UploadFilePayload;
195
203
  namespace Responses {
196
204
  export interface $201 {
197
- /**
198
- * example:
199
- * https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123
200
- */
201
- upload_url?: string; // url
202
205
  /**
203
206
  * example:
204
207
  * {
@@ -218,6 +221,11 @@ declare namespace Paths {
218
221
  */
219
222
  key: string;
220
223
  };
224
+ /**
225
+ * example:
226
+ * https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/temp/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf?AWSParams=123
227
+ */
228
+ upload_url?: string; // url
221
229
  }
222
230
  }
223
231
  }
@@ -285,6 +293,16 @@ export interface OperationMethods {
285
293
  data?: any,
286
294
  config?: AxiosRequestConfig
287
295
  ): OperationResponse<any>
296
+ /**
297
+ * previewS3File - previewS3File
298
+ *
299
+ * Generate thumbnail preview from an s3 reference for a file entity
300
+ */
301
+ 'previewS3File'(
302
+ parameters?: Parameters<Paths.PreviewS3File.QueryParameters> | null,
303
+ data?: Paths.PreviewS3File.RequestBody,
304
+ config?: AxiosRequestConfig
305
+ ): OperationResponse<any>
288
306
  /**
289
307
  * deleteFile - deleteFile
290
308
  *
@@ -369,6 +387,18 @@ export interface PathsDictionary {
369
387
  config?: AxiosRequestConfig
370
388
  ): OperationResponse<any>
371
389
  }
390
+ ['/v1/files:previewS3']: {
391
+ /**
392
+ * previewS3File - previewS3File
393
+ *
394
+ * Generate thumbnail preview from an s3 reference for a file entity
395
+ */
396
+ 'post'(
397
+ parameters?: Parameters<Paths.PreviewS3File.QueryParameters> | null,
398
+ data?: Paths.PreviewS3File.RequestBody,
399
+ config?: AxiosRequestConfig
400
+ ): OperationResponse<any>
401
+ }
372
402
  ['/v1/files/delete']: {
373
403
  /**
374
404
  * deleteFile - deleteFile