@sokol111/ecommerce-image-service-api 1.0.17 → 1.0.18
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/api.d.ts +2 -504
- package/dist/api.js +1 -37
- package/dist/base.d.ts +1 -25
- package/dist/base.js +1 -20
- package/dist/common.d.ts +1 -38
- package/dist/common.js +1 -38
- package/dist/configuration.d.ts +25 -18
- package/dist/configuration.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Image Service API
|
|
3
3
|
* API for managing images
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.18
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,52 +13,18 @@ import type { Configuration } from './configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import type { RequestArgs } from './base';
|
|
15
15
|
import { BaseAPI } from './base';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ConfirmRequest
|
|
20
|
-
*/
|
|
21
16
|
export interface ConfirmRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {OwnerType}
|
|
25
|
-
* @memberof ConfirmRequest
|
|
26
|
-
*/
|
|
27
17
|
'ownerType': OwnerType;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ConfirmRequest
|
|
32
|
-
*/
|
|
33
18
|
'ownerId': string;
|
|
34
19
|
/**
|
|
35
20
|
* S3 key that was used for PUT
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof ConfirmRequest
|
|
38
21
|
*/
|
|
39
22
|
'key': string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof ConfirmRequest
|
|
44
|
-
*/
|
|
45
23
|
'alt': string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof ConfirmRequest
|
|
50
|
-
*/
|
|
51
24
|
'mime': ConfirmRequestMimeEnum;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {ImageRole}
|
|
55
|
-
* @memberof ConfirmRequest
|
|
56
|
-
*/
|
|
57
25
|
'role': ImageRole;
|
|
58
26
|
/**
|
|
59
27
|
* e.g., SHA256 hex for additional integrity check
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof ConfirmRequest
|
|
62
28
|
*/
|
|
63
29
|
'checksum'?: string | null;
|
|
64
30
|
}
|
|
@@ -69,157 +35,46 @@ export declare const ConfirmRequestMimeEnum: {
|
|
|
69
35
|
readonly ImageAvif: "image/avif";
|
|
70
36
|
};
|
|
71
37
|
export type ConfirmRequestMimeEnum = typeof ConfirmRequestMimeEnum[keyof typeof ConfirmRequestMimeEnum];
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @export
|
|
75
|
-
* @interface GetDeliveryUrl200Response
|
|
76
|
-
*/
|
|
77
38
|
export interface GetDeliveryUrl200Response {
|
|
78
|
-
|
|
79
|
-
*
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof GetDeliveryUrl200Response
|
|
82
|
-
*/
|
|
83
|
-
'url'?: string;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {string}
|
|
87
|
-
* @memberof GetDeliveryUrl200Response
|
|
88
|
-
*/
|
|
39
|
+
'url': string;
|
|
89
40
|
'expiresAt'?: string | null;
|
|
90
41
|
}
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @export
|
|
94
|
-
* @interface Image
|
|
95
|
-
*/
|
|
96
42
|
export interface Image {
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {string}
|
|
100
|
-
* @memberof Image
|
|
101
|
-
*/
|
|
102
43
|
'id': string;
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* @type {OwnerType}
|
|
106
|
-
* @memberof Image
|
|
107
|
-
*/
|
|
108
44
|
'ownerType': OwnerType;
|
|
109
|
-
/**
|
|
110
|
-
*
|
|
111
|
-
* @type {string}
|
|
112
|
-
* @memberof Image
|
|
113
|
-
*/
|
|
114
45
|
'ownerId': string;
|
|
115
|
-
/**
|
|
116
|
-
*
|
|
117
|
-
* @type {ImageRole}
|
|
118
|
-
* @memberof Image
|
|
119
|
-
*/
|
|
120
46
|
'role': ImageRole;
|
|
121
47
|
/**
|
|
122
48
|
* S3 key of the original image
|
|
123
|
-
* @type {string}
|
|
124
|
-
* @memberof Image
|
|
125
49
|
*/
|
|
126
50
|
'key': string;
|
|
127
51
|
/**
|
|
128
52
|
* Optional — direct URL if public or via proxy
|
|
129
|
-
* @type {string}
|
|
130
|
-
* @memberof Image
|
|
131
53
|
*/
|
|
132
54
|
'url'?: string | null;
|
|
133
|
-
/**
|
|
134
|
-
*
|
|
135
|
-
* @type {string}
|
|
136
|
-
* @memberof Image
|
|
137
|
-
*/
|
|
138
55
|
'alt': string;
|
|
139
|
-
/**
|
|
140
|
-
*
|
|
141
|
-
* @type {string}
|
|
142
|
-
* @memberof Image
|
|
143
|
-
*/
|
|
144
56
|
'mime': string;
|
|
145
|
-
/**
|
|
146
|
-
*
|
|
147
|
-
* @type {number}
|
|
148
|
-
* @memberof Image
|
|
149
|
-
*/
|
|
150
57
|
'size': number;
|
|
151
|
-
/**
|
|
152
|
-
*
|
|
153
|
-
* @type {string}
|
|
154
|
-
* @memberof Image
|
|
155
|
-
*/
|
|
156
58
|
'hash'?: string | null;
|
|
157
|
-
/**
|
|
158
|
-
*
|
|
159
|
-
* @type {ImageStatus}
|
|
160
|
-
* @memberof Image
|
|
161
|
-
*/
|
|
162
59
|
'status': ImageStatus;
|
|
163
|
-
/**
|
|
164
|
-
*
|
|
165
|
-
* @type {Array<Variant>}
|
|
166
|
-
* @memberof Image
|
|
167
|
-
*/
|
|
168
60
|
'variants'?: Array<Variant>;
|
|
169
|
-
/**
|
|
170
|
-
*
|
|
171
|
-
* @type {string}
|
|
172
|
-
* @memberof Image
|
|
173
|
-
*/
|
|
174
61
|
'createdAt': string;
|
|
175
|
-
/**
|
|
176
|
-
*
|
|
177
|
-
* @type {string}
|
|
178
|
-
* @memberof Image
|
|
179
|
-
*/
|
|
180
62
|
'modifiedAt': string;
|
|
181
63
|
}
|
|
182
|
-
/**
|
|
183
|
-
*
|
|
184
|
-
* @export
|
|
185
|
-
* @interface ImagePatch
|
|
186
|
-
*/
|
|
187
64
|
export interface ImagePatch {
|
|
188
|
-
/**
|
|
189
|
-
*
|
|
190
|
-
* @type {string}
|
|
191
|
-
* @memberof ImagePatch
|
|
192
|
-
*/
|
|
193
65
|
'alt'?: string;
|
|
194
|
-
/**
|
|
195
|
-
*
|
|
196
|
-
* @type {ImageRole}
|
|
197
|
-
* @memberof ImagePatch
|
|
198
|
-
*/
|
|
199
66
|
'role'?: ImageRole;
|
|
200
67
|
/**
|
|
201
68
|
* Position in the product gallery
|
|
202
|
-
* @type {number}
|
|
203
|
-
* @memberof ImagePatch
|
|
204
69
|
*/
|
|
205
70
|
'order'?: number;
|
|
206
71
|
}
|
|
207
|
-
/**
|
|
208
|
-
*
|
|
209
|
-
* @export
|
|
210
|
-
* @enum {string}
|
|
211
|
-
*/
|
|
212
72
|
export declare const ImageRole: {
|
|
213
73
|
readonly Main: "main";
|
|
214
74
|
readonly Gallery: "gallery";
|
|
215
75
|
readonly Other: "other";
|
|
216
76
|
};
|
|
217
77
|
export type ImageRole = typeof ImageRole[keyof typeof ImageRole];
|
|
218
|
-
/**
|
|
219
|
-
*
|
|
220
|
-
* @export
|
|
221
|
-
* @enum {string}
|
|
222
|
-
*/
|
|
223
78
|
export declare const ImageStatus: {
|
|
224
79
|
readonly Pending: "pending";
|
|
225
80
|
readonly Uploaded: "uploaded";
|
|
@@ -229,89 +84,30 @@ export declare const ImageStatus: {
|
|
|
229
84
|
readonly Deleted: "deleted";
|
|
230
85
|
};
|
|
231
86
|
export type ImageStatus = typeof ImageStatus[keyof typeof ImageStatus];
|
|
232
|
-
/**
|
|
233
|
-
*
|
|
234
|
-
* @export
|
|
235
|
-
* @interface ListImages200Response
|
|
236
|
-
*/
|
|
237
87
|
export interface ListImages200Response {
|
|
238
|
-
/**
|
|
239
|
-
*
|
|
240
|
-
* @type {Array<Image>}
|
|
241
|
-
* @memberof ListImages200Response
|
|
242
|
-
*/
|
|
243
88
|
'items'?: Array<Image>;
|
|
244
|
-
/**
|
|
245
|
-
*
|
|
246
|
-
* @type {number}
|
|
247
|
-
* @memberof ListImages200Response
|
|
248
|
-
*/
|
|
249
89
|
'page'?: number;
|
|
250
|
-
/**
|
|
251
|
-
*
|
|
252
|
-
* @type {number}
|
|
253
|
-
* @memberof ListImages200Response
|
|
254
|
-
*/
|
|
255
90
|
'pageSize'?: number;
|
|
256
|
-
/**
|
|
257
|
-
*
|
|
258
|
-
* @type {number}
|
|
259
|
-
* @memberof ListImages200Response
|
|
260
|
-
*/
|
|
261
91
|
'total'?: number;
|
|
262
92
|
}
|
|
263
|
-
/**
|
|
264
|
-
*
|
|
265
|
-
* @export
|
|
266
|
-
* @enum {string}
|
|
267
|
-
*/
|
|
268
93
|
export declare const OwnerType: {
|
|
269
94
|
readonly ProductDraft: "productDraft";
|
|
270
95
|
readonly Product: "product";
|
|
271
96
|
readonly User: "user";
|
|
272
97
|
};
|
|
273
98
|
export type OwnerType = typeof OwnerType[keyof typeof OwnerType];
|
|
274
|
-
/**
|
|
275
|
-
*
|
|
276
|
-
* @export
|
|
277
|
-
* @interface PresignRequest
|
|
278
|
-
*/
|
|
279
99
|
export interface PresignRequest {
|
|
280
|
-
/**
|
|
281
|
-
*
|
|
282
|
-
* @type {OwnerType}
|
|
283
|
-
* @memberof PresignRequest
|
|
284
|
-
*/
|
|
285
100
|
'ownerType': OwnerType;
|
|
286
101
|
/**
|
|
287
102
|
* Draft ID or owner ID
|
|
288
|
-
* @type {string}
|
|
289
|
-
* @memberof PresignRequest
|
|
290
103
|
*/
|
|
291
104
|
'ownerId': string;
|
|
292
|
-
/**
|
|
293
|
-
*
|
|
294
|
-
* @type {string}
|
|
295
|
-
* @memberof PresignRequest
|
|
296
|
-
*/
|
|
297
105
|
'filename': string;
|
|
298
|
-
/**
|
|
299
|
-
*
|
|
300
|
-
* @type {string}
|
|
301
|
-
* @memberof PresignRequest
|
|
302
|
-
*/
|
|
303
106
|
'contentType': PresignRequestContentTypeEnum;
|
|
304
107
|
/**
|
|
305
108
|
* Size in bytes
|
|
306
|
-
* @type {number}
|
|
307
|
-
* @memberof PresignRequest
|
|
308
109
|
*/
|
|
309
110
|
'size': number;
|
|
310
|
-
/**
|
|
311
|
-
*
|
|
312
|
-
* @type {ImageRole}
|
|
313
|
-
* @memberof PresignRequest
|
|
314
|
-
*/
|
|
315
111
|
'role': ImageRole;
|
|
316
112
|
}
|
|
317
113
|
export declare const PresignRequestContentTypeEnum: {
|
|
@@ -321,216 +117,71 @@ export declare const PresignRequestContentTypeEnum: {
|
|
|
321
117
|
readonly ImageAvif: "image/avif";
|
|
322
118
|
};
|
|
323
119
|
export type PresignRequestContentTypeEnum = typeof PresignRequestContentTypeEnum[keyof typeof PresignRequestContentTypeEnum];
|
|
324
|
-
/**
|
|
325
|
-
*
|
|
326
|
-
* @export
|
|
327
|
-
* @interface PresignResponse
|
|
328
|
-
*/
|
|
329
120
|
export interface PresignResponse {
|
|
330
|
-
/**
|
|
331
|
-
*
|
|
332
|
-
* @type {string}
|
|
333
|
-
* @memberof PresignResponse
|
|
334
|
-
*/
|
|
335
121
|
'uploadUrl': string;
|
|
336
122
|
/**
|
|
337
123
|
* Final S3 key to PUT to
|
|
338
|
-
* @type {string}
|
|
339
|
-
* @memberof PresignResponse
|
|
340
124
|
*/
|
|
341
125
|
'key': string;
|
|
342
126
|
/**
|
|
343
127
|
* TTL in seconds
|
|
344
|
-
* @type {number}
|
|
345
|
-
* @memberof PresignResponse
|
|
346
128
|
*/
|
|
347
129
|
'expiresIn': number;
|
|
348
|
-
/**
|
|
349
|
-
*
|
|
350
|
-
* @type {{ [key: string]: string; }}
|
|
351
|
-
* @memberof PresignResponse
|
|
352
|
-
*/
|
|
353
130
|
'requiredHeaders': {
|
|
354
131
|
[key: string]: string;
|
|
355
132
|
};
|
|
356
133
|
}
|
|
357
134
|
/**
|
|
358
135
|
* RFC7807 Problem Details
|
|
359
|
-
* @export
|
|
360
|
-
* @interface Problem
|
|
361
136
|
*/
|
|
362
137
|
export interface Problem {
|
|
363
|
-
/**
|
|
364
|
-
*
|
|
365
|
-
* @type {string}
|
|
366
|
-
* @memberof Problem
|
|
367
|
-
*/
|
|
368
138
|
'type': string;
|
|
369
|
-
/**
|
|
370
|
-
*
|
|
371
|
-
* @type {string}
|
|
372
|
-
* @memberof Problem
|
|
373
|
-
*/
|
|
374
139
|
'title': string;
|
|
375
|
-
/**
|
|
376
|
-
*
|
|
377
|
-
* @type {number}
|
|
378
|
-
* @memberof Problem
|
|
379
|
-
*/
|
|
380
140
|
'status': number;
|
|
381
|
-
/**
|
|
382
|
-
*
|
|
383
|
-
* @type {string}
|
|
384
|
-
* @memberof Problem
|
|
385
|
-
*/
|
|
386
141
|
'detail'?: string;
|
|
387
|
-
/**
|
|
388
|
-
*
|
|
389
|
-
* @type {string}
|
|
390
|
-
* @memberof Problem
|
|
391
|
-
*/
|
|
392
142
|
'instance'?: string;
|
|
393
|
-
/**
|
|
394
|
-
*
|
|
395
|
-
* @type {string}
|
|
396
|
-
* @memberof Problem
|
|
397
|
-
*/
|
|
398
143
|
'traceId'?: string;
|
|
399
|
-
/**
|
|
400
|
-
*
|
|
401
|
-
* @type {Array<ProblemErrorsInner>}
|
|
402
|
-
* @memberof Problem
|
|
403
|
-
*/
|
|
404
144
|
'errors'?: Array<ProblemErrorsInner>;
|
|
405
145
|
}
|
|
406
|
-
/**
|
|
407
|
-
*
|
|
408
|
-
* @export
|
|
409
|
-
* @interface ProblemErrorsInner
|
|
410
|
-
*/
|
|
411
146
|
export interface ProblemErrorsInner {
|
|
412
|
-
/**
|
|
413
|
-
*
|
|
414
|
-
* @type {string}
|
|
415
|
-
* @memberof ProblemErrorsInner
|
|
416
|
-
*/
|
|
417
147
|
'field'?: string;
|
|
418
|
-
/**
|
|
419
|
-
*
|
|
420
|
-
* @type {string}
|
|
421
|
-
* @memberof ProblemErrorsInner
|
|
422
|
-
*/
|
|
423
148
|
'message'?: string;
|
|
424
149
|
}
|
|
425
|
-
/**
|
|
426
|
-
*
|
|
427
|
-
* @export
|
|
428
|
-
* @interface ProcessImageRequest
|
|
429
|
-
*/
|
|
430
150
|
export interface ProcessImageRequest {
|
|
431
|
-
/**
|
|
432
|
-
*
|
|
433
|
-
* @type {string}
|
|
434
|
-
* @memberof ProcessImageRequest
|
|
435
|
-
*/
|
|
436
151
|
'imageId'?: string;
|
|
437
152
|
/**
|
|
438
153
|
* Name of the preset (variant set), if used
|
|
439
|
-
* @type {string}
|
|
440
|
-
* @memberof ProcessImageRequest
|
|
441
154
|
*/
|
|
442
155
|
'preset'?: string;
|
|
443
156
|
}
|
|
444
|
-
/**
|
|
445
|
-
*
|
|
446
|
-
* @export
|
|
447
|
-
* @interface PromoteImages200Response
|
|
448
|
-
*/
|
|
449
157
|
export interface PromoteImages200Response {
|
|
450
|
-
/**
|
|
451
|
-
*
|
|
452
|
-
* @type {Array<Image>}
|
|
453
|
-
* @memberof PromoteImages200Response
|
|
454
|
-
*/
|
|
455
158
|
'promoted'?: Array<Image>;
|
|
456
159
|
}
|
|
457
|
-
/**
|
|
458
|
-
*
|
|
459
|
-
* @export
|
|
460
|
-
* @interface PromoteRequest
|
|
461
|
-
*/
|
|
462
160
|
export interface PromoteRequest {
|
|
463
|
-
/**
|
|
464
|
-
*
|
|
465
|
-
* @type {string}
|
|
466
|
-
* @memberof PromoteRequest
|
|
467
|
-
*/
|
|
468
161
|
'draftId': string;
|
|
469
|
-
/**
|
|
470
|
-
*
|
|
471
|
-
* @type {string}
|
|
472
|
-
* @memberof PromoteRequest
|
|
473
|
-
*/
|
|
474
162
|
'productId': string;
|
|
475
163
|
/**
|
|
476
164
|
* If true — copy to products/{productId}/... and remove old objects
|
|
477
|
-
* @type {boolean}
|
|
478
|
-
* @memberof PromoteRequest
|
|
479
165
|
*/
|
|
480
166
|
'move': boolean;
|
|
481
167
|
/**
|
|
482
168
|
* If omitted — promote all images of the draft
|
|
483
|
-
* @type {Array<string>}
|
|
484
|
-
* @memberof PromoteRequest
|
|
485
169
|
*/
|
|
486
170
|
'images'?: Array<string>;
|
|
487
171
|
}
|
|
488
|
-
/**
|
|
489
|
-
*
|
|
490
|
-
* @export
|
|
491
|
-
* @interface Variant
|
|
492
|
-
*/
|
|
493
172
|
export interface Variant {
|
|
494
|
-
/**
|
|
495
|
-
*
|
|
496
|
-
* @type {string}
|
|
497
|
-
* @memberof Variant
|
|
498
|
-
*/
|
|
499
173
|
'name'?: string;
|
|
500
174
|
/**
|
|
501
175
|
* S3 key of the variant
|
|
502
|
-
* @type {string}
|
|
503
|
-
* @memberof Variant
|
|
504
176
|
*/
|
|
505
177
|
'key'?: string;
|
|
506
|
-
/**
|
|
507
|
-
*
|
|
508
|
-
* @type {number}
|
|
509
|
-
* @memberof Variant
|
|
510
|
-
*/
|
|
511
178
|
'width'?: number;
|
|
512
|
-
/**
|
|
513
|
-
*
|
|
514
|
-
* @type {number}
|
|
515
|
-
* @memberof Variant
|
|
516
|
-
*/
|
|
517
179
|
'height'?: number;
|
|
518
|
-
/**
|
|
519
|
-
*
|
|
520
|
-
* @type {string}
|
|
521
|
-
* @memberof Variant
|
|
522
|
-
*/
|
|
523
180
|
'mime'?: string;
|
|
524
|
-
/**
|
|
525
|
-
*
|
|
526
|
-
* @type {number}
|
|
527
|
-
* @memberof Variant
|
|
528
|
-
*/
|
|
529
181
|
'size'?: number;
|
|
530
182
|
}
|
|
531
183
|
/**
|
|
532
184
|
* DefaultApi - axios parameter creator
|
|
533
|
-
* @export
|
|
534
185
|
*/
|
|
535
186
|
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
536
187
|
/**
|
|
@@ -622,7 +273,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
622
273
|
};
|
|
623
274
|
/**
|
|
624
275
|
* DefaultApi - functional programming interface
|
|
625
|
-
* @export
|
|
626
276
|
*/
|
|
627
277
|
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
628
278
|
/**
|
|
@@ -714,7 +364,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
714
364
|
};
|
|
715
365
|
/**
|
|
716
366
|
* DefaultApi - factory interface
|
|
717
|
-
* @export
|
|
718
367
|
*/
|
|
719
368
|
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
720
369
|
/**
|
|
@@ -792,210 +441,74 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
792
441
|
};
|
|
793
442
|
/**
|
|
794
443
|
* Request parameters for confirmUpload operation in DefaultApi.
|
|
795
|
-
* @export
|
|
796
|
-
* @interface DefaultApiConfirmUploadRequest
|
|
797
444
|
*/
|
|
798
445
|
export interface DefaultApiConfirmUploadRequest {
|
|
799
|
-
/**
|
|
800
|
-
*
|
|
801
|
-
* @type {ConfirmRequest}
|
|
802
|
-
* @memberof DefaultApiConfirmUpload
|
|
803
|
-
*/
|
|
804
446
|
readonly confirmRequest: ConfirmRequest;
|
|
805
447
|
}
|
|
806
448
|
/**
|
|
807
449
|
* Request parameters for createPresign operation in DefaultApi.
|
|
808
|
-
* @export
|
|
809
|
-
* @interface DefaultApiCreatePresignRequest
|
|
810
450
|
*/
|
|
811
451
|
export interface DefaultApiCreatePresignRequest {
|
|
812
|
-
/**
|
|
813
|
-
*
|
|
814
|
-
* @type {PresignRequest}
|
|
815
|
-
* @memberof DefaultApiCreatePresign
|
|
816
|
-
*/
|
|
817
452
|
readonly presignRequest: PresignRequest;
|
|
818
453
|
}
|
|
819
454
|
/**
|
|
820
455
|
* Request parameters for deleteImage operation in DefaultApi.
|
|
821
|
-
* @export
|
|
822
|
-
* @interface DefaultApiDeleteImageRequest
|
|
823
456
|
*/
|
|
824
457
|
export interface DefaultApiDeleteImageRequest {
|
|
825
|
-
/**
|
|
826
|
-
*
|
|
827
|
-
* @type {string}
|
|
828
|
-
* @memberof DefaultApiDeleteImage
|
|
829
|
-
*/
|
|
830
458
|
readonly id: string;
|
|
831
|
-
/**
|
|
832
|
-
*
|
|
833
|
-
* @type {boolean}
|
|
834
|
-
* @memberof DefaultApiDeleteImage
|
|
835
|
-
*/
|
|
836
459
|
readonly hard?: boolean;
|
|
837
460
|
}
|
|
838
461
|
/**
|
|
839
462
|
* Request parameters for getDeliveryUrl operation in DefaultApi.
|
|
840
|
-
* @export
|
|
841
|
-
* @interface DefaultApiGetDeliveryUrlRequest
|
|
842
463
|
*/
|
|
843
464
|
export interface DefaultApiGetDeliveryUrlRequest {
|
|
844
|
-
/**
|
|
845
|
-
*
|
|
846
|
-
* @type {string}
|
|
847
|
-
* @memberof DefaultApiGetDeliveryUrl
|
|
848
|
-
*/
|
|
849
465
|
readonly id: string;
|
|
850
|
-
/**
|
|
851
|
-
*
|
|
852
|
-
* @type {string}
|
|
853
|
-
* @memberof DefaultApiGetDeliveryUrl
|
|
854
|
-
*/
|
|
855
466
|
readonly variant?: string;
|
|
856
|
-
/**
|
|
857
|
-
*
|
|
858
|
-
* @type {number}
|
|
859
|
-
* @memberof DefaultApiGetDeliveryUrl
|
|
860
|
-
*/
|
|
861
467
|
readonly w?: number;
|
|
862
|
-
/**
|
|
863
|
-
*
|
|
864
|
-
* @type {number}
|
|
865
|
-
* @memberof DefaultApiGetDeliveryUrl
|
|
866
|
-
*/
|
|
867
468
|
readonly h?: number;
|
|
868
|
-
/**
|
|
869
|
-
*
|
|
870
|
-
* @type {'cover' | 'contain' | 'fill' | 'inside' | 'outside'}
|
|
871
|
-
* @memberof DefaultApiGetDeliveryUrl
|
|
872
|
-
*/
|
|
873
469
|
readonly fit?: GetDeliveryUrlFitEnum;
|
|
874
|
-
/**
|
|
875
|
-
*
|
|
876
|
-
* @type {'original' | 'webp' | 'avif' | 'jpeg' | 'png'}
|
|
877
|
-
* @memberof DefaultApiGetDeliveryUrl
|
|
878
|
-
*/
|
|
879
470
|
readonly format?: GetDeliveryUrlFormatEnum;
|
|
880
|
-
/**
|
|
881
|
-
*
|
|
882
|
-
* @type {number}
|
|
883
|
-
* @memberof DefaultApiGetDeliveryUrl
|
|
884
|
-
*/
|
|
885
471
|
readonly quality?: number;
|
|
886
|
-
/**
|
|
887
|
-
*
|
|
888
|
-
* @type {number}
|
|
889
|
-
* @memberof DefaultApiGetDeliveryUrl
|
|
890
|
-
*/
|
|
891
472
|
readonly dpr?: number;
|
|
892
|
-
/**
|
|
893
|
-
*
|
|
894
|
-
* @type {number}
|
|
895
|
-
* @memberof DefaultApiGetDeliveryUrl
|
|
896
|
-
*/
|
|
897
473
|
readonly ttlSeconds?: number;
|
|
898
474
|
}
|
|
899
475
|
/**
|
|
900
476
|
* Request parameters for getImage operation in DefaultApi.
|
|
901
|
-
* @export
|
|
902
|
-
* @interface DefaultApiGetImageRequest
|
|
903
477
|
*/
|
|
904
478
|
export interface DefaultApiGetImageRequest {
|
|
905
|
-
/**
|
|
906
|
-
*
|
|
907
|
-
* @type {string}
|
|
908
|
-
* @memberof DefaultApiGetImage
|
|
909
|
-
*/
|
|
910
479
|
readonly id: string;
|
|
911
480
|
}
|
|
912
481
|
/**
|
|
913
482
|
* Request parameters for listImages operation in DefaultApi.
|
|
914
|
-
* @export
|
|
915
|
-
* @interface DefaultApiListImagesRequest
|
|
916
483
|
*/
|
|
917
484
|
export interface DefaultApiListImagesRequest {
|
|
918
|
-
/**
|
|
919
|
-
*
|
|
920
|
-
* @type {OwnerType}
|
|
921
|
-
* @memberof DefaultApiListImages
|
|
922
|
-
*/
|
|
923
485
|
readonly ownerType?: OwnerType;
|
|
924
|
-
/**
|
|
925
|
-
*
|
|
926
|
-
* @type {string}
|
|
927
|
-
* @memberof DefaultApiListImages
|
|
928
|
-
*/
|
|
929
486
|
readonly ownerId?: string;
|
|
930
|
-
/**
|
|
931
|
-
*
|
|
932
|
-
* @type {ImageStatus}
|
|
933
|
-
* @memberof DefaultApiListImages
|
|
934
|
-
*/
|
|
935
487
|
readonly status?: ImageStatus;
|
|
936
|
-
/**
|
|
937
|
-
*
|
|
938
|
-
* @type {number}
|
|
939
|
-
* @memberof DefaultApiListImages
|
|
940
|
-
*/
|
|
941
488
|
readonly page?: number;
|
|
942
|
-
/**
|
|
943
|
-
*
|
|
944
|
-
* @type {number}
|
|
945
|
-
* @memberof DefaultApiListImages
|
|
946
|
-
*/
|
|
947
489
|
readonly pageSize?: number;
|
|
948
490
|
}
|
|
949
491
|
/**
|
|
950
492
|
* Request parameters for processImage operation in DefaultApi.
|
|
951
|
-
* @export
|
|
952
|
-
* @interface DefaultApiProcessImageRequest
|
|
953
493
|
*/
|
|
954
494
|
export interface DefaultApiProcessImageRequest {
|
|
955
|
-
/**
|
|
956
|
-
*
|
|
957
|
-
* @type {ProcessImageRequest}
|
|
958
|
-
* @memberof DefaultApiProcessImage
|
|
959
|
-
*/
|
|
960
495
|
readonly processImageRequest: ProcessImageRequest;
|
|
961
496
|
}
|
|
962
497
|
/**
|
|
963
498
|
* Request parameters for promoteImages operation in DefaultApi.
|
|
964
|
-
* @export
|
|
965
|
-
* @interface DefaultApiPromoteImagesRequest
|
|
966
499
|
*/
|
|
967
500
|
export interface DefaultApiPromoteImagesRequest {
|
|
968
|
-
/**
|
|
969
|
-
*
|
|
970
|
-
* @type {PromoteRequest}
|
|
971
|
-
* @memberof DefaultApiPromoteImages
|
|
972
|
-
*/
|
|
973
501
|
readonly promoteRequest: PromoteRequest;
|
|
974
502
|
}
|
|
975
503
|
/**
|
|
976
504
|
* Request parameters for updateImage operation in DefaultApi.
|
|
977
|
-
* @export
|
|
978
|
-
* @interface DefaultApiUpdateImageRequest
|
|
979
505
|
*/
|
|
980
506
|
export interface DefaultApiUpdateImageRequest {
|
|
981
|
-
/**
|
|
982
|
-
*
|
|
983
|
-
* @type {string}
|
|
984
|
-
* @memberof DefaultApiUpdateImage
|
|
985
|
-
*/
|
|
986
507
|
readonly id: string;
|
|
987
|
-
/**
|
|
988
|
-
*
|
|
989
|
-
* @type {ImagePatch}
|
|
990
|
-
* @memberof DefaultApiUpdateImage
|
|
991
|
-
*/
|
|
992
508
|
readonly imagePatch: ImagePatch;
|
|
993
509
|
}
|
|
994
510
|
/**
|
|
995
511
|
* DefaultApi - object-oriented interface
|
|
996
|
-
* @export
|
|
997
|
-
* @class DefaultApi
|
|
998
|
-
* @extends {BaseAPI}
|
|
999
512
|
*/
|
|
1000
513
|
export declare class DefaultApi extends BaseAPI {
|
|
1001
514
|
/**
|
|
@@ -1004,7 +517,6 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1004
517
|
* @param {DefaultApiConfirmUploadRequest} requestParameters Request parameters.
|
|
1005
518
|
* @param {*} [options] Override http request option.
|
|
1006
519
|
* @throws {RequiredError}
|
|
1007
|
-
* @memberof DefaultApi
|
|
1008
520
|
*/
|
|
1009
521
|
confirmUpload(requestParameters: DefaultApiConfirmUploadRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Image, any, {}>>;
|
|
1010
522
|
/**
|
|
@@ -1013,7 +525,6 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1013
525
|
* @param {DefaultApiCreatePresignRequest} requestParameters Request parameters.
|
|
1014
526
|
* @param {*} [options] Override http request option.
|
|
1015
527
|
* @throws {RequiredError}
|
|
1016
|
-
* @memberof DefaultApi
|
|
1017
528
|
*/
|
|
1018
529
|
createPresign(requestParameters: DefaultApiCreatePresignRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PresignResponse, any, {}>>;
|
|
1019
530
|
/**
|
|
@@ -1022,7 +533,6 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1022
533
|
* @param {DefaultApiDeleteImageRequest} requestParameters Request parameters.
|
|
1023
534
|
* @param {*} [options] Override http request option.
|
|
1024
535
|
* @throws {RequiredError}
|
|
1025
|
-
* @memberof DefaultApi
|
|
1026
536
|
*/
|
|
1027
537
|
deleteImage(requestParameters: DefaultApiDeleteImageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1028
538
|
/**
|
|
@@ -1031,7 +541,6 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1031
541
|
* @param {DefaultApiGetDeliveryUrlRequest} requestParameters Request parameters.
|
|
1032
542
|
* @param {*} [options] Override http request option.
|
|
1033
543
|
* @throws {RequiredError}
|
|
1034
|
-
* @memberof DefaultApi
|
|
1035
544
|
*/
|
|
1036
545
|
getDeliveryUrl(requestParameters: DefaultApiGetDeliveryUrlRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDeliveryUrl200Response, any, {}>>;
|
|
1037
546
|
/**
|
|
@@ -1040,7 +549,6 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1040
549
|
* @param {DefaultApiGetImageRequest} requestParameters Request parameters.
|
|
1041
550
|
* @param {*} [options] Override http request option.
|
|
1042
551
|
* @throws {RequiredError}
|
|
1043
|
-
* @memberof DefaultApi
|
|
1044
552
|
*/
|
|
1045
553
|
getImage(requestParameters: DefaultApiGetImageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Image, any, {}>>;
|
|
1046
554
|
/**
|
|
@@ -1049,7 +557,6 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1049
557
|
* @param {DefaultApiListImagesRequest} requestParameters Request parameters.
|
|
1050
558
|
* @param {*} [options] Override http request option.
|
|
1051
559
|
* @throws {RequiredError}
|
|
1052
|
-
* @memberof DefaultApi
|
|
1053
560
|
*/
|
|
1054
561
|
listImages(requestParameters?: DefaultApiListImagesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListImages200Response, any, {}>>;
|
|
1055
562
|
/**
|
|
@@ -1058,7 +565,6 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1058
565
|
* @param {DefaultApiProcessImageRequest} requestParameters Request parameters.
|
|
1059
566
|
* @param {*} [options] Override http request option.
|
|
1060
567
|
* @throws {RequiredError}
|
|
1061
|
-
* @memberof DefaultApi
|
|
1062
568
|
*/
|
|
1063
569
|
processImage(requestParameters: DefaultApiProcessImageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1064
570
|
/**
|
|
@@ -1067,7 +573,6 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1067
573
|
* @param {DefaultApiPromoteImagesRequest} requestParameters Request parameters.
|
|
1068
574
|
* @param {*} [options] Override http request option.
|
|
1069
575
|
* @throws {RequiredError}
|
|
1070
|
-
* @memberof DefaultApi
|
|
1071
576
|
*/
|
|
1072
577
|
promoteImages(requestParameters: DefaultApiPromoteImagesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PromoteImages200Response, any, {}>>;
|
|
1073
578
|
/**
|
|
@@ -1076,13 +581,9 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1076
581
|
* @param {DefaultApiUpdateImageRequest} requestParameters Request parameters.
|
|
1077
582
|
* @param {*} [options] Override http request option.
|
|
1078
583
|
* @throws {RequiredError}
|
|
1079
|
-
* @memberof DefaultApi
|
|
1080
584
|
*/
|
|
1081
585
|
updateImage(requestParameters: DefaultApiUpdateImageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Image, any, {}>>;
|
|
1082
586
|
}
|
|
1083
|
-
/**
|
|
1084
|
-
* @export
|
|
1085
|
-
*/
|
|
1086
587
|
export declare const GetDeliveryUrlFitEnum: {
|
|
1087
588
|
readonly Cover: "cover";
|
|
1088
589
|
readonly Contain: "contain";
|
|
@@ -1091,9 +592,6 @@ export declare const GetDeliveryUrlFitEnum: {
|
|
|
1091
592
|
readonly Outside: "outside";
|
|
1092
593
|
};
|
|
1093
594
|
export type GetDeliveryUrlFitEnum = typeof GetDeliveryUrlFitEnum[keyof typeof GetDeliveryUrlFitEnum];
|
|
1094
|
-
/**
|
|
1095
|
-
* @export
|
|
1096
|
-
*/
|
|
1097
595
|
export declare const GetDeliveryUrlFormatEnum: {
|
|
1098
596
|
readonly Original: "original";
|
|
1099
597
|
readonly Webp: "webp";
|