@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.
Files changed (42) hide show
  1. package/dist/cjs/generated/Client.js +1 -1
  2. package/dist/cjs/generated/resources/Site.js +29 -0
  3. package/dist/cjs/generated/resources/Site.js.map +1 -1
  4. package/dist/cjs/generated/resources/index.js +1 -1
  5. package/dist/cjs/generated/resources/index.js.map +1 -1
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/cjs/resources/Upload.js +10 -0
  8. package/dist/cjs/resources/Upload.js.map +1 -0
  9. package/dist/cjs/utilities/id.js +1 -1
  10. package/dist/cjs/utilities/id.js.map +1 -1
  11. package/dist/esm/generated/ApiTypes.d.ts +527 -140
  12. package/dist/esm/generated/Client.js +1 -1
  13. package/dist/esm/generated/RawApiTypes.d.ts +334 -102
  14. package/dist/esm/generated/resources/Site.d.ts +22 -0
  15. package/dist/esm/generated/resources/Site.js +29 -0
  16. package/dist/esm/generated/resources/Site.js.map +1 -1
  17. package/dist/esm/generated/resources/index.d.ts +1 -1
  18. package/dist/esm/generated/resources/index.js +1 -1
  19. package/dist/esm/generated/resources/index.js.map +1 -1
  20. package/dist/esm/index.d.ts +1 -0
  21. package/dist/esm/index.js.map +1 -1
  22. package/dist/esm/resources/Upload.d.ts +44 -0
  23. package/dist/esm/resources/Upload.js +4 -0
  24. package/dist/esm/resources/Upload.js.map +1 -0
  25. package/dist/esm/utilities/id.js +1 -1
  26. package/dist/esm/utilities/id.js.map +1 -1
  27. package/dist/types/generated/ApiTypes.d.ts +527 -140
  28. package/dist/types/generated/RawApiTypes.d.ts +334 -102
  29. package/dist/types/generated/resources/Site.d.ts +22 -0
  30. package/dist/types/generated/resources/index.d.ts +1 -1
  31. package/dist/types/index.d.ts +1 -0
  32. package/dist/types/resources/Upload.d.ts +44 -0
  33. package/package.json +4 -5
  34. package/resources.json +17 -0
  35. package/src/generated/ApiTypes.ts +527 -140
  36. package/src/generated/Client.ts +1 -1
  37. package/src/generated/RawApiTypes.ts +334 -102
  38. package/src/generated/resources/Site.ts +37 -0
  39. package/src/generated/resources/index.ts +1 -1
  40. package/src/index.ts +4 -0
  41. package/src/resources/Upload.ts +36 -0
  42. package/src/utilities/id.ts +1 -1
