@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.
Files changed (37) hide show
  1. package/dist/cjs/generated/Client.js +1 -1
  2. package/dist/cjs/generated/resources/Field.js +16 -12
  3. package/dist/cjs/generated/resources/Field.js.map +1 -1
  4. package/dist/cjs/generated/resources/Fieldset.js +8 -6
  5. package/dist/cjs/generated/resources/Fieldset.js.map +1 -1
  6. package/dist/cjs/generated/resources/Item.js +4 -4
  7. package/dist/cjs/generated/resources/ItemType.js +12 -9
  8. package/dist/cjs/generated/resources/ItemType.js.map +1 -1
  9. package/dist/esm/generated/ApiTypes.d.ts +227 -46
  10. package/dist/esm/generated/Client.js +1 -1
  11. package/dist/esm/generated/RawApiTypes.d.ts +206 -25
  12. package/dist/esm/generated/resources/Field.d.ts +8 -8
  13. package/dist/esm/generated/resources/Field.js +16 -12
  14. package/dist/esm/generated/resources/Field.js.map +1 -1
  15. package/dist/esm/generated/resources/Fieldset.d.ts +4 -4
  16. package/dist/esm/generated/resources/Fieldset.js +8 -6
  17. package/dist/esm/generated/resources/Fieldset.js.map +1 -1
  18. package/dist/esm/generated/resources/Item.d.ts +4 -4
  19. package/dist/esm/generated/resources/Item.js +4 -4
  20. package/dist/esm/generated/resources/ItemType.d.ts +6 -6
  21. package/dist/esm/generated/resources/ItemType.js +12 -9
  22. package/dist/esm/generated/resources/ItemType.js.map +1 -1
  23. package/dist/types/generated/ApiTypes.d.ts +227 -46
  24. package/dist/types/generated/RawApiTypes.d.ts +206 -25
  25. package/dist/types/generated/resources/Field.d.ts +8 -8
  26. package/dist/types/generated/resources/Fieldset.d.ts +4 -4
  27. package/dist/types/generated/resources/Item.d.ts +4 -4
  28. package/dist/types/generated/resources/ItemType.d.ts +6 -6
  29. package/package.json +2 -2
  30. package/resources.json +11 -2
  31. package/src/generated/ApiTypes.ts +227 -42
  32. package/src/generated/Client.ts +1 -1
  33. package/src/generated/RawApiTypes.ts +206 -23
  34. package/src/generated/resources/Field.ts +38 -13
  35. package/src/generated/resources/Fieldset.ts +17 -5
  36. package/src/generated/resources/Item.ts +4 -4
  37. package/src/generated/resources/ItemType.ts +27 -11
package/resources.json CHANGED
@@ -1074,6 +1074,7 @@
1074
1074
  "comment": "List all models/block models",
1075
1075
  "urlPlaceholders": [],
1076
1076
  "optionalRequestBody": false,
1077
+ "queryParamsType": "ItemTypeInstancesHrefSchema",
1077
1078
  "queryParamsRequired": false,
1078
1079
  "responseType": "ItemTypeInstancesTargetSchema",
1079
1080
  "name": "list",
@@ -1101,6 +1102,7 @@
1101
1102
  "relType": "ItemTypeData"
1102
1103
  },
1103
1104
  "optionalRequestBody": false,
1105
+ "queryParamsType": "ItemTypeSelfHrefSchema",
1104
1106
  "queryParamsRequired": false,
1105
1107
  "responseType": "ItemTypeSelfTargetSchema",
1106
1108
  "name": "find",
@@ -1183,6 +1185,7 @@
1183
1185
  "relType": "ItemTypeData"
1184
1186
  },
1185
1187
  "optionalRequestBody": false,
1188
+ "queryParamsType": "ItemTypeReferencingHrefSchema",
1186
1189
  "queryParamsRequired": false,
1187
1190
  "responseType": "ItemTypeReferencingTargetSchema",
1188
1191
  "name": "referencing",
@@ -1334,6 +1337,7 @@
1334
1337
  }
1335
1338
  ],
