@datocms/cma-client 5.1.19 → 5.2.0-alpha.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.
@@ -72,6 +72,16 @@ export type WorkflowIdentity = string;
72
72
  * via the `definition` "id".
73
73
  */
74
74
  export type EnvironmentIdentity = string;
75
+ /**
76
+ * RFC 4122 UUID of upload collection expressed in URL-safe base64 format
77
+ *
78
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
79
+ * via the `definition` "identity".
80
+ *
81
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
82
+ * via the `definition` "id".
83
+ */
84
+ export type UploadCollectionIdentity = string;
75
85
  /**
76
86
  * ID of build_trigger
77
87
  *
@@ -441,16 +451,6 @@ export type SchemaMenuItemReorderSchema = {
441
451
  * via the `reorder.jobSchema` link.
442
452
  */
443
453
  export type SchemaMenuItemReorderJobSchema = SchemaMenuItem[];
444
- /**
445
- * RFC 4122 UUID of upload collection expressed in URL-safe base64 format
446
- *
447
- * This interface was referenced by `UploadCollection`'s JSON-Schema
448
- * via the `definition` "identity".
449
- *
450
- * This interface was referenced by `UploadCollection`'s JSON-Schema
451
- * via the `definition` "id".
452
- */
453
- export type UploadCollectionIdentity = string;
454
454
  /**
455
455
  * JSON API type field
456
456
  *
@@ -1950,7 +1950,7 @@ export type Role = {
1950
1950
  /**
1951
1951
  * Permitted action
1952
1952
  */
1953
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
1953
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
1954
1954
  /**
1955
1955
  * Permitted creator
1956
1956
  */
@@ -1963,6 +1963,8 @@ export type Role = {
1963
1963
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
1964
1964
  */
1965
1965
  locale?: string | null;
1966
+ upload_collection?: UploadCollectionIdentity | null;
1967
+ move_to_upload_collection?: UploadCollectionIdentity | null;
1966
1968
  }[];
1967
1969
  /**
1968
1970
  * Prohibited actions on a model (or all) for a role
@@ -1972,7 +1974,7 @@ export type Role = {
1972
1974
  /**
1973
1975
  * Permitted action
1974
1976
  */
1975
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
1977
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
1976
1978
  /**
1977
1979
  * Permitted creator
1978
1980
  */
@@ -1985,6 +1987,8 @@ export type Role = {
1985
1987
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
1986
1988
  */
1987
1989
  locale?: string | null;
1990
+ upload_collection?: UploadCollectionIdentity | null;
1991
+ move_to_upload_collection?: UploadCollectionIdentity | null;
1988
1992
  }[];
1989
1993
  /**
1990
1994
  * Allowed build triggers for a role
@@ -2163,7 +2167,7 @@ export type RoleMeta = {
2163
2167
  /**
2164
2168
  * Permitted action
2165
2169
  */
2166
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2170
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2167
2171
  /**
2168
2172
  * Permitted creator
2169
2173
  */
@@ -2176,6 +2180,8 @@ export type RoleMeta = {
2176
2180
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2177
2181
  */
2178
2182
  locale?: string | null;
2183
+ upload_collection?: UploadCollectionIdentity | null;
2184
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2179
2185
  }[];
2180
2186
  /**
2181
2187
  * Prohibited actions on a model (or all) for a role
@@ -2185,7 +2191,7 @@ export type RoleMeta = {
2185
2191
  /**
2186
2192
  * Permitted action
2187
2193
  */
2188
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2194
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2189
2195
  /**
2190
2196
  * Permitted creator
2191
2197
  */
@@ -2198,6 +2204,8 @@ export type RoleMeta = {
2198
2204
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2199
2205
  */
2200
2206
  locale?: string | null;
2207
+ upload_collection?: UploadCollectionIdentity | null;
2208
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2201
2209
  }[];
2202
2210
  /**
2203
2211
  * Allowed build triggers for a role
@@ -2360,7 +2368,7 @@ export type RoleAttributes = {
2360
2368
  /**
2361
2369
  * Permitted action
2362
2370
  */
2363
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2371
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2364
2372
  /**
2365
2373
  * Permitted creator
2366
2374
  */
