@datocms/cma-client 3.1.2 → 3.1.3
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 +2 -1
- package/dist/cjs/generated/Client.js.map +1 -1
- package/dist/cjs/generated/resources/EmojiSuggestions.js +87 -0
- package/dist/cjs/generated/resources/EmojiSuggestions.js.map +1 -0
- package/dist/cjs/generated/resources/Site.js +36 -0
- package/dist/cjs/generated/resources/Site.js.map +1 -1
- package/dist/cjs/generated/resources/index.js +3 -1
- package/dist/cjs/generated/resources/index.js.map +1 -1
- package/dist/esm/generated/Client.d.ts +1 -0
- package/dist/esm/generated/Client.js +2 -1
- package/dist/esm/generated/Client.js.map +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +167 -0
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +189 -0
- package/dist/esm/generated/resources/EmojiSuggestions.d.ts +28 -0
- package/dist/esm/generated/resources/EmojiSuggestions.js +59 -0
- package/dist/esm/generated/resources/EmojiSuggestions.js.map +1 -0
- package/dist/esm/generated/resources/Site.d.ts +22 -0
- package/dist/esm/generated/resources/Site.js +36 -0
- package/dist/esm/generated/resources/Site.js.map +1 -1
- package/dist/esm/generated/resources/index.d.ts +1 -0
- package/dist/esm/generated/resources/index.js +1 -0
- package/dist/esm/generated/resources/index.js.map +1 -1
- package/dist/types/generated/Client.d.ts +1 -0
- package/dist/types/generated/SchemaTypes.d.ts +167 -0
- package/dist/types/generated/SimpleSchemaTypes.d.ts +189 -0
- package/dist/types/generated/resources/EmojiSuggestions.d.ts +28 -0
- package/dist/types/generated/resources/Site.d.ts +22 -0
- package/dist/types/generated/resources/index.d.ts +1 -0
- package/package.json +3 -3
- package/resources.json +44 -0
- package/src/generated/Client.ts +3 -1
- package/src/generated/SchemaTypes.ts +173 -0
- package/src/generated/SimpleSchemaTypes.ts +192 -0
- package/src/generated/resources/EmojiSuggestions.ts +46 -0
- package/src/generated/resources/Site.ts +51 -0
- package/src/generated/resources/index.ts +1 -0
|
@@ -380,6 +380,14 @@ export type ItemTypeCreateHrefSchema = {
|
|
|
380
380
|
* Skip the creation of a menu item linked to the model
|
|
381
381
|
*/
|
|
382
382
|
skip_menu_item_creation?: boolean;
|
|
383
|
+
/**
|
|
384
|
+
* Explicitely specify the ID of the menu item that will be linked to the model
|
|
385
|
+
*/
|
|
386
|
+
menu_item_id?: string;
|
|
387
|
+
/**
|
|
388
|
+
* Explicitely specify the ID of the schema menu item that will be linked to the model
|
|
389
|
+
*/
|
|
390
|
+
schema_menu_item_id?: string;
|
|
383
391
|
[k: string]: unknown;
|
|
384
392
|
};
|
|
385
393
|
/**
|
|
@@ -1122,6 +1130,32 @@ export type SsoSettingsType = 'sso_settings';
|
|
|
1122
1130
|
* via the `definition` "id".
|
|
1123
1131
|
*/
|
|
1124
1132
|
export type SsoSettingsIdentity = string;
|
|
1133
|
+
/**
|
|
1134
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1135
|
+
* via the `definition` "type".
|
|
1136
|
+
*/
|
|
1137
|
+
export type EmojiSuggestionsType = 'emoji_suggestions';
|
|
1138
|
+
/**
|
|
1139
|
+
* ID
|
|
1140
|
+
*
|
|
1141
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1142
|
+
* via the `definition` "identity".
|
|
1143
|
+
*
|
|
1144
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1145
|
+
* via the `definition` "id".
|
|
1146
|
+
*/
|
|
1147
|
+
export type EmojiSuggestionsIdentity = string;
|
|
1148
|
+
/**
|
|
1149
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1150
|
+
* via the `self.hrefSchema` link.
|
|
1151
|
+
*/
|
|
1152
|
+
export type EmojiSuggestionsSelfHrefSchema = {
|
|
1153
|
+
/**
|
|
1154
|
+
* The term for which we are seeking suggestions for emojis
|
|
1155
|
+
*/
|
|
1156
|
+
term?: string;
|
|
1157
|
+
[k: string]: unknown;
|
|
1158
|
+
};
|
|
1125
1159
|
/**
|
|
1126
1160
|
* This interface was referenced by `WhiteLabelSettings`'s JSON-Schema
|
|
1127
1161
|
* via the `definition` "type".
|
|
@@ -1371,6 +1405,7 @@ export type DatoApi = {
|
|
|
1371
1405
|
form_data?: FormData;
|
|
1372
1406
|
sso_group?: SsoGroup;
|
|
1373
1407
|
sso_settings?: SsoSettings;
|
|
1408
|
+
emoji_suggestions?: EmojiSuggestions;
|
|
1374
1409
|
white_label_settings?: WhiteLabelSettings;
|
|
1375
1410
|
public_info?: PublicInfo;
|
|
1376
1411
|
daily_usage?: DailyUsage;
|
|
@@ -3306,6 +3341,10 @@ export type SitePlanAttributes = {
|
|
|
3306
3341
|
* Maximum size in bytes for a single file upload
|
|
3307
3342
|
*/
|
|
3308
3343
|
maximum_single_upload_bytes: number;
|
|
3344
|
+
/**
|
|
3345
|
+
* Maximum size (in bytes) for a record, including its block records
|
|
3346
|
+
*/
|
|
3347
|
+
item_byte_size: number;
|
|
3309
3348
|
/**
|
|
3310
3349
|
* Available extra packets
|
|
3311
3350
|
*/
|
|
@@ -10064,6 +10103,50 @@ export type SsoSettingsUpdateTargetSchema = {
|
|
|
10064
10103
|
data: SsoSettings;
|
|
10065
10104
|
};
|
|
10066
10105
|
|
|
10106
|
+
/**
|
|
10107
|
+
* The entity suggests several emojis that are connected to a specific term
|
|
10108
|
+
*
|
|
10109
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
10110
|
+
* via the `definition` "emoji_suggestions".
|
|
10111
|
+
*/
|
|
10112
|
+
export type EmojiSuggestions = {
|
|
10113
|
+
type: EmojiSuggestionsType;
|
|
10114
|
+
id: EmojiSuggestionsIdentity;
|
|
10115
|
+
attributes: EmojiSuggestionsAttributes;
|
|
10116
|
+
};
|
|
10117
|
+
|
|
10118
|
+
/**
|
|
10119
|
+
* JSON API attributes
|
|
10120
|
+
*
|
|
10121
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
10122
|
+
* via the `definition` "attributes".
|
|
10123
|
+
*/
|
|
10124
|
+
export type EmojiSuggestionsAttributes = {
|
|
10125
|
+
/**
|
|
10126
|
+
* Emojis connected to a specific term
|
|
10127
|
+
*/
|
|
10128
|
+
emojis: string[];
|
|
10129
|
+
};
|
|
10130
|
+
|
|
10131
|
+
/**
|
|
10132
|
+
* JSON API data
|
|
10133
|
+
*
|
|
10134
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
10135
|
+
* via the `definition` "data".
|
|
10136
|
+
*/
|
|
10137
|
+
export type EmojiSuggestionsData = {
|
|
10138
|
+
type: EmojiSuggestionsType;
|
|
10139
|
+
id: EmojiSuggestionsIdentity;
|
|
10140
|
+
};
|
|
10141
|
+
|
|
10142
|
+
/**
|
|
10143
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
10144
|
+
* via the `self.targetSchema` link.
|
|
10145
|
+
*/
|
|
10146
|
+
export type EmojiSuggestionsSelfTargetSchema = {
|
|
10147
|
+
data: EmojiSuggestions;
|
|
10148
|
+
};
|
|
10149
|
+
|
|
10067
10150
|
/**
|
|
10068
10151
|
* Represents the white-label settings of the current DatoCMS project
|
|
10069
10152
|
*
|
|
@@ -10537,6 +10620,37 @@ export type SiteAttributes = {
|
|
|
10537
10620
|
* If enabled, blocks schema changes of primary environment
|
|
10538
10621
|
*/
|
|
10539
10622
|
force_use_of_sandbox_environments: boolean;
|
|
10623
|
+
/**
|
|
10624
|
+
* Allows setting default parameters for assets served through the CDN
|
|
10625
|
+
*/
|
|
10626
|
+
assets_cdn_default_settings: {
|
|
10627
|
+
/**
|
|
10628
|
+
* Allows setting default parameters for optimizing images served by the CDN
|
|
10629
|
+
*/
|
|
10630
|
+
image: {
|
|
10631
|
+
/**
|
|
10632
|
+
* Controls the output quality of lossy file formats (jpg, pjpg, webp, avif, or jxr). Valid values are in the range 0 – 100 and the default is 75.
|
|
10633
|
+
*/
|
|
10634
|
+
q?: number;
|
|
10635
|
+
/**
|
|
10636
|
+
* The auto parameter helps automating a baseline level of optimization. Specify one or more settings
|
|
10637
|
+
*/
|
|
10638
|
+
auto?: ('compress' | 'format' | 'enhance' | 'true' | 'redeye')[];
|
|
10639
|
+
/**
|
|
10640
|
+
* Specifies the color space of the output image
|
|
10641
|
+
*/
|
|
10642
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10643
|
+
};
|
|
10644
|
+
/**
|
|
10645
|
+
* Allows setting default parameters for optimizing videos served by the CDN
|
|
10646
|
+
*/
|
|
10647
|
+
video: {
|
|
10648
|
+
/**
|
|
10649
|
+
* When true, attempting to retrieve raw video files directly instead of their optimized counterparts will result in a HTTP 422 status code
|
|
10650
|
+
*/
|
|
10651
|
+
disable_serving_raw_videos?: boolean;
|
|
10652
|
+
};
|
|
10653
|
+
};
|
|
10540
10654
|
/**
|
|
10541
10655
|
* Specifies the theme to use in administrative area
|
|
10542
10656
|
*/
|
|
@@ -10663,6 +10777,10 @@ export type SiteMeta = {
|
|
|
10663
10777
|
* Whether the Improved boolean fields option is active or not
|
|
10664
10778
|
*/
|
|
10665
10779
|
improved_boolean_fields: boolean;
|
|
10780
|
+
/**
|
|
10781
|
+
* Whether the site has custom upload storage settings
|
|
10782
|
+
*/
|
|
10783
|
+
custom_upload_storage_settings?: boolean;
|
|
10666
10784
|
};
|
|
10667
10785
|
|
|
10668
10786
|
/**
|
|
@@ -10834,6 +10952,10 @@ export type SiteUpdateSchema = {
|
|
|
10834
10952
|
* Whether the Improved boolean fields option is active or not
|
|
10835
10953
|
*/
|
|
10836
10954
|
improved_boolean_fields?: boolean;
|
|
10955
|
+
/**
|
|
10956
|
+
* Whether the site has custom upload storage settings
|
|
10957
|
+
*/
|
|
10958
|
+
custom_upload_storage_settings?: boolean;
|
|
10837
10959
|
};
|
|
10838
10960
|
relationships?: {
|
|
10839
10961
|
sso_default_role?: {
|
|
@@ -10907,6 +11029,57 @@ export type SiteActivateImprovedBooleanFieldsTargetSchema = {
|
|
|
10907
11029
|
data: Site;
|
|
10908
11030
|
};
|
|
10909
11031
|
|
|
11032
|
+
/**
|
|
11033
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
11034
|
+
* via the `update_assets_cdn_default_settings.schema` link.
|
|
11035
|
+
*/
|
|
11036
|
+
export type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
11037
|
+
data: {
|
|
11038
|
+
type: string;
|
|
11039
|
+
attributes: {
|
|
11040
|
+
/**
|
|
11041
|
+
* Allows setting default parameters for assets served through the CDN
|
|
11042
|
+
*/
|
|
11043
|
+
assets_cdn_default_settings: {
|
|
11044
|
+
/**
|
|
11045
|
+
* Allows setting default parameters for optimizing images served by the CDN
|
|
11046
|
+
*/
|
|
11047
|
+
image: {
|
|
11048
|
+
/**
|
|
11049
|
+
* Controls the output quality of lossy file formats (jpg, pjpg, webp, avif, or jxr). Valid values are in the range 0 – 100 and the default is 75.
|
|
11050
|
+
*/
|
|
11051
|
+
q?: number;
|
|
11052
|
+
/**
|
|
11053
|
+
* The auto parameter helps automating a baseline level of optimization. Specify one or more settings
|
|
11054
|
+
*/
|
|
11055
|
+
auto?: ('compress' | 'format' | 'enhance' | 'true' | 'redeye')[];
|
|
11056
|
+
/**
|
|
11057
|
+
* Specifies the color space of the output image
|
|
11058
|
+
*/
|
|
11059
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
11060
|
+
};
|
|
11061
|
+
/**
|
|
11062
|
+
* Allows setting default parameters for optimizing videos served by the CDN
|
|
11063
|
+
*/
|
|
11064
|
+
video: {
|
|
11065
|
+
/**
|
|
11066
|
+
* When true, attempting to retrieve raw video files directly instead of their optimized counterparts will result in a HTTP 422 status code
|
|
11067
|
+
*/
|
|
11068
|
+
disable_serving_raw_videos?: boolean;
|
|
11069
|
+
};
|
|
11070
|
+
};
|
|
11071
|
+
};
|
|
11072
|
+
};
|
|
11073
|
+
};
|
|
11074
|
+
|
|
11075
|
+
/**
|
|
11076
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
11077
|
+
* via the `update_assets_cdn_default_settings.targetSchema` link.
|
|
11078
|
+
*/
|
|
11079
|
+
export type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = {
|
|
11080
|
+
data: Site;
|
|
11081
|
+
};
|
|
11082
|
+
|
|
10910
11083
|
/**
|
|
10911
11084
|
* Through workflows it is possible to set up a precise state machine able to bring a draft content up to the final publication (and beyond), through a series of intermediate, fully customizable approval steps.
|
|
10912
11085
|
*
|
|
@@ -425,6 +425,14 @@ export type ItemTypeCreateHrefSchema = {
|
|
|
425
425
|
* Skip the creation of a menu item linked to the model
|
|
426
426
|
*/
|
|
427
427
|
skip_menu_item_creation?: boolean;
|
|
428
|
+
/**
|
|
429
|
+
* Explicitely specify the ID of the menu item that will be linked to the model
|
|
430
|
+
*/
|
|
431
|
+
menu_item_id?: string;
|
|
432
|
+
/**
|
|
433
|
+
* Explicitely specify the ID of the schema menu item that will be linked to the model
|
|
434
|
+
*/
|
|
435
|
+
schema_menu_item_id?: string;
|
|
428
436
|
[k: string]: unknown;
|
|
429
437
|
};
|
|
430
438
|
/**
|
|
@@ -1397,6 +1405,32 @@ export type SsoSettingsIdentity = string;
|
|
|
1397
1405
|
* via the `definition` "type".
|
|
1398
1406
|
*/
|
|
1399
1407
|
export type SsoSettingsType = 'sso_settings';
|
|
1408
|
+
/**
|
|
1409
|
+
* ID
|
|
1410
|
+
*
|
|
1411
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1412
|
+
* via the `definition` "identity".
|
|
1413
|
+
*
|
|
1414
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1415
|
+
* via the `definition` "id".
|
|
1416
|
+
*/
|
|
1417
|
+
export type EmojiSuggestionsIdentity = string;
|
|
1418
|
+
/**
|
|
1419
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1420
|
+
* via the `definition` "type".
|
|
1421
|
+
*/
|
|
1422
|
+
export type EmojiSuggestionsType = 'emoji_suggestions';
|
|
1423
|
+
/**
|
|
1424
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1425
|
+
* via the `self.hrefSchema` link.
|
|
1426
|
+
*/
|
|
1427
|
+
export type EmojiSuggestionsSelfHrefSchema = {
|
|
1428
|
+
/**
|
|
1429
|
+
* The term for which we are seeking suggestions for emojis
|
|
1430
|
+
*/
|
|
1431
|
+
term?: string;
|
|
1432
|
+
[k: string]: unknown;
|
|
1433
|
+
};
|
|
1400
1434
|
/**
|
|
1401
1435
|
* ID
|
|
1402
1436
|
*
|
|
@@ -1666,6 +1700,7 @@ export type DatoApi = {
|
|
|
1666
1700
|
form_data?: FormData;
|
|
1667
1701
|
sso_group?: SsoGroup;
|
|
1668
1702
|
sso_settings?: SsoSettings;
|
|
1703
|
+
emoji_suggestions?: EmojiSuggestions;
|
|
1669
1704
|
white_label_settings?: WhiteLabelSettings;
|
|
1670
1705
|
public_info?: PublicInfo;
|
|
1671
1706
|
daily_usage?: DailyUsage;
|
|
@@ -3703,6 +3738,10 @@ export type SitePlan = {
|
|
|
3703
3738
|
* Maximum size in bytes for a single file upload
|
|
3704
3739
|
*/
|
|
3705
3740
|
maximum_single_upload_bytes: number;
|
|
3741
|
+
/**
|
|
3742
|
+
* Maximum size (in bytes) for a record, including its block records
|
|
3743
|
+
*/
|
|
3744
|
+
item_byte_size: number;
|
|
3706
3745
|
/**
|
|
3707
3746
|
* Available extra packets
|
|
3708
3747
|
*/
|
|
@@ -3937,6 +3976,10 @@ export type SitePlanAttributes = {
|
|
|
3937
3976
|
* Maximum size in bytes for a single file upload
|
|
3938
3977
|
*/
|
|
3939
3978
|
maximum_single_upload_bytes: number;
|
|
3979
|
+
/**
|
|
3980
|
+
* Maximum size (in bytes) for a record, including its block records
|
|
3981
|
+
*/
|
|
3982
|
+
item_byte_size: number;
|
|
3940
3983
|
/**
|
|
3941
3984
|
* Available extra packets
|
|
3942
3985
|
*/
|
|
@@ -9674,6 +9717,45 @@ export type SsoSettingsUpdateSchema = {
|
|
|
9674
9717
|
default_role?: RoleData;
|
|
9675
9718
|
};
|
|
9676
9719
|
|
|
9720
|
+
/**
|
|
9721
|
+
* The entity suggests several emojis that are connected to a specific term
|
|
9722
|
+
*
|
|
9723
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
9724
|
+
* via the `definition` "emoji_suggestions".
|
|
9725
|
+
*/
|
|
9726
|
+
export type EmojiSuggestions = {
|
|
9727
|
+
id: EmojiSuggestionsIdentity;
|
|
9728
|
+
type: EmojiSuggestionsType;
|
|
9729
|
+
/**
|
|
9730
|
+
* Emojis connected to a specific term
|
|
9731
|
+
*/
|
|
9732
|
+
emojis: string[];
|
|
9733
|
+
};
|
|
9734
|
+
export type EmojiSuggestionsSelfTargetSchema = EmojiSuggestions;
|
|
9735
|
+
/**
|
|
9736
|
+
* JSON API data
|
|
9737
|
+
*
|
|
9738
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
9739
|
+
* via the `definition` "data".
|
|
9740
|
+
*/
|
|
9741
|
+
export type EmojiSuggestionsData = {
|
|
9742
|
+
type: EmojiSuggestionsType;
|
|
9743
|
+
id: EmojiSuggestionsIdentity;
|
|
9744
|
+
};
|
|
9745
|
+
|
|
9746
|
+
/**
|
|
9747
|
+
* JSON API attributes
|
|
9748
|
+
*
|
|
9749
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
9750
|
+
* via the `definition` "attributes".
|
|
9751
|
+
*/
|
|
9752
|
+
export type EmojiSuggestionsAttributes = {
|
|
9753
|
+
/**
|
|
9754
|
+
* Emojis connected to a specific term
|
|
9755
|
+
*/
|
|
9756
|
+
emojis: string[];
|
|
9757
|
+
};
|
|
9758
|
+
|
|
9677
9759
|
/**
|
|
9678
9760
|
* Represents the white-label settings of the current DatoCMS project
|
|
9679
9761
|
*
|
|
@@ -10157,6 +10239,37 @@ export type Site = {
|
|
|
10157
10239
|
* If enabled, blocks schema changes of primary environment
|
|
10158
10240
|
*/
|
|
10159
10241
|
force_use_of_sandbox_environments: boolean;
|
|
10242
|
+
/**
|
|
10243
|
+
* Allows setting default parameters for assets served through the CDN
|
|
10244
|
+
*/
|
|
10245
|
+
assets_cdn_default_settings: {
|
|
10246
|
+
/**
|
|
10247
|
+
* Allows setting default parameters for optimizing images served by the CDN
|
|
10248
|
+
*/
|
|
10249
|
+
image: {
|
|
10250
|
+
/**
|
|
10251
|
+
* Controls the output quality of lossy file formats (jpg, pjpg, webp, avif, or jxr). Valid values are in the range 0 – 100 and the default is 75.
|
|
10252
|
+
*/
|
|
10253
|
+
q?: number;
|
|
10254
|
+
/**
|
|
10255
|
+
* The auto parameter helps automating a baseline level of optimization. Specify one or more settings
|
|
10256
|
+
*/
|
|
10257
|
+
auto?: ('compress' | 'format' | 'enhance' | 'true' | 'redeye')[];
|
|
10258
|
+
/**
|
|
10259
|
+
* Specifies the color space of the output image
|
|
10260
|
+
*/
|
|
10261
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10262
|
+
};
|
|
10263
|
+
/**
|
|
10264
|
+
* Allows setting default parameters for optimizing videos served by the CDN
|
|
10265
|
+
*/
|
|
10266
|
+
video: {
|
|
10267
|
+
/**
|
|
10268
|
+
* When true, attempting to retrieve raw video files directly instead of their optimized counterparts will result in a HTTP 422 status code
|
|
10269
|
+
*/
|
|
10270
|
+
disable_serving_raw_videos?: boolean;
|
|
10271
|
+
};
|
|
10272
|
+
};
|
|
10160
10273
|
/**
|
|
10161
10274
|
* Specifies the theme to use in administrative area
|
|
10162
10275
|
*/
|
|
@@ -10248,6 +10361,7 @@ export type SiteActivateImprovedHexManagementTargetSchema = Site;
|
|
|
10248
10361
|
export type SiteActivateImprovedGqlMultilocaleFieldsTargetSchema = Site;
|
|
10249
10362
|
export type SiteActivateImprovedGqlVisibilityControlTargetSchema = Site;
|
|
10250
10363
|
export type SiteActivateImprovedBooleanFieldsTargetSchema = Site;
|
|
10364
|
+
export type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = Site;
|
|
10251
10365
|
/**
|
|
10252
10366
|
* Meta attributes
|
|
10253
10367
|
*
|
|
@@ -10275,6 +10389,10 @@ export type SiteMeta = {
|
|
|
10275
10389
|
* Whether the Improved boolean fields option is active or not
|
|
10276
10390
|
*/
|
|
10277
10391
|
improved_boolean_fields: boolean;
|
|
10392
|
+
/**
|
|
10393
|
+
* Whether the site has custom upload storage settings
|
|
10394
|
+
*/
|
|
10395
|
+
custom_upload_storage_settings?: boolean;
|
|
10278
10396
|
};
|
|
10279
10397
|
|
|
10280
10398
|
/**
|
|
@@ -10347,6 +10465,37 @@ export type SiteAttributes = {
|
|
|
10347
10465
|
* If enabled, blocks schema changes of primary environment
|
|
10348
10466
|
*/
|
|
10349
10467
|
force_use_of_sandbox_environments: boolean;
|
|
10468
|
+
/**
|
|
10469
|
+
* Allows setting default parameters for assets served through the CDN
|
|
10470
|
+
*/
|
|
10471
|
+
assets_cdn_default_settings: {
|
|
10472
|
+
/**
|
|
10473
|
+
* Allows setting default parameters for optimizing images served by the CDN
|
|
10474
|
+
*/
|
|
10475
|
+
image: {
|
|
10476
|
+
/**
|
|
10477
|
+
* Controls the output quality of lossy file formats (jpg, pjpg, webp, avif, or jxr). Valid values are in the range 0 – 100 and the default is 75.
|
|
10478
|
+
*/
|
|
10479
|
+
q?: number;
|
|
10480
|
+
/**
|
|
10481
|
+
* The auto parameter helps automating a baseline level of optimization. Specify one or more settings
|
|
10482
|
+
*/
|
|
10483
|
+
auto?: ('compress' | 'format' | 'enhance' | 'true' | 'redeye')[];
|
|
10484
|
+
/**
|
|
10485
|
+
* Specifies the color space of the output image
|
|
10486
|
+
*/
|
|
10487
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10488
|
+
};
|
|
10489
|
+
/**
|
|
10490
|
+
* Allows setting default parameters for optimizing videos served by the CDN
|
|
10491
|
+
*/
|
|
10492
|
+
video: {
|
|
10493
|
+
/**
|
|
10494
|
+
* When true, attempting to retrieve raw video files directly instead of their optimized counterparts will result in a HTTP 422 status code
|
|
10495
|
+
*/
|
|
10496
|
+
disable_serving_raw_videos?: boolean;
|
|
10497
|
+
};
|
|
10498
|
+
};
|
|
10350
10499
|
/**
|
|
10351
10500
|
* Specifies the theme to use in administrative area
|
|
10352
10501
|
*/
|
|
@@ -10587,6 +10736,49 @@ export type SiteUpdateSchema = {
|
|
|
10587
10736
|
* Whether the Improved boolean fields option is active or not
|
|
10588
10737
|
*/
|
|
10589
10738
|
improved_boolean_fields?: boolean;
|
|
10739
|
+
/**
|
|
10740
|
+
* Whether the site has custom upload storage settings
|
|
10741
|
+
*/
|
|
10742
|
+
custom_upload_storage_settings?: boolean;
|
|
10743
|
+
};
|
|
10744
|
+
};
|
|
10745
|
+
|
|
10746
|
+
/**
|
|
10747
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
10748
|
+
* via the `update_assets_cdn_default_settings.schema` link.
|
|
10749
|
+
*/
|
|
10750
|
+
export type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
10751
|
+
type?: string;
|
|
10752
|
+
/**
|
|
10753
|
+
* Allows setting default parameters for assets served through the CDN
|
|
10754
|
+
*/
|
|
10755
|
+
assets_cdn_default_settings: {
|
|
10756
|
+
/**
|
|
10757
|
+
* Allows setting default parameters for optimizing images served by the CDN
|
|
10758
|
+
*/
|
|
10759
|
+
image: {
|
|
10760
|
+
/**
|
|
10761
|
+
* Controls the output quality of lossy file formats (jpg, pjpg, webp, avif, or jxr). Valid values are in the range 0 – 100 and the default is 75.
|
|
10762
|
+
*/
|
|
10763
|
+
q?: number;
|
|
10764
|
+
/**
|
|
10765
|
+
* The auto parameter helps automating a baseline level of optimization. Specify one or more settings
|
|
10766
|
+
*/
|
|
10767
|
+
auto?: ('compress' | 'format' | 'enhance' | 'true' | 'redeye')[];
|
|
10768
|
+
/**
|
|
10769
|
+
* Specifies the color space of the output image
|
|
10770
|
+
*/
|
|
10771
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10772
|
+
};
|
|
10773
|
+
/**
|
|
10774
|
+
* Allows setting default parameters for optimizing videos served by the CDN
|
|
10775
|
+
*/
|
|
10776
|
+
video: {
|
|
10777
|
+
/**
|
|
10778
|
+
* When true, attempting to retrieve raw video files directly instead of their optimized counterparts will result in a HTTP 422 status code
|
|
10779
|
+
*/
|
|
10780
|
+
disable_serving_raw_videos?: boolean;
|
|
10781
|
+
};
|
|
10590
10782
|
};
|
|
10591
10783
|
};
|
|
10592
10784
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as Utils from '@datocms/rest-client-utils';
|
|
2
|
+
import * as SchemaTypes from '../SchemaTypes';
|
|
3
|
+
import * as SimpleSchemaTypes from '../SimpleSchemaTypes';
|
|
4
|
+
import BaseResource from '../../BaseResource';
|
|
5
|
+
|
|
6
|
+
export default class EmojiSuggestions extends BaseResource {
|
|
7
|
+
static readonly TYPE = 'emoji_suggestions' as const;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve emoji suggestions
|
|
11
|
+
*
|
|
12
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/emoji-suggestions/self
|
|
13
|
+
*
|
|
14
|
+
* @throws {ApiError}
|
|
15
|
+
* @throws {TimeoutError}
|
|
16
|
+
*
|
|
17
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
18
|
+
*/
|
|
19
|
+
find(queryParams?: SimpleSchemaTypes.EmojiSuggestionsSelfHrefSchema) {
|
|
20
|
+
return this.rawFind(queryParams).then((body) =>
|
|
21
|
+
Utils.deserializeResponseBody<SimpleSchemaTypes.EmojiSuggestionsSelfTargetSchema>(
|
|
22
|
+
body,
|
|
23
|
+
),
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Retrieve emoji suggestions
|
|
29
|
+
*
|
|
30
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/emoji-suggestions/self
|
|
31
|
+
*
|
|
32
|
+
* @throws {ApiError}
|
|
33
|
+
* @throws {TimeoutError}
|
|
34
|
+
*
|
|
35
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
36
|
+
*/
|
|
37
|
+
rawFind(
|
|
38
|
+
queryParams?: SchemaTypes.EmojiSuggestionsSelfHrefSchema,
|
|
39
|
+
): Promise<SchemaTypes.EmojiSuggestionsSelfTargetSchema> {
|
|
40
|
+
return this.client.request<SchemaTypes.EmojiSuggestionsSelfTargetSchema>({
|
|
41
|
+
method: 'GET',
|
|
42
|
+
url: '/emoji-suggestions',
|
|
43
|
+
queryParams,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -275,4 +275,55 @@ export default class Site extends BaseResource {
|
|
|
275
275
|
},
|
|
276
276
|
);
|
|
277
277
|
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Update CDN settings default assets
|
|
281
|
+
*
|
|
282
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/update_assets_cdn_default_settings
|
|
283
|
+
*
|
|
284
|
+
* @throws {ApiError}
|
|
285
|
+
* @throws {TimeoutError}
|
|
286
|
+
*
|
|
287
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
288
|
+
*/
|
|
289
|
+
updateAssetsCdnDefaultSettings(
|
|
290
|
+
body: SimpleSchemaTypes.SiteUpdateAssetsCdnDefaultSettingsSchema,
|
|
291
|
+
) {
|
|
292
|
+
return this.rawUpdateAssetsCdnDefaultSettings(
|
|
293
|
+
Utils.serializeRequestBody<SchemaTypes.SiteUpdateAssetsCdnDefaultSettingsSchema>(
|
|
294
|
+
body,
|
|
295
|
+
{
|
|
296
|
+
type: 'assets-cdn-default-settings',
|
|
297
|
+
attributes: ['assets_cdn_default_settings'],
|
|
298
|
+
relationships: [],
|
|
299
|
+
},
|
|
300
|
+
),
|
|
301
|
+
).then((body) =>
|
|
302
|
+
Utils.deserializeResponseBody<SimpleSchemaTypes.SiteUpdateAssetsCdnDefaultSettingsTargetSchema>(
|
|
303
|
+
body,
|
|
304
|
+
),
|
|
305
|
+
);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Update CDN settings default assets
|
|
310
|
+
*
|
|
311
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/update_assets_cdn_default_settings
|
|
312
|
+
*
|
|
313
|
+
* @throws {ApiError}
|
|
314
|
+
* @throws {TimeoutError}
|
|
315
|
+
*
|
|
316
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
317
|
+
*/
|
|
318
|
+
rawUpdateAssetsCdnDefaultSettings(
|
|
319
|
+
body: SchemaTypes.SiteUpdateAssetsCdnDefaultSettingsSchema,
|
|
320
|
+
): Promise<SchemaTypes.SiteUpdateAssetsCdnDefaultSettingsTargetSchema> {
|
|
321
|
+
return this.client.request<SchemaTypes.SiteUpdateAssetsCdnDefaultSettingsTargetSchema>(
|
|
322
|
+
{
|
|
323
|
+
method: 'PUT',
|
|
324
|
+
url: '/site/assets-cdn-default-settings',
|
|
325
|
+
body,
|
|
326
|
+
},
|
|
327
|
+
);
|
|
328
|
+
}
|
|
278
329
|
}
|
|
@@ -32,6 +32,7 @@ export { default as SiteInvitation } from './SiteInvitation';
|
|
|
32
32
|
export { default as EditingSession } from './EditingSession';
|
|
33
33
|
export { default as SsoGroup } from './SsoGroup';
|
|
34
34
|
export { default as SsoSettings } from './SsoSettings';
|
|
35
|
+
export { default as EmojiSuggestions } from './EmojiSuggestions';
|
|
35
36
|
export { default as WhiteLabelSettings } from './WhiteLabelSettings';
|
|
36
37
|
export { default as PublicInfo } from './PublicInfo';
|
|
37
38
|
export { default as DailyUsage } from './DailyUsage';
|