transloadit 6.0.1 → 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/README.md +2 -2
- package/dist/Transloadit.d.ts.map +1 -1
- package/dist/Transloadit.js +5 -7
- package/dist/Transloadit.js.map +1 -1
- 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/Transloadit.ts +4 -6
- 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
|
@@ -66,13 +66,14 @@ export declare const robotImageBgremoveInstructionsSchema: z.ZodObject<{
|
|
|
66
66
|
model: z.ZodOptional<z.ZodString>;
|
|
67
67
|
}, "strict", z.ZodTypeAny, {
|
|
68
68
|
user_meta: Record<string, unknown>;
|
|
69
|
+
provider: "auto" | "replicate" | "fal" | "transloadit";
|
|
69
70
|
robot: "/image/bgremove";
|
|
70
71
|
result: boolean;
|
|
71
72
|
force_accept: boolean;
|
|
72
73
|
ignore_errors: string[];
|
|
73
74
|
format: "gif" | "png" | "webp";
|
|
74
|
-
provider: "auto" | "replicate" | "fal" | "transloadit";
|
|
75
75
|
queue?: "batch" | undefined;
|
|
76
|
+
model?: string | undefined;
|
|
76
77
|
use?: string | string[] | {
|
|
77
78
|
name: string;
|
|
78
79
|
as?: string | undefined;
|
|
@@ -89,12 +90,13 @@ export declare const robotImageBgremoveInstructionsSchema: z.ZodObject<{
|
|
|
89
90
|
} | undefined;
|
|
90
91
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
91
92
|
output_meta?: boolean | string[] | Record<string, boolean> | undefined;
|
|
92
|
-
model?: string | undefined;
|
|
93
93
|
select?: "background" | "foreground" | undefined;
|
|
94
94
|
}, {
|
|
95
95
|
robot: "/image/bgremove";
|
|
96
96
|
user_meta?: Record<string, unknown> | undefined;
|
|
97
97
|
queue?: "batch" | undefined;
|
|
98
|
+
provider?: "auto" | "replicate" | "fal" | "transloadit" | undefined;
|
|
99
|
+
model?: string | undefined;
|
|
98
100
|
use?: string | string[] | {
|
|
99
101
|
name: string;
|
|
100
102
|
as?: string | undefined;
|
|
@@ -114,9 +116,7 @@ export declare const robotImageBgremoveInstructionsSchema: z.ZodObject<{
|
|
|
114
116
|
result?: boolean | undefined;
|
|
115
117
|
force_accept?: boolean | undefined;
|
|
116
118
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
117
|
-
model?: string | undefined;
|
|
118
119
|
format?: "gif" | "png" | "webp" | undefined;
|
|
119
|
-
provider?: "auto" | "replicate" | "fal" | "transloadit" | undefined;
|
|
120
120
|
select?: "background" | "foreground" | undefined;
|
|
121
121
|
}>;
|
|
122
122
|
export declare const robotDefinition: RobotDefinition<typeof robotImageBgremoveInstructionsSchema.shape>;
|
|
@@ -184,12 +184,13 @@ export declare const robotImageBgremoveInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
184
184
|
result: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"debug">, z.ZodDefault<z.ZodBoolean>]>>;
|
|
185
185
|
}, "strict", z.ZodTypeAny, {
|
|
186
186
|
user_meta: Record<string, unknown>;
|
|
187
|
+
provider: "auto" | "replicate" | "fal" | "transloadit";
|
|
187
188
|
robot: "/image/bgremove";
|
|
188
189
|
force_accept: boolean;
|
|
189
190
|
ignore_errors: string[];
|
|
190
191
|
format: "gif" | "png" | "webp";
|
|
191
|
-
provider: "auto" | "replicate" | "fal" | "transloadit";
|
|
192
192
|
queue?: "batch" | undefined;
|
|
193
|
+
model?: string | undefined;
|
|
193
194
|
use?: string | string[] | {
|
|
194
195
|
name: string;
|
|
195
196
|
as?: string | undefined;
|
|
@@ -207,12 +208,13 @@ export declare const robotImageBgremoveInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
207
208
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
208
209
|
output_meta?: boolean | string[] | Record<string, boolean> | undefined;
|
|
209
210
|
result?: boolean | "debug" | undefined;
|
|
210
|
-
model?: string | undefined;
|
|
211
211
|
select?: "background" | "foreground" | undefined;
|
|
212
212
|
}, {
|
|
213
213
|
robot: "/image/bgremove";
|
|
214
214
|
user_meta?: Record<string, unknown> | undefined;
|
|
215
215
|
queue?: "batch" | undefined;
|
|
216
|
+
provider?: "auto" | "replicate" | "fal" | "transloadit" | undefined;
|
|
217
|
+
model?: string | undefined;
|
|
216
218
|
use?: string | string[] | {
|
|
217
219
|
name: string;
|
|
218
220
|
as?: string | undefined;
|
|
@@ -232,9 +234,7 @@ export declare const robotImageBgremoveInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
232
234
|
result?: boolean | "debug" | undefined;
|
|
233
235
|
force_accept?: boolean | undefined;
|
|
234
236
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
235
|
-
model?: string | undefined;
|
|
236
237
|
format?: "gif" | "png" | "webp" | undefined;
|
|
237
|
-
provider?: "auto" | "replicate" | "fal" | "transloadit" | undefined;
|
|
238
238
|
select?: "background" | "foreground" | undefined;
|
|
239
239
|
}>, interpolatableRobotImageBgremoveInstructionsSchema: z.ZodObject<{
|
|
240
240
|
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">>]>>;
|
|
@@ -299,13 +299,14 @@ export declare const robotImageBgremoveInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
299
299
|
model: z.ZodOptional<z.ZodString>;
|
|
300
300
|
}, "strict", z.ZodTypeAny, {
|
|
301
301
|
user_meta: Record<string, unknown>;
|
|
302
|
+
provider: string;
|
|
302
303
|
robot: "/image/bgremove";
|
|
303
304
|
result: string | boolean;
|
|
304
305
|
force_accept: string | boolean;
|
|
305
306
|
ignore_errors: string | string[];
|
|
306
307
|
format: string;
|
|
307
|
-
provider: string;
|
|
308
308
|
queue?: string | undefined;
|
|
309
|
+
model?: string | undefined;
|
|
309
310
|
use?: string | string[] | {
|
|
310
311
|
name: string;
|
|
311
312
|
as?: string | undefined;
|
|
@@ -322,12 +323,13 @@ export declare const robotImageBgremoveInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
322
323
|
} | undefined;
|
|
323
324
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
324
325
|
output_meta?: string | boolean | string[] | Record<string, string | boolean> | undefined;
|
|
325
|
-
model?: string | undefined;
|
|
326
326
|
select?: string | undefined;
|
|
327
327
|
}, {
|
|
328
328
|
robot: "/image/bgremove";
|
|
329
329
|
user_meta?: Record<string, unknown> | undefined;
|
|
330
330
|
queue?: string | undefined;
|
|
331
|
+
provider?: string | undefined;
|
|
332
|
+
model?: string | undefined;
|
|
331
333
|
use?: string | string[] | {
|
|
332
334
|
name: string;
|
|
333
335
|
as?: string | undefined;
|
|
@@ -347,9 +349,7 @@ export declare const robotImageBgremoveInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
347
349
|
result?: string | boolean | undefined;
|
|
348
350
|
force_accept?: string | boolean | undefined;
|
|
349
351
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
350
|
-
model?: string | undefined;
|
|
351
352
|
format?: string | undefined;
|
|
352
|
-
provider?: string | undefined;
|
|
353
353
|
select?: string | undefined;
|
|
354
354
|
}>, interpolatableRobotImageBgremoveInstructionsWithHiddenFieldsSchema: z.ZodObject<{
|
|
355
355
|
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">>]>>;
|
|
@@ -414,12 +414,13 @@ export declare const robotImageBgremoveInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
414
414
|
result: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<"debug">]>, z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
|
|
415
415
|
}, "strict", z.ZodTypeAny, {
|
|
416
416
|
user_meta: Record<string, unknown>;
|
|
417
|
+
provider: string;
|
|
417
418
|
robot: "/image/bgremove";
|
|
418
419
|
force_accept: string | boolean;
|
|
419
420
|
ignore_errors: string | string[];
|
|
420
421
|
format: string;
|
|
421
|
-
provider: string;
|
|
422
422
|
queue?: string | undefined;
|
|
423
|
+
model?: string | undefined;
|
|
423
424
|
use?: string | string[] | {
|
|
424
425
|
name: string;
|
|
425
426
|
as?: string | undefined;
|
|
@@ -437,12 +438,13 @@ export declare const robotImageBgremoveInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
437
438
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
438
439
|
output_meta?: string | boolean | string[] | Record<string, string | boolean> | undefined;
|
|
439
440
|
result?: string | boolean | undefined;
|
|
440
|
-
model?: string | undefined;
|
|
441
441
|
select?: string | undefined;
|
|
442
442
|
}, {
|
|
443
443
|
robot: "/image/bgremove";
|
|
444
444
|
user_meta?: Record<string, unknown> | undefined;
|
|
445
445
|
queue?: string | undefined;
|
|
446
|
+
provider?: string | undefined;
|
|
447
|
+
model?: string | undefined;
|
|
446
448
|
use?: string | string[] | {
|
|
447
449
|
name: string;
|
|
448
450
|
as?: string | undefined;
|
|
@@ -462,9 +464,7 @@ export declare const robotImageBgremoveInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
462
464
|
result?: string | boolean | undefined;
|
|
463
465
|
force_accept?: string | boolean | undefined;
|
|
464
466
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
465
|
-
model?: string | undefined;
|
|
466
467
|
format?: string | undefined;
|
|
467
|
-
provider?: string | undefined;
|
|
468
468
|
select?: string | undefined;
|
|
469
469
|
}>;
|
|
470
470
|
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { RobotDefinition, RobotMetaInput, RobotSchemaVariantTypes } from './_instructions-primitives.ts';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
export { imageDescribeFullMetaSchema, imageDescribeFullOutputSchema, imageDescribeLabelSchema, imageDescribeListMetaSchema, } from './_image-describe-output.ts';
|
|
3
4
|
export declare const meta: RobotMetaInput;
|
|
4
5
|
export declare const robotImageDescribeInstructionsSchema: z.ZodObject<{
|
|
5
6
|
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">>]>>;
|
|
@@ -62,16 +63,16 @@ export declare const robotImageDescribeInstructionsSchema: z.ZodObject<{
|
|
|
62
63
|
robot: z.ZodLiteral<"/image/describe">;
|
|
63
64
|
provider: z.ZodDefault<z.ZodEnum<["auto", "aws", "gcp"]>>;
|
|
64
65
|
granularity: z.ZodDefault<z.ZodEnum<["full", "list"]>>;
|
|
65
|
-
format: z.ZodDefault<z.ZodEnum<["json", "meta"
|
|
66
|
+
format: z.ZodDefault<z.ZodEnum<["json", "meta"]>>;
|
|
66
67
|
explicit_descriptions: z.ZodDefault<z.ZodBoolean>;
|
|
67
68
|
}, "strict", z.ZodTypeAny, {
|
|
68
69
|
user_meta: Record<string, unknown>;
|
|
70
|
+
provider: "auto" | "aws" | "gcp";
|
|
69
71
|
robot: "/image/describe";
|
|
70
72
|
result: boolean;
|
|
71
73
|
force_accept: boolean;
|
|
72
74
|
ignore_errors: string[];
|
|
73
|
-
format: "json" | "
|
|
74
|
-
provider: "auto" | "aws" | "gcp";
|
|
75
|
+
format: "json" | "meta";
|
|
75
76
|
granularity: "full" | "list";
|
|
76
77
|
explicit_descriptions: boolean;
|
|
77
78
|
queue?: "batch" | undefined;
|
|
@@ -95,6 +96,7 @@ export declare const robotImageDescribeInstructionsSchema: z.ZodObject<{
|
|
|
95
96
|
robot: "/image/describe";
|
|
96
97
|
user_meta?: Record<string, unknown> | undefined;
|
|
97
98
|
queue?: "batch" | undefined;
|
|
99
|
+
provider?: "auto" | "aws" | "gcp" | undefined;
|
|
98
100
|
use?: string | string[] | {
|
|
99
101
|
name: string;
|
|
100
102
|
as?: string | undefined;
|
|
@@ -114,8 +116,7 @@ export declare const robotImageDescribeInstructionsSchema: z.ZodObject<{
|
|
|
114
116
|
result?: boolean | undefined;
|
|
115
117
|
force_accept?: boolean | undefined;
|
|
116
118
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
117
|
-
format?: "json" | "
|
|
118
|
-
provider?: "auto" | "aws" | "gcp" | undefined;
|
|
119
|
+
format?: "json" | "meta" | undefined;
|
|
119
120
|
granularity?: "full" | "list" | undefined;
|
|
120
121
|
explicit_descriptions?: boolean | undefined;
|
|
121
122
|
}>;
|
|
@@ -178,17 +179,17 @@ export declare const robotImageDescribeInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
178
179
|
robot: z.ZodLiteral<"/image/describe">;
|
|
179
180
|
provider: z.ZodDefault<z.ZodEnum<["auto", "aws", "gcp"]>>;
|
|
180
181
|
granularity: z.ZodDefault<z.ZodEnum<["full", "list"]>>;
|
|
181
|
-
format: z.ZodDefault<z.ZodEnum<["json", "meta"
|
|
182
|
+
format: z.ZodDefault<z.ZodEnum<["json", "meta"]>>;
|
|
182
183
|
explicit_descriptions: z.ZodDefault<z.ZodBoolean>;
|
|
183
184
|
} & {
|
|
184
185
|
result: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"debug">, z.ZodDefault<z.ZodBoolean>]>>;
|
|
185
186
|
}, "strict", z.ZodTypeAny, {
|
|
186
187
|
user_meta: Record<string, unknown>;
|
|
188
|
+
provider: "auto" | "aws" | "gcp";
|
|
187
189
|
robot: "/image/describe";
|
|
188
190
|
force_accept: boolean;
|
|
189
191
|
ignore_errors: string[];
|
|
190
|
-
format: "json" | "
|
|
191
|
-
provider: "auto" | "aws" | "gcp";
|
|
192
|
+
format: "json" | "meta";
|
|
192
193
|
granularity: "full" | "list";
|
|
193
194
|
explicit_descriptions: boolean;
|
|
194
195
|
queue?: "batch" | undefined;
|
|
@@ -213,6 +214,7 @@ export declare const robotImageDescribeInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
213
214
|
robot: "/image/describe";
|
|
214
215
|
user_meta?: Record<string, unknown> | undefined;
|
|
215
216
|
queue?: "batch" | undefined;
|
|
217
|
+
provider?: "auto" | "aws" | "gcp" | undefined;
|
|
216
218
|
use?: string | string[] | {
|
|
217
219
|
name: string;
|
|
218
220
|
as?: string | undefined;
|
|
@@ -232,8 +234,7 @@ export declare const robotImageDescribeInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
232
234
|
result?: boolean | "debug" | undefined;
|
|
233
235
|
force_accept?: boolean | undefined;
|
|
234
236
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
235
|
-
format?: "json" | "
|
|
236
|
-
provider?: "auto" | "aws" | "gcp" | undefined;
|
|
237
|
+
format?: "json" | "meta" | undefined;
|
|
237
238
|
granularity?: "full" | "list" | undefined;
|
|
238
239
|
explicit_descriptions?: boolean | undefined;
|
|
239
240
|
}>, interpolatableRobotImageDescribeInstructionsSchema: z.ZodObject<{
|
|
@@ -295,16 +296,16 @@ export declare const robotImageDescribeInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
295
296
|
robot: z.ZodLiteral<"/image/describe">;
|
|
296
297
|
provider: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["auto", "aws", "gcp"]>]>>;
|
|
297
298
|
granularity: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["full", "list"]>]>>;
|
|
298
|
-
format: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["json", "meta"
|
|
299
|
+
format: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["json", "meta"]>]>>;
|
|
299
300
|
explicit_descriptions: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
300
301
|
}, "strict", z.ZodTypeAny, {
|
|
301
302
|
user_meta: Record<string, unknown>;
|
|
303
|
+
provider: string;
|
|
302
304
|
robot: "/image/describe";
|
|
303
305
|
result: string | boolean;
|
|
304
306
|
force_accept: string | boolean;
|
|
305
307
|
ignore_errors: string | string[];
|
|
306
308
|
format: string;
|
|
307
|
-
provider: string;
|
|
308
309
|
granularity: string;
|
|
309
310
|
explicit_descriptions: string | boolean;
|
|
310
311
|
queue?: string | undefined;
|
|
@@ -328,6 +329,7 @@ export declare const robotImageDescribeInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
328
329
|
robot: "/image/describe";
|
|
329
330
|
user_meta?: Record<string, unknown> | undefined;
|
|
330
331
|
queue?: string | undefined;
|
|
332
|
+
provider?: string | undefined;
|
|
331
333
|
use?: string | string[] | {
|
|
332
334
|
name: string;
|
|
333
335
|
as?: string | undefined;
|
|
@@ -348,7 +350,6 @@ export declare const robotImageDescribeInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
348
350
|
force_accept?: string | boolean | undefined;
|
|
349
351
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
350
352
|
format?: string | undefined;
|
|
351
|
-
provider?: string | undefined;
|
|
352
353
|
granularity?: string | undefined;
|
|
353
354
|
explicit_descriptions?: string | boolean | undefined;
|
|
354
355
|
}>, interpolatableRobotImageDescribeInstructionsWithHiddenFieldsSchema: z.ZodObject<{
|
|
@@ -409,16 +410,16 @@ export declare const robotImageDescribeInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
409
410
|
robot: z.ZodLiteral<"/image/describe">;
|
|
410
411
|
provider: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["auto", "aws", "gcp"]>]>>;
|
|
411
412
|
granularity: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["full", "list"]>]>>;
|
|
412
|
-
format: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["json", "meta"
|
|
413
|
+
format: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["json", "meta"]>]>>;
|
|
413
414
|
explicit_descriptions: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
414
415
|
result: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<"debug">]>, z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
|
|
415
416
|
}, "strict", z.ZodTypeAny, {
|
|
416
417
|
user_meta: Record<string, unknown>;
|
|
418
|
+
provider: string;
|
|
417
419
|
robot: "/image/describe";
|
|
418
420
|
force_accept: string | boolean;
|
|
419
421
|
ignore_errors: string | string[];
|
|
420
422
|
format: string;
|
|
421
|
-
provider: string;
|
|
422
423
|
granularity: string;
|
|
423
424
|
explicit_descriptions: string | boolean;
|
|
424
425
|
queue?: string | undefined;
|
|
@@ -443,6 +444,7 @@ export declare const robotImageDescribeInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
443
444
|
robot: "/image/describe";
|
|
444
445
|
user_meta?: Record<string, unknown> | undefined;
|
|
445
446
|
queue?: string | undefined;
|
|
447
|
+
provider?: string | undefined;
|
|
446
448
|
use?: string | string[] | {
|
|
447
449
|
name: string;
|
|
448
450
|
as?: string | undefined;
|
|
@@ -463,7 +465,6 @@ export declare const robotImageDescribeInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
463
465
|
force_accept?: string | boolean | undefined;
|
|
464
466
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
465
467
|
format?: string | undefined;
|
|
466
|
-
provider?: string | undefined;
|
|
467
468
|
granularity?: string | undefined;
|
|
468
469
|
explicit_descriptions?: string | boolean | undefined;
|
|
469
470
|
}>;
|
|
@@ -474,5 +475,4 @@ export type InterpolatableRobotImageDescribeInstructions = Instructions['interpo
|
|
|
474
475
|
export type InterpolatableRobotImageDescribeInstructionsInput = Instructions['interpolatableInput'];
|
|
475
476
|
export type InterpolatableRobotImageDescribeInstructionsWithHiddenFields = Instructions['interpolatableHiddenOutput'];
|
|
476
477
|
export type InterpolatableRobotImageDescribeInstructionsWithHiddenFieldsInput = Instructions['interpolatableHiddenInput'];
|
|
477
|
-
export {};
|
|
478
478
|
//# sourceMappingURL=image-describe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-describe.d.ts","sourceRoot":"","sources":["../../../../src/alphalib/types/robots/image-describe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAavB,eAAO,MAAM,IAAI,EAAE,cAoBlB,CAAA;AAED,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BtC,CAAA;AAEX,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,OAAO,oCAAoC,CAAC,KAAK,CACtC,CAAA;AAEzD,eAAO,MACa,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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, granularitySchema, robotArtificialIntelligenceMeta, robotBase, robotParameterDocs, robotUse, } from "./_instructions-primitives.js";
|
|
3
|
+
export { imageDescribeFullMetaSchema, imageDescribeFullOutputSchema, imageDescribeLabelSchema, imageDescribeListMetaSchema, } from "./_image-describe-output.js";
|
|
3
4
|
export const meta = {
|
|
4
5
|
...robotArtificialIntelligenceMeta,
|
|
5
6
|
example_code: createProcessingExample('described', '/image/describe', {
|
|
@@ -31,7 +32,7 @@ You can use the labels that we return in your application to automatically class
|
|
|
31
32
|
Whether to return a full response (\`"full"\`) including confidence percentages for each found label, or just a flat list of labels (\`"list"\`).
|
|
32
33
|
`),
|
|
33
34
|
format: z
|
|
34
|
-
.enum(['json', 'meta'
|
|
35
|
+
.enum(['json', 'meta'])
|
|
35
36
|
.default('json')
|
|
36
37
|
.describe(`
|
|
37
38
|
In what format to return the descriptions.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-describe.js","sourceRoot":"","sources":["../../../../src/alphalib/types/robots/image-describe.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,WAAW,EACX,iBAAiB,EACjB,+BAA+B,EAC/B,SAAS,EACT,kBAAkB,EAClB,QAAQ,GACT,MAAM,+BAA+B,CAAA;AAEtC,MAAM,CAAC,MAAM,IAAI,GAAmB;IAClC,GAAG,+BAA+B;IAClC,YAAY,EAAE,uBAAuB,CAAC,WAAW,EAAE,iBAAiB,EAAE;QACpE,QAAQ,EAAE,KAAK;KAChB,CAAC;IACF,wBAAwB,EACtB,6EAA6E;IAC/E,oBAAoB,EAAE;;;CAGvB;IACC,aAAa,EAAE,yBAAyB;IACxC,gBAAgB,EAAE,gEAAgE;IAClF,YAAY,EAAE,WAAW;IACzB,YAAY,EAAE,mBAAmB;IACjC,aAAa,EAAE,6BAA6B;IAC5C,KAAK,EAAE,6BAA6B;IACpC,oBAAoB,EAAE,GAAG;IACzB,IAAI,EAAE,oBAAoB;IAC1B,gBAAgB,EAAE,MAAM;CACzB,CAAA;AAED,MAAM,CAAC,MAAM,oCAAoC,GAAG,SAAS;KAC1D,KAAK,CAAC,QAAQ,CAAC;KACf,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC;;CAEhD,CAAC;IACE,QAAQ,EAAE,sBAAsB,CAAC,QAAQ,CAAC,kBAAkB,CAAC,WAAW,CAAC,WAAW,CAAC;IACrF,WAAW,EAAE,iBAAiB,CAAC,QAAQ,CAAC;;CAE3C,CAAC;IACE,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"image-describe.js","sourceRoot":"","sources":["../../../../src/alphalib/types/robots/image-describe.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,WAAW,EACX,iBAAiB,EACjB,+BAA+B,EAC/B,SAAS,EACT,kBAAkB,EAClB,QAAQ,GACT,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,6BAA6B,CAAA;AAEpC,MAAM,CAAC,MAAM,IAAI,GAAmB;IAClC,GAAG,+BAA+B;IAClC,YAAY,EAAE,uBAAuB,CAAC,WAAW,EAAE,iBAAiB,EAAE;QACpE,QAAQ,EAAE,KAAK;KAChB,CAAC;IACF,wBAAwB,EACtB,6EAA6E;IAC/E,oBAAoB,EAAE;;;CAGvB;IACC,aAAa,EAAE,yBAAyB;IACxC,gBAAgB,EAAE,gEAAgE;IAClF,YAAY,EAAE,WAAW;IACzB,YAAY,EAAE,mBAAmB;IACjC,aAAa,EAAE,6BAA6B;IAC5C,KAAK,EAAE,6BAA6B;IACpC,oBAAoB,EAAE,GAAG;IACzB,IAAI,EAAE,oBAAoB;IAC1B,gBAAgB,EAAE,MAAM;CACzB,CAAA;AAED,MAAM,CAAC,MAAM,oCAAoC,GAAG,SAAS;KAC1D,KAAK,CAAC,QAAQ,CAAC;KACf,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC;;CAEhD,CAAC;IACE,QAAQ,EAAE,sBAAsB,CAAC,QAAQ,CAAC,kBAAkB,CAAC,WAAW,CAAC,WAAW,CAAC;IACrF,WAAW,EAAE,iBAAiB,CAAC,QAAQ,CAAC;;CAE3C,CAAC;IACE,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;SACtB,OAAO,CAAC,MAAM,CAAC;SACf,QAAQ,CAAC;;;;;CAKf,CAAC;IACE,qBAAqB,EAAE,CAAC;SACrB,OAAO,EAAE;SACT,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CAAC;;;;;;CAMf,CAAC;CACC,CAAC;KACD,MAAM,EAAE,CAAA;AAEX,MAAM,CAAC,MAAM,eAAe,GAC1B,WAAW,CAAC,IAAI,EAAE,oCAAoC,CAAC,CAAA;AAEzD,MAAM,CAAC,MAAM,EACX,gBAAgB,EAAE,oDAAoD,EACtE,cAAc,EAAE,kDAAkD,EAClE,8BAA8B,EAC5B,kEAAkE,GACrE,GAAG,eAAe,CAAA"}
|
|
@@ -2,32 +2,7 @@ import type { RobotDefinition, RobotMetaInput, RobotSchemaVariantTypes } from '.
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const imageFacedetectFaceSelectionModes: readonly ["each", "group", "max-confidence", "max-size"];
|
|
4
4
|
export declare const imageFacedetectFaceSelectionModeSchema: z.ZodEnum<["each", "group", "max-confidence", "max-size"]>;
|
|
5
|
-
export
|
|
6
|
-
confidence: z.ZodOptional<z.ZodNumber>;
|
|
7
|
-
height: z.ZodNumber;
|
|
8
|
-
width: z.ZodNumber;
|
|
9
|
-
x1: z.ZodNumber;
|
|
10
|
-
x2: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
y1: z.ZodNumber;
|
|
12
|
-
y2: z.ZodOptional<z.ZodNumber>;
|
|
13
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
14
|
-
confidence: z.ZodOptional<z.ZodNumber>;
|
|
15
|
-
height: z.ZodNumber;
|
|
16
|
-
width: z.ZodNumber;
|
|
17
|
-
x1: z.ZodNumber;
|
|
18
|
-
x2: z.ZodOptional<z.ZodNumber>;
|
|
19
|
-
y1: z.ZodNumber;
|
|
20
|
-
y2: z.ZodOptional<z.ZodNumber>;
|
|
21
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
22
|
-
confidence: z.ZodOptional<z.ZodNumber>;
|
|
23
|
-
height: z.ZodNumber;
|
|
24
|
-
width: z.ZodNumber;
|
|
25
|
-
x1: z.ZodNumber;
|
|
26
|
-
x2: z.ZodOptional<z.ZodNumber>;
|
|
27
|
-
y1: z.ZodNumber;
|
|
28
|
-
y2: z.ZodOptional<z.ZodNumber>;
|
|
29
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
30
|
-
export type ImageFacedetectFaceCoordinates = z.infer<typeof imageFacedetectFaceCoordinatesSchema>;
|
|
5
|
+
export { type ImageFacedetectFaceCoordinates, imageFacedetectFaceCoordinatesSchema, } from './_image-facedetect-output.ts';
|
|
31
6
|
export declare const meta: RobotMetaInput;
|
|
32
7
|
export declare const robotImageFacedetectInstructionsSchema: z.ZodObject<{
|
|
33
8
|
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">>]>>;
|
|
@@ -97,13 +72,13 @@ export declare const robotImageFacedetectInstructionsSchema: z.ZodObject<{
|
|
|
97
72
|
}, "strict", z.ZodTypeAny, {
|
|
98
73
|
faces: number | "each" | "group" | "max-confidence" | "max-size";
|
|
99
74
|
user_meta: Record<string, unknown>;
|
|
75
|
+
provider: "auto" | "aws" | "gcp";
|
|
100
76
|
robot: "/image/facedetect";
|
|
101
77
|
result: boolean;
|
|
102
78
|
force_accept: boolean;
|
|
103
79
|
ignore_errors: string[];
|
|
104
80
|
crop: boolean;
|
|
105
81
|
format: "preserve" | "jpg" | "png" | "tiff";
|
|
106
|
-
provider: "auto" | "aws" | "gcp";
|
|
107
82
|
crop_padding: string;
|
|
108
83
|
min_confidence: number;
|
|
109
84
|
queue?: "batch" | undefined;
|
|
@@ -128,6 +103,7 @@ export declare const robotImageFacedetectInstructionsSchema: z.ZodObject<{
|
|
|
128
103
|
faces?: number | "each" | "group" | "max-confidence" | "max-size" | undefined;
|
|
129
104
|
user_meta?: Record<string, unknown> | undefined;
|
|
130
105
|
queue?: "batch" | undefined;
|
|
106
|
+
provider?: "auto" | "aws" | "gcp" | undefined;
|
|
131
107
|
use?: string | string[] | {
|
|
132
108
|
name: string;
|
|
133
109
|
as?: string | undefined;
|
|
@@ -149,7 +125,6 @@ export declare const robotImageFacedetectInstructionsSchema: z.ZodObject<{
|
|
|
149
125
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
150
126
|
crop?: boolean | undefined;
|
|
151
127
|
format?: "preserve" | "jpg" | "png" | "tiff" | undefined;
|
|
152
|
-
provider?: "auto" | "aws" | "gcp" | undefined;
|
|
153
128
|
crop_padding?: string | undefined;
|
|
154
129
|
min_confidence?: number | undefined;
|
|
155
130
|
}>;
|
|
@@ -221,12 +196,12 @@ export declare const robotImageFacedetectInstructionsWithHiddenFieldsSchema: z.Z
|
|
|
221
196
|
}, "strict", z.ZodTypeAny, {
|
|
222
197
|
faces: number | "each" | "group" | "max-confidence" | "max-size";
|
|
223
198
|
user_meta: Record<string, unknown>;
|
|
199
|
+
provider: "auto" | "aws" | "gcp";
|
|
224
200
|
robot: "/image/facedetect";
|
|
225
201
|
force_accept: boolean;
|
|
226
202
|
ignore_errors: string[];
|
|
227
203
|
crop: boolean;
|
|
228
204
|
format: "preserve" | "jpg" | "png" | "tiff";
|
|
229
|
-
provider: "auto" | "aws" | "gcp";
|
|
230
205
|
crop_padding: string;
|
|
231
206
|
min_confidence: number;
|
|
232
207
|
queue?: "batch" | undefined;
|
|
@@ -252,6 +227,7 @@ export declare const robotImageFacedetectInstructionsWithHiddenFieldsSchema: z.Z
|
|
|
252
227
|
faces?: number | "each" | "group" | "max-confidence" | "max-size" | undefined;
|
|
253
228
|
user_meta?: Record<string, unknown> | undefined;
|
|
254
229
|
queue?: "batch" | undefined;
|
|
230
|
+
provider?: "auto" | "aws" | "gcp" | undefined;
|
|
255
231
|
use?: string | string[] | {
|
|
256
232
|
name: string;
|
|
257
233
|
as?: string | undefined;
|
|
@@ -273,7 +249,6 @@ export declare const robotImageFacedetectInstructionsWithHiddenFieldsSchema: z.Z
|
|
|
273
249
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
274
250
|
crop?: boolean | undefined;
|
|
275
251
|
format?: "preserve" | "jpg" | "png" | "tiff" | undefined;
|
|
276
|
-
provider?: "auto" | "aws" | "gcp" | undefined;
|
|
277
252
|
crop_padding?: string | undefined;
|
|
278
253
|
min_confidence?: number | undefined;
|
|
279
254
|
}>, interpolatableRobotImageFacedetectInstructionsSchema: z.ZodObject<{
|
|
@@ -342,13 +317,13 @@ export declare const robotImageFacedetectInstructionsWithHiddenFieldsSchema: z.Z
|
|
|
342
317
|
}, "strict", z.ZodTypeAny, {
|
|
343
318
|
faces: string | number;
|
|
344
319
|
user_meta: Record<string, unknown>;
|
|
320
|
+
provider: string;
|
|
345
321
|
robot: "/image/facedetect";
|
|
346
322
|
result: string | boolean;
|
|
347
323
|
force_accept: string | boolean;
|
|
348
324
|
ignore_errors: string | string[];
|
|
349
325
|
crop: string | boolean;
|
|
350
326
|
format: string;
|
|
351
|
-
provider: string;
|
|
352
327
|
crop_padding: string;
|
|
353
328
|
min_confidence: string | number;
|
|
354
329
|
queue?: string | undefined;
|
|
@@ -373,6 +348,7 @@ export declare const robotImageFacedetectInstructionsWithHiddenFieldsSchema: z.Z
|
|
|
373
348
|
faces?: string | number | undefined;
|
|
374
349
|
user_meta?: Record<string, unknown> | undefined;
|
|
375
350
|
queue?: string | undefined;
|
|
351
|
+
provider?: string | undefined;
|
|
376
352
|
use?: string | string[] | {
|
|
377
353
|
name: string;
|
|
378
354
|
as?: string | undefined;
|
|
@@ -394,7 +370,6 @@ export declare const robotImageFacedetectInstructionsWithHiddenFieldsSchema: z.Z
|
|
|
394
370
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
395
371
|
crop?: string | boolean | undefined;
|
|
396
372
|
format?: string | undefined;
|
|
397
|
-
provider?: string | undefined;
|
|
398
373
|
crop_padding?: string | undefined;
|
|
399
374
|
min_confidence?: string | number | undefined;
|
|
400
375
|
}>, interpolatableRobotImageFacedetectInstructionsWithHiddenFieldsSchema: z.ZodObject<{
|
|
@@ -463,12 +438,12 @@ export declare const robotImageFacedetectInstructionsWithHiddenFieldsSchema: z.Z
|
|
|
463
438
|
}, "strict", z.ZodTypeAny, {
|
|
464
439
|
faces: string | number;
|
|
465
440
|
user_meta: Record<string, unknown>;
|
|
441
|
+
provider: string;
|
|
466
442
|
robot: "/image/facedetect";
|
|
467
443
|
force_accept: string | boolean;
|
|
468
444
|
ignore_errors: string | string[];
|
|
469
445
|
crop: string | boolean;
|
|
470
446
|
format: string;
|
|
471
|
-
provider: string;
|
|
472
447
|
crop_padding: string;
|
|
473
448
|
min_confidence: string | number;
|
|
474
449
|
queue?: string | undefined;
|
|
@@ -494,6 +469,7 @@ export declare const robotImageFacedetectInstructionsWithHiddenFieldsSchema: z.Z
|
|
|
494
469
|
faces?: string | number | undefined;
|
|
495
470
|
user_meta?: Record<string, unknown> | undefined;
|
|
496
471
|
queue?: string | undefined;
|
|
472
|
+
provider?: string | undefined;
|
|
497
473
|
use?: string | string[] | {
|
|
498
474
|
name: string;
|
|
499
475
|
as?: string | undefined;
|
|
@@ -515,7 +491,6 @@ export declare const robotImageFacedetectInstructionsWithHiddenFieldsSchema: z.Z
|
|
|
515
491
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
516
492
|
crop?: string | boolean | undefined;
|
|
517
493
|
format?: string | undefined;
|
|
518
|
-
provider?: string | undefined;
|
|
519
494
|
crop_padding?: string | undefined;
|
|
520
495
|
min_confidence?: string | number | undefined;
|
|
521
496
|
}>;
|
|
@@ -526,5 +501,4 @@ export type InterpolatableRobotImageFacedetectInstructions = Instructions['inter
|
|
|
526
501
|
export type InterpolatableRobotImageFacedetectInstructionsInput = Instructions['interpolatableInput'];
|
|
527
502
|
export type InterpolatableRobotImageFacedetectInstructionsWithHiddenFields = Instructions['interpolatableHiddenOutput'];
|
|
528
503
|
export type InterpolatableRobotImageFacedetectInstructionsWithHiddenFieldsInput = Instructions['interpolatableHiddenInput'];
|
|
529
|
-
export {};
|
|
530
504
|
//# sourceMappingURL=image-facedetect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-facedetect.d.ts","sourceRoot":"","sources":["../../../../src/alphalib/types/robots/image-facedetect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAYvB,eAAO,MAAM,iCAAiC,0DAKpC,CAAA;AAEV,eAAO,MAAM,sCAAsC,4DAA4C,CAAA;AAE/F,
|
|
1
|
+
{"version":3,"file":"image-facedetect.d.ts","sourceRoot":"","sources":["../../../../src/alphalib/types/robots/image-facedetect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,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c,CAAC,CAAA;AAC3F,MAAM,MAAM,8CAA8C,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAChG,MAAM,MAAM,mDAAmD,GAC7D,YAAY,CAAC,qBAAqB,CAAC,CAAA;AACrC,MAAM,MAAM,8DAA8D,GACxE,YAAY,CAAC,4BAA4B,CAAC,CAAA;AAC5C,MAAM,MAAM,mEAAmE,GAC7E,YAAY,CAAC,2BAA2B,CAAC,CAAA"}
|
|
@@ -7,17 +7,7 @@ export const imageFacedetectFaceSelectionModes = [
|
|
|
7
7
|
'max-size',
|
|
8
8
|
];
|
|
9
9
|
export const imageFacedetectFaceSelectionModeSchema = z.enum(imageFacedetectFaceSelectionModes);
|
|
10
|
-
export
|
|
11
|
-
.object({
|
|
12
|
-
confidence: z.number().optional(),
|
|
13
|
-
height: z.number(),
|
|
14
|
-
width: z.number(),
|
|
15
|
-
x1: z.number(),
|
|
16
|
-
x2: z.number().optional(),
|
|
17
|
-
y1: z.number(),
|
|
18
|
-
y2: z.number().optional(),
|
|
19
|
-
})
|
|
20
|
-
.passthrough();
|
|
10
|
+
export { imageFacedetectFaceCoordinatesSchema, } from "./_image-facedetect-output.js";
|
|
21
11
|
export const meta = {
|
|
22
12
|
...robotArtificialIntelligenceMeta,
|
|
23
13
|
example_code: createProcessingExample('faces_detected', '/image/facedetect', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-facedetect.js","sourceRoot":"","sources":["../../../../src/alphalib/types/robots/image-facedetect.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,WAAW,EACX,+BAA+B,EAC/B,SAAS,EACT,kBAAkB,EAClB,QAAQ,GACT,MAAM,+BAA+B,CAAA;AAEtC,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,MAAM;IACN,OAAO;IACP,gBAAgB;IAChB,UAAU;CACF,CAAA;AAEV,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAA;AAE/F,
|
|
1
|
+
{"version":3,"file":"image-facedetect.js","sourceRoot":"","sources":["../../../../src/alphalib/types/robots/image-facedetect.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,WAAW,EACX,+BAA+B,EAC/B,SAAS,EACT,kBAAkB,EAClB,QAAQ,GACT,MAAM,+BAA+B,CAAA;AAEtC,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,MAAM;IACN,OAAO;IACP,gBAAgB;IAChB,UAAU;CACF,CAAA;AAEV,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAA;AAE/F,OAAO,EAEL,oCAAoC,GACrC,MAAM,+BAA+B,CAAA;AAEtC,MAAM,CAAC,MAAM,IAAI,GAAmB;IAClC,GAAG,+BAA+B;IAClC,YAAY,EAAE,uBAAuB,CAAC,gBAAgB,EAAE,mBAAmB,EAAE;QAC3E,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,MAAM;QACb,YAAY,EAAE,MAAM;KACrB,CAAC;IACF,wBAAwB,EACtB,8EAA8E;IAChF,aAAa,EAAE,yBAAyB;IACxC,gBAAgB,EACd,uGAAuG;IACzG,YAAY,EAAE,QAAQ;IACtB,YAAY,EAAE,cAAc;IAC5B,aAAa,EAAE,wBAAwB;IACvC,KAAK,EAAE,wBAAwB;IAC/B,oBAAoB,EAAE,GAAG;IACzB,IAAI,EAAE,sBAAsB;IAC5B,cAAc,EAAE,EAAE;IAClB,gBAAgB,EAAE,MAAM;CACzB,CAAA;AAED,MAAM,CAAC,MAAM,sCAAsC,GAAG,SAAS;KAC5D,KAAK,CAAC,QAAQ,CAAC;KACf,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,OAAO,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