@@ -2373,6 +2381,8 @@ export type RoleAttributes = {
2373
2381
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2374
2382
  */
2375
2383
  locale?: string | null;
2384
+ upload_collection?: UploadCollectionIdentity | null;
2385
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2376
2386
  }[];
2377
2387
  /**
2378
2388
  * Prohibited actions on a model (or all) for a role
@@ -2382,7 +2392,7 @@ export type RoleAttributes = {
2382
2392
  /**
2383
2393
  * Permitted action
2384
2394
  */
2385
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2395
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2386
2396
  /**
2387
2397
  * Permitted creator
2388
2398
  */
@@ -2395,6 +2405,8 @@ export type RoleAttributes = {
2395
2405
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2396
2406
  */
2397
2407
  locale?: string | null;
2408
+ upload_collection?: UploadCollectionIdentity | null;
2409
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2398
2410
  }[];
2399
2411
  /**
2400
2412
  * Allowed build triggers for a role
@@ -2564,7 +2576,7 @@ export type RoleCreateSchema = {
2564
2576
  /**
2565
2577
  * Permitted action
2566
2578
  */
2567
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2579
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2568
2580
  /**
2569
2581
  * Permitted creator
2570
2582
  */
@@ -2577,6 +2589,8 @@ export type RoleCreateSchema = {
2577
2589
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2578
2590
  */
2579
2591
  locale?: string | null;
2592
+ upload_collection?: UploadCollectionIdentity | null;
2593
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2580
2594
  }[];
2581
2595
  /**
2582
2596
  * Prohibited actions on a model (or all) for a role
@@ -2586,7 +2600,7 @@ export type RoleCreateSchema = {
2586
2600
  /**
2587
2601
  * Permitted action
2588
2602
  */
2589
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2603
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2590
2604
  /**
2591
2605
  * Permitted creator
2592
2606
  */
@@ -2599,6 +2613,8 @@ export type RoleCreateSchema = {
2599
2613
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2600
2614
  */
2601
2615
  locale?: string | null;
2616
+ upload_collection?: UploadCollectionIdentity | null;
2617
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2602
2618
  }[];
2603
2619
  /**
2604
2620
  * Allowed build triggers for a role
@@ -2762,7 +2778,7 @@ export type RoleUpdateSchema = {
2762
2778
  /**
2763
2779
  * Permitted action
2764
2780
  */
2765
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2781
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2766
2782
  /**
2767
2783
  * Permitted creator
2768
2784
  */
@@ -2775,6 +2791,8 @@ export type RoleUpdateSchema = {
2775
2791
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2776
2792
  */
2777
2793
  locale?: string | null;
2794
+ upload_collection?: UploadCollectionIdentity | null;
2795
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2778
2796
  }[];
2779
2797
  /**
2780
2798
  * Prohibited actions on a model (or all) for a role
@@ -2784,7 +2802,7 @@ export type RoleUpdateSchema = {
2784
2802
  /**
2785
2803
  * Permitted action
2786
2804
  */
2787
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2805
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2788
2806
  /**
2789
2807
  * Permitted creator
2790
2808
  */
@@ -2797,6 +2815,8 @@ export type RoleUpdateSchema = {
2797
2815
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2798
2816
  */
2799
2817
  locale?: string | null;
2818
+ upload_collection?: UploadCollectionIdentity | null;
2819
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2800
2820
  }[];
2801
2821
  /**
2802
2822
  * Allowed build triggers for a role
@@ -7786,6 +7806,7 @@ export type UploadRequestCreateSchema = {
7786
7806
  * The original file name
7787
7807
  */
7788
7808
  filename?: string;
7809
+ upload_collection?: UploadCollectionData | null;
7789
7810
  };
7790
7811
  /**
7791
7812
  * If the asset linked to an Upload entity is a video file, you have the option to include additional audio tracks and subtitle tracks to it.
@@ -80,6 +80,16 @@ export type WorkflowIdentity = string;
80
80
  * via the `definition` "id".
81
81
  */
82
82
  export type EnvironmentIdentity = string;
83
+ /**
84
+ * RFC 4122 UUID of upload collection expressed in URL-safe base64 format
85
+ *
86
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
87
+ * via the `definition` "identity".
88
+ *
89
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
90
+ * via the `definition` "id".
91
+ */
92
+ export type UploadCollectionIdentity = string;
83
93
  /**
84
94
  * ID of build_trigger
85
95
  *
@@ -375,16 +385,6 @@ export type SchemaMenuItemInstancesHrefSchema = {
375
385
  * via the `definition` "type".
376
386
  */