1336
1339
  "optionalRequestBody": false,
1340
+ "queryParamsType": "FieldInstancesHrefSchema",
1337
1341
  "queryParamsRequired": false,
1338
1342
  "responseType": "FieldInstancesTargetSchema",
1339
1343
  "name": "list",
@@ -1356,6 +1360,7 @@
1356
1360
  }
1357
1361
  ],
1358
1362
  "optionalRequestBody": false,
1363
+ "queryParamsType": "FieldReferencingHrefSchema",
1359
1364
  "queryParamsRequired": false,
1360
1365
  "responseType": "FieldReferencingTargetSchema",
1361
1366
  "name": "referencing",
@@ -1378,6 +1383,7 @@
1378
1383
  }
1379
1384
  ],
1380
1385
  "optionalRequestBody": false,
1386
+ "queryParamsType": "FieldRelatedHrefSchema",
1381
1387
  "queryParamsRequired": false,
1382
1388
  "responseType": "FieldRelatedTargetSchema",
1383
1389
  "deprecated": "This API call is to be considered private and might change without notice",
@@ -1406,6 +1412,7 @@
1406
1412
  "relType": "FieldData"
1407
1413
  },
1408
1414
  "optionalRequestBody": false,
1415
+ "queryParamsType": "FieldSelfHrefSchema",
1409
1416
  "queryParamsRequired": false,
1410
1417
  "responseType": "FieldSelfTargetSchema",
1411
1418
  "name": "find",
@@ -1563,6 +1570,7 @@
1563
1570
  }
1564
1571
  ],
1565
1572
  "optionalRequestBody": false,
1573
+ "queryParamsType": "FieldsetInstancesHrefSchema",
1566
1574
  "queryParamsRequired": false,
1567
1575
  "responseType": "FieldsetInstancesTargetSchema",
1568
1576
  "name": "list",
@@ -1590,6 +1598,7 @@
1590
1598
  "relType": "FieldsetData"
1591
1599
  },
1592
1600
  "optionalRequestBody": false,
1601
+ "queryParamsType": "FieldsetSelfHrefSchema",
1593
1602
  "queryParamsRequired": false,
1594
1603
  "responseType": "FieldsetSelfTargetSchema",
1595
1604
  "name": "find",
@@ -2272,7 +2281,7 @@
2272
2281
  "rel": "validate_existing",
2273
2282
  "urlTemplate": "/items/${itemId}/validate",
2274
2283
  "method": "POST",
