@datocms/cma-client 5.2.0-alpha.5 → 5.2.1-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.
@@ -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
  *
@@ -385,16 +395,6 @@ export type SchemaMenuItemInstancesHrefSchema = {
385
395
  * via the `definition` "type".
386
396
  */
387
397
  export type UploadCollectionType = 'upload_collection';
388
- /**
389
- * RFC 4122 UUID of upload collection expressed in URL-safe base64 format
390
- *
391
- * This interface was referenced by `UploadCollection`'s JSON-Schema
392
- * via the `definition` "identity".
393
- *
394
- * This interface was referenced by `UploadCollection`'s JSON-Schema
395
- * via the `definition` "id".
396
- */
397
- export type UploadCollectionIdentity = string;
398
398
  /**
399
399
  * This interface was referenced by `UploadCollection`'s JSON-Schema
400
400
  * via the `instances.hrefSchema` link.
@@ -1716,7 +1716,7 @@ export type RoleAttributes = {
1716
1716
  /**
1717
1717
  * Permitted action
1718
1718
  */
1719
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
1719
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
1720
1720
  /**
1721
1721
  * Permitted creator
1722
1722
  */
@@ -1729,6 +1729,8 @@ export type RoleAttributes = {
1729
1729
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
1730
1730
  */
1731
1731
  locale?: string | null;
1732
+ upload_collection?: UploadCollectionIdentity | null;
1733
+ move_to_upload_collection?: UploadCollectionIdentity | null;
1732
1734
  }[];
1733
1735
  /**
1734
1736
  * Prohibited actions on a model (or all) for a role
@@ -1738,7 +1740,7 @@ export type RoleAttributes = {
1738
1740
  /**
1739
1741
  * Permitted action
1740
1742
  */
1741
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
1743
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
1742
1744
  /**
1743
1745
  * Permitted creator
1744
1746
  */
@@ -1751,6 +1753,8 @@ export type RoleAttributes = {
1751
1753
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
1752
1754
  */
1753
1755
  locale?: string | null;
1756
+ upload_collection?: UploadCollectionIdentity | null;
1757
+ move_to_upload_collection?: UploadCollectionIdentity | null;
1754
1758
  }[];
1755
1759
  /**
1756
1760
  * Allowed build triggers for a role
@@ -1956,7 +1960,7 @@ export type RoleMeta = {
1956
1960
  /**
1957
1961
  * Permitted action
1958
1962
  */
1959
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
1963
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
1960
1964
  /**
1961
1965
  * Permitted creator
1962
1966
  */
@@ -1969,6 +1973,8 @@ export type RoleMeta = {
1969
1973
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
1970
1974
  */
1971
1975
  locale?: string | null;
1976
+ upload_collection?: UploadCollectionIdentity | null;
1977
+ move_to_upload_collection?: UploadCollectionIdentity | null;
1972
1978
  }[];
1973
1979
  /**
1974
1980
  * Prohibited actions on a model (or all) for a role
@@ -1978,7 +1984,7 @@ export type RoleMeta = {
1978
1984
  /**
1979
1985
  * Permitted action
1980
1986
  */
1981
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
1987
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
1982
1988
  /**
1983
1989
  * Permitted creator
1984
1990
  */
@@ -1991,6 +1997,8 @@ export type RoleMeta = {
1991
1997
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
1992
1998
  */
1993
1999
  locale?: string | null;
2000
+ upload_collection?: UploadCollectionIdentity | null;
2001
+ move_to_upload_collection?: UploadCollectionIdentity | null;
1994
2002
  }[];
1995
2003
  /**
1996
2004
  * Allowed build triggers for a role
@@ -2177,7 +2185,7 @@ export type RoleCreateSchema = {
2177
2185
  /**
2178
2186
  * Permitted action
2179
2187
  */
2180
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2188
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2181
2189
  /**
2182
2190
  * Permitted creator
2183
2191
  */
@@ -2190,6 +2198,8 @@ export type RoleCreateSchema = {
2190
2198
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2191
2199
  */
2192
2200
  locale?: string | null;
2201
+ upload_collection?: UploadCollectionIdentity | null;
2202
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2193
2203
  }[];
2194
2204
  /**
2195
2205
  * Prohibited actions on a model (or all) for a role
@@ -2199,7 +2209,7 @@ export type RoleCreateSchema = {
2199
2209
  /**
2200
2210
  * Permitted action
2201
2211
  */
2202
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2212
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2203
2213
  /**
2204
2214
  * Permitted creator
2205
2215
  */
@@ -2212,6 +2222,8 @@ export type RoleCreateSchema = {
2212
2222
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2213
2223
  */
2214
2224
  locale?: string | null;
2225
+ upload_collection?: UploadCollectionIdentity | null;
2226
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2215
2227
  }[];
2216
2228
  /**
2217
2229
  * Allowed build triggers for a role
@@ -2419,7 +2431,7 @@ export type RoleUpdateSchema = {
2419
2431
  /**
2420
2432
  * Permitted action
2421
2433
  */
2422
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2434
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2423
2435
  /**
2424
2436
  * Permitted creator
2425
2437
  */
@@ -2432,6 +2444,8 @@ export type RoleUpdateSchema = {
2432
2444
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2433
2445
  */
2434
2446
  locale?: string | null;
2447
+ upload_collection?: UploadCollectionIdentity | null;
2448
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2435
2449
  }[];
2436
2450
  /**
2437
2451
  * Prohibited actions on a model (or all) for a role
@@ -2441,7 +2455,7 @@ export type RoleUpdateSchema = {
2441
2455
  /**
2442
2456
  * Permitted action
2443
2457
  */
2444
- action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
2458
+ action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset' | 'move';
2445
2459
  /**
2446
2460
  * Permitted creator
2447
2461
  */
@@ -2454,6 +2468,8 @@ export type RoleUpdateSchema = {
2454
2468
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2455
2469
  */
2456
2470
  locale?: string | null;
2471
+ upload_collection?: UploadCollectionIdentity | null;
2472
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2457
2473
  }[];
2458
2474
  /**
2459
2475
  * Allowed build triggers for a role
@@ -3289,6 +3305,10 @@ export type SitePlanAttributes = {
3289
3305
  * The number of available encoding seconds to Mux.com
3290
3306
  */
3291
3307
  mux_encoding_seconds: null | number;
3308
+ /**
3309
+ * The number of images you can analyze for smart tags detections
3310
+ */
3311
+ smart_tags_detections: null | number;
3292
3312
  /**
3293
3313
  * The number of different API tokens you can generate, each which different permissions
3294
3314
  */
@@ -6414,7 +6434,7 @@ export type PluginAttributes = {
6414
6434
  */
6415
6435
  url: string;
6416
6436
  /**
6417
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6437
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
6418
6438
  */
6419
6439
  parameters: {
6420
6440
  [k: string]: unknown;
@@ -6541,7 +6561,7 @@ export type PluginUpdateSchema = {
6541
6561
  */
6542
6562
  url?: string;
6543
6563
  /**
6544
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6564
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
6545
6565
  */
6546
6566
  parameters?: {
6547
6567
  [k: string]: unknown;
@@ -8462,6 +8482,14 @@ export type UploadRequestCreateSchema = {
8462
8482
  filename?: string;
8463
8483
  [k: string]: unknown;
8464
8484
  };
8485
+ relationships?: {
8486
+ /**
8487
+ * Upload collection to which the asset belongs
8488
+ */
8489
+ upload_collection?: {
8490
+ data: UploadCollectionData | null;
8491
+ };
8492
+ };
8465
8493
  };
8466
8494
  };
8467
8495
  /**
@@ -9299,7 +9327,7 @@ export type BuildTriggerAttributes = {
9299
9327
  /**
9300
9328
  * The type of build trigger
9301
9329
  */
9302
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9330
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9303
9331
  /**
9304
9332
  * Additional settings for the build trigger. The value depends on the `adapter`.
9305
9333
  */
@@ -9372,7 +9400,7 @@ export type BuildTriggerCreateSchema = {
9372
9400
  /**
9373
9401
  * The type of build trigger
9374
9402
  */
9375
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9403
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9376
9404
  /**
9377
9405
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9378
9406
  */
@@ -9421,7 +9449,7 @@ export type BuildTriggerUpdateSchema = {
9421
9449
  /**
9422
9450
  * The type of build trigger
9423
9451
  */
9424
- adapter?: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9452
+ adapter?: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9425
9453
  /**
9426
9454
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9427
9455
  */
@@ -10835,6 +10863,10 @@ export type DailyUsageAttributes = {
10835
10863
  * Video encoding seconds
10836
10864
  */
10837
10865
  mux_encoded_seconds: number;
10866
+ /**
10867
+ * Number of images analyzed for smart tags
10868
+ */
10869
+ smart_tags_detections: number;
10838
10870
  };
10839
10871
  /**
10840
10872
  * JSON API data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "5.2.0-alpha.5",
3
+ "version": "5.2.1-alpha.0",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
@@ -42,8 +42,8 @@
42
42
  "uuid": "^9.0.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@datocms/dashboard-client": "^5.2.0-alpha.5",
45
+ "@datocms/dashboard-client": "^5.2.0",
46
46
  "@types/uuid": "^9.0.7"
47
47
  },
48
- "gitHead": "9f4282b559889e0e27011246d4ebe42d9c0f8cb8"
48
+ "gitHead": "83db6c41a51a5f40056b7f60106c470918bcd02f"
49
49
  }
package/resources.json CHANGED
@@ -3001,7 +3001,7 @@
3001
3001
  "requestStructure": {
3002
3002
  "type": "upload_request",
3003
3003
  "attributes": ["filename"],
3004
- "relationships": []
3004
+ "relationships": ["upload_collection"]
3005
3005
  },
3006
3006
  "queryParamsRequired": false,
3007
3007
  "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
  *
@@ -485,16 +495,6 @@ export type SchemaMenuItemReorderSchema = {
485
495
  * via the `reorder.jobSchema` link.
486
496
  */
487
497
  export type SchemaMenuItemReorderJobSchema = SchemaMenuItem[];
488
- /**
489
- * RFC 4122 UUID of upload collection expressed in URL-safe base64 format
490
- *
491
- * This interface was referenced by `UploadCollection`'s JSON-Schema
492
- * via the `definition` "identity".
493
- *
494
- * This interface was referenced by `UploadCollection`'s JSON-Schema
495
- * via the `definition` "id".
496
- */
497
- export type UploadCollectionIdentity = string;
498
498
  /**
499
499
  * JSON API type field
500
500
  *
@@ -2220,7 +2220,8 @@ export type Role = {
2220
2220
  | 'create'
2221
2221
  | 'delete'
2222
2222
  | 'edit_creator'
2223
- | 'replace_asset';
2223
+ | 'replace_asset'
2224
+ | 'move';
2224
2225
  /**
2225
2226
  * Permitted creator
2226
2227
  */
@@ -2233,6 +2234,8 @@ export type Role = {
2233
2234
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2234
2235
  */
2235
2236
  locale?: string | null;
2237
+ upload_collection?: UploadCollectionIdentity | null;
2238
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2236
2239
  }[];
2237
2240
  /**
2238
2241
  * Prohibited actions on a model (or all) for a role
@@ -2249,7 +2252,8 @@ export type Role = {
2249
2252
  | 'create'
2250
2253
  | 'delete'
2251
2254
  | 'edit_creator'
2252
- | 'replace_asset';
2255
+ | 'replace_asset'
2256
+ | 'move';
2253
2257
  /**
2254
2258
  * Permitted creator
2255
2259
  */
@@ -2262,6 +2266,8 @@ export type Role = {
2262
2266
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2263
2267
  */
2264
2268
  locale?: string | null;
2269
+ upload_collection?: UploadCollectionIdentity | null;
2270
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2265
2271
  }[];
2266
2272
  /**
2267
2273
  * Allowed build triggers for a role
@@ -2487,7 +2493,8 @@ export type RoleMeta = {
2487
2493
  | 'create'
2488
2494
  | 'delete'
2489
2495
  | 'edit_creator'
2490
- | 'replace_asset';
2496
+ | 'replace_asset'
2497
+ | 'move';
2491
2498
  /**
2492
2499
  * Permitted creator
2493
2500
  */
@@ -2500,6 +2507,8 @@ export type RoleMeta = {
2500
2507
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2501
2508
  */
2502
2509
  locale?: string | null;
2510
+ upload_collection?: UploadCollectionIdentity | null;
2511
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2503
2512
  }[];
2504
2513
  /**
2505
2514
  * Prohibited actions on a model (or all) for a role
@@ -2516,7 +2525,8 @@ export type RoleMeta = {
2516
2525
  | 'create'
2517
2526
  | 'delete'
2518
2527
  | 'edit_creator'
2519
- | 'replace_asset';
2528
+ | 'replace_asset'
2529
+ | 'move';
2520
2530
  /**
2521
2531
  * Permitted creator
2522
2532
  */
@@ -2529,6 +2539,8 @@ export type RoleMeta = {
2529
2539
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2530
2540
  */
2531
2541
  locale?: string | null;
2542
+ upload_collection?: UploadCollectionIdentity | null;
2543
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2532
2544
  }[];
2533
2545
  /**
2534
2546
  * Allowed build triggers for a role
@@ -2738,7 +2750,8 @@ export type RoleAttributes = {
2738
2750
  | 'create'
2739
2751
  | 'delete'
2740
2752
  | 'edit_creator'
2741
- | 'replace_asset';
2753
+ | 'replace_asset'
2754
+ | 'move';
2742
2755
  /**
2743
2756
  * Permitted creator
2744
2757
  */
@@ -2751,6 +2764,8 @@ export type RoleAttributes = {
2751
2764
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2752
2765
  */
2753
2766
  locale?: string | null;
2767
+ upload_collection?: UploadCollectionIdentity | null;
2768
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2754
2769
  }[];
2755
2770
  /**
2756
2771
  * Prohibited actions on a model (or all) for a role
@@ -2767,7 +2782,8 @@ export type RoleAttributes = {
2767
2782
  | 'create'
2768
2783
  | 'delete'
2769
2784
  | 'edit_creator'
2770
- | 'replace_asset';
2785
+ | 'replace_asset'
2786
+ | 'move';
2771
2787
  /**
2772
2788
  * Permitted creator
2773
2789
  */
@@ -2780,6 +2796,8 @@ export type RoleAttributes = {
2780
2796
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2781
2797
  */
2782
2798
  locale?: string | null;
2799
+ upload_collection?: UploadCollectionIdentity | null;
2800
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2783
2801
  }[];
2784
2802
  /**
2785
2803
  * Allowed build triggers for a role
@@ -2996,7 +3014,8 @@ export type RoleCreateSchema = {
2996
3014
  | 'create'
2997
3015
  | 'delete'
2998
3016
  | 'edit_creator'
2999
- | 'replace_asset';
3017
+ | 'replace_asset'
3018
+ | 'move';
3000
3019
  /**
3001
3020
  * Permitted creator
3002
3021
  */
@@ -3009,6 +3028,8 @@ export type RoleCreateSchema = {
3009
3028
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
3010
3029
  */
3011
3030
  locale?: string | null;
3031
+ upload_collection?: UploadCollectionIdentity | null;
3032
+ move_to_upload_collection?: UploadCollectionIdentity | null;
3012
3033
  }[];
3013
3034
  /**
3014
3035
  * Prohibited actions on a model (or all) for a role
@@ -3025,7 +3046,8 @@ export type RoleCreateSchema = {
3025
3046
  | 'create'
3026
3047
  | 'delete'
3027
3048
  | 'edit_creator'
3028
- | 'replace_asset';
3049
+ | 'replace_asset'
3050
+ | 'move';
3029
3051
  /**
3030
3052
  * Permitted creator
3031
3053
  */
@@ -3038,6 +3060,8 @@ export type RoleCreateSchema = {
3038
3060
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
3039
3061
  */
3040
3062
  locale?: string | null;
3063
+ upload_collection?: UploadCollectionIdentity | null;
3064
+ move_to_upload_collection?: UploadCollectionIdentity | null;
3041
3065
  }[];
3042
3066
  /**
3043
3067
  * Allowed build triggers for a role
@@ -3248,7 +3272,8 @@ export type RoleUpdateSchema = {
3248
3272
  | 'create'
3249
3273
  | 'delete'
3250
3274
  | 'edit_creator'
3251
- | 'replace_asset';
3275
+ | 'replace_asset'
3276
+ | 'move';
3252
3277
  /**
3253
3278
  * Permitted creator
3254
3279
  */
@@ -3261,6 +3286,8 @@ export type RoleUpdateSchema = {
3261
3286
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
3262
3287
  */
3263
3288
  locale?: string | null;
3289
+ upload_collection?: UploadCollectionIdentity | null;
3290
+ move_to_upload_collection?: UploadCollectionIdentity | null;
3264
3291
  }[];
3265
3292
  /**
3266
3293
  * Prohibited actions on a model (or all) for a role
@@ -3277,7 +3304,8 @@ export type RoleUpdateSchema = {
3277
3304
  | 'create'
3278
3305
  | 'delete'
3279
3306
  | 'edit_creator'
3280
- | 'replace_asset';
3307
+ | 'replace_asset'
3308
+ | 'move';
3281
3309
  /**
3282
3310
  * Permitted creator
3283
3311
  */
@@ -3290,6 +3318,8 @@ export type RoleUpdateSchema = {
3290
3318
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
3291
3319
  */
3292
3320
  locale?: string | null;
3321
+ upload_collection?: UploadCollectionIdentity | null;
3322
+ move_to_upload_collection?: UploadCollectionIdentity | null;
3293
3323
  }[];
3294
3324
  /**
3295
3325
  * Allowed build triggers for a role
@@ -4059,6 +4089,10 @@ export type SitePlan = {
4059
4089
  * The number of available encoding seconds to Mux.com
4060
4090
  */
4061
4091
  mux_encoding_seconds: null | number;
4092
+ /**
4093
+ * The number of images you can analyze for smart tags detections
4094
+ */
4095
+ smart_tags_detections: null | number;
4062
4096
  /**
4063
4097
  * The number of different API tokens you can generate, each which different permissions
4064
4098
  */
@@ -4303,6 +4337,10 @@ export type SitePlanAttributes = {
4303
4337
  * The number of available encoding seconds to Mux.com
4304
4338
  */
4305
4339
  mux_encoding_seconds: null | number;
4340
+ /**
4341
+ * The number of images you can analyze for smart tags detections
4342
+ */
4343
+ smart_tags_detections: null | number;
4306
4344
  /**
4307
4345
  * The number of different API tokens you can generate, each which different permissions
4308
4346
  */
@@ -7036,7 +7074,7 @@ export type Plugin = {
7036
7074
  */
7037
7075
  url: string;
7038
7076
  /**
7039
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
7077
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
7040
7078
  */
7041
7079
  parameters: {
7042
7080
  [k: string]: unknown;
@@ -7137,7 +7175,7 @@ export type PluginAttributes = {
7137
7175
  */
7138
7176
  url: string;
7139
7177
  /**
7140
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
7178
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
7141
7179
  */
7142
7180
  parameters: {
7143
7181
  [k: string]: unknown;
@@ -7269,7 +7307,7 @@ export type PluginUpdateSchema = {
7269
7307
  */
7270
7308
  url?: string;
7271
7309
  /**
7272
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
7310
+ * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
7273
7311
  */
7274
7312
  parameters?: {
7275
7313
  [k: string]: unknown;
@@ -8698,6 +8736,7 @@ export type UploadRequestCreateSchema = {
8698
8736
  * The original file name
8699
8737
  */
8700
8738
  filename?: string;
8739
+ upload_collection?: UploadCollectionData | null;
8701
8740
  };
8702
8741
  /**
8703
8742
  * 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.
@@ -9760,7 +9799,7 @@ export type BuildTrigger = {
9760
9799
  /**
9761
9800
  * The type of build trigger
9762
9801
  */
9763
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9802
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9764
9803
  /**
9765
9804
  * Additional settings for the build trigger. The value depends on the `adapter`.
9766
9805
  */
@@ -9822,7 +9861,7 @@ export type BuildTriggerAttributes = {
9822
9861
  /**
9823
9862
  * The type of build trigger
9824
9863
  */
9825
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9864
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9826
9865
  /**
9827
9866
  * Additional settings for the build trigger. The value depends on the `adapter`.
9828
9867
  */
@@ -9879,7 +9918,7 @@ export type BuildTriggerCreateSchema = {
9879
9918
  /**
9880
9919
  * The type of build trigger
9881
9920
  */
9882
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9921
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9883
9922
  /**
9884
9923
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9885
9924
  */
@@ -9917,7 +9956,7 @@ export type BuildTriggerUpdateSchema = {
9917
9956
  /**
9918
9957
  * The type of build trigger
9919
9958
  */
9920
- adapter?: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9959
+ adapter?: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9921
9960
  /**
9922
9961
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9923
9962
  */
@@ -11083,6 +11122,10 @@ export type DailyUsage = {
11083
11122
  * Video encoding seconds
11084
11123
  */
11085
11124
  mux_encoded_seconds: number;
11125
+ /**
11126
+ * Number of images analyzed for smart tags
11127
+ */
11128
+ smart_tags_detections: number;
11086
11129
  };
11087
11130
  /**
11088
11131
  * JSON API data
@@ -11137,6 +11180,10 @@ export type DailyUsageAttributes = {
11137
11180
  * Video encoding seconds
11138
11181
  */
11139
11182
  mux_encoded_seconds: number;
11183
+ /**
11184
+ * Number of images analyzed for smart tags
11185
+ */
11186
+ smart_tags_detections: number;
11140
11187
  };
11141
11188
  /**
11142
11189
  * You can use counters to analyze your project's data consumption over a period of time. Counters are especially useful if your project is exceeding its API calls/traffic quota limits, to better understand where and how requests are originating. Counters are updated every minute, so you can debug in real-time the results of your changes.
@@ -151,7 +151,7 @@ export class Client {
151
151
  ...this.config,
152
152
  ...options,
153
153
  logFn: this.config.logFn || console.log,
154
- userAgent: '@datocms/cma-client v5.2.0-alpha.5',
154
+ userAgent: '@datocms/cma-client v5.2.1-alpha.0',
155
155
  baseUrl: this.baseUrl,
156
156
  preCallStack: new Error().stack,
157
157
  extraHeaders: {