@datocms/cma-client 5.4.20 → 5.4.22

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.
@@ -10335,32 +10335,125 @@ export type PublicInfo = {
10335
10335
  */
10336
10336
  custom_i18n_messages_template_url: null | string;
10337
10337
  /**
10338
- * Specifies the color-scheme for the project
10338
+ * 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.
10339
10339
  */
10340
10340
  theme: {
10341
- primary_color: {
10341
+ /**
10342
+ * Whether the project is using a custom color palette or a monochromatic one derived from a hue.
10343
+ */
10344
+ type: 'custom' | 'monochromatic';
10345
+ /**
10346
+ * If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
10347
+ */
10348
+ hue: number | null;
10349
+ /**
10350
+ * An integer color channel value (0-255)
10351
+ */
10352
+ color_channel?: number;
10353
+ /**
10354
+ * An RGBA color value
10355
+ */
10356
+ color?: {
10357
+ /**
10358
+ * An integer color channel value (0-255)
10359
+ */
10342
10360
  red: number;
10361
+ /**
10362
+ * An integer color channel value (0-255)
10363
+ */
10343
10364
  green: number;
10365
+ /**
10366
+ * An integer color channel value (0-255)
10367
+ */
10344
10368
  blue: number;
10369
+ /**
10370
+ * An integer color channel value (0-255)
10371
+ */
10345
10372
  alpha: number;
10346
10373
  [k: string]: unknown;
10347
10374
  };
10348
- light_color: {
10375
+ /**
10376
+ * An RGBA color value
10377
+ */
10378
+ primary_color?: {
10379
+ /**
10380
+ * An integer color channel value (0-255)
10381
+ */
10349
10382
  red: number;
10383
+ /**
10384
+ * An integer color channel value (0-255)
10385
+ */
10350
10386
  green: number;
10387
+ /**
10388
+ * An integer color channel value (0-255)
10389
+ */
10351
10390
  blue: number;
10391
+ /**
10392
+ * An integer color channel value (0-255)
10393
+ */
10352
10394
  alpha: number;
10353
10395
  };
10354
- accent_color: {
10396
+ /**
10397
+ * An RGBA color value
10398
+ */
10399
+ light_color?: {
10400
+ /**
10401
+ * An integer color channel value (0-255)
10402
+ */
10355
10403
  red: number;
10404
+ /**
10405
+ * An integer color channel value (0-255)
10406
+ */
10356
10407
  green: number;
10408
+ /**
10409
+ * An integer color channel value (0-255)
10410
+ */
10357
10411
  blue: number;
10412
+ /**
10413
+ * An integer color channel value (0-255)
10414
+ */
10358
10415
  alpha: number;
10359
10416
  };
10360
- dark_color: {
10417
+ /**
10418
+ * An RGBA color value
10419
+ */
10420
+ accent_color?: {
10421
+ /**
10422
+ * An integer color channel value (0-255)
10423
+ */
10361
10424
  red: number;
10425
+ /**
10426
+ * An integer color channel value (0-255)
10427
+ */
10362
10428
  green: number;
10429
+ /**
10430
+ * An integer color channel value (0-255)
10431
+ */
10363
10432
  blue: number;
10433
+ /**
10434
+ * An integer color channel value (0-255)
10435
+ */
10436
+ alpha: number;
10437
+ };
10438
+ /**
10439
+ * An RGBA color value
10440
+ */
10441
+ dark_color?: {
10442
+ /**
10443
+ * An integer color channel value (0-255)
10444
+ */
10445
+ red: number;
10446
+ /**
10447
+ * An integer color channel value (0-255)
10448
+ */
10449
+ green: number;
10450
+ /**
10451
+ * An integer color channel value (0-255)
10452
+ */
10453
+ blue: number;
10454
+ /**
10455
+ * An integer color channel value (0-255)
10456
+ */
10364
10457
  alpha: number;
10365
10458
  };
10366
10459
  };
@@ -10413,32 +10506,125 @@ export type PublicInfoAttributes = {
10413
10506
  */
10414
10507
  custom_i18n_messages_template_url: null | string;
10415
10508
  /**
10416
- * Specifies the color-scheme for the project
10509
+ * 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.
10417
10510
  */
10418
10511
  theme: {
10419
- primary_color: {
10512
+ /**
10513
+ * Whether the project is using a custom color palette or a monochromatic one derived from a hue.
10514
+ */
10515
+ type: 'custom' | 'monochromatic';
10516
+ /**
10517
+ * If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
10518
+ */
10519
+ hue: number | null;
10520
+ /**
10521
+ * An integer color channel value (0-255)
10522
+ */
10523
+ color_channel?: number;
10524
+ /**
10525
+ * An RGBA color value
10526
+ */
10527
+ color?: {
10528
+ /**
10529
+ * An integer color channel value (0-255)
10530
+ */
10420
10531
  red: number;
10532
+ /**
10533
+ * An integer color channel value (0-255)
10534
+ */
10421
10535
  green: number;
10536
+ /**
10537
+ * An integer color channel value (0-255)
10538
+ */
10422
10539
  blue: number;
10540
+ /**
10541
+ * An integer color channel value (0-255)
10542
+ */
10423
10543
  alpha: number;
10424
10544
  [k: string]: unknown;
10425
10545
  };
10426
- light_color: {
10546
+ /**
10547
+ * An RGBA color value
10548
+ */
10549
+ primary_color?: {
10550
+ /**
10551
+ * An integer color channel value (0-255)
10552
+ */
10427
10553
  red: number;
10554
+ /**
10555
+ * An integer color channel value (0-255)
10556
+ */
10428
10557
  green: number;
10558
+ /**
10559
+ * An integer color channel value (0-255)
10560
+ */
10429
10561
  blue: number;
10562
+ /**
10563
+ * An integer color channel value (0-255)
10564
+ */
10430
10565
  alpha: number;
10431
10566
  };
10432
- accent_color: {
10567
+ /**
10568
+ * An RGBA color value
10569
+ */
10570
+ light_color?: {
10571
+ /**
10572
+ * An integer color channel value (0-255)
10573
+ */
10574
+ red: number;
10575
+ /**
10576
+ * An integer color channel value (0-255)
10577
+ */
10578
+ green: number;
10579
+ /**
10580
+ * An integer color channel value (0-255)
10581
+ */
10582
+ blue: number;
10583
+ /**
10584
+ * An integer color channel value (0-255)
10585
+ */
10586
+ alpha: number;
10587
+ };
10588
+ /**
10589
+ * An RGBA color value
10590
+ */
10591
+ accent_color?: {
10592
+ /**
10593
+ * An integer color channel value (0-255)
10594
+ */
10433
10595
  red: number;
10596
+ /**
10597
+ * An integer color channel value (0-255)
10598
+ */
10434
10599
  green: number;
10600
+ /**
10601
+ * An integer color channel value (0-255)
10602
+ */
10435
10603
  blue: number;
10604
+ /**
10605
+ * An integer color channel value (0-255)
10606
+ */
10436
10607
  alpha: number;
10437
10608
  };
10438
- dark_color: {
10609
+ /**
10610
+ * An RGBA color value
10611
+ */
10612
+ dark_color?: {
10613
+ /**
10614
+ * An integer color channel value (0-255)
10615
+ */
10439
10616
  red: number;
10617
+ /**
10618
+ * An integer color channel value (0-255)
10619
+ */
10440
10620
  green: number;
10621
+ /**
10622
+ * An integer color channel value (0-255)
10623
+ */
10441
10624
  blue: number;
10625
+ /**
10626
+ * An integer color channel value (0-255)
10627
+ */
10442
10628
  alpha: number;
10443
10629
  };
10444
10630
  };
@@ -10786,7 +10972,7 @@ export type Site = {
10786
10972
  };
10787
10973
  };
10788
10974
  /**
10789
- * Specifies the theme to use in administrative area
10975
+ * 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.
10790
10976
  */
10791
10977
  theme: {
10792
10978
  /**
@@ -10797,28 +10983,113 @@ export type Site = {
10797
10983
  * If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
10798
10984
  */
10799
10985
  hue: number | null;
10800
- primary_color: {
10986
+ /**
10987
+ * An integer color channel value (0-255)
10988
+ */
10989
+ color_channel?: number;
10990
+ /**
10991
+ * An RGBA color value
10992
+ */
10993
+ color?: {
10994
+ /**
10995
+ * An integer color channel value (0-255)
10996
+ */
10997
+ red: number;
10998
+ /**
10999
+ * An integer color channel value (0-255)
11000
+ */
11001
+ green: number;
11002
+ /**
11003
+ * An integer color channel value (0-255)
11004
+ */
11005
+ blue: number;
11006
+ /**
11007
+ * An integer color channel value (0-255)
11008
+ */
11009
+ alpha: number;
11010
+ };
11011
+ /**
11012
+ * An RGBA color value
11013
+ */
11014
+ primary_color?: {
11015
+ /**
11016
+ * An integer color channel value (0-255)
11017
+ */
10801
11018
  red: number;
11019
+ /**
11020
+ * An integer color channel value (0-255)
11021
+ */
10802
11022
  green: number;
11023
+ /**
11024
+ * An integer color channel value (0-255)
11025
+ */
10803
11026
  blue: number;
11027
+ /**
11028
+ * An integer color channel value (0-255)
11029
+ */
10804
11030
  alpha: number;
10805
11031
  };
10806
- light_color: {
11032
+ /**
11033
+ * An RGBA color value
11034
+ */
11035
+ light_color?: {
11036
+ /**
11037
+ * An integer color channel value (0-255)
11038
+ */
10807
11039
  red: number;
11040
+ /**
11041
+ * An integer color channel value (0-255)
11042
+ */
10808
11043
  green: number;
11044
+ /**
11045
+ * An integer color channel value (0-255)
11046
+ */
10809
11047
  blue: number;
11048
+ /**
11049
+ * An integer color channel value (0-255)
11050
+ */
10810
11051
  alpha: number;
10811
11052
  };
10812
- accent_color: {
11053
+ /**
11054
+ * An RGBA color value
11055
+ */
11056
+ accent_color?: {
11057
+ /**
11058
+ * An integer color channel value (0-255)
11059
+ */
10813
11060
  red: number;
11061
+ /**
11062
+ * An integer color channel value (0-255)
11063
+ */
10814
11064
  green: number;
11065
+ /**
11066
+ * An integer color channel value (0-255)
11067
+ */
10815
11068
  blue: number;
11069
+ /**
11070
+ * An integer color channel value (0-255)
11071
+ */
10816
11072
  alpha: number;
10817
11073
  };
10818
- dark_color: {
11074
+ /**
11075
+ * An RGBA color value
11076
+ */
11077
+ dark_color?: {
11078
+ /**
11079
+ * An integer color channel value (0-255)
11080
+ */
10819
11081
  red: number;
11082
+ /**
11083
+ * An integer color channel value (0-255)
11084
+ */
10820
11085
  green: number;
11086
+ /**
11087
+ * An integer color channel value (0-255)
11088
+ */
10821
11089
  blue: number;
11090
+ /**
11091
+ * An integer color channel value (0-255)
11092
+ */
10822
11093
  alpha: number;
10823
11094
  };
10824
11095
  /**
@@ -11039,7 +11310,7 @@ export type SiteAttributes = {
11039
11310
  };
11040
11311
  };
11041
11312
  /**
11042
- * Specifies the theme to use in administrative area
11313
+ * 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.
11043
11314
  */
11044
11315
  theme: {
11045
11316
  /**
@@ -11050,28 +11321,113 @@ export type SiteAttributes = {
11050
11321
  * If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
11051
11322
  */
11052
11323
  hue: number | null;
11053
- primary_color: {
11324
+ /**
11325
+ * An integer color channel value (0-255)
11326
+ */
11327
+ color_channel?: number;
11328
+ /**
11329
+ * An RGBA color value
11330
+ */
11331
+ color?: {
11332
+ /**
11333
+ * An integer color channel value (0-255)
11334
+ */
11054
11335
  red: number;
11336
+ /**
11337
+ * An integer color channel value (0-255)
11338
+ */
11055
11339
  green: number;
11340
+ /**
11341
+ * An integer color channel value (0-255)
11342
+ */
11056
11343
  blue: number;
11344
+ /**
11345
+ * An integer color channel value (0-255)
11346
+ */
11057
11347
  alpha: number;
11058
11348
  };
11059
- light_color: {
11349
+ /**
11350
+ * An RGBA color value
11351
+ */
11352
+ primary_color?: {
11353
+ /**
11354
+ * An integer color channel value (0-255)
11355
+ */
11060
11356
  red: number;
11357
+ /**
11358
+ * An integer color channel value (0-255)
11359
+ */
11061
11360
  green: number;
11361
+ /**
11362
+ * An integer color channel value (0-255)
11363
+ */
11062
11364
  blue: number;
11365
+ /**
11366
+ * An integer color channel value (0-255)
11367
+ */
11063
11368
  alpha: number;
11064
11369
  };
11065
- accent_color: {
11370
+ /**
11371
+ * An RGBA color value
11372
+ */
11373
+ light_color?: {
11374
+ /**
11375
+ * An integer color channel value (0-255)
11376
+ */
11066
11377
  red: number;
11378
+ /**
11379
+ * An integer color channel value (0-255)
11380
+ */
11067
11381
  green: number;
11382
+ /**
11383
+ * An integer color channel value (0-255)
11384
+ */
11068
11385
  blue: number;
11386
+ /**
11387
+ * An integer color channel value (0-255)
11388
+ */
11069
11389
  alpha: number;
11070
11390
  };
11071
- dark_color: {
11391
+ /**
11392
+ * An RGBA color value
11393
+ */
11394
+ accent_color?: {
11395
+ /**
11396
+ * An integer color channel value (0-255)
11397
+ */
11072
11398
  red: number;
11399
+ /**
11400
+ * An integer color channel value (0-255)
11401
+ */
11073
11402
  green: number;
11403
+ /**
11404
+ * An integer color channel value (0-255)
11405
+ */
11074
11406
  blue: number;
11407
+ /**
11408
+ * An integer color channel value (0-255)
11409
+ */
11410
+ alpha: number;
11411
+ };
11412
+ /**
11413
+ * An RGBA color value
11414
+ */
11415
+ dark_color?: {
11416
+ /**
11417
+ * An integer color channel value (0-255)
11418
+ */
11419
+ red: number;
11420
+ /**
11421
+ * An integer color channel value (0-255)
11422
+ */
11423
+ green: number;
11424
+ /**
11425
+ * An integer color channel value (0-255)
11426
+ */
11427
+ blue: number;
11428
+ /**
11429
+ * An integer color channel value (0-255)
11430
+ */
11075
11431
  alpha: number;
11076
11432
  };
11077
11433
  /**
@@ -11206,28 +11562,88 @@ export type SiteUpdateSchema = {
11206
11562
  * The upload ID that is used as the logo for the project
11207
11563
  */
11208
11564
  logo: string | null;
11565
+ /**
11566
+ * An RGBA color value
11567
+ */
11209
11568
  primary_color: {
11569
+ /**
11570
+ * An integer color channel value (0-255)
11571
+ */
11210
11572
  red: number;
11573
+ /**
11574
+ * An integer color channel value (0-255)
11575
+ */
11211
11576
  green: number;
11577
+ /**
11578
+ * An integer color channel value (0-255)
11579
+ */
11212
11580
  blue: number;
11581
+ /**
11582
+ * An integer color channel value (0-255)
11583
+ */
11213
11584
  alpha: number;
11214
11585
  };
11586
+ /**
11587
+ * An RGBA color value
11588
+ */
11215
11589
  light_color: {
11590
+ /**
11591
+ * An integer color channel value (0-255)
11592
+ */
11216
11593
  red: number;
11594
+ /**
11595
+ * An integer color channel value (0-255)
11596
+ */
11217
11597
  green: number;
11598
+ /**
11599
+ * An integer color channel value (0-255)
11600
+ */
11218
11601
  blue: number;
11602
+ /**
11603
+ * An integer color channel value (0-255)
11604
+ */
11219
11605
  alpha: number;
11220
11606
  };
11607
+ /**
11608
+ * An RGBA color value
11609
+ */
11221
11610
  accent_color: {
11611
+ /**
11612
+ * An integer color channel value (0-255)
11613
+ */
11222
11614
  red: number;
11615
+ /**
11616
+ * An integer color channel value (0-255)
11617
+ */
11223
11618
  green: number;
11619
+ /**
11620
+ * An integer color channel value (0-255)
11621
+ */
11224
11622
  blue: number;
11623
+ /**
11624
+ * An integer color channel value (0-255)
11625
+ */
11225
11626
  alpha: number;
11226
11627
  };
11628
+ /**
11629
+ * An RGBA color value
11630
+ */
11227
11631
  dark_color?: {
11632
+ /**
11633
+ * An integer color channel value (0-255)
11634
+ */
11228
11635
  red: number;
11636
+ /**
11637
+ * An integer color channel value (0-255)
11638
+ */
11229
11639
  green: number;
11640
+ /**
11641
+ * An integer color channel value (0-255)
11642
+ */
11230
11643
  blue: number;
11644
+ /**
11645
+ * An integer color channel value (0-255)
11646
+ */
11231
11647
  alpha: number;
11232
11648
  };
11233
11649
  [k: string]: unknown;