377
387
  export type UploadCollectionType = 'upload_collection';
378
- /**
379
- * RFC 4122 UUID of upload collection expressed in URL-safe base64 format
380
- *
381
- * This interface was referenced by `UploadCollection`'s JSON-Schema
382
- * via the `definition` "identity".
383
- *
384
- * This interface was referenced by `UploadCollection`'s JSON-Schema
385
- * via the `definition` "id".
386
- */
387
- export type UploadCollectionIdentity = string;
388
388
  /**
389
389
  * This interface was referenced by `UploadCollection`'s JSON-Schema
390
390
  * via the `instances.hrefSchema` link.
@@ -1615,7 +1615,7 @@ export type RoleAttributes = {
1615
1615
  /**
1616
1616
  * Permitted action
1617
1617
  */
1618
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
1618
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
1619
1619
  /**
1620
1620
  * Permitted creator
1621
1621
  */
@@ -1628,6 +1628,8 @@ export type RoleAttributes = {
1628
1628
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
1629
1629
  */
1630
1630
  locale?: string | null;
1631
+ upload_collection?: UploadCollectionIdentity | null;
1632
+ move_to_upload_collection?: UploadCollectionIdentity | null;
1631
1633
  }[];
1632
1634
  /**
1633
1635
  * Prohibited actions on a model (or all) for a role
@@ -1637,7 +1639,7 @@ export type RoleAttributes = {
1637
1639
  /**
1638
1640
  * Permitted action
1639
1641
  */
1640
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
1642
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
1641
1643
  /**
1642
1644
  * Permitted creator
1643
1645
  */
@@ -1650,6 +1652,8 @@ export type RoleAttributes = {
1650
1652
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
1651
1653
  */
1652
1654
  locale?: string | null;
1655
+ upload_collection?: UploadCollectionIdentity | null;
1656
+ move_to_upload_collection?: UploadCollectionIdentity | null;
1653
1657
  }[];
1654
1658
  /**
1655
1659
  * Allowed build triggers for a role
@@ -1835,7 +1839,7 @@ export type RoleMeta = {
1835
1839
  /**
1836
1840
  * Permitted action
1837
1841
  */
1838
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
1842
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
1839
1843
  /**
1840
1844
  * Permitted creator
1841
1845
  */
@@ -1848,6 +1852,8 @@ export type RoleMeta = {
1848
1852
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
1849
1853
  */
1850
1854
  locale?: string | null;
1855
+ upload_collection?: UploadCollectionIdentity | null;
1856
+ move_to_upload_collection?: UploadCollectionIdentity | null;
1851
1857
  }[];
1852
1858
  /**
1853
1859
  * Prohibited actions on a model (or all) for a role
@@ -1857,7 +1863,7 @@ export type RoleMeta = {
1857
1863
  /**
1858
1864
  * Permitted action
1859
1865
  */
1860
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
1866
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
1861
1867
  /**
1862
1868
  * Permitted creator
1863
1869
  */
@@ -1870,6 +1876,8 @@ export type RoleMeta = {
1870
1876
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
1871
1877
  */
1872
1878
  locale?: string | null;
1879
+ upload_collection?: UploadCollectionIdentity | null;
1880
+ move_to_upload_collection?: UploadCollectionIdentity | null;
1873
1881
  }[];
1874
1882
  /**
1875
1883
  * Allowed build triggers for a role
@@ -2036,7 +2044,7 @@ export type RoleCreateSchema = {
2036
2044
  /**
2037
2045
  * Permitted action
2038
2046
  */
2039
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2047
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2040
2048
  /**
2041
2049
  * Permitted creator
2042
2050
  */
@@ -2049,6 +2057,8 @@ export type RoleCreateSchema = {
2049
2057
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2050
2058
  */
2051
2059
  locale?: string | null;
2060
+ upload_collection?: UploadCollectionIdentity | null;
2061
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2052
2062
  }[];
