@datocms/cma-client 5.5.0-alpha.1 → 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/Site.js +29 -0
- package/dist/cjs/generated/resources/Site.js.map +1 -1
- package/dist/cjs/generated/resources/index.js +1 -1
- package/dist/cjs/generated/resources/index.js.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/resources/Upload.js +10 -0
- package/dist/cjs/resources/Upload.js.map +1 -0
- package/dist/cjs/utilities/id.js +1 -1
- package/dist/cjs/utilities/id.js.map +1 -1
- package/dist/esm/generated/ApiTypes.d.ts +527 -140
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +334 -102
- 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/generated/resources/index.d.ts +1 -1
- package/dist/esm/generated/resources/index.js +1 -1
- package/dist/esm/generated/resources/index.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/resources/Upload.d.ts +44 -0
- package/dist/esm/resources/Upload.js +4 -0
- package/dist/esm/resources/Upload.js.map +1 -0
- package/dist/esm/utilities/id.js +1 -1
- package/dist/esm/utilities/id.js.map +1 -1
- package/dist/types/generated/ApiTypes.d.ts +527 -140
- package/dist/types/generated/RawApiTypes.d.ts +334 -102
- package/dist/types/generated/resources/Site.d.ts +22 -0
- package/dist/types/generated/resources/index.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/resources/Upload.d.ts +44 -0
- package/package.json +4 -5
- package/resources.json +17 -0
- package/src/generated/ApiTypes.ts +527 -140
- package/src/generated/Client.ts +1 -1
- package/src/generated/RawApiTypes.ts +334 -102
- package/src/generated/resources/Site.ts +37 -0
- package/src/generated/resources/index.ts +1 -1
- package/src/index.ts +4 -0
- package/src/resources/Upload.ts +36 -0
- package/src/utilities/id.ts +1 -1
|
@@ -8229,14 +8229,6 @@ export type ItemVersionMeta = {
|
|
|
8229
8229
|
* Whether the record version is the published version or not
|
|
8230
8230
|
*/
|
|
8231
8231
|
is_published: boolean;
|
|
8232
|
-
/**
|
|
8233
|
-
* Date this version became the published version of the record, or `null` if it has never been published. May also be `null` for versions that were published before publication-history tracking was introduced; in that case, fall back to `is_published` to determine the live status.
|
|
8234
|
-
*/
|
|
8235
|
-
published_from: string | null;
|
|
8236
|
-
/**
|
|
8237
|
-
* Date this version stopped being the published version of the record (either replaced by a newer published version, or explicitly unpublished). `null` when the version is currently published or has never been published.
|
|
8238
|
-
*/
|
|
8239
|
-
published_until: string | null;
|
|
8240
8232
|
/**
|
|
8241
8233
|
* Whether the record version is the most recent version or not
|
|
8242
8234
|
*/
|
|
@@ -8349,42 +8341,25 @@ export type Upload = {
|
|
|
8349
8341
|
*/
|
|
8350
8342
|
mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
|
|
8351
8343
|
/**
|
|
8352
|
-
*
|
|
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.
|
|
8353
8345
|
*/
|
|
8354
8346
|
default_field_metadata: {
|
|
8347
|
+
alt: LocalizedAlt;
|
|
8348
|
+
title: LocalizedTitle;
|
|
8349
|
+
custom_data: LocalizedCustomData;
|
|
8355
8350
|
/**
|
|
8356
|
-
*
|
|
8357
|
-
* via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
|
|
8351
|
+
* Focal point (only for image assets)
|
|
8358
8352
|
*/
|
|
8359
|
-
|
|
8360
|
-
/**
|
|
8361
|
-
* Alternate text for the asset
|
|
8362
|
-
*/
|
|
8363
|
-
alt: string | null;
|
|
8353
|
+
focal_point: {
|
|
8364
8354
|
/**
|
|
8365
|
-
*
|
|
8355
|
+
* Horizontal position expressed as float between 0 and 1
|
|
8366
8356
|
*/
|
|
8367
|
-
|
|
8357
|
+
x: number;
|
|
8368
8358
|
/**
|
|
8369
|
-
*
|
|
8359
|
+
* Vertical position expressed as float between 0 and 1
|
|
8370
8360
|
*/
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
};
|
|
8374
|
-
/**
|
|
8375
|
-
* Focal point (only for image assets)
|
|
8376
|
-
*/
|
|
8377
|
-
focal_point: {
|
|
8378
|
-
/**
|
|
8379
|
-
* Horizontal position expressed as float between 0 and 1
|
|
8380
|
-
*/
|
|
8381
|
-
x: number;
|
|
8382
|
-
/**
|
|
8383
|
-
* Vertical position expressed as float between 0 and 1
|
|
8384
|
-
*/
|
|
8385
|
-
y: number;
|
|
8386
|
-
} | null;
|
|
8387
|
-
};
|
|
8361
|
+
y: number;
|
|
8362
|
+
} | null;
|
|
8388
8363
|
};
|
|
8389
8364
|
/**
|
|
8390
8365
|
* Is this upload an image?
|
|
@@ -8450,6 +8425,44 @@ export type UploadCreateJobSchema = Upload;
|
|
|
8450
8425
|
export type UploadSelfTargetSchema = Upload;
|
|
8451
8426
|
export type UploadDestroyTargetSchema = Upload;
|
|
8452
8427
|
export type UploadUpdateJobSchema = Upload;
|
|
8428
|
+
/**
|
|
8429
|
+
* Alternate text per locale
|
|
8430
|
+
*/
|
|
8431
|
+
export type LocalizedAlt = {
|
|
8432
|
+
/**
|
|
8433
|
+
* Alternate text for the asset in this locale
|
|
8434
|
+
*
|
|
8435
|
+
* This interface was referenced by `LocalizedAlt`'s JSON-Schema definition
|
|
8436
|
+
* via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
|
|
8437
|
+
*/
|
|
8438
|
+
[k: string]: string | null;
|
|
8439
|
+
};
|
|
8440
|
+
/**
|
|
8441
|
+
* Title per locale
|
|
8442
|
+
*/
|
|
8443
|
+
export type LocalizedTitle = {
|
|
8444
|
+
/**
|
|
8445
|
+
* Title for the asset in this locale
|
|
8446
|
+
*
|
|
8447
|
+
* This interface was referenced by `LocalizedTitle`'s JSON-Schema definition
|
|
8448
|
+
* via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
|
|
8449
|
+
*/
|
|
8450
|
+
[k: string]: string | null;
|
|
8451
|
+
};
|
|
8452
|
+
/**
|
|
8453
|
+
* Object with arbitrary metadata, per locale
|
|
8454
|
+
*/
|
|
8455
|
+
export type LocalizedCustomData = {
|
|
8456
|
+
/**
|
|
8457
|
+
* Arbitrary metadata for the asset in this locale
|
|
8458
|
+
*
|
|
8459
|
+
* This interface was referenced by `LocalizedCustomData`'s JSON-Schema definition
|
|
8460
|
+
* via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
|
|
8461
|
+
*/
|
|
8462
|
+
[k: string]: {
|
|
8463
|
+
[k: string]: unknown;
|
|
8464
|
+
};
|
|
8465
|
+
};
|
|
8453
8466
|
/**
|
|
8454
8467
|
* Meta attributes
|
|
8455
8468
|
*
|
|
@@ -8565,42 +8578,25 @@ export type UploadAttributes = {
|
|
|
8565
8578
|
*/
|
|
8566
8579
|
mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
|
|
8567
8580
|
/**
|
|
8568
|
-
*
|
|
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.
|
|
8569
8582
|
*/
|
|
8570
8583
|
default_field_metadata: {
|
|
8584
|
+
alt: LocalizedAlt;
|
|
8585
|
+
title: LocalizedTitle;
|
|
8586
|
+
custom_data: LocalizedCustomData;
|
|
8571
8587
|
/**
|
|
8572
|
-
*
|
|
8573
|
-
* via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
|
|
8588
|
+
* Focal point (only for image assets)
|
|
8574
8589
|
*/
|
|
8575
|
-
|
|
8576
|
-
/**
|
|
8577
|
-
* Alternate text for the asset
|
|
8578
|
-
*/
|
|
8579
|
-
alt: string | null;
|
|
8590
|
+
focal_point: {
|
|
8580
8591
|
/**
|
|
8581
|
-
*
|
|
8592
|
+
* Horizontal position expressed as float between 0 and 1
|
|
8582
8593
|
*/
|
|
8583
|
-
|
|
8594
|
+
x: number;
|
|
8584
8595
|
/**
|
|
8585
|
-
*
|
|
8596
|
+
* Vertical position expressed as float between 0 and 1
|
|
8586
8597
|
*/
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
};
|
|
8590
|
-
/**
|
|
8591
|
-
* Focal point (only for image assets)
|
|
8592
|
-
*/
|
|
8593
|
-
focal_point: {
|
|
8594
|
-
/**
|
|
8595
|
-
* Horizontal position expressed as float between 0 and 1
|
|
8596
|
-
*/
|
|
8597
|
-
x: number;
|
|
8598
|
-
/**
|
|
8599
|
-
* Vertical position expressed as float between 0 and 1
|
|
8600
|
-
*/
|
|
8601
|
-
y: number;
|
|
8602
|
-
} | null;
|
|
8603
|
-
};
|
|
8598
|
+
y: number;
|
|
8599
|
+
} | null;
|
|
8604
8600
|
};
|
|
8605
8601
|
/**
|
|
8606
8602
|
* Is this upload an image?
|
|
@@ -8693,42 +8689,25 @@ export type UploadCreateSchema = {
|
|
|
8693
8689
|
*/
|
|
8694
8690
|
notes?: string | null;
|
|
8695
8691
|
/**
|
|
8696
|
-
*
|
|
8692
|
+
* Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
|
|
8697
8693
|
*/
|
|
8698
8694
|
default_field_metadata?: {
|
|
8695
|
+
alt?: LocalizedAlt;
|
|
8696
|
+
title?: LocalizedTitle;
|
|
8697
|
+
custom_data?: LocalizedCustomData;
|
|
8699
8698
|
/**
|
|
8700
|
-
*
|
|
8701
|
-
* via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
|
|
8699
|
+
* Focal point (only for image assets)
|
|
8702
8700
|
*/
|
|
8703
|
-
|
|
8704
|
-
/**
|
|
8705
|
-
* Alternate text for the asset
|
|
8706
|
-
*/
|
|
8707
|
-
alt?: string | null;
|
|
8701
|
+
focal_point?: {
|
|
8708
8702
|
/**
|
|
8709
|
-
*
|
|
8703
|
+
* Horizontal position expressed as float between 0 and 1
|
|
8710
8704
|
*/
|
|
8711
|
-
|
|
8705
|
+
x: number;
|
|
8712
8706
|
/**
|
|
8713
|
-
*
|
|
8707
|
+
* Vertical position expressed as float between 0 and 1
|
|
8714
8708
|
*/
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
};
|
|
8718
|
-
/**
|
|
8719
|
-
* Focal point (only for image assets)
|
|
8720
|
-
*/
|
|
8721
|
-
focal_point?: {
|
|
8722
|
-
/**
|
|
8723
|
-
* Horizontal position expressed as float between 0 and 1
|
|
8724
|
-
*/
|
|
8725
|
-
x: number;
|
|
8726
|
-
/**
|
|
8727
|
-
* Vertical position expressed as float between 0 and 1
|
|
8728
|
-
*/
|
|
8729
|
-
y: number;
|
|
8730
|
-
} | null;
|
|
8731
|
-
};
|
|
8709
|
+
y: number;
|
|
8710
|
+
} | null;
|
|
8732
8711
|
};
|
|
8733
8712
|
/**
|
|
8734
8713
|
* Tags
|
|
@@ -8768,42 +8747,25 @@ export type UploadUpdateSchema = {
|
|
|
8768
8747
|
*/
|
|
8769
8748
|
tags?: string[];
|
|
8770
8749
|
/**
|
|
8771
|
-
*
|
|
8750
|
+
* Patch the asset's default metadata. Send any subset of `alt`/`title`/`custom_data`/`focal_point` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
|
|
8772
8751
|
*/
|
|
8773
8752
|
default_field_metadata?: {
|
|
8753
|
+
alt?: LocalizedAlt;
|
|
8754
|
+
title?: LocalizedTitle;
|
|
8755
|
+
custom_data?: LocalizedCustomData;
|
|
8774
8756
|
/**
|
|
8775
|
-
*
|
|
8776
|
-
* via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
|
|
8757
|
+
* Focal point (only for image assets)
|
|
8777
8758
|
*/
|
|
8778
|
-
|
|
8779
|
-
/**
|
|
8780
|
-
* Alternate text for the asset
|
|
8781
|
-
*/
|
|
8782
|
-
alt?: string | null;
|
|
8759
|
+
focal_point?: {
|
|
8783
8760
|
/**
|
|
8784
|
-
*
|
|
8761
|
+
* Horizontal position expressed as float between 0 and 1
|
|
8785
8762
|
*/
|
|
8786
|
-
|
|
8763
|
+
x: number;
|
|
8787
8764
|
/**
|
|
8788
|
-
*
|
|
8765
|
+
* Vertical position expressed as float between 0 and 1
|
|
8789
8766
|
*/
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
};
|
|
8793
|
-
/**
|
|
8794
|
-
* Focal point (only for image assets)
|
|
8795
|
-
*/
|
|
8796
|
-
focal_point?: {
|
|
8797
|
-
/**
|
|
8798
|
-
* Horizontal position expressed as float between 0 and 1
|
|
8799
|
-
*/
|
|
8800
|
-
x: number;
|
|
8801
|
-
/**
|
|
8802
|
-
* Vertical position expressed as float between 0 and 1
|
|
8803
|
-
*/
|
|
8804
|
-
y: number;
|
|
8805
|
-
} | null;
|
|
8806
|
-
};
|
|
8767
|
+
y: number;
|
|
8768
|
+
} | null;
|
|
8807
8769
|
};
|
|
8808
8770
|
creator?:
|
|
8809
8771
|
| AccountData
|
|
@@ -11116,32 +11078,125 @@ export type PublicInfo = {
|
|
|
11116
11078
|
*/
|
|
11117
11079
|
custom_i18n_messages_template_url: null | string;
|
|
11118
11080
|
/**
|
|
11119
|
-
* 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.
|
|
11120
11082
|
*/
|
|
11121
11083
|
theme: {
|
|
11122
|
-
|
|
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
|
+
*/
|
|
11123
11103
|
red: number;
|
|
11104
|
+
/**
|
|
11105
|
+
* An integer color channel value (0-255)
|
|
11106
|
+
*/
|
|
11124
11107
|
green: number;
|
|
11108
|
+
/**
|
|
11109
|
+
* An integer color channel value (0-255)
|
|
11110
|
+
*/
|
|
11125
11111
|
blue: number;
|
|
11112
|
+
/**
|
|
11113
|
+
* An integer color channel value (0-255)
|
|
11114
|
+
*/
|
|
11126
11115
|
alpha: number;
|
|
11127
11116
|
[k: string]: unknown;
|
|
11128
11117
|
};
|
|
11129
|
-
|
|
11118
|
+
/**
|
|
11119
|
+
* An RGBA color value
|
|
11120
|
+
*/
|
|
11121
|
+
primary_color?: {
|
|
11122
|
+
/**
|
|
11123
|
+
* An integer color channel value (0-255)
|
|
11124
|
+
*/
|
|
11125
|
+
red: number;
|
|
11126
|
+
/**
|
|
11127
|
+
* An integer color channel value (0-255)
|
|
11128
|
+
*/
|
|
11129
|
+
green: number;
|
|
11130
|
+
/**
|
|
11131
|
+
* An integer color channel value (0-255)
|
|
11132
|
+
*/
|
|
11133
|
+
blue: number;
|
|
11134
|
+
/**
|
|
11135
|
+
* An integer color channel value (0-255)
|
|
11136
|
+
*/
|
|
11137
|
+
alpha: number;
|
|
11138
|
+
};
|
|
11139
|
+
/**
|
|
11140
|
+
* An RGBA color value
|
|
11141
|
+
*/
|
|
11142
|
+
light_color?: {
|
|
11143
|
+
/**
|
|
11144
|
+
* An integer color channel value (0-255)
|
|
11145
|
+
*/
|
|
11130
11146
|
red: number;
|
|
11147
|
+
/**
|
|
11148
|
+
* An integer color channel value (0-255)
|
|
11149
|
+
*/
|
|
11131
11150
|
green: number;
|
|
11151
|
+
/**
|
|
11152
|
+
* An integer color channel value (0-255)
|
|
11153
|
+
*/
|
|
11132
11154
|
blue: number;
|
|
11155
|
+
/**
|
|
11156
|
+
* An integer color channel value (0-255)
|
|
11157
|
+
*/
|
|
11133
11158
|
alpha: number;
|
|
11134
11159
|
};
|
|
11135
|
-
|
|
11160
|
+
/**
|
|
11161
|
+
* An RGBA color value
|
|
11162
|
+
*/
|
|
11163
|
+
accent_color?: {
|
|
11164
|
+
/**
|
|
11165
|
+
* An integer color channel value (0-255)
|
|
11166
|
+
*/
|
|
11136
11167
|
red: number;
|
|
11168
|
+
/**
|
|
11169
|
+
* An integer color channel value (0-255)
|
|
11170
|
+
*/
|
|
11137
11171
|
green: number;
|
|
11172
|
+
/**
|
|
11173
|
+
* An integer color channel value (0-255)
|
|
11174
|
+
*/
|
|
11138
11175
|
blue: number;
|
|
11176
|
+
/**
|
|
11177
|
+
* An integer color channel value (0-255)
|
|
11178
|
+
*/
|
|
11139
11179
|
alpha: number;
|
|
11140
11180
|
};
|
|
11141
|
-
|
|
11181
|
+
/**
|
|
11182
|
+
* An RGBA color value
|
|
11183
|
+
*/
|
|
11184
|
+
dark_color?: {
|
|
11185
|
+
/**
|
|
11186
|
+
* An integer color channel value (0-255)
|
|
11187
|
+
*/
|
|
11142
11188
|
red: number;
|
|
11189
|
+
/**
|
|
11190
|
+
* An integer color channel value (0-255)
|
|
11191
|
+
*/
|
|
11143
11192
|
green: number;
|
|
11193
|
+
/**
|
|
11194
|
+
* An integer color channel value (0-255)
|
|
11195
|
+
*/
|
|
11144
11196
|
blue: number;
|
|
11197
|
+
/**
|
|
11198
|
+
* An integer color channel value (0-255)
|
|
11199
|
+
*/
|
|
11145
11200
|
alpha: number;
|
|
11146
11201
|
};
|
|
11147
11202
|
};
|
|
@@ -11194,32 +11249,125 @@ export type PublicInfoAttributes = {
|
|
|
11194
11249
|
*/
|
|
11195
11250
|
custom_i18n_messages_template_url: null | string;
|
|
11196
11251
|
/**
|
|
11197
|
-
* 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.
|
|
11198
11253
|
*/
|
|
11199
11254
|
theme: {
|
|
11200
|
-
|
|
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
|
+
*/
|
|
11201
11274
|
red: number;
|
|
11275
|
+
/**
|
|
11276
|
+
* An integer color channel value (0-255)
|
|
11277
|
+
*/
|
|
11202
11278
|
green: number;
|
|
11279
|
+
/**
|
|
11280
|
+
* An integer color channel value (0-255)
|
|
11281
|
+
*/
|
|
11203
11282
|
blue: number;
|
|
11283
|
+
/**
|
|
11284
|
+
* An integer color channel value (0-255)
|
|
11285
|
+
*/
|
|
11204
11286
|
alpha: number;
|
|
11205
11287
|
[k: string]: unknown;
|
|
11206
11288
|
};
|
|
11207
|
-
|
|
11289
|
+
/**
|
|
11290
|
+
* An RGBA color value
|
|
11291
|
+
*/
|
|
11292
|
+
primary_color?: {
|
|
11293
|
+
/**
|
|
11294
|
+
* An integer color channel value (0-255)
|
|
11295
|
+
*/
|
|
11296
|
+
red: number;
|
|
11297
|
+
/**
|
|
11298
|
+
* An integer color channel value (0-255)
|
|
11299
|
+
*/
|
|
11300
|
+
green: number;
|
|
11301
|
+
/**
|
|
11302
|
+
* An integer color channel value (0-255)
|
|
11303
|
+
*/
|
|
11304
|
+
blue: number;
|
|
11305
|
+
/**
|
|
11306
|
+
* An integer color channel value (0-255)
|
|
11307
|
+
*/
|
|
11308
|
+
alpha: number;
|
|
11309
|
+
};
|
|
11310
|
+
/**
|
|
11311
|
+
* An RGBA color value
|
|
11312
|
+
*/
|
|
11313
|
+
light_color?: {
|
|
11314
|
+
/**
|
|
11315
|
+
* An integer color channel value (0-255)
|
|
11316
|
+
*/
|
|
11208
11317
|
red: number;
|
|
11318
|
+
/**
|
|
11319
|
+
* An integer color channel value (0-255)
|
|
11320
|
+
*/
|
|
11209
11321
|
green: number;
|
|
11322
|
+
/**
|
|
11323
|
+
* An integer color channel value (0-255)
|
|
11324
|
+
*/
|
|
11210
11325
|
blue: number;
|
|
11326
|
+
/**
|
|
11327
|
+
* An integer color channel value (0-255)
|
|
11328
|
+
*/
|
|
11211
11329
|
alpha: number;
|
|
11212
11330
|
};
|
|
11213
|
-
|
|
11331
|
+
/**
|
|
11332
|
+
* An RGBA color value
|
|
11333
|
+
*/
|
|
11334
|
+
accent_color?: {
|
|
11335
|
+
/**
|
|
11336
|
+
* An integer color channel value (0-255)
|
|
11337
|
+
*/
|
|
11214
11338
|
red: number;
|
|
11339
|
+
/**
|
|
11340
|
+
* An integer color channel value (0-255)
|
|
11341
|
+
*/
|
|
11215
11342
|
green: number;
|
|
11343
|
+
/**
|
|
11344
|
+
* An integer color channel value (0-255)
|
|
11345
|
+
*/
|
|
11216
11346
|
blue: number;
|
|
11347
|
+
/**
|
|
11348
|
+
* An integer color channel value (0-255)
|
|
11349
|
+
*/
|
|
11217
11350
|
alpha: number;
|
|
11218
11351
|
};
|
|
11219
|
-
|
|
11352
|
+
/**
|
|
11353
|
+
* An RGBA color value
|
|
11354
|
+
*/
|
|
11355
|
+
dark_color?: {
|
|
11356
|
+
/**
|
|
11357
|
+
* An integer color channel value (0-255)
|
|
11358
|
+
*/
|
|
11220
11359
|
red: number;
|
|
11360
|
+
/**
|
|
11361
|
+
* An integer color channel value (0-255)
|
|
11362
|
+
*/
|
|
11221
11363
|
green: number;
|
|
11364
|
+
/**
|
|
11365
|
+
* An integer color channel value (0-255)
|
|
11366
|
+
*/
|
|
11222
11367
|
blue: number;
|
|
11368
|
+
/**
|
|
11369
|
+
* An integer color channel value (0-255)
|
|
11370
|
+
*/
|
|
11223
11371
|
alpha: number;
|
|
11224
11372
|
};
|
|
11225
11373
|
};
|
|
@@ -11567,7 +11715,7 @@ export type Site = {
|
|
|
11567
11715
|
};
|
|
11568
11716
|
};
|
|
11569
11717
|
/**
|
|
11570
|
-
* 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.
|
|
11571
11719
|
*/
|
|
11572
11720
|
theme: {
|
|
11573
11721
|
/**
|
|
@@ -11578,28 +11726,113 @@ export type Site = {
|
|
|
11578
11726
|
* If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
|
|
11579
11727
|
*/
|
|
11580
11728
|
hue: number | null;
|
|
11581
|
-
|
|
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
|
+
*/
|
|
11582
11740
|
red: number;
|
|
11741
|
+
/**
|
|
11742
|
+
* An integer color channel value (0-255)
|
|
11743
|
+
*/
|
|
11583
11744
|
green: number;
|
|
11745
|
+
/**
|
|
11746
|
+
* An integer color channel value (0-255)
|
|
11747
|
+
*/
|
|
11584
11748
|
blue: number;
|
|
11749
|
+
/**
|
|
11750
|
+
* An integer color channel value (0-255)
|
|
11751
|
+
*/
|
|
11585
11752
|
alpha: number;
|
|
11586
11753
|
};
|
|
11587
|
-
|
|
11754
|
+
/**
|
|
11755
|
+
* An RGBA color value
|
|
11756
|
+
*/
|
|
11757
|
+
primary_color?: {
|
|
11758
|
+
/**
|
|
11759
|
+
* An integer color channel value (0-255)
|
|
11760
|
+
*/
|
|
11588
11761
|
red: number;
|
|
11762
|
+
/**
|
|
11763
|
+
* An integer color channel value (0-255)
|
|
11764
|
+
*/
|
|
11589
11765
|
green: number;
|
|
11766
|
+
/**
|
|
11767
|
+
* An integer color channel value (0-255)
|
|
11768
|
+
*/
|
|
11590
11769
|
blue: number;
|
|
11770
|
+
/**
|
|
11771
|
+
* An integer color channel value (0-255)
|
|
11772
|
+
*/
|
|
11591
11773
|
alpha: number;
|
|
11592
11774
|
};
|
|
11593
|
-
|
|
11775
|
+
/**
|
|
11776
|
+
* An RGBA color value
|
|
11777
|
+
*/
|
|
11778
|
+
light_color?: {
|
|
11779
|
+
/**
|
|
11780
|
+
* An integer color channel value (0-255)
|
|
11781
|
+
*/
|
|
11594
11782
|
red: number;
|
|
11783
|
+
/**
|
|
11784
|
+
* An integer color channel value (0-255)
|
|
11785
|
+
*/
|
|
11786
|
+
green: number;
|
|
11787
|
+
/**
|
|
11788
|
+
* An integer color channel value (0-255)
|
|
11789
|
+
*/
|
|
11790
|
+
blue: number;
|
|
11791
|
+
/**
|
|
11792
|
+
* An integer color channel value (0-255)
|
|
11793
|
+
*/
|
|
11794
|
+
alpha: number;
|
|
11795
|
+
};
|
|
11796
|
+
/**
|
|
11797
|
+
* An RGBA color value
|
|
11798
|
+
*/
|
|
11799
|
+
accent_color?: {
|
|
11800
|
+
/**
|
|
11801
|
+
* An integer color channel value (0-255)
|
|
11802
|
+
*/
|
|
11803
|
+
red: number;
|
|
11804
|
+
/**
|
|
11805
|
+
* An integer color channel value (0-255)
|
|
11806
|
+
*/
|
|
11595
11807
|
green: number;
|
|
11808
|
+
/**
|
|
11809
|
+
* An integer color channel value (0-255)
|
|
11810
|
+
*/
|
|
11596
11811
|
blue: number;
|
|
11812
|
+
/**
|
|
11813
|
+
* An integer color channel value (0-255)
|
|
11814
|
+
*/
|
|
11597
11815
|
alpha: number;
|
|
11598
11816
|
};
|
|
11599
|
-
|
|
11817
|
+
/**
|
|
11818
|
+
* An RGBA color value
|
|
11819
|
+
*/
|
|
11820
|
+
dark_color?: {
|
|
11821
|
+
/**
|
|
11822
|
+
* An integer color channel value (0-255)
|
|
11823
|
+
*/
|
|
11600
11824
|
red: number;
|
|
11825
|
+
/**
|
|
11826
|
+
* An integer color channel value (0-255)
|
|
11827
|
+
*/
|
|
11601
11828
|
green: number;
|
|
11829
|
+
/**
|
|
11830
|
+
* An integer color channel value (0-255)
|
|
11831
|
+
*/
|
|
11602
11832
|
blue: number;
|
|
11833
|
+
/**
|
|
11834
|
+
* An integer color channel value (0-255)
|
|
11835
|
+
*/
|
|
11603
11836
|
alpha: number;
|
|
11604
11837
|
};
|
|
11605
11838
|
/**
|
|
@@ -11662,6 +11895,7 @@ export type SiteActivateImprovedValidationAtPublishingTargetSchema = Site;
|
|
|
11662
11895
|
export type SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema = Site;
|
|
11663
11896
|
export type SiteActivateImprovedItemsListingTargetSchema = Site;
|
|
11664
11897
|
export type SiteActivateMillisecondsInDatetimeTargetSchema = Site;
|
|
11898
|
+
export type SiteActivateNonLocalizedFocalPointsTargetSchema = Site;
|
|
11665
11899
|
export type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = Site;
|
|
11666
11900
|
/**
|
|
11667
11901
|
* Meta attributes
|
|
@@ -11718,6 +11952,10 @@ export type SiteMeta = {
|
|
|
11718
11952
|
* Whether the [Milliseconds in datetime](https://www.datocms.com/product-updates/milliseconds-in-datetime) opt-in product update is active or not
|
|
11719
11953
|
*/
|
|
11720
11954
|
milliseconds_in_datetime: boolean;
|
|
11955
|
+
/**
|
|
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
|
|
11957
|
+
*/
|
|
11958
|
+
non_localized_focal_points: boolean;
|
|
11721
11959
|
};
|
|
11722
11960
|
/**
|
|
11723
11961
|
* JSON API data
|
|
@@ -11820,7 +12058,7 @@ export type SiteAttributes = {
|
|
|
11820
12058
|
};
|
|
11821
12059
|
};
|
|
11822
12060
|
/**
|
|
11823
|
-
* 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.
|
|
11824
12062
|
*/
|
|
11825
12063
|
theme: {
|
|
11826
12064
|
/**
|
|
@@ -11831,28 +12069,113 @@ export type SiteAttributes = {
|
|
|
11831
12069
|
* If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
|
|
11832
12070
|
*/
|
|
11833
12071
|
hue: number | null;
|
|
11834
|
-
|
|
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
|
+
*/
|
|
11835
12083
|
red: number;
|
|
12084
|
+
/**
|
|
12085
|
+
* An integer color channel value (0-255)
|
|
12086
|
+
*/
|
|
11836
12087
|
green: number;
|
|
12088
|
+
/**
|
|
12089
|
+
* An integer color channel value (0-255)
|
|
12090
|
+
*/
|
|
11837
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
|
+
*/
|
|
11838
12116
|
alpha: number;
|
|
11839
12117
|
};
|
|
11840
|
-
|
|
12118
|
+
/**
|
|
12119
|
+
* An RGBA color value
|
|
12120
|
+
*/
|
|
12121
|
+
light_color?: {
|
|
12122
|
+
/**
|
|
12123
|
+
* An integer color channel value (0-255)
|
|
12124
|
+
*/
|
|
11841
12125
|
red: number;
|
|
12126
|
+
/**
|
|
12127
|
+
* An integer color channel value (0-255)
|
|
12128
|
+
*/
|
|
11842
12129
|
green: number;
|
|
12130
|
+
/**
|
|
12131
|
+
* An integer color channel value (0-255)
|
|
12132
|
+
*/
|
|
11843
12133
|
blue: number;
|
|
12134
|
+
/**
|
|
12135
|
+
* An integer color channel value (0-255)
|
|
12136
|
+
*/
|
|
11844
12137
|
alpha: number;
|
|
11845
12138
|
};
|
|
11846
|
-
|
|
12139
|
+
/**
|
|
12140
|
+
* An RGBA color value
|
|
12141
|
+
*/
|
|
12142
|
+
accent_color?: {
|
|
12143
|
+
/**
|
|
12144
|
+
* An integer color channel value (0-255)
|
|
12145
|
+
*/
|
|
11847
12146
|
red: number;
|
|
12147
|
+
/**
|
|
12148
|
+
* An integer color channel value (0-255)
|
|
12149
|
+
*/
|
|
11848
12150
|
green: number;
|
|
12151
|
+
/**
|
|
12152
|
+
* An integer color channel value (0-255)
|
|
12153
|
+
*/
|
|
11849
12154
|
blue: number;
|
|
12155
|
+
/**
|
|
12156
|
+
* An integer color channel value (0-255)
|
|
12157
|
+
*/
|
|
11850
12158
|
alpha: number;
|
|
11851
12159
|
};
|
|
11852
|
-
|
|
12160
|
+
/**
|
|
12161
|
+
* An RGBA color value
|
|
12162
|
+
*/
|
|
12163
|
+
dark_color?: {
|
|
12164
|
+
/**
|
|
12165
|
+
* An integer color channel value (0-255)
|
|
12166
|
+
*/
|
|
11853
12167
|
red: number;
|
|
12168
|
+
/**
|
|
12169
|
+
* An integer color channel value (0-255)
|
|
12170
|
+
*/
|
|
11854
12171
|
green: number;
|
|
12172
|
+
/**
|
|
12173
|
+
* An integer color channel value (0-255)
|
|
12174
|
+
*/
|
|
11855
12175
|
blue: number;
|
|
12176
|
+
/**
|
|
12177
|
+
* An integer color channel value (0-255)
|
|
12178
|
+
*/
|
|
11856
12179
|
alpha: number;
|
|
11857
12180
|
};
|
|
11858
12181
|
/**
|
|
@@ -11989,28 +12312,88 @@ export type SiteUpdateSchema = {
|
|
|
11989
12312
|
* The upload ID that is used as the logo for the project
|
|
11990
12313
|
*/
|
|
11991
12314
|
logo: string | null;
|
|
12315
|
+
/**
|
|
12316
|
+
* An RGBA color value
|
|
12317
|
+
*/
|
|
11992
12318
|
primary_color: {
|
|
12319
|
+
/**
|
|
12320
|
+
* An integer color channel value (0-255)
|
|
12321
|
+
*/
|
|
11993
12322
|
red: number;
|
|
12323
|
+
/**
|
|
12324
|
+
* An integer color channel value (0-255)
|
|
12325
|
+
*/
|
|
11994
12326
|
green: number;
|
|
12327
|
+
/**
|
|
12328
|
+
* An integer color channel value (0-255)
|
|
12329
|
+
*/
|
|
11995
12330
|
blue: number;
|
|
12331
|
+
/**
|
|
12332
|
+
* An integer color channel value (0-255)
|
|
12333
|
+
*/
|
|
11996
12334
|
alpha: number;
|
|
11997
12335
|
};
|
|
12336
|
+
/**
|
|
12337
|
+
* An RGBA color value
|
|
12338
|
+
*/
|
|
11998
12339
|
light_color: {
|
|
12340
|
+
/**
|
|
12341
|
+
* An integer color channel value (0-255)
|
|
12342
|
+
*/
|
|
11999
12343
|
red: number;
|
|
12344
|
+
/**
|
|
12345
|
+
* An integer color channel value (0-255)
|
|
12346
|
+
*/
|
|
12000
12347
|
green: number;
|
|
12348
|
+
/**
|
|
12349
|
+
* An integer color channel value (0-255)
|
|
12350
|
+
*/
|
|
12001
12351
|
blue: number;
|
|
12352
|
+
/**
|
|
12353
|
+
* An integer color channel value (0-255)
|
|
12354
|
+
*/
|
|
12002
12355
|
alpha: number;
|
|
12003
12356
|
};
|
|
12357
|
+
/**
|
|
12358
|
+
* An RGBA color value
|
|
12359
|
+
*/
|
|
12004
12360
|
accent_color: {
|
|
12361
|
+
/**
|
|
12362
|
+
* An integer color channel value (0-255)
|
|
12363
|
+
*/
|
|
12005
12364
|
red: number;
|
|
12365
|
+
/**
|
|
12366
|
+
* An integer color channel value (0-255)
|
|
12367
|
+
*/
|
|
12006
12368
|
green: number;
|
|
12369
|
+
/**
|
|
12370
|
+
* An integer color channel value (0-255)
|
|
12371
|
+
*/
|
|
12007
12372
|
blue: number;
|
|
12373
|
+
/**
|
|
12374
|
+
* An integer color channel value (0-255)
|
|
12375
|
+
*/
|
|
12008
12376
|
alpha: number;
|
|
12009
12377
|
};
|
|
12378
|
+
/**
|
|
12379
|
+
* An RGBA color value
|
|
12380
|
+
*/
|
|
12010
12381
|
dark_color?: {
|
|
12382
|
+
/**
|
|
12383
|
+
* An integer color channel value (0-255)
|
|
12384
|
+
*/
|
|
12011
12385
|
red: number;
|
|
12386
|
+
/**
|
|
12387
|
+
* An integer color channel value (0-255)
|
|
12388
|
+
*/
|
|
12012
12389
|
green: number;
|
|
12390
|
+
/**
|
|
12391
|
+
* An integer color channel value (0-255)
|
|
12392
|
+
*/
|
|
12013
12393
|
blue: number;
|
|
12394
|
+
/**
|
|
12395
|
+
* An integer color channel value (0-255)
|
|
12396
|
+
*/
|
|
12014
12397
|
alpha: number;
|
|
12015
12398
|
};
|
|
12016
12399
|
[k: string]: unknown;
|
|
@@ -12081,6 +12464,10 @@ export type SiteUpdateSchema = {
|
|
|
12081
12464
|
* Whether the [Milliseconds in datetime](https://www.datocms.com/product-updates/milliseconds-in-datetime) opt-in product update is active or not
|
|
12082
12465
|
*/
|
|
12083
12466
|
milliseconds_in_datetime?: boolean;
|
|
12467
|
+
/**
|
|
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
|
|
12469
|
+
*/
|
|
12470
|
+
non_localized_focal_points?: boolean;
|
|
12084
12471
|
};
|
|
12085
12472
|
};
|
|
12086
12473
|
/**
|