@datocms/cma-client 5.5.0-alpha.0 → 5.5.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/generated/Client.js +1 -1
- package/dist/cjs/generated/resources/Session.js +29 -0
- package/dist/cjs/generated/resources/Session.js.map +1 -1
- package/dist/cjs/generated/resources/Site.js +29 -0
- package/dist/cjs/generated/resources/Site.js.map +1 -1
- package/dist/cjs/utilities/id.js +1 -1
- package/dist/cjs/utilities/id.js.map +1 -1
- package/dist/esm/generated/ApiTypes.d.ts +445 -34
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +261 -19
- package/dist/esm/generated/resources/Session.d.ts +22 -0
- package/dist/esm/generated/resources/Session.js +29 -0
- package/dist/esm/generated/resources/Session.js.map +1 -1
- package/dist/esm/generated/resources/Site.d.ts +22 -0
- package/dist/esm/generated/resources/Site.js +29 -0
- package/dist/esm/generated/resources/Site.js.map +1 -1
- package/dist/esm/utilities/id.js +1 -1
- package/dist/esm/utilities/id.js.map +1 -1
- package/dist/types/generated/ApiTypes.d.ts +445 -34
- package/dist/types/generated/RawApiTypes.d.ts +261 -19
- package/dist/types/generated/resources/Session.d.ts +22 -0
- package/dist/types/generated/resources/Site.d.ts +22 -0
- package/package.json +4 -5
- package/resources.json +33 -0
- package/src/generated/ApiTypes.ts +445 -34
- package/src/generated/Client.ts +1 -1
- package/src/generated/RawApiTypes.ts +261 -19
- package/src/generated/resources/Session.ts +31 -0
- package/src/generated/resources/Site.ts +37 -0
- package/src/utilities/id.ts +1 -1
|
@@ -8341,17 +8341,14 @@ export type Upload = {
|
|
|
8341
8341
|
*/
|
|
8342
8342
|
mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
|
|
8343
8343
|
/**
|
|
8344
|
-
* Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` is
|
|
8345
|
-
*
|
|
8346
|
-
* > [!PROTIP] 📘 Requires the `non_localized_focal_points` environment opt-in
|
|
8347
|
-
* > This shape is returned and accepted in environments where the opt-in is active. The opt-in is the path forward and will become the default for all projects. Environments where it is still inactive use a legacy locale-keyed shape under the hood (kept working for compatibility) — opt in to align with this documentation.
|
|
8344
|
+
* Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` is a single value per asset (only meaningful for image assets). See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
|
|
8348
8345
|
*/
|
|
8349
8346
|
default_field_metadata: {
|
|
8350
8347
|
alt: LocalizedAlt;
|
|
8351
8348
|
title: LocalizedTitle;
|
|
8352
8349
|
custom_data: LocalizedCustomData;
|
|
8353
8350
|
/**
|
|
8354
|
-
* Focal point
|
|
8351
|
+
* Focal point (only for image assets)
|
|
8355
8352
|
*/
|
|
8356
8353
|
focal_point: {
|
|
8357
8354
|
/**
|
|
@@ -8581,17 +8578,14 @@ export type UploadAttributes = {
|
|
|
8581
8578
|
*/
|
|
8582
8579
|
mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
|
|
8583
8580
|
/**
|
|
8584
|
-
* Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` is
|
|
8585
|
-
*
|
|
8586
|
-
* > [!PROTIP] 📘 Requires the `non_localized_focal_points` environment opt-in
|
|
8587
|
-
* > This shape is returned and accepted in environments where the opt-in is active. The opt-in is the path forward and will become the default for all projects. Environments where it is still inactive use a legacy locale-keyed shape under the hood (kept working for compatibility) — opt in to align with this documentation.
|
|
8581
|
+
* Per-asset default metadata applied when no record-level overrides are present. `alt`, `title`, and `custom_data` are objects keyed by locale; `focal_point` is a single value per asset (only meaningful for image assets). See [non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) for more info.
|
|
8588
8582
|
*/
|
|
8589
8583
|
default_field_metadata: {
|
|
8590
8584
|
alt: LocalizedAlt;
|
|
8591
8585
|
title: LocalizedTitle;
|
|
8592
8586
|
custom_data: LocalizedCustomData;
|
|
8593
8587
|
/**
|
|
8594
|
-
* Focal point
|
|
8588
|
+
* Focal point (only for image assets)
|
|
8595
8589
|
*/
|
|
8596
8590
|
focal_point: {
|
|
8597
8591
|
/**
|
|
@@ -8702,7 +8696,7 @@ export type UploadCreateSchema = {
|
|
|
8702
8696
|
title?: LocalizedTitle;
|
|
8703
8697
|
custom_data?: LocalizedCustomData;
|
|
8704
8698
|
/**
|
|
8705
|
-
* Focal point
|
|
8699
|
+
* Focal point (only for image assets)
|
|
8706
8700
|
*/
|
|
8707
8701
|
focal_point?: {
|
|
8708
8702
|
/**
|
|
@@ -8760,7 +8754,7 @@ export type UploadUpdateSchema = {
|
|
|
8760
8754
|
title?: LocalizedTitle;
|
|
8761
8755
|
custom_data?: LocalizedCustomData;
|
|
8762
8756
|
/**
|
|
8763
|
-
* Focal point
|
|
8757
|
+
* Focal point (only for image assets)
|
|
8764
8758
|
*/
|
|
8765
8759
|
focal_point?: {
|
|
8766
8760
|
/**
|
|
@@ -11084,32 +11078,125 @@ export type PublicInfo = {
|
|
|
11084
11078
|
*/
|
|
11085
11079
|
custom_i18n_messages_template_url: null | string;
|
|
11086
11080
|
/**
|
|
11087
|
-
* Specifies the color-scheme for the project
|
|
11081
|
+
* Specifies the color-scheme for the project. For monochromatic themes the response only includes type and hue — frontends must derive the palette from the hue. For custom themes the primary_color, light_color, accent_color, and dark_color fields are returned.
|
|
11088
11082
|
*/
|
|
11089
11083
|
theme: {
|
|
11090
|
-
|
|
11084
|
+
/**
|
|
11085
|
+
* Whether the project is using a custom color palette or a monochromatic one derived from a hue.
|
|
11086
|
+
*/
|
|
11087
|
+
type: 'custom' | 'monochromatic';
|
|
11088
|
+
/**
|
|
11089
|
+
* If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
|
|
11090
|
+
*/
|
|
11091
|
+
hue: number | null;
|
|
11092
|
+
/**
|
|
11093
|
+
* An integer color channel value (0-255)
|
|
11094
|
+
*/
|
|
11095
|
+
color_channel?: number;
|
|
11096
|
+
/**
|
|
11097
|
+
* An RGBA color value
|
|
11098
|
+
*/
|
|
11099
|
+
color?: {
|
|
11100
|
+
/**
|
|
11101
|
+
* An integer color channel value (0-255)
|
|
11102
|
+
*/
|
|
11091
11103
|
red: number;
|
|
11104
|
+
/**
|
|
11105
|
+
* An integer color channel value (0-255)
|
|
11106
|
+
*/
|
|
11092
11107
|
green: number;
|
|
11108
|
+
/**
|
|
11109
|
+
* An integer color channel value (0-255)
|
|
11110
|
+
*/
|
|
11093
11111
|
blue: number;
|
|
11112
|
+
/**
|
|
11113
|
+
* An integer color channel value (0-255)
|
|
11114
|
+
*/
|
|
11094
11115
|
alpha: number;
|
|
11095
11116
|
[k: string]: unknown;
|
|
11096
11117
|
};
|
|
11097
|
-
|
|
11118
|
+
/**
|
|
11119
|
+
* An RGBA color value
|
|
11120
|
+
*/
|
|
11121
|
+
primary_color?: {
|
|
11122
|
+
/**
|
|
11123
|
+
* An integer color channel value (0-255)
|
|
11124
|
+
*/
|
|
11098
11125
|
red: number;
|
|
11126
|
+
/**
|
|
11127
|
+
* An integer color channel value (0-255)
|
|
11128
|
+
*/
|
|
11099
11129
|
green: number;
|
|
11130
|
+
/**
|
|
11131
|
+
* An integer color channel value (0-255)
|
|
11132
|
+
*/
|
|
11100
11133
|
blue: number;
|
|
11134
|
+
/**
|
|
11135
|
+
* An integer color channel value (0-255)
|
|
11136
|
+
*/
|
|
11101
11137
|
alpha: number;
|
|
11102
11138
|
};
|
|
11103
|
-
|
|
11139
|
+
/**
|
|
11140
|
+
* An RGBA color value
|
|
11141
|
+
*/
|
|
11142
|
+
light_color?: {
|
|
11143
|
+
/**
|
|
11144
|
+
* An integer color channel value (0-255)
|
|
11145
|
+
*/
|
|
11104
11146
|
red: number;
|
|
11147
|
+
/**
|
|
11148
|
+
* An integer color channel value (0-255)
|
|
11149
|
+
*/
|
|
11105
11150
|
green: number;
|
|
11151
|
+
/**
|
|
11152
|
+
* An integer color channel value (0-255)
|
|
11153
|
+
*/
|
|
11106
11154
|
blue: number;
|
|
11155
|
+
/**
|
|
11156
|
+
* An integer color channel value (0-255)
|
|
11157
|
+
*/
|
|
11107
11158
|
alpha: number;
|
|
11108
11159
|
};
|
|
11109
|
-
|
|
11160
|
+
/**
|
|
11161
|
+
* An RGBA color value
|
|
11162
|
+
*/
|
|
11163
|
+
accent_color?: {
|
|
11164
|
+
/**
|
|
11165
|
+
* An integer color channel value (0-255)
|
|
11166
|
+
*/
|
|
11110
11167
|
red: number;
|
|
11168
|
+
/**
|
|
11169
|
+
* An integer color channel value (0-255)
|
|
11170
|
+
*/
|
|
11111
11171
|
green: number;
|
|
11172
|
+
/**
|
|
11173
|
+
* An integer color channel value (0-255)
|
|
11174
|
+
*/
|
|
11112
11175
|
blue: number;
|
|
11176
|
+
/**
|
|
11177
|
+
* An integer color channel value (0-255)
|
|
11178
|
+
*/
|
|
11179
|
+
alpha: number;
|
|
11180
|
+
};
|
|
11181
|
+
/**
|
|
11182
|
+
* An RGBA color value
|
|
11183
|
+
*/
|
|
11184
|
+
dark_color?: {
|
|
11185
|
+
/**
|
|
11186
|
+
* An integer color channel value (0-255)
|
|
11187
|
+
*/
|
|
11188
|
+
red: number;
|
|
11189
|
+
/**
|
|
11190
|
+
* An integer color channel value (0-255)
|
|
11191
|
+
*/
|
|
11192
|
+
green: number;
|
|
11193
|
+
/**
|
|
11194
|
+
* An integer color channel value (0-255)
|
|
11195
|
+
*/
|
|
11196
|
+
blue: number;
|
|
11197
|
+
/**
|
|
11198
|
+
* An integer color channel value (0-255)
|
|
11199
|
+
*/
|
|
11113
11200
|
alpha: number;
|
|
11114
11201
|
};
|
|
11115
11202
|
};
|
|
@@ -11162,32 +11249,125 @@ export type PublicInfoAttributes = {
|
|
|
11162
11249
|
*/
|
|
11163
11250
|
custom_i18n_messages_template_url: null | string;
|
|
11164
11251
|
/**
|
|
11165
|
-
* Specifies the color-scheme for the project
|
|
11252
|
+
* Specifies the color-scheme for the project. For monochromatic themes the response only includes type and hue — frontends must derive the palette from the hue. For custom themes the primary_color, light_color, accent_color, and dark_color fields are returned.
|
|
11166
11253
|
*/
|
|
11167
11254
|
theme: {
|
|
11168
|
-
|
|
11255
|
+
/**
|
|
11256
|
+
* Whether the project is using a custom color palette or a monochromatic one derived from a hue.
|
|
11257
|
+
*/
|
|
11258
|
+
type: 'custom' | 'monochromatic';
|
|
11259
|
+
/**
|
|
11260
|
+
* If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
|
|
11261
|
+
*/
|
|
11262
|
+
hue: number | null;
|
|
11263
|
+
/**
|
|
11264
|
+
* An integer color channel value (0-255)
|
|
11265
|
+
*/
|
|
11266
|
+
color_channel?: number;
|
|
11267
|
+
/**
|
|
11268
|
+
* An RGBA color value
|
|
11269
|
+
*/
|
|
11270
|
+
color?: {
|
|
11271
|
+
/**
|
|
11272
|
+
* An integer color channel value (0-255)
|
|
11273
|
+
*/
|
|
11169
11274
|
red: number;
|
|
11275
|
+
/**
|
|
11276
|
+
* An integer color channel value (0-255)
|
|
11277
|
+
*/
|
|
11170
11278
|
green: number;
|
|
11279
|
+
/**
|
|
11280
|
+
* An integer color channel value (0-255)
|
|
11281
|
+
*/
|
|
11171
11282
|
blue: number;
|
|
11283
|
+
/**
|
|
11284
|
+
* An integer color channel value (0-255)
|
|
11285
|
+
*/
|
|
11172
11286
|
alpha: number;
|
|
11173
11287
|
[k: string]: unknown;
|
|
11174
11288
|
};
|
|
11175
|
-
|
|
11289
|
+
/**
|
|
11290
|
+
* An RGBA color value
|
|
11291
|
+
*/
|
|
11292
|
+
primary_color?: {
|
|
11293
|
+
/**
|
|
11294
|
+
* An integer color channel value (0-255)
|
|
11295
|
+
*/
|
|
11176
11296
|
red: number;
|
|
11297
|
+
/**
|
|
11298
|
+
* An integer color channel value (0-255)
|
|
11299
|
+
*/
|
|
11177
11300
|
green: number;
|
|
11301
|
+
/**
|
|
11302
|
+
* An integer color channel value (0-255)
|
|
11303
|
+
*/
|
|
11178
11304
|
blue: number;
|
|
11305
|
+
/**
|
|
11306
|
+
* An integer color channel value (0-255)
|
|
11307
|
+
*/
|
|
11179
11308
|
alpha: number;
|
|
11180
11309
|
};
|
|
11181
|
-
|
|
11310
|
+
/**
|
|
11311
|
+
* An RGBA color value
|
|
11312
|
+
*/
|
|
11313
|
+
light_color?: {
|
|
11314
|
+
/**
|
|
11315
|
+
* An integer color channel value (0-255)
|
|
11316
|
+
*/
|
|
11182
11317
|
red: number;
|
|
11318
|
+
/**
|
|
11319
|
+
* An integer color channel value (0-255)
|
|
11320
|
+
*/
|
|
11183
11321
|
green: number;
|
|
11322
|
+
/**
|
|
11323
|
+
* An integer color channel value (0-255)
|
|
11324
|
+
*/
|
|
11184
11325
|
blue: number;
|
|
11326
|
+
/**
|
|
11327
|
+
* An integer color channel value (0-255)
|
|
11328
|
+
*/
|
|
11185
11329
|
alpha: number;
|
|
11186
11330
|
};
|
|
11187
|
-
|
|
11331
|
+
/**
|
|
11332
|
+
* An RGBA color value
|
|
11333
|
+
*/
|
|
11334
|
+
accent_color?: {
|
|
11335
|
+
/**
|
|
11336
|
+
* An integer color channel value (0-255)
|
|
11337
|
+
*/
|
|
11188
11338
|
red: number;
|
|
11339
|
+
/**
|
|
11340
|
+
* An integer color channel value (0-255)
|
|
11341
|
+
*/
|
|
11189
11342
|
green: number;
|
|
11343
|
+
/**
|
|
11344
|
+
* An integer color channel value (0-255)
|
|
11345
|
+
*/
|
|
11190
11346
|
blue: number;
|
|
11347
|
+
/**
|
|
11348
|
+
* An integer color channel value (0-255)
|
|
11349
|
+
*/
|
|
11350
|
+
alpha: number;
|
|
11351
|
+
};
|
|
11352
|
+
/**
|
|
11353
|
+
* An RGBA color value
|
|
11354
|
+
*/
|
|
11355
|
+
dark_color?: {
|
|
11356
|
+
/**
|
|
11357
|
+
* An integer color channel value (0-255)
|
|
11358
|
+
*/
|
|
11359
|
+
red: number;
|
|
11360
|
+
/**
|
|
11361
|
+
* An integer color channel value (0-255)
|
|
11362
|
+
*/
|
|
11363
|
+
green: number;
|
|
11364
|
+
/**
|
|
11365
|
+
* An integer color channel value (0-255)
|
|
11366
|
+
*/
|
|
11367
|
+
blue: number;
|
|
11368
|
+
/**
|
|
11369
|
+
* An integer color channel value (0-255)
|
|
11370
|
+
*/
|
|
11191
11371
|
alpha: number;
|
|
11192
11372
|
};
|
|
11193
11373
|
};
|
|
@@ -11535,7 +11715,7 @@ export type Site = {
|
|
|
11535
11715
|
};
|
|
11536
11716
|
};
|
|
11537
11717
|
/**
|
|
11538
|
-
* Specifies the theme to use in administrative area
|
|
11718
|
+
* Specifies the theme to use in administrative area. For monochromatic themes the response only includes type, hue, and logo — frontends must derive the palette from the hue. For custom themes the primary_color, light_color, accent_color, and dark_color fields are returned.
|
|
11539
11719
|
*/
|
|
11540
11720
|
theme: {
|
|
11541
11721
|
/**
|
|
@@ -11546,28 +11726,113 @@ export type Site = {
|
|
|
11546
11726
|
* If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
|
|
11547
11727
|
*/
|
|
11548
11728
|
hue: number | null;
|
|
11549
|
-
|
|
11729
|
+
/**
|
|
11730
|
+
* An integer color channel value (0-255)
|
|
11731
|
+
*/
|
|
11732
|
+
color_channel?: number;
|
|
11733
|
+
/**
|
|
11734
|
+
* An RGBA color value
|
|
11735
|
+
*/
|
|
11736
|
+
color?: {
|
|
11737
|
+
/**
|
|
11738
|
+
* An integer color channel value (0-255)
|
|
11739
|
+
*/
|
|
11740
|
+
red: number;
|
|
11741
|
+
/**
|
|
11742
|
+
* An integer color channel value (0-255)
|
|
11743
|
+
*/
|
|
11744
|
+
green: number;
|
|
11745
|
+
/**
|
|
11746
|
+
* An integer color channel value (0-255)
|
|
11747
|
+
*/
|
|
11748
|
+
blue: number;
|
|
11749
|
+
/**
|
|
11750
|
+
* An integer color channel value (0-255)
|
|
11751
|
+
*/
|
|
11752
|
+
alpha: number;
|
|
11753
|
+
};
|
|
11754
|
+
/**
|
|
11755
|
+
* An RGBA color value
|
|
11756
|
+
*/
|
|
11757
|
+
primary_color?: {
|
|
11758
|
+
/**
|
|
11759
|
+
* An integer color channel value (0-255)
|
|
11760
|
+
*/
|
|
11550
11761
|
red: number;
|
|
11762
|
+
/**
|
|
11763
|
+
* An integer color channel value (0-255)
|
|
11764
|
+
*/
|
|
11551
11765
|
green: number;
|
|
11766
|
+
/**
|
|
11767
|
+
* An integer color channel value (0-255)
|
|
11768
|
+
*/
|
|
11552
11769
|
blue: number;
|
|
11770
|
+
/**
|
|
11771
|
+
* An integer color channel value (0-255)
|
|
11772
|
+
*/
|
|
11553
11773
|
alpha: number;
|
|
11554
11774
|
};
|
|
11555
|
-
|
|
11775
|
+
/**
|
|
11776
|
+
* An RGBA color value
|
|
11777
|
+
*/
|
|
11778
|
+
light_color?: {
|
|
11779
|
+
/**
|
|
11780
|
+
* An integer color channel value (0-255)
|
|
11781
|
+
*/
|
|
11556
11782
|
red: number;
|
|
11783
|
+
/**
|
|
11784
|
+
* An integer color channel value (0-255)
|
|
11785
|
+
*/
|
|
11557
11786
|
green: number;
|
|
11787
|
+
/**
|
|
11788
|
+
* An integer color channel value (0-255)
|
|
11789
|
+
*/
|
|
11558
11790
|
blue: number;
|
|
11791
|
+
/**
|
|
11792
|
+
* An integer color channel value (0-255)
|
|
11793
|
+
*/
|
|
11559
11794
|
alpha: number;
|
|
11560
11795
|
};
|
|
11561
|
-
|
|
11796
|
+
/**
|
|
11797
|
+
* An RGBA color value
|
|
11798
|
+
*/
|
|
11799
|
+
accent_color?: {
|
|
11800
|
+
/**
|
|
11801
|
+
* An integer color channel value (0-255)
|
|
11802
|
+
*/
|
|
11562
11803
|
red: number;
|
|
11804
|
+
/**
|
|
11805
|
+
* An integer color channel value (0-255)
|
|
11806
|
+
*/
|
|
11563
11807
|
green: number;
|
|
11808
|
+
/**
|
|
11809
|
+
* An integer color channel value (0-255)
|
|
11810
|
+
*/
|
|
11564
11811
|
blue: number;
|
|
11812
|
+
/**
|
|
11813
|
+
* An integer color channel value (0-255)
|
|
11814
|
+
*/
|
|
11565
11815
|
alpha: number;
|
|
11566
11816
|
};
|
|
11567
|
-
|
|
11817
|
+
/**
|
|
11818
|
+
* An RGBA color value
|
|
11819
|
+
*/
|
|
11820
|
+
dark_color?: {
|
|
11821
|
+
/**
|
|
11822
|
+
* An integer color channel value (0-255)
|
|
11823
|
+
*/
|
|
11568
11824
|
red: number;
|
|
11825
|
+
/**
|
|
11826
|
+
* An integer color channel value (0-255)
|
|
11827
|
+
*/
|
|
11569
11828
|
green: number;
|
|
11829
|
+
/**
|
|
11830
|
+
* An integer color channel value (0-255)
|
|
11831
|
+
*/
|
|
11570
11832
|
blue: number;
|
|
11833
|
+
/**
|
|
11834
|
+
* An integer color channel value (0-255)
|
|
11835
|
+
*/
|
|
11571
11836
|
alpha: number;
|
|
11572
11837
|
};
|
|
11573
11838
|
/**
|
|
@@ -11630,6 +11895,7 @@ export type SiteActivateImprovedValidationAtPublishingTargetSchema = Site;
|
|
|
11630
11895
|
export type SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema = Site;
|
|
11631
11896
|
export type SiteActivateImprovedItemsListingTargetSchema = Site;
|
|
11632
11897
|
export type SiteActivateMillisecondsInDatetimeTargetSchema = Site;
|
|
11898
|
+
export type SiteActivateNonLocalizedFocalPointsTargetSchema = Site;
|
|
11633
11899
|
export type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = Site;
|
|
11634
11900
|
/**
|
|
11635
11901
|
* Meta attributes
|
|
@@ -11687,7 +11953,7 @@ export type SiteMeta = {
|
|
|
11687
11953
|
*/
|
|
11688
11954
|
milliseconds_in_datetime: boolean;
|
|
11689
11955
|
/**
|
|
11690
|
-
* Whether the
|
|
11956
|
+
* Whether the [Non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) opt-in product update is active or not
|
|
11691
11957
|
*/
|
|
11692
11958
|
non_localized_focal_points: boolean;
|
|
11693
11959
|
};
|
|
@@ -11792,7 +12058,7 @@ export type SiteAttributes = {
|
|
|
11792
12058
|
};
|
|
11793
12059
|
};
|
|
11794
12060
|
/**
|
|
11795
|
-
* Specifies the theme to use in administrative area
|
|
12061
|
+
* Specifies the theme to use in administrative area. For monochromatic themes the response only includes type, hue, and logo — frontends must derive the palette from the hue. For custom themes the primary_color, light_color, accent_color, and dark_color fields are returned.
|
|
11796
12062
|
*/
|
|
11797
12063
|
theme: {
|
|
11798
12064
|
/**
|
|
@@ -11803,28 +12069,113 @@ export type SiteAttributes = {
|
|
|
11803
12069
|
* If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
|
|
11804
12070
|
*/
|
|
11805
12071
|
hue: number | null;
|
|
11806
|
-
|
|
12072
|
+
/**
|
|
12073
|
+
* An integer color channel value (0-255)
|
|
12074
|
+
*/
|
|
12075
|
+
color_channel?: number;
|
|
12076
|
+
/**
|
|
12077
|
+
* An RGBA color value
|
|
12078
|
+
*/
|
|
12079
|
+
color?: {
|
|
12080
|
+
/**
|
|
12081
|
+
* An integer color channel value (0-255)
|
|
12082
|
+
*/
|
|
11807
12083
|
red: number;
|
|
12084
|
+
/**
|
|
12085
|
+
* An integer color channel value (0-255)
|
|
12086
|
+
*/
|
|
11808
12087
|
green: number;
|
|
12088
|
+
/**
|
|
12089
|
+
* An integer color channel value (0-255)
|
|
12090
|
+
*/
|
|
11809
12091
|
blue: number;
|
|
12092
|
+
/**
|
|
12093
|
+
* An integer color channel value (0-255)
|
|
12094
|
+
*/
|
|
12095
|
+
alpha: number;
|
|
12096
|
+
};
|
|
12097
|
+
/**
|
|
12098
|
+
* An RGBA color value
|
|
12099
|
+
*/
|
|
12100
|
+
primary_color?: {
|
|
12101
|
+
/**
|
|
12102
|
+
* An integer color channel value (0-255)
|
|
12103
|
+
*/
|
|
12104
|
+
red: number;
|
|
12105
|
+
/**
|
|
12106
|
+
* An integer color channel value (0-255)
|
|
12107
|
+
*/
|
|
12108
|
+
green: number;
|
|
12109
|
+
/**
|
|
12110
|
+
* An integer color channel value (0-255)
|
|
12111
|
+
*/
|
|
12112
|
+
blue: number;
|
|
12113
|
+
/**
|
|
12114
|
+
* An integer color channel value (0-255)
|
|
12115
|
+
*/
|
|
11810
12116
|
alpha: number;
|
|
11811
12117
|
};
|
|
11812
|
-
|
|
12118
|
+
/**
|
|
12119
|
+
* An RGBA color value
|
|
12120
|
+
*/
|
|
12121
|
+
light_color?: {
|
|
12122
|
+
/**
|
|
12123
|
+
* An integer color channel value (0-255)
|
|
12124
|
+
*/
|
|
11813
12125
|
red: number;
|
|
12126
|
+
/**
|
|
12127
|
+
* An integer color channel value (0-255)
|
|
12128
|
+
*/
|
|
11814
12129
|
green: number;
|
|
12130
|
+
/**
|
|
12131
|
+
* An integer color channel value (0-255)
|
|
12132
|
+
*/
|
|
11815
12133
|
blue: number;
|
|
12134
|
+
/**
|
|
12135
|
+
* An integer color channel value (0-255)
|
|
12136
|
+
*/
|
|
11816
12137
|
alpha: number;
|
|
11817
12138
|
};
|
|
11818
|
-
|
|
12139
|
+
/**
|
|
12140
|
+
* An RGBA color value
|
|
12141
|
+
*/
|
|
12142
|
+
accent_color?: {
|
|
12143
|
+
/**
|
|
12144
|
+
* An integer color channel value (0-255)
|
|
12145
|
+
*/
|
|
11819
12146
|
red: number;
|
|
12147
|
+
/**
|
|
12148
|
+
* An integer color channel value (0-255)
|
|
12149
|
+
*/
|
|
11820
12150
|
green: number;
|
|
12151
|
+
/**
|
|
12152
|
+
* An integer color channel value (0-255)
|
|
12153
|
+
*/
|
|
11821
12154
|
blue: number;
|
|
12155
|
+
/**
|
|
12156
|
+
* An integer color channel value (0-255)
|
|
12157
|
+
*/
|
|
11822
12158
|
alpha: number;
|
|
11823
12159
|
};
|
|
11824
|
-
|
|
12160
|
+
/**
|
|
12161
|
+
* An RGBA color value
|
|
12162
|
+
*/
|
|
12163
|
+
dark_color?: {
|
|
12164
|
+
/**
|
|
12165
|
+
* An integer color channel value (0-255)
|
|
12166
|
+
*/
|
|
11825
12167
|
red: number;
|
|
12168
|
+
/**
|
|
12169
|
+
* An integer color channel value (0-255)
|
|
12170
|
+
*/
|
|
11826
12171
|
green: number;
|
|
12172
|
+
/**
|
|
12173
|
+
* An integer color channel value (0-255)
|
|
12174
|
+
*/
|
|
11827
12175
|
blue: number;
|
|
12176
|
+
/**
|
|
12177
|
+
* An integer color channel value (0-255)
|
|
12178
|
+
*/
|
|
11828
12179
|
alpha: number;
|
|
11829
12180
|
};
|
|
11830
12181
|
/**
|
|
@@ -11961,28 +12312,88 @@ export type SiteUpdateSchema = {
|
|
|
11961
12312
|
* The upload ID that is used as the logo for the project
|
|
11962
12313
|
*/
|
|
11963
12314
|
logo: string | null;
|
|
12315
|
+
/**
|
|
12316
|
+
* An RGBA color value
|
|
12317
|
+
*/
|
|
11964
12318
|
primary_color: {
|
|
12319
|
+
/**
|
|
12320
|
+
* An integer color channel value (0-255)
|
|
12321
|
+
*/
|
|
11965
12322
|
red: number;
|
|
12323
|
+
/**
|
|
12324
|
+
* An integer color channel value (0-255)
|
|
12325
|
+
*/
|
|
11966
12326
|
green: number;
|
|
12327
|
+
/**
|
|
12328
|
+
* An integer color channel value (0-255)
|
|
12329
|
+
*/
|
|
11967
12330
|
blue: number;
|
|
12331
|
+
/**
|
|
12332
|
+
* An integer color channel value (0-255)
|
|
12333
|
+
*/
|
|
11968
12334
|
alpha: number;
|
|
11969
12335
|
};
|
|
12336
|
+
/**
|
|
12337
|
+
* An RGBA color value
|
|
12338
|
+
*/
|
|
11970
12339
|
light_color: {
|
|
12340
|
+
/**
|
|
12341
|
+
* An integer color channel value (0-255)
|
|
12342
|
+
*/
|
|
11971
12343
|
red: number;
|
|
12344
|
+
/**
|
|
12345
|
+
* An integer color channel value (0-255)
|
|
12346
|
+
*/
|
|
11972
12347
|
green: number;
|
|
12348
|
+
/**
|
|
12349
|
+
* An integer color channel value (0-255)
|
|
12350
|
+
*/
|
|
11973
12351
|
blue: number;
|
|
12352
|
+
/**
|
|
12353
|
+
* An integer color channel value (0-255)
|
|
12354
|
+
*/
|
|
11974
12355
|
alpha: number;
|
|
11975
12356
|
};
|
|
12357
|
+
/**
|
|
12358
|
+
* An RGBA color value
|
|
12359
|
+
*/
|
|
11976
12360
|
accent_color: {
|
|
12361
|
+
/**
|
|
12362
|
+
* An integer color channel value (0-255)
|
|
12363
|
+
*/
|
|
11977
12364
|
red: number;
|
|
12365
|
+
/**
|
|
12366
|
+
* An integer color channel value (0-255)
|
|
12367
|
+
*/
|
|
11978
12368
|
green: number;
|
|
12369
|
+
/**
|
|
12370
|
+
* An integer color channel value (0-255)
|
|
12371
|
+
*/
|
|
11979
12372
|
blue: number;
|
|
12373
|
+
/**
|
|
12374
|
+
* An integer color channel value (0-255)
|
|
12375
|
+
*/
|
|
11980
12376
|
alpha: number;
|
|
11981
12377
|
};
|
|
12378
|
+
/**
|
|
12379
|
+
* An RGBA color value
|
|
12380
|
+
*/
|
|
11982
12381
|
dark_color?: {
|
|
12382
|
+
/**
|
|
12383
|
+
* An integer color channel value (0-255)
|
|
12384
|
+
*/
|
|
11983
12385
|
red: number;
|
|
12386
|
+
/**
|
|
12387
|
+
* An integer color channel value (0-255)
|
|
12388
|
+
*/
|
|
11984
12389
|
green: number;
|
|
12390
|
+
/**
|
|
12391
|
+
* An integer color channel value (0-255)
|
|
12392
|
+
*/
|
|
11985
12393
|
blue: number;
|
|
12394
|
+
/**
|
|
12395
|
+
* An integer color channel value (0-255)
|
|
12396
|
+
*/
|
|
11986
12397
|
alpha: number;
|
|
11987
12398
|
};
|
|
11988
12399
|
[k: string]: unknown;
|
|
@@ -12054,7 +12465,7 @@ export type SiteUpdateSchema = {
|
|
|
12054
12465
|
*/
|
|
12055
12466
|
milliseconds_in_datetime?: boolean;
|
|
12056
12467
|
/**
|
|
12057
|
-
* Whether the
|
|
12468
|
+
* Whether the [Non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) opt-in product update is active or not
|
|
12058
12469
|
*/
|
|
12059
12470
|
non_localized_focal_points?: boolean;
|
|
12060
12471
|
};
|
package/src/generated/Client.ts
CHANGED
|
@@ -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.5.0-alpha.
|
|
154
|
+
userAgent: '@datocms/cma-client v5.5.0-alpha.2',
|
|
155
155
|
baseUrl: this.baseUrl,
|
|
156
156
|
preCallStack: new Error().stack,
|
|
157
157
|
extraHeaders: {
|