2053
2063
  /**
2054
2064
  * Prohibited actions on a model (or all) for a role
@@ -2058,7 +2068,7 @@ export type RoleCreateSchema = {
2058
2068
  /**
2059
2069
  * Permitted action
2060
2070
  */
2061
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2071
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2062
2072
  /**
2063
2073
  * Permitted creator
2064
2074
  */
@@ -2071,6 +2081,8 @@ export type RoleCreateSchema = {
2071
2081
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2072
2082
  */
2073
2083
  locale?: string | null;
2084
+ upload_collection?: UploadCollectionIdentity | null;
2085
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2074
2086
  }[];
2075
2087
  /**
2076
2088
  * Allowed build triggers for a role
@@ -2258,7 +2270,7 @@ export type RoleUpdateSchema = {
2258
2270
  /**
2259
2271
  * Permitted action
2260
2272
  */
2261
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2273
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2262
2274
  /**
2263
2275
  * Permitted creator
2264
2276
  */
@@ -2271,6 +2283,8 @@ export type RoleUpdateSchema = {
2271
2283
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2272
2284
  */
2273
2285
  locale?: string | null;
2286
+ upload_collection?: UploadCollectionIdentity | null;
2287
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2274
2288
  }[];
2275
2289
  /**
2276
2290
  * Prohibited actions on a model (or all) for a role
@@ -2280,7 +2294,7 @@ export type RoleUpdateSchema = {
2280
2294
  /**
2281
2295
  * Permitted action
2282
2296
  */
2283
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2297
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2284
2298
  /**
2285
2299
  * Permitted creator
2286
2300
  */
@@ -2293,6 +2307,8 @@ export type RoleUpdateSchema = {
2293
2307
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2294
2308
  */
2295
2309
  locale?: string | null;
2310
+ upload_collection?: UploadCollectionIdentity | null;
2311
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2296
2312
  }[];
2297
2313
  /**
2298
2314
  * Allowed build triggers for a role
@@ -8173,6 +8189,14 @@ export type UploadRequestCreateSchema = {
8173
8189
  filename?: string;
8174
8190
  [k: string]: unknown;
8175
8191
  };
8192
+ relationships?: {
8193
+ /**
8194
+ * Upload collection to which the asset belongs
8195
+ */
8196
+ upload_collection?: {
8197
+ data: UploadCollectionData | null;
8198
+ };
8199
+ };
8176
8200
  };
8177
8201
  };
8178
8202
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "5.1.19",
3
+ "version": "5.2.0-alpha.0",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
@@ -45,5 +45,5 @@
45
45
  "@datocms/dashboard-client": "^5.1.13",
46
46
  "@types/uuid": "^9.0.7"
47
47
  },
48
- "gitHead": "841803d856b310fc208c3e8f1ed8a2b5a51c8ce3"
48
+ "gitHead": "02a92d9f1bd5837e8de88f5bb6f1bbfa56e4b897"
49
49
  }
package/resources.json CHANGED
@@ -3013,7 +3013,7 @@
3013
3013
  "requestStructure": {
3014
3014
  "type": "upload_request",
3015
3015
  "attributes": ["filename"],
3016
- "relationships": []
3016
+ "relationships": ["upload_collection"]
3017
3017
  },
3018
3018
  "queryParamsRequired": false,
3019
3019
  "responseType": "UploadRequestCreateTargetSchema",
@@ -106,6 +106,16 @@ export type WorkflowIdentity = string;
106
106
  * via the `definition` "id".
107
107
  */
108
108
  export type EnvironmentIdentity = string;
109
+ /**
110
+ * RFC 4122 UUID of upload collection expressed in URL-safe base64 format
111
+ *
112
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
113
+ * via the `definition` "identity".
114
+ *
115
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
116
+ * via the `definition` "id".
117
+ */
118
+ export type UploadCollectionIdentity = string;
109
119
  /**
110
120
  * ID of build_trigger
111
121
  *
@@ -475,16 +485,6 @@ export type SchemaMenuItemReorderSchema = {
475
485
  * via the `reorder.jobSchema` link.
476
486
  */
477
487
  export type SchemaMenuItemReorderJobSchema = SchemaMenuItem[];
