@epilot/file-client 1.16.1 → 1.18.0

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/dist/openapi.d.ts CHANGED
@@ -100,7 +100,12 @@ declare namespace Components {
100
100
  * example:
101
101
  * ef7d985c-2385-44f4-9c71-ae06a52264f8
102
102
  */
103
- _id?: string;
103
+ _id?: /**
104
+ * if passed, adds a new version to existing file entity
105
+ * example:
106
+ * ef7d985c-2385-44f4-9c71-ae06a52264f8
107
+ */
108
+ string | string /* uuid */;
104
109
  /**
105
110
  * Deprecated, use _id instead
106
111
  */
@@ -216,6 +221,101 @@ declare namespace Components {
216
221
  */
217
222
  CustomDownloadUrl /* uri */;
218
223
  }
224
+ export interface FileCollectionAttributes {
225
+ /**
226
+ * Name of the collection
227
+ */
228
+ name?: string;
229
+ /**
230
+ * Array of parent collection slugs, empty array if top-level collection
231
+ */
232
+ parents?: string[];
233
+ /**
234
+ * Whether the collection is starred / favorited
235
+ */
236
+ starred?: boolean;
237
+ }
238
+ /**
239
+ * Request body for creating a file collection
240
+ */
241
+ export interface FileCollectionCreateRequest {
242
+ /**
243
+ * Name of the collection
244
+ */
245
+ name: string;
246
+ /**
247
+ * Array of parent collection slugs, empty array if top-level collection
248
+ */
249
+ parents?: string[];
250
+ /**
251
+ * Whether the collection is starred / favorited
252
+ */
253
+ starred?: boolean;
254
+ }
255
+ /**
256
+ * Generated uuid for a file collection
257
+ */
258
+ export type FileCollectionId = string; // uuid
259
+ /**
260
+ * A file collection with identifiers and timestamps
261
+ */
262
+ export interface FileCollectionItem {
263
+ /**
264
+ * Full slug for the collection. Format depends on collection type:
265
+ * - User collection: `_system_files_collection_{entity_uuid}_{user_id}:{collection_name}`
266
+ * Example: `_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234:documents`
267
+ * - Global collection: `_system_files_collection_schema_{schema_slug}:{collection_name}`
268
+ * Example: `_system_files_collection_schema_opportunity:templates`
269
+ *
270
+ * example:
271
+ * _system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234:documents
272
+ */
273
+ slug?: string;
274
+ /**
275
+ * Display name of the collection
276
+ * example:
277
+ * Documents
278
+ */
279
+ name: string;
280
+ id?: /* Generated uuid for a file collection */ FileCollectionId /* uuid */;
281
+ /**
282
+ * Array of parent collection slugs, empty array if top-level collection. Format depends on collection type:
283
+ * - User collection: `_system_files_collection_{entity_uuid}_{user_id}`
284
+ * Example: `["_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234"]`
285
+ * - Global collection: `_system_files_collection_schema_{schema_slug}`
286
+ * Example: `["_system_files_collection_schema_opportunity"]`
287
+ *
288
+ * example:
289
+ * [
290
+ * "_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234"
291
+ * ]
292
+ */
293
+ parents?: string[];
294
+ /**
295
+ * Whether the collection is starred / favorited
296
+ * example:
297
+ * false
298
+ */
299
+ starred?: boolean;
300
+ /**
301
+ * Display order for the collection
302
+ * example:
303
+ * 0
304
+ */
305
+ order?: number;
306
+ /**
307
+ * Timestamp when the collection was created
308
+ * example:
309
+ * 2024-01-01T12:00:00Z
310
+ */
311
+ created_at?: string; // date-time
312
+ /**
313
+ * Timestamp when the collection was last updated
314
+ * example:
315
+ * 2024-01-02T12:00:00Z
316
+ */
317
+ updated_at?: string; // date-time
318
+ }
219
319
  export interface FileEntity {
220
320
  /**
221
321
  * example:
@@ -319,7 +419,11 @@ declare namespace Components {
319
419
  * example:
320
420
  * ef7d985c-2385-44f4-9c71-ae06a52264f8
321
421
  */
322
- export type FileEntityId = string;
422
+ export type FileEntityId = /**
423
+ * example:
424
+ * ef7d985c-2385-44f4-9c71-ae06a52264f8
425
+ */
426
+ string | string /* uuid */;
323
427
  export interface FileFolderAttributes {
324
428
  /**
325
429
  * Name of the folder
@@ -360,9 +464,14 @@ declare namespace Components {
360
464
  */
361
465
  export interface FileFolderItem {
362
466
  /**
363
- * Full slug for the folder
467
+ * Full slug for the folder. Format depends on collection type:
468
+ * - User collection: `_system_files_collection_{entity_uuid}_{user_id}:{collection_name}`
469
+ * Example: `_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234:documents`
470
+ * - Global collection: `_system_files_collection_schema_{schema_slug}:{collection_name}`
471
+ * Example: `_system_files_collection_schema_opportunity:templates`
472
+ *
364
473
  * example:
365
- * _system_files_collection_entity-123:documents
474
+ * _system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234:documents
366
475
  */
367
476
  slug?: string;
368
477
  /**
@@ -373,10 +482,15 @@ declare namespace Components {
373
482
  name: string;
374
483
  id?: /* Generated uuid for a file folder */ FileFolderId /* uuid */;
375
484
  /**
376
- * Array of parent folder slugs, empty array if top-level folder
485
+ * Array of parent folder slugs, empty array if top-level folder. Format depends on collection type:
486
+ * - User collection: `_system_files_collection_{entity_uuid}_{user_id}`
487
+ * Example: `["_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234"]`
488
+ * - Global collection: `_system_files_collection_schema_{schema_slug}`
489
+ * Example: `["_system_files_collection_schema_opportunity"]`
490
+ *
377
491
  * example:
378
492
  * [
379
- * "_system_files_collection_entity-123"
493
+ * "_system_files_collection_3fa85f64-5717-4562-b3fc-2c963f66afa6_10234"
380
494
  * ]
381
495
  */
382
496
  parents?: string[];
@@ -386,6 +500,12 @@ declare namespace Components {
386
500
  * false
387
501
  */
388
502
  starred?: boolean;
503
+ /**
504
+ * Display order for the folder
505
+ * example:
506
+ * 0
507
+ */
508
+ order?: number;
389
509
  /**
390
510
  * Timestamp when the folder was created
391
511
  * example:
@@ -489,7 +609,12 @@ declare namespace Components {
489
609
  * example:
490
610
  * ef7d985c-2385-44f4-9c71-ae06a52264f8
491
611
  */
492
- _id?: string;
612
+ _id?: /**
613
+ * if passed, adds a new version to existing file entity
614
+ * example:
615
+ * ef7d985c-2385-44f4-9c71-ae06a52264f8
616
+ */
617
+ string | string /* uuid */;
493
618
  /**
494
619
  * Deprecated, use _id instead
495
620
  */
@@ -563,7 +688,12 @@ declare namespace Components {
563
688
  * example:
564
689
  * ef7d985c-2385-44f4-9c71-ae06a52264f8
565
690
  */
566
- _id?: string;
691
+ _id?: /**
692
+ * if passed, adds a new version to existing file entity
693
+ * example:
694
+ * ef7d985c-2385-44f4-9c71-ae06a52264f8
695
+ */
696
+ string | string /* uuid */;
567
697
  /**
568
698
  * Deprecated, use _id instead
569
699
  */
@@ -645,7 +775,12 @@ declare namespace Components {
645
775
  * example:
646
776
  * ef7d985c-2385-44f4-9c71-ae06a52264f8
647
777
  */
648
- _id?: string;
778
+ _id?: /**
779
+ * if passed, adds a new version to existing file entity
780
+ * example:
781
+ * ef7d985c-2385-44f4-9c71-ae06a52264f8
782
+ */
783
+ string | string /* uuid */;
649
784
  /**
650
785
  * Deprecated, use _id instead
651
786
  */
@@ -794,6 +929,31 @@ declare namespace Paths {
794
929
  }
795
930
  }
796
931
  }
932
+ namespace CreateFileCollection {
933
+ namespace Parameters {
934
+ export type Id = /**
935
+ * example:
936
+ * ef7d985c-2385-44f4-9c71-ae06a52264f8
937
+ */
938
+ Components.Schemas.EntityId;
939
+ }
940
+ export interface PathParameters {
941
+ id: Parameters.Id;
942
+ }
943
+ export type RequestBody = /* Request body for creating a file collection */ Components.Schemas.FileCollectionCreateRequest;
944
+ namespace Responses {
945
+ export type $201 = /* A file collection with identifiers and timestamps */ Components.Schemas.FileCollectionItem;
946
+ export type $404 = /**
947
+ * A generic error returned by the API
948
+ * example:
949
+ * {
950
+ * "status": 404,
951
+ * "error": "Not Found"
952
+ * }
953
+ */
954
+ Components.Responses.NotFoundError;
955
+ }
956
+ }
797
957
  namespace CreateFileFolder {
798
958
  namespace Parameters {
799
959
  export type Id = /**
@@ -850,6 +1010,41 @@ declare namespace Paths {
850
1010
  export type $200 = Components.Schemas.FileEntity;
851
1011
  }
852
1012
  }
1013
+ namespace DeleteFileCollection {
1014
+ namespace Parameters {
1015
+ /**
1016
+ * example:
1017
+ * documents
1018
+ */
1019
+ export type CollectionSlug = string;
1020
+ export type Id = /**
1021
+ * example:
1022
+ * ef7d985c-2385-44f4-9c71-ae06a52264f8
1023
+ */
1024
+ Components.Schemas.EntityId;
1025
+ }
1026
+ export interface PathParameters {
1027
+ id: Parameters.Id;
1028
+ collectionSlug: /**
1029
+ * example:
1030
+ * documents
1031
+ */
1032
+ Parameters.CollectionSlug;
1033
+ }
1034
+ namespace Responses {
1035
+ export interface $200 {
1036
+ }
1037
+ export type $404 = /**
1038
+ * A generic error returned by the API
1039
+ * example:
1040
+ * {
1041
+ * "status": 404,
1042
+ * "error": "Not Found"
1043
+ * }
1044
+ */
1045
+ Components.Responses.NotFoundError;
1046
+ }
1047
+ }
853
1048
  namespace DeleteFileFolder {
854
1049
  namespace Parameters {
855
1050
  /**
@@ -997,6 +1192,34 @@ declare namespace Paths {
997
1192
  export type $200 = Components.Schemas.FileEntity;
998
1193
  }
999
1194
  }
1195
+ namespace GetFileCollections {
1196
+ namespace Parameters {
1197
+ export type Id = /**
1198
+ * example:
1199
+ * ef7d985c-2385-44f4-9c71-ae06a52264f8
1200
+ */
1201
+ Components.Schemas.EntityId;
1202
+ export type Parents = string[];
1203
+ }
1204
+ export interface PathParameters {
1205
+ id: Parameters.Id;
1206
+ }
1207
+ export interface QueryParameters {
1208
+ parents?: Parameters.Parents;
1209
+ }
1210
+ namespace Responses {
1211
+ export type $200 = /* A file collection with identifiers and timestamps */ Components.Schemas.FileCollectionItem[];
1212
+ export type $404 = /**
1213
+ * A generic error returned by the API
1214
+ * example:
1215
+ * {
1216
+ * "status": 404,
1217
+ * "error": "Not Found"
1218
+ * }
1219
+ */
1220
+ Components.Responses.NotFoundError;
1221
+ }
1222
+ }
1000
1223
  namespace GetFileFolders {
1001
1224
  namespace Parameters {
1002
1225
  export type Id = /**
@@ -1025,6 +1248,45 @@ declare namespace Paths {
1025
1248
  Components.Responses.NotFoundError;
1026
1249
  }
1027
1250
  }
1251
+ namespace GetFilesInCollection {
1252
+ namespace Parameters {
1253
+ /**
1254
+ * example:
1255
+ * documents
1256
+ */
1257
+ export type CollectionSlug = string;
1258
+ export type Id = /**
1259
+ * example:
1260
+ * ef7d985c-2385-44f4-9c71-ae06a52264f8
1261
+ */
1262
+ Components.Schemas.EntityId;
1263
+ }
1264
+ export interface PathParameters {
1265
+ id: Parameters.Id;
1266
+ collectionSlug: /**
1267
+ * example:
1268
+ * documents
1269
+ */
1270
+ Parameters.CollectionSlug;
1271
+ }
1272
+ namespace Responses {
1273
+ export type $200 = Components.Schemas.FileEntity[];
1274
+ export interface $403 {
1275
+ /**
1276
+ * example:
1277
+ * User must have permission to view this entity to access its files
1278
+ */
1279
+ error?: string;
1280
+ }
1281
+ export interface $404 {
1282
+ /**
1283
+ * example:
1284
+ * Entity not found
1285
+ */
1286
+ error?: string;
1287
+ }
1288
+ }
1289
+ }
1028
1290
  namespace GetFilesInFolder {
1029
1291
  namespace Parameters {
1030
1292
  /**
@@ -1064,6 +1326,44 @@ declare namespace Paths {
1064
1326
  }
1065
1327
  }
1066
1328
  }
1329
+ namespace GetGlobalFileCollections {
1330
+ namespace Parameters {
1331
+ /**
1332
+ * example:
1333
+ * order
1334
+ */
1335
+ export type SchemaSlug = string;
1336
+ }
1337
+ export interface PathParameters {
1338
+ schemaSlug: /**
1339
+ * example:
1340
+ * order
1341
+ */
1342
+ Parameters.SchemaSlug;
1343
+ }
1344
+ namespace Responses {
1345
+ export type $200 = /* A file collection with identifiers and timestamps */ Components.Schemas.FileCollectionItem[];
1346
+ }
1347
+ }
1348
+ namespace GetGlobalFileFolders {
1349
+ namespace Parameters {
1350
+ /**
1351
+ * example:
1352
+ * order
1353
+ */
1354
+ export type SchemaSlug = string;
1355
+ }
1356
+ export interface PathParameters {
1357
+ schemaSlug: /**
1358
+ * example:
1359
+ * order
1360
+ */
1361
+ Parameters.SchemaSlug;
1362
+ }
1363
+ namespace Responses {
1364
+ export type $200 = /* A file folder with identifiers and timestamps */ Components.Schemas.FileFolderItem[];
1365
+ }
1366
+ }
1067
1367
  namespace GetSession {
1068
1368
  namespace Responses {
1069
1369
  export interface $200 {
@@ -1229,6 +1529,41 @@ declare namespace Paths {
1229
1529
  export type $200 = Components.Schemas.FileEntity;
1230
1530
  }
1231
1531
  }
1532
+ namespace UpdateFileCollection {
1533
+ namespace Parameters {
1534
+ /**
1535
+ * example:
1536
+ * documents
1537
+ */
1538
+ export type CollectionSlug = string;
1539
+ export type Id = /**
1540
+ * example:
1541
+ * ef7d985c-2385-44f4-9c71-ae06a52264f8
1542
+ */
1543
+ Components.Schemas.EntityId;
1544
+ }
1545
+ export interface PathParameters {
1546
+ id: Parameters.Id;
1547
+ collectionSlug: /**
1548
+ * example:
1549
+ * documents
1550
+ */
1551
+ Parameters.CollectionSlug;
1552
+ }
1553
+ export type RequestBody = Components.Schemas.FileCollectionAttributes;
1554
+ namespace Responses {
1555
+ export type $200 = /* A file collection with identifiers and timestamps */ Components.Schemas.FileCollectionItem;
1556
+ export type $404 = /**
1557
+ * A generic error returned by the API
1558
+ * example:
1559
+ * {
1560
+ * "status": 404,
1561
+ * "error": "Not Found"
1562
+ * }
1563
+ */
1564
+ Components.Responses.NotFoundError;
1565
+ }
1566
+ }
1232
1567
  namespace UpdateFileFolder {
1233
1568
  namespace Parameters {
1234
1569
  /**
@@ -1573,7 +1908,7 @@ export interface OperationMethods {
1573
1908
  /**
1574
1909
  * getFileFolders - getFileFolders
1575
1910
  *
1576
- * Gets a list of folders that exist for an entity
1911
+ * Gets a list of folders that exist for an entity. Deprecated - use getFileCollections instead.
1577
1912
  */
1578
1913
  'getFileFolders'(
1579
1914
  parameters?: Parameters<Paths.GetFileFolders.QueryParameters & Paths.GetFileFolders.PathParameters> | null,
@@ -1583,7 +1918,7 @@ export interface OperationMethods {
1583
1918
  /**
1584
1919
  * createFileFolder - createFileFolder
1585
1920
  *
1586
- * Creates a new file folder for the specified entity
1921
+ * Creates a new file folder for the specified entity. Deprecated - use createFileCollection instead.
1587
1922
  */
1588
1923
  'createFileFolder'(
1589
1924
  parameters?: Parameters<Paths.CreateFileFolder.PathParameters> | null,
@@ -1593,7 +1928,7 @@ export interface OperationMethods {
1593
1928
  /**
1594
1929
  * updateFileFolder - updateFileFolder
1595
1930
  *
1596
- * Updates a specific file folder by slug
1931
+ * Updates a specific file folder by slug. Deprecated - use updateFileCollection instead.
1597
1932
  */
1598
1933
  'updateFileFolder'(
1599
1934
  parameters?: Parameters<Paths.UpdateFileFolder.PathParameters> | null,
@@ -1603,7 +1938,7 @@ export interface OperationMethods {
1603
1938
  /**
1604
1939
  * deleteFileFolder - deleteFileFolder
1605
1940
  *
1606
- * Deletes a specific file folder by slug
1941
+ * Deletes a specific file folder by slug. Deprecated - use deleteFileCollection instead.
1607
1942
  */
1608
1943
  'deleteFileFolder'(
1609
1944
  parameters?: Parameters<Paths.DeleteFileFolder.PathParameters> | null,
@@ -1613,13 +1948,83 @@ export interface OperationMethods {
1613
1948
  /**
1614
1949
  * getFilesInFolder - getFilesInFolder
1615
1950
  *
1616
- * Gets all files within a specific folder for an entity
1951
+ * Gets all files within a specific folder for an entity. Deprecated - use getFilesInCollection instead.
1617
1952
  */
1618
1953
  'getFilesInFolder'(
1619
1954
  parameters?: Parameters<Paths.GetFilesInFolder.PathParameters> | null,
1620
1955
  data?: any,
1621
1956
  config?: AxiosRequestConfig
1622
1957
  ): OperationResponse<Paths.GetFilesInFolder.Responses.$200>
1958
+ /**
1959
+ * getGlobalFileFolders - getGlobalFileFolders
1960
+ *
1961
+ * Gets all global file folders for a specific schema. Deprecated - use getGlobalFileCollections instead.
1962
+ */
1963
+ 'getGlobalFileFolders'(
1964
+ parameters?: Parameters<Paths.GetGlobalFileFolders.PathParameters> | null,
1965
+ data?: any,
1966
+ config?: AxiosRequestConfig
1967
+ ): OperationResponse<Paths.GetGlobalFileFolders.Responses.$200>
1968
+ /**
1969
+ * getFileCollections - getFileCollections
1970
+ *
1971
+ * Gets a list of collections that exist for an entity
1972
+ */
1973
+ 'getFileCollections'(
1974
+ parameters?: Parameters<Paths.GetFileCollections.QueryParameters & Paths.GetFileCollections.PathParameters> | null,
1975
+ data?: any,
1976
+ config?: AxiosRequestConfig
1977
+ ): OperationResponse<Paths.GetFileCollections.Responses.$200>
1978
+ /**
1979
+ * createFileCollection - createFileCollection
1980
+ *
1981
+ * Creates a new file collection for the specified entity
1982
+ */
1983
+ 'createFileCollection'(
1984
+ parameters?: Parameters<Paths.CreateFileCollection.PathParameters> | null,
1985
+ data?: Paths.CreateFileCollection.RequestBody,
1986
+ config?: AxiosRequestConfig
1987
+ ): OperationResponse<Paths.CreateFileCollection.Responses.$201>
1988
+ /**
1989
+ * updateFileCollection - updateFileCollection
1990
+ *
1991
+ * Updates a specific file collection by slug
1992
+ */
1993
+ 'updateFileCollection'(
1994
+ parameters?: Parameters<Paths.UpdateFileCollection.PathParameters> | null,
1995
+ data?: Paths.UpdateFileCollection.RequestBody,
1996
+ config?: AxiosRequestConfig
1997
+ ): OperationResponse<Paths.UpdateFileCollection.Responses.$200>
1998
+ /**
1999
+ * deleteFileCollection - deleteFileCollection
2000
+ *
2001
+ * Deletes a specific file collection by slug
2002
+ */
2003
+ 'deleteFileCollection'(
2004
+ parameters?: Parameters<Paths.DeleteFileCollection.PathParameters> | null,
2005
+ data?: any,
2006
+ config?: AxiosRequestConfig
2007
+ ): OperationResponse<Paths.DeleteFileCollection.Responses.$200>
2008
+ /**
2009
+ * getFilesInCollection - getFilesInCollection
2010
+ *
2011
+ * Gets all files within a specific collection for an entity
2012
+ */
2013
+ 'getFilesInCollection'(
2014
+ parameters?: Parameters<Paths.GetFilesInCollection.PathParameters> | null,
2015
+ data?: any,
2016
+ config?: AxiosRequestConfig
2017
+ ): OperationResponse<Paths.GetFilesInCollection.Responses.$200>
2018
+ /**
2019
+ * getGlobalFileCollections - getGlobalFileCollections
2020
+ *
2021
+ * Gets all global file collections for a specific schema
2022
+ */
2023
+ 'getGlobalFileCollections'(
2024
+ parameters?: Parameters<Paths.GetGlobalFileCollections.PathParameters> | null,
2025
+ data?: any,
2026
+ config?: AxiosRequestConfig
2027
+ ): OperationResponse<Paths.GetGlobalFileCollections.Responses.$200>
1623
2028
  }
1624
2029
 
1625
2030
  export interface PathsDictionary {
@@ -1892,7 +2297,7 @@ export interface PathsDictionary {
1892
2297
  /**
1893
2298
  * getFileFolders - getFileFolders
1894
2299
  *
1895
- * Gets a list of folders that exist for an entity
2300
+ * Gets a list of folders that exist for an entity. Deprecated - use getFileCollections instead.
1896
2301
  */
1897
2302
  'get'(
1898
2303
  parameters?: Parameters<Paths.GetFileFolders.QueryParameters & Paths.GetFileFolders.PathParameters> | null,
@@ -1902,7 +2307,7 @@ export interface PathsDictionary {
1902
2307
  /**
1903
2308
  * createFileFolder - createFileFolder
1904
2309
  *
1905
- * Creates a new file folder for the specified entity
2310
+ * Creates a new file folder for the specified entity. Deprecated - use createFileCollection instead.
1906
2311
  */
1907
2312
  'post'(
1908
2313
  parameters?: Parameters<Paths.CreateFileFolder.PathParameters> | null,
@@ -1914,7 +2319,7 @@ export interface PathsDictionary {
1914
2319
  /**
1915
2320
  * updateFileFolder - updateFileFolder
1916
2321
  *
1917
- * Updates a specific file folder by slug
2322
+ * Updates a specific file folder by slug. Deprecated - use updateFileCollection instead.
1918
2323
  */
1919
2324
  'put'(
1920
2325
  parameters?: Parameters<Paths.UpdateFileFolder.PathParameters> | null,
@@ -1924,7 +2329,7 @@ export interface PathsDictionary {
1924
2329
  /**
1925
2330
  * deleteFileFolder - deleteFileFolder
1926
2331
  *
1927
- * Deletes a specific file folder by slug
2332
+ * Deletes a specific file folder by slug. Deprecated - use deleteFileCollection instead.
1928
2333
  */
1929
2334
  'delete'(
1930
2335
  parameters?: Parameters<Paths.DeleteFileFolder.PathParameters> | null,
@@ -1936,7 +2341,7 @@ export interface PathsDictionary {
1936
2341
  /**
1937
2342
  * getFilesInFolder - getFilesInFolder
1938
2343
  *
1939
- * Gets all files within a specific folder for an entity
2344
+ * Gets all files within a specific folder for an entity. Deprecated - use getFilesInCollection instead.
1940
2345
  */
1941
2346
  'get'(
1942
2347
  parameters?: Parameters<Paths.GetFilesInFolder.PathParameters> | null,
@@ -1944,6 +2349,86 @@ export interface PathsDictionary {
1944
2349
  config?: AxiosRequestConfig
1945
2350
  ): OperationResponse<Paths.GetFilesInFolder.Responses.$200>
1946
2351
  }
2352
+ ['/v1/folders/{schemaSlug}']: {
2353
+ /**
2354
+ * getGlobalFileFolders - getGlobalFileFolders
2355
+ *
2356
+ * Gets all global file folders for a specific schema. Deprecated - use getGlobalFileCollections instead.
2357
+ */
2358
+ 'get'(
2359
+ parameters?: Parameters<Paths.GetGlobalFileFolders.PathParameters> | null,
2360
+ data?: any,
2361
+ config?: AxiosRequestConfig
2362
+ ): OperationResponse<Paths.GetGlobalFileFolders.Responses.$200>
2363
+ }
2364
+ ['/v1/entity/{id}/collections']: {
2365
+ /**
2366
+ * getFileCollections - getFileCollections
2367
+ *
2368
+ * Gets a list of collections that exist for an entity
2369
+ */
2370
+ 'get'(
2371
+ parameters?: Parameters<Paths.GetFileCollections.QueryParameters & Paths.GetFileCollections.PathParameters> | null,
2372
+ data?: any,
2373
+ config?: AxiosRequestConfig
2374
+ ): OperationResponse<Paths.GetFileCollections.Responses.$200>
2375
+ /**
2376
+ * createFileCollection - createFileCollection
2377
+ *
2378
+ * Creates a new file collection for the specified entity
2379
+ */
2380
+ 'post'(
2381
+ parameters?: Parameters<Paths.CreateFileCollection.PathParameters> | null,
2382
+ data?: Paths.CreateFileCollection.RequestBody,
2383
+ config?: AxiosRequestConfig
2384
+ ): OperationResponse<Paths.CreateFileCollection.Responses.$201>
2385
+ }
2386
+ ['/v1/entity/{id}/collections/{collectionSlug}']: {
2387
+ /**
2388
+ * updateFileCollection - updateFileCollection
2389
+ *
2390
+ * Updates a specific file collection by slug
2391
+ */
2392
+ 'put'(
2393
+ parameters?: Parameters<Paths.UpdateFileCollection.PathParameters> | null,
2394
+ data?: Paths.UpdateFileCollection.RequestBody,
2395
+ config?: AxiosRequestConfig
2396
+ ): OperationResponse<Paths.UpdateFileCollection.Responses.$200>
2397
+ /**
2398
+ * deleteFileCollection - deleteFileCollection
2399
+ *
2400
+ * Deletes a specific file collection by slug
2401
+ */
2402
+ 'delete'(
2403
+ parameters?: Parameters<Paths.DeleteFileCollection.PathParameters> | null,
2404
+ data?: any,
2405
+ config?: AxiosRequestConfig
2406
+ ): OperationResponse<Paths.DeleteFileCollection.Responses.$200>
2407
+ }
2408
+ ['/v1/entity/{id}/collections/{collectionSlug}/files']: {
2409
+ /**
2410
+ * getFilesInCollection - getFilesInCollection
2411
+ *
2412
+ * Gets all files within a specific collection for an entity
2413
+ */
2414
+ 'get'(
2415
+ parameters?: Parameters<Paths.GetFilesInCollection.PathParameters> | null,
2416
+ data?: any,
2417
+ config?: AxiosRequestConfig
2418
+ ): OperationResponse<Paths.GetFilesInCollection.Responses.$200>
2419
+ }
2420
+ ['/v1/collections/{schemaSlug}']: {
2421
+ /**
2422
+ * getGlobalFileCollections - getGlobalFileCollections
2423
+ *
2424
+ * Gets all global file collections for a specific schema
2425
+ */
2426
+ 'get'(
2427
+ parameters?: Parameters<Paths.GetGlobalFileCollections.PathParameters> | null,
2428
+ data?: any,
2429
+ config?: AxiosRequestConfig
2430
+ ): OperationResponse<Paths.GetGlobalFileCollections.Responses.$200>
2431
+ }
1947
2432
  }
1948
2433
 
1949
2434
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
@@ -1959,6 +2444,10 @@ export type EntityId = Components.Schemas.EntityId;
1959
2444
  export type EntitySlug = Components.Schemas.EntitySlug;
1960
2445
  export type ErrorObject = Components.Schemas.ErrorObject;
1961
2446
  export type FileAttributes = Components.Schemas.FileAttributes;
2447
+ export type FileCollectionAttributes = Components.Schemas.FileCollectionAttributes;
2448
+ export type FileCollectionCreateRequest = Components.Schemas.FileCollectionCreateRequest;
2449
+ export type FileCollectionId = Components.Schemas.FileCollectionId;
2450
+ export type FileCollectionItem = Components.Schemas.FileCollectionItem;
1962
2451
  export type FileEntity = Components.Schemas.FileEntity;
1963
2452
  export type FileEntityId = Components.Schemas.FileEntityId;
1964
2453
  export type FileFolderAttributes = Components.Schemas.FileFolderAttributes;