@transloadit/zod 5.0.1 → 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/assemblyStatus.d.ts +682 -682
- package/dist/v3/assemblyStatus.d.ts.map +1 -1
- package/dist/v3/assemblyStatus.js +23 -14
- 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/_ai-models.d.ts.map +1 -1
- package/dist/v3/robots/_ai-models.js +2 -0
- package/dist/v3/robots/_google-image-seed.d.ts +8 -0
- package/dist/v3/robots/_google-image-seed.d.ts.map +1 -0
- package/dist/v3/robots/_google-image-seed.js +11 -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 +84 -0
- package/dist/v3/robots/_instructions-primitives.d.ts.map +1 -1
- package/dist/v3/robots/_instructions-primitives.js +57 -16
- 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 +13 -13
- package/dist/v3/robots/ai-chat.d.ts.map +1 -1
- 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-import.d.ts +4 -6
- package/dist/v3/robots/google-import.d.ts.map +1 -1
- package/dist/v3/robots/google-import.js +5 -2
- 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 +14 -14
- package/dist/v3/robots/http-import.d.ts.map +1 -1
- package/dist/v3/robots/http-import.js +4 -0
- 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.d.ts.map +1 -1
- package/dist/v3/robots/image-generate.js +7 -2
- package/dist/v3/robots/image-ocr.d.ts +8 -8
- package/dist/v3/robots/image-resize.d.ts +4 -0
- package/dist/v3/robots/image-resize.d.ts.map +1 -1
- package/dist/v3/robots/image-resize.js +34 -6
- 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 +34 -18
- 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/video-thumbs.d.ts +6 -0
- package/dist/v3/robots/video-thumbs.d.ts.map +1 -1
- package/dist/v3/robots/video-thumbs.js +15 -5
- 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/assemblyStatus.d.ts +75 -1183
- package/dist/v4/assemblyStatus.d.ts.map +1 -1
- package/dist/v4/assemblyStatus.js +23 -14
- 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/_ai-models.d.ts.map +1 -1
- package/dist/v4/robots/_ai-models.js +2 -0
- package/dist/v4/robots/_google-image-seed.d.ts +8 -0
- package/dist/v4/robots/_google-image-seed.d.ts.map +1 -0
- package/dist/v4/robots/_google-image-seed.js +11 -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 +18 -0
- package/dist/v4/robots/_instructions-primitives.d.ts.map +1 -1
- package/dist/v4/robots/_instructions-primitives.js +56 -15
- 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/ai-chat.d.ts +1 -1
- package/dist/v4/robots/ai-chat.d.ts.map +1 -1
- 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-import.d.ts +4 -4
- package/dist/v4/robots/google-import.d.ts.map +1 -1
- package/dist/v4/robots/google-import.js +5 -2
- 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 +14 -14
- package/dist/v4/robots/http-import.d.ts.map +1 -1
- package/dist/v4/robots/http-import.js +4 -0
- 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 +6 -2
- package/dist/v4/robots/image-resize.d.ts +4 -0
- package/dist/v4/robots/image-resize.d.ts.map +1 -1
- package/dist/v4/robots/image-resize.js +34 -6
- 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 +34 -18
- 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/video-thumbs.d.ts +6 -0
- package/dist/v4/robots/video-thumbs.d.ts.map +1 -1
- package/dist/v4/robots/video-thumbs.js +15 -5
- 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
|
@@ -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'),
|
|
@@ -22,19 +22,11 @@ The URL to the exported file in your Google bucket will be presented in the Tran
|
|
|
22
22
|
result: optionalWithV3Semantics(z
|
|
23
23
|
.boolean())
|
|
24
24
|
.describe('Whether the results of this Step should be present in the Assembly Status JSON'),
|
|
25
|
-
credentials: z.string().describe(`
|
|
26
|
-
|
|
25
|
+
credentials: z.string().describe(getGoogleCredentialsDescription(`
|
|
26
|
+
Grant the service account \`storage.objects.create\` on the bucket you want to export to. The “Storage Object Creator” role provides this permission for new objects, but does not allow overwriting existing objects. Add \`storage.objects.delete\` only if you need to overwrite existing objects. See [Google’s IAM roles for Cloud Storage](https://docs.cloud.google.com/storage/docs/access-control/iam-roles).
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Now you can set up the \`storage.objects.create\` and \`storage.objects.delete\` permissions. The latter is optional and only required if you intend to overwrite existing paths.
|
|
31
|
-
|
|
32
|
-
To do this from the Google Cloud console, navigate to "IAM & Admin" and select "Roles". From here, click "Create Role", enter a name, set the role launch stage to _General availability,_ and set the permissions stated above.
|
|
33
|
-
|
|
34
|
-
Next, go to Storage browser and select the ellipsis on your bucket to edit bucket permissions. From here, select "Add Member", enter your service account as a new member, and select your newly created role.
|
|
35
|
-
|
|
36
|
-
Then, create your associated [Template Credentials](/c/template-credentials/) in your Transloadit account and use the name of your <dfn>Template Credentials</dfn> as this parameter's value.
|
|
37
|
-
`),
|
|
28
|
+
For overwrites, create a custom role in “IAM & Admin” → “Roles” with \`storage.objects.create\` and \`storage.objects.delete\`, then grant it to the service account on your bucket.
|
|
29
|
+
`)),
|
|
38
30
|
path: z
|
|
39
31
|
.string()
|
|
40
32
|
.default('${unique_prefix}/${file.url_name}')
|
|
@@ -73,5 +65,13 @@ The SSL URL of the file in the result JSON. The following [Assembly variables](/
|
|
|
73
65
|
`),
|
|
74
66
|
})
|
|
75
67
|
.strict();
|
|
76
|
-
|
|
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);
|
|
77
77
|
export const { withHiddenFields: robotGoogleStoreInstructionsWithHiddenFieldsSchema, interpolatable: interpolatableRobotGoogleStoreInstructionsSchema, interpolatableWithHiddenFields: interpolatableRobotGoogleStoreInstructionsWithHiddenFieldsSchema, } = robotDefinition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-import.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/http-import.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAEpF,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAc1B,eAAO,MAAM,IAAI,EAAE,cAkBlB,CAAA;AAED,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"http-import.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/http-import.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAEpF,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAc1B,eAAO,MAAM,IAAI,EAAE,cAkBlB,CAAA;AAED,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA0FnC,CAAA;AAEX,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAe1D,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAE3D,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAE3E,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;AAED,eAAO,MAAM,eAAe,EAAE,eAAe,CAC3C,OAAO,+CAA+C,EACtD,OAAO,+DAA+D,CAKvE,CAAA"}
|
|
@@ -42,12 +42,16 @@ The URL from which the file to be imported can be retrieved.
|
|
|
42
42
|
HTTPS URLs must present a valid certificate trusted by Transloadit and matching the requested hostname. Self-signed, expired, or hostname-mismatched certificates cause \`${httpImportRobotErrors.HTTP_IMPORT_FAILURE.error}\`.
|
|
43
43
|
|
|
44
44
|
You can also specify an array of URLs or a string of \`|\` delimited URLs to import several files at once. Please also check the \`url_delimiter\` parameter for that.
|
|
45
|
+
|
|
46
|
+
Delimited URL lists are split before variables are interpolated. A delimiter introduced by a variable remains part of that URL. To supply several URLs through a variable, have the entire \`url\` value interpolate to an array of URLs.
|
|
45
47
|
`),
|
|
46
48
|
url_delimiter: z
|
|
47
49
|
.string()
|
|
48
50
|
.default('|')
|
|
49
51
|
.describe(`
|
|
50
52
|
Provides the delimiter that is used to split the URLs in your \`url\` parameter value.
|
|
53
|
+
|
|
54
|
+
The delimiter must be literal. Only delimiters outside interpolation expressions in the original \`url\` value separate imports; variable values are never split.
|
|
51
55
|
`),
|
|
52
56
|
headers: z
|
|
53
57
|
.union([
|
|
@@ -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,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAEpF,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"image-generate.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/image-generate.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'zod/v4';
|
|
3
3
|
import { imageGenerateDefaultModelIdentifier, imageGenerateLegacyModelAlias, imageGenerateModelIdentifiers, } from "./_ai-models.js";
|
|
4
|
+
import { googleImageSeedMaximum } from "./_google-image-seed.js";
|
|
4
5
|
import { autoProviderDescription, interpolateRobot, robotArtificialIntelligenceMeta, robotBase, robotParameterDocs, robotUse, } from "./_instructions-primitives.js";
|
|
5
6
|
function formatEnglishModelList(values) {
|
|
6
7
|
const formattedValues = values.map((model) => `\`${model}\``);
|
|
@@ -71,9 +72,12 @@ Best practice:
|
|
|
71
72
|
.string()
|
|
72
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.'),
|
|
73
74
|
format: optionalWithV3Semantics(z
|
|
74
|
-
.enum(['jpeg', 'jpg', 'png', '
|
|
75
|
+
.enum(['jpeg', 'jpg', 'png', 'webp', 'svg']))
|
|
75
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.'),
|
|
76
|
-
seed
|
|
77
|
+
// Provider-specific limits are checked by the Robot so other models retain their seed range.
|
|
78
|
+
seed: optionalWithV3Semantics(z
|
|
79
|
+
.number())
|
|
80
|
+
.describe(`${robotParameterDocs.seed.description} For Google models, use an integer from 0 to ${googleImageSeedMaximum}. Each output increments the seed by 1, so the final output’s seed must also fit this range. A seed does not guarantee identical images.`),
|
|
77
81
|
aspect_ratio: optionalWithV3Semantics(z
|
|
78
82
|
.string())
|
|
79
83
|
.describe('Requested output aspect ratio. For Google models, width/height can also be used and orientation is derived automatically when aspect_ratio is omitted.'),
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { RobotDefinitionWithHiddenFields, RobotMetaInput, RobotSchemaVariantTypes } from './_instructions-primitives.ts';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
+
/** Input MIME types eligible for automatic libvips processing in /image/resize. */
|
|
4
|
+
export declare const imageResizeDaemonInputMimes: readonly string[];
|
|
5
|
+
/** Output formats eligible for automatic libvips processing in /image/resize. */
|
|
6
|
+
export declare const imageResizeDaemonOutputFormats: readonly string[];
|
|
3
7
|
export declare const meta: RobotMetaInput;
|
|
4
8
|
export declare const oneTextSchema: z.ZodObject<{
|
|
5
9
|
text: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-resize.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/image-resize.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;AAyB1B,eAAO,MAAM,IAAI,EAAE,cAiBlB,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsExB,CAAA;AAwBF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"image-resize.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/image-resize.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,+BAA+B,EAC/B,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,iCAAiC,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;AACrE,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"}
|
|
@@ -4,6 +4,32 @@ import { imagemagickDensityPattern } from "../imagemagickDensity.js";
|
|
|
4
4
|
import { zodInputPreservingTransform } from "../lib/zodInputSemantics.js";
|
|
5
5
|
import { color_without_alpha_with_named, colorspaceSchema, complexHeightSchema, complexWidthSchema, createProcessingExample, defineRobotWithHiddenFields, httpUrlSchema, imageAdaptiveFilteringSchema, imageQualitySchema, percentageSchema, positionSchema, robotBase, robotImagemagick, robotImageProcessingMeta, robotUse, unsafeCoordinatesSchema, } from "./_instructions-primitives.js";
|
|
6
6
|
const imageResizeGravitySchema = z.union([positionSchema, z.enum(['attention', 'entropy'])]);
|
|
7
|
+
/** Input MIME types eligible for automatic libvips processing in /image/resize. */
|
|
8
|
+
export const imageResizeDaemonInputMimes = [
|
|
9
|
+
'image/jpg',
|
|
10
|
+
'image/jpeg',
|
|
11
|
+
'image/jxl',
|
|
12
|
+
'image/png',
|
|
13
|
+
'image/tiff',
|
|
14
|
+
'image/tiff-fx',
|
|
15
|
+
'image/gif',
|
|
16
|
+
'image/webp',
|
|
17
|
+
'image/svg',
|
|
18
|
+
'image/svg+xml',
|
|
19
|
+
];
|
|
20
|
+
/** Output formats eligible for automatic libvips processing in /image/resize. */
|
|
21
|
+
export const imageResizeDaemonOutputFormats = [
|
|
22
|
+
'heic',
|
|
23
|
+
'heif',
|
|
24
|
+
'jpeg',
|
|
25
|
+
'jpg',
|
|
26
|
+
'jxl',
|
|
27
|
+
'png',
|
|
28
|
+
'raw',
|
|
29
|
+
'tiff',
|
|
30
|
+
'webp',
|
|
31
|
+
'avif',
|
|
32
|
+
];
|
|
7
33
|
export const meta = {
|
|
8
34
|
...robotImageProcessingMeta,
|
|
9
35
|
example_code: createProcessingExample('resized', '/image/resize', {
|
|
@@ -141,14 +167,14 @@ Height of the new image, in pixels. If not specified, will default to the height
|
|
|
141
167
|
.union([
|
|
142
168
|
z
|
|
143
169
|
.literal('crop')
|
|
144
|
-
.describe(`Cuts an area out of an image
|
|
170
|
+
.describe(`Cuts an area out of an image. Coordinates in the \`crop\` parameter imply this strategy. With coordinates, ImageMagick crops without resizing; libvips enlarges the image if \`x2\` or \`y2\` exceeds its dimensions, even with \`zoom: false\`. Without coordinates, set both \`width\` and \`height\`; this uses \`fillcrop\`, with \`gravity\` selecting which part is kept. With the default \`zoom\` setting, this coordinate-free path scales the image to cover that rectangle before trimming.
|
|
145
171
|
|
|
146
172
|
To crop around human faces, see [🤖/image/facedetect](https://transloadit.com/docs/robots/image-facedetect/) instead.`),
|
|
147
173
|
z
|
|
148
174
|
.literal('fillcrop')
|
|
149
175
|
.describe(`Scales the image to fit into our 100×100 target while preserving aspect ratio, while trimming away any excess surface. This means both sides will become exactly 100 pixels, at the tradeoff of destroying parts of the image.
|
|
150
176
|
|
|
151
|
-
By default the resulting image is horizontally/vertically centered to fill the target rectangle. Use the \`gravity\` parameter to change where to crop the image, such as \`"bottom\`
|
|
177
|
+
By default the resulting image is horizontally/vertically centered to fill the target rectangle. Use the \`gravity\` parameter to change where to crop the image, such as \`"bottom"\` or \`"left"\`.`),
|
|
152
178
|
z
|
|
153
179
|
.literal('fit')
|
|
154
180
|
.describe(`Uses the larger side of the original image as a base for the resize. Aspect ratio is preserved. Either side will become at most 100 pixels.
|
|
@@ -192,7 +218,7 @@ For example:
|
|
|
192
218
|
}
|
|
193
219
|
\`\`\`
|
|
194
220
|
|
|
195
|
-
This will crop the area from \`(80, 100)\` to \`(600, 800)\` from a 1000×1000 pixels image, which is a
|
|
221
|
+
This will crop the area from \`(80, 100)\` to \`(600, 800)\` from a 1000×1000 pixels image, which is a rectangle whose width is 520px and height is 700px. If \`crop\` is set, the width and height parameters are ignored, and the \`resize_strategy\` is set to \`crop\` automatically.
|
|
196
222
|
|
|
197
223
|
You can also use a JSON string of such an object with coordinates in similar fashion:
|
|
198
224
|
|
|
@@ -203,9 +229,11 @@ You can also use a JSON string of such an object with coordinates in similar fas
|
|
|
203
229
|
To crop around human faces, see [🤖/image/facedetect](/docs/robots/image-facedetect/).
|
|
204
230
|
`),
|
|
205
231
|
gravity: imageResizeGravitySchema.default('center').describe(`
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
232
|
+
Sets crop direction for \`crop\` or \`fillcrop\` without explicit coordinates.
|
|
233
|
+
Content-aware \`attention\` and \`entropy\` need libvips, \`fillcrop\`, \`width\` and \`height\`.
|
|
234
|
+
Effects such as \`sepia\` or \`text\`, and inputs such as HEIC, can use ImageMagick.
|
|
235
|
+
It centers these crops and the Assembly reports a warning.
|
|
236
|
+
Crop in a separate /image/resize Step before effects, or convert unsupported inputs to PNG first.
|
|
209
237
|
`),
|
|
210
238
|
strip: z
|
|
211
239
|
.boolean()
|
|
@@ -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,KAAK,EACV,+BAA+B,EAC/B,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"image-upscale.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/image-upscale.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;AAa1B,eAAO,MAAM,IAAI,EAAE,cAqBlB,CAAA;AAQD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,QAAc,CAAA;AAEnD,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkBrC,CAAA;AAEX,QAAA,MAAM,YAAY;;CAEjB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,+BAA+B,CAC3D,OAAO,mCAAmC,CAAC,KAAK,EAChD,OAAO,YAAY,CACmE,CAAA;AAExF,eAAO,MACa,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBACrD,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBACjC,iEAAiE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAChF,CAAA;AAEnB,KAAK,YAAY,GAAG,uBAAuB,CAAC,OAAO,eAAe,CAAC,CAAA;AAEnE,MAAM,MAAM,6BAA6B,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;AAClE,MAAM,MAAM,6CAA6C,GAAG,YAAY,CAAC,cAAc,CAAC,CAAA;AACxF,MAAM,MAAM,2CAA2C,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAC7F,MAAM,MAAM,gDAAgD,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAClG,MAAM,MAAM,2DAA2D,GACrE,YAAY,CAAC,4BAA4B,CAAC,CAAA;AAC5C,MAAM,MAAM,gEAAgE,GAC1E,YAAY,CAAC,2BAA2B,CAAC,CAAA"}
|
|
@@ -1,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
|
})
|
|
@@ -42,10 +42,10 @@ export declare const robotMegaStoreInstructionsSchema: z.ZodObject<{
|
|
|
42
42
|
secret: z.ZodOptional<z.ZodString>;
|
|
43
43
|
robot: z.ZodLiteral<"/mega/store">;
|
|
44
44
|
path: 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 robotMegaStoreInstructionsWithHiddenFieldsSchema: z.ZodObje
|
|
|
90
90
|
secret: z.ZodOptional<z.ZodString>;
|
|
91
91
|
robot: z.ZodLiteral<"/mega/store">;
|
|
92
92
|
path: 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 robotMegaStoreInstructionsWithHiddenFieldsSchema: z.ZodObje
|
|
|
138
138
|
secret: z.ZodOptional<z.ZodString>;
|
|
139
139
|
robot: z.ZodLiteral<"/mega/store">;
|
|
140
140
|
path: 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>, interpolatableRobotMegaStoreInstructionsWithHiddenFieldsSchema: z.ZodObject<{
|
|
@@ -184,10 +184,10 @@ export declare const robotMegaStoreInstructionsWithHiddenFieldsSchema: z.ZodObje
|
|
|
184
184
|
secret: z.ZodOptional<z.ZodString>;
|
|
185
185
|
robot: z.ZodLiteral<"/mega/store">;
|
|
186
186
|
path: 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]>>]>>;
|
|
@@ -19,7 +19,7 @@ export const robotMegaStoreInstructionsSchema = robotBase
|
|
|
19
19
|
The URL to the result file will be returned in the <dfn>Assembly Status JSON</dfn>.
|
|
20
20
|
`),
|
|
21
21
|
path: storeFilePath,
|
|
22
|
-
acl: storageAcl,
|
|
22
|
+
acl: storageAcl.default('private'),
|
|
23
23
|
headers: z.record(z.string(), z.string())
|
|
24
24
|
.default({ 'Content-Type': '${file.mime}' })
|
|
25
25
|
.describe(`
|
|
@@ -45,8 +45,13 @@ export declare const robotS3StoreInstructionsSchema: z.ZodObject<{
|
|
|
45
45
|
acl: z.ZodDefault<z.ZodEnum<{
|
|
46
46
|
private: "private";
|
|
47
47
|
"public-read": "public-read";
|
|
48
|
+
"authenticated-read": "authenticated-read";
|
|
49
|
+
"bucket-owner-full-control": "bucket-owner-full-control";
|
|
50
|
+
"aws-exec-read": "aws-exec-read";
|
|
48
51
|
"bucket-default": "bucket-default";
|
|
52
|
+
"bucket-owner-read": "bucket-owner-read";
|
|
49
53
|
public: "public";
|
|
54
|
+
"public-read-write": "public-read-write";
|
|
50
55
|
}>>;
|
|
51
56
|
check_integrity: z.ZodDefault<z.ZodBoolean>;
|
|
52
57
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -103,8 +108,13 @@ export declare const robotS3StoreInstructionsWithHiddenFieldsSchema: z.ZodObject
|
|
|
103
108
|
acl: z.ZodDefault<z.ZodEnum<{
|
|
104
109
|
private: "private";
|
|
105
110
|
"public-read": "public-read";
|
|
111
|
+
"authenticated-read": "authenticated-read";
|
|
112
|
+
"bucket-owner-full-control": "bucket-owner-full-control";
|
|
113
|
+
"aws-exec-read": "aws-exec-read";
|
|
106
114
|
"bucket-default": "bucket-default";
|
|
115
|
+
"bucket-owner-read": "bucket-owner-read";
|
|
107
116
|
public: "public";
|
|
117
|
+
"public-read-write": "public-read-write";
|
|
108
118
|
}>>;
|
|
109
119
|
check_integrity: z.ZodDefault<z.ZodBoolean>;
|
|
110
120
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -159,8 +169,13 @@ export declare const robotS3StoreInstructionsWithHiddenFieldsSchema: z.ZodObject
|
|
|
159
169
|
acl: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
160
170
|
private: "private";
|
|
161
171
|
"public-read": "public-read";
|
|
172
|
+
"authenticated-read": "authenticated-read";
|
|
173
|
+
"bucket-owner-full-control": "bucket-owner-full-control";
|
|
174
|
+
"aws-exec-read": "aws-exec-read";
|
|
162
175
|
"bucket-default": "bucket-default";
|
|
176
|
+
"bucket-owner-read": "bucket-owner-read";
|
|
163
177
|
public: "public";
|
|
178
|
+
"public-read-write": "public-read-write";
|
|
164
179
|
}>]>>;
|
|
165
180
|
check_integrity: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
166
181
|
headers: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -212,8 +227,13 @@ export declare const robotS3StoreInstructionsWithHiddenFieldsSchema: z.ZodObject
|
|
|
212
227
|
acl: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
213
228
|
private: "private";
|
|
214
229
|
"public-read": "public-read";
|
|
230
|
+
"authenticated-read": "authenticated-read";
|
|
231
|
+
"bucket-owner-full-control": "bucket-owner-full-control";
|
|
232
|
+
"aws-exec-read": "aws-exec-read";
|
|
215
233
|
"bucket-default": "bucket-default";
|
|
234
|
+
"bucket-owner-read": "bucket-owner-read";
|
|
216
235
|
public: "public";
|
|
236
|
+
"public-read-write": "public-read-write";
|
|
217
237
|
}>]>>;
|
|
218
238
|
check_integrity: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
219
239
|
headers: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"s3-store.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/s3-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,+B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