@datocms/cma-client 6.3.0 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/generated/Client.js +1 -1
- package/dist/cjs/generated/resources/Field.js +16 -12
- package/dist/cjs/generated/resources/Field.js.map +1 -1
- package/dist/cjs/generated/resources/Fieldset.js +8 -6
- package/dist/cjs/generated/resources/Fieldset.js.map +1 -1
- package/dist/cjs/generated/resources/Item.js +4 -4
- package/dist/cjs/generated/resources/ItemType.js +12 -9
- package/dist/cjs/generated/resources/ItemType.js.map +1 -1
- package/dist/esm/generated/ApiTypes.d.ts +227 -46
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +206 -25
- package/dist/esm/generated/resources/Field.d.ts +8 -8
- package/dist/esm/generated/resources/Field.js +16 -12
- package/dist/esm/generated/resources/Field.js.map +1 -1
- package/dist/esm/generated/resources/Fieldset.d.ts +4 -4
- package/dist/esm/generated/resources/Fieldset.js +8 -6
- package/dist/esm/generated/resources/Fieldset.js.map +1 -1
- package/dist/esm/generated/resources/Item.d.ts +4 -4
- package/dist/esm/generated/resources/Item.js +4 -4
- package/dist/esm/generated/resources/ItemType.d.ts +6 -6
- package/dist/esm/generated/resources/ItemType.js +12 -9
- package/dist/esm/generated/resources/ItemType.js.map +1 -1
- package/dist/types/generated/ApiTypes.d.ts +227 -46
- package/dist/types/generated/RawApiTypes.d.ts +206 -25
- package/dist/types/generated/resources/Field.d.ts +8 -8
- package/dist/types/generated/resources/Fieldset.d.ts +4 -4
- package/dist/types/generated/resources/Item.d.ts +4 -4
- package/dist/types/generated/resources/ItemType.d.ts +6 -6
- package/package.json +2 -2
- package/resources.json +11 -2
- package/src/generated/ApiTypes.ts +227 -42
- package/src/generated/Client.ts +1 -1
- package/src/generated/RawApiTypes.ts +206 -23
- package/src/generated/resources/Field.ts +38 -13
- package/src/generated/resources/Fieldset.ts +17 -5
- package/src/generated/resources/Item.ts +4 -4
- package/src/generated/resources/ItemType.ts +27 -11
|
@@ -248,6 +248,13 @@ export type AccountIdentity = string;
|
|
|
248
248
|
* via the `definition` "type".
|
|
249
249
|
*/
|
|
250
250
|
export type AccountType = 'account';
|
|
251
|
+
/**
|
|
252
|
+
* Attributes and relationships to return for each `account` that this endpoint returns.
|
|
253
|
+
*
|
|
254
|
+
* This interface was referenced by `Account`'s JSON-Schema
|
|
255
|
+
* via the `definition` "sparse_fieldset".
|
|
256
|
+
*/
|
|
257
|
+
export type AccountSparseFieldset = string;
|
|
251
258
|
/**
|
|
252
259
|
* ID of organization
|
|
253
260
|
*
|
|
@@ -263,6 +270,13 @@ export type OrganizationIdentity = string;
|
|
|
263
270
|
* via the `definition` "type".
|
|
264
271
|
*/
|
|
265
272
|
export type OrganizationType = 'organization';
|
|
273
|
+
/**
|
|
274
|
+
* Attributes and relationships to return for each `organization` that this endpoint returns.
|
|
275
|
+
*
|
|
276
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
277
|
+
* via the `definition` "sparse_fieldset".
|
|
278
|
+
*/
|
|
279
|
+
export type OrganizationSparseFieldset = string;
|
|
266
280
|
/**
|
|
267
281
|
* This interface was referenced by `User`'s JSON-Schema
|
|
268
282
|
* via the `me.hrefSchema` link.
|
|
@@ -553,6 +567,13 @@ export type FieldsetIdentity = string;
|
|
|
553
567
|
* via the `definition` "type".
|
|
554
568
|
*/
|
|
555
569
|
export type WorkflowType = 'workflow';
|
|
570
|
+
/**
|
|
571
|
+
* Attributes and relationships to return for each `item_type` that this endpoint returns.
|
|
572
|
+
*
|
|
573
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
574
|
+
* via the `definition` "sparse_fieldset".
|
|
575
|
+
*/
|
|
576
|
+
export type ItemTypeSparseFieldset = string;
|
|
556
577
|
/**
|
|
557
578
|
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
558
579
|
* via the `create.hrefSchema` link.
|
|
@@ -577,6 +598,42 @@ export type ItemTypeCreateHrefSchema = {
|
|
|
577
598
|
* via the `instances.targetSchema` link.
|
|
578
599
|
*/
|
|
579
600
|
export type ItemTypeInstancesTargetSchema = ItemType[];
|
|
601
|
+
/**
|
|
602
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
603
|
+
* via the `instances.hrefSchema` link.
|
|
604
|
+
*/
|
|
605
|
+
export type ItemTypeInstancesHrefSchema = {
|
|
606
|
+
/**
|
|
607
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
608
|
+
*/
|
|
609
|
+
fields?: {
|
|
610
|
+
item_type?: ItemTypeSparseFieldset;
|
|
611
|
+
[k: string]: unknown;
|
|
612
|
+
};
|
|
613
|
+
[k: string]: unknown;
|
|
614
|
+
};
|
|
615
|
+
/**
|
|
616
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
617
|
+
* via the `self.hrefSchema` link.
|
|
618
|
+
*/
|
|
619
|
+
export type ItemTypeSelfHrefSchema = {
|
|
620
|
+
/**
|
|
621
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
622
|
+
*/
|
|
623
|
+
fields?: {
|
|
624
|
+
item_type?: ItemTypeSparseFieldset;
|
|
625
|
+
field?: FieldSparseFieldset;
|
|
626
|
+
[k: string]: unknown;
|
|
627
|
+
};
|
|
628
|
+
[k: string]: unknown;
|
|
629
|
+
};
|
|
630
|
+
/**
|
|
631
|
+
* Attributes and relationships to return for each `field` that this endpoint returns.
|
|
632
|
+
*
|
|
633
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
634
|
+
* via the `definition` "sparse_fieldset".
|
|
635
|
+
*/
|
|
636
|
+
export type FieldSparseFieldset = string;
|
|
580
637
|
/**
|
|
581
638
|
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
582
639
|
* via the `destroy.hrefSchema` link.
|
|
@@ -593,6 +650,20 @@ export type ItemTypeDestroyHrefSchema = {
|
|
|
593
650
|
* via the `referencing.targetSchema` link.
|
|
594
651
|
*/
|
|
595
652
|
export type ItemTypeReferencingTargetSchema = ItemType[];
|
|
653
|
+
/**
|
|
654
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
655
|
+
* via the `referencing.hrefSchema` link.
|
|
656
|
+
*/
|
|
657
|
+
export type ItemTypeReferencingHrefSchema = {
|
|
658
|
+
/**
|
|
659
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
660
|
+
*/
|
|
661
|
+
fields?: {
|
|
662
|
+
item_type?: ItemTypeSparseFieldset;
|
|
663
|
+
[k: string]: unknown;
|
|
664
|
+
};
|
|
665
|
+
[k: string]: unknown;
|
|
666
|
+
};
|
|
596
667
|
/**
|
|
597
668
|
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
598
669
|
* via the `reorder_fields_and_fieldsets.schema` link.
|
|
@@ -618,21 +689,112 @@ export type ItemTypeReorderFieldsAndFieldsetsSchema = ({
|
|
|
618
689
|
* via the `instances.targetSchema` link.
|
|
619
690
|
*/
|
|
620
691
|
export type FieldInstancesTargetSchema = Field[];
|
|
692
|
+
/**
|
|
693
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
694
|
+
* via the `instances.hrefSchema` link.
|
|
695
|
+
*/
|
|
696
|
+
export type FieldInstancesHrefSchema = {
|
|
697
|
+
/**
|
|
698
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
699
|
+
*/
|
|
700
|
+
fields?: {
|
|
701
|
+
field?: FieldSparseFieldset;
|
|
702
|
+
[k: string]: unknown;
|
|
703
|
+
};
|
|
704
|
+
[k: string]: unknown;
|
|
705
|
+
};
|
|
621
706
|
/**
|
|
622
707
|
* This interface was referenced by `Field`'s JSON-Schema
|
|
623
708
|
* via the `referencing.targetSchema` link.
|
|
624
709
|
*/
|
|
625
710
|
export type FieldReferencingTargetSchema = Field[];
|
|
711
|
+
/**
|
|
712
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
713
|
+
* via the `referencing.hrefSchema` link.
|
|
714
|
+
*/
|
|
715
|
+
export type FieldReferencingHrefSchema = {
|
|
716
|
+
/**
|
|
717
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
718
|
+
*/
|
|
719
|
+
fields?: {
|
|
720
|
+
field?: FieldSparseFieldset;
|
|
721
|
+
[k: string]: unknown;
|
|
722
|
+
};
|
|
723
|
+
[k: string]: unknown;
|
|
724
|
+
};
|
|
626
725
|
/**
|
|
627
726
|
* This interface was referenced by `Field`'s JSON-Schema
|
|
628
727
|
* via the `related.targetSchema` link.
|
|
629
728
|
*/
|
|
630
729
|
export type FieldRelatedTargetSchema = Field[];
|
|
730
|
+
/**
|
|
731
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
732
|
+
* via the `related.hrefSchema` link.
|
|
733
|
+
*/
|
|
734
|
+
export type FieldRelatedHrefSchema = {
|
|
735
|
+
/**
|
|
736
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
737
|
+
*/
|
|
738
|
+
fields?: {
|
|
739
|
+
field?: FieldSparseFieldset;
|
|
740
|
+
[k: string]: unknown;
|
|
741
|
+
};
|
|
742
|
+
[k: string]: unknown;
|
|
743
|
+
};
|
|
744
|
+
/**
|
|
745
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
746
|
+
* via the `self.hrefSchema` link.
|
|
747
|
+
*/
|
|
748
|
+
export type FieldSelfHrefSchema = {
|
|
749
|
+
/**
|
|
750
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
751
|
+
*/
|
|
752
|
+
fields?: {
|
|
753
|
+
field?: FieldSparseFieldset;
|
|
754
|
+
[k: string]: unknown;
|
|
755
|
+
};
|
|
756
|
+
[k: string]: unknown;
|
|
757
|
+
};
|
|
758
|
+
/**
|
|
759
|
+
* Attributes and relationships to return for each `fieldset` that this endpoint returns.
|
|
760
|
+
*
|
|
761
|
+
* This interface was referenced by `Fieldset`'s JSON-Schema
|
|
762
|
+
* via the `definition` "sparse_fieldset".
|
|
763
|
+
*/
|
|
764
|
+
export type FieldsetSparseFieldset = string;
|
|
631
765
|
/**
|
|
632
766
|
* This interface was referenced by `Fieldset`'s JSON-Schema
|
|
633
767
|
* via the `instances.targetSchema` link.
|
|
634
768
|
*/
|
|
635
769
|
export type FieldsetInstancesTargetSchema = Fieldset[];
|
|
770
|
+
/**
|
|
771
|
+
* This interface was referenced by `Fieldset`'s JSON-Schema
|
|
772
|
+
* via the `instances.hrefSchema` link.
|
|
773
|
+
*/
|
|
774
|
+
export type FieldsetInstancesHrefSchema = {
|
|
775
|
+
/**
|
|
776
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
777
|
+
*/
|
|
778
|
+
fields?: {
|
|
779
|
+
fieldset?: FieldsetSparseFieldset;
|
|
780
|
+
[k: string]: unknown;
|
|
781
|
+
};
|
|
782
|
+
[k: string]: unknown;
|
|
783
|
+
};
|
|
784
|
+
/**
|
|
785
|
+
* This interface was referenced by `Fieldset`'s JSON-Schema
|
|
786
|
+
* via the `self.hrefSchema` link.
|
|
787
|
+
*/
|
|
788
|
+
export type FieldsetSelfHrefSchema = {
|
|
789
|
+
/**
|
|
790
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
791
|
+
*/
|
|
792
|
+
fields?: {
|
|
793
|
+
fieldset?: FieldsetSparseFieldset;
|
|
794
|
+
[k: string]: unknown;
|
|
795
|
+
};
|
|
796
|
+
[k: string]: unknown;
|
|
797
|
+
};
|
|
636
798
|
/**
|
|
637
799
|
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
638
800
|
* via the `reorder_fields_and_fieldsets.jobSchema` link.
|
|
@@ -1904,6 +2066,13 @@ export type SiteIdentity = string;
|
|
|
1904
2066
|
* via the `definition` "type".
|
|
1905
2067
|
*/
|
|
1906
2068
|
export type SiteType = 'site';
|
|
2069
|
+
/**
|
|
2070
|
+
* Attributes and relationships to return for each `site` that this endpoint returns.
|
|
2071
|
+
*
|
|
2072
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
2073
|
+
* via the `definition` "sparse_fieldset".
|
|
2074
|
+
*/
|
|
2075
|
+
export type SiteSparseFieldset = string;
|
|
1907
2076
|
/**
|
|
1908
2077
|
* This interface was referenced by `Site`'s JSON-Schema
|
|
1909
2078
|
* via the `self.hrefSchema` link.
|
|
@@ -1913,6 +2082,18 @@ export type SiteSelfHrefSchema = {
|
|
|
1913
2082
|
* Comma-separated list of [relationship paths](https://jsonapi.org/format/#fetching-includes). A relationship path is a dot-separated list of relationship names. Allowed relationship paths: `item_types`, `item_types.fields`, `item_types.fieldsets`, `item_types.singleton_item`, `account`.
|
|
1914
2083
|
*/
|
|
1915
2084
|
include?: string;
|
|
2085
|
+
/**
|
|
2086
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
2087
|
+
*/
|
|
2088
|
+
fields?: {
|
|
2089
|
+
site?: SiteSparseFieldset;
|
|
2090
|
+
item_type?: ItemTypeSparseFieldset;
|
|
2091
|
+
field?: FieldSparseFieldset;
|
|
2092
|
+
fieldset?: FieldsetSparseFieldset;
|
|
2093
|
+
account?: AccountSparseFieldset;
|
|
2094
|
+
organization?: OrganizationSparseFieldset;
|
|
2095
|
+
[k: string]: unknown;
|
|
2096
|
+
};
|
|
1916
2097
|
[k: string]: unknown;
|
|
1917
2098
|
};
|
|
1918
2099
|
/**
|
|
@@ -3095,9 +3276,9 @@ export type User = {
|
|
|
3095
3276
|
*/
|
|
3096
3277
|
email: string;
|
|
3097
3278
|
/**
|
|
3098
|
-
* Whether 2-factor authentication is active for this account or not
|
|
3279
|
+
* Whether 2-factor authentication is active for this account or not. It returns `null` if the credentials you are using cannot manage the collaborators of the project.
|
|
3099
3280
|
*/
|
|
3100
|
-
is_2fa_active: boolean;
|
|
3281
|
+
is_2fa_active: boolean | null;
|
|
3101
3282
|
/**
|
|
3102
3283
|
* Full name
|
|
3103
3284
|
*/
|
|
@@ -3120,7 +3301,7 @@ export type UserDestroyTargetSchema = User;
|
|
|
3120
3301
|
*/
|
|
3121
3302
|
export type UserMeta = {
|
|
3122
3303
|
/**
|
|
3123
|
-
* Date of last reading/interaction
|
|
3304
|
+
* Date of last reading/interaction. It returns `null` if the credentials you are using cannot manage the collaborators of the project.
|
|
3124
3305
|
*/
|
|
3125
3306
|
last_access: string | null;
|
|
3126
3307
|
};
|
|
@@ -3146,9 +3327,9 @@ export type UserAttributes = {
|
|
|
3146
3327
|
*/
|
|
3147
3328
|
email: string;
|
|
3148
3329
|
/**
|
|
3149
|
-
* Whether 2-factor authentication is active for this account or not
|
|
3330
|
+
* Whether 2-factor authentication is active for this account or not. It returns `null` if the credentials you are using cannot manage the collaborators of the project.
|
|
3150
3331
|
*/
|
|
3151
|
-
is_2fa_active: boolean;
|
|
3332
|
+
is_2fa_active: boolean | null;
|
|
3152
3333
|
/**
|
|
3153
3334
|
* Full name
|
|
3154
3335
|
*/
|
|
@@ -3194,7 +3375,7 @@ export type SsoUser = {
|
|
|
3194
3375
|
*/
|
|
3195
3376
|
username: string;
|
|
3196
3377
|
/**
|
|
3197
|
-
* Identity provider ID
|
|
3378
|
+
* Identity provider ID. It returns `null` if the credentials you are using cannot manage the SSO users of the project.
|
|
3198
3379
|
*/
|
|
3199
3380
|
external_id: string | null;
|
|
3200
3381
|
/**
|
|
@@ -3233,7 +3414,7 @@ export type SsoGroupData = {
|
|
|
3233
3414
|
*/
|
|
3234
3415
|
export type SsoUserMeta = {
|
|
3235
3416
|
/**
|
|
3236
|
-
* Date of last reading/interaction
|
|
3417
|
+
* Date of last reading/interaction. It returns `null` if the credentials you are using cannot manage the SSO users of the project.
|
|
3237
3418
|
*/
|
|
3238
3419
|
last_access: string | null;
|
|
3239
3420
|
};
|
|
@@ -3259,7 +3440,7 @@ export type SsoUserAttributes = {
|
|
|
3259
3440
|
*/
|
|
3260
3441
|
username: string;
|
|
3261
3442
|
/**
|
|
3262
|
-
* Identity provider ID
|
|
3443
|
+
* Identity provider ID. It returns `null` if the credentials you are using cannot manage the SSO users of the project.
|
|
3263
3444
|
*/
|
|
3264
3445
|
external_id: string | null;
|
|
3265
3446
|
/**
|
|
@@ -3328,13 +3509,13 @@ export type AccessToken = {
|
|
|
3328
3509
|
*/
|
|
3329
3510
|
hardcoded_type: null | string;
|
|
3330
3511
|
/**
|
|
3331
|
-
* When this API token was last used to access the Content Management API
|
|
3512
|
+
* When this API token was last used to access the Content Management API. It returns `null` if the credentials you are using cannot manage the API tokens of the project.
|
|
3332
3513
|
*/
|
|
3333
|
-
last_cma_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
3514
|
+
last_cma_access: null | 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
3334
3515
|
/**
|
|
3335
|
-
* When this API token was last used to access the Content Delivery API
|
|
3516
|
+
* When this API token was last used to access the Content Delivery API. It returns `null` if the credentials you are using cannot manage the API tokens of the project.
|
|
3336
3517
|
*/
|
|
3337
|
-
last_cda_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
3518
|
+
last_cda_access: null | 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
3338
3519
|
role: RoleData | null;
|
|
3339
3520
|
};
|
|
3340
3521
|
export type AccessTokenCreateTargetSchema = AccessToken;
|
|
@@ -3384,13 +3565,13 @@ export type AccessTokenAttributes = {
|
|
|
3384
3565
|
*/
|
|
3385
3566
|
hardcoded_type: null | string;
|
|
3386
3567
|
/**
|
|
3387
|
-
* When this API token was last used to access the Content Management API
|
|
3568
|
+
* When this API token was last used to access the Content Management API. It returns `null` if the credentials you are using cannot manage the API tokens of the project.
|
|
3388
3569
|
*/
|
|
3389
|
-
last_cma_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
3570
|
+
last_cma_access: null | 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
3390
3571
|
/**
|
|
3391
|
-
* When this API token was last used to access the Content Delivery API
|
|
3572
|
+
* When this API token was last used to access the Content Delivery API. It returns `null` if the credentials you are using cannot manage the API tokens of the project.
|
|
3392
3573
|
*/
|
|
3393
|
-
last_cda_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
3574
|
+
last_cda_access: null | 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
3394
3575
|
};
|
|
3395
3576
|
/**
|
|
3396
3577
|
* JSON API links
|
|
@@ -6788,9 +6969,9 @@ export type Plugin = {
|
|
|
6788
6969
|
*/
|
|
6789
6970
|
url: string;
|
|
6790
6971
|
/**
|
|
6791
|
-
* Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
|
|
6972
|
+
* Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits. It returns `null` if the credentials you are using cannot edit the schema of the project.
|
|
6792
6973
|
*/
|
|
6793
|
-
parameters: {
|
|
6974
|
+
parameters: null | {
|
|
6794
6975
|
[k: string]: unknown;
|
|
6795
6976
|
};
|
|
6796
6977
|
/**
|
|
@@ -6872,9 +7053,9 @@ export type PluginAttributes = {
|
|
|
6872
7053
|
*/
|
|
6873
7054
|
url: string;
|
|
6874
7055
|
/**
|
|
6875
|
-
* Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
|
|
7056
|
+
* Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits. It returns `null` if the credentials you are using cannot edit the schema of the project.
|
|
6876
7057
|
*/
|
|
6877
|
-
parameters: {
|
|
7058
|
+
parameters: null | {
|
|
6878
7059
|
[k: string]: unknown;
|
|
6879
7060
|
};
|
|
6880
7061
|
/**
|
|
@@ -8838,13 +9019,13 @@ export type Webhook = {
|
|
|
8838
9019
|
*/
|
|
8839
9020
|
http_basic_user: string | null;
|
|
8840
9021
|
/**
|
|
8841
|
-
* HTTP Basic Authorization password
|
|
9022
|
+
* HTTP Basic Authorization password. It is `null` when the webhook has no basic auth, or when the credentials you are using cannot manage the webhooks of the project.
|
|
8842
9023
|
*/
|
|
8843
9024
|
http_basic_password: string | null;
|
|
8844
9025
|
/**
|
|
8845
|
-
* Additional headers that will be sent
|
|
9026
|
+
* Additional headers that will be sent. It returns `null` if the credentials you are using cannot manage the webhooks of the project.
|
|
8846
9027
|
*/
|
|
8847
|
-
headers: {
|
|
9028
|
+
headers: null | {
|
|
8848
9029
|
[k: string]: string;
|
|
8849
9030
|
};
|
|
8850
9031
|
events: {
|
|
@@ -8913,13 +9094,13 @@ export type WebhookAttributes = {
|
|
|
8913
9094
|
*/
|
|
8914
9095
|
http_basic_user: string | null;
|
|
8915
9096
|
/**
|
|
8916
|
-
* HTTP Basic Authorization password
|
|
9097
|
+
* HTTP Basic Authorization password. It is `null` when the webhook has no basic auth, or when the credentials you are using cannot manage the webhooks of the project.
|
|
8917
9098
|
*/
|
|
8918
9099
|
http_basic_password: string | null;
|
|
8919
9100
|
/**
|
|
8920
|
-
* Additional headers that will be sent
|
|
9101
|
+
* Additional headers that will be sent. It returns `null` if the credentials you are using cannot manage the webhooks of the project.
|
|
8921
9102
|
*/
|
|
8922
|
-
headers: {
|
|
9103
|
+
headers: null | {
|
|
8923
9104
|
[k: string]: string;
|
|
8924
9105
|
};
|
|
8925
9106
|
events: {
|
|
@@ -8986,7 +9167,7 @@ export type WebhookCreateSchema = {
|
|
|
8986
9167
|
*/
|
|
8987
9168
|
http_basic_user: string | null;
|
|
8988
9169
|
/**
|
|
8989
|
-
* HTTP Basic Authorization password
|
|
9170
|
+
* HTTP Basic Authorization password. It is `null` when the webhook has no basic auth, or when the credentials you are using cannot manage the webhooks of the project.
|
|
8990
9171
|
*/
|
|
8991
9172
|
http_basic_password: string | null;
|
|
8992
9173
|
/**
|
|
@@ -9047,7 +9228,7 @@ export type WebhookUpdateSchema = {
|
|
|
9047
9228
|
*/
|
|
9048
9229
|
http_basic_user?: string | null;
|
|
9049
9230
|
/**
|
|
9050
|
-
* HTTP Basic Authorization password
|
|
9231
|
+
* HTTP Basic Authorization password. It is `null` when the webhook has no basic auth, or when the credentials you are using cannot manage the webhooks of the project.
|
|
9051
9232
|
*/
|
|
9052
9233
|
http_basic_password?: string | null;
|
|
9053
9234
|
/**
|
|
@@ -9240,9 +9421,9 @@ export type BuildTrigger = {
|
|
|
9240
9421
|
*/
|
|
9241
9422
|
adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
|
|
9242
9423
|
/**
|
|
9243
|
-
* Additional settings for the build trigger. The value depends on the `adapter`.
|
|
9424
|
+
* Additional settings for the build trigger. The value depends on the `adapter`. It returns `null` if the credentials you are using cannot manage the build triggers of the project.
|
|
9244
9425
|
*/
|
|
9245
|
-
adapter_settings: {
|
|
9426
|
+
adapter_settings: null | {
|
|
9246
9427
|
[k: string]: unknown;
|
|
9247
9428
|
};
|
|
9248
9429
|
/**
|
|
@@ -9254,13 +9435,13 @@ export type BuildTrigger = {
|
|
|
9254
9435
|
*/
|
|
9255
9436
|
build_status: string;
|
|
9256
9437
|
/**
|
|
9257
|
-
* Unique token for the webhook (it's the same token present in `webhook_url`)
|
|
9438
|
+
* Unique token for the webhook (it's the same token present in `webhook_url`). It returns `null` if the credentials you are using cannot manage the build triggers of the project.
|
|
9258
9439
|
*/
|
|
9259
|
-
webhook_token
|
|
9440
|
+
webhook_token: null | string;
|
|
9260
9441
|
/**
|
|
9261
|
-
* The URL of the webhook your service has to call when the build completes to report it's status (success or error)
|
|
9442
|
+
* The URL of the webhook your service has to call when the build completes to report it's status (success or error). It returns `null` if the credentials you are using cannot manage the build triggers of the project.
|
|
9262
9443
|
*/
|
|
9263
|
-
webhook_url: string;
|
|
9444
|
+
webhook_url: null | string;
|
|
9264
9445
|
/**
|
|
9265
9446
|
* Status of Site Search for the frontend
|
|
9266
9447
|
*/
|
|
@@ -9302,9 +9483,9 @@ export type BuildTriggerAttributes = {
|
|
|
9302
9483
|
*/
|
|
9303
9484
|
adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
|
|
9304
9485
|
/**
|
|
9305
|
-
* Additional settings for the build trigger. The value depends on the `adapter`.
|
|
9486
|
+
* Additional settings for the build trigger. The value depends on the `adapter`. It returns `null` if the credentials you are using cannot manage the build triggers of the project.
|
|
9306
9487
|
*/
|
|
9307
|
-
adapter_settings: {
|
|
9488
|
+
adapter_settings: null | {
|
|
9308
9489
|
[k: string]: unknown;
|
|
9309
9490
|
};
|
|
9310
9491
|
/**
|
|
@@ -9316,13 +9497,13 @@ export type BuildTriggerAttributes = {
|
|
|
9316
9497
|
*/
|
|
9317
9498
|
build_status: string;
|
|
9318
9499
|
/**
|
|
9319
|
-
* Unique token for the webhook (it's the same token present in `webhook_url`)
|
|
9500
|
+
* Unique token for the webhook (it's the same token present in `webhook_url`). It returns `null` if the credentials you are using cannot manage the build triggers of the project.
|
|
9320
9501
|
*/
|
|
9321
|
-
webhook_token
|
|
9502
|
+
webhook_token: null | string;
|
|
9322
9503
|
/**
|
|
9323
|
-
* The URL of the webhook your service has to call when the build completes to report it's status (success or error)
|
|
9504
|
+
* The URL of the webhook your service has to call when the build completes to report it's status (success or error). It returns `null` if the credentials you are using cannot manage the build triggers of the project.
|
|
9324
9505
|
*/
|
|
9325
|
-
webhook_url: string;
|
|
9506
|
+
webhook_url: null | string;
|
|
9326
9507
|
/**
|
|
9327
9508
|
* Status of Site Search for the frontend
|
|
9328
9509
|
*/
|
|
@@ -10993,7 +11174,7 @@ export type Site = {
|
|
|
10993
11174
|
*/
|
|
10994
11175
|
imgix_host: string | null;
|
|
10995
11176
|
/**
|
|
10996
|
-
* DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot
|
|
11177
|
+
* DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot read the configuration of the project.
|
|
10997
11178
|
*/
|
|
10998
11179
|
internal_domain: string | null;
|
|
10999
11180
|
/**
|
|
@@ -11017,11 +11198,11 @@ export type Site = {
|
|
|
11017
11198
|
*/
|
|
11018
11199
|
last_data_change_at: null | string;
|
|
11019
11200
|
/**
|
|
11020
|
-
* Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot
|
|
11201
|
+
* Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot read the configuration of the project.
|
|
11021
11202
|
*/
|
|
11022
11203
|
require_2fa: boolean | null;
|
|
11023
11204
|
/**
|
|
11024
|
-
* Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot
|
|
11205
|
+
* Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot read the configuration of the project.
|
|
11025
11206
|
*/
|
|
11026
11207
|
ip_tracking_enabled: boolean | null;
|
|
11027
11208
|
/**
|
|
@@ -11340,7 +11521,7 @@ export type SiteAttributes = {
|
|
|
11340
11521
|
*/
|
|
11341
11522
|
imgix_host: string | null;
|
|
11342
11523
|
/**
|
|
11343
|
-
* DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot
|
|
11524
|
+
* DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot read the configuration of the project.
|
|
11344
11525
|
*/
|
|
11345
11526
|
internal_domain: string | null;
|
|
11346
11527
|
/**
|
|
@@ -11364,11 +11545,11 @@ export type SiteAttributes = {
|
|
|
11364
11545
|
*/
|
|
11365
11546
|
last_data_change_at: null | string;
|
|
11366
11547
|
/**
|
|
11367
|
-
* Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot
|
|
11548
|
+
* Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot read the configuration of the project.
|
|
11368
11549
|
*/
|
|
11369
11550
|
require_2fa: boolean | null;
|
|
11370
11551
|
/**
|
|
11371
|
-
* Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot
|
|
11552
|
+
* Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot read the configuration of the project.
|
|
11372
11553
|
*/
|
|
11373
11554
|
ip_tracking_enabled: boolean | null;
|
|
11374
11555
|
/**
|