@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,201 +1,398 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
import
|
|
1
|
+
/* Generated by scripts/generate-capabilities.mjs. Do not edit; run `pnpm run generate`. */
|
|
2
|
+
/* Source: indesign/indesignapi.json */
|
|
3
|
+
import { capability } from "@executioncontrolprotocol/plugin-sdk";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
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
|
-
export const indesign_rendition_job = shells.indesign_rendition_job(async (input, ctx) => {
|
|
45
|
-
return invokeAdobeOperation({
|
|
46
|
-
method: "POST",
|
|
47
|
-
pathTemplate: "/v3/create-rendition",
|
|
48
|
-
baseUrl: "https://indesign.adobe.io/",
|
|
49
|
-
input: input,
|
|
50
|
-
ctx,
|
|
51
|
-
outputSchema: schemas.Schema_succeededEvent,
|
|
52
|
-
asyncMode: "submit",
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
/** List custom scripts API */
|
|
56
|
-
export const indesign_list_custom_scripts = shells.indesign_list_custom_scripts(async (input, ctx) => {
|
|
57
|
-
return invokeAdobeOperation({
|
|
58
|
-
method: "GET",
|
|
59
|
-
pathTemplate: "/v3/scripts",
|
|
60
|
-
baseUrl: "https://indesign.adobe.io/",
|
|
61
|
-
input: input,
|
|
62
|
-
ctx,
|
|
63
|
-
outputSchema: schemas.Schema_CustomScriptsListResponse,
|
|
64
|
-
asyncMode: "none",
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
/** Submit a Custom Script */
|
|
68
|
-
export const indesign_submit_custom_script = shells.indesign_submit_custom_script(async (input, ctx) => {
|
|
69
|
-
return invokeAdobeOperation({
|
|
70
|
-
method: "POST",
|
|
71
|
-
pathTemplate: "/v3/scripts",
|
|
72
|
-
baseUrl: "https://indesign.adobe.io/",
|
|
73
|
-
input: input,
|
|
74
|
-
ctx,
|
|
75
|
-
outputSchema: schemas.Schema_succeededEvent,
|
|
76
|
-
asyncMode: "submit",
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
/** Submit a custom script execution request */
|
|
80
|
-
export const indesign_execute_custom_script = shells.indesign_execute_custom_script(async (input, ctx) => {
|
|
81
|
-
return invokeAdobeOperation({
|
|
82
|
-
method: "POST",
|
|
83
|
-
pathTemplate: "/v3/{script_id}/{script_name}",
|
|
84
|
-
baseUrl: "https://indesign.adobe.io/",
|
|
85
|
-
input: input,
|
|
86
|
-
ctx,
|
|
87
|
-
outputSchema: schemas.Schema_succeededEvent,
|
|
88
|
-
asyncMode: "submit",
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
/** Get Custom Script details */
|
|
92
|
-
export const indesign_get_custom_script_details = shells.indesign_get_custom_script_details(async (input, ctx) => {
|
|
93
|
-
return invokeAdobeOperation({
|
|
94
|
-
method: "GET",
|
|
95
|
-
pathTemplate: "/v3/scripts/{script_name}",
|
|
96
|
-
baseUrl: "https://indesign.adobe.io/",
|
|
97
|
-
input: input,
|
|
98
|
-
ctx,
|
|
99
|
-
outputSchema: schemas.Schema_CustomScriptDetails,
|
|
100
|
-
asyncMode: "none",
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
/** Delete a Custom Script */
|
|
104
|
-
export const indesign_delete_custom_script = shells.indesign_delete_custom_script(async (input, ctx) => {
|
|
105
|
-
return invokeAdobeOperation({
|
|
106
|
-
method: "DELETE",
|
|
107
|
-
pathTemplate: "/v3/scripts/{script_name}",
|
|
108
|
-
baseUrl: "https://indesign.adobe.io/",
|
|
109
|
-
input: input,
|
|
110
|
-
ctx,
|
|
111
|
-
outputSchema: z.object({}),
|
|
112
|
-
asyncMode: "none",
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
/** Update Custom Script App Version */
|
|
116
|
-
export const indesign_update_script_app_version = shells.indesign_update_script_app_version(async (input, ctx) => {
|
|
117
|
-
return invokeAdobeOperation({
|
|
118
|
-
method: "PUT",
|
|
119
|
-
pathTemplate: "/v3/scripts/{script_name}/app-version",
|
|
120
|
-
baseUrl: "https://indesign.adobe.io/",
|
|
121
|
-
input: input,
|
|
122
|
-
ctx,
|
|
123
|
-
outputSchema: z.object({
|
|
124
|
-
"message": z.string().optional()
|
|
6
|
+
/**
|
|
7
|
+
* Adobe InDesign capabilities. Handlers load on first call.
|
|
8
|
+
* @category Generated
|
|
9
|
+
*/
|
|
10
|
+
export const indesignCapabilities = {
|
|
11
|
+
"indesign-convert-pdfto-in-design": capability({
|
|
12
|
+
summary: "Convert PDF to InDesign document (Adobe InDesign).",
|
|
13
|
+
description: "Converts PDF documents to editable InDesign (INDD or IDML) format. The output is a ZIP file (default name 'output.zip') containing subfolders (named after each input PDF) with the converted document and associated assets. If `embedLinks` is false, assets are provided in a separate folder within the ZIP. If `embedLinks` is true, all links are embedded in the InDesign file. Returns warnings for missing fonts and links. The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
14
|
+
useCases: ["Turn a PDF into an editable InDesign document"],
|
|
15
|
+
projections: ["Keep the output asset URLs or storage references for download or the next edit step; the job envelope is already removed."],
|
|
16
|
+
accepts: z.strictObject({
|
|
17
|
+
assets: z.array(schemas.In_InputAsset).optional().describe("Information about the assets, which will be used to process the job."),
|
|
18
|
+
params: z.strictObject({
|
|
19
|
+
generalSettings: z.strictObject({
|
|
20
|
+
fonts: z.strictObject({
|
|
21
|
+
fontsDirectories: z.array(z.string()).optional().describe("This lists the font directories for the input InDesign documents. \"Document Fonts\" in parallel to the document will continue to work even without specifying them. If none are specified, a temporary base directory (working directory) will be considered as a font directory.")
|
|
22
|
+
}).optional().describe("Settings related to fonts. It is recommended to include fonts to avoid missing fonts warnings when processing the job."),
|
|
23
|
+
links: z.strictObject({
|
|
24
|
+
replaceLinks: z.array(z.strictObject({
|
|
25
|
+
targetDocument: z.string().describe("The document in which the relinking is to be done. Relinking of assets is required to ensure that there are no missing links in the output document."),
|
|
26
|
+
mapping: z.array(z.strictObject({
|
|
27
|
+
newAssetRelativePath: z.string().describe("This provides a path relative to a temporary base directory (working directory) where the asset to be linked to can be found. It cannot go up using '..' or '/'. Should be a valid file name."),
|
|
28
|
+
currentURI: z.string().optional().describe("The existing URI of the link that needs relinking. If multiple links with this URI are found, all will be relinked. If `linkID` is provided, this attribute will be ignored. Either `currentURI` or `linkID` should be present."),
|
|
29
|
+
linkID: z.number().int().optional().describe("The ID of the link which is to be relinked. If `currentURI` is also provided, it will be ignored. Either `currentURI` or `linkID` should be present.")
|
|
30
|
+
}))
|
|
31
|
+
})).optional()
|
|
32
|
+
}).optional().describe("Settings related to links."),
|
|
33
|
+
appLogs: z.strictObject({
|
|
34
|
+
logsRelativePath: z.string().optional().describe("This provides a path to a file, relative to the temporary base directory (working directory). This file is where the application's logs are to be dumped.")
|
|
35
|
+
}).optional().describe("Describes parameters regarding application logs.")
|
|
36
|
+
}).optional().describe("General settings."),
|
|
37
|
+
targetDocuments: z.array(z.string()).min(1).max(1).optional().describe("Array of PDF documents to convert. Each entry corresponds to the filename of the PDF document to convert. Currently supports one document at a time."),
|
|
38
|
+
outputMediaType: z.enum(["application/x-indesign", "application/vnd.adobe.indesign-idml-package"]).optional().describe("The MIME type of the output file."),
|
|
39
|
+
embedLinks: z.boolean().optional().describe("If true, all links (images and other assets) from the PDF are embedded directly in the resulting INDD/IDML file. If false (default), the INDD/IDML file is created with external links, and all assets are provided in a separate folder within the output ZIP."),
|
|
40
|
+
outputFilebaseString: z.string().optional().describe("The name of the output ZIP file. If not specified, defaults to 'output.zip'.")
|
|
41
|
+
}).optional(),
|
|
42
|
+
outputs: z.array(schemas.In_OutputAsset).optional(),
|
|
43
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
125
44
|
}),
|
|
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
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
})
|
|
45
|
+
returns: schemas.Out_succeededEvent,
|
|
46
|
+
timeoutMs: 600000,
|
|
47
|
+
handler: () => import("./operations.js").then((operations) => operations.load("indesign-convert-pdfto-in-design")),
|
|
48
|
+
}),
|
|
49
|
+
"indesign-data-merge": capability({
|
|
50
|
+
summary: "Perform a data merge (Adobe InDesign).",
|
|
51
|
+
description: "Creates InDesign documents or PDFs by merging CSV data with InDesign templates. Supports multiple output formats: JPEG (`image/jpeg`), PNG (`image/png`), PDF (`application/pdf`), and InDesign (`application/x-indesign`). The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
52
|
+
useCases: ["Produce personalized InDesign layouts from a data source"],
|
|
53
|
+
projections: ["Keep the output asset URLs or storage references for download or the next edit step; the job envelope is already removed."],
|
|
54
|
+
accepts: z.strictObject({
|
|
55
|
+
assets: z.array(schemas.In_InputAsset).optional().describe("Information about the assets, which will be used to process the job."),
|
|
56
|
+
params: z.strictObject({
|
|
57
|
+
generalSettings: z.strictObject({
|
|
58
|
+
fonts: z.strictObject({
|
|
59
|
+
fontsDirectories: z.array(z.string()).optional().describe("This lists the font directories for the input InDesign documents. \"Document Fonts\" in parallel to the document will continue to work even without specifying them. If none are specified, a temporary base directory (working directory) will be considered as a font directory.")
|
|
60
|
+
}).optional().describe("Settings related to fonts. It is recommended to include fonts to avoid missing fonts warnings when processing the job."),
|
|
61
|
+
links: z.strictObject({
|
|
62
|
+
replaceLinks: z.array(z.strictObject({
|
|
63
|
+
targetDocument: z.string().describe("The document in which the relinking is to be done. Relinking of assets is required to ensure that there are no missing links in the output document."),
|
|
64
|
+
mapping: z.array(z.strictObject({
|
|
65
|
+
newAssetRelativePath: z.string().describe("This provides a path relative to a temporary base directory (working directory) where the asset to be linked to can be found. It cannot go up using '..' or '/'. Should be a valid file name."),
|
|
66
|
+
currentURI: z.string().optional().describe("The existing URI of the link that needs relinking. If multiple links with this URI are found, all will be relinked. If `linkID` is provided, this attribute will be ignored. Either `currentURI` or `linkID` should be present."),
|
|
67
|
+
linkID: z.number().int().optional().describe("The ID of the link which is to be relinked. If `currentURI` is also provided, it will be ignored. Either `currentURI` or `linkID` should be present.")
|
|
68
|
+
}))
|
|
69
|
+
})).optional()
|
|
70
|
+
}).optional().describe("Settings related to links."),
|
|
71
|
+
appLogs: z.strictObject({
|
|
72
|
+
logsRelativePath: z.string().optional().describe("This provides a path to a file, relative to the temporary base directory (working directory). This file is where the application's logs are to be dumped.")
|
|
73
|
+
}).optional().describe("Describes parameters regarding application logs.")
|
|
74
|
+
}).optional().describe("General settings."),
|
|
75
|
+
targetDocument: z.string().optional().describe("The tagged document to be used as the template for merging."),
|
|
76
|
+
dataSource: z.string().optional().describe("The data source files to be used."),
|
|
77
|
+
outputMediaType: z.enum(["image/jpeg", "image/png", "application/pdf", "application/x-indesign"]).optional().describe("The type of output."),
|
|
78
|
+
exportSettings: z.strictObject({
|
|
79
|
+
jobOptionsFile: z.string().optional().describe("File path reference to a `.joboptions` file (Adobe PDF preset file) containing custom PDF export settings. This file must be included as part of the input assets. It defines detailed PDF output configurations such as compression, color management, and security settings."),
|
|
80
|
+
pdfPreset: z.enum(["High Quality Print", "PDF/X-1a:2001", "PDF/X-3:2002", "PDF/X-4:2008", "Press Quality", "Smallest File Size"]).optional().describe("The PDF export style to be used. This is relevant if `outputMediaType` is `application/pdf`."),
|
|
81
|
+
quality: z.enum(["low", "medium", "high", "maximum"]).optional().describe("Defines the quality of the output for JPEG and PNG formats."),
|
|
82
|
+
linkImages: z.boolean().optional().describe("If `true`, links images to the target document. If `false`, embeds linked images already referred in the target document. Only relevant if `outputMediaType` is `application/x-indesign`.")
|
|
83
|
+
}).optional().describe("The settings corresponding to the output format."),
|
|
84
|
+
recordRange: z.string().optional().describe("The ranges of records to process for this job. Value can be `All`, along with numeral ranges. For example, '1-2, 5'."),
|
|
85
|
+
allowMultipleRecordsPerPage: z.boolean().optional().describe("If `true`, will show as many records as will fit on a page."),
|
|
86
|
+
multipleRecordLayoutOptions: z.strictObject({
|
|
87
|
+
arrangeBy: z.enum(["rows_first", "columns_first"]).optional().describe("The order that records will be arranged in the target document. * `rows_first` - Arranges records by row. * `columns_first` - Arranges records by column."),
|
|
88
|
+
bottomMargin: z.string().optional().describe("The offset value of the bottom margin in the target document. The values can be specified like `1 pt`, `1 pica`, `1`, etc. If a number is mentioned in the string, it will be used as a value in pica."),
|
|
89
|
+
topMargin: z.string().optional().describe("The offset value of the top margin in the target document. The values can be specified like `1 pt`, `1 pica`, `1`, etc. If a number is mentioned in the string, it will be used as a value in pica."),
|
|
90
|
+
leftMargin: z.string().optional().describe("The offset value of the left margin in the target document. The values can be specified like `1 pt`, `1 pica`, `1`, etc. If a number is mentioned in the string, it will be used as a value in pica."),
|
|
91
|
+
rightMargin: z.string().optional().describe("The offset value of the right margin in the target document. The values can be specified like `1 pt`, `1 pica`, `1`, etc. If a number is mentioned in the string, it will be used as a value in pica."),
|
|
92
|
+
columnSpacing: z.string().optional().describe("The amount of spacing between columns of records in the target document. The values can be specified like `1 pt`, `1 pica`, `1`, etc. If a number is mentioned in the string, it will be used as a value in pica."),
|
|
93
|
+
rowSpacing: z.string().optional().describe("The amount of spacing between rows of records in the target document. The values can be specified like `1 pt`, `1 pica`, `1`, etc. If a number is mentioned in the string, it will be used as a value in pica.")
|
|
94
|
+
}).optional().describe("The options to be used when `allowMultipleRecordsPerPage` is set to `true`."),
|
|
95
|
+
imagePlacementOptions: z.strictObject({
|
|
96
|
+
centerImage: z.boolean().optional().describe("If true, this centers the image in the frame while preserving the frame size as content size and proportions. If the content is larger than the frame, content around the edges is obscured by the bounding box of the frame. This won't work when `fittingOption` is `Content_Aware_Fit`."),
|
|
97
|
+
fittingOption: z.enum(["content_aware_fit", "fill_proportional", "fit_content_to_frame", "fit_frame_to_content", "honor_existing_style", "preserve_sizes", "proportional"]).optional().describe("The method of fitting content in a frame. * `content_aware_fit` - Selects best crop region of the content for the frame based on Adobe Sensei. This preserves frame size but it might scale the content size. If this fitting is set, the `centerImage` property is turned-off."),
|
|
98
|
+
linkImages: z.boolean().optional().describe("This applies to the images being brought in the document while merging. If true, this links images to the target document. If false, it embeds images in the target document.")
|
|
99
|
+
}).optional().describe("These are the options for image placement which will be used while merging images in the document."),
|
|
100
|
+
hyphenationSettings: z.strictObject({
|
|
101
|
+
afterFirst: z.number().int().optional().describe("Minimum number of characters at the start of a word before a hyphen may be inserted."),
|
|
102
|
+
beforeLast: z.number().int().optional().describe("Minimum number of characters at the end of a word after a hyphen."),
|
|
103
|
+
wordsLongerThan: z.number().int().optional().describe("Minimum word length for hyphenation to apply."),
|
|
104
|
+
ladderLimit: z.number().int().optional().describe("Maximum allowed consecutive hyphenated lines."),
|
|
105
|
+
zone: z.number().optional().describe("Whitespace ratio allowed at the end of a line before hyphenation begins (0–1)."),
|
|
106
|
+
capitalizedWords: z.boolean().optional().describe("If true, allows hyphenation of capitalized words."),
|
|
107
|
+
lastWord: z.boolean().optional().describe("If true, allows hyphenation of the last word in a paragraph."),
|
|
108
|
+
acrossColumns: z.boolean().optional().describe("If true, allows hyphenation across columns."),
|
|
109
|
+
dictionarySettings: z.array(z.strictObject({
|
|
110
|
+
language: schemas.In_HyphenationLanguage,
|
|
111
|
+
wordList: z.array(z.string()).describe("List of special hyphenation definitions (use `~` to mark break points, e.g., `Know~how`, `check~in`. Put `~` at the beginning of the word to exclude it from hyphenation, e.g., `~Wallstreet`, `~Starbucks`).")
|
|
112
|
+
})).optional().describe("Special hyphenation definitions by language.")
|
|
113
|
+
}).optional().describe("Hyphenation settings to control word breaking and hyphenation behavior during merge."),
|
|
114
|
+
pagesPerDocument: z.number().int().optional().describe("The maximum number of pages per document."),
|
|
115
|
+
removeBlankLines: z.boolean().optional().describe("If true, removes blank lines caused by empty fields."),
|
|
116
|
+
convertUrlToHyperlink: z.boolean().optional().describe("If true, all URLs in the merged document are converted into hyperlinks."),
|
|
117
|
+
outputFileBaseString: z.string().optional().describe("The name of the output file."),
|
|
118
|
+
outputFolderPath: z.string().optional().describe("The path of the output folder.")
|
|
119
|
+
}).optional(),
|
|
120
|
+
outputs: z.array(schemas.In_OutputAsset).optional(),
|
|
121
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
122
|
+
}),
|
|
123
|
+
returns: schemas.Out_succeededEvent,
|
|
124
|
+
timeoutMs: 600000,
|
|
125
|
+
handler: () => import("./operations.js").then((operations) => operations.load("indesign-data-merge")),
|
|
126
|
+
}),
|
|
127
|
+
"indesign-data-merge-tags": capability({
|
|
128
|
+
summary: "Get data merge tags (Adobe InDesign).",
|
|
129
|
+
description: "Retrieves the data merge tags from a document. The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
130
|
+
useCases: ["Discover merge fields in an InDesign template before running data merge"],
|
|
131
|
+
projections: ["Keep the output asset URLs or storage references for download or the next edit step; the job envelope is already removed."],
|
|
132
|
+
accepts: z.strictObject({
|
|
133
|
+
assets: z.array(schemas.In_InputAsset).optional().describe("Information about the assets, which will be used to process the job."),
|
|
134
|
+
params: z.strictObject({
|
|
135
|
+
generalSettings: z.strictObject({
|
|
136
|
+
fonts: z.strictObject({
|
|
137
|
+
fontsDirectories: z.array(z.string()).optional().describe("This lists the font directories for the input InDesign documents. \"Document Fonts\" in parallel to the document will continue to work even without specifying them. If none are specified, a temporary base directory (working directory) will be considered as a font directory.")
|
|
138
|
+
}).optional().describe("Settings related to fonts. It is recommended to include fonts to avoid missing fonts warnings when processing the job."),
|
|
139
|
+
links: z.strictObject({
|
|
140
|
+
replaceLinks: z.array(z.strictObject({
|
|
141
|
+
targetDocument: z.string().describe("The document in which the relinking is to be done. Relinking of assets is required to ensure that there are no missing links in the output document."),
|
|
142
|
+
mapping: z.array(z.strictObject({
|
|
143
|
+
newAssetRelativePath: z.string().describe("This provides a path relative to a temporary base directory (working directory) where the asset to be linked to can be found. It cannot go up using '..' or '/'. Should be a valid file name."),
|
|
144
|
+
currentURI: z.string().optional().describe("The existing URI of the link that needs relinking. If multiple links with this URI are found, all will be relinked. If `linkID` is provided, this attribute will be ignored. Either `currentURI` or `linkID` should be present."),
|
|
145
|
+
linkID: z.number().int().optional().describe("The ID of the link which is to be relinked. If `currentURI` is also provided, it will be ignored. Either `currentURI` or `linkID` should be present.")
|
|
146
|
+
}))
|
|
147
|
+
})).optional()
|
|
148
|
+
}).optional().describe("Settings related to links."),
|
|
149
|
+
appLogs: z.strictObject({
|
|
150
|
+
logsRelativePath: z.string().optional().describe("This provides a path to a file, relative to the temporary base directory (working directory). This file is where the application's logs are to be dumped.")
|
|
151
|
+
}).optional().describe("Describes parameters regarding application logs.")
|
|
152
|
+
}).optional().describe("General settings."),
|
|
153
|
+
targetDocument: z.string().optional().describe("The target document that will have its tags extracted."),
|
|
154
|
+
dataSource: z.string().optional().describe("The data source file to be used for extracting and matching the tags."),
|
|
155
|
+
filter: z.array(z.enum(["all", "text", "image", "qr"])).optional().describe("The filter applied for tags. Accepts multiple values."),
|
|
156
|
+
includePageItemIdentifiers: z.boolean().optional().describe("If true, the information for associated page items is added to the tags extracted from the document.")
|
|
157
|
+
}).optional(),
|
|
158
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
159
|
+
}),
|
|
160
|
+
returns: schemas.Out_succeededEvent,
|
|
161
|
+
timeoutMs: 600000,
|
|
162
|
+
handler: () => import("./operations.js").then((operations) => operations.load("indesign-data-merge-tags")),
|
|
163
|
+
}),
|
|
164
|
+
"indesign-delete-custom-script": capability({
|
|
165
|
+
summary: "Delete an InDesign custom script registration (Adobe InDesign).",
|
|
166
|
+
description: "Deletes a single registered custom script. All versions of the script will be permanently removed.",
|
|
167
|
+
useCases: ["Remove a custom script registration that is no longer needed"],
|
|
168
|
+
projections: ["Take the ids or asset URLs the next step needs from the response."],
|
|
169
|
+
accepts: z.strictObject({
|
|
170
|
+
script_name: z.string().describe("Name of the custom script to delete")
|
|
171
|
+
}),
|
|
172
|
+
returns: z.looseObject({}),
|
|
173
|
+
timeoutMs: 120000,
|
|
174
|
+
handler: () => import("./operations.js").then((operations) => operations.load("indesign-delete-custom-script")),
|
|
175
|
+
}),
|
|
176
|
+
"indesign-execute-custom-script": capability({
|
|
177
|
+
summary: "Run a registered InDesign cloud custom script (Adobe InDesign).",
|
|
178
|
+
description: "Submits execution requests for custom scripts. Defines input assets and parameters that the custom script will use during execution. The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
179
|
+
useCases: ["Automate layout or export steps with a hosted InDesign script"],
|
|
180
|
+
projections: ["Take the ids or asset URLs the next step needs from the response."],
|
|
181
|
+
accepts: z.strictObject({
|
|
182
|
+
script_id: z.string().describe("script_id as reported in the response to custom script submit request."),
|
|
183
|
+
script_name: z.string().describe("The name of the custom script, specified in the custom script manifest."),
|
|
184
|
+
assets: z.array(schemas.In_InputAsset).optional().describe("Information about the assets, which will be used to process the job."),
|
|
185
|
+
params: z.strictObject({
|
|
186
|
+
generalSettings: z.strictObject({
|
|
187
|
+
fonts: z.strictObject({
|
|
188
|
+
fontsDirectories: z.array(z.string()).optional().describe("This lists the font directories for the input InDesign documents. \"Document Fonts\" in parallel to the document will continue to work even without specifying them. If none are specified, a temporary base directory (working directory) will be considered as a font directory.")
|
|
189
|
+
}).optional().describe("Settings related to fonts. It is recommended to include fonts to avoid missing fonts warnings when processing the job."),
|
|
190
|
+
links: z.strictObject({
|
|
191
|
+
replaceLinks: z.array(z.strictObject({
|
|
192
|
+
targetDocument: z.string().describe("The document in which the relinking is to be done. Relinking of assets is required to ensure that there are no missing links in the output document."),
|
|
193
|
+
mapping: z.array(z.strictObject({
|
|
194
|
+
newAssetRelativePath: z.string().describe("This provides a path relative to a temporary base directory (working directory) where the asset to be linked to can be found. It cannot go up using '..' or '/'. Should be a valid file name."),
|
|
195
|
+
currentURI: z.string().optional().describe("The existing URI of the link that needs relinking. If multiple links with this URI are found, all will be relinked. If `linkID` is provided, this attribute will be ignored. Either `currentURI` or `linkID` should be present."),
|
|
196
|
+
linkID: z.number().int().optional().describe("The ID of the link which is to be relinked. If `currentURI` is also provided, it will be ignored. Either `currentURI` or `linkID` should be present.")
|
|
197
|
+
}))
|
|
198
|
+
})).optional()
|
|
199
|
+
}).optional().describe("Settings related to links."),
|
|
200
|
+
appLogs: z.strictObject({
|
|
201
|
+
logsRelativePath: z.string().optional().describe("This provides a path to a file, relative to the temporary base directory (working directory). This file is where the application's logs are to be dumped.")
|
|
202
|
+
}).optional().describe("Describes parameters regarding application logs.")
|
|
203
|
+
}).optional().describe("General settings.")
|
|
204
|
+
}).optional(),
|
|
205
|
+
outputs: z.array(schemas.In_OutputAsset).optional(),
|
|
206
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
207
|
+
}),
|
|
208
|
+
returns: schemas.Out_succeededEvent,
|
|
209
|
+
timeoutMs: 600000,
|
|
210
|
+
handler: () => import("./operations.js").then((operations) => operations.load("indesign-execute-custom-script")),
|
|
211
|
+
}),
|
|
212
|
+
"indesign-get-custom-script-details": capability({
|
|
213
|
+
summary: "Get metadata for one InDesign custom script (Adobe InDesign).",
|
|
214
|
+
description: "Retrieves details of a single registered custom script. Includes version, download link, registration date, and script name.",
|
|
215
|
+
useCases: ["Verify script metadata before executing or updating it"],
|
|
216
|
+
projections: ["Read the document facts the next step needs (layer or page names, sizes, ids) instead of carrying the whole result forward."],
|
|
217
|
+
accepts: z.strictObject({
|
|
218
|
+
script_name: z.string().describe("Name of the custom script")
|
|
219
|
+
}),
|
|
220
|
+
returns: schemas.Out_CustomScriptDetails,
|
|
221
|
+
timeoutMs: 120000,
|
|
222
|
+
handler: () => import("./operations.js").then((operations) => operations.load("indesign-get-custom-script-details")),
|
|
223
|
+
}),
|
|
224
|
+
"indesign-get-document-info": capability({
|
|
225
|
+
summary: "Get document information (Adobe InDesign).",
|
|
226
|
+
description: "Retrieve comprehensive information about INDD/IDML documents. Returns data based on the enabled information types specified in the request. The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
227
|
+
useCases: ["Read page and layer facts from an InDesign document without downloading the full file"],
|
|
228
|
+
projections: ["Read the document facts the next step needs (layer or page names, sizes, ids) instead of carrying the whole result forward."],
|
|
229
|
+
accepts: z.strictObject({
|
|
230
|
+
assets: z.array(schemas.In_InputAsset).optional().describe("Information about the assets, which will be used to process the job."),
|
|
231
|
+
params: z.strictObject({
|
|
232
|
+
generalSettings: z.strictObject({
|
|
233
|
+
fonts: z.strictObject({
|
|
234
|
+
fontsDirectories: z.array(z.string()).optional().describe("This lists the font directories for the input InDesign documents. \"Document Fonts\" in parallel to the document will continue to work even without specifying them. If none are specified, a temporary base directory (working directory) will be considered as a font directory.")
|
|
235
|
+
}).optional().describe("Settings related to fonts. It is recommended to include fonts to avoid missing fonts warnings when processing the job."),
|
|
236
|
+
links: z.strictObject({
|
|
237
|
+
replaceLinks: z.array(z.strictObject({
|
|
238
|
+
targetDocument: z.string().describe("The document in which the relinking is to be done. Relinking of assets is required to ensure that there are no missing links in the output document."),
|
|
239
|
+
mapping: z.array(z.strictObject({
|
|
240
|
+
newAssetRelativePath: z.string().describe("This provides a path relative to a temporary base directory (working directory) where the asset to be linked to can be found. It cannot go up using '..' or '/'. Should be a valid file name."),
|
|
241
|
+
currentURI: z.string().optional().describe("The existing URI of the link that needs relinking. If multiple links with this URI are found, all will be relinked. If `linkID` is provided, this attribute will be ignored. Either `currentURI` or `linkID` should be present."),
|
|
242
|
+
linkID: z.number().int().optional().describe("The ID of the link which is to be relinked. If `currentURI` is also provided, it will be ignored. Either `currentURI` or `linkID` should be present.")
|
|
243
|
+
}))
|
|
244
|
+
})).optional()
|
|
245
|
+
}).optional().describe("Settings related to links."),
|
|
246
|
+
appLogs: z.strictObject({
|
|
247
|
+
logsRelativePath: z.string().optional().describe("This provides a path to a file, relative to the temporary base directory (working directory). This file is where the application's logs are to be dumped.")
|
|
248
|
+
}).optional().describe("Describes parameters regarding application logs.")
|
|
249
|
+
}).optional().describe("General settings."),
|
|
250
|
+
targetDocument: z.string().optional().describe("The document to be used for data extraction."),
|
|
251
|
+
pageInfo: z.strictObject({
|
|
252
|
+
enabled: z.boolean().optional().describe("If true, return pages information.")
|
|
253
|
+
}).optional().describe("Settings for extracting page information."),
|
|
254
|
+
linkInfo: z.strictObject({
|
|
255
|
+
enabled: z.boolean().optional().describe("If true, return links information.")
|
|
256
|
+
}).optional().describe("Settings for extracting link information."),
|
|
257
|
+
fontInfo: z.strictObject({
|
|
258
|
+
enabled: z.boolean().optional().describe("If true, return fonts information.")
|
|
259
|
+
}).optional().describe("Settings for extracting font information."),
|
|
260
|
+
pageItemInfo: z.strictObject({
|
|
261
|
+
enabled: z.boolean().optional().describe("If true, return page items details.")
|
|
262
|
+
}).optional().describe("Settings for extracting page item information."),
|
|
263
|
+
textStoryInfo: z.strictObject({
|
|
264
|
+
enabled: z.boolean().optional().describe("If true, return text stories information.")
|
|
265
|
+
}).optional().describe("Settings for extracting text story information.")
|
|
266
|
+
}).optional(),
|
|
267
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
268
|
+
}),
|
|
269
|
+
returns: schemas.Out_succeededEvent,
|
|
270
|
+
timeoutMs: 600000,
|
|
271
|
+
handler: () => import("./operations.js").then((operations) => operations.load("indesign-get-document-info")),
|
|
272
|
+
}),
|
|
273
|
+
"indesign-list-app-versions": capability({
|
|
274
|
+
summary: "List supported InDesign app versions for custom scripts (Adobe InDesign).",
|
|
275
|
+
description: "Retrieves information about all available InDesign app versions. Returns major version, minor version, and status for each registered app version.",
|
|
276
|
+
useCases: ["Check which InDesign versions a script must support"],
|
|
277
|
+
projections: ["Keep each listed item's id and display name so a later step can select one; drop the rest."],
|
|
278
|
+
accepts: z.strictObject({}),
|
|
279
|
+
returns: z.array(schemas.Out_AppVersionInfo),
|
|
280
|
+
timeoutMs: 120000,
|
|
281
|
+
handler: () => import("./operations.js").then((operations) => operations.load("indesign-list-app-versions")),
|
|
282
|
+
}),
|
|
283
|
+
"indesign-list-custom-scripts": capability({
|
|
284
|
+
summary: "List registered InDesign custom scripts (Adobe InDesign).",
|
|
285
|
+
description: "Retrieves details of the latest version of all registered custom scripts. Includes version, download link, registration date, and script name. Response is paginated based on list length.",
|
|
286
|
+
useCases: ["Enumerate scripts registered for server-side InDesign automation"],
|
|
287
|
+
projections: ["Keep each listed item's id and display name so a later step can select one; drop the rest."],
|
|
288
|
+
accepts: z.strictObject({
|
|
289
|
+
page: z.number().int().optional().describe("Page number for pagination")
|
|
290
|
+
}),
|
|
291
|
+
returns: schemas.Out_CustomScriptsListResponse,
|
|
292
|
+
timeoutMs: 120000,
|
|
293
|
+
handler: () => import("./operations.js").then((operations) => operations.load("indesign-list-custom-scripts")),
|
|
294
|
+
}),
|
|
295
|
+
"indesign-remap-links": capability({
|
|
296
|
+
summary: "Remap links (Adobe InDesign).",
|
|
297
|
+
description: "Replaces file-based links in InDesign documents with AEM URLs. Particularly useful for customers working with Adobe Experience Manager (AEM) using Adobe Asset Link, enabling designers to work with output files that have direct links to AEM URLs. The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
298
|
+
useCases: ["Relink placed assets in an InDesign package to new URLs"],
|
|
299
|
+
projections: ["Take the ids or asset URLs the next step needs from the response."],
|
|
300
|
+
accepts: z.strictObject({
|
|
301
|
+
"x-aem-token": z.string().describe("Bearer token generated for the AEM technical account without the bearer keyword."),
|
|
302
|
+
assets: z.array(schemas.In_InputAsset).optional(),
|
|
303
|
+
params: z.strictObject({
|
|
304
|
+
targetDocument: z.array(z.string()).min(1).describe("The InDesign documents in which links need to be remapped."),
|
|
305
|
+
dataSource: z.array(z.strictObject({
|
|
306
|
+
sourceURI: z.string().describe("File path/resource URI for the existing link that needs to be remapped."),
|
|
307
|
+
destinationURI: z.string().describe("AEM URI that will replace the existing link.")
|
|
308
|
+
})).min(1).describe("Array of link mappings containing source and destination URIs.")
|
|
309
|
+
}).optional(),
|
|
310
|
+
outputs: z.array(schemas.In_OutputAsset).optional(),
|
|
311
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
312
|
+
}),
|
|
313
|
+
returns: schemas.Out_succeededEvent,
|
|
314
|
+
timeoutMs: 600000,
|
|
315
|
+
handler: () => import("./operations.js").then((operations) => operations.load("indesign-remap-links")),
|
|
316
|
+
}),
|
|
317
|
+
"indesign-rendition-job": capability({
|
|
318
|
+
summary: "Create JPEG, PNG, or PDF renditions (Adobe InDesign).",
|
|
319
|
+
description: "Creates JPEG, PNG, or PDF renditions of InDesign documents. Supports multiple output formats: JPEG (`image/jpeg`), PNG (`image/png`), and PDF (`application/pdf`). The step submits the Adobe job, waits for it to finish and returns the job result, not the job id.",
|
|
320
|
+
useCases: ["Render InDesign pages to JPEG, PNG or PDF renditions"],
|
|
321
|
+
projections: ["Keep the output asset URLs or storage references for download or the next edit step; the job envelope is already removed."],
|
|
322
|
+
accepts: z.strictObject({
|
|
323
|
+
assets: z.array(schemas.In_InputAsset).optional().describe("Information about the assets, which will be used to process the job."),
|
|
324
|
+
params: z.strictObject({
|
|
325
|
+
generalSettings: z.strictObject({
|
|
326
|
+
fonts: z.strictObject({
|
|
327
|
+
fontsDirectories: z.array(z.string()).optional().describe("This lists the font directories for the input InDesign documents. \"Document Fonts\" in parallel to the document will continue to work even without specifying them. If none are specified, a temporary base directory (working directory) will be considered as a font directory.")
|
|
328
|
+
}).optional().describe("Settings related to fonts. It is recommended to include fonts to avoid missing fonts warnings when processing the job."),
|
|
329
|
+
links: z.strictObject({
|
|
330
|
+
replaceLinks: z.array(z.strictObject({
|
|
331
|
+
targetDocument: z.string().describe("The document in which the relinking is to be done. Relinking of assets is required to ensure that there are no missing links in the output document."),
|
|
332
|
+
mapping: z.array(z.strictObject({
|
|
333
|
+
newAssetRelativePath: z.string().describe("This provides a path relative to a temporary base directory (working directory) where the asset to be linked to can be found. It cannot go up using '..' or '/'. Should be a valid file name."),
|
|
334
|
+
currentURI: z.string().optional().describe("The existing URI of the link that needs relinking. If multiple links with this URI are found, all will be relinked. If `linkID` is provided, this attribute will be ignored. Either `currentURI` or `linkID` should be present."),
|
|
335
|
+
linkID: z.number().int().optional().describe("The ID of the link which is to be relinked. If `currentURI` is also provided, it will be ignored. Either `currentURI` or `linkID` should be present.")
|
|
336
|
+
}))
|
|
337
|
+
})).optional()
|
|
338
|
+
}).optional().describe("Settings related to links."),
|
|
339
|
+
appLogs: z.strictObject({
|
|
340
|
+
logsRelativePath: z.string().optional().describe("This provides a path to a file, relative to the temporary base directory (working directory). This file is where the application's logs are to be dumped.")
|
|
341
|
+
}).optional().describe("Describes parameters regarding application logs.")
|
|
342
|
+
}).optional().describe("General settings."),
|
|
343
|
+
targetDocuments: z.array(z.string()).min(1).max(1).optional().describe("The documents that will be processed and rendered. Currently, only one document at a time is supported."),
|
|
344
|
+
outputMediaType: z.enum(["image/jpeg", "image/png", "application/pdf"]).optional().describe("The MIME type output of the rendered file."),
|
|
345
|
+
exportingSpread: z.boolean().optional().describe("Specify `true` if you consider range as spread numbers. Use `false` if you treat range as pages."),
|
|
346
|
+
pageRange: z.string().optional().describe("The page ranges, based on the index of the page within the document. The value can be 'All', as well as numeral ranges. If `exportingSpread` is true, this range would represent spread indices in the document."),
|
|
347
|
+
quality: z.enum(["low", "medium", "high", "maximum"]).optional().describe("Defines the quality of the output."),
|
|
348
|
+
renderingStyle: z.enum(["baseline_encoding", "progressive_encoding"]).optional().describe("Specifies formatting options for the converted JPEG images."),
|
|
349
|
+
resolution: z.number().int().min(1).max(2400).optional().describe("Specifies the resolution of the final image."),
|
|
350
|
+
colorSpace: z.enum(["rgb", "cmyk", "gray"]).optional().describe("Specifies formatting options for converted JPEG images."),
|
|
351
|
+
embedColorProfile: z.boolean().optional().describe("Specify `true` to embed the color profile. Otherwise, use `false`."),
|
|
352
|
+
antiAlias: z.boolean().optional().describe("If `true`, anti-aliasing is used for text and vectors during export."),
|
|
353
|
+
simulateOverprint: z.boolean().optional().describe("If `true`, this simulates the effects of overprinting spot and processes colors in the same way they would occur with a print."),
|
|
354
|
+
useDocumentBleeds: z.boolean().optional().describe("If `true`, the document's bleed settings are used in the exported JPEG."),
|
|
355
|
+
colorSettingsFile: z.string().optional().describe("This is the color settings file to be used for generating a rendition."),
|
|
356
|
+
transparentBackground: z.boolean().optional().describe("If `true`, this uses a transparent background for the exported PNG. This is valid only for PNG renditions."),
|
|
357
|
+
createSeparateFiles: z.boolean().optional().describe("Specify `true` to create separate PDF files for all the specified pages/spreads. This is applicable only in case of PDF rendition."),
|
|
358
|
+
optimizeForFastWebView: z.boolean().optional().describe("Specify `true` to optimize the PDF for faster web viewing. This is applicable only in case of PDF rendition."),
|
|
359
|
+
embedPageThumbnails: z.boolean().optional().describe("Specify `true` for embedding page thumbnails. This is applicable only in case of PDF rendition."),
|
|
360
|
+
includeBookmarks: z.boolean().optional().describe("If `true`, this displays bookmarks and table-of-contents entries as links in the bookmarks pane of the PDF document. If `false`, bookmarks are not exported. This is applicable only in case of PDF rendition."),
|
|
361
|
+
includeHyperlinks: z.boolean().optional().describe("If `true`, this includes the hyperlinks when exporting the document. This is applicable only in case of PDF rendition."),
|
|
362
|
+
exportNonprintingObjects: z.boolean().optional().describe("If `true`, this makes non-printing objects visible in the PDF document. This is applicable only in case of PDF rendition."),
|
|
363
|
+
exportGuidesAndGrids: z.boolean().optional().describe("If `true`, this includes visible guides and baseline grids in the PDF. This is applicable only in case of PDF rendition. document."),
|
|
364
|
+
createTaggedPDF: z.boolean().optional().describe("If `true`, this creates a tagged PDF file. This is applicable only in case of PDF rendition."),
|
|
365
|
+
includeInteractiveElements: z.enum(["do_not_include", "appearance_only"]).optional().describe("Specifies the option to draw interactive elements. This is applicable only in case of PDF rendition."),
|
|
366
|
+
exportWhichLayers: z.enum(["export_all_layers", "export_visible_layers", "export_visible_printable_layers"]).optional().describe("This indicates the image layers to be exported. This is applicable only in case of PDF rendition."),
|
|
367
|
+
jobOptionsFile: z.string().optional().describe("File path reference to a `.joboptions` file (Adobe PDF preset file) containing custom PDF export settings. This file must be included as part of the input assets. It defines detailed PDF output configurations such as compression, color management, and security settings."),
|
|
368
|
+
pdfPreset: z.enum(["High Quality Print", "PDF/X-1a:2001", "PDF/X-3:2002", "PDF/X-4:2008", "Press Quality", "Smallest File Size"]).optional().describe("The export style to be used. This is applicable only in case of PDF rendition."),
|
|
369
|
+
outputFileBaseString: z.string().optional().describe("The name of the output file."),
|
|
370
|
+
outputFolderPath: z.string().optional().describe("The path of the output folder.")
|
|
371
|
+
}).optional(),
|
|
372
|
+
outputs: z.array(schemas.In_OutputAsset).optional(),
|
|
373
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
374
|
+
}),
|
|
375
|
+
returns: z.looseObject({}).describe("Top-level url fields are promoted to url FileRefs where present."),
|
|
376
|
+
timeoutMs: 600000,
|
|
377
|
+
handler: () => import("./operations.js").then((operations) => operations.load("indesign-rendition-job")),
|
|
378
|
+
}),
|
|
379
|
+
"indesign-update-script-app-version": capability({
|
|
380
|
+
summary: "Set the InDesign app version a custom script targets (Adobe InDesign).",
|
|
381
|
+
description: "Updates the InDesign app version configuration for a registered custom script. Allows customers to specify version strategies: use latest version, fix to a major version, or fix to a specific major and minor version.",
|
|
382
|
+
useCases: ["Retarget a stored script to a newer InDesign server version"],
|
|
383
|
+
projections: ["Take the ids or asset URLs the next step needs from the response."],
|
|
384
|
+
accepts: z.strictObject({
|
|
385
|
+
script_name: z.string().describe("Name of the custom script to update"),
|
|
386
|
+
appVersionStrategy: z.enum(["latest_version", "fixed_major_version", "fixed_major_and_minor_version"]).optional().describe("Strategy for determining the InDesign app version to use. latest_version uses the most recent version, fixed_major_version locks to a major version, fixed_major_and_minor_version locks to a specific version."),
|
|
387
|
+
majorAppVersion: z.string().optional().describe("Major version of the InDesign app. Required when appVersionStrategy is fixed_major_version or fixed_major_and_minor_version."),
|
|
388
|
+
minorAppVersion: z.string().optional().describe("Minor version of the InDesign app. Required when appVersionStrategy is fixed_major_and_minor_version."),
|
|
389
|
+
body: z.looseObject({}).optional().describe("Rest of the JSON request document. Fields also set as top-level parameters replace the same keys here.")
|
|
390
|
+
}),
|
|
391
|
+
returns: z.looseObject({
|
|
392
|
+
message: z.string().optional()
|
|
393
|
+
}),
|
|
394
|
+
timeoutMs: 120000,
|
|
395
|
+
handler: () => import("./operations.js").then((operations) => operations.load("indesign-update-script-app-version")),
|
|
396
|
+
}),
|
|
397
|
+
};
|
|
201
398
|
//# sourceMappingURL=capabilities.js.map
|