@datocms/cma-client 3.3.7 → 3.3.8

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.
Files changed (41) hide show
  1. package/dist/cjs/generated/Client.js +2 -1
  2. package/dist/cjs/generated/Client.js.map +1 -1
  3. package/dist/cjs/generated/resources/Role.js +2 -0
  4. package/dist/cjs/generated/resources/Role.js.map +1 -1
  5. package/dist/cjs/generated/resources/Upload.js +34 -2
  6. package/dist/cjs/generated/resources/Upload.js.map +1 -1
  7. package/dist/cjs/generated/resources/UploadCollection.js +202 -0
  8. package/dist/cjs/generated/resources/UploadCollection.js.map +1 -0
  9. package/dist/cjs/generated/resources/index.js +3 -1
  10. package/dist/cjs/generated/resources/index.js.map +1 -1
  11. package/dist/esm/generated/Client.d.ts +1 -0
  12. package/dist/esm/generated/Client.js +2 -1
  13. package/dist/esm/generated/Client.js.map +1 -1
  14. package/dist/esm/generated/SchemaTypes.d.ts +272 -4
  15. package/dist/esm/generated/SimpleSchemaTypes.d.ts +176 -4
  16. package/dist/esm/generated/resources/Role.js +2 -0
  17. package/dist/esm/generated/resources/Role.js.map +1 -1
  18. package/dist/esm/generated/resources/Upload.d.ts +18 -0
  19. package/dist/esm/generated/resources/Upload.js +34 -2
  20. package/dist/esm/generated/resources/Upload.js.map +1 -1
  21. package/dist/esm/generated/resources/UploadCollection.d.ts +96 -0
  22. package/dist/esm/generated/resources/UploadCollection.js +174 -0
  23. package/dist/esm/generated/resources/UploadCollection.js.map +1 -0
  24. package/dist/esm/generated/resources/index.d.ts +1 -0
  25. package/dist/esm/generated/resources/index.js +1 -0
  26. package/dist/esm/generated/resources/index.js.map +1 -1
  27. package/dist/types/generated/Client.d.ts +1 -0
  28. package/dist/types/generated/SchemaTypes.d.ts +272 -4
  29. package/dist/types/generated/SimpleSchemaTypes.d.ts +176 -4
  30. package/dist/types/generated/resources/Upload.d.ts +18 -0
  31. package/dist/types/generated/resources/UploadCollection.d.ts +96 -0
  32. package/dist/types/generated/resources/index.d.ts +1 -0
  33. package/package.json +2 -2
  34. package/resources.json +148 -2
  35. package/src/generated/Client.ts +3 -1
  36. package/src/generated/SchemaTypes.ts +286 -4
  37. package/src/generated/SimpleSchemaTypes.ts +182 -4
  38. package/src/generated/resources/Role.ts +2 -0
  39. package/src/generated/resources/Upload.ts +49 -2
  40. package/src/generated/resources/UploadCollection.ts +204 -0
  41. package/src/generated/resources/index.ts +1 -0
@@ -319,6 +319,35 @@ export type SchemaMenuItemInstancesHrefSchema = {
319
319
  ids: string;
320
320
  };
321
321
  };
322
+ /**
323
+ * JSON API type field
324
+ *
325
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
326
+ * via the `definition` "type".
327
+ */
328
+ export type UploadCollectionType = 'upload_collection';
329
+ /**
330
+ * RFC 4122 UUID of upload collection expressed in URL-safe base64 format
331
+ *
332
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
333
+ * via the `definition` "identity".
334
+ *
335
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
336
+ * via the `definition` "id".
337
+ */
338
+ export type UploadCollectionIdentity = string;
339
+ /**
340
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
341
+ * via the `instances.hrefSchema` link.
342
+ */
343
+ export type UploadCollectionInstancesHrefSchema = {
344
+ filter?: {
345
+ /**
346
+ * IDs to fetch, comma separated
347
+ */
348
+ ids: string;
349
+ };
350
+ };
322
351
  /**
323
352
  * This interface was referenced by `Item`'s JSON-Schema
324
353
  * via the `definition` "type".
@@ -1408,6 +1437,7 @@ export type DatoApi = {
1408
1437
  site_plan?: SitePlan;
1409
1438
  menu_item?: MenuItem;
1410
1439
  schema_menu_item?: SchemaMenuItem;
1440
+ upload_collection?: UploadCollection;
1411
1441
  item_type?: ItemType;
1412
1442
  field?: Field;
1413
1443
  fieldset?: Fieldset;
@@ -1510,7 +1540,11 @@ export type RoleAttributes = {
1510
1540
  /**
1511
1541
  * Can create/edit shared filters (both for models and the media area)
1512
1542
  */
