@datocms/cma-client 6.4.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 +181 -0
  10. package/dist/esm/generated/Client.js +1 -1
  11. package/dist/esm/generated/RawApiTypes.d.ts +181 -0
  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 +181 -0
  24. package/dist/types/generated/RawApiTypes.d.ts +181 -0
  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 +1 -1
  30. package/resources.json +11 -2
  31. package/src/generated/ApiTypes.ts +181 -0
  32. package/src/generated/Client.ts +1 -1
  33. package/src/generated/RawApiTypes.ts +181 -0
  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
@@ -65,7 +65,7 @@ export default class Item extends BaseResource {
65
65
  }, 'page'>, iteratorOptions?: Utils.IteratorOptions): AsyncGenerator<RawApiTypes.ItemInstancesTargetSchema<NoInfer<D>, false>['data'][0]>;
66
66
  rawListPagedIterator<D extends ItemTypeDefinition = ItemTypeDefinition>(queryParams?: Utils.OmitFromKnownKeys<RawApiTypes.ItemInstancesHrefSchema<D>, 'page'>, iteratorOptions?: Utils.IteratorOptions): AsyncGenerator<RawApiTypes.ItemInstancesTargetSchema<NoInfer<D>, true>['data'][0]>;
67
67
  /**
68
- * Validates an existing record field
68
+ * Validate an existing record
69
69
  *
70
70
  * Read more: https://www.datocms.com/docs/content-management-api/resources/item/validate_existing
71
71
  *
@@ -76,7 +76,7 @@ export default class Item extends BaseResource {
76
76
  */
77
77
  validateExisting<D extends ItemTypeDefinition = ItemTypeDefinition>(itemId: string | ApiTypes.ItemData, body: ApiTypes.ItemValidateExistingSchema<NoInfer<D>>): Promise<void>;
78
78
  /**
79
- * Validates an existing record field
79
+ * Validate an existing record
80
80
  *
81
81
  * Read more: https://www.datocms.com/docs/content-management-api/resources/item/validate_existing
82
82
  *
@@ -87,7 +87,7 @@ export default class Item extends BaseResource {
87
87
  */
88
88
  rawValidateExisting<D extends ItemTypeDefinition = ItemTypeDefinition>(itemId: string, body: RawApiTypes.ItemValidateExistingSchema<NoInfer<D>>): Promise<void>;
89
89
  /**
90
- * Validates a record field
90
+ * Validate a new record
91
91
  *
92
92
  * Read more: https://www.datocms.com/docs/content-management-api/resources/item/validate_new
93
93
  *
@@ -98,7 +98,7 @@ export default class Item extends BaseResource {
98
98
  */
99
99
  validateNew<D extends ItemTypeDefinition = ItemTypeDefinition>(body: ApiTypes.ItemValidateNewSchema<NoInfer<D>>): Promise<void>;
100
100
  /**
101
- * Validates a record field
101
+ * Validate a new record
102
102
  *
103
103
  * Read more: https://www.datocms.com/docs/content-management-api/resources/item/validate_new
104
104
  *
@@ -47,7 +47,7 @@ export default class ItemType extends BaseResource {
47
47
  * @throws {ApiError}
48
48
  * @throws {TimeoutError}
49
49
  */
50
- list(): Promise<ApiTypes.ItemTypeInstancesTargetSchema>;
50
+ list(queryParams?: ApiTypes.ItemTypeInstancesHrefSchema): Promise<ApiTypes.ItemTypeInstancesTargetSchema>;
51
51
  /**
52
52
  * List all models/block models
53
53
  *
@@ -56,7 +56,7 @@ export default class ItemType extends BaseResource {
56
56
  * @throws {ApiError}
57
57
  * @throws {TimeoutError}
58
58
  */
