@datocms/cma-client 0.1.8 → 1.1.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 (36) hide show
  1. package/dist/cjs/generated/resources/Item.js.map +1 -1
  2. package/dist/cjs/generated/resources/SearchResult.js +116 -0
  3. package/dist/cjs/generated/resources/SearchResult.js.map +1 -1
  4. package/dist/cjs/generated/resources/Site.js +4 -3
  5. package/dist/cjs/generated/resources/Site.js.map +1 -1
  6. package/dist/cjs/generated/resources/User.js +26 -3
  7. package/dist/cjs/generated/resources/User.js.map +1 -1
  8. package/dist/esm/buildBlockRecord.d.ts +1 -1
  9. package/dist/esm/generated/SchemaTypes.d.ts +1301 -440
  10. package/dist/esm/generated/SimpleSchemaTypes.d.ts +1354 -508
  11. package/dist/esm/generated/resources/Item.d.ts +6 -6
  12. package/dist/esm/generated/resources/Item.js.map +1 -1
  13. package/dist/esm/generated/resources/SearchResult.d.ts +15 -2
  14. package/dist/esm/generated/resources/SearchResult.js +116 -0
  15. package/dist/esm/generated/resources/SearchResult.js.map +1 -1
  16. package/dist/esm/generated/resources/Site.d.ts +2 -2
  17. package/dist/esm/generated/resources/Site.js +4 -3
  18. package/dist/esm/generated/resources/Site.js.map +1 -1
  19. package/dist/esm/generated/resources/User.d.ts +14 -2
  20. package/dist/esm/generated/resources/User.js +26 -3
  21. package/dist/esm/generated/resources/User.js.map +1 -1
  22. package/dist/types/buildBlockRecord.d.ts +1 -1
  23. package/dist/types/generated/SchemaTypes.d.ts +1301 -440
  24. package/dist/types/generated/SimpleSchemaTypes.d.ts +1354 -508
  25. package/dist/types/generated/resources/Item.d.ts +6 -6
  26. package/dist/types/generated/resources/SearchResult.d.ts +15 -2
  27. package/dist/types/generated/resources/Site.d.ts +2 -2
  28. package/dist/types/generated/resources/User.d.ts +14 -2
  29. package/package.json +4 -4
  30. package/resources.json +10 -0
  31. package/src/generated/SchemaTypes.ts +1308 -446
  32. package/src/generated/SimpleSchemaTypes.ts +1354 -508
  33. package/src/generated/resources/Item.ts +6 -6
  34. package/src/generated/resources/SearchResult.ts +42 -2
  35. package/src/generated/resources/Site.ts +6 -3
  36. package/src/generated/resources/User.ts +36 -3
@@ -81,17 +81,13 @@ export type UserType = 'user';
81
81
  export type UserIdentity = string;
82
82
  /**
83
83
  * This interface was referenced by `User`'s JSON-Schema
84
- * via the `destroy.hrefSchema` link.
84
+ * via the `self.hrefSchema` link.
85
85
  */