@@ -7640,14 +7640,6 @@ export type ItemVersionMeta = {
7640
7640
  * Whether the record version is the published version or not
7641
7641
  */
7642
7642
  is_published: boolean;
7643
- /**
7644
- * 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.
7645
- */
7646
- published_from: string | null;
7647
- /**
7648
- * 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.
7649
- */
7650
- published_until: string | null;
7651
7643
  /**
7652
7644
  * Whether the record version is the most recent version or not
7653
7645
  */
@@ -7755,42 +7747,25 @@ export type Upload = {
7755
7747
  */
7756
7748
  mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
7757
7749
  /**
7758
- * For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
7750
+ * 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.
7759
7751
  */
7760
7752
  default_field_metadata: {
7753
+ alt: LocalizedAlt;
7754
+ title: LocalizedTitle;
7755
+ custom_data: LocalizedCustomData;
7761
7756
  /**
7762
- * This interface was referenced by `undefined`'s JSON-Schema definition
7763
- * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
7757
+ * Focal point (only for image assets)
7764
7758
  */
7765
- [k: string]: {
7766
- /**
7767
- * Alternate text for the asset
7768
- */
7769
- alt: string | null;
7759
+ focal_point: {
7770
7760
  /**
7771
- * Title for the asset
7761
+ * Horizontal position expressed as float between 0 and 1
7772
7762
  */
7773
- title: string | null;
7763
+ x: number;
7774
7764
  /**
7775
- * Object with arbitrary metadata
7765
+ * Vertical position expressed as float between 0 and 1
7776
7766
  */
7777
- custom_data: {
7778
- [k: string]: unknown;
7779
- };
7780
- /**
7781
- * Focal point (only for image assets)
7782
- */
7783
- focal_point: {
7784
- /**
7785
- * Horizontal position expressed as float between 0 and 1
7786
- */
7787
- x: number;
7788
- /**
7789
- * Vertical position expressed as float between 0 and 1
7790
- */
7791
- y: number;
7792
- } | null;
7793
- };
7767
+ y: number;
7768
+ } | null;
7794
7769
  };
7795
7770
  /**
7796
7771
  * Is this upload an image?
@@ -7851,6 +7826,44 @@ export type UploadCreateJobSchema = Upload;
7851
7826
  export type UploadSelfTargetSchema = Upload;
7852
7827
  export type UploadDestroyTargetSchema = Upload;
7853
7828
  export type UploadUpdateJobSchema = Upload;
7829
+ /**
7830
+ * Alternate text per locale
7831
+ */
7832
+ export type LocalizedAlt = {
7833
+ /**
7834
+ * Alternate text for the asset in this locale
7835
+ *
7836
+ * This interface was referenced by `LocalizedAlt`'s JSON-Schema definition
7837
+ * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
7838
+ */
7839
+ [k: string]: string | null;
7840
+ };
7841
+ /**
7842
+ * Title per locale
7843
+ */
7844
+ export type LocalizedTitle = {
7845
+ /**
7846
+ * Title for the asset in this locale
7847
+ *
7848
+ * This interface was referenced by `LocalizedTitle`'s JSON-Schema definition
7849
+ * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
7850
+ */
7851
+ [k: string]: string | null;
7852
+ };
7853
+ /**
7854
+ * Object with arbitrary metadata, per locale
7855
+ */
7856
+ export type LocalizedCustomData = {
7857
+ /**
7858
+ * Arbitrary metadata for the asset in this locale
7859
+ *
7860
+ * This interface was referenced by `LocalizedCustomData`'s JSON-Schema definition
7861
+ * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
7862
+ */
7863
+ [k: string]: {
7864
+ [k: string]: unknown;
7865
+ };
7866
+ };
7854
7867
  /**
7855
7868
  * Meta attributes
7856
7869
  *
@@ -7966,42 +7979,25 @@ export type UploadAttributes = {
7966
7979
  */
7967
7980
  mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
7968
7981
  /**
7969
- * For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
7982
+ * 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.
7970
7983
  */
7971
7984
  default_field_metadata: {
7985
+ alt: LocalizedAlt;
7986
+ title: LocalizedTitle;
7987
+ custom_data: LocalizedCustomData;
7972
7988
  /**
7973
- * This interface was referenced by `undefined`'s JSON-Schema definition
7974
- * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
7989
+ * Focal point (only for image assets)
7975
7990
  */
7976
- [k: string]: {
7991
+ focal_point: {
7977
7992
  /**
7978
- * Alternate text for the asset
7993
+ * Horizontal position expressed as float between 0 and 1
7979
7994
  */
7980
- alt: string | null;
7995
+ x: number;
7981
7996
  /**
7982
- * Title for the asset
7997
+ * Vertical position expressed as float between 0 and 1
7983
7998
  */
7984
- title: string | null;
7985
- /**
7986
- * Object with arbitrary metadata
7987
- */
7988
- custom_data: {
7989
- [k: string]: unknown;
7990
- };
7991
- /**
7992
- * Focal point (only for image assets)
7993
- */
7994
- focal_point: {
7995
- /**
7996
- * Horizontal position expressed as float between 0 and 1
7997
- */
7998
- x: number;
7999
- /**
8000
- * Vertical position expressed as float between 0 and 1
8001
- */
8002
- y: number;
8003
- } | null;
8004
- };
7999
+ y: number;
8000
+ } | null;
8005
8001
  };
8006
8002
  /**
8007
8003
  * Is this upload an image?
@@ -8089,42 +8085,25 @@ export type UploadCreateSchema = {
8089
8085
  */
8090
8086
  notes?: string | null;
8091
8087
  /**
8092
- * For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
8088
+ * 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.
8093
8089
  */
8094
8090
  default_field_metadata?: {
8091
+ alt?: LocalizedAlt;
8092
+ title?: LocalizedTitle;
8093
+ custom_data?: LocalizedCustomData;
8095
8094
  /**
8096
- * This interface was referenced by `undefined`'s JSON-Schema definition
8097
- * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
8095
+ * Focal point (only for image assets)
8098
8096
  */
8099
- [k: string]: {
8097
+ focal_point?: {
8100
8098
  /**
8101
- * Alternate text for the asset
8099
+ * Horizontal position expressed as float between 0 and 1
8102
8100
  */
8103
- alt?: string | null;
8101
+ x: number;
8104
8102
  /**
8105
- * Title for the asset
8103
+ * Vertical position expressed as float between 0 and 1
8106
8104
  */
8107
- title?: string | null;
8108
- /**
8109
- * Object with arbitrary metadata
8110
- */
8111
- custom_data?: {
8112
- [k: string]: unknown;
8113
- };
8114
- /**
8115
- * Focal point (only for image assets)
8116
- */
8117
- focal_point?: {
8118
- /**
8119
- * Horizontal position expressed as float between 0 and 1
8120
- */
8121
- x: number;
8122
- /**
8123
- * Vertical position expressed as float between 0 and 1
8124
- */
8125
- y: number;
8126
- } | null;
8127
- };
8105
+ y: number;
8106
+ } | null;
8128
8107
  };
8129
8108
  /**
8130
8109
  * Tags
@@ -8164,42 +8143,25 @@ export type UploadUpdateSchema = {
8164
8143
  */
8165
8144
  tags?: string[];
8166
8145
  /**
8167
- * For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
8146
+ * 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.
8168
8147
  */
8169
8148
  default_field_metadata?: {
8149
+ alt?: LocalizedAlt;
8150
+ title?: LocalizedTitle;
8151
+ custom_data?: LocalizedCustomData;
8170
8152
  /**
8171
- * This interface was referenced by `undefined`'s JSON-Schema definition
8172
- * via the `patternProperty` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
8153
+ * Focal point (only for image assets)
8173
8154
  */
8174
- [k: string]: {
8175
- /**
8176
- * Alternate text for the asset
8177
- */
8178
- alt?: string | null;
8155
+ focal_point?: {
8179
8156
  /**
8180
- * Title for the asset
8157
+ * Horizontal position expressed as float between 0 and 1
8181
8158
  */
8182
- title?: string | null;
8159
+ x: number;
8183
8160
  /**
8184
- * Object with arbitrary metadata
8161
+ * Vertical position expressed as float between 0 and 1
8185
8162
  */
8186
- custom_data?: {
8187
- [k: string]: unknown;
8188
- };
8189
- /**
8190
- * Focal point (only for image assets)
8191
- */
8192
- focal_point?: {
8193
- /**
8194
- * Horizontal position expressed as float between 0 and 1
8195
- */
8196
- x: number;
8197
- /**
8198
- * Vertical position expressed as float between 0 and 1
8199
- */
8200
- y: number;
8201
- } | null;
8202
- };
8163
+ y: number;
8164
+ } | null;
8203
8165
  };
8204
8166
  creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
8205
8167
  upload_collection?: UploadCollectionData | null;
@@ -10343,32 +10305,125 @@ export type PublicInfo = {
10343
10305
  */
10344
10306
  custom_i18n_messages_template_url: null | string;
10345
10307
  /**
10346
- * Specifies the color-scheme for the project
10308
+ * 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.
10347
10309
  */
10348
10310
  theme: {
10349
- primary_color: {
10311
+ /**
10312
+ * Whether the project is using a custom color palette or a monochromatic one derived from a hue.
10313
+ */
10314
+ type: 'custom' | 'monochromatic';
10315
+ /**
10316
+ * If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
10317
+ */
10318
+ hue: number | null;
10319
+ /**
10320
+ * An integer color channel value (0-255)
10321
+ */
10322
+ color_channel?: number;
10323
+ /**
10324
+ * An RGBA color value
10325
+ */
10326
+ color?: {
10327
+ /**
10328
+ * An integer color channel value (0-255)
10329
+ */
10350
10330
  red: number;
10331
+ /**
10332
+ * An integer color channel value (0-255)
10333
+ */
10351
10334
  green: number;
10335
+ /**
10336
+ * An integer color channel value (0-255)
10337
+ */
10352
10338
  blue: number;
10339
+ /**
10340
+ * An integer color channel value (0-255)
10341
+ */
10353
10342
  alpha: number;
10354
10343
  [k: string]: unknown;
10355
10344
  };
10356
- light_color: {
10345
+ /**
10346
+ * An RGBA color value
10347
+ */
10348
+ primary_color?: {
10349
+ /**
10350
+ * An integer color channel value (0-255)
10351
+ */
10357
10352
  red: number;
10353
+ /**
10354
+ * An integer color channel value (0-255)
10355
+ */
10358
10356
  green: number;
10357
+ /**
10358
+ * An integer color channel value (0-255)
10359
+ */
10359
10360
  blue: number;
10361
+ /**
10362
+ * An integer color channel value (0-255)
10363
+ */
10360
10364
  alpha: number;
10361
10365
  };
10362
- accent_color: {
10366
+ /**
10367
+ * An RGBA color value
10368
+ */
10369
+ light_color?: {
10370
+ /**
10371
+ * An integer color channel value (0-255)
10372
+ */
10373
+ red: number;
10374
+ /**
10375
+ * An integer color channel value (0-255)
10376
+ */
10377
+ green: number;
10378
+ /**
10379
+ * An integer color channel value (0-255)
10380
+ */
10381
+ blue: number;
10382
+ /**
10383
+ * An integer color channel value (0-255)
10384
+ */
10385
+ alpha: number;
10386
+ };
10387
+ /**
10388
+ * An RGBA color value
10389
+ */
10390
+ accent_color?: {
10391
+ /**
10392
+ * An integer color channel value (0-255)
10393
+ */
10363
10394
  red: number;
10395
+ /**
10396
+ * An integer color channel value (0-255)
10397
+ */
10364
10398
  green: number;
10399
+ /**
10400
+ * An integer color channel value (0-255)
10401
+ */
10365
10402
  blue: number;
10403
+ /**
10404
+ * An integer color channel value (0-255)
10405
+ */
10366
10406
  alpha: number;
10367
10407
  };
10368
- dark_color: {
10408
+ /**
10409
+ * An RGBA color value
10410
+ */
10411
+ dark_color?: {
10412
+ /**
10413
+ * An integer color channel value (0-255)
10414
+ */
10369
10415
  red: number;
10416
+ /**
10417
+ * An integer color channel value (0-255)
10418
+ */
10370
10419
  green: number;
10420
+ /**
10421
+ * An integer color channel value (0-255)
10422
+ */
10371
10423
  blue: number;
10424
+ /**
10425
+ * An integer color channel value (0-255)
10426
+ */
10372
10427
  alpha: number;
10373
10428
  };
10374
10429
  };
@@ -10421,32 +10476,125 @@ export type PublicInfoAttributes = {
10421
10476
  */
10422
10477
  custom_i18n_messages_template_url: null | string;
10423
10478
  /**
10424
- * Specifies the color-scheme for the project
10479
+ * 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.
10425
10480
  */
10426
10481
  theme: {
10427
- primary_color: {
10482
+ /**
10483
+ * Whether the project is using a custom color palette or a monochromatic one derived from a hue.
10484
+ */
10485
+ type: 'custom' | 'monochromatic';
10486
+ /**
10487
+ * If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
10488
+ */
10489
+ hue: number | null;
10490
+ /**
10491
+ * An integer color channel value (0-255)
10492
+ */
10493
+ color_channel?: number;
10494
+ /**
10495
+ * An RGBA color value
10496
+ */
10497
+ color?: {
10498
+ /**
10499
+ * An integer color channel value (0-255)
10500
+ */
10428
10501
  red: number;
10502
+ /**
10503
+ * An integer color channel value (0-255)
10504
+ */
10429
10505
  green: number;
10506
+ /**
10507
+ * An integer color channel value (0-255)
10508
+ */
10430
10509
  blue: number;
10510
+ /**
10511
+ * An integer color channel value (0-255)
10512
+ */
10431
10513
  alpha: number;
10432
10514
  [k: string]: unknown;
10433
10515
  };
10434
- light_color: {
10516
+ /**
10517
+ * An RGBA color value
10518
+ */
10519
+ primary_color?: {
10520
+ /**
10521
+ * An integer color channel value (0-255)
10522
+ */
10523
+ red: number;
10524
+ /**
10525
+ * An integer color channel value (0-255)
10526
+ */
10527
+ green: number;
10528
+ /**
10529
+ * An integer color channel value (0-255)
10530
+ */
10531
+ blue: number;
10532
+ /**
10533
+ * An integer color channel value (0-255)
10534
+ */
10535
+ alpha: number;
10536
+ };
10537
+ /**
10538
+ * An RGBA color value
10539
+ */
10540
+ light_color?: {
10541
+ /**
10542
+ * An integer color channel value (0-255)
10543
+ */
10435
10544
  red: number;
10545
+ /**
10546
+ * An integer color channel value (0-255)
10547
+ */
10436
10548
  green: number;
10549
+ /**
10550
+ * An integer color channel value (0-255)
10551
+ */
10437
10552
  blue: number;
10553
+ /**
10554
+ * An integer color channel value (0-255)
10555
+ */
10438
10556
  alpha: number;
10439
10557
  };
10440
- accent_color: {
10558
+ /**
10559
+ * An RGBA color value
10560
+ */
10561
+ accent_color?: {
10562
+ /**
10563
+ * An integer color channel value (0-255)
10564
+ */
10441
10565
  red: number;
10566
+ /**
10567
+ * An integer color channel value (0-255)
10568
+ */
10442
10569
  green: number;
10570
+ /**
10571
+ * An integer color channel value (0-255)
10572
+ */
10443
10573
  blue: number;
10574
+ /**
10575
+ * An integer color channel value (0-255)
10576
+ */
10444
10577
  alpha: number;
10445
10578
  };
10446
- dark_color: {
10579
+ /**
10580
+ * An RGBA color value
10581
+ */
10582
+ dark_color?: {
10583
+ /**
10584
+ * An integer color channel value (0-255)
10585
+ */
10447
10586
  red: number;
10587
+ /**
10588
+ * An integer color channel value (0-255)
10589
+ */
10448
10590
  green: number;
10591
+ /**
10592
+ * An integer color channel value (0-255)
10593
+ */
10449
10594
  blue: number;
10595
+ /**
10596
+ * An integer color channel value (0-255)
10597
+ */
10450
10598
  alpha: number;
10451
10599
  };
10452
10600
  };
@@ -10794,7 +10942,7 @@ export type Site = {
10794
10942
  };
10795
10943
  };
10796
10944
  /**
10797
- * Specifies the theme to use in administrative area
10945
+ * 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.
10798
10946
  */
10799
10947
  theme: {
10800
10948
  /**
@@ -10805,28 +10953,113 @@ export type Site = {
10805
10953
  * If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
10806
10954
  */
10807
10955
  hue: number | null;
10808
- primary_color: {
10956
+ /**
10957
+ * An integer color channel value (0-255)
10958
+ */
10959
+ color_channel?: number;
10960
+ /**
10961
+ * An RGBA color value
10962
+ */
10963
+ color?: {
10964
+ /**
10965
+ * An integer color channel value (0-255)
10966
+ */
10809
10967
  red: number;
10968
+ /**
10969
+ * An integer color channel value (0-255)
10970
+ */
10810
10971
  green: number;
10972
+ /**
10973
+ * An integer color channel value (0-255)
10974
+ */
10811
10975
  blue: number;
10976
+ /**
10977
+ * An integer color channel value (0-255)
10978
+ */
10812
10979
  alpha: number;
10813
10980
  };
10814
- light_color: {
10981
+ /**
10982
+ * An RGBA color value
10983
+ */
10984
+ primary_color?: {
10985
+ /**
10986
+ * An integer color channel value (0-255)
10987
+ */
10815
10988
  red: number;
10989
+ /**
10990
+ * An integer color channel value (0-255)
10991
+ */
10816
10992
  green: number;
10993
+ /**
10994
+ * An integer color channel value (0-255)
10995
+ */
10817
10996
  blue: number;
10997
+ /**
10998
+ * An integer color channel value (0-255)
10999
+ */
10818
11000
  alpha: number;
10819
11001
  };
10820
- accent_color: {
11002
+ /**
11003
+ * An RGBA color value
11004
+ */
11005
+ light_color?: {
11006
+ /**
11007
+ * An integer color channel value (0-255)
11008
+ */
10821
11009
  red: number;
11010
+ /**
11011
+ * An integer color channel value (0-255)
11012
+ */
10822
11013
  green: number;
11014
+ /**
11015
+ * An integer color channel value (0-255)
11016
+ */
10823
11017
  blue: number;
11018
+ /**
11019
+ * An integer color channel value (0-255)
11020
+ */
10824
11021
  alpha: number;
10825
11022
  };
10826
- dark_color: {
11023
+ /**
11024
+ * An RGBA color value
11025
+ */
11026
+ accent_color?: {
11027
+ /**
11028
+ * An integer color channel value (0-255)
11029
+ */
11030
+ red: number;
11031
+ /**
11032
+ * An integer color channel value (0-255)
11033
+ */
11034
+ green: number;
11035
+ /**
11036
+ * An integer color channel value (0-255)
11037
+ */
11038
+ blue: number;
11039
+ /**
11040
+ * An integer color channel value (0-255)
11041
+ */
11042
+ alpha: number;
11043
+ };
11044
+ /**
11045
+ * An RGBA color value
11046
+ */
11047
+ dark_color?: {
11048
+ /**
11049
+ * An integer color channel value (0-255)
11050
+ */
10827
11051
  red: number;
11052
+ /**
11053
+ * An integer color channel value (0-255)
11054
+ */
10828
11055
  green: number;
11056
+ /**
11057
+ * An integer color channel value (0-255)
11058
+ */
10829
11059
  blue: number;
11060
+ /**
11061
+ * An integer color channel value (0-255)
11062
+ */
10830
11063
  alpha: number;
10831
11064
  };
10832
11065
  /**
@@ -10889,6 +11122,7 @@ export type SiteActivateImprovedValidationAtPublishingTargetSchema = Site;
10889
11122
  export type SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema = Site;
10890
11123
  export type SiteActivateImprovedItemsListingTargetSchema = Site;
10891
11124
  export type SiteActivateMillisecondsInDatetimeTargetSchema = Site;
11125
+ export type SiteActivateNonLocalizedFocalPointsTargetSchema = Site;
10892
11126
  export type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = Site;
10893
11127
  /**
10894
11128
  * Meta attributes
@@ -10945,6 +11179,10 @@ export type SiteMeta = {
10945
11179
  * Whether the [Milliseconds in datetime](https://www.datocms.com/product-updates/milliseconds-in-datetime) opt-in product update is active or not
10946
11180
  */
10947
11181
  milliseconds_in_datetime: boolean;
11182
+ /**
11183
+ * Whether the [Non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) opt-in product update is active or not
11184
+ */
11185
+ non_localized_focal_points: boolean;
10948
11186
  };
10949
11187
  /**
10950
11188
  * JSON API data
@@ -11047,7 +11285,7 @@ export type SiteAttributes = {
11047
11285
  };
11048
11286
  };
11049
11287
  /**
11050
- * Specifies the theme to use in administrative area
11288
+ * 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.
11051
11289
  */
11052
11290
  theme: {
11053
11291
  /**
@@ -11058,28 +11296,113 @@ export type SiteAttributes = {
11058
11296
  * If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
11059
11297
  */
11060
11298
  hue: number | null;
11061
- primary_color: {
11299
+ /**
11300
+ * An integer color channel value (0-255)
11301
+ */
11302
+ color_channel?: number;
11303
+ /**
11304
+ * An RGBA color value
11305
+ */
11306
+ color?: {
11307
+ /**
11308
+ * An integer color channel value (0-255)
11309
+ */
11062
11310
  red: number;
11311
+ /**
11312
+ * An integer color channel value (0-255)
11313
+ */
11063
11314
  green: number;
11315
+ /**
11316
+ * An integer color channel value (0-255)
11317
+ */
11064
11318
  blue: number;
11319
+ /**
11320
+ * An integer color channel value (0-255)
11321
+ */
11065
11322
  alpha: number;
11066
11323
  };
11067
- light_color: {
11324
+ /**
11325
+ * An RGBA color value
11326
+ */
11327
+ primary_color?: {
11328
+ /**
11329
+ * An integer color channel value (0-255)
11330
+ */
11068
11331
  red: number;
11332
+ /**
11333
+ * An integer color channel value (0-255)
11334
+ */
11069
11335
  green: number;
11336
+ /**
11337
+ * An integer color channel value (0-255)
11338
+ */
11070
11339
  blue: number;
11340
+ /**
11341
+ * An integer color channel value (0-255)
11342
+ */
11071
11343
  alpha: number;
11072
11344
  };
11073
- accent_color: {
11345
+ /**
11346
+ * An RGBA color value
11347
+ */
11348
+ light_color?: {
11349
+ /**
11350
+ * An integer color channel value (0-255)
11351
+ */
11352
+ red: number;
11353
+ /**
11354
+ * An integer color channel value (0-255)
11355
+ */
11356
+ green: number;
11357
+ /**
11358
+ * An integer color channel value (0-255)
11359
+ */
11360
+ blue: number;
11361
+ /**
11362
+ * An integer color channel value (0-255)
11363
+ */
11364
+ alpha: number;
11365
+ };
11366
+ /**
11367
+ * An RGBA color value
11368
+ */
11369
+ accent_color?: {
11370
+ /**
11371
+ * An integer color channel value (0-255)
11372
+ */
11074
11373
  red: number;
11374
+ /**
11375
+ * An integer color channel value (0-255)
11376
+ */
11075
11377
  green: number;
11378
+ /**
11379
+ * An integer color channel value (0-255)
11380
+ */
11076
11381
  blue: number;
11382
+ /**
11383
+ * An integer color channel value (0-255)
11384
+ */
11077
11385
  alpha: number;
11078
11386
  };
11079
- dark_color: {
11387
+ /**
11388
+ * An RGBA color value
11389
+ */
11390
+ dark_color?: {
11391
+ /**
11392
+ * An integer color channel value (0-255)
11393
+ */
11080
11394
  red: number;
11395
+ /**
11396
+ * An integer color channel value (0-255)
11397
+ */
11081
11398
  green: number;
11399
+ /**
11400
+ * An integer color channel value (0-255)
11401
+ */
11082
11402
  blue: number;
11403
+ /**
11404
+ * An integer color channel value (0-255)
11405
+ */
11083
11406
  alpha: number;
11084
11407
  };
11085
11408
  /**
@@ -11214,28 +11537,88 @@ export type SiteUpdateSchema = {
11214
11537
  * The upload ID that is used as the logo for the project
11215
11538
  */
11216
11539
  logo: string | null;
11540
+ /**
11541
+ * An RGBA color value
11542
+ */
11217
11543
  primary_color: {
11544
+ /**
11545
+ * An integer color channel value (0-255)
11546
+ */
11218
11547
  red: number;
11548
+ /**
11549
+ * An integer color channel value (0-255)
11550
+ */
11219
11551
  green: number;
11552
+ /**
11553
+ * An integer color channel value (0-255)
11554
+ */
11220
11555
  blue: number;
11556
+ /**
11557
+ * An integer color channel value (0-255)
11558
+ */
11221
11559
  alpha: number;
11222
11560
  };
11561
+ /**
11562
+ * An RGBA color value
11563
+ */
11223
11564
  light_color: {
11565
+ /**
11566
+ * An integer color channel value (0-255)
11567
+ */
11224
11568
  red: number;
11569
+ /**
11570
+ * An integer color channel value (0-255)
11571
+ */
11225
11572
  green: number;
11573
+ /**
11574
+ * An integer color channel value (0-255)
11575
+ */
11226
11576
  blue: number;
11577
+ /**
11578
+ * An integer color channel value (0-255)
11579
+ */
11227
11580
  alpha: number;
11228
11581
  };
11582
+ /**
11583
+ * An RGBA color value
11584
+ */
11229
11585
  accent_color: {
11586
+ /**
11587
+ * An integer color channel value (0-255)
11588
+ */
11230
11589
  red: number;
11590
+ /**
11591
+ * An integer color channel value (0-255)
11592
+ */
11231
11593
  green: number;
11594
+ /**
11595
+ * An integer color channel value (0-255)
11596
+ */
11232
11597
  blue: number;
11598
+ /**
11599
+ * An integer color channel value (0-255)
11600
+ */
11233
11601
  alpha: number;
11234
11602
  };
11603
+ /**
11604
+ * An RGBA color value
11605
+ */
11235
11606
  dark_color?: {
11607
+ /**
11608
+ * An integer color channel value (0-255)
11609
+ */
11236
11610
  red: number;
11611
+ /**
11612
+ * An integer color channel value (0-255)
11613
+ */
11237
11614
  green: number;
11615
+ /**
11616
+ * An integer color channel value (0-255)
11617
+ */
11238
11618
  blue: number;
11619
+ /**
11620
+ * An integer color channel value (0-255)
11621
+ */
11239
11622
  alpha: number;
11240
11623
  };
11241
11624
  [k: string]: unknown;
@@ -11306,6 +11689,10 @@ export type SiteUpdateSchema = {
11306
11689
  * Whether the [Milliseconds in datetime](https://www.datocms.com/product-updates/milliseconds-in-datetime) opt-in product update is active or not
11307
11690
  */
11308
11691
  milliseconds_in_datetime?: boolean;
11692
+ /**
11693
+ * Whether the [Non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) opt-in product update is active or not
11694
+ */
11695
+ non_localized_focal_points?: boolean;
11309
11696
  };
11310
11697
  };
11311
11698
  /**