478
- /**
479
- * RFC 4122 UUID of upload collection expressed in URL-safe base64 format
480
- *
481
- * This interface was referenced by `UploadCollection`'s JSON-Schema
482
- * via the `definition` "identity".
483
- *
484
- * This interface was referenced by `UploadCollection`'s JSON-Schema
485
- * via the `definition` "id".
486
- */
487
- export type UploadCollectionIdentity = string;
488
488
  /**
489
489
  * JSON API type field
490
490
  *
@@ -2097,7 +2097,8 @@ export type Role = {
2097
2097
  | 'create'
2098
2098
  | 'delete'
2099
2099
  | 'edit_creator'
2100
- | 'replace_asset';
2100
+ | 'replace_asset'
2101
+ | 'move';
2101
2102
  /**
2102
2103
  * Permitted creator
2103
2104
  */
@@ -2110,6 +2111,8 @@ export type Role = {
2110
2111
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2111
2112
  */
2112
2113
  locale?: string | null;
2114
+ upload_collection?: UploadCollectionIdentity | null;
2115
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2113
2116
  }[];
2114
2117
  /**
2115
2118
  * Prohibited actions on a model (or all) for a role
@@ -2126,7 +2129,8 @@ export type Role = {
2126
2129
  | 'create'
2127
2130
  | 'delete'
2128
2131
  | 'edit_creator'
2129
- | 'replace_asset';
2132
+ | 'replace_asset'
2133
+ | 'move';
2130
2134
  /**
2131
2135
  * Permitted creator
2132
2136
  */
@@ -2139,6 +2143,8 @@ export type Role = {
2139
2143
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2140
2144
  */
2141
2145
  locale?: string | null;
2146
+ upload_collection?: UploadCollectionIdentity | null;
2147
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2142
2148
  }[];
2143
2149
  /**
2144
2150
  * Allowed build triggers for a role
@@ -2344,7 +2350,8 @@ export type RoleMeta = {
2344
2350
  | 'create'
2345
2351
  | 'delete'
2346
2352
  | 'edit_creator'
2347
- | 'replace_asset';
2353
+ | 'replace_asset'
2354
+ | 'move';
2348
2355
  /**
2349
2356
  * Permitted creator
2350
2357
  */
@@ -2357,6 +2364,8 @@ export type RoleMeta = {
2357
2364
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2358
2365
  */
2359
2366
  locale?: string | null;
2367
+ upload_collection?: UploadCollectionIdentity | null;
2368
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2360
2369
  }[];
2361
2370
  /**
2362
2371
  * Prohibited actions on a model (or all) for a role
@@ -2373,7 +2382,8 @@ export type RoleMeta = {
2373
2382
  | 'create'
2374
2383
  | 'delete'
2375
2384
  | 'edit_creator'
2376
- | 'replace_asset';
2385
+ | 'replace_asset'
2386
+ | 'move';
2377
2387
  /**
2378
2388
  * Permitted creator
2379
2389
  */
@@ -2386,6 +2396,8 @@ export type RoleMeta = {
2386
2396
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2387
2397
  */
2388
2398
  locale?: string | null;
2399
+ upload_collection?: UploadCollectionIdentity | null;
2400
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2389
2401
  }[];
2390
2402
  /**
2391
2403
  * Allowed build triggers for a role
@@ -2575,7 +2587,8 @@ export type RoleAttributes = {
2575
2587
  | 'create'
2576
2588
  | 'delete'
2577
2589
  | 'edit_creator'
2578
- | 'replace_asset';
2590
+ | 'replace_asset'
2591
+ | 'move';
2579
2592
  /**
2580
2593
  * Permitted creator
2581
2594
  */
@@ -2588,6 +2601,8 @@ export type RoleAttributes = {
2588
2601
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2589
2602
  */
2590
2603
  locale?: string | null;
2604
+ upload_collection?: UploadCollectionIdentity | null;
2605
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2591
2606
  }[];
2592
2607
  /**
2593
2608
  * Prohibited actions on a model (or all) for a role
@@ -2604,7 +2619,8 @@ export type RoleAttributes = {
2604
2619
  | 'create'
2605
2620
  | 'delete'
2606
2621
  | 'edit_creator'
2607
- | 'replace_asset';
2622
+ | 'replace_asset'
2623
+ | 'move';
2608
2624
  /**
2609
2625
  * Permitted creator
2610
2626
  */