86
- export type UserDestroyHrefSchema = {
87
- /**
88
- * New owner for resources previously owned by the deleted user. This argument specifies the new owner type.
89
- */
90
- destination_user_type?: 'account' | 'user' | 'access_token' | 'sso_user';
86
+ export type UserSelfHrefSchema = {
91
87
  /**
92
- * New owner for resources previously owned by the deleted user. This argument specifies the new owner ID.
88
+ * 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: `role`.
93
89
  */
94
- destination_user_id?: string;
90
+ include?: string;
95
91
  [k: string]: unknown;
96
92
  };
97
93
  /**
@@ -146,20 +142,35 @@ export type SsoUserDestroyHrefSchema = {
146
142
  /**
147
143
  * JSON API type field
148
144
  *
149
- * This interface was referenced by `AuditLogEvent`'s JSON-Schema
145
+ * This interface was referenced by `AccessToken`'s JSON-Schema
150
146
  * via the `definition` "type".
151
147
  */
152
- export type AuditLogEventType = 'audit_log_event';
148
+ export type AccessTokenType = 'access_token';
153
149
  /**
154
- * ULID of event (https://github.com/ulid/spec)
150
+ * ID of access_token
155
151
  *
156
- * This interface was referenced by `AuditLogEvent`'s JSON-Schema
152
+ * This interface was referenced by `AccessToken`'s JSON-Schema
157
153
  * via the `definition` "identity".
158
154
  *
159
- * This interface was referenced by `AuditLogEvent`'s JSON-Schema
155
+ * This interface was referenced by `AccessToken`'s JSON-Schema
160
156
  * via the `definition` "id".
161
157
  */
162
- export type AuditLogEventIdentity = string;
158
+ export type AccessTokenIdentity = string;
159
+ /**
160
+ * This interface was referenced by `AccessToken`'s JSON-Schema
161
+ * via the `destroy.hrefSchema` link.
162
+ */
163
+ export type AccessTokenDestroyHrefSchema = {
164
+ /**
165
+ * New owner for resources previously owned by the deleted access token. This argument specifies the new owner type.
166
+ */
167
+ destination_user_type?: 'account' | 'user' | 'access_token' | 'sso_user';
168
+ /**
169
+ * New owner for resources previously owned by the deleted access token. This argument specifies the new owner ID.
170
+ */
171
+ destination_user_id?: string;
172
+ [k: string]: unknown;
173
+ };
163
174
  /**
164
175
  * JSON API type field
165
176
  *
@@ -177,6 +188,49 @@ export type AccountType = 'account';
177
188
  * via the `definition` "id".
178
189
  */
179
190
  export type AccountIdentity = string;
191
+ /**
192
+ * This interface was referenced by `User`'s JSON-Schema
193
+ * via the `me.hrefSchema` link.
194
+ */
195
+ export type UserMeHrefSchema = {
196
+ /**
197
+ * 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: `role`.
198
+ */
199
+ include?: string;
200
+ [k: string]: unknown;
201
+ };
202
+ /**
203
+ * This interface was referenced by `User`'s JSON-Schema
204
+ * via the `destroy.hrefSchema` link.
205
+ */
206
+ export type UserDestroyHrefSchema = {
207
+ /**
208
+ * New owner for resources previously owned by the deleted user. This argument specifies the new owner type.
209
+ */
210
+ destination_user_type?: 'account' | 'user' | 'access_token' | 'sso_user';
211
+ /**
212
+ * New owner for resources previously owned by the deleted user. This argument specifies the new owner ID.
213
+ */
214
+ destination_user_id?: string;
215
+ [k: string]: unknown;
216
+ };
217
+ /**
218
+ * JSON API type field
219
+ *
220
+ * This interface was referenced by `AuditLogEvent`'s JSON-Schema
221
+ * via the `definition` "type".
222
+ */
223
+ export type AuditLogEventType = 'audit_log_event';
224
+ /**
225
+ * ULID of event (https://github.com/ulid/spec)
226
+ *
227
+ * This interface was referenced by `AuditLogEvent`'s JSON-Schema
228
+ * via the `definition` "identity".
229
+ *
230
+ * This interface was referenced by `AuditLogEvent`'s JSON-Schema
231
+ * via the `definition` "id".
232
+ */
233
+ export type AuditLogEventIdentity = string;
180
234
  /**
181
235
  * JSON API type field
182
236
  *
@@ -264,6 +318,23 @@ export type FieldType = 'field';
264
318
  * via the `definition` "id".
265
319
  */
266
320
  export type FieldIdentity = string;
321
+ /**
322
+ * JSON API type fieldset
323
+ *
324
+ * This interface was referenced by `Fieldset`'s JSON-Schema
325
+ * via the `definition` "type".
326
+ */
327
+ export type FieldsetType = 'fieldset';
328
+ /**
329
+ * ID of fieldset
330
+ *
331
+ * This interface was referenced by `Fieldset`'s JSON-Schema
332
+ * via the `definition` "identity".
333
+ *
334
+ * This interface was referenced by `Fieldset`'s JSON-Schema
335
+ * via the `definition` "id".
336
+ */
337
+ export type FieldsetIdentity = string;
267
338
  /**
268
339
  * JSON API type field
269
340
  *
@@ -288,23 +359,6 @@ export type JobType = 'job';
288
359
  * via the `definition` "id".
289
360
  */
290
361
  export type JobIdentity = string;
291
- /**
292
- * JSON API type fieldset
293
- *
294
- * This interface was referenced by `Fieldset`'s JSON-Schema
295
- * via the `definition` "type".
296
- */
297
- export type FieldsetType = 'fieldset';
298
- /**
299
- * ID of fieldset
300
- *
301
- * This interface was referenced by `Fieldset`'s JSON-Schema
302
- * via the `definition` "identity".
303
- *
304
- * This interface was referenced by `Fieldset`'s JSON-Schema
305
- * via the `definition` "id".
306
- */
307
- export type FieldsetIdentity = string;
308
362
  /**
309
363
  * JSON API type field
310
364
  *
@@ -322,38 +376,6 @@ export type SessionType = 'session';
322
376
  * via the `definition` "id".
323
377
  */
324
378
  export type SessionIdentity = string;
325
- /**
326
- * JSON API type field
327
- *
328
- * This interface was referenced by `AccessToken`'s JSON-Schema
329
- * via the `definition` "type".
330
- */
331
- export type AccessTokenType = 'access_token';
332
- /**
333
- * ID of access_token
334
- *
335
- * This interface was referenced by `AccessToken`'s JSON-Schema
336
- * via the `definition` "identity".
337
- *
338
- * This interface was referenced by `AccessToken`'s JSON-Schema
339
- * via the `definition` "id".
340
- */
341
- export type AccessTokenIdentity = string;
342
- /**
343
- * This interface was referenced by `AccessToken`'s JSON-Schema
344
- * via the `destroy.hrefSchema` link.
345
- */
346
- export type AccessTokenDestroyHrefSchema = {
347
- /**
348
- * New owner for resources previously owned by the deleted access token. This argument specifies the new owner type.
349
- */
350
- destination_user_type?: 'account' | 'user' | 'access_token' | 'sso_user';
351
- /**
352
- * New owner for resources previously owned by the deleted access token. This argument specifies the new owner ID.
353
- */
354
- destination_user_id?: string;
355
- [k: string]: unknown;
356
- };
357
379
  /**
358
380
  * JSON API type field
359
381
  *
@@ -808,25 +830,37 @@ export type SearchResultIdentity = string;
808
830
  */
809
831
  export type SearchResultInstancesHrefSchema = {
810
832
  /**
811
- * The query string to search
812
- */
813
- q: string;
814
- /**
815
- * The build trigger ID on which the search will be performed
816
- */
817
- build_trigger_id?: string;
818
- /**
819
- * Restrict the search on one locale
820
- */
821
- locale?: string;
822
- /**
823
- * Maximum number of results to return (defaults to 20, maximum is 100)
833
+ * Attributes to manage results pagination
824
834
  */
825
- limit?: number;
835
+ page?: {
836
+ /**
837
+ * Index of first element to fetch (defaults to 0)
838
+ */
839
+ offset?: number;
840
+ /**
841
+ * Number of elements to fetch (defaults to 20, maximum is 100)
842
+ */
843
+ limit?: number;
844
+ [k: string]: unknown;
845
+ };
826
846
  /**
827
- * Number of records to offset for the search
847
+ * Attributes to filter search results
828
848
  */
829
- offset?: string;
849
+ filter: {
850
+ /**
851
+ * Text to search
852
+ */
853
+ query: string;
854
+ /**
855
+ * The build trigger ID on which the search will be performed. Required if more than one build trigger is present in a project
856
+ */
857
+ build_trigger_id?: string;
858
+ /**
859
+ * Restrict the search on pages in a specific locale
860
+ */
861
+ locale?: string;
862
+ [k: string]: unknown;
863
+ };
830
864
  [k: string]: unknown;
831
865
  };
832
866
  /**
@@ -1214,6 +1248,17 @@ export type SiteType = 'site';
1214
1248
  * via the `definition` "id".
1215
1249
  */
1216
1250
  export type SiteIdentity = string;
1251
+ /**
1252
+ * This interface was referenced by `Site`'s JSON-Schema
1253
+ * via the `self.hrefSchema` link.
1254
+ */
1255
+ export type SiteSelfHrefSchema = {
1256
+ /**
1257
+ * 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`.
1258
+ */
1259
+ include?: string;
1260
+ [k: string]: unknown;
1261
+ };
1217
1262
 
1218
1263
  export type DatoApi = {
1219
1264
  role?: Role;
@@ -2414,14 +2459,16 @@ export type UserInstancesTargetSchema = {
2414
2459
  */
2415
2460
  export type UserSelfTargetSchema = {
2416
2461
  data: User;
2462
+ included?: Role[];
2417
2463
  };
2418
2464
 
2419
2465
  /**
2420
2466
  * This interface was referenced by `User`'s JSON-Schema
2421
- * via the `destroy.targetSchema` link.
2467
+ * via the `me.targetSchema` link.
2422
2468
  */
2423
- export type UserDestroyTargetSchema = {
2424
- data: User;
2469
+ export type UserMeTargetSchema = {
2470
+ data: User | SsoUser | AccessToken | Account;
2471
+ included?: Role[];
2425
2472
  };
2426
2473
 
2427
2474
  /**
@@ -2556,177 +2603,195 @@ export type SsoUserDestroyTargetSchema = {
2556
2603
  };
2557
2604
 
2558
2605
  /**
2559
- * If the Audit log functionality is enabled in a project, logged events can be queried using SQL-like language and fetched in full detail so that they can be exported or analyzed.
2606
+ * An API token allows access to our API. It is linked to a Role, which describes what actions can be performed.
2560
2607
  *
2561
2608
  * This interface was referenced by `DatoApi`'s JSON-Schema
2562
- * via the `definition` "audit_log_event".
2609
+ * via the `definition` "access_token".
2563
2610
  */
2564
- export type AuditLogEvent = {
2565
- type: AuditLogEventType;
2566
- id: AuditLogEventIdentity;
2567
- attributes: AuditLogEventAttributes;
2568
- meta: AuditLogEventMeta;
2611
+ export type AccessToken = {
2612
+ type: AccessTokenType;
2613
+ id: AccessTokenIdentity;
2614
+ attributes: AccessTokenAttributes;
2615
+ relationships: AccessTokenRelationships;
2569
2616
  };
2570
2617
 
2571
2618
  /**
2572
2619
  * JSON API attributes
2573
2620
  *
2574
- * This interface was referenced by `AuditLogEvent`'s JSON-Schema
2621
+ * This interface was referenced by `AccessToken`'s JSON-Schema
2575
2622
  * via the `definition` "attributes".
2576
2623
  */
2577
- export type AuditLogEventAttributes = {
2624
+ export type AccessTokenAttributes = {
2578
2625
  /**
2579
- * The actual action performed
2626
+ * Name of API token
2580
2627
  */
2581
- action_name: string;
2628
+ name: string;
2582
2629
  /**
2583
- * The actor who performed the action
2630
+ * The actual API token (or null if the current user has no permission to read the token)
2584
2631
  */
2585
- actor: {
2586
- /**
2587
- * The type of actor (can be `account`, `user`, `sso_user` or `access_token`)
2588
- */
2589
- type: string;
2590
- /**
2591
- * The ID of the actor
2592
- */
2593
- id: string;
2594
- /**
2595
- * An human representation of the actor (name/email/username depending on the type of actor)
2596
- */
2597
- name: string;
2598
- };
2632
+ token?: null | string;
2599
2633
  /**
2600
- * The role of the actor at the time the action was performed
2634
+ * Whether this API token can access the Content Delivery API published content endpoint
2601
2635
  */
2602
- role: null | {
2603
- /**
2604
- * The name of the role
2605
- */
2606
- name: string;
2607
- /**
2608
- * The ID of the role
2609
- */
2610
- id: string;
2611
- };
2636
+ can_access_cda: boolean;
2612
2637
  /**
2613
- * The environment inside of which the action was performed
2638
+ * Whether this API token can access the Content Delivery API draft content endpoint
2614
2639
  */
2615
- environment: {
2616
- /**
2617
- * The ID of the environment
2618
- */
2619
- id: string;
2620
- /**
2621
- * Whether the environment was the primary one at the time the action was performed
2622
- */
2623
- primary: boolean;
2624
- };
2640
+ can_access_cda_preview: boolean;
2625
2641
  /**
2626
- * The actual request being performed
2642
+ * Whether this API token can access the Content Management API
2627
2643
  */
2628
- request: {
2629
- /**
2630
- * The full path of the request
2631
- */
2632
- path: string;
2633
- /**
2634
- * The HTTP method of the request
2635
- */
2636
- method: string;
2637
- /**
2638
- * The X-Request-ID header of the request
2639
- */
2640
- id?: string;
2641
- /**
2642
- * The full HTTP body of the request
2643
- */
2644
- payload?: null | {
2645
- [k: string]: unknown;
2646
- };
2647
- };
2648
- /**
2649
- * The actual response being returned by DatoCMS
2650
- */
2651
- response: null | {
2652
- /**
2653
- * The HTTP status code of the response
2654
- */
2655
- status: number;
2656
- /**
2657
- * The full HTTP body of the response
2658
- */
2659
- payload: {
2660
- [k: string]: unknown;
2661
- };
2662
- };
2644
+ can_access_cma: boolean;
2645
+ hardcoded_type: null | string;
2663
2646
  };
2664
2647
 
2665
2648
  /**
2666
- * JSON API meta
2649
+ * JSON API links
2667
2650
  *
2668
- * This interface was referenced by `AuditLogEvent`'s JSON-Schema
2669
- * via the `definition` "meta".
2651
+ * This interface was referenced by `AccessToken`'s JSON-Schema
2652
+ * via the `definition` "relationships".
2670
2653
  */
2671
- export type AuditLogEventMeta = {
2654
+ export type AccessTokenRelationships = {
2672
2655
  /**
2673
- * The date of the event
2656
+ * Role
2674
2657
  */
2675
- occurred_at: string;
2658
+ role: {
2659
+ data: RoleData | null;
2660
+ };
2676
2661
  };
2677
2662
 
2678
2663
  /**
2679
2664
  * JSON API data
2680
2665
  *
2681
- * This interface was referenced by `AuditLogEvent`'s JSON-Schema
2666
+ * This interface was referenced by `AccessToken`'s JSON-Schema
2682
2667
  * via the `definition` "data".
2683
2668
  */
2684
- export type AuditLogEventData = {
2685
- type: AuditLogEventType;
2686
- id: AuditLogEventIdentity;
2669
+ export type AccessTokenData = {
2670
+ type: AccessTokenType;
2671
+ id: AccessTokenIdentity;
2687
2672
  };
2688
2673
 
2689
2674
  /**
2690
- * This interface was referenced by `AuditLogEvent`'s JSON-Schema
2691
- * via the `query.schema` link.
2675
+ * This interface was referenced by `AccessToken`'s JSON-Schema
2676
+ * via the `create.schema` link.
2692
2677
  */
2693
- export type AuditLogEventQuerySchema = {
2678
+ export type AccessTokenCreateSchema = {
2694
2679
  data: {
2695
- /**
2696
- * JSON API type field
2697
- */
2698
- type: 'audit_log_query';
2680
+ type: AccessTokenType;
2699
2681
  attributes: {
2700
2682
  /**
2701
- * An SQL-like expression to filter the events
2683
+ * Name of API token
2702
2684
  */
2703
- filter?: string;
2685
+ name: string;
2704
2686
  /**
2705
- * Set this value to get remaining results, if a meta.next_token was returned in the previous query response
2687
+ * Whether this API token can access the Content Delivery API published content endpoint
2706
2688
  */
2707
- next_token?: string;
2689
+ can_access_cda: boolean;
2708
2690
  /**
2709
- * Whether a detailed log complete with full request and response payload must be returned or not
2691
+ * Whether this API token can access the Content Delivery API draft content endpoint
2710
2692
  */
2711
- detailed_log?: boolean;
2693
+ can_access_cda_preview: boolean;
2694
+ /**
2695
+ * Whether this API token can access the Content Management API
2696
+ */
2697
+ can_access_cma: boolean;
2698
+ };
2699
+ relationships: {
2700
+ /**
2701
+ * Role
2702
+ */
2703
+ role: {
2704
+ data: RoleData | null;
2705
+ };
2712
2706
  };
2713
2707
  };
2714
2708
  };
2715
2709
 
2716
2710
  /**
2717
- * This interface was referenced by `AuditLogEvent`'s JSON-Schema
2718
- * via the `query.targetSchema` link.
2711
+ * This interface was referenced by `AccessToken`'s JSON-Schema
2712
+ * via the `create.targetSchema` link.
2719
2713
  */
2720
- export type AuditLogEventQueryTargetSchema = {
2721
- data: AuditLogEvent[];
2722
- meta: {
2723
- /**
2724
- * If the response request exceeds the response payload limit DatoCMS will set this value in the response. If set, you can use that this value in the subsequent request to get the remaining results
2725
- */
2726
- next_token: null | string;
2714
+ export type AccessTokenCreateTargetSchema = {
2715
+ data: AccessToken;
2716
+ };
2717
+
2718
+ /**
2719
+ * This interface was referenced by `AccessToken`'s JSON-Schema
2720
+ * via the `update.schema` link.
2721
+ */
2722
+ export type AccessTokenUpdateSchema = {
2723
+ data: {
2724
+ type: AccessTokenType;
2725
+ id: AccessTokenIdentity;
2726
+ attributes: {
2727
+ /**
2728
+ * Name of API token
2729
+ */
2730
+ name: string;
2731
+ /**
2732
+ * Whether this API token can access the Content Delivery API published content endpoint
2733
+ */
2734
+ can_access_cda: boolean;
2735
+ /**
2736
+ * Whether this API token can access the Content Delivery API draft content endpoint
2737
+ */
2738
+ can_access_cda_preview: boolean;
2739
+ /**
2740
+ * Whether this API token can access the Content Management API
2741
+ */
2742
+ can_access_cma: boolean;
2743
+ };
2744
+ relationships: {
2745
+ /**
2746
+ * Role
2747
+ */
2748
+ role: {
2749
+ data: RoleData | null;
2750
+ };
2751
+ };
2727
2752
  };
2728
2753
  };
2729
2754
 
2755
+ /**
2756
+ * This interface was referenced by `AccessToken`'s JSON-Schema
2757
+ * via the `update.targetSchema` link.
2758
+ */
2759
+ export type AccessTokenUpdateTargetSchema = {
2760
+ data: AccessToken;
2761
+ };
2762
+
2763
+ /**
2764
+ * This interface was referenced by `AccessToken`'s JSON-Schema
2765
+ * via the `instances.targetSchema` link.
2766
+ */
2767
+ export type AccessTokenInstancesTargetSchema = {
2768
+ data: AccessToken[];
2769
+ };
2770
+
2771
+ /**
2772
+ * This interface was referenced by `AccessToken`'s JSON-Schema
2773
+ * via the `self.targetSchema` link.
2774
+ */
2775
+ export type AccessTokenSelfTargetSchema = {
2776
+ data: AccessToken;
2777
+ };
2778
+
2779
+ /**
2780
+ * This interface was referenced by `AccessToken`'s JSON-Schema
2781
+ * via the `regenerate_token.targetSchema` link.
2782
+ */
2783
+ export type AccessTokenRegenerateTokenTargetSchema = {
2784
+ data: AccessToken;
2785
+ };
2786
+
2787
+ /**
2788
+ * This interface was referenced by `AccessToken`'s JSON-Schema
2789
+ * via the `destroy.targetSchema` link.
2790
+ */
2791
+ export type AccessTokenDestroyTargetSchema = {
2792
+ data: AccessToken;
2793
+ };
2794
+
2730
2795
  /**
2731
2796
  * DatoCMS account
2732
2797
  *
@@ -2779,6 +2844,186 @@ export type AccountData = {
2779
2844
  id: AccountIdentity;
2780
2845
  };
2781
2846
 
2847
+ /**
2848
+ * This interface was referenced by `User`'s JSON-Schema
2849
+ * via the `destroy.targetSchema` link.
2850
+ */
2851
+ export type UserDestroyTargetSchema = {
2852
+ data: User;
2853
+ };
2854
+
2855
+ /**
2856
+ * If the Audit log functionality is enabled in a project, logged events can be queried using SQL-like language and fetched in full detail so that they can be exported or analyzed.
2857
+ *
2858
+ * This interface was referenced by `DatoApi`'s JSON-Schema
2859
+ * via the `definition` "audit_log_event".
2860
+ */
2861
+ export type AuditLogEvent = {
2862
+ type: AuditLogEventType;
2863
+ id: AuditLogEventIdentity;
2864
+ attributes: AuditLogEventAttributes;
2865
+ meta: AuditLogEventMeta;
2866
+ };
2867
+
2868
+ /**
2869
+ * JSON API attributes
2870
+ *
2871
+ * This interface was referenced by `AuditLogEvent`'s JSON-Schema
2872
+ * via the `definition` "attributes".
2873
+ */
2874
+ export type AuditLogEventAttributes = {
2875
+ /**
2876
+ * The actual action performed
2877
+ */
2878
+ action_name: string;
2879
+ /**
2880
+ * The actor who performed the action
2881
+ */
2882
+ actor: {
2883
+ /**
2884
+ * The type of actor (can be `account`, `user`, `sso_user` or `access_token`)
2885
+ */
2886
+ type: string;
2887
+ /**
2888
+ * The ID of the actor
2889
+ */
2890
+ id: string;
2891
+ /**
2892
+ * An human representation of the actor (name/email/username depending on the type of actor)
2893
+ */
2894
+ name: string;
2895
+ };
2896
+ /**
2897
+ * The role of the actor at the time the action was performed
2898
+ */
2899
+ role: null | {
2900
+ /**
2901
+ * The name of the role
2902
+ */
2903
+ name: string;
2904
+ /**
2905
+ * The ID of the role
2906
+ */
2907
+ id: string;
2908
+ };
2909
+ /**
2910
+ * The environment inside of which the action was performed
2911
+ */
2912
+ environment: {
2913
+ /**
2914
+ * The ID of the environment
2915
+ */
2916
+ id: string;
2917
+ /**
2918
+ * Whether the environment was the primary one at the time the action was performed
2919
+ */
2920
+ primary: boolean;
2921
+ };
2922
+ /**
2923
+ * The actual request being performed
2924
+ */
2925
+ request: {
2926
+ /**
2927
+ * The full path of the request
2928
+ */
2929
+ path: string;
2930
+ /**
2931
+ * The HTTP method of the request
2932
+ */
2933
+ method: string;
2934
+ /**
2935
+ * The X-Request-ID header of the request
2936
+ */
2937
+ id?: string;
2938
+ /**
2939
+ * The full HTTP body of the request
2940
+ */
2941
+ payload?: null | {
2942
+ [k: string]: unknown;
2943
+ };
2944
+ };
2945
+ /**
2946
+ * The actual response being returned by DatoCMS
2947
+ */
2948
+ response: null | {
2949
+ /**
2950
+ * The HTTP status code of the response
2951
+ */
2952
+ status: number;
2953
+ /**
2954
+ * The full HTTP body of the response
2955
+ */
2956
+ payload: {
2957
+ [k: string]: unknown;
2958
+ };
2959
+ };
2960
+ };
2961
+
2962
+ /**
2963
+ * JSON API meta
2964
+ *
2965
+ * This interface was referenced by `AuditLogEvent`'s JSON-Schema
2966
+ * via the `definition` "meta".
2967
+ */
2968
+ export type AuditLogEventMeta = {
2969
+ /**
2970
+ * The date of the event
2971
+ */
2972
+ occurred_at: string;
2973
+ };
2974
+
2975
+ /**
2976
+ * JSON API data
2977
+ *
2978
+ * This interface was referenced by `AuditLogEvent`'s JSON-Schema
2979
+ * via the `definition` "data".
2980
+ */
2981
+ export type AuditLogEventData = {
2982
+ type: AuditLogEventType;
2983
+ id: AuditLogEventIdentity;
2984
+ };
2985
+
2986
+ /**
2987
+ * This interface was referenced by `AuditLogEvent`'s JSON-Schema
2988
+ * via the `query.schema` link.
2989
+ */
2990
+ export type AuditLogEventQuerySchema = {
2991
+ data: {
2992
+ /**
2993
+ * JSON API type field
2994
+ */
2995
+ type: 'audit_log_query';
2996
+ attributes: {
2997
+ /**
2998
+ * An SQL-like expression to filter the events
2999
+ */
3000
+ filter?: string;
3001
+ /**
3002
+ * Set this value to get remaining results, if a meta.next_token was returned in the previous query response
3003
+ */
3004
+ next_token?: string;
3005
+ /**
3006
+ * Whether a detailed log complete with full request and response payload must be returned or not
3007
+ */
3008
+ detailed_log?: boolean;
3009
+ };
3010
+ };
3011
+ };
3012
+
3013
+ /**
3014
+ * This interface was referenced by `AuditLogEvent`'s JSON-Schema
3015
+ * via the `query.targetSchema` link.
3016
+ */
3017
+ export type AuditLogEventQueryTargetSchema = {
3018
+ data: AuditLogEvent[];
3019
+ meta: {
3020
+ /**
3021
+ * If the response request exceeds the response payload limit DatoCMS will set this value in the response. If set, you can use that this value in the subsequent request to get the remaining results
3022
+ */
3023
+ next_token: null | string;
3024
+ };
3025
+ };
3026
+
2782
3027
  /**
2783
3028
  * Stores the information regarding the current plan for the project.
2784
3029
  *
@@ -2942,6 +3187,14 @@ export type SitePlanAttributes = {
2942
3187
  * Whether translator roles are enabled or not
2943
3188
  */
2944
3189
  translator_roles: boolean;
3190
+ /**
3191
+ * Whether or not use a static IP when sending webhooks
3192
+ */
3193
+ static_webhooks_ip: boolean;
3194
+ /**
3195
+ * Maximum size in bytes for a single file upload
3196
+ */
3197
+ maximum_single_upload_bytes: number;
2945
3198
  /**
2946
3199
  * Available extra packets
2947
3200
  */
@@ -3329,6 +3582,12 @@ export type ItemTypeRelationships = {
3329
3582
  fields: {
3330
3583
  data: FieldData[];
3331
3584
  };
3585
+ /**
3586
+ * The list of item type fieldsets
3587
+ */
3588
+ fieldsets: {
3589
+ data: FieldsetData[];
3590
+ };
3332
3591
  /**
3333
3592
  * The field to use as display title
3334
3593
  */
@@ -3383,6 +3642,17 @@ export type FieldData = {
3383
3642
  id: FieldIdentity;
3384
3643
  };
3385
3644
 
3645
+ /**
3646
+ * JSON API data
3647
+ *
3648
+ * This interface was referenced by `Fieldset`'s JSON-Schema
3649
+ * via the `definition` "data".
3650
+ */
3651
+ export type FieldsetData = {
3652
+ type: FieldsetType;
3653
+ id: FieldsetIdentity;
3654
+ };
3655
+
3386
3656
  /**
3387
3657
  * JSON API data
3388
3658
  *
@@ -3693,7 +3963,839 @@ export type ItemTypeDestroyJobSchema = {
3693
3963
  };
3694
3964
 
3695
3965
  /**
3696
- * Each Model consists of a set of fields. Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `file`, `float`, etc.) and any required validation.
3966
+ * DatoCMS offers a number of different fields that you can combine togheter to create a [Model](/docs/content-management-api/resources/item-type). Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `float`, etc.) and any required validation.
3967
+ *
3968
+ * ### Different field types require different settings
3969
+ *
3970
+ * When looking at a field resource, you have to pay attention to two particular properties, `validators` and `appearance`.
3971
+ *
3972
+ * The `validators` property expresses the set of validations to be performed server-side on a specific field value for it to be considered valid, while the `appearance` property lets you specify _how_ the field itself will be presented inside the form to the final editor.
3973
+ *
3974
+ * For both properties, the value to specify depends on the type of field itself. For example, you can add a "Limit character count" validation to a _Single-line string_ field, or set its appearence to "Show it as heading", but they won't be accepted for a ie. _Color_ field, as it supports different validations and appearance settings.
3975
+ *
3976
+ * ### Specifying validations
3977
+ *
3978
+ * The `validators` property requires an object whose keys are the validations that you want to be enforced, and the values are objects representing any settings that the validation itself requires. If the validation doesn't have additional settings, you just pass down an empty object.
3979
+ *
3980
+ * This is a valid example for a _Single-line string_ field:
3981
+ *
3982
+ * ```js
3983
+ * {
3984
+ * "validators": {
3985
+ * // "required" validator has no settings
3986
+ * "required": {},
3987
+ * // "length" validator requires "min" and/or "max" properties
3988
+ * "length": { "min": 80 }
3989
+ * }
3990
+ * }
3991
+ * ```
3992
+ *
3993
+ * Below you'll find a summary of all the validators available for each field type with their settings.
3994
+ *
3995
+ * Some validators are required for a specific type of field. For example, the _Slug_ field needs to have a `slug_title_field` validator to specify the ID of the _Single-line string_ field that will be used to generate the slug itself.
3996
+ *
3997
+ * ### Specifying the appearance
3998
+ *
3999
+ * The `appearance` property requires an object with three specific properties: `editor`, `parameters` and `addons`.
4000
+ *
4001
+ * The `editor` represents the type of editor that the users will see inside the form to change the value of this specific field. Depending on the type of field, DatoCMS offers a number of different editors for you to choose from. The `parameters` property is an object representing any additional settings that the editor itself might require.
4002
+ *
4003
+ * This is a valid example for a _Single-line string_ field:
4004
+ *
4005
+ * ```js
4006
+ * {
4007
+ * "appearance": {
4008
+ * // single_line is a DatoCMS built-in editor that you can use with single-line string fields
4009
+ * "editor": "single_line",
4010
+ * // each built-in editor has specific settings
4011
+ * "parameters": { "heading": true },
4012
+ * "addons": []
4013
+ * },
4014
+ * }
4015
+ * ```
4016
+ *
4017
+ * Following you'll find a summary of all the editors available for each field type with their settings.
4018
+ *
4019
+ * #### Setting the appearance to a field editor provided by a plugin
4020
+ *
4021
+ * If the project contains a plugin that exposes [manual field editors](/docs/plugin-sdk/manual-field-extensions), you can also configure the field to be presented with it instead of using one of the build-in editors.
4022
+ *
4023
+ * In this case:
4024
+ *
4025
+ * - the `editor` property must be the ID of the plugin;
4026
+ * - the `field_extension` property must be the ID of the specific manual field editor that the plugin exposes;
4027
+ * - the `parameters` property must provide a configuration object compatible with the [config screen of the manual field extension](/docs/plugin-sdk/manual-field-extensions#add-per-field-config-screens-to-manual-field-extensions), or an empty object if it doesn't require any configuration.
4028
+ *
4029
+ * ```js
4030
+ * {
4031
+ * "appearance": {
4032
+ * // "2132" is a the ID of a plugin exposing a manual field editor
4033
+ * "editor": "2134",
4034
+ * // "starRating" is a manual field editor exposed by the plugin
4035
+ * "field_extension": "starRating",
4036
+ * // this is a valid configuration for the "starRating" field editor
4037
+ * "parameters": { "maxRating": 5, "starsColor": "#ff0000" },
4038
+ * "addons": []
4039
+ * },
4040
+ * }
4041
+ * ```
4042
+ *
4043
+ * #### Configuring manual field addons
4044
+ *
4045
+ * If the project contains plugins that expose [manual field addons](/docs/plugin-sdk/manual-field-extensions), you can also add them to the field via the `addons` property.
4046
+ *
4047
+ * ```js
4048
+ * {
4049
+ * "appearance": {
4050
+ * "editor": "single_line",
4051
+ * "parameters": { "heading": true },
4052
+ * "addons": [
4053
+ * {
4054
+ * // "2138" is a the ID of a plugin exposing a manual addon editor
4055
+ * "id": "2138",
4056
+ * // "loremIpsumGenerator" is a manual field addon exposed by the plugin
4057
+ * "field_extension": "loremIpsumGenerator",
4058
+ * // this is a valid configuration for the "loremIpsumGenerator" field addon
4059
+ * "parameters": { "sentences": 2 },
4060
+ * }
4061
+ * ]
4062
+ * },
4063
+ * }
4064
+ * ```
4065
+ *
4066
+ * ### Available field types
4067
+ *
4068
+ * <details>
4069
+ * <summary>Single-line string (<code>string</code>)</summary>
4070
+ *
4071
+ * | Property | Value |
4072
+ * | ------------------------------ | ---------------------------------------------------- |
4073
+ * | Code | `string` |
4074
+ * | Built-in editors for the field | `single_line`, `string_radio_group`, `string_select` |
4075
+ * | Available validators | `required`, `unique`, `length`, `format`, `enum` |
4076
+ *
4077
+ * </details>
4078
+ *
4079
+ * <details>
4080
+ * <summary>Multi-line text (<code>text</code>)</summary>
4081
+ *
4082
+ * | Property | Value |
4083
+ * | ------------------------------ | --------------------------------- |
4084
+ * | Code | `text` |
4085
+ * | Built-in editors for the field | `markdown`, `wysiwyg`, `textarea` |
4086
+ * | Available validators | `required`, `length`, `format` |
4087
+ *
4088
+ * </details>
4089
+ *
4090
+ * <details>
4091
+ * <summary>Boolean (<code>boolean</code>)</summary>
4092
+ *
4093
+ * | Property | Value |
4094
+ * | ------------------------------ | -------------------------------- |
4095
+ * | Code | `boolean` |
4096
+ * | Built-in editors for the field | `boolean`, `boolean_radio_group` |
4097
+ * | Available validators | no validators available |
4098
+ *
4099
+ * </details>
4100
+ *
4101
+ * <details>
4102
+ * <summary>Integer (<code>integer</code>)</summary>
4103
+ *
4104
+ * | Property | Value |
4105
+ * | ------------------------------ | -------------------------- |
4106
+ * | Code | `integer` |
4107
+ * | Built-in editors for the field | `integer` |
4108
+ * | Available validators | `required`, `number_range` |
4109
+ *
4110
+ * </details>
4111
+ *
4112
+ * <details>
4113
+ * <summary>Float (<code>float</code>)</summary>
4114
+ *
4115
+ * | Property | Value |
4116
+ * | ------------------------------ | -------------------------- |
4117
+ * | Code | `float` |
4118
+ * | Built-in editors for the field | `float` |
4119
+ * | Available validators | `required`, `number_range` |
4120
+ *
4121
+ * </details>
4122
+ *
4123
+ * <details>
4124
+ * <summary>Date (<code>date</code>)</summary>
4125
+ *
4126
+ * | Property | Value |
4127
+ * | ------------------------------ | ------------------------ |
4128
+ * | Code | `date` |
4129
+ * | Built-in editors for the field | `date_picker` |
4130
+ * | Available validators | `required`, `date_range` |
4131
+ *
4132
+ * </details>
4133
+ *
4134
+ * <details>
4135
+ * <summary>Date time (<code>date_time</code>)</summary>
4136
+ *
4137
+ * | Property | Value |
4138
+ * | ------------------------------ | ----------------------------- |
4139
+ * | Code | `date_time` |
4140
+ * | Built-in editors for the field | `date_time_picker` |
4141
+ * | Available validators | `required`, `date_time_range` |
4142
+ *
4143
+ * </details>
4144
+ *
4145
+ * <details>
4146
+ * <summary>Color (<code>color</code>)</summary>
4147
+ *
4148
+ * | Property | Value |
4149
+ * | ------------------------------ | -------------- |
4150
+ * | Code | `color` |
4151
+ * | Built-in editors for the field | `color_picker` |
4152
+ * | Available validators | `required` |
4153
+ *
4154
+ * </details>
4155
+ *
4156
+ * <details>
4157
+ * <summary>JSON (<code>json</code>)</summary>
4158
+ *
4159
+ * | Property | Value |
4160
+ * | ------------------------------ | ------------------------------------------------------ |
4161
+ * | Code | `json` |
4162
+ * | Built-in editors for the field | `json`, `string_multi_select`, `string_checkbox_group` |
4163
+ * | Available validators | `required` |
4164
+ *
4165
+ * </details>
4166
+ *
4167
+ * <details>
4168
+ * <summary>Location (<code>lat_lon</code>)</summary>
4169
+ *
4170
+ * | Property | Value |
4171
+ * | ------------------------------ | ---------- |
4172
+ * | Code | `lat_lon` |
4173
+ * | Built-in editors for the field | `map` |
4174
+ * | Available validators | `required` |
4175
+ *
4176
+ * </details>
4177
+ *
4178
+ * <details>
4179
+ * <summary>SEO (<code>seo</code>)</summary>
4180
+ *
4181
+ * | Property | Value |
4182
+ * | ------------------------------ | -------------------------------------------------------------------------------------------- |
4183
+ * | Code | `seo` |
4184
+ * | Built-in editors for the field | `seo` |
4185
+ * | Available validators | `required_seo_fields`, `file_size`, `image_dimensions`, `title_length`, `description_length` |
4186
+ *
4187
+ * </details>
4188
+ *
4189
+ * <details>
4190
+ * <summary>Slug (<code>slug</code>)</summary>
4191
+ *
4192
+ * | Property | Value |
4193
+ * | ------------------------------ | ----------------------------------- |
4194
+ * | Code | `slug` |
4195
+ * | Built-in editors for the field | `slug` |
4196
+ * | Required validators | `slug_title_field` |
4197
+ * | Other validators available | `required`, `length`, `slug_format` |
4198
+ *
4199
+ * </details>
4200
+ *
4201
+ * <details>
4202
+ * <summary>External video (<code>video</code>)</summary>
4203
+ *
4204
+ * | Property | Value |
4205
+ * | ------------------------------ | ---------- |
4206
+ * | Code | `video` |
4207
+ * | Built-in editors for the field | `video` |
4208
+ * | Available validators | `required` |
4209
+ *
4210
+ * </details>
4211
+ *
4212
+ * <details>
4213
+ * <summary>Single-asset (<code>file</code>)</summary>
4214
+ *
4215
+ * | Property | Value |
4216
+ * | ------------------------------ | ------------------------------------------------------------------------------ |
4217
+ * | Code | `file` |
4218
+ * | Built-in editors for the field | `file` |
4219
+ * | Available validators | `required`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
4220
+ *
4221
+ * </details>
4222
+ *
4223
+ * <details>
4224
+ * <summary>Asset gallery (<code>gallery</code>)</summary>
4225
+ *
4226
+ * | Property | Value |
4227
+ * | ------------------------------ | -------------------------------------------------------------------------- |
4228
+ * | Code | `gallery` |
4229
+ * | Built-in editors for the field | `gallery` |
4230
+ * | Available validators | `size`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
4231
+ *
4232
+ * </details>
4233
+ *
4234
+ * <details>
4235
+ * <summary>Single link (<code>link</code>)</summary>
4236
+ *
4237
+ * | Property | Value |
4238
+ * | ------------------------------ | --------------------------- |
4239
+ * | Code | `link` |
4240
+ * | Built-in editors for the field | `link_select`, `link_embed` |
4241
+ * | Default `editor` | `link_select` |
4242
+ * | Required validators | `item_item_type` |
4243
+ * | Other validators available | `required`, `unique` |
4244
+ *
4245
+ * </details>
4246
+ *
4247
+ * <details>
4248
+ * <summary>Multiple links (<code>links</code>)</summary>
4249
+ *
4250
+ * | Property | Value |
4251
+ * | ------------------------------ | ----------------------------- |
4252
+ * | Code | `links` |
4253
+ * | Built-in editors for the field | `links_select`, `links_embed` |
4254
+ * | Default `editor` | `links_select` |
4255
+ * | Required validators | `items_item_type` |
4256
+ * | Other validators available | `size` |
4257
+ *
4258
+ * </details>
4259
+ *
4260
+ * <details>
4261
+ * <summary>Modular content (<code>rich_text</code>)</summary>
4262
+ *
4263
+ * | Property | Value |
4264
+ * | ------------------------------ | ------------------ |
4265
+ * | Code | `rich_text` |
4266
+ * | Built-in editors for the field | `rich_text` |
4267
+ * | Required validators | `rich_text_blocks` |
4268
+ * | Other validators available | `size` |
4269
+ *
4270
+ * </details>
4271
+ *
4272
+ * <details>
4273
+ * <summary>Structured text (<code>structured_text</code>)</summary>
4274
+ *
4275
+ * | Property | Value |
4276
+ * | ------------------------------ | ------------------------------------------------- |
4277
+ * | Code | `structured_text` |
4278
+ * | Built-in editors for the field | `structured_text` |
4279
+ * | Required validators | `structured_text_blocks`, `structured_text_links` |
4280
+ * | Other validators available | `length` |
4281
+ *
4282
+ * </details>
4283
+ *
4284
+ * ### Validators
4285
+ *
4286
+ * <details>
4287
+ * <summary><code>date_range</code></summary>
4288
+ *
4289
+ * Accept dates only inside a specified date range.
4290
+ *
4291
+ * | Parameter | Type | Required | Description |
4292
+ * | --------- | ------------- | -------- | ------------ |
4293
+ * | `min` | ISO 8601 date | | Minimum date |
4294
+ * | `max` | ISO 8601 date | | Maximum date |
4295
+ *
4296
+ * At least one of the parameters must be specified.
4297
+ *
4298
+ * </details>
4299
+ *
4300
+ * <details>
4301
+ * <summary><code>date_time_range</code></summary>
4302
+ *
4303
+ * Accept date times only inside a specified date range.
4304
+ *
4305
+ * | Parameter | Type | Required | Description |
4306
+ * | --------- | ----------------- | -------- | ---------------- |
4307
+ * | `min` | ISO 8601 datetime | | Minimum datetime |
4308
+ * | `max` | ISO 8601 datetime | | Maximum datetime |
4309
+ *
4310
+ * At least one of the parameters must be specified.
4311
+ *
4312
+ * </details>
4313
+ *
4314
+ * <details>
4315
+ * <summary><code>enum</code></summary>
4316
+ *
4317
+ * Only accept a specific set of values
4318
+ *
4319
+ * | Parameter | Type | Required | Description |
4320
+ * | --------- | --------------- | -------- | --------------------- |
4321
+ * | `values` | `Array<String>` | ✅ | Set of allowed values |
4322
+ *
4323
+ * </details>
4324
+ *
4325
+ * <details>
4326
+ * <summary><code>extension</code></summary>
4327
+ *
4328
+ * Only accept assets with specific file extensions.
4329
+ *
4330
+ * | Parameter | Type | Required | Description |
4331
+ * | ----------------- | ----------------------------------------- | -------- | ------------------------------ |
4332
+ * | `extensions` | `Array<String>` | | Set of allowed file extensions |
4333
+ * | `predefined_list` | one of `"image"`, `"transformable_image"`, `"video"`, `"document"` | | Allowed file type |
4334
+ *
4335
+ * Only one of the parameters must be specified.
4336
+ *
4337
+ * </details>
4338
+ *
4339
+ * <details>
4340
+ * <summary><code>file_size</code></summary>
4341
+ *
4342
+ * Accept assets only inside a specified date range.
4343
+ *
4344
+ * | Parameter | Type | Required | Description |
4345
+ * | ----------- | ---------------------------- | -------- | ---------------------------------- |
4346
+ * | `min_value` | `Integer` | | Numeric value for minimum filesize |
4347
+ * | `min_unit` | one of `"B"`, `"KB"`, `"MB"` | | Unit for minimum filesize |
4348
+ * | `max_value` | `Integer` | | Numeric value for maximum filesize |
4349
+ * | `max_unit` | one of `"B"`, `"KB"`, `"MB"` | | Unit for maximum filesize |
4350
+ *
4351
+ * At least one couple of value/unit must be specified.
4352
+ *
4353
+ * </details>
4354
+ *
4355
+ * <details>
4356
+ * <summary><code>format</code></summary>
4357
+ *
4358
+ * Only accept strings having a specific format.
4359
+ *
4360
+ * | Parameter | Type | Required | Description |
4361
+ * | -------------------- | ------------------------- | -------- | ---------------------------------- |
4362
+ * | `custom_pattern` | `Regexp` | | Regular expression to be validated |
4363
+ * | `predefined_pattern` | one of `"email"`, `"url"` | | Allowed format |
4364
+ *
4365
+ * Only one of the parameters must be specified.
4366
+ *
4367
+ * </details>
4368
+ *
4369
+ * <details>
4370
+ * <summary><code>slug_format</code></summary>
4371
+ *
4372
+ * Only accept slugs having a specific format.
4373
+ *
4374
+ * | Parameter | Type | Required | Description |
4375
+ * | -------------------- | ---------------- | -------- | ---------------------------------- |
4376
+ * | `custom_pattern` | `Regexp` | | Regular expression to be validated |
4377
+ * | `predefined_pattern` | `"webpage_slug"` | | Allowed format |
4378
+ *
4379
+ * Only one of the parameters must be specified.
4380
+ *
4381
+ * </details>
4382
+ *
4383
+ * <details>
4384
+ * <summary><code>image_dimensions</code></summary>
4385
+ *
4386
+ * Accept assets only within a specified height/width range.
4387
+ *
4388
+ * | Parameter | Type | Required | Description |
4389
+ * | ------------------ | --------- | -------- | -------------------------------- |
4390
+ * | `width_min_value` | `Integer` | | Numeric value for minimum width |
4391
+ * | `width_max_value` | `Integer` | | Numeric value for maximum height |
4392
+ * | `height_min_value` | `Integer` | | Numeric value for minimum width |
4393
+ * | `height_max_value` | `Integer` | | Numeric value for maximum height |
4394
+ *
4395
+ * At least one parameter must be specified.
4396
+ *
4397
+ * </details>
4398
+ *
4399
+ * <details>
4400
+ * <summary><code>item_item_type</code></summary>
4401
+ *
4402
+ * Only accept references to records of the specified models.
4403
+ *
4404
+ * | Parameter | Type | Required | Description |
4405
+ * | ------------------------------------------------- | ------------------------------------------------------------------------ | -------- | --------------------------------------------------------------------------------------------------- |
4406
+ * | `item_types` | `Array<Model ID>` | ✅ | Set of allowed model IDs |
4407
+ * | `on_publish_with_unpublished_references_strategy` | `"fail"`, `"publish_references"` (default value: `"fail"`) | | Strategy to apply when a publishing is requested and this field references some unpublished records |
4408
+ * | `on_reference_unpublish_strategy` | `"fail"`, `"unpublish"`, `"delete_references"` (default value: `"fail"`) | | Strategy to apply when unpublishing is requested for a record referenced by this field |
4409
+ * | `on_reference_delete_strategy` | `"fail"`, `"delete_references"` (default value: `"delete_references"`) | | Strategy to apply when deletion is requested for a record referenced by this field |
4410
+ *
4411
+ * Possible values for `on_publish_with_unpublished_references_strategy`:
4412
+ *
4413
+ * - `"fail"`: Fail the operation and notify the user
4414
+ * - `"publish_references"`: Publish also the referenced records
4415
+ *
4416
+ * Possible values for `on_reference_unpublish_strategy`:
4417
+ *
4418
+ * - `"fail"`: Fail the operation and notify the user
4419
+ * - `"unpublish"`: Unpublish also this record
4420
+ * - `"delete_references"`: Try to remove the reference to the unpublished record (if the field has a `required` validation it will fail)
4421
+ *
4422
+ * Possible values for `on_reference_delete_strategy`:
4423
+ *
4424
+ * - `"fail"`: Fail the operation and notify the user
4425
+ * - `"delete_references"`: Try to remove the reference to the deleted record (if the field has a `required` validation it will fail)
4426
+ * </details>
4427
+ *
4428
+ * <details>
4429
+ * <summary><code>items_item_type</code></summary>
4430
+ *
4431
+ * Only accept references to records of the specified models.
4432
+ *
4433
+ * | Parameter | Type | Required | Description |
4434
+ * | ------------------------------------------------- | ------------------------------------------------------------------------ | -------- | --------------------------------------------------------------------------------------------------- |
4435
+ * | `item_types` | `Array<Model ID>` | ✅ | Set of allowed model IDs |
4436
+ * | `on_publish_with_unpublished_references_strategy` | `"fail"`, `"publish_references"` (default value: `"fail"`) | | Strategy to apply when a publishing is requested and this field references some unpublished records |
4437
+ * | `on_reference_unpublish_strategy` | `"fail"`, `"unpublish"`, `"delete_references"` (default value: `"fail"`) | | Strategy to apply when unpublishing is requested for a record referenced by this field |
4438
+ * | `on_reference_delete_strategy` | `"fail"`, `"delete_references"` (default value: `"delete_references"`) | | Strategy to apply when deletion is requested for a record referenced by this field |
4439
+ *
4440
+ * Possible values for `on_publish_with_unpublished_references_strategy`:
4441
+ *
4442
+ * - `"fail"`: Fail the operation and notify the user
4443
+ * - `"publish_references"`: Publish also the referenced records
4444
+ *
4445
+ * Possible values for `on_reference_unpublish_strategy`:
4446
+ *
4447
+ * - `"fail"`: Fail the operation and notify the user
4448
+ * - `"unpublish"`: Unpublish also this record
4449
+ * - `"delete_references"`: Try to remove the reference to the unpublished record (if the field has a `required` validation it will fail)
4450
+ *
4451
+ * Possible values for `on_reference_delete_strategy`:
4452
+ *
4453
+ * - `"fail"`: Fail the operation and notify the user
4454
+ * - `"delete_references"`: Try to remove the reference to the deleted record (if the field has a `required` validation it will fail)
4455
+ * </details>
4456
+ *
4457
+ * <details>
4458
+ * <summary><code>length</code></summary>
4459
+ *
4460
+ * Accept strings only with a specified number of characters.
4461
+ *
4462
+ * | Parameter | Type | Required | Description |
4463
+ * | --------- | --------- | -------- | --------------- |
4464
+ * | `min` | `Integer` | | Minimum length |
4465
+ * | `eq` | `Integer` | | Expected length |
4466
+ * | `max` | `Integer` | | Maximum length |
4467
+ *
4468
+ * At least one parameter must be specified.
4469
+ *
4470
+ * </details>
4471
+ *
4472
+ * <details>
4473
+ * <summary><code>number_range</code></summary>
4474
+ *
4475
+ * Accept numbers only inside a specified range.
4476
+ *
4477
+ * | Parameter | Type | Required | Description |
4478
+ * | --------- | ------- | -------- | ------------- |
4479
+ * | `min` | `Float` | | Minimum value |
4480
+ * | `max` | `Float` | | Maximum value |
4481
+ *
4482
+ * At least one of the parameters must be specified.
4483
+ *
4484
+ * </details>
4485
+ *
4486
+ * <details>
4487
+ * <summary><code>required</code></summary>
4488
+ *
4489
+ * Value must be specified or it won't be valid.
4490
+ *
4491
+ * </details>
4492
+ *
4493
+ * <details>
4494
+ * <summary><code>required_alt_title</code></summary>
4495
+ *
4496
+ * Assets contained in the field are required to specify custom title or alternate text, or they won't be valid.
4497
+ *
4498
+ * | Parameter | Type | Required | Description |
4499
+ * | --------- | --------- | -------- | ---------------------------------------------------------- |
4500
+ * | `title` | `Boolean` | | Whether the title for the asset must be specified |
4501
+ * | `alt` | `Boolean` | | Whether the alternate text for the asset must be specified |
4502
+ *
4503
+ * At least one of the parameters must be specified.
4504
+ *
4505
+ * </details>
4506
+ *
4507
+ * <details>
4508
+ * <summary><code>required_seo_fields</code></summary>
4509
+ *
4510
+ * SEO field is to specify one or more properties, or it won't be valid.
4511
+ *
4512
+ * | Parameter | Type | Required | Description |
4513
+ * | -------------- | --------- | -------- | -------------------------------------------------- |
4514
+ * | `title` | `Boolean` | | Whether the meta title must be specified |
4515
+ * | `description` | `Boolean` | | Whether the meta description must be specified |
4516
+ * | `image` | `Boolean` | | Whether the social sharing image must be specified |
4517
+ * | `twitter_card` | `Boolean` | | Whether the type of Twitter card must be specified |
4518
+ *
4519
+ * At least one of the parameters must be specified.
4520
+ *
4521
+ * </details>
4522
+ *
4523
+ * <details>
4524
+ * <summary><code>title_length</code></summary>
4525
+ *
4526
+ * Limits the length of the title for a SEO field. Search engines usually truncate title tags to 60 character so it is a good practice to keep the title around this length.
4527
+ *
4528
+ * | Parameter | Type | Required | Description |
4529
+ * | --------- | --------- | -------- | ------------- |
4530
+ * | `min` | `Integer` | | Minimum value |
4531
+ * | `max` | `Integer` | | Maximum value |
4532
+ *
4533
+ * At least one of the parameters must be specified.
4534
+ *
4535
+ * </details>
4536
+ *
4537
+ * <details>
4538
+ * <summary><code>description_length</code></summary>
4539
+ *
4540
+ * Limits the length of the description for a SEO field. Search engines usually truncate description tags to 160 character so it is a good practice to keep the description around this length.
4541
+ *
4542
+ * | Parameter | Type | Required | Description |
4543
+ * | --------- | --------- | -------- | ------------- |
4544
+ * | `min` | `Integer` | | Minimum value |
4545
+ * | `max` | `Integer` | | Maximum value |
4546
+ *
4547
+ * At least one of the parameters must be specified.
4548
+ *
4549
+ * </details>
4550
+ *
4551
+ * <details>
4552
+ * <summary><code>rich_text_blocks</code></summary>
4553
+ *
4554
+ * Only accept references to block records of the specified block models.
4555
+ *
4556
+ * | Parameter | Type | Required | Description |
4557
+ * | ------------ | ----------------------- | -------- | ------------------------------ |
4558
+ * | `item_types` | `Array<Block Model ID>` | ✅ | Set of allowed Block Model IDs |
4559
+ *
4560
+ * </details>
4561
+ *
4562
+ * <details>
4563
+ * <summary><code>structured_text_blocks</code></summary>
4564
+ *
4565
+ * Only accept references to block records of the specified block models.
4566
+ *
4567
+ * | Parameter | Type | Required | Description |
4568
+ * | ------------ | ----------------------- | -------- | ------------------------------ |
4569
+ * | `item_types` | `Array<Block Model ID>` | ✅ | Set of allowed Block Model IDs |
4570
+ *
4571
+ * </details>
4572
+ *
4573
+ * <details>
4574
+ * <summary><code>structured_text_links</code></summary>
4575
+ *
4576
+ * Only accept `itemLink` to `inlineItem` nodes for records of the specified models.
4577
+ *
4578
+ * | Parameter | Type | Required | Description |
4579
+ * | ------------------------------------------------- | ------------------------------------------------------------------------------------- | -------- | --------------------------------------------------------------------------------------------------- |
4580
+ * | `item_types` | `Array<Model ID>` | ✅ | Set of allowed model IDs |
4581
+ * | `on_publish_with_unpublished_references_strategy` | `"fail"`, `"publish_references"` (default value: `"fail"`) | | Strategy to apply when a publishing is requested and this field references some unpublished records |
4582
+ * | `on_reference_unpublish_strategy` | `"fail"`, `"unpublish"`, `"delete_references"` (default value: `"delete_references"`) | | Strategy to apply when unpublishing is requested for a record referenced by this field |
4583
+ * | `on_reference_delete_strategy` | `"fail"`, `"delete_references"` (default value: `"delete_references"`) | | Strategy to apply when deletion is requested for a record referenced by this field |
4584
+ *
4585
+ * Possible values for `on_publish_with_unpublished_references_strategy`:
4586
+ *
4587
+ * - `"fail"`: Fail the operation and notify the user
4588
+ * - `"publish_references"`: Publish also the referenced records
4589
+ *
4590
+ * Possible values for `on_reference_unpublish_strategy`:
4591
+ *
4592
+ * - `"fail"`: Fail the operation and notify the user
4593
+ * - `"unpublish"`: Unpublish also this record
4594
+ * - `"delete_references"`: Try to remove the reference to the unpublished record (if the field has a `required` validation it will fail)
4595
+ *
4596
+ * Possible values for `on_reference_delete_strategy`:
4597
+ *
4598
+ * - `"fail"`: Fail the operation and notify the user
4599
+ * - `"delete_references"`: Try to remove the reference to the deleted record (if the field has a `required` validation it will fail)
4600
+ * </details>
4601
+ *
4602
+ * <details>
4603
+ * <summary><code>size</code></summary>
4604
+ *
4605
+ * Only accept a number of items within the specified range.
4606
+ *
4607
+ * | Parameter | Type | Required | Description |
4608
+ * | ------------- | --------- | -------- | -------------------------------------------------- |
4609
+ * | `min` | `Integer` | | Minimum length |
4610
+ * | `eq` | `Integer` | | Expected length |
4611
+ * | `max` | `Integer` | | Maximum length |
4612
+ * | `multiple_of` | `Integer` | | The number of items must be multiple of this value |
4613
+ *
4614
+ * At least one parameter must be specified.
4615
+ *
4616
+ * </details>
4617
+ *
4618
+ * <details>
4619
+ * <summary><code>slug_title_field</code></summary>
4620
+ *
4621
+ * Specifies the ID of the _Single-line string_ field that will be used to generate the slug
4622
+ *
4623
+ * | Parameter | Type | Required | Description |
4624
+ * | ---------------- | ---------- | -------- | ------------------------------------------------ |
4625
+ * | `title_field_id` | `Field ID` | ✅ | The field that will be used to generate the slug |
4626
+ *
4627
+ * </details>
4628
+ *
4629
+ * <details>
4630
+ * <summary><code>unique</code></summary>
4631
+ *
4632
+ * The value must be unique across the whole collection of records.
4633
+ *
4634
+ * </details>
4635
+ *
4636
+ * ### Configuration parameters for DatoCMS built-in field editors
4637
+ *
4638
+ * If a field editor is not specified in this table, just pass an empty object `{}` as its configuration parameters.
4639
+ *
4640
+ * <details>
4641
+ * <summary><code>boolean_radio_group</code></summary>
4642
+ *
4643
+ * Radio group input for _boolean_ fields.
4644
+ *
4645
+ * | Parameter | Type | Required | Description |
4646
+ * | ---------------- | ---------------------------------- | -------- | ----------------------------------------- |
4647
+ * | `positive_radio` | `{ label: string, hint?: string }` | ✅ | Radio input for positive choice (`true`) |
4648
+ * | `negative_radio` | `{ label: string, hint?: string }` | ✅ | Radio input for negative choice (`false`) |
4649
+ *
4650
+ * </details>
4651
+ *
4652
+ * <details>
4653
+ * <summary><code>string_radio_group</code></summary>
4654
+ *
4655
+ * Radio group input for _string_ fields.
4656
+ *
4657
+ * | Parameter | Type | Required | Description |
4658
+ * | --------- | -------------------------------------------------------- | -------- | --------------------------- |
4659
+ * | `radios` | `Array<{ label: string, value: string, hint?: string }>` | ✅ | The different radio options |
4660
+ *
4661
+ * </details>
4662
+ *
4663
+ * <details>
4664
+ * <summary><code>string_select</code></summary>
4665
+ *
4666
+ * Select input for _string_ fields.
4667
+ *
4668
+ * | Parameter | Type | Required | Description |
4669
+ * | --------- | -------------------------------------------------------- | -------- | ---------------------------- |
4670
+ * | `options` | `Array<{ label: string, value: string, hint?: string }>` | ✅ | The different select options |
4671
+ *
4672
+ * </details>
4673
+ *
4674
+ * <details>
4675
+ * <summary><code>string_multi_select</code></summary>
4676
+ *
4677
+ * Select input for _JSON_ fields, to edit an array of strings.
4678
+ *
4679
+ * | Parameter | Type | Required | Description |
4680
+ * | --------- | -------------------------------------------------------- | -------- | ---------------------------- |
4681
+ * | `options` | `Array<{ label: string, value: string, hint?: string }>` | ✅ | The different select options |
4682
+ *
4683
+ * </details>
4684
+ *
4685
+ * <details>
4686
+ * <summary><code>string_checkbox_group</code></summary>
4687
+ *
4688
+ * Multiple chechboxes input for _JSON_ fields, to edit an array of strings.
4689
+ *
4690
+ * | Parameter | Type | Required | Description |
4691
+ * | --------- | -------------------------------------------------------- | -------- | ---------------------------- |
4692
+ * | `options` | `Array<{ label: string, value: string, hint?: string }>` | ✅ | The different select options |
4693
+ *
4694
+ * </details>
4695
+ *
4696
+ * <details>
4697
+ * <summary><code>single_line</code></summary>
4698
+ *
4699
+ * Simple textual input for _Single-line string_ fields.
4700
+ *
4701
+ * | Parameter | Type | Required | Description |
4702
+ * | --------- | --------- | -------- | -------------------------------------------------------------------------------- |
4703
+ * | `heading` | `Boolean` | ✅ | Indicates if the field should be shown bigger, as a field representing a heading |
4704
+ *
4705
+ * </details>
4706
+ *
4707
+ * <details>
4708
+ * <summary><code>markdown</code></summary>
4709
+ *
4710
+ * Markdown editor for _Multiple-paragraph text_ fields.
4711
+ *
4712
+ * | Parameter | Type | Required | Description |
4713
+ * | --------- | --------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
4714
+ * | `toolbar` | `Array<String>` | ✅ | Specify which buttons the toolbar should have. Valid values: `"heading"`, `"bold"`, `"italic"`, `"strikethrough"`, `"code"`, `"unordered_list"`, `"ordered_list"`, `"quote"`, `"link"`, `"image"`, `"fullscreen"` |
4715
+ *
4716
+ * </details>
4717
+ *
4718
+ * <details>
4719
+ * <summary><code>wysiwyg</code></summary>
4720
+ *
4721
+ * HTML editor for _Multiple-paragraph text_ fields.
4722
+ *
4723
+ * | Parameter | Type | Required | Description |
4724
+ * | --------- | --------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
4725
+ * | `toolbar` | `Array<String>` | ✅ | Specify which buttons the toolbar should have. Valid values: `"format"`, `"bold"`, `"italic"`, `"strikethrough"`, `"code"`, `"ordered_list"`, `"unordered_list"`, `"quote"`, `"table"`, `"link"`, `"image"`, `"show_source"`, `"undo"`, `"redo"`, `"align_left"`, `"align_center"`, `"align_right"`, `"align_justify"`, `"outdent"`, `"indent"`, `"fullscreen"` |
4726
+ *
4727
+ * </details>
4728
+ *
4729
+ * <details>
4730
+ * <summary><code>textarea</code></summary>
4731
+ *
4732
+ * Basic textarea editor for _Multiple-paragraph text_ fields.
4733
+ *
4734
+ * </details>
4735
+ *
4736
+ * <details>
4737
+ * <summary><code>color_picker</code></summary>
4738
+ *
4739
+ * Built-in editor for _Color_ fields.
4740
+ *
4741
+ * | Parameter | Type | Required | Description |
4742
+ * | --------------- | ------------------------- | -------- | --------------------------------------------------------- |
4743
+ * | `enable_alpha` | `Boolean` | ✅ | Should the color picker allow to specify the alpha value? |
4744
+ * | `preset_colors` | `Array<Hex color string>` | ✅ | List of preset colors to offer to the user |
4745
+ *
4746
+ * </details>
4747
+ *
4748
+ * <details>
4749
+ * <summary><code>slug</code></summary>
4750
+ *
4751
+ * Built-in editor for _Slug_ fields.
4752
+ *
4753
+ * | Parameter | Type | Required | Description |
4754
+ * | ------------ | -------- | -------- | -------------------------------------------------------------------------------------- |
4755
+ * | `url_prefix` | `String` | | A prefix that will be shown in the editor's form to give some context to your editors. |
4756
+ *
4757
+ * </details>
4758
+ *
4759
+ * <details>
4760
+ * <summary><code>rich_text</code></summary>
4761
+ *
4762
+ * Built-in editor for _Modular content_ fields.
4763
+ *
4764
+ * | Parameter | Type | Required | Description |
4765
+ * | ----------------- | --------- | -------- | ---------------------------------------------------------- |
4766
+ * | `start_collapsed` | `Boolean` | | Whether you want block records collapsed by default or not |
4767
+ *
4768
+ * </details>
4769
+ *
4770
+ * <details>
4771
+ * <summary><code>structured_text</code></summary>
4772
+ *
4773
+ * Built-in editor for _Structured text_ fields.
4774
+ *
4775
+ * | Parameter | Type | Required | Description |
4776
+ * | ------------------------- | --------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
4777
+ * | `nodes` | `Array<String>` | ✅ | Specify which nodes the field should allow. Valid values: `"blockquote"`, `"code"`, `"heading"`, `"link"`, `"list"`, `"thematicBreak"` |
4778
+ * | `marks` | `Array<String>` | ✅ | Specify which marks the field should allow. Valid values: `"strong"`, `"emphasis"`, `"underline"`, `"strikethrough"`, `"code"`, `"highlight"` |
4779
+ * | `blocks_start_collapsed` | `Boolean` | | Whether you want block nodes collapsed by default or not |
4780
+ * | `show_links_target_blank` | `Boolean` | | Whether you want to show the "Open this link in a new tab?" checkbox, that fills in the `target: "_blank"` meta attribute for links |
4781
+ * | `show_links_meta_editor` | `Boolean` | | Whether you want to show the complete meta editor for links |
4782
+ *
4783
+ * </details>
4784
+ *
4785
+ * <details>
4786
+ * <summary><code>link_select</code> and <code>links_select</code></summary>
4787
+ *
4788
+ * Use a select input with auto-completion to pick the records to reference inside the field.
4789
+ *
4790
+ * </details>
4791
+ *
4792
+ * <details>
4793
+ * <summary><code>link_embed</code> and <code>links_embed</code></summary>
4794
+ *
4795
+ * Use an expanded view with records' image preview to pick the records to reference inside the field.
4796
+ *
4797
+ * </details>
4798
+ *
3697
4799
  *
3698
4800
  * This interface was referenced by `DatoApi`'s JSON-Schema
3699
4801
  * via the `definition` "field".
@@ -3823,17 +4925,6 @@ export type FieldRelationships = {
3823
4925
  };
3824
4926
  };
3825
4927
 
3826
- /**
3827
- * JSON API data
3828
- *
3829
- * This interface was referenced by `Fieldset`'s JSON-Schema
3830
- * via the `definition` "data".
3831
- */
3832
- export type FieldsetData = {
3833
- type: FieldsetType;
3834
- id: FieldsetIdentity;
3835
- };
3836
-
3837
4928
  /**
3838
4929
  * This interface was referenced by `Field`'s JSON-Schema
3839
4930
  * via the `create.schema` link.
@@ -4402,196 +5493,6 @@ export type SessionCreateTargetSchema = {
4402
5493
  included: User[];
4403
5494
  };
4404
5495
 
4405
- /**
4406
- * An API token allows access to our API. It is linked to a Role, which describes what actions can be performed.
4407
- *
4408
- * This interface was referenced by `DatoApi`'s JSON-Schema
4409
- * via the `definition` "access_token".
4410
- */
4411
- export type AccessToken = {
4412
- type: AccessTokenType;
4413
- id: AccessTokenIdentity;
4414
- attributes: AccessTokenAttributes;
4415
- relationships: AccessTokenRelationships;
4416
- };
4417
-
4418
- /**
4419
- * JSON API attributes
4420
- *
4421
- * This interface was referenced by `AccessToken`'s JSON-Schema
4422
- * via the `definition` "attributes".
4423
- */
4424
- export type AccessTokenAttributes = {
4425
- /**
4426
- * Name of API token
4427
- */
4428
- name: string;
4429
- /**
4430
- * The actual API token
4431
- */
4432
- token?: string;
4433
- /**
4434
- * Whether this API token can access the Content Delivery API published content endpoint
4435
- */
4436
- can_access_cda: boolean;
4437
- /**
4438
- * Whether this API token can access the Content Delivery API draft content endpoint
4439
- */
4440
- can_access_cda_preview: boolean;
4441
- /**
4442
- * Whether this API token can access the Content Management API
4443
- */
4444
- can_access_cma: boolean;
4445
- hardcoded_type: null | string;
4446
- };
4447
-
4448
- /**
4449
- * JSON API links
4450
- *
4451
- * This interface was referenced by `AccessToken`'s JSON-Schema
4452
- * via the `definition` "relationships".
4453
- */
4454
- export type AccessTokenRelationships = {
4455
- /**
4456
- * Role
4457
- */
4458
- role: {
4459
- data: RoleData | null;
4460
- };
4461
- };
4462
-
4463
- /**
4464
- * JSON API data
4465
- *
4466
- * This interface was referenced by `AccessToken`'s JSON-Schema
4467
- * via the `definition` "data".
4468
- */
4469
- export type AccessTokenData = {
4470
- type: AccessTokenType;
4471
- id: AccessTokenIdentity;
4472
- };
4473
-
4474
- /**
4475
- * This interface was referenced by `AccessToken`'s JSON-Schema
4476
- * via the `create.schema` link.
4477
- */
4478
- export type AccessTokenCreateSchema = {
4479
- data: {
4480
- type: AccessTokenType;
4481
- attributes: {
4482
- /**
4483
- * Name of API token
4484
- */
4485
- name: string;
4486
- /**
4487
- * Whether this API token can access the Content Delivery API published content endpoint
4488
- */
4489
- can_access_cda: boolean;
4490
- /**
4491
- * Whether this API token can access the Content Delivery API draft content endpoint
4492
- */
4493
- can_access_cda_preview: boolean;
4494
- /**
4495
- * Whether this API token can access the Content Management API
4496
- */
4497
- can_access_cma: boolean;
4498
- };
4499
- relationships: {
4500
- /**
4501
- * Role
4502
- */
4503
- role: {
4504
- data: RoleData | null;
4505
- };
4506
- };
4507
- };
4508
- };
4509
-
4510
- /**
4511
- * This interface was referenced by `AccessToken`'s JSON-Schema
4512
- * via the `create.targetSchema` link.
4513
- */
4514
- export type AccessTokenCreateTargetSchema = {
4515
- data: AccessToken;
4516
- };
4517
-
4518
- /**
4519
- * This interface was referenced by `AccessToken`'s JSON-Schema
4520
- * via the `update.schema` link.
4521
- */
4522
- export type AccessTokenUpdateSchema = {
4523
- data: {
4524
- type: AccessTokenType;
4525
- id: AccessTokenIdentity;
4526
- attributes: {
4527
- /**
4528
- * Name of API token
4529
- */
4530
- name: string;
4531
- /**
4532
- * Whether this API token can access the Content Delivery API published content endpoint
4533
- */
4534
- can_access_cda: boolean;
4535
- /**
4536
- * Whether this API token can access the Content Delivery API draft content endpoint
4537
- */
4538
- can_access_cda_preview: boolean;
4539
- /**
4540
- * Whether this API token can access the Content Management API
4541
- */
4542
- can_access_cma: boolean;
4543
- };
4544
- relationships: {
4545
- /**
4546
- * Role
4547
- */
4548
- role: {
4549
- data: RoleData | null;
4550
- };
4551
- };
4552
- };
4553
- };
4554
-
4555
- /**
4556
- * This interface was referenced by `AccessToken`'s JSON-Schema
4557
- * via the `update.targetSchema` link.
4558
- */
4559
- export type AccessTokenUpdateTargetSchema = {
4560
- data: AccessToken;
4561
- };
4562
-
4563
- /**
4564
- * This interface was referenced by `AccessToken`'s JSON-Schema
4565
- * via the `instances.targetSchema` link.
4566
- */
4567
- export type AccessTokenInstancesTargetSchema = {
4568
- data: AccessToken[];
4569
- };
4570
-
4571
- /**
4572
- * This interface was referenced by `AccessToken`'s JSON-Schema
4573
- * via the `self.targetSchema` link.
4574
- */
4575
- export type AccessTokenSelfTargetSchema = {
4576
- data: AccessToken;
4577
- };
4578
-
4579
- /**
4580
- * This interface was referenced by `AccessToken`'s JSON-Schema
4581
- * via the `regenerate_token.targetSchema` link.
4582
- */
4583
- export type AccessTokenRegenerateTokenTargetSchema = {
4584
- data: AccessToken;
4585
- };
4586
-
4587
- /**
4588
- * This interface was referenced by `AccessToken`'s JSON-Schema
4589
- * via the `destroy.targetSchema` link.
4590
- */
4591
- export type AccessTokenDestroyTargetSchema = {
4592
- data: AccessToken;
4593
- };
4594
-
4595
5496
  /**
4596
5497
  * Plugins enable developers to replace DatoCMS field components with HTML5 applications so the editing experiences of the DatoCMS web app can be customized.
4597
5498
  *
@@ -6666,11 +7567,11 @@ export type SearchResult = {
6666
7567
  */
6667
7568
  export type SearchResultAttributes = {
6668
7569
  /**
6669
- * Page title
7570
+ * Title of the page
6670
7571
  */
6671
7572
  title: string;
6672
7573
  /**
6673
- * First lines of body
7574
+ * First 200 characters of page body, unformatted
6674
7575
  */
6675
7576
  body_excerpt: string;
6676
7577
  /**
@@ -6678,7 +7579,7 @@ export type SearchResultAttributes = {
6678
7579
  */
6679
7580
  url: string;
6680
7581
  /**
6681
- * Score
7582
+ * Search score
6682
7583
  */
6683
7584
  score: number;
6684
7585
  highlight: {
@@ -6704,7 +7605,7 @@ export type SearchResultData = {
6704
7605
  */
6705
7606
  export type SearchResultInstancesTargetSchema = {
6706
7607
  data: SearchResult[];
6707
- meta?: {
7608
+ meta: {
6708
7609
  total_count: number;
6709
7610
  };
6710
7611
  };
@@ -8413,6 +9314,7 @@ export type PublicInfoAttributes = {
8413
9314
  extras: null | {
8414
9315
  blocks_depth: number;
8415
9316
  blocks_per_item: number;
9317
+ maximum_single_upload_bytes: number;
8416
9318
  [k: string]: unknown;
8417
9319
  };
8418
9320
  };
@@ -8729,10 +9631,6 @@ export type SiteAttributes = {
8729
9631
  * Specifies the last time when a change of data occurred
8730
9632
  */
8731
9633
  last_data_change_at: null | string;
8732
- /**
8733
- * Frontend website url
8734
- */
8735
- frontend_url: string | null;
8736
9634
  /**
8737
9635
  * Specifies whether all users of this site need to authenticate using two-factor authentication
8738
9636
  */
@@ -8826,48 +9724,12 @@ export type SiteRelationships = {
8826
9724
  account: {
8827
9725
  data: AccountData;
8828
9726
  };
8829
- build_triggers?: {
8830
- /**
8831
- * The list of build trigger
8832
- */
8833
- data: BuildTriggerData[];
8834
- };
8835
- menu_items: {
8836
- /**
8837
- * The list of site menu items
8838
- */
8839
- data: MenuItemData[];
8840
- };
8841
- sso_users: {
8842
- /**
8843
- * The list of site SSO users
8844
- */
8845
- data: SsoUserData[];
8846
- };
8847
- users: {
8848
- /**
8849
- * The list of site users
8850
- */
8851
- data: UserData[];
8852
- };
8853
9727
  item_types: {
8854
9728
  /**
8855
- * The list of site item types
9729
+ * The list item types for the site
8856
9730
  */
8857
9731
  data: ItemTypeData[];
8858
9732
  };
8859
- sso_default_role?: {
8860
- /**
8861
- * Specifies the default role for newly created identity providers users
8862
- */
8863
- data: RoleData[];
8864
- };
8865
- roles: {
8866
- /**
8867
- * The list of site roles
8868
- */
8869
- data: RoleData[];
8870
- };
8871
9733
  };
8872
9734
 
8873
9735
  /**
@@ -8900,7 +9762,7 @@ export type SiteData = {
8900
9762
  */
8901
9763
  export type SiteSelfTargetSchema = {
8902
9764
  data: Site;
8903
- included?: (MenuItem | User | ItemType | Role | Field | Upload | SsoUser)[];
9765
+ included?: (ItemType | Field | Upload | Fieldset | Item | Account)[];
8904
9766
  };
8905
9767
 
8906
9768
  /**