59
- rawList(): Promise<RawApiTypes.ItemTypeInstancesTargetSchema>;
59
+ rawList(queryParams?: RawApiTypes.ItemTypeInstancesHrefSchema): Promise<RawApiTypes.ItemTypeInstancesTargetSchema>;
60
60
  /**
61
61
  * Retrieve a model/block model
62
62
  *
@@ -65,7 +65,7 @@ export default class ItemType extends BaseResource {
65
65
  * @throws {ApiError}
66
66
  * @throws {TimeoutError}
67
67
  */
68
- find(itemTypeId: string | ApiTypes.ItemTypeData): Promise<ApiTypes.ItemType>;
68
+ find(itemTypeId: string | ApiTypes.ItemTypeData, queryParams?: ApiTypes.ItemTypeSelfHrefSchema): Promise<ApiTypes.ItemType>;
69
69
  /**
70
70
  * Retrieve a model/block model
71
71
  *
@@ -74,7 +74,7 @@ export default class ItemType extends BaseResource {
74
74
  * @throws {ApiError}
75
75
  * @throws {TimeoutError}
76
76
  */
77
- rawFind(itemTypeId: string): Promise<RawApiTypes.ItemTypeSelfTargetSchema>;
77
+ rawFind(itemTypeId: string, queryParams?: RawApiTypes.ItemTypeSelfHrefSchema): Promise<RawApiTypes.ItemTypeSelfTargetSchema>;
78
78
  /**
79
79
  * Duplicate model/block model
80
80
  *
@@ -119,7 +119,7 @@ export default class ItemType extends BaseResource {
119
119
  * @throws {ApiError}
120
120
  * @throws {TimeoutError}
121
121
  */
122
- referencing(itemTypeId: string | ApiTypes.ItemTypeData): Promise<ApiTypes.ItemTypeReferencingTargetSchema>;
122
+ referencing(itemTypeId: string | ApiTypes.ItemTypeData, queryParams?: ApiTypes.ItemTypeReferencingHrefSchema): Promise<ApiTypes.ItemTypeReferencingTargetSchema>;
123
123
  /**
124
124
  * List models referencing another model/block
125
125
  *
@@ -128,7 +128,7 @@ export default class ItemType extends BaseResource {
128
128
  * @throws {ApiError}
129
129
  * @throws {TimeoutError}
130
130
  */
131
- rawReferencing(itemTypeId: string): Promise<RawApiTypes.ItemTypeReferencingTargetSchema>;
131
+ rawReferencing(itemTypeId: string, queryParams?: RawApiTypes.ItemTypeReferencingHrefSchema): Promise<RawApiTypes.ItemTypeReferencingTargetSchema>;
132
132
  /**
133
133
  * Reorders a set of fields and fieldsets within the model
134
134
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "6.4.0",
3
+ "version": "6.7.0",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
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
  /**
@@ -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.4.0',
154
+ userAgent: '@datocms/cma-client v6.7.0',
155
155
  baseUrl: this.baseUrl,
156
156
  preCallStack: new Error().stack,
157
157
  extraHeaders: {
@@ -264,6 +264,13 @@ export type AccountType = 'account';
264
264
  * via the `definition` "id".
265
265
  */
266
266
  export type AccountIdentity = string;
267
+ /**
268
+ * Attributes and relationships to return for each `account` that this endpoint returns.
269
+ *
270
+ * This interface was referenced by `Account`'s JSON-Schema
271
+ * via the `definition` "sparse_fieldset".
272
+ */
273
+ export type AccountSparseFieldset = string;
267
274
  /**
268
275
  * This interface was referenced by `Organization`'s JSON-Schema
269
276
  * via the `definition` "type".
@@ -279,6 +286,13 @@ export type OrganizationType = 'organization';
279
286
  * via the `definition` "id".
280
287
  */
281
288
  export type OrganizationIdentity = string;
