@datocms/cma-client 5.2.0 → 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.
@@ -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
@@ -7044,7 +7074,7 @@ export type Plugin = {
7044
7074
  */
7045
7075
  url: string;
7046
7076
  /**
7047
- * 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.
7048
7078
  */
7049
7079
  parameters: {
7050
7080
  [k: string]: unknown;
@@ -7145,7 +7175,7 @@ export type PluginAttributes = {
7145
7175
  */
7146
7176
  url: string;
7147
7177
  /**
7148
- * 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.
7149
7179
  */
7150
7180
  parameters: {
7151
7181
  [k: string]: unknown;
@@ -7277,7 +7307,7 @@ export type PluginUpdateSchema = {
7277
7307
  */
7278
7308
  url?: string;
7279
7309
  /**
7280
- * 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.
7281
7311
  */
7282
7312
  parameters?: {
7283
7313
  [k: string]: unknown;
@@ -8706,6 +8736,7 @@ export type UploadRequestCreateSchema = {
8706
8736
  * The original file name
8707
8737
  */
8708
8738
  filename?: string;
8739
+ upload_collection?: UploadCollectionData | null;
8709
8740
  };
8710
8741
  /**
8711
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.
@@ -9768,7 +9799,7 @@ export type BuildTrigger = {
9768
9799
  /**
9769
9800
  * The type of build trigger
9770
9801
  */
9771
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9802
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9772
9803
  /**
9773
9804
  * Additional settings for the build trigger. The value depends on the `adapter`.
9774
9805
  */
@@ -9830,7 +9861,7 @@ export type BuildTriggerAttributes = {
9830
9861
  /**
9831
9862
  * The type of build trigger
9832
9863
  */
9833
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9864
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9834
9865
  /**
9835
9866
  * Additional settings for the build trigger. The value depends on the `adapter`.
9836
9867
  */
@@ -9887,7 +9918,7 @@ export type BuildTriggerCreateSchema = {
9887
9918
  /**
9888
9919
  * The type of build trigger
9889
9920
  */
9890
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9921
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9891
9922
  /**
9892
9923
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9893
9924
  */
@@ -9925,7 +9956,7 @@ export type BuildTriggerUpdateSchema = {
9925
9956
  /**
9926
9957
  * The type of build trigger
9927
9958
  */
9928
- adapter?: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9959
+ adapter?: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9929
9960
  /**
9930
9961
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9931
9962
  */
@@ -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',
154
+ userAgent: '@datocms/cma-client v5.2.1-alpha.0',
155
155
  baseUrl: this.baseUrl,
156
156
  preCallStack: new Error().stack,
157
157
  extraHeaders: {
@@ -108,6 +108,16 @@ export type WorkflowIdentity = string;
108
108
  * via the `definition` "id".
109
109
  */
110
110
  export type EnvironmentIdentity = string;
111
+ /**
112
+ * RFC 4122 UUID of upload collection expressed in URL-safe base64 format
113
+ *
114
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
115
+ * via the `definition` "identity".
116
+ *
117
+ * This interface was referenced by `UploadCollection`'s JSON-Schema
118
+ * via the `definition` "id".
119
+ */
120
+ export type UploadCollectionIdentity = string;
111
121
  /**
112
122
  * ID of build_trigger
113
123
  *
@@ -413,16 +423,6 @@ export type SchemaMenuItemInstancesHrefSchema = {
413
423
  * via the `definition` "type".
414
424
  */
415
425
  export type UploadCollectionType = 'upload_collection';
416
- /**
417
- * RFC 4122 UUID of upload collection expressed in URL-safe base64 format
418
- *
419
- * This interface was referenced by `UploadCollection`'s JSON-Schema
420
- * via the `definition` "identity".
421
- *
422
- * This interface was referenced by `UploadCollection`'s JSON-Schema
423
- * via the `definition` "id".
424
- */
425
- export type UploadCollectionIdentity = string;
426
426
  /**
427
427
  * This interface was referenced by `UploadCollection`'s JSON-Schema
428
428
  * via the `instances.hrefSchema` link.
@@ -1841,7 +1841,8 @@ export type RoleAttributes = {
1841
1841
  | 'create'
1842
1842
  | 'delete'
1843
1843
  | 'edit_creator'
1844
- | 'replace_asset';
1844
+ | 'replace_asset'
1845
+ | 'move';
1845
1846
  /**
1846
1847
  * Permitted creator
1847
1848
  */
@@ -1854,6 +1855,8 @@ export type RoleAttributes = {
1854
1855
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
1855
1856
  */
1856
1857
  locale?: string | null;
1858
+ upload_collection?: UploadCollectionIdentity | null;
1859
+ move_to_upload_collection?: UploadCollectionIdentity | null;
1857
1860
  }[];
1858
1861
  /**
1859
1862
  * Prohibited actions on a model (or all) for a role
@@ -1870,7 +1873,8 @@ export type RoleAttributes = {
1870
1873
  | 'create'
1871
1874
  | 'delete'
1872
1875
  | 'edit_creator'
1873
- | 'replace_asset';
1876
+ | 'replace_asset'
1877
+ | 'move';
1874
1878
  /**
1875
1879
  * Permitted creator
1876
1880
  */
@@ -1883,6 +1887,8 @@ export type RoleAttributes = {
1883
1887
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
1884
1888
  */
1885
1889
  locale?: string | null;
1890
+ upload_collection?: UploadCollectionIdentity | null;
1891
+ move_to_upload_collection?: UploadCollectionIdentity | null;
1886
1892
  }[];
1887
1893
  /**
1888
1894
  * Allowed build triggers for a role
@@ -2115,7 +2121,8 @@ export type RoleMeta = {
2115
2121
  | 'create'
2116
2122
  | 'delete'
2117
2123
  | 'edit_creator'
2118
- | 'replace_asset';
2124
+ | 'replace_asset'
2125
+ | 'move';
2119
2126
  /**
2120
2127
  * Permitted creator
2121
2128
  */
@@ -2128,6 +2135,8 @@ export type RoleMeta = {
2128
2135
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2129
2136
  */
2130
2137
  locale?: string | null;
2138
+ upload_collection?: UploadCollectionIdentity | null;
2139
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2131
2140
  }[];
2132
2141
  /**
2133
2142
  * Prohibited actions on a model (or all) for a role
@@ -2144,7 +2153,8 @@ export type RoleMeta = {
2144
2153
  | 'create'
2145
2154
  | 'delete'
2146
2155
  | 'edit_creator'
2147
- | 'replace_asset';
2156
+ | 'replace_asset'
2157
+ | 'move';
2148
2158
  /**
2149
2159
  * Permitted creator
2150
2160
  */
@@ -2157,6 +2167,8 @@ export type RoleMeta = {
2157
2167
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2158
2168
  */
2159
2169
  locale?: string | null;
2170
+ upload_collection?: UploadCollectionIdentity | null;
2171
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2160
2172
  }[];
2161
2173
  /**
2162
2174
  * Allowed build triggers for a role
@@ -2370,7 +2382,8 @@ export type RoleCreateSchema = {
2370
2382
  | 'create'
2371
2383
  | 'delete'
2372
2384
  | 'edit_creator'
2373
- | 'replace_asset';
2385
+ | 'replace_asset'
2386
+ | 'move';
2374
2387
  /**
2375
2388
  * Permitted creator
2376
2389
  */
@@ -2383,6 +2396,8 @@ export type RoleCreateSchema = {
2383
2396
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2384
2397
  */
2385
2398
  locale?: string | null;
2399
+ upload_collection?: UploadCollectionIdentity | null;
2400
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2386
2401
  }[];
2387
2402
  /**
2388
2403
  * Prohibited actions on a model (or all) for a role
@@ -2399,7 +2414,8 @@ export type RoleCreateSchema = {
2399
2414
  | 'create'
2400
2415
  | 'delete'
2401
2416
  | 'edit_creator'
2402
- | 'replace_asset';
2417
+ | 'replace_asset'
2418
+ | 'move';
2403
2419
  /**
2404
2420
  * Permitted creator
2405
2421
  */
@@ -2412,6 +2428,8 @@ export type RoleCreateSchema = {
2412
2428
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2413
2429
  */
2414
2430
  locale?: string | null;
2431
+ upload_collection?: UploadCollectionIdentity | null;
2432
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2415
2433
  }[];
2416
2434
  /**
2417
2435
  * Allowed build triggers for a role
@@ -2646,7 +2664,8 @@ export type RoleUpdateSchema = {
2646
2664
  | 'create'
2647
2665
  | 'delete'
2648
2666
  | 'edit_creator'
2649
- | 'replace_asset';
2667
+ | 'replace_asset'
2668
+ | 'move';
2650
2669
  /**
2651
2670
  * Permitted creator
2652
2671
  */
@@ -2659,6 +2678,8 @@ export type RoleUpdateSchema = {
2659
2678
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2660
2679
  */
2661
2680
  locale?: string | null;
2681
+ upload_collection?: UploadCollectionIdentity | null;
2682
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2662
2683
  }[];
2663
2684
  /**
2664
2685
  * Prohibited actions on a model (or all) for a role
@@ -2675,7 +2696,8 @@ export type RoleUpdateSchema = {
2675
2696
  | 'create'
2676
2697
  | 'delete'
2677
2698
  | 'edit_creator'
2678
- | 'replace_asset';
2699
+ | 'replace_asset'
2700
+ | 'move';
2679
2701
  /**
2680
2702
  * Permitted creator
2681
2703
  */
@@ -2688,6 +2710,8 @@ export type RoleUpdateSchema = {
2688
2710
  * Permitted localized content in this locale. Required when `localization_scope` is `localized`
2689
2711
  */
2690
2712
  locale?: string | null;
2713
+ upload_collection?: UploadCollectionIdentity | null;
2714
+ move_to_upload_collection?: UploadCollectionIdentity | null;
2691
2715
  }[];
2692
2716
  /**
2693
2717
  * Allowed build triggers for a role
@@ -6750,7 +6774,7 @@ export type PluginAttributes = {
6750
6774
  */
6751
6775
  url: string;
6752
6776
  /**
6753
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6777
+ * 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.
6754
6778
  */
6755
6779
  parameters: {
6756
6780
  [k: string]: unknown;
@@ -6917,7 +6941,7 @@ export type PluginUpdateSchema = {
6917
6941
  */
6918
6942
  url?: string;
6919
6943
  /**
6920
- * Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
6944
+ * 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.
6921
6945
  */
6922
6946
  parameters?: {
6923
6947
  [k: string]: unknown;
@@ -8963,6 +8987,14 @@ export type UploadRequestCreateSchema = {
8963
8987
  filename?: string;
8964
8988
  [k: string]: unknown;
8965
8989
  };
8990
+ relationships?: {
8991
+ /**
8992
+ * Upload collection to which the asset belongs
8993
+ */
8994
+ upload_collection?: {
8995
+ data: UploadCollectionData | null;
8996
+ };
8997
+ };
8966
8998
  };
8967
8999
  };
8968
9000
  /**
@@ -9900,7 +9932,7 @@ export type BuildTriggerAttributes = {
9900
9932
  /**
9901
9933
  * The type of build trigger
9902
9934
  */
9903
- adapter: 'custom' | 'netlify' | 'vercel' | 'circle_ci' | 'gitlab' | 'travis';
9935
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9904
9936
  /**
9905
9937
  * Additional settings for the build trigger. The value depends on the `adapter`.
9906
9938
  */
@@ -9973,13 +10005,7 @@ export type BuildTriggerCreateSchema = {
9973
10005
  /**
9974
10006
  * The type of build trigger
9975
10007
  */
9976
- adapter:
9977
- | 'custom'
9978
- | 'netlify'
9979
- | 'vercel'
9980
- | 'circle_ci'
9981
- | 'gitlab'
9982
- | 'travis';
10008
+ adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9983
10009
  /**
9984
10010
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
9985
10011
  */
@@ -10028,13 +10054,7 @@ export type BuildTriggerUpdateSchema = {
10028
10054
  /**
10029
10055
  * The type of build trigger
10030
10056
  */
10031
- adapter?:
10032
- | 'custom'
10033
- | 'netlify'
10034
- | 'vercel'
10035
- | 'circle_ci'
10036
- | 'gitlab'
10037
- | 'travis';
10057
+ adapter?: 'custom' | 'netlify' | 'vercel' | 'gitlab';
10038
10058
  /**
10039
10059
  * Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
10040
10060
  */
@@ -19,7 +19,7 @@ export default class UploadRequest extends BaseResource {
19
19
  Utils.serializeRequestBody<RawApiTypes.UploadRequestCreateSchema>(body, {
20
20
  type: 'upload_request',
21
21
  attributes: ['filename'],
22
- relationships: [],
22
+ relationships: ['upload_collection'],
23
23
  }),
24
24
  ).then((body) =>
25
25
  Utils.deserializeResponseBody<ApiTypes.UploadRequestCreateTargetSchema>(