1513
- can_manage_shared_filters?: boolean;
1543
+ can_manage_shared_filters: boolean;
1544
+ /**
1545
+ * Can create/edit upload collections
1546
+ */
1547
+ can_manage_upload_collections: boolean;
1514
1548
  /**
1515
1549
  * Can create/edit Build triggers
1516
1550
  */
@@ -1726,7 +1760,11 @@ export type RoleMeta = {
1726
1760
  /**
1727
1761
  * Can create/edit shared filters (both for models and the media area)
1728
1762
  */
1729
- can_manage_shared_filters?: boolean;
1763
+ can_manage_shared_filters: boolean;
1764
+ /**
1765
+ * Can create/edit upload collections
1766
+ */
1767
+ can_manage_upload_collections: boolean;
1730
1768
  /**
1731
1769
  * Can create/edit Build triggers
1732
1770
  */
@@ -1924,6 +1962,10 @@ export type RoleCreateSchema = {
1924
1962
  * Can create/edit shared filters (both for models and the media area)
1925
1963
  */
1926
1964
  can_manage_shared_filters?: boolean;
1965
+ /**
1966
+ * Can create/edit upload collections
1967
+ */
1968
+ can_manage_upload_collections?: boolean;
1927
1969
  /**
1928
1970
  * Can create/edit Build triggers
1929
1971
  */
@@ -2142,6 +2184,10 @@ export type RoleUpdateSchema = {
2142
2184
  * Can create/edit shared filters (both for models and the media area)
2143
2185
  */
2144
2186
  can_manage_shared_filters?: boolean;
2187
+ /**
2188
+ * Can create/edit upload collections
2189
+ */
2190
+ can_manage_upload_collections?: boolean;
2145
2191
  /**
2146
2192
  * Can create/edit Build triggers
2147
2193
  */
@@ -3676,6 +3722,167 @@ export type SchemaMenuItemSelfTargetSchema = {
3676
3722
  export type SchemaMenuItemDestroyTargetSchema = {
3677
3723
  data: SchemaMenuItem;
3678
3724
  };
3725
+ /**
3726
+ * In DatoCMS you can organize the uploads present in your administrative area in collection, so that the final editors can easily navigate uploads.
3727
+ *
3728
+ * This interface was referenced by `DatoApi`'s JSON-Schema
3729
+ * via the `definition` "upload_collection".
3730
+ */
3731
+ export type UploadCollection = {
3732
+ type: UploadCollectionType;
3733
+ id: UploadCollectionIdentity;
3734
+ attributes: UploadCollectionAttributes;
3735
+ relationships: UploadCollectionRelationships;
3736
+ };
3737
+ /**
3738
+ * JSON API attributes
3739
+ *
3740
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
3741
+ * via the `definition` "attributes".
3742
+ */
3743
+ export type UploadCollectionAttributes = {
3744
+ /**
3745
+ * The label of the upload collection
3746
+ */
3747
+ label: string;
3748
+ /**
3749
+ * Ordering index
3750
+ */
3751
+ position: number;
3752
+ };
3753
+ /**
3754
+ * JSON API links
3755
+ *
3756
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
3757
+ * via the `definition` "relationships".
3758
+ */
3759
+ export type UploadCollectionRelationships = {
3760
+ /**
3761
+ * Parent upload collection
3762
+ */
3763
+ parent: {
3764
+ data: null | UploadCollectionData;
3765
+ };
3766
+ /**
3767
+ * Underlying upload collections
3768
+ */
3769
+ children: {
3770
+ data: UploadCollectionData[];
3771
+ };
3772
+ };
3773
+ /**
3774
+ * JSON API data
3775
+ *
3776
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
3777
+ * via the `definition` "data".
3778
+ */
3779
+ export type UploadCollectionData = {
3780
+ type: UploadCollectionType;
3781
+ id: UploadCollectionIdentity;
3782
+ };
3783
+ /**
3784
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
3785
+ * via the `create.schema` link.
3786
+ */
3787
+ export type UploadCollectionCreateSchema = {
3788
+ data: {
3789
+ id?: UploadCollectionIdentity;
3790
+ type: UploadCollectionType;
3791
+ /**
3792
+ * JSON API attributes
3793
+ */
3794
+ attributes: {
3795
+ /**
3796
+ * The label of the upload collection
3797
+ */
3798
+ label: string;
3799
+ /**
3800
+ * Ordering index
3801
+ */
3802
+ position?: number;
3803
+ };
3804
+ relationships?: {
3805
+ /**
3806
+ * Parent upload collection
3807
+ */
3808
+ parent?: {
3809
+ data: null | UploadCollectionData;
3810
+ };
3811
+ };
3812
+ };
3813
+ };
3814
+ /**
3815
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
3816
+ * via the `create.targetSchema` link.
3817
+ */
3818
+ export type UploadCollectionCreateTargetSchema = {
3819
+ data: UploadCollection;
3820
+ };
3821
+ /**
3822
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
3823
+ * via the `update.schema` link.
3824
+ */
3825
+ export type UploadCollectionUpdateSchema = {
3826
+ data: {
3827
+ type: UploadCollectionType;
3828
+ id: UploadCollectionIdentity;
3829
+ /**
3830
+ * JSON API attributes
3831
+ */
3832
+ attributes?: {
3833
+ /**
3834
+ * The label of the upload collection
3835
+ */
3836
+ label?: string;
3837
+ /**
3838
+ * Ordering index
3839
+ */
3840
+ position?: number;
3841
+ };
3842
+ relationships?: {
3843
+ /**
3844
+ * Parent upload collection
3845
+ */
3846
+ parent?: {
3847
+ data: null | UploadCollectionData;
3848
+ };
3849
+ /**
3850
+ * Underlying upload collections
3851
+ */
3852
+ children?: {
3853
+ data: UploadCollectionData[];
3854
+ };
3855
+ };
3856
+ };
3857
+ };
3858
+ /**
3859
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
3860
+ * via the `update.targetSchema` link.
3861
+ */
3862
+ export type UploadCollectionUpdateTargetSchema = {
3863
+ data: UploadCollection;
3864
+ };
3865
+ /**
3866
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
3867
+ * via the `instances.targetSchema` link.
3868
+ */
3869
+ export type UploadCollectionInstancesTargetSchema = {
3870
+ data: UploadCollection[];
3871
+ };
3872
+ /**
3873
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
3874
+ * via the `self.targetSchema` link.
3875
+ */
3876
+ export type UploadCollectionSelfTargetSchema = {
3877
+ data: UploadCollection;
3878
+ };
3879
+ /**
3880
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
3881
+ * via the `destroy.targetSchema` link.
3882
+ */
3883
+ export type UploadCollectionDestroyTargetSchema = {
3884
+ data: UploadCollection;
3885
+ };
3679
3886
  /**
3680
3887
  * The way you define the kind of content you can edit inside your administrative area passes through the concept of Models, which are much like database tables. For backward-compatibility reasons, the API refers to models as "item types".
3681
3888
  *
@@ -7381,6 +7588,12 @@ export type UploadAttributes = {
7381
7588
  * via the `definition` "relationships".
7382
7589
  */
7383
7590
  export type UploadRelationships = {
7591
+ /**
7592
+ * Upload collection to which the asset belongs
7593
+ */
7594
+ upload_collection: {
7595
+ data: UploadCollectionData | null;
7596
+ };
7384
7597
  /**
7385
7598
  * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
7386
7599
  */
@@ -7467,6 +7680,14 @@ export type UploadCreateSchema = {
7467
7680
  tags?: string[];
7468
7681
  [k: string]: unknown;
7469
7682
  };
7683
+ relationships?: {
7684
+ /**
7685
+ * Upload collection to which the asset belongs
7686
+ */
7687
+ upload_collection?: {
7688
+ data: UploadCollectionData | null;
7689
+ };
7690
+ };
7470
7691
  };
7471
7692
  };
7472
7693
  /**
@@ -7584,9 +7805,15 @@ export type UploadUpdateSchema = {
7584
7805
  /**
7585
7806
  * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
7586
7807
  */
7587
- creator: {
7808
+ creator?: {
7588
7809
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
7589
7810
  };
7811
+ /**
7812
+ * Upload collection to which the asset belongs
7813
+ */
7814
+ upload_collection?: {
7815
+ data: UploadCollectionData | null;
7816
+ };
7590
7817
  };
7591
7818
  };
7592
7819
  };
@@ -7706,6 +7933,47 @@ export type UploadBulkTagJobSchema = {
7706
7933
  failed: number;
7707
7934
  };
7708
7935
  };
