@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
|
@@ -1,136 +1,84 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
/** Generated Adobe photoshop capabilities — do not edit. */
|
|
3
|
-
import
|
|
4
|
-
import { z } from "zod";
|
|
3
|
+
import * as shells from "./shells.js";
|
|
5
4
|
import * as schemas from "./schemas.js";
|
|
6
5
|
import { invokeAdobeOperation } from "../../runtime/invoke.js";
|
|
7
|
-
|
|
6
|
+
import { photoshopManifestDocumentSchema } from "../../runtime/photoshop-manifest.js";
|
|
8
7
|
/** Auto crop */
|
|
9
|
-
export const photoshop_auto_crop =
|
|
10
|
-
.withInput(z.object({
|
|
11
|
-
body: schemas.Schema_AutoCropRequest,
|
|
12
|
-
poll: z.boolean().optional(),
|
|
13
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
14
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
15
|
-
}))
|
|
16
|
-
.withOutput(schemas.Schema_JobAcceptedResponse)
|
|
17
|
-
.withHandler(async (input, ctx) => {
|
|
8
|
+
export const photoshop_auto_crop = shells.photoshop_auto_crop(async (input, ctx) => {
|
|
18
9
|
return invokeAdobeOperation({
|
|
19
10
|
method: "POST",
|
|
20
11
|
pathTemplate: "/v1/auto-crop",
|
|
21
12
|
baseUrl: "https://photoshop-api.adobe.io/",
|
|
22
13
|
input: input,
|
|
23
14
|
ctx,
|
|
24
|
-
outputSchema: schemas.
|
|
15
|
+
outputSchema: schemas.Schema_JobStatusResponse,
|
|
16
|
+
asyncMode: "submit",
|
|
25
17
|
});
|
|
26
18
|
});
|
|
27
19
|
/** Create an artboard */
|
|
28
|
-
export const photoshop_create_artboard =
|
|
29
|
-
.withInput(z.object({
|
|
30
|
-
body: schemas.Schema_CreateArtboardRequest,
|
|
31
|
-
poll: z.boolean().optional(),
|
|
32
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
33
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
34
|
-
}))
|
|
35
|
-
.withOutput(schemas.Schema_JobAcceptedResponse)
|
|
36
|
-
.withHandler(async (input, ctx) => {
|
|
20
|
+
export const photoshop_create_artboard = shells.photoshop_create_artboard(async (input, ctx) => {
|
|
37
21
|
return invokeAdobeOperation({
|
|
38
22
|
method: "POST",
|
|
39
23
|
pathTemplate: "/v2/create-artboard",
|
|
40
24
|
baseUrl: "https://photoshop-api.adobe.io/",
|
|
41
25
|
input: input,
|
|
42
26
|
ctx,
|
|
43
|
-
outputSchema: schemas.
|
|
27
|
+
outputSchema: schemas.Schema_JobStatusResponse,
|
|
28
|
+
asyncMode: "submit",
|
|
44
29
|
});
|
|
45
30
|
});
|
|
46
31
|
/** Create or edit a composite */
|
|
47
|
-
export const photoshop_create_composite =
|
|
48
|
-
.withInput(z.object({
|
|
49
|
-
body: schemas.Schema_CreateCompositeRequest,
|
|
50
|
-
poll: z.boolean().optional(),
|
|
51
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
52
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
53
|
-
}))
|
|
54
|
-
.withOutput(schemas.Schema_JobAcceptedResponse)
|
|
55
|
-
.withHandler(async (input, ctx) => {
|
|
32
|
+
export const photoshop_create_composite = shells.photoshop_create_composite(async (input, ctx) => {
|
|
56
33
|
return invokeAdobeOperation({
|
|
57
34
|
method: "POST",
|
|
58
35
|
pathTemplate: "/v2/create-composite",
|
|
59
36
|
baseUrl: "https://photoshop-api.adobe.io/",
|
|
60
37
|
input: input,
|
|
61
38
|
ctx,
|
|
62
|
-
outputSchema: schemas.
|
|
39
|
+
outputSchema: schemas.Schema_JobStatusResponse,
|
|
40
|
+
asyncMode: "submit",
|
|
63
41
|
});
|
|
64
42
|
});
|
|
65
43
|
/** Edit an image with various adjustments */
|
|
66
|
-
export const photoshop_edit =
|
|
67
|
-
.withInput(z.object({
|
|
68
|
-
body: schemas.Schema_EditRequest,
|
|
69
|
-
poll: z.boolean().optional(),
|
|
70
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
71
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
72
|
-
}))
|
|
73
|
-
.withOutput(schemas.Schema_JobAcceptedResponse)
|
|
74
|
-
.withHandler(async (input, ctx) => {
|
|
44
|
+
export const photoshop_edit = shells.photoshop_edit(async (input, ctx) => {
|
|
75
45
|
return invokeAdobeOperation({
|
|
76
46
|
method: "POST",
|
|
77
47
|
pathTemplate: "/v2/edit",
|
|
78
48
|
baseUrl: "https://photoshop-api.adobe.io/",
|
|
79
49
|
input: input,
|
|
80
50
|
ctx,
|
|
81
|
-
outputSchema: schemas.
|
|
51
|
+
outputSchema: schemas.Schema_JobStatusResponse,
|
|
52
|
+
asyncMode: "submit",
|
|
82
53
|
});
|
|
83
54
|
});
|
|
84
55
|
/** Execute Photoshop actions, scripts, and transformations */
|
|
85
|
-
export const photoshop_execute_actions =
|
|
86
|
-
.withInput(z.object({
|
|
87
|
-
body: schemas.Schema_ActionsRequest,
|
|
88
|
-
poll: z.boolean().optional(),
|
|
89
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
90
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
91
|
-
}))
|
|
92
|
-
.withOutput(schemas.Schema_JobAcceptedResponse)
|
|
93
|
-
.withHandler(async (input, ctx) => {
|
|
56
|
+
export const photoshop_execute_actions = shells.photoshop_execute_actions(async (input, ctx) => {
|
|
94
57
|
return invokeAdobeOperation({
|
|
95
58
|
method: "POST",
|
|
96
59
|
pathTemplate: "/v2/execute-actions",
|
|
97
60
|
baseUrl: "https://photoshop-api.adobe.io/",
|
|
98
61
|
input: input,
|
|
99
62
|
ctx,
|
|
100
|
-
outputSchema: schemas.
|
|
63
|
+
outputSchema: schemas.Schema_JobStatusResponse,
|
|
64
|
+
asyncMode: "submit",
|
|
101
65
|
});
|
|
102
66
|
});
|
|
103
67
|
/** Generate a manifest for given input image */
|
|
104
|
-
export const photoshop_generate_manifest =
|
|
105
|
-
.withInput(z.object({
|
|
106
|
-
body: schemas.Schema_GenerateManifestRequest,
|
|
107
|
-
poll: z.boolean().optional(),
|
|
108
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
109
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
110
|
-
}))
|
|
111
|
-
.withOutput(schemas.Schema_JobAcceptedResponse)
|
|
112
|
-
.withHandler(async (input, ctx) => {
|
|
68
|
+
export const photoshop_generate_manifest = shells.photoshop_generate_manifest(async (input, ctx) => {
|
|
113
69
|
return invokeAdobeOperation({
|
|
114
70
|
method: "POST",
|
|
115
71
|
pathTemplate: "/v2/generate-manifest",
|
|
116
72
|
baseUrl: "https://photoshop-api.adobe.io/",
|
|
117
73
|
input: input,
|
|
118
74
|
ctx,
|
|
119
|
-
outputSchema:
|
|
75
|
+
outputSchema: photoshopManifestDocumentSchema,
|
|
76
|
+
asyncMode: "submit",
|
|
77
|
+
materialize: "photoshop-manifest",
|
|
120
78
|
});
|
|
121
79
|
});
|
|
122
80
|
/** Get Job Status */
|
|
123
|
-
export const photoshop_get_job_status =
|
|
124
|
-
.withInput(z.object({
|
|
125
|
-
path: z.object({
|
|
126
|
-
"jobId": z.string()
|
|
127
|
-
}),
|
|
128
|
-
poll: z.boolean().optional(),
|
|
129
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
130
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
131
|
-
}))
|
|
132
|
-
.withOutput(schemas.Schema_JobStatusResponse)
|
|
133
|
-
.withHandler(async (input, ctx) => {
|
|
81
|
+
export const photoshop_get_job_status = shells.photoshop_get_job_status(async (input, ctx) => {
|
|
134
82
|
return invokeAdobeOperation({
|
|
135
83
|
method: "GET",
|
|
136
84
|
pathTemplate: "/v2/status/{jobId}",
|
|
@@ -138,6 +86,7 @@ export const photoshop_get_job_status = capabilityFor(EXT_ID, "photoshop.get-job
|
|
|
138
86
|
input: input,
|
|
139
87
|
ctx,
|
|
140
88
|
outputSchema: schemas.Schema_JobStatusResponse,
|
|
89
|
+
asyncMode: "none",
|
|
141
90
|
});
|
|
142
91
|
});
|
|
143
92
|
//# sourceMappingURL=capabilities.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../../src/generated/photoshop/capabilities.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,4DAA4D;AAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../../src/generated/photoshop/capabilities.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,4DAA4D;AAC5D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAA;AAErF,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;IACjF,OAAO,oBAAoB,CAAC;QAC1B,MAAM,EAAE,MAAM;QACd,YAAY,EAAE,eAAe;QAC7B,OAAO,EAAE,iCAAiC;QAC1C,KAAK,EAAE,KAON;QACD,GAAG;QACH,YAAY,EAAE,OAAO,CAAC,wBAAwB;QAC9C,SAAS,EAAE,QAAQ;KACpB,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA;AAEF,yBAAyB;AACzB,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,yBAAyB,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;IAC7F,OAAO,oBAAoB,CAAC;QAC1B,MAAM,EAAE,MAAM;QACd,YAAY,EA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KACpB,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA;AAEF,gDAAgD;AAChD,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,2BAA2B,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;IACjG,OAAO,oBAAoB,CAAC;QAC1B,MAAM,EAAE,MAAM;QACd,YAAY,EAAE,uBAAuB;QACrC,OAAO,EAAE,iCAAiC;QAC1C,KAAK,EAAE,KAON;QACD,GAAG;QACH,YAAY,EAAE,+BAA+B;QAC7C,SAAS,EAAE,QAAQ;QACnB,WAAW,EAAE,oBAAoB;KAClC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA;AAEF,qBAAqB;AACrB,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;IAC3F,OAAO,oBAAoB,CAAC;QAC1B,MAAM,EAAE,KAAK;QACb,YAAY,EAAE,oBAAoB;QAClC,OAAO,EAAE,iCAAiC;QAC1C,KAAK,EAAE,KAKN;QACD,GAAG;QACH,YAAY,EAAE,OAAO,CAAC,wBAAwB;QAC9C,SAAS,EAAE,MAAM;KAClB,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Generated Adobe photoshop capability shells — do not edit. */
|
|
2
|
+
import { type CapabilityHandler } from "@executioncontrolprotocol/core";
|
|
3
|
+
/** Auto crop */
|
|
4
|
+
export declare function photoshop_auto_crop(handler: CapabilityHandler): import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
5
|
+
/** Create an artboard */
|
|
6
|
+
export declare function photoshop_create_artboard(handler: CapabilityHandler): import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
7
|
+
/** Create or edit a composite */
|
|
8
|
+
export declare function photoshop_create_composite(handler: CapabilityHandler): import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
9
|
+
/** Edit an image with various adjustments */
|
|
10
|
+
export declare function photoshop_edit(handler: CapabilityHandler): import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
11
|
+
/** Execute Photoshop actions, scripts, and transformations */
|
|
12
|
+
export declare function photoshop_execute_actions(handler: CapabilityHandler): import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
13
|
+
/** Generate a manifest for given input image */
|
|
14
|
+
export declare function photoshop_generate_manifest(handler: CapabilityHandler): import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
15
|
+
/** Get Job Status */
|
|
16
|
+
export declare function photoshop_get_job_status(handler: CapabilityHandler): import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
17
|
+
//# sourceMappingURL=shells.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shells.d.ts","sourceRoot":"","sources":["../../../src/generated/photoshop/shells.ts"],"names":[],"mappings":"AACA,iEAAiE;AACjE,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAOtF,gBAAgB;AAChB,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,iEAU7D;AAED,yBAAyB;AACzB,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,iBAAiB,iEAUnE;AAED,iCAAiC;AACjC,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,iBAAiB,iEAUpE;AAED,6CAA6C;AAC7C,wBAAgB,cAAc,CAAC,OAAO,EAAE,iBAAiB,iEAUxD;AAED,8DAA8D;AAC9D,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,iBAAiB,iEAUnE;AAED,gDAAgD;AAChD,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,iBAAiB,iEAUrE;AAED,qBAAqB;AACrB,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,iBAAiB,iEAUlE"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/** Generated Adobe photoshop capability shells — do not edit. */
|
|
3
|
+
import { capabilityFor } from "@executioncontrolprotocol/core";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import * as schemas from "./schemas.js";
|
|
6
|
+
import { photoshopManifestDocumentSchema } from "../../runtime/photoshop-manifest.js";
|
|
7
|
+
const EXT_ID = "@executioncontrolprotocol/adobe-firefly-services";
|
|
8
|
+
/** Auto crop */
|
|
9
|
+
export function photoshop_auto_crop(handler) {
|
|
10
|
+
return capabilityFor(EXT_ID, "photoshop-auto-crop")
|
|
11
|
+
.withInput(z.object({
|
|
12
|
+
body: schemas.Schema_AutoCropRequest,
|
|
13
|
+
pollIntervalMs: z.number().int().positive().optional(),
|
|
14
|
+
pollTimeoutMs: z.number().int().positive().optional()
|
|
15
|
+
}))
|
|
16
|
+
.withOutput(schemas.Schema_JobStatusResponse)
|
|
17
|
+
.withMetadata({ "summary": "Auto crop", "description": "Generates smart crops, subject bounding boxes, and detects objects for an input image. The request is processed asynchronously. Poll GET /v2/status/{jobId} with the returned jobId for completion.", "useCases": ["Photoshop Photoshop APIs tasks that need this operation", "When the workflow goal is to auto crop"], "samplePrompts": ["Auto crop", "Auto crop with Adobe Photoshop"] })
|
|
18
|
+
.withHandler(handler);
|
|
19
|
+
}
|
|
20
|
+
/** Create an artboard */
|
|
21
|
+
export function photoshop_create_artboard(handler) {
|
|
22
|
+
return capabilityFor(EXT_ID, "photoshop-create-artboard")
|
|
23
|
+
.withInput(z.object({
|
|
24
|
+
body: schemas.Schema_CreateArtboardRequest,
|
|
25
|
+
pollIntervalMs: z.number().int().positive().optional(),
|
|
26
|
+
pollTimeoutMs: z.number().int().positive().optional()
|
|
27
|
+
}))
|
|
28
|
+
.withOutput(schemas.Schema_JobStatusResponse)
|
|
29
|
+
.withMetadata({ "summary": "Create an artboard", "description": "Create an artboard", "useCases": ["Photoshop Photoshop APIs tasks that need this operation", "When the workflow goal is to create an artboard"], "samplePrompts": ["Create an artboard", "Create an artboard with Adobe Photoshop"] })
|
|
30
|
+
.withHandler(handler);
|
|
31
|
+
}
|
|
32
|
+
/** Create or edit a composite */
|
|
33
|
+
export function photoshop_create_composite(handler) {
|
|
34
|
+
return capabilityFor(EXT_ID, "photoshop-create-composite")
|
|
35
|
+
.withInput(z.object({
|
|
36
|
+
body: schemas.Schema_CreateCompositeRequest,
|
|
37
|
+
pollIntervalMs: z.number().int().positive().optional(),
|
|
38
|
+
pollTimeoutMs: z.number().int().positive().optional()
|
|
39
|
+
}))
|
|
40
|
+
.withOutput(schemas.Schema_JobStatusResponse)
|
|
41
|
+
.withMetadata({ "summary": "Create or edit a composite", "description": "Create or edit a composite", "useCases": ["Photoshop Photoshop APIs tasks that need this operation", "When the workflow goal is to create or edit a composite"], "samplePrompts": ["Create or edit a composite", "Create or edit a composite with Adobe Photoshop"] })
|
|
42
|
+
.withHandler(handler);
|
|
43
|
+
}
|
|
44
|
+
/** Edit an image with various adjustments */
|
|
45
|
+
export function photoshop_edit(handler) {
|
|
46
|
+
return capabilityFor(EXT_ID, "photoshop-edit")
|
|
47
|
+
.withInput(z.object({
|
|
48
|
+
body: schemas.Schema_EditRequest,
|
|
49
|
+
pollIntervalMs: z.number().int().positive().optional(),
|
|
50
|
+
pollTimeoutMs: z.number().int().positive().optional()
|
|
51
|
+
}))
|
|
52
|
+
.withOutput(schemas.Schema_JobStatusResponse)
|
|
53
|
+
.withMetadata({ "summary": "Edit an image with various adjustments", "description": "Edit an image with various adjustments", "useCases": ["Photoshop Photoshop APIs tasks that need this operation", "When the workflow goal is to edit an image with various adjustments"], "samplePrompts": ["Edit an image with various adjustments", "Edit an image with various adjustments with Adobe Photoshop"] })
|
|
54
|
+
.withHandler(handler);
|
|
55
|
+
}
|
|
56
|
+
/** Execute Photoshop actions, scripts, and transformations */
|
|
57
|
+
export function photoshop_execute_actions(handler) {
|
|
58
|
+
return capabilityFor(EXT_ID, "photoshop-execute-actions")
|
|
59
|
+
.withInput(z.object({
|
|
60
|
+
body: schemas.Schema_ActionsRequest,
|
|
61
|
+
pollIntervalMs: z.number().int().positive().optional(),
|
|
62
|
+
pollTimeoutMs: z.number().int().positive().optional()
|
|
63
|
+
}))
|
|
64
|
+
.withOutput(schemas.Schema_JobStatusResponse)
|
|
65
|
+
.withMetadata({ "summary": "Execute Photoshop actions, scripts, and transformations", "description": "Execute Photoshop actions, scripts, and transformations", "useCases": ["Photoshop Photoshop APIs tasks that need this operation", "When the workflow goal is to execute Photoshop actions, scripts, and transformations"], "samplePrompts": ["Execute Photoshop actions, scripts, and transformations", "Execute Photoshop actions, scripts, and transformations with Adobe Photoshop"] })
|
|
66
|
+
.withHandler(handler);
|
|
67
|
+
}
|
|
68
|
+
/** Generate a manifest for given input image */
|
|
69
|
+
export function photoshop_generate_manifest(handler) {
|
|
70
|
+
return capabilityFor(EXT_ID, "photoshop-generate-manifest")
|
|
71
|
+
.withInput(z.object({
|
|
72
|
+
body: schemas.Schema_GenerateManifestRequest,
|
|
73
|
+
pollIntervalMs: z.number().int().positive().optional(),
|
|
74
|
+
pollTimeoutMs: z.number().int().positive().optional()
|
|
75
|
+
}))
|
|
76
|
+
.withOutput(photoshopManifestDocumentSchema)
|
|
77
|
+
.withMetadata({ "summary": "Generate a manifest for given input image", "description": "Generate a manifest for given input image", "useCases": ["Photoshop Photoshop APIs tasks that need this operation", "When the workflow goal is to generate a manifest for given input image"], "samplePrompts": ["Generate a manifest for given input image", "Generate a manifest for given input image with Adobe Photoshop"] })
|
|
78
|
+
.withHandler(handler);
|
|
79
|
+
}
|
|
80
|
+
/** Get Job Status */
|
|
81
|
+
export function photoshop_get_job_status(handler) {
|
|
82
|
+
return capabilityFor(EXT_ID, "photoshop-get-job-status")
|
|
83
|
+
.withInput(z.object({
|
|
84
|
+
path: z.object({
|
|
85
|
+
"jobId": z.string()
|
|
86
|
+
})
|
|
87
|
+
}))
|
|
88
|
+
.withOutput(schemas.Schema_JobStatusResponse)
|
|
89
|
+
.withMetadata({ "summary": "Get Job Status", "description": "Retrieves the current status and details of a specific job including metadata, outputs, and processing information. Use this endpoint to poll jobs submitted to Photoshop v2 operations and POST /v1/auto-crop.", "useCases": ["Photoshop Job Status tasks that need this operation", "When the workflow goal is to get Job Status"], "samplePrompts": ["Get Job Status", "Get Job Status with Adobe Photoshop"] })
|
|
90
|
+
.withHandler(handler);
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=shells.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shells.js","sourceRoot":"","sources":["../../../src/generated/photoshop/shells.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,iEAAiE;AACjE,OAAO,EAAE,aAAa,EAA0B,MAAM,gCAAgC,CAAA;AACtF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAA;AAErF,MAAM,MAAM,GAAG,kDAAkD,CAAA;AAEjE,gBAAgB;AAChB,MAAM,UAAU,mBAAmB,CAAC,OAA0B;IAC5D,OAAO,aAAa,CAAC,MAAM,EAAE,qBAAqB,CAAC;SAChD,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;QACtB,IAAI,EAAE,OAAO,CAAC,sBAAsB;QACpC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACtD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KACtD,CAAC,CAAC;SACE,UAAU,CAAC,OAAO,CAAC,wBAAwB,CAAC;SAC5C,YAAY,CAAC,EAAC,SAAS,EAAC,WAAW,EAAC,aAAa,EAAC,qMAAqM,EAAC,UAAU,EAAC,CAAC,yDAAyD,EAAC,wCAAwC,CAAC,EAAC,eAAe,EAAC,CAAC,WAAW,EAAC,gCAAgC,CAAC,EAAC,CAAC;SACxa,WAAW,CAAC,OAAO,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AAC,OAAO,CAAC,wBAAwB,CAAC;SAC5C,YAAY,CAAC,EAAC,SAAS,EAAC,gBAAgB,EAAC,aAAa,EAAC,iNAAiN,EAAC,UAAU,EAAC,CAAC,qDAAqD,EAAC,6CAA6C,CAAC,EAAC,eAAe,EAAC,CAAC,gBAAgB,EAAC,qCAAqC,CAAC,EAAC,CAAC;SACpc,WAAW,CAAC,OAAO,CAAC,CAAA;AACzB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Generate 3D object composite */
|
|
2
|
+
export declare const substance3d_v1_composites_compose: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
3
|
+
/** Create 3D scene */
|
|
4
|
+
export declare const substance3d_v1_scenes_assemble: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
5
|
+
/** Convert 3D files */
|
|
6
|
+
export declare const substance3d_v1_scenes_convert: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
7
|
+
/** Describe 3D scene */
|
|
8
|
+
export declare const substance3d_v1_scenes_describe: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
9
|
+
/** Render 3D object */
|
|
10
|
+
export declare const substance3d_v1_scenes_render: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
11
|
+
/** Render 3D object (basic version) */
|
|
12
|
+
export declare const substance3d_v1_scenes_render_basic: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
13
|
+
/** Create Space */
|
|
14
|
+
export declare const substance3d_create_space_v1: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
15
|
+
/** Create Space API */
|
|
16
|
+
export declare const substance3d_create_space_v2: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
17
|
+
/** Create Space From Frame IO API */
|
|
18
|
+
export declare const substance3d_create_space_from_frame_io_v2: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
19
|
+
/** Create Space From Next Frame IO API */
|
|
20
|
+
export declare const substance3d_create_space_from_next_frame_io_v2: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
21
|
+
/** Create Space from URL API */
|
|
22
|
+
export declare const substance3d_create_space_url_v2: import("@executioncontrolprotocol/core").CapabilityDefinition;
|
|
23
|
+
//# sourceMappingURL=capabilities.browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.browser.d.ts","sourceRoot":"","sources":["../../../src/generated/substance3d/capabilities.browser.ts"],"names":[],"mappings":"AASA,mCAAmC;AACnC,eAAO,MAAM,iCAAiC,+DAAoD,CAAA;AAElG,sBAAsB;AACtB,eAAO,MAAM,8BAA8B,+DAAiD,CAAA;AAE5F,uBAAuB;AACvB,eAAO,MAAM,6BAA6B,+DAAgD,CAAA;AAE1F,wBAAwB;AACxB,eAAO,MAAM,8BAA8B,+DAAiD,CAAA;AAE5F,uBAAuB;AACvB,eAAO,MAAM,4BAA4B,+DAA+C,CAAA;AAExF,uCAAuC;AACvC,eAAO,MAAM,kCAAkC,+DAAqD,CAAA;AAEpG,mBAAmB;AACnB,eAAO,MAAM,2BAA2B,+DAA8C,CAAA;AAEtF,uBAAuB;AACvB,eAAO,MAAM,2BAA2B,+DAA8C,CAAA;AAEtF,qCAAqC;AACrC,eAAO,MAAM,yCAAyC,+DAA4D,CAAA;AAElH,0CAA0C;AAC1C,eAAO,MAAM,8CAA8C,+DAAiE,CAAA;AAE5H,gCAAgC;AAChC,eAAO,MAAM,+BAA+B,+DAAkD,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/** Generated Adobe substance3d 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
|
+
/** Generate 3D object composite */
|
|
9
|
+
export const substance3d_v1_composites_compose = shells.substance3d_v1_composites_compose(hostHop);
|
|
10
|
+
/** Create 3D scene */
|
|
11
|
+
export const substance3d_v1_scenes_assemble = shells.substance3d_v1_scenes_assemble(hostHop);
|
|
12
|
+
/** Convert 3D files */
|
|
13
|
+
export const substance3d_v1_scenes_convert = shells.substance3d_v1_scenes_convert(hostHop);
|
|
14
|
+
/** Describe 3D scene */
|
|
15
|
+
export const substance3d_v1_scenes_describe = shells.substance3d_v1_scenes_describe(hostHop);
|
|
16
|
+
/** Render 3D object */
|
|
17
|
+
export const substance3d_v1_scenes_render = shells.substance3d_v1_scenes_render(hostHop);
|
|
18
|
+
/** Render 3D object (basic version) */
|
|
19
|
+
export const substance3d_v1_scenes_render_basic = shells.substance3d_v1_scenes_render_basic(hostHop);
|
|
20
|
+
/** Create Space */
|
|
21
|
+
export const substance3d_create_space_v1 = shells.substance3d_create_space_v1(hostHop);
|
|
22
|
+
/** Create Space API */
|
|
23
|
+
export const substance3d_create_space_v2 = shells.substance3d_create_space_v2(hostHop);
|
|
24
|
+
/** Create Space From Frame IO API */
|
|
25
|
+
export const substance3d_create_space_from_frame_io_v2 = shells.substance3d_create_space_from_frame_io_v2(hostHop);
|
|
26
|
+
/** Create Space From Next Frame IO API */
|
|
27
|
+
export const substance3d_create_space_from_next_frame_io_v2 = shells.substance3d_create_space_from_next_frame_io_v2(hostHop);
|
|
28
|
+
/** Create Space from URL API */
|
|
29
|
+
export const substance3d_create_space_url_v2 = shells.substance3d_create_space_url_v2(hostHop);
|
|
30
|
+
//# sourceMappingURL=capabilities.browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.browser.js","sourceRoot":"","sources":["../../../src/generated/substance3d/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,CA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"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../src/generated/substance3d/capabilities.ts"],"names":[],"mappings":"AAMA,mCAAmC;AACnC,eAAO,MAAM,iCAAiC,+DAiB5C,CAAA;AAEF,sBAAsB;AACtB,eAAO,MAAM,8BAA8B,+DAiBzC,CAAA;AAEF,uBAAuB;AACvB,eAAO,MAAM,6BAA6B,+DAiBxC,CAAA;AAEF,wBAAwB;AACxB,eAAO,MAAM,8BAA8B,+DAiBzC,CAAA;AAEF,uBAAuB;AACvB,eAAO,MAAM,4BAA4B,+DAiBvC,CAAA;AAEF,uCAAuC;AACvC,eAAO,MAAM,kCAAkC,+DAiB7C,CAAA;AAEF,mBAAmB;AACnB,eAAO,MAAM,2BAA2B,+DAetC,CAAA;AAEF,uBAAuB;AACvB,eAAO,MAAM,2BAA2B,+DAetC,CAAA;AAEF,qCAAqC;AACrC,eAAO,MAAM,yCAAyC,+DAepD,CAAA;AAEF,0CAA0C;AAC1C,eAAO,MAAM,8CAA8C,+DAezD,CAAA;AAEF,gCAAgC;AAChC,eAAO,MAAM,+BAA+B,+DAe1C,CAAA"}
|
|
@@ -1,26 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
/** Generated Adobe substance3d capabilities — do not edit. */
|
|
3
|
-
import
|
|
4
|
-
import { z } from "zod";
|
|
3
|
+
import * as shells from "./shells.js";
|
|
5
4
|
import * as schemas from "./schemas.js";
|
|
6
5
|
import { invokeAdobeOperation } from "../../runtime/invoke.js";
|
|
7
|
-
const EXT_ID = "@executioncontrolprotocol/adobe-firefly-services";
|
|
8
6
|
/** Generate 3D object composite */
|
|
9
|
-
export const substance3d_v1_composites_compose =
|
|
10
|
-
.withInput(z.object({
|
|
11
|
-
query: z.object({
|
|
12
|
-
"wait": z.boolean().optional()
|
|
13
|
-
}).optional(),
|
|
14
|
-
headers: z.object({
|
|
15
|
-
"X-User-Token": z.string().optional()
|
|
16
|
-
}).optional(),
|
|
17
|
-
body: schemas.Schema_restv1_ComposeSceneRequest,
|
|
18
|
-
poll: z.boolean().optional(),
|
|
19
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
20
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
21
|
-
}))
|
|
22
|
-
.withOutput(schemas.Schema_restv1beta_ComposeSceneResponse)
|
|
23
|
-
.withHandler(async (input, ctx) => {
|
|
7
|
+
export const substance3d_v1_composites_compose = shells.substance3d_v1_composites_compose(async (input, ctx) => {
|
|
24
8
|
return invokeAdobeOperation({
|
|
25
9
|
method: "POST",
|
|
26
10
|
pathTemplate: "/v1/composites/compose",
|
|
@@ -28,21 +12,11 @@ export const substance3d_v1_composites_compose = capabilityFor(EXT_ID, "substanc
|
|
|
28
12
|
input: input,
|
|
29
13
|
ctx,
|
|
30
14
|
outputSchema: schemas.Schema_restv1beta_ComposeSceneResponse,
|
|
15
|
+
asyncMode: "submit",
|
|
31
16
|
});
|
|
32
17
|
});
|
|
33
18
|
/** Create 3D scene */
|
|
34
|
-
export const substance3d_v1_scenes_assemble =
|
|
35
|
-
.withInput(z.object({
|
|
36
|
-
query: z.object({
|
|
37
|
-
"wait": z.boolean().optional()
|
|
38
|
-
}).optional(),
|
|
39
|
-
body: schemas.Schema_restv1beta_CreateSceneRequest,
|
|
40
|
-
poll: z.boolean().optional(),
|
|
41
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
42
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
43
|
-
}))
|
|
44
|
-
.withOutput(schemas.Schema_restv1beta_CreateSceneResponse)
|
|
45
|
-
.withHandler(async (input, ctx) => {
|
|
19
|
+
export const substance3d_v1_scenes_assemble = shells.substance3d_v1_scenes_assemble(async (input, ctx) => {
|
|
46
20
|
return invokeAdobeOperation({
|
|
47
21
|
method: "POST",
|
|
48
22
|
pathTemplate: "/v1/scenes/assemble",
|
|
@@ -50,21 +24,11 @@ export const substance3d_v1_scenes_assemble = capabilityFor(EXT_ID, "substance3d
|
|
|
50
24
|
input: input,
|
|
51
25
|
ctx,
|
|
52
26
|
outputSchema: schemas.Schema_restv1beta_CreateSceneResponse,
|
|
27
|
+
asyncMode: "submit",
|
|
53
28
|
});
|
|
54
29
|
});
|
|
55
30
|
/** Convert 3D files */
|
|
56
|
-
export const substance3d_v1_scenes_convert =
|
|
57
|
-
.withInput(z.object({
|
|
58
|
-
query: z.object({
|
|
59
|
-
"wait": z.boolean().optional()
|
|
60
|
-
}).optional(),
|
|
61
|
-
body: schemas.Schema_restv1beta_ModelConvertRequest,
|
|
62
|
-
poll: z.boolean().optional(),
|
|
63
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
64
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
65
|
-
}))
|
|
66
|
-
.withOutput(schemas.Schema_restv1beta_ModelConvertResponse)
|
|
67
|
-
.withHandler(async (input, ctx) => {
|
|
31
|
+
export const substance3d_v1_scenes_convert = shells.substance3d_v1_scenes_convert(async (input, ctx) => {
|
|
68
32
|
return invokeAdobeOperation({
|
|
69
33
|
method: "POST",
|
|
70
34
|
pathTemplate: "/v1/scenes/convert",
|
|
@@ -72,21 +36,11 @@ export const substance3d_v1_scenes_convert = capabilityFor(EXT_ID, "substance3d.
|
|
|
72
36
|
input: input,
|
|
73
37
|
ctx,
|
|
74
38
|
outputSchema: schemas.Schema_restv1beta_ModelConvertResponse,
|
|
39
|
+
asyncMode: "submit",
|
|
75
40
|
});
|
|
76
41
|
});
|
|
77
42
|
/** Describe 3D scene */
|
|
78
|
-
export const substance3d_v1_scenes_describe =
|
|
79
|
-
.withInput(z.object({
|
|
80
|
-
query: z.object({
|
|
81
|
-
"wait": z.boolean().optional()
|
|
82
|
-
}).optional(),
|
|
83
|
-
body: schemas.Schema_restv1beta_SceneDescRequest,
|
|
84
|
-
poll: z.boolean().optional(),
|
|
85
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
86
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
87
|
-
}))
|
|
88
|
-
.withOutput(schemas.Schema_restv1beta_SceneDescResponse)
|
|
89
|
-
.withHandler(async (input, ctx) => {
|
|
43
|
+
export const substance3d_v1_scenes_describe = shells.substance3d_v1_scenes_describe(async (input, ctx) => {
|
|
90
44
|
return invokeAdobeOperation({
|
|
91
45
|
method: "POST",
|
|
92
46
|
pathTemplate: "/v1/scenes/describe",
|
|
@@ -94,21 +48,11 @@ export const substance3d_v1_scenes_describe = capabilityFor(EXT_ID, "substance3d
|
|
|
94
48
|
input: input,
|
|
95
49
|
ctx,
|
|
96
50
|
outputSchema: schemas.Schema_restv1beta_SceneDescResponse,
|
|
51
|
+
asyncMode: "submit",
|
|
97
52
|
});
|
|
98
53
|
});
|
|
99
54
|
/** Render 3D object */
|
|
100
|
-
export const substance3d_v1_scenes_render =
|
|
101
|
-
.withInput(z.object({
|
|
102
|
-
query: z.object({
|
|
103
|
-
"wait": z.boolean().optional()
|
|
104
|
-
}).optional(),
|
|
105
|
-
body: schemas.Schema_restv1beta_RenderSceneRequest,
|
|
106
|
-
poll: z.boolean().optional(),
|
|
107
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
108
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
109
|
-
}))
|
|
110
|
-
.withOutput(schemas.Schema_restv1beta_RenderSceneResponse)
|
|
111
|
-
.withHandler(async (input, ctx) => {
|
|
55
|
+
export const substance3d_v1_scenes_render = shells.substance3d_v1_scenes_render(async (input, ctx) => {
|
|
112
56
|
return invokeAdobeOperation({
|
|
113
57
|
method: "POST",
|
|
114
58
|
pathTemplate: "/v1/scenes/render",
|
|
@@ -116,21 +60,11 @@ export const substance3d_v1_scenes_render = capabilityFor(EXT_ID, "substance3d.v
|
|
|
116
60
|
input: input,
|
|
117
61
|
ctx,
|
|
118
62
|
outputSchema: schemas.Schema_restv1beta_RenderSceneResponse,
|
|
63
|
+
asyncMode: "submit",
|
|
119
64
|
});
|
|
120
65
|
});
|
|
121
66
|
/** Render 3D object (basic version) */
|
|
122
|
-
export const substance3d_v1_scenes_render_basic =
|
|
123
|
-
.withInput(z.object({
|
|
124
|
-
query: z.object({
|
|
125
|
-
"wait": z.boolean().optional()
|
|
126
|
-
}).optional(),
|
|
127
|
-
body: schemas.Schema_restv1beta_RenderModelRequest,
|
|
128
|
-
poll: z.boolean().optional(),
|
|
129
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
130
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
131
|
-
}))
|
|
132
|
-
.withOutput(schemas.Schema_restv1beta_RenderModelResponse)
|
|
133
|
-
.withHandler(async (input, ctx) => {
|
|
67
|
+
export const substance3d_v1_scenes_render_basic = shells.substance3d_v1_scenes_render_basic(async (input, ctx) => {
|
|
134
68
|
return invokeAdobeOperation({
|
|
135
69
|
method: "POST",
|
|
136
70
|
pathTemplate: "/v1/scenes/render-basic",
|
|
@@ -138,17 +72,11 @@ export const substance3d_v1_scenes_render_basic = capabilityFor(EXT_ID, "substan
|
|
|
138
72
|
input: input,
|
|
139
73
|
ctx,
|
|
140
74
|
outputSchema: schemas.Schema_restv1beta_RenderModelResponse,
|
|
75
|
+
asyncMode: "submit",
|
|
141
76
|
});
|
|
142
77
|
});
|
|
143
78
|
/** Create Space */
|
|
144
|
-
export const substance3d_create_space_v1 =
|
|
145
|
-
.withInput(z.object({
|
|
146
|
-
poll: z.boolean().optional(),
|
|
147
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
148
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
149
|
-
}))
|
|
150
|
-
.withOutput(schemas.Schema_rest_base_Space)
|
|
151
|
-
.withHandler(async (input, ctx) => {
|
|
79
|
+
export const substance3d_create_space_v1 = shells.substance3d_create_space_v1(async (input, ctx) => {
|
|
152
80
|
return invokeAdobeOperation({
|
|
153
81
|
method: "POST",
|
|
154
82
|
pathTemplate: "/v1/spaces",
|
|
@@ -156,17 +84,11 @@ export const substance3d_create_space_v1 = capabilityFor(EXT_ID, "substance3d.cr
|
|
|
156
84
|
input: input,
|
|
157
85
|
ctx,
|
|
158
86
|
outputSchema: schemas.Schema_rest_base_Space,
|
|
87
|
+
asyncMode: "none",
|
|
159
88
|
});
|
|
160
89
|
});
|
|
161
90
|
/** Create Space API */
|
|
162
|
-
export const substance3d_create_space_v2 =
|
|
163
|
-
.withInput(z.object({
|
|
164
|
-
poll: z.boolean().optional(),
|
|
165
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
166
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
167
|
-
}))
|
|
168
|
-
.withOutput(schemas.Schema_rest_base_Space)
|
|
169
|
-
.withHandler(async (input, ctx) => {
|
|
91
|
+
export const substance3d_create_space_v2 = shells.substance3d_create_space_v2(async (input, ctx) => {
|
|
170
92
|
return invokeAdobeOperation({
|
|
171
93
|
method: "POST",
|
|
172
94
|
pathTemplate: "/v2/spaces",
|
|
@@ -174,18 +96,11 @@ export const substance3d_create_space_v2 = capabilityFor(EXT_ID, "substance3d.cr
|
|
|
174
96
|
input: input,
|
|
175
97
|
ctx,
|
|
176
98
|
outputSchema: schemas.Schema_rest_base_Space,
|
|
99
|
+
asyncMode: "none",
|
|
177
100
|
});
|
|
178
101
|
});
|
|
179
102
|
/** Create Space From Frame IO API */
|
|
180
|
-
export const substance3d_create_space_from_frame_io_v2 =
|
|
181
|
-
.withInput(z.object({
|
|
182
|
-
body: schemas.Schema_rest_base_FileFrameIO,
|
|
183
|
-
poll: z.boolean().optional(),
|
|
184
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
185
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
186
|
-
}))
|
|
187
|
-
.withOutput(schemas.Schema_rest_base_Space)
|
|
188
|
-
.withHandler(async (input, ctx) => {
|
|
103
|
+
export const substance3d_create_space_from_frame_io_v2 = shells.substance3d_create_space_from_frame_io_v2(async (input, ctx) => {
|
|
189
104
|
return invokeAdobeOperation({
|
|
190
105
|
method: "POST",
|
|
191
106
|
pathTemplate: "/v2/spacesFrameIO",
|
|
@@ -193,18 +108,11 @@ export const substance3d_create_space_from_frame_io_v2 = capabilityFor(EXT_ID, "
|
|
|
193
108
|
input: input,
|
|
194
109
|
ctx,
|
|
195
110
|
outputSchema: schemas.Schema_rest_base_Space,
|
|
111
|
+
asyncMode: "none",
|
|
196
112
|
});
|
|
197
113
|
});
|
|
198
114
|
/** Create Space From Next Frame IO API */
|
|
199
|
-
export const substance3d_create_space_from_next_frame_io_v2 =
|
|
200
|
-
.withInput(z.object({
|
|
201
|
-
body: schemas.Schema_rest_base_FileNextFrameIO,
|
|
202
|
-
poll: z.boolean().optional(),
|
|
203
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
204
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
205
|
-
}))
|
|
206
|
-
.withOutput(schemas.Schema_rest_base_Space)
|
|
207
|
-
.withHandler(async (input, ctx) => {
|
|
115
|
+
export const substance3d_create_space_from_next_frame_io_v2 = shells.substance3d_create_space_from_next_frame_io_v2(async (input, ctx) => {
|
|
208
116
|
return invokeAdobeOperation({
|
|
209
117
|
method: "POST",
|
|
210
118
|
pathTemplate: "/v2/spacesNextFrameIO",
|
|
@@ -212,18 +120,11 @@ export const substance3d_create_space_from_next_frame_io_v2 = capabilityFor(EXT_
|
|
|
212
120
|
input: input,
|
|
213
121
|
ctx,
|
|
214
122
|
outputSchema: schemas.Schema_rest_base_Space,
|
|
123
|
+
asyncMode: "none",
|
|
215
124
|
});
|
|
216
125
|
});
|
|
217
126
|
/** Create Space from URL API */
|
|
218
|
-
export const substance3d_create_space_url_v2 =
|
|
219
|
-
.withInput(z.object({
|
|
220
|
-
body: z.array(schemas.Schema_rest_base_FileURL).nullable(),
|
|
221
|
-
poll: z.boolean().optional(),
|
|
222
|
-
pollIntervalMs: z.number().int().positive().optional(),
|
|
223
|
-
pollTimeoutMs: z.number().int().positive().optional()
|
|
224
|
-
}))
|
|
225
|
-
.withOutput(schemas.Schema_rest_base_Space)
|
|
226
|
-
.withHandler(async (input, ctx) => {
|
|
127
|
+
export const substance3d_create_space_url_v2 = shells.substance3d_create_space_url_v2(async (input, ctx) => {
|
|
227
128
|
return invokeAdobeOperation({
|
|
228
129
|
method: "POST",
|
|
229
130
|
pathTemplate: "/v2/spacesURL",
|
|
@@ -231,6 +132,7 @@ export const substance3d_create_space_url_v2 = capabilityFor(EXT_ID, "substance3
|
|
|
231
132
|
input: input,
|
|
232
133
|
ctx,
|
|
233
134
|
outputSchema: schemas.Schema_rest_base_Space,
|
|
135
|
+
asyncMode: "none",
|
|
234
136
|
});
|
|
235
137
|
});
|
|
236
138
|
//# sourceMappingURL=capabilities.js.map
|