@transloadit/zod 4.3.3 → 4.3.4
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/v3/assemblyStatus.d.ts +8572 -4
- package/dist/v3/assemblyStatus.d.ts.map +1 -1
- package/dist/v3/assemblyStatus.js +17 -0
- package/dist/v3/robots/_instructions-primitives.d.ts +14 -9
- package/dist/v3/robots/_instructions-primitives.d.ts.map +1 -1
- package/dist/v3/robots/_instructions-primitives.js +34 -36
- package/dist/v3/robots/assembly-savejson.d.ts +79 -0
- package/dist/v3/robots/assembly-savejson.d.ts.map +1 -1
- package/dist/v3/robots/assembly-savejson.js +7 -0
- package/dist/v3/robots/file-filter.d.ts +2 -0
- package/dist/v3/robots/file-filter.d.ts.map +1 -1
- package/dist/v3/robots/file-filter.js +2 -1
- package/dist/v3/robots/http-import.d.ts +12 -0
- package/dist/v3/robots/http-import.d.ts.map +1 -1
- package/dist/v3/robots/http-import.js +8 -0
- package/dist/v3/robots/image-facedetect.d.ts +28 -0
- package/dist/v3/robots/image-facedetect.d.ts.map +1 -1
- package/dist/v3/robots/image-facedetect.js +19 -1
- package/dist/v3/robots/speech-transcribe.d.ts +38 -8
- package/dist/v3/robots/speech-transcribe.d.ts.map +1 -1
- package/dist/v3/robots/speech-transcribe.js +60 -5
- package/dist/v3/robots/video-encode.d.ts.map +1 -1
- package/dist/v3/robots/video-encode.js +2 -0
- package/dist/v4/assemblyStatus.d.ts +188 -0
- package/dist/v4/assemblyStatus.d.ts.map +1 -1
- package/dist/v4/assemblyStatus.js +17 -0
- package/dist/v4/robots/_instructions-primitives.d.ts +14 -9
- package/dist/v4/robots/_instructions-primitives.d.ts.map +1 -1
- package/dist/v4/robots/_instructions-primitives.js +34 -36
- package/dist/v4/robots/assembly-savejson.d.ts +51 -0
- package/dist/v4/robots/assembly-savejson.d.ts.map +1 -1
- package/dist/v4/robots/assembly-savejson.js +7 -0
- package/dist/v4/robots/file-filter.d.ts +2 -0
- package/dist/v4/robots/file-filter.d.ts.map +1 -1
- package/dist/v4/robots/file-filter.js +2 -1
- package/dist/v4/robots/http-import.d.ts +4 -0
- package/dist/v4/robots/http-import.d.ts.map +1 -1
- package/dist/v4/robots/http-import.js +8 -0
- package/dist/v4/robots/image-facedetect.d.ts +17 -0
- package/dist/v4/robots/image-facedetect.d.ts.map +1 -1
- package/dist/v4/robots/image-facedetect.js +19 -1
- package/dist/v4/robots/speech-transcribe.d.ts +18 -4
- package/dist/v4/robots/speech-transcribe.d.ts.map +1 -1
- package/dist/v4/robots/speech-transcribe.js +60 -5
- package/dist/v4/robots/video-encode.d.ts.map +1 -1
- package/dist/v4/robots/video-encode.js +2 -0
- package/package.json +2 -2
|
@@ -27,7 +27,47 @@ export declare const robotAssemblySavejsonInstructionsSchema: z.ZodObject<{
|
|
|
27
27
|
force_accept?: boolean | undefined;
|
|
28
28
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
29
29
|
}>;
|
|
30
|
+
export declare const robotAssemblySavejsonInstructionsWithHiddenFieldsSchema: z.ZodObject<{
|
|
31
|
+
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">>]>>;
|
|
32
|
+
output_meta: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodBoolean>, z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
|
|
33
|
+
result: z.ZodDefault<z.ZodBoolean>;
|
|
34
|
+
queue: z.ZodOptional<z.ZodEnum<["batch"]>>;
|
|
35
|
+
force_accept: z.ZodDefault<z.ZodBoolean>;
|
|
36
|
+
ignore_errors: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["meta", "execute"]>, "many">]>, string[], boolean | ("meta" | "execute")[]>>;
|
|
37
|
+
} & {
|
|
38
|
+
robot: z.ZodLiteral<"/assembly/savejson">;
|
|
39
|
+
} & {
|
|
40
|
+
assembly_id: z.ZodOptional<z.ZodString>;
|
|
41
|
+
expiry: z.ZodOptional<z.ZodString>;
|
|
42
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
43
|
+
status: z.ZodOptional<z.ZodUnknown>;
|
|
44
|
+
}, "strict", z.ZodTypeAny, {
|
|
45
|
+
robot: "/assembly/savejson";
|
|
46
|
+
result: boolean;
|
|
47
|
+
force_accept: boolean;
|
|
48
|
+
ignore_errors: string[];
|
|
49
|
+
status?: unknown;
|
|
50
|
+
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
51
|
+
output_meta?: boolean | string[] | Record<string, boolean> | undefined;
|
|
52
|
+
queue?: "batch" | undefined;
|
|
53
|
+
assembly_id?: string | undefined;
|
|
54
|
+
expiry?: string | undefined;
|
|
55
|
+
instance?: string | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
robot: "/assembly/savejson";
|
|
58
|
+
status?: unknown;
|
|
59
|
+
interpolate?: boolean | "false" | "true" | Record<string, boolean | "false" | "true"> | undefined;
|
|
60
|
+
output_meta?: boolean | string[] | Record<string, boolean> | undefined;
|
|
61
|
+
result?: boolean | undefined;
|
|
62
|
+
queue?: "batch" | undefined;
|
|
63
|
+
force_accept?: boolean | undefined;
|
|
64
|
+
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
65
|
+
assembly_id?: string | undefined;
|
|
66
|
+
expiry?: string | undefined;
|
|
67
|
+
instance?: string | undefined;
|
|
68
|
+
}>;
|
|
30
69
|
export type RobotAssemblySavejsonInstructions = z.infer<typeof robotAssemblySavejsonInstructionsSchema>;
|
|
70
|
+
export type RobotAssemblySavejsonInstructionsWithHiddenFields = z.infer<typeof robotAssemblySavejsonInstructionsWithHiddenFieldsSchema>;
|
|
31
71
|
export declare const interpolatableRobotAssemblySavejsonInstructionsSchema: z.ZodObject<{
|
|
32
72
|
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">>]>>;
|
|
33
73
|
output_meta: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>, z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>>;
|
|
@@ -55,4 +95,43 @@ export declare const interpolatableRobotAssemblySavejsonInstructionsSchema: z.Zo
|
|
|
55
95
|
}>;
|
|
56
96
|
export type InterpolatableRobotAssemblySavejsonInstructions = InterpolatableRobotAssemblySavejsonInstructionsInput;
|
|
57
97
|
export type InterpolatableRobotAssemblySavejsonInstructionsInput = z.input<typeof interpolatableRobotAssemblySavejsonInstructionsSchema>;
|
|
98
|
+
export declare const interpolatableRobotAssemblySavejsonInstructionsWithHiddenFieldsSchema: z.ZodObject<{
|
|
99
|
+
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">>]>>;
|
|
100
|
+
output_meta: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>, z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>>;
|
|
101
|
+
result: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
102
|
+
queue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEnum<["batch"]>]>>;
|
|
103
|
+
force_accept: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
104
|
+
ignore_errors: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["meta", "execute"]>, "many">]>, string[], boolean | ("meta" | "execute")[]>]>>;
|
|
105
|
+
robot: z.ZodLiteral<"/assembly/savejson">;
|
|
106
|
+
assembly_id: z.ZodOptional<z.ZodString>;
|
|
107
|
+
expiry: z.ZodOptional<z.ZodString>;
|
|
108
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
109
|
+
status: z.ZodOptional<z.ZodUnknown>;
|
|
110
|
+
}, "strict", z.ZodTypeAny, {
|
|
111
|
+
robot: "/assembly/savejson";
|
|
112
|
+
result: string | boolean;
|
|
113
|
+
force_accept: string | boolean;
|
|
114
|
+
ignore_errors: string | string[];
|
|
115
|
+
status?: unknown;
|
|
116
|
+
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
117
|
+
output_meta?: string | boolean | string[] | Record<string, string | boolean> | undefined;
|
|
118
|
+
queue?: string | undefined;
|
|
119
|
+
assembly_id?: string | undefined;
|
|
120
|
+
expiry?: string | undefined;
|
|
121
|
+
instance?: string | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
robot: "/assembly/savejson";
|
|
124
|
+
status?: unknown;
|
|
125
|
+
interpolate?: boolean | "false" | "true" | Record<string, boolean | "false" | "true"> | undefined;
|
|
126
|
+
output_meta?: string | boolean | string[] | Record<string, string | boolean> | undefined;
|
|
127
|
+
result?: string | boolean | undefined;
|
|
128
|
+
queue?: string | undefined;
|
|
129
|
+
force_accept?: string | boolean | undefined;
|
|
130
|
+
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
131
|
+
assembly_id?: string | undefined;
|
|
132
|
+
expiry?: string | undefined;
|
|
133
|
+
instance?: string | undefined;
|
|
134
|
+
}>;
|
|
135
|
+
export type InterpolatableRobotAssemblySavejsonInstructionsWithHiddenFields = z.infer<typeof interpolatableRobotAssemblySavejsonInstructionsWithHiddenFieldsSchema>;
|
|
136
|
+
export type InterpolatableRobotAssemblySavejsonInstructionsWithHiddenFieldsInput = z.input<typeof interpolatableRobotAssemblySavejsonInstructionsWithHiddenFieldsSchema>;
|
|
58
137
|
//# sourceMappingURL=assembly-savejson.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assembly-savejson.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/assembly-savejson.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAI1B,eAAO,MAAM,IAAI,EAAE,cAgClB,CAAA;AAED,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;EAMzC,CAAA;AAEX,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAA;AAED,eAAO,MAAM,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;EAEjE,CAAA;AACD,MAAM,MAAM,+CAA+C,GACzD,oDAAoD,CAAA;AAEtD,MAAM,MAAM,oDAAoD,GAAG,CAAC,CAAC,KAAK,CACxE,OAAO,qDAAqD,CAC7D,CAAA"}
|
|
1
|
+
{"version":3,"file":"assembly-savejson.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/assembly-savejson.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAI1B,eAAO,MAAM,IAAI,EAAE,cAgClB,CAAA;AAED,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;EAMzC,CAAA;AAEX,eAAO,MAAM,uDAAuD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMhE,CAAA;AAEJ,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAA;AACD,MAAM,MAAM,iDAAiD,GAAG,CAAC,CAAC,KAAK,CACrE,OAAO,uDAAuD,CAC/D,CAAA;AAED,eAAO,MAAM,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;EAEjE,CAAA;AACD,MAAM,MAAM,+CAA+C,GACzD,oDAAoD,CAAA;AAEtD,MAAM,MAAM,oDAAoD,GAAG,CAAC,CAAC,KAAK,CACxE,OAAO,qDAAqD,CAC7D,CAAA;AAED,eAAO,MAAM,qEAAqE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACP,CAAA;AAC3E,MAAM,MAAM,+DAA+D,GAAG,CAAC,CAAC,KAAK,CACnF,OAAO,qEAAqE,CAC7E,CAAA;AAED,MAAM,MAAM,oEAAoE,GAAG,CAAC,CAAC,KAAK,CACxF,OAAO,qEAAqE,CAC7E,CAAA"}
|
|
@@ -40,4 +40,11 @@ TODO: Add robot description here
|
|
|
40
40
|
`),
|
|
41
41
|
})
|
|
42
42
|
.strict();
|
|
43
|
+
export const robotAssemblySavejsonInstructionsWithHiddenFieldsSchema = robotAssemblySavejsonInstructionsSchema.extend({
|
|
44
|
+
assembly_id: z.string().optional(),
|
|
45
|
+
expiry: z.string().optional(),
|
|
46
|
+
instance: z.string().optional(),
|
|
47
|
+
status: z.unknown().optional(),
|
|
48
|
+
});
|
|
43
49
|
export const interpolatableRobotAssemblySavejsonInstructionsSchema = interpolateRobot(robotAssemblySavejsonInstructionsSchema);
|
|
50
|
+
export const interpolatableRobotAssemblySavejsonInstructionsWithHiddenFieldsSchema = interpolateRobot(robotAssemblySavejsonInstructionsWithHiddenFieldsSchema);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { RobotMetaInput } from './_instructions-primitives.ts';
|
|
2
2
|
import { z } from 'zod/v3';
|
|
3
|
+
export type { FilterCondition, FilterConditionOperator, FilterConditionPart, } from './_instructions-primitives.ts';
|
|
4
|
+
export { filterConditionOperatorSchema, filterConditionPartSchema, } from './_instructions-primitives.ts';
|
|
3
5
|
export declare const meta: RobotMetaInput;
|
|
4
6
|
export declare const robotFileFilterInstructionsSchema: z.ZodObject<{
|
|
5
7
|
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">>]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-filter.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/file-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAS1B,eAAO,MAAM,IAAI,EAAE,cAsClB,CAAA;AAED,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiHnC,CAAA;AAEX,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK1D,CAAA;AAEJ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAC3F,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAC/D,OAAO,iDAAiD,CACzD,CAAA;AAED,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3D,CAAA;AACD,MAAM,MAAM,yCAAyC,GACnD,8CAA8C,CAAA;AAEhD,MAAM,MAAM,8CAA8C,GAAG,CAAC,CAAC,KAAK,CAClE,OAAO,+CAA+C,CACvD,CAAA;AAED,eAAO,MAAM,+DAA+D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3E,CAAA;AACD,MAAM,MAAM,yDAAyD,GAAG,CAAC,CAAC,KAAK,CAC7E,OAAO,+DAA+D,CACvE,CAAA;AACD,MAAM,MAAM,8DAA8D,GAAG,CAAC,CAAC,KAAK,CAClF,OAAO,+DAA+D,CACvE,CAAA"}
|
|
1
|
+
{"version":3,"file":"file-filter.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/file-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAS1B,YAAY,EACV,eAAe,EACf,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,+BAA+B,CAAA;AAEtC,eAAO,MAAM,IAAI,EAAE,cAsClB,CAAA;AAED,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiHnC,CAAA;AAEX,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK1D,CAAA;AAEJ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAC3F,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAC/D,OAAO,iDAAiD,CACzD,CAAA;AAED,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3D,CAAA;AACD,MAAM,MAAM,yCAAyC,GACnD,8CAA8C,CAAA;AAEhD,MAAM,MAAM,8CAA8C,GAAG,CAAC,CAAC,KAAK,CAClE,OAAO,+CAA+C,CACvD,CAAA;AAED,eAAO,MAAM,+DAA+D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3E,CAAA;AACD,MAAM,MAAM,yDAAyD,GAAG,CAAC,CAAC,KAAK,CAC7E,OAAO,+DAA+D,CACvE,CAAA;AACD,MAAM,MAAM,8DAA8D,GAAG,CAAC,CAAC,KAAK,CAClF,OAAO,+DAA+D,CACvE,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
2
|
import { filterCondition, interpolateRobot, robotBase, robotUse, } from "./_instructions-primitives.js";
|
|
3
|
+
export { filterConditionOperatorSchema, filterConditionPartSchema, } from "./_instructions-primitives.js";
|
|
3
4
|
export const meta = {
|
|
4
5
|
bytescount: 0,
|
|
5
6
|
discount_factor: 0,
|
|
@@ -61,7 +62,7 @@ Passing JavaScript allows you to implement logic as complex as you wish, however
|
|
|
61
62
|
The \`accepts\` and \`declines\` parameters can each be set to an array of arrays with three members:
|
|
62
63
|
|
|
63
64
|
1. A value or job variable, such as \`\${file.mime}\`
|
|
64
|
-
2. One of the following operators: \`==\`, \`===\`, \`<\`, \`>\`, \`<=\`, \`>=\`, \`!=\`, \`!==\`, \`regex\`, \`!regex\`, \`includes\`, \`!includes\`
|
|
65
|
+
2. One of the following operators: \`=\`, \`==\`, \`===\`, \`<\`, \`>\`, \`<=\`, \`>=\`, \`!=\`, \`!==\`, \`regex\`, \`!regex\`, \`includes\`, \`!includes\`, \`empty\`, \`!empty\`
|
|
65
66
|
3. A value or job variable, such as \`50\` or \`"foo"\`
|
|
66
67
|
|
|
67
68
|
Examples:
|
|
@@ -17,6 +17,7 @@ export declare const robotHttpImportInstructionsSchema: z.ZodObject<{
|
|
|
17
17
|
headers: z.ZodDefault<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">, z.ZodString]>>;
|
|
18
18
|
import_on_errors: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
19
19
|
fail_fast: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
max_file_size: z.ZodOptional<z.ZodNumber>;
|
|
20
21
|
return_file_stubs: z.ZodDefault<z.ZodBoolean>;
|
|
21
22
|
range: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
22
23
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -34,6 +35,7 @@ export declare const robotHttpImportInstructionsSchema: z.ZodObject<{
|
|
|
34
35
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
35
36
|
output_meta?: boolean | string[] | Record<string, boolean> | undefined;
|
|
36
37
|
queue?: "batch" | undefined;
|
|
38
|
+
max_file_size?: number | undefined;
|
|
37
39
|
range?: string | string[] | undefined;
|
|
38
40
|
}, {
|
|
39
41
|
url: string | string[];
|
|
@@ -50,6 +52,7 @@ export declare const robotHttpImportInstructionsSchema: z.ZodObject<{
|
|
|
50
52
|
url_delimiter?: string | undefined;
|
|
51
53
|
import_on_errors?: string[] | undefined;
|
|
52
54
|
fail_fast?: boolean | undefined;
|
|
55
|
+
max_file_size?: number | undefined;
|
|
53
56
|
range?: string | string[] | undefined;
|
|
54
57
|
}>;
|
|
55
58
|
export declare const robotHttpImportInstructionsWithHiddenFieldsSchema: z.ZodObject<{
|
|
@@ -63,6 +66,7 @@ export declare const robotHttpImportInstructionsWithHiddenFieldsSchema: z.ZodObj
|
|
|
63
66
|
headers: z.ZodDefault<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">, z.ZodString]>>;
|
|
64
67
|
import_on_errors: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
65
68
|
fail_fast: z.ZodDefault<z.ZodBoolean>;
|
|
69
|
+
max_file_size: z.ZodOptional<z.ZodNumber>;
|
|
66
70
|
return_file_stubs: z.ZodDefault<z.ZodBoolean>;
|
|
67
71
|
range: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
68
72
|
use: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodObject<{
|
|
@@ -163,6 +167,7 @@ export declare const robotHttpImportInstructionsWithHiddenFieldsSchema: z.ZodObj
|
|
|
163
167
|
force_name?: string | Record<string, string> | undefined;
|
|
164
168
|
credentials?: string | undefined;
|
|
165
169
|
bucket?: string | undefined;
|
|
170
|
+
max_file_size?: number | undefined;
|
|
166
171
|
range?: string | string[] | undefined;
|
|
167
172
|
force_original_id?: string | undefined;
|
|
168
173
|
}, {
|
|
@@ -198,6 +203,7 @@ export declare const robotHttpImportInstructionsWithHiddenFieldsSchema: z.ZodObj
|
|
|
198
203
|
url_delimiter?: string | undefined;
|
|
199
204
|
import_on_errors?: string[] | undefined;
|
|
200
205
|
fail_fast?: boolean | undefined;
|
|
206
|
+
max_file_size?: number | undefined;
|
|
201
207
|
range?: string | string[] | undefined;
|
|
202
208
|
force_original_id?: string | undefined;
|
|
203
209
|
}>;
|
|
@@ -217,6 +223,7 @@ export declare const interpolatableRobotHttpImportInstructionsSchema: z.ZodObjec
|
|
|
217
223
|
headers: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">]>, z.ZodString]>>;
|
|
218
224
|
import_on_errors: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
219
225
|
fail_fast: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
226
|
+
max_file_size: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
220
227
|
return_file_stubs: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
221
228
|
range: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>>;
|
|
222
229
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -234,6 +241,7 @@ export declare const interpolatableRobotHttpImportInstructionsSchema: z.ZodObjec
|
|
|
234
241
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
235
242
|
output_meta?: string | boolean | string[] | Record<string, string | boolean> | undefined;
|
|
236
243
|
queue?: string | undefined;
|
|
244
|
+
max_file_size?: string | number | undefined;
|
|
237
245
|
range?: string | string[] | undefined;
|
|
238
246
|
}, {
|
|
239
247
|
url: string | string[];
|
|
@@ -250,6 +258,7 @@ export declare const interpolatableRobotHttpImportInstructionsSchema: z.ZodObjec
|
|
|
250
258
|
url_delimiter?: string | undefined;
|
|
251
259
|
import_on_errors?: string | string[] | undefined;
|
|
252
260
|
fail_fast?: string | boolean | undefined;
|
|
261
|
+
max_file_size?: string | number | undefined;
|
|
253
262
|
range?: string | string[] | undefined;
|
|
254
263
|
}>;
|
|
255
264
|
export type InterpolatableRobotHttpImportInstructions = InterpolatableRobotHttpImportInstructionsInput;
|
|
@@ -265,6 +274,7 @@ export declare const interpolatableRobotHttpImportInstructionsWithHiddenFieldsSc
|
|
|
265
274
|
headers: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">]>, z.ZodString]>>;
|
|
266
275
|
import_on_errors: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
267
276
|
fail_fast: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
277
|
+
max_file_size: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
268
278
|
return_file_stubs: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
269
279
|
range: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>>;
|
|
270
280
|
use: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodObject<{
|
|
@@ -364,6 +374,7 @@ export declare const interpolatableRobotHttpImportInstructionsWithHiddenFieldsSc
|
|
|
364
374
|
force_name?: string | Record<string, string> | undefined;
|
|
365
375
|
credentials?: string | undefined;
|
|
366
376
|
bucket?: string | undefined;
|
|
377
|
+
max_file_size?: string | number | undefined;
|
|
367
378
|
range?: string | string[] | undefined;
|
|
368
379
|
force_original_id?: string | undefined;
|
|
369
380
|
}, {
|
|
@@ -399,6 +410,7 @@ export declare const interpolatableRobotHttpImportInstructionsWithHiddenFieldsSc
|
|
|
399
410
|
url_delimiter?: string | undefined;
|
|
400
411
|
import_on_errors?: string | string[] | undefined;
|
|
401
412
|
fail_fast?: string | boolean | undefined;
|
|
413
|
+
max_file_size?: string | number | undefined;
|
|
402
414
|
range?: string | string[] | undefined;
|
|
403
415
|
force_original_id?: string | undefined;
|
|
404
416
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-import.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/http-import.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAU1B,eAAO,MAAM,IAAI,EAAE,cAiClB,CAAA;AAED,eAAO,MAAM,iCAAiC
|
|
1
|
+
{"version":3,"file":"http-import.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/http-import.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAU1B,eAAO,MAAM,IAAI,EAAE,cAiClB,CAAA;AAED,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0FnC,CAAA;AAEX,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB1D,CAAA;AAEJ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAC3F,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAC/D,OAAO,iDAAiD,CACzD,CAAA;AAED,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3D,CAAA;AACD,MAAM,MAAM,yCAAyC,GACnD,8CAA8C,CAAA;AAEhD,MAAM,MAAM,8CAA8C,GAAG,CAAC,CAAC,KAAK,CAClE,OAAO,+CAA+C,CACvD,CAAA;AAED,eAAO,MAAM,+DAA+D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3E,CAAA;AACD,MAAM,MAAM,yDAAyD,GAAG,CAAC,CAAC,KAAK,CAC7E,OAAO,+DAA+D,CACvE,CAAA;AACD,MAAM,MAAM,8DAA8D,GAAG,CAAC,CAAC,KAAK,CAClF,OAAO,+DAA+D,CACvE,CAAA"}
|
|
@@ -92,6 +92,14 @@ Setting this to \`"meta"\` will still import the file on metadata extraction err
|
|
|
92
92
|
.default(false)
|
|
93
93
|
.describe(`
|
|
94
94
|
Disable the internal retry mechanism, and fail immediately if a resource can't be imported. This can be useful for performance critical applications.
|
|
95
|
+
`),
|
|
96
|
+
max_file_size: z
|
|
97
|
+
.number()
|
|
98
|
+
.int()
|
|
99
|
+
.positive()
|
|
100
|
+
.optional()
|
|
101
|
+
.describe(`
|
|
102
|
+
Maximum allowed size in bytes for each imported file. If the remote server reports a larger file size, the import is rejected before the download starts. If the remote server does not report a size upfront, the download is aborted once this limit is exceeded.
|
|
95
103
|
`),
|
|
96
104
|
return_file_stubs,
|
|
97
105
|
range: z
|
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
import type { RobotMetaInput } from './_instructions-primitives.ts';
|
|
2
2
|
import { z } from 'zod/v3';
|
|
3
|
+
export declare const imageFacedetectFaceSelectionModes: readonly ["each", "group", "max-confidence", "max-size"];
|
|
4
|
+
export declare const imageFacedetectFaceSelectionModeSchema: z.ZodEnum<["each", "group", "max-confidence", "max-size"]>;
|
|
5
|
+
export declare const imageFacedetectFaceCoordinatesSchema: z.ZodObject<{
|
|
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>;
|
|
3
31
|
export declare const meta: RobotMetaInput;
|
|
4
32
|
export declare const robotImageFacedetectInstructionsSchema: z.ZodObject<{
|
|
5
33
|
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">>]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-facedetect.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/image-facedetect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAS1B,eAAO,MAAM,IAAI,EAAE,cAuClB,CAAA;AAED,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqGxC,CAAA;AAEX,eAAO,MAAM,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK/D,CAAA;AAEJ,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAA;AACD,MAAM,MAAM,gDAAgD,GAAG,CAAC,CAAC,KAAK,CACpE,OAAO,sDAAsD,CAC9D,CAAA;AAED,eAAO,MAAM,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEhE,CAAA;AACD,MAAM,MAAM,8CAA8C,GACxD,mDAAmD,CAAA;AAErD,MAAM,MAAM,mDAAmD,GAAG,CAAC,CAAC,KAAK,CACvE,OAAO,oDAAoD,CAC5D,CAAA;AAED,eAAO,MAAM,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACP,CAAA;AAC1E,MAAM,MAAM,8DAA8D,GAAG,CAAC,CAAC,KAAK,CAClF,OAAO,oEAAoE,CAC5E,CAAA;AACD,MAAM,MAAM,mEAAmE,GAAG,CAAC,CAAC,KAAK,CACvF,OAAO,oEAAoE,CAC5E,CAAA"}
|
|
1
|
+
{"version":3,"file":"image-facedetect.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/image-facedetect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAS1B,eAAO,MAAM,iCAAiC,0DAKpC,CAAA;AAEV,eAAO,MAAM,sCAAsC,4DAA4C,CAAA;AAE/F,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;gCAUjC,CAAA;AAEhB,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAA;AAEjG,eAAO,MAAM,IAAI,EAAE,cAuClB,CAAA;AAED,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqGxC,CAAA;AAEX,eAAO,MAAM,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK/D,CAAA;AAEJ,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAA;AACD,MAAM,MAAM,gDAAgD,GAAG,CAAC,CAAC,KAAK,CACpE,OAAO,sDAAsD,CAC9D,CAAA;AAED,eAAO,MAAM,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEhE,CAAA;AACD,MAAM,MAAM,8CAA8C,GACxD,mDAAmD,CAAA;AAErD,MAAM,MAAM,mDAAmD,GAAG,CAAC,CAAC,KAAK,CACvE,OAAO,oDAAoD,CAC5D,CAAA;AAED,eAAO,MAAM,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACP,CAAA;AAC1E,MAAM,MAAM,8DAA8D,GAAG,CAAC,CAAC,KAAK,CAClF,OAAO,oEAAoE,CAC5E,CAAA;AACD,MAAM,MAAM,mEAAmE,GAAG,CAAC,CAAC,KAAK,CACvF,OAAO,oEAAoE,CAC5E,CAAA"}
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
2
|
import { aiProviderSchema, interpolateRobot, robotBase, robotUse, } from "./_instructions-primitives.js";
|
|
3
|
+
export const imageFacedetectFaceSelectionModes = [
|
|
4
|
+
'each',
|
|
5
|
+
'group',
|
|
6
|
+
'max-confidence',
|
|
7
|
+
'max-size',
|
|
8
|
+
];
|
|
9
|
+
export const imageFacedetectFaceSelectionModeSchema = z.enum(imageFacedetectFaceSelectionModes);
|
|
10
|
+
export const imageFacedetectFaceCoordinatesSchema = z
|
|
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();
|
|
3
21
|
export const meta = {
|
|
4
22
|
bytescount: 1,
|
|
5
23
|
discount_factor: 1,
|
|
@@ -92,7 +110,7 @@ The default value \`"preserve"\` means that the input image format is re-used.
|
|
|
92
110
|
Specifies the minimum confidence that a detected face must have. Only faces which have a higher confidence value than this threshold will be included in the result.
|
|
93
111
|
`),
|
|
94
112
|
faces: z
|
|
95
|
-
.union([
|
|
113
|
+
.union([imageFacedetectFaceSelectionModeSchema, z.number().int()])
|
|
96
114
|
.default('each')
|
|
97
115
|
.describe(`
|
|
98
116
|
Determines which of the detected faces should be returned. Valid values are:
|
|
@@ -59,9 +59,11 @@ export declare const robotSpeechTranscribeInstructionsSchema: z.ZodObject<{
|
|
|
59
59
|
}>]>>;
|
|
60
60
|
} & {
|
|
61
61
|
robot: z.ZodLiteral<"/speech/transcribe">;
|
|
62
|
-
provider: z.
|
|
62
|
+
provider: z.ZodOptional<z.ZodEnum<["aws", "gcp", "replicate"]>>;
|
|
63
63
|
granularity: z.ZodDefault<z.ZodEnum<["full", "list"]>>;
|
|
64
64
|
format: z.ZodDefault<z.ZodEnum<["json", "meta", "srt", "meta", "text", "webvtt"]>>;
|
|
65
|
+
speaker_labels: z.ZodDefault<z.ZodBoolean>;
|
|
66
|
+
max_speakers: z.ZodDefault<z.ZodNumber>;
|
|
65
67
|
source_language: z.ZodDefault<z.ZodString>;
|
|
66
68
|
target_language: z.ZodDefault<z.ZodString>;
|
|
67
69
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -70,8 +72,9 @@ export declare const robotSpeechTranscribeInstructionsSchema: z.ZodObject<{
|
|
|
70
72
|
force_accept: boolean;
|
|
71
73
|
ignore_errors: string[];
|
|
72
74
|
format: "meta" | "text" | "json" | "srt" | "webvtt";
|
|
73
|
-
provider: "aws" | "gcp" | "replicate";
|
|
74
75
|
granularity: "full" | "list";
|
|
76
|
+
speaker_labels: boolean;
|
|
77
|
+
max_speakers: number;
|
|
75
78
|
source_language: string;
|
|
76
79
|
target_language: string;
|
|
77
80
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
@@ -91,6 +94,7 @@ export declare const robotSpeechTranscribeInstructionsSchema: z.ZodObject<{
|
|
|
91
94
|
} | undefined;
|
|
92
95
|
output_meta?: boolean | string[] | Record<string, boolean> | undefined;
|
|
93
96
|
queue?: "batch" | undefined;
|
|
97
|
+
provider?: "aws" | "gcp" | "replicate" | undefined;
|
|
94
98
|
}, {
|
|
95
99
|
robot: "/speech/transcribe";
|
|
96
100
|
interpolate?: boolean | "false" | "true" | Record<string, boolean | "false" | "true"> | undefined;
|
|
@@ -116,6 +120,8 @@ export declare const robotSpeechTranscribeInstructionsSchema: z.ZodObject<{
|
|
|
116
120
|
format?: "meta" | "text" | "json" | "srt" | "webvtt" | undefined;
|
|
117
121
|
provider?: "aws" | "gcp" | "replicate" | undefined;
|
|
118
122
|
granularity?: "full" | "list" | undefined;
|
|
123
|
+
speaker_labels?: boolean | undefined;
|
|
124
|
+
max_speakers?: number | undefined;
|
|
119
125
|
source_language?: string | undefined;
|
|
120
126
|
target_language?: string | undefined;
|
|
121
127
|
}>;
|
|
@@ -176,18 +182,22 @@ export declare const robotSpeechTranscribeInstructionsWithHiddenFieldsSchema: z.
|
|
|
176
182
|
robot: z.ZodLiteral<"/speech/transcribe">;
|
|
177
183
|
granularity: z.ZodDefault<z.ZodEnum<["full", "list"]>>;
|
|
178
184
|
format: z.ZodDefault<z.ZodEnum<["json", "meta", "srt", "meta", "text", "webvtt"]>>;
|
|
185
|
+
speaker_labels: z.ZodDefault<z.ZodBoolean>;
|
|
186
|
+
max_speakers: z.ZodDefault<z.ZodNumber>;
|
|
179
187
|
source_language: z.ZodDefault<z.ZodString>;
|
|
180
188
|
target_language: z.ZodDefault<z.ZodString>;
|
|
181
189
|
} & {
|
|
182
|
-
|
|
190
|
+
model: z.ZodOptional<z.ZodEnum<["whisper-large-v3"]>>;
|
|
191
|
+
provider: z.ZodOptional<z.ZodEnum<["aws", "gcp", "replicate", "transloadit"]>>;
|
|
183
192
|
result: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"debug">, z.ZodDefault<z.ZodBoolean>]>>;
|
|
184
193
|
}, "strict", z.ZodTypeAny, {
|
|
185
194
|
robot: "/speech/transcribe";
|
|
186
195
|
force_accept: boolean;
|
|
187
196
|
ignore_errors: string[];
|
|
188
197
|
format: "meta" | "text" | "json" | "srt" | "webvtt";
|
|
189
|
-
provider: "aws" | "gcp" | "replicate" | "transloadit";
|
|
190
198
|
granularity: "full" | "list";
|
|
199
|
+
speaker_labels: boolean;
|
|
200
|
+
max_speakers: number;
|
|
191
201
|
source_language: string;
|
|
192
202
|
target_language: string;
|
|
193
203
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
@@ -208,6 +218,8 @@ export declare const robotSpeechTranscribeInstructionsWithHiddenFieldsSchema: z.
|
|
|
208
218
|
output_meta?: boolean | string[] | Record<string, boolean> | undefined;
|
|
209
219
|
result?: boolean | "debug" | undefined;
|
|
210
220
|
queue?: "batch" | undefined;
|
|
221
|
+
model?: "whisper-large-v3" | undefined;
|
|
222
|
+
provider?: "aws" | "gcp" | "replicate" | "transloadit" | undefined;
|
|
211
223
|
}, {
|
|
212
224
|
robot: "/speech/transcribe";
|
|
213
225
|
interpolate?: boolean | "false" | "true" | Record<string, boolean | "false" | "true"> | undefined;
|
|
@@ -230,9 +242,12 @@ export declare const robotSpeechTranscribeInstructionsWithHiddenFieldsSchema: z.
|
|
|
230
242
|
queue?: "batch" | undefined;
|
|
231
243
|
force_accept?: boolean | undefined;
|
|
232
244
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
245
|
+
model?: "whisper-large-v3" | undefined;
|
|
233
246
|
format?: "meta" | "text" | "json" | "srt" | "webvtt" | undefined;
|
|
234
247
|
provider?: "aws" | "gcp" | "replicate" | "transloadit" | undefined;
|
|
235
248
|
granularity?: "full" | "list" | undefined;
|
|
249
|
+
speaker_labels?: boolean | undefined;
|
|
250
|
+
max_speakers?: number | undefined;
|
|
236
251
|
source_language?: string | undefined;
|
|
237
252
|
target_language?: string | undefined;
|
|
238
253
|
}>;
|
|
@@ -294,9 +309,11 @@ export declare const interpolatableRobotSpeechTranscribeInstructionsSchema: z.Zo
|
|
|
294
309
|
group_by_original?: boolean | undefined;
|
|
295
310
|
}>]>>;
|
|
296
311
|
robot: z.ZodLiteral<"/speech/transcribe">;
|
|
297
|
-
provider: z.
|
|
312
|
+
provider: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEnum<["aws", "gcp", "replicate"]>]>>;
|
|
298
313
|
granularity: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["full", "list"]>]>>;
|
|
299
314
|
format: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["json", "meta", "srt", "meta", "text", "webvtt"]>]>>;
|
|
315
|
+
speaker_labels: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
316
|
+
max_speakers: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
300
317
|
source_language: z.ZodDefault<z.ZodString>;
|
|
301
318
|
target_language: z.ZodDefault<z.ZodString>;
|
|
302
319
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -305,8 +322,9 @@ export declare const interpolatableRobotSpeechTranscribeInstructionsSchema: z.Zo
|
|
|
305
322
|
force_accept: string | boolean;
|
|
306
323
|
ignore_errors: string | string[];
|
|
307
324
|
format: string;
|
|
308
|
-
provider: string;
|
|
309
325
|
granularity: string;
|
|
326
|
+
speaker_labels: string | boolean;
|
|
327
|
+
max_speakers: string | number;
|
|
310
328
|
source_language: string;
|
|
311
329
|
target_language: string;
|
|
312
330
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
@@ -326,6 +344,7 @@ export declare const interpolatableRobotSpeechTranscribeInstructionsSchema: z.Zo
|
|
|
326
344
|
} | undefined;
|
|
327
345
|
output_meta?: string | boolean | string[] | Record<string, string | boolean> | undefined;
|
|
328
346
|
queue?: string | undefined;
|
|
347
|
+
provider?: string | undefined;
|
|
329
348
|
}, {
|
|
330
349
|
robot: "/speech/transcribe";
|
|
331
350
|
interpolate?: boolean | "false" | "true" | Record<string, boolean | "false" | "true"> | undefined;
|
|
@@ -351,6 +370,8 @@ export declare const interpolatableRobotSpeechTranscribeInstructionsSchema: z.Zo
|
|
|
351
370
|
format?: string | undefined;
|
|
352
371
|
provider?: string | undefined;
|
|
353
372
|
granularity?: string | undefined;
|
|
373
|
+
speaker_labels?: string | boolean | undefined;
|
|
374
|
+
max_speakers?: string | number | undefined;
|
|
354
375
|
source_language?: string | undefined;
|
|
355
376
|
target_language?: string | undefined;
|
|
356
377
|
}>;
|
|
@@ -413,17 +434,21 @@ export declare const interpolatableRobotSpeechTranscribeInstructionsWithHiddenFi
|
|
|
413
434
|
robot: z.ZodLiteral<"/speech/transcribe">;
|
|
414
435
|
granularity: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["full", "list"]>]>>;
|
|
415
436
|
format: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["json", "meta", "srt", "meta", "text", "webvtt"]>]>>;
|
|
437
|
+
speaker_labels: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
438
|
+
max_speakers: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
416
439
|
source_language: z.ZodDefault<z.ZodString>;
|
|
417
440
|
target_language: z.ZodDefault<z.ZodString>;
|
|
418
|
-
|
|
441
|
+
model: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEnum<["whisper-large-v3"]>]>>;
|
|
442
|
+
provider: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEnum<["aws", "gcp", "replicate", "transloadit"]>]>>;
|
|
419
443
|
result: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<"debug">]>, z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
|
|
420
444
|
}, "strict", z.ZodTypeAny, {
|
|
421
445
|
robot: "/speech/transcribe";
|
|
422
446
|
force_accept: string | boolean;
|
|
423
447
|
ignore_errors: string | string[];
|
|
424
448
|
format: string;
|
|
425
|
-
provider: string;
|
|
426
449
|
granularity: string;
|
|
450
|
+
speaker_labels: string | boolean;
|
|
451
|
+
max_speakers: string | number;
|
|
427
452
|
source_language: string;
|
|
428
453
|
target_language: string;
|
|
429
454
|
interpolate?: boolean | Record<string, boolean> | undefined;
|
|
@@ -444,6 +469,8 @@ export declare const interpolatableRobotSpeechTranscribeInstructionsWithHiddenFi
|
|
|
444
469
|
output_meta?: string | boolean | string[] | Record<string, string | boolean> | undefined;
|
|
445
470
|
result?: string | boolean | undefined;
|
|
446
471
|
queue?: string | undefined;
|
|
472
|
+
model?: string | undefined;
|
|
473
|
+
provider?: string | undefined;
|
|
447
474
|
}, {
|
|
448
475
|
robot: "/speech/transcribe";
|
|
449
476
|
interpolate?: boolean | "false" | "true" | Record<string, boolean | "false" | "true"> | undefined;
|
|
@@ -466,9 +493,12 @@ export declare const interpolatableRobotSpeechTranscribeInstructionsWithHiddenFi
|
|
|
466
493
|
queue?: string | undefined;
|
|
467
494
|
force_accept?: string | boolean | undefined;
|
|
468
495
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
496
|
+
model?: string | undefined;
|
|
469
497
|
format?: string | undefined;
|
|
470
498
|
provider?: string | undefined;
|
|
471
499
|
granularity?: string | undefined;
|
|
500
|
+
speaker_labels?: string | boolean | undefined;
|
|
501
|
+
max_speakers?: string | number | undefined;
|
|
472
502
|
source_language?: string | undefined;
|
|
473
503
|
target_language?: string | undefined;
|
|
474
504
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech-transcribe.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/speech-transcribe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAc1B,eAAO,MAAM,IAAI,EAAE,cA6ClB,CAAA;AAED,eAAO,MAAM,uCAAuC
|
|
1
|
+
{"version":3,"file":"speech-transcribe.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/speech-transcribe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAc1B,eAAO,MAAM,IAAI,EAAE,cA6ClB,CAAA;AAED,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsGzC,CAAA;AAEX,eAAO,MAAM,uDAAuD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOhE,CAAA;AAEJ,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAA;AACD,MAAM,MAAM,iDAAiD,GAAG,CAAC,CAAC,KAAK,CACrE,OAAO,uDAAuD,CAC/D,CAAA;AAED,eAAO,MAAM,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjE,CAAA;AACD,MAAM,MAAM,+CAA+C,GACzD,oDAAoD,CAAA;AAEtD,MAAM,MAAM,oDAAoD,GAAG,CAAC,CAAC,KAAK,CACxE,OAAO,qDAAqD,CAC7D,CAAA;AAED,eAAO,MAAM,qEAAqE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACP,CAAA;AAC3E,MAAM,MAAM,+DAA+D,GAAG,CAAC,CAAC,KAAK,CACnF,OAAO,qEAAqE,CAC7E,CAAA;AACD,MAAM,MAAM,oEAAoE,GAAG,CAAC,CAAC,KAAK,CACxF,OAAO,qEAAqE,CAC7E,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
2
|
import { granularitySchema, interpolateRobot, robotBase, robotUse, } from "./_instructions-primitives.js";
|
|
3
|
-
const speechTranscribeProviderSchema = z.enum(['aws', 'gcp', 'replicate']).
|
|
3
|
+
const speechTranscribeProviderSchema = z.enum(['aws', 'gcp', 'replicate']).optional();
|
|
4
4
|
const speechTranscribeProviderWithHiddenFieldsSchema = z
|
|
5
5
|
.enum(['aws', 'gcp', 'replicate', 'transloadit'])
|
|
6
|
-
.
|
|
6
|
+
.optional();
|
|
7
7
|
export const meta = {
|
|
8
8
|
bytescount: 1,
|
|
9
9
|
discount_factor: 1,
|
|
@@ -56,11 +56,48 @@ export const robotSpeechTranscribeInstructionsSchema = robotBase
|
|
|
56
56
|
You can use the text that we return in your application, or you can pass the text down to other <dfn>Robots</dfn> to filter audio or video files that contain (or do not contain) certain content, or burn the text into images or video for example.
|
|
57
57
|
|
|
58
58
|
Another common use case is automatically subtitling videos, or making audio searchable.
|
|
59
|
+
|
|
60
|
+
Set \`speaker_labels\` to \`true\` when you want JSON or meta transcription output to distinguish
|
|
61
|
+
recurring speakers:
|
|
62
|
+
|
|
63
|
+
\`\`\`json
|
|
64
|
+
{
|
|
65
|
+
"steps": {
|
|
66
|
+
"transcribed": {
|
|
67
|
+
"use": ":original",
|
|
68
|
+
"robot": "/speech/transcribe",
|
|
69
|
+
"provider": "aws",
|
|
70
|
+
"format": "json",
|
|
71
|
+
"speaker_labels": true,
|
|
72
|
+
"max_speakers": 3
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
\`\`\`
|
|
77
|
+
|
|
78
|
+
Speaker labels are currently supported by the \`aws\` and \`gcp\` providers. If you enable
|
|
79
|
+
\`speaker_labels\` without setting \`provider\`, Transloadit uses \`aws\` for that <dfn>Step</dfn>. Labels
|
|
80
|
+
are normalized as \`speaker_1\`, \`speaker_2\`, and so on:
|
|
81
|
+
|
|
82
|
+
\`\`\`json
|
|
83
|
+
{
|
|
84
|
+
"text": "Hello there. Hi!",
|
|
85
|
+
"words": [
|
|
86
|
+
{ "text": "Hello", "startTime": 0, "endTime": 0.5, "speaker": "speaker_1" },
|
|
87
|
+
{ "text": "there", "startTime": 0.6, "endTime": 1, "speaker": "speaker_1" },
|
|
88
|
+
{ "text": "Hi!", "startTime": 1.2, "endTime": 1.8, "speaker": "speaker_2" }
|
|
89
|
+
],
|
|
90
|
+
"segments": [
|
|
91
|
+
{ "text": "Hello there", "startTime": 0, "endTime": 1, "speaker": "speaker_1" },
|
|
92
|
+
{ "text": "Hi!", "startTime": 1.2, "endTime": 1.8, "speaker": "speaker_2" }
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
\`\`\`
|
|
59
96
|
`),
|
|
60
97
|
provider: speechTranscribeProviderSchema.describe(`
|
|
61
98
|
Which AI provider to leverage.
|
|
62
99
|
|
|
63
|
-
Defaults to \`"replicate"\`, which currently uses our highest-quality deployed transcription path while ElevenLabs Scribe support is being prepared.
|
|
100
|
+
Defaults to \`"replicate"\`, which currently uses our highest-quality deployed transcription path while ElevenLabs Scribe support is being prepared. When \`speaker_labels\` is \`true\` and \`provider\` is omitted, Transloadit defaults to \`"aws"\`, because speaker labels are currently supported by the \`aws\` and \`gcp\` providers.
|
|
64
101
|
|
|
65
102
|
Transloadit abstracts the interface so you can expect the same data structures, but different latencies and information being returned. Different cloud vendors have different areas they shine in, and we recommend to try out and see what yields the best results for your use case.
|
|
66
103
|
`),
|
|
@@ -74,9 +111,26 @@ Whether to return a full response (\`"full"\`), or a flat list of descriptions (
|
|
|
74
111
|
Output format for the transcription.
|
|
75
112
|
|
|
76
113
|
- \`"text"\` outputs a plain text file that you can store and process.
|
|
77
|
-
- \`"json"\` outputs a JSON file containing timestamped words.
|
|
114
|
+
- \`"json"\` outputs a JSON file containing timestamped words. When \`speaker_labels\` is enabled, words can include \`speaker\` labels and the JSON can also include grouped \`segments\` by speaker.
|
|
78
115
|
- \`"srt"\` and \`"webvtt"\` output subtitle files of those respective file types, which can be stored separately or used in other encoding <dfn>Steps</dfn>.
|
|
79
|
-
- \`"meta"\` does not return a file, but stores the data inside
|
|
116
|
+
- \`"meta"\` does not return a file, but stores the data inside Transloadit's file object (under \`\${file.meta.transcription.text}\`, \`\${file.meta.transcription.words}\`, and, when speaker labels are available, \`\${file.meta.transcription.segments}\`) that's passed around between encoding <dfn>Steps</dfn>, so that you can use the values to burn the data into videos, filter on them, etc.
|
|
117
|
+
`),
|
|
118
|
+
speaker_labels: z
|
|
119
|
+
.boolean()
|
|
120
|
+
.default(false)
|
|
121
|
+
.describe(`
|
|
122
|
+
When enabled, Transloadit asks the transcription provider to distinguish different speakers. JSON and meta output can then include \`speaker\` labels such as \`"speaker_1"\` on individual words, plus grouped \`segments\` by speaker. Text, SRT, and WebVTT output behavior is unchanged.
|
|
123
|
+
|
|
124
|
+
Speaker labels identify recurring voices, not real person names. Accuracy depends on audio quality, background noise, overlapping speech, and the number of speakers.
|
|
125
|
+
`),
|
|
126
|
+
max_speakers: z
|
|
127
|
+
.number()
|
|
128
|
+
.int()
|
|
129
|
+
.min(1)
|
|
130
|
+
.max(10)
|
|
131
|
+
.default(10)
|
|
132
|
+
.describe(`
|
|
133
|
+
The maximum number of speakers to detect when \`speaker_labels\` is enabled.
|
|
80
134
|
`),
|
|
81
135
|
// TODO determine the list of languages
|
|
82
136
|
source_language: z
|
|
@@ -99,6 +153,7 @@ The language should be specified in the [BCP-47](https://www.rfc-editor.org/rfc/
|
|
|
99
153
|
})
|
|
100
154
|
.strict();
|
|
101
155
|
export const robotSpeechTranscribeInstructionsWithHiddenFieldsSchema = robotSpeechTranscribeInstructionsSchema.extend({
|
|
156
|
+
model: z.enum(['whisper-large-v3']).optional(),
|
|
102
157
|
provider: speechTranscribeProviderWithHiddenFieldsSchema,
|
|
103
158
|
result: z
|
|
104
159
|
.union([z.literal('debug'), robotSpeechTranscribeInstructionsSchema.shape.result])
|