7936
+ /**
7937
+ * This interface was referenced by `Upload`'s JSON-Schema
7938
+ * via the `bulk_set_upload_collection.schema` link.
7939
+ */
7940
+ export type UploadBulkSetUploadCollectionSchema = {
7941
+ data: {
7942
+ type: 'upload_bulk_set_upload_collection_operation';
7943
+ relationships: {
7944
+ /**
7945
+ * Asset collection to put uploads into
7946
+ */
7947
+ upload_collection: {
7948
+ data: null | UploadCollectionData;
7949
+ };
7950
+ /**
7951
+ * Assets to assign to the collection
7952
+ */
7953
+ uploads: {
7954
+ data: UploadData[];
7955
+ };
7956
+ };
7957
+ };
7958
+ };
7959
+ /**
7960
+ * This interface was referenced by `Upload`'s JSON-Schema
7961
+ * via the `bulk_set_upload_collection.targetSchema` link.
7962
+ */
7963
+ export type UploadBulkSetUploadCollectionTargetSchema = {
7964
+ data: Job;
7965
+ };
7966
+ /**
7967
+ * This interface was referenced by `Upload`'s JSON-Schema
7968
+ * via the `bulk_set_upload_collection.jobSchema` link.
7969
+ */
7970
+ export type UploadBulkSetUploadCollectionJobSchema = {
7971
+ data: unknown[];
7972
+ meta: {
7973
+ successful: number;
7974
+ failed: number;
7975
+ };
7976
+ };
7709
7977
  /**
7710
7978
  * This interface was referenced by `Upload`'s JSON-Schema
7711
7979
  * via the `bulk_destroy.schema` link.
@@ -8478,7 +8746,7 @@ export type WebhookDestroyTargetSchema = {
8478
8746
  data: Webhook;
8479
8747
  };
8480
8748
  /**
8481
- * Represents a log entry in the webhooks activity list.
8749
+ * This represents a log entry in the webhooks activity list, detailing a specific webhook event along with its delivery attempt information.
8482
8750
  *
8483
8751
  * This interface was referenced by `DatoApi`'s JSON-Schema
8484
8752
  * via the `definition` "webhook_call".
@@ -364,6 +364,40 @@ export type SchemaMenuItemInstancesHrefSchema = {
364
364
  ids: string;
365
365
  };
366
366
  };
367
+ /**
368
+ * RFC 4122 UUID of upload collection expressed in URL-safe base64 format
369
+ *
370
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
371
+ * via the `definition` "identity".
372
+ *
373
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
374
+ * via the `definition` "id".
375
+ */
376
+ export type UploadCollectionIdentity = string;
377
+ /**
378
+ * JSON API type field
379
+ *
380
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
381
+ * via the `definition` "type".
382
+ */
383
+ export type UploadCollectionType = 'upload_collection';
384
+ /**
385
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
386
+ * via the `instances.targetSchema` link.
387
+ */
388
+ export type UploadCollectionInstancesTargetSchema = UploadCollection[];
389
+ /**
390
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
391
+ * via the `instances.hrefSchema` link.
392
+ */
393
+ export type UploadCollectionInstancesHrefSchema = {
394
+ filter?: {
395
+ /**
396
+ * IDs to fetch, comma separated
397
+ */
398
+ ids: string;
399
+ };
400
+ };
367
401
  /**
368
402
  * This interface was referenced by `Item`'s JSON-Schema
369
403
  * via the `definition` "type".
@@ -1043,6 +1077,11 @@ export type UploadReferencesHrefSchema = {
1043
1077
  * via the `bulk_tag.jobSchema` link.
1044
1078
  */
