transloadit 6.0.2 → 6.0.3
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/alphalib/englishInteger.d.ts +3 -0
- package/dist/alphalib/englishInteger.d.ts.map +1 -0
- package/dist/alphalib/englishInteger.js +13 -0
- package/dist/alphalib/englishInteger.js.map +1 -0
- package/dist/alphalib/lib/zodInputSemantics.d.ts +3 -1
- package/dist/alphalib/lib/zodInputSemantics.d.ts.map +1 -1
- package/dist/alphalib/lib/zodInputSemantics.js +17 -0
- package/dist/alphalib/lib/zodInputSemantics.js.map +1 -1
- package/dist/alphalib/types/robots/_image-describe-output.d.ts +55 -0
- package/dist/alphalib/types/robots/_image-describe-output.d.ts.map +1 -0
- package/dist/alphalib/types/robots/_image-describe-output.js +16 -0
- package/dist/alphalib/types/robots/_image-describe-output.js.map +1 -0
- package/dist/alphalib/types/robots/_image-facedetect-output.d.ts +30 -0
- package/dist/alphalib/types/robots/_image-facedetect-output.d.ts.map +1 -0
- package/dist/alphalib/types/robots/_image-facedetect-output.js +15 -0
- package/dist/alphalib/types/robots/_image-facedetect-output.js.map +1 -0
- package/dist/alphalib/types/robots/_index.d.ts +582 -48
- package/dist/alphalib/types/robots/_index.d.ts.map +1 -1
- package/dist/alphalib/types/robots/_index.js +84 -80
- package/dist/alphalib/types/robots/_index.js.map +1 -1
- package/dist/alphalib/types/robots/_instructions-primitives.d.ts +82 -0
- package/dist/alphalib/types/robots/_instructions-primitives.d.ts.map +1 -1
- package/dist/alphalib/types/robots/_instructions-primitives.js +46 -2
- package/dist/alphalib/types/robots/_instructions-primitives.js.map +1 -1
- package/dist/alphalib/types/robots/_ocr-output.d.ts +75 -0
- package/dist/alphalib/types/robots/_ocr-output.d.ts.map +1 -0
- package/dist/alphalib/types/robots/_ocr-output.js +15 -0
- package/dist/alphalib/types/robots/_ocr-output.js.map +1 -0
- package/dist/alphalib/types/robots/ai-chat.d.ts +12 -12
- package/dist/alphalib/types/robots/audio-encode.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-encode.js +8 -1
- package/dist/alphalib/types/robots/audio-encode.js.map +1 -1
- package/dist/alphalib/types/robots/audio-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-split.js +2 -0
- package/dist/alphalib/types/robots/audio-split.js.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-store.d.ts +4 -4
- package/dist/alphalib/types/robots/digitalocean-store.js +1 -1
- package/dist/alphalib/types/robots/digitalocean-store.js.map +1 -1
- package/dist/alphalib/types/robots/document-convert.d.ts +8 -6
- package/dist/alphalib/types/robots/document-convert.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-convert.js +5 -5
- package/dist/alphalib/types/robots/document-convert.js.map +1 -1
- package/dist/alphalib/types/robots/document-extract.d.ts +4 -4
- package/dist/alphalib/types/robots/document-ocr.d.ts +8 -8
- package/dist/alphalib/types/robots/google-store.d.ts +32 -8
- package/dist/alphalib/types/robots/google-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/google-store.js +10 -2
- package/dist/alphalib/types/robots/google-store.js.map +1 -1
- package/dist/alphalib/types/robots/image-bgremove.d.ts +16 -16
- package/dist/alphalib/types/robots/image-describe.d.ts +17 -17
- package/dist/alphalib/types/robots/image-describe.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-describe.js +2 -1
- package/dist/alphalib/types/robots/image-describe.js.map +1 -1
- package/dist/alphalib/types/robots/image-facedetect.d.ts +9 -35
- package/dist/alphalib/types/robots/image-facedetect.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-facedetect.js +1 -11
- package/dist/alphalib/types/robots/image-facedetect.js.map +1 -1
- package/dist/alphalib/types/robots/image-generate.d.ts +20 -20
- package/dist/alphalib/types/robots/image-generate.js +1 -1
- package/dist/alphalib/types/robots/image-generate.js.map +1 -1
- package/dist/alphalib/types/robots/image-ocr.d.ts +8 -8
- package/dist/alphalib/types/robots/image-upscale.d.ts +17 -12
- package/dist/alphalib/types/robots/image-upscale.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-upscale.js +14 -2
- package/dist/alphalib/types/robots/image-upscale.js.map +1 -1
- package/dist/alphalib/types/robots/mega-store.d.ts +4 -4
- package/dist/alphalib/types/robots/mega-store.js +1 -1
- package/dist/alphalib/types/robots/mega-store.js.map +1 -1
- package/dist/alphalib/types/robots/s3-store.d.ts +8 -8
- package/dist/alphalib/types/robots/s3-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/s3-store.js +14 -2
- package/dist/alphalib/types/robots/s3-store.js.map +1 -1
- package/dist/alphalib/types/robots/speech-transcribe.d.ts +12 -12
- package/dist/alphalib/types/robots/text-speak.d.ts +8 -8
- package/dist/alphalib/types/robots/text-translate.d.ts +8 -8
- package/dist/alphalib/types/robots/video-adaptive.d.ts +16 -19
- package/dist/alphalib/types/robots/video-adaptive.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-adaptive.js +37 -3
- package/dist/alphalib/types/robots/video-adaptive.js.map +1 -1
- package/dist/alphalib/types/robots/video-concat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-concat.js +7 -3
- package/dist/alphalib/types/robots/video-concat.js.map +1 -1
- package/dist/alphalib/types/robots/video-encode.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-encode.js +6 -0
- package/dist/alphalib/types/robots/video-encode.js.map +1 -1
- package/dist/alphalib/types/robots/video-generate.d.ts +20 -20
- package/dist/alphalib/types/robots/video-generate.js +1 -1
- package/dist/alphalib/types/robots/video-generate.js.map +1 -1
- package/dist/alphalib/types/robots/video-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-merge.js +15 -1
- package/dist/alphalib/types/robots/video-merge.js.map +1 -1
- package/dist/alphalib/types/robots/video-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-split.js +2 -0
- package/dist/alphalib/types/robots/video-split.js.map +1 -1
- package/dist/alphalib/types/robots/video-subtitle.d.ts +47 -4
- package/dist/alphalib/types/robots/video-subtitle.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-subtitle.js +59 -46
- package/dist/alphalib/types/robots/video-subtitle.js.map +1 -1
- package/dist/alphalib/types/robots/vimeo-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/vimeo-import.js +1 -1
- package/dist/alphalib/types/robots/vimeo-import.js.map +1 -1
- package/dist/alphalib/types/robots/youtube-store.d.ts +37 -20
- package/dist/alphalib/types/robots/youtube-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/youtube-store.js +17 -29
- package/dist/alphalib/types/robots/youtube-store.js.map +1 -1
- package/dist/alphalib/youtubeCategories.d.ts +20 -0
- package/dist/alphalib/youtubeCategories.d.ts.map +1 -0
- package/dist/alphalib/youtubeCategories.js +21 -0
- package/dist/alphalib/youtubeCategories.js.map +1 -0
- package/dist/apiTypes.d.ts +12 -1
- package/dist/apiTypes.d.ts.map +1 -1
- package/dist/robots.d.ts.map +1 -1
- package/dist/robots.js +6 -0
- package/dist/robots.js.map +1 -1
- package/package.json +1 -1
- package/src/alphalib/englishInteger.ts +14 -0
- package/src/alphalib/lib/zodInputSemantics.ts +22 -1
- package/src/alphalib/types/robots/_image-describe-output.ts +20 -0
- package/src/alphalib/types/robots/_image-facedetect-output.ts +19 -0
- package/src/alphalib/types/robots/_index.ts +100 -82
- package/src/alphalib/types/robots/_instructions-primitives.ts +51 -2
- package/src/alphalib/types/robots/_ocr-output.ts +19 -0
- package/src/alphalib/types/robots/audio-encode.ts +8 -1
- package/src/alphalib/types/robots/audio-split.ts +2 -0
- package/src/alphalib/types/robots/digitalocean-store.ts +1 -1
- package/src/alphalib/types/robots/document-convert.ts +8 -5
- package/src/alphalib/types/robots/google-store.ts +15 -4
- package/src/alphalib/types/robots/image-describe.ts +8 -1
- package/src/alphalib/types/robots/image-facedetect.ts +4 -13
- package/src/alphalib/types/robots/image-generate.ts +1 -1
- package/src/alphalib/types/robots/image-upscale.ts +17 -2
- package/src/alphalib/types/robots/mega-store.ts +1 -1
- package/src/alphalib/types/robots/s3-store.ts +14 -2
- package/src/alphalib/types/robots/video-adaptive.ts +37 -3
- package/src/alphalib/types/robots/video-concat.ts +7 -3
- package/src/alphalib/types/robots/video-encode.ts +6 -0
- package/src/alphalib/types/robots/video-generate.ts +1 -1
- package/src/alphalib/types/robots/video-merge.ts +15 -1
- package/src/alphalib/types/robots/video-split.ts +2 -0
- package/src/alphalib/types/robots/video-subtitle.ts +61 -46
- package/src/alphalib/types/robots/vimeo-import.ts +3 -1
- package/src/alphalib/types/robots/youtube-store.ts +26 -41
- package/src/alphalib/youtubeCategories.ts +24 -0
- package/src/apiTypes.ts +12 -1
- package/src/robots.ts +7 -0
|
@@ -61,7 +61,7 @@ export declare const robotImageGenerateInstructionsSchema: z.ZodObject<{
|
|
|
61
61
|
}>]>>;
|
|
62
62
|
model: z.ZodOptional<z.ZodString>;
|
|
63
63
|
prompt: z.ZodString;
|
|
64
|
-
format: z.ZodOptional<z.ZodEnum<["jpeg", "jpg", "png", "
|
|
64
|
+
format: z.ZodOptional<z.ZodEnum<["jpeg", "jpg", "png", "webp", "svg"]>>;
|
|
65
65
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
66
66
|
aspect_ratio: z.ZodOptional<z.ZodString>;
|
|
67
67
|
height: z.ZodOptional<z.ZodNumber>;
|
|
@@ -79,6 +79,7 @@ export declare const robotImageGenerateInstructionsSchema: z.ZodObject<{
|
|
|
79
79
|
height?: number | undefined;
|
|
80
80
|
aspect_ratio?: string | undefined;
|
|
81
81
|
queue?: "batch" | undefined;
|
|
82
|
+
model?: string | undefined;
|
|
82
83
|
use?: string | string[] | {
|
|
83
84
|
name: string;
|
|
84
85
|
as?: string | undefined;
|
|
@@ -95,8 +96,7 @@ export declare const robotImageGenerateInstructionsSchema: z.ZodObject<{
|
|
|
95
96
|
} | undefined;
|
|
96
97
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
97
98
|
output_meta?: boolean | string[] | Record<string, boolean> | undefined;
|
|
98
|
-
|
|
99
|
-
format?: "gif" | "jpeg" | "jpg" | "png" | "svg" | "webp" | undefined;
|
|
99
|
+
format?: "jpeg" | "jpg" | "png" | "svg" | "webp" | undefined;
|
|
100
100
|
style?: string | undefined;
|
|
101
101
|
seed?: number | undefined;
|
|
102
102
|
num_outputs?: number | undefined;
|
|
@@ -108,6 +108,7 @@ export declare const robotImageGenerateInstructionsSchema: z.ZodObject<{
|
|
|
108
108
|
aspect_ratio?: string | undefined;
|
|
109
109
|
user_meta?: Record<string, unknown> | undefined;
|
|
110
110
|
queue?: "batch" | undefined;
|
|
111
|
+
model?: string | undefined;
|
|
111
112
|
use?: string | string[] | {
|
|
112
113
|
name: string;
|
|
113
114
|
as?: string | undefined;
|
|
@@ -127,8 +128,7 @@ export declare const robotImageGenerateInstructionsSchema: z.ZodObject<{
|
|
|
127
128
|
result?: boolean | undefined;
|
|
128
129
|
force_accept?: boolean | undefined;
|
|
129
130
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
130
|
-
|
|
131
|
-
format?: "gif" | "jpeg" | "jpg" | "png" | "svg" | "webp" | undefined;
|
|
131
|
+
format?: "jpeg" | "jpg" | "png" | "svg" | "webp" | undefined;
|
|
132
132
|
style?: string | undefined;
|
|
133
133
|
seed?: number | undefined;
|
|
134
134
|
num_outputs?: number | undefined;
|
|
@@ -191,7 +191,7 @@ export declare const robotImageGenerateInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
191
191
|
}>]>>;
|
|
192
192
|
model: z.ZodOptional<z.ZodString>;
|
|
193
193
|
prompt: z.ZodString;
|
|
194
|
-
format: z.ZodOptional<z.ZodEnum<["jpeg", "jpg", "png", "
|
|
194
|
+
format: z.ZodOptional<z.ZodEnum<["jpeg", "jpg", "png", "webp", "svg"]>>;
|
|
195
195
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
196
196
|
aspect_ratio: z.ZodOptional<z.ZodString>;
|
|
197
197
|
height: z.ZodOptional<z.ZodNumber>;
|
|
@@ -203,15 +203,16 @@ export declare const robotImageGenerateInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
203
203
|
result: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"debug">, z.ZodDefault<z.ZodBoolean>]>>;
|
|
204
204
|
}, "strict", z.ZodTypeAny, {
|
|
205
205
|
user_meta: Record<string, unknown>;
|
|
206
|
+
provider: string;
|
|
206
207
|
robot: "/image/generate";
|
|
207
208
|
force_accept: boolean;
|
|
208
209
|
ignore_errors: string[];
|
|
209
|
-
provider: string;
|
|
210
210
|
prompt: string;
|
|
211
211
|
width?: number | undefined;
|
|
212
212
|
height?: number | undefined;
|
|
213
213
|
aspect_ratio?: string | undefined;
|
|
214
214
|
queue?: "batch" | undefined;
|
|
215
|
+
model?: string | undefined;
|
|
215
216
|
use?: string | string[] | {
|
|
216
217
|
name: string;
|
|
217
218
|
as?: string | undefined;
|
|
@@ -229,8 +230,7 @@ export declare const robotImageGenerateInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
229
230
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
230
231
|
output_meta?: boolean | string[] | Record<string, boolean> | undefined;
|
|
231
232
|
result?: boolean | "debug" | undefined;
|
|
232
|
-
|
|
233
|
-
format?: "gif" | "jpeg" | "jpg" | "png" | "svg" | "webp" | undefined;
|
|
233
|
+
format?: "jpeg" | "jpg" | "png" | "svg" | "webp" | undefined;
|
|
234
234
|
style?: string | undefined;
|
|
235
235
|
seed?: number | undefined;
|
|
236
236
|
num_outputs?: number | undefined;
|
|
@@ -242,6 +242,8 @@ export declare const robotImageGenerateInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
242
242
|
aspect_ratio?: string | undefined;
|
|
243
243
|
user_meta?: Record<string, unknown> | undefined;
|
|
244
244
|
queue?: "batch" | undefined;
|
|
245
|
+
provider?: string | undefined;
|
|
246
|
+
model?: string | undefined;
|
|
245
247
|
use?: string | string[] | {
|
|
246
248
|
name: string;
|
|
247
249
|
as?: string | undefined;
|
|
@@ -261,9 +263,7 @@ export declare const robotImageGenerateInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
261
263
|
result?: boolean | "debug" | undefined;
|
|
262
264
|
force_accept?: boolean | undefined;
|
|
263
265
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
264
|
-
|
|
265
|
-
format?: "gif" | "jpeg" | "jpg" | "png" | "svg" | "webp" | undefined;
|
|
266
|
-
provider?: string | undefined;
|
|
266
|
+
format?: "jpeg" | "jpg" | "png" | "svg" | "webp" | undefined;
|
|
267
267
|
style?: string | undefined;
|
|
268
268
|
seed?: number | undefined;
|
|
269
269
|
num_outputs?: number | undefined;
|
|
@@ -329,7 +329,7 @@ export declare const interpolatableRobotImageGenerateInstructionsSchema: z.ZodOb
|
|
|
329
329
|
}>]>>;
|
|
330
330
|
model: z.ZodOptional<z.ZodString>;
|
|
331
331
|
prompt: z.ZodString;
|
|
332
|
-
format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEnum<["jpeg", "jpg", "png", "
|
|
332
|
+
format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEnum<["jpeg", "jpg", "png", "webp", "svg"]>]>>;
|
|
333
333
|
seed: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
334
334
|
aspect_ratio: z.ZodOptional<z.ZodString>;
|
|
335
335
|
height: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
@@ -347,6 +347,7 @@ export declare const interpolatableRobotImageGenerateInstructionsSchema: z.ZodOb
|
|
|
347
347
|
height?: string | number | undefined;
|
|
348
348
|
aspect_ratio?: string | undefined;
|
|
349
349
|
queue?: string | undefined;
|
|
350
|
+
model?: string | undefined;
|
|
350
351
|
use?: string | string[] | {
|
|
351
352
|
name: string;
|
|
352
353
|
as?: string | undefined;
|
|
@@ -363,7 +364,6 @@ export declare const interpolatableRobotImageGenerateInstructionsSchema: z.ZodOb
|
|
|
363
364
|
} | undefined;
|
|
364
365
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
365
366
|
output_meta?: string | boolean | string[] | Record<string, string | boolean> | undefined;
|
|
366
|
-
model?: string | undefined;
|
|
367
367
|
format?: string | undefined;
|
|
368
368
|
style?: string | undefined;
|
|
369
369
|
seed?: string | number | undefined;
|
|
@@ -376,6 +376,7 @@ export declare const interpolatableRobotImageGenerateInstructionsSchema: z.ZodOb
|
|
|
376
376
|
aspect_ratio?: string | undefined;
|
|
377
377
|
user_meta?: Record<string, unknown> | undefined;
|
|
378
378
|
queue?: string | undefined;
|
|
379
|
+
model?: string | undefined;
|
|
379
380
|
use?: string | string[] | {
|
|
380
381
|
name: string;
|
|
381
382
|
as?: string | undefined;
|
|
@@ -395,7 +396,6 @@ export declare const interpolatableRobotImageGenerateInstructionsSchema: z.ZodOb
|
|
|
395
396
|
result?: string | boolean | undefined;
|
|
396
397
|
force_accept?: string | boolean | undefined;
|
|
397
398
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
398
|
-
model?: string | undefined;
|
|
399
399
|
format?: string | undefined;
|
|
400
400
|
style?: string | undefined;
|
|
401
401
|
seed?: string | number | undefined;
|
|
@@ -461,7 +461,7 @@ export declare const interpolatableRobotImageGenerateInstructionsWithHiddenField
|
|
|
461
461
|
}>]>>;
|
|
462
462
|
model: z.ZodOptional<z.ZodString>;
|
|
463
463
|
prompt: z.ZodString;
|
|
464
|
-
format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEnum<["jpeg", "jpg", "png", "
|
|
464
|
+
format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEnum<["jpeg", "jpg", "png", "webp", "svg"]>]>>;
|
|
465
465
|
seed: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
466
466
|
aspect_ratio: z.ZodOptional<z.ZodString>;
|
|
467
467
|
height: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
@@ -472,15 +472,16 @@ export declare const interpolatableRobotImageGenerateInstructionsWithHiddenField
|
|
|
472
472
|
result: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<"debug">]>, z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
|
|
473
473
|
}, "strict", z.ZodTypeAny, {
|
|
474
474
|
user_meta: Record<string, unknown>;
|
|
475
|
+
provider: string;
|
|
475
476
|
robot: "/image/generate";
|
|
476
477
|
force_accept: string | boolean;
|
|
477
478
|
ignore_errors: string | string[];
|
|
478
|
-
provider: string;
|
|
479
479
|
prompt: string;
|
|
480
480
|
width?: string | number | undefined;
|
|
481
481
|
height?: string | number | undefined;
|
|
482
482
|
aspect_ratio?: string | undefined;
|
|
483
483
|
queue?: string | undefined;
|
|
484
|
+
model?: string | undefined;
|
|
484
485
|
use?: string | string[] | {
|
|
485
486
|
name: string;
|
|
486
487
|
as?: string | undefined;
|
|
@@ -498,7 +499,6 @@ export declare const interpolatableRobotImageGenerateInstructionsWithHiddenField
|
|
|
498
499
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
499
500
|
output_meta?: string | boolean | string[] | Record<string, string | boolean> | undefined;
|
|
500
501
|
result?: string | boolean | undefined;
|
|
501
|
-
model?: string | undefined;
|
|
502
502
|
format?: string | undefined;
|
|
503
503
|
style?: string | undefined;
|
|
504
504
|
seed?: string | number | undefined;
|
|
@@ -511,6 +511,8 @@ export declare const interpolatableRobotImageGenerateInstructionsWithHiddenField
|
|
|
511
511
|
aspect_ratio?: string | undefined;
|
|
512
512
|
user_meta?: Record<string, unknown> | undefined;
|
|
513
513
|
queue?: string | undefined;
|
|
514
|
+
provider?: string | undefined;
|
|
515
|
+
model?: string | undefined;
|
|
514
516
|
use?: string | string[] | {
|
|
515
517
|
name: string;
|
|
516
518
|
as?: string | undefined;
|
|
@@ -530,9 +532,7 @@ export declare const interpolatableRobotImageGenerateInstructionsWithHiddenField
|
|
|
530
532
|
result?: string | boolean | undefined;
|
|
531
533
|
force_accept?: string | boolean | undefined;
|
|
532
534
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
533
|
-
model?: string | undefined;
|
|
534
535
|
format?: string | undefined;
|
|
535
|
-
provider?: string | undefined;
|
|
536
536
|
style?: string | undefined;
|
|
537
537
|
seed?: string | number | undefined;
|
|
538
538
|
num_outputs?: string | number | undefined;
|
|
@@ -72,7 +72,7 @@ Best practice:
|
|
|
72
72
|
.string()
|
|
73
73
|
.describe('Prompt describing the desired image. For inpainting, describe what should appear in the masked/transparent region and that the rest should stay unchanged.'),
|
|
74
74
|
format: z
|
|
75
|
-
.enum(['jpeg', 'jpg', 'png', '
|
|
75
|
+
.enum(['jpeg', 'jpg', 'png', 'webp', 'svg'])
|
|
76
76
|
.optional()
|
|
77
77
|
.describe('Output format. Defaults depend on model: png for Google and OpenAI models, svg for recraft-v3, jpeg for others. Google models currently return PNG only.'),
|
|
78
78
|
// Provider-specific limits are checked by the Robot so other models retain their seed range.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-generate.js","sourceRoot":"","sources":["../../../../src/alphalib/types/robots/image-generate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,mCAAmC,EACnC,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,EACL,uBAAuB,EACvB,gBAAgB,EAChB,+BAA+B,EAC/B,SAAS,EACT,kBAAkB,EAClB,QAAQ,GACT,MAAM,+BAA+B,CAAA;AAEtC,SAAS,sBAAsB,CAAC,MAA8C;IAC5E,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,CAAA;IAC7D,OAAO,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CA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,6BAA6B,CAAC,wBAAwB,6BAA6B,kDAAkD,CACtQ;IACH,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;SACR,QAAQ,CACP,4JAA4J,CAC7J;IACH,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"image-generate.js","sourceRoot":"","sources":["../../../../src/alphalib/types/robots/image-generate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,mCAAmC,EACnC,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,EACL,uBAAuB,EACvB,gBAAgB,EAChB,+BAA+B,EAC/B,SAAS,EACT,kBAAkB,EAClB,QAAQ,GACT,MAAM,+BAA+B,CAAA;AAEtC,SAAS,sBAAsB,CAAC,MAA8C;IAC5E,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,CAAA;IAC7D,OAAO,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;AACpF,CAAC;AAED,MAAM,CAAC,MAAM,IAAI,GAAmB;IAClC,GAAG,+BAA+B;IAClC,YAAY,EAAE;QACZ,KAAK,EAAE;YACL,WAAW,EAAE;gBACX,KAAK,EAAE,gBAAgB;aACxB;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,iBAAiB;gBACxB,GAAG,EAAE;oBACH,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE;oBAClC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE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ImageOcrInstructionsSchema: z.ZodObject<{
|
|
|
65
65
|
format: z.ZodDefault<z.ZodEnum<["json", "meta", "text"]>>;
|
|
66
66
|
}, "strict", z.ZodTypeAny, {
|
|
67
67
|
user_meta: Record<string, unknown>;
|
|
68
|
+
provider: "auto" | "aws" | "gcp";
|
|
68
69
|
robot: "/image/ocr";
|
|
69
70
|
result: boolean;
|
|
70
71
|
force_accept: boolean;
|
|
71
72
|
ignore_errors: string[];
|
|
72
73
|
format: "json" | "text" | "meta";
|
|
73
|
-
provider: "auto" | "aws" | "gcp";
|
|
74
74
|
granularity: "full" | "list";
|
|
75
75
|
queue?: "batch" | undefined;
|
|
76
76
|
use?: string | string[] | {
|
|
@@ -93,6 +93,7 @@ export declare const robotImageOcrInstructionsSchema: z.ZodObject<{
|
|
|
93
93
|
robot: "/image/ocr";
|
|
94
94
|
user_meta?: Record<string, unknown> | undefined;
|
|
95
95
|
queue?: "batch" | undefined;
|
|
96
|
+
provider?: "auto" | "aws" | "gcp" | undefined;
|
|
96
97
|
use?: string | string[] | {
|
|
97
98
|
name: string;
|
|
98
99
|
as?: string | undefined;
|
|
@@ -113,7 +114,6 @@ export declare const robotImageOcrInstructionsSchema: z.ZodObject<{
|
|
|
113
114
|
force_accept?: boolean | undefined;
|
|
114
115
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
115
116
|
format?: "json" | "text" | "meta" | undefined;
|
|
116
|
-
provider?: "auto" | "aws" | "gcp" | undefined;
|
|
117
117
|
granularity?: "full" | "list" | undefined;
|
|
118
118
|
}>;
|
|
119
119
|
export declare const robotDefinition: RobotDefinition<typeof robotImageOcrInstructionsSchema.shape>;
|
|
@@ -180,11 +180,11 @@ export declare const robotImageOcrInstructionsWithHiddenFieldsSchema: z.ZodObjec
|
|
|
180
180
|
result: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"debug">, z.ZodDefault<z.ZodBoolean>]>>;
|
|
181
181
|
}, "strict", z.ZodTypeAny, {
|
|
182
182
|
user_meta: Record<string, unknown>;
|
|
183
|
+
provider: "auto" | "aws" | "gcp";
|
|
183
184
|
robot: "/image/ocr";
|
|
184
185
|
force_accept: boolean;
|
|
185
186
|
ignore_errors: string[];
|
|
186
187
|
format: "json" | "text" | "meta";
|
|
187
|
-
provider: "auto" | "aws" | "gcp";
|
|
188
188
|
granularity: "full" | "list";
|
|
189
189
|
queue?: "batch" | undefined;
|
|
190
190
|
use?: string | string[] | {
|
|
@@ -208,6 +208,7 @@ export declare const robotImageOcrInstructionsWithHiddenFieldsSchema: z.ZodObjec
|
|
|
208
208
|
robot: "/image/ocr";
|
|
209
209
|
user_meta?: Record<string, unknown> | undefined;
|
|
210
210
|
queue?: "batch" | undefined;
|
|
211
|
+
provider?: "auto" | "aws" | "gcp" | undefined;
|
|
211
212
|
use?: string | string[] | {
|
|
212
213
|
name: string;
|
|
213
214
|
as?: string | undefined;
|
|
@@ -228,7 +229,6 @@ export declare const robotImageOcrInstructionsWithHiddenFieldsSchema: z.ZodObjec
|
|
|
228
229
|
force_accept?: boolean | undefined;
|
|
229
230
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
230
231
|
format?: "json" | "text" | "meta" | undefined;
|
|
231
|
-
provider?: "auto" | "aws" | "gcp" | undefined;
|
|
232
232
|
granularity?: "full" | "list" | undefined;
|
|
233
233
|
}>, interpolatableRobotImageOcrInstructionsSchema: z.ZodObject<{
|
|
234
234
|
interpolate: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "false" | "true">, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "false" | "true">>]>>;
|
|
@@ -292,12 +292,12 @@ export declare const robotImageOcrInstructionsWithHiddenFieldsSchema: z.ZodObjec
|
|
|
292
292
|
format: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["json", "meta", "text"]>]>>;
|
|
293
293
|
}, "strict", z.ZodTypeAny, {
|
|
294
294
|
user_meta: Record<string, unknown>;
|
|
295
|
+
provider: string;
|
|
295
296
|
robot: "/image/ocr";
|
|
296
297
|
result: string | boolean;
|
|
297
298
|
force_accept: string | boolean;
|
|
298
299
|
ignore_errors: string | string[];
|
|
299
300
|
format: string;
|
|
300
|
-
provider: string;
|
|
301
301
|
granularity: string;
|
|
302
302
|
queue?: string | undefined;
|
|
303
303
|
use?: string | string[] | {
|
|
@@ -320,6 +320,7 @@ export declare const robotImageOcrInstructionsWithHiddenFieldsSchema: z.ZodObjec
|
|
|
320
320
|
robot: "/image/ocr";
|
|
321
321
|
user_meta?: Record<string, unknown> | undefined;
|
|
322
322
|
queue?: string | undefined;
|
|
323
|
+
provider?: string | undefined;
|
|
323
324
|
use?: string | string[] | {
|
|
324
325
|
name: string;
|
|
325
326
|
as?: string | undefined;
|
|
@@ -340,7 +341,6 @@ export declare const robotImageOcrInstructionsWithHiddenFieldsSchema: z.ZodObjec
|
|
|
340
341
|
force_accept?: string | boolean | undefined;
|
|
341
342
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
342
343
|
format?: string | undefined;
|
|
343
|
-
provider?: string | undefined;
|
|
344
344
|
granularity?: string | undefined;
|
|
345
345
|
}>, interpolatableRobotImageOcrInstructionsWithHiddenFieldsSchema: z.ZodObject<{
|
|
346
346
|
interpolate: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "false" | "true">, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "false" | "true">>]>>;
|
|
@@ -404,11 +404,11 @@ export declare const robotImageOcrInstructionsWithHiddenFieldsSchema: z.ZodObjec
|
|
|
404
404
|
result: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<"debug">]>, z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
|
|
405
405
|
}, "strict", z.ZodTypeAny, {
|
|
406
406
|
user_meta: Record<string, unknown>;
|
|
407
|
+
provider: string;
|
|
407
408
|
robot: "/image/ocr";
|
|
408
409
|
force_accept: string | boolean;
|
|
409
410
|
ignore_errors: string | string[];
|
|
410
411
|
format: string;
|
|
411
|
-
provider: string;
|
|
412
412
|
granularity: string;
|
|
413
413
|
queue?: string | undefined;
|
|
414
414
|
use?: string | string[] | {
|
|
@@ -432,6 +432,7 @@ export declare const robotImageOcrInstructionsWithHiddenFieldsSchema: z.ZodObjec
|
|
|
432
432
|
robot: "/image/ocr";
|
|
433
433
|
user_meta?: Record<string, unknown> | undefined;
|
|
434
434
|
queue?: string | undefined;
|
|
435
|
+
provider?: string | undefined;
|
|
435
436
|
use?: string | string[] | {
|
|
436
437
|
name: string;
|
|
437
438
|
as?: string | undefined;
|
|
@@ -452,7 +453,6 @@ export declare const robotImageOcrInstructionsWithHiddenFieldsSchema: z.ZodObjec
|
|
|
452
453
|
force_accept?: string | boolean | undefined;
|
|
453
454
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
454
455
|
format?: string | undefined;
|
|
455
|
-
provider?: string | undefined;
|
|
456
456
|
granularity?: string | undefined;
|
|
457
457
|
}>;
|
|
458
458
|
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { RobotDefinitionWithHiddenFields, RobotMetaInput, RobotSchemaVariantTypes } from './_instructions-primitives.ts';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const meta: RobotMetaInput;
|
|
4
|
+
/**
|
|
5
|
+
* Maximum input area accepted by the pinned Real-ESRGAN Replicate predictor.
|
|
6
|
+
* @see https://github.com/replicate/cog-real-esrgan/blob/6cbd5e6ce8bd0fa90db54af899a8a9a85eb3db41/predict.py#L19
|
|
7
|
+
*/
|
|
8
|
+
export declare const realEsrganMaxInputPixels: number;
|
|
4
9
|
export declare const robotImageUpscaleInstructionsSchema: z.ZodObject<{
|
|
5
10
|
interpolate: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "false" | "true">, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "false" | "true">>]>>;
|
|
6
11
|
output_meta: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodBoolean>, z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -70,6 +75,7 @@ export declare const robotImageUpscaleInstructionsSchema: z.ZodObject<{
|
|
|
70
75
|
force_accept: boolean;
|
|
71
76
|
ignore_errors: string[];
|
|
72
77
|
queue?: "batch" | undefined;
|
|
78
|
+
model?: "nightmareai/real-esrgan" | "tencentarc/gfpgan" | "sczhou/codeformer" | undefined;
|
|
73
79
|
use?: string | string[] | {
|
|
74
80
|
name: string;
|
|
75
81
|
as?: string | undefined;
|
|
@@ -86,13 +92,13 @@ export declare const robotImageUpscaleInstructionsSchema: z.ZodObject<{
|
|
|
86
92
|
} | undefined;
|
|
87
93
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
88
94
|
output_meta?: boolean | string[] | Record<string, boolean> | undefined;
|
|
89
|
-
model?: "nightmareai/real-esrgan" | "tencentarc/gfpgan" | "sczhou/codeformer" | undefined;
|
|
90
95
|
scale?: 4 | 2 | undefined;
|
|
91
96
|
face_enhance?: boolean | undefined;
|
|
92
97
|
}, {
|
|
93
98
|
robot: "/image/upscale";
|
|
94
99
|
user_meta?: Record<string, unknown> | undefined;
|
|
95
100
|
queue?: "batch" | undefined;
|
|
101
|
+
model?: "nightmareai/real-esrgan" | "tencentarc/gfpgan" | "sczhou/codeformer" | undefined;
|
|
96
102
|
use?: string | string[] | {
|
|
97
103
|
name: string;
|
|
98
104
|
as?: string | undefined;
|
|
@@ -112,7 +118,6 @@ export declare const robotImageUpscaleInstructionsSchema: z.ZodObject<{
|
|
|
112
118
|
result?: boolean | undefined;
|
|
113
119
|
force_accept?: boolean | undefined;
|
|
114
120
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
115
|
-
model?: "nightmareai/real-esrgan" | "tencentarc/gfpgan" | "sczhou/codeformer" | undefined;
|
|
116
121
|
scale?: 4 | 2 | undefined;
|
|
117
122
|
face_enhance?: boolean | undefined;
|
|
118
123
|
}>;
|
|
@@ -184,11 +189,12 @@ export declare const robotImageUpscaleInstructionsWithHiddenFieldsSchema: z.ZodO
|
|
|
184
189
|
provider: z.ZodDefault<z.ZodString>;
|
|
185
190
|
}, "strict", z.ZodTypeAny, {
|
|
186
191
|
user_meta: Record<string, unknown>;
|
|
192
|
+
provider: string;
|
|
187
193
|
robot: "/image/upscale";
|
|
188
194
|
force_accept: boolean;
|
|
189
195
|
ignore_errors: string[];
|
|
190
|
-
provider: string;
|
|
191
196
|
queue?: "batch" | undefined;
|
|
197
|
+
model?: "nightmareai/real-esrgan" | "tencentarc/gfpgan" | "sczhou/codeformer" | undefined;
|
|
192
198
|
use?: string | string[] | {
|
|
193
199
|
name: string;
|
|
194
200
|
as?: string | undefined;
|
|
@@ -206,13 +212,14 @@ export declare const robotImageUpscaleInstructionsWithHiddenFieldsSchema: z.ZodO
|
|
|
206
212
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
207
213
|
output_meta?: boolean | string[] | Record<string, boolean> | undefined;
|
|
208
214
|
result?: boolean | "debug" | undefined;
|
|
209
|
-
model?: "nightmareai/real-esrgan" | "tencentarc/gfpgan" | "sczhou/codeformer" | undefined;
|
|
210
215
|
scale?: 4 | 2 | undefined;
|
|
211
216
|
face_enhance?: boolean | undefined;
|
|
212
217
|
}, {
|
|
213
218
|
robot: "/image/upscale";
|
|
214
219
|
user_meta?: Record<string, unknown> | undefined;
|
|
215
220
|
queue?: "batch" | undefined;
|
|
221
|
+
provider?: string | undefined;
|
|
222
|
+
model?: "nightmareai/real-esrgan" | "tencentarc/gfpgan" | "sczhou/codeformer" | undefined;
|
|
216
223
|
use?: string | string[] | {
|
|
217
224
|
name: string;
|
|
218
225
|
as?: string | undefined;
|
|
@@ -232,8 +239,6 @@ export declare const robotImageUpscaleInstructionsWithHiddenFieldsSchema: z.ZodO
|
|
|
232
239
|
result?: boolean | "debug" | undefined;
|
|
233
240
|
force_accept?: boolean | undefined;
|
|
234
241
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
235
|
-
model?: "nightmareai/real-esrgan" | "tencentarc/gfpgan" | "sczhou/codeformer" | undefined;
|
|
236
|
-
provider?: string | undefined;
|
|
237
242
|
scale?: 4 | 2 | undefined;
|
|
238
243
|
face_enhance?: boolean | undefined;
|
|
239
244
|
}>, interpolatableRobotImageUpscaleInstructionsSchema: z.ZodObject<{
|
|
@@ -303,6 +308,7 @@ export declare const robotImageUpscaleInstructionsWithHiddenFieldsSchema: z.ZodO
|
|
|
303
308
|
force_accept: string | boolean;
|
|
304
309
|
ignore_errors: string | string[];
|
|
305
310
|
queue?: string | undefined;
|
|
311
|
+
model?: string | undefined;
|
|
306
312
|
use?: string | string[] | {
|
|
307
313
|
name: string;
|
|
308
314
|
as?: string | undefined;
|
|
@@ -319,13 +325,13 @@ export declare const robotImageUpscaleInstructionsWithHiddenFieldsSchema: z.ZodO
|
|
|
319
325
|
} | undefined;
|
|
320
326
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
321
327
|
output_meta?: string | boolean | string[] | Record<string, string | boolean> | undefined;
|
|
322
|
-
model?: string | undefined;
|
|
323
328
|
scale?: string | 4 | 2 | undefined;
|
|
324
329
|
face_enhance?: string | boolean | undefined;
|
|
325
330
|
}, {
|
|
326
331
|
robot: "/image/upscale";
|
|
327
332
|
user_meta?: Record<string, unknown> | undefined;
|
|
328
333
|
queue?: string | undefined;
|
|
334
|
+
model?: string | undefined;
|
|
329
335
|
use?: string | string[] | {
|
|
330
336
|
name: string;
|
|
331
337
|
as?: string | undefined;
|
|
@@ -345,7 +351,6 @@ export declare const robotImageUpscaleInstructionsWithHiddenFieldsSchema: z.ZodO
|
|
|
345
351
|
result?: string | boolean | undefined;
|
|
346
352
|
force_accept?: string | boolean | undefined;
|
|
347
353
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
348
|
-
model?: string | undefined;
|
|
349
354
|
scale?: string | 4 | 2 | undefined;
|
|
350
355
|
face_enhance?: string | boolean | undefined;
|
|
351
356
|
}>, interpolatableRobotImageUpscaleInstructionsWithHiddenFieldsSchema: z.ZodObject<{
|
|
@@ -411,11 +416,12 @@ export declare const robotImageUpscaleInstructionsWithHiddenFieldsSchema: z.ZodO
|
|
|
411
416
|
provider: z.ZodDefault<z.ZodString>;
|
|
412
417
|
}, "strict", z.ZodTypeAny, {
|
|
413
418
|
user_meta: Record<string, unknown>;
|
|
419
|
+
provider: string;
|
|
414
420
|
robot: "/image/upscale";
|
|
415
421
|
force_accept: string | boolean;
|
|
416
422
|
ignore_errors: string | string[];
|
|
417
|
-
provider: string;
|
|
418
423
|
queue?: string | undefined;
|
|
424
|
+
model?: string | undefined;
|
|
419
425
|
use?: string | string[] | {
|
|
420
426
|
name: string;
|
|
421
427
|
as?: string | undefined;
|
|
@@ -433,13 +439,14 @@ export declare const robotImageUpscaleInstructionsWithHiddenFieldsSchema: z.ZodO
|
|
|
433
439
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
434
440
|
output_meta?: string | boolean | string[] | Record<string, string | boolean> | undefined;
|
|
435
441
|
result?: string | boolean | undefined;
|
|
436
|
-
model?: string | undefined;
|
|
437
442
|
scale?: string | 4 | 2 | undefined;
|
|
438
443
|
face_enhance?: string | boolean | undefined;
|
|
439
444
|
}, {
|
|
440
445
|
robot: "/image/upscale";
|
|
441
446
|
user_meta?: Record<string, unknown> | undefined;
|
|
442
447
|
queue?: string | undefined;
|
|
448
|
+
provider?: string | undefined;
|
|
449
|
+
model?: string | undefined;
|
|
443
450
|
use?: string | string[] | {
|
|
444
451
|
name: string;
|
|
445
452
|
as?: string | undefined;
|
|
@@ -459,8 +466,6 @@ export declare const robotImageUpscaleInstructionsWithHiddenFieldsSchema: z.ZodO
|
|
|
459
466
|
result?: string | boolean | undefined;
|
|
460
467
|
force_accept?: string | boolean | undefined;
|
|
461
468
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
462
|
-
model?: string | undefined;
|
|
463
|
-
provider?: string | undefined;
|
|
464
469
|
scale?: string | 4 | 2 | undefined;
|
|
465
470
|
face_enhance?: string | boolean | undefined;
|
|
466
471
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-upscale.d.ts","sourceRoot":"","sources":["../../../../src/alphalib/types/robots/image-upscale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,+BAA+B,EAC/B,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"image-upscale.d.ts","sourceRoot":"","sources":["../../../../src/alphalib/types/robots/image-upscale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,+BAA+B,EAC/B,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAavB,eAAO,MAAM,IAAI,EAAE,cAqBlB,CAAA;AAQD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,QAAc,CAAA;AAEnD,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBrC,CAAA;AAEX,QAAA,MAAM,YAAY;;CAEjB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,+BAA+B,CAC3D,OAAO,mCAAmC,CAAC,KAAK,EAChD,OAAO,YAAY,CACmE,CAAA;AAExF,eAAO,MACa,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACrD,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACjC,iEAAiE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAChF,CAAA;AAEnB,KAAK,YAAY,GAAG,uBAAuB,CAAC,OAAO,eAAe,CAAC,CAAA;AAEnE,MAAM,MAAM,6BAA6B,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;AAClE,MAAM,MAAM,6CAA6C,GAAG,YAAY,CAAC,cAAc,CAAC,CAAA;AACxF,MAAM,MAAM,2CAA2C,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAC7F,MAAM,MAAM,gDAAgD,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAClG,MAAM,MAAM,2DAA2D,GACrE,YAAY,CAAC,4BAA4B,CAAC,CAAA;AAC5C,MAAM,MAAM,gEAAgE,GAC1E,YAAY,CAAC,2BAA2B,CAAC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { formatEnglishInteger } from "../../englishInteger.js";
|
|
2
3
|
import { imageUpscaleDefaultModelIdentifier, imageUpscaleModelIdentifiers } from "./_ai-models.js";
|
|
3
4
|
import { autoProviderDescription, createProcessingExample, defineRobotWithHiddenFields, robotArtificialIntelligenceMeta, robotBase, robotUse, } from "./_instructions-primitives.js";
|
|
4
5
|
export const meta = {
|
|
@@ -14,7 +15,13 @@ export const meta = {
|
|
|
14
15
|
purpose_words: 'Upscale images',
|
|
15
16
|
title: 'Upscale images',
|
|
16
17
|
name: 'ImageUpscaleRobot',
|
|
18
|
+
// Preserve the runtime fallback; positive provider costs replace it during usage accounting.
|
|
17
19
|
minimumChargeUsd: 0.06,
|
|
20
|
+
providerCostPricing: {
|
|
21
|
+
provider: 'replicate',
|
|
22
|
+
model: imageUpscaleDefaultModelIdentifier,
|
|
23
|
+
models: [...imageUpscaleModelIdentifiers],
|
|
24
|
+
},
|
|
18
25
|
stage: 'beta',
|
|
19
26
|
};
|
|
20
27
|
const upscaleModelSchema = z
|
|
@@ -22,6 +29,11 @@ const upscaleModelSchema = z
|
|
|
22
29
|
.default(imageUpscaleDefaultModelIdentifier);
|
|
23
30
|
const upscaleScaleSchema = z.union([z.literal(2), z.literal(4)]).default(2);
|
|
24
31
|
const upscaleFaceEnhanceSchema = z.boolean().default(false);
|
|
32
|
+
/**
|
|
33
|
+
* Maximum input area accepted by the pinned Real-ESRGAN Replicate predictor.
|
|
34
|
+
* @see https://github.com/replicate/cog-real-esrgan/blob/6cbd5e6ce8bd0fa90db54af899a8a9a85eb3db41/predict.py#L19
|
|
35
|
+
*/
|
|
36
|
+
export const realEsrganMaxInputPixels = 1448 * 1448;
|
|
25
37
|
export const robotImageUpscaleInstructionsSchema = robotBase
|
|
26
38
|
.merge(robotUse)
|
|
27
39
|
.extend({
|
|
@@ -29,10 +41,10 @@ export const robotImageUpscaleInstructionsSchema = robotBase
|
|
|
29
41
|
// Outer optional preserves parsed input; normalization applies the published inner defaults.
|
|
30
42
|
model: upscaleModelSchema
|
|
31
43
|
.optional()
|
|
32
|
-
.describe(`The AI model to use for image upscaling. Defaults to ${upscaleModelSchema.parse(undefined)}.`),
|
|
44
|
+
.describe(`The AI model to use for image upscaling. Defaults to ${upscaleModelSchema.parse(undefined)}. Real-ESRGAN inputs exceeding ${formatEnglishInteger(realEsrganMaxInputPixels)} pixels are resized proportionally before upscaling.`),
|
|
33
45
|
scale: upscaleScaleSchema
|
|
34
46
|
.optional()
|
|
35
|
-
.describe(`Upscale factor. Defaults to ${upscaleScaleSchema.parse(undefined)}.`),
|
|
47
|
+
.describe(`Upscale factor, applied after any input resizing. Defaults to ${upscaleScaleSchema.parse(undefined)}. GFPGAN results are resized after restoration to match this factor.`),
|
|
36
48
|
face_enhance: upscaleFaceEnhanceSchema
|
|
37
49
|
.optional()
|
|
38
50
|
.describe(`Enable face enhancement for better face restoration. Defaults to ${upscaleFaceEnhanceSchema.parse(undefined)}.`),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-upscale.js","sourceRoot":"","sources":["../../../../src/alphalib/types/robots/image-upscale.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,kCAAkC,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAA;AAClG,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,+BAA+B,EAC/B,SAAS,EACT,QAAQ,GACT,MAAM,+BAA+B,CAAA;AAEtC,MAAM,CAAC,MAAM,IAAI,GAAmB;IAClC,GAAG,+BAA+B;IAClC,YAAY,EAAE,uBAAuB,CAAC,UAAU,EAAE,gBAAgB,EAAE;QAClE,KAAK,EAAE,CAAC;QACR,YAAY,EAAE,IAAI;KACnB,CAAC;IACF,wBAAwB,EAAE,4CAA4C;IACtE,gBAAgB,EAAE,0BAA0B;IAC5C,YAAY,EAAE,UAAU;IACxB,YAAY,EAAE,SAAS;IACvB,aAAa,EAAE,gBAAgB;IAC/B,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,mBAAmB;IACzB,gBAAgB,EAAE,IAAI;IACtB,KAAK,EAAE,MAAM;CACd,CAAA;AAED,MAAM,kB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CAAC,sEAAsE,CAC3K;IACH,YAAY,EAAE,wBAAwB;SACnC,QAAQ,EAAE;SACV,QAAQ,CACP,oEAAoE,wBAAwB,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CACjH;CACJ,CAAC;KACD,MAAM,EAAE,CAAA;AAEX,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC;CACvE,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAGxB,2BAA2B,CAAC,IAAI,EAAE,mCAAmC,EAAE,YAAY,CAAC,CAAA;AAExF,MAAM,CAAC,MAAM,EACX,gBAAgB,EAAE,mDAAmD,EACrE,cAAc,EAAE,iDAAiD,EACjE,8BAA8B,EAAE,iEAAiE,GAClG,GAAG,eAAe,CAAA"}
|
|
@@ -68,7 +68,7 @@ export declare const robotMegaStoreInstructionsSchema: z.ZodObject<{
|
|
|
68
68
|
} & {
|
|
69
69
|
robot: z.ZodLiteral<"/mega/store">;
|
|
70
70
|
path: z.ZodDefault<z.ZodString>;
|
|
71
|
-
acl: z.ZodDefault<z.ZodEnum<["private", "public-read"]
|
|
71
|
+
acl: z.ZodDefault<z.ZodDefault<z.ZodEnum<["private", "public-read"]>>>;
|
|
72
72
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
73
73
|
sign_urls_for: z.ZodOptional<z.ZodNumber>;
|
|
74
74
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -202,7 +202,7 @@ export declare const robotMegaStoreInstructionsWithHiddenFieldsSchema: z.ZodObje
|
|
|
202
202
|
secret: z.ZodOptional<z.ZodString>;
|
|
203
203
|
robot: z.ZodLiteral<"/mega/store">;
|
|
204
204
|
path: z.ZodDefault<z.ZodString>;
|
|
205
|
-
acl: z.ZodDefault<z.ZodEnum<["private", "public-read"]
|
|
205
|
+
acl: z.ZodDefault<z.ZodDefault<z.ZodEnum<["private", "public-read"]>>>;
|
|
206
206
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
207
207
|
sign_urls_for: z.ZodOptional<z.ZodNumber>;
|
|
208
208
|
} & {
|
|
@@ -337,7 +337,7 @@ export declare const robotMegaStoreInstructionsWithHiddenFieldsSchema: z.ZodObje
|
|
|
337
337
|
secret: z.ZodOptional<z.ZodString>;
|
|
338
338
|
robot: z.ZodLiteral<"/mega/store">;
|
|
339
339
|
path: z.ZodDefault<z.ZodString>;
|
|
340
|
-
acl: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["private", "public-read"]>]
|
|
340
|
+
acl: z.ZodDefault<z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["private", "public-read"]>]>>>;
|
|
341
341
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
342
342
|
sign_urls_for: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
343
343
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -469,7 +469,7 @@ export declare const robotMegaStoreInstructionsWithHiddenFieldsSchema: z.ZodObje
|
|
|
469
469
|
secret: z.ZodOptional<z.ZodString>;
|
|
470
470
|
robot: z.ZodLiteral<"/mega/store">;
|
|
471
471
|
path: z.ZodDefault<z.ZodString>;
|
|
472
|
-
acl: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["private", "public-read"]>]
|
|
472
|
+
acl: z.ZodDefault<z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["private", "public-read"]>]>>>;
|
|
473
473
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
474
474
|
sign_urls_for: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
475
475
|
result: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<"debug">]>, z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
|
|
@@ -19,7 +19,7 @@ export const robotMegaStoreInstructionsSchema = robotBase
|
|
|
19
19
|
The URL to the result file will be returned in the <dfn>Assembly Status JSON</dfn>.
|
|
20
20
|
`),
|
|
21
21
|
path: storeFilePath,
|
|
22
|
-
acl: storageAcl,
|
|
22
|
+
acl: storageAcl.default('private'),
|
|
23
23
|
headers: z
|
|
24
24
|
.record(z.string())
|
|
25
25
|
.default({ 'Content-Type': '${file.mime}' })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mega-store.js","sourceRoot":"","sources":["../../../../src/alphalib/types/robots/mega-store.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,yBAAyB,EACzB,WAAW,EACX,QAAQ,EACR,SAAS,EACT,cAAc,EACd,QAAQ,EACR,oBAAoB,EACpB,UAAU,EACV,aAAa,GACd,MAAM,+BAA+B,CAAA;AAEtC,MAAM,CAAC,MAAM,IAAI,GAAmB;IAClC,GAAG,cAAc;IACjB,YAAY,EAAE,yBAAyB,CAAC,aAAa,EAAE,uBAAuB,CAAC;IAC/E,wBAAwB,EACtB,iFAAiF;IACnF,cAAc,EAAE,IAAI;IACpB,gBAAgB,EAAE,4DAA4D;IAC9E,YAAY,EAAE,wBAAwB;IACtC,aAAa,EAAE,wCAAwC;IACvD,KAAK,EAAE,wCAAwC;IAC/C,IAAI,EAAE,gBAAgB;CACvB,CAAA;AAED,MAAM,CAAC,MAAM,gCAAgC,GAAG,SAAS;KACtD,KAAK,CAAC,QAAQ,CAAC;KACf,KAAK,CAAC,QAAQ,CAAC;KACf,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC;;CAE5C,CAAC;IACE,IAAI,EAAE,aAAa;IACnB,GAAG,EAAE,UAAU;
|
|
1
|
+
{"version":3,"file":"mega-store.js","sourceRoot":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