289
+ /**
290
+ * Attributes and relationships to return for each `organization` that this endpoint returns.
291
+ *
292
+ * This interface was referenced by `Organization`'s JSON-Schema
293
+ * via the `definition` "sparse_fieldset".
294
+ */
295
+ export type OrganizationSparseFieldset = string;
282
296
  /**
283
297
  * This interface was referenced by `User`'s JSON-Schema
284
298
  * via the `me.hrefSchema` link.
@@ -495,6 +509,13 @@ export type FieldsetIdentity = string;
495
509
  * via the `definition` "type".
496
510
  */
497
511
  export type WorkflowType = 'workflow';
512
+ /**
513
+ * Attributes and relationships to return for each `item_type` that this endpoint returns.
514
+ *
515
+ * This interface was referenced by `ItemType`'s JSON-Schema
516
+ * via the `definition` "sparse_fieldset".
517
+ */
518
+ export type ItemTypeSparseFieldset = string;
498
519
  /**
499
520
  * This interface was referenced by `ItemType`'s JSON-Schema
500
521
  * via the `create.hrefSchema` link.
@@ -514,6 +535,42 @@ export type ItemTypeCreateHrefSchema = {
514
535
  schema_menu_item_id?: string;
515
536
  [k: string]: unknown;
516
537
  };
538
+ /**
539
+ * This interface was referenced by `ItemType`'s JSON-Schema
540
+ * via the `instances.hrefSchema` link.
541
+ */
542
+ export type ItemTypeInstancesHrefSchema = {
543
+ /**
544
+ * 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.
545
+ */
546
+ fields?: {
547
+ item_type?: ItemTypeSparseFieldset;
548
+ [k: string]: unknown;
549
+ };
550
+ [k: string]: unknown;
551
+ };
552
+ /**
553
+ * This interface was referenced by `ItemType`'s JSON-Schema
554
+ * via the `self.hrefSchema` link.
555
+ */
556
+ export type ItemTypeSelfHrefSchema = {
557
+ /**
558
+ * 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.
559
+ */
560
+ fields?: {
561
+ item_type?: ItemTypeSparseFieldset;
562
+ field?: FieldSparseFieldset;
563
+ [k: string]: unknown;
564
+ };
565
+ [k: string]: unknown;
566
+ };
567
+ /**
568
+ * Attributes and relationships to return for each `field` that this endpoint returns.
569
+ *
570
+ * This interface was referenced by `Field`'s JSON-Schema
571
+ * via the `definition` "sparse_fieldset".
572
+ */
573
+ export type FieldSparseFieldset = string;
517
574
  /**
518
575
  * This interface was referenced by `ItemType`'s JSON-Schema
519
576
  * via the `destroy.hrefSchema` link.
@@ -525,6 +582,111 @@ export type ItemTypeDestroyHrefSchema = {
525
582
  skip_menu_items_deletion?: boolean;
526
583
  [k: string]: unknown;
527
584
  };
585
+ /**
586
+ * This interface was referenced by `ItemType`'s JSON-Schema
587
+ * via the `referencing.hrefSchema` link.
588
+ */
589
+ export type ItemTypeReferencingHrefSchema = {
590
+ /**
591
+ * 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.
592
+ */
593
+ fields?: {
594
+ item_type?: ItemTypeSparseFieldset;
595
+ [k: string]: unknown;
596
+ };
597
+ [k: string]: unknown;
598
+ };
599
+ /**
600
+ * This interface was referenced by `Field`'s JSON-Schema
601
+ * via the `instances.hrefSchema` link.
602
+ */
603
+ export type FieldInstancesHrefSchema = {
604
+ /**
605
+ * 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.
606
+ */
607
+ fields?: {
608
+ field?: FieldSparseFieldset;
609
+ [k: string]: unknown;
610
+ };
611
+ [k: string]: unknown;
612
+ };
613
+ /**
614
+ * This interface was referenced by `Field`'s JSON-Schema
615
+ * via the `referencing.hrefSchema` link.
616
+ */
617
+ export type FieldReferencingHrefSchema = {
618
+ /**
619
+ * 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.
620
+ */
621
+ fields?: {
622
+ field?: FieldSparseFieldset;
623
+ [k: string]: unknown;
624
+ };
625
+ [k: string]: unknown;
626
+ };
627
+ /**
628
+ * This interface was referenced by `Field`'s JSON-Schema
629
+ * via the `related.hrefSchema` link.
630
+ */
631
+ export type FieldRelatedHrefSchema = {
632
+ /**
633
+ * 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.
634
+ */
635
+ fields?: {
636
+ field?: FieldSparseFieldset;
637
+ [k: string]: unknown;
638
+ };
639
+ [k: string]: unknown;
640
+ };
641
+ /**
642
+ * This interface was referenced by `Field`'s JSON-Schema
643
+ * via the `self.hrefSchema` link.
644
+ */
645
+ export type FieldSelfHrefSchema = {
646
+ /**
647
+ * 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.
648
+ */
649
+ fields?: {
650
+ field?: FieldSparseFieldset;
651
+ [k: string]: unknown;
652
+ };
653
+ [k: string]: unknown;
654
+ };
655
+ /**
656
+ * Attributes and relationships to return for each `fieldset` that this endpoint returns.
657
+ *
658
+ * This interface was referenced by `Fieldset`'s JSON-Schema
659
+ * via the `definition` "sparse_fieldset".
660
+ */
661
+ export type FieldsetSparseFieldset = string;
662
+ /**
663
+ * This interface was referenced by `Fieldset`'s JSON-Schema
664
+ * via the `instances.hrefSchema` link.
665
+ */
666
+ export type FieldsetInstancesHrefSchema = {
667
+ /**
668
+ * 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.
669
+ */
670
+ fields?: {
671
+ fieldset?: FieldsetSparseFieldset;
672
+ [k: string]: unknown;
673
+ };
674
+ [k: string]: unknown;
675
+ };
676
+ /**
677
+ * This interface was referenced by `Fieldset`'s JSON-Schema
678
+ * via the `self.hrefSchema` link.
679
+ */
680
+ export type FieldsetSelfHrefSchema = {
681
+ /**
682
+ * 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.
683
+ */
684
+ fields?: {
685
+ fieldset?: FieldsetSparseFieldset;
686
+ [k: string]: unknown;
687
+ };
688
+ [k: string]: unknown;
689
+ };
528
690
  /**
529
691
  * This interface was referenced by `Session`'s JSON-Schema
530
692
  * via the `definition` "type".
@@ -1656,6 +1818,13 @@ export type SiteType = 'site';
1656
1818
  * via the `definition` "id".
1657
1819
  */
1658
1820
  export type SiteIdentity = string;
1821
+ /**
1822
+ * Attributes and relationships to return for each `site` that this endpoint returns.
1823
+ *
1824
+ * This interface was referenced by `Site`'s JSON-Schema
1825
+ * via the `definition` "sparse_fieldset".
1826
+ */
1827
+ export type SiteSparseFieldset = string;
1659
1828
  /**
1660
1829
  * This interface was referenced by `Site`'s JSON-Schema
1661
1830
  * via the `self.hrefSchema` link.
@@ -1665,6 +1834,18 @@ export type SiteSelfHrefSchema = {
1665
1834
  * 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`.
1666
1835
  */
1667
1836
  include?: string;
1837
+ /**
1838
+ * 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.
1839
+ */
1840
+ fields?: {
1841
+ site?: SiteSparseFieldset;
1842
+ item_type?: ItemTypeSparseFieldset;
1843
+ field?: FieldSparseFieldset;
1844
+ fieldset?: FieldsetSparseFieldset;
1845
+ account?: AccountSparseFieldset;
1846
+ organization?: OrganizationSparseFieldset;
1847
+ [k: string]: unknown;
1848
+ };
1668
1849
  [k: string]: unknown;
1669
1850
  };
1670
1851
  /**