@executioncontrolprotocol/adobe-firefly-services 0.13.2 → 0.60.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/LICENSE +198 -13
- package/README.md +113 -83
- package/dist/auth/ims.d.ts +47 -14
- package/dist/auth/ims.d.ts.map +1 -1
- package/dist/auth/ims.js +127 -26
- package/dist/auth/ims.js.map +1 -1
- package/dist/config.d.ts +27 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +51 -0
- package/dist/config.js.map +1 -0
- package/dist/errors.d.ts +42 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +53 -0
- package/dist/errors.js.map +1 -0
- package/dist/generated/audio-video/capabilities.d.ts +21 -36
- package/dist/generated/audio-video/capabilities.d.ts.map +1 -1
- package/dist/generated/audio-video/capabilities.js +295 -259
- package/dist/generated/audio-video/capabilities.js.map +1 -1
- package/dist/generated/audio-video/operations.d.ts +13 -0
- package/dist/generated/audio-video/operations.d.ts.map +1 -0
- package/dist/generated/audio-video/operations.js +182 -0
- package/dist/generated/audio-video/operations.js.map +1 -0
- package/dist/generated/audio-video/schemas.d.ts +245 -82
- package/dist/generated/audio-video/schemas.d.ts.map +1 -1
- package/dist/generated/audio-video/schemas.js +552 -466
- package/dist/generated/audio-video/schemas.js.map +1 -1
- package/dist/generated/creative-production/capabilities.d.ts +10 -10
- package/dist/generated/creative-production/capabilities.d.ts.map +1 -1
- package/dist/generated/creative-production/capabilities.js +64 -77
- package/dist/generated/creative-production/capabilities.js.map +1 -1
- package/dist/generated/creative-production/operations.d.ts +13 -0
- package/dist/generated/creative-production/operations.d.ts.map +1 -0
- package/dist/generated/creative-production/operations.js +48 -0
- package/dist/generated/creative-production/operations.js.map +1 -0
- package/dist/generated/creative-production/schemas.d.ts +65 -21
- package/dist/generated/creative-production/schemas.d.ts.map +1 -1
- package/dist/generated/creative-production/schemas.js +149 -128
- package/dist/generated/creative-production/schemas.js.map +1 -1
- package/dist/generated/express/capabilities.d.ts +11 -10
- package/dist/generated/express/capabilities.d.ts.map +1 -1
- package/dist/generated/express/capabilities.js +65 -64
- package/dist/generated/express/capabilities.js.map +1 -1
- package/dist/generated/express/operations.d.ts +13 -0
- package/dist/generated/express/operations.d.ts.map +1 -0
- package/dist/generated/express/operations.js +58 -0
- package/dist/generated/express/operations.js.map +1 -0
- package/dist/generated/express/schemas.d.ts +100 -34
- package/dist/generated/express/schemas.d.ts.map +1 -1
- package/dist/generated/express/schemas.js +165 -134
- package/dist/generated/express/schemas.js.map +1 -1
- package/dist/generated/firefly/capabilities.d.ts +18 -28
- package/dist/generated/firefly/capabilities.d.ts.map +1 -1
- package/dist/generated/firefly/capabilities.js +289 -172
- package/dist/generated/firefly/capabilities.js.map +1 -1
- package/dist/generated/firefly/operations.d.ts +13 -0
- package/dist/generated/firefly/operations.d.ts.map +1 -0
- package/dist/generated/firefly/operations.js +145 -0
- package/dist/generated/firefly/operations.js.map +1 -0
- package/dist/generated/firefly/schemas.d.ts +250 -105
- package/dist/generated/firefly/schemas.d.ts.map +1 -1
- package/dist/generated/firefly/schemas.js +462 -451
- package/dist/generated/firefly/schemas.js.map +1 -1
- package/dist/generated/illustrator/capabilities.d.ts +11 -16
- package/dist/generated/illustrator/capabilities.d.ts.map +1 -1
- package/dist/generated/illustrator/capabilities.js +99 -100
- package/dist/generated/illustrator/capabilities.js.map +1 -1
- package/dist/generated/illustrator/operations.d.ts +13 -0
- package/dist/generated/illustrator/operations.d.ts.map +1 -0
- package/dist/generated/illustrator/operations.js +65 -0
- package/dist/generated/illustrator/operations.js.map +1 -0
- package/dist/generated/illustrator/schemas.d.ts +85 -54
- package/dist/generated/illustrator/schemas.d.ts.map +1 -1
- package/dist/generated/illustrator/schemas.js +187 -233
- package/dist/generated/illustrator/schemas.js.map +1 -1
- package/dist/generated/indesign/capabilities.d.ts +19 -32
- package/dist/generated/indesign/capabilities.d.ts.map +1 -1
- package/dist/generated/indesign/capabilities.js +394 -197
- package/dist/generated/indesign/capabilities.js.map +1 -1
- package/dist/generated/indesign/operations.d.ts +13 -0
- package/dist/generated/indesign/operations.d.ts.map +1 -0
- package/dist/generated/indesign/operations.js +133 -0
- package/dist/generated/indesign/operations.js.map +1 -0
- package/dist/generated/indesign/schemas.d.ts +75 -24
- package/dist/generated/indesign/schemas.d.ts.map +1 -1
- package/dist/generated/indesign/schemas.js +351 -240
- package/dist/generated/indesign/schemas.js.map +1 -1
- package/dist/generated/index.d.ts +74 -3
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +28 -97
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/photoshop/capabilities.d.ts +13 -14
- package/dist/generated/photoshop/capabilities.d.ts.map +1 -1
- package/dist/generated/photoshop/capabilities.js +133 -90
- package/dist/generated/photoshop/capabilities.js.map +1 -1
- package/dist/generated/photoshop/operations.d.ts +13 -0
- package/dist/generated/photoshop/operations.d.ts.map +1 -0
- package/dist/generated/photoshop/operations.js +88 -0
- package/dist/generated/photoshop/operations.js.map +1 -0
- package/dist/generated/photoshop/schemas.d.ts +430 -152
- package/dist/generated/photoshop/schemas.d.ts.map +1 -1
- package/dist/generated/photoshop/schemas.js +809 -716
- package/dist/generated/photoshop/schemas.js.map +1 -1
- package/dist/generated/substance3d/capabilities.d.ts +16 -22
- package/dist/generated/substance3d/capabilities.d.ts.map +1 -1
- package/dist/generated/substance3d/capabilities.js +181 -136
- package/dist/generated/substance3d/capabilities.js.map +1 -1
- package/dist/generated/substance3d/operations.d.ts +13 -0
- package/dist/generated/substance3d/operations.d.ts.map +1 -0
- package/dist/generated/substance3d/operations.js +114 -0
- package/dist/generated/substance3d/operations.js.map +1 -0
- package/dist/generated/substance3d/schemas.d.ts +305 -76
- package/dist/generated/substance3d/schemas.d.ts.map +1 -1
- package/dist/generated/substance3d/schemas.js +634 -515
- package/dist/generated/substance3d/schemas.js.map +1 -1
- package/dist/http/async-job.d.ts +24 -14
- package/dist/http/async-job.d.ts.map +1 -1
- package/dist/http/async-job.js +135 -69
- package/dist/http/async-job.js.map +1 -1
- package/dist/http/client.d.ts +54 -26
- package/dist/http/client.d.ts.map +1 -1
- package/dist/http/client.js +136 -53
- package/dist/http/client.js.map +1 -1
- package/dist/http/request-limit.d.ts +42 -0
- package/dist/http/request-limit.d.ts.map +1 -0
- package/dist/http/request-limit.js +46 -0
- package/dist/http/request-limit.js.map +1 -0
- package/dist/index.d.ts +84 -30
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -34
- package/dist/index.js.map +1 -1
- package/dist/runtime/abort.d.ts +17 -0
- package/dist/runtime/abort.d.ts.map +1 -0
- package/dist/runtime/abort.js +51 -0
- package/dist/runtime/abort.js.map +1 -0
- package/dist/runtime/assemble.d.ts +99 -0
- package/dist/runtime/assemble.d.ts.map +1 -0
- package/dist/runtime/assemble.js +159 -0
- package/dist/runtime/assemble.js.map +1 -0
- package/dist/runtime/invoke-capability.d.ts +46 -0
- package/dist/runtime/invoke-capability.d.ts.map +1 -0
- package/dist/runtime/invoke-capability.js +68 -0
- package/dist/runtime/invoke-capability.js.map +1 -0
- package/dist/runtime/product-shape.d.ts +49 -0
- package/dist/runtime/product-shape.d.ts.map +1 -0
- package/dist/runtime/product-shape.js +309 -0
- package/dist/runtime/product-shape.js.map +1 -0
- package/dist/schemas.d.ts +13 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +7 -0
- package/dist/schemas.js.map +1 -0
- package/ecp.manifest.json +840 -0
- package/ecp.schema.json +23498 -0
- package/package.json +28 -19
- package/dist/generated/audio-video/capabilities.browser.d.ts +0 -37
- package/dist/generated/audio-video/capabilities.browser.d.ts.map +0 -1
- package/dist/generated/audio-video/capabilities.browser.js +0 -44
- package/dist/generated/audio-video/capabilities.browser.js.map +0 -1
- package/dist/generated/audio-video/index.d.ts +0 -3
- package/dist/generated/audio-video/index.d.ts.map +0 -1
- package/dist/generated/audio-video/index.js +0 -3
- package/dist/generated/audio-video/index.js.map +0 -1
- package/dist/generated/audio-video/shells.d.ts +0 -39
- package/dist/generated/audio-video/shells.d.ts.map +0 -1
- package/dist/generated/audio-video/shells.js +0 -290
- package/dist/generated/audio-video/shells.js.map +0 -1
- package/dist/generated/creative-production/capabilities.browser.d.ts +0 -11
- package/dist/generated/creative-production/capabilities.browser.d.ts.map +0 -1
- package/dist/generated/creative-production/capabilities.browser.js +0 -18
- package/dist/generated/creative-production/capabilities.browser.js.map +0 -1
- package/dist/generated/creative-production/index.d.ts +0 -3
- package/dist/generated/creative-production/index.d.ts.map +0 -1
- package/dist/generated/creative-production/index.js +0 -3
- package/dist/generated/creative-production/index.js.map +0 -1
- package/dist/generated/creative-production/shells.d.ts +0 -13
- package/dist/generated/creative-production/shells.d.ts.map +0 -1
- package/dist/generated/creative-production/shells.js +0 -108
- package/dist/generated/creative-production/shells.js.map +0 -1
- package/dist/generated/express/capabilities.browser.d.ts +0 -11
- package/dist/generated/express/capabilities.browser.d.ts.map +0 -1
- package/dist/generated/express/capabilities.browser.js +0 -18
- package/dist/generated/express/capabilities.browser.js.map +0 -1
- package/dist/generated/express/index.d.ts +0 -3
- package/dist/generated/express/index.d.ts.map +0 -1
- package/dist/generated/express/index.js +0 -3
- package/dist/generated/express/index.js.map +0 -1
- package/dist/generated/express/shells.d.ts +0 -13
- package/dist/generated/express/shells.d.ts.map +0 -1
- package/dist/generated/express/shells.js +0 -72
- package/dist/generated/express/shells.js.map +0 -1
- package/dist/generated/firefly/capabilities.browser.d.ts +0 -29
- package/dist/generated/firefly/capabilities.browser.d.ts.map +0 -1
- package/dist/generated/firefly/capabilities.browser.js +0 -36
- package/dist/generated/firefly/capabilities.browser.js.map +0 -1
- package/dist/generated/firefly/index.d.ts +0 -3
- package/dist/generated/firefly/index.d.ts.map +0 -1
- package/dist/generated/firefly/index.js +0 -3
- package/dist/generated/firefly/index.js.map +0 -1
- package/dist/generated/firefly/shells.d.ts +0 -31
- package/dist/generated/firefly/shells.d.ts.map +0 -1
- package/dist/generated/firefly/shells.js +0 -199
- package/dist/generated/firefly/shells.js.map +0 -1
- package/dist/generated/illustrator/capabilities.browser.d.ts +0 -17
- package/dist/generated/illustrator/capabilities.browser.d.ts.map +0 -1
- package/dist/generated/illustrator/capabilities.browser.js +0 -24
- package/dist/generated/illustrator/capabilities.browser.js.map +0 -1
- package/dist/generated/illustrator/index.d.ts +0 -3
- package/dist/generated/illustrator/index.d.ts.map +0 -1
- package/dist/generated/illustrator/index.js +0 -3
- package/dist/generated/illustrator/index.js.map +0 -1
- package/dist/generated/illustrator/shells.d.ts +0 -19
- package/dist/generated/illustrator/shells.d.ts.map +0 -1
- package/dist/generated/illustrator/shells.js +0 -106
- package/dist/generated/illustrator/shells.js.map +0 -1
- package/dist/generated/indesign/capabilities.browser.d.ts +0 -33
- package/dist/generated/indesign/capabilities.browser.d.ts.map +0 -1
- package/dist/generated/indesign/capabilities.browser.js +0 -40
- package/dist/generated/indesign/capabilities.browser.js.map +0 -1
- package/dist/generated/indesign/index.d.ts +0 -3
- package/dist/generated/indesign/index.d.ts.map +0 -1
- package/dist/generated/indesign/index.js +0 -3
- package/dist/generated/indesign/index.js.map +0 -1
- package/dist/generated/indesign/shells.d.ts +0 -35
- package/dist/generated/indesign/shells.d.ts.map +0 -1
- package/dist/generated/indesign/shells.js +0 -208
- package/dist/generated/indesign/shells.js.map +0 -1
- package/dist/generated/index.browser.d.ts +0 -4
- package/dist/generated/index.browser.d.ts.map +0 -1
- package/dist/generated/index.browser.js +0 -98
- package/dist/generated/index.browser.js.map +0 -1
- package/dist/generated/photoshop/capabilities.browser.d.ts +0 -15
- package/dist/generated/photoshop/capabilities.browser.d.ts.map +0 -1
- package/dist/generated/photoshop/capabilities.browser.js +0 -22
- package/dist/generated/photoshop/capabilities.browser.js.map +0 -1
- package/dist/generated/photoshop/index.d.ts +0 -3
- package/dist/generated/photoshop/index.d.ts.map +0 -1
- package/dist/generated/photoshop/index.js +0 -3
- package/dist/generated/photoshop/index.js.map +0 -1
- package/dist/generated/photoshop/shells.d.ts +0 -17
- package/dist/generated/photoshop/shells.d.ts.map +0 -1
- package/dist/generated/photoshop/shells.js +0 -92
- package/dist/generated/photoshop/shells.js.map +0 -1
- package/dist/generated/substance3d/capabilities.browser.d.ts +0 -23
- package/dist/generated/substance3d/capabilities.browser.d.ts.map +0 -1
- package/dist/generated/substance3d/capabilities.browser.js +0 -30
- package/dist/generated/substance3d/capabilities.browser.js.map +0 -1
- package/dist/generated/substance3d/index.d.ts +0 -3
- package/dist/generated/substance3d/index.d.ts.map +0 -1
- package/dist/generated/substance3d/index.js +0 -3
- package/dist/generated/substance3d/index.js.map +0 -1
- package/dist/generated/substance3d/shells.d.ts +0 -25
- package/dist/generated/substance3d/shells.d.ts.map +0 -1
- package/dist/generated/substance3d/shells.js +0 -146
- package/dist/generated/substance3d/shells.js.map +0 -1
- package/dist/index.browser.d.ts +0 -19
- package/dist/index.browser.d.ts.map +0 -1
- package/dist/index.browser.js +0 -27
- package/dist/index.browser.js.map +0 -1
- package/dist/runtime/invoke.d.ts +0 -67
- package/dist/runtime/invoke.d.ts.map +0 -1
- package/dist/runtime/invoke.js +0 -69
- package/dist/runtime/invoke.js.map +0 -1
- package/dist/runtime/photoshop-manifest.d.ts +0 -40
- package/dist/runtime/photoshop-manifest.d.ts.map +0 -1
- package/dist/runtime/photoshop-manifest.js +0 -115
- package/dist/runtime/photoshop-manifest.js.map +0 -1
- package/dist/shared.d.ts +0 -11
- package/dist/shared.d.ts.map +0 -1
- package/dist/shared.js +0 -39
- package/dist/shared.js.map +0 -1
- package/openapi/audio-video/audio-video-api.json +0 -8333
- package/openapi/audio-video/translate-lipsync-openapi.json +0 -1967
- package/openapi/content-tagging/SOURCE.md +0 -10
- package/openapi/creative-production/workflow-builder-api.yaml +0 -1002
- package/openapi/express/ffs-express-api.json +0 -2262
- package/openapi/firefly/firefly-api.json +0 -4964
- package/openapi/illustrator/illustrator-api-beta.json +0 -1329
- package/openapi/illustrator/illustrator-api.json +0 -2447
- package/openapi/indesign/indesignapi.json +0 -2907
- package/openapi/overlays/schema-fixes.json +0 -95
- package/openapi/photoshop/photoshopv2-api.json +0 -5395
- package/openapi/substance3d/openapi.yaml +0 -3583
|
@@ -1,29 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/** Generate video */
|
|
20
|
-
export declare const firefly_generate_video_v3: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
21
|
-
/** Retrieve custom models */
|
|
22
|
-
export declare const firefly_get_custom_models: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
23
|
-
/** Upload image */
|
|
24
|
-
export declare const firefly_storage_image_v2: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
25
|
-
/** Get job status */
|
|
26
|
-
export declare const firefly_job_result_v3: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
27
|
-
/** Cancel job */
|
|
28
|
-
export declare const firefly_cancel_job_v4: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Adobe Firefly capabilities. Handlers load on first call.
|
|
4
|
+
* @category Generated
|
|
5
|
+
*/
|
|
6
|
+
export declare const fireflyCapabilities: {
|
|
7
|
+
"firefly-adaptive-composite": import("@executioncontrolprotocol/plugin-sdk").CapabilityDefinition<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, Record<string, unknown> | undefined>;
|
|
8
|
+
"firefly-expand-images-v3-async": import("@executioncontrolprotocol/plugin-sdk").CapabilityDefinition<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, Record<string, unknown> | undefined>;
|
|
9
|
+
"firefly-fill-images-v3-async": import("@executioncontrolprotocol/plugin-sdk").CapabilityDefinition<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, Record<string, unknown> | undefined>;
|
|
10
|
+
"firefly-generate-images-v3-async": import("@executioncontrolprotocol/plugin-sdk").CapabilityDefinition<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, Record<string, unknown> | undefined>;
|
|
11
|
+
"firefly-generate-images-v5-async": import("@executioncontrolprotocol/plugin-sdk").CapabilityDefinition<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, Record<string, unknown> | undefined>;
|
|
12
|
+
"firefly-generate-object-composite-v3-async": import("@executioncontrolprotocol/plugin-sdk").CapabilityDefinition<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, Record<string, unknown> | undefined>;
|
|
13
|
+
"firefly-generate-similar-images-v3-async": import("@executioncontrolprotocol/plugin-sdk").CapabilityDefinition<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, Record<string, unknown> | undefined>;
|
|
14
|
+
"firefly-generate-video-v3": import("@executioncontrolprotocol/plugin-sdk").CapabilityDefinition<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, Record<string, unknown> | undefined>;
|
|
15
|
+
"firefly-get-custom-models": import("@executioncontrolprotocol/plugin-sdk").CapabilityDefinition<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, Record<string, unknown> | undefined>;
|
|
16
|
+
"firefly-precise-composite": import("@executioncontrolprotocol/plugin-sdk").CapabilityDefinition<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, Record<string, unknown> | undefined>;
|
|
17
|
+
"firefly-precise-upsampler-v3-async": import("@executioncontrolprotocol/plugin-sdk").CapabilityDefinition<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, Record<string, unknown> | undefined>;
|
|
18
|
+
};
|
|
29
19
|
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../src/generated/firefly/capabilities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../src/generated/firefly/capabilities.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;CAwR/B,CAAA"}
|
|
@@ -1,175 +1,292 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
import
|
|
1
|
+
/* Generated by scripts/generate-capabilities.mjs. Do not edit; run `pnpm run generate`. */
|
|
2
|
+
/* Source: firefly/firefly-api.json */
|
|
3
|
+
import { capability } from "@executioncontrolprotocol/plugin-sdk";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
import { fileRefSchema } from "../../schemas.js";
|
|
5
6
|
import * as schemas from "./schemas.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
})
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
})
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
})
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
})
|
|
7
|
+
/**
|
|
8
|
+
* Adobe Firefly capabilities. Handlers load on first call.
|
|
9
|
+
* @category Generated
|
|
10
|
+
*/
|
|
11
|
+
export const fireflyCapabilities = {
|
|
12
|
+
"firefly-adaptive-composite": capability({
|
|
13
|
+
summary: "Generate adaptive composite (Adobe Firefly).",
|
|
14
|
+
description: "Submits an asynchronous adaptive composite generation job using the adaptive composite pipeline. The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
15
|
+
useCases: ["Place a product or object into a scene with lighting-aware compositing"],
|
|
16
|
+
projections: ["Keep the output asset URLs or storage references for download or the next edit step; the job envelope is already removed."],
|
|
17
|
+
accepts: z.strictObject({
|
|
18
|
+
background: fileRefSchema({ access: "url" }).optional().describe("Background image and fill area mask."),
|
|
19
|
+
object: fileRefSchema({ access: "url" }).optional().describe("Object image and optional mask."),
|
|
20
|
+
numVariations: z.number().int().min(1).max(3).optional().describe("Number of output variations to generate."),
|
|
21
|
+
seeds: z.array(z.number().int()).min(1).max(3).optional().describe("Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside numVariations, the number of seeds must equal numVariations. Defaults: 1 variation → [333], 2 → [333, 222], 3 → [333, 222, 111]."),
|
|
22
|
+
harmonization: z.number().min(0).max(1).optional().describe("Controls how much the object's colors and lighting are adjusted to match the background scene."),
|
|
23
|
+
shadowIntensity: z.number().min(0).max(1).optional().describe("Controls shadow intensity in the composited result. Lower values reduce shadow."),
|
|
24
|
+
preserveBackground: z.boolean().optional().describe("When true, preserves original background details within the masked area during compositing."),
|
|
25
|
+
output: schemas.In_OutputSpec.optional().describe("Output format specification."),
|
|
26
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
27
|
+
}),
|
|
28
|
+
returns: z.strictObject({
|
|
29
|
+
images: z.array(fileRefSchema()),
|
|
30
|
+
seeds: z.array(z.number().int()).optional(),
|
|
31
|
+
size: z.strictObject({ width: z.number().int(), height: z.number().int() }).optional(),
|
|
32
|
+
contentClass: z.string().optional(),
|
|
33
|
+
}).describe("Generated images as url FileRefs with optional seeds and size."),
|
|
34
|
+
timeoutMs: 600000,
|
|
35
|
+
handler: () => import("./operations.js").then((operations) => operations.load("firefly-adaptive-composite")),
|
|
36
|
+
}),
|
|
37
|
+
"firefly-expand-images-v3-async": capability({
|
|
38
|
+
summary: "Expand image borders to a new size or aspect ratio (Adobe Firefly).",
|
|
39
|
+
description: "Change the aspect ratio or size of an image to expand it. Optionally, provide a text prompt to generate additional imagery for the expansion. The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
40
|
+
useCases: ["Extend an image past its borders to a new aspect ratio or larger canvas"],
|
|
41
|
+
projections: ["Keep the output asset URLs or storage references for download or the next edit step; the job envelope is already removed."],
|
|
42
|
+
accepts: z.strictObject({
|
|
43
|
+
image: fileRefSchema({ access: "url" }).optional().describe("The image to expand. Use a URL or an uploadID as the source for the image. Firefly only allows these listed domains for input URLs in the request: amazonaws.com windows.net dropboxusercontent.com storage.googleapis.com ."),
|
|
44
|
+
mask: fileRefSchema({ access: "url" }).optional().describe("Mask image which will be used to expand the given image."),
|
|
45
|
+
numVariations: z.number().int().min(1).max(4).optional().describe("Generate this number of variations. numVariations defaults to the number of seed images, or to 1 if you do not specify seeds."),
|
|
46
|
+
placement: schemas.In_Placement.optional().describe("The position of the source image after Firefly resizes it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image."),
|
|
47
|
+
prompt: z.string().min(1).max(1024).optional().describe("An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs."),
|
|
48
|
+
seeds: z.array(z.number().int()).min(1).max(4).optional().describe("Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified along with numVariations , the number of seeds must equal numVariations ."),
|
|
49
|
+
size: z.strictObject({
|
|
50
|
+
height: z.number().int().min(1).max(4096),
|
|
51
|
+
width: z.number().int().min(1).max(4096)
|
|
52
|
+
}).optional().describe("The desired width and height for the final expanded image in pixels. The maximum size for the output images is 3999px by 3999px."),
|
|
53
|
+
caiClaimVersion: z.union([z.literal(1), z.literal(2)]).optional().describe("Content Authenticity Initiative claim version for image inputs. Use 2 when the source image carries a Claim 2.x assertion (for example Firefly-generated outputs)."),
|
|
54
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
55
|
+
}),
|
|
56
|
+
returns: z.strictObject({
|
|
57
|
+
images: z.array(fileRefSchema()),
|
|
58
|
+
seeds: z.array(z.number().int()).optional(),
|
|
59
|
+
size: z.strictObject({ width: z.number().int(), height: z.number().int() }).optional(),
|
|
60
|
+
contentClass: z.string().optional(),
|
|
61
|
+
}).describe("Generated images as url FileRefs with optional seeds and size."),
|
|
62
|
+
timeoutMs: 600000,
|
|
63
|
+
handler: () => import("./operations.js").then((operations) => operations.load("firefly-expand-images-v3-async")),
|
|
64
|
+
}),
|
|
65
|
+
"firefly-fill-images-v3-async": capability({
|
|
66
|
+
summary: "Fill image (Adobe Firefly).",
|
|
67
|
+
description: "Generates a fill in an area of an image based on a text prompt. A mask defines the area of the image to be filled. The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
68
|
+
useCases: ["Inpaint or extend masked regions of an image from a text prompt"],
|
|
69
|
+
projections: ["Keep the output asset URLs or storage references for download or the next edit step; the job envelope is already removed."],
|
|
70
|
+
accepts: z.strictObject({
|
|
71
|
+
image: fileRefSchema({ access: "url" }).optional().describe("The image to expand. Use a URL or an uploadID as the source for the image. Firefly only allows these listed domains for input URLs in the request: amazonaws.com windows.net dropboxusercontent.com storage.googleapis.com ."),
|
|
72
|
+
mask: fileRefSchema({ access: "url" }).optional().describe("Required. Selected areas of a background image that Firefly uses to fill the source image."),
|
|
73
|
+
negativePrompt: z.string().max(1024).optional().describe("An optional text prompt up to 1024 characters. Avoid these characteristics in the generated image. Not supported for Firefly Custom Models on Image Model 3 or Firefly Custom Models on Image Model 4."),
|
|
74
|
+
numVariations: z.number().int().min(1).max(4).optional().describe("Generate this number of variations. numVariations defaults to the number of seed images, or to 1 if you do not specify seeds."),
|
|
75
|
+
prompt: z.string().min(1).max(1024).optional().describe("An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs."),
|
|
76
|
+
promptBiasingLocaleCode: z.string().optional().describe("A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region."),
|
|
77
|
+
seeds: z.array(z.number().int()).min(1).max(4).optional().describe("Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified along with numVariations , the number of seeds must equal numVariations ."),
|
|
78
|
+
size: z.strictObject({
|
|
79
|
+
height: z.number().int().min(1).max(4096),
|
|
80
|
+
width: z.number().int().min(1).max(4096)
|
|
81
|
+
}).optional().describe("The desired width and height for the final expanded image in pixels. The supported sizes for the output images are: Square (1:1) - width 2048px, height 2048px Square (1:1) - width 1024px, height 1024px Landscape (4:3) - width 2304px, height 1792px Portrait (3:4) - width 1792px, height 2304px Wide..."),
|
|
82
|
+
caiClaimVersion: z.union([z.literal(1), z.literal(2)]).optional().describe("Content Authenticity Initiative claim version for image inputs. Use 2 when the source image carries a Claim 2.x assertion (for example Firefly-generated outputs)."),
|
|
83
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
84
|
+
}),
|
|
85
|
+
returns: z.strictObject({
|
|
86
|
+
images: z.array(fileRefSchema()),
|
|
87
|
+
seeds: z.array(z.number().int()).optional(),
|
|
88
|
+
size: z.strictObject({ width: z.number().int(), height: z.number().int() }).optional(),
|
|
89
|
+
contentClass: z.string().optional(),
|
|
90
|
+
}).describe("Generated images as url FileRefs with optional seeds and size."),
|
|
91
|
+
timeoutMs: 600000,
|
|
92
|
+
handler: () => import("./operations.js").then((operations) => operations.load("firefly-fill-images-v3-async")),
|
|
93
|
+
}),
|
|
94
|
+
"firefly-generate-images-v3-async": capability({
|
|
95
|
+
summary: "Generate images (Adobe Firefly).",
|
|
96
|
+
description: "Generate images based on a text prompt. You may also include a reference image and Firefly will try to mimic the characteristics, such as color scheme, lighting, layout of objects in the image, etc. The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
97
|
+
useCases: ["Create images from a prompt with optional style or structure references"],
|
|
98
|
+
projections: ["Bind `images.0` (url FileRef) or pass seeds into a later edit; each ref carries `mediaType`."],
|
|
99
|
+
accepts: z.strictObject({
|
|
100
|
+
"x-model-version": z.enum(["image3", "image3_custom", "image4_standard", "image4_ultra", "image4_custom"]).optional().describe("Specify the Firefly model version to use for the image generation. When a custom model is used, a `customModelId` must also be passed in the request body."),
|
|
101
|
+
contentClass: schemas.In_ContentClassV3.optional().describe("Directs the style of a generated image to be photographic or like fine art."),
|
|
102
|
+
customModelId: z.string().optional().describe("Include the specific custom model ID when a custom model type is designated in the `x-model-version` header parameter."),
|
|
103
|
+
negativePrompt: z.string().max(1024).optional().describe("A negative prompt of things Firefly will try to avoid generating in the image. Not supported for Firefly Custom Models on Image Model 3 or Firefly Custom Models on Image Model 4."),
|
|
104
|
+
numVariations: z.number().int().min(1).max(4).optional().describe("The number of variations to generate. numVariations defaults to the number of seed images, or to 1 if you do not specify `seeds`."),
|
|
105
|
+
prompt: z.string().min(1).max(1024).optional().describe("A text prompt to support the generation of an image. The longer the prompt the better Firefly performs."),
|
|
106
|
+
promptBiasingLocaleCode: z.string().optional().describe("A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region (like en-US). When a locale is set, the prompt will be biased to generate more relevant content for that region."),
|
|
107
|
+
seeds: z.array(z.number().int()).min(1).max(4).optional().describe("An array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, use the same seed to generate a similar image in different styles. If specified along with numVariations , the number of seeds provided must equal numVariations ."),
|
|
108
|
+
size: z.strictObject({
|
|
109
|
+
height: z.number().int().min(1).max(4096),
|
|
110
|
+
width: z.number().int().min(1).max(4096)
|
|
111
|
+
}).optional().describe("The desired width and height for the final image, in pixels. Supported sizes for the output images with `image3` are: Square (1:1) - width 2048px, height 2048px Square (1:1) - width 1024px, height 1024px Landscape (4:3) - width 2304px, height 1792px Portrait (3:4) - width 1792px, height 2304px Wi..."),
|
|
112
|
+
structure: schemas.In_StructureReferenceV3.optional().describe("An object with the reference image details for structure."),
|
|
113
|
+
style: schemas.In_StylesV3.optional().describe("An object with the reference image details for style."),
|
|
114
|
+
upsamplerType: z.enum(["default", "low_creativity"]).optional().describe("Only supported with the model version `image4_custom`. The `default` setting upscales generated images to 2k. The `low_creativity` setting refines the image generation by removing distortions, smoothing textures, and sometimes adding details (like freckles to faces in close-up)."),
|
|
115
|
+
visualIntensity: z.number().int().min(2).max(10).optional().describe("Adjust the overall intensity of your photo's characteristics, such as contrast, shadow, and hue. This is not supported with the model version `image4_custom`."),
|
|
116
|
+
caiClaimVersion: z.union([z.literal(1), z.literal(2)]).optional().describe("Content Authenticity Initiative claim version for image inputs. Use 2 when the request includes style or structure reference images that carry a Claim 2.x assertion."),
|
|
117
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
118
|
+
}),
|
|
119
|
+
returns: z.strictObject({
|
|
120
|
+
images: z.array(fileRefSchema()),
|
|
121
|
+
seeds: z.array(z.number().int()).optional(),
|
|
122
|
+
size: z.strictObject({ width: z.number().int(), height: z.number().int() }).optional(),
|
|
123
|
+
contentClass: z.string().optional(),
|
|
124
|
+
}).describe("Generated images as url FileRefs with optional seeds and size."),
|
|
125
|
+
timeoutMs: 600000,
|
|
126
|
+
handler: () => import("./operations.js").then((operations) => operations.load("firefly-generate-images-v3-async")),
|
|
127
|
+
}),
|
|
128
|
+
"firefly-generate-images-v5-async": capability({
|
|
129
|
+
summary: "Generate images with Image5 (Adobe Firefly).",
|
|
130
|
+
description: "Generate images asynchronously using Firefly's Image5 model. When referenceBlobs is included in the request, omit aspectRatio or set it to auto . The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
131
|
+
useCases: ["Generate images with the Image5 model and reference blobs"],
|
|
132
|
+
projections: ["Bind `images.0` (url FileRef) into Photoshop composite or download steps."],
|
|
133
|
+
accepts: z.strictObject({
|
|
134
|
+
"x-model-version": z.enum(["image5"]).describe("The model version to use for image generation."),
|
|
135
|
+
prompt: z.string().min(1).max(1500).optional().describe("The prompt used to generate the image. The longer the prompt, the better."),
|
|
136
|
+
aspectRatio: schemas.In_AspectRatio.optional().describe("The aspect ratio of the requested generations. This controls the size of the generated image. When referenceBlobs is included in the request, this property should be omitted or set to auto ."),
|
|
137
|
+
resolutionLevel: z.enum(["1MP", "2.4MP", "4MP"]).optional().describe("The resolution level."),
|
|
138
|
+
modelId: schemas.In_FireflyModelId.optional().describe("The specific model to use for image generation. Available options: 'firefly_image' for Firefly Image model."),
|
|
139
|
+
modelSpecificPayload: schemas.In_ModelSpecificPayloadV3.optional().describe("Additional model-specific parameters for controlling the generation process."),
|
|
140
|
+
numVariations: z.number().int().max(1).optional().describe("The number of image variations to generate. Greater than 1 is not supported. Only one image per variation is allowed. For multiple variations, send separate requests."),
|
|
141
|
+
referenceBlobs: z.array(schemas.In_ReferenceBlobV3).max(1).optional().describe("List of reference blobs that will be used as additional input for the generation process. Only one reference image is supported. When this array is not empty, aspectRatio must be omitted or set to auto ."),
|
|
142
|
+
seeds: z.array(z.number().int()).max(1).optional().describe("The seed value to vary the image generation. Only one seed per variation is allowed. If specified alongside with numVariations, the number of seeds must be equal to numVariations."),
|
|
143
|
+
caiClaimVersion: z.union([z.literal(1), z.literal(2)]).optional().describe("Content Authenticity Initiative claim version for image inputs. Use 2 when referenceBlobs carry a Claim 2.x assertion."),
|
|
144
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
145
|
+
}),
|
|
146
|
+
returns: z.strictObject({
|
|
147
|
+
images: z.array(fileRefSchema()),
|
|
148
|
+
seeds: z.array(z.number().int()).optional(),
|
|
149
|
+
size: z.strictObject({ width: z.number().int(), height: z.number().int() }).optional(),
|
|
150
|
+
contentClass: z.string().optional(),
|
|
151
|
+
}).describe("Generated images as url FileRefs with optional seeds and size."),
|
|
152
|
+
timeoutMs: 600000,
|
|
153
|
+
handler: () => import("./operations.js").then((operations) => operations.load("firefly-generate-images-v5-async")),
|
|
154
|
+
}),
|
|
155
|
+
"firefly-generate-object-composite-v3-async": capability({
|
|
156
|
+
summary: "Generate object composite (Adobe Firefly).",
|
|
157
|
+
description: "Combines your image and images generated by Firefly to create an image composite, or scene. The images that Firefly generates are based on a text prompt that you provide. You can upload an image with or without an image mask, such as a product photo, but for a successful result one of the following conditions must be true: The request size is larger than the input image, OR The image contains a transparent layer/channel, OR A mask is provided The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
158
|
+
useCases: ["Composite a cut-out object onto a background image"],
|
|
159
|
+
projections: ["Keep the output asset URLs or storage references for download or the next edit step; the job envelope is already removed."],
|
|
160
|
+
accepts: z.strictObject({
|
|
161
|
+
contentClass: schemas.In_ContentClassV3.optional(),
|
|
162
|
+
image: fileRefSchema({ access: "url" }).optional().describe("The image to expand. Use a URL or an uploadID as the source for the image. Firefly only allows these listed domains for input URLs in the request: amazonaws.com windows.net dropboxusercontent.com storage.googleapis.com ."),
|
|
163
|
+
mask: fileRefSchema({ access: "url" }).optional().describe("Selected areas of a background image that Firefly uses to fill the source image."),
|
|
164
|
+
numVariations: z.number().int().min(1).max(4).optional().describe("Generate this number of variations. Defaults to the number of seed images, or to 1 if you do not specify seeds."),
|
|
165
|
+
placement: schemas.In_Placement.optional().describe("The position of the source image after Firefly adjusts it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image."),
|
|
166
|
+
prompt: z.string().min(1).max(1024).optional().describe("A text prompt up to 1024 characters. The longer the prompt the better Firefly performs."),
|
|
167
|
+
seeds: z.array(z.number().int()).min(1).max(4).optional().describe("Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified along with numVariations , the number of seeds must equal numVariations ."),
|
|
168
|
+
size: z.strictObject({
|
|
169
|
+
height: z.number().int().min(1).max(4096),
|
|
170
|
+
width: z.number().int().min(1).max(4096)
|
|
171
|
+
}).optional().describe("The desired width and height for the final image in pixels. The supported sizes for the output images are: Square (1:1) - width 2048px, height 2048px Square (1:1) - width 1024px, height 1024px Landscape (4:3) - width 2304px, height 1792px Portrait (3:4) - width 1792px, height 2304px Widescreen (1..."),
|
|
172
|
+
style: schemas.In_StylesV3.optional(),
|
|
173
|
+
caiClaimVersion: z.union([z.literal(1), z.literal(2)]).optional().describe("Content Authenticity Initiative claim version for image inputs. Use 2 when the source image carries a Claim 2.x assertion (for example Firefly-generated outputs)."),
|
|
174
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
175
|
+
}),
|
|
176
|
+
returns: z.strictObject({
|
|
177
|
+
images: z.array(fileRefSchema()),
|
|
178
|
+
seeds: z.array(z.number().int()).optional(),
|
|
179
|
+
size: z.strictObject({ width: z.number().int(), height: z.number().int() }).optional(),
|
|
180
|
+
contentClass: z.string().optional(),
|
|
181
|
+
}).describe("Generated images as url FileRefs with optional seeds and size."),
|
|
182
|
+
timeoutMs: 600000,
|
|
183
|
+
handler: () => import("./operations.js").then((operations) => operations.load("firefly-generate-object-composite-v3-async")),
|
|
184
|
+
}),
|
|
185
|
+
"firefly-generate-similar-images-v3-async": capability({
|
|
186
|
+
summary: "Generate similar images (Adobe Firefly).",
|
|
187
|
+
description: "Generate similar images based on a reference image that you provide as a parameter. The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
188
|
+
useCases: ["Derive new images that resemble a reference photo"],
|
|
189
|
+
projections: ["Keep the output asset URLs or storage references for download or the next edit step; the job envelope is already removed."],
|
|
190
|
+
accepts: z.strictObject({
|
|
191
|
+
"x-model-version": z.enum(["image3", "image4_standard", "image4_ultra"]).optional().describe("Specify the Firefly model version to use for the image generation."),
|
|
192
|
+
image: fileRefSchema({ access: "url" }).optional().describe("Firefly will create similar variations. Use a URL or an uploadID as the source for the image. Firefly only allows these listed domains: amazonaws.com windows.net dropboxusercontent.com storage.googleapis.com ."),
|
|
193
|
+
numVariations: z.number().int().min(1).max(4).optional().describe("Generate this number of variations. numVariations defaults to the number of seed images, or to 1 if you do not specify `seeds`."),
|
|
194
|
+
seeds: z.array(z.number().int()).min(1).max(4).optional().describe("Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified along with numVariations , the number of seeds must equal numVariations ."),
|
|
195
|
+
size: z.strictObject({
|
|
196
|
+
height: z.number().int().min(1).max(4096),
|
|
197
|
+
width: z.number().int().min(1).max(4096)
|
|
198
|
+
}).optional().describe("The desired width and height for the final image in pixels. The supported sizes for the output images are: Square (1:1) - width 2048px, height 2048px Square (1:1) - width 1024px, height 1024px Landscape (4:3) - width 2304px, height 1792px Portrait (3:4) - width 1792px, height 2304px Widescreen (1..."),
|
|
199
|
+
caiClaimVersion: z.union([z.literal(1), z.literal(2)]).optional().describe("Content Authenticity Initiative claim version for image inputs. Use 2 when the source image carries a Claim 2.x assertion (for example Firefly-generated outputs)."),
|
|
200
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
201
|
+
}),
|
|
202
|
+
returns: z.strictObject({
|
|
203
|
+
images: z.array(fileRefSchema()),
|
|
204
|
+
seeds: z.array(z.number().int()).optional(),
|
|
205
|
+
size: z.strictObject({ width: z.number().int(), height: z.number().int() }).optional(),
|
|
206
|
+
contentClass: z.string().optional(),
|
|
207
|
+
}).describe("Generated images as url FileRefs with optional seeds and size."),
|
|
208
|
+
timeoutMs: 600000,
|
|
209
|
+
handler: () => import("./operations.js").then((operations) => operations.load("firefly-generate-similar-images-v3-async")),
|
|
210
|
+
}),
|
|
211
|
+
"firefly-generate-video-v3": capability({
|
|
212
|
+
summary: "Generate video (Adobe Firefly).",
|
|
213
|
+
description: "Generate a five second video using a text prompt. The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
214
|
+
useCases: ["Generate a short video clip from a text or image prompt"],
|
|
215
|
+
projections: ["Keep the output asset URLs or storage references for download or the next edit step; the job envelope is already removed."],
|
|
216
|
+
accepts: z.strictObject({
|
|
217
|
+
"x-model-version": z.enum(["video1_standard"]).describe("Specify the Firefly model version to use for the video generation."),
|
|
218
|
+
bitRateFactor: z.number().int().min(0).max(63).optional().describe("The constant rate factor for encoding video. 0 indicates a lossless generation, with the highest quality and largest file size. 63 indicates the worst quality generation with the smallest file size. The suggested value range is 17-23."),
|
|
219
|
+
image: fileRefSchema({ access: "url" }).optional().describe("The details of the image used as a keyframe for the generated video. Provided images are used as a first frame or final frame to guide the video generation."),
|
|
220
|
+
prompt: z.string().optional().describe("The prompt used to generate the video. The longer the prompt, the better."),
|
|
221
|
+
seeds: z.array(z.number().int()).min(1).max(1).optional().describe("The seed reference value. Currently only 1 seed is supported."),
|
|
222
|
+
sizes: z.array(schemas.In_ClinetoSize).optional().describe("The dimensions of the generated video. Consult the [supported aspect ratios in the usage notes](https://developer.adobe.com/firefly-services/docs/firefly-api/getting-started/usage-notes/#supported-aspect-ratios) for allowed values."),
|
|
223
|
+
videoSettings: schemas.In_VideoSettingsV3.optional().describe("The camera and shot control settings."),
|
|
224
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
225
|
+
}),
|
|
226
|
+
returns: z.strictObject({
|
|
227
|
+
videos: z.array(fileRefSchema()),
|
|
228
|
+
seeds: z.array(z.number().int()).optional(),
|
|
229
|
+
size: z.strictObject({ width: z.number().int(), height: z.number().int() }).optional(),
|
|
230
|
+
}),
|
|
231
|
+
timeoutMs: 600000,
|
|
232
|
+
handler: () => import("./operations.js").then((operations) => operations.load("firefly-generate-video-v3")),
|
|
233
|
+
}),
|
|
234
|
+
"firefly-get-custom-models": capability({
|
|
235
|
+
summary: "Retrieve custom models (Adobe Firefly).",
|
|
236
|
+
description: "Retrieve the custom models for a user.",
|
|
237
|
+
useCases: ["List custom Firefly models available to the organization"],
|
|
238
|
+
projections: ["Keep each listed item's id and display name so a later step can select one; drop the rest."],
|
|
239
|
+
accepts: z.strictObject({
|
|
240
|
+
"x-user-token": z.string().optional().describe("A user token referencing the user's individual account, obtained using their credentials. The user token must be preceded by `Bearer`."),
|
|
241
|
+
"x-request-id": z.string().describe("A unique request identifier defined by you. This is used by Adobe Support to trace the request in logs. This header is automatically generated by the server if not explicitly set."),
|
|
242
|
+
sortBy: z.enum(["assetName", "createdDate", "modifiedDate"]).optional().describe("A sorting option for the response list. For a reverse sort, use `-` (e.g., `-modifiedDate`). Multi-vector sorting is not currently supported."),
|
|
243
|
+
start: z.string().optional().describe("The first result to include in a paginated response. Required if a `limit` is specified."),
|
|
244
|
+
limit: z.string().optional().describe("The number of custom models to return in a paginated response."),
|
|
245
|
+
publishedState: z.enum(["all", "ready", "published", "unpublished", "queued", "training", "failed", "cancelled"]).optional().describe("This filters custom models by published state.")
|
|
246
|
+
}),
|
|
247
|
+
returns: schemas.Out_CustomModelsFF3pInfo,
|
|
248
|
+
timeoutMs: 120000,
|
|
249
|
+
handler: () => import("./operations.js").then((operations) => operations.load("firefly-get-custom-models")),
|
|
250
|
+
}),
|
|
251
|
+
"firefly-precise-composite": capability({
|
|
252
|
+
summary: "Generate precise composite (Adobe Firefly).",
|
|
253
|
+
description: "Submits an asynchronous precise composite generation job using the precise composite pipeline. The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
254
|
+
useCases: ["Blend a foreground object into a background with precise placement control"],
|
|
255
|
+
projections: ["Keep the output asset URLs or storage references for download or the next edit step; the job envelope is already removed."],
|
|
256
|
+
accepts: z.strictObject({
|
|
257
|
+
background: fileRefSchema({ access: "url" }).optional().describe("Background image and fill area mask specifying object placement."),
|
|
258
|
+
object: fileRefSchema({ access: "url" }).optional().describe("Object image to be placed on the background."),
|
|
259
|
+
numVariations: z.number().int().min(1).max(3).optional().describe("Number of output variations to generate."),
|
|
260
|
+
seeds: z.array(z.number().int()).min(1).max(3).optional().describe("Random seeds for each variation. Count must match numVariations if both are provided. Defaults: 1 variation → [333], 2 → [333, 222], 3 → [333, 222, 111]."),
|
|
261
|
+
blend: z.number().min(0).max(1).optional().describe("Controls blend between harmonized and original object appearance (0.0 = fully harmonized, 1.0 = original preserved)."),
|
|
262
|
+
output: schemas.In_OutputSpec.optional().describe("Output format specification."),
|
|
263
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
264
|
+
}),
|
|
265
|
+
returns: z.strictObject({
|
|
266
|
+
images: z.array(fileRefSchema()),
|
|
267
|
+
seeds: z.array(z.number().int()).optional(),
|
|
268
|
+
size: z.strictObject({ width: z.number().int(), height: z.number().int() }).optional(),
|
|
269
|
+
contentClass: z.string().optional(),
|
|
270
|
+
}).describe("Generated images as url FileRefs with optional seeds and size."),
|
|
271
|
+
timeoutMs: 600000,
|
|
272
|
+
handler: () => import("./operations.js").then((operations) => operations.load("firefly-precise-composite")),
|
|
273
|
+
}),
|
|
274
|
+
"firefly-precise-upsampler-v3-async": capability({
|
|
275
|
+
summary: "Upscale an image with the precise upsampler (Adobe Firefly).",
|
|
276
|
+
description: "Upscales an image asynchronously using the precise upsampler. Provide the input image via an upload ID from the storage API or a presigned URL. The response includes links to check status and retrieve the result. Poll the status URL until the job completes, then fetch the result for the upscaled image(s). The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
277
|
+
useCases: ["Increase resolution while preserving detail on an existing image"],
|
|
278
|
+
projections: ["Take the ids or asset URLs the next step needs from the response."],
|
|
279
|
+
accepts: z.strictObject({
|
|
280
|
+
"x-model-version": z.enum(["precise_upsampler_v1"]).optional().describe("Model version for the upscale operation. Only `precise_upsampler_v1` is supported. Passing `creative_upsampler_v1` will return a 422 validation error."),
|
|
281
|
+
image: fileRefSchema({ access: "url" }).optional().describe("The input image for the upsampler (source uploadId or url)."),
|
|
282
|
+
seeds: z.array(z.number().int()).min(1).max(4).optional().describe("The seed for each variation. Provide one seed per output (1–4 seeds)."),
|
|
283
|
+
upscaleFactor: schemas.In_UpsampleFactor.optional().describe("The upscale factor (2, 3, 4, or 6). Output dimensions are input dimensions multiplied by this factor."),
|
|
284
|
+
caiClaimVersion: z.union([z.literal(1), z.literal(2)]).optional().describe("Content Authenticity Initiative claim version for image inputs. Use 2 when the source image carries a Claim 2.x assertion (for example Firefly-generated outputs)."),
|
|
285
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
286
|
+
}),
|
|
287
|
+
returns: z.strictObject({ images: z.array(fileRefSchema()) }),
|
|
288
|
+
timeoutMs: 600000,
|
|
289
|
+
handler: () => import("./operations.js").then((operations) => operations.load("firefly-precise-upsampler-v3-async")),
|
|
290
|
+
}),
|
|
291
|
+
};
|
|
175
292
|
//# sourceMappingURL=capabilities.js.map
|