@epilot/file-client 1.25.0 → 1.26.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 epilot GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={438(e,r,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var i=n(t(466));r.default=i.default},466(e){e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"paths":{"/v2/files/upload":{"post":{"operationId":"uploadFileV2","parameters":[{"name":"file_entity_id","in":"query"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/files":{"post":{"operationId":"saveFileV2","parameters":[{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/FillActivityQueryParam"},{"$ref":"#/components/parameters/StrictQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/DeleteTempFileQueryParam"},{"$ref":"#/components/parameters/VersionOnlyQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/files/upload":{"post":{"operationId":"uploadFile","deprecated":true,"parameters":[{"name":"file_entity_id","in":"query"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/files":{"post":{"operationId":"saveFile","deprecated":true,"parameters":[{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/VersionOnlyQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/files/{id}":{"get":{"operationId":"getFile","parameters":[{"name":"id","in":"path","required":true},{"name":"source_url","in":"query"},{"$ref":"#/components/parameters/StrictQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"responses":{}},"delete":{"operationId":"deleteFile","parameters":[{"name":"id","in":"path","required":true},{"name":"purge","in":"query"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/StrictQueryParam"}],"responses":{}}},"/v1/files/{id}/download":{"get":{"operationId":"downloadFile","parameters":[{"name":"id","in":"path","required":true},{"name":"version","in":"query"},{"name":"attachment","in":"query"}],"responses":{}}},"/v1/files:downloadS3":{"post":{"operationId":"downloadS3File","parameters":[{"name":"s3_key","in":"query","required":true},{"name":"s3_bucket","in":"query","required":true},{"name":"attachment","in":"query"}],"responses":{}}},"/v1/files:downloadFiles":{"post":{"operationId":"downloadFiles","requestBody":{"content":{"application/json":{}}},"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}/summary:generate":{"post":{"operationId":"generateFileSummary","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/files/{id}/preview":{"get":{"operationId":"previewFile","parameters":[{"name":"id","in":"path","required":true},{"name":"version","in":"query"},{"name":"w","in":"query"},{"name":"h","in":"query"}],"responses":{}}},"/v1/files:previewS3":{"post":{"operationId":"previewS3File","parameters":[{"name":"w","in":"query"},{"name":"h","in":"query"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"get":{"operationId":"previewS3FileGet","parameters":[{"name":"key","in":"query","required":true},{"name":"bucket","in":"query","required":true},{"name":"w","in":"query"},{"name":"h","in":"query"}],"responses":{}}},"/v1/files/public/{id}/preview":{"get":{"operationId":"previewPublicFile","parameters":[{"name":"id","in":"path","required":true},{"name":"version","in":"query"},{"name":"w","in":"query"},{"name":"h","in":"query"},{"name":"org_id","in":"query"}],"responses":{}}},"/v1/files/session":{"get":{"operationId":"getSession","responses":{}},"delete":{"operationId":"deleteSession","responses":{}}},"/v1/files/{id}/public/links":{"post":{"operationId":"generatePublicLink","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"get":{"operationId":"listPublicLinksForFile","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/files/public/links/{id}/{filename}":{"get":{"operationId":"accessPublicLink","parameters":[{"name":"id","in":"path","required":true},{"name":"filename","in":"path","required":true},{"name":"hash","in":"query","required":false}],"responses":{}}},"/v1/files/public/links/{id}":{"delete":{"operationId":"revokePublicLink","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/files/download:verify":{"post":{"operationId":"verifyCustomDownloadUrl","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/files/public/upload":{"post":{"operationId":"uploadFilePublic","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/{slug}/collections":{"get":{"operationId":"getUserSchemaFileCollections","parameters":[{"name":"slug","in":"path","required":true}],"responses":{}},"post":{"operationId":"createUserSchemaFileCollection","parameters":[{"name":"slug","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/{slug}/collections/{collectionSlug}":{"put":{"operationId":"updateUserSchemaFileCollection","parameters":[{"name":"slug","in":"path","required":true},{"name":"collectionSlug","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteUserSchemaFileCollection","parameters":[{"name":"slug","in":"path","required":true},{"name":"collectionSlug","in":"path","required":true}],"responses":{}}},"/v1/entity/{id}/collections/{collectionSlug}/files":{"get":{"operationId":"getFilesInCollection","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"name":"collectionSlug","in":"path","required":true}],"responses":{}}},"/v1/collections/{schemaSlug}":{"get":{"operationId":"getGlobalFileCollections","parameters":[{"name":"schemaSlug","in":"path","required":true}],"responses":{}}}},"components":{"parameters":{"EntityIdPathParam":{"name":"id","in":"path","required":true},"StrictQueryParam":{"name":"strict","in":"query","required":false},"ActivityIdQueryParam":{"name":"activity_id","in":"query","required":false},"FillActivityQueryParam":{"name":"fill_activity","in":"query","required":false},"AsyncOperationQueryParam":{"name":"async","in":"query","required":false},"DeleteTempFileQueryParam":{"name":"delete_temp_file","in":"query","required":false},"VersionOnlyQueryParam":{"name":"version_only","in":"query","required":false}},"responses":{"BadRequestError":{"content":{"application/json":{}}},"UnauthorizedError":{"content":{"application/json":{}}},"ForbiddenError":{"content":{"application/json":{}}},"NotFoundError":{"content":{"application/json":{}}},"InternalServerError":{"content":{"application/json":{}}}}},"servers":[{"url":"https://file.sls.epilot.io"}]}')}},r={},t=function t(n){var i=r[n];if(void 0!==i)return i.exports;var a=r[n]={exports:{}};return e[n].call(a.exports,a,a.exports,t),a.exports}(438),n=exports;for(var i in t)n[i]=t[i];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={438(e,r,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var i=n(t(466));r.default=i.default},466(e){e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"paths":{"/v2/files/upload":{"post":{"operationId":"uploadFileV2","parameters":[{"name":"file_entity_id","in":"query"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/files":{"post":{"operationId":"saveFileV2","parameters":[{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/FillActivityQueryParam"},{"$ref":"#/components/parameters/StrictQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/DeleteTempFileQueryParam"},{"$ref":"#/components/parameters/VersionOnlyQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/files/upload":{"post":{"operationId":"uploadFile","deprecated":true,"parameters":[{"name":"file_entity_id","in":"query"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/files":{"post":{"operationId":"saveFile","deprecated":true,"parameters":[{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/VersionOnlyQueryParam"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/files/{id}":{"get":{"operationId":"getFile","parameters":[{"name":"id","in":"path","required":true},{"name":"source_url","in":"query"},{"$ref":"#/components/parameters/StrictQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"responses":{}},"delete":{"operationId":"deleteFile","parameters":[{"name":"id","in":"path","required":true},{"name":"purge","in":"query"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/StrictQueryParam"}],"responses":{}}},"/v1/files/{id}/download":{"get":{"operationId":"downloadFile","parameters":[{"name":"id","in":"path","required":true},{"name":"version","in":"query"},{"name":"attachment","in":"query"}],"responses":{}}},"/v1/files:downloadS3":{"post":{"operationId":"downloadS3File","parameters":[{"name":"s3_key","in":"query","required":true},{"name":"s3_bucket","in":"query","required":true},{"name":"attachment","in":"query"}],"responses":{}}},"/v1/files:downloadFiles":{"post":{"operationId":"downloadFiles","requestBody":{"content":{"application/json":{}}},"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}/summary:generate":{"post":{"operationId":"generateFileSummary","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/files/{id}/preview":{"get":{"operationId":"previewFile","parameters":[{"name":"id","in":"path","required":true},{"name":"version","in":"query"},{"name":"w","in":"query"},{"name":"h","in":"query"}],"responses":{}}},"/v1/files:previewS3":{"post":{"operationId":"previewS3File","parameters":[{"name":"w","in":"query"},{"name":"h","in":"query"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"get":{"operationId":"previewS3FileGet","parameters":[{"name":"key","in":"query","required":true},{"name":"bucket","in":"query","required":true},{"name":"w","in":"query"},{"name":"h","in":"query"}],"responses":{}}},"/v1/files/public/{id}/preview":{"get":{"operationId":"previewPublicFile","parameters":[{"name":"id","in":"path","required":true},{"name":"version","in":"query"},{"name":"w","in":"query"},{"name":"h","in":"query"},{"name":"org_id","in":"query"}],"responses":{}}},"/v1/files/session":{"get":{"operationId":"getSession","responses":{}},"delete":{"operationId":"deleteSession","responses":{}}},"/v1/files/{id}/public/links":{"post":{"operationId":"generatePublicLink","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"get":{"operationId":"listPublicLinksForFile","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/files/public/links/{id}/{filename}":{"get":{"operationId":"accessPublicLink","parameters":[{"name":"id","in":"path","required":true},{"name":"filename","in":"path","required":true},{"name":"hash","in":"query","required":false}],"responses":{}}},"/v1/files/public/links/{id}":{"delete":{"operationId":"revokePublicLink","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/files/download:verify":{"post":{"operationId":"verifyCustomDownloadUrl","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/files/public/upload":{"post":{"operationId":"uploadFilePublic","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/{slug}/collections":{"get":{"operationId":"getUserSchemaFileCollections","parameters":[{"name":"slug","in":"path","required":true}],"responses":{}},"post":{"operationId":"createUserSchemaFileCollection","parameters":[{"name":"slug","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/{slug}/collections/{collectionSlug}":{"put":{"operationId":"updateUserSchemaFileCollection","parameters":[{"name":"slug","in":"path","required":true},{"name":"collectionSlug","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteUserSchemaFileCollection","parameters":[{"name":"slug","in":"path","required":true},{"name":"collectionSlug","in":"path","required":true}],"responses":{}}},"/v1/entity/{id}/collections/{collectionSlug}/files":{"get":{"operationId":"getFilesInCollection","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"name":"collectionSlug","in":"path","required":true}],"responses":{}}},"/v1/collections/{schemaSlug}":{"get":{"operationId":"getGlobalFileCollections","parameters":[{"name":"schemaSlug","in":"path","required":true}],"responses":{}}}},"components":{"parameters":{"EntityIdPathParam":{"name":"id","in":"path","required":true},"StrictQueryParam":{"name":"strict","in":"query","required":false},"ActivityIdQueryParam":{"name":"activity_id","in":"query","required":false},"FillActivityQueryParam":{"name":"fill_activity","in":"query","required":false},"AsyncOperationQueryParam":{"name":"async","in":"query","required":false},"DeleteTempFileQueryParam":{"name":"delete_temp_file","in":"query","required":false},"VersionOnlyQueryParam":{"name":"version_only","in":"query","required":false}},"responses":{"BadRequestError":{"content":{"application/json":{}}},"UnauthorizedError":{"content":{"application/json":{}}},"ForbiddenError":{"content":{"application/json":{}}},"NotFoundError":{"content":{"application/json":{}}},"ConflictError":{"content":{"application/json":{}}},"InternalServerError":{"content":{"application/json":{}}}}},"servers":[{"url":"https://file.sls.epilot.io"}]}')}},r={},t=function t(n){var i=r[n];if(void 0!==i)return i.exports;var a=r[n]={exports:{}};return e[n].call(a.exports,a,a.exports,t),a.exports}(438),n=exports;for(var i in t)n[i]=t[i];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
@@ -579,6 +579,11 @@
579
579
  "application/json": {}
580
580
  }
581
581
  },
582
+ "ConflictError": {
583
+ "content": {
584
+ "application/json": {}
585
+ }
586
+ },
582
587
  "InternalServerError": {
583
588
  "content": {
584
589
  "application/json": {}
package/dist/openapi.d.ts CHANGED
@@ -59,6 +59,28 @@ declare namespace Components {
59
59
  */
60
60
  error?: string;
61
61
  }
62
+ /**
63
+ * A generic error returned by the API
64
+ * example:
65
+ * {
66
+ * "status": 409,
67
+ * "error": "Extracted file content is still being prepared"
68
+ * }
69
+ */
70
+ export interface ConflictError {
71
+ /**
72
+ * The HTTP status code of the error
73
+ * example:
74
+ * 400
75
+ */
76
+ status?: number;
77
+ /**
78
+ * The error message
79
+ * example:
80
+ * Bad Request
81
+ */
82
+ error?: string;
83
+ }
62
84
  /**
63
85
  * A generic error returned by the API
64
86
  * example:
@@ -2434,13 +2456,21 @@ declare namespace Components {
2434
2456
  */
2435
2457
  CustomDownloadUrl /* uri */;
2436
2458
  /**
2437
- * AI-generated compact summary for hover and list preview surfaces.
2459
+ * Compact German summary for hover and list preview surfaces.
2460
+ */
2461
+ preview_summary_de?: string;
2462
+ /**
2463
+ * Short German paragraph summary for file preview surfaces.
2464
+ */
2465
+ short_summary_de?: string;
2466
+ /**
2467
+ * Compact English summary for hover and list preview surfaces.
2438
2468
  */
2439
- preview_summary?: string;
2469
+ preview_summary_en?: string;
2440
2470
  /**
2441
- * AI-generated short paragraph summary for file preview surfaces.
2471
+ * Short English paragraph summary for file preview surfaces.
2442
2472
  */
2443
- short_summary?: string;
2473
+ short_summary_en?: string;
2444
2474
  summary_status?: /* Current AI summary generation state for the file. */ FileSummaryStatus;
2445
2475
  }
2446
2476
  export interface FileCollectionAttributes {
@@ -2642,13 +2672,21 @@ declare namespace Components {
2642
2672
  */
2643
2673
  CustomDownloadUrl /* uri */;
2644
2674
  /**
2645
- * AI-generated compact summary for hover and list preview surfaces.
2675
+ * Compact German summary for hover and list preview surfaces.
2646
2676
  */
2647
- preview_summary?: string;
2677
+ preview_summary_de?: string;
2648
2678
  /**
2649
- * AI-generated short paragraph summary for file preview surfaces.
2679
+ * Short German paragraph summary for file preview surfaces.
2650
2680
  */
2651
- short_summary?: string;
2681
+ short_summary_de?: string;
2682
+ /**
2683
+ * Compact English summary for hover and list preview surfaces.
2684
+ */
2685
+ preview_summary_en?: string;
2686
+ /**
2687
+ * Short English paragraph summary for file preview surfaces.
2688
+ */
2689
+ short_summary_en?: string;
2652
2690
  summary_status?: /* Current AI summary generation state for the file. */ FileSummaryStatus;
2653
2691
  /**
2654
2692
  * Source URL for the file. Included if the entity was created from source_url, or when ?source_url=true
@@ -2853,13 +2891,21 @@ declare namespace Components {
2853
2891
  */
2854
2892
  CustomDownloadUrl /* uri */;
2855
2893
  /**
2856
- * AI-generated compact summary for hover and list preview surfaces.
2894
+ * Compact German summary for hover and list preview surfaces.
2895
+ */
2896
+ preview_summary_de?: string;
2897
+ /**
2898
+ * Short German paragraph summary for file preview surfaces.
2857
2899
  */
2858
- preview_summary?: string;
2900
+ short_summary_de?: string;
2859
2901
  /**
2860
- * AI-generated short paragraph summary for file preview surfaces.
2902
+ * Compact English summary for hover and list preview surfaces.
2861
2903
  */
2862
- short_summary?: string;
2904
+ preview_summary_en?: string;
2905
+ /**
2906
+ * Short English paragraph summary for file preview surfaces.
2907
+ */
2908
+ short_summary_en?: string;
2863
2909
  summary_status?: /* Current AI summary generation state for the file. */ FileSummaryStatus;
2864
2910
  }
2865
2911
  export interface SaveFileFromSourceURLPayload {
@@ -2941,13 +2987,21 @@ declare namespace Components {
2941
2987
  */
2942
2988
  CustomDownloadUrl /* uri */;
2943
2989
  /**
2944
- * AI-generated compact summary for hover and list preview surfaces.
2990
+ * Compact German summary for hover and list preview surfaces.
2991
+ */
2992
+ preview_summary_de?: string;
2993
+ /**
2994
+ * Short German paragraph summary for file preview surfaces.
2995
+ */
2996
+ short_summary_de?: string;
2997
+ /**
2998
+ * Compact English summary for hover and list preview surfaces.
2945
2999
  */
2946
- preview_summary?: string;
3000
+ preview_summary_en?: string;
2947
3001
  /**
2948
- * AI-generated short paragraph summary for file preview surfaces.
3002
+ * Short English paragraph summary for file preview surfaces.
2949
3003
  */
2950
- short_summary?: string;
3004
+ short_summary_en?: string;
2951
3005
  summary_status?: /* Current AI summary generation state for the file. */ FileSummaryStatus;
2952
3006
  source_url?: /**
2953
3007
  * Custom external download url used for the file
@@ -3037,13 +3091,21 @@ declare namespace Components {
3037
3091
  */
3038
3092
  CustomDownloadUrl /* uri */;
3039
3093
  /**
3040
- * AI-generated compact summary for hover and list preview surfaces.
3094
+ * Compact German summary for hover and list preview surfaces.
3095
+ */
3096
+ preview_summary_de?: string;
3097
+ /**
3098
+ * Short German paragraph summary for file preview surfaces.
3041
3099
  */
3042
- preview_summary?: string;
3100
+ short_summary_de?: string;
3043
3101
  /**
3044
- * AI-generated short paragraph summary for file preview surfaces.
3102
+ * Compact English summary for hover and list preview surfaces.
3045
3103
  */
3046
- short_summary?: string;
3104
+ preview_summary_en?: string;
3105
+ /**
3106
+ * Short English paragraph summary for file preview surfaces.
3107
+ */
3108
+ short_summary_en?: string;
3047
3109
  summary_status?: /* Current AI summary generation state for the file. */ FileSummaryStatus;
3048
3110
  s3ref?: S3Ref;
3049
3111
  }
@@ -3621,6 +3683,15 @@ declare namespace Paths {
3621
3683
  * }
3622
3684
  */
3623
3685
  Components.Responses.NotFoundError;
3686
+ export type $409 = /**
3687
+ * A generic error returned by the API
3688
+ * example:
3689
+ * {
3690
+ * "status": 409,
3691
+ * "error": "Extracted file content is still being prepared"
3692
+ * }
3693
+ */
3694
+ Components.Responses.ConflictError;
3624
3695
  export type $500 = /**
3625
3696
  * A generic error returned by the API
3626
3697
  * example:
@@ -3983,6 +4054,8 @@ declare namespace Paths {
3983
4054
  }
3984
4055
  namespace Responses {
3985
4056
  export type $200 = string; // binary
4057
+ export interface $304 {
4058
+ }
3986
4059
  export type $403 = /* A generic error returned by the API */ Components.Schemas.ErrorObject;
3987
4060
  export type $404 = /**
3988
4061
  * A generic error returned by the API
package/dist/openapi.json CHANGED
@@ -917,6 +917,9 @@
917
917
  "404": {
918
918
  "$ref": "#/components/responses/NotFoundError"
919
919
  },
920
+ "409": {
921
+ "$ref": "#/components/responses/ConflictError"
922
+ },
920
923
  "500": {
921
924
  "$ref": "#/components/responses/InternalServerError"
922
925
  }
@@ -1215,6 +1218,20 @@
1215
1218
  "responses": {
1216
1219
  "200": {
1217
1220
  "description": "Generated thumbnail image for a public file",
1221
+ "headers": {
1222
+ "ETag": {
1223
+ "description": "Identifier of the previewed file version, for conditional requests",
1224
+ "schema": {
1225
+ "type": "string"
1226
+ }
1227
+ },
1228
+ "Cache-Control": {
1229
+ "description": "Caching policy for the preview",
1230
+ "schema": {
1231
+ "type": "string"
1232
+ }
1233
+ }
1234
+ },
1218
1235
  "content": {
1219
1236
  "image/png": {
1220
1237
  "schema": {
@@ -1230,6 +1247,23 @@
1230
1247
  }
1231
1248
  }
1232
1249
  },
1250
+ "304": {
1251
+ "description": "The preview is unchanged since the version identified by the `If-None-Match`\nrequest header. No body is returned; the cached copy should be reused.\n",
1252
+ "headers": {
1253
+ "ETag": {
1254
+ "description": "Identifier of the current file version's preview",
1255
+ "schema": {
1256
+ "type": "string"
1257
+ }
1258
+ },
1259
+ "Cache-Control": {
1260
+ "description": "Caching policy for the preview",
1261
+ "schema": {
1262
+ "type": "string"
1263
+ }
1264
+ }
1265
+ }
1266
+ },
1233
1267
  "403": {
1234
1268
  "description": "File is not public",
1235
1269
  "content": {
@@ -2162,14 +2196,24 @@
2162
2196
  "custom_download_url": {
2163
2197
  "$ref": "#/components/schemas/CustomDownloadUrl"
2164
2198
  },
2165
- "preview_summary": {
2199
+ "preview_summary_de": {
2166
2200
  "type": "string",
2167
- "description": "AI-generated compact summary for hover and list preview surfaces.",
2201
+ "description": "Compact German summary for hover and list preview surfaces.",
2168
2202
  "readOnly": true
2169
2203
  },
2170
- "short_summary": {
2204
+ "short_summary_de": {
2171
2205
  "type": "string",
2172
- "description": "AI-generated short paragraph summary for file preview surfaces.",
2206
+ "description": "Short German paragraph summary for file preview surfaces.",
2207
+ "readOnly": true
2208
+ },
2209
+ "preview_summary_en": {
2210
+ "type": "string",
2211
+ "description": "Compact English summary for hover and list preview surfaces.",
2212
+ "readOnly": true
2213
+ },
2214
+ "short_summary_en": {
2215
+ "type": "string",
2216
+ "description": "Short English paragraph summary for file preview surfaces.",
2173
2217
  "readOnly": true
2174
2218
  },
2175
2219
  "summary_status": {
@@ -3154,6 +3198,26 @@
3154
3198
  }
3155
3199
  }
3156
3200
  },
3201
+ "ConflictError": {
3202
+ "description": "The request conflicts with the current resource state",
3203
+ "content": {
3204
+ "application/json": {
3205
+ "schema": {
3206
+ "allOf": [
3207
+ {
3208
+ "$ref": "#/components/schemas/ErrorObject"
3209
+ },
3210
+ {
3211
+ "example": {
3212
+ "status": 409,
3213
+ "error": "Extracted file content is still being prepared"
3214
+ }
3215
+ }
3216
+ ]
3217
+ }
3218
+ }
3219
+ }
3220
+ },
3157
3221
  "InternalServerError": {
3158
3222
  "description": "An unexpected error occurred on the server",
3159
3223
  "content": {
package/package.json CHANGED
@@ -1,24 +1,12 @@
1
1
  {
2
2
  "name": "@epilot/file-client",
3
- "version": "1.25.0",
3
+ "version": "1.26.1",
4
4
  "description": "Client library for the epilot File API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "author": "epilot GmbH",
8
8
  "license": "MIT",
9
9
  "private": false,
10
- "scripts": {
11
- "test": "vitest",
12
- "typescript": "tsc",
13
- "bundle-definition": "webpack",
14
- "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/file.yaml",
15
- "typegen": "openapi typegen src/openapi.json --client > src/openapi.d.ts",
16
- "build": "tsc && npm run build:patch && npm run bundle-definition",
17
- "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
18
- "build:watch": "npm run build && tsc -w",
19
- "prepublishOnly": "npm run typegen && npm run build",
20
- "lint": "biome check src"
21
- },
22
10
  "repository": {
23
11
  "type": "git",
24
12
  "url": "git+https://github.com/epilot-dev/sdk-js.git",
@@ -68,5 +56,16 @@
68
56
  "webpack": "^5.18.0",
69
57
  "webpack-cli": "^4.4.0"
70
58
  },
71
- "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
72
- }
59
+ "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7",
60
+ "scripts": {
61
+ "test": "vitest",
62
+ "typescript": "tsc",
63
+ "bundle-definition": "webpack",
64
+ "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/file.yaml",
65
+ "typegen": "openapi typegen src/openapi.json --client > src/openapi.d.ts",
66
+ "build": "tsc && npm run build:patch && npm run bundle-definition",
67
+ "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
68
+ "build:watch": "npm run build && tsc -w",
69
+ "lint": "biome check src"
70
+ }
71
+ }