@datocms/cma-client 0.1.0 → 0.1.2

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.
@@ -1496,7 +1496,7 @@ export type SiteType = 'site';
1496
1496
  */
1497
1497
  export type WorkflowInstancesTargetSchema = Workflow[];
1498
1498
 
1499
- export interface DatoApi {
1499
+ export type DatoApi = {
1500
1500
  role?: Role;
1501
1501
  user?: User;
1502
1502
  sso_user?: SsoUser;
@@ -1542,7 +1542,7 @@ export interface DatoApi {
1542
1542
  site?: Site;
1543
1543
  workflow?: Workflow;
1544
1544
  [k: string]: unknown;
1545
- }
1545
+ };
1546
1546
 
1547
1547
  /**
1548
1548
  * A Role represents a specific set of actions an editor (or an API token) can perform on your administrative area.
@@ -1550,7 +1550,7 @@ export interface DatoApi {
1550
1550
  * This interface was referenced by `DatoApi`'s JSON-Schema
1551
1551
  * via the `definition` "role".
1552
1552
  */
1553
- export interface Role {
1553
+ export type Role = {
1554
1554
  id: RoleIdentity;
1555
1555
  type: RoleType;
1556
1556
  /**
@@ -1773,7 +1773,7 @@ export interface Role {
1773
1773
  }[];
1774
1774
  inherits_permissions_from: RoleData[];
1775
1775
  meta: RoleMeta;
1776
- }
1776
+ };
1777
1777
  export type RoleCreateTargetSchema = Role;
1778
1778
  export type RoleUpdateTargetSchema = Role;
1779
1779
  export type RoleSelfTargetSchema = Role;
@@ -1784,10 +1784,10 @@ export type RoleDestroyTargetSchema = Role;
1784
1784
  * This interface was referenced by `Role`'s JSON-Schema
1785
1785
  * via the `definition` "data".
1786
1786
  */
1787
- export interface RoleData {
1787
+ export type RoleData = {
1788
1788
  type: RoleType;
1789
1789
  id: RoleIdentity;
1790
- }
1790
+ };
1791
1791
 
1792
1792
  /**
1793
1793
  * Meta information regarding the record
@@ -1795,7 +1795,7 @@ export interface RoleData {
1795
1795
  * This interface was referenced by `Role`'s JSON-Schema
1796
1796
  * via the `definition` "meta".
1797
1797
  */
1798
- export interface RoleMeta {
1798
+ export type RoleMeta = {
1799
1799
  /**
1800
1800
  * The final set of permissions considering also inherited roles
1801
1801
  */
@@ -2015,7 +2015,7 @@ export interface RoleMeta {
2015
2015
  build_trigger?: BuildTriggerIdentity | null;
2016
2016
  }[];
2017
2017
  };
2018
- }
2018
+ };
2019
2019
 
2020
2020
  /**
2021
2021
  * JSON API attributes
@@ -2023,7 +2023,7 @@ export interface RoleMeta {
2023
2023
  * This interface was referenced by `Role`'s JSON-Schema
2024
2024
  * via the `definition` "attributes".
2025
2025
  */
2026
- export interface RoleAttributes {
2026
+ export type RoleAttributes = {
2027
2027
  /**
2028
2028
  * The name of the role
2029
2029
  */
@@ -2242,7 +2242,7 @@ export interface RoleAttributes {
2242
2242
  negative_build_trigger_permissions: {
2243
2243
  build_trigger?: BuildTriggerIdentity | null;
2244
2244
  }[];
2245
- }
2245
+ };
2246
2246
 
2247
2247
  /**
2248
2248
  * JSON API links
@@ -2250,15 +2250,15 @@ export interface RoleAttributes {
2250
2250
  * This interface was referenced by `Role`'s JSON-Schema
2251
2251
  * via the `definition` "relationships".
2252
2252
  */
2253
- export interface RoleRelationships {
2253
+ export type RoleRelationships = {
2254
2254
  inherits_permissions_from: RoleData[];
2255
- }
2255
+ };
2256
2256
 
2257
2257
  /**
2258
2258
  * This interface was referenced by `Role`'s JSON-Schema
2259
2259
  * via the `create.schema` link.
2260
2260
  */
2261
- export interface RoleCreateSchema {
2261
+ export type RoleCreateSchema = {
2262
2262
  type?: RoleType;
2263
2263
  /**
2264
2264
  * The name of the role
@@ -2480,13 +2480,13 @@ export interface RoleCreateSchema {
2480
2480
  }[];
2481
2481
  inherits_permissions_from?: RoleData[];
2482
2482
  meta?: RoleMeta;
2483
- }
2483
+ };
2484
2484
 
2485
2485
  /**
2486
2486
  * This interface was referenced by `Role`'s JSON-Schema
2487
2487
  * via the `update.schema` link.
2488
2488
  */
2489
- export interface RoleUpdateSchema {
2489
+ export type RoleUpdateSchema = {
2490
2490
  id?: RoleIdentity;
2491
2491
  type?: RoleType;
2492
2492
  /**
@@ -2709,7 +2709,7 @@ export interface RoleUpdateSchema {
2709
2709
  }[];
2710
2710
  inherits_permissions_from?: RoleData[];
2711
2711
  meta?: RoleMeta;
2712
- }
2712
+ };
2713
2713
 
2714
2714
  /**
2715
2715
  * A DatoCMS administrative area can be accessed by multiple people. Every collaborator is linked to a specific Role, which describes what actions it will be able to perform once logged in.
@@ -2717,7 +2717,7 @@ export interface RoleUpdateSchema {
2717
2717
  * This interface was referenced by `DatoApi`'s JSON-Schema
2718
2718
  * via the `definition` "user".
2719
2719
  */
2720
- export interface User {
2720
+ export type User = {
2721
2721
  id: UserIdentity;
2722
2722
  type: UserType;
2723
2723
  /**
@@ -2738,7 +2738,7 @@ export interface User {
2738
2738
  is_active: boolean;
2739
2739
  role: RoleData;
2740
2740
  meta?: UserMeta;
2741
- }
2741
+ };
2742
2742
  export type UserUpdateTargetSchema = User;
2743
2743
  export type UserSelfTargetSchema = User;
2744
2744
  export type UserDestroyTargetSchema = User;
@@ -2748,12 +2748,12 @@ export type UserDestroyTargetSchema = User;
2748
2748
  * This interface was referenced by `User`'s JSON-Schema
2749
2749
  * via the `definition` "meta".
2750
2750
  */
2751
- export interface UserMeta {
2751
+ export type UserMeta = {
2752
2752
  /**
2753
2753
  * Date of last reading/interaction
2754
2754
  */
2755
2755
  last_access: string | null;
2756
- }
2756
+ };
2757
2757
 
2758
2758
  /**
2759
2759
  * JSON API data
@@ -2761,10 +2761,10 @@ export interface UserMeta {
2761
2761
  * This interface was referenced by `User`'s JSON-Schema
2762
2762
  * via the `definition` "data".
2763
2763
  */
2764
- export interface UserData {
2764
+ export type UserData = {
2765
2765
  type: UserType;
2766
2766
  id: UserIdentity;
2767
- }
2767
+ };
2768
2768
 
2769
2769
  /**
2770
2770
  * JSON API attributes
@@ -2772,7 +2772,7 @@ export interface UserData {
2772
2772
  * This interface was referenced by `User`'s JSON-Schema
2773
2773
  * via the `definition` "attributes".
2774
2774
  */
2775
- export interface UserAttributes {
2775
+ export type UserAttributes = {
2776
2776
  /**
2777
2777
  * Email
2778
2778
  */
@@ -2789,7 +2789,7 @@ export interface UserAttributes {
2789
2789
  * Whether the user is active or not
2790
2790
  */
2791
2791
  is_active: boolean;
2792
- }
2792
+ };
2793
2793
 
2794
2794
  /**
2795
2795
  * JSON API links
@@ -2797,15 +2797,15 @@ export interface UserAttributes {
2797
2797
  * This interface was referenced by `User`'s JSON-Schema
2798
2798
  * via the `definition` "relationships".
2799
2799
  */
2800
- export interface UserRelationships {
2800
+ export type UserRelationships = {
2801
2801
  role: RoleData;
2802
- }
2802
+ };
2803
2803
 
2804
2804
  /**
2805
2805
  * This interface was referenced by `User`'s JSON-Schema
2806
2806
  * via the `update.schema` link.
2807
2807
  */
2808
- export interface UserUpdateSchema {
2808
+ export type UserUpdateSchema = {
2809
2809
  id?: UserIdentity;
2810
2810
  type?: UserType;
2811
2811
  /**
@@ -2813,7 +2813,7 @@ export interface UserUpdateSchema {
2813
2813
  */
2814
2814
  is_active?: boolean;
2815
2815
  role?: RoleData;
2816
- }
2816
+ };
2817
2817
 
2818
2818
  /**
2819
2819
  * A Single Sign-On user exists when a DatoCMS project is connected to an external Identity Provider. An SSO user will not use the standard login procedure but has to go through SAML authentication. It can also be linked to one or more IdP groups.
@@ -2821,7 +2821,7 @@ export interface UserUpdateSchema {
2821
2821
  * This interface was referenced by `DatoApi`'s JSON-Schema
2822
2822
  * via the `definition` "sso_user".
2823
2823
  */
2824
- export interface SsoUser {
2824
+ export type SsoUser = {
2825
2825
  id: SsoUserIdentity;
2826
2826
  type: SsoUserType;
2827
2827
  /**
@@ -2847,7 +2847,7 @@ export interface SsoUser {
2847
2847
  groups: SsoGroupData[];
2848
2848
  role: RoleData | null;
2849
2849
  meta: SsoUserMeta;
2850
- }
2850
+ };
2851
2851
  export type SsoUserSelfTargetSchema = SsoUser;
2852
2852
  export type SsoUserDestroyTargetSchema = SsoUser;
2853
2853
  /**
@@ -2856,10 +2856,10 @@ export type SsoUserDestroyTargetSchema = SsoUser;
2856
2856
  * This interface was referenced by `SsoGroup`'s JSON-Schema
2857
2857
  * via the `definition` "data".
2858
2858
  */
2859
- export interface SsoGroupData {
2859
+ export type SsoGroupData = {
2860
2860
  type: SsoGroupType;
2861
2861
  id: SsoGroupIdentity;
2862
- }
2862
+ };
2863
2863
 
2864
2864
  /**
2865
2865
  * Meta information on the user
@@ -2867,12 +2867,12 @@ export interface SsoGroupData {
2867
2867
  * This interface was referenced by `SsoUser`'s JSON-Schema
2868
2868
  * via the `definition` "meta".
2869
2869
  */
2870
- export interface SsoUserMeta {
2870
+ export type SsoUserMeta = {
2871
2871
  /**
2872
2872
  * Date of last reading/interaction
2873
2873
  */
2874
2874
  last_access: string | null;
2875
- }
2875
+ };
2876
2876
 
2877
2877
  /**
2878
2878
  * JSON API data
@@ -2880,10 +2880,10 @@ export interface SsoUserMeta {
2880
2880
  * This interface was referenced by `SsoUser`'s JSON-Schema
2881
2881
  * via the `definition` "data".
2882
2882
  */
2883
- export interface SsoUserData {
2883
+ export type SsoUserData = {
2884
2884
  type: SsoUserType;
2885
2885
  id: SsoUserIdentity;
2886
- }
2886
+ };
2887
2887
 
2888
2888
  /**
2889
2889
  * JSON API attributes
@@ -2891,7 +2891,7 @@ export interface SsoUserData {
2891
2891
  * This interface was referenced by `SsoUser`'s JSON-Schema
2892
2892
  * via the `definition` "attributes".
2893
2893
  */
2894
- export interface SsoUserAttributes {
2894
+ export type SsoUserAttributes = {
2895
2895
  /**
2896
2896
  * Email
2897
2897
  */
@@ -2912,7 +2912,7 @@ export interface SsoUserAttributes {
2912
2912
  * Last name
2913
2913
  */
2914
2914
  last_name: string | null;
2915
- }
2915
+ };
2916
2916
 
2917
2917
  /**
2918
2918
  * JSON API links
@@ -2920,10 +2920,10 @@ export interface SsoUserAttributes {
2920
2920
  * This interface was referenced by `SsoUser`'s JSON-Schema
2921
2921
  * via the `definition` "relationships".
2922
2922
  */
2923
- export interface SsoUserRelationships {
2923
+ export type SsoUserRelationships = {
2924
2924
  groups: SsoGroupData[];
2925
2925
  role: RoleData | null;
2926
- }
2926
+ };
2927
2927
 
2928
2928
  /**
2929
2929
  * 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.
@@ -2931,7 +2931,7 @@ export interface SsoUserRelationships {
2931
2931
  * This interface was referenced by `DatoApi`'s JSON-Schema
2932
2932
  * via the `definition` "audit_log_event".
2933
2933
  */
2934
- export interface AuditLogEvent {
2934
+ export type AuditLogEvent = {
2935
2935
  id: AuditLogEventIdentity;
2936
2936
  type: AuditLogEventType;
2937
2937
  /**
@@ -3020,7 +3020,7 @@ export interface AuditLogEvent {
3020
3020
  };
3021
3021
  };
3022
3022
  meta: AuditLogEventMeta;
3023
- }
3023
+ };
3024
3024
 
3025
3025
  /**
3026
3026
  * JSON API meta
@@ -3028,12 +3028,12 @@ export interface AuditLogEvent {
3028
3028
  * This interface was referenced by `AuditLogEvent`'s JSON-Schema
3029
3029
  * via the `definition` "meta".
3030
3030
  */
3031
- export interface AuditLogEventMeta {
3031
+ export type AuditLogEventMeta = {
3032
3032
  /**
3033
3033
  * The date of the event
3034
3034
  */
3035
3035
  occurred_at: string;
3036
- }
3036
+ };
3037
3037
 
3038
3038
  /**
3039
3039
  * JSON API data
@@ -3041,10 +3041,10 @@ export interface AuditLogEventMeta {
3041
3041
  * This interface was referenced by `AuditLogEvent`'s JSON-Schema
3042
3042
  * via the `definition` "data".
3043
3043
  */
3044
- export interface AuditLogEventData {
3044
+ export type AuditLogEventData = {
3045
3045
  type: AuditLogEventType;
3046
3046
  id: AuditLogEventIdentity;
3047
- }
3047
+ };
3048
3048
 
3049
3049
  /**
3050
3050
  * JSON API attributes
@@ -3052,7 +3052,7 @@ export interface AuditLogEventData {
3052
3052
  * This interface was referenced by `AuditLogEvent`'s JSON-Schema
3053
3053
  * via the `definition` "attributes".
3054
3054
  */
3055
- export interface AuditLogEventAttributes {
3055
+ export type AuditLogEventAttributes = {
3056
3056
  /**
3057
3057
  * The actual action performed
3058
3058
  */
@@ -3138,13 +3138,13 @@ export interface AuditLogEventAttributes {
3138
3138
  [k: string]: unknown;
3139
3139
  };
3140
3140
  };
3141
- }
3141
+ };
3142
3142
 
3143
3143
  /**
3144
3144
  * This interface was referenced by `AuditLogEvent`'s JSON-Schema
3145
3145
  * via the `query.schema` link.
3146
3146
  */
3147
- export interface AuditLogEventQuerySchema {
3147
+ export type AuditLogEventQuerySchema = {
3148
3148
  /**
3149
3149
  * JSON API type field
3150
3150
  */
@@ -3161,7 +3161,7 @@ export interface AuditLogEventQuerySchema {
3161
3161
  * Whether a detailed log complete with full request and response payload must be returned or not
3162
3162
  */
3163
3163
  detailed_log?: boolean;
3164
- }
3164
+ };
3165
3165
 
3166
3166
  /**
3167
3167
  * DatoCMS account
@@ -3169,7 +3169,7 @@ export interface AuditLogEventQuerySchema {
3169
3169
  * This interface was referenced by `DatoApi`'s JSON-Schema
3170
3170
  * via the `definition` "account".
3171
3171
  */
3172
- export interface Account {
3172
+ export type Account = {
3173
3173
  id: AccountIdentity;
3174
3174
  type: AccountType;
3175
3175
  /**
@@ -3192,7 +3192,7 @@ export interface Account {
3192
3192
  * Password
3193
3193
  */
3194
3194
  password?: string;
3195
- }
3195
+ };
3196
3196
 
3197
3197
  /**
3198
3198
  * JSON API data
@@ -3200,10 +3200,10 @@ export interface Account {
3200
3200
  * This interface was referenced by `Account`'s JSON-Schema
3201
3201
  * via the `definition` "data".
3202
3202
  */
3203
- export interface AccountData {
3203
+ export type AccountData = {
3204
3204
  type: AccountType;
3205
3205
  id: AccountIdentity;
3206
- }
3206
+ };
3207
3207
 
3208
3208
  /**
3209
3209
  * JSON API attributes
@@ -3211,7 +3211,7 @@ export interface AccountData {
3211
3211
  * This interface was referenced by `Account`'s JSON-Schema
3212
3212
  * via the `definition` "attributes".
3213
3213
  */
3214
- export interface AccountAttributes {
3214
+ export type AccountAttributes = {
3215
3215
  /**
3216
3216
  * Email
3217
3217
  */
@@ -3232,7 +3232,7 @@ export interface AccountAttributes {
3232
3232
  * Password
3233
3233
  */
3234
3234
  password?: string;
3235
- }
3235
+ };
3236
3236
 
3237
3237
  /**
3238
3238
  * Stores the information regarding the current plan for the project.
@@ -3240,7 +3240,7 @@ export interface AccountAttributes {
3240
3240
  * This interface was referenced by `DatoApi`'s JSON-Schema
3241
3241
  * via the `definition` "site_plan".
3242
3242
  */
3243
- export interface SitePlan {
3243
+ export type SitePlan = {
3244
3244
  id: SitePlanIdentity;
3245
3245
  type: SitePlanType;
3246
3246
  /**
@@ -3441,7 +3441,7 @@ export interface SitePlan {
3441
3441
  price: number;
3442
3442
  };
3443
3443
  };
3444
- }
3444
+ };
3445
3445
 
3446
3446
  /**
3447
3447
  * JSON API data
@@ -3449,10 +3449,10 @@ export interface SitePlan {
3449
3449
  * This interface was referenced by `SitePlan`'s JSON-Schema
3450
3450
  * via the `definition` "data".
3451
3451
  */
3452
- export interface SitePlanData {
3452
+ export type SitePlanData = {
3453
3453
  type: SitePlanType;
3454
3454
  id: SitePlanIdentity;
3455
- }
3455
+ };
3456
3456
 
3457
3457
  /**
3458
3458
  * JSON API attributes
@@ -3460,7 +3460,7 @@ export interface SitePlanData {
3460
3460
  * This interface was referenced by `SitePlan`'s JSON-Schema
3461
3461
  * via the `definition` "attributes".
3462
3462
  */
3463
- export interface SitePlanAttributes {
3463
+ export type SitePlanAttributes = {
3464
3464
  /**
3465
3465
  * The name of the plan
3466
3466
  */
@@ -3659,7 +3659,7 @@ export interface SitePlanAttributes {
3659
3659
  price: number;
3660
3660
  };
3661
3661
  };
3662
- }
3662
+ };
3663
3663
 
3664
3664
  /**
3665
3665
  * In DatoCMS you can organize the different Models present in your administrative area reordering and grouping them, so that their purpose will be more clear to the final editor.
@@ -3667,7 +3667,7 @@ export interface SitePlanAttributes {
3667
3667
  * This interface was referenced by `DatoApi`'s JSON-Schema
3668
3668
  * via the `definition` "menu_item".
3669
3669
  */
3670
- export interface MenuItem {
3670
+ export type MenuItem = {
3671
3671
  id: MenuItemIdentity;
3672
3672
  type: MenuItemType;
3673
3673
  /**
@@ -3689,7 +3689,7 @@ export interface MenuItem {
3689
3689
  item_type: ItemTypeData | null;
3690
3690
  parent: null | MenuItemData;
3691
3691
  children: MenuItemData[];
3692
- }
3692
+ };
3693
3693
  export type MenuItemCreateTargetSchema = MenuItem;
3694
3694
  export type MenuItemUpdateTargetSchema = MenuItem;
3695
3695
  export type MenuItemSelfTargetSchema = MenuItem;
@@ -3700,10 +3700,10 @@ export type MenuItemDestroyTargetSchema = MenuItem;
3700
3700
  * This interface was referenced by `ItemType`'s JSON-Schema
3701
3701
  * via the `definition` "data".
3702
3702
  */
3703
- export interface ItemTypeData {
3703
+ export type ItemTypeData = {
3704
3704
  type: ItemTypeType;
3705
3705
  id: ItemTypeIdentity;
3706
- }
3706
+ };
3707
3707
 
3708
3708
  /**
3709
3709
  * JSON API data
@@ -3711,10 +3711,10 @@ export interface ItemTypeData {
3711
3711
  * This interface was referenced by `MenuItem`'s JSON-Schema
3712
3712
  * via the `definition` "data".
3713
3713
  */
3714
- export interface MenuItemData {
3714
+ export type MenuItemData = {
3715
3715
  type: MenuItemType;
3716
3716
  id: MenuItemIdentity;
3717
- }
3717
+ };
3718
3718
 
3719
3719
  /**
3720
3720
  * JSON API attributes
@@ -3722,7 +3722,7 @@ export interface MenuItemData {
3722
3722
  * This interface was referenced by `MenuItem`'s JSON-Schema
3723
3723
  * via the `definition` "attributes".
3724
3724
  */
3725
- export interface MenuItemAttributes {
3725
+ export type MenuItemAttributes = {
3726
3726
  /**
3727
3727
  * The label of the menu item
3728
3728
  */
@@ -3739,7 +3739,7 @@ export interface MenuItemAttributes {
3739
3739
  * Opens link in new tab (used together with `external_url`)
3740
3740
  */
3741
3741
  open_in_new_tab: boolean;
3742
- }
3742
+ };
3743
3743
 
3744
3744
  /**
3745
3745
  * JSON API links
@@ -3747,17 +3747,17 @@ export interface MenuItemAttributes {
3747
3747
  * This interface was referenced by `MenuItem`'s JSON-Schema
3748
3748
  * via the `definition` "relationships".
3749
3749
  */
3750
- export interface MenuItemRelationships {
3750
+ export type MenuItemRelationships = {
3751
3751
  item_type: ItemTypeData | null;
3752
3752
  parent: null | MenuItemData;
3753
3753
  children: MenuItemData[];
3754
- }
3754
+ };
3755
3755
 
3756
3756
  /**
3757
3757
  * This interface was referenced by `MenuItem`'s JSON-Schema
3758
3758
  * via the `create.schema` link.
3759
3759
  */
3760
- export interface MenuItemCreateSchema {
3760
+ export type MenuItemCreateSchema = {
3761
3761
  type?: MenuItemType;
3762
3762
  /**
3763
3763
  * The label of the menu item
@@ -3777,13 +3777,13 @@ export interface MenuItemCreateSchema {
3777
3777
  open_in_new_tab?: boolean;
3778
3778
  item_type?: ItemTypeData | null;
3779
3779
  parent?: null | MenuItemData;
3780
- }
3780
+ };
3781
3781
 
3782
3782
  /**
3783
3783
  * This interface was referenced by `MenuItem`'s JSON-Schema
3784
3784
  * via the `update.schema` link.
3785
3785
  */
3786
- export interface MenuItemUpdateSchema {
3786
+ export type MenuItemUpdateSchema = {
3787
3787
  id?: MenuItemIdentity;
3788
3788
  type?: MenuItemType;
3789
3789
  /**
@@ -3804,7 +3804,7 @@ export interface MenuItemUpdateSchema {
3804
3804
  open_in_new_tab?: boolean;
3805
3805
  item_type?: ItemTypeData | null;
3806
3806
  parent?: null | MenuItemData;
3807
- }
3807
+ };
3808
3808
 
3809
3809
  /**
3810
3810
  * The way you define the kind of content you can edit inside your administrative area passes through the concept of Models, which are much like database tables. For backward-compatibility reasons, the API refers to models as "item types".
@@ -3812,7 +3812,7 @@ export interface MenuItemUpdateSchema {
3812
3812
  * This interface was referenced by `DatoApi`'s JSON-Schema
3813
3813
  * via the `definition` "item_type".
3814
3814
  */
3815
- export interface ItemType {
3815
+ export type ItemType = {
3816
3816
  id: ItemTypeIdentity;
3817
3817
  type: ItemTypeType;
3818
3818
  /**
@@ -3883,7 +3883,7 @@ export interface ItemType {
3883
3883
  excerpt_field: FieldData | null;
3884
3884
  ordering_field: FieldData | null;
3885
3885
  workflow: WorkflowData | null;
3886
- }
3886
+ };
3887
3887
  export type ItemTypeCreateTargetSchema = ItemType;
3888
3888
  export type ItemTypeUpdateJobSchema = ItemType;
3889
3889
  export type ItemTypeSelfTargetSchema = ItemType;
@@ -3895,10 +3895,10 @@ export type ItemTypeDestroyJobSchema = ItemType;
3895
3895
  * This interface was referenced by `Item`'s JSON-Schema
3896
3896
  * via the `definition` "data".
3897
3897
  */
3898
- export interface ItemData {
3898
+ export type ItemData = {
3899
3899
  type: ItemType1;
3900
3900
  id: ItemIdentity;
3901
- }
3901
+ };
3902
3902
 
3903
3903
  /**
3904
3904
  * JSON API data
@@ -3906,10 +3906,10 @@ export interface ItemData {
3906
3906
  * This interface was referenced by `Field`'s JSON-Schema
3907
3907
  * via the `definition` "data".
3908
3908
  */
3909
- export interface FieldData {
3909
+ export type FieldData = {
3910
3910
  type: FieldType;
3911
3911
  id: FieldIdentity;
3912
- }
3912
+ };
3913
3913
 
3914
3914
  /**
3915
3915
  * JSON API data
@@ -3917,10 +3917,10 @@ export interface FieldData {
3917
3917
  * This interface was referenced by `Workflow`'s JSON-Schema
3918
3918
  * via the `definition` "data".
3919
3919
  */
3920
- export interface WorkflowData {
3920
+ export type WorkflowData = {
3921
3921
  type: WorkflowType;
3922
3922
  id: WorkflowIdentity;
3923
- }
3923
+ };
3924
3924
 
3925
3925
  /**
3926
3926
  * JSON API attributes
@@ -3928,7 +3928,7 @@ export interface WorkflowData {
3928
3928
  * This interface was referenced by `ItemType`'s JSON-Schema
3929
3929
  * via the `definition` "attributes".
3930
3930
  */
3931
- export interface ItemTypeAttributes {
3931
+ export type ItemTypeAttributes = {
3932
3932
  /**
3933
3933
  * Name of the model
3934
3934
  */
@@ -3990,7 +3990,7 @@ export interface ItemTypeAttributes {
3990
3990
  * A hint shown to editors to help them understand the purpose of this model/block
3991
3991
  */
3992
3992
  hint: string | null;
3993
- }
3993
+ };
3994
3994
 
3995
3995
  /**
3996
3996
  * JSON API links
@@ -3998,7 +3998,7 @@ export interface ItemTypeAttributes {
3998
3998
  * This interface was referenced by `ItemType`'s JSON-Schema
3999
3999
  * via the `definition` "relationships".
4000
4000
  */
4001
- export interface ItemTypeRelationships {
4001
+ export type ItemTypeRelationships = {
4002
4002
  singleton_item: ItemData | null;
4003
4003
  fields: FieldData[];
4004
4004
  title_field: FieldData | null;
@@ -4006,13 +4006,13 @@ export interface ItemTypeRelationships {
4006
4006
  excerpt_field: FieldData | null;
4007
4007
  ordering_field: FieldData | null;
4008
4008
  workflow: WorkflowData | null;
4009
- }
4009
+ };
4010
4010
 
4011
4011
  /**
4012
4012
  * This interface was referenced by `ItemType`'s JSON-Schema
4013
4013
  * via the `create.schema` link.
4014
4014
  */
4015
- export interface ItemTypeCreateSchema {
4015
+ export type ItemTypeCreateSchema = {
4016
4016
  type?: ItemTypeType;
4017
4017
  /**
4018
4018
  * Name of the model
@@ -4076,13 +4076,13 @@ export interface ItemTypeCreateSchema {
4076
4076
  image_preview_field?: FieldData | null;
4077
4077
  excerpt_field?: FieldData | null;
4078
4078
  workflow?: WorkflowData | null;
4079
- }
4079
+ };
4080
4080
 
4081
4081
  /**
4082
4082
  * This interface was referenced by `ItemType`'s JSON-Schema
4083
4083
  * via the `update.schema` link.
4084
4084
  */
4085
- export interface ItemTypeUpdateSchema {
4085
+ export type ItemTypeUpdateSchema = {
4086
4086
  id?: ItemTypeIdentity;
4087
4087
  type?: ItemTypeType;
4088
4088
  /**
@@ -4151,7 +4151,7 @@ export interface ItemTypeUpdateSchema {
4151
4151
  image_preview_field?: FieldData | null;
4152
4152
  excerpt_field?: FieldData | null;
4153
4153
  workflow?: WorkflowData | null;
4154
- }
4154
+ };
4155
4155
 
4156
4156
  /**
4157
4157
  * This interface was referenced by `ItemType`'s JSON-Schema
@@ -4226,10 +4226,10 @@ export interface ItemTypeUpdateSchema {
4226
4226
  * This interface was referenced by `DatoApi`'s JSON-Schema
4227
4227
  * via the `definition` "job".
4228
4228
  */
4229
- export interface Job {
4229
+ export type Job = {
4230
4230
  id: JobIdentity;
4231
4231
  type: JobType;
4232
- }
4232
+ };
4233
4233
  export type ItemTypeUpdateTargetSchema = Job;
4234
4234
  export type ItemTypeDestroyTargetSchema = Job;
4235
4235
  export type FieldCreateTargetSchema = Job;
@@ -4259,10 +4259,10 @@ export type SiteUpdateTargetSchema = Job;
4259
4259
  * This interface was referenced by `Job`'s JSON-Schema
4260
4260
  * via the `definition` "data".
4261
4261
  */
4262
- export interface JobData {
4262
+ export type JobData = {
4263
4263
  type: JobType;
4264
4264
  id: JobIdentity;
4265
- }
4265
+ };
4266
4266
 
4267
4267
  /**
4268
4268
  * 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.
@@ -4270,7 +4270,7 @@ export interface JobData {
4270
4270
  * This interface was referenced by `DatoApi`'s JSON-Schema
4271
4271
  * via the `definition` "field".
4272
4272
  */
4273
- export interface Field {
4273
+ export type Field = {
4274
4274
  id: FieldIdentity;
4275
4275
  type: FieldType;
4276
4276
  /**
@@ -4363,7 +4363,7 @@ export interface Field {
4363
4363
  position: number;
4364
4364
  item_type: ItemTypeData;
4365
4365
  fieldset: null | FieldsetData;
4366
- }
4366
+ };
4367
4367
  export type FieldCreateJobSchema = Field;
4368
4368
  export type FieldUpdateJobSchema = Field;
4369
4369
  export type FieldSelfTargetSchema = Field;
@@ -4375,10 +4375,10 @@ export type FieldDuplicateJobSchema = Field;
4375
4375
  * This interface was referenced by `Fieldset`'s JSON-Schema
4376
4376
  * via the `definition` "data".
4377
4377
  */
4378
- export interface FieldsetData {
4378
+ export type FieldsetData = {
4379
4379
  type: FieldsetType;
4380
4380
  id: FieldsetIdentity;
4381
- }
4381
+ };
4382
4382
 
4383
4383
  /**
4384
4384
  * JSON API attributes
@@ -4386,7 +4386,7 @@ export interface FieldsetData {
4386
4386
  * This interface was referenced by `Field`'s JSON-Schema
4387
4387
  * via the `definition` "attributes".
4388
4388
  */
4389
- export interface FieldAttributes {
4389
+ export type FieldAttributes = {
4390
4390
  /**
4391
4391
  * The label of the field
4392
4392
  */
@@ -4475,7 +4475,7 @@ export interface FieldAttributes {
4475
4475
  * Ordering index
4476
4476
  */
4477
4477
  position: number;
4478
- }
4478
+ };
4479
4479
 
4480
4480
  /**
4481
4481
  * JSON API links
@@ -4483,16 +4483,16 @@ export interface FieldAttributes {
4483
4483
  * This interface was referenced by `Field`'s JSON-Schema
4484
4484
  * via the `definition` "relationships".
4485
4485
  */
4486
- export interface FieldRelationships {
4486
+ export type FieldRelationships = {
4487
4487
  item_type: ItemTypeData;
4488
4488
  fieldset: null | FieldsetData;
4489
- }
4489
+ };
4490
4490
 
4491
4491
  /**
4492
4492
  * This interface was referenced by `Field`'s JSON-Schema
4493
4493
  * via the `create.schema` link.
4494
4494
  */
4495
- export interface FieldCreateSchema {
4495
+ export type FieldCreateSchema = {
4496
4496
  type?: FieldType;
4497
4497
  /**
4498
4498
  * The label of the field
@@ -4583,13 +4583,13 @@ export interface FieldCreateSchema {
4583
4583
  [k: string]: unknown;
4584
4584
  };
4585
4585
  fieldset?: null | FieldsetData;
4586
- }
4586
+ };
4587
4587
 
4588
4588
  /**
4589
4589
  * This interface was referenced by `Field`'s JSON-Schema
4590
4590
  * via the `update.schema` link.
4591
4591
  */
4592
- export interface FieldUpdateSchema {
4592
+ export type FieldUpdateSchema = {
4593
4593
  id?: FieldIdentity;
4594
4594
  type?: FieldType;
4595
4595
  /**
@@ -4681,7 +4681,7 @@ export interface FieldUpdateSchema {
4681
4681
  */
4682
4682
  hint?: string | null;
4683
4683
  fieldset?: null | FieldsetData;
4684
- }
4684
+ };
4685
4685
 
4686
4686
  /**
4687
4687
  * Fields can be organized and grouped into fieldset to better present them to editors.
@@ -4689,7 +4689,7 @@ export interface FieldUpdateSchema {
4689
4689
  * This interface was referenced by `DatoApi`'s JSON-Schema
4690
4690
  * via the `definition` "fieldset".
4691
4691
  */
4692
- export interface Fieldset {
4692
+ export type Fieldset = {
4693
4693
  id: FieldsetIdentity;
4694
4694
  type: FieldsetType;
4695
4695
  /**
@@ -4713,7 +4713,7 @@ export interface Fieldset {
4713
4713
  */
4714
4714
  position: number;
4715
4715
  item_type: ItemTypeData;
4716
- }
4716
+ };
4717
4717
  export type FieldsetCreateTargetSchema = Fieldset;
4718
4718
  export type FieldsetUpdateTargetSchema = Fieldset;
4719
4719
  export type FieldsetSelfTargetSchema = Fieldset;
@@ -4724,7 +4724,7 @@ export type FieldsetDestroyTargetSchema = Fieldset;
4724
4724
  * This interface was referenced by `Fieldset`'s JSON-Schema
4725
4725
  * via the `definition` "attributes".
4726
4726
  */
4727
- export interface FieldsetAttributes {
4727
+ export type FieldsetAttributes = {
4728
4728
  /**
4729
4729
  * The title of the fieldset
4730
4730
  */
@@ -4745,7 +4745,7 @@ export interface FieldsetAttributes {
4745
4745
  * Ordering index
4746
4746
  */
4747
4747
  position: number;
4748
- }
4748
+ };
4749
4749
 
4750
4750
  /**
4751
4751
  * JSON API links
@@ -4753,15 +4753,15 @@ export interface FieldsetAttributes {
4753
4753
  * This interface was referenced by `Fieldset`'s JSON-Schema
4754
4754
  * via the `definition` "relationships".
4755
4755
  */
4756
- export interface FieldsetRelationships {
4756
+ export type FieldsetRelationships = {
4757
4757
  item_type: ItemTypeData;
4758
- }
4758
+ };
4759
4759
 
4760
4760
  /**
4761
4761
  * This interface was referenced by `Fieldset`'s JSON-Schema
4762
4762
  * via the `create.schema` link.
4763
4763
  */
4764
- export interface FieldsetCreateSchema {
4764
+ export type FieldsetCreateSchema = {
4765
4765
  type?: FieldsetType;
4766
4766
  /**
4767
4767
  * The title of the fieldset
@@ -4783,13 +4783,13 @@ export interface FieldsetCreateSchema {
4783
4783
  * When fieldset is collapsible, determines if the default is to start collapsed or not
4784
4784
  */
4785
4785
  start_collapsed?: boolean;
4786
- }
4786
+ };
4787
4787
 
4788
4788
  /**
4789
4789
  * This interface was referenced by `Fieldset`'s JSON-Schema
4790
4790
  * via the `update.schema` link.
4791
4791
  */
4792
- export interface FieldsetUpdateSchema {
4792
+ export type FieldsetUpdateSchema = {
4793
4793
  id?: FieldsetIdentity;
4794
4794
  type?: FieldsetType;
4795
4795
  /**
@@ -4812,7 +4812,7 @@ export interface FieldsetUpdateSchema {
4812
4812
  * When fieldset is collapsible, determines if the default is to start collapsed or not
4813
4813
  */
4814
4814
  start_collapsed?: boolean;
4815
- }
4815
+ };
4816
4816
 
4817
4817
  /**
4818
4818
  * A session is required to access to read-and-write API endpoints
@@ -4820,11 +4820,11 @@ export interface FieldsetUpdateSchema {
4820
4820
  * This interface was referenced by `DatoApi`'s JSON-Schema
4821
4821
  * via the `definition` "session".
4822
4822
  */
4823
- export interface Session {
4823
+ export type Session = {
4824
4824
  id: SessionIdentity;
4825
4825
  type: SessionType;
4826
4826
  user: UserData;
4827
- }
4827
+ };
4828
4828
  export type SessionCreateTargetSchema = Session;
4829
4829
  /**
4830
4830
  * JSON API data
@@ -4832,10 +4832,10 @@ export type SessionCreateTargetSchema = Session;
4832
4832
  * This interface was referenced by `Session`'s JSON-Schema
4833
4833
  * via the `definition` "data".
4834
4834
  */
4835
- export interface SessionData {
4835
+ export type SessionData = {
4836
4836
  type: SessionType;
4837
4837
  id: SessionIdentity;
4838
- }
4838
+ };
4839
4839
 
4840
4840
  /**
4841
4841
  * JSON API links
@@ -4843,15 +4843,15 @@ export interface SessionData {
4843
4843
  * This interface was referenced by `Session`'s JSON-Schema
4844
4844
  * via the `definition` "relationships".
4845
4845
  */
4846
- export interface SessionRelationships {
4846
+ export type SessionRelationships = {
4847
4847
  user: UserData;
4848
- }
4848
+ };
4849
4849
 
4850
4850
  /**
4851
4851
  * This interface was referenced by `Session`'s JSON-Schema
4852
4852
  * via the `create.schema` link.
4853
4853
  */
4854
- export interface SessionCreateSchema {
4854
+ export type SessionCreateSchema = {
4855
4855
  /**
4856
4856
  * JSON API type field
4857
4857
  */
@@ -4868,7 +4868,7 @@ export interface SessionCreateSchema {
4868
4868
  * Two-factor authentication one-time password
4869
4869
  */
4870
4870
  otp_code?: string;
4871
- }
4871
+ };
4872
4872
 
4873
4873
  /**
4874
4874
  * An API token allows access to our API. It is linked to a Role, which describes what actions can be performed.
@@ -4876,7 +4876,7 @@ export interface SessionCreateSchema {
4876
4876
  * This interface was referenced by `DatoApi`'s JSON-Schema
4877
4877
  * via the `definition` "access_token".
4878
4878
  */
4879
- export interface AccessToken {
4879
+ export type AccessToken = {
4880
4880
  id: AccessTokenIdentity;
4881
4881
  type: AccessTokenType;
4882
4882
  /**
@@ -4901,7 +4901,7 @@ export interface AccessToken {
4901
4901
  can_access_cma: boolean;
4902
4902
  hardcoded_type: null | string;
4903
4903
  role: RoleData | null;
4904
- }
4904
+ };
4905
4905
  export type AccessTokenCreateTargetSchema = AccessToken;
4906
4906
  export type AccessTokenUpdateTargetSchema = AccessToken;
4907
4907
  export type AccessTokenSelfTargetSchema = AccessToken;
@@ -4913,10 +4913,10 @@ export type AccessTokenDestroyTargetSchema = AccessToken;
4913
4913
  * This interface was referenced by `AccessToken`'s JSON-Schema
4914
4914
  * via the `definition` "data".
4915
4915
  */
4916
- export interface AccessTokenData {
4916
+ export type AccessTokenData = {
4917
4917
  type: AccessTokenType;
4918
4918
  id: AccessTokenIdentity;
4919
- }
4919
+ };
4920
4920
 
4921
4921
  /**
4922
4922
  * JSON API attributes
@@ -4924,7 +4924,7 @@ export interface AccessTokenData {
4924
4924
  * This interface was referenced by `AccessToken`'s JSON-Schema
4925
4925
  * via the `definition` "attributes".
4926
4926
  */
4927
- export interface AccessTokenAttributes {
4927
+ export type AccessTokenAttributes = {
4928
4928
  /**
4929
4929
  * Name of API token
4930
4930
  */
@@ -4946,7 +4946,7 @@ export interface AccessTokenAttributes {
4946
4946
  */
4947
4947
  can_access_cma: boolean;
4948
4948
  hardcoded_type: null | string;
4949
- }
4949
+ };
4950
4950
 
4951
4951
  /**
4952
4952
  * JSON API links
@@ -4954,15 +4954,15 @@ export interface AccessTokenAttributes {
4954
4954
  * This interface was referenced by `AccessToken`'s JSON-Schema
4955
4955
  * via the `definition` "relationships".
4956
4956
  */
4957
- export interface AccessTokenRelationships {
4957
+ export type AccessTokenRelationships = {
4958
4958
  role: RoleData | null;
4959
- }
4959
+ };
4960
4960
 
4961
4961
  /**
4962
4962
  * This interface was referenced by `AccessToken`'s JSON-Schema
4963
4963
  * via the `create.schema` link.
4964
4964
  */
4965
- export interface AccessTokenCreateSchema {
4965
+ export type AccessTokenCreateSchema = {
4966
4966
  type?: AccessTokenType;
4967
4967
  /**
4968
4968
  * Name of API token
@@ -4981,13 +4981,13 @@ export interface AccessTokenCreateSchema {
4981
4981
  */
4982
4982
  can_access_cma: boolean;
4983
4983
  role: RoleData | null;
4984
- }
4984
+ };
4985
4985
 
4986
4986
  /**
4987
4987
  * This interface was referenced by `AccessToken`'s JSON-Schema
4988
4988
  * via the `update.schema` link.
4989
4989
  */
4990
- export interface AccessTokenUpdateSchema {
4990
+ export type AccessTokenUpdateSchema = {
4991
4991
  id?: AccessTokenIdentity;
4992
4992
  type?: AccessTokenType;
4993
4993
  /**
@@ -5007,7 +5007,7 @@ export interface AccessTokenUpdateSchema {
5007
5007
  */
5008
5008
  can_access_cma: boolean;
5009
5009
  role: RoleData | null;
5010
- }
5010
+ };
5011
5011
 
5012
5012
  /**
5013
5013
  * Plugins enable developers to replace DatoCMS field components with HTML5 applications so the editing experiences of the DatoCMS web app can be customized.
@@ -5015,7 +5015,7 @@ export interface AccessTokenUpdateSchema {
5015
5015
  * This interface was referenced by `DatoApi`'s JSON-Schema
5016
5016
  * via the `definition` "plugin".
5017
5017
  */
5018
- export interface Plugin {
5018
+ export type Plugin = {
5019
5019
  id: PluginIdentity;
5020
5020
  type: PluginType;
5021
5021
  /**
@@ -5085,7 +5085,7 @@ export interface Plugin {
5085
5085
  instance: unknown[];
5086
5086
  };
5087
5087
  meta: PluginMeta;
5088
- }
5088
+ };
5089
5089
  export type PluginCreateTargetSchema = Plugin;
5090
5090
  export type PluginUpdateTargetSchema = Plugin;
5091
5091
  export type PluginSelfTargetSchema = Plugin;
@@ -5096,12 +5096,12 @@ export type PluginDestroyTargetSchema = Plugin;
5096
5096
  * This interface was referenced by `Plugin`'s JSON-Schema
5097
5097
  * via the `definition` "meta".
5098
5098
  */
5099
- export interface PluginMeta {
5099
+ export type PluginMeta = {
5100
5100
  /**
5101
5101
  * Version of the plugin. Legacy plugins are v1, new plugins are v2
5102
5102
  */
5103
5103
  version: string;
5104
- }
5104
+ };
5105
5105
 
5106
5106
  /**
5107
5107
  * JSON API data
@@ -5109,10 +5109,10 @@ export interface PluginMeta {
5109
5109
  * This interface was referenced by `Plugin`'s JSON-Schema
5110
5110
  * via the `definition` "data".
5111
5111
  */
5112
- export interface PluginData {
5112
+ export type PluginData = {
5113
5113
  type: PluginType;
5114
5114
  id: PluginIdentity;
5115
- }
5115
+ };
5116
5116
 
5117
5117
  /**
5118
5118
  * JSON API attributes
@@ -5120,7 +5120,7 @@ export interface PluginData {
5120
5120
  * This interface was referenced by `Plugin`'s JSON-Schema
5121
5121
  * via the `definition` "attributes".
5122
5122
  */
5123
- export interface PluginAttributes {
5123
+ export type PluginAttributes = {
5124
5124
  /**
5125
5125
  * The name of the plugin
5126
5126
  */
@@ -5187,13 +5187,13 @@ export interface PluginAttributes {
5187
5187
  global: unknown[];
5188
5188
  instance: unknown[];
5189
5189
  };
5190
- }
5190
+ };
5191
5191
 
5192
5192
  /**
5193
5193
  * This interface was referenced by `Plugin`'s JSON-Schema
5194
5194
  * via the `create.schema` link.
5195
5195
  */
5196
- export interface PluginCreateSchema {
5196
+ export type PluginCreateSchema = {
5197
5197
  type?: PluginType;
5198
5198
  /**
5199
5199
  * NPM package name of the public plugin you want to install. For public plugins, that's the only attribute you need to pass.
@@ -5253,13 +5253,13 @@ export interface PluginCreateSchema {
5253
5253
  * NPM version of the plugin
5254
5254
  */
5255
5255
  package_version?: null | string;
5256
- }
5256
+ };
5257
5257
 
5258
5258
  /**
5259
5259
  * This interface was referenced by `Plugin`'s JSON-Schema
5260
5260
  * via the `update.schema` link.
5261
5261
  */
5262
- export interface PluginUpdateSchema {
5262
+ export type PluginUpdateSchema = {
5263
5263
  id?: PluginIdentity;
5264
5264
  type?: PluginType;
5265
5265
  /**
@@ -5291,7 +5291,7 @@ export interface PluginUpdateSchema {
5291
5291
  meta?: {
5292
5292
  [k: string]: unknown;
5293
5293
  };
5294
- }
5294
+ };
5295
5295
 
5296
5296
  /**
5297
5297
  * Some API endpoint give results asynchronously, returning the ID of a job.
@@ -5299,7 +5299,7 @@ export interface PluginUpdateSchema {
5299
5299
  * This interface was referenced by `DatoApi`'s JSON-Schema
5300
5300
  * via the `definition` "job_result".
5301
5301
  */
5302
- export interface JobResult {
5302
+ export type JobResult = {
5303
5303
  id: JobResultIdentity;
5304
5304
  type: JobResultType;
5305
5305
  /**
@@ -5312,7 +5312,7 @@ export interface JobResult {
5312
5312
  payload: null | {
5313
5313
  [k: string]: unknown;
5314
5314
  };
5315
- }
5315
+ };
5316
5316
  export type JobResultSelfTargetSchema = JobResult;
5317
5317
  /**
5318
5318
  * JSON API data
@@ -5320,10 +5320,10 @@ export type JobResultSelfTargetSchema = JobResult;
5320
5320
  * This interface was referenced by `JobResult`'s JSON-Schema
5321
5321
  * via the `definition` "data".
5322
5322
  */
5323
- export interface JobResultData {
5323
+ export type JobResultData = {
5324
5324
  type: JobResultType;
5325
5325
  id: JobResultIdentity;
5326
- }
5326
+ };
5327
5327
 
5328
5328
  /**
5329
5329
  * JSON API attributes
@@ -5331,7 +5331,7 @@ export interface JobResultData {
5331
5331
  * This interface was referenced by `JobResult`'s JSON-Schema
5332
5332
  * via the `definition` "attributes".
5333
5333
  */
5334
- export interface JobResultAttributes {
5334
+ export type JobResultAttributes = {
5335
5335
  /**
5336
5336
  * Status of delayed HTTP response
5337
5337
  */
@@ -5342,13 +5342,13 @@ export interface JobResultAttributes {
5342
5342
  payload: null | {
5343
5343
  [k: string]: unknown;
5344
5344
  };
5345
- }
5345
+ };
5346
5346
 
5347
5347
  /**
5348
5348
  * This interface was referenced by `DatoApi`'s JSON-Schema
5349
5349
  * via the `definition` "subscription_limit".
5350
5350
  */
5351
- export interface SubscriptionLimit {
5351
+ export type SubscriptionLimit = {
5352
5352
  id: SubscriptionLimitIdentity;
5353
5353
  type: SubscriptionLimitType;
5354
5354
  /**
@@ -5363,7 +5363,7 @@ export interface SubscriptionLimit {
5363
5363
  * The actual limit
5364
5364
  */
5365
5365
  limit: number | null;
5366
- }
5366
+ };
5367
5367
  export type SubscriptionLimitSelfTargetSchema = SubscriptionLimit;
5368
5368
  /**
5369
5369
  * JSON API data
@@ -5371,10 +5371,10 @@ export type SubscriptionLimitSelfTargetSchema = SubscriptionLimit;
5371
5371
  * This interface was referenced by `SubscriptionLimit`'s JSON-Schema
5372
5372
  * via the `definition` "data".
5373
5373
  */
5374
- export interface SubscriptionLimitData {
5374
+ export type SubscriptionLimitData = {
5375
5375
  type: SubscriptionLimitType;
5376
5376
  id: SubscriptionLimitIdentity;
5377
- }
5377
+ };
5378
5378
 
5379
5379
  /**
5380
5380
  * JSON API attributes
@@ -5382,7 +5382,7 @@ export interface SubscriptionLimitData {
5382
5382
  * This interface was referenced by `SubscriptionLimit`'s JSON-Schema
5383
5383
  * via the `definition` "attributes".
5384
5384
  */
5385
- export interface SubscriptionLimitAttributes {
5385
+ export type SubscriptionLimitAttributes = {
5386
5386
  /**
5387
5387
  * The codename for the limit
5388
5388
  */
@@ -5395,13 +5395,13 @@ export interface SubscriptionLimitAttributes {
5395
5395
  * The actual limit
5396
5396
  */
5397
5397
  limit: number | null;
5398
- }
5398
+ };
5399
5399
 
5400
5400
  /**
5401
5401
  * This interface was referenced by `DatoApi`'s JSON-Schema
5402
5402
  * via the `definition` "subscription_feature".
5403
5403
  */
5404
- export interface SubscriptionFeature {
5404
+ export type SubscriptionFeature = {
5405
5405
  id: SubscriptionFeatureIdentity;
5406
5406
  type: SubscriptionFeatureType;
5407
5407
  /**
@@ -5416,7 +5416,7 @@ export interface SubscriptionFeature {
5416
5416
  * Whether the feature is available on the current project
5417
5417
  */
5418
5418
  enabled: boolean;
5419
- }
5419
+ };
5420
5420
 
5421
5421
  /**
5422
5422
  * JSON API data
@@ -5424,10 +5424,10 @@ export interface SubscriptionFeature {
5424
5424
  * This interface was referenced by `SubscriptionFeature`'s JSON-Schema
5425
5425
  * via the `definition` "data".
5426
5426
  */
5427
- export interface SubscriptionFeatureData {
5427
+ export type SubscriptionFeatureData = {
5428
5428
  type: SubscriptionFeatureType;
5429
5429
  id: SubscriptionFeatureIdentity;
5430
- }
5430
+ };
5431
5431
 
5432
5432
  /**
5433
5433
  * JSON API attributes
@@ -5435,7 +5435,7 @@ export interface SubscriptionFeatureData {
5435
5435
  * This interface was referenced by `SubscriptionFeature`'s JSON-Schema
5436
5436
  * via the `definition` "attributes".
5437
5437
  */
5438
- export interface SubscriptionFeatureAttributes {
5438
+ export type SubscriptionFeatureAttributes = {
5439
5439
  /**
5440
5440
  * The codename for the feature
5441
5441
  */
@@ -5448,7 +5448,7 @@ export interface SubscriptionFeatureAttributes {
5448
5448
  * Whether the feature is available on the current project
5449
5449
  */
5450
5450
  enabled: boolean;
5451
- }
5451
+ };
5452
5452
 
5453
5453
  /**
5454
5454
  * Represents an event occurred during the deploy process of your administrative area.
@@ -5456,7 +5456,7 @@ export interface SubscriptionFeatureAttributes {
5456
5456
  * This interface was referenced by `DatoApi`'s JSON-Schema
5457
5457
  * via the `definition` "build_event".
5458
5458
  */
5459
- export interface BuildEvent {
5459
+ export type BuildEvent = {
5460
5460
  id: BuildEventIdentity;
5461
5461
  type: BuildEventType;
5462
5462
  /**
@@ -5483,7 +5483,7 @@ export interface BuildEvent {
5483
5483
  [k: string]: unknown;
5484
5484
  };
5485
5485
  build_trigger: BuildTriggerData;
5486
- }
5486
+ };
5487
5487
  export type BuildEventSelfTargetSchema = BuildEvent;
5488
5488
  /**
5489
5489
  * JSON API data
@@ -5491,10 +5491,10 @@ export type BuildEventSelfTargetSchema = BuildEvent;
5491
5491
  * This interface was referenced by `BuildTrigger`'s JSON-Schema
5492
5492
  * via the `definition` "data".
5493
5493
  */
5494
- export interface BuildTriggerData {
5494
+ export type BuildTriggerData = {
5495
5495
  type: BuildTriggerType;
5496
5496
  id: BuildTriggerIdentity;
5497
- }
5497
+ };
5498
5498
 
5499
5499
  /**
5500
5500
  * JSON API data
@@ -5502,10 +5502,10 @@ export interface BuildTriggerData {
5502
5502
  * This interface was referenced by `BuildEvent`'s JSON-Schema
5503
5503
  * via the `definition` "data".
5504
5504
  */
5505
- export interface BuildEventData {
5505
+ export type BuildEventData = {
5506
5506
  type: BuildEventType;
5507
5507
  id: BuildEventIdentity;
5508
- }
5508
+ };
5509
5509
 
5510
5510
  /**
5511
5511
  * JSON API attributes
@@ -5513,7 +5513,7 @@ export interface BuildEventData {
5513
5513
  * This interface was referenced by `BuildEvent`'s JSON-Schema
5514
5514
  * via the `definition` "attributes".
5515
5515
  */
5516
- export interface BuildEventAttributes {
5516
+ export type BuildEventAttributes = {
5517
5517
  /**
5518
5518
  * The type of activity
5519
5519
  */
@@ -5537,7 +5537,7 @@ export interface BuildEventAttributes {
5537
5537
  data: {
5538
5538
  [k: string]: unknown;
5539
5539
  };
5540
- }
5540
+ };
5541
5541
 
5542
5542
  /**
5543
5543
  * JSON API links
@@ -5545,9 +5545,9 @@ export interface BuildEventAttributes {
5545
5545
  * This interface was referenced by `BuildEvent`'s JSON-Schema
5546
5546
  * via the `definition` "relationships".
5547
5547
  */
5548
- export interface BuildEventRelationships {
5548
+ export type BuildEventRelationships = {
5549
5549
  build_trigger: BuildTriggerData;
5550
- }
5550
+ };
5551
5551
 
5552
5552
  /**
5553
5553
  * DatoCMS stores the individual pieces of content you create from a model as records, which are much like table rows in a database. For backward-compatibility reasons, the API refers to records as "items".
@@ -5561,14 +5561,14 @@ export interface BuildEventRelationships {
5561
5561
  * This interface was referenced by `DatoApi`'s JSON-Schema
5562
5562
  * via the `definition` "item".
5563
5563
  */
5564
- export interface Item {
5564
+ export type Item = {
5565
5565
  id: ItemIdentity;
5566
5566
  type: ItemType1;
5567
5567
  item_type: ItemTypeData;
5568
5568
  creator?: AccountData | AccessTokenData | UserData | SsoUserData;
5569
5569
  meta: ItemMeta;
5570
5570
  [k: string]: unknown;
5571
- }
5571
+ };
5572
5572
  export type ItemCreateTargetSchema = Item;
5573
5573
  export type ItemDuplicateJobSchema = Item;
5574
5574
  export type ItemUpdateTargetSchema = Item;
@@ -5584,7 +5584,7 @@ export type ScheduledUnpublishingDestroyTargetSchema = Item;
5584
5584
  * This interface was referenced by `Item`'s JSON-Schema
5585
5585
  * via the `definition` "meta".
5586
5586
  */
5587
- export interface ItemMeta {
5587
+ export type ItemMeta = {
5588
5588
  /**
5589
5589
  * Date of creation
5590
5590
  */
@@ -5625,7 +5625,7 @@ export interface ItemMeta {
5625
5625
  * Workflow stage in which the item is
5626
5626
  */
5627
5627
  stage: null | string;
5628
- }
5628
+ };
5629
5629
 
5630
5630
  /**
5631
5631
  * The JSON data associated to the record
@@ -5633,9 +5633,9 @@ export interface ItemMeta {
5633
5633
  * This interface was referenced by `Item`'s JSON-Schema
5634
5634
  * via the `definition` "attributes".
5635
5635
  */
5636
- export interface ItemAttributes {
5636
+ export type ItemAttributes = {
5637
5637
  [k: string]: unknown;
5638
- }
5638
+ };
5639
5639
 
5640
5640
  /**
5641
5641
  * JSON API links
@@ -5643,38 +5643,38 @@ export interface ItemAttributes {
5643
5643
  * This interface was referenced by `Item`'s JSON-Schema
5644
5644
  * via the `definition` "relationships".
5645
5645
  */
5646
- export interface ItemRelationships {
5646
+ export type ItemRelationships = {
5647
5647
  item_type: ItemTypeData;
5648
5648
  creator?: AccountData | AccessTokenData | UserData | SsoUserData;
5649
- }
5649
+ };
5650
5650
 
5651
5651
  /**
5652
5652
  * This interface was referenced by `Item`'s JSON-Schema
5653
5653
  * via the `validate_existing.schema` link.
5654
5654
  */
5655
- export interface ItemValidateExistingSchema {
5655
+ export type ItemValidateExistingSchema = {
5656
5656
  id?: ItemIdentity;
5657
5657
  type?: ItemType1;
5658
5658
  item_type: ItemTypeData;
5659
5659
  creator?: AccountData | AccessTokenData | UserData | SsoUserData;
5660
5660
  [k: string]: unknown;
5661
- }
5661
+ };
5662
5662
 
5663
5663
  /**
5664
5664
  * This interface was referenced by `Item`'s JSON-Schema
5665
5665
  * via the `validate_new.schema` link.
5666
5666
  */
5667
- export interface ItemValidateNewSchema {
5667
+ export type ItemValidateNewSchema = {
5668
5668
  type?: ItemType1;
5669
5669
  item_type: ItemTypeData;
5670
5670
  [k: string]: unknown;
5671
- }
5671
+ };
5672
5672
 
5673
5673
  /**
5674
5674
  * This interface was referenced by `Item`'s JSON-Schema
5675
5675
  * via the `create.schema` link.
5676
5676
  */
5677
- export interface ItemCreateSchema {
5677
+ export type ItemCreateSchema = {
5678
5678
  type?: ItemType1;
5679
5679
  item_type: ItemTypeData;
5680
5680
  /**
@@ -5715,13 +5715,13 @@ export interface ItemCreateSchema {
5715
5715
  current_version?: string;
5716
5716
  };
5717
5717
  [k: string]: unknown;
5718
- }
5718
+ };
5719
5719
 
5720
5720
  /**
5721
5721
  * This interface was referenced by `Item`'s JSON-Schema
5722
5722
  * via the `update.schema` link.
5723
5723
  */
5724
- export interface ItemUpdateSchema {
5724
+ export type ItemUpdateSchema = {
5725
5725
  id?: ItemIdentity;
5726
5726
  type?: ItemType1;
5727
5727
  item_type?: ItemTypeData;
@@ -5772,13 +5772,13 @@ export interface ItemUpdateSchema {
5772
5772
  stage?: string | null;
5773
5773
  };
5774
5774
  [k: string]: unknown;
5775
- }
5775
+ };
5776
5776
 
5777
5777
  /**
5778
5778
  * This interface was referenced by `Item`'s JSON-Schema
5779
5779
  * via the `bulk_publish.schema` link.
5780
5780
  */
5781
- export interface ItemBulkPublishSchema {
5781
+ export type ItemBulkPublishSchema = {
5782
5782
  /**
5783
5783
  * JSON API type field
5784
5784
  */
@@ -5786,13 +5786,13 @@ export interface ItemBulkPublishSchema {
5786
5786
  items: ItemData[];
5787
5787
  minItems?: unknown;
5788
5788
  [k: string]: unknown;
5789
- }
5789
+ };
5790
5790
 
5791
5791
  /**
5792
5792
  * This interface was referenced by `Item`'s JSON-Schema
5793
5793
  * via the `bulk_unpublish.schema` link.
5794
5794
  */
5795
- export interface ItemBulkUnpublishSchema {
5795
+ export type ItemBulkUnpublishSchema = {
5796
5796
  /**
5797
5797
  * JSON API type field
5798
5798
  */
@@ -5800,13 +5800,13 @@ export interface ItemBulkUnpublishSchema {
5800
5800
  items: ItemData[];
5801
5801
  minItems?: unknown;
5802
5802
  [k: string]: unknown;
5803
- }
5803
+ };
5804
5804
 
5805
5805
  /**
5806
5806
  * This interface was referenced by `Item`'s JSON-Schema
5807
5807
  * via the `bulk_destroy.schema` link.
5808
5808
  */
5809
- export interface ItemBulkDestroySchema {
5809
+ export type ItemBulkDestroySchema = {
5810
5810
  /**
5811
5811
  * JSON API type field
5812
5812
  */
@@ -5814,13 +5814,13 @@ export interface ItemBulkDestroySchema {
5814
5814
  items: ItemData[];
5815
5815
  minItems?: unknown;
5816
5816
  [k: string]: unknown;
5817
- }
5817
+ };
5818
5818
 
5819
5819
  /**
5820
5820
  * This interface was referenced by `Item`'s JSON-Schema
5821
5821
  * via the `bulk_move_to_stage.schema` link.
5822
5822
  */
5823
- export interface ItemBulkMoveToStageSchema {
5823
+ export type ItemBulkMoveToStageSchema = {
5824
5824
  /**
5825
5825
  * JSON API type field
5826
5826
  */
@@ -5831,7 +5831,7 @@ export interface ItemBulkMoveToStageSchema {
5831
5831
  stage: string;
5832
5832
  items: ItemData[];
5833
5833
  minItems?: unknown;
5834
- }
5834
+ };
5835
5835
 
5836
5836
  /**
5837
5837
  * Every change to a record is stored as a separate record version in DatoCMS.
@@ -5839,7 +5839,7 @@ export interface ItemBulkMoveToStageSchema {
5839
5839
  * This interface was referenced by `DatoApi`'s JSON-Schema
5840
5840
  * via the `definition` "item_version".
5841
5841
  */
5842
- export interface ItemVersion {
5842
+ export type ItemVersion = {
5843
5843
  id: ItemVersionIdentity;
5844
5844
  type: ItemVersionType;
5845
5845
  item_type: ItemTypeData;
@@ -5847,7 +5847,7 @@ export interface ItemVersion {
5847
5847
  editor: AccountData | AccessTokenData | UserData | SsoUserData;
5848
5848
  meta: ItemVersionMeta;
5849
5849
  [k: string]: unknown;
5850
- }
5850
+ };
5851
5851
  export type ItemVersionSelfTargetSchema = ItemVersion;
5852
5852
  /**
5853
5853
  * Meta information regarding the record version
@@ -5855,7 +5855,7 @@ export type ItemVersionSelfTargetSchema = ItemVersion;
5855
5855
  * This interface was referenced by `ItemVersion`'s JSON-Schema
5856
5856
  * via the `definition` "meta".
5857
5857
  */
5858
- export interface ItemVersionMeta {
5858
+ export type ItemVersionMeta = {
5859
5859
  /**
5860
5860
  * Date of record version creation
5861
5861
  */
@@ -5872,7 +5872,7 @@ export interface ItemVersionMeta {
5872
5872
  * Whether the record version is the most recent version or not
5873
5873
  */
5874
5874
  is_current: boolean;
5875
- }
5875
+ };
5876
5876
 
5877
5877
  /**
5878
5878
  * JSON API data
@@ -5880,10 +5880,10 @@ export interface ItemVersionMeta {
5880
5880
  * This interface was referenced by `ItemVersion`'s JSON-Schema
5881
5881
  * via the `definition` "data".
5882
5882
  */
5883
- export interface ItemVersionData {
5883
+ export type ItemVersionData = {
5884
5884
  type: ItemVersionType;
5885
5885
  id: ItemVersionIdentity;
5886
- }
5886
+ };
5887
5887
 
5888
5888
  /**
5889
5889
  * The JSON data associated to the record version
@@ -5891,9 +5891,9 @@ export interface ItemVersionData {
5891
5891
  * This interface was referenced by `ItemVersion`'s JSON-Schema
5892
5892
  * via the `definition` "attributes".
5893
5893
  */
5894
- export interface ItemVersionAttributes {
5894
+ export type ItemVersionAttributes = {
5895
5895
  [k: string]: unknown;
5896
- }
5896
+ };
5897
5897
 
5898
5898
  /**
5899
5899
  * JSON API links
@@ -5901,11 +5901,11 @@ export interface ItemVersionAttributes {
5901
5901
  * This interface was referenced by `ItemVersion`'s JSON-Schema
5902
5902
  * via the `definition` "relationships".
5903
5903
  */
5904
- export interface ItemVersionRelationships {
5904
+ export type ItemVersionRelationships = {
5905
5905
  item_type: ItemTypeData;
5906
5906
  item: ItemData;
5907
5907
  editor: AccountData | AccessTokenData | UserData | SsoUserData;
5908
- }
5908
+ };
5909
5909
 
5910
5910
  /**
5911
5911
  * Every file you upload to DatoCMS will be retrievable from this endpoint.
@@ -5913,7 +5913,7 @@ export interface ItemVersionRelationships {
5913
5913
  * This interface was referenced by `DatoApi`'s JSON-Schema
5914
5914
  * via the `definition` "upload".
5915
5915
  */
5916
- export interface Upload {
5916
+ export type Upload = {
5917
5917
  id: UploadIdentity;
5918
5918
  type: UploadType;
5919
5919
  /**
@@ -6074,7 +6074,7 @@ export interface Upload {
6074
6074
  alpha: number;
6075
6075
  }[];
6076
6076
  creator: AccountData | AccessTokenData | UserData | SsoUserData;
6077
- }
6077
+ };
6078
6078
  export type UploadCreateJobSchema = Upload;
6079
6079
  export type UploadSelfTargetSchema = Upload;
6080
6080
  export type UploadDestroyTargetSchema = Upload;
@@ -6085,10 +6085,10 @@ export type UploadUpdateJobSchema = Upload;
6085
6085
  * This interface was referenced by `Upload`'s JSON-Schema
6086
6086
  * via the `definition` "data".
6087
6087
  */
6088
- export interface UploadData {
6088
+ export type UploadData = {
6089
6089
  type: UploadType;
6090
6090
  id: UploadIdentity;
6091
- }
6091
+ };
6092
6092
 
6093
6093
  /**
6094
6094
  * JSON API attributes
@@ -6096,7 +6096,7 @@ export interface UploadData {
6096
6096
  * This interface was referenced by `Upload`'s JSON-Schema
6097
6097
  * via the `definition` "attributes".
6098
6098
  */
6099
- export interface UploadAttributes {
6099
+ export type UploadAttributes = {
6100
6100
  /**
6101
6101
  * size of the upload
6102
6102
  */
@@ -6254,7 +6254,7 @@ export interface UploadAttributes {
6254
6254
  */
6255
6255
  alpha: number;
6256
6256
  }[];
6257
- }
6257
+ };
6258
6258
 
6259
6259
  /**
6260
6260
  * JSON API links
@@ -6262,15 +6262,15 @@ export interface UploadAttributes {
6262
6262
  * This interface was referenced by `Upload`'s JSON-Schema
6263
6263
  * via the `definition` "relationships".
6264
6264
  */
6265
- export interface UploadRelationships {
6265
+ export type UploadRelationships = {
6266
6266
  creator: AccountData | AccessTokenData | UserData | SsoUserData;
6267
- }
6267
+ };
6268
6268
 
6269
6269
  /**
6270
6270
  * This interface was referenced by `Upload`'s JSON-Schema
6271
6271
  * via the `create.schema` link.
6272
6272
  */
6273
- export interface UploadCreateSchema {
6273
+ export type UploadCreateSchema = {
6274
6274
  type?: UploadType;
6275
6275
  /**
6276
6276
  * Upload path
@@ -6330,13 +6330,13 @@ export interface UploadCreateSchema {
6330
6330
  * Tags
6331
6331
  */
6332
6332
  tags?: string[];
6333
- }
6333
+ };
6334
6334
 
6335
6335
  /**
6336
6336
  * This interface was referenced by `Upload`'s JSON-Schema
6337
6337
  * via the `update.schema` link.
6338
6338
  */
6339
- export interface UploadUpdateSchema {
6339
+ export type UploadUpdateSchema = {
6340
6340
  id?: UploadIdentity;
6341
6341
  type?: UploadType;
6342
6342
  /**
@@ -6402,25 +6402,25 @@ export interface UploadUpdateSchema {
6402
6402
  };
6403
6403
  };
6404
6404
  creator?: AccountData | AccessTokenData | UserData | SsoUserData;
6405
- }
6405
+ };
6406
6406
 
6407
6407
  /**
6408
6408
  * This interface was referenced by `Upload`'s JSON-Schema
6409
6409
  * via the `batch_add_tags.schema` link.
6410
6410
  */
6411
- export interface UploadBatchAddTagsSchema {
6411
+ export type UploadBatchAddTagsSchema = {
6412
6412
  type?: UploadType;
6413
6413
  /**
6414
6414
  * Tags
6415
6415
  */
6416
6416
  tags?: string[];
6417
- }
6417
+ };
6418
6418
 
6419
6419
  /**
6420
6420
  * This interface was referenced by `Upload`'s JSON-Schema
6421
6421
  * via the `bulk_tag.schema` link.
6422
6422
  */
6423
- export interface UploadBulkTagSchema {
6423
+ export type UploadBulkTagSchema = {
6424
6424
  /**
6425
6425
  * JSON API type field
6426
6426
  */
@@ -6430,20 +6430,20 @@ export interface UploadBulkTagSchema {
6430
6430
  */
6431
6431
  tags: string[];
6432
6432
  uploads: UploadData[];
6433
- }
6433
+ };
6434
6434
 
6435
6435
  /**
6436
6436
  * This interface was referenced by `Upload`'s JSON-Schema
6437
6437
  * via the `bulk_destroy.schema` link.
6438
6438
  */
6439
- export interface UploadBulkDestroySchema {
6439
+ export type UploadBulkDestroySchema = {
6440
6440
  /**
6441
6441
  * JSON API type field
6442
6442
  */
6443
6443
  type?: 'upload_bulk_destroy_operation';
6444
6444
  uploads: UploadData[];
6445
6445
  [k: string]: unknown;
6446
- }
6446
+ };
6447
6447
 
6448
6448
  /**
6449
6449
  * To upload a file in DatoCMS, first you need to obtain an upload permission through this API endpoint. The response will contain the S3 URL where you will be able to upload the file with a direct PUT request.
@@ -6451,14 +6451,14 @@ export interface UploadBulkDestroySchema {
6451
6451
  * This interface was referenced by `DatoApi`'s JSON-Schema
6452
6452
  * via the `definition` "upload_request".
6453
6453
  */
6454
- export interface UploadRequest {
6454
+ export type UploadRequest = {
6455
6455
  id: UploadRequestIdentity;
6456
6456
  type: UploadRequestType;
6457
6457
  /**
6458
6458
  * The URL to use to upload the file with a direct PUT request
6459
6459
  */
6460
6460
  url: string;
6461
- }
6461
+ };
6462
6462
  export type UploadRequestCreateTargetSchema = UploadRequest;
6463
6463
  /**
6464
6464
  * JSON API attributes
@@ -6466,25 +6466,25 @@ export type UploadRequestCreateTargetSchema = UploadRequest;
6466
6466
  * This interface was referenced by `UploadRequest`'s JSON-Schema
6467
6467
  * via the `definition` "attributes".
6468
6468
  */
6469
- export interface UploadRequestAttributes {
6469
+ export type UploadRequestAttributes = {
6470
6470
  /**
6471
6471
  * The URL to use to upload the file with a direct PUT request
6472
6472
  */
6473
6473
  url: string;
6474
6474
  [k: string]: unknown;
6475
- }
6475
+ };
6476
6476
 
6477
6477
  /**
6478
6478
  * This interface was referenced by `UploadRequest`'s JSON-Schema
6479
6479
  * via the `create.schema` link.
6480
6480
  */
6481
- export interface UploadRequestCreateSchema {
6481
+ export type UploadRequestCreateSchema = {
6482
6482
  type?: UploadRequestType;
6483
6483
  /**
6484
6484
  * The original file name
6485
6485
  */
6486
6486
  filename?: string;
6487
- }
6487
+ };
6488
6488
 
6489
6489
  /**
6490
6490
  * You can create scheduled publication to publish records in the future
@@ -6492,7 +6492,7 @@ export interface UploadRequestCreateSchema {
6492
6492
  * This interface was referenced by `DatoApi`'s JSON-Schema
6493
6493
  * via the `definition` "scheduled_publication".
6494
6494
  */
6495
- export interface ScheduledPublication {
6495
+ export type ScheduledPublication = {
6496
6496
  id: ScheduledPublicationIdentity;
6497
6497
  type: ScheduledPublicationType;
6498
6498
  /**
@@ -6500,7 +6500,7 @@ export interface ScheduledPublication {
6500
6500
  */
6501
6501
  publication_scheduled_at: string;
6502
6502
  item: ItemData;
6503
- }
6503
+ };
6504
6504
  export type ScheduledPublicationCreateTargetSchema = ScheduledPublication;
6505
6505
  /**
6506
6506
  * JSON API data
@@ -6508,10 +6508,10 @@ export type ScheduledPublicationCreateTargetSchema = ScheduledPublication;
6508
6508
  * This interface was referenced by `ScheduledPublication`'s JSON-Schema
6509
6509
  * via the `definition` "data".
6510
6510
  */
6511
- export interface ScheduledPublicationData {
6511
+ export type ScheduledPublicationData = {
6512
6512
  type: ScheduledPublicationType;
6513
6513
  id: ScheduledPublicationIdentity;
6514
- }
6514
+ };
6515
6515
 
6516
6516
  /**
6517
6517
  * JSON API attributes
@@ -6519,12 +6519,12 @@ export interface ScheduledPublicationData {
6519
6519
  * This interface was referenced by `ScheduledPublication`'s JSON-Schema
6520
6520
  * via the `definition` "attributes".
6521
6521
  */
6522
- export interface ScheduledPublicationAttributes {
6522
+ export type ScheduledPublicationAttributes = {
6523
6523
  /**
6524
6524
  * The future date for the publication
6525
6525
  */
6526
6526
  publication_scheduled_at: string;
6527
- }
6527
+ };
6528
6528
 
6529
6529
  /**
6530
6530
  * JSON API links
@@ -6532,18 +6532,18 @@ export interface ScheduledPublicationAttributes {
6532
6532
  * This interface was referenced by `ScheduledPublication`'s JSON-Schema
6533
6533
  * via the `definition` "relationships".
6534
6534
  */
6535
- export interface ScheduledPublicationRelationships {
6535
+ export type ScheduledPublicationRelationships = {
6536
6536
  item: ItemData;
6537
- }
6537
+ };
6538
6538
 
6539
6539
  /**
6540
6540
  * This interface was referenced by `ScheduledPublication`'s JSON-Schema
6541
6541
  * via the `create.schema` link.
6542
6542
  */
6543
- export interface ScheduledPublicationCreateSchema {
6543
+ export type ScheduledPublicationCreateSchema = {
6544
6544
  type?: ScheduledPublicationType;
6545
6545
  [k: string]: unknown;
6546
- }
6546
+ };
6547
6547
 
6548
6548
  /**
6549
6549
  * You can create a scheduled unpublishing to unpublish records in the future
@@ -6551,7 +6551,7 @@ export interface ScheduledPublicationCreateSchema {
6551
6551
  * This interface was referenced by `DatoApi`'s JSON-Schema
6552
6552
  * via the `definition` "scheduled_unpublishing".
6553
6553
  */
6554
- export interface ScheduledUnpublishing {
6554
+ export type ScheduledUnpublishing = {
6555
6555
  id: ScheduledUnpublishingIdentity;
6556
6556
  type: ScheduledUnpublishingType;
6557
6557
  /**
@@ -6559,7 +6559,7 @@ export interface ScheduledUnpublishing {
6559
6559
  */
6560
6560
  unpublishing_scheduled_at: string;
6561
6561
  item: ItemData;
6562
- }
6562
+ };
6563
6563
  export type ScheduledUnpublishingCreateTargetSchema = ScheduledUnpublishing;
6564
6564
  /**
6565
6565
  * JSON API data
@@ -6567,10 +6567,10 @@ export type ScheduledUnpublishingCreateTargetSchema = ScheduledUnpublishing;
6567
6567
  * This interface was referenced by `ScheduledUnpublishing`'s JSON-Schema
6568
6568
  * via the `definition` "data".
6569
6569
  */
6570
- export interface ScheduledUnpublishingData {
6570
+ export type ScheduledUnpublishingData = {
6571
6571
  type: ScheduledUnpublishingType;
6572
6572
  id: ScheduledUnpublishingIdentity;
6573
- }
6573
+ };
6574
6574
 
6575
6575
  /**
6576
6576
  * JSON API attributes
@@ -6578,12 +6578,12 @@ export interface ScheduledUnpublishingData {
6578
6578
  * This interface was referenced by `ScheduledUnpublishing`'s JSON-Schema
6579
6579
  * via the `definition` "attributes".
6580
6580
  */
6581
- export interface ScheduledUnpublishingAttributes {
6581
+ export type ScheduledUnpublishingAttributes = {
6582
6582
  /**
6583
6583
  * The future date for the unpublishing
6584
6584
  */
6585
6585
  unpublishing_scheduled_at: string;
6586
- }
6586
+ };
6587
6587
 
6588
6588
  /**
6589
6589
  * JSON API links
@@ -6591,18 +6591,18 @@ export interface ScheduledUnpublishingAttributes {
6591
6591
  * This interface was referenced by `ScheduledUnpublishing`'s JSON-Schema
6592
6592
  * via the `definition` "relationships".
6593
6593
  */
6594
- export interface ScheduledUnpublishingRelationships {
6594
+ export type ScheduledUnpublishingRelationships = {
6595
6595
  item: ItemData;
6596
- }
6596
+ };
6597
6597
 
6598
6598
  /**
6599
6599
  * This interface was referenced by `ScheduledUnpublishing`'s JSON-Schema
6600
6600
  * via the `create.schema` link.
6601
6601
  */
6602
- export interface ScheduledUnpublishingCreateSchema {
6602
+ export type ScheduledUnpublishingCreateSchema = {
6603
6603
  type?: ScheduledUnpublishingType;
6604
6604
  [k: string]: unknown;
6605
- }
6605
+ };
6606
6606
 
6607
6607
  /**
6608
6608
  * DatoCMS Site Search is a way to deliver tailored search results to your site visitors. This is the endpoint you can use to query for results.
@@ -6610,7 +6610,7 @@ export interface ScheduledUnpublishingCreateSchema {
6610
6610
  * This interface was referenced by `DatoApi`'s JSON-Schema
6611
6611
  * via the `definition` "search_result".
6612
6612
  */
6613
- export interface SearchResult {
6613
+ export type SearchResult = {
6614
6614
  id: SearchResultIdentity;
6615
6615
  type: SearchResultType;
6616
6616
  /**
@@ -6633,7 +6633,7 @@ export interface SearchResult {
6633
6633
  title?: string[] | null;
6634
6634
  body?: string[] | null;
6635
6635
  };
6636
- }
6636
+ };
6637
6637
 
6638
6638
  /**
6639
6639
  * JSON API data
@@ -6641,10 +6641,10 @@ export interface SearchResult {
6641
6641
  * This interface was referenced by `SearchResult`'s JSON-Schema
6642
6642
  * via the `definition` "data".
6643
6643
  */
6644
- export interface SearchResultData {
6644
+ export type SearchResultData = {
6645
6645
  type: SearchResultType;
6646
6646
  id: SearchResultIdentity;
6647
- }
6647
+ };
6648
6648
 
6649
6649
  /**
6650
6650
  * JSON API attributes
@@ -6652,7 +6652,7 @@ export interface SearchResultData {
6652
6652
  * This interface was referenced by `SearchResult`'s JSON-Schema
6653
6653
  * via the `definition` "attributes".
6654
6654
  */
6655
- export interface SearchResultAttributes {
6655
+ export type SearchResultAttributes = {
6656
6656
  /**
6657
6657
  * Page title
6658
6658
  */
@@ -6673,7 +6673,7 @@ export interface SearchResultAttributes {
6673
6673
  title?: string[] | null;
6674
6674
  body?: string[] | null;
6675
6675
  };
6676
- }
6676
+ };
6677
6677
 
6678
6678
  /**
6679
6679
  * [Environments](https://www.datocms.com/docs/general-concepts/primary-and-sandbox-environments) make it easier for your development team to **manage and maintain content structure once your content has been published**. You can think of environments like code branches: great for testing, development and pre-production environments.
@@ -6698,11 +6698,11 @@ export interface SearchResultAttributes {
6698
6698
  * This interface was referenced by `DatoApi`'s JSON-Schema
6699
6699
  * via the `definition` "environment".
6700
6700
  */
6701
- export interface Environment {
6701
+ export type Environment = {
6702
6702
  id: EnvironmentIdentity;
6703
6703
  type: EnvironmentType;
6704
6704
  meta: EnvironmentMeta;
6705
- }
6705
+ };
6706
6706
  export type EnvironmentForkJobSchema = Environment;
6707
6707
  export type EnvironmentPromoteTargetSchema = Environment;
6708
6708
  export type EnvironmentSelfTargetSchema = Environment;
@@ -6713,7 +6713,7 @@ export type EnvironmentDestroyJobSchema = Environment;
6713
6713
  * This interface was referenced by `Environment`'s JSON-Schema
6714
6714
  * via the `definition` "meta".
6715
6715
  */
6716
- export interface EnvironmentMeta {
6716
+ export type EnvironmentMeta = {
6717
6717
  /**
6718
6718
  * Status of the environment
6719
6719
  */
@@ -6730,7 +6730,7 @@ export interface EnvironmentMeta {
6730
6730
  * Is this environment the primary for the project?
6731
6731
  */
6732
6732
  primary: boolean;
6733
- }
6733
+ };
6734
6734
 
6735
6735
  /**
6736
6736
  * JSON API data
@@ -6738,36 +6738,36 @@ export interface EnvironmentMeta {
6738
6738
  * This interface was referenced by `Environment`'s JSON-Schema
6739
6739
  * via the `definition` "data".
6740
6740
  */
6741
- export interface EnvironmentData {
6741
+ export type EnvironmentData = {
6742
6742
  type: EnvironmentType;
6743
6743
  id: EnvironmentIdentity;
6744
- }
6744
+ };
6745
6745
 
6746
6746
  /**
6747
6747
  * This interface was referenced by `Environment`'s JSON-Schema
6748
6748
  * via the `fork.schema` link.
6749
6749
  */
6750
- export interface EnvironmentForkSchema {
6750
+ export type EnvironmentForkSchema = {
6751
6751
  /**
6752
6752
  * The ID of the forked environment
6753
6753
  */
6754
6754
  id?: string;
6755
6755
  type?: EnvironmentType;
6756
6756
  [k: string]: unknown;
6757
- }
6757
+ };
6758
6758
 
6759
6759
  /**
6760
6760
  * This interface was referenced by `DatoApi`'s JSON-Schema
6761
6761
  * via the `definition` "maintenance_mode".
6762
6762
  */
6763
- export interface MaintenanceMode {
6763
+ export type MaintenanceMode = {
6764
6764
  id: MaintenanceModeIdentity;
6765
6765
  type: MaintenanceModeType;
6766
6766
  /**
6767
6767
  * Whether maintenance mode is currently active or not
6768
6768
  */
6769
6769
  active: boolean;
6770
- }
6770
+ };
6771
6771
  export type MaintenanceModeSelfTargetSchema = MaintenanceMode;
6772
6772
  export type MaintenanceModeActivateTargetSchema = MaintenanceMode;
6773
6773
  export type MaintenanceModeDeactivateTargetSchema = MaintenanceMode;
@@ -6777,10 +6777,10 @@ export type MaintenanceModeDeactivateTargetSchema = MaintenanceMode;
6777
6777
  * This interface was referenced by `MaintenanceMode`'s JSON-Schema
6778
6778
  * via the `definition` "data".
6779
6779
  */
6780
- export interface MaintenanceModeData {
6780
+ export type MaintenanceModeData = {
6781
6781
  type: MaintenanceModeType;
6782
6782
  id: MaintenanceModeIdentity;
6783
- }
6783
+ };
6784
6784
 
6785
6785
  /**
6786
6786
  * JSON API attributes
@@ -6788,12 +6788,12 @@ export interface MaintenanceModeData {
6788
6788
  * This interface was referenced by `MaintenanceMode`'s JSON-Schema
6789
6789
  * via the `definition` "attributes".
6790
6790
  */
6791
- export interface MaintenanceModeAttributes {
6791
+ export type MaintenanceModeAttributes = {
6792
6792
  /**
6793
6793
  * Whether maintenance mode is currently active or not
6794
6794
  */
6795
6795
  active: boolean;
6796
- }
6796
+ };
6797
6797
 
6798
6798
  /**
6799
6799
  * A webhook allows to make requests following certain Dato events. It is linked to a Role, which describes what actions can be performed.
@@ -6801,7 +6801,7 @@ export interface MaintenanceModeAttributes {
6801
6801
  * This interface was referenced by `DatoApi`'s JSON-Schema
6802
6802
  * via the `definition` "webhook".
6803
6803
  */
6804
- export interface Webhook {
6804
+ export type Webhook = {
6805
6805
  id: WebhookIdentity;
6806
6806
  type: WebhookType;
6807
6807
  /**
@@ -6846,7 +6846,7 @@ export interface Webhook {
6846
6846
  * Whether the you want records present in the payload to show blocks expanded or not
6847
6847
  */
6848
6848
  nested_items_in_payload: boolean;
6849
- }
6849
+ };
6850
6850
  export type WebhookCreateTargetSchema = Webhook;
6851
6851
  export type WebhookUpdateTargetSchema = Webhook;
6852
6852
  export type WebhookSelfTargetSchema = Webhook;
@@ -6857,10 +6857,10 @@ export type WebhookDestroyTargetSchema = Webhook;
6857
6857
  * This interface was referenced by `Webhook`'s JSON-Schema
6858
6858
  * via the `definition` "data".
6859
6859
  */
6860
- export interface WebhookData {
6860
+ export type WebhookData = {
6861
6861
  type: WebhookType;
6862
6862
  id: WebhookIdentity;
6863
- }
6863
+ };
6864
6864
 
6865
6865
  /**
6866
6866
  * JSON API attributes
@@ -6868,7 +6868,7 @@ export interface WebhookData {
6868
6868
  * This interface was referenced by `Webhook`'s JSON-Schema
6869
6869
  * via the `definition` "attributes".
6870
6870
  */
6871
- export interface WebhookAttributes {
6871
+ export type WebhookAttributes = {
6872
6872
  /**
6873
6873
  * Unique name for the webhook
6874
6874
  */
@@ -6911,13 +6911,13 @@ export interface WebhookAttributes {
6911
6911
  * Whether the you want records present in the payload to show blocks expanded or not
6912
6912
  */
6913
6913
  nested_items_in_payload: boolean;
6914
- }
6914
+ };
6915
6915
 
6916
6916
  /**
6917
6917
  * This interface was referenced by `Webhook`'s JSON-Schema
6918
6918
  * via the `create.schema` link.
6919
6919
  */
6920
- export interface WebhookCreateSchema {
6920
+ export type WebhookCreateSchema = {
6921
6921
  type?: WebhookType;
6922
6922
  /**
6923
6923
  * Unique name for the webhook
@@ -6961,13 +6961,13 @@ export interface WebhookCreateSchema {
6961
6961
  * Whether the you want records present in the payload to show blocks expanded or not
6962
6962
  */
6963
6963
  nested_items_in_payload?: boolean;
6964
- }
6964
+ };
6965
6965
 
6966
6966
  /**
6967
6967
  * This interface was referenced by `Webhook`'s JSON-Schema
6968
6968
  * via the `update.schema` link.
6969
6969
  */
6970
- export interface WebhookUpdateSchema {
6970
+ export type WebhookUpdateSchema = {
6971
6971
  id?: WebhookIdentity;
6972
6972
  type?: WebhookType;
6973
6973
  /**
@@ -7012,7 +7012,7 @@ export interface WebhookUpdateSchema {
7012
7012
  * Whether the you want records present in the payload to show blocks expanded or not
7013
7013
  */
7014
7014
  nested_items_in_payload?: boolean;
7015
- }
7015
+ };
7016
7016
 
7017
7017
  /**
7018
7018
  * Represents a log entry in the webhooks activity list.
@@ -7020,7 +7020,7 @@ export interface WebhookUpdateSchema {
7020
7020
  * This interface was referenced by `DatoApi`'s JSON-Schema
7021
7021
  * via the `definition` "webhook_call".
7022
7022
  */
7023
- export interface WebhookCall {
7023
+ export type WebhookCall = {
7024
7024
  id: WebhookCallIdentity;
7025
7025
  type: WebhookCallType;
7026
7026
  /**
@@ -7064,7 +7064,7 @@ export interface WebhookCall {
7064
7064
  */
7065
7065
  response_payload: string | null;
7066
7066
  webhook: WebhookData;
7067
- }
7067
+ };
7068
7068
 
7069
7069
  /**
7070
7070
  * JSON API data
@@ -7072,10 +7072,10 @@ export interface WebhookCall {
7072
7072
  * This interface was referenced by `WebhookCall`'s JSON-Schema
7073
7073
  * via the `definition` "data".
7074
7074
  */
7075
- export interface WebhookCallData {
7075
+ export type WebhookCallData = {
7076
7076
  type: WebhookCallType;
7077
7077
  id: WebhookCallIdentity;
7078
- }
7078
+ };
7079
7079
 
7080
7080
  /**
7081
7081
  * JSON API attributes
@@ -7083,7 +7083,7 @@ export interface WebhookCallData {
7083
7083
  * This interface was referenced by `WebhookCall`'s JSON-Schema
7084
7084
  * via the `definition` "attributes".
7085
7085
  */
7086
- export interface WebhookCallAttributes {
7086
+ export type WebhookCallAttributes = {
7087
7087
  /**
7088
7088
  * The subject of webhook triggering
7089
7089
  */
@@ -7124,7 +7124,7 @@ export interface WebhookCallAttributes {
7124
7124
  * The body of the response
7125
7125
  */
7126
7126
  response_payload: string | null;
7127
- }
7127
+ };
7128
7128
 
7129
7129
  /**
7130
7130
  * JSON API links
@@ -7132,9 +7132,9 @@ export interface WebhookCallAttributes {
7132
7132
  * This interface was referenced by `WebhookCall`'s JSON-Schema
7133
7133
  * via the `definition` "relationships".
7134
7134
  */
7135
- export interface WebhookCallRelationships {
7135
+ export type WebhookCallRelationships = {
7136
7136
  webhook: WebhookData;
7137
- }
7137
+ };
7138
7138
 
7139
7139
  /**
7140
7140
  * Configuration for different build triggers. You can have different staging and production environments in order to test your site before final deploy
@@ -7142,7 +7142,7 @@ export interface WebhookCallRelationships {
7142
7142
  * This interface was referenced by `DatoApi`'s JSON-Schema
7143
7143
  * via the `definition` "build_trigger".
7144
7144
  */
7145
- export interface BuildTrigger {
7145
+ export type BuildTrigger = {
7146
7146
  id: BuildTriggerIdentity;
7147
7147
  type: BuildTriggerType;
7148
7148
  /**
@@ -7191,7 +7191,7 @@ export interface BuildTrigger {
7191
7191
  * Enable scraper on the site
7192
7192
  */
7193
7193
  indexing_enabled: boolean;
7194
- }
7194
+ };
7195
7195
  export type BuildTriggerSelfTargetSchema = BuildTrigger;
7196
7196
  export type BuildTriggerCreateTargetSchema = BuildTrigger;
7197
7197
  export type BuildTriggerUpdateTargetSchema = BuildTrigger;
@@ -7202,7 +7202,7 @@ export type BuildTriggerDestroyTargetSchema = BuildTrigger;
7202
7202
  * This interface was referenced by `BuildTrigger`'s JSON-Schema
7203
7203
  * via the `definition` "attributes".
7204
7204
  */
7205
- export interface BuildTriggerAttributes {
7205
+ export type BuildTriggerAttributes = {
7206
7206
  /**
7207
7207
  * Name of the environment
7208
7208
  */
@@ -7249,13 +7249,13 @@ export interface BuildTriggerAttributes {
7249
7249
  * Enable scraper on the site
7250
7250
  */
7251
7251
  indexing_enabled: boolean;
7252
- }
7252
+ };
7253
7253
 
7254
7254
  /**
7255
7255
  * This interface was referenced by `BuildTrigger`'s JSON-Schema
7256
7256
  * via the `create.schema` link.
7257
7257
  */
7258
- export interface BuildTriggerCreateSchema {
7258
+ export type BuildTriggerCreateSchema = {
7259
7259
  type?: BuildTriggerType;
7260
7260
  /**
7261
7261
  * Name of the environment
@@ -7287,13 +7287,13 @@ export interface BuildTriggerCreateSchema {
7287
7287
  adapter_settings: {
7288
7288
  [k: string]: unknown;
7289
7289
  };
7290
- }
7290
+ };
7291
7291
 
7292
7292
  /**
7293
7293
  * This interface was referenced by `BuildTrigger`'s JSON-Schema
7294
7294
  * via the `update.schema` link.
7295
7295
  */
7296
- export interface BuildTriggerUpdateSchema {
7296
+ export type BuildTriggerUpdateSchema = {
7297
7297
  id?: BuildTriggerIdentity;
7298
7298
  type?: BuildTriggerType;
7299
7299
  /**
@@ -7322,7 +7322,7 @@ export interface BuildTriggerUpdateSchema {
7322
7322
  adapter_settings?: {
7323
7323
  [k: string]: unknown;
7324
7324
  };
7325
- }
7325
+ };
7326
7326
 
7327
7327
  /**
7328
7328
  * In DatoCMS you can create filters to help you (and other editors) quickly search for records
@@ -7330,7 +7330,7 @@ export interface BuildTriggerUpdateSchema {
7330
7330
  * This interface was referenced by `DatoApi`'s JSON-Schema
7331
7331
  * via the `definition` "item_type_filter".
7332
7332
  */
7333
- export interface ItemTypeFilter {
7333
+ export type ItemTypeFilter = {
7334
7334
  id: ItemTypeFilterIdentity;
7335
7335
  type: ItemTypeFilterType;
7336
7336
  /**
@@ -7348,7 +7348,7 @@ export interface ItemTypeFilter {
7348
7348
  */
7349
7349
  shared: boolean;
7350
7350
  item_type: ItemTypeData;
7351
- }
7351
+ };
7352
7352
  export type ItemTypeFilterCreateTargetSchema = ItemTypeFilter;
7353
7353
  export type ItemTypeFilterUpdateTargetSchema = ItemTypeFilter;
7354
7354
  export type ItemTypeFilterSelfTargetSchema = ItemTypeFilter;
@@ -7359,10 +7359,10 @@ export type ItemTypeFilterDestroyTargetSchema = ItemTypeFilter;
7359
7359
  * This interface was referenced by `ItemTypeFilter`'s JSON-Schema
7360
7360
  * via the `definition` "data".
7361
7361
  */
7362
- export interface ItemTypeFilterData {
7362
+ export type ItemTypeFilterData = {
7363
7363
  type: ItemTypeFilterType;
7364
7364
  id: ItemTypeFilterIdentity;
7365
- }
7365
+ };
7366
7366
 
7367
7367
  /**
7368
7368
  * JSON API attributes
@@ -7370,7 +7370,7 @@ export interface ItemTypeFilterData {
7370
7370
  * This interface was referenced by `ItemTypeFilter`'s JSON-Schema
7371
7371
  * via the `definition` "attributes".
7372
7372
  */
7373
- export interface ItemTypeFilterAttributes {
7373
+ export type ItemTypeFilterAttributes = {
7374
7374
  /**
7375
7375
  * The name of the filter
7376
7376
  */
@@ -7385,7 +7385,7 @@ export interface ItemTypeFilterAttributes {
7385
7385
  * Whether it's a shared filter or not
7386
7386
  */
7387
7387
  shared: boolean;
7388
- }
7388
+ };
7389
7389
 
7390
7390
  /**
7391
7391
  * JSON API links
@@ -7393,15 +7393,15 @@ export interface ItemTypeFilterAttributes {
7393
7393
  * This interface was referenced by `ItemTypeFilter`'s JSON-Schema
7394
7394
  * via the `definition` "relationships".
7395
7395
  */
7396
- export interface ItemTypeFilterRelationships {
7396
+ export type ItemTypeFilterRelationships = {
7397
7397
  item_type: ItemTypeData;
7398
- }
7398
+ };
7399
7399
 
7400
7400
  /**
7401
7401
  * This interface was referenced by `ItemTypeFilter`'s JSON-Schema
7402
7402
  * via the `create.schema` link.
7403
7403
  */
7404
- export interface ItemTypeFilterCreateSchema {
7404
+ export type ItemTypeFilterCreateSchema = {
7405
7405
  type?: ItemTypeFilterType;
7406
7406
  /**
7407
7407
  * The name of the filter
@@ -7418,13 +7418,13 @@ export interface ItemTypeFilterCreateSchema {
7418
7418
  */
7419
7419
  shared: boolean;
7420
7420
  item_type: ItemTypeData;
7421
- }
7421
+ };
7422
7422
 
7423
7423
  /**
7424
7424
  * This interface was referenced by `ItemTypeFilter`'s JSON-Schema
7425
7425
  * via the `update.schema` link.
7426
7426
  */
7427
- export interface ItemTypeFilterUpdateSchema {
7427
+ export type ItemTypeFilterUpdateSchema = {
7428
7428
  id?: ItemTypeFilterIdentity;
7429
7429
  type?: ItemTypeFilterType;
7430
7430
  /**
@@ -7441,7 +7441,7 @@ export interface ItemTypeFilterUpdateSchema {
7441
7441
  filter: {
7442
7442
  [k: string]: unknown;
7443
7443
  };
7444
- }
7444
+ };
7445
7445
 
7446
7446
  /**
7447
7447
  * In DatoCMS you can create filters to help you (and other editors) quickly search for uploads
@@ -7449,7 +7449,7 @@ export interface ItemTypeFilterUpdateSchema {
7449
7449
  * This interface was referenced by `DatoApi`'s JSON-Schema
7450
7450
  * via the `definition` "upload_filter".
7451
7451
  */
7452
- export interface UploadFilter {
7452
+ export type UploadFilter = {
7453
7453
  id: UploadFilterIdentity;
7454
7454
  type: UploadFilterType;
7455
7455
  /**
@@ -7466,7 +7466,7 @@ export interface UploadFilter {
7466
7466
  * Whether it's a shared filter or not
7467
7467
  */
7468
7468
  shared: boolean;
7469
- }
7469
+ };
7470
7470
  export type UploadFilterCreateTargetSchema = UploadFilter;
7471
7471
  export type UploadFilterUpdateTargetSchema = UploadFilter;
7472
7472
  export type UploadFilterSelfTargetSchema = UploadFilter;
@@ -7477,10 +7477,10 @@ export type UploadFilterDestroyTargetSchema = UploadFilter;
7477
7477
  * This interface was referenced by `UploadFilter`'s JSON-Schema
7478
7478
  * via the `definition` "data".
7479
7479
  */
7480
- export interface UploadFilterData {
7480
+ export type UploadFilterData = {
7481
7481
  type: UploadFilterType;
7482
7482
  id: UploadFilterIdentity;
7483
- }
7483
+ };
7484
7484
 
7485
7485
  /**
7486
7486
  * JSON API attributes
@@ -7488,7 +7488,7 @@ export interface UploadFilterData {
7488
7488
  * This interface was referenced by `UploadFilter`'s JSON-Schema
7489
7489
  * via the `definition` "attributes".
7490
7490
  */
7491
- export interface UploadFilterAttributes {
7491
+ export type UploadFilterAttributes = {
7492
7492
  /**
7493
7493
  * The name of the filter
7494
7494
  */
@@ -7503,13 +7503,13 @@ export interface UploadFilterAttributes {
7503
7503
  * Whether it's a shared filter or not
7504
7504
  */
7505
7505
  shared: boolean;
7506
- }
7506
+ };
7507
7507
 
7508
7508
  /**
7509
7509
  * This interface was referenced by `UploadFilter`'s JSON-Schema
7510
7510
  * via the `create.schema` link.
7511
7511
  */
7512
- export interface UploadFilterCreateSchema {
7512
+ export type UploadFilterCreateSchema = {
7513
7513
  type?: UploadFilterType;
7514
7514
  /**
7515
7515
  * The name of the filter
@@ -7525,13 +7525,13 @@ export interface UploadFilterCreateSchema {
7525
7525
  * Whether it's a shared filter or not
7526
7526
  */
7527
7527
  shared: boolean;
7528
- }
7528
+ };
7529
7529
 
7530
7530
  /**
7531
7531
  * This interface was referenced by `UploadFilter`'s JSON-Schema
7532
7532
  * via the `update.schema` link.
7533
7533
  */
7534
- export interface UploadFilterUpdateSchema {
7534
+ export type UploadFilterUpdateSchema = {
7535
7535
  id?: UploadFilterIdentity;
7536
7536
  type?: UploadFilterType;
7537
7537
  /**
@@ -7548,7 +7548,7 @@ export interface UploadFilterUpdateSchema {
7548
7548
  filter: {
7549
7549
  [k: string]: unknown;
7550
7550
  };
7551
- }
7551
+ };
7552
7552
 
7553
7553
  /**
7554
7554
  * A DatoCMS administrative area can be accessed by multiple people. Every invitation is linked to a specific Role, which describes what actions it will be able to perform once the user will register.
@@ -7556,7 +7556,7 @@ export interface UploadFilterUpdateSchema {
7556
7556
  * This interface was referenced by `DatoApi`'s JSON-Schema
7557
7557
  * via the `definition` "site_invitation".
7558
7558
  */
7559
- export interface SiteInvitation {
7559
+ export type SiteInvitation = {
7560
7560
  id: SiteInvitationIdentity;
7561
7561
  type: SiteInvitationType;
7562
7562
  /**
@@ -7564,7 +7564,7 @@ export interface SiteInvitation {
7564
7564
  */
7565
7565
  email: string;
7566
7566
  role: RoleData;
7567
- }
7567
+ };
7568
7568
  export type SiteInvitationCreateTargetSchema = SiteInvitation;
7569
7569
  export type SiteInvitationUpdateTargetSchema = SiteInvitation;
7570
7570
  export type SiteInvitationSelfTargetSchema = SiteInvitation;
@@ -7575,10 +7575,10 @@ export type SiteInvitationDestroyTargetSchema = SiteInvitation;
7575
7575
  * This interface was referenced by `SiteInvitation`'s JSON-Schema
7576
7576
  * via the `definition` "data".
7577
7577
  */
7578
- export interface SiteInvitationData {
7578
+ export type SiteInvitationData = {
7579
7579
  type: SiteInvitationType;
7580
7580
  id: SiteInvitationIdentity;
7581
- }
7581
+ };
7582
7582
 
7583
7583
  /**
7584
7584
  * JSON API attributes
@@ -7586,12 +7586,12 @@ export interface SiteInvitationData {
7586
7586
  * This interface was referenced by `SiteInvitation`'s JSON-Schema
7587
7587
  * via the `definition` "attributes".
7588
7588
  */
7589
- export interface SiteInvitationAttributes {
7589
+ export type SiteInvitationAttributes = {
7590
7590
  /**
7591
7591
  * Email
7592
7592
  */
7593
7593
  email: string;
7594
- }
7594
+ };
7595
7595
 
7596
7596
  /**
7597
7597
  * JSON API links
@@ -7599,33 +7599,33 @@ export interface SiteInvitationAttributes {
7599
7599
  * This interface was referenced by `SiteInvitation`'s JSON-Schema
7600
7600
  * via the `definition` "relationships".
7601
7601
  */
7602
- export interface SiteInvitationRelationships {
7602
+ export type SiteInvitationRelationships = {
7603
7603
  role: RoleData;
7604
- }
7604
+ };
7605
7605
 
7606
7606
  /**
7607
7607
  * This interface was referenced by `SiteInvitation`'s JSON-Schema
7608
7608
  * via the `create.schema` link.
7609
7609
  */
7610
- export interface SiteInvitationCreateSchema {
7610
+ export type SiteInvitationCreateSchema = {
7611
7611
  type?: SiteInvitationType;
7612
7612
  /**
7613
7613
  * Email
7614
7614
  */
7615
7615
  email: string;
7616
7616
  role: RoleData;
7617
- }
7617
+ };
7618
7618
 
7619
7619
  /**
7620
7620
  * This interface was referenced by `SiteInvitation`'s JSON-Schema
7621
7621
  * via the `update.schema` link.
7622
7622
  */
7623
- export interface SiteInvitationUpdateSchema {
7623
+ export type SiteInvitationUpdateSchema = {
7624
7624
  id?: SiteInvitationIdentity;
7625
7625
  type?: SiteInvitationType;
7626
7626
  role?: RoleData;
7627
7627
  [k: string]: unknown;
7628
- }
7628
+ };
7629
7629
 
7630
7630
  /**
7631
7631
  * Session track users movements in the administrative area, and allows locking a record when editing it.
@@ -7633,7 +7633,7 @@ export interface SiteInvitationUpdateSchema {
7633
7633
  * This interface was referenced by `DatoApi`'s JSON-Schema
7634
7634
  * via the `definition` "editing_session".
7635
7635
  */
7636
- export interface EditingSession {
7636
+ export type EditingSession = {
7637
7637
  id: EditingSessionIdentity;
7638
7638
  type: EditingSessionType;
7639
7639
  /**
@@ -7647,7 +7647,7 @@ export interface EditingSession {
7647
7647
  active_item: ItemData;
7648
7648
  active_item_type: ItemTypeData;
7649
7649
  editor: AccountData | AccessTokenData | UserData;
7650
- }
7650
+ };
7651
7651
  export type EditingSessionUpdateTargetSchema = EditingSession;
7652
7652
  export type EditingSessionDestroyTargetSchema = EditingSession;
7653
7653
  /**
@@ -7656,10 +7656,10 @@ export type EditingSessionDestroyTargetSchema = EditingSession;
7656
7656
  * This interface was referenced by `EditingSession`'s JSON-Schema
7657
7657
  * via the `definition` "data".
7658
7658
  */
7659
- export interface EditingSessionData {
7659
+ export type EditingSessionData = {
7660
7660
  type: EditingSessionType;
7661
7661
  id: EditingSessionIdentity;
7662
- }
7662
+ };
7663
7663
 
7664
7664
  /**
7665
7665
  * JSON API attributes
@@ -7667,7 +7667,7 @@ export interface EditingSessionData {
7667
7667
  * This interface was referenced by `EditingSession`'s JSON-Schema
7668
7668
  * via the `definition` "attributes".
7669
7669
  */
7670
- export interface EditingSessionAttributes {
7670
+ export type EditingSessionAttributes = {
7671
7671
  /**
7672
7672
  * User entered at
7673
7673
  */
@@ -7676,7 +7676,7 @@ export interface EditingSessionAttributes {
7676
7676
  * User locked record at
7677
7677
  */
7678
7678
  locked_at: string | null;
7679
- }
7679
+ };
7680
7680
 
7681
7681
  /**
7682
7682
  * JSON API links
@@ -7684,11 +7684,11 @@ export interface EditingSessionAttributes {
7684
7684
  * This interface was referenced by `EditingSession`'s JSON-Schema
7685
7685
  * via the `definition` "relationships".
7686
7686
  */
7687
- export interface EditingSessionRelationships {
7687
+ export type EditingSessionRelationships = {
7688
7688
  active_item: ItemData;
7689
7689
  active_item_type: ItemTypeData;
7690
7690
  editor: AccountData | AccessTokenData | UserData;
7691
- }
7691
+ };
7692
7692
 
7693
7693
  /**
7694
7694
  * A Single Sign-On group exists when a DatoCMS project is connected to an Identity Provider. These groups can be used to link DatoCMS roles to the Identity Provider's groups.
@@ -7696,7 +7696,7 @@ export interface EditingSessionRelationships {
7696
7696
  * This interface was referenced by `DatoApi`'s JSON-Schema
7697
7697
  * via the `definition` "sso_group".
7698
7698
  */
7699
- export interface SsoGroup {
7699
+ export type SsoGroup = {
7700
7700
  id: SsoGroupIdentity;
7701
7701
  type: SsoGroupType;
7702
7702
  /**
@@ -7709,7 +7709,7 @@ export interface SsoGroup {
7709
7709
  priority: number;
7710
7710
  role: RoleData;
7711
7711
  users: SsoUserData[];
7712
- }
7712
+ };
7713
7713
  export type SsoGroupCopyRolesTargetSchema = SsoGroup;
7714
7714
  export type SsoGroupUpdateTargetSchema = SsoGroup;
7715
7715
  export type SsoGroupDestroyTargetSchema = SsoGroup;
@@ -7719,7 +7719,7 @@ export type SsoGroupDestroyTargetSchema = SsoGroup;
7719
7719
  * This interface was referenced by `SsoGroup`'s JSON-Schema
7720
7720
  * via the `definition` "attributes".
7721
7721
  */
7722
- export interface SsoGroupAttributes {
7722
+ export type SsoGroupAttributes = {
7723
7723
  /**
7724
7724
  * Name of the group
7725
7725
  */
@@ -7728,7 +7728,7 @@ export interface SsoGroupAttributes {
7728
7728
  * When an user belongs to multiple groups, the role associated to the group with the highest priority will be used
7729
7729
  */
7730
7730
  priority: number;
7731
- }
7731
+ };
7732
7732
 
7733
7733
  /**
7734
7734
  * JSON API links
@@ -7736,16 +7736,16 @@ export interface SsoGroupAttributes {
7736
7736
  * This interface was referenced by `SsoGroup`'s JSON-Schema
7737
7737
  * via the `definition` "relationships".
7738
7738
  */
7739
- export interface SsoGroupRelationships {
7739
+ export type SsoGroupRelationships = {
7740
7740
  role: RoleData;
7741
7741
  users: SsoUserData[];
7742
- }
7742
+ };
7743
7743
 
7744
7744
  /**
7745
7745
  * This interface was referenced by `SsoGroup`'s JSON-Schema
7746
7746
  * via the `update.schema` link.
7747
7747
  */
7748
- export interface SsoGroupUpdateSchema {
7748
+ export type SsoGroupUpdateSchema = {
7749
7749
  id?: SsoGroupIdentity;
7750
7750
  type?: SsoGroupType;
7751
7751
  /**
@@ -7753,7 +7753,7 @@ export interface SsoGroupUpdateSchema {
7753
7753
  */
7754
7754
  priority: number;
7755
7755
  role: RoleData;
7756
- }
7756
+ };
7757
7757
 
7758
7758
  /**
7759
7759
  * Represents the Single Sign-on settings of the current DatoCMS project
@@ -7761,7 +7761,7 @@ export interface SsoGroupUpdateSchema {
7761
7761
  * This interface was referenced by `DatoApi`'s JSON-Schema
7762
7762
  * via the `definition` "sso_settings".
7763
7763
  */
7764
- export interface SsoSettings {
7764
+ export type SsoSettings = {
7765
7765
  id: SsoSettingsIdentity;
7766
7766
  type: SsoSettingsType;
7767
7767
  /**
@@ -7793,7 +7793,7 @@ export interface SsoSettings {
7793
7793
  */
7794
7794
  scim_api_token?: string;
7795
7795
  default_role: null | RoleData;
7796
- }
7796
+ };
7797
7797
  export type SsoSettingsSelfTargetSchema = SsoSettings;
7798
7798
  export type SsoSettingsUpdateTargetSchema = SsoSettings;
7799
7799
  /**
@@ -7802,10 +7802,10 @@ export type SsoSettingsUpdateTargetSchema = SsoSettings;
7802
7802
  * This interface was referenced by `SsoSettings`'s JSON-Schema
7803
7803
  * via the `definition` "data".
7804
7804
  */
7805
- export interface SsoSettingsData {
7805
+ export type SsoSettingsData = {
7806
7806
  type: SsoSettingsType;
7807
7807
  id: SsoSettingsIdentity;
7808
- }
7808
+ };
7809
7809
 
7810
7810
  /**
7811
7811
  * JSON API attributes
@@ -7813,7 +7813,7 @@ export interface SsoSettingsData {
7813
7813
  * This interface was referenced by `SsoSettings`'s JSON-Schema
7814
7814
  * via the `definition` "attributes".
7815
7815
  */
7816
- export interface SsoSettingsAttributes {
7816
+ export type SsoSettingsAttributes = {
7817
7817
  /**
7818
7818
  * URL of Identity Provider SAML Metadata endpoint
7819
7819
  */
@@ -7842,7 +7842,7 @@ export interface SsoSettingsAttributes {
7842
7842
  * DatoCMS SCIM API Token
7843
7843
  */
7844
7844
  scim_api_token?: string;
7845
- }
7845
+ };
7846
7846
 
7847
7847
  /**
7848
7848
  * JSON API links
@@ -7850,15 +7850,15 @@ export interface SsoSettingsAttributes {
7850
7850
  * This interface was referenced by `SsoSettings`'s JSON-Schema
7851
7851
  * via the `definition` "relationships".
7852
7852
  */
7853
- export interface SsoSettingsRelationships {
7853
+ export type SsoSettingsRelationships = {
7854
7854
  default_role: null | RoleData;
7855
- }
7855
+ };
7856
7856
 
7857
7857
  /**
7858
7858
  * This interface was referenced by `SsoSettings`'s JSON-Schema
7859
7859
  * via the `generate_token.targetSchema` link.
7860
7860
  */
7861
- export interface SsoSettingsGenerateTokenTargetSchema {
7861
+ export type SsoSettingsGenerateTokenTargetSchema = {
7862
7862
  id: SsoSettingsIdentity;
7863
7863
  /**
7864
7864
  * JSON API type field
@@ -7871,13 +7871,13 @@ export interface SsoSettingsGenerateTokenTargetSchema {
7871
7871
  scim_api_token: string;
7872
7872
  };
7873
7873
  [k: string]: unknown;
7874
- }
7874
+ };
7875
7875
 
7876
7876
  /**
7877
7877
  * This interface was referenced by `SsoSettings`'s JSON-Schema
7878
7878
  * via the `update.schema` link.
7879
7879
  */
7880
- export interface SsoSettingsUpdateSchema {
7880
+ export type SsoSettingsUpdateSchema = {
7881
7881
  id?: SsoSettingsIdentity;
7882
7882
  type?: SsoSettingsType;
7883
7883
  /**
@@ -7885,7 +7885,7 @@ export interface SsoSettingsUpdateSchema {
7885
7885
  */
7886
7886
  idp_saml_metadata_url?: null | string;
7887
7887
  default_role: RoleData;
7888
- }
7888
+ };
7889
7889
 
7890
7890
  /**
7891
7891
  * Represents the white-label settings of the current DatoCMS project
@@ -7893,14 +7893,14 @@ export interface SsoSettingsUpdateSchema {
7893
7893
  * This interface was referenced by `DatoApi`'s JSON-Schema
7894
7894
  * via the `definition` "white_label_settings".
7895
7895
  */
7896
- export interface WhiteLabelSettings {
7896
+ export type WhiteLabelSettings = {
7897
7897
  id: WhiteLabelSettingsIdentity;
7898
7898
  type: WhiteLabelSettingsType;
7899
7899
  /**
7900
7900
  * URL of custom I18n messages. The :locale placeholder represents the current DatoCMS UI locale.
7901
7901
  */
7902
7902
  custom_i18n_messages_template_url: null | string;
7903
- }
7903
+ };
7904
7904
  export type WhiteLabelSettingsSelfTargetSchema = WhiteLabelSettings;
7905
7905
  export type WhiteLabelSettingsUpdateTargetSchema = WhiteLabelSettings;
7906
7906
  /**
@@ -7909,10 +7909,10 @@ export type WhiteLabelSettingsUpdateTargetSchema = WhiteLabelSettings;
7909
7909
  * This interface was referenced by `WhiteLabelSettings`'s JSON-Schema
7910
7910
  * via the `definition` "data".
7911
7911
  */
7912
- export interface WhiteLabelSettingsData {
7912
+ export type WhiteLabelSettingsData = {
7913
7913
  type: WhiteLabelSettingsType;
7914
7914
  id: WhiteLabelSettingsIdentity;
7915
- }
7915
+ };
7916
7916
 
7917
7917
  /**
7918
7918
  * JSON API attributes
@@ -7920,25 +7920,25 @@ export interface WhiteLabelSettingsData {
7920
7920
  * This interface was referenced by `WhiteLabelSettings`'s JSON-Schema
7921
7921
  * via the `definition` "attributes".
7922
7922
  */
7923
- export interface WhiteLabelSettingsAttributes {
7923
+ export type WhiteLabelSettingsAttributes = {
7924
7924
  /**
7925
7925
  * URL of custom I18n messages. The :locale placeholder represents the current DatoCMS UI locale.
7926
7926
  */
7927
7927
  custom_i18n_messages_template_url: null | string;
7928
- }
7928
+ };
7929
7929
 
7930
7930
  /**
7931
7931
  * This interface was referenced by `WhiteLabelSettings`'s JSON-Schema
7932
7932
  * via the `update.schema` link.
7933
7933
  */
7934
- export interface WhiteLabelSettingsUpdateSchema {
7934
+ export type WhiteLabelSettingsUpdateSchema = {
7935
7935
  id?: WhiteLabelSettingsIdentity;
7936
7936
  type?: WhiteLabelSettingsType;
7937
7937
  /**
7938
7938
  * URL of custom I18n messages. The :locale placeholder represents the current DatoCMS UI locale.
7939
7939
  */
7940
7940
  custom_i18n_messages_template_url?: null | string;
7941
- }
7941
+ };
7942
7942
 
7943
7943
  /**
7944
7944
  * Info that can be accessed by unauthorized users
@@ -7946,7 +7946,7 @@ export interface WhiteLabelSettingsUpdateSchema {
7946
7946
  * This interface was referenced by `DatoApi`'s JSON-Schema
7947
7947
  * via the `definition` "public_info".
7948
7948
  */
7949
- export interface PublicInfo {
7949
+ export type PublicInfo = {
7950
7950
  id: PublicInfoIdentity;
7951
7951
  type: PublicInfoType;
7952
7952
  /**
@@ -8011,7 +8011,7 @@ export interface PublicInfo {
8011
8011
  blocks_per_item: number;
8012
8012
  [k: string]: unknown;
8013
8013
  };
8014
- }
8014
+ };
8015
8015
  export type PublicInfoSelfTargetSchema = PublicInfo;
8016
8016
  /**
8017
8017
  * JSON API data
@@ -8019,10 +8019,10 @@ export type PublicInfoSelfTargetSchema = PublicInfo;
8019
8019
  * This interface was referenced by `PublicInfo`'s JSON-Schema
8020
8020
  * via the `definition` "data".
8021
8021
  */
8022
- export interface PublicInfoData {
8022
+ export type PublicInfoData = {
8023
8023
  type: PublicInfoType;
8024
8024
  id: PublicInfoIdentity;
8025
- }
8025
+ };
8026
8026
 
8027
8027
  /**
8028
8028
  * JSON API attributes
@@ -8030,7 +8030,7 @@ export interface PublicInfoData {
8030
8030
  * This interface was referenced by `PublicInfo`'s JSON-Schema
8031
8031
  * via the `definition` "attributes".
8032
8032
  */
8033
- export interface PublicInfoAttributes {
8033
+ export type PublicInfoAttributes = {
8034
8034
  /**
8035
8035
  * Site name
8036
8036
  */
@@ -8093,7 +8093,7 @@ export interface PublicInfoAttributes {
8093
8093
  blocks_per_item: number;
8094
8094
  [k: string]: unknown;
8095
8095
  };
8096
- }
8096
+ };
8097
8097
 
8098
8098
  /**
8099
8099
  * DatoCMS resources usage organized by day
@@ -8101,7 +8101,7 @@ export interface PublicInfoAttributes {
8101
8101
  * This interface was referenced by `DatoApi`'s JSON-Schema
8102
8102
  * via the `definition` "daily_usage".
8103
8103
  */
8104
- export interface DailyUsage {
8104
+ export type DailyUsage = {
8105
8105
  id: DailyUsageIdentity;
8106
8106
  type: DailyUsageType;
8107
8107
  /**
@@ -8128,7 +8128,7 @@ export interface DailyUsage {
8128
8128
  * Video streaming seconds
8129
8129
  */
8130
8130
  mux_delivered_seconds: number;
8131
- }
8131
+ };
8132
8132
  export type DailyUsageInstancesTargetSchema = DailyUsage;
8133
8133
  /**
8134
8134
  * JSON API data
@@ -8136,10 +8136,10 @@ export type DailyUsageInstancesTargetSchema = DailyUsage;
8136
8136
  * This interface was referenced by `DailyUsage`'s JSON-Schema
8137
8137
  * via the `definition` "data".
8138
8138
  */
8139
- export interface DailyUsageData {
8139
+ export type DailyUsageData = {
8140
8140
  type: DailyUsageType;
8141
8141
  id: DailyUsageIdentity;
8142
- }
8142
+ };
8143
8143
 
8144
8144
  /**
8145
8145
  * JSON API attributes
@@ -8147,7 +8147,7 @@ export interface DailyUsageData {
8147
8147
  * This interface was referenced by `DailyUsage`'s JSON-Schema
8148
8148
  * via the `definition` "attributes".
8149
8149
  */
8150
- export interface DailyUsageAttributes {
8150
+ export type DailyUsageAttributes = {
8151
8151
  /**
8152
8152
  * The date the data are referring to
8153
8153
  */
@@ -8172,7 +8172,7 @@ export interface DailyUsageAttributes {
8172
8172
  * Video streaming seconds
8173
8173
  */
8174
8174
  mux_delivered_seconds: number;
8175
- }
8175
+ };
8176
8176
 
8177
8177
  /**
8178
8178
  * You can use counters to analyze your project's data consumption over a period of time. Counters are especially useful if your project is exceeding its API calls/traffic quota limits, to better understand where and how requests are originating. Counters are updated every minute, so you can debug in real-time the results of your changes.
@@ -8180,7 +8180,7 @@ export interface DailyUsageAttributes {
8180
8180
  * This interface was referenced by `DatoApi`'s JSON-Schema
8181
8181
  * via the `definition` "usage_counter".
8182
8182
  */
8183
- export interface UsageCounter {
8183
+ export type UsageCounter = {
8184
8184
  id: UsageCounterIdentity;
8185
8185
  type: UsageCounterType;
8186
8186
  result: {
@@ -8193,7 +8193,7 @@ export interface UsageCounter {
8193
8193
  */
8194
8194
  counter: number;
8195
8195
  }[];
8196
- }
8196
+ };
8197
8197
  export type UsageCounterSelfTargetSchema = UsageCounter;
8198
8198
  /**
8199
8199
  * JSON API data
@@ -8201,10 +8201,10 @@ export type UsageCounterSelfTargetSchema = UsageCounter;
8201
8201
  * This interface was referenced by `UsageCounter`'s JSON-Schema
8202
8202
  * via the `definition` "data".
8203
8203
  */
8204
- export interface UsageCounterData {
8204
+ export type UsageCounterData = {
8205
8205
  type: UsageCounterType;
8206
8206
  id: UsageCounterIdentity;
8207
- }
8207
+ };
8208
8208
 
8209
8209
  /**
8210
8210
  * JSON API attributes
@@ -8212,7 +8212,7 @@ export interface UsageCounterData {
8212
8212
  * This interface was referenced by `UsageCounter`'s JSON-Schema
8213
8213
  * via the `definition` "attributes".
8214
8214
  */
8215
- export interface UsageCounterAttributes {
8215
+ export type UsageCounterAttributes = {
8216
8216
  result: {
8217
8217
  /**
8218
8218
  * Occurrence
@@ -8223,7 +8223,7 @@ export interface UsageCounterAttributes {
8223
8223
  */
8224
8224
  counter: number;
8225
8225
  }[];
8226
- }
8226
+ };
8227
8227
 
8228
8228
  /**
8229
8229
  * All the project's upload tags
@@ -8231,14 +8231,14 @@ export interface UsageCounterAttributes {
8231
8231
  * This interface was referenced by `DatoApi`'s JSON-Schema
8232
8232
  * via the `definition` "upload_tag".
8233
8233
  */
8234
- export interface UploadTag {
8234
+ export type UploadTag = {
8235
8235
  id: UploadTagIdentity;
8236
8236
  type: UploadTagType;
8237
8237
  /**
8238
8238
  * The tag name
8239
8239
  */
8240
8240
  name: string;
8241
- }
8241
+ };
8242
8242
  export type UploadTagCreateTargetSchema = UploadTag;
8243
8243
  /**
8244
8244
  * JSON API data
@@ -8246,10 +8246,10 @@ export type UploadTagCreateTargetSchema = UploadTag;
8246
8246
  * This interface was referenced by `UploadTag`'s JSON-Schema
8247
8247
  * via the `definition` "data".
8248
8248
  */
8249
- export interface UploadTagData {
8249
+ export type UploadTagData = {
8250
8250
  type: UploadTagType;
8251
8251
  id: UploadTagIdentity;
8252
- }
8252
+ };
8253
8253
 
8254
8254
  /**
8255
8255
  * JSON API attributes
@@ -8257,24 +8257,24 @@ export interface UploadTagData {
8257
8257
  * This interface was referenced by `UploadTag`'s JSON-Schema
8258
8258
  * via the `definition` "attributes".
8259
8259
  */
8260
- export interface UploadTagAttributes {
8260
+ export type UploadTagAttributes = {
8261
8261
  /**
8262
8262
  * The tag name
8263
8263
  */
8264
8264
  name: string;
8265
- }
8265
+ };
8266
8266
 
8267
8267
  /**
8268
8268
  * This interface was referenced by `UploadTag`'s JSON-Schema
8269
8269
  * via the `create.schema` link.
8270
8270
  */
8271
- export interface UploadTagCreateSchema {
8271
+ export type UploadTagCreateSchema = {
8272
8272
  type?: UploadTagType;
8273
8273
  /**
8274
8274
  * The tag name
8275
8275
  */
8276
8276
  name: string;
8277
- }
8277
+ };
8278
8278
 
8279
8279
  /**
8280
8280
  * All the site's upload automatically generated tags
@@ -8282,14 +8282,14 @@ export interface UploadTagCreateSchema {
8282
8282
  * This interface was referenced by `DatoApi`'s JSON-Schema
8283
8283
  * via the `definition` "upload_smart_tag".
8284
8284
  */
8285
- export interface UploadSmartTag {
8285
+ export type UploadSmartTag = {
8286
8286
  id: UploadSmartTagIdentity;
8287
8287
  type: UploadSmartTagType;
8288
8288
  /**
8289
8289
  * The tag name
8290
8290
  */
8291
8291
  name: string;
8292
- }
8292
+ };
8293
8293
 
8294
8294
  /**
8295
8295
  * JSON API data
@@ -8297,10 +8297,10 @@ export interface UploadSmartTag {
8297
8297
  * This interface was referenced by `UploadSmartTag`'s JSON-Schema
8298
8298
  * via the `definition` "data".
8299
8299
  */
8300
- export interface UploadSmartTagData {
8300
+ export type UploadSmartTagData = {
8301
8301
  type: UploadSmartTagType;
8302
8302
  id: UploadSmartTagIdentity;
8303
- }
8303
+ };
8304
8304
 
8305
8305
  /**
8306
8306
  * JSON API attributes
@@ -8308,12 +8308,12 @@ export interface UploadSmartTagData {
8308
8308
  * This interface was referenced by `UploadSmartTag`'s JSON-Schema
8309
8309
  * via the `definition` "attributes".
8310
8310
  */
8311
- export interface UploadSmartTagAttributes {
8311
+ export type UploadSmartTagAttributes = {
8312
8312
  /**
8313
8313
  * The tag name
8314
8314
  */
8315
8315
  name: string;
8316
- }
8316
+ };
8317
8317
 
8318
8318
  /**
8319
8319
  * A site represents a specific DatoCMS administrative area
@@ -8321,7 +8321,7 @@ export interface UploadSmartTagAttributes {
8321
8321
  * This interface was referenced by `DatoApi`'s JSON-Schema
8322
8322
  * via the `definition` "site".
8323
8323
  */
8324
- export interface Site {
8324
+ export type Site = {
8325
8325
  id: SiteIdentity;
8326
8326
  type: SiteType;
8327
8327
  /**
@@ -8478,7 +8478,7 @@ export interface Site {
8478
8478
  * The list of site roles
8479
8479
  */
8480
8480
  roles: RoleData[];
8481
- }
8481
+ };
8482
8482
  export type SiteSelfTargetSchema = Site;
8483
8483
  export type SiteUpdateJobSchema = Site;
8484
8484
  /**
@@ -8487,10 +8487,10 @@ export type SiteUpdateJobSchema = Site;
8487
8487
  * This interface was referenced by `Site`'s JSON-Schema
8488
8488
  * via the `definition` "data".
8489
8489
  */
8490
- export interface SiteData {
8490
+ export type SiteData = {
8491
8491
  type: SiteType;
8492
8492
  id: SiteIdentity;
8493
- }
8493
+ };
8494
8494
 
8495
8495
  /**
8496
8496
  * JSON API attributes
@@ -8498,7 +8498,7 @@ export interface SiteData {
8498
8498
  * This interface was referenced by `Site`'s JSON-Schema
8499
8499
  * via the `definition` "attributes".
8500
8500
  */
8501
- export interface SiteAttributes {
8501
+ export type SiteAttributes = {
8502
8502
  /**
8503
8503
  * Site name
8504
8504
  */
@@ -8624,7 +8624,7 @@ export interface SiteAttributes {
8624
8624
  twitter_account?: null | string;
8625
8625
  [k: string]: unknown;
8626
8626
  } | null;
8627
- }
8627
+ };
8628
8628
 
8629
8629
  /**
8630
8630
  * JSON API links
@@ -8632,7 +8632,7 @@ export interface SiteAttributes {
8632
8632
  * This interface was referenced by `Site`'s JSON-Schema
8633
8633
  * via the `definition` "relationships".
8634
8634
  */
8635
- export interface SiteRelationships {
8635
+ export type SiteRelationships = {
8636
8636
  account: AccountData;
8637
8637
  /**
8638
8638
  * The list of build trigger
@@ -8662,13 +8662,13 @@ export interface SiteRelationships {
8662
8662
  * The list of site roles
8663
8663
  */
8664
8664
  roles: RoleData[];
8665
- }
8665
+ };
8666
8666
 
8667
8667
  /**
8668
8668
  * This interface was referenced by `Site`'s JSON-Schema
8669
8669
  * via the `update.schema` link.
8670
8670
  */
8671
- export interface SiteUpdateSchema {
8671
+ export type SiteUpdateSchema = {
8672
8672
  id?: SiteIdentity;
8673
8673
  type?: SiteType;
8674
8674
  /**
@@ -8773,7 +8773,7 @@ export interface SiteUpdateSchema {
8773
8773
  */
8774
8774
  ip_tracking_enabled?: boolean;
8775
8775
  sso_default_role?: RoleData;
8776
- }
8776
+ };
8777
8777
 
8778
8778
  /**
8779
8779
  * Through workflows it is possible to set up a precise state machine able to bring a draft content up to the final publication (and beyond), through a series of intermediate, fully customizable approval steps.
@@ -8781,7 +8781,7 @@ export interface SiteUpdateSchema {
8781
8781
  * This interface was referenced by `DatoApi`'s JSON-Schema
8782
8782
  * via the `definition` "workflow".
8783
8783
  */
8784
- export interface Workflow {
8784
+ export type Workflow = {
8785
8785
  id: WorkflowIdentity;
8786
8786
  type: WorkflowType;
8787
8787
  /**
@@ -8829,7 +8829,7 @@ export interface Workflow {
8829
8829
  initial?: boolean;
8830
8830
  }[],
8831
8831
  ];
8832
- }
8832
+ };
8833
8833
  export type WorkflowCreateTargetSchema = Workflow;
8834
8834
  export type WorkflowUpdateTargetSchema = Workflow;
8835
8835
  export type WorkflowSelfTargetSchema = Workflow;
@@ -8839,7 +8839,7 @@ export type WorkflowSelfTargetSchema = Workflow;
8839
8839
  * This interface was referenced by `Workflow`'s JSON-Schema
8840
8840
  * via the `definition` "attributes".
8841
8841
  */
8842
- export interface WorkflowAttributes {
8842
+ export type WorkflowAttributes = {
8843
8843
  /**
8844
8844
  * The name of the workflow
8845
8845
  */
@@ -8885,13 +8885,13 @@ export interface WorkflowAttributes {
8885
8885
  initial?: boolean;
8886
8886
  }[],
8887
8887
  ];
8888
- }
8888
+ };
8889
8889
 
8890
8890
  /**
8891
8891
  * This interface was referenced by `Workflow`'s JSON-Schema
8892
8892
  * via the `create.schema` link.
8893
8893
  */
8894
- export interface WorkflowCreateSchema {
8894
+ export type WorkflowCreateSchema = {
8895
8895
  id?: WorkflowIdentity;
8896
8896
  type?: WorkflowType;
8897
8897
  /**
@@ -8939,13 +8939,13 @@ export interface WorkflowCreateSchema {
8939
8939
  initial?: boolean;
8940
8940
  }[],
8941
8941
  ];
8942
- }
8942
+ };
8943
8943
 
8944
8944
  /**
8945
8945
  * This interface was referenced by `Workflow`'s JSON-Schema
8946
8946
  * via the `update.schema` link.
8947
8947
  */
8948
- export interface WorkflowUpdateSchema {
8948
+ export type WorkflowUpdateSchema = {
8949
8949
  id?: WorkflowIdentity;
8950
8950
  type?: WorkflowType;
8951
8951
  /**
@@ -8993,4 +8993,4 @@ export interface WorkflowUpdateSchema {
8993
8993
  initial?: boolean;
8994
8994
  }[],
8995
8995
  ];
8996
- }
8996
+ };