@storyblok/management-api-client 0.1.6 → 0.1.8
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/generated/asset_folders/client/client.js +131 -0
- package/dist/generated/asset_folders/client/client.js.map +1 -0
- package/dist/generated/asset_folders/client/client.mjs +131 -0
- package/dist/generated/asset_folders/client/client.mjs.map +1 -0
- package/dist/generated/asset_folders/client/index.js +4 -0
- package/dist/generated/asset_folders/client/index.mjs +4 -0
- package/dist/generated/asset_folders/client/types.d.mts +116 -0
- package/dist/generated/asset_folders/client/types.d.ts +116 -0
- package/dist/generated/asset_folders/client/utils.d.mts +23 -0
- package/dist/generated/asset_folders/client/utils.d.ts +23 -0
- package/dist/generated/asset_folders/client/utils.js +242 -0
- package/dist/generated/asset_folders/client/utils.js.map +1 -0
- package/dist/generated/asset_folders/client/utils.mjs +236 -0
- package/dist/generated/asset_folders/client/utils.mjs.map +1 -0
- package/dist/generated/asset_folders/client.gen.js +10 -0
- package/dist/generated/asset_folders/client.gen.js.map +1 -0
- package/dist/generated/asset_folders/client.gen.mjs +10 -0
- package/dist/generated/asset_folders/client.gen.mjs.map +1 -0
- package/dist/generated/asset_folders/core/auth.d.mts +21 -0
- package/dist/generated/asset_folders/core/auth.d.ts +21 -0
- package/dist/generated/asset_folders/core/auth.js +13 -0
- package/dist/generated/asset_folders/core/auth.js.map +1 -0
- package/dist/generated/asset_folders/core/auth.mjs +12 -0
- package/dist/generated/asset_folders/core/auth.mjs.map +1 -0
- package/dist/generated/asset_folders/core/bodySerializer.d.mts +13 -0
- package/dist/generated/asset_folders/core/bodySerializer.d.ts +13 -0
- package/dist/generated/asset_folders/core/bodySerializer.js +7 -0
- package/dist/generated/asset_folders/core/bodySerializer.js.map +1 -0
- package/dist/generated/asset_folders/core/bodySerializer.mjs +6 -0
- package/dist/generated/asset_folders/core/bodySerializer.mjs.map +1 -0
- package/dist/generated/asset_folders/core/params.js +12 -0
- package/dist/generated/asset_folders/core/params.js.map +1 -0
- package/dist/generated/asset_folders/core/params.mjs +11 -0
- package/dist/generated/asset_folders/core/params.mjs.map +1 -0
- package/dist/generated/asset_folders/core/pathSerializer.d.mts +14 -0
- package/dist/generated/asset_folders/core/pathSerializer.d.ts +14 -0
- package/dist/generated/asset_folders/core/pathSerializer.js +85 -0
- package/dist/generated/asset_folders/core/pathSerializer.js.map +1 -0
- package/dist/generated/asset_folders/core/pathSerializer.mjs +82 -0
- package/dist/generated/asset_folders/core/pathSerializer.mjs.map +1 -0
- package/dist/generated/asset_folders/core/types.d.mts +78 -0
- package/dist/generated/asset_folders/core/types.d.ts +78 -0
- package/dist/generated/asset_folders/sdk.gen.d.mts +53 -0
- package/dist/generated/asset_folders/sdk.gen.d.ts +53 -0
- package/dist/generated/asset_folders/sdk.gen.js +108 -0
- package/dist/generated/asset_folders/sdk.gen.js.map +1 -0
- package/dist/generated/asset_folders/sdk.gen.mjs +108 -0
- package/dist/generated/asset_folders/sdk.gen.mjs.map +1 -0
- package/dist/generated/asset_folders/types.gen.d.mts +253 -0
- package/dist/generated/asset_folders/types.gen.d.ts +253 -0
- package/dist/generated/asset_folders/types.gen.js +12 -0
- package/dist/generated/asset_folders/types.gen.js.map +1 -0
- package/dist/generated/asset_folders/types.gen.mjs +6 -0
- package/dist/generated/asset_folders/types.gen.mjs.map +1 -0
- package/dist/generated/assets/types.gen.d.mts +7 -3
- package/dist/generated/assets/types.gen.d.ts +7 -3
- package/dist/generated/assets/types.gen.js.map +1 -1
- package/dist/generated/assets/types.gen.mjs.map +1 -1
- package/dist/generated/components/types.gen.d.mts +8 -4
- package/dist/generated/components/types.gen.d.ts +8 -4
- package/dist/generated/components/types.gen.js.map +1 -1
- package/dist/generated/components/types.gen.mjs.map +1 -1
- package/dist/generated/datasources/types.gen.d.mts +18 -2
- package/dist/generated/datasources/types.gen.d.ts +18 -2
- package/dist/generated/datasources/types.gen.js.map +1 -1
- package/dist/generated/datasources/types.gen.mjs.map +1 -1
- package/dist/generated/internal_tags/types.gen.d.mts +7 -3
- package/dist/generated/internal_tags/types.gen.d.ts +7 -3
- package/dist/generated/internal_tags/types.gen.js.map +1 -1
- package/dist/generated/internal_tags/types.gen.mjs.map +1 -1
- package/dist/generated/stories/types.gen.d.mts +10 -3
- package/dist/generated/stories/types.gen.d.ts +10 -3
- package/dist/generated/stories/types.gen.js.map +1 -1
- package/dist/generated/stories/types.gen.mjs.map +1 -1
- package/dist/index.d.mts +12 -11
- package/dist/index.d.ts +12 -11
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/sdk-registry.generated.d.mts +2 -0
- package/dist/sdk-registry.generated.d.ts +2 -0
- package/dist/sdk-registry.generated.js +3 -1
- package/dist/sdk-registry.generated.js.map +1 -1
- package/dist/sdk-registry.generated.mjs +3 -1
- package/dist/sdk-registry.generated.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
declare namespace types_gen_d_exports {
|
|
2
|
+
export { AssetFolder, AssetFolderId, AssetFolderInput, ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses };
|
|
3
|
+
}
|
|
4
|
+
type AssetFolder = {
|
|
5
|
+
/**
|
|
6
|
+
* The numeric ID of the asset folder
|
|
7
|
+
*/
|
|
8
|
+
readonly id: number;
|
|
9
|
+
/**
|
|
10
|
+
* The name of the asset folder
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* ID of the parent folder for hierarchical structure
|
|
15
|
+
*/
|
|
16
|
+
parent_id?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The UUID of the asset folder
|
|
19
|
+
*/
|
|
20
|
+
readonly uuid: string;
|
|
21
|
+
/**
|
|
22
|
+
* The UUID of the parent folder
|
|
23
|
+
*/
|
|
24
|
+
readonly parent_uuid?: string;
|
|
25
|
+
};
|
|
26
|
+
type AssetFolderInput = {
|
|
27
|
+
/**
|
|
28
|
+
* The name of the asset folder
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* ID of the parent folder for hierarchical structure. Use 0 or null to move to root level.
|
|
33
|
+
*/
|
|
34
|
+
parent_id?: number;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* The ID of the Storyblok space (can be integer or string)
|
|
38
|
+
*/
|
|
39
|
+
type SpaceId = number | string;
|
|
40
|
+
/**
|
|
41
|
+
* The ID of the asset folder (can be integer or string)
|
|
42
|
+
*/
|
|
43
|
+
type AssetFolderId = number | string;
|
|
44
|
+
type ListData = {
|
|
45
|
+
body?: never;
|
|
46
|
+
path: {
|
|
47
|
+
/**
|
|
48
|
+
* The ID of the Storyblok space (can be integer or string)
|
|
49
|
+
*/
|
|
50
|
+
space_id: number | string;
|
|
51
|
+
};
|
|
52
|
+
query?: {
|
|
53
|
+
/**
|
|
54
|
+
* Search by folder's name
|
|
55
|
+
*/
|
|
56
|
+
search?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Filter by parent id. Use 0 or "0" for root level folders.
|
|
59
|
+
*/
|
|
60
|
+
with_parent?: number | string;
|
|
61
|
+
/**
|
|
62
|
+
* Comma-separated list of UUIDs to filter by
|
|
63
|
+
*/
|
|
64
|
+
by_uuids?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Comma-separated list of IDs to filter by
|
|
67
|
+
*/
|
|
68
|
+
by_ids?: string;
|
|
69
|
+
};
|
|
70
|
+
url: '/v1/spaces/{space_id}/asset_folders';
|
|
71
|
+
};
|
|
72
|
+
type ListErrors = {
|
|
73
|
+
/**
|
|
74
|
+
* Bad request
|
|
75
|
+
*/
|
|
76
|
+
400: unknown;
|
|
77
|
+
/**
|
|
78
|
+
* Unauthorized
|
|
79
|
+
*/
|
|
80
|
+
401: unknown;
|
|
81
|
+
/**
|
|
82
|
+
* Space not found
|
|
83
|
+
*/
|
|
84
|
+
404: unknown;
|
|
85
|
+
};
|
|
86
|
+
type ListResponses = {
|
|
87
|
+
/**
|
|
88
|
+
* List of asset folders
|
|
89
|
+
*/
|
|
90
|
+
200: {
|
|
91
|
+
asset_folders?: Array<AssetFolder>;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
type ListResponse = ListResponses[keyof ListResponses];
|
|
95
|
+
type CreateData = {
|
|
96
|
+
body: {
|
|
97
|
+
asset_folder?: AssetFolderInput;
|
|
98
|
+
};
|
|
99
|
+
path: {
|
|
100
|
+
/**
|
|
101
|
+
* The ID of the Storyblok space (can be integer or string)
|
|
102
|
+
*/
|
|
103
|
+
space_id: number | string;
|
|
104
|
+
};
|
|
105
|
+
query?: never;
|
|
106
|
+
url: '/v1/spaces/{space_id}/asset_folders';
|
|
107
|
+
};
|
|
108
|
+
type CreateErrors = {
|
|
109
|
+
/**
|
|
110
|
+
* Bad request
|
|
111
|
+
*/
|
|
112
|
+
400: unknown;
|
|
113
|
+
/**
|
|
114
|
+
* Unauthorized
|
|
115
|
+
*/
|
|
116
|
+
401: unknown;
|
|
117
|
+
/**
|
|
118
|
+
* Space not found
|
|
119
|
+
*/
|
|
120
|
+
404: unknown;
|
|
121
|
+
};
|
|
122
|
+
type CreateResponses = {
|
|
123
|
+
/**
|
|
124
|
+
* Asset folder created successfully
|
|
125
|
+
*/
|
|
126
|
+
201: {
|
|
127
|
+
asset_folder?: AssetFolder;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
type CreateResponse = CreateResponses[keyof CreateResponses];
|
|
131
|
+
type DeleteData = {
|
|
132
|
+
body?: never;
|
|
133
|
+
path: {
|
|
134
|
+
/**
|
|
135
|
+
* The ID of the Storyblok space (can be integer or string)
|
|
136
|
+
*/
|
|
137
|
+
space_id: number | string;
|
|
138
|
+
/**
|
|
139
|
+
* The ID of the asset folder (can be integer or string)
|
|
140
|
+
*/
|
|
141
|
+
asset_folder_id: number | string;
|
|
142
|
+
};
|
|
143
|
+
query?: {
|
|
144
|
+
/**
|
|
145
|
+
* If true, recursively delete all child folders and orphan their assets. If false (default), assets are orphaned and child folders are moved to the parent level.
|
|
146
|
+
*/
|
|
147
|
+
recursive?: boolean;
|
|
148
|
+
};
|
|
149
|
+
url: '/v1/spaces/{space_id}/asset_folders/{asset_folder_id}';
|
|
150
|
+
};
|
|
151
|
+
type DeleteErrors = {
|
|
152
|
+
/**
|
|
153
|
+
* Bad request
|
|
154
|
+
*/
|
|
155
|
+
400: unknown;
|
|
156
|
+
/**
|
|
157
|
+
* Unauthorized
|
|
158
|
+
*/
|
|
159
|
+
401: unknown;
|
|
160
|
+
/**
|
|
161
|
+
* Asset folder not found
|
|
162
|
+
*/
|
|
163
|
+
404: unknown;
|
|
164
|
+
};
|
|
165
|
+
type DeleteResponses = {
|
|
166
|
+
/**
|
|
167
|
+
* Asset folder deleted successfully
|
|
168
|
+
*/
|
|
169
|
+
204: void;
|
|
170
|
+
};
|
|
171
|
+
type DeleteResponse = DeleteResponses[keyof DeleteResponses];
|
|
172
|
+
type GetData = {
|
|
173
|
+
body?: never;
|
|
174
|
+
path: {
|
|
175
|
+
/**
|
|
176
|
+
* The ID of the Storyblok space (can be integer or string)
|
|
177
|
+
*/
|
|
178
|
+
space_id: number | string;
|
|
179
|
+
/**
|
|
180
|
+
* The ID of the asset folder (can be integer or string)
|
|
181
|
+
*/
|
|
182
|
+
asset_folder_id: number | string;
|
|
183
|
+
};
|
|
184
|
+
query?: never;
|
|
185
|
+
url: '/v1/spaces/{space_id}/asset_folders/{asset_folder_id}';
|
|
186
|
+
};
|
|
187
|
+
type GetErrors = {
|
|
188
|
+
/**
|
|
189
|
+
* Bad request
|
|
190
|
+
*/
|
|
191
|
+
400: unknown;
|
|
192
|
+
/**
|
|
193
|
+
* Unauthorized
|
|
194
|
+
*/
|
|
195
|
+
401: unknown;
|
|
196
|
+
/**
|
|
197
|
+
* Asset folder not found
|
|
198
|
+
*/
|
|
199
|
+
404: unknown;
|
|
200
|
+
};
|
|
201
|
+
type GetResponses = {
|
|
202
|
+
/**
|
|
203
|
+
* Asset folder details
|
|
204
|
+
*/
|
|
205
|
+
200: {
|
|
206
|
+
asset_folder?: AssetFolder;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
type GetResponse = GetResponses[keyof GetResponses];
|
|
210
|
+
type UpdateData = {
|
|
211
|
+
body: {
|
|
212
|
+
asset_folder?: AssetFolderInput;
|
|
213
|
+
};
|
|
214
|
+
path: {
|
|
215
|
+
/**
|
|
216
|
+
* The ID of the Storyblok space (can be integer or string)
|
|
217
|
+
*/
|
|
218
|
+
space_id: number | string;
|
|
219
|
+
/**
|
|
220
|
+
* The ID of the asset folder (can be integer or string)
|
|
221
|
+
*/
|
|
222
|
+
asset_folder_id: number | string;
|
|
223
|
+
};
|
|
224
|
+
query?: never;
|
|
225
|
+
url: '/v1/spaces/{space_id}/asset_folders/{asset_folder_id}';
|
|
226
|
+
};
|
|
227
|
+
type UpdateErrors = {
|
|
228
|
+
/**
|
|
229
|
+
* Bad request
|
|
230
|
+
*/
|
|
231
|
+
400: unknown;
|
|
232
|
+
/**
|
|
233
|
+
* Unauthorized
|
|
234
|
+
*/
|
|
235
|
+
401: unknown;
|
|
236
|
+
/**
|
|
237
|
+
* Asset folder not found
|
|
238
|
+
*/
|
|
239
|
+
404: unknown;
|
|
240
|
+
};
|
|
241
|
+
type UpdateResponses = {
|
|
242
|
+
/**
|
|
243
|
+
* Asset folder updated successfully
|
|
244
|
+
*/
|
|
245
|
+
204: void;
|
|
246
|
+
};
|
|
247
|
+
type UpdateResponse = UpdateResponses[keyof UpdateResponses];
|
|
248
|
+
type ClientOptions = {
|
|
249
|
+
baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});
|
|
250
|
+
};
|
|
251
|
+
//#endregion
|
|
252
|
+
export { AssetFolder, AssetFolderId, AssetFolderInput, ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, types_gen_d_exports };
|
|
253
|
+
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/generated/asset_folders/types.gen.ts
|
|
3
|
+
var types_gen_exports = {};
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
Object.defineProperty(exports, 'types_gen_exports', {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return types_gen_exports;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/asset_folders/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type AssetFolder = {\n /**\n * The numeric ID of the asset folder\n */\n readonly id: number;\n /**\n * The name of the asset folder\n */\n name: string;\n /**\n * ID of the parent folder for hierarchical structure\n */\n parent_id?: number;\n /**\n * The UUID of the asset folder\n */\n readonly uuid: string;\n /**\n * The UUID of the parent folder\n */\n readonly parent_uuid?: string;\n};\n\nexport type AssetFolderInput = {\n /**\n * The name of the asset folder\n */\n name: string;\n /**\n * ID of the parent folder for hierarchical structure. Use 0 or null to move to root level.\n */\n parent_id?: number;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * The ID of the asset folder (can be integer or string)\n */\nexport type AssetFolderId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Search by folder's name\n */\n search?: string;\n /**\n * Filter by parent id. Use 0 or \"0\" for root level folders.\n */\n with_parent?: number | string;\n /**\n * Comma-separated list of UUIDs to filter by\n */\n by_uuids?: string;\n /**\n * Comma-separated list of IDs to filter by\n */\n by_ids?: string;\n };\n url: '/v1/spaces/{space_id}/asset_folders';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of asset folders\n */\n 200: {\n asset_folders?: Array<AssetFolder>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n asset_folder?: AssetFolderInput;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/asset_folders';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Asset folder created successfully\n */\n 201: {\n asset_folder?: AssetFolder;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset folder (can be integer or string)\n */\n asset_folder_id: number | string;\n };\n query?: {\n /**\n * If true, recursively delete all child folders and orphan their assets. If false (default), assets are orphaned and child folders are moved to the parent level.\n */\n recursive?: boolean;\n };\n url: '/v1/spaces/{space_id}/asset_folders/{asset_folder_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset folder not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Asset folder deleted successfully\n */\n 204: void;\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset folder (can be integer or string)\n */\n asset_folder_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/asset_folders/{asset_folder_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset folder not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Asset folder details\n */\n 200: {\n asset_folder?: AssetFolder;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n asset_folder?: AssetFolderInput;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset folder (can be integer or string)\n */\n asset_folder_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/asset_folders/{asset_folder_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset folder not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Asset folder updated successfully\n */\n 204: void;\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/asset_folders/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type AssetFolder = {\n /**\n * The numeric ID of the asset folder\n */\n readonly id: number;\n /**\n * The name of the asset folder\n */\n name: string;\n /**\n * ID of the parent folder for hierarchical structure\n */\n parent_id?: number;\n /**\n * The UUID of the asset folder\n */\n readonly uuid: string;\n /**\n * The UUID of the parent folder\n */\n readonly parent_uuid?: string;\n};\n\nexport type AssetFolderInput = {\n /**\n * The name of the asset folder\n */\n name: string;\n /**\n * ID of the parent folder for hierarchical structure. Use 0 or null to move to root level.\n */\n parent_id?: number;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * The ID of the asset folder (can be integer or string)\n */\nexport type AssetFolderId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Search by folder's name\n */\n search?: string;\n /**\n * Filter by parent id. Use 0 or \"0\" for root level folders.\n */\n with_parent?: number | string;\n /**\n * Comma-separated list of UUIDs to filter by\n */\n by_uuids?: string;\n /**\n * Comma-separated list of IDs to filter by\n */\n by_ids?: string;\n };\n url: '/v1/spaces/{space_id}/asset_folders';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of asset folders\n */\n 200: {\n asset_folders?: Array<AssetFolder>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n asset_folder?: AssetFolderInput;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/asset_folders';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Asset folder created successfully\n */\n 201: {\n asset_folder?: AssetFolder;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset folder (can be integer or string)\n */\n asset_folder_id: number | string;\n };\n query?: {\n /**\n * If true, recursively delete all child folders and orphan their assets. If false (default), assets are orphaned and child folders are moved to the parent level.\n */\n recursive?: boolean;\n };\n url: '/v1/spaces/{space_id}/asset_folders/{asset_folder_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset folder not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Asset folder deleted successfully\n */\n 204: void;\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset folder (can be integer or string)\n */\n asset_folder_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/asset_folders/{asset_folder_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset folder not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Asset folder details\n */\n 200: {\n asset_folder?: AssetFolder;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n asset_folder?: AssetFolderInput;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset folder (can be integer or string)\n */\n asset_folder_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/asset_folders/{asset_folder_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset folder not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Asset folder updated successfully\n */\n 204: void;\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare namespace types_gen_d_exports {
|
|
2
|
-
export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses };
|
|
2
|
+
export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses };
|
|
3
3
|
}
|
|
4
4
|
/**
|
|
5
5
|
* A single asset object
|
|
@@ -138,6 +138,10 @@ type SpaceId = number | string;
|
|
|
138
138
|
* Page number for pagination. Default is 1.
|
|
139
139
|
*/
|
|
140
140
|
type Page = number;
|
|
141
|
+
/**
|
|
142
|
+
* Number of items per page. Default is 25.
|
|
143
|
+
*/
|
|
144
|
+
type PerPage = number;
|
|
141
145
|
/**
|
|
142
146
|
* The ID of the asset (can be integer or string)
|
|
143
147
|
*/
|
|
@@ -156,7 +160,7 @@ type ListData = {
|
|
|
156
160
|
*/
|
|
157
161
|
page?: number;
|
|
158
162
|
/**
|
|
159
|
-
* Number of
|
|
163
|
+
* Number of items per page. Default is 25.
|
|
160
164
|
*/
|
|
161
165
|
per_page?: number;
|
|
162
166
|
/**
|
|
@@ -607,5 +611,5 @@ type ClientOptions = {
|
|
|
607
611
|
baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});
|
|
608
612
|
};
|
|
609
613
|
//#endregion
|
|
610
|
-
export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses, types_gen_d_exports };
|
|
614
|
+
export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses, types_gen_d_exports };
|
|
611
615
|
//# sourceMappingURL=types.gen.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare namespace types_gen_d_exports {
|
|
2
|
-
export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses };
|
|
2
|
+
export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses };
|
|
3
3
|
}
|
|
4
4
|
/**
|
|
5
5
|
* A single asset object
|
|
@@ -138,6 +138,10 @@ type SpaceId = number | string;
|
|
|
138
138
|
* Page number for pagination. Default is 1.
|
|
139
139
|
*/
|
|
140
140
|
type Page = number;
|
|
141
|
+
/**
|
|
142
|
+
* Number of items per page. Default is 25.
|
|
143
|
+
*/
|
|
144
|
+
type PerPage = number;
|
|
141
145
|
/**
|
|
142
146
|
* The ID of the asset (can be integer or string)
|
|
143
147
|
*/
|
|
@@ -156,7 +160,7 @@ type ListData = {
|
|
|
156
160
|
*/
|
|
157
161
|
page?: number;
|
|
158
162
|
/**
|
|
159
|
-
* Number of
|
|
163
|
+
* Number of items per page. Default is 25.
|
|
160
164
|
*/
|
|
161
165
|
per_page?: number;
|
|
162
166
|
/**
|
|
@@ -607,5 +611,5 @@ type ClientOptions = {
|
|
|
607
611
|
baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});
|
|
608
612
|
};
|
|
609
613
|
//#endregion
|
|
610
|
-
export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses, types_gen_d_exports };
|
|
614
|
+
export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses, types_gen_d_exports };
|
|
611
615
|
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/assets/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\n/**\n * A single asset object\n */\nexport type Asset = {\n /**\n * The numeric ID\n */\n id?: number;\n /**\n * Full path of the asset, including the file name\n */\n filename?: string;\n /**\n * Space ID in which the asset is connected\n */\n space_id?: number;\n /**\n * Creation date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n created_at?: string;\n /**\n * Latest update date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n updated_at?: string;\n /**\n * Represents a File object when uploading an asset. Returns null when retrieving asset details.\n */\n file?: {\n [key: string]: unknown;\n };\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Deleted date (Format YYYY-mm-dd HH:MM)\n */\n deleted_at?: string;\n /**\n * The file name of the asset\n */\n short_filename?: string;\n /**\n * The MIME type of the asset\n */\n content_type?: string;\n /**\n * The content length in bytes\n */\n content_length?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * List of objects containing the details of tags used for the asset\n */\n internal_tags_list?: Array<{\n /**\n * Id of the tag\n */\n id?: number;\n /**\n * Name of the tag\n */\n name?: string;\n }>;\n /**\n * Defines if the asset is locked for any changes\n */\n locked?: boolean;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * Signed response object returned from the upload request\n */\nexport type SignedResponseObject = {\n /**\n * The ID of the signed response object\n */\n id?: string;\n /**\n * The URL to post the file to\n */\n post_url?: string;\n /**\n * Form fields to include in the upload request\n */\n fields?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\n/**\n * The ID of the asset (can be integer or string)\n */\nexport type AssetId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of assets per page. Default is 25, maximum is 100.\n */\n per_page?: number;\n /**\n * Provide the numeric id of a folder to filter the assets by a specific folder. Use value -1 to retrieve deleted assets.\n */\n in_folder?: number;\n /**\n * Sort assets by specific attribute and order\n */\n sort_by?: 'created_at:asc' | 'created_at:desc' | 'updated_at:asc' | 'updated_at:desc' | 'short_filename:asc' | 'short_filename:desc';\n /**\n * If \"1\" it only displays private assets\n */\n is_private?: boolean;\n /**\n * Provide a search term to filter a specific file by the filename\n */\n search?: string;\n /**\n * Filter by the alt text of an asset\n */\n by_alt?: string;\n /**\n * Filter by the copyright of an asset\n */\n by_copyright?: string;\n /**\n * Filter by the title of an asset\n */\n by_title?: string;\n /**\n * Filter by specific tag(s). Multiple tags can be provided as a comma-separated string (treated like an OR operator).\n */\n with_tags?: string;\n };\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of assets\n */\n 200: {\n assets?: Array<Asset>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type UploadData = {\n body: {\n /**\n * The filename of the asset to upload\n */\n filename: string;\n /**\n * The size of the asset (e.g., \"400X500\")\n */\n size: string;\n /**\n * Optional asset folder ID to place the asset in\n */\n asset_folder_id?: number;\n /**\n * Must be set to 1 to validate the upload\n */\n validate_upload: 1;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type UploadErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type UploadResponses = {\n /**\n * Signed response object for upload\n */\n 200: SignedResponseObject;\n};\n\nexport type UploadResponse = UploadResponses[keyof UploadResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Asset deleted\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Asset details\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n /**\n * A single asset object with updatable properties\n */\n asset?: {\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Asset updated\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type FinalizeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID from the signed response object\n */\n signed_response_object_id: string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{signed_response_object_id}/finish_upload';\n};\n\nexport type FinalizeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type FinalizeResponses = {\n /**\n * Upload finalized successfully\n */\n 200: {\n /**\n * Success message indicating the upload was finalized\n */\n message?: string;\n };\n};\n\nexport type FinalizeResponse = FinalizeResponses[keyof FinalizeResponses];\n\nexport type DeleteManyData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_destroy';\n};\n\nexport type DeleteManyErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type DeleteManyResponses = {\n /**\n * Assets deleted successfully\n */\n 200: {\n /**\n * Success message indicating which assets were deleted\n */\n message?: string;\n };\n};\n\nexport type DeleteManyResponse = DeleteManyResponses[keyof DeleteManyResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id: number;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Assets moved successfully\n */\n 200: {\n /**\n * Success message indicating which assets were moved\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type BulkRestoreData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_restore';\n};\n\nexport type BulkRestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkRestoreResponses = {\n /**\n * Assets restored successfully\n */\n 200: {\n /**\n * Success message indicating which assets were restored\n */\n message?: string;\n };\n};\n\nexport type BulkRestoreResponse = BulkRestoreResponses[keyof BulkRestoreResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/assets/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\n/**\n * A single asset object\n */\nexport type Asset = {\n /**\n * The numeric ID\n */\n id?: number;\n /**\n * Full path of the asset, including the file name\n */\n filename?: string;\n /**\n * Space ID in which the asset is connected\n */\n space_id?: number;\n /**\n * Creation date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n created_at?: string;\n /**\n * Latest update date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n updated_at?: string;\n /**\n * Represents a File object when uploading an asset. Returns null when retrieving asset details.\n */\n file?: {\n [key: string]: unknown;\n };\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Deleted date (Format YYYY-mm-dd HH:MM)\n */\n deleted_at?: string;\n /**\n * The file name of the asset\n */\n short_filename?: string;\n /**\n * The MIME type of the asset\n */\n content_type?: string;\n /**\n * The content length in bytes\n */\n content_length?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * List of objects containing the details of tags used for the asset\n */\n internal_tags_list?: Array<{\n /**\n * Id of the tag\n */\n id?: number;\n /**\n * Name of the tag\n */\n name?: string;\n }>;\n /**\n * Defines if the asset is locked for any changes\n */\n locked?: boolean;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * Signed response object returned from the upload request\n */\nexport type SignedResponseObject = {\n /**\n * The ID of the signed response object\n */\n id?: string;\n /**\n * The URL to post the file to\n */\n post_url?: string;\n /**\n * Form fields to include in the upload request\n */\n fields?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\n/**\n * Number of items per page. Default is 25.\n */\nexport type PerPage = number;\n\n/**\n * The ID of the asset (can be integer or string)\n */\nexport type AssetId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of items per page. Default is 25.\n */\n per_page?: number;\n /**\n * Provide the numeric id of a folder to filter the assets by a specific folder. Use value -1 to retrieve deleted assets.\n */\n in_folder?: number;\n /**\n * Sort assets by specific attribute and order\n */\n sort_by?: 'created_at:asc' | 'created_at:desc' | 'updated_at:asc' | 'updated_at:desc' | 'short_filename:asc' | 'short_filename:desc';\n /**\n * If \"1\" it only displays private assets\n */\n is_private?: boolean;\n /**\n * Provide a search term to filter a specific file by the filename\n */\n search?: string;\n /**\n * Filter by the alt text of an asset\n */\n by_alt?: string;\n /**\n * Filter by the copyright of an asset\n */\n by_copyright?: string;\n /**\n * Filter by the title of an asset\n */\n by_title?: string;\n /**\n * Filter by specific tag(s). Multiple tags can be provided as a comma-separated string (treated like an OR operator).\n */\n with_tags?: string;\n };\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of assets\n */\n 200: {\n assets?: Array<Asset>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type UploadData = {\n body: {\n /**\n * The filename of the asset to upload\n */\n filename: string;\n /**\n * The size of the asset (e.g., \"400X500\")\n */\n size: string;\n /**\n * Optional asset folder ID to place the asset in\n */\n asset_folder_id?: number;\n /**\n * Must be set to 1 to validate the upload\n */\n validate_upload: 1;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type UploadErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type UploadResponses = {\n /**\n * Signed response object for upload\n */\n 200: SignedResponseObject;\n};\n\nexport type UploadResponse = UploadResponses[keyof UploadResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Asset deleted\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Asset details\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n /**\n * A single asset object with updatable properties\n */\n asset?: {\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Asset updated\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type FinalizeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID from the signed response object\n */\n signed_response_object_id: string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{signed_response_object_id}/finish_upload';\n};\n\nexport type FinalizeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type FinalizeResponses = {\n /**\n * Upload finalized successfully\n */\n 200: {\n /**\n * Success message indicating the upload was finalized\n */\n message?: string;\n };\n};\n\nexport type FinalizeResponse = FinalizeResponses[keyof FinalizeResponses];\n\nexport type DeleteManyData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_destroy';\n};\n\nexport type DeleteManyErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type DeleteManyResponses = {\n /**\n * Assets deleted successfully\n */\n 200: {\n /**\n * Success message indicating which assets were deleted\n */\n message?: string;\n };\n};\n\nexport type DeleteManyResponse = DeleteManyResponses[keyof DeleteManyResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id: number;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Assets moved successfully\n */\n 200: {\n /**\n * Success message indicating which assets were moved\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type BulkRestoreData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_restore';\n};\n\nexport type BulkRestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkRestoreResponses = {\n /**\n * Assets restored successfully\n */\n 200: {\n /**\n * Success message indicating which assets were restored\n */\n message?: string;\n };\n};\n\nexport type BulkRestoreResponse = BulkRestoreResponses[keyof BulkRestoreResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/assets/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\n/**\n * A single asset object\n */\nexport type Asset = {\n /**\n * The numeric ID\n */\n id?: number;\n /**\n * Full path of the asset, including the file name\n */\n filename?: string;\n /**\n * Space ID in which the asset is connected\n */\n space_id?: number;\n /**\n * Creation date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n created_at?: string;\n /**\n * Latest update date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n updated_at?: string;\n /**\n * Represents a File object when uploading an asset. Returns null when retrieving asset details.\n */\n file?: {\n [key: string]: unknown;\n };\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Deleted date (Format YYYY-mm-dd HH:MM)\n */\n deleted_at?: string;\n /**\n * The file name of the asset\n */\n short_filename?: string;\n /**\n * The MIME type of the asset\n */\n content_type?: string;\n /**\n * The content length in bytes\n */\n content_length?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * List of objects containing the details of tags used for the asset\n */\n internal_tags_list?: Array<{\n /**\n * Id of the tag\n */\n id?: number;\n /**\n * Name of the tag\n */\n name?: string;\n }>;\n /**\n * Defines if the asset is locked for any changes\n */\n locked?: boolean;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * Signed response object returned from the upload request\n */\nexport type SignedResponseObject = {\n /**\n * The ID of the signed response object\n */\n id?: string;\n /**\n * The URL to post the file to\n */\n post_url?: string;\n /**\n * Form fields to include in the upload request\n */\n fields?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\n/**\n * The ID of the asset (can be integer or string)\n */\nexport type AssetId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of assets per page. Default is 25, maximum is 100.\n */\n per_page?: number;\n /**\n * Provide the numeric id of a folder to filter the assets by a specific folder. Use value -1 to retrieve deleted assets.\n */\n in_folder?: number;\n /**\n * Sort assets by specific attribute and order\n */\n sort_by?: 'created_at:asc' | 'created_at:desc' | 'updated_at:asc' | 'updated_at:desc' | 'short_filename:asc' | 'short_filename:desc';\n /**\n * If \"1\" it only displays private assets\n */\n is_private?: boolean;\n /**\n * Provide a search term to filter a specific file by the filename\n */\n search?: string;\n /**\n * Filter by the alt text of an asset\n */\n by_alt?: string;\n /**\n * Filter by the copyright of an asset\n */\n by_copyright?: string;\n /**\n * Filter by the title of an asset\n */\n by_title?: string;\n /**\n * Filter by specific tag(s). Multiple tags can be provided as a comma-separated string (treated like an OR operator).\n */\n with_tags?: string;\n };\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of assets\n */\n 200: {\n assets?: Array<Asset>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type UploadData = {\n body: {\n /**\n * The filename of the asset to upload\n */\n filename: string;\n /**\n * The size of the asset (e.g., \"400X500\")\n */\n size: string;\n /**\n * Optional asset folder ID to place the asset in\n */\n asset_folder_id?: number;\n /**\n * Must be set to 1 to validate the upload\n */\n validate_upload: 1;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type UploadErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type UploadResponses = {\n /**\n * Signed response object for upload\n */\n 200: SignedResponseObject;\n};\n\nexport type UploadResponse = UploadResponses[keyof UploadResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Asset deleted\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Asset details\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n /**\n * A single asset object with updatable properties\n */\n asset?: {\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Asset updated\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type FinalizeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID from the signed response object\n */\n signed_response_object_id: string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{signed_response_object_id}/finish_upload';\n};\n\nexport type FinalizeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type FinalizeResponses = {\n /**\n * Upload finalized successfully\n */\n 200: {\n /**\n * Success message indicating the upload was finalized\n */\n message?: string;\n };\n};\n\nexport type FinalizeResponse = FinalizeResponses[keyof FinalizeResponses];\n\nexport type DeleteManyData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_destroy';\n};\n\nexport type DeleteManyErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type DeleteManyResponses = {\n /**\n * Assets deleted successfully\n */\n 200: {\n /**\n * Success message indicating which assets were deleted\n */\n message?: string;\n };\n};\n\nexport type DeleteManyResponse = DeleteManyResponses[keyof DeleteManyResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id: number;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Assets moved successfully\n */\n 200: {\n /**\n * Success message indicating which assets were moved\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type BulkRestoreData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_restore';\n};\n\nexport type BulkRestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkRestoreResponses = {\n /**\n * Assets restored successfully\n */\n 200: {\n /**\n * Success message indicating which assets were restored\n */\n message?: string;\n };\n};\n\nexport type BulkRestoreResponse = BulkRestoreResponses[keyof BulkRestoreResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/assets/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\n/**\n * A single asset object\n */\nexport type Asset = {\n /**\n * The numeric ID\n */\n id?: number;\n /**\n * Full path of the asset, including the file name\n */\n filename?: string;\n /**\n * Space ID in which the asset is connected\n */\n space_id?: number;\n /**\n * Creation date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n created_at?: string;\n /**\n * Latest update date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n updated_at?: string;\n /**\n * Represents a File object when uploading an asset. Returns null when retrieving asset details.\n */\n file?: {\n [key: string]: unknown;\n };\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Deleted date (Format YYYY-mm-dd HH:MM)\n */\n deleted_at?: string;\n /**\n * The file name of the asset\n */\n short_filename?: string;\n /**\n * The MIME type of the asset\n */\n content_type?: string;\n /**\n * The content length in bytes\n */\n content_length?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * List of objects containing the details of tags used for the asset\n */\n internal_tags_list?: Array<{\n /**\n * Id of the tag\n */\n id?: number;\n /**\n * Name of the tag\n */\n name?: string;\n }>;\n /**\n * Defines if the asset is locked for any changes\n */\n locked?: boolean;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * Signed response object returned from the upload request\n */\nexport type SignedResponseObject = {\n /**\n * The ID of the signed response object\n */\n id?: string;\n /**\n * The URL to post the file to\n */\n post_url?: string;\n /**\n * Form fields to include in the upload request\n */\n fields?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\n/**\n * Number of items per page. Default is 25.\n */\nexport type PerPage = number;\n\n/**\n * The ID of the asset (can be integer or string)\n */\nexport type AssetId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of items per page. Default is 25.\n */\n per_page?: number;\n /**\n * Provide the numeric id of a folder to filter the assets by a specific folder. Use value -1 to retrieve deleted assets.\n */\n in_folder?: number;\n /**\n * Sort assets by specific attribute and order\n */\n sort_by?: 'created_at:asc' | 'created_at:desc' | 'updated_at:asc' | 'updated_at:desc' | 'short_filename:asc' | 'short_filename:desc';\n /**\n * If \"1\" it only displays private assets\n */\n is_private?: boolean;\n /**\n * Provide a search term to filter a specific file by the filename\n */\n search?: string;\n /**\n * Filter by the alt text of an asset\n */\n by_alt?: string;\n /**\n * Filter by the copyright of an asset\n */\n by_copyright?: string;\n /**\n * Filter by the title of an asset\n */\n by_title?: string;\n /**\n * Filter by specific tag(s). Multiple tags can be provided as a comma-separated string (treated like an OR operator).\n */\n with_tags?: string;\n };\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of assets\n */\n 200: {\n assets?: Array<Asset>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type UploadData = {\n body: {\n /**\n * The filename of the asset to upload\n */\n filename: string;\n /**\n * The size of the asset (e.g., \"400X500\")\n */\n size: string;\n /**\n * Optional asset folder ID to place the asset in\n */\n asset_folder_id?: number;\n /**\n * Must be set to 1 to validate the upload\n */\n validate_upload: 1;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type UploadErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type UploadResponses = {\n /**\n * Signed response object for upload\n */\n 200: SignedResponseObject;\n};\n\nexport type UploadResponse = UploadResponses[keyof UploadResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Asset deleted\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Asset details\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n /**\n * A single asset object with updatable properties\n */\n asset?: {\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Asset updated\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type FinalizeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID from the signed response object\n */\n signed_response_object_id: string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{signed_response_object_id}/finish_upload';\n};\n\nexport type FinalizeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type FinalizeResponses = {\n /**\n * Upload finalized successfully\n */\n 200: {\n /**\n * Success message indicating the upload was finalized\n */\n message?: string;\n };\n};\n\nexport type FinalizeResponse = FinalizeResponses[keyof FinalizeResponses];\n\nexport type DeleteManyData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_destroy';\n};\n\nexport type DeleteManyErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type DeleteManyResponses = {\n /**\n * Assets deleted successfully\n */\n 200: {\n /**\n * Success message indicating which assets were deleted\n */\n message?: string;\n };\n};\n\nexport type DeleteManyResponse = DeleteManyResponses[keyof DeleteManyResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id: number;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Assets moved successfully\n */\n 200: {\n /**\n * Success message indicating which assets were moved\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type BulkRestoreData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_restore';\n};\n\nexport type BulkRestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkRestoreResponses = {\n /**\n * Assets restored successfully\n */\n 200: {\n /**\n * Success message indicating which assets were restored\n */\n message?: string;\n };\n};\n\nexport type BulkRestoreResponse = BulkRestoreResponses[keyof BulkRestoreResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare namespace types_gen_d_exports {
|
|
2
|
-
export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses };
|
|
2
|
+
export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses };
|
|
3
3
|
}
|
|
4
4
|
type Component = Component2;
|
|
5
5
|
/**
|
|
@@ -353,6 +353,10 @@ type SpaceId = number | string;
|
|
|
353
353
|
* Page number for pagination. Default is 1.
|
|
354
354
|
*/
|
|
355
355
|
type Page = number;
|
|
356
|
+
/**
|
|
357
|
+
* Number of items per page. Default is 25.
|
|
358
|
+
*/
|
|
359
|
+
type PerPage = number;
|
|
356
360
|
/**
|
|
357
361
|
* The ID of the component (can be integer or string)
|
|
358
362
|
*/
|
|
@@ -371,7 +375,7 @@ type ListData = {
|
|
|
371
375
|
*/
|
|
372
376
|
page?: number;
|
|
373
377
|
/**
|
|
374
|
-
* Number of
|
|
378
|
+
* Number of items per page. Default is 25.
|
|
375
379
|
*/
|
|
376
380
|
per_page?: number;
|
|
377
381
|
/**
|
|
@@ -737,7 +741,7 @@ type VersionsData = {
|
|
|
737
741
|
*/
|
|
738
742
|
page?: number;
|
|
739
743
|
/**
|
|
740
|
-
* Number of
|
|
744
|
+
* Number of items per page. Default is 25.
|
|
741
745
|
*/
|
|
742
746
|
per_page?: number;
|
|
743
747
|
/**
|
|
@@ -877,5 +881,5 @@ type ClientOptions = {
|
|
|
877
881
|
baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});
|
|
878
882
|
};
|
|
879
883
|
//#endregion
|
|
880
|
-
export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses, types_gen_d_exports };
|
|
884
|
+
export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses, types_gen_d_exports };
|
|
881
885
|
//# sourceMappingURL=types.gen.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare namespace types_gen_d_exports {
|
|
2
|
-
export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses };
|
|
2
|
+
export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses };
|
|
3
3
|
}
|
|
4
4
|
type Component = Component2;
|
|
5
5
|
/**
|
|
@@ -353,6 +353,10 @@ type SpaceId = number | string;
|
|
|
353
353
|
* Page number for pagination. Default is 1.
|
|
354
354
|
*/
|
|
355
355
|
type Page = number;
|
|
356
|
+
/**
|
|
357
|
+
* Number of items per page. Default is 25.
|
|
358
|
+
*/
|
|
359
|
+
type PerPage = number;
|
|
356
360
|
/**
|
|
357
361
|
* The ID of the component (can be integer or string)
|
|
358
362
|
*/
|
|
@@ -371,7 +375,7 @@ type ListData = {
|
|
|
371
375
|
*/
|
|
372
376
|
page?: number;
|
|
373
377
|
/**
|
|
374
|
-
* Number of
|
|
378
|
+
* Number of items per page. Default is 25.
|
|
375
379
|
*/
|
|
376
380
|
per_page?: number;
|
|
377
381
|
/**
|
|
@@ -737,7 +741,7 @@ type VersionsData = {
|
|
|
737
741
|
*/
|
|
738
742
|
page?: number;
|
|
739
743
|
/**
|
|
740
|
-
* Number of
|
|
744
|
+
* Number of items per page. Default is 25.
|
|
741
745
|
*/
|
|
742
746
|
per_page?: number;
|
|
743
747
|
/**
|
|
@@ -877,5 +881,5 @@ type ClientOptions = {
|
|
|
877
881
|
baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});
|
|
878
882
|
};
|
|
879
883
|
//#endregion
|
|
880
|
-
export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses, types_gen_d_exports };
|
|
884
|
+
export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses, types_gen_d_exports };
|
|
881
885
|
//# sourceMappingURL=types.gen.d.ts.map
|