@transloadit/zod 6.0.0 → 7.0.0
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/englishInteger.d.ts +3 -0
- package/dist/v3/englishInteger.d.ts.map +1 -0
- package/dist/v3/englishInteger.js +12 -0
- package/dist/v3/lib/zodInputSemantics.d.ts +3 -1
- package/dist/v3/lib/zodInputSemantics.d.ts.map +1 -1
- package/dist/v3/lib/zodInputSemantics.js +17 -0
- package/dist/v3/robots/_image-describe-output.d.ts +55 -0
- package/dist/v3/robots/_image-describe-output.d.ts.map +1 -0
- package/dist/v3/robots/_image-describe-output.js +15 -0
- package/dist/v3/robots/_image-facedetect-output.d.ts +30 -0
- package/dist/v3/robots/_image-facedetect-output.d.ts.map +1 -0
- package/dist/v3/robots/_image-facedetect-output.js +14 -0
- package/dist/v3/robots/_index.d.ts +582 -48
- package/dist/v3/robots/_index.d.ts.map +1 -1
- package/dist/v3/robots/_index.js +84 -80
- package/dist/v3/robots/_instructions-primitives.d.ts +82 -0
- package/dist/v3/robots/_instructions-primitives.d.ts.map +1 -1
- package/dist/v3/robots/_instructions-primitives.js +46 -2
- package/dist/v3/robots/_ocr-output.d.ts +75 -0
- package/dist/v3/robots/_ocr-output.d.ts.map +1 -0
- package/dist/v3/robots/_ocr-output.js +14 -0
- package/dist/v3/robots/ai-chat.d.ts +12 -12
- package/dist/v3/robots/audio-encode.d.ts.map +1 -1
- package/dist/v3/robots/audio-encode.js +8 -1
- package/dist/v3/robots/audio-split.d.ts.map +1 -1
- package/dist/v3/robots/audio-split.js +2 -0
- package/dist/v3/robots/digitalocean-store.d.ts +4 -4
- package/dist/v3/robots/digitalocean-store.js +1 -1
- package/dist/v3/robots/document-convert.d.ts +8 -6
- package/dist/v3/robots/document-convert.d.ts.map +1 -1
- package/dist/v3/robots/document-convert.js +5 -5
- package/dist/v3/robots/document-extract.d.ts +4 -4
- package/dist/v3/robots/document-ocr.d.ts +8 -8
- package/dist/v3/robots/google-store.d.ts +32 -8
- package/dist/v3/robots/google-store.d.ts.map +1 -1
- package/dist/v3/robots/google-store.js +10 -2
- package/dist/v3/robots/image-bgremove.d.ts +16 -16
- package/dist/v3/robots/image-describe.d.ts +17 -17
- package/dist/v3/robots/image-describe.d.ts.map +1 -1
- package/dist/v3/robots/image-describe.js +2 -1
- package/dist/v3/robots/image-facedetect.d.ts +9 -35
- package/dist/v3/robots/image-facedetect.d.ts.map +1 -1
- package/dist/v3/robots/image-facedetect.js +1 -11
- package/dist/v3/robots/image-generate.d.ts +20 -20
- package/dist/v3/robots/image-generate.js +1 -1
- package/dist/v3/robots/image-ocr.d.ts +8 -8
- package/dist/v3/robots/image-upscale.d.ts +17 -12
- package/dist/v3/robots/image-upscale.d.ts.map +1 -1
- package/dist/v3/robots/image-upscale.js +14 -2
- package/dist/v3/robots/mega-store.d.ts +4 -4
- package/dist/v3/robots/mega-store.js +1 -1
- package/dist/v3/robots/s3-store.d.ts +8 -8
- package/dist/v3/robots/s3-store.d.ts.map +1 -1
- package/dist/v3/robots/s3-store.js +14 -2
- package/dist/v3/robots/speech-transcribe.d.ts +12 -12
- package/dist/v3/robots/text-speak.d.ts +8 -8
- package/dist/v3/robots/text-translate.d.ts +8 -8
- package/dist/v3/robots/video-adaptive.d.ts +16 -19
- package/dist/v3/robots/video-adaptive.d.ts.map +1 -1
- package/dist/v3/robots/video-adaptive.js +37 -3
- package/dist/v3/robots/video-concat.d.ts.map +1 -1
- package/dist/v3/robots/video-concat.js +7 -3
- package/dist/v3/robots/video-encode.d.ts.map +1 -1
- package/dist/v3/robots/video-encode.js +6 -0
- package/dist/v3/robots/video-generate.d.ts +20 -20
- package/dist/v3/robots/video-generate.js +1 -1
- package/dist/v3/robots/video-merge.d.ts.map +1 -1
- package/dist/v3/robots/video-merge.js +15 -1
- package/dist/v3/robots/video-split.d.ts.map +1 -1
- package/dist/v3/robots/video-split.js +2 -0
- package/dist/v3/robots/video-subtitle.d.ts +47 -4
- package/dist/v3/robots/video-subtitle.d.ts.map +1 -1
- package/dist/v3/robots/video-subtitle.js +59 -46
- package/dist/v3/robots/vimeo-import.d.ts.map +1 -1
- package/dist/v3/robots/vimeo-import.js +1 -1
- package/dist/v3/robots/youtube-store.d.ts +37 -20
- package/dist/v3/robots/youtube-store.d.ts.map +1 -1
- package/dist/v3/robots/youtube-store.js +17 -29
- package/dist/v3/youtubeCategories.d.ts +20 -0
- package/dist/v3/youtubeCategories.d.ts.map +1 -0
- package/dist/v3/youtubeCategories.js +20 -0
- package/dist/v4/englishInteger.d.ts +3 -0
- package/dist/v4/englishInteger.d.ts.map +1 -0
- package/dist/v4/englishInteger.js +12 -0
- package/dist/v4/lib/zodInputSemantics.d.ts +3 -1
- package/dist/v4/lib/zodInputSemantics.d.ts.map +1 -1
- package/dist/v4/lib/zodInputSemantics.js +6 -0
- package/dist/v4/robots/_image-describe-output.d.ts +23 -0
- package/dist/v4/robots/_image-describe-output.d.ts.map +1 -0
- package/dist/v4/robots/_image-describe-output.js +15 -0
- package/dist/v4/robots/_image-facedetect-output.d.ts +14 -0
- package/dist/v4/robots/_image-facedetect-output.d.ts.map +1 -0
- package/dist/v4/robots/_image-facedetect-output.js +15 -0
- package/dist/v4/robots/_index.d.ts +582 -48
- package/dist/v4/robots/_index.d.ts.map +1 -1
- package/dist/v4/robots/_index.js +84 -80
- package/dist/v4/robots/_instructions-primitives.d.ts +16 -0
- package/dist/v4/robots/_instructions-primitives.d.ts.map +1 -1
- package/dist/v4/robots/_instructions-primitives.js +45 -2
- package/dist/v4/robots/_ocr-output.d.ts +29 -0
- package/dist/v4/robots/_ocr-output.d.ts.map +1 -0
- package/dist/v4/robots/_ocr-output.js +14 -0
- package/dist/v4/robots/audio-encode.d.ts.map +1 -1
- package/dist/v4/robots/audio-encode.js +8 -1
- package/dist/v4/robots/audio-split.d.ts.map +1 -1
- package/dist/v4/robots/audio-split.js +2 -0
- package/dist/v4/robots/digitalocean-store.d.ts +8 -8
- package/dist/v4/robots/digitalocean-store.js +1 -1
- package/dist/v4/robots/document-convert.d.ts +22 -8
- package/dist/v4/robots/document-convert.d.ts.map +1 -1
- package/dist/v4/robots/document-convert.js +5 -5
- package/dist/v4/robots/google-store.d.ts +16 -4
- package/dist/v4/robots/google-store.d.ts.map +1 -1
- package/dist/v4/robots/google-store.js +10 -2
- package/dist/v4/robots/image-describe.d.ts +1 -5
- package/dist/v4/robots/image-describe.d.ts.map +1 -1
- package/dist/v4/robots/image-describe.js +2 -1
- package/dist/v4/robots/image-facedetect.d.ts +1 -11
- package/dist/v4/robots/image-facedetect.d.ts.map +1 -1
- package/dist/v4/robots/image-facedetect.js +1 -12
- package/dist/v4/robots/image-generate.d.ts +0 -4
- package/dist/v4/robots/image-generate.d.ts.map +1 -1
- package/dist/v4/robots/image-generate.js +1 -1
- package/dist/v4/robots/image-upscale.d.ts +5 -0
- package/dist/v4/robots/image-upscale.d.ts.map +1 -1
- package/dist/v4/robots/image-upscale.js +14 -2
- package/dist/v4/robots/mega-store.d.ts +8 -8
- package/dist/v4/robots/mega-store.js +1 -1
- package/dist/v4/robots/s3-store.d.ts +20 -0
- package/dist/v4/robots/s3-store.d.ts.map +1 -1
- package/dist/v4/robots/s3-store.js +14 -2
- package/dist/v4/robots/video-adaptive.d.ts +16 -16
- package/dist/v4/robots/video-adaptive.d.ts.map +1 -1
- package/dist/v4/robots/video-adaptive.js +38 -5
- package/dist/v4/robots/video-concat.d.ts.map +1 -1
- package/dist/v4/robots/video-concat.js +7 -3
- package/dist/v4/robots/video-encode.d.ts.map +1 -1
- package/dist/v4/robots/video-encode.js +6 -0
- package/dist/v4/robots/video-generate.d.ts +0 -4
- package/dist/v4/robots/video-generate.d.ts.map +1 -1
- package/dist/v4/robots/video-generate.js +1 -1
- package/dist/v4/robots/video-merge.d.ts.map +1 -1
- package/dist/v4/robots/video-merge.js +15 -1
- package/dist/v4/robots/video-split.d.ts.map +1 -1
- package/dist/v4/robots/video-split.js +2 -0
- package/dist/v4/robots/video-subtitle.d.ts +31 -4
- package/dist/v4/robots/video-subtitle.d.ts.map +1 -1
- package/dist/v4/robots/video-subtitle.js +58 -46
- package/dist/v4/robots/vimeo-import.d.ts.map +1 -1
- package/dist/v4/robots/vimeo-import.js +1 -1
- package/dist/v4/robots/youtube-store.d.ts +25 -76
- package/dist/v4/robots/youtube-store.d.ts.map +1 -1
- package/dist/v4/robots/youtube-store.js +18 -29
- package/dist/v4/youtubeCategories.d.ts +20 -0
- package/dist/v4/youtubeCategories.d.ts.map +1 -0
- package/dist/v4/youtubeCategories.js +20 -0
- package/package.json +2 -2
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
/** An OCR polygon vertex in pixel coordinates. Provider omissions belong at the property site. */
|
|
3
|
+
export declare const ocrBoundingVertexSchema: z.ZodObject<{
|
|
4
|
+
x: z.ZodNumber;
|
|
5
|
+
y: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
/** Complete OCR text and pixel coordinates shared by image/document result projections. */
|
|
8
|
+
export declare const ocrTextWithPolygonSchema: z.ZodObject<{
|
|
9
|
+
text: z.ZodString;
|
|
10
|
+
boundingPolygon: z.ZodArray<z.ZodObject<{
|
|
11
|
+
x: z.ZodNumber;
|
|
12
|
+
y: z.ZodNumber;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
/** Full-granularity OCR JSON projection requiring complete polygons. */
|
|
16
|
+
export declare const ocrFullOutputSchema: z.ZodArray<z.ZodObject<{
|
|
17
|
+
text: z.ZodString;
|
|
18
|
+
boundingPolygon: z.ZodArray<z.ZodObject<{
|
|
19
|
+
x: z.ZodNumber;
|
|
20
|
+
y: z.ZodNumber;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
/** The list-granularity OCR result used by both AWS and GCP. */
|
|
24
|
+
export declare const ocrTextListSchema: z.ZodArray<z.ZodString>;
|
|
25
|
+
/** A list-granularity metadata projection with recognized text required. */
|
|
26
|
+
export declare const ocrTextListMetaSchema: z.ZodObject<{
|
|
27
|
+
recognized_text: z.ZodArray<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
//# sourceMappingURL=_ocr-output.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_ocr-output.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/_ocr-output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,kGAAkG;AAClG,eAAO,MAAM,uBAAuB;;;iBAA6C,CAAA;AAEjF,2FAA2F;AAC3F,eAAO,MAAM,wBAAwB;;;;;;iBAGnC,CAAA;AAEF,wEAAwE;AACxE,eAAO,MAAM,mBAAmB;;;;;;kBAAoC,CAAA;AAEpE,gEAAgE;AAChE,eAAO,MAAM,iBAAiB,yBAAsB,CAAA;AAEpD,4EAA4E;AAC5E,eAAO,MAAM,qBAAqB;;iBAAmD,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
/** An OCR polygon vertex in pixel coordinates. Provider omissions belong at the property site. */
|
|
3
|
+
export const ocrBoundingVertexSchema = z.object({ x: z.number(), y: z.number() });
|
|
4
|
+
/** Complete OCR text and pixel coordinates shared by image/document result projections. */
|
|
5
|
+
export const ocrTextWithPolygonSchema = z.object({
|
|
6
|
+
text: z.string(),
|
|
7
|
+
boundingPolygon: z.array(ocrBoundingVertexSchema),
|
|
8
|
+
});
|
|
9
|
+
/** Full-granularity OCR JSON projection requiring complete polygons. */
|
|
10
|
+
export const ocrFullOutputSchema = z.array(ocrTextWithPolygonSchema);
|
|
11
|
+
/** The list-granularity OCR result used by both AWS and GCP. */
|
|
12
|
+
export const ocrTextListSchema = z.array(z.string());
|
|
13
|
+
/** A list-granularity metadata projection with recognized text required. */
|
|
14
|
+
export const ocrTextListMetaSchema = z.object({ recognized_text: ocrTextListSchema });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio-encode.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/audio-encode.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAe1B,eAAO,MAAM,IAAI,EAAE,cAgBlB,CAAA;AAED,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"audio-encode.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/audio-encode.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAe1B,eAAO,MAAM,IAAI,EAAE,cAgBlB,CAAA;AAED,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmBpC,CAAA;AAEX,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,OAAO,kCAAkC,CAAC,KAAK,CACtC,CAAA;AAEvD,eAAO,MACa,kDAAkD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ether the results of this Step should be present in the Assembly Status JSON'),
|
|
28
|
-
|
|
28
|
+
// The page renders the purpose sentence separately; add only the spatial-audio section here.
|
|
29
|
+
robot: z.literal('/audio/encode').describe(`
|
|
30
|
+
## iPhone spatial audio
|
|
31
|
+
|
|
32
|
+
Videos recorded with iPhone spatial audio can contain a stereo AAC track alongside an Apple Positional Audio Codec (APAC) track. When unsupported audio is present, this <dfn>Robot</dfn> keeps one supported audio track by default. Spatial audio is not preserved or converted.
|
|
33
|
+
|
|
34
|
+
Files containing only unsupported audio still fail. Individual audio track selections and stream-copy requests keep the tracks you select; the output format must support copied tracks.
|
|
35
|
+
`),
|
|
29
36
|
bitrate: optionalWithV3Semantics(bitrateSchema).describe(robotParameterDocs.audio_bitrate.description),
|
|
30
37
|
sample_rate: optionalWithV3Semantics(sampleRateSchema)
|
|
31
38
|
.describe(robotParameterDocs.audio_sample_rate.description),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio-split.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/audio-split.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAe1B,eAAO,MAAM,IAAI,EAAE,cAmBlB,CAAA;AAiBD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"audio-split.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/audio-split.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,uBAAuB,E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C,OAAO,eAAe,CAAC,CAAA;AAEnE,MAAM,MAAM,2BAA2B,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;AAChE,MAAM,MAAM,2CAA2C,GAAG,YAAY,CAAC,cAAc,CAAC,CAAA;AACtF,MAAM,MAAM,yCAAyC,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAC3F,MAAM,MAAM,8CAA8C,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAChG,MAAM,MAAM,yDAAyD,GACnE,YAAY,CAAC,4BAA4B,CAAC,CAAA;AAC5C,MAAM,MAAM,8DAA8D,GACxE,YAAY,CAAC,2BAA2B,CAAC,CAAA"}
|
|
@@ -39,6 +39,8 @@ export const robotAudioSplitInstructionsSchema = robotBase
|
|
|
39
39
|
.describe('Whether the results of this Step should be present in the Assembly Status JSON'),
|
|
40
40
|
robot: z.literal('/audio/split').describe(`
|
|
41
41
|
Splits an audio file into multiple segments based on an array of from/to durations. Each segment produces a separate output file. This is useful for cutting an audio file into parts, for example to insert ads later via [🤖/audio/concat](/docs/robots/audio-concat/).
|
|
42
|
+
|
|
43
|
+
For iPhone videos with spatial audio, see [iPhone spatial audio in 🤖/audio/encode](/docs/robots/audio-encode/#iphone-spatial-audio).
|
|
42
44
|
`),
|
|
43
45
|
segments: z
|
|
44
46
|
.array(segmentSchema)
|
|
@@ -42,10 +42,10 @@ export declare const robotDigitaloceanStoreInstructionsSchema: z.ZodObject<{
|
|
|
42
42
|
robot: z.ZodLiteral<"/digitalocean/store">;
|
|
43
43
|
path: z.ZodDefault<z.ZodString>;
|
|
44
44
|
url_prefix: z.ZodDefault<z.ZodString>;
|
|
45
|
-
acl: z.ZodDefault<z.ZodEnum<{
|
|
45
|
+
acl: z.ZodDefault<z.ZodDefault<z.ZodEnum<{
|
|
46
46
|
private: "private";
|
|
47
47
|
"public-read": "public-read";
|
|
48
|
-
}
|
|
48
|
+
}>>>;
|
|
49
49
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
50
50
|
sign_urls_for: z.ZodOptional<z.ZodNumber>;
|
|
51
51
|
}, z.core.$strict>;
|
|
@@ -90,10 +90,10 @@ export declare const robotDigitaloceanStoreInstructionsWithHiddenFieldsSchema: z
|
|
|
90
90
|
robot: z.ZodLiteral<"/digitalocean/store">;
|
|
91
91
|
path: z.ZodDefault<z.ZodString>;
|
|
92
92
|
url_prefix: z.ZodDefault<z.ZodString>;
|
|
93
|
-
acl: z.ZodDefault<z.ZodEnum<{
|
|
93
|
+
acl: z.ZodDefault<z.ZodDefault<z.ZodEnum<{
|
|
94
94
|
private: "private";
|
|
95
95
|
"public-read": "public-read";
|
|
96
|
-
}
|
|
96
|
+
}>>>;
|
|
97
97
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
98
98
|
sign_urls_for: z.ZodOptional<z.ZodNumber>;
|
|
99
99
|
result: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"debug">, z.ZodDefault<z.ZodBoolean>]>>;
|
|
@@ -138,10 +138,10 @@ export declare const robotDigitaloceanStoreInstructionsWithHiddenFieldsSchema: z
|
|
|
138
138
|
robot: z.ZodLiteral<"/digitalocean/store">;
|
|
139
139
|
path: z.ZodPrefault<z.ZodString>;
|
|
140
140
|
url_prefix: z.ZodPrefault<z.ZodString>;
|
|
141
|
-
acl: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
141
|
+
acl: z.ZodPrefault<z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
142
142
|
private: "private";
|
|
143
143
|
"public-read": "public-read";
|
|
144
|
-
}>]
|
|
144
|
+
}>]>>>;
|
|
145
145
|
headers: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
146
146
|
sign_urls_for: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
147
147
|
}, z.core.$strict>, interpolatableRobotDigitaloceanStoreInstructionsWithHiddenFieldsSchema: z.ZodObject<{
|
|
@@ -184,10 +184,10 @@ export declare const robotDigitaloceanStoreInstructionsWithHiddenFieldsSchema: z
|
|
|
184
184
|
robot: z.ZodLiteral<"/digitalocean/store">;
|
|
185
185
|
path: z.ZodPrefault<z.ZodString>;
|
|
186
186
|
url_prefix: z.ZodPrefault<z.ZodString>;
|
|
187
|
-
acl: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
187
|
+
acl: z.ZodPrefault<z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
188
188
|
private: "private";
|
|
189
189
|
"public-read": "public-read";
|
|
190
|
-
}>]
|
|
190
|
+
}>]>>>;
|
|
191
191
|
headers: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
192
192
|
sign_urls_for: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
193
193
|
result: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<"debug">]>, z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
|
|
@@ -23,7 +23,7 @@ export const robotDigitaloceanStoreInstructionsSchema = robotBase
|
|
|
23
23
|
.describe(`
|
|
24
24
|
The URL prefix used for the returned URL, such as \`"https://my.cdn.com/some/path"\`.
|
|
25
25
|
`),
|
|
26
|
-
acl: storageAcl,
|
|
26
|
+
acl: storageAcl.default('private'),
|
|
27
27
|
headers: z.record(z.string(), z.string())
|
|
28
28
|
.default({ 'Content-Type': '${file.mime}' })
|
|
29
29
|
.describe(`
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import type { RobotDefinition, RobotMetaInput, RobotSchemaVariantTypes } from './_instructions-primitives.ts';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
+
/** Accepts Playwright's paper-format case variants while publishing canonical spellings. */
|
|
4
|
+
export declare const documentConvertPdfFormatSchema: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<{
|
|
5
|
+
A0: "A0";
|
|
6
|
+
A1: "A1";
|
|
7
|
+
A2: "A2";
|
|
8
|
+
A3: "A3";
|
|
9
|
+
A4: "A4";
|
|
10
|
+
A5: "A5";
|
|
11
|
+
A6: "A6";
|
|
12
|
+
Ledger: "Ledger";
|
|
13
|
+
Legal: "Legal";
|
|
14
|
+
Letter: "Letter";
|
|
15
|
+
Tabloid: "Tabloid";
|
|
16
|
+
}>>;
|
|
3
17
|
export declare const meta: RobotMetaInput;
|
|
4
18
|
export declare const robotDocumentConvertInstructionsSchema: z.ZodObject<{
|
|
5
19
|
interpolate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
@@ -82,7 +96,7 @@ export declare const robotDocumentConvertInstructionsSchema: z.ZodObject<{
|
|
|
82
96
|
}>>;
|
|
83
97
|
pdf_margin: z.ZodDefault<z.ZodString>;
|
|
84
98
|
pdf_print_background: z.ZodDefault<z.ZodBoolean>;
|
|
85
|
-
pdf_format: z.ZodDefault<z.ZodEnum<{
|
|
99
|
+
pdf_format: z.ZodDefault<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<{
|
|
86
100
|
A0: "A0";
|
|
87
101
|
A1: "A1";
|
|
88
102
|
A2: "A2";
|
|
@@ -94,7 +108,7 @@ export declare const robotDocumentConvertInstructionsSchema: z.ZodObject<{
|
|
|
94
108
|
Legal: "Legal";
|
|
95
109
|
Letter: "Letter";
|
|
96
110
|
Tabloid: "Tabloid";
|
|
97
|
-
}
|
|
111
|
+
}>>>;
|
|
98
112
|
pdf_display_header_footer: z.ZodDefault<z.ZodBoolean>;
|
|
99
113
|
pdf_header_template: z.ZodOptional<z.ZodString>;
|
|
100
114
|
pdf_footer_template: z.ZodOptional<z.ZodString>;
|
|
@@ -180,7 +194,7 @@ export declare const robotDocumentConvertInstructionsWithHiddenFieldsSchema: z.Z
|
|
|
180
194
|
}>>;
|
|
181
195
|
pdf_margin: z.ZodDefault<z.ZodString>;
|
|
182
196
|
pdf_print_background: z.ZodDefault<z.ZodBoolean>;
|
|
183
|
-
pdf_format: z.ZodDefault<z.ZodEnum<{
|
|
197
|
+
pdf_format: z.ZodDefault<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<{
|
|
184
198
|
A0: "A0";
|
|
185
199
|
A1: "A1";
|
|
186
200
|
A2: "A2";
|
|
@@ -192,7 +206,7 @@ export declare const robotDocumentConvertInstructionsWithHiddenFieldsSchema: z.Z
|
|
|
192
206
|
Legal: "Legal";
|
|
193
207
|
Letter: "Letter";
|
|
194
208
|
Tabloid: "Tabloid";
|
|
195
|
-
}
|
|
209
|
+
}>>>;
|
|
196
210
|
pdf_display_header_footer: z.ZodDefault<z.ZodBoolean>;
|
|
197
211
|
pdf_header_template: z.ZodOptional<z.ZodString>;
|
|
198
212
|
pdf_footer_template: z.ZodOptional<z.ZodString>;
|
|
@@ -278,7 +292,7 @@ export declare const robotDocumentConvertInstructionsWithHiddenFieldsSchema: z.Z
|
|
|
278
292
|
}>]>>;
|
|
279
293
|
pdf_margin: z.ZodPrefault<z.ZodString>;
|
|
280
294
|
pdf_print_background: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
281
|
-
pdf_format: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
295
|
+
pdf_format: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<{
|
|
282
296
|
A0: "A0";
|
|
283
297
|
A1: "A1";
|
|
284
298
|
A2: "A2";
|
|
@@ -290,7 +304,7 @@ export declare const robotDocumentConvertInstructionsWithHiddenFieldsSchema: z.Z
|
|
|
290
304
|
Legal: "Legal";
|
|
291
305
|
Letter: "Letter";
|
|
292
306
|
Tabloid: "Tabloid";
|
|
293
|
-
}
|
|
307
|
+
}>>]>>;
|
|
294
308
|
pdf_display_header_footer: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
295
309
|
pdf_header_template: z.ZodOptional<z.ZodString>;
|
|
296
310
|
pdf_footer_template: z.ZodOptional<z.ZodString>;
|
|
@@ -374,7 +388,7 @@ export declare const robotDocumentConvertInstructionsWithHiddenFieldsSchema: z.Z
|
|
|
374
388
|
}>]>>;
|
|
375
389
|
pdf_margin: z.ZodPrefault<z.ZodString>;
|
|
376
390
|
pdf_print_background: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
377
|
-
pdf_format: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
391
|
+
pdf_format: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<{
|
|
378
392
|
A0: "A0";
|
|
379
393
|
A1: "A1";
|
|
380
394
|
A2: "A2";
|
|
@@ -386,7 +400,7 @@ export declare const robotDocumentConvertInstructionsWithHiddenFieldsSchema: z.Z
|
|
|
386
400
|
Legal: "Legal";
|
|
387
401
|
Letter: "Letter";
|
|
388
402
|
Tabloid: "Tabloid";
|
|
389
|
-
}
|
|
403
|
+
}>>]>>;
|
|
390
404
|
pdf_display_header_footer: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
391
405
|
pdf_header_template: z.ZodOptional<z.ZodString>;
|
|
392
406
|
pdf_footer_template: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-convert.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/document-convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ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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"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { optionalWithV3Semantics } from "../lib/sdkZodOptional.js";
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
+
import { zodCaseInsensitiveEnum } from "../lib/zodInputSemantics.js";
|
|
3
4
|
import { createProcessingExample, defineRobot, robotBase, robotDocumentProcessingMeta, robotUse, } from "./_instructions-primitives.js";
|
|
5
|
+
/** Accepts Playwright's paper-format case variants while publishing canonical spellings. */
|
|
6
|
+
export const documentConvertPdfFormatSchema = zodCaseInsensitiveEnum(z.enum(['A0', 'A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'Ledger', 'Legal', 'Letter', 'Tabloid']));
|
|
4
7
|
export const meta = {
|
|
5
8
|
...robotDocumentProcessingMeta,
|
|
6
9
|
example_code: createProcessingExample('converted', '/document/convert', {
|
|
@@ -194,11 +197,8 @@ Print PDF background graphics.
|
|
|
194
197
|
|
|
195
198
|
Currently this parameter is only supported when converting from \`html\`.
|
|
196
199
|
`),
|
|
197
|
-
pdf_format:
|
|
198
|
-
|
|
199
|
-
.default('Letter')
|
|
200
|
-
.describe(`
|
|
201
|
-
PDF paper format.
|
|
200
|
+
pdf_format: documentConvertPdfFormatSchema.default('Letter').describe(`
|
|
201
|
+
PDF paper format. Values are case-insensitive.
|
|
202
202
|
|
|
203
203
|
Currently this parameter is only supported when converting from \`html\`.
|
|
204
204
|
`),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RobotDefinitionWithHiddenFields, RobotMetaInput, RobotSchemaVariantTypes } from './_instructions-primitives.ts';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
export declare const meta: RobotMetaInput;
|
|
4
4
|
export declare const robotGoogleStoreInstructionsSchema: z.ZodObject<{
|
|
@@ -48,7 +48,13 @@ export declare const robotGoogleStoreInstructionsSchema: z.ZodObject<{
|
|
|
48
48
|
url_template: z.ZodDefault<z.ZodString>;
|
|
49
49
|
ssl_url_template: z.ZodDefault<z.ZodString>;
|
|
50
50
|
}, z.core.$strict>;
|
|
51
|
-
|
|
51
|
+
declare const hiddenFields: {
|
|
52
|
+
bucket: z.ZodOptional<z.ZodString>;
|
|
53
|
+
credentials: z.ZodOptional<z.ZodString>;
|
|
54
|
+
key_file_contents: z.ZodOptional<z.ZodString>;
|
|
55
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
56
|
+
};
|
|
57
|
+
export declare const robotDefinition: RobotDefinitionWithHiddenFields<typeof robotGoogleStoreInstructionsSchema.shape, typeof hiddenFields>;
|
|
52
58
|
export declare const robotGoogleStoreInstructionsWithHiddenFieldsSchema: z.ZodObject<{
|
|
53
59
|
interpolate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
54
60
|
true: "true";
|
|
@@ -82,7 +88,6 @@ export declare const robotGoogleStoreInstructionsWithHiddenFieldsSchema: z.ZodOb
|
|
|
82
88
|
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
83
89
|
}, z.core.$strict>]>>;
|
|
84
90
|
robot: z.ZodLiteral<"/google/store">;
|
|
85
|
-
credentials: z.ZodString;
|
|
86
91
|
path: z.ZodDefault<z.ZodString>;
|
|
87
92
|
acl: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
88
93
|
private: "private";
|
|
@@ -95,6 +100,10 @@ export declare const robotGoogleStoreInstructionsWithHiddenFieldsSchema: z.ZodOb
|
|
|
95
100
|
url_template: z.ZodDefault<z.ZodString>;
|
|
96
101
|
ssl_url_template: z.ZodDefault<z.ZodString>;
|
|
97
102
|
result: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"debug">, z.ZodOptional<z.ZodBoolean>]>>;
|
|
103
|
+
bucket: z.ZodOptional<z.ZodString>;
|
|
104
|
+
credentials: z.ZodOptional<z.ZodString>;
|
|
105
|
+
key_file_contents: z.ZodOptional<z.ZodString>;
|
|
106
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
98
107
|
}, z.core.$strict>, interpolatableRobotGoogleStoreInstructionsSchema: z.ZodObject<{
|
|
99
108
|
interpolate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
100
109
|
true: "true";
|
|
@@ -174,7 +183,6 @@ export declare const robotGoogleStoreInstructionsWithHiddenFieldsSchema: z.ZodOb
|
|
|
174
183
|
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
175
184
|
}, z.core.$strict>]>>;
|
|
176
185
|
robot: z.ZodLiteral<"/google/store">;
|
|
177
|
-
credentials: z.ZodString;
|
|
178
186
|
path: z.ZodPrefault<z.ZodString>;
|
|
179
187
|
acl: z.ZodPrefault<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
180
188
|
private: "private";
|
|
@@ -187,6 +195,10 @@ export declare const robotGoogleStoreInstructionsWithHiddenFieldsSchema: z.ZodOb
|
|
|
187
195
|
url_template: z.ZodPrefault<z.ZodString>;
|
|
188
196
|
ssl_url_template: z.ZodPrefault<z.ZodString>;
|
|
189
197
|
result: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<"debug">]>, z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
|
|
198
|
+
bucket: z.ZodOptional<z.ZodString>;
|
|
199
|
+
credentials: z.ZodOptional<z.ZodString>;
|
|
200
|
+
key_file_contents: z.ZodOptional<z.ZodString>;
|
|
201
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
190
202
|
}, z.core.$strict>;
|
|
191
203
|
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>;
|
|
192
204
|
export type RobotGoogleStoreInstructions = Instructions['output'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-store.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/google-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"google-store.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/google-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,+BAA+B,EAC/B,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAY1B,eAAO,MAAM,IAAI,EAAE,cAWlB,CAAA;AAED,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsDpC,CAAA;AAIX,QAAA,MAAM,YAAY;;;;;CAKjB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,+BAA+B,CAC3D,OAAO,kCAAkC,CAAC,KAAK,EAC/C,OAAO,YAAY,CACkE,CAAA;AAEvF,eAAO,MACa,kDAAkD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBACpD,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAChC,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAC/E,CAAA;AAEnB,KAAK,YAAY,GAAG,uBAAuB,CAAC,OAAO,eAAe,CAAC,CAAA;AAEnE,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;AACjE,MAAM,MAAM,4CAA4C,GAAG,YAAY,CAAC,cAAc,CAAC,CAAA;AACvF,MAAM,MAAM,0CAA0C,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAC5F,MAAM,MAAM,+CAA+C,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AACjG,MAAM,MAAM,0DAA0D,GACpE,YAAY,CAAC,4BAA4B,CAAC,CAAA;AAC5C,MAAM,MAAM,+DAA+D,GACzE,YAAY,CAAC,2BAA2B,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { optionalWithV3Semantics } from "../lib/sdkZodOptional.js";
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import { createStorageStoreExample,
|
|
3
|
+
import { createStorageStoreExample, defineRobotWithHiddenFields, getGoogleCredentialsDescription, googleBase, robotBase, robotStoreMeta, robotUse, } from "./_instructions-primitives.js";
|
|
4
4
|
export const meta = {
|
|
5
5
|
...robotStoreMeta,
|
|
6
6
|
example_code: createStorageStoreExample('/google/store', 'YOUR_GOOGLE_CREDENTIALS'),
|
|
@@ -65,5 +65,13 @@ The SSL URL of the file in the result JSON. The following [Assembly variables](/
|
|
|
65
65
|
`),
|
|
66
66
|
})
|
|
67
67
|
.strict();
|
|
68
|
-
|
|
68
|
+
// Credential alternatives stay optional while Templates and Assembly overrides are merged.
|
|
69
|
+
// GoogleStoreRobot validates the resolved values after credential injection.
|
|
70
|
+
const hiddenFields = {
|
|
71
|
+
bucket: optionalWithV3Semantics(z.string()),
|
|
72
|
+
credentials: optionalWithV3Semantics(robotGoogleStoreInstructionsSchema.shape.credentials),
|
|
73
|
+
key_file_contents: optionalWithV3Semantics(z.string()),
|
|
74
|
+
project_id: optionalWithV3Semantics(z.string()),
|
|
75
|
+
};
|
|
76
|
+
export const robotDefinition = defineRobotWithHiddenFields(meta, robotGoogleStoreInstructionsSchema, hiddenFields);
|
|
69
77
|
export const { withHiddenFields: robotGoogleStoreInstructionsWithHiddenFieldsSchema, interpolatable: interpolatableRobotGoogleStoreInstructionsSchema, interpolatableWithHiddenFields: interpolatableRobotGoogleStoreInstructionsWithHiddenFieldsSchema, } = robotDefinition;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { RobotDefinition, RobotMetaInput, RobotSchemaVariantTypes } from './_instructions-primitives.ts';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
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<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
@@ -46,7 +47,6 @@ export declare const robotImageDescribeInstructionsSchema: z.ZodObject<{
|
|
|
46
47
|
}>>;
|
|
47
48
|
format: z.ZodDefault<z.ZodEnum<{
|
|
48
49
|
json: "json";
|
|
49
|
-
text: "text";
|
|
50
50
|
meta: "meta";
|
|
51
51
|
}>>;
|
|
52
52
|
explicit_descriptions: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -96,7 +96,6 @@ export declare const robotImageDescribeInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
96
96
|
}>>;
|
|
97
97
|
format: z.ZodDefault<z.ZodEnum<{
|
|
98
98
|
json: "json";
|
|
99
|
-
text: "text";
|
|
100
99
|
meta: "meta";
|
|
101
100
|
}>>;
|
|
102
101
|
explicit_descriptions: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -146,7 +145,6 @@ export declare const robotImageDescribeInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
146
145
|
}>]>>;
|
|
147
146
|
format: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
148
147
|
json: "json";
|
|
149
|
-
text: "text";
|
|
150
148
|
meta: "meta";
|
|
151
149
|
}>]>>;
|
|
152
150
|
explicit_descriptions: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
@@ -194,7 +192,6 @@ export declare const robotImageDescribeInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
194
192
|
}>]>>;
|
|
195
193
|
format: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
196
194
|
json: "json";
|
|
197
|
-
text: "text";
|
|
198
195
|
meta: "meta";
|
|
199
196
|
}>]>>;
|
|
200
197
|
explicit_descriptions: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
@@ -207,5 +204,4 @@ export type InterpolatableRobotImageDescribeInstructions = Instructions['interpo
|
|
|
207
204
|
export type InterpolatableRobotImageDescribeInstructionsInput = Instructions['interpolatableInput'];
|
|
208
205
|
export type InterpolatableRobotImageDescribeInstructionsWithHiddenFields = Instructions['interpolatableHiddenOutput'];
|
|
209
206
|
export type InterpolatableRobotImageDescribeInstructionsWithHiddenFieldsInput = Instructions['interpolatableHiddenInput'];
|
|
210
|
-
export {};
|
|
211
207
|
//# sourceMappingURL=image-describe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-describe.d.ts","sourceRoot":"","sources":["../../../src/v4/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,QAAQ,CAAA;AAa1B,eAAO,MAAM,IAAI,EAAE,cAoBlB,CAAA;AAED,eAAO,MAAM,oCAAoC
|
|
1
|
+
{"version":3,"file":"image-describe.d.ts","sourceRoot":"","sources":["../../../src/v4/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,QAAQ,CAAA;AAa1B,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,6BAA6B,CAAA;AAEpC,eAAO,MAAM,IAAI,EAAE,cAoBlB,CAAA;AAED,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8BtC,CAAA;AAEX,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,OAAO,oCAAoC,CAAC,KAAK,CACtC,CAAA;AAEzD,eAAO,MACa,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBACtD,kDAAkD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAEhE,kEAAkE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBACnD,CAAA;AAEnB,KAAK,YAAY,GAAG,uBAAuB,CAAC,OAAO,eAAe,CAAC,CAAA;AAEnE,MAAM,MAAM,8BAA8B,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;AACnE,MAAM,MAAM,8CAA8C,GAAG,YAAY,CAAC,cAAc,CAAC,CAAA;AACzF,MAAM,MAAM,4CAA4C,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAC9F,MAAM,MAAM,iDAAiD,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AACnG,MAAM,MAAM,4DAA4D,GACtE,YAAY,CAAC,4BAA4B,CAAC,CAAA;AAC5C,MAAM,MAAM,iEAAiE,GAC3E,YAAY,CAAC,2BAA2B,CAAC,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
import { awsGcpAiProviderSchema, createProcessingExample, defineRobot, 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.
|
|
@@ -7,16 +7,7 @@ export declare const imageFacedetectFaceSelectionModeSchema: z.ZodEnum<{
|
|
|
7
7
|
"max-confidence": "max-confidence";
|
|
8
8
|
"max-size": "max-size";
|
|
9
9
|
}>;
|
|
10
|
-
export
|
|
11
|
-
confidence: z.ZodOptional<z.ZodNumber>;
|
|
12
|
-
height: z.ZodNumber;
|
|
13
|
-
width: z.ZodNumber;
|
|
14
|
-
x1: z.ZodNumber;
|
|
15
|
-
x2: z.ZodOptional<z.ZodNumber>;
|
|
16
|
-
y1: z.ZodNumber;
|
|
17
|
-
y2: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
19
|
-
export type ImageFacedetectFaceCoordinates = z.infer<typeof imageFacedetectFaceCoordinatesSchema>;
|
|
10
|
+
export { type ImageFacedetectFaceCoordinates, imageFacedetectFaceCoordinatesSchema, } from './_image-facedetect-output.ts';
|
|
20
11
|
export declare const meta: RobotMetaInput;
|
|
21
12
|
export declare const robotImageFacedetectInstructionsSchema: z.ZodObject<{
|
|
22
13
|
interpolate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
@@ -244,5 +235,4 @@ export type InterpolatableRobotImageFacedetectInstructions = Instructions['inter
|
|
|
244
235
|
export type InterpolatableRobotImageFacedetectInstructionsInput = Instructions['interpolatableInput'];
|
|
245
236
|
export type InterpolatableRobotImageFacedetectInstructionsWithHiddenFields = Instructions['interpolatableHiddenOutput'];
|
|
246
237
|
export type InterpolatableRobotImageFacedetectInstructionsWithHiddenFieldsInput = Instructions['interpolatableHiddenInput'];
|
|
247
|
-
export {};
|
|
248
238
|
//# sourceMappingURL=image-facedetect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-facedetect.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/image-facedetect.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image-facedetect.d.ts","sourceRoot":"","sources":["../../../src/v4/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,QAAQ,CAAA;AAY1B,eAAO,MAAM,iCAAiC,0DAKpC,CAAA;AAEV,eAAO,MAAM,sCAAsC;;;;;EAA4C,CAAA;AAE/F,OAAO,EACL,KAAK,8BAA8B,EACnC,oCAAoC,GACrC,MAAM,+BAA+B,CAAA;AAEtC,eAAO,MAAM,IAAI,EAAE,cAoBlB,CAAA;AAED,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiGxC,CAAA;AAEX,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,OAAO,sCAAsC,CAAC,KAAK,CACtC,CAAA;AAE3D,eAAO,MACa,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBACxD,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAElE,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBACrD,CAAA;AAEnB,KAAK,YAAY,GAAG,uBAAuB,CAAC,OAAO,eAAe,CAAC,CAAA;AAEnE,MAAM,MAAM,gCAAgC,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;AACrE,MAAM,MAAM,gDAAgD,GAAG,YAAY,CAAC,cAAc,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"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { optionalWithV3Semantics } from "../lib/sdkZodOptional.js";
|
|
2
1
|
import { z } from 'zod/v4';
|
|
3
2
|
import { awsGcpAiProviderSchema, createProcessingExample, defineRobot, robotArtificialIntelligenceMeta, robotBase, robotParameterDocs, robotUse, } from "./_instructions-primitives.js";
|
|
4
3
|
export const imageFacedetectFaceSelectionModes = [
|
|
@@ -8,17 +7,7 @@ export const imageFacedetectFaceSelectionModes = [
|
|
|
8
7
|
'max-size',
|
|
9
8
|
];
|
|
10
9
|
export const imageFacedetectFaceSelectionModeSchema = z.enum(imageFacedetectFaceSelectionModes);
|
|
11
|
-
export
|
|
12
|
-
.object({
|
|
13
|
-
confidence: optionalWithV3Semantics(z.number()),
|
|
14
|
-
height: z.number(),
|
|
15
|
-
width: z.number(),
|
|
16
|
-
x1: z.number(),
|
|
17
|
-
x2: optionalWithV3Semantics(z.number()),
|
|
18
|
-
y1: z.number(),
|
|
19
|
-
y2: optionalWithV3Semantics(z.number()),
|
|
20
|
-
})
|
|
21
|
-
.catchall(z.unknown());
|
|
10
|
+
export { imageFacedetectFaceCoordinatesSchema, } from "./_image-facedetect-output.js";
|
|
22
11
|
export const meta = {
|
|
23
12
|
...robotArtificialIntelligenceMeta,
|
|
24
13
|
example_code: createProcessingExample('faces_detected', '/image/facedetect', {
|
|
@@ -38,7 +38,6 @@ export declare const robotImageGenerateInstructionsSchema: z.ZodObject<{
|
|
|
38
38
|
model: z.ZodOptional<z.ZodString>;
|
|
39
39
|
prompt: z.ZodString;
|
|
40
40
|
format: z.ZodOptional<z.ZodEnum<{
|
|
41
|
-
gif: "gif";
|
|
42
41
|
jpeg: "jpeg";
|
|
43
42
|
jpg: "jpg";
|
|
44
43
|
png: "png";
|
|
@@ -88,7 +87,6 @@ export declare const robotImageGenerateInstructionsWithHiddenFieldsSchema: z.Zod
|
|
|
88
87
|
model: z.ZodOptional<z.ZodString>;
|
|
89
88
|
prompt: z.ZodString;
|
|
90
89
|
format: z.ZodOptional<z.ZodEnum<{
|
|
91
|
-
gif: "gif";
|
|
92
90
|
jpeg: "jpeg";
|
|
93
91
|
jpg: "jpg";
|
|
94
92
|
png: "png";
|
|
@@ -143,7 +141,6 @@ export declare const interpolatableRobotImageGenerateInstructionsSchema: z.ZodOb
|
|
|
143
141
|
model: z.ZodOptional<z.ZodString>;
|
|
144
142
|
prompt: z.ZodString;
|
|
145
143
|
format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
146
|
-
gif: "gif";
|
|
147
144
|
jpeg: "jpeg";
|
|
148
145
|
jpg: "jpg";
|
|
149
146
|
png: "png";
|
|
@@ -195,7 +192,6 @@ export declare const interpolatableRobotImageGenerateInstructionsWithHiddenField
|
|
|
195
192
|
model: z.ZodOptional<z.ZodString>;
|
|
196
193
|
prompt: z.ZodString;
|
|
197
194
|
format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
198
|
-
gif: "gif";
|
|
199
195
|
jpeg: "jpeg";
|
|
200
196
|
jpg: "jpg";
|
|
201
197
|
png: "png";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-generate.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/image-generate.ts"],"names":[],"mappings":"AAEA,OAAO,KAA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,GAAG,CAAC,CAAC,KAAK,CACrF,OAAO,kEAAkE,CAC1E,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,eAAe,CAC3C,OAAO,kDAAkD,EACzD,OAAO,kEAAkE,CAM1E,CAAA"}
|
|
@@ -72,7 +72,7 @@ Best practice:
|
|
|
72
72
|
.string()
|
|
73
73
|
.describe('Prompt describing the desired image. For inpainting, describe what should appear in the masked/transparent region and that the rest should stay unchanged.'),
|
|
74
74
|
format: optionalWithV3Semantics(z
|
|
75
|
-
.enum(['jpeg', 'jpg', 'png', '
|
|
75
|
+
.enum(['jpeg', 'jpg', 'png', 'webp', 'svg']))
|
|
76
76
|
.describe('Output format. Defaults depend on model: png for Google and OpenAI models, svg for recraft-v3, jpeg for others. Google models currently return PNG only.'),
|
|
77
77
|
// Provider-specific limits are checked by the Robot so other models retain their seed range.
|
|
78
78
|
seed: optionalWithV3Semantics(z
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { RobotDefinitionWithHiddenFields, RobotMetaInput, RobotSchemaVariantTypes } from './_instructions-primitives.ts';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
export declare const meta: RobotMetaInput;
|
|
4
|
+
/**
|
|
5
|
+
* Maximum input area accepted by the pinned Real-ESRGAN Replicate predictor.
|
|
6
|
+
* @see https://github.com/replicate/cog-real-esrgan/blob/6cbd5e6ce8bd0fa90db54af899a8a9a85eb3db41/predict.py#L19
|
|
7
|
+
*/
|
|
8
|
+
export declare const realEsrganMaxInputPixels: number;
|
|
4
9
|
export declare const robotImageUpscaleInstructionsSchema: z.ZodObject<{
|
|
5
10
|
interpolate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
6
11
|
true: "true";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-upscale.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/image-upscale.ts"],"names":[],"mappings":"AAEA,OAAO,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AM,2DAA2D,GACrE,YAAY,CAAC,4BAA4B,CAAC,CAAA;AAC5C,MAAM,MAAM,gEAAgE,GAC1E,YAAY,CAAC,2BAA2B,CAAC,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { optionalWithV3Semantics } from "../lib/sdkZodOptional.js";
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
+
import { formatEnglishInteger } from "../englishInteger.js";
|
|
3
4
|
import { imageUpscaleDefaultModelIdentifier, imageUpscaleModelIdentifiers } from "./_ai-models.js";
|
|
4
5
|
import { autoProviderDescription, createProcessingExample, defineRobotWithHiddenFields, robotArtificialIntelligenceMeta, robotBase, robotUse, } from "./_instructions-primitives.js";
|
|
5
6
|
export const meta = {
|
|
@@ -15,7 +16,13 @@ export const meta = {
|
|
|
15
16
|
purpose_words: 'Upscale images',
|
|
16
17
|
title: 'Upscale images',
|
|
17
18
|
name: 'ImageUpscaleRobot',
|
|
19
|
+
// Preserve the runtime fallback; positive provider costs replace it during usage accounting.
|
|
18
20
|
minimumChargeUsd: 0.06,
|
|
21
|
+
providerCostPricing: {
|
|
22
|
+
provider: 'replicate',
|
|
23
|
+
model: imageUpscaleDefaultModelIdentifier,
|
|
24
|
+
models: [...imageUpscaleModelIdentifiers],
|
|
25
|
+
},
|
|
19
26
|
stage: 'beta',
|
|
20
27
|
};
|
|
21
28
|
const upscaleModelSchema = z
|
|
@@ -23,15 +30,20 @@ const upscaleModelSchema = z
|
|
|
23
30
|
.default(imageUpscaleDefaultModelIdentifier);
|
|
24
31
|
const upscaleScaleSchema = z.union([z.literal(2), z.literal(4)]).default(2);
|
|
25
32
|
const upscaleFaceEnhanceSchema = z.boolean().default(false);
|
|
33
|
+
/**
|
|
34
|
+
* Maximum input area accepted by the pinned Real-ESRGAN Replicate predictor.
|
|
35
|
+
* @see https://github.com/replicate/cog-real-esrgan/blob/6cbd5e6ce8bd0fa90db54af899a8a9a85eb3db41/predict.py#L19
|
|
36
|
+
*/
|
|
37
|
+
export const realEsrganMaxInputPixels = 1448 * 1448;
|
|
26
38
|
export const robotImageUpscaleInstructionsSchema = robotBase
|
|
27
39
|
.merge(robotUse)
|
|
28
40
|
.extend({
|
|
29
41
|
robot: z.literal('/image/upscale'),
|
|
30
42
|
// Outer optional preserves parsed input; normalization applies the published inner defaults.
|
|
31
43
|
model: optionalWithV3Semantics(upscaleModelSchema)
|
|
32
|
-
.describe(`The AI model to use for image upscaling. Defaults to ${upscaleModelSchema.parse(undefined)}.`),
|
|
44
|
+
.describe(`The AI model to use for image upscaling. Defaults to ${upscaleModelSchema.parse(undefined)}. Real-ESRGAN inputs exceeding ${formatEnglishInteger(realEsrganMaxInputPixels)} pixels are resized proportionally before upscaling.`),
|
|
33
45
|
scale: optionalWithV3Semantics(upscaleScaleSchema)
|
|
34
|
-
.describe(`Upscale factor. Defaults to ${upscaleScaleSchema.parse(undefined)}.`),
|
|
46
|
+
.describe(`Upscale factor, applied after any input resizing. Defaults to ${upscaleScaleSchema.parse(undefined)}. GFPGAN results are resized after restoration to match this factor.`),
|
|
35
47
|
face_enhance: optionalWithV3Semantics(upscaleFaceEnhanceSchema)
|
|
36
48
|
.describe(`Enable face enhancement for better face restoration. Defaults to ${upscaleFaceEnhanceSchema.parse(undefined)}.`),
|
|
37
49
|
})
|