@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.
Files changed (281) hide show
  1. package/LICENSE +198 -13
  2. package/README.md +113 -83
  3. package/dist/auth/ims.d.ts +47 -14
  4. package/dist/auth/ims.d.ts.map +1 -1
  5. package/dist/auth/ims.js +127 -26
  6. package/dist/auth/ims.js.map +1 -1
  7. package/dist/config.d.ts +27 -0
  8. package/dist/config.d.ts.map +1 -0
  9. package/dist/config.js +51 -0
  10. package/dist/config.js.map +1 -0
  11. package/dist/errors.d.ts +42 -0
  12. package/dist/errors.d.ts.map +1 -0
  13. package/dist/errors.js +53 -0
  14. package/dist/errors.js.map +1 -0
  15. package/dist/generated/audio-video/capabilities.d.ts +21 -36
  16. package/dist/generated/audio-video/capabilities.d.ts.map +1 -1
  17. package/dist/generated/audio-video/capabilities.js +295 -259
  18. package/dist/generated/audio-video/capabilities.js.map +1 -1
  19. package/dist/generated/audio-video/operations.d.ts +13 -0
  20. package/dist/generated/audio-video/operations.d.ts.map +1 -0
  21. package/dist/generated/audio-video/operations.js +182 -0
  22. package/dist/generated/audio-video/operations.js.map +1 -0
  23. package/dist/generated/audio-video/schemas.d.ts +245 -82
  24. package/dist/generated/audio-video/schemas.d.ts.map +1 -1
  25. package/dist/generated/audio-video/schemas.js +552 -466
  26. package/dist/generated/audio-video/schemas.js.map +1 -1
  27. package/dist/generated/creative-production/capabilities.d.ts +10 -10
  28. package/dist/generated/creative-production/capabilities.d.ts.map +1 -1
  29. package/dist/generated/creative-production/capabilities.js +64 -77
  30. package/dist/generated/creative-production/capabilities.js.map +1 -1
  31. package/dist/generated/creative-production/operations.d.ts +13 -0
  32. package/dist/generated/creative-production/operations.d.ts.map +1 -0
  33. package/dist/generated/creative-production/operations.js +48 -0
  34. package/dist/generated/creative-production/operations.js.map +1 -0
  35. package/dist/generated/creative-production/schemas.d.ts +65 -21
  36. package/dist/generated/creative-production/schemas.d.ts.map +1 -1
  37. package/dist/generated/creative-production/schemas.js +149 -128
  38. package/dist/generated/creative-production/schemas.js.map +1 -1
  39. package/dist/generated/express/capabilities.d.ts +11 -10
  40. package/dist/generated/express/capabilities.d.ts.map +1 -1
  41. package/dist/generated/express/capabilities.js +65 -64
  42. package/dist/generated/express/capabilities.js.map +1 -1
  43. package/dist/generated/express/operations.d.ts +13 -0
  44. package/dist/generated/express/operations.d.ts.map +1 -0
  45. package/dist/generated/express/operations.js +58 -0
  46. package/dist/generated/express/operations.js.map +1 -0
  47. package/dist/generated/express/schemas.d.ts +100 -34
  48. package/dist/generated/express/schemas.d.ts.map +1 -1
  49. package/dist/generated/express/schemas.js +165 -134
  50. package/dist/generated/express/schemas.js.map +1 -1
  51. package/dist/generated/firefly/capabilities.d.ts +18 -28
  52. package/dist/generated/firefly/capabilities.d.ts.map +1 -1
  53. package/dist/generated/firefly/capabilities.js +289 -172
  54. package/dist/generated/firefly/capabilities.js.map +1 -1
  55. package/dist/generated/firefly/operations.d.ts +13 -0
  56. package/dist/generated/firefly/operations.d.ts.map +1 -0
  57. package/dist/generated/firefly/operations.js +145 -0
  58. package/dist/generated/firefly/operations.js.map +1 -0
  59. package/dist/generated/firefly/schemas.d.ts +250 -105
  60. package/dist/generated/firefly/schemas.d.ts.map +1 -1
  61. package/dist/generated/firefly/schemas.js +462 -451
  62. package/dist/generated/firefly/schemas.js.map +1 -1
  63. package/dist/generated/illustrator/capabilities.d.ts +11 -16
  64. package/dist/generated/illustrator/capabilities.d.ts.map +1 -1
  65. package/dist/generated/illustrator/capabilities.js +99 -100
  66. package/dist/generated/illustrator/capabilities.js.map +1 -1
  67. package/dist/generated/illustrator/operations.d.ts +13 -0
  68. package/dist/generated/illustrator/operations.d.ts.map +1 -0
  69. package/dist/generated/illustrator/operations.js +65 -0
  70. package/dist/generated/illustrator/operations.js.map +1 -0
  71. package/dist/generated/illustrator/schemas.d.ts +85 -54
  72. package/dist/generated/illustrator/schemas.d.ts.map +1 -1
  73. package/dist/generated/illustrator/schemas.js +187 -233
  74. package/dist/generated/illustrator/schemas.js.map +1 -1
  75. package/dist/generated/indesign/capabilities.d.ts +19 -32
  76. package/dist/generated/indesign/capabilities.d.ts.map +1 -1
  77. package/dist/generated/indesign/capabilities.js +394 -197
  78. package/dist/generated/indesign/capabilities.js.map +1 -1
  79. package/dist/generated/indesign/operations.d.ts +13 -0
  80. package/dist/generated/indesign/operations.d.ts.map +1 -0
  81. package/dist/generated/indesign/operations.js +133 -0
  82. package/dist/generated/indesign/operations.js.map +1 -0
  83. package/dist/generated/indesign/schemas.d.ts +75 -24
  84. package/dist/generated/indesign/schemas.d.ts.map +1 -1
  85. package/dist/generated/indesign/schemas.js +351 -240
  86. package/dist/generated/indesign/schemas.js.map +1 -1
  87. package/dist/generated/index.d.ts +74 -3
  88. package/dist/generated/index.d.ts.map +1 -1
  89. package/dist/generated/index.js +28 -97
  90. package/dist/generated/index.js.map +1 -1
  91. package/dist/generated/photoshop/capabilities.d.ts +13 -14
  92. package/dist/generated/photoshop/capabilities.d.ts.map +1 -1
  93. package/dist/generated/photoshop/capabilities.js +133 -90
  94. package/dist/generated/photoshop/capabilities.js.map +1 -1
  95. package/dist/generated/photoshop/operations.d.ts +13 -0
  96. package/dist/generated/photoshop/operations.d.ts.map +1 -0
  97. package/dist/generated/photoshop/operations.js +88 -0
  98. package/dist/generated/photoshop/operations.js.map +1 -0
  99. package/dist/generated/photoshop/schemas.d.ts +430 -152
  100. package/dist/generated/photoshop/schemas.d.ts.map +1 -1
  101. package/dist/generated/photoshop/schemas.js +809 -716
  102. package/dist/generated/photoshop/schemas.js.map +1 -1
  103. package/dist/generated/substance3d/capabilities.d.ts +16 -22
  104. package/dist/generated/substance3d/capabilities.d.ts.map +1 -1
  105. package/dist/generated/substance3d/capabilities.js +181 -136
  106. package/dist/generated/substance3d/capabilities.js.map +1 -1
  107. package/dist/generated/substance3d/operations.d.ts +13 -0
  108. package/dist/generated/substance3d/operations.d.ts.map +1 -0
  109. package/dist/generated/substance3d/operations.js +114 -0
  110. package/dist/generated/substance3d/operations.js.map +1 -0
  111. package/dist/generated/substance3d/schemas.d.ts +305 -76
  112. package/dist/generated/substance3d/schemas.d.ts.map +1 -1
  113. package/dist/generated/substance3d/schemas.js +634 -515
  114. package/dist/generated/substance3d/schemas.js.map +1 -1
  115. package/dist/http/async-job.d.ts +24 -14
  116. package/dist/http/async-job.d.ts.map +1 -1
  117. package/dist/http/async-job.js +135 -69
  118. package/dist/http/async-job.js.map +1 -1
  119. package/dist/http/client.d.ts +54 -26
  120. package/dist/http/client.d.ts.map +1 -1
  121. package/dist/http/client.js +136 -53
  122. package/dist/http/client.js.map +1 -1
  123. package/dist/http/request-limit.d.ts +42 -0
  124. package/dist/http/request-limit.d.ts.map +1 -0
  125. package/dist/http/request-limit.js +46 -0
  126. package/dist/http/request-limit.js.map +1 -0
  127. package/dist/index.d.ts +84 -30
  128. package/dist/index.d.ts.map +1 -1
  129. package/dist/index.js +20 -34
  130. package/dist/index.js.map +1 -1
  131. package/dist/runtime/abort.d.ts +17 -0
  132. package/dist/runtime/abort.d.ts.map +1 -0
  133. package/dist/runtime/abort.js +51 -0
  134. package/dist/runtime/abort.js.map +1 -0
  135. package/dist/runtime/assemble.d.ts +99 -0
  136. package/dist/runtime/assemble.d.ts.map +1 -0
  137. package/dist/runtime/assemble.js +159 -0
  138. package/dist/runtime/assemble.js.map +1 -0
  139. package/dist/runtime/invoke-capability.d.ts +46 -0
  140. package/dist/runtime/invoke-capability.d.ts.map +1 -0
  141. package/dist/runtime/invoke-capability.js +68 -0
  142. package/dist/runtime/invoke-capability.js.map +1 -0
  143. package/dist/runtime/product-shape.d.ts +49 -0
  144. package/dist/runtime/product-shape.d.ts.map +1 -0
  145. package/dist/runtime/product-shape.js +309 -0
  146. package/dist/runtime/product-shape.js.map +1 -0
  147. package/dist/schemas.d.ts +13 -0
  148. package/dist/schemas.d.ts.map +1 -0
  149. package/dist/schemas.js +7 -0
  150. package/dist/schemas.js.map +1 -0
  151. package/ecp.manifest.json +840 -0
  152. package/ecp.schema.json +23498 -0
  153. package/package.json +28 -19
  154. package/dist/generated/audio-video/capabilities.browser.d.ts +0 -37
  155. package/dist/generated/audio-video/capabilities.browser.d.ts.map +0 -1
  156. package/dist/generated/audio-video/capabilities.browser.js +0 -44
  157. package/dist/generated/audio-video/capabilities.browser.js.map +0 -1
  158. package/dist/generated/audio-video/index.d.ts +0 -3
  159. package/dist/generated/audio-video/index.d.ts.map +0 -1
  160. package/dist/generated/audio-video/index.js +0 -3
  161. package/dist/generated/audio-video/index.js.map +0 -1
  162. package/dist/generated/audio-video/shells.d.ts +0 -39
  163. package/dist/generated/audio-video/shells.d.ts.map +0 -1
  164. package/dist/generated/audio-video/shells.js +0 -290
  165. package/dist/generated/audio-video/shells.js.map +0 -1
  166. package/dist/generated/creative-production/capabilities.browser.d.ts +0 -11
  167. package/dist/generated/creative-production/capabilities.browser.d.ts.map +0 -1
  168. package/dist/generated/creative-production/capabilities.browser.js +0 -18
  169. package/dist/generated/creative-production/capabilities.browser.js.map +0 -1
  170. package/dist/generated/creative-production/index.d.ts +0 -3
  171. package/dist/generated/creative-production/index.d.ts.map +0 -1
  172. package/dist/generated/creative-production/index.js +0 -3
  173. package/dist/generated/creative-production/index.js.map +0 -1
  174. package/dist/generated/creative-production/shells.d.ts +0 -13
  175. package/dist/generated/creative-production/shells.d.ts.map +0 -1
  176. package/dist/generated/creative-production/shells.js +0 -108
  177. package/dist/generated/creative-production/shells.js.map +0 -1
  178. package/dist/generated/express/capabilities.browser.d.ts +0 -11
  179. package/dist/generated/express/capabilities.browser.d.ts.map +0 -1
  180. package/dist/generated/express/capabilities.browser.js +0 -18
  181. package/dist/generated/express/capabilities.browser.js.map +0 -1
  182. package/dist/generated/express/index.d.ts +0 -3
  183. package/dist/generated/express/index.d.ts.map +0 -1
  184. package/dist/generated/express/index.js +0 -3
  185. package/dist/generated/express/index.js.map +0 -1
  186. package/dist/generated/express/shells.d.ts +0 -13
  187. package/dist/generated/express/shells.d.ts.map +0 -1
  188. package/dist/generated/express/shells.js +0 -72
  189. package/dist/generated/express/shells.js.map +0 -1
  190. package/dist/generated/firefly/capabilities.browser.d.ts +0 -29
  191. package/dist/generated/firefly/capabilities.browser.d.ts.map +0 -1
  192. package/dist/generated/firefly/capabilities.browser.js +0 -36
  193. package/dist/generated/firefly/capabilities.browser.js.map +0 -1
  194. package/dist/generated/firefly/index.d.ts +0 -3
  195. package/dist/generated/firefly/index.d.ts.map +0 -1
  196. package/dist/generated/firefly/index.js +0 -3
  197. package/dist/generated/firefly/index.js.map +0 -1
  198. package/dist/generated/firefly/shells.d.ts +0 -31
  199. package/dist/generated/firefly/shells.d.ts.map +0 -1
  200. package/dist/generated/firefly/shells.js +0 -199
  201. package/dist/generated/firefly/shells.js.map +0 -1
  202. package/dist/generated/illustrator/capabilities.browser.d.ts +0 -17
  203. package/dist/generated/illustrator/capabilities.browser.d.ts.map +0 -1
  204. package/dist/generated/illustrator/capabilities.browser.js +0 -24
  205. package/dist/generated/illustrator/capabilities.browser.js.map +0 -1
  206. package/dist/generated/illustrator/index.d.ts +0 -3
  207. package/dist/generated/illustrator/index.d.ts.map +0 -1
  208. package/dist/generated/illustrator/index.js +0 -3
  209. package/dist/generated/illustrator/index.js.map +0 -1
  210. package/dist/generated/illustrator/shells.d.ts +0 -19
  211. package/dist/generated/illustrator/shells.d.ts.map +0 -1
  212. package/dist/generated/illustrator/shells.js +0 -106
  213. package/dist/generated/illustrator/shells.js.map +0 -1
  214. package/dist/generated/indesign/capabilities.browser.d.ts +0 -33
  215. package/dist/generated/indesign/capabilities.browser.d.ts.map +0 -1
  216. package/dist/generated/indesign/capabilities.browser.js +0 -40
  217. package/dist/generated/indesign/capabilities.browser.js.map +0 -1
  218. package/dist/generated/indesign/index.d.ts +0 -3
  219. package/dist/generated/indesign/index.d.ts.map +0 -1
  220. package/dist/generated/indesign/index.js +0 -3
  221. package/dist/generated/indesign/index.js.map +0 -1
  222. package/dist/generated/indesign/shells.d.ts +0 -35
  223. package/dist/generated/indesign/shells.d.ts.map +0 -1
  224. package/dist/generated/indesign/shells.js +0 -208
  225. package/dist/generated/indesign/shells.js.map +0 -1
  226. package/dist/generated/index.browser.d.ts +0 -4
  227. package/dist/generated/index.browser.d.ts.map +0 -1
  228. package/dist/generated/index.browser.js +0 -98
  229. package/dist/generated/index.browser.js.map +0 -1
  230. package/dist/generated/photoshop/capabilities.browser.d.ts +0 -15
  231. package/dist/generated/photoshop/capabilities.browser.d.ts.map +0 -1
  232. package/dist/generated/photoshop/capabilities.browser.js +0 -22
  233. package/dist/generated/photoshop/capabilities.browser.js.map +0 -1
  234. package/dist/generated/photoshop/index.d.ts +0 -3
  235. package/dist/generated/photoshop/index.d.ts.map +0 -1
  236. package/dist/generated/photoshop/index.js +0 -3
  237. package/dist/generated/photoshop/index.js.map +0 -1
  238. package/dist/generated/photoshop/shells.d.ts +0 -17
  239. package/dist/generated/photoshop/shells.d.ts.map +0 -1
  240. package/dist/generated/photoshop/shells.js +0 -92
  241. package/dist/generated/photoshop/shells.js.map +0 -1
  242. package/dist/generated/substance3d/capabilities.browser.d.ts +0 -23
  243. package/dist/generated/substance3d/capabilities.browser.d.ts.map +0 -1
  244. package/dist/generated/substance3d/capabilities.browser.js +0 -30
  245. package/dist/generated/substance3d/capabilities.browser.js.map +0 -1
  246. package/dist/generated/substance3d/index.d.ts +0 -3
  247. package/dist/generated/substance3d/index.d.ts.map +0 -1
  248. package/dist/generated/substance3d/index.js +0 -3
  249. package/dist/generated/substance3d/index.js.map +0 -1
  250. package/dist/generated/substance3d/shells.d.ts +0 -25
  251. package/dist/generated/substance3d/shells.d.ts.map +0 -1
  252. package/dist/generated/substance3d/shells.js +0 -146
  253. package/dist/generated/substance3d/shells.js.map +0 -1
  254. package/dist/index.browser.d.ts +0 -19
  255. package/dist/index.browser.d.ts.map +0 -1
  256. package/dist/index.browser.js +0 -27
  257. package/dist/index.browser.js.map +0 -1
  258. package/dist/runtime/invoke.d.ts +0 -67
  259. package/dist/runtime/invoke.d.ts.map +0 -1
  260. package/dist/runtime/invoke.js +0 -69
  261. package/dist/runtime/invoke.js.map +0 -1
  262. package/dist/runtime/photoshop-manifest.d.ts +0 -40
  263. package/dist/runtime/photoshop-manifest.d.ts.map +0 -1
  264. package/dist/runtime/photoshop-manifest.js +0 -115
  265. package/dist/runtime/photoshop-manifest.js.map +0 -1
  266. package/dist/shared.d.ts +0 -11
  267. package/dist/shared.d.ts.map +0 -1
  268. package/dist/shared.js +0 -39
  269. package/dist/shared.js.map +0 -1
  270. package/openapi/audio-video/audio-video-api.json +0 -8333
  271. package/openapi/audio-video/translate-lipsync-openapi.json +0 -1967
  272. package/openapi/content-tagging/SOURCE.md +0 -10
  273. package/openapi/creative-production/workflow-builder-api.yaml +0 -1002
  274. package/openapi/express/ffs-express-api.json +0 -2262
  275. package/openapi/firefly/firefly-api.json +0 -4964
  276. package/openapi/illustrator/illustrator-api-beta.json +0 -1329
  277. package/openapi/illustrator/illustrator-api.json +0 -2447
  278. package/openapi/indesign/indesignapi.json +0 -2907
  279. package/openapi/overlays/schema-fixes.json +0 -95
  280. package/openapi/photoshop/photoshopv2-api.json +0 -5395
  281. package/openapi/substance3d/openapi.yaml +0 -3583
