@epilot/file-client 1.17.0 → 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[];
@@ -495,7 +609,12 @@ declare namespace Components {
495
609
  * example:
496
610
  * ef7d985c-2385-44f4-9c71-ae06a52264f8
497
611
  */
498
- _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 */;
499
618
  /**
500
619
  * Deprecated, use _id instead
501
620
  */
@@ -569,7 +688,12 @@ declare namespace Components {
569
688
  * example:
570
689
  * ef7d985c-2385-44f4-9c71-ae06a52264f8
571
690
  */
572
- _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 */;
573
697
  /**
574
698
  * Deprecated, use _id instead
575
699
  */
@@ -651,7 +775,12 @@ declare namespace Components {
651
775
  * example:
652
776
  * ef7d985c-2385-44f4-9c71-ae06a52264f8
653
777
  */
654
- _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 */;
655
784
  /**
656
785
  * Deprecated, use _id instead
657
786
  */
@@ -800,6 +929,31 @@ declare namespace Paths {
800
929
  }
801
930
  }
802
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
+ }
803
957
  namespace CreateFileFolder {
804
958
  namespace Parameters {
805
959
  export type Id = /**
@@ -856,6 +1010,41 @@ declare namespace Paths {
856
1010
  export type $200 = Components.Schemas.FileEntity;
857
1011
  }
858
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
+ }
859
1048
  namespace DeleteFileFolder {
860
1049
  namespace Parameters {
861
1050
  /**
@@ -1003,6 +1192,34 @@ declare namespace Paths {
1003
1192
  export type $200 = Components.Schemas.FileEntity;
1004
1193
  }
1005
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
+ }
1006
1223
  namespace GetFileFolders {
1007
1224
  namespace Parameters {
1008
1225
  export type Id = /**
@@ -1031,6 +1248,45 @@ declare namespace Paths {
1031
1248
  Components.Responses.NotFoundError;
1032
1249
  }
1033
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
+ }
1034
1290
  namespace GetFilesInFolder {
1035
1291
  namespace Parameters {
1036
1292
  /**
@@ -1070,6 +1326,25 @@ declare namespace Paths {
1070
1326
  }
1071
1327
  }
1072
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
+ }
1073
1348
  namespace GetGlobalFileFolders {
1074
1349
  namespace Parameters {
1075
1350
  /**
@@ -1254,6 +1529,41 @@ declare namespace Paths {
1254
1529
  export type $200 = Components.Schemas.FileEntity;
1255
1530
  }
1256
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
+ }
1257
1567
  namespace UpdateFileFolder {
1258
1568
  namespace Parameters {
1259
1569
  /**
@@ -1598,7 +1908,7 @@ export interface OperationMethods {
1598
1908
  /**
1599
1909
  * getFileFolders - getFileFolders
1600
1910
  *
1601
- * 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.
1602
1912
  */
1603
1913
  'getFileFolders'(
1604
1914
  parameters?: Parameters<Paths.GetFileFolders.QueryParameters & Paths.GetFileFolders.PathParameters> | null,
@@ -1608,7 +1918,7 @@ export interface OperationMethods {
1608
1918
  /**
1609
1919
  * createFileFolder - createFileFolder
1610
1920
  *
1611
- * Creates a new file folder for the specified entity
1921
+ * Creates a new file folder for the specified entity. Deprecated - use createFileCollection instead.
1612
1922
  */
1613
1923
  'createFileFolder'(
1614
1924
  parameters?: Parameters<Paths.CreateFileFolder.PathParameters> | null,
@@ -1618,7 +1928,7 @@ export interface OperationMethods {
1618
1928
  /**
1619
1929
  * updateFileFolder - updateFileFolder
1620
1930
  *
1621
- * Updates a specific file folder by slug
1931
+ * Updates a specific file folder by slug. Deprecated - use updateFileCollection instead.
1622
1932
  */
1623
1933
  'updateFileFolder'(
1624
1934
  parameters?: Parameters<Paths.UpdateFileFolder.PathParameters> | null,
@@ -1628,7 +1938,7 @@ export interface OperationMethods {
1628
1938
  /**
1629
1939
  * deleteFileFolder - deleteFileFolder
1630
1940
  *
1631
- * Deletes a specific file folder by slug
1941
+ * Deletes a specific file folder by slug. Deprecated - use deleteFileCollection instead.
1632
1942
  */
1633
1943
  'deleteFileFolder'(
1634
1944
  parameters?: Parameters<Paths.DeleteFileFolder.PathParameters> | null,
@@ -1638,7 +1948,7 @@ export interface OperationMethods {
1638
1948
  /**
1639
1949
  * getFilesInFolder - getFilesInFolder
1640
1950
  *
1641
- * 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.
1642
1952
  */
1643
1953
  'getFilesInFolder'(
1644
1954
  parameters?: Parameters<Paths.GetFilesInFolder.PathParameters> | null,
@@ -1648,13 +1958,73 @@ export interface OperationMethods {
1648
1958
  /**
1649
1959
  * getGlobalFileFolders - getGlobalFileFolders
1650
1960
  *
1651
- * Gets all global file folders for a specific schema
1961
+ * Gets all global file folders for a specific schema. Deprecated - use getGlobalFileCollections instead.
1652
1962
  */
1653
1963
  'getGlobalFileFolders'(
1654
1964
  parameters?: Parameters<Paths.GetGlobalFileFolders.PathParameters> | null,
1655
1965
  data?: any,
1656
1966
  config?: AxiosRequestConfig
1657
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>
1658
2028
  }
1659
2029
 
1660
2030
  export interface PathsDictionary {
@@ -1927,7 +2297,7 @@ export interface PathsDictionary {
1927
2297
  /**
1928
2298
  * getFileFolders - getFileFolders
1929
2299
  *
1930
- * 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.
1931
2301
  */
1932
2302
  'get'(
1933
2303
  parameters?: Parameters<Paths.GetFileFolders.QueryParameters & Paths.GetFileFolders.PathParameters> | null,
@@ -1937,7 +2307,7 @@ export interface PathsDictionary {
1937
2307
  /**
1938
2308
  * createFileFolder - createFileFolder
1939
2309
  *
1940
- * Creates a new file folder for the specified entity
2310
+ * Creates a new file folder for the specified entity. Deprecated - use createFileCollection instead.
1941
2311
  */
1942
2312
  'post'(
1943
2313
  parameters?: Parameters<Paths.CreateFileFolder.PathParameters> | null,
@@ -1949,7 +2319,7 @@ export interface PathsDictionary {
1949
2319
  /**
1950
2320
  * updateFileFolder - updateFileFolder
1951
2321
  *
1952
- * Updates a specific file folder by slug
2322
+ * Updates a specific file folder by slug. Deprecated - use updateFileCollection instead.
1953
2323
  */
1954
2324
  'put'(
1955
2325
  parameters?: Parameters<Paths.UpdateFileFolder.PathParameters> | null,
@@ -1959,7 +2329,7 @@ export interface PathsDictionary {
1959
2329
  /**
1960
2330
  * deleteFileFolder - deleteFileFolder
1961
2331
  *
1962
- * Deletes a specific file folder by slug
2332
+ * Deletes a specific file folder by slug. Deprecated - use deleteFileCollection instead.
1963
2333
  */
1964
2334
  'delete'(
1965
2335
  parameters?: Parameters<Paths.DeleteFileFolder.PathParameters> | null,
@@ -1971,7 +2341,7 @@ export interface PathsDictionary {
1971
2341
  /**
1972
2342
  * getFilesInFolder - getFilesInFolder
1973
2343
  *
1974
- * 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.
1975
2345
  */
1976
2346
  'get'(
1977
2347
  parameters?: Parameters<Paths.GetFilesInFolder.PathParameters> | null,
@@ -1983,7 +2353,7 @@ export interface PathsDictionary {
1983
2353
  /**
1984
2354
  * getGlobalFileFolders - getGlobalFileFolders
1985
2355
  *
1986
- * Gets all global file folders for a specific schema
2356
+ * Gets all global file folders for a specific schema. Deprecated - use getGlobalFileCollections instead.
1987
2357
  */
1988
2358
  'get'(
1989
2359
  parameters?: Parameters<Paths.GetGlobalFileFolders.PathParameters> | null,
@@ -1991,6 +2361,74 @@ export interface PathsDictionary {
1991
2361
  config?: AxiosRequestConfig
1992
2362
  ): OperationResponse<Paths.GetGlobalFileFolders.Responses.$200>
1993
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
+ }
1994
2432
  }
1995
2433
 
1996
2434
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
@@ -2006,6 +2444,10 @@ export type EntityId = Components.Schemas.EntityId;
2006
2444
  export type EntitySlug = Components.Schemas.EntitySlug;
2007
2445
  export type ErrorObject = Components.Schemas.ErrorObject;
2008
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;
2009
2451
  export type FileEntity = Components.Schemas.FileEntity;
2010
2452
  export type FileEntityId = Components.Schemas.FileEntityId;
2011
2453
  export type FileFolderAttributes = Components.Schemas.FileFolderAttributes;