@executioncontrolprotocol/adobe-firefly-services 0.13.1 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -6
- package/dist/generated/audio-video/capabilities.browser.d.ts +37 -0
- package/dist/generated/audio-video/capabilities.browser.d.ts.map +1 -0
- package/dist/generated/audio-video/capabilities.browser.js +44 -0
- package/dist/generated/audio-video/capabilities.browser.js.map +1 -0
- package/dist/generated/audio-video/capabilities.d.ts.map +1 -1
- package/dist/generated/audio-video/capabilities.js +47 -272
- package/dist/generated/audio-video/capabilities.js.map +1 -1
- package/dist/generated/audio-video/shells.d.ts +39 -0
- package/dist/generated/audio-video/shells.d.ts.map +1 -0
- package/dist/generated/audio-video/shells.js +290 -0
- package/dist/generated/audio-video/shells.js.map +1 -0
- package/dist/generated/creative-production/capabilities.browser.d.ts +11 -0
- package/dist/generated/creative-production/capabilities.browser.d.ts.map +1 -0
- package/dist/generated/creative-production/capabilities.browser.js +18 -0
- package/dist/generated/creative-production/capabilities.browser.js.map +1 -0
- package/dist/generated/creative-production/capabilities.d.ts.map +1 -1
- package/dist/generated/creative-production/capabilities.js +12 -97
- package/dist/generated/creative-production/capabilities.js.map +1 -1
- package/dist/generated/creative-production/shells.d.ts +13 -0
- package/dist/generated/creative-production/shells.d.ts.map +1 -0
- package/dist/generated/creative-production/shells.js +108 -0
- package/dist/generated/creative-production/shells.js.map +1 -0
- package/dist/generated/express/capabilities.browser.d.ts +11 -0
- package/dist/generated/express/capabilities.browser.d.ts.map +1 -0
- package/dist/generated/express/capabilities.browser.js +18 -0
- package/dist/generated/express/capabilities.browser.js.map +1 -0
- package/dist/generated/express/capabilities.d.ts.map +1 -1
- package/dist/generated/express/capabilities.js +13 -60
- package/dist/generated/express/capabilities.js.map +1 -1
- package/dist/generated/express/shells.d.ts +13 -0
- package/dist/generated/express/shells.d.ts.map +1 -0
- package/dist/generated/express/shells.js +72 -0
- package/dist/generated/express/shells.js.map +1 -0
- package/dist/generated/firefly/capabilities.browser.d.ts +29 -0
- package/dist/generated/firefly/capabilities.browser.d.ts.map +1 -0
- package/dist/generated/firefly/capabilities.browser.js +36 -0
- package/dist/generated/firefly/capabilities.browser.js.map +1 -0
- package/dist/generated/firefly/capabilities.d.ts.map +1 -1
- package/dist/generated/firefly/capabilities.js +39 -171
- package/dist/generated/firefly/capabilities.js.map +1 -1
- package/dist/generated/firefly/shells.d.ts +31 -0
- package/dist/generated/firefly/shells.d.ts.map +1 -0
- package/dist/generated/firefly/shells.js +199 -0
- package/dist/generated/firefly/shells.js.map +1 -0
- package/dist/generated/illustrator/capabilities.browser.d.ts +17 -0
- package/dist/generated/illustrator/capabilities.browser.d.ts.map +1 -0
- package/dist/generated/illustrator/capabilities.browser.js +24 -0
- package/dist/generated/illustrator/capabilities.browser.js.map +1 -0
- package/dist/generated/illustrator/capabilities.d.ts.map +1 -1
- package/dist/generated/illustrator/capabilities.js +21 -87
- package/dist/generated/illustrator/capabilities.js.map +1 -1
- package/dist/generated/illustrator/shells.d.ts +19 -0
- package/dist/generated/illustrator/shells.d.ts.map +1 -0
- package/dist/generated/illustrator/shells.js +106 -0
- package/dist/generated/illustrator/shells.js.map +1 -0
- package/dist/generated/indesign/capabilities.browser.d.ts +33 -0
- package/dist/generated/indesign/capabilities.browser.d.ts.map +1 -0
- package/dist/generated/indesign/capabilities.browser.js +40 -0
- package/dist/generated/indesign/capabilities.browser.js.map +1 -0
- package/dist/generated/indesign/capabilities.d.ts.map +1 -1
- package/dist/generated/indesign/capabilities.js +41 -230
- package/dist/generated/indesign/capabilities.js.map +1 -1
- package/dist/generated/indesign/shells.d.ts +35 -0
- package/dist/generated/indesign/shells.d.ts.map +1 -0
- package/dist/generated/indesign/shells.js +208 -0
- package/dist/generated/indesign/shells.js.map +1 -0
- package/dist/generated/index.browser.d.ts +4 -0
- package/dist/generated/index.browser.d.ts.map +1 -0
- package/dist/generated/index.browser.js +98 -0
- package/dist/generated/index.browser.js.map +1 -0
- package/dist/generated/photoshop/capabilities.browser.d.ts +15 -0
- package/dist/generated/photoshop/capabilities.browser.d.ts.map +1 -0
- package/dist/generated/photoshop/capabilities.browser.js +22 -0
- package/dist/generated/photoshop/capabilities.browser.js.map +1 -0
- package/dist/generated/photoshop/capabilities.d.ts.map +1 -1
- package/dist/generated/photoshop/capabilities.js +23 -74
- package/dist/generated/photoshop/capabilities.js.map +1 -1
- package/dist/generated/photoshop/shells.d.ts +17 -0
- package/dist/generated/photoshop/shells.d.ts.map +1 -0
- package/dist/generated/photoshop/shells.js +92 -0
- package/dist/generated/photoshop/shells.js.map +1 -0
- package/dist/generated/substance3d/capabilities.browser.d.ts +23 -0
- package/dist/generated/substance3d/capabilities.browser.d.ts.map +1 -0
- package/dist/generated/substance3d/capabilities.browser.js +30 -0
- package/dist/generated/substance3d/capabilities.browser.js.map +1 -0
- package/dist/generated/substance3d/capabilities.d.ts.map +1 -1
- package/dist/generated/substance3d/capabilities.js +23 -121
- package/dist/generated/substance3d/capabilities.js.map +1 -1
- package/dist/generated/substance3d/shells.d.ts +25 -0
- package/dist/generated/substance3d/shells.d.ts.map +1 -0
- package/dist/generated/substance3d/shells.js +146 -0
- package/dist/generated/substance3d/shells.js.map +1 -0
- package/dist/http/async-job.d.ts +5 -0
- package/dist/http/async-job.d.ts.map +1 -1
- package/dist/http/async-job.js +62 -1
- package/dist/http/async-job.js.map +1 -1
- package/dist/index.browser.d.ts +19 -0
- package/dist/index.browser.d.ts.map +1 -0
- package/dist/index.browser.js +27 -0
- package/dist/index.browser.js.map +1 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -20
- package/dist/index.js.map +1 -1
- package/dist/runtime/invoke.d.ts +17 -4
- package/dist/runtime/invoke.d.ts.map +1 -1
- package/dist/runtime/invoke.js +19 -14
- package/dist/runtime/invoke.js.map +1 -1
- package/dist/runtime/photoshop-manifest.d.ts +40 -0
- package/dist/runtime/photoshop-manifest.d.ts.map +1 -0
- package/dist/runtime/photoshop-manifest.js +115 -0
- package/dist/runtime/photoshop-manifest.js.map +1 -0
- package/dist/shared.d.ts +11 -0
- package/dist/shared.d.ts.map +1 -0
- package/dist/shared.js +39 -0
- package/dist/shared.js.map +1 -0
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -36,10 +36,13 @@ export default environment("adobe-demo")
|
|
|
36
36
|
| `creative-production` | `creative-production/workflow-builder-api.yaml` | Workflow Builder |
|
|
37
37
|
| `audio-video` | `audio-video/*.json` | Audio/Video + translate/lipsync |
|
|
38
38
|
|
|
39
|
-
Capability ids: `@executioncontrolprotocol/adobe-firefly-services.<family
|
|
39
|
+
Capability ids: `@executioncontrolprotocol/adobe-firefly-services.<family>-<kebab-operationId>` (single segment after the package; no extra `.`)
|
|
40
40
|
Examples:
|
|
41
|
-
- `@executioncontrolprotocol/adobe-firefly-services.firefly
|
|
42
|
-
- `@executioncontrolprotocol/adobe-firefly-services.firefly
|
|
41
|
+
- `@executioncontrolprotocol/adobe-firefly-services.firefly-generate-images-v3-async`
|
|
42
|
+
- `@executioncontrolprotocol/adobe-firefly-services.firefly-generate-images-v5-async` (Image5)
|
|
43
|
+
- `@executioncontrolprotocol/adobe-firefly-services.photoshop-generate-manifest`
|
|
44
|
+
|
|
45
|
+
Browser apps import the package root; bundlers resolve `exports["."].browser` to a host-hop catalog (no IMS). Pair `ecp up --env …` for real execution.
|
|
43
46
|
|
|
44
47
|
Photoshop v1 and standalone Lightroom OpenAPI are **out of scope** (v2 supersedes them).
|
|
45
48
|
|
|
@@ -49,6 +52,21 @@ Photoshop v1 and standalone Lightroom OpenAPI are **out of scope** (v2 supersede
|
|
|
49
52
|
|
|
50
53
|
Firefly and Photoshop accept allow-listed HTTPS SAS URLs (including Azure `*.windows.net`). Use [`@executioncontrolprotocol/azure-blob-storage`](../azure-blob-storage/) to upload assets and mint read/write SAS URLs, then pass them into Firefly `referenceBlobs` / Photoshop `source.url` via `ref()`. See `examples/azure-adobe-assets/`.
|
|
51
54
|
|
|
55
|
+
## Async capabilities return final results
|
|
56
|
+
|
|
57
|
+
Adobe Firefly Services APIs are often **202 async**. This package hides that from
|
|
58
|
+
workflows:
|
|
59
|
+
|
|
60
|
+
- **Async submit** ops always poll internally via `pollAdobeJob` and return the
|
|
61
|
+
**completed** job / product payload (not `jobId` / `statusUrl` accept links).
|
|
62
|
+
- Optional `pollIntervalMs` / `pollTimeoutMs` tune the wait; there is no `poll` flag.
|
|
63
|
+
- **Status / cancel** caps remain for diagnostics; happy-path workflows should not need them.
|
|
64
|
+
- **Sync** caps (list/get metadata) are unchanged.
|
|
65
|
+
|
|
66
|
+
`photoshop-generate-manifest` materializes the **PSD manifest JSON** (layer tree)
|
|
67
|
+
after the job succeeds so you can `ref("manifest.layers.0.id")` and inspect it with
|
|
68
|
+
`ecp test` `runTo`.
|
|
69
|
+
|
|
52
70
|
## Capability input shape
|
|
53
71
|
|
|
54
72
|
Generated handlers merge OpenAPI path/query/header/body into:
|
|
@@ -59,14 +77,12 @@ Generated handlers merge OpenAPI path/query/header/body into:
|
|
|
59
77
|
query?: { ... },
|
|
60
78
|
headers?: { ... },
|
|
61
79
|
body?: { ... },
|
|
62
|
-
|
|
80
|
+
// async-submit only:
|
|
63
81
|
pollIntervalMs?: number,
|
|
64
82
|
pollTimeoutMs?: number,
|
|
65
83
|
}
|
|
66
84
|
```
|
|
67
85
|
|
|
68
|
-
When `poll: true` and the response includes a status URL, the runtime polls until success/failure/timeout.
|
|
69
|
-
|
|
70
86
|
## Codegen
|
|
71
87
|
|
|
72
88
|
```sh
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** Get available voices */
|
|
2
|
+
export declare const audio_video_voices: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
3
|
+
/** Generate speech from text */
|
|
4
|
+
export declare const audio_video_generate_speech: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
5
|
+
/** Get job status */
|
|
6
|
+
export declare const audio_video_status: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
7
|
+
/** Describe template */
|
|
8
|
+
export declare const audio_video_template_describe: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
9
|
+
/** Fetch video rendering presets */
|
|
10
|
+
export declare const audio_video_get_presets: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
11
|
+
/** Render template */
|
|
12
|
+
export declare const audio_video_template_render: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
13
|
+
/** Cancel a render job */
|
|
14
|
+
export declare const audio_video_cancel_render_job: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
15
|
+
/** List render jobs */
|
|
16
|
+
export declare const audio_video_list_render_jobs: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
17
|
+
/** Reframe video */
|
|
18
|
+
export declare const audio_video_generate_reframed_video: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
19
|
+
/** Transcribe media */
|
|
20
|
+
export declare const audio_video_transcribe: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
21
|
+
/** Dub audio or video */
|
|
22
|
+
export declare const audio_video_dub: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
23
|
+
/** Get available avatars */
|
|
24
|
+
export declare const audio_video_avatars: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
25
|
+
/** Reframe video v2 */
|
|
26
|
+
export declare const audio_video_generate_reframed_video_v2: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
27
|
+
/** Get job result */
|
|
28
|
+
export declare const audio_video_job_result_v2: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
29
|
+
/** Generate avatar video from text */
|
|
30
|
+
export declare const audio_video_generate_avatar: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
31
|
+
/** Transcribe media */
|
|
32
|
+
export declare const audio_video_transcribe__v1_transcribe: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
33
|
+
/** Dub audio or video */
|
|
34
|
+
export declare const audio_video_dub__v1_dub: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
35
|
+
/** Get the result for a job */
|
|
36
|
+
export declare const audio_video_job_result: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
37
|
+
//# sourceMappingURL=capabilities.browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.browser.d.ts","sourceRoot":"","sources":["../../../src/generated/audio-video/capabilities.browser.ts"],"names":[],"mappings":"AASA,2BAA2B;AAC3B,eAAO,MAAM,kBAAkB,+DAAqC,CAAA;AAEpE,gCAAgC;AAChC,eAAO,MAAM,2BAA2B,+DAA8C,CAAA;AAEtF,qBAAqB;AACrB,eAAO,MAAM,kBAAkB,+DAAqC,CAAA;AAEpE,wBAAwB;AACxB,eAAO,MAAM,6BAA6B,+DAAgD,CAAA;AAE1F,oCAAoC;AACpC,eAAO,MAAM,uBAAuB,+DAA0C,CAAA;AAE9E,sBAAsB;AACtB,eAAO,MAAM,2BAA2B,+DAA8C,CAAA;AAEtF,0BAA0B;AAC1B,eAAO,MAAM,6BAA6B,+DAAgD,CAAA;AAE1F,uBAAuB;AACvB,eAAO,MAAM,4BAA4B,+DAA+C,CAAA;AAExF,oBAAoB;AACpB,eAAO,MAAM,mCAAmC,+DAAsD,CAAA;AAEtG,uBAAuB;AACvB,eAAO,MAAM,sBAAsB,+DAAyC,CAAA;AAE5E,yBAAyB;AACzB,eAAO,MAAM,eAAe,+DAAkC,CAAA;AAE9D,4BAA4B;AAC5B,eAAO,MAAM,mBAAmB,+DAAsC,CAAA;AAEtE,uBAAuB;AACvB,eAAO,MAAM,sCAAsC,+DAAyD,CAAA;AAE5G,qBAAqB;AACrB,eAAO,MAAM,yBAAyB,+DAA4C,CAAA;AAElF,sCAAsC;AACtC,eAAO,MAAM,2BAA2B,+DAA8C,CAAA;AAEtF,uBAAuB;AACvB,eAAO,MAAM,qCAAqC,+DAAwD,CAAA;AAE1G,yBAAyB;AACzB,eAAO,MAAM,uBAAuB,+DAA0C,CAAA;AAE9E,+BAA+B;AAC/B,eAAO,MAAM,sBAAsB,+DAAyC,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/** Generated Adobe audio-video browser catalog — do not edit. */
|
|
3
|
+
import * as shells from "./shells.js";
|
|
4
|
+
import { HOST_HOP_MESSAGE } from "../../shared.js";
|
|
5
|
+
async function hostHop() {
|
|
6
|
+
throw new Error(HOST_HOP_MESSAGE);
|
|
7
|
+
}
|
|
8
|
+
/** Get available voices */
|
|
9
|
+
export const audio_video_voices = shells.audio_video_voices(hostHop);
|
|
10
|
+
/** Generate speech from text */
|
|
11
|
+
export const audio_video_generate_speech = shells.audio_video_generate_speech(hostHop);
|
|
12
|
+
/** Get job status */
|
|
13
|
+
export const audio_video_status = shells.audio_video_status(hostHop);
|
|
14
|
+
/** Describe template */
|
|
15
|
+
export const audio_video_template_describe = shells.audio_video_template_describe(hostHop);
|
|
16
|
+
/** Fetch video rendering presets */
|
|
17
|
+
export const audio_video_get_presets = shells.audio_video_get_presets(hostHop);
|
|
18
|
+
/** Render template */
|
|
19
|
+
export const audio_video_template_render = shells.audio_video_template_render(hostHop);
|
|
20
|
+
/** Cancel a render job */
|
|
21
|
+
export const audio_video_cancel_render_job = shells.audio_video_cancel_render_job(hostHop);
|
|
22
|
+
/** List render jobs */
|
|
23
|
+
export const audio_video_list_render_jobs = shells.audio_video_list_render_jobs(hostHop);
|
|
24
|
+
/** Reframe video */
|
|
25
|
+
export const audio_video_generate_reframed_video = shells.audio_video_generate_reframed_video(hostHop);
|
|
26
|
+
/** Transcribe media */
|
|
27
|
+
export const audio_video_transcribe = shells.audio_video_transcribe(hostHop);
|
|
28
|
+
/** Dub audio or video */
|
|
29
|
+
export const audio_video_dub = shells.audio_video_dub(hostHop);
|
|
30
|
+
/** Get available avatars */
|
|
31
|
+
export const audio_video_avatars = shells.audio_video_avatars(hostHop);
|
|
32
|
+
/** Reframe video v2 */
|
|
33
|
+
export const audio_video_generate_reframed_video_v2 = shells.audio_video_generate_reframed_video_v2(hostHop);
|
|
34
|
+
/** Get job result */
|
|
35
|
+
export const audio_video_job_result_v2 = shells.audio_video_job_result_v2(hostHop);
|
|
36
|
+
/** Generate avatar video from text */
|
|
37
|
+
export const audio_video_generate_avatar = shells.audio_video_generate_avatar(hostHop);
|
|
38
|
+
/** Transcribe media */
|
|
39
|
+
export const audio_video_transcribe__v1_transcribe = shells.audio_video_transcribe__v1_transcribe(hostHop);
|
|
40
|
+
/** Dub audio or video */
|
|
41
|
+
export const audio_video_dub__v1_dub = shells.audio_video_dub__v1_dub(hostHop);
|
|
42
|
+
/** Get the result for a job */
|
|
43
|
+
export const audio_video_job_result = shells.audio_video_job_result(hostHop);
|
|
44
|
+
//# sourceMappingURL=capabilities.browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.browser.js","sourceRoot":"","sources":["../../../src/generated/audio-video/capabilities.browser.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,iEAAiE;AACjE,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAElD,KAAK,UAAU,OAAO;IACpB,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAA;AACnC,CAAC;AAED,2BAA2B;AAC3B,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAA;AAEpE,gCAAgC;AAChC,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAA;AAEtF,qBAAqB;AACrB,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAA;AAEpE,wBAAwB;AACxB,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAA;AAE1F,oCAAoC;AACpC,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAA;AAE9E,sBAAsB;AACtB,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAA;AAEtF,0BAA0B;AAC1B,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAA;AAE1F,uBAAuB;AACvB,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAA;AAExF,oBAAoB;AACpB,MAAM,CAAC,MAAM,mCAAmC,GAAG,MAAM,CAAC,mCAAmC,CAAC,OAAO,CAAC,CAAA;AAEtG,uBAAuB;AACvB,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAA;AAE5E,yBAAyB;AACzB,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,CAAA;AAE9D,4BAA4B;AAC5B,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAA;AAEtE,uBAAuB;AACvB,MAAM,CAAC,MAAM,sCAAsC,GAAG,MAAM,CAAC,sCAAsC,CAAC,OAAO,CAAC,CAAA;AAE5G,qBAAqB;AACrB,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAA;AAElF,sCAAsC;AACtC,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAA;AAEtF,uBAAuB;AACvB,MAAM,CAAC,MAAM,qCAAqC,GAAG,MAAM,CAAC,qCAAqC,CAAC,OAAO,CAAC,CAAA;AAE1G,yBAAyB;AACzB,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAA;AAE9E,+BAA+B;AAC/B,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../src/generated/audio-video/capabilities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../src/generated/audio-video/capabilities.ts"],"names":[],"mappings":"AAOA,2BAA2B;AAC3B,eAAO,MAAM,kBAAkB,+DAe7B,CAAA;AAEF,gCAAgC;AAChC,eAAO,MAAM,2BAA2B,+DAiBtC,CAAA;AAEF,qBAAqB;AACrB,eAAO,MAAM,kBAAkB,+DAe7B,CAAA;AAEF,wBAAwB;AACxB,eAAO,MAAM,6BAA6B,+DAiBxC,CAAA;AAEF,oCAAoC;AACpC,eAAO,MAAM,uBAAuB,+DAelC,CAAA;AAEF,sBAAsB;AACtB,eAAO,MAAM,2BAA2B,+DAiBtC,CAAA;AAEF,0BAA0B;AAC1B,eAAO,MAAM,6BAA6B,+DAexC,CAAA;AAEF,uBAAuB;AACvB,eAAO,MAAM,4BAA4B,+DAevC,CAAA;AAEF,oBAAoB;AACpB,eAAO,MAAM,mCAAmC,+DAiB9C,CAAA;AAEF,uBAAuB;AACvB,eAAO,MAAM,sBAAsB,+DAiBjC,CAAA;AAEF,yBAAyB;AACzB,eAAO,MAAM,eAAe,+DAiB1B,CAAA;AAEF,4BAA4B;AAC5B,eAAO,MAAM,mBAAmB,+DAe9B,CAAA;AAEF,uBAAuB;AACvB,eAAO,MAAM,sCAAsC,+DAiBjD,CAAA;AAEF,qBAAqB;AACrB,eAAO,MAAM,yBAAyB,+DAuDpC,CAAA;AAEF,sCAAsC;AACtC,eAAO,MAAM,2BAA2B,+DAiBtC,CAAA;AAEF,uBAAuB;AACvB,eAAO,MAAM,qCAAqC,+DAiBhD,CAAA;AAEF,yBAAyB;AACzB,eAAO,MAAM,uBAAuB,+DAiBlC,CAAA;AAEF,+BAA+B;AAC/B,eAAO,MAAM,sBAAsB,+DAejC,CAAA"}
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
/** Generated Adobe audio-video capabilities — do not edit. */
|
|
3
|
-
import
|
|
3
|
+
import * as shells from "./shells.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import * as schemas from "./schemas.js";
|
|
6
6
|
import { invokeAdobeOperation } from "../../runtime/invoke.js";
|
|
7
|
-
const EXT_ID = "@executioncontrolprotocol/adobe-firefly-services";
|
|
8
7
|
/** Get available voices */
|
|
9
|
-
export const audio_video_voices =
|
|
10
|
-
.withInput(z.object({
|
|
11
|
-
poll: z.boolean().optional(),
|
|
12
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
13
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
14
|
-
}))
|
|
15
|
-
.withOutput(schemas.Schema_SuccessfulVoicesResponse)
|
|
16
|
-
.withHandler(async (input, ctx) => {
|
|
8
|
+
export const audio_video_voices = shells.audio_video_voices(async (input, ctx) => {
|
|
17
9
|
return invokeAdobeOperation({
|
|
18
10
|
method: "GET",
|
|
19
11
|
pathTemplate: "/v1/voices",
|
|
@@ -21,39 +13,23 @@ export const audio_video_voices = capabilityFor(EXT_ID, "audio-video.voices")
|
|
|
21
13
|
input: input,
|
|
22
14
|
ctx,
|
|
23
15
|
outputSchema: schemas.Schema_SuccessfulVoicesResponse,
|
|
16
|
+
asyncMode: "none",
|
|
24
17
|
});
|
|
25
18
|
});
|
|
26
19
|
/** Generate speech from text */
|
|
27
|
-
export const audio_video_generate_speech =
|
|
28
|
-
.withInput(z.object({
|
|
29
|
-
body: schemas.Schema_TTSRequest,
|
|
30
|
-
poll: z.boolean().optional(),
|
|
31
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
32
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
33
|
-
}))
|
|
34
|
-
.withOutput(schemas.Schema_SubmitAPIResponse)
|
|
35
|
-
.withHandler(async (input, ctx) => {
|
|
20
|
+
export const audio_video_generate_speech = shells.audio_video_generate_speech(async (input, ctx) => {
|
|
36
21
|
return invokeAdobeOperation({
|
|
37
22
|
method: "POST",
|
|
38
23
|
pathTemplate: "/v1/generate-speech",
|
|
39
24
|
baseUrl: "https://audio-video-api.adobe.io/",
|
|
40
25
|
input: input,
|
|
41
26
|
ctx,
|
|
42
|
-
outputSchema: schemas.
|
|
27
|
+
outputSchema: schemas.Schema_StatusAPIResponse,
|
|
28
|
+
asyncMode: "submit",
|
|
43
29
|
});
|
|
44
30
|
});
|
|
45
31
|
/** Get job status */
|
|
46
|
-
export const audio_video_status =
|
|
47
|
-
.withInput(z.object({
|
|
48
|
-
path: z.object({
|
|
49
|
-
"jobId": z.string()
|
|
50
|
-
}),
|
|
51
|
-
poll: z.boolean().optional(),
|
|
52
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
53
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
54
|
-
}))
|
|
55
|
-
.withOutput(schemas.Schema_StatusAPIResponse)
|
|
56
|
-
.withHandler(async (input, ctx) => {
|
|
32
|
+
export const audio_video_status = shells.audio_video_status(async (input, ctx) => {
|
|
57
33
|
return invokeAdobeOperation({
|
|
58
34
|
method: "GET",
|
|
59
35
|
pathTemplate: "/v1/status/{jobId}",
|
|
@@ -61,36 +37,23 @@ export const audio_video_status = capabilityFor(EXT_ID, "audio-video.status")
|
|
|
61
37
|
input: input,
|
|
62
38
|
ctx,
|
|
63
39
|
outputSchema: schemas.Schema_StatusAPIResponse,
|
|
40
|
+
asyncMode: "none",
|
|
64
41
|
});
|
|
65
42
|
});
|
|
66
43
|
/** Describe template */
|
|
67
|
-
export const audio_video_template_describe =
|
|
68
|
-
.withInput(z.object({
|
|
69
|
-
body: schemas.Schema_TemplateDescribeRequest,
|
|
70
|
-
poll: z.boolean().optional(),
|
|
71
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
72
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
73
|
-
}))
|
|
74
|
-
.withOutput(schemas.Schema_TemplateDescribeResponse)
|
|
75
|
-
.withHandler(async (input, ctx) => {
|
|
44
|
+
export const audio_video_template_describe = shells.audio_video_template_describe(async (input, ctx) => {
|
|
76
45
|
return invokeAdobeOperation({
|
|
77
46
|
method: "POST",
|
|
78
47
|
pathTemplate: "/v1/templates/describe",
|
|
79
48
|
baseUrl: "https://audio-video-api.adobe.io/",
|
|
80
49
|
input: input,
|
|
81
50
|
ctx,
|
|
82
|
-
outputSchema: schemas.
|
|
51
|
+
outputSchema: schemas.Schema_StatusAPIResponse,
|
|
52
|
+
asyncMode: "submit",
|
|
83
53
|
});
|
|
84
54
|
});
|
|
85
55
|
/** Fetch video rendering presets */
|
|
86
|
-
export const audio_video_get_presets =
|
|
87
|
-
.withInput(z.object({
|
|
88
|
-
poll: z.boolean().optional(),
|
|
89
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
90
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
91
|
-
}))
|
|
92
|
-
.withOutput(schemas.Schema_PresetsResponse)
|
|
93
|
-
.withHandler(async (input, ctx) => {
|
|
56
|
+
export const audio_video_get_presets = shells.audio_video_get_presets(async (input, ctx) => {
|
|
94
57
|
return invokeAdobeOperation({
|
|
95
58
|
method: "GET",
|
|
96
59
|
pathTemplate: "/v1/presets",
|
|
@@ -98,42 +61,23 @@ export const audio_video_get_presets = capabilityFor(EXT_ID, "audio-video.get-pr
|
|
|
98
61
|
input: input,
|
|
99
62
|
ctx,
|
|
100
63
|
outputSchema: schemas.Schema_PresetsResponse,
|
|
64
|
+
asyncMode: "none",
|
|
101
65
|
});
|
|
102
66
|
});
|
|
103
67
|
/** Render template */
|
|
104
|
-
export const audio_video_template_render =
|
|
105
|
-
.withInput(z.object({
|
|
106
|
-
body: schemas.Schema_TemplateRenderRequest,
|
|
107
|
-
poll: z.boolean().optional(),
|
|
108
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
109
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
110
|
-
}))
|
|
111
|
-
.withOutput(schemas.Schema_TemplateRenderResponse)
|
|
112
|
-
.withHandler(async (input, ctx) => {
|
|
68
|
+
export const audio_video_template_render = shells.audio_video_template_render(async (input, ctx) => {
|
|
113
69
|
return invokeAdobeOperation({
|
|
114
70
|
method: "POST",
|
|
115
71
|
pathTemplate: "/v1/templates/render",
|
|
116
72
|
baseUrl: "https://audio-video-api.adobe.io/",
|
|
117
73
|
input: input,
|
|
118
74
|
ctx,
|
|
119
|
-
outputSchema: schemas.
|
|
75
|
+
outputSchema: schemas.Schema_JobStatus,
|
|
76
|
+
asyncMode: "submit",
|
|
120
77
|
});
|
|
121
78
|
});
|
|
122
79
|
/** Cancel a render job */
|
|
123
|
-
export const audio_video_cancel_render_job =
|
|
124
|
-
.withInput(z.object({
|
|
125
|
-
path: z.object({
|
|
126
|
-
"jobId": z.string()
|
|
127
|
-
}),
|
|
128
|
-
headers: z.object({
|
|
129
|
-
"x-request-id": z.string().optional()
|
|
130
|
-
}).optional(),
|
|
131
|
-
poll: z.boolean().optional(),
|
|
132
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
133
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
134
|
-
}))
|
|
135
|
-
.withOutput(schemas.Schema_CancelAcceptedResponse)
|
|
136
|
-
.withHandler(async (input, ctx) => {
|
|
80
|
+
export const audio_video_cancel_render_job = shells.audio_video_cancel_render_job(async (input, ctx) => {
|
|
137
81
|
return invokeAdobeOperation({
|
|
138
82
|
method: "PUT",
|
|
139
83
|
pathTemplate: "/v1/cancel/{jobId}",
|
|
@@ -141,25 +85,11 @@ export const audio_video_cancel_render_job = capabilityFor(EXT_ID, "audio-video.
|
|
|
141
85
|
input: input,
|
|
142
86
|
ctx,
|
|
143
87
|
outputSchema: schemas.Schema_CancelAcceptedResponse,
|
|
88
|
+
asyncMode: "none",
|
|
144
89
|
});
|
|
145
90
|
});
|
|
146
91
|
/** List render jobs */
|
|
147
|
-
export const audio_video_list_render_jobs =
|
|
148
|
-
.withInput(z.object({
|
|
149
|
-
query: z.object({
|
|
150
|
-
"filter": z.string().optional(),
|
|
151
|
-
"limit": z.number().int().min(1).max(100).optional(),
|
|
152
|
-
"cursor": z.string().optional()
|
|
153
|
-
}).optional(),
|
|
154
|
-
headers: z.object({
|
|
155
|
-
"x-request-id": z.string().optional()
|
|
156
|
-
}).optional(),
|
|
157
|
-
poll: z.boolean().optional(),
|
|
158
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
159
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
160
|
-
}))
|
|
161
|
-
.withOutput(schemas.Schema_RenderJobListResponse)
|
|
162
|
-
.withHandler(async (input, ctx) => {
|
|
92
|
+
export const audio_video_list_render_jobs = shells.audio_video_list_render_jobs(async (input, ctx) => {
|
|
163
93
|
return invokeAdobeOperation({
|
|
164
94
|
method: "GET",
|
|
165
95
|
pathTemplate: "/v1/templates/render-jobs",
|
|
@@ -167,92 +97,47 @@ export const audio_video_list_render_jobs = capabilityFor(EXT_ID, "audio-video.l
|
|
|
167
97
|
input: input,
|
|
168
98
|
ctx,
|
|
169
99
|
outputSchema: schemas.Schema_RenderJobListResponse,
|
|
100
|
+
asyncMode: "none",
|
|
170
101
|
});
|
|
171
102
|
});
|
|
172
103
|
/** Reframe video */
|
|
173
|
-
export const audio_video_generate_reframed_video =
|
|
174
|
-
.withInput(z.object({
|
|
175
|
-
body: z.object({
|
|
176
|
-
"video": z.object({
|
|
177
|
-
"source": z.object({
|
|
178
|
-
"url": z.string()
|
|
179
|
-
}),
|
|
180
|
-
"mediaType": z.enum(["video/mp4", "video/quicktime"])
|
|
181
|
-
}),
|
|
182
|
-
"sceneEditDetection": z.boolean().optional(),
|
|
183
|
-
"overlays": z.array(schemas.Schema_Overlay).optional(),
|
|
184
|
-
"outputConfig": z.object({
|
|
185
|
-
"aspectRatios": z.array(z.string())
|
|
186
|
-
})
|
|
187
|
-
}),
|
|
188
|
-
poll: z.boolean().optional(),
|
|
189
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
190
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
191
|
-
}))
|
|
192
|
-
.withOutput(z.object({
|
|
193
|
-
"jobId": z.string(),
|
|
194
|
-
"statusUrl": z.string()
|
|
195
|
-
}))
|
|
196
|
-
.withHandler(async (input, ctx) => {
|
|
104
|
+
export const audio_video_generate_reframed_video = shells.audio_video_generate_reframed_video(async (input, ctx) => {
|
|
197
105
|
return invokeAdobeOperation({
|
|
198
106
|
method: "POST",
|
|
199
107
|
pathTemplate: "/v1/reframe",
|
|
200
108
|
baseUrl: "https://audio-video-api.adobe.io/",
|
|
201
109
|
input: input,
|
|
202
110
|
ctx,
|
|
203
|
-
outputSchema:
|
|
204
|
-
|
|
205
|
-
"statusUrl": z.string()
|
|
206
|
-
}),
|
|
111
|
+
outputSchema: schemas.Schema_StatusAPIResponse,
|
|
112
|
+
asyncMode: "submit",
|
|
207
113
|
});
|
|
208
114
|
});
|
|
209
115
|
/** Transcribe media */
|
|
210
|
-
export const audio_video_transcribe =
|
|
211
|
-
.withInput(z.object({
|
|
212
|
-
body: schemas.Schema_TranscribeRequest,
|
|
213
|
-
poll: z.boolean().optional(),
|
|
214
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
215
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
216
|
-
}))
|
|
217
|
-
.withOutput(schemas.Schema_JobStatusLinkResponse)
|
|
218
|
-
.withHandler(async (input, ctx) => {
|
|
116
|
+
export const audio_video_transcribe = shells.audio_video_transcribe(async (input, ctx) => {
|
|
219
117
|
return invokeAdobeOperation({
|
|
220
118
|
method: "POST",
|
|
221
119
|
pathTemplate: "/v1/transcribe",
|
|
222
120
|
baseUrl: "https://audio-video-api.adobe.io/",
|
|
223
121
|
input: input,
|
|
224
122
|
ctx,
|
|
225
|
-
outputSchema: schemas.
|
|
123
|
+
outputSchema: schemas.Schema_FireflyJobResponse,
|
|
124
|
+
asyncMode: "submit",
|
|
226
125
|
});
|
|
227
126
|
});
|
|
228
127
|
/** Dub audio or video */
|
|
229
|
-
export const audio_video_dub =
|
|
230
|
-
.withInput(z.object({
|
|
231
|
-
body: schemas.Schema_DubRequest,
|
|
232
|
-
poll: z.boolean().optional(),
|
|
233
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
234
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
235
|
-
}))
|
|
236
|
-
.withOutput(schemas.Schema_JobStatusLinkResponse)
|
|
237
|
-
.withHandler(async (input, ctx) => {
|
|
128
|
+
export const audio_video_dub = shells.audio_video_dub(async (input, ctx) => {
|
|
238
129
|
return invokeAdobeOperation({
|
|
239
130
|
method: "POST",
|
|
240
131
|
pathTemplate: "/v1/dub",
|
|
241
132
|
baseUrl: "https://audio-video-api.adobe.io/",
|
|
242
133
|
input: input,
|
|
243
134
|
ctx,
|
|
244
|
-
outputSchema: schemas.
|
|
135
|
+
outputSchema: schemas.Schema_FireflyJobResponse,
|
|
136
|
+
asyncMode: "submit",
|
|
245
137
|
});
|
|
246
138
|
});
|
|
247
139
|
/** Get available avatars */
|
|
248
|
-
export const audio_video_avatars =
|
|
249
|
-
.withInput(z.object({
|
|
250
|
-
poll: z.boolean().optional(),
|
|
251
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
252
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
253
|
-
}))
|
|
254
|
-
.withOutput(schemas.Schema_SuccessfulAvatarsResponse)
|
|
255
|
-
.withHandler(async (input, ctx) => {
|
|
140
|
+
export const audio_video_avatars = shells.audio_video_avatars(async (input, ctx) => {
|
|
256
141
|
return invokeAdobeOperation({
|
|
257
142
|
method: "GET",
|
|
258
143
|
pathTemplate: "/v1/avatars",
|
|
@@ -260,104 +145,23 @@ export const audio_video_avatars = capabilityFor(EXT_ID, "audio-video.avatars")
|
|
|
260
145
|
input: input,
|
|
261
146
|
ctx,
|
|
262
147
|
outputSchema: schemas.Schema_SuccessfulAvatarsResponse,
|
|
148
|
+
asyncMode: "none",
|
|
263
149
|
});
|
|
264
150
|
});
|
|
265
151
|
/** Reframe video v2 */
|
|
266
|
-
export const audio_video_generate_reframed_video_v2 =
|
|
267
|
-
.withInput(z.object({
|
|
268
|
-
body: z.object({
|
|
269
|
-
"video": schemas.Schema_VideoInputV2,
|
|
270
|
-
"analysis": schemas.Schema_AnalysisV2.optional(),
|
|
271
|
-
"composition": schemas.Schema_CompositionV2.optional(),
|
|
272
|
-
"output": z.object({
|
|
273
|
-
"format": schemas.Schema_OutputFormatV2.optional(),
|
|
274
|
-
"renditions": z.array(z.union([z.object({
|
|
275
|
-
"aspectRatio": schemas.Schema_AspectRatioV2,
|
|
276
|
-
"mediaDestination": schemas.Schema_Destination.optional(),
|
|
277
|
-
"sidecarDestination": schemas.Schema_Destination.optional()
|
|
278
|
-
}), z.object({
|
|
279
|
-
"resolution": z.object({
|
|
280
|
-
"width": z.number().int(),
|
|
281
|
-
"height": z.number().int()
|
|
282
|
-
}),
|
|
283
|
-
"mediaDestination": schemas.Schema_Destination.optional(),
|
|
284
|
-
"sidecarDestination": schemas.Schema_Destination.optional()
|
|
285
|
-
})]))
|
|
286
|
-
})
|
|
287
|
-
}),
|
|
288
|
-
poll: z.boolean().optional(),
|
|
289
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
290
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
291
|
-
}))
|
|
292
|
-
.withOutput(z.object({
|
|
293
|
-
"jobId": z.string(),
|
|
294
|
-
"statusUrl": z.string()
|
|
295
|
-
}))
|
|
296
|
-
.withHandler(async (input, ctx) => {
|
|
152
|
+
export const audio_video_generate_reframed_video_v2 = shells.audio_video_generate_reframed_video_v2(async (input, ctx) => {
|
|
297
153
|
return invokeAdobeOperation({
|
|
298
154
|
method: "POST",
|
|
299
155
|
pathTemplate: "/v2/reframe",
|
|
300
156
|
baseUrl: "https://audio-video-api.adobe.io/",
|
|
301
157
|
input: input,
|
|
302
158
|
ctx,
|
|
303
|
-
outputSchema:
|
|
304
|
-
|
|
305
|
-
"statusUrl": z.string()
|
|
306
|
-
}),
|
|
159
|
+
outputSchema: schemas.Schema_StatusAPIResponse,
|
|
160
|
+
asyncMode: "submit",
|
|
307
161
|
});
|
|
308
162
|
});
|
|
309
163
|
/** Get job result */
|
|
310
|
-
export const audio_video_job_result_v2 =
|
|
311
|
-
.withInput(z.object({
|
|
312
|
-
path: z.object({
|
|
313
|
-
"jobId": z.string()
|
|
314
|
-
}),
|
|
315
|
-
poll: z.boolean().optional(),
|
|
316
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
317
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
318
|
-
}))
|
|
319
|
-
.withOutput(z.union([z.object({
|
|
320
|
-
"status": z.enum(["not_started", "running", "failed", "succeeded", "partially_succeeded"]),
|
|
321
|
-
"jobId": z.string()
|
|
322
|
-
}), z.object({
|
|
323
|
-
"status": z.enum(["not_started", "running", "failed", "succeeded", "partially_succeeded"]),
|
|
324
|
-
"jobId": z.string(),
|
|
325
|
-
"outputs": z.array(z.union([z.object({
|
|
326
|
-
"destination": z.object({
|
|
327
|
-
"url": z.string()
|
|
328
|
-
})
|
|
329
|
-
}), z.object({
|
|
330
|
-
"error": z.object({
|
|
331
|
-
"error_code": z.string(),
|
|
332
|
-
"message": z.string()
|
|
333
|
-
})
|
|
334
|
-
})]))
|
|
335
|
-
}), z.object({
|
|
336
|
-
"status": z.enum(["not_started", "running", "failed", "succeeded", "partially_succeeded"]),
|
|
337
|
-
"jobId": z.string(),
|
|
338
|
-
"outputs": z.array(z.union([z.object({
|
|
339
|
-
"destination": z.object({
|
|
340
|
-
"url": z.string()
|
|
341
|
-
})
|
|
342
|
-
}), z.object({
|
|
343
|
-
"error": z.object({
|
|
344
|
-
"error_code": z.string(),
|
|
345
|
-
"message": z.string()
|
|
346
|
-
})
|
|
347
|
-
})]))
|
|
348
|
-
}), z.object({
|
|
349
|
-
"status": z.enum(["not_started", "running", "failed", "succeeded", "partially_succeeded"]),
|
|
350
|
-
"jobId": z.string(),
|
|
351
|
-
"outputs": z.object({
|
|
352
|
-
"renditions": z.array(z.object({
|
|
353
|
-
"error": z.object({
|
|
354
|
-
"error_code": z.string(),
|
|
355
|
-
"message": z.string()
|
|
356
|
-
})
|
|
357
|
-
}))
|
|
358
|
-
})
|
|
359
|
-
})]))
|
|
360
|
-
.withHandler(async (input, ctx) => {
|
|
164
|
+
export const audio_video_job_result_v2 = shells.audio_video_job_result_v2(async (input, ctx) => {
|
|
361
165
|
return invokeAdobeOperation({
|
|
362
166
|
method: "GET",
|
|
363
167
|
pathTemplate: "/v2/status/{jobId}",
|
|
@@ -405,77 +209,47 @@ export const audio_video_job_result_v2 = capabilityFor(EXT_ID, "audio-video.job-
|
|
|
405
209
|
}))
|
|
406
210
|
})
|
|
407
211
|
})]),
|
|
212
|
+
asyncMode: "none",
|
|
408
213
|
});
|
|
409
214
|
});
|
|
410
215
|
/** Generate avatar video from text */
|
|
411
|
-
export const audio_video_generate_avatar =
|
|
412
|
-
.withInput(z.object({
|
|
413
|
-
body: schemas.Schema_AvatarRequest,
|
|
414
|
-
poll: z.boolean().optional(),
|
|
415
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
416
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
417
|
-
}))
|
|
418
|
-
.withOutput(schemas.Schema_SubmitAPIResponse)
|
|
419
|
-
.withHandler(async (input, ctx) => {
|
|
216
|
+
export const audio_video_generate_avatar = shells.audio_video_generate_avatar(async (input, ctx) => {
|
|
420
217
|
return invokeAdobeOperation({
|
|
421
218
|
method: "POST",
|
|
422
219
|
pathTemplate: "/v1/generate-avatar",
|
|
423
220
|
baseUrl: "https://audio-video-api.adobe.io/",
|
|
424
221
|
input: input,
|
|
425
222
|
ctx,
|
|
426
|
-
outputSchema: schemas.
|
|
223
|
+
outputSchema: schemas.Schema_StatusAPIResponse,
|
|
224
|
+
asyncMode: "submit",
|
|
427
225
|
});
|
|
428
226
|
});
|
|
429
227
|
/** Transcribe media */
|
|
430
|
-
export const audio_video_transcribe__v1_transcribe =
|
|
431
|
-
.withInput(z.object({
|
|
432
|
-
body: schemas.Schema_TranscribeRequest,
|
|
433
|
-
poll: z.boolean().optional(),
|
|
434
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
435
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
436
|
-
}))
|
|
437
|
-
.withOutput(schemas.Schema_JobStatusLinkResponse)
|
|
438
|
-
.withHandler(async (input, ctx) => {
|
|
228
|
+
export const audio_video_transcribe__v1_transcribe = shells.audio_video_transcribe__v1_transcribe(async (input, ctx) => {
|
|
439
229
|
return invokeAdobeOperation({
|
|
440
230
|
method: "POST",
|
|
441
231
|
pathTemplate: "/v1/transcribe",
|
|
442
232
|
baseUrl: "https://audio-video-api.adobe.io/",
|
|
443
233
|
input: input,
|
|
444
234
|
ctx,
|
|
445
|
-
outputSchema: schemas.
|
|
235
|
+
outputSchema: schemas.Schema_FireflyJobResponse,
|
|
236
|
+
asyncMode: "submit",
|
|
446
237
|
});
|
|
447
238
|
});
|
|
448
239
|
/** Dub audio or video */
|
|
449
|
-
export const audio_video_dub__v1_dub =
|
|
450
|
-
.withInput(z.object({
|
|
451
|
-
body: schemas.Schema_DubRequest,
|
|
452
|
-
poll: z.boolean().optional(),
|
|
453
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
454
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
455
|
-
}))
|
|
456
|
-
.withOutput(schemas.Schema_JobStatusLinkResponse)
|
|
457
|
-
.withHandler(async (input, ctx) => {
|
|
240
|
+
export const audio_video_dub__v1_dub = shells.audio_video_dub__v1_dub(async (input, ctx) => {
|
|
458
241
|
return invokeAdobeOperation({
|
|
459
242
|
method: "POST",
|
|
460
243
|
pathTemplate: "/v1/dub",
|
|
461
244
|
baseUrl: "https://audio-video-api.adobe.io/",
|
|
462
245
|
input: input,
|
|
463
246
|
ctx,
|
|
464
|
-
outputSchema: schemas.
|
|
247
|
+
outputSchema: schemas.Schema_FireflyJobResponse,
|
|
248
|
+
asyncMode: "submit",
|
|
465
249
|
});
|
|
466
250
|
});
|
|
467
251
|
/** Get the result for a job */
|
|
468
|
-
export const audio_video_job_result =
|
|
469
|
-
.withInput(z.object({
|
|
470
|
-
path: z.object({
|
|
471
|
-
"jobId": z.string()
|
|
472
|
-
}),
|
|
473
|
-
poll: z.boolean().optional(),
|
|
474
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
475
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
476
|
-
}))
|
|
477
|
-
.withOutput(schemas.Schema_FireflyJobResponse)
|
|
478
|
-
.withHandler(async (input, ctx) => {
|
|
252
|
+
export const audio_video_job_result = shells.audio_video_job_result(async (input, ctx) => {
|
|
479
253
|
return invokeAdobeOperation({
|
|
480
254
|
method: "GET",
|
|
481
255
|
pathTemplate: "/v1/status/{jobId}",
|
|
@@ -483,6 +257,7 @@ export const audio_video_job_result = capabilityFor(EXT_ID, "audio-video.job-res
|
|
|
483
257
|
input: input,
|
|
484
258
|
ctx,
|
|
485
259
|
outputSchema: schemas.Schema_FireflyJobResponse,
|
|
260
|
+
asyncMode: "none",
|
|
486
261
|
});
|
|
487
262
|
});
|
|
488
263
|
//# sourceMappingURL=capabilities.js.map
|