@datocms/cma-client 5.2.1-alpha.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/generated/Client.js +1 -1
- package/dist/cjs/generated/Client.js.map +1 -1
- package/dist/cjs/generated/resources/UploadRequest.js +1 -1
- package/dist/cjs/generated/resources/UploadRequest.js.map +1 -1
- package/dist/esm/generated/ApiTypes.d.ts +36 -41
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/Client.js.map +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +26 -42
- package/dist/esm/generated/resources/UploadRequest.js +1 -1
- package/dist/esm/generated/resources/UploadRequest.js.map +1 -1
- package/dist/types/generated/ApiTypes.d.ts +36 -41
- package/dist/types/generated/RawApiTypes.d.ts +26 -42
- package/package.json +2 -2
- package/resources.json +1 -1
- package/src/generated/ApiTypes.ts +64 -51
- package/src/generated/Client.ts +1 -1
- package/src/generated/RawApiTypes.ts +40 -50
- package/src/generated/resources/UploadRequest.ts +1 -1
|
@@ -72,16 +72,6 @@ export type WorkflowIdentity = string;
|
|
|
72
72
|
* via the `definition` "id".
|
|
73
73
|
*/
|
|
74
74
|
export type EnvironmentIdentity = string;
|
|
75
|
-
/**
|
|
76
|
-
* RFC 4122 UUID of upload collection expressed in URL-safe base64 format
|
|
77
|
-
*
|
|
78
|
-
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
79
|
-
* via the `definition` "identity".
|
|
80
|
-
*
|
|
81
|
-
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
82
|
-
* via the `definition` "id".
|
|
83
|
-
*/
|
|
84
|
-
export type UploadCollectionIdentity = string;
|
|
85
75
|
/**
|
|
86
76
|
* ID of build_trigger
|
|
87
77
|
*
|
|
@@ -461,6 +451,16 @@ export type SchemaMenuItemReorderSchema = {
|
|
|
461
451
|
* via the `reorder.jobSchema` link.
|
|
462
452
|
*/
|
|
463
453
|
export type SchemaMenuItemReorderJobSchema = SchemaMenuItem[];
|
|
454
|
+
/**
|
|
455
|
+
* RFC 4122 UUID of upload collection expressed in URL-safe base64 format
|
|
456
|
+
*
|
|
457
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
458
|
+
* via the `definition` "identity".
|
|
459
|
+
*
|
|
460
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
461
|
+
* via the `definition` "id".
|
|
462
|
+
*/
|
|
463
|
+
export type UploadCollectionIdentity = string;
|
|
464
464
|
/**
|
|
465
465
|
* JSON API type field
|
|
466
466
|
*
|
|
@@ -2066,7 +2066,7 @@ export type Role = {
|
|
|
2066
2066
|
/**
|
|
2067
2067
|
* Permitted action
|
|
2068
2068
|
*/
|
|
2069
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
2069
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
2070
2070
|
/**
|
|
2071
2071
|
* Permitted creator
|
|
2072
2072
|
*/
|
|
@@ -2079,8 +2079,6 @@ export type Role = {
|
|
|
2079
2079
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2080
2080
|
*/
|
|
2081
2081
|
locale?: string | null;
|
|
2082
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
2083
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2084
2082
|
}[];
|
|
2085
2083
|
/**
|
|
2086
2084
|
* Prohibited actions on a model (or all) for a role
|
|
@@ -2090,7 +2088,7 @@ export type Role = {
|
|
|
2090
2088
|
/**
|
|
2091
2089
|
* Permitted action
|
|
2092
2090
|
*/
|
|
2093
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
2091
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
2094
2092
|
/**
|
|
2095
2093
|
* Permitted creator
|
|
2096
2094
|
*/
|
|
@@ -2103,8 +2101,6 @@ export type Role = {
|
|
|
2103
2101
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2104
2102
|
*/
|
|
2105
2103
|
locale?: string | null;
|
|
2106
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
2107
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2108
2104
|
}[];
|
|
2109
2105
|
/**
|
|
2110
2106
|
* Allowed build triggers for a role
|
|
@@ -2303,7 +2299,7 @@ export type RoleMeta = {
|
|
|
2303
2299
|
/**
|
|
2304
2300
|
* Permitted action
|
|
2305
2301
|
*/
|
|
2306
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
2302
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
2307
2303
|
/**
|
|
2308
2304
|
* Permitted creator
|
|
2309
2305
|
*/
|
|
@@ -2316,8 +2312,6 @@ export type RoleMeta = {
|
|
|
2316
2312
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2317
2313
|
*/
|
|
2318
2314
|
locale?: string | null;
|
|
2319
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
2320
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2321
2315
|
}[];
|
|
2322
2316
|
/**
|
|
2323
2317
|
* Prohibited actions on a model (or all) for a role
|
|
@@ -2327,7 +2321,7 @@ export type RoleMeta = {
|
|
|
2327
2321
|
/**
|
|
2328
2322
|
* Permitted action
|
|
2329
2323
|
*/
|
|
2330
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
2324
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
2331
2325
|
/**
|
|
2332
2326
|
* Permitted creator
|
|
2333
2327
|
*/
|
|
@@ -2340,8 +2334,6 @@ export type RoleMeta = {
|
|
|
2340
2334
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2341
2335
|
*/
|
|
2342
2336
|
locale?: string | null;
|
|
2343
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
2344
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2345
2337
|
}[];
|
|
2346
2338
|
/**
|
|
2347
2339
|
* Allowed build triggers for a role
|
|
@@ -2524,7 +2516,7 @@ export type RoleAttributes = {
|
|
|
2524
2516
|
/**
|
|
2525
2517
|
* Permitted action
|
|
2526
2518
|
*/
|
|
2527
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
2519
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
2528
2520
|
/**
|
|
2529
2521
|
* Permitted creator
|
|
2530
2522
|
*/
|
|
@@ -2537,8 +2529,6 @@ export type RoleAttributes = {
|
|
|
2537
2529
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2538
2530
|
*/
|
|
2539
2531
|
locale?: string | null;
|
|
2540
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
2541
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2542
2532
|
}[];
|
|
2543
2533
|
/**
|
|
2544
2534
|
* Prohibited actions on a model (or all) for a role
|
|
@@ -2548,7 +2538,7 @@ export type RoleAttributes = {
|
|
|
2548
2538
|
/**
|
|
2549
2539
|
* Permitted action
|
|
2550
2540
|
*/
|
|
2551
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
2541
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
2552
2542
|
/**
|
|
2553
2543
|
* Permitted creator
|
|
2554
2544
|
*/
|
|
@@ -2561,8 +2551,6 @@ export type RoleAttributes = {
|
|
|
2561
2551
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2562
2552
|
*/
|
|
2563
2553
|
locale?: string | null;
|
|
2564
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
2565
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2566
2554
|
}[];
|
|
2567
2555
|
/**
|
|
2568
2556
|
* Allowed build triggers for a role
|
|
@@ -2752,7 +2740,7 @@ export type RoleCreateSchema = {
|
|
|
2752
2740
|
/**
|
|
2753
2741
|
* Permitted action
|
|
2754
2742
|
*/
|
|
2755
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
2743
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
2756
2744
|
/**
|
|
2757
2745
|
* Permitted creator
|
|
2758
2746
|
*/
|
|
@@ -2765,8 +2753,6 @@ export type RoleCreateSchema = {
|
|
|
2765
2753
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2766
2754
|
*/
|
|
2767
2755
|
locale?: string | null;
|
|
2768
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
2769
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2770
2756
|
}[];
|
|
2771
2757
|
/**
|
|
2772
2758
|
* Prohibited actions on a model (or all) for a role
|
|
@@ -2776,7 +2762,7 @@ export type RoleCreateSchema = {
|
|
|
2776
2762
|
/**
|
|
2777
2763
|
* Permitted action
|
|
2778
2764
|
*/
|
|
2779
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
2765
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
2780
2766
|
/**
|
|
2781
2767
|
* Permitted creator
|
|
2782
2768
|
*/
|
|
@@ -2789,8 +2775,6 @@ export type RoleCreateSchema = {
|
|
|
2789
2775
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2790
2776
|
*/
|
|
2791
2777
|
locale?: string | null;
|
|
2792
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
2793
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2794
2778
|
}[];
|
|
2795
2779
|
/**
|
|
2796
2780
|
* Allowed build triggers for a role
|
|
@@ -2974,7 +2958,7 @@ export type RoleUpdateSchema = {
|
|
|
2974
2958
|
/**
|
|
2975
2959
|
* Permitted action
|
|
2976
2960
|
*/
|
|
2977
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
2961
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
2978
2962
|
/**
|
|
2979
2963
|
* Permitted creator
|
|
2980
2964
|
*/
|
|
@@ -2987,8 +2971,6 @@ export type RoleUpdateSchema = {
|
|
|
2987
2971
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2988
2972
|
*/
|
|
2989
2973
|
locale?: string | null;
|
|
2990
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
2991
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2992
2974
|
}[];
|
|
2993
2975
|
/**
|
|
2994
2976
|
* Prohibited actions on a model (or all) for a role
|
|
@@ -2998,7 +2980,7 @@ export type RoleUpdateSchema = {
|
|
|
2998
2980
|
/**
|
|
2999
2981
|
* Permitted action
|
|
3000
2982
|
*/
|
|
3001
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
2983
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
3002
2984
|
/**
|
|
3003
2985
|
* Permitted creator
|
|
3004
2986
|
*/
|
|
@@ -3011,8 +2993,6 @@ export type RoleUpdateSchema = {
|
|
|
3011
2993
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
3012
2994
|
*/
|
|
3013
2995
|
locale?: string | null;
|
|
3014
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
3015
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
3016
2996
|
}[];
|
|
3017
2997
|
/**
|
|
3018
2998
|
* Allowed build triggers for a role
|
|
@@ -3275,6 +3255,14 @@ export type AccessToken = {
|
|
|
3275
3255
|
*/
|
|
3276
3256
|
can_access_cma: boolean;
|
|
3277
3257
|
hardcoded_type: null | string;
|
|
3258
|
+
/**
|
|
3259
|
+
* When this API token was last used to access the Content Management API
|
|
3260
|
+
*/
|
|
3261
|
+
last_cma_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
3262
|
+
/**
|
|
3263
|
+
* When this API token was last used to access the Content Delivery API
|
|
3264
|
+
*/
|
|
3265
|
+
last_cda_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
3278
3266
|
role: RoleData | null;
|
|
3279
3267
|
};
|
|
3280
3268
|
export type AccessTokenCreateTargetSchema = AccessToken;
|
|
@@ -3320,6 +3308,14 @@ export type AccessTokenAttributes = {
|
|
|
3320
3308
|
*/
|
|
3321
3309
|
can_access_cma: boolean;
|
|
3322
3310
|
hardcoded_type: null | string;
|
|
3311
|
+
/**
|
|
3312
|
+
* When this API token was last used to access the Content Management API
|
|
3313
|
+
*/
|
|
3314
|
+
last_cma_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
3315
|
+
/**
|
|
3316
|
+
* When this API token was last used to access the Content Delivery API
|
|
3317
|
+
*/
|
|
3318
|
+
last_cda_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
3323
3319
|
};
|
|
3324
3320
|
/**
|
|
3325
3321
|
* JSON API links
|
|
@@ -8130,7 +8126,6 @@ export type UploadRequestCreateSchema = {
|
|
|
8130
8126
|
* The original file name
|
|
8131
8127
|
*/
|
|
8132
8128
|
filename?: string;
|
|
8133
|
-
upload_collection?: UploadCollectionData | null;
|
|
8134
8129
|
};
|
|
8135
8130
|
/**
|
|
8136
8131
|
* If the asset linked to an Upload entity is a video file, you have the option to include additional audio tracks and subtitle tracks to it.
|
|
@@ -80,16 +80,6 @@ export type WorkflowIdentity = string;
|
|
|
80
80
|
* via the `definition` "id".
|
|
81
81
|
*/
|
|
82
82
|
export type EnvironmentIdentity = string;
|
|
83
|
-
/**
|
|
84
|
-
* RFC 4122 UUID of upload collection expressed in URL-safe base64 format
|
|
85
|
-
*
|
|
86
|
-
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
87
|
-
* via the `definition` "identity".
|
|
88
|
-
*
|
|
89
|
-
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
90
|
-
* via the `definition` "id".
|
|
91
|
-
*/
|
|
92
|
-
export type UploadCollectionIdentity = string;
|
|
93
83
|
/**
|
|
94
84
|
* ID of build_trigger
|
|
95
85
|
*
|
|
@@ -395,6 +385,16 @@ export type SchemaMenuItemInstancesHrefSchema = {
|
|
|
395
385
|
* via the `definition` "type".
|
|
396
386
|
*/
|
|
397
387
|
export type UploadCollectionType = 'upload_collection';
|
|
388
|
+
/**
|
|
389
|
+
* RFC 4122 UUID of upload collection expressed in URL-safe base64 format
|
|
390
|
+
*
|
|
391
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
392
|
+
* via the `definition` "identity".
|
|
393
|
+
*
|
|
394
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
395
|
+
* via the `definition` "id".
|
|
396
|
+
*/
|
|
397
|
+
export type UploadCollectionIdentity = string;
|
|
398
398
|
/**
|
|
399
399
|
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
400
400
|
* via the `instances.hrefSchema` link.
|
|
@@ -1716,7 +1716,7 @@ export type RoleAttributes = {
|
|
|
1716
1716
|
/**
|
|
1717
1717
|
* Permitted action
|
|
1718
1718
|
*/
|
|
1719
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
1719
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
1720
1720
|
/**
|
|
1721
1721
|
* Permitted creator
|
|
1722
1722
|
*/
|
|
@@ -1729,8 +1729,6 @@ export type RoleAttributes = {
|
|
|
1729
1729
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
1730
1730
|
*/
|
|
1731
1731
|
locale?: string | null;
|
|
1732
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
1733
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
1734
1732
|
}[];
|
|
1735
1733
|
/**
|
|
1736
1734
|
* Prohibited actions on a model (or all) for a role
|
|
@@ -1740,7 +1738,7 @@ export type RoleAttributes = {
|
|
|
1740
1738
|
/**
|
|
1741
1739
|
* Permitted action
|
|
1742
1740
|
*/
|
|
1743
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
1741
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
1744
1742
|
/**
|
|
1745
1743
|
* Permitted creator
|
|
1746
1744
|
*/
|
|
@@ -1753,8 +1751,6 @@ export type RoleAttributes = {
|
|
|
1753
1751
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
1754
1752
|
*/
|
|
1755
1753
|
locale?: string | null;
|
|
1756
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
1757
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
1758
1754
|
}[];
|
|
1759
1755
|
/**
|
|
1760
1756
|
* Allowed build triggers for a role
|
|
@@ -1960,7 +1956,7 @@ export type RoleMeta = {
|
|
|
1960
1956
|
/**
|
|
1961
1957
|
* Permitted action
|
|
1962
1958
|
*/
|
|
1963
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
1959
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
1964
1960
|
/**
|
|
1965
1961
|
* Permitted creator
|
|
1966
1962
|
*/
|
|
@@ -1973,8 +1969,6 @@ export type RoleMeta = {
|
|
|
1973
1969
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
1974
1970
|
*/
|
|
1975
1971
|
locale?: string | null;
|
|
1976
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
1977
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
1978
1972
|
}[];
|
|
1979
1973
|
/**
|
|
1980
1974
|
* Prohibited actions on a model (or all) for a role
|
|
@@ -1984,7 +1978,7 @@ export type RoleMeta = {
|
|
|
1984
1978
|
/**
|
|
1985
1979
|
* Permitted action
|
|
1986
1980
|
*/
|
|
1987
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
1981
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
1988
1982
|
/**
|
|
1989
1983
|
* Permitted creator
|
|
1990
1984
|
*/
|
|
@@ -1997,8 +1991,6 @@ export type RoleMeta = {
|
|
|
1997
1991
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
1998
1992
|
*/
|
|
1999
1993
|
locale?: string | null;
|
|
2000
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
2001
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2002
1994
|
}[];
|
|
2003
1995
|
/**
|
|
2004
1996
|
* Allowed build triggers for a role
|
|
@@ -2185,7 +2177,7 @@ export type RoleCreateSchema = {
|
|
|
2185
2177
|
/**
|
|
2186
2178
|
* Permitted action
|
|
2187
2179
|
*/
|
|
2188
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
2180
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
2189
2181
|
/**
|
|
2190
2182
|
* Permitted creator
|
|
2191
2183
|
*/
|
|
@@ -2198,8 +2190,6 @@ export type RoleCreateSchema = {
|
|
|
2198
2190
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2199
2191
|
*/
|
|
2200
2192
|
locale?: string | null;
|
|
2201
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
2202
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2203
2193
|
}[];
|
|
2204
2194
|
/**
|
|
2205
2195
|
* Prohibited actions on a model (or all) for a role
|
|
@@ -2209,7 +2199,7 @@ export type RoleCreateSchema = {
|
|
|
2209
2199
|
/**
|
|
2210
2200
|
* Permitted action
|
|
2211
2201
|
*/
|
|
2212
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
2202
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
2213
2203
|
/**
|
|
2214
2204
|
* Permitted creator
|
|
2215
2205
|
*/
|
|
@@ -2222,8 +2212,6 @@ export type RoleCreateSchema = {
|
|
|
2222
2212
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2223
2213
|
*/
|
|
2224
2214
|
locale?: string | null;
|
|
2225
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
2226
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2227
2215
|
}[];
|
|
2228
2216
|
/**
|
|
2229
2217
|
* Allowed build triggers for a role
|
|
@@ -2431,7 +2419,7 @@ export type RoleUpdateSchema = {
|
|
|
2431
2419
|
/**
|
|
2432
2420
|
* Permitted action
|
|
2433
2421
|
*/
|
|
2434
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
2422
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
2435
2423
|
/**
|
|
2436
2424
|
* Permitted creator
|
|
2437
2425
|
*/
|
|
@@ -2444,8 +2432,6 @@ export type RoleUpdateSchema = {
|
|
|
2444
2432
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2445
2433
|
*/
|
|
2446
2434
|
locale?: string | null;
|
|
2447
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
2448
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2449
2435
|
}[];
|
|
2450
2436
|
/**
|
|
2451
2437
|
* Prohibited actions on a model (or all) for a role
|
|
@@ -2455,7 +2441,7 @@ export type RoleUpdateSchema = {
|
|
|
2455
2441
|
/**
|
|
2456
2442
|
* Permitted action
|
|
2457
2443
|
*/
|
|
2458
|
-
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset'
|
|
2444
|
+
action: 'all' | 'read' | 'update' | 'create' | 'delete' | 'edit_creator' | 'replace_asset';
|
|
2459
2445
|
/**
|
|
2460
2446
|
* Permitted creator
|
|
2461
2447
|
*/
|
|
@@ -2468,8 +2454,6 @@ export type RoleUpdateSchema = {
|
|
|
2468
2454
|
* Permitted localized content in this locale. Required when `localization_scope` is `localized`
|
|
2469
2455
|
*/
|
|
2470
2456
|
locale?: string | null;
|
|
2471
|
-
upload_collection?: UploadCollectionIdentity | null;
|
|
2472
|
-
move_to_upload_collection?: UploadCollectionIdentity | null;
|
|
2473
2457
|
}[];
|
|
2474
2458
|
/**
|
|
2475
2459
|
* Allowed build triggers for a role
|
|
@@ -2833,6 +2817,14 @@ export type AccessTokenAttributes = {
|
|
|
2833
2817
|
*/
|
|
2834
2818
|
can_access_cma: boolean;
|
|
2835
2819
|
hardcoded_type: null | string;
|
|
2820
|
+
/**
|
|
2821
|
+
* When this API token was last used to access the Content Management API
|
|
2822
|
+
*/
|
|
2823
|
+
last_cma_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
2824
|
+
/**
|
|
2825
|
+
* When this API token was last used to access the Content Delivery API
|
|
2826
|
+
*/
|
|
2827
|
+
last_cda_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
2836
2828
|
};
|
|
2837
2829
|
/**
|
|
2838
2830
|
* JSON API links
|
|
@@ -8482,14 +8474,6 @@ export type UploadRequestCreateSchema = {
|
|
|
8482
8474
|
filename?: string;
|
|
8483
8475
|
[k: string]: unknown;
|
|
8484
8476
|
};
|
|
8485
|
-
relationships?: {
|
|
8486
|
-
/**
|
|
8487
|
-
* Upload collection to which the asset belongs
|
|
8488
|
-
*/
|
|
8489
|
-
upload_collection?: {
|
|
8490
|
-
data: UploadCollectionData | null;
|
|
8491
|
-
};
|
|
8492
|
-
};
|
|
8493
8477
|
};
|
|
8494
8478
|
};
|
|
8495
8479
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "5.2.1
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"@datocms/dashboard-client": "^5.2.0",
|
|
46
46
|
"@types/uuid": "^9.0.7"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "725729ea99c56e9908fa758a5b9d1a8ad5293d40"
|
|
49
49
|
}
|
package/resources.json
CHANGED
|
@@ -3001,7 +3001,7 @@
|
|
|
3001
3001
|
"requestStructure": {
|
|
3002
3002
|
"type": "upload_request",
|
|
3003
3003
|
"attributes": ["filename"],
|
|
3004
|
-
"relationships": [
|
|
3004
|
+
"relationships": []
|
|
3005
3005
|
},
|
|
3006
3006
|
"queryParamsRequired": false,
|
|
3007
3007
|
"responseType": "UploadRequestCreateTargetSchema",
|