@pushwoosh/rpc-v2-http-api-data 0.2.408 → 0.2.409
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/data.js +3 -1
- package/media_files.d.ts +10 -3
- package/package.json +1 -1
package/data.js
CHANGED
|
@@ -23834,7 +23834,9 @@ export const data = {
|
|
|
23834
23834
|
"ASPECT_RATIO_16_9",
|
|
23835
23835
|
"ASPECT_RATIO_16_10",
|
|
23836
23836
|
"ASPECT_RATIO_21_9",
|
|
23837
|
-
"ASPECT_RATIO_9_16"
|
|
23837
|
+
"ASPECT_RATIO_9_16",
|
|
23838
|
+
"ASPECT_RATIO_2_1",
|
|
23839
|
+
"ASPECT_RATIO_3_1"
|
|
23838
23840
|
]
|
|
23839
23841
|
},
|
|
23840
23842
|
"pushwoosh.rpc_v2.media_files.CreateVariantRequest": {
|
package/media_files.d.ts
CHANGED
|
@@ -14,7 +14,11 @@ export interface MediaFilesService {
|
|
|
14
14
|
GetUsage: MediaFilesService_GetUsage;
|
|
15
15
|
}
|
|
16
16
|
/** AspectRatio enumerates the supported aspect ratios for image variants. */
|
|
17
|
-
export type AspectRatio = 'ASPECT_RATIO_UNSPECIFIED' | 'ASPECT_RATIO_1_1' | 'ASPECT_RATIO_4_3' | 'ASPECT_RATIO_3_2' | 'ASPECT_RATIO_4_5' | 'ASPECT_RATIO_5_4' | 'ASPECT_RATIO_16_9' | 'ASPECT_RATIO_16_10' | 'ASPECT_RATIO_21_9' | 'ASPECT_RATIO_9_16'
|
|
17
|
+
export type AspectRatio = 'ASPECT_RATIO_UNSPECIFIED' | 'ASPECT_RATIO_1_1' | 'ASPECT_RATIO_4_3' | 'ASPECT_RATIO_3_2' | 'ASPECT_RATIO_4_5' | 'ASPECT_RATIO_5_4' | 'ASPECT_RATIO_16_9' | 'ASPECT_RATIO_16_10' | 'ASPECT_RATIO_21_9' | 'ASPECT_RATIO_9_16'
|
|
18
|
+
/** Android big picture. */
|
|
19
|
+
| 'ASPECT_RATIO_2_1'
|
|
20
|
+
/** Apple Wallet strip and logo. */
|
|
21
|
+
| 'ASPECT_RATIO_3_1';
|
|
18
22
|
export type CreateVariantRequest_size_width = {
|
|
19
23
|
type: 'width';
|
|
20
24
|
data: number;
|
|
@@ -50,7 +54,7 @@ export type UploadMediaFileRequest = {
|
|
|
50
54
|
/** MIME type of the image (image/jpeg, image/png, image/gif, image/webp); auto-detected from the bytes when empty. */
|
|
51
55
|
mimeType: string;
|
|
52
56
|
description?: string;
|
|
53
|
-
/** Where the image
|
|
57
|
+
/** Where the image came from: empty for a file from disk, "canva", "figma", "ai" or "stock". */
|
|
54
58
|
source: string;
|
|
55
59
|
/** Provider-side identity of the image as a JSON object, e.g. {"design_id": "...", "page": 2}. */
|
|
56
60
|
sourceRef: string;
|
|
@@ -146,7 +150,10 @@ export type MediaFile = {
|
|
|
146
150
|
description?: string;
|
|
147
151
|
/** parent_uuid is set on variants and points to the original image's uuid. */
|
|
148
152
|
parentUuid?: string;
|
|
149
|
-
/**
|
|
153
|
+
/**
|
|
154
|
+
* source is where the image came from: empty for a file from disk, "canva", "figma",
|
|
155
|
+
* "ai" (generated) or "stock" (stock photo import).
|
|
156
|
+
*/
|
|
150
157
|
source: string;
|
|
151
158
|
/** version is 0 for the first upload of an image and grows with every new version of it. */
|
|
152
159
|
version: number;
|