2275
- "comment": "Validates an existing record field",
2284
+ "comment": "Validate an existing record",
2276
2285
  "urlPlaceholders": [
2277
2286
  {
2278
2287
  "variableName": "itemId",
@@ -2306,7 +2315,7 @@
2306
2315
  "rel": "validate_new",
2307
2316
  "urlTemplate": "/items/validate",
2308
2317
  "method": "POST",
2309
- "comment": "Validates a record field",
2318
+ "comment": "Validate a new record",
2310
2319
  "urlPlaceholders": [],
2311
2320
  "requestBodyType": "ItemValidateNewSchema",
2312
2321
  "optionalRequestBody": false,
@@ -297,6 +297,13 @@ export type AccountIdentity = string;
297
297
  * via the `definition` "type".
298
298
  */
299
299
  export type AccountType = 'account';
300
+ /**
301
+ * Attributes and relationships to return for each `account` that this endpoint returns.
302
+ *
303
+ * This interface was referenced by `Account`'s JSON-Schema
304
+ * via the `definition` "sparse_fieldset".
305
+ */
306
+ export type AccountSparseFieldset = string;
300
307
  /**
301
308
  * ID of organization
302
309
  *
@@ -312,6 +319,13 @@ export type OrganizationIdentity = string;
312
319
  * via the `definition` "type".
313
320
  */
314
321
  export type OrganizationType = 'organization';
322
+ /**
323
+ * Attributes and relationships to return for each `organization` that this endpoint returns.
324
+ *
325
+ * This interface was referenced by `Organization`'s JSON-Schema
326
+ * via the `definition` "sparse_fieldset".
327
+ */
328
+ export type OrganizationSparseFieldset = string;
315
329
  /**
316
330
  * This interface was referenced by `User`'s JSON-Schema
317
331
  * via the `me.hrefSchema` link.
@@ -602,6 +616,13 @@ export type FieldsetIdentity = string;
602
616
  * via the `definition` "type".
603
617
  */
604
618
  export type WorkflowType = 'workflow';
619
+ /**
620
+ * Attributes and relationships to return for each `item_type` that this endpoint returns.
621
+ *
622
+ * This interface was referenced by `ItemType`'s JSON-Schema
623
+ * via the `definition` "sparse_fieldset".
624
+ */
625
+ export type ItemTypeSparseFieldset = string;
605
626
  /**
606
627
  * This interface was referenced by `ItemType`'s JSON-Schema
607
628
  * via the `create.hrefSchema` link.
@@ -626,6 +647,42 @@ export type ItemTypeCreateHrefSchema = {
626
647
  * via the `instances.targetSchema` link.
627
648
  */
628
649
  export type ItemTypeInstancesTargetSchema = ItemType[];
650
+ /**
651
+ * This interface was referenced by `ItemType`'s JSON-Schema
652
+ * via the `instances.hrefSchema` link.
653
+ */
654
+ export type ItemTypeInstancesHrefSchema = {
655
+ /**
656
+ * 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.
657
+ */
658
+ fields?: {
659
+ item_type?: ItemTypeSparseFieldset;
660
+ [k: string]: unknown;
661
+ };
662
+ [k: string]: unknown;
663
+ };
664
+ /**
665
+ * This interface was referenced by `ItemType`'s JSON-Schema
666
+ * via the `self.hrefSchema` link.
667
+ */
668
+ export type ItemTypeSelfHrefSchema = {
669
+ /**
670
+ * 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.
671
+ */
672
+ fields?: {
673
+ item_type?: ItemTypeSparseFieldset;
674
+ field?: FieldSparseFieldset;
675
+ [k: string]: unknown;
676
+ };
677
+ [k: string]: unknown;
678
+ };
679
+ /**
680
+ * Attributes and relationships to return for each `field` that this endpoint returns.
681
+ *
682
+ * This interface was referenced by `Field`'s JSON-Schema
683
+ * via the `definition` "sparse_fieldset".
684
+ */
685
+ export type FieldSparseFieldset = string;
629
686
  /**
630
687
  * This interface was referenced by `ItemType`'s JSON-Schema
631
688
  * via the `destroy.hrefSchema` link.
@@ -642,6 +699,20 @@ export type ItemTypeDestroyHrefSchema = {
642
699
  * via the `referencing.targetSchema` link.
643
700
  */
644
701
  export type ItemTypeReferencingTargetSchema = ItemType[];
702
+ /**
703
+ * This interface was referenced by `ItemType`'s JSON-Schema
704
+ * via the `referencing.hrefSchema` link.
705
+ */
706
+ export type ItemTypeReferencingHrefSchema = {
707
+ /**
708
+ * 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.
709
+ */
710
+ fields?: {
711
+ item_type?: ItemTypeSparseFieldset;
712
+ [k: string]: unknown;
713
+ };
714
+ [k: string]: unknown;
715
+ };
645
716
  /**
646
717
  * This interface was referenced by `ItemType`'s JSON-Schema
647
718
  * via the `reorder_fields_and_fieldsets.schema` link.
@@ -670,21 +741,112 @@ export type ItemTypeReorderFieldsAndFieldsetsSchema = (
670
741
  * via the `instances.targetSchema` link.
671
742
  */
672
743
  export type FieldInstancesTargetSchema = Field[];
744
+ /**
745
+ * This interface was referenced by `Field`'s JSON-Schema
746
+ * via the `instances.hrefSchema` link.
747
+ */
748
+ export type FieldInstancesHrefSchema = {
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
+ };
673
758
  /**
674
759
  * This interface was referenced by `Field`'s JSON-Schema
675
760
  * via the `referencing.targetSchema` link.
676
761
  */
677
762
  export type FieldReferencingTargetSchema = Field[];
763
+ /**
764
+ * This interface was referenced by `Field`'s JSON-Schema
765
+ * via the `referencing.hrefSchema` link.
766
+ */
767
+ export type FieldReferencingHrefSchema = {
768
+ /**
769
+ * 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.
770
+ */
771
+ fields?: {
772
+ field?: FieldSparseFieldset;
773
+ [k: string]: unknown;
774
+ };
775
+ [k: string]: unknown;
776
+ };
678
777
  /**
679
778
  * This interface was referenced by `Field`'s JSON-Schema
680
779
  * via the `related.targetSchema` link.
681
780
  */
682
781
  export type FieldRelatedTargetSchema = Field[];
782
+ /**
783
+ * This interface was referenced by `Field`'s JSON-Schema
784
+ * via the `related.hrefSchema` link.
785
+ */
786
+ export type FieldRelatedHrefSchema = {
787
+ /**
788
+ * 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.
789
+ */
790
+ fields?: {
791
+ field?: FieldSparseFieldset;
792
+ [k: string]: unknown;
793
+ };
794
+ [k: string]: unknown;
795
+ };
796
+ /**
797
+ * This interface was referenced by `Field`'s JSON-Schema
798
+ * via the `self.hrefSchema` link.
799
+ */
800
+ export type FieldSelfHrefSchema = {
801
+ /**
802
+ * 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.
803
+ */
804
+ fields?: {
805
+ field?: FieldSparseFieldset;
806
+ [k: string]: unknown;
807
+ };
808
+ [k: string]: unknown;
809
+ };
810
+ /**
811
+ * Attributes and relationships to return for each `fieldset` that this endpoint returns.
812
+ *
813
+ * This interface was referenced by `Fieldset`'s JSON-Schema
814
+ * via the `definition` "sparse_fieldset".
815
+ */
816
+ export type FieldsetSparseFieldset = string;
683
817
  /**
684
818
  * This interface was referenced by `Fieldset`'s JSON-Schema
685
819
  * via the `instances.targetSchema` link.
686
820
  */
687
821
  export type FieldsetInstancesTargetSchema = Fieldset[];
822
+ /**
823
+ * This interface was referenced by `Fieldset`'s JSON-Schema
824
+ * via the `instances.hrefSchema` link.
825
+ */
826
+ export type FieldsetInstancesHrefSchema = {
827
+ /**
828
+ * 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.
829
+ */
830
+ fields?: {
831
+ fieldset?: FieldsetSparseFieldset;
832
+ [k: string]: unknown;
833
+ };
834
+ [k: string]: unknown;
835
+ };
836
+ /**
837
+ * This interface was referenced by `Fieldset`'s JSON-Schema
838
+ * via the `self.hrefSchema` link.
839
+ */
840
+ export type FieldsetSelfHrefSchema = {
841
+ /**
842
+ * 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.
843
+ */
844
+ fields?: {
845
+ fieldset?: FieldsetSparseFieldset;
846
+ [k: string]: unknown;
847
+ };
848
+ [k: string]: unknown;
849
+ };
688
850
  /**
689
851
  * This interface was referenced by `ItemType`'s JSON-Schema
690
852
  * via the `reorder_fields_and_fieldsets.jobSchema` link.
@@ -2046,6 +2208,13 @@ export type SiteIdentity = string;
2046
2208
  * via the `definition` "type".
2047
2209
  */
2048
2210
  export type SiteType = 'site';
2211
+ /**
2212
+ * Attributes and relationships to return for each `site` that this endpoint returns.
2213
+ *
2214
+ * This interface was referenced by `Site`'s JSON-Schema
2215
+ * via the `definition` "sparse_fieldset".
2216
+ */
2217
+ export type SiteSparseFieldset = string;
2049
2218
  /**
2050
2219
  * This interface was referenced by `Site`'s JSON-Schema
2051
2220
  * via the `self.hrefSchema` link.
@@ -2055,6 +2224,18 @@ export type SiteSelfHrefSchema = {
2055
2224
  * 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`.
2056
2225
  */
2057
2226
  include?: string;
2227
+ /**
2228
+ * 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.
2229
+ */
2230
+ fields?: {
2231
+ site?: SiteSparseFieldset;
2232
+ item_type?: ItemTypeSparseFieldset;
2233
+ field?: FieldSparseFieldset;
2234
+ fieldset?: FieldsetSparseFieldset;
2235
+ account?: AccountSparseFieldset;
2236
+ organization?: OrganizationSparseFieldset;
2237
+ [k: string]: unknown;
2238
+ };
2058
2239
  [k: string]: unknown;
2059
2240
  };
2060
2241
  /**
@@ -3377,9 +3558,9 @@ export type User = {
3377
3558
  */
3378
3559
  email: string;
3379
3560
  /**
3380
- * Whether 2-factor authentication is active for this account or not
3561
+ * 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.
3381
3562
  */
3382
- is_2fa_active: boolean;
3563
+ is_2fa_active: boolean | null;
3383
3564
  /**
3384
3565
  * Full name
3385
3566
  */
@@ -3402,7 +3583,7 @@ export type UserDestroyTargetSchema = User;
3402
3583
  */
3403
3584
  export type UserMeta = {
3404
3585
  /**
3405
- * Date of last reading/interaction
3586
+ * Date of last reading/interaction. It returns `null` if the credentials you are using cannot manage the collaborators of the project.
3406
3587
  */
3407
3588
  last_access: string | null;
3408
3589
  };
@@ -3428,9 +3609,9 @@ export type UserAttributes = {
3428
3609
  */
3429
3610
  email: string;
3430
3611
  /**
3431
- * Whether 2-factor authentication is active for this account or not
3612
+ * 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.
3432
3613
  */
3433
- is_2fa_active: boolean;
3614
+ is_2fa_active: boolean | null;
3434
3615
  /**
3435
3616
  * Full name
3436
3617
  */
@@ -3476,7 +3657,7 @@ export type SsoUser = {
3476
3657
  */
3477
3658
  username: string;
3478
3659
  /**
3479
- * Identity provider ID
3660
+ * Identity provider ID. It returns `null` if the credentials you are using cannot manage the SSO users of the project.
3480
3661
  */
3481
3662
  external_id: string | null;
3482
3663
  /**
@@ -3515,7 +3696,7 @@ export type SsoGroupData = {
3515
3696
  */
3516
3697
  export type SsoUserMeta = {
3517
3698
  /**
3518
- * Date of last reading/interaction
3699
+ * Date of last reading/interaction. It returns `null` if the credentials you are using cannot manage the SSO users of the project.
3519
3700
  */
3520
3701
  last_access: string | null;
3521
3702
  };
@@ -3541,7 +3722,7 @@ export type SsoUserAttributes = {
3541
3722
  */
3542
3723
  username: string;
3543
3724
  /**
3544
- * Identity provider ID
3725
+ * Identity provider ID. It returns `null` if the credentials you are using cannot manage the SSO users of the project.
3545
3726
  */
3546
3727
  external_id: string | null;
3547
3728
  /**
@@ -3610,9 +3791,10 @@ export type AccessToken = {
3610
3791
  */
3611
3792
  hardcoded_type: null | string;
3612
3793
  /**
3613
- * When this API token was last used to access the Content Management API
3794
+ * 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.
3614
3795
  */
3615
3796
  last_cma_access:
3797
+ | null
3616
3798
  | 'today'
3617
3799
  | 'yesterday'
3618
3800
  | 'this_week'
@@ -3621,9 +3803,10 @@ export type AccessToken = {
3621
3803
  | 'last_month'
3622
3804
  | 'never';
3623
3805
  /**
3624
- * When this API token was last used to access the Content Delivery API
3806
+ * 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.
3625
3807
  */
3626
3808
  last_cda_access:
3809
+ | null
3627
3810
  | 'today'
3628
3811
  | 'yesterday'
3629
3812
  | 'this_week'
@@ -3680,9 +3863,10 @@ export type AccessTokenAttributes = {
3680
3863
  */
3681
3864
  hardcoded_type: null | string;
3682
3865
  /**
3683
- * When this API token was last used to access the Content Management API
3866
+ * 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.
3684
3867
  */
3685
3868
  last_cma_access:
3869
+ | null
3686
3870
  | 'today'
3687
3871
  | 'yesterday'
3688
3872
  | 'this_week'
@@ -3691,9 +3875,10 @@ export type AccessTokenAttributes = {
3691
3875
  | 'last_month'
3692
3876
  | 'never';
3693
3877
  /**
3694
- * When this API token was last used to access the Content Delivery API
3878
+ * 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.
3695
3879
  */
3696
3880
  last_cda_access:
3881
+ | null
3697
3882
  | 'today'
3698
3883
  | 'yesterday'
3699
3884
  | 'this_week'
@@ -7228,9 +7413,9 @@ export type Plugin = {
7228
7413
  */
7229
7414
  url: string;
7230
7415
  /**
7231
- * 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.
7416
+ * 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.
7232
7417
  */
7233
- parameters: {
7418
+ parameters: null | {
7234
7419
  [k: string]: unknown;
7235
7420
  };
7236
7421
  /**
@@ -7333,9 +7518,9 @@ export type PluginAttributes = {
7333
7518
  */
7334
7519
  url: string;
7335
7520
  /**
7336
- * 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.
7521
+ * 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.
7337
7522
  */
7338
- parameters: {
7523
+ parameters: null | {
7339
7524
  [k: string]: unknown;
7340
7525
  };
7341
7526
  /**
@@ -9447,13 +9632,13 @@ export type Webhook = {
9447
9632
  */
9448
9633
  http_basic_user: string | null;
9449
9634
  /**
9450
- * HTTP Basic Authorization password
9635
+ * 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.
9451
9636
  */
9452
9637
  http_basic_password: string | null;
9453
9638
  /**
9454
- * Additional headers that will be sent
9639
+ * Additional headers that will be sent. It returns `null` if the credentials you are using cannot manage the webhooks of the project.
9455
9640
  */
9456
- headers: {
9641
+ headers: null | {
9457
9642
  [k: string]: string;
9458
9643
  };
9459
9644
  events: {
@@ -9549,13 +9734,13 @@ export type WebhookAttributes = {
9549
9734
  */
9550
9735
  http_basic_user: string | null;
9551
9736
  /**
9552
- * HTTP Basic Authorization password
9737
+ * 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.
9553
9738
  */
9554
9739
  http_basic_password: string | null;
9555
9740
  /**
9556
- * Additional headers that will be sent
9741
+ * Additional headers that will be sent. It returns `null` if the credentials you are using cannot manage the webhooks of the project.
9557
9742
  */
9558
- headers: {
9743
+ headers: null | {
9559
9744
  [k: string]: string;
9560
9745
  };
9561
9746
  events: {
@@ -9676,7 +9861,7 @@ export type WebhookCreateSchema = {
9676
9861
  */
9677
9862
  http_basic_user: string | null;
9678
9863
  /**
9679
- * HTTP Basic Authorization password
9864
+ * 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.
9680
9865
  */
9681
9866
  http_basic_password: string | null;
9682
9867
  /**
@@ -9764,7 +9949,7 @@ export type WebhookUpdateSchema = {
9764
9949
  */
9765
9950
  http_basic_user?: string | null;
9766
9951
  /**
9767
- * HTTP Basic Authorization password
9952
+ * 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.
9768
9953
  */
9769
9954
  http_basic_password?: string | null;
9770
9955
  /**
@@ -9995,9 +10180,9 @@ export type BuildTrigger = {
9995
10180
  */
9996
10181
  adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
9997
10182
  /**
9998
- * Additional settings for the build trigger. The value depends on the `adapter`.
10183
+ * 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.
9999
10184
  */
10000
- adapter_settings: {
10185
+ adapter_settings: null | {
10001
10186
  [k: string]: unknown;
10002
10187
  };
10003
10188
  /**
@@ -10009,13 +10194,13 @@ export type BuildTrigger = {
10009
10194
  */
10010
10195
  build_status: string;
10011
10196
  /**
10012
- * Unique token for the webhook (it's the same token present in `webhook_url`)
10197
+ * 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.
10013
10198
  */
10014
- webhook_token?: string;
10199
+ webhook_token: null | string;
10015
10200
  /**
10016
- * The URL of the webhook your service has to call when the build completes to report it's status (success or error)
10201
+ * 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.
10017
10202
  */
10018
- webhook_url: string;
10203
+ webhook_url: null | string;
10019
10204
  /**
10020
10205
  * Status of Site Search for the frontend
10021
10206
  */
@@ -10057,9 +10242,9 @@ export type BuildTriggerAttributes = {
10057
10242
  */
10058
10243
  adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
10059
10244
  /**
10060
- * Additional settings for the build trigger. The value depends on the `adapter`.
10245
+ * 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.
10061
10246
  */
10062
- adapter_settings: {
10247
+ adapter_settings: null | {
10063
10248
  [k: string]: unknown;
10064
10249
  };
10065
10250
  /**
@@ -10071,13 +10256,13 @@ export type BuildTriggerAttributes = {
10071
10256
  */
10072
10257
  build_status: string;
10073
10258
  /**
10074
- * Unique token for the webhook (it's the same token present in `webhook_url`)
10259
+ * 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.
10075
10260
  */
10076
- webhook_token?: string;
10261
+ webhook_token: null | string;
10077
10262
  /**
10078
- * The URL of the webhook your service has to call when the build completes to report it's status (success or error)
10263
+ * 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.
10079
10264
  */
10080
- webhook_url: string;
10265
+ webhook_url: null | string;
10081
10266
  /**
10082
10267
  * Status of Site Search for the frontend
10083
10268
  */
@@ -11766,7 +11951,7 @@ export type Site = {
11766
11951
  */
11767
11952
  imgix_host: string | null;
11768
11953
  /**
11769
- * DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot change the project's settings.
11954
+ * DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot read the configuration of the project.
11770
11955
  */
11771
11956
  internal_domain: string | null;
11772
11957
  /**
@@ -11790,11 +11975,11 @@ export type Site = {
11790
11975
  */
11791
11976
  last_data_change_at: null | string;
11792
11977
  /**
11793
- * Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot change the project's settings.
11978
+ * 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.
11794
11979
  */
11795
11980
  require_2fa: boolean | null;
11796
11981
  /**
11797
- * Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot change the project's settings.
11982
+ * 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.
11798
11983
  */
11799
11984
  ip_tracking_enabled: boolean | null;
11800
11985
  /**
@@ -12113,7 +12298,7 @@ export type SiteAttributes = {
12113
12298
  */
12114
12299
  imgix_host: string | null;
12115
12300
  /**
12116
- * DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot change the project's settings.
12301
+ * DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot read the configuration of the project.
12117
12302
  */
12118
12303
  internal_domain: string | null;
12119
12304
  /**
@@ -12137,11 +12322,11 @@ export type SiteAttributes = {
12137
12322
  */
12138
12323
  last_data_change_at: null | string;
12139
12324
  /**
12140
- * Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot change the project's settings.
12325
+ * 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.
12141
12326
  */
12142
12327
  require_2fa: boolean | null;
12143
12328
  /**
12144
- * Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot change the project's settings.
12329
+ * 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.
12145
12330
  */
12146
12331
  ip_tracking_enabled: boolean | null;
12147
12332
  /**
@@ -151,7 +151,7 @@ export class Client {
151
151
  ...this.config,
152
152
  ...options,
153
153
  logFn: this.config.logFn || console.log,
154
- userAgent: '@datocms/cma-client v6.3.0',
154
+ userAgent: '@datocms/cma-client v6.7.0',
155
155
  baseUrl: this.baseUrl,
156
156
  preCallStack: new Error().stack,
157
157
  extraHeaders: {