picked 0.0.101 → 0.0.102-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/reference/dashboard/workflow-test-runs.md +40 -17
- package/docs/reference/management-api/schema/action.md +67 -79
- package/docs/reference/management-api/schema/analytics-session.md +77 -94
- package/docs/reference/management-api/schema/analytics.md +16 -14
- package/docs/reference/management-api/schema/api-key.md +43 -51
- package/docs/reference/management-api/schema/auth.md +271 -404
- package/docs/reference/management-api/schema/cms-fields.md +348 -245
- package/docs/reference/management-api/schema/cms-models.md +369 -378
- package/docs/reference/management-api/schema/common.md +69 -130
- package/docs/reference/management-api/schema/condition.md +63 -74
- package/docs/reference/management-api/schema/design-system.md +59 -51
- package/docs/reference/management-api/schema/experience.md +388 -364
- package/docs/reference/management-api/schema/external-api.md +153 -171
- package/docs/reference/management-api/schema/feature.md +85 -103
- package/docs/reference/management-api/schema/feedback.md +27 -31
- package/docs/reference/management-api/schema/field.md +117 -135
- package/docs/reference/management-api/schema/index.md +184 -184
- package/docs/reference/management-api/schema/integration.md +72 -78
- package/docs/reference/management-api/schema/label.md +81 -137
- package/docs/reference/management-api/schema/lead.md +80 -119
- package/docs/reference/management-api/schema/mcp-server.md +73 -71
- package/docs/reference/management-api/schema/metric.md +6 -9
- package/docs/reference/management-api/schema/operation.md +17 -26
- package/docs/reference/management-api/schema/organization.md +198 -220
- package/docs/reference/management-api/schema/project.md +177 -186
- package/docs/reference/management-api/schema/report.md +69 -65
- package/docs/reference/management-api/schema/saved-view.md +71 -71
- package/docs/reference/management-api/schema/shopify.md +331 -204
- package/docs/reference/management-api/schema/step.md +72 -80
- package/docs/reference/management-api/schema/tenant-branding.md +48 -70
- package/docs/reference/management-api/schema/workbench.md +54 -66
- package/docs/reference/management-api/schema/workflow-run.md +66 -79
- package/docs/reference/management-api/schema/workflow.md +310 -353
- package/docs/reference/management-api/schema/workspace-version.md +212 -261
- package/docs/reference/management-api/schema/workspace.md +275 -328
- package/package.json +4 -4
|
@@ -6,13 +6,15 @@ generated: true
|
|
|
6
6
|
|
|
7
7
|
# Workbench schema
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
See [Management API schema](/reference/management-api/schema) for every domain, the endpoint and authentication.
|
|
10
10
|
|
|
11
11
|
## Mutations
|
|
12
12
|
|
|
13
13
|
### `workbenchAssetImport`
|
|
14
14
|
|
|
15
|
-
Imports an
|
|
15
|
+
Imports an asset owned elsewhere into a workbench as `IMPORTED`. The asset's owner does not
|
|
16
|
+
change.
|
|
17
|
+
Scope: `ORGANIZATION_WORKSPACE_UPDATE`.
|
|
16
18
|
|
|
17
19
|
```graphql
|
|
18
20
|
workbenchAssetImport(input: WorkbenchAssetImportInput!): WorkbenchAssetImportPayload! @auth
|
|
@@ -20,7 +22,8 @@ workbenchAssetImport(input: WorkbenchAssetImportInput!): WorkbenchAssetImportPay
|
|
|
20
22
|
|
|
21
23
|
### `workbenchAssetAdoptOwned`
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
Moves the ownership of an asset-library asset to a workbench, as `OWNED`.
|
|
26
|
+
Scope: `ORGANIZATION_WORKSPACE_UPDATE`.
|
|
24
27
|
|
|
25
28
|
```graphql
|
|
26
29
|
workbenchAssetAdoptOwned(input: WorkbenchAssetAdoptOwnedInput!): WorkbenchAssetAdoptOwnedPayload! @auth
|
|
@@ -28,7 +31,9 @@ workbenchAssetAdoptOwned(input: WorkbenchAssetAdoptOwnedInput!): WorkbenchAssetA
|
|
|
28
31
|
|
|
29
32
|
### `workbenchAssetRemove`
|
|
30
33
|
|
|
31
|
-
Removes an
|
|
34
|
+
Removes an asset from a workbench. Removing an `OWNED` asset also deletes it, which needs
|
|
35
|
+
`ORGANIZATION_PROJECTS_UPDATE` and fails once a publish uses the asset.
|
|
36
|
+
Scope: `ORGANIZATION_WORKSPACE_UPDATE`.
|
|
32
37
|
|
|
33
38
|
```graphql
|
|
34
39
|
workbenchAssetRemove(input: WorkbenchAssetRemoveInput!): WorkbenchAssetRemovePayload! @auth
|
|
@@ -39,14 +44,14 @@ workbenchAssetRemove(input: WorkbenchAssetRemoveInput!): WorkbenchAssetRemovePay
|
|
|
39
44
|
### `WorkbenchAssetRelationship`
|
|
40
45
|
|
|
41
46
|
```graphql
|
|
42
|
-
"""How an
|
|
47
|
+
"""How an asset belongs to a workbench."""
|
|
43
48
|
enum WorkbenchAssetRelationship {
|
|
44
49
|
"""
|
|
45
|
-
|
|
50
|
+
Uploaded into the workbench, which owns it. Removing it deletes the asset.
|
|
46
51
|
"""
|
|
47
52
|
OWNED
|
|
48
53
|
"""
|
|
49
|
-
|
|
54
|
+
Owned elsewhere, such as a design system's Markdown file. Removing it keeps the asset.
|
|
50
55
|
"""
|
|
51
56
|
IMPORTED
|
|
52
57
|
}
|
|
@@ -55,12 +60,12 @@ enum WorkbenchAssetRelationship {
|
|
|
55
60
|
### `WorkbenchOwner`
|
|
56
61
|
|
|
57
62
|
```graphql
|
|
58
|
-
"""
|
|
63
|
+
"""The experience or design system that a workbench belongs to."""
|
|
59
64
|
type WorkbenchOwner {
|
|
60
|
-
"""The owner
|
|
65
|
+
"""The kind of owner: `"experience"` or `"design_system"`."""
|
|
61
66
|
type: String!
|
|
62
67
|
"""
|
|
63
|
-
The
|
|
68
|
+
The stable reference of the owner: an experience's `key`, or a design system's `id`.
|
|
64
69
|
"""
|
|
65
70
|
ref: String!
|
|
66
71
|
}
|
|
@@ -69,20 +74,16 @@ type WorkbenchOwner {
|
|
|
69
74
|
### `WorkbenchAsset`
|
|
70
75
|
|
|
71
76
|
```graphql
|
|
72
|
-
"""One
|
|
77
|
+
"""One asset in a workbench."""
|
|
73
78
|
type WorkbenchAsset {
|
|
74
|
-
"""
|
|
75
|
-
Whether this Asset is owned by the Workbench or imported from elsewhere.
|
|
76
|
-
"""
|
|
79
|
+
"""Whether the workbench owns the asset or imports it."""
|
|
77
80
|
relationship: WorkbenchAssetRelationship!
|
|
78
|
-
"""
|
|
79
|
-
The logical path of this Asset within the Workbench, if one was assigned at upload time.
|
|
80
|
-
"""
|
|
81
|
+
"""The path of the asset in the workbench. Null when none was given."""
|
|
81
82
|
path: String
|
|
82
|
-
"""The
|
|
83
|
+
"""The asset."""
|
|
83
84
|
asset: Asset!
|
|
84
85
|
"""
|
|
85
|
-
The
|
|
86
|
+
The design system whose file the asset is. Null unless it is an imported design system file.
|
|
86
87
|
"""
|
|
87
88
|
sourceDesignSystem: DesignSystem
|
|
88
89
|
}
|
|
@@ -91,11 +92,11 @@ type WorkbenchAsset {
|
|
|
91
92
|
### `WorkbenchAssetEdge`
|
|
92
93
|
|
|
93
94
|
```graphql
|
|
94
|
-
"""
|
|
95
|
+
"""A workbench asset in a page of results."""
|
|
95
96
|
type WorkbenchAssetEdge {
|
|
96
|
-
"""
|
|
97
|
+
"""The cursor of this edge."""
|
|
97
98
|
cursor: String!
|
|
98
|
-
"""The
|
|
99
|
+
"""The workbench asset."""
|
|
99
100
|
node: WorkbenchAsset!
|
|
100
101
|
}
|
|
101
102
|
```
|
|
@@ -103,21 +104,15 @@ type WorkbenchAssetEdge {
|
|
|
103
104
|
### `WorkbenchAssetConnection`
|
|
104
105
|
|
|
105
106
|
```graphql
|
|
106
|
-
"""
|
|
107
|
-
Relay-style connection of Workbench-Asset memberships, with both an `edges` list and a flat `nodes` accessor.
|
|
108
|
-
"""
|
|
107
|
+
"""A page of workbench assets."""
|
|
109
108
|
type WorkbenchAssetConnection {
|
|
110
|
-
"""
|
|
109
|
+
"""The edges in this page."""
|
|
111
110
|
edges: [WorkbenchAssetEdge!]!
|
|
112
|
-
"""
|
|
113
|
-
Flat list of Workbench-Asset memberships, equivalent to `edges[].node`.
|
|
114
|
-
"""
|
|
111
|
+
"""The workbench assets in this page."""
|
|
115
112
|
nodes: [WorkbenchAsset!]!
|
|
116
|
-
"""
|
|
113
|
+
"""Where this page sits in the list."""
|
|
117
114
|
pageInfo: PageInfo!
|
|
118
|
-
"""
|
|
119
|
-
Total number of memberships in this Workbench, optionally filtered by `relationship`.
|
|
120
|
-
"""
|
|
115
|
+
"""The number of assets in the workbench that match `relationship`."""
|
|
121
116
|
totalCount: Int!
|
|
122
117
|
}
|
|
123
118
|
```
|
|
@@ -126,24 +121,17 @@ type WorkbenchAssetConnection {
|
|
|
126
121
|
|
|
127
122
|
```graphql
|
|
128
123
|
"""
|
|
129
|
-
A
|
|
130
|
-
|
|
131
|
-
NOT scoped to a workspace version, so one Workbench serves every workspace of
|
|
132
|
-
a project that shares the owner reference — including duplicates, since
|
|
133
|
-
workspace duplication preserves an Experience's `key`.
|
|
124
|
+
A working folder of assets for one experience or design system. It is not tied to a workspace:
|
|
125
|
+
every workspace of the project whose owner has the same reference shares it, duplicates included.
|
|
134
126
|
"""
|
|
135
127
|
type Workbench {
|
|
136
|
-
"""
|
|
128
|
+
"""The ID of the workbench."""
|
|
137
129
|
id: ID!
|
|
138
|
-
"""The
|
|
130
|
+
"""The experience or design system the workbench belongs to."""
|
|
139
131
|
owner: WorkbenchOwner!
|
|
140
|
-
"""
|
|
141
|
-
The Assets joined to this Workbench, each carrying its `relationship` and logical `path`.
|
|
142
|
-
"""
|
|
132
|
+
"""The assets in the workbench."""
|
|
143
133
|
assets(
|
|
144
|
-
"""
|
|
145
|
-
Filter to only `OWNED` or only `IMPORTED` memberships. Omit to return both.
|
|
146
|
-
"""
|
|
134
|
+
"""The relationship to filter by. Omit it for both."""
|
|
147
135
|
relationship: WorkbenchAssetRelationship
|
|
148
136
|
first: Int
|
|
149
137
|
after: String
|
|
@@ -156,7 +144,8 @@ type Workbench {
|
|
|
156
144
|
```graphql
|
|
157
145
|
extend type Experience {
|
|
158
146
|
"""
|
|
159
|
-
|
|
147
|
+
The workbench of the experience, found by its `key`. Reading it creates the workbench when none
|
|
148
|
+
exists, and needs `ORGANIZATION_WORKSPACE_UPDATE`.
|
|
160
149
|
"""
|
|
161
150
|
workbench: Workbench!
|
|
162
151
|
}
|
|
@@ -167,7 +156,8 @@ extend type Experience {
|
|
|
167
156
|
```graphql
|
|
168
157
|
extend type DesignSystem {
|
|
169
158
|
"""
|
|
170
|
-
|
|
159
|
+
The workbench of the design system. Reading it creates the workbench when none exists, and needs
|
|
160
|
+
`ORGANIZATION_WORKSPACE_UPDATE`.
|
|
171
161
|
"""
|
|
172
162
|
workbench: Workbench!
|
|
173
163
|
}
|
|
@@ -176,11 +166,11 @@ extend type DesignSystem {
|
|
|
176
166
|
### `WorkbenchAssetImportInput`
|
|
177
167
|
|
|
178
168
|
```graphql
|
|
179
|
-
"""
|
|
169
|
+
"""The input of `workbenchAssetImport`."""
|
|
180
170
|
input WorkbenchAssetImportInput {
|
|
181
|
-
"""The
|
|
171
|
+
"""The ID of the workbench to import into."""
|
|
182
172
|
workbenchId: ID!
|
|
183
|
-
"""The
|
|
173
|
+
"""The ID of the asset to import."""
|
|
184
174
|
assetId: ID!
|
|
185
175
|
}
|
|
186
176
|
```
|
|
@@ -188,9 +178,9 @@ input WorkbenchAssetImportInput {
|
|
|
188
178
|
### `WorkbenchAssetImportPayload`
|
|
189
179
|
|
|
190
180
|
```graphql
|
|
191
|
-
"""
|
|
181
|
+
"""The result of `workbenchAssetImport`."""
|
|
192
182
|
type WorkbenchAssetImportPayload {
|
|
193
|
-
"""The
|
|
183
|
+
"""The imported workbench asset."""
|
|
194
184
|
workbenchAsset: WorkbenchAsset!
|
|
195
185
|
}
|
|
196
186
|
```
|
|
@@ -198,15 +188,15 @@ type WorkbenchAssetImportPayload {
|
|
|
198
188
|
### `WorkbenchAssetAdoptOwnedInput`
|
|
199
189
|
|
|
200
190
|
```graphql
|
|
201
|
-
"""
|
|
191
|
+
"""The input of `workbenchAssetAdoptOwned`."""
|
|
202
192
|
input WorkbenchAssetAdoptOwnedInput {
|
|
203
|
-
"""The
|
|
193
|
+
"""The ID of the workbench that takes ownership."""
|
|
204
194
|
workbenchId: ID!
|
|
205
195
|
"""
|
|
206
|
-
The
|
|
196
|
+
The ID of the asset, in the workbench's project and not owned by another workbench.
|
|
207
197
|
"""
|
|
208
198
|
assetId: ID!
|
|
209
|
-
"""
|
|
199
|
+
"""The path of the asset in the workbench."""
|
|
210
200
|
path: String
|
|
211
201
|
}
|
|
212
202
|
```
|
|
@@ -214,9 +204,9 @@ input WorkbenchAssetAdoptOwnedInput {
|
|
|
214
204
|
### `WorkbenchAssetAdoptOwnedPayload`
|
|
215
205
|
|
|
216
206
|
```graphql
|
|
217
|
-
"""
|
|
207
|
+
"""The result of `workbenchAssetAdoptOwned`."""
|
|
218
208
|
type WorkbenchAssetAdoptOwnedPayload {
|
|
219
|
-
"""The
|
|
209
|
+
"""The owned workbench asset."""
|
|
220
210
|
workbenchAsset: WorkbenchAsset!
|
|
221
211
|
}
|
|
222
212
|
```
|
|
@@ -224,11 +214,11 @@ type WorkbenchAssetAdoptOwnedPayload {
|
|
|
224
214
|
### `WorkbenchAssetRemoveInput`
|
|
225
215
|
|
|
226
216
|
```graphql
|
|
227
|
-
"""
|
|
217
|
+
"""The input of `workbenchAssetRemove`."""
|
|
228
218
|
input WorkbenchAssetRemoveInput {
|
|
229
|
-
"""The
|
|
219
|
+
"""The ID of the workbench to remove the asset from."""
|
|
230
220
|
workbenchId: ID!
|
|
231
|
-
"""The
|
|
221
|
+
"""The ID of the asset to remove."""
|
|
232
222
|
assetId: ID!
|
|
233
223
|
}
|
|
234
224
|
```
|
|
@@ -236,11 +226,9 @@ input WorkbenchAssetRemoveInput {
|
|
|
236
226
|
### `WorkbenchAssetRemovePayload`
|
|
237
227
|
|
|
238
228
|
```graphql
|
|
239
|
-
"""
|
|
229
|
+
"""The result of `workbenchAssetRemove`."""
|
|
240
230
|
type WorkbenchAssetRemovePayload {
|
|
241
|
-
"""
|
|
242
|
-
The Asset id that was removed from the Workbench. Only the join is guaranteed removed; the Asset itself is also soft-deleted when the membership was `OWNED`.
|
|
243
|
-
"""
|
|
231
|
+
"""The ID of the removed asset."""
|
|
244
232
|
removedAssetId: ID!
|
|
245
233
|
}
|
|
246
234
|
```
|
|
@@ -6,13 +6,14 @@ generated: true
|
|
|
6
6
|
|
|
7
7
|
# Workflow run schema
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
See [Management API schema](/reference/management-api/schema) for every domain, the endpoint and authentication.
|
|
10
10
|
|
|
11
11
|
## Queries
|
|
12
12
|
|
|
13
13
|
### `workflowRun`
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Reads a workflow run.
|
|
16
|
+
Scope: `ORGANIZATION_PROJECTS_READ`.
|
|
16
17
|
|
|
17
18
|
```graphql
|
|
18
19
|
workflowRun(id: ID!): WorkflowRun @auth
|
|
@@ -23,13 +24,13 @@ workflowRun(id: ID!): WorkflowRun @auth
|
|
|
23
24
|
### `WorkflowRunStatus`
|
|
24
25
|
|
|
25
26
|
```graphql
|
|
26
|
-
"""
|
|
27
|
+
"""The state of a workflow run."""
|
|
27
28
|
enum WorkflowRunStatus {
|
|
28
|
-
"""
|
|
29
|
+
"""Started and not yet ended."""
|
|
29
30
|
RUNNING
|
|
30
|
-
"""
|
|
31
|
+
"""Ended with every task succeeded."""
|
|
31
32
|
COMPLETED
|
|
32
|
-
"""
|
|
33
|
+
"""Stopped at a failed task."""
|
|
33
34
|
FAILED
|
|
34
35
|
}
|
|
35
36
|
```
|
|
@@ -37,7 +38,7 @@ enum WorkflowRunStatus {
|
|
|
37
38
|
### `WorkflowTaskType`
|
|
38
39
|
|
|
39
40
|
```graphql
|
|
40
|
-
"""The kind of node a task ran."""
|
|
41
|
+
"""The kind of node a workflow task ran."""
|
|
41
42
|
enum WorkflowTaskType {
|
|
42
43
|
"""The trigger node the run started from."""
|
|
43
44
|
ORIGIN
|
|
@@ -45,7 +46,7 @@ enum WorkflowTaskType {
|
|
|
45
46
|
TOOL
|
|
46
47
|
"""A condition node, which chose a branch."""
|
|
47
48
|
CONDITION
|
|
48
|
-
"""A sleep node, which
|
|
49
|
+
"""A sleep node, which paused the run."""
|
|
49
50
|
SLEEP
|
|
50
51
|
}
|
|
51
52
|
```
|
|
@@ -53,13 +54,13 @@ enum WorkflowTaskType {
|
|
|
53
54
|
### `WorkflowTaskStatus`
|
|
54
55
|
|
|
55
56
|
```graphql
|
|
56
|
-
"""
|
|
57
|
+
"""The state of a workflow task."""
|
|
57
58
|
enum WorkflowTaskStatus {
|
|
58
|
-
"""
|
|
59
|
+
"""Started and not yet ended."""
|
|
59
60
|
RUNNING
|
|
60
|
-
"""
|
|
61
|
+
"""Ended with its work done."""
|
|
61
62
|
SUCCEEDED
|
|
62
|
-
"""
|
|
63
|
+
"""Failed, which stopped the run."""
|
|
63
64
|
FAILED
|
|
64
65
|
}
|
|
65
66
|
```
|
|
@@ -68,11 +69,11 @@ enum WorkflowTaskStatus {
|
|
|
68
69
|
|
|
69
70
|
```graphql
|
|
70
71
|
"""
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
The orders `Workflow.runs` can sort by. A cursor is valid only for the `sortKey` and `reverse` it
|
|
73
|
+
came from.
|
|
73
74
|
"""
|
|
74
75
|
enum WorkflowRunSortKeys {
|
|
75
|
-
"""
|
|
76
|
+
"""By `startedAt`."""
|
|
76
77
|
STARTED_AT
|
|
77
78
|
}
|
|
78
79
|
```
|
|
@@ -81,13 +82,11 @@ enum WorkflowRunSortKeys {
|
|
|
81
82
|
|
|
82
83
|
```graphql
|
|
83
84
|
"""
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
The orders `WorkflowRun.tasks` can sort by. A cursor is valid only for the `sortKey` and
|
|
86
|
+
`reverse` it came from.
|
|
86
87
|
"""
|
|
87
88
|
enum WorkflowTaskSortKeys {
|
|
88
|
-
"""
|
|
89
|
-
Sort by `startedAt`: the order the run executed its tasks in, one at a time.
|
|
90
|
-
"""
|
|
89
|
+
"""By `startedAt`, which is the order the run ran its tasks in."""
|
|
91
90
|
STARTED_AT
|
|
92
91
|
}
|
|
93
92
|
```
|
|
@@ -96,55 +95,48 @@ enum WorkflowTaskSortKeys {
|
|
|
96
95
|
|
|
97
96
|
```graphql
|
|
98
97
|
"""
|
|
99
|
-
One execution of a workflow
|
|
100
|
-
started
|
|
101
|
-
|
|
102
|
-
A run is started by an event and walks the workflow's graph in order; `tasks`
|
|
103
|
-
lists every node it reached. `failureReason` is set only when `status` is
|
|
104
|
-
`FAILED` and names a node, a tool or an argument, never anything a tool read.
|
|
98
|
+
One execution of a workflow, started by an event. A run executes the published workflow, or the
|
|
99
|
+
draft for a run started in a preview.
|
|
105
100
|
"""
|
|
106
101
|
type WorkflowRun {
|
|
107
|
-
"""
|
|
102
|
+
"""The ID of the run."""
|
|
108
103
|
id: ID!
|
|
109
|
-
"""
|
|
110
|
-
ID of the workflow the run executed. Present after the workflow is deleted,
|
|
111
|
-
which is what a link to the run is built from.
|
|
112
|
-
"""
|
|
104
|
+
"""The ID of the workflow, which stays after the workflow is deleted."""
|
|
113
105
|
workflowId: ID!
|
|
114
106
|
"""
|
|
115
|
-
ID of the workspace the workflow
|
|
107
|
+
The ID of the workspace of the workflow. A workflow ID is unique only within its workspace.
|
|
116
108
|
"""
|
|
117
109
|
workspaceId: ID!
|
|
118
110
|
"""
|
|
119
|
-
The workflow
|
|
120
|
-
`ORGANIZATION_WORKSPACE_READ`.
|
|
111
|
+
The workflow. Null when the workflow was deleted.
|
|
112
|
+
Scope: `ORGANIZATION_WORKSPACE_READ`.
|
|
121
113
|
"""
|
|
122
114
|
workflow: Workflow
|
|
123
|
-
"""
|
|
115
|
+
"""The state of the run."""
|
|
124
116
|
status: WorkflowRunStatus!
|
|
125
117
|
"""When the run started."""
|
|
126
118
|
startedAt: DateTime!
|
|
127
|
-
"""When the run ended
|
|
119
|
+
"""When the run ended. Null while it runs."""
|
|
128
120
|
finishedAt: DateTime
|
|
129
|
-
"""
|
|
121
|
+
"""
|
|
122
|
+
Why the run failed, naming a node, a tool or an argument but never data a tool read. Null unless
|
|
123
|
+
`status` is `FAILED`.
|
|
124
|
+
"""
|
|
130
125
|
failureReason: String
|
|
131
126
|
"""
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
its writes are real.
|
|
127
|
+
Whether a visitor started the run in a preview. A preview run executes the draft as it stood
|
|
128
|
+
when the run started, and its writes are real.
|
|
135
129
|
"""
|
|
136
130
|
preview: Boolean!
|
|
137
131
|
"""
|
|
138
|
-
The tasks the run
|
|
139
|
-
|
|
132
|
+
The tasks of the run, one per visit of a node, in the order the run reached them.
|
|
133
|
+
Scope: `ORGANIZATION_PROJECTS_READ`.
|
|
140
134
|
"""
|
|
141
135
|
tasks(first: Int, after: String, sortKey: WorkflowTaskSortKeys = STARTED_AT, reverse: Boolean = false): WorkflowTaskConnection! @auth
|
|
142
136
|
"""
|
|
143
|
-
The
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
Write them with `labelsSet`, `ownerType: WORKFLOW_RUN` and the run's id.
|
|
147
|
-
Requires scope: `ORGANIZATION_PROJECTS_READ`.
|
|
137
|
+
The live labels on the run, ordered by namespace, then key. `labelsSet` with `ownerType:
|
|
138
|
+
WORKFLOW_RUN` writes them.
|
|
139
|
+
Scope: `ORGANIZATION_PROJECTS_READ`.
|
|
148
140
|
"""
|
|
149
141
|
labels: [Label!]! @auth
|
|
150
142
|
}
|
|
@@ -154,39 +146,36 @@ type WorkflowRun {
|
|
|
154
146
|
|
|
155
147
|
```graphql
|
|
156
148
|
"""
|
|
157
|
-
One
|
|
158
|
-
|
|
159
|
-
A tool task's `operations` are the creates, updates and deletes it made to
|
|
160
|
-
leads and labels. Other kinds perform none.
|
|
149
|
+
One visit of a workflow run to a node, and its outcome. Only a tool task has `operations`.
|
|
161
150
|
"""
|
|
162
151
|
type WorkflowTask {
|
|
163
|
-
"""
|
|
152
|
+
"""The ID of the task, the same across every attempt of one visit."""
|
|
164
153
|
id: ID!
|
|
165
154
|
"""
|
|
166
|
-
The ID of the
|
|
155
|
+
The ID of the node the task ran, as the `nodes` of the workflow name it.
|
|
167
156
|
"""
|
|
168
157
|
stepId: ID!
|
|
169
158
|
"""
|
|
170
|
-
|
|
159
|
+
The number of the visit to the node, from 1. A run that enters a node again records a new task.
|
|
171
160
|
"""
|
|
172
161
|
visit: Int!
|
|
173
162
|
"""The kind of node the task ran."""
|
|
174
163
|
type: WorkflowTaskType!
|
|
175
|
-
"""The tool
|
|
164
|
+
"""The tool the task ran. Null when the task is not a `TOOL` task."""
|
|
176
165
|
tool: String
|
|
177
|
-
"""
|
|
166
|
+
"""The state of the task."""
|
|
178
167
|
status: WorkflowTaskStatus!
|
|
179
168
|
"""When the task started."""
|
|
180
169
|
startedAt: DateTime!
|
|
181
|
-
"""When the task ended
|
|
170
|
+
"""When the task ended. Null while it runs."""
|
|
182
171
|
finishedAt: DateTime
|
|
183
|
-
"""Why the task failed
|
|
172
|
+
"""Why the task failed. Null unless `status` is `FAILED`."""
|
|
184
173
|
failureReason: String
|
|
185
|
-
"""The run
|
|
174
|
+
"""The run of the task."""
|
|
186
175
|
run: WorkflowRun!
|
|
187
176
|
"""
|
|
188
|
-
|
|
189
|
-
|
|
177
|
+
The creates, updates and deletes the task made to leads and labels, newest first.
|
|
178
|
+
Scope: `ORGANIZATION_PROJECTS_READ`.
|
|
190
179
|
"""
|
|
191
180
|
operations(first: Int, after: String, sortKey: OperationSortKeys = OCCURRED_AT, reverse: Boolean = true): OperationConnection! @auth
|
|
192
181
|
}
|
|
@@ -195,15 +184,15 @@ type WorkflowTask {
|
|
|
195
184
|
### `WorkflowRunConnection`
|
|
196
185
|
|
|
197
186
|
```graphql
|
|
198
|
-
"""
|
|
187
|
+
"""A page of workflow runs."""
|
|
199
188
|
type WorkflowRunConnection {
|
|
200
|
-
"""
|
|
189
|
+
"""The edges in this page."""
|
|
201
190
|
edges: [WorkflowRunEdge!]!
|
|
202
|
-
"""
|
|
191
|
+
"""The runs in this page."""
|
|
203
192
|
nodes: [WorkflowRun!]!
|
|
204
|
-
"""
|
|
193
|
+
"""Where this page sits in the list."""
|
|
205
194
|
pageInfo: PageInfo!
|
|
206
|
-
"""
|
|
195
|
+
"""The total number of runs."""
|
|
207
196
|
totalCount: Int!
|
|
208
197
|
}
|
|
209
198
|
```
|
|
@@ -211,9 +200,9 @@ type WorkflowRunConnection {
|
|
|
211
200
|
### `WorkflowRunEdge`
|
|
212
201
|
|
|
213
202
|
```graphql
|
|
214
|
-
"""
|
|
203
|
+
"""A workflow run in a page of results."""
|
|
215
204
|
type WorkflowRunEdge {
|
|
216
|
-
"""
|
|
205
|
+
"""The cursor of this edge."""
|
|
217
206
|
cursor: String!
|
|
218
207
|
"""The run."""
|
|
219
208
|
node: WorkflowRun!
|
|
@@ -223,17 +212,15 @@ type WorkflowRunEdge {
|
|
|
223
212
|
### `WorkflowTaskConnection`
|
|
224
213
|
|
|
225
214
|
```graphql
|
|
226
|
-
"""
|
|
215
|
+
"""A page of workflow tasks."""
|
|
227
216
|
type WorkflowTaskConnection {
|
|
228
|
-
"""
|
|
217
|
+
"""The edges in this page."""
|
|
229
218
|
edges: [WorkflowTaskEdge!]!
|
|
230
|
-
"""
|
|
231
|
-
Flat list of tasks, equivalent to `edges[].node`. Convenience accessor.
|
|
232
|
-
"""
|
|
219
|
+
"""The tasks in this page."""
|
|
233
220
|
nodes: [WorkflowTask!]!
|
|
234
|
-
"""
|
|
221
|
+
"""Where this page sits in the list."""
|
|
235
222
|
pageInfo: PageInfo!
|
|
236
|
-
"""
|
|
223
|
+
"""The total number of tasks in the run."""
|
|
237
224
|
totalCount: Int!
|
|
238
225
|
}
|
|
239
226
|
```
|
|
@@ -241,9 +228,9 @@ type WorkflowTaskConnection {
|
|
|
241
228
|
### `WorkflowTaskEdge`
|
|
242
229
|
|
|
243
230
|
```graphql
|
|
244
|
-
"""
|
|
231
|
+
"""A workflow task in a page of results."""
|
|
245
232
|
type WorkflowTaskEdge {
|
|
246
|
-
"""
|
|
233
|
+
"""The cursor of this edge."""
|
|
247
234
|
cursor: String!
|
|
248
235
|
"""The task."""
|
|
249
236
|
node: WorkflowTask!
|
|
@@ -255,8 +242,8 @@ type WorkflowTaskEdge {
|
|
|
255
242
|
```graphql
|
|
256
243
|
extend type Workflow {
|
|
257
244
|
"""
|
|
258
|
-
|
|
259
|
-
|
|
245
|
+
The runs of the workflow, oldest first.
|
|
246
|
+
Scope: `ORGANIZATION_PROJECTS_READ`.
|
|
260
247
|
"""
|
|
261
248
|
runs(first: Int, after: String, last: Int, before: String, sortKey: WorkflowRunSortKeys = STARTED_AT, reverse: Boolean = false): WorkflowRunConnection! @auth
|
|
262
249
|
}
|