@executioncontrolprotocol/adobe-firefly-services 0.13.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/README.md +81 -0
- package/dist/auth/ims.d.ts +42 -0
- package/dist/auth/ims.d.ts.map +1 -0
- package/dist/auth/ims.js +54 -0
- package/dist/auth/ims.js.map +1 -0
- package/dist/generated/audio-video/capabilities.d.ts +37 -0
- package/dist/generated/audio-video/capabilities.d.ts.map +1 -0
- package/dist/generated/audio-video/capabilities.js +488 -0
- package/dist/generated/audio-video/capabilities.js.map +1 -0
- package/dist/generated/audio-video/index.d.ts +3 -0
- package/dist/generated/audio-video/index.d.ts.map +1 -0
- package/dist/generated/audio-video/index.js +3 -0
- package/dist/generated/audio-video/index.js.map +1 -0
- package/dist/generated/audio-video/schemas.d.ts +84 -0
- package/dist/generated/audio-video/schemas.d.ts.map +1 -0
- package/dist/generated/audio-video/schemas.js +476 -0
- package/dist/generated/audio-video/schemas.js.map +1 -0
- package/dist/generated/creative-production/capabilities.d.ts +11 -0
- package/dist/generated/creative-production/capabilities.d.ts.map +1 -0
- package/dist/generated/creative-production/capabilities.js +168 -0
- package/dist/generated/creative-production/capabilities.js.map +1 -0
- package/dist/generated/creative-production/index.d.ts +3 -0
- package/dist/generated/creative-production/index.d.ts.map +1 -0
- package/dist/generated/creative-production/index.js +3 -0
- package/dist/generated/creative-production/index.js.map +1 -0
- package/dist/generated/creative-production/schemas.d.ts +23 -0
- package/dist/generated/creative-production/schemas.d.ts.map +1 -0
- package/dist/generated/creative-production/schemas.js +130 -0
- package/dist/generated/creative-production/schemas.js.map +1 -0
- package/dist/generated/express/capabilities.d.ts +11 -0
- package/dist/generated/express/capabilities.d.ts.map +1 -0
- package/dist/generated/express/capabilities.js +114 -0
- package/dist/generated/express/capabilities.js.map +1 -0
- package/dist/generated/express/index.d.ts +3 -0
- package/dist/generated/express/index.d.ts.map +1 -0
- package/dist/generated/express/index.js +3 -0
- package/dist/generated/express/index.js.map +1 -0
- package/dist/generated/express/schemas.d.ts +36 -0
- package/dist/generated/express/schemas.d.ts.map +1 -0
- package/dist/generated/express/schemas.js +136 -0
- package/dist/generated/express/schemas.js.map +1 -0
- package/dist/generated/firefly/capabilities.d.ts +29 -0
- package/dist/generated/firefly/capabilities.d.ts.map +1 -0
- package/dist/generated/firefly/capabilities.js +307 -0
- package/dist/generated/firefly/capabilities.js.map +1 -0
- package/dist/generated/firefly/index.d.ts +3 -0
- package/dist/generated/firefly/index.d.ts.map +1 -0
- package/dist/generated/firefly/index.js +3 -0
- package/dist/generated/firefly/index.js.map +1 -0
- package/dist/generated/firefly/schemas.d.ts +107 -0
- package/dist/generated/firefly/schemas.d.ts.map +1 -0
- package/dist/generated/firefly/schemas.js +453 -0
- package/dist/generated/firefly/schemas.js.map +1 -0
- package/dist/generated/illustrator/capabilities.d.ts +17 -0
- package/dist/generated/illustrator/capabilities.d.ts.map +1 -0
- package/dist/generated/illustrator/capabilities.js +169 -0
- package/dist/generated/illustrator/capabilities.js.map +1 -0
- package/dist/generated/illustrator/index.d.ts +3 -0
- package/dist/generated/illustrator/index.d.ts.map +1 -0
- package/dist/generated/illustrator/index.js +3 -0
- package/dist/generated/illustrator/index.js.map +1 -0
- package/dist/generated/illustrator/schemas.d.ts +56 -0
- package/dist/generated/illustrator/schemas.d.ts.map +1 -0
- package/dist/generated/illustrator/schemas.js +237 -0
- package/dist/generated/illustrator/schemas.js.map +1 -0
- package/dist/generated/indesign/capabilities.d.ts +33 -0
- package/dist/generated/indesign/capabilities.d.ts.map +1 -0
- package/dist/generated/indesign/capabilities.js +390 -0
- package/dist/generated/indesign/capabilities.js.map +1 -0
- package/dist/generated/indesign/index.d.ts +3 -0
- package/dist/generated/indesign/index.d.ts.map +1 -0
- package/dist/generated/indesign/index.js +3 -0
- package/dist/generated/indesign/index.js.map +1 -0
- package/dist/generated/indesign/schemas.d.ts +26 -0
- package/dist/generated/indesign/schemas.d.ts.map +1 -0
- package/dist/generated/indesign/schemas.js +250 -0
- package/dist/generated/indesign/schemas.js.map +1 -0
- package/dist/generated/index.d.ts +4 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +98 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/photoshop/capabilities.d.ts +15 -0
- package/dist/generated/photoshop/capabilities.d.ts.map +1 -0
- package/dist/generated/photoshop/capabilities.js +143 -0
- package/dist/generated/photoshop/capabilities.js.map +1 -0
- package/dist/generated/photoshop/index.d.ts +3 -0
- package/dist/generated/photoshop/index.d.ts.map +1 -0
- package/dist/generated/photoshop/index.js +3 -0
- package/dist/generated/photoshop/index.js.map +1 -0
- package/dist/generated/photoshop/schemas.d.ts +154 -0
- package/dist/generated/photoshop/schemas.d.ts.map +1 -0
- package/dist/generated/photoshop/schemas.js +718 -0
- package/dist/generated/photoshop/schemas.js.map +1 -0
- package/dist/generated/substance3d/capabilities.d.ts +23 -0
- package/dist/generated/substance3d/capabilities.d.ts.map +1 -0
- package/dist/generated/substance3d/capabilities.js +236 -0
- package/dist/generated/substance3d/capabilities.js.map +1 -0
- package/dist/generated/substance3d/index.d.ts +3 -0
- package/dist/generated/substance3d/index.d.ts.map +1 -0
- package/dist/generated/substance3d/index.js +3 -0
- package/dist/generated/substance3d/index.js.map +1 -0
- package/dist/generated/substance3d/schemas.d.ts +78 -0
- package/dist/generated/substance3d/schemas.d.ts.map +1 -0
- package/dist/generated/substance3d/schemas.js +517 -0
- package/dist/generated/substance3d/schemas.js.map +1 -0
- package/dist/http/async-job.d.ts +27 -0
- package/dist/http/async-job.d.ts.map +1 -0
- package/dist/http/async-job.js +28 -0
- package/dist/http/async-job.js.map +1 -0
- package/dist/http/client.d.ts +53 -0
- package/dist/http/client.d.ts.map +1 -0
- package/dist/http/client.js +75 -0
- package/dist/http/client.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +49 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime/invoke.d.ts +54 -0
- package/dist/runtime/invoke.d.ts.map +1 -0
- package/dist/runtime/invoke.js +64 -0
- package/dist/runtime/invoke.js.map +1 -0
- package/openapi/audio-video/audio-video-api.json +8333 -0
- package/openapi/audio-video/translate-lipsync-openapi.json +1967 -0
- package/openapi/content-tagging/SOURCE.md +10 -0
- package/openapi/creative-production/workflow-builder-api.yaml +1002 -0
- package/openapi/express/ffs-express-api.json +2262 -0
- package/openapi/firefly/firefly-api.json +4964 -0
- package/openapi/illustrator/illustrator-api-beta.json +1329 -0
- package/openapi/illustrator/illustrator-api.json +2447 -0
- package/openapi/indesign/indesignapi.json +2907 -0
- package/openapi/overlays/schema-fixes.json +95 -0
- package/openapi/photoshop/photoshopv2-api.json +5395 -0
- package/openapi/substance3d/openapi.yaml +3583 -0
- package/package.json +36 -0
|
@@ -0,0 +1,1002 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Firefly Creative Production Workflow API
|
|
4
|
+
version: "1.0"
|
|
5
|
+
description: |
|
|
6
|
+
Firefly Creative Production Workflow API for executing workflows and creating assets at scale.
|
|
7
|
+
|
|
8
|
+
Runtime batch requests use the HTTP header `api-version` to pin the API version.
|
|
9
|
+
|
|
10
|
+
- If you **omit** `api-version`, the service assumes **`1.0`**.
|
|
11
|
+
- If you send an **unsupported** value, the API returns **HTTP 400** with `status: "error"` in the JSON body.
|
|
12
|
+
- **Responses** include an **`api-version`** header indicating which contract handled the request (the value you sent, or **`1.0`** when omitted).
|
|
13
|
+
license:
|
|
14
|
+
name: Adobe Creative API License
|
|
15
|
+
url: https://www.adobe.com/content/dam/cc/en/legal/terms/enterprise/pdfs/PSLT-AdobeCreativeAPI-WW-2024v2.pdf
|
|
16
|
+
|
|
17
|
+
servers:
|
|
18
|
+
- url: https://run-workflow.adobe.io
|
|
19
|
+
description: Production
|
|
20
|
+
|
|
21
|
+
tags:
|
|
22
|
+
- name: Batches
|
|
23
|
+
description: Execute published workflows over multiple assets, list batches, monitor status, cancel jobs, and retrieve per-asset results
|
|
24
|
+
|
|
25
|
+
paths:
|
|
26
|
+
/batch/execute:
|
|
27
|
+
post:
|
|
28
|
+
tags:
|
|
29
|
+
- Batches
|
|
30
|
+
summary: Execute a batch of assets through a workflow
|
|
31
|
+
description: |
|
|
32
|
+
Start a new batch job to process multiple assets through a published workflow.
|
|
33
|
+
|
|
34
|
+
The request body supplies the workflow identifier and `inputs`: a list of runs, where each run is an array of node input mappings (`node_id` plus `content` and/or `template`).
|
|
35
|
+
|
|
36
|
+
Each run is processed separately through the workflow in parallel.
|
|
37
|
+
|
|
38
|
+
Returns a `batchId` and `links` that can be used to track progress and retrieve results.
|
|
39
|
+
operationId: batchExecute
|
|
40
|
+
security:
|
|
41
|
+
- BearerAuth: []
|
|
42
|
+
parameters:
|
|
43
|
+
- $ref: '#/components/parameters/ApiVersion'
|
|
44
|
+
requestBody:
|
|
45
|
+
required: true
|
|
46
|
+
content:
|
|
47
|
+
application/json:
|
|
48
|
+
schema:
|
|
49
|
+
$ref: '#/components/schemas/BatchExecuteRequest'
|
|
50
|
+
example:
|
|
51
|
+
workflow:
|
|
52
|
+
workflowId: "121dc48a-f50b-427a-8aeb-f84c12c946a8"
|
|
53
|
+
inputs:
|
|
54
|
+
- - node_id: "node_1775258981781_301b7cc7v_0_j5iaha"
|
|
55
|
+
content:
|
|
56
|
+
- presignedUrl: "{presigned_url_1}"
|
|
57
|
+
storageType: "AWS"
|
|
58
|
+
- presignedUrl: "{presigned_url_2}"
|
|
59
|
+
storageType: "AWS"
|
|
60
|
+
- node_id: "node_1775258983939_zoc3490s7_1_7jx86h"
|
|
61
|
+
content:
|
|
62
|
+
- presignedUrl: "{presigned_url_1}"
|
|
63
|
+
storageType: "AWS"
|
|
64
|
+
- presignedUrl: "{presigned_url_2}"
|
|
65
|
+
storageType: "AWS"
|
|
66
|
+
- node_id: "node_1775258991082_1lfvzsgqz_2_vhjjoc"
|
|
67
|
+
content: "{text}"
|
|
68
|
+
- node_id: "node_1775259058091_zzgybxfcg_5_j6g2al"
|
|
69
|
+
content: "{text}"
|
|
70
|
+
- node_id: "node-1775259002055-ztu8i4fpz"
|
|
71
|
+
template:
|
|
72
|
+
presignedUrl: "{presignedUrl}"
|
|
73
|
+
storageType: "AWS"
|
|
74
|
+
responses:
|
|
75
|
+
'202':
|
|
76
|
+
description: Accepted
|
|
77
|
+
headers:
|
|
78
|
+
api-version:
|
|
79
|
+
$ref: '#/components/headers/ApiVersionResponse'
|
|
80
|
+
content:
|
|
81
|
+
application/json:
|
|
82
|
+
schema:
|
|
83
|
+
$ref: '#/components/schemas/BatchExecuteAcceptedResponse'
|
|
84
|
+
example:
|
|
85
|
+
batchId: "batch-run-workflow_2402b5a2-bd2b-4309-a4a4-d7983bba64e9-20260403-750642eb"
|
|
86
|
+
workflowId: "run-workflow_2402b5a2-bd2b-4309-a4a4-d7983bba64e9"
|
|
87
|
+
status: "pending"
|
|
88
|
+
assets:
|
|
89
|
+
total: 1
|
|
90
|
+
pending: 1
|
|
91
|
+
processing: 0
|
|
92
|
+
completed: 0
|
|
93
|
+
failed: 0
|
|
94
|
+
createdAt: "2026-04-03T23:46:39.374Z"
|
|
95
|
+
links:
|
|
96
|
+
result:
|
|
97
|
+
href: "https://run-workflow.adobe.io/batch/batch-run-workflow_2402b5a2-bd2b-4309-a4a4-d7983bba64e9-20260403-750642eb/status?format=preview"
|
|
98
|
+
status:
|
|
99
|
+
href: "https://run-workflow.adobe.io/batch/batch-run-workflow_2402b5a2-bd2b-4309-a4a4-d7983bba64e9-20260403-750642eb/status"
|
|
100
|
+
cancel:
|
|
101
|
+
href: "https://run-workflow.adobe.io/batch/batch-run-workflow_2402b5a2-bd2b-4309-a4a4-d7983bba64e9-20260403-750642eb/cancel"
|
|
102
|
+
executions:
|
|
103
|
+
href: "https://run-workflow.adobe.io/batch/batch-run-workflow_2402b5a2-bd2b-4309-a4a4-d7983bba64e9-20260403-750642eb/executions"
|
|
104
|
+
'400':
|
|
105
|
+
$ref: '#/components/responses/BadRequest'
|
|
106
|
+
'404':
|
|
107
|
+
$ref: '#/components/responses/NotFound'
|
|
108
|
+
'500':
|
|
109
|
+
$ref: '#/components/responses/InternalServerError'
|
|
110
|
+
|
|
111
|
+
/batches:
|
|
112
|
+
get:
|
|
113
|
+
tags:
|
|
114
|
+
- Batches
|
|
115
|
+
summary: List batches
|
|
116
|
+
description: |
|
|
117
|
+
List all batches created by the authenticated user within their organization.
|
|
118
|
+
|
|
119
|
+
Results are automatically filtered by the authenticated user's ID.
|
|
120
|
+
Users can only view their own batches, not batches created by other users in the organization.
|
|
121
|
+
|
|
122
|
+
Results are sorted by creation date (most recent first) and include pagination metadata.
|
|
123
|
+
operationId: listBatches
|
|
124
|
+
security:
|
|
125
|
+
- BearerAuth: []
|
|
126
|
+
parameters:
|
|
127
|
+
- $ref: '#/components/parameters/ApiVersion'
|
|
128
|
+
- name: status
|
|
129
|
+
in: query
|
|
130
|
+
description: Filter by batch status.
|
|
131
|
+
schema:
|
|
132
|
+
type: string
|
|
133
|
+
enum: [pending, running, completed, failed, cancelled]
|
|
134
|
+
- name: workflowId
|
|
135
|
+
in: query
|
|
136
|
+
description: Filter by workflow ID.
|
|
137
|
+
schema:
|
|
138
|
+
type: string
|
|
139
|
+
- name: createdAfter
|
|
140
|
+
in: query
|
|
141
|
+
description: Filter by creation date (ISO 8601 format).
|
|
142
|
+
schema:
|
|
143
|
+
type: string
|
|
144
|
+
format: date-time
|
|
145
|
+
- name: createdBefore
|
|
146
|
+
in: query
|
|
147
|
+
description: Filter by creation date (ISO 8601 format).
|
|
148
|
+
schema:
|
|
149
|
+
type: string
|
|
150
|
+
format: date-time
|
|
151
|
+
- name: limit
|
|
152
|
+
in: query
|
|
153
|
+
description: Maximum number of results per page (default 50, max 100).
|
|
154
|
+
schema:
|
|
155
|
+
type: integer
|
|
156
|
+
minimum: 1
|
|
157
|
+
maximum: 100
|
|
158
|
+
default: 50
|
|
159
|
+
- name: offset
|
|
160
|
+
in: query
|
|
161
|
+
description: Pagination offset (default 0).
|
|
162
|
+
schema:
|
|
163
|
+
type: integer
|
|
164
|
+
minimum: 0
|
|
165
|
+
default: 0
|
|
166
|
+
responses:
|
|
167
|
+
'200':
|
|
168
|
+
description: Success
|
|
169
|
+
headers:
|
|
170
|
+
api-version:
|
|
171
|
+
$ref: '#/components/headers/ApiVersionResponse'
|
|
172
|
+
content:
|
|
173
|
+
application/json:
|
|
174
|
+
schema:
|
|
175
|
+
$ref: '#/components/schemas/ListBatchesResponse'
|
|
176
|
+
example:
|
|
177
|
+
orgId: "A1B2C3D4567890ABCDEFFEDA51@AdobeOrg"
|
|
178
|
+
batches:
|
|
179
|
+
- batchId: "batch-run-workflow_a1b2c3d4-e5f6-7890-abcd-ef1234567890-20260415-abc12301"
|
|
180
|
+
workflowId: "run-workflow_a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
181
|
+
jobName: "Product catalog resize"
|
|
182
|
+
status: "completed"
|
|
183
|
+
assets:
|
|
184
|
+
total: 1
|
|
185
|
+
pending: 0
|
|
186
|
+
processing: 0
|
|
187
|
+
completed: 1
|
|
188
|
+
failed: 0
|
|
189
|
+
executions:
|
|
190
|
+
total: 1
|
|
191
|
+
completed: 1
|
|
192
|
+
failed: 0
|
|
193
|
+
allExecutionIds:
|
|
194
|
+
- "batch-run-workflow_a1b2c3d4-e5f6-7890-abcd-ef1234567890-20260415-abc12301_exec-0"
|
|
195
|
+
failedExecutionIds: []
|
|
196
|
+
endpoint: "batch"
|
|
197
|
+
createdAt: "2026-04-15T14:22:10.120Z"
|
|
198
|
+
updatedAt: "2026-04-15T14:23:45.880Z"
|
|
199
|
+
completedAt: "2026-04-15T14:23:45.600Z"
|
|
200
|
+
- batchId: "batch-run-workflow_f9e8d7c6-b5a4-3210-fedc-ba9876543210-20260415-def45602"
|
|
201
|
+
workflowId: "run-workflow_f9e8d7c6-b5a4-3210-fedc-ba9876543210"
|
|
202
|
+
jobName: "Social crops batch"
|
|
203
|
+
status: "running"
|
|
204
|
+
assets:
|
|
205
|
+
total: 2
|
|
206
|
+
pending: 2
|
|
207
|
+
processing: 0
|
|
208
|
+
completed: 0
|
|
209
|
+
failed: 0
|
|
210
|
+
executions:
|
|
211
|
+
total: 2
|
|
212
|
+
completed: 0
|
|
213
|
+
failed: 0
|
|
214
|
+
allExecutionIds:
|
|
215
|
+
- "batch-run-workflow_f9e8d7c6-b5a4-3210-fedc-ba9876543210-20260415-def45602_exec-0"
|
|
216
|
+
- "batch-run-workflow_f9e8d7c6-b5a4-3210-fedc-ba9876543210-20260415-def45602_exec-1"
|
|
217
|
+
failedExecutionIds: []
|
|
218
|
+
endpoint: "batch"
|
|
219
|
+
createdAt: "2026-04-15T13:05:00.000Z"
|
|
220
|
+
updatedAt: "2026-04-15T13:07:12.340Z"
|
|
221
|
+
completedAt: null
|
|
222
|
+
pagination:
|
|
223
|
+
limit: 50
|
|
224
|
+
offset: 0
|
|
225
|
+
count: 2
|
|
226
|
+
hasMore: false
|
|
227
|
+
filters:
|
|
228
|
+
status: "completed"
|
|
229
|
+
'400':
|
|
230
|
+
$ref: '#/components/responses/BadRequest'
|
|
231
|
+
'401':
|
|
232
|
+
$ref: '#/components/responses/Unauthorized'
|
|
233
|
+
'500':
|
|
234
|
+
$ref: '#/components/responses/InternalServerError'
|
|
235
|
+
|
|
236
|
+
/batch/{batchId}/status:
|
|
237
|
+
get:
|
|
238
|
+
tags:
|
|
239
|
+
- Batches
|
|
240
|
+
summary: Get batch status
|
|
241
|
+
description: |
|
|
242
|
+
Get the current status and progress of a batch job.
|
|
243
|
+
|
|
244
|
+
Returns the batch identifier, workflow identifier, status, asset and execution counters (including execution IDs), timestamps, and hypermedia links to cancel or list executions.
|
|
245
|
+
operationId: getBatchStatus
|
|
246
|
+
security:
|
|
247
|
+
- BearerAuth: []
|
|
248
|
+
parameters:
|
|
249
|
+
- $ref: '#/components/parameters/ApiVersion'
|
|
250
|
+
- name: batchId
|
|
251
|
+
in: path
|
|
252
|
+
required: true
|
|
253
|
+
description: Batch identifier.
|
|
254
|
+
schema:
|
|
255
|
+
type: string
|
|
256
|
+
responses:
|
|
257
|
+
'200':
|
|
258
|
+
description: Success
|
|
259
|
+
headers:
|
|
260
|
+
api-version:
|
|
261
|
+
$ref: '#/components/headers/ApiVersionResponse'
|
|
262
|
+
content:
|
|
263
|
+
application/json:
|
|
264
|
+
schema:
|
|
265
|
+
$ref: '#/components/schemas/BatchStatusResponse'
|
|
266
|
+
example:
|
|
267
|
+
batchId: "batch-run-workflow_a1b2c3d4-e5f6-7890-abcd-ef1234567890-20260415-abc12301"
|
|
268
|
+
workflowId: "run-workflow_a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
269
|
+
status: "completed"
|
|
270
|
+
assets:
|
|
271
|
+
total: 1
|
|
272
|
+
pending: 0
|
|
273
|
+
processing: 0
|
|
274
|
+
completed: 1
|
|
275
|
+
failed: 0
|
|
276
|
+
executions:
|
|
277
|
+
total: 1
|
|
278
|
+
completed: 1
|
|
279
|
+
failed: 0
|
|
280
|
+
allExecutionIds:
|
|
281
|
+
- "batch-run-workflow_a1b2c3d4-e5f6-7890-abcd-ef1234567890-20260415-abc12301_exec-0"
|
|
282
|
+
failedExecutionIds: []
|
|
283
|
+
createdAt: "2026-04-15T14:22:10.120Z"
|
|
284
|
+
updatedAt: "2026-04-15T14:23:45.880Z"
|
|
285
|
+
completedAt: "2026-04-15T14:23:45.600Z"
|
|
286
|
+
links:
|
|
287
|
+
cancel:
|
|
288
|
+
href: "https://run-workflow.adobe.io/batch/batch-run-workflow_a1b2c3d4-e5f6-7890-abcd-ef1234567890-20260415-abc12301/cancel"
|
|
289
|
+
executions:
|
|
290
|
+
href: "https://run-workflow.adobe.io/batch/batch-run-workflow_a1b2c3d4-e5f6-7890-abcd-ef1234567890-20260415-abc12301/executions"
|
|
291
|
+
'400':
|
|
292
|
+
$ref: '#/components/responses/BadRequest'
|
|
293
|
+
'404':
|
|
294
|
+
$ref: '#/components/responses/NotFound'
|
|
295
|
+
'500':
|
|
296
|
+
$ref: '#/components/responses/InternalServerError'
|
|
297
|
+
|
|
298
|
+
/batch/{batchId}/cancel:
|
|
299
|
+
post:
|
|
300
|
+
tags:
|
|
301
|
+
- Batches
|
|
302
|
+
summary: Cancel a batch
|
|
303
|
+
description: |
|
|
304
|
+
Cancel a batch job that is currently pending or running.
|
|
305
|
+
|
|
306
|
+
Once cancelled, no new assets will be processed. Assets currently being
|
|
307
|
+
processed may complete. The batch status will be updated to 'cancelled'.
|
|
308
|
+
|
|
309
|
+
Cannot cancel batches that are already completed, failed, or cancelled.
|
|
310
|
+
operationId: cancelBatch
|
|
311
|
+
security:
|
|
312
|
+
- BearerAuth: []
|
|
313
|
+
parameters:
|
|
314
|
+
- $ref: '#/components/parameters/ApiVersion'
|
|
315
|
+
- name: batchId
|
|
316
|
+
in: path
|
|
317
|
+
required: true
|
|
318
|
+
description: Batch identifier.
|
|
319
|
+
schema:
|
|
320
|
+
type: string
|
|
321
|
+
responses:
|
|
322
|
+
'200':
|
|
323
|
+
description: Success
|
|
324
|
+
headers:
|
|
325
|
+
api-version:
|
|
326
|
+
$ref: '#/components/headers/ApiVersionResponse'
|
|
327
|
+
content:
|
|
328
|
+
application/json:
|
|
329
|
+
schema:
|
|
330
|
+
type: object
|
|
331
|
+
properties:
|
|
332
|
+
batchId:
|
|
333
|
+
type: string
|
|
334
|
+
status:
|
|
335
|
+
type: string
|
|
336
|
+
enum: [cancelled]
|
|
337
|
+
message:
|
|
338
|
+
type: string
|
|
339
|
+
previousStatus:
|
|
340
|
+
type: string
|
|
341
|
+
assets:
|
|
342
|
+
$ref: '#/components/schemas/BatchAssetCounts'
|
|
343
|
+
'400':
|
|
344
|
+
$ref: '#/components/responses/BadRequest'
|
|
345
|
+
'404':
|
|
346
|
+
$ref: '#/components/responses/NotFound'
|
|
347
|
+
'500':
|
|
348
|
+
$ref: '#/components/responses/InternalServerError'
|
|
349
|
+
|
|
350
|
+
/batch/{batchId}/executions:
|
|
351
|
+
get:
|
|
352
|
+
tags:
|
|
353
|
+
- Batches
|
|
354
|
+
summary: List individual execution results
|
|
355
|
+
description: |
|
|
356
|
+
List all individual asset execution results within a batch, with optional filtering.
|
|
357
|
+
|
|
358
|
+
Returns detailed results for each asset including:
|
|
359
|
+
- Execution status (pending, running, success, failed)
|
|
360
|
+
- Input asset data
|
|
361
|
+
- Output results (if successful)
|
|
362
|
+
- Error messages (if failed)
|
|
363
|
+
- Timing information
|
|
364
|
+
|
|
365
|
+
The response supports pagination and filtering by execution status.
|
|
366
|
+
operationId: listBatchExecutions
|
|
367
|
+
security:
|
|
368
|
+
- BearerAuth: []
|
|
369
|
+
parameters:
|
|
370
|
+
- $ref: '#/components/parameters/ApiVersion'
|
|
371
|
+
- name: batchId
|
|
372
|
+
in: path
|
|
373
|
+
required: true
|
|
374
|
+
description: Batch identifier.
|
|
375
|
+
schema:
|
|
376
|
+
type: string
|
|
377
|
+
- name: status
|
|
378
|
+
in: query
|
|
379
|
+
description: Filter by execution status.
|
|
380
|
+
schema:
|
|
381
|
+
type: string
|
|
382
|
+
enum: [pending, running, success, failed]
|
|
383
|
+
- name: limit
|
|
384
|
+
in: query
|
|
385
|
+
description: Maximum number of results (default 100).
|
|
386
|
+
schema:
|
|
387
|
+
type: integer
|
|
388
|
+
minimum: 1
|
|
389
|
+
maximum: 500
|
|
390
|
+
default: 100
|
|
391
|
+
- name: offset
|
|
392
|
+
in: query
|
|
393
|
+
description: Pagination offset (default 0).
|
|
394
|
+
schema:
|
|
395
|
+
type: integer
|
|
396
|
+
minimum: 0
|
|
397
|
+
default: 0
|
|
398
|
+
responses:
|
|
399
|
+
'200':
|
|
400
|
+
description: Success
|
|
401
|
+
headers:
|
|
402
|
+
api-version:
|
|
403
|
+
$ref: '#/components/headers/ApiVersionResponse'
|
|
404
|
+
content:
|
|
405
|
+
application/json:
|
|
406
|
+
schema:
|
|
407
|
+
type: object
|
|
408
|
+
properties:
|
|
409
|
+
batchId:
|
|
410
|
+
type: string
|
|
411
|
+
total:
|
|
412
|
+
type: integer
|
|
413
|
+
description: Total number of assets in batch.
|
|
414
|
+
executions:
|
|
415
|
+
type: array
|
|
416
|
+
items:
|
|
417
|
+
$ref: '#/components/schemas/BatchExecutionResult'
|
|
418
|
+
pagination:
|
|
419
|
+
type: object
|
|
420
|
+
properties:
|
|
421
|
+
limit:
|
|
422
|
+
type: integer
|
|
423
|
+
offset:
|
|
424
|
+
type: integer
|
|
425
|
+
count:
|
|
426
|
+
type: integer
|
|
427
|
+
hasMore:
|
|
428
|
+
type: boolean
|
|
429
|
+
'400':
|
|
430
|
+
$ref: '#/components/responses/BadRequest'
|
|
431
|
+
'404':
|
|
432
|
+
$ref: '#/components/responses/NotFound'
|
|
433
|
+
'500':
|
|
434
|
+
$ref: '#/components/responses/InternalServerError'
|
|
435
|
+
|
|
436
|
+
components:
|
|
437
|
+
parameters:
|
|
438
|
+
ApiVersion:
|
|
439
|
+
name: api-version
|
|
440
|
+
in: header
|
|
441
|
+
required: false
|
|
442
|
+
example: "1.0"
|
|
443
|
+
description: |
|
|
444
|
+
Public API contract version for **batch** operations (`/batch/…`, `GET /batches`). The supported value is **`1.0`**.
|
|
445
|
+
If omitted, the service assumes **`1.0`**. Unsupported values return **400** with `status: "error"`.
|
|
446
|
+
schema:
|
|
447
|
+
type: string
|
|
448
|
+
enum:
|
|
449
|
+
- "1.0"
|
|
450
|
+
default: "1.0"
|
|
451
|
+
|
|
452
|
+
headers:
|
|
453
|
+
ApiVersionResponse:
|
|
454
|
+
description: |
|
|
455
|
+
Echoes the contract version that handled the request. Matches the `api-version` request header, or **`1.0`** when the client omitted it.
|
|
456
|
+
schema:
|
|
457
|
+
type: string
|
|
458
|
+
example: "1.0"
|
|
459
|
+
|
|
460
|
+
securitySchemes:
|
|
461
|
+
BearerAuth:
|
|
462
|
+
type: http
|
|
463
|
+
scheme: bearer
|
|
464
|
+
description: Bearer token for authorization.
|
|
465
|
+
|
|
466
|
+
schemas:
|
|
467
|
+
BatchExecuteRequest:
|
|
468
|
+
type: object
|
|
469
|
+
description: Batch execute request payload.
|
|
470
|
+
required:
|
|
471
|
+
- workflow
|
|
472
|
+
properties:
|
|
473
|
+
workflow:
|
|
474
|
+
$ref: '#/components/schemas/BatchExecuteWorkflow'
|
|
475
|
+
|
|
476
|
+
BatchExecuteWorkflow:
|
|
477
|
+
type: object
|
|
478
|
+
description: Published workflow identifier and per-run input mappings by node ID.
|
|
479
|
+
required:
|
|
480
|
+
- workflowId
|
|
481
|
+
- inputs
|
|
482
|
+
properties:
|
|
483
|
+
workflowId:
|
|
484
|
+
type: string
|
|
485
|
+
format: uuid
|
|
486
|
+
description: Identifier of the published workflow to run.
|
|
487
|
+
example: "121dc48a-f50b-427a-8aeb-f84c12c946a8"
|
|
488
|
+
inputs:
|
|
489
|
+
type: array
|
|
490
|
+
description: |
|
|
491
|
+
Outer list: each element is one parallel batch execution. Inner list: node input mappings for that execution (images, text, templates, and so on).
|
|
492
|
+
items:
|
|
493
|
+
type: array
|
|
494
|
+
description: Node input mappings for a single workflow execution.
|
|
495
|
+
minItems: 1
|
|
496
|
+
items:
|
|
497
|
+
$ref: '#/components/schemas/BatchWorkflowNodeInput'
|
|
498
|
+
|
|
499
|
+
PresignedStorageRef:
|
|
500
|
+
type: object
|
|
501
|
+
description: Asset location using a presigned URL and storage kind.
|
|
502
|
+
required:
|
|
503
|
+
- presignedUrl
|
|
504
|
+
properties:
|
|
505
|
+
presignedUrl:
|
|
506
|
+
type: string
|
|
507
|
+
format: uri
|
|
508
|
+
description: Presigned GET URL for the asset.
|
|
509
|
+
example: "https://storage.example.com/bucket/asset.png?X-Amz-Algorithm=AWS4-HMAC-SHA256"
|
|
510
|
+
storageType:
|
|
511
|
+
type: string
|
|
512
|
+
description: Storage provider for the presigned URL.
|
|
513
|
+
example: "AWS"
|
|
514
|
+
|
|
515
|
+
BatchWorkflowNodeInput:
|
|
516
|
+
oneOf:
|
|
517
|
+
- $ref: '#/components/schemas/BatchNodeInputContentAssets'
|
|
518
|
+
- $ref: '#/components/schemas/BatchNodeInputContentText'
|
|
519
|
+
- $ref: '#/components/schemas/BatchNodeInputTemplate'
|
|
520
|
+
|
|
521
|
+
BatchNodeInputContentAssets:
|
|
522
|
+
type: object
|
|
523
|
+
description: Maps a workflow node to one or more image (or binary) inputs via presigned URLs.
|
|
524
|
+
required:
|
|
525
|
+
- node_id
|
|
526
|
+
- content
|
|
527
|
+
properties:
|
|
528
|
+
node_id:
|
|
529
|
+
type: string
|
|
530
|
+
description: Workflow canvas node identifier for this input.
|
|
531
|
+
example: "node_1775258981781_301b7cc7v_0_j5iaha"
|
|
532
|
+
content:
|
|
533
|
+
type: array
|
|
534
|
+
description: List of presigned asset references for this node.
|
|
535
|
+
minItems: 1
|
|
536
|
+
items:
|
|
537
|
+
$ref: '#/components/schemas/PresignedStorageRef'
|
|
538
|
+
|
|
539
|
+
BatchNodeInputContentText:
|
|
540
|
+
type: object
|
|
541
|
+
description: Maps a workflow node to a text input value.
|
|
542
|
+
required:
|
|
543
|
+
- node_id
|
|
544
|
+
- content
|
|
545
|
+
properties:
|
|
546
|
+
node_id:
|
|
547
|
+
type: string
|
|
548
|
+
description: Workflow canvas node identifier for this input.
|
|
549
|
+
example: "node_1775258991082_1lfvzsgqz_2_vhjjoc"
|
|
550
|
+
content:
|
|
551
|
+
type: string
|
|
552
|
+
description: Text content for the node.
|
|
553
|
+
example: "Summer campaign headline"
|
|
554
|
+
|
|
555
|
+
BatchNodeInputTemplate:
|
|
556
|
+
type: object
|
|
557
|
+
description: Maps a workflow node to a template file via presigned URL.
|
|
558
|
+
required:
|
|
559
|
+
- node_id
|
|
560
|
+
- template
|
|
561
|
+
properties:
|
|
562
|
+
node_id:
|
|
563
|
+
type: string
|
|
564
|
+
description: Workflow canvas node identifier for this input.
|
|
565
|
+
example: "node-1775259002055-ztu8i4fpz"
|
|
566
|
+
template:
|
|
567
|
+
$ref: '#/components/schemas/PresignedStorageRef'
|
|
568
|
+
|
|
569
|
+
BatchExecuteAcceptedResponse:
|
|
570
|
+
type: object
|
|
571
|
+
description: Response returned when a batch job is accepted for processing.
|
|
572
|
+
required:
|
|
573
|
+
- batchId
|
|
574
|
+
- workflowId
|
|
575
|
+
- status
|
|
576
|
+
- assets
|
|
577
|
+
- createdAt
|
|
578
|
+
- links
|
|
579
|
+
properties:
|
|
580
|
+
batchId:
|
|
581
|
+
type: string
|
|
582
|
+
description: Unique batch identifier.
|
|
583
|
+
example: "batch-run-workflow_2402b5a2-bd2b-4309-a4a4-d7983bba64e9-20260403-750642eb"
|
|
584
|
+
workflowId:
|
|
585
|
+
type: string
|
|
586
|
+
description: Identifier of the workflow associated with this batch.
|
|
587
|
+
example: "run-workflow_2402b5a2-bd2b-4309-a4a4-d7983bba64e9"
|
|
588
|
+
status:
|
|
589
|
+
type: string
|
|
590
|
+
enum: [pending, running, completed, failed, cancelled]
|
|
591
|
+
description: Current batch status.
|
|
592
|
+
assets:
|
|
593
|
+
$ref: '#/components/schemas/BatchAssetCounts'
|
|
594
|
+
createdAt:
|
|
595
|
+
type: string
|
|
596
|
+
format: date-time
|
|
597
|
+
description: Batch creation timestamp.
|
|
598
|
+
links:
|
|
599
|
+
$ref: '#/components/schemas/BatchExecuteLinks'
|
|
600
|
+
|
|
601
|
+
BatchHrefLink:
|
|
602
|
+
type: object
|
|
603
|
+
description: Hypermedia link with an absolute URL.
|
|
604
|
+
required:
|
|
605
|
+
- href
|
|
606
|
+
properties:
|
|
607
|
+
href:
|
|
608
|
+
type: string
|
|
609
|
+
format: uri
|
|
610
|
+
description: Target URL for the related resource.
|
|
611
|
+
|
|
612
|
+
BatchExecuteLinks:
|
|
613
|
+
type: object
|
|
614
|
+
description: Hypermedia links for batch status, preview result, cancellation, and executions.
|
|
615
|
+
required:
|
|
616
|
+
- result
|
|
617
|
+
- status
|
|
618
|
+
- cancel
|
|
619
|
+
- executions
|
|
620
|
+
properties:
|
|
621
|
+
result:
|
|
622
|
+
description: Link to batch status with preview-friendly formatting (`format=preview`).
|
|
623
|
+
allOf:
|
|
624
|
+
- $ref: '#/components/schemas/BatchHrefLink'
|
|
625
|
+
status:
|
|
626
|
+
description: Link to poll batch status.
|
|
627
|
+
allOf:
|
|
628
|
+
- $ref: '#/components/schemas/BatchHrefLink'
|
|
629
|
+
cancel:
|
|
630
|
+
description: Link to cancel the batch job.
|
|
631
|
+
allOf:
|
|
632
|
+
- $ref: '#/components/schemas/BatchHrefLink'
|
|
633
|
+
executions:
|
|
634
|
+
description: Link to list per-asset executions for the batch.
|
|
635
|
+
allOf:
|
|
636
|
+
- $ref: '#/components/schemas/BatchHrefLink'
|
|
637
|
+
|
|
638
|
+
BatchStatusDetailLinks:
|
|
639
|
+
type: object
|
|
640
|
+
description: Hypermedia links returned when getting a single batch by ID.
|
|
641
|
+
required:
|
|
642
|
+
- cancel
|
|
643
|
+
- executions
|
|
644
|
+
properties:
|
|
645
|
+
cancel:
|
|
646
|
+
description: Link to cancel the batch job.
|
|
647
|
+
allOf:
|
|
648
|
+
- $ref: '#/components/schemas/BatchHrefLink'
|
|
649
|
+
executions:
|
|
650
|
+
description: Link to list per-asset executions for the batch.
|
|
651
|
+
allOf:
|
|
652
|
+
- $ref: '#/components/schemas/BatchHrefLink'
|
|
653
|
+
|
|
654
|
+
ErrorResponse:
|
|
655
|
+
type: object
|
|
656
|
+
properties:
|
|
657
|
+
error:
|
|
658
|
+
type: string
|
|
659
|
+
description: Error message.
|
|
660
|
+
message:
|
|
661
|
+
type: string
|
|
662
|
+
description: Additional error details.
|
|
663
|
+
status:
|
|
664
|
+
type: string
|
|
665
|
+
enum:
|
|
666
|
+
- failed
|
|
667
|
+
- error
|
|
668
|
+
description: |
|
|
669
|
+
Error category. Use **`error`** for contract failures such as an unsupported `api-version` value (HTTP 400). Other validation errors often use **`failed`**.
|
|
670
|
+
|
|
671
|
+
BatchConfig:
|
|
672
|
+
type: object
|
|
673
|
+
description: Batch configuration options.
|
|
674
|
+
properties:
|
|
675
|
+
concurrencyLimit:
|
|
676
|
+
type: integer
|
|
677
|
+
minimum: 1
|
|
678
|
+
maximum: 100
|
|
679
|
+
default: 10
|
|
680
|
+
description: Maximum concurrent executions per chunk.
|
|
681
|
+
priority:
|
|
682
|
+
type: string
|
|
683
|
+
enum: [HIGH, NORMAL, LOW]
|
|
684
|
+
default: NORMAL
|
|
685
|
+
description: Batch priority for fair-share throttling.
|
|
686
|
+
continueOnError:
|
|
687
|
+
type: boolean
|
|
688
|
+
default: true
|
|
689
|
+
description: Continue processing remaining assets if some fail.
|
|
690
|
+
webhookUrl:
|
|
691
|
+
type: string
|
|
692
|
+
format: uri
|
|
693
|
+
description: Optional webhook URL for completion notification.
|
|
694
|
+
|
|
695
|
+
BatchAssetCounts:
|
|
696
|
+
type: object
|
|
697
|
+
description: Asset counts for batch progress tracking.
|
|
698
|
+
properties:
|
|
699
|
+
total:
|
|
700
|
+
type: integer
|
|
701
|
+
description: Total number of assets in the batch.
|
|
702
|
+
pending:
|
|
703
|
+
type: integer
|
|
704
|
+
description: Assets waiting to be processed.
|
|
705
|
+
processing:
|
|
706
|
+
type: integer
|
|
707
|
+
description: Assets currently being processed.
|
|
708
|
+
completed:
|
|
709
|
+
type: integer
|
|
710
|
+
description: Successfully completed assets.
|
|
711
|
+
failed:
|
|
712
|
+
type: integer
|
|
713
|
+
description: Failed assets.
|
|
714
|
+
|
|
715
|
+
ListBatchesResponse:
|
|
716
|
+
type: object
|
|
717
|
+
description: Paginated list of batches for the authenticated user within their organization.
|
|
718
|
+
required:
|
|
719
|
+
- orgId
|
|
720
|
+
- Batches
|
|
721
|
+
- pagination
|
|
722
|
+
properties:
|
|
723
|
+
orgId:
|
|
724
|
+
type: string
|
|
725
|
+
description: IMS organization ID for the authenticated caller.
|
|
726
|
+
example: "A1B2C3D4567890ABCDEFFEDA51@AdobeOrg"
|
|
727
|
+
batches:
|
|
728
|
+
type: array
|
|
729
|
+
description: Batch summaries, typically sorted with the most recently created first.
|
|
730
|
+
items:
|
|
731
|
+
$ref: '#/components/schemas/BatchListItem'
|
|
732
|
+
pagination:
|
|
733
|
+
$ref: '#/components/schemas/BatchListPagination'
|
|
734
|
+
filters:
|
|
735
|
+
type: object
|
|
736
|
+
description: Echo of query parameters applied to this response.
|
|
737
|
+
properties:
|
|
738
|
+
status:
|
|
739
|
+
type: string
|
|
740
|
+
description: Status filter, if provided.
|
|
741
|
+
workflowId:
|
|
742
|
+
type: string
|
|
743
|
+
description: Workflow ID filter, if provided.
|
|
744
|
+
createdAfter:
|
|
745
|
+
type: string
|
|
746
|
+
format: date-time
|
|
747
|
+
description: Created-after filter, if provided.
|
|
748
|
+
createdBefore:
|
|
749
|
+
type: string
|
|
750
|
+
format: date-time
|
|
751
|
+
description: Created-before filter, if provided.
|
|
752
|
+
|
|
753
|
+
BatchListPagination:
|
|
754
|
+
type: object
|
|
755
|
+
description: Pagination metadata for batch list results.
|
|
756
|
+
required:
|
|
757
|
+
- limit
|
|
758
|
+
- offset
|
|
759
|
+
- count
|
|
760
|
+
- hasMore
|
|
761
|
+
properties:
|
|
762
|
+
limit:
|
|
763
|
+
type: integer
|
|
764
|
+
description: Maximum number of batches returned per page.
|
|
765
|
+
example: 50
|
|
766
|
+
offset:
|
|
767
|
+
type: integer
|
|
768
|
+
description: Zero-based index of the first batch in this page.
|
|
769
|
+
example: 0
|
|
770
|
+
count:
|
|
771
|
+
type: integer
|
|
772
|
+
description: Number of batch records returned in this page.
|
|
773
|
+
example: 3
|
|
774
|
+
hasMore:
|
|
775
|
+
type: boolean
|
|
776
|
+
description: Whether additional pages exist beyond this result set.
|
|
777
|
+
example: false
|
|
778
|
+
|
|
779
|
+
BatchExecutionsSummary:
|
|
780
|
+
type: object
|
|
781
|
+
description: Execution counts and identifiers for a batch.
|
|
782
|
+
required:
|
|
783
|
+
- total
|
|
784
|
+
- completed
|
|
785
|
+
- failed
|
|
786
|
+
- allExecutionIds
|
|
787
|
+
- failedExecutionIds
|
|
788
|
+
properties:
|
|
789
|
+
total:
|
|
790
|
+
type: integer
|
|
791
|
+
description: Total number of executions in the batch.
|
|
792
|
+
completed:
|
|
793
|
+
type: integer
|
|
794
|
+
description: Number of executions that finished successfully.
|
|
795
|
+
failed:
|
|
796
|
+
type: integer
|
|
797
|
+
description: Number of executions that failed.
|
|
798
|
+
allExecutionIds:
|
|
799
|
+
type: array
|
|
800
|
+
description: Identifiers for all executions in the batch.
|
|
801
|
+
items:
|
|
802
|
+
type: string
|
|
803
|
+
failedExecutionIds:
|
|
804
|
+
type: array
|
|
805
|
+
description: Identifiers of failed executions, suitable for retry or inspection.
|
|
806
|
+
items:
|
|
807
|
+
type: string
|
|
808
|
+
|
|
809
|
+
BatchListItem:
|
|
810
|
+
type: object
|
|
811
|
+
description: Summary of a single batch as returned by the list batches endpoint.
|
|
812
|
+
required:
|
|
813
|
+
- batchId
|
|
814
|
+
- workflowId
|
|
815
|
+
- jobName
|
|
816
|
+
- status
|
|
817
|
+
- assets
|
|
818
|
+
- executions
|
|
819
|
+
- endpoint
|
|
820
|
+
- createdAt
|
|
821
|
+
- updatedAt
|
|
822
|
+
properties:
|
|
823
|
+
batchId:
|
|
824
|
+
type: string
|
|
825
|
+
description: Unique batch identifier.
|
|
826
|
+
workflowId:
|
|
827
|
+
type: string
|
|
828
|
+
description: Identifier of the workflow run for this batch.
|
|
829
|
+
jobName:
|
|
830
|
+
type: string
|
|
831
|
+
description: Display name of the workflow job.
|
|
832
|
+
status:
|
|
833
|
+
type: string
|
|
834
|
+
enum: [pending, running, completed, failed, cancelled]
|
|
835
|
+
description: Current batch status.
|
|
836
|
+
assets:
|
|
837
|
+
$ref: '#/components/schemas/BatchAssetCounts'
|
|
838
|
+
executions:
|
|
839
|
+
$ref: '#/components/schemas/BatchExecutionsSummary'
|
|
840
|
+
endpoint:
|
|
841
|
+
type: string
|
|
842
|
+
enum: [batch, preview, execute]
|
|
843
|
+
description: API surface used to create the batch.
|
|
844
|
+
createdAt:
|
|
845
|
+
type: string
|
|
846
|
+
format: date-time
|
|
847
|
+
description: Batch creation timestamp.
|
|
848
|
+
updatedAt:
|
|
849
|
+
type: string
|
|
850
|
+
format: date-time
|
|
851
|
+
description: Last update timestamp.
|
|
852
|
+
completedAt:
|
|
853
|
+
type: string
|
|
854
|
+
format: date-time
|
|
855
|
+
nullable: true
|
|
856
|
+
description: Completion timestamp when the batch has finished, or null if still in progress.
|
|
857
|
+
|
|
858
|
+
BatchStatusResponse:
|
|
859
|
+
type: object
|
|
860
|
+
description: Current status and progress for a single batch job.
|
|
861
|
+
required:
|
|
862
|
+
- batchId
|
|
863
|
+
- workflowId
|
|
864
|
+
- status
|
|
865
|
+
- assets
|
|
866
|
+
- executions
|
|
867
|
+
- createdAt
|
|
868
|
+
- updatedAt
|
|
869
|
+
- links
|
|
870
|
+
properties:
|
|
871
|
+
batchId:
|
|
872
|
+
type: string
|
|
873
|
+
description: Unique batch identifier.
|
|
874
|
+
workflowId:
|
|
875
|
+
type: string
|
|
876
|
+
description: Identifier of the workflow run for this batch.
|
|
877
|
+
status:
|
|
878
|
+
type: string
|
|
879
|
+
enum: [pending, running, completed, failed, cancelled]
|
|
880
|
+
description: Current batch status.
|
|
881
|
+
assets:
|
|
882
|
+
$ref: '#/components/schemas/BatchAssetCounts'
|
|
883
|
+
executions:
|
|
884
|
+
$ref: '#/components/schemas/BatchExecutionsSummary'
|
|
885
|
+
createdAt:
|
|
886
|
+
type: string
|
|
887
|
+
format: date-time
|
|
888
|
+
description: Batch creation timestamp.
|
|
889
|
+
updatedAt:
|
|
890
|
+
type: string
|
|
891
|
+
format: date-time
|
|
892
|
+
description: Last update timestamp.
|
|
893
|
+
completedAt:
|
|
894
|
+
type: string
|
|
895
|
+
format: date-time
|
|
896
|
+
nullable: true
|
|
897
|
+
description: Completion timestamp when the batch has finished, or null if still in progress.
|
|
898
|
+
links:
|
|
899
|
+
$ref: '#/components/schemas/BatchStatusDetailLinks'
|
|
900
|
+
|
|
901
|
+
BatchExecutionResult:
|
|
902
|
+
type: object
|
|
903
|
+
description: Individual execution result within a batch.
|
|
904
|
+
properties:
|
|
905
|
+
executionId:
|
|
906
|
+
type: string
|
|
907
|
+
description: Execution ID.
|
|
908
|
+
batchId:
|
|
909
|
+
type: string
|
|
910
|
+
description: Batch ID this execution belongs to.
|
|
911
|
+
assetIndex:
|
|
912
|
+
type: integer
|
|
913
|
+
description: Asset index in the batch.
|
|
914
|
+
inputAsset:
|
|
915
|
+
type: object
|
|
916
|
+
description: Input asset data.
|
|
917
|
+
properties:
|
|
918
|
+
index:
|
|
919
|
+
type: integer
|
|
920
|
+
assetId:
|
|
921
|
+
type: string
|
|
922
|
+
inputs:
|
|
923
|
+
type: array
|
|
924
|
+
items:
|
|
925
|
+
type: object
|
|
926
|
+
status:
|
|
927
|
+
type: string
|
|
928
|
+
enum: [pending, running, success, failed]
|
|
929
|
+
description: Execution status.
|
|
930
|
+
error:
|
|
931
|
+
type: string
|
|
932
|
+
description: Error message if failed.
|
|
933
|
+
outputs:
|
|
934
|
+
type: array
|
|
935
|
+
description: Output results if successful.
|
|
936
|
+
items:
|
|
937
|
+
type: object
|
|
938
|
+
startedAt:
|
|
939
|
+
type: string
|
|
940
|
+
format: date-time
|
|
941
|
+
description: Execution start time.
|
|
942
|
+
completedAt:
|
|
943
|
+
type: string
|
|
944
|
+
format: date-time
|
|
945
|
+
description: Execution completion time.
|
|
946
|
+
durationMs:
|
|
947
|
+
type: integer
|
|
948
|
+
description: Duration in milliseconds.
|
|
949
|
+
|
|
950
|
+
responses:
|
|
951
|
+
BadRequest:
|
|
952
|
+
description: |
|
|
953
|
+
Bad request. May include `status: "error"` when the request violates a contract (for example an unsupported **`api-version`** on batch routes).
|
|
954
|
+
content:
|
|
955
|
+
application/json:
|
|
956
|
+
schema:
|
|
957
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
958
|
+
examples:
|
|
959
|
+
invalidInput:
|
|
960
|
+
summary: Typical validation failure
|
|
961
|
+
value:
|
|
962
|
+
error: "Invalid request"
|
|
963
|
+
message: "Request body is not valid JSON"
|
|
964
|
+
status: "failed"
|
|
965
|
+
unsupportedApiVersion:
|
|
966
|
+
summary: Unsupported api-version (batch routes)
|
|
967
|
+
value:
|
|
968
|
+
status: "error"
|
|
969
|
+
error: "The api-version value is not supported. Supported version: 1.0"
|
|
970
|
+
|
|
971
|
+
NotFound:
|
|
972
|
+
description: Requested Resource Was Not Found
|
|
973
|
+
content:
|
|
974
|
+
application/json:
|
|
975
|
+
schema:
|
|
976
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
977
|
+
example:
|
|
978
|
+
error: "Not found"
|
|
979
|
+
message: "Workflow or batch not found"
|
|
980
|
+
status: "failed"
|
|
981
|
+
|
|
982
|
+
InternalServerError:
|
|
983
|
+
description: Internal Server Error
|
|
984
|
+
content:
|
|
985
|
+
application/json:
|
|
986
|
+
schema:
|
|
987
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
988
|
+
example:
|
|
989
|
+
error: "Internal server error"
|
|
990
|
+
message: "An unexpected error occurred"
|
|
991
|
+
status: "failed"
|
|
992
|
+
|
|
993
|
+
Unauthorized:
|
|
994
|
+
description: Unauthorized
|
|
995
|
+
content:
|
|
996
|
+
application/json:
|
|
997
|
+
schema:
|
|
998
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
999
|
+
example:
|
|
1000
|
+
error: "Unauthorized"
|
|
1001
|
+
message: "Missing or invalid authentication"
|
|
1002
|
+
status: "failed"
|