@datocms/cma-client 3.1.1 → 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 +213 -12
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +236 -13
- 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 +213 -12
- package/dist/types/generated/SimpleSchemaTypes.d.ts +236 -13
- 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 +252 -42
- package/src/generated/SimpleSchemaTypes.ts +283 -53
- package/src/generated/resources/EmojiSuggestions.ts +46 -0
- package/src/generated/resources/Site.ts +51 -0
- package/src/generated/resources/index.ts +1 -0
|
@@ -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
|
/**
|
|
@@ -609,7 +617,7 @@ export type ItemInstancesTargetSchema = Item[];
|
|
|
609
617
|
*/
|
|
610
618
|
export type ItemInstancesHrefSchema = {
|
|
611
619
|
/**
|
|
612
|
-
* For Modular Content
|
|
620
|
+
* For Modular Content, Structured Text and Single Block fields. If set, returns full payload for nested blocks instead of IDs
|
|
613
621
|
*/
|
|
614
622
|
nested?: boolean;
|
|
615
623
|
/**
|
|
@@ -679,7 +687,7 @@ export type ItemReferencesTargetSchema = Item[];
|
|
|
679
687
|
*/
|
|
680
688
|
export type ItemReferencesHrefSchema = {
|
|
681
689
|
/**
|
|
682
|
-
* For Modular Content
|
|
690
|
+
* For Modular Content, Structured Text and Single Block fields, return full payload for nested blocks instead of IDs
|
|
683
691
|
*/
|
|
684
692
|
nested?: boolean;
|
|
685
693
|
/**
|
|
@@ -694,7 +702,7 @@ export type ItemReferencesHrefSchema = {
|
|
|
694
702
|
*/
|
|
695
703
|
export type ItemSelfHrefSchema = {
|
|
696
704
|
/**
|
|
697
|
-
* For Modular Content
|
|
705
|
+
* For Modular Content, Structured Text and Single Block fields. If set, returns full payload for nested blocks instead of IDs
|
|
698
706
|
*/
|
|
699
707
|
nested?: boolean;
|
|
700
708
|
/**
|
|
@@ -895,7 +903,7 @@ export type ItemVersionInstancesTargetSchema = ItemVersion[];
|
|
|
895
903
|
*/
|
|
896
904
|
export type ItemVersionInstancesHrefSchema = {
|
|
897
905
|
/**
|
|
898
|
-
* For Modular Content
|
|
906
|
+
* For Modular Content, Structured Text and Single Block fields. If set, returns full payload for nested blocks instead of IDs
|
|
899
907
|
*/
|
|
900
908
|
nested?: boolean;
|
|
901
909
|
/**
|
|
@@ -1026,7 +1034,7 @@ export type UploadReferencesTargetSchema = Item[];
|
|
|
1026
1034
|
*/
|
|
1027
1035
|
export type UploadReferencesHrefSchema = {
|
|
1028
1036
|
/**
|
|
1029
|
-
* For Modular Content
|
|
1037
|
+
* For Modular Content, Structured Text and Single Block fields, return full payload for nested blocks instead of IDs
|
|
1030
1038
|
*/
|
|
1031
1039
|
nested?: boolean;
|
|
1032
1040
|
/**
|
|
@@ -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
|
*/
|
|
@@ -5093,6 +5136,18 @@ export type JobData = {
|
|
|
5093
5136
|
* </details>
|
|
5094
5137
|
*
|
|
5095
5138
|
* <details>
|
|
5139
|
+
* <summary>Single Block (<code>single_block</code>)</summary>
|
|
5140
|
+
*
|
|
5141
|
+
* | Property | Value |
|
|
5142
|
+
* | ------------------------------ | ----------------------------------------------- |
|
|
5143
|
+
* | Code | `single_block` |
|
|
5144
|
+
* | Built-in editors for the field | `framed_single_block`, `frameless_single_block` |
|
|
5145
|
+
* | Required validators | `single_block_blocks` |
|
|
5146
|
+
* | Other validators available | `required` |
|
|
5147
|
+
*
|
|
5148
|
+
* </details>
|
|
5149
|
+
*
|
|
5150
|
+
* <details>
|
|
5096
5151
|
* <summary>Structured text (<code>structured_text</code>)</summary>
|
|
5097
5152
|
*
|
|
5098
5153
|
* | Property | Value |
|
|
@@ -5394,6 +5449,17 @@ export type JobData = {
|
|
|
5394
5449
|
*
|
|
5395
5450
|
* Only accept references to block records of the specified block models.
|
|
5396
5451
|
*
|
|
5452
|
+
* | Parameter | Type | Required | Description |
|
|
5453
|
+
* | ------------ | ----------------------- | -------- | ------------------------------ |
|
|
5454
|
+
* | `item_types` | `Array<Block Model ID>` | ✅ | Set of allowed Block Model IDs |
|
|
5455
|
+
*
|
|
5456
|
+
* </details>
|
|
5457
|
+
*
|
|
5458
|
+
* <details>
|
|
5459
|
+
* <summary><code>single_block_blocks</code></summary>
|
|
5460
|
+
*
|
|
5461
|
+
* Only accept references to block records of the specified block models.
|
|
5462
|
+
*
|
|
5397
5463
|
* | Parameter | Type | Required | Description |
|
|
5398
5464
|
* | ------------ | ----------------------- | -------- | ------------------------------ |
|
|
5399
5465
|
* | `item_types` | `Array<Block Model ID>` | ✅ | Set of allowed Block Model IDs |
|
|
@@ -5613,10 +5679,10 @@ export type JobData = {
|
|
|
5613
5679
|
*
|
|
5614
5680
|
* Built-in editor for _seo_ fields.
|
|
5615
5681
|
*
|
|
5616
|
-
* | Parameter | Type | Required | Description
|
|
5617
|
-
* | ---------- | --------------- | -------- |
|
|
5618
|
-
* | `fields` | `Array<String>` | ✅ | Specify which fields of the SEO input should be visible to editors. Valid values: `"title"`, `"description"`, `"image"`, `"no_index"`, `"twitter_card"`
|
|
5619
|
-
* | `previews` | `Array<String>` | ✅ | Specify which previews should be visible to editors. Valid values: `"google_search"`, `"twitter"`, `"slack"`, `"whatsapp"`, `"telegram"`, `"facebook"`
|
|
5682
|
+
* | Parameter | Type | Required | Description |
|
|
5683
|
+
* | ---------- | --------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
5684
|
+
* | `fields` | `Array<String>` | ✅ | Specify which fields of the SEO input should be visible to editors. Valid values: `"title"`, `"description"`, `"image"`, `"no_index"`, `"twitter_card"` |
|
|
5685
|
+
* | `previews` | `Array<String>` | ✅ | Specify which previews should be visible to editors. Valid values: `"google_search"`, `"twitter"`, `"slack"`, `"whatsapp"`, `"telegram"`, `"facebook"`, `"linkedin"` |
|
|
5620
5686
|
*
|
|
5621
5687
|
* </details>
|
|
5622
5688
|
*
|
|
@@ -5632,6 +5698,17 @@ export type JobData = {
|
|
|
5632
5698
|
* </details>
|
|
5633
5699
|
*
|
|
5634
5700
|
* <details>
|
|
5701
|
+
* <summary><code>framed_single_block</code></summary>
|
|
5702
|
+
*
|
|
5703
|
+
* Built-in editor for _Single block_ fields.
|
|
5704
|
+
*
|
|
5705
|
+
* | Parameter | Type | Required | Description |
|
|
5706
|
+
* | ----------------- | --------- | -------- | ---------------------------------------------------------- |
|
|
5707
|
+
* | `start_collapsed` | `Boolean` | | Whether you want block record collapsed by default or not |
|
|
5708
|
+
*
|
|
5709
|
+
* </details>
|
|
5710
|
+
*
|
|
5711
|
+
* <details>
|
|
5635
5712
|
* <summary><code>structured_text</code></summary>
|
|
5636
5713
|
*
|
|
5637
5714
|
* Built-in editor for _Structured text_ fields.
|
|
@@ -5676,25 +5753,26 @@ export type Field = {
|
|
|
5676
5753
|
* Type of input
|
|
5677
5754
|
*/
|
|
5678
5755
|
field_type:
|
|
5679
|
-
| 'string'
|
|
5680
|
-
| 'text'
|
|
5681
5756
|
| 'boolean'
|
|
5682
|
-
| '
|
|
5683
|
-
| 'float'
|
|
5757
|
+
| 'color'
|
|
5684
5758
|
| 'date'
|
|
5685
5759
|
| 'date_time'
|
|
5686
|
-
| 'color'
|
|
5687
|
-
| 'json'
|
|
5688
|
-
| 'lat_lon'
|
|
5689
|
-
| 'seo'
|
|
5690
|
-
| 'slug'
|
|
5691
|
-
| 'video'
|
|
5692
5760
|
| 'file'
|
|
5761
|
+
| 'float'
|
|
5693
5762
|
| 'gallery'
|
|
5763
|
+
| 'integer'
|
|
5764
|
+
| 'json'
|
|
5765
|
+
| 'lat_lon'
|
|
5694
5766
|
| 'link'
|
|
5695
5767
|
| 'links'
|
|
5696
5768
|
| 'rich_text'
|
|
5697
|
-
| '
|
|
5769
|
+
| 'seo'
|
|
5770
|
+
| 'single_block'
|
|
5771
|
+
| 'slug'
|
|
5772
|
+
| 'string'
|
|
5773
|
+
| 'structured_text'
|
|
5774
|
+
| 'text'
|
|
5775
|
+
| 'video';
|
|
5698
5776
|
/**
|
|
5699
5777
|
* Whether the field needs to be multilanguage or not
|
|
5700
5778
|
*/
|
|
@@ -5802,25 +5880,26 @@ export type FieldAttributes = {
|
|
|
5802
5880
|
* Type of input
|
|
5803
5881
|
*/
|
|
5804
5882
|
field_type:
|
|
5805
|
-
| 'string'
|
|
5806
|
-
| 'text'
|
|
5807
5883
|
| 'boolean'
|
|
5808
|
-
| '
|
|
5809
|
-
| 'float'
|
|
5884
|
+
| 'color'
|
|
5810
5885
|
| 'date'
|
|
5811
5886
|
| 'date_time'
|
|
5812
|
-
| 'color'
|
|
5813
|
-
| 'json'
|
|
5814
|
-
| 'lat_lon'
|
|
5815
|
-
| 'seo'
|
|
5816
|
-
| 'slug'
|
|
5817
|
-
| 'video'
|
|
5818
5887
|
| 'file'
|
|
5888
|
+
| 'float'
|
|
5819
5889
|
| 'gallery'
|
|
5890
|
+
| 'integer'
|
|
5891
|
+
| 'json'
|
|
5892
|
+
| 'lat_lon'
|
|
5820
5893
|
| 'link'
|
|
5821
5894
|
| 'links'
|
|
5822
5895
|
| 'rich_text'
|
|
5823
|
-
| '
|
|
5896
|
+
| 'seo'
|
|
5897
|
+
| 'single_block'
|
|
5898
|
+
| 'slug'
|
|
5899
|
+
| 'string'
|
|
5900
|
+
| 'structured_text'
|
|
5901
|
+
| 'text'
|
|
5902
|
+
| 'video';
|
|
5824
5903
|
/**
|
|
5825
5904
|
* Whether the field needs to be multilanguage or not
|
|
5826
5905
|
*/
|
|
@@ -5933,25 +6012,26 @@ export type FieldCreateSchema = {
|
|
|
5933
6012
|
* Type of input
|
|
5934
6013
|
*/
|
|
5935
6014
|
field_type:
|
|
5936
|
-
| 'string'
|
|
5937
|
-
| 'text'
|
|
5938
6015
|
| 'boolean'
|
|
5939
|
-
| '
|
|
5940
|
-
| 'float'
|
|
6016
|
+
| 'color'
|
|
5941
6017
|
| 'date'
|
|
5942
6018
|
| 'date_time'
|
|
5943
|
-
| 'color'
|
|
5944
|
-
| 'json'
|
|
5945
|
-
| 'lat_lon'
|
|
5946
|
-
| 'seo'
|
|
5947
|
-
| 'slug'
|
|
5948
|
-
| 'video'
|
|
5949
6019
|
| 'file'
|
|
6020
|
+
| 'float'
|
|
5950
6021
|
| 'gallery'
|
|
6022
|
+
| 'integer'
|
|
6023
|
+
| 'json'
|
|
6024
|
+
| 'lat_lon'
|
|
5951
6025
|
| 'link'
|
|
5952
6026
|
| 'links'
|
|
5953
6027
|
| 'rich_text'
|
|
5954
|
-
| '
|
|
6028
|
+
| 'seo'
|
|
6029
|
+
| 'single_block'
|
|
6030
|
+
| 'slug'
|
|
6031
|
+
| 'string'
|
|
6032
|
+
| 'structured_text'
|
|
6033
|
+
| 'text'
|
|
6034
|
+
| 'video';
|
|
5955
6035
|
/**
|
|
5956
6036
|
* Field API key
|
|
5957
6037
|
*/
|
|
@@ -6130,25 +6210,26 @@ export type FieldUpdateSchema = {
|
|
|
6130
6210
|
* Type of input
|
|
6131
6211
|
*/
|
|
6132
6212
|
field_type?:
|
|
6133
|
-
| 'string'
|
|
6134
|
-
| 'text'
|
|
6135
6213
|
| 'boolean'
|
|
6136
|
-
| '
|
|
6137
|
-
| 'float'
|
|
6214
|
+
| 'color'
|
|
6138
6215
|
| 'date'
|
|
6139
6216
|
| 'date_time'
|
|
6140
|
-
| 'color'
|
|
6141
|
-
| 'json'
|
|
6142
|
-
| 'lat_lon'
|
|
6143
|
-
| 'seo'
|
|
6144
|
-
| 'slug'
|
|
6145
|
-
| 'video'
|
|
6146
6217
|
| 'file'
|
|
6218
|
+
| 'float'
|
|
6147
6219
|
| 'gallery'
|
|
6220
|
+
| 'integer'
|
|
6221
|
+
| 'json'
|
|
6222
|
+
| 'lat_lon'
|
|
6148
6223
|
| 'link'
|
|
6149
6224
|
| 'links'
|
|
6150
6225
|
| 'rich_text'
|
|
6151
|
-
| '
|
|
6226
|
+
| 'seo'
|
|
6227
|
+
| 'single_block'
|
|
6228
|
+
| 'slug'
|
|
6229
|
+
| 'string'
|
|
6230
|
+
| 'structured_text'
|
|
6231
|
+
| 'text'
|
|
6232
|
+
| 'video';
|
|
6152
6233
|
/**
|
|
6153
6234
|
* Field hint
|
|
6154
6235
|
*/
|
|
@@ -9636,6 +9717,45 @@ export type SsoSettingsUpdateSchema = {
|
|
|
9636
9717
|
default_role?: RoleData;
|
|
9637
9718
|
};
|
|
9638
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
|
+
|
|
9639
9759
|
/**
|
|
9640
9760
|
* Represents the white-label settings of the current DatoCMS project
|
|
9641
9761
|
*
|
|
@@ -10119,6 +10239,37 @@ export type Site = {
|
|
|
10119
10239
|
* If enabled, blocks schema changes of primary environment
|
|
10120
10240
|
*/
|
|
10121
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
|
+
};
|
|
10122
10273
|
/**
|
|
10123
10274
|
* Specifies the theme to use in administrative area
|
|
10124
10275
|
*/
|
|
@@ -10210,6 +10361,7 @@ export type SiteActivateImprovedHexManagementTargetSchema = Site;
|
|
|
10210
10361
|
export type SiteActivateImprovedGqlMultilocaleFieldsTargetSchema = Site;
|
|
10211
10362
|
export type SiteActivateImprovedGqlVisibilityControlTargetSchema = Site;
|
|
10212
10363
|
export type SiteActivateImprovedBooleanFieldsTargetSchema = Site;
|
|
10364
|
+
export type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = Site;
|
|
10213
10365
|
/**
|
|
10214
10366
|
* Meta attributes
|
|
10215
10367
|
*
|
|
@@ -10237,6 +10389,10 @@ export type SiteMeta = {
|
|
|
10237
10389
|
* Whether the Improved boolean fields option is active or not
|
|
10238
10390
|
*/
|
|
10239
10391
|
improved_boolean_fields: boolean;
|
|
10392
|
+
/**
|
|
10393
|
+
* Whether the site has custom upload storage settings
|
|
10394
|
+
*/
|
|
10395
|
+
custom_upload_storage_settings?: boolean;
|
|
10240
10396
|
};
|
|
10241
10397
|
|
|
10242
10398
|
/**
|
|
@@ -10309,6 +10465,37 @@ export type SiteAttributes = {
|
|
|
10309
10465
|
* If enabled, blocks schema changes of primary environment
|
|
10310
10466
|
*/
|
|
10311
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
|
+
};
|
|
10312
10499
|
/**
|
|
10313
10500
|
* Specifies the theme to use in administrative area
|
|
10314
10501
|
*/
|
|
@@ -10549,6 +10736,49 @@ export type SiteUpdateSchema = {
|
|
|
10549
10736
|
* Whether the Improved boolean fields option is active or not
|
|
10550
10737
|
*/
|
|
10551
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
|
+
};
|
|
10552
10782
|
};
|
|
10553
10783
|
};
|
|
10554
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';
|