1045
1079
  export type UploadBulkTagJobSchema = unknown[];
1080
+ /**
1081
+ * This interface was referenced by `Upload`'s JSON-Schema
1082
+ * via the `bulk_set_upload_collection.jobSchema` link.
1083
+ */
1084
+ export type UploadBulkSetUploadCollectionJobSchema = unknown[];
1046
1085
  /**
1047
1086
  * This interface was referenced by `Upload`'s JSON-Schema
1048
1087
  * via the `bulk_destroy.jobSchema` link.
@@ -1698,6 +1737,7 @@ export type DatoApi = {
1698
1737
  site_plan?: SitePlan;
1699
1738
  menu_item?: MenuItem;
1700
1739
  schema_menu_item?: SchemaMenuItem;
1740
+ upload_collection?: UploadCollection;
1701
1741
  item_type?: ItemType;
1702
1742
  field?: Field;
1703
1743
  fieldset?: Fieldset;
@@ -1789,7 +1829,11 @@ export type Role = {
1789
1829
  /**
1790
1830
  * Can create/edit shared filters (both for models and the media area)
1791
1831
  */
1792
- can_manage_shared_filters?: boolean;
1832
+ can_manage_shared_filters: boolean;
1833
+ /**
1834
+ * Can create/edit upload collections
1835
+ */
1836
+ can_manage_upload_collections: boolean;
1793
1837
  /**
1794
1838
  * Can create/edit Build triggers
1795
1839
  */