@@ -2617,6 +2633,8 @@ export type RoleAttributes = {
2617
2633
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2618
2634
  */
2619
2635
  locale?: string | null;
2636
+ upload_collection?: UploadCollectionIdentity | null;
2637
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2620
2638
  }[];
2621
2639
  /**
2622
2640
  * Allowed build triggers for a role
@@ -2813,7 +2831,8 @@ export type RoleCreateSchema = {
2813
2831
  | 'create'
2814
2832
  | 'delete'
2815
2833
  | 'edit_creator'
2816
- | 'replace_asset';
2834
+ | 'replace_asset'
2835
+ | 'move';
2817
2836
  /**
2818
2837
  * Permitted creator
2819
2838
  */
@@ -2826,6 +2845,8 @@ export type RoleCreateSchema = {
2826
2845
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2827
2846
  */
2828
2847
  locale?: string | null;
2848
+ upload_collection?: UploadCollectionIdentity | null;
2849
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2829
2850
  }[];
2830
2851
  /**
2831
2852
  * Prohibited actions on a model (or all) for a role
@@ -2842,7 +2863,8 @@ export type RoleCreateSchema = {
2842
2863
  | 'create'
2843
2864
  | 'delete'
2844
2865
  | 'edit_creator'
2845
- | 'replace_asset';
2866
+ | 'replace_asset'
2867
+ | 'move';
2846
2868
  /**
2847
2869
  * Permitted creator
2848
2870
  */
@@ -2855,6 +2877,8 @@ export type RoleCreateSchema = {
2855
2877
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2856
2878
  */
2857
2879
  locale?: string | null;
2880
+ upload_collection?: UploadCollectionIdentity | null;
2881
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2858
2882
  }[];
2859
2883
  /**
2860
2884
  * Allowed build triggers for a role
@@ -3045,7 +3069,8 @@ export type RoleUpdateSchema = {
3045
3069
  | 'create'
3046
3070
  | 'delete'
3047
3071
  | 'edit_creator'
3048
- | 'replace_asset';
3072
+ | 'replace_asset'
3073
+ | 'move';
3049
3074
  /**
3050
3075
  * Permitted creator
3051
3076
  */
@@ -3058,6 +3083,8 @@ export type RoleUpdateSchema = {
3058
3083
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
3059
3084
  */
3060
3085
  locale?: string | null;
3086
+ upload_collection?: UploadCollectionIdentity | null;
3087
+ move_to_upload_collection?: UploadCollectionIdentity | null;
3061
3088
  }[];
3062
3089
  /**
3063
3090
  * Prohibited actions on a model (or all) for a role
@@ -3074,7 +3101,8 @@ export type RoleUpdateSchema = {
3074
3101
  | 'create'
3075
3102
  | 'delete'
3076
3103
  | 'edit_creator'
3077
- | 'replace_asset';
3104
+ | 'replace_asset'
3105
+ | 'move';
3078
3106
  /**
3079
3107
  * Permitted creator
3080
3108
  */
@@ -3087,6 +3115,8 @@ export type RoleUpdateSchema = {
3087
3115
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
3088
3116
  */
3089
3117
  locale?: string | null;
3118
+ upload_collection?: UploadCollectionIdentity | null;
3119
+ move_to_upload_collection?: UploadCollectionIdentity | null;
3090
3120
  }[];
3091
3121
  /**
3092
3122
  * Allowed build triggers for a role
@@ -8373,6 +8403,7 @@ export type UploadRequestCreateSchema = {
8373
8403
  * The original file name
8374
8404
  */
8375
8405
  filename?: string;
8406
+ upload_collection?: UploadCollectionData | null;
8376
8407
  };
8377
8408
  /**
8378
8409
  * If the asset linked to an Upload entity is a video file, you have the option to include additional audio tracks and subtitle tracks to it.
@@ -147,7 +147,7 @@ export class Client {
147
147
  ...this.config,
148
148
  ...options,
149
149
  logFn: this.config.logFn || console.log,
150
- userAgent: '@datocms/cma-client v5.1.19',
150
+ userAgent: '@datocms/cma-client v5.2.0-alpha.0',
151
151
  baseUrl: this.baseUrl,
152
152
  preCallStack: new Error().stack,
153
153
  extraHeaders: {