@@ -1,1329 +0,0 @@
1
- {
2
- "openapi": "3.0.0",
3
- "info": {
4
- "title": "Illustrator API (public beta) - Firefly Services",
5
- "description": "This is the Illustrator API public beta reference documentation for the Custom Scripts endpoints. APIs in this document are subject to change.",
6
- "version": "1.0.0-beta",
7
- "license": {
8
- "name": "Adobe Creative API License",
9
- "url": "https://www.adobe.com/content/dam/cc/en/legal/terms/enterprise/pdfs/PSLT-AdobeCreativeAPI-WW-2024v2.pdf"
10
- }
11
- },
12
- "servers": [
13
- {
14
- "url": "https://illustrator.adobe.io",
15
- "description": "Public beta server"
16
- }
17
- ],
18
- "security": [
19
- {
20
- "AccessToken": [],
21
- "X-Api-Key": []
22
- }
23
- ],
24
- "tags": [
25
- {
26
- "name": "Custom Scripts",
27
- "description": "Submit and execute Custom Scripts for Illustrator automation. These services support comprehensive scripting capabilities for document manipulation and processing."
28
- }
29
- ],
30
- "paths": {
31
- "/run-scripts": {
32
- "post": {
33
- "tags": [
34
- "Custom Scripts"
35
- ],
36
- "operationId": "registerCustomScriptCapability",
37
- "summary": "Submit a Custom Script",
38
- "x-ffs-cxp-ui-group": "customScriptRegisterAndExecute",
39
- "description": "Submits Custom Script bundles for registration. Returns a URL for posting execution requests for the registered script.",
40
- "servers": [
41
- {
42
- "url": "https://illustrator.adobe.io/beta",
43
- "description": "Beta production"
44
- }
45
- ],
46
- "security": [
47
- {
48
- "AccessToken": [],
49
- "X-Api-Key": []
50
- }
51
- ],
52
- "requestBody": {
53
- "required": true,
54
- "description": "The custom script bundle, in `multipart/form-data`.",
55
- "content": {
56
- "multipart/form-data": {
57
- "schema": {
58
- "type": "object",
59
- "description": "The custom script bundle, in ZIP format.",
60
- "required": [
61
- "file"
62
- ],
63
- "properties": {
64
- "file": {
65
- "type": "string",
66
- "format": "binary",
67
- "description": "The custom script bundle, in ZIP format. Required contents: `script.jsx` (ExtendScript with `main()` entry point) and `manifest.json` (capability metadata)."
68
- }
69
- }
70
- }
71
- }
72
- }
73
- },
74
- "responses": {
75
- "202": {
76
- "description": "Accepted",
77
- "headers": {
78
- "Content-Type": {
79
- "description": "The type of content returned (e.g., application/json).",
80
- "schema": {
81
- "type": "string"
82
- }
83
- },
84
- "Content-Length": {
85
- "description": "The length of the response content.",
86
- "schema": {
87
- "type": "integer"
88
- }
89
- },
90
- "Access-Control-Allow-Origin": {
91
- "description": "The Cross Origin Resource Sharing (CORS) header.",
92
- "schema": {
93
- "type": "string"
94
- }
95
- },
96
- "Access-Control-Allow-Methods": {
97
- "description": "This header indicates what HTTP methods are allowed.",
98
- "schema": {
99
- "type": "string"
100
- }
101
- },
102
- "Access-Control-Allow-Headers": {
103
- "description": "This indicates which HTTP headers can be used during the actual request.",
104
- "schema": {
105
- "type": "string"
106
- }
107
- },
108
- "Access-Control-Allow-Credentials": {
109
- "description": "Indicates whether the browser may send credentials with cross-origin requests.",
110
- "schema": {
111
- "type": "string"
112
- }
113
- },
114
- "Access-Control-Max-Age": {
115
- "description": "This indicates how long the results of a preflight request can be cached.",
116
- "schema": {
117
- "type": "integer"
118
- }
119
- }
120
- },
121
- "content": {
122
- "application/json": {
123
- "schema": {
124
- "$ref": "#/components/schemas/CapabilityRegistrationResponse"
125
- },
126
- "example": {
127
- "url": "https://illustrator.adobe.io/beta/v3/<org-id>/<capability-name>",
128
- "capability": "<capability-name>",
129
- "version": "<version>"
130
- }
131
- }
132
- }
133
- },
134
- "400": {
135
- "description": "Bad Request",
136
- "headers": {
137
- "Content-Type": {
138
- "description": "The type of content returned (e.g., application/json).",
139
- "schema": {
140
- "type": "string"
141
- }
142
- },
143
- "Content-Length": {
144
- "description": "The length of the response content.",
145
- "schema": {
146
- "type": "integer"
147
- }
148
- },
149
- "Access-Control-Allow-Origin": {
150
- "description": "The Cross Origin Resource Sharing (CORS) header.",
151
- "schema": {
152
- "type": "string"
153
- }
154
- },
155
- "Access-Control-Allow-Methods": {
156
- "description": "This header indicates what HTTP methods are allowed.",
157
- "schema": {
158
- "type": "string"
159
- }
160
- },
161
- "Access-Control-Allow-Headers": {
162
- "description": "This indicates which HTTP headers can be used during the actual request.",
163
- "schema": {
164
- "type": "string"
165
- }
166
- },
167
- "Access-Control-Allow-Credentials": {
168
- "description": "Indicates whether the browser may send credentials with cross-origin requests.",
169
- "schema": {
170
- "type": "string"
171
- }
172
- },
173
- "Access-Control-Max-Age": {
174
- "description": "This indicates how long the results of a preflight request can be cached.",
175
- "schema": {
176
- "type": "integer"
177
- }
178
- }
179
- },
180
- "content": {
181
- "application/json": {
182
- "schema": {
183
- "$ref": "#/components/schemas/CustomScriptApiError"
184
- }
185
- }
186
- }
187
- },
188
- "401": {
189
- "description": "Unauthorized",
190
- "headers": {
191
- "Content-Type": {
192
- "description": "The type of content returned (e.g., application/json).",
193
- "schema": {
194
- "type": "string"
195
- }
196
- },
197
- "Content-Length": {
198
- "description": "The length of the response content.",
199
- "schema": {
200
- "type": "integer"
201
- }
202
- },
203
- "Access-Control-Allow-Origin": {
204
- "description": "The Cross Origin Resource Sharing (CORS) header.",
205
- "schema": {
206
- "type": "string"
207
- }
208
- },
209
- "Access-Control-Allow-Methods": {
210
- "description": "This indicates what HTTP methods are allowed.",
211
- "schema": {
212
- "type": "string"
213
- }
214
- },
215
- "Access-Control-Allow-Headers": {
216
- "description": "This indicates which HTTP headers can be used during the actual request.",
217
- "schema": {
218
- "type": "string"
219
- }
220
- },
221
- "Access-Control-Allow-Credentials": {
222
- "description": "Indicates whether the browser may send credentials with cross-origin requests.",
223
- "schema": {
224
- "type": "string"
225
- }
226
- },
227
- "Access-Control-Max-Age": {
228
- "description": "This indicates how long the results of a preflight request can be cached.",
229
- "schema": {
230
- "type": "integer"
231
- }
232
- }
233
- },
234
- "content": {
235
- "application/json": {
236
- "schema": {
237
- "$ref": "#/components/schemas/CustomScriptApiError"
238
- }
239
- }
240
- }
241
- },
242
- "403": {
243
- "description": "Forbidden",
244
- "headers": {
245
- "Content-Type": {
246
- "description": "The type of content returned (e.g., application/json).",
247
- "schema": {
248
- "type": "string"
249
- }
250
- },
251
- "Content-Length": {
252
- "description": "The length of the response content.",
253
- "schema": {
254
- "type": "integer"
255
- }
256
- },
257
- "Access-Control-Allow-Origin": {
258
- "description": "The Cross Origin Resource Sharing (CORS) header.",
259
- "schema": {
260
- "type": "string"
261
- }
262
- },
263
- "Access-Control-Allow-Methods": {
264
- "description": "This header indicates what HTTP methods are allowed.",
265
- "schema": {
266
- "type": "string"
267
- }
268
- },
269
- "Access-Control-Allow-Headers": {
270
- "description": "This indicates which HTTP headers can be used during the actual request.",
271
- "schema": {
272
- "type": "string"
273
- }
274
- },
275
- "Access-Control-Allow-Credentials": {
276
- "description": "Indicates whether the browser may send credentials with cross-origin requests.",
277
- "schema": {
278
- "type": "string"
279
- }
280
- },
281
- "Access-Control-Max-Age": {
282
- "description": "This indicates how long the results of a preflight request can be cached.",
283
- "schema": {
284
- "type": "integer"
285
- }
286
- }
287
- },
288
- "content": {
289
- "application/json": {
290
- "schema": {
291
- "$ref": "#/components/schemas/CustomScriptApiError"
292
- }
293
- }
294
- }
295
- },
296
- "404": {
297
- "description": "Requested Resource Was Not Found",
298
- "headers": {
299
- "Content-Type": {
300
- "description": "The type of content returned (e.g., application/json).",
301
- "schema": {
302
- "type": "string"
303
- }
304
- },
305
- "Content-Length": {
306
- "description": "The length of the response content.",
307
- "schema": {
308
- "type": "integer"
309
- }
310
- },
311
- "Access-Control-Allow-Origin": {
312
- "description": "The Cross Origin Resource Sharing (CORS) header.",
313
- "schema": {
314
- "type": "string"
315
- }
316
- },
317
- "Access-Control-Allow-Methods": {
318
- "description": "This header indicates what HTTP methods are allowed.",
319
- "schema": {
320
- "type": "string"
321
- }
322
- },
323
- "Access-Control-Allow-Headers": {
324
- "description": "This indicates which HTTP headers can be used during the actual request.",
325
- "schema": {
326
- "type": "string"
327
- }
328
- },
329
- "Access-Control-Allow-Credentials": {
330
- "description": "Indicates whether the browser may send credentials with cross-origin requests.",
331
- "schema": {
332
- "type": "string"
333
- }
334
- },
335
- "Access-Control-Max-Age": {
336
- "description": "This indicates how long the results of a preflight request can be cached.",
337
- "schema": {
338
- "type": "integer"
339
- }
340
- }
341
- },
342
- "content": {
343
- "application/json": {
344
- "schema": {
345
- "$ref": "#/components/schemas/CustomScriptApiError"
346
- }
347
- }
348
- }
349
- },
350
- "500": {
351
- "description": "Internal Server Error",
352
- "headers": {
353
- "Content-Type": {
354
- "description": "The type of content returned (e.g., application/json).",
355
- "schema": {
356
- "type": "string"
357
- }
358
- },
359
- "Content-Length": {
360
- "description": "The length of the response content.",
361
- "schema": {
362
- "type": "integer"
363
- }
364
- },
365
- "Access-Control-Allow-Origin": {
366
- "description": "The Cross Origin Resource Sharing (CORS) header.",
367
- "schema": {
368
- "type": "string"
369
- }
370
- },
371
- "Access-Control-Allow-Methods": {
372
- "description": "This header indicates what HTTP methods are allowed.",
373
- "schema": {
374
- "type": "string"
375
- }
376
- },
377
- "Access-Control-Allow-Headers": {
378
- "description": "This indicates which HTTP headers can be used during the actual request.",
379
- "schema": {
380
- "type": "string"
381
- }
382
- },
383
- "Access-Control-Allow-Credentials": {
384
- "description": "Indicates whether the browser may send credentials with cross-origin requests.",
385
- "schema": {
386
- "type": "string"
387
- }
388
- },
389
- "Access-Control-Max-Age": {
390
- "description": "This indicates how long the results of a preflight request can be cached.",
391
- "schema": {
392
- "type": "integer"
393
- }
394
- }
395
- },
396
- "content": {
397
- "application/json": {
398
- "schema": {
399
- "$ref": "#/components/schemas/CustomScriptApiError"
400
- }
401
- }
402
- }
403
- }
404
- }
405
- }
406
- },
407
- "/v3/{orgId}/{capabilityName}": {
408
- "post": {
409
- "tags": [
410
- "Custom Scripts"
411
- ],
412
- "operationId": "executeCustomScriptCapability",
413
- "summary": "Submit a custom script execution request",
414
- "x-ffs-cxp-ui-group": "customScriptRegisterAndExecute",
415
- "description": "Submits execution requests for custom scripts. Defines input assets and parameters that the custom script will use during execution.",
416
- "x-ffs-async-job": true,
417
- "x-ffs-job-status-fetcher": "customScriptsJobStatus",
418
- "servers": [
419
- {
420
- "url": "https://illustrator.adobe.io/beta",
421
- "description": "Beta production"
422
- }
423
- ],
424
- "security": [
425
- {
426
- "AccessToken": [],
427
- "X-Api-Key": []
428
- }
429
- ],
430
- "parameters": [
431
- {
432
- "name": "orgId",
433
- "in": "path",
434
- "required": true,
435
- "description": "Path segment for the org or scope, as in the `url` returned in the custom script **Submit a Custom Script** response (same role as a script scope identifier in other Custom Scripts products).",
436
- "schema": {
437
- "type": "string"
438
- }
439
- },
440
- {
441
- "name": "capabilityName",
442
- "in": "path",
443
- "required": true,
444
- "description": "The name of the custom script, specified in the custom script `manifest.json` and registration response (same idea as a script name in custom script manifest-based APIs).",
445
- "schema": {
446
- "type": "string"
447
- }
448
- }
449
- ],
450
- "requestBody": {
451
- "required": true,
452
- "description": "This job request object specifies parameters for the execution of the custom script.",
453
- "content": {
454
- "application/json": {
455
- "schema": {
456
- "$ref": "#/components/schemas/CustomScriptExecuteRequest"
457
- },
458
- "example": {
459
- "assets": [
460
- {
461
- "source": {
462
- "url": "<presigned-url>"
463
- },
464
- "destination": "template.ai"
465
- }
466
- ],
467
- "params": {
468
- "targetDocument": "template.ai",
469
- "outputFolderPath": "<output-folder>"
470
- }
471
- }
472
- }
473
- }
474
- },
475
- "responses": {
476
- "202": {
477
- "description": "Accepted",
478
- "headers": {
479
- "link": {
480
- "description": "The status URL for a retry.",
481
- "schema": {
482
- "type": "string"
483
- }
484
- },
485
- "retry-after": {
486
- "description": "The number of seconds until the user should try again.",
487
- "schema": {
488
- "type": "integer"
489
- }
490
- },
491
- "Content-Type": {
492
- "description": "The type of content that is returned (e.g., application/json).",
493
- "schema": {
494
- "type": "string"
495
- }
496
- },
497
- "Content-Length": {
498
- "description": "The length of the response content.",
499
- "schema": {
500
- "type": "integer"
501
- }
502
- },
503
- "Access-Control-Allow-Origin": {
504
- "description": "The Cross Origin Resource Sharing (CORS) header.",
505
- "schema": {
506
- "type": "string"
507
- }
508
- },
509
- "Access-Control-Allow-Methods": {
510
- "description": "This indicates what HTTP methods are allowed.",
511
- "schema": {
512
- "type": "string"
513
- }
514
- },
515
- "Access-Control-Allow-Headers": {
516
- "description": "This indicates which HTTP headers can be used during the actual request.",
517
- "schema": {
518
- "type": "string"
519
- }
520
- },
521
- "Access-Control-Allow-Credentials": {
522
- "description": "Indicates whether the browser may send credentials with cross-origin requests.",
523
- "schema": {
524
- "type": "string"
525
- }
526
- },
527
- "Access-Control-Max-Age": {
528
- "description": "This indicates how long the results of a preflight request can be cached.",
529
- "schema": {
530
- "type": "integer"
531
- }
532
- }
533
- },
534
- "content": {
535
- "application/json": {
536
- "schema": {
537
- "$ref": "#/components/schemas/CustomScriptExecuteResponse"
538
- },
539
- "example": {
540
- "jobId": "<jobId>",
541
- "statusUrl": "https://illustrator.adobe.io/beta/v3/status/<jobId>"
542
- }
543
- }
544
- }
545
- },
546
- "400": {
547
- "description": "Bad Request",
548
- "headers": {
549
- "Content-Type": {
550
- "description": "The type of content returned (e.g., application/json).",
551
- "schema": {
552
- "type": "string"
553
- }
554
- },
555
- "Content-Length": {
556
- "description": "The length of the response content.",
557
- "schema": {
558
- "type": "integer"
559
- }
560
- },
561
- "Access-Control-Allow-Origin": {
562
- "description": "The Cross Origin Resource Sharing (CORS) header.",
563
- "schema": {
564
- "type": "string"
565
- }
566
- },
567
- "Access-Control-Allow-Methods": {
568
- "description": "This header indicates what HTTP methods are allowed.",
569
- "schema": {
570
- "type": "string"
571
- }
572
- },
573
- "Access-Control-Allow-Headers": {
574
- "description": "This indicates which HTTP headers can be used during the actual request.",
575
- "schema": {
576
- "type": "string"
577
- }
578
- },
579
- "Access-Control-Allow-Credentials": {
580
- "description": "Indicates whether the browser may send credentials with cross-origin requests.",
581
- "schema": {
582
- "type": "string"
583
- }
584
- },
585
- "Access-Control-Max-Age": {
586
- "description": "This indicates how long the results of a preflight request can be cached.",
587
- "schema": {
588
- "type": "integer"
589
- }
590
- }
591
- },
592
- "content": {
593
- "application/json": {
594
- "schema": {
595
- "$ref": "#/components/schemas/CustomScriptApiError"
596
- }
597
- }
598
- }
599
- },
600
- "401": {
601
- "description": "Unauthorized",
602
- "headers": {
603
- "Content-Type": {
604
- "description": "The type of content returned (e.g., application/json).",
605
- "schema": {
606
- "type": "string"
607
- }
608
- },
609
- "Content-Length": {
610
- "description": "The length of the response content.",
611
- "schema": {
612
- "type": "integer"
613
- }
614
- },
615
- "Access-Control-Allow-Origin": {
616
- "description": "The Cross Origin Resource Sharing (CORS) header.",
617
- "schema": {
618
- "type": "string"
619
- }
620
- },
621
- "Access-Control-Allow-Methods": {
622
- "description": "This indicates what HTTP methods are allowed.",
623
- "schema": {
624
- "type": "string"
625
- }
626
- },
627
- "Access-Control-Allow-Headers": {
628
- "description": "This indicates which HTTP headers can be used during the actual request.",
629
- "schema": {
630
- "type": "string"
631
- }
632
- },
633
- "Access-Control-Allow-Credentials": {
634
- "description": "Indicates whether the browser may send credentials with cross-origin requests.",
635
- "schema": {
636
- "type": "string"
637
- }
638
- },
639
- "Access-Control-Max-Age": {
640
- "description": "This indicates how long the results of a preflight request can be cached.",
641
- "schema": {
642
- "type": "integer"
643
- }
644
- }
645
- },
646
- "content": {
647
- "application/json": {
648
- "schema": {
649
- "$ref": "#/components/schemas/CustomScriptApiError"
650
- }
651
- }
652
- }
653
- },
654
- "403": {
655
- "description": "Forbidden",
656
- "headers": {
657
- "Content-Type": {
658
- "description": "The type of content returned (e.g., application/json).",
659
- "schema": {
660
- "type": "string"
661
- }
662
- },
663
- "Content-Length": {
664
- "description": "The length of the response content.",
665
- "schema": {
666
- "type": "integer"
667
- }
668
- },
669
- "Access-Control-Allow-Origin": {
670
- "description": "The Cross Origin Resource Sharing (CORS) header.",
671
- "schema": {
672
- "type": "string"
673
- }
674
- },
675
- "Access-Control-Allow-Methods": {
676
- "description": "This header indicates what HTTP methods are allowed.",
677
- "schema": {
678
- "type": "string"
679
- }
680
- },
681
- "Access-Control-Allow-Headers": {
682
- "description": "This indicates which HTTP headers can be used during the actual request.",
683
- "schema": {
684
- "type": "string"
685
- }
686
- },
687
- "Access-Control-Allow-Credentials": {
688
- "description": "Indicates whether the browser may send credentials with cross-origin requests.",
689
- "schema": {
690
- "type": "string"
691
- }
692
- },
693
- "Access-Control-Max-Age": {
694
- "description": "This indicates how long the results of a preflight request can be cached.",
695
- "schema": {
696
- "type": "integer"
697
- }
698
- }
699
- },
700
- "content": {
701
- "application/json": {
702
- "schema": {
703
- "$ref": "#/components/schemas/CustomScriptApiError"
704
- }
705
- }
706
- }
707
- },
708
- "404": {
709
- "description": "Requested Resource Was Not Found",
710
- "headers": {
711
- "Content-Type": {
712
- "description": "The type of content returned (e.g., application/json).",
713
- "schema": {
714
- "type": "string"
715
- }
716
- },
717
- "Content-Length": {
718
- "description": "The length of the response content.",
719
- "schema": {
720
- "type": "integer"
721
- }
722
- },
723
- "Access-Control-Allow-Origin": {
724
- "description": "The Cross Origin Resource Sharing (CORS) header.",
725
- "schema": {
726
- "type": "string"
727
- }
728
- },
729
- "Access-Control-Allow-Methods": {
730
- "description": "This header indicates what HTTP methods are allowed.",
731
- "schema": {
732
- "type": "string"
733
- }
734
- },
735
- "Access-Control-Allow-Headers": {
736
- "description": "This indicates which HTTP headers can be used during the actual request.",
737
- "schema": {
738
- "type": "string"
739
- }
740
- },
741
- "Access-Control-Allow-Credentials": {
742
- "description": "Indicates whether the browser may send credentials with cross-origin requests.",
743
- "schema": {
744
- "type": "string"
745
- }
746
- },
747
- "Access-Control-Max-Age": {
748
- "description": "This indicates how long the results of a preflight request can be cached.",
749
- "schema": {
750
- "type": "integer"
751
- }
752
- }
753
- },
754
- "content": {
755
- "application/json": {
756
- "schema": {
757
- "$ref": "#/components/schemas/CustomScriptApiError"
758
- }
759
- }
760
- }
761
- },
762
- "500": {
763
- "description": "Internal Server Error",
764
- "headers": {
765
- "Content-Type": {
766
- "description": "The type of content returned (e.g., application/json).",
767
- "schema": {
768
- "type": "string"
769
- }
770
- },
771
- "Content-Length": {
772
- "description": "The length of the response content.",
773
- "schema": {
774
- "type": "integer"
775
- }
776
- },
777
- "Access-Control-Allow-Origin": {
778
- "description": "The Cross Origin Resource Sharing (CORS) header.",
779
- "schema": {
780
- "type": "string"
781
- }
782
- },
783
- "Access-Control-Allow-Methods": {
784
- "description": "This header indicates what HTTP methods are allowed.",
785
- "schema": {
786
- "type": "string"
787
- }
788
- },
789
- "Access-Control-Allow-Headers": {
790
- "description": "This indicates which HTTP headers can be used during the actual request.",
791
- "schema": {
792
- "type": "string"
793
- }
794
- },
795
- "Access-Control-Allow-Credentials": {
796
- "description": "Indicates whether the browser may send credentials with cross-origin requests.",
797
- "schema": {
798
- "type": "string"
799
- }
800
- },
801
- "Access-Control-Max-Age": {
802
- "description": "This indicates how long the results of a preflight request can be cached.",
803
- "schema": {
804
- "type": "integer"
805
- }
806
- }
807
- },
808
- "content": {
809
- "application/json": {
810
- "schema": {
811
- "$ref": "#/components/schemas/CustomScriptApiError"
812
- }
813
- }
814
- }
815
- }
816
- }
817
- }
818
- },
819
- "/v3/status/{jobId}": {
820
- "get": {
821
- "tags": [
822
- "Custom Scripts"
823
- ],
824
- "operationId": "customScriptsJobStatus",
825
- "summary": "Retrieve job status",
826
- "description": "Poll execution status for a Custom Scripts job. Use this after calling custom script execute. When the job succeeds, each entry in `outputs` includes a presigned URL to download an output file.",
827
- "x-ffs-status-fetcher": true,
828
- "x-ffs-job-name": "CxpCustomScriptAsyncJob",
829
- "servers": [
830
- {
831
- "url": "https://illustrator.adobe.io/beta",
832
- "description": "Beta production"
833
- }
834
- ],
835
- "security": [
836
- {
837
- "AccessToken": [],
838
- "X-Api-Key": []
839
- }
840
- ],
841
- "parameters": [
842
- {
843
- "name": "jobId",
844
- "in": "path",
845
- "required": true,
846
- "description": "Job ID returned from execute capability.",
847
- "schema": {
848
- "type": "string",
849
- "example": "ee45451e-3a84-4a81-aa21-7f00aa3302a4"
850
- }
851
- }
852
- ],
853
- "responses": {
854
- "200": {
855
- "description": "Success",
856
- "headers": {
857
- "Content-Type": {
858
- "description": "Media type of the response.",
859
- "schema": {
860
- "type": "string",
861
- "example": "application/json"
862
- }
863
- },
864
- "x-request-id": {
865
- "description": "Unique identifier for the request.",
866
- "schema": {
867
- "type": "string"
868
- }
869
- },
870
- "x-cxp-version": {
871
- "description": "Platform version.",
872
- "schema": {
873
- "type": "string"
874
- }
875
- },
876
- "x-cxp-environment": {
877
- "description": "Deployment environment.",
878
- "schema": {
879
- "type": "string"
880
- }
881
- }
882
- },
883
- "content": {
884
- "application/json": {
885
- "schema": {
886
- "oneOf": [
887
- {
888
- "$ref": "#/components/schemas/CustomScriptJobSucceededResponse"
889
- },
890
- {
891
- "$ref": "#/components/schemas/CustomScriptJobRunningResponse"
892
- },
893
- {
894
- "$ref": "#/components/schemas/CustomScriptJobFailedResponse"
895
- }
896
- ]
897
- },
898
- "examples": {
899
- "succeeded": {
900
- "summary": "Execution Success",
901
- "value": {
902
- "jobId": "<jobId>",
903
- "timestamp": "<date-time>",
904
- "status": "succeeded",
905
- "data": {
906
- "conversionDetails": {
907
- "inputFile": "<input-illustrator-file>",
908
- "outputFolderPath": "<output-folder>",
909
- "success": true
910
- }
911
- },
912
- "outputs": [
913
- {
914
- "destination": {
915
- "url": "<presigned-url>"
916
- },
917
- "source": "<directory-path>"
918
- }
919
- ]
920
- }
921
- },
922
- "running": {
923
- "summary": "Execution Running",
924
- "value": {
925
- "jobId": "<jobId>",
926
- "timestamp": "<date-time>",
927
- "status": "running"
928
- }
929
- },
930
- "failed": {
931
- "summary": "Execution Failed",
932
- "value": {
933
- "jobId": "<jobId>",
934
- "timestamp": "<date-time>",
935
- "status": "failed",
936
- "errors": [
937
- {
938
- "message": "<error-message>"
939
- }
940
- ]
941
- }
942
- }
943
- }
944
- }
945
- }
946
- },
947
- "400": {
948
- "description": "Bad Request",
949
- "content": {
950
- "application/json": {
951
- "schema": {
952
- "$ref": "#/components/schemas/CustomScriptApiError"
953
- }
954
- }
955
- }
956
- },
957
- "401": {
958
- "description": "Unauthorized",
959
- "content": {
960
- "application/json": {
961
- "schema": {
962
- "$ref": "#/components/schemas/CustomScriptApiError"
963
- }
964
- }
965
- }
966
- },
967
- "403": {
968
- "description": "Forbidden",
969
- "content": {
970
- "application/json": {
971
- "schema": {
972
- "$ref": "#/components/schemas/CustomScriptApiError"
973
- }
974
- }
975
- }
976
- },
977
- "404": {
978
- "description": "Requested Resource Was Not Found",
979
- "content": {
980
- "application/json": {
981
- "schema": {
982
- "$ref": "#/components/schemas/CustomScriptJobNotFoundResponse"
983
- },
984
- "example": {
985
- "message": "JobId ee45451e-3a84-4a81-aa21-7f00aa3302a4 not found",
986
- "errorCode": "not_found"
987
- }
988
- }
989
- }
990
- },
991
- "500": {
992
- "description": "Internal Server Error",
993
- "content": {
994
- "application/json": {
995
- "schema": {
996
- "$ref": "#/components/schemas/CustomScriptApiError"
997
- }
998
- }
999
- }
1000
- }
1001
- }
1002
- }
1003
- }
1004
- },
1005
- "components": {
1006
- "securitySchemes": {
1007
- "AccessToken": {
1008
- "type": "http",
1009
- "scheme": "bearer",
1010
- "description": "The Adobe-generated access token, S2S format."
1011
- },
1012
- "X-Api-Key": {
1013
- "type": "apiKey",
1014
- "name": "x-api-key",
1015
- "in": "header",
1016
- "description": "The client ID for authentication."
1017
- }
1018
- },
1019
- "schemas": {
1020
- "CapabilityRegistrationResponse": {
1021
- "type": "object",
1022
- "description": "Response after a successful custom script submit. The `url` is the base URL to use for **Submit a custom script execution request** (append path segments or use it as the execute endpoint, depending on the value returned).",
1023
- "properties": {
1024
- "url": {
1025
- "type": "string",
1026
- "description": "Base URL for posting custom script execution requests.",
1027
- "example": "https://illustrator.adobe.io/beta/v3/<org-id>/<capability-name>"
1028
- },
1029
- "capability": {
1030
- "type": "string",
1031
- "description": "Registered custom script or capability name (from `manifest.json`).",
1032
- "example": "string"
1033
- },
1034
- "version": {
1035
- "type": "string",
1036
- "description": "Registered capability version string.",
1037
- "example": "string"
1038
- }
1039
- },
1040
- "required": [
1041
- "url",
1042
- "capability",
1043
- "version"
1044
- ]
1045
- },
1046
- "CustomScriptExecuteRequest": {
1047
- "type": "object",
1048
- "description": "This job request object specifies parameters for the execution of the custom script.",
1049
- "properties": {
1050
- "assets": {
1051
- "type": "array",
1052
- "description": "Array of **Input assets**. Information about the assets, which will be used to process the job (for example AI documents, font archives, packaged assets, and so on).",
1053
- "items": {
1054
- "type": "object",
1055
- "description": "Information about an input asset the job will use (file reference and local destination name in the job workspace).",
1056
- "properties": {
1057
- "source": {
1058
- "type": "object",
1059
- "description": "Presigned URL for the asset.",
1060
- "properties": {
1061
- "url": {
1062
- "type": "string",
1063
- "description": "Presigned URL pointing to the asset.",
1064
- "example": "<presigned-url>"
1065
- }
1066
- },
1067
- "required": [
1068
- "url"
1069
- ]
1070
- },
1071
- "destination": {
1072
- "type": "string",
1073
- "description": "Local filename for the asset in the job workspace (referenced by `targetDocument` and other params). Path relative to the job workspace. Cannot contain `..`, a leading `/`, or `./`. Must be a valid filename."
1074
- }
1075
- },
1076
- "required": [
1077
- "source",
1078
- "destination"
1079
- ]
1080
- }
1081
- },
1082
- "params": {
1083
- "type": "object",
1084
- "properties": {
1085
- "targetDocument": {
1086
- "type": "string",
1087
- "description": "Filename of the Illustrator document to process."
1088
- },
1089
- "outputFolderPath": {
1090
- "type": "string",
1091
- "description": "Output folder path for generated files."
1092
- },
1093
- "zip": {
1094
- "type": "string",
1095
- "description": "Optional. Destination filename of a zipped asset when inputs are packaged as a ZIP."
1096
- },
1097
- "fontFolderPath": {
1098
- "type": "string",
1099
- "description": "Optional. Relative path to a font folder when required by the script. Path relative to the job workspace. Cannot contain `..`, a leading `/`, or `./`. Must be a valid filename. To use this parameter, the `zip` parameter must also be provided."
1100
- }
1101
- },
1102
- "required": [
1103
- "targetDocument",
1104
- "outputFolderPath"
1105
- ]
1106
- }
1107
- },
1108
- "required": [
1109
- "assets"
1110
- ]
1111
- },
1112
- "CustomScriptExecuteResponse": {
1113
- "type": "object",
1114
- "description": "Returned when a Custom Scripts execution request is accepted (HTTP 202).",
1115
- "properties": {
1116
- "jobId": {
1117
- "type": "string",
1118
- "description": "Job identifier. Use with **Retrieve job status** on `GET /v3/status/{jobId}` for Custom Scripts jobs.",
1119
- "example": "string"
1120
- },
1121
- "statusUrl": {
1122
- "type": "string",
1123
- "description": "URL to poll for job status.",
1124
- "example": "string"
1125
- }
1126
- },
1127
- "required": [
1128
- "jobId",
1129
- "statusUrl"
1130
- ]
1131
- },
1132
- "CustomScriptJobConversionDetails": {
1133
- "type": "object",
1134
- "description": "Details of the conversion performed during execution.",
1135
- "properties": {
1136
- "inputFile": {
1137
- "type": "string",
1138
- "description": "Name of the input Illustrator file.",
1139
- "example": "<input-illustrator-file>"
1140
- },
1141
- "outputFolderPath": {
1142
- "type": "string",
1143
- "description": "Name of the output folder.",
1144
- "example": "<output-folder>"
1145
- },
1146
- "success": {
1147
- "type": "boolean",
1148
- "description": "Whether conversion succeeded.",
1149
- "example": true
1150
- }
1151
- }
1152
- },
1153
- "CustomScriptOutputItem": {
1154
- "type": "object",
1155
- "properties": {
1156
- "destination": {
1157
- "type": "object",
1158
- "description": "Presigned URL to download the output file.",
1159
- "properties": {
1160
- "url": {
1161
- "type": "string",
1162
- "description": "Presigned download URL.",
1163
- "example": "<presigned-url>"
1164
- }
1165
- },
1166
- "required": [
1167
- "url"
1168
- ]
1169
- },
1170
- "source": {
1171
- "type": "string",
1172
- "description": "Relative path of the output file within the output folder.",
1173
- "example": "<directory-path>"
1174
- }
1175
- },
1176
- "required": [
1177
- "destination",
1178
- "source"
1179
- ]
1180
- },
1181
- "CustomScriptJobSucceededResponse": {
1182
- "type": "object",
1183
- "title": "Execution Success",
1184
- "description": "Returned when the Custom Scripts job completes successfully.",
1185
- "properties": {
1186
- "jobId": {
1187
- "type": "string",
1188
- "description": "The job ID.",
1189
- "example": "<jobId>"
1190
- },
1191
- "timestamp": {
1192
- "type": "string",
1193
- "format": "date-time",
1194
- "description": "ISO 8601 timestamp of when the status was recorded.",
1195
- "example": "<date-time>"
1196
- },
1197
- "status": {
1198
- "type": "string",
1199
- "enum": [
1200
- "succeeded"
1201
- ]
1202
- },
1203
- "data": {
1204
- "type": "object",
1205
- "properties": {
1206
- "conversionDetails": {
1207
- "$ref": "#/components/schemas/CustomScriptJobConversionDetails"
1208
- }
1209
- }
1210
- },
1211
- "outputs": {
1212
- "type": "array",
1213
- "description": "Presigned download URLs for each output file.",
1214
- "items": {
1215
- "$ref": "#/components/schemas/CustomScriptOutputItem"
1216
- }
1217
- }
1218
- },
1219
- "required": [
1220
- "jobId",
1221
- "timestamp",
1222
- "status",
1223
- "outputs"
1224
- ]
1225
- },
1226
- "CustomScriptJobRunningResponse": {
1227
- "type": "object",
1228
- "title": "Execution Running",
1229
- "description": "Returned while the Custom Scripts job is still executing. Poll again after a short interval.",
1230
- "properties": {
1231
- "jobId": {
1232
- "type": "string",
1233
- "description": "The job ID.",
1234
- "example": "<jobId>"
1235
- },
1236
- "timestamp": {
1237
- "type": "string",
1238
- "format": "date-time",
1239
- "description": "ISO 8601 timestamp.",
1240
- "example": "<date-time>"
1241
- },
1242
- "status": {
1243
- "type": "string",
1244
- "enum": [
1245
- "running"
1246
- ]
1247
- }
1248
- },
1249
- "required": [
1250
- "jobId",
1251
- "timestamp",
1252
- "status"
1253
- ]
1254
- },
1255
- "CustomScriptJobFailedResponse": {
1256
- "type": "object",
1257
- "title": "Execution Failed",
1258
- "description": "Returned when the Custom Scripts job has failed.",
1259
- "properties": {
1260
- "jobId": {
1261
- "type": "string",
1262
- "description": "The job ID.",
1263
- "example": "<jobId>"
1264
- },
1265
- "timestamp": {
1266
- "type": "string",
1267
- "format": "date-time",
1268
- "description": "ISO 8601 timestamp.",
1269
- "example": "<date-time>"
1270
- },
1271
- "status": {
1272
- "type": "string",
1273
- "enum": [
1274
- "failed"
1275
- ]
1276
- },
1277
- "errors": {
1278
- "type": "array",
1279
- "description": "List of errors describing what went wrong.",
1280
- "items": {
1281
- "type": "object",
1282
- "properties": {
1283
- "message": {
1284
- "type": "string",
1285
- "example": "<error-message>"
1286
- }
1287
- }
1288
- }
1289
- }
1290
- },
1291
- "required": [
1292
- "jobId",
1293
- "timestamp",
1294
- "status",
1295
- "errors"
1296
- ]
1297
- },
1298
- "CustomScriptJobNotFoundResponse": {
1299
- "type": "object",
1300
- "description": "Returned when the job ID does not exist.",
1301
- "properties": {
1302
- "message": {
1303
- "type": "string",
1304
- "example": "JobId <jobId> not found"
1305
- },
1306
- "errorCode": {
1307
- "type": "string",
1308
- "example": "<string>"
1309
- }
1310
- }
1311
- },
1312
- "CustomScriptApiError": {
1313
- "type": "object",
1314
- "properties": {
1315
- "message": {
1316
- "type": "string"
1317
- },
1318
- "error_code": {
1319
- "type": "string"
1320
- }
1321
- },
1322
- "required": [
1323
- "message",
1324
- "error_code"
1325
- ]
1326
- }
1327
- }
1328
- }
1329
- }