@@ -1997,7 +2041,11 @@ export type RoleMeta = {
1997
2041
  /**
1998
2042
  * Can create/edit shared filters (both for models and the media area)
1999
2043
  */
2000
- can_manage_shared_filters?: boolean;
2044
+ can_manage_shared_filters: boolean;
2045
+ /**
2046
+ * Can create/edit upload collections
2047
+ */
2048
+ can_manage_upload_collections: boolean;
2001
2049
  /**
2002
2050
  * Can create/edit Build triggers
2003
2051
  */
@@ -2190,7 +2238,11 @@ export type RoleAttributes = {
2190
2238
  /**
2191
2239
  * Can create/edit shared filters (both for models and the media area)
2192
2240
  */
2193
- can_manage_shared_filters?: boolean;
2241
+ can_manage_shared_filters: boolean;
2242
+ /**
2243
+ * Can create/edit upload collections
2244
+ */
2245
+ can_manage_upload_collections: boolean;
2194
2246
  /**
2195
2247
  * Can create/edit Build triggers
2196
2248
  */
@@ -2391,6 +2443,10 @@ export type RoleCreateSchema = {
2391
2443
  * Can create/edit shared filters (both for models and the media area)
2392
2444
  */
2393
2445
  can_manage_shared_filters?: boolean;
2446
+ /**
2447
+ * Can create/edit upload collections
2448
+ */
2449
+ can_manage_upload_collections?: boolean;
2394
2450
  /**
2395
2451
  * Can create/edit Build triggers
2396
2452
  */
@@ -2585,6 +2641,10 @@ export type RoleUpdateSchema = {
2585
2641
  * Can create/edit shared filters (both for models and the media area)
2586
2642
  */
2587
2643
  can_manage_shared_filters?: boolean;
2644
+ /**
2645
+ * Can create/edit upload collections
2646
+ */
2647
+ can_manage_upload_collections?: boolean;
2588
2648
  /**
2589
2649
  * Can create/edit Build triggers
2590
2650
  */
@@ -4129,6 +4189,101 @@ export type SchemaMenuItemUpdateSchema = {
4129
4189
  parent?: null | SchemaMenuItemData;
4130
4190
  children?: SchemaMenuItemData[];
4131
4191
  };
4192
+ /**
4193
+ * In DatoCMS you can organize the uploads present in your administrative area in collection, so that the final editors can easily navigate uploads.
4194
+ *
4195
+ * This interface was referenced by `DatoApi`'s JSON-Schema
4196
+ * via the `definition` "upload_collection".
4197
+ */
4198
+ export type UploadCollection = {
4199
+ id: UploadCollectionIdentity;
4200
+ type: UploadCollectionType;
4201
+ /**
4202
+ * The label of the upload collection
4203
+ */
4204
+ label: string;
4205
+ /**
4206
+ * Ordering index
4207
+ */
4208
+ position: number;
4209
+ parent: null | UploadCollectionData;
4210
+ children: UploadCollectionData[];
4211
+ };
4212
+ export type UploadCollectionCreateTargetSchema = UploadCollection;
4213
+ export type UploadCollectionUpdateTargetSchema = UploadCollection;
4214
+ export type UploadCollectionSelfTargetSchema = UploadCollection;
4215
+ export type UploadCollectionDestroyTargetSchema = UploadCollection;
4216
+ /**
4217
+ * JSON API data
4218
+ *
4219
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4220
+ * via the `definition` "data".
4221
+ */
4222
+ export type UploadCollectionData = {
4223
+ type: UploadCollectionType;
4224
+ id: UploadCollectionIdentity;
4225
+ };
4226
+ /**
4227
+ * JSON API attributes
4228
+ *
4229
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4230
+ * via the `definition` "attributes".
4231
+ */
4232
+ export type UploadCollectionAttributes = {
4233
+ /**
4234
+ * The label of the upload collection
4235
+ */
4236
+ label: string;
4237
+ /**
4238
+ * Ordering index
4239
+ */
4240
+ position: number;
4241
+ };
4242
+ /**
4243
+ * JSON API links
4244
+ *
4245
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4246
+ * via the `definition` "relationships".
4247
+ */
4248
+ export type UploadCollectionRelationships = {
4249
+ parent: null | UploadCollectionData;
4250
+ children: UploadCollectionData[];
4251
+ };
4252
+ /**
4253
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4254
+ * via the `create.schema` link.
4255
+ */
4256
+ export type UploadCollectionCreateSchema = {
4257
+ id?: UploadCollectionIdentity;
4258
+ type?: UploadCollectionType;
4259
+ /**
4260
+ * The label of the upload collection
4261
+ */
4262
+ label: string;
4263
+ /**
4264
+ * Ordering index
4265
+ */
4266
+ position?: number;
4267
+ parent?: null | UploadCollectionData;
4268
+ };
4269
+ /**
4270
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
4271
+ * via the `update.schema` link.
4272
+ */
4273
+ export type UploadCollectionUpdateSchema = {
4274
+ id?: UploadCollectionIdentity;
4275
+ type?: UploadCollectionType;
4276
+ /**
4277
+ * The label of the upload collection
4278
+ */
4279
+ label?: string;
4280
+ /**
4281
+ * Ordering index
4282
+ */
4283
+ position?: number;
4284
+ parent?: null | UploadCollectionData;
4285
+ children?: UploadCollectionData[];
4286
+ };
4132
4287
  /**
4133
4288
  * The way you define the kind of content you can edit inside your administrative area passes through the concept of Models, which are much like database tables. For backward-compatibility reasons, the API refers to models as "item types".
4134
4289
  *
@@ -4562,6 +4717,9 @@ export type ItemTypeUpdateSchema = {
4562
4717
  * via the `bulk_tag.targetSchema` link.
4563
4718
  *
4564
4719
  * This interface was referenced by `Upload`'s JSON-Schema
4720
+ * via the `bulk_set_upload_collection.targetSchema` link.
4721
+ *
4722
+ * This interface was referenced by `Upload`'s JSON-Schema
4565
4723
  * via the `bulk_destroy.targetSchema` link.
4566
4724
  *
4567
4725
  * This interface was referenced by `UploadTrack`'s JSON-Schema
@@ -4607,6 +4765,7 @@ export type UploadUpdateTargetSchema = Job;
4607
4765
  export type UploadBatchAddTagsTargetSchema = Job;
4608
4766
  export type UploadBatchDestroyTargetSchema = Job;
4609
4767
  export type UploadBulkTagTargetSchema = Job;
4768
+ export type UploadBulkSetUploadCollectionTargetSchema = Job;
4610
4769
  export type UploadBulkDestroyTargetSchema = Job;
4611
4770
  export type UploadTrackCreateTargetSchema = Job;
4612
4771
  export type UploadTrackDestroyTargetSchema = Job;
@@ -7193,6 +7352,7 @@ export type Upload = {
7193
7352
  */
7194
7353
  alpha: number;
7195
7354
  }[];
7355
+ upload_collection: UploadCollectionData | null;
7196
7356
  creator: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
7197
7357
  };
7198
7358
  export type UploadCreateJobSchema = Upload;
@@ -7385,6 +7545,7 @@ export type UploadAttributes = {
7385
7545
  * via the `definition` "relationships".
7386
7546
  */
7387
7547
  export type UploadRelationships = {
7548
+ upload_collection: UploadCollectionData | null;
7388
7549
  creator: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
7389
7550
  };
7390
7551
  /**
@@ -7452,6 +7613,7 @@ export type UploadCreateSchema = {
7452
7613
  * Tags
7453
7614
  */
7454
7615
  tags?: string[];
7616
+ upload_collection?: UploadCollectionData | null;
7455
7617
  };
7456
7618
  /**
7457
7619
  * This interface was referenced by `Upload`'s JSON-Schema
@@ -7523,6 +7685,7 @@ export type UploadUpdateSchema = {
7523
7685
  };
7524
7686
  };
7525
7687
  creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
7688
+ upload_collection?: UploadCollectionData | null;
7526
7689
  };
7527
7690
  /**
7528
7691
  * This interface was referenced by `Upload`'s JSON-Schema
@@ -7547,6 +7710,15 @@ export type UploadBulkTagSchema = {
7547
7710
  tags: string[];
7548
7711
  uploads: UploadData[];
7549
7712
  };
7713
+ /**
7714
+ * This interface was referenced by `Upload`'s JSON-Schema
7715
+ * via the `bulk_set_upload_collection.schema` link.
7716
+ */
7717
+ export type UploadBulkSetUploadCollectionSchema = {
7718
+ type?: 'upload_bulk_set_upload_collection_operation';
7719
+ upload_collection: null | UploadCollectionData;
7720
+ uploads: UploadData[];
7721
+ };
7550
7722
  /**
7551
7723
  * This interface was referenced by `Upload`'s JSON-Schema
7552
7724
  * via the `bulk_destroy.schema` link.
@@ -8351,7 +8523,7 @@ export type WebhookUpdateSchema = {
8351
8523
  auto_retry?: boolean;
8352
8524
  };
8353
8525
  /**
8354
- * Represents a log entry in the webhooks activity list.
8526
+ * This represents a log entry in the webhooks activity list, detailing a specific webhook event along with its delivery attempt information.
8355
8527
  *
8356
8528
  * This interface was referenced by `DatoApi`'s JSON-Schema
8357
8529
  * via the `definition` "webhook_call".
@@ -192,6 +192,24 @@ export default class Upload extends BaseResource {
192
192
  * @throws {TimeoutError}
193
193
  */
194
194
  rawBulkTag(body: SchemaTypes.UploadBulkTagSchema): Promise<SchemaTypes.UploadBulkTagJobSchema>;
195
+ /**
196
+ * Put assets into a collection in bulk
197
+ *
198
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/upload/bulk_set_upload_collection
199
+ *
200
+ * @throws {ApiError}
201
+ * @throws {TimeoutError}
202
+ */
203
+ bulkSetUploadCollection(body: SimpleSchemaTypes.UploadBulkSetUploadCollectionSchema): Promise<SimpleSchemaTypes.UploadBulkSetUploadCollectionJobSchema>;
204
+ /**
205
+ * Put assets into a collection in bulk
206
+ *
207
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/upload/bulk_set_upload_collection
208
+ *
209
+ * @throws {ApiError}
210
+ * @throws {TimeoutError}
211
+ */
212
+ rawBulkSetUploadCollection(body: SchemaTypes.UploadBulkSetUploadCollectionSchema): Promise<SchemaTypes.UploadBulkSetUploadCollectionJobSchema>;
195
213
  /**
196
214
  * Destroy uploads
197
215
  *