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.
Files changed (36) hide show
  1. package/docs/reference/dashboard/workflow-test-runs.md +40 -17
  2. package/docs/reference/management-api/schema/action.md +67 -79
  3. package/docs/reference/management-api/schema/analytics-session.md +77 -94
  4. package/docs/reference/management-api/schema/analytics.md +16 -14
  5. package/docs/reference/management-api/schema/api-key.md +43 -51
  6. package/docs/reference/management-api/schema/auth.md +271 -404
  7. package/docs/reference/management-api/schema/cms-fields.md +348 -245
  8. package/docs/reference/management-api/schema/cms-models.md +369 -378
  9. package/docs/reference/management-api/schema/common.md +69 -130
  10. package/docs/reference/management-api/schema/condition.md +63 -74
  11. package/docs/reference/management-api/schema/design-system.md +59 -51
  12. package/docs/reference/management-api/schema/experience.md +388 -364
  13. package/docs/reference/management-api/schema/external-api.md +153 -171
  14. package/docs/reference/management-api/schema/feature.md +85 -103
  15. package/docs/reference/management-api/schema/feedback.md +27 -31
  16. package/docs/reference/management-api/schema/field.md +117 -135
  17. package/docs/reference/management-api/schema/index.md +184 -184
  18. package/docs/reference/management-api/schema/integration.md +72 -78
  19. package/docs/reference/management-api/schema/label.md +81 -137
  20. package/docs/reference/management-api/schema/lead.md +80 -119
  21. package/docs/reference/management-api/schema/mcp-server.md +73 -71
  22. package/docs/reference/management-api/schema/metric.md +6 -9
  23. package/docs/reference/management-api/schema/operation.md +17 -26
  24. package/docs/reference/management-api/schema/organization.md +198 -220
  25. package/docs/reference/management-api/schema/project.md +177 -186
  26. package/docs/reference/management-api/schema/report.md +69 -65
  27. package/docs/reference/management-api/schema/saved-view.md +71 -71
  28. package/docs/reference/management-api/schema/shopify.md +331 -204
  29. package/docs/reference/management-api/schema/step.md +72 -80
  30. package/docs/reference/management-api/schema/tenant-branding.md +48 -70
  31. package/docs/reference/management-api/schema/workbench.md +54 -66
  32. package/docs/reference/management-api/schema/workflow-run.md +66 -79
  33. package/docs/reference/management-api/schema/workflow.md +310 -353
  34. package/docs/reference/management-api/schema/workspace-version.md +212 -261
  35. package/docs/reference/management-api/schema/workspace.md +275 -328
  36. package/package.json +4 -4
@@ -6,13 +6,15 @@ generated: true
6
6
 
7
7
  # Workbench schema
8
8
 
9
- The operations and types that `workbench.graphql` adds to the Management API. See [Management API schema](/reference/management-api/schema) for every domain, the endpoint and authentication.
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 Asset owned elsewhere into a Workbench, creating an `IMPORTED` membership. Removing the import (`workbenchAssetRemove`) drops only the join, never the Asset.
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
- Adopts an existing project-library Asset as `OWNED` by a Workbench, transferring the Asset's ownership. Used when a Create-Page upload is bound to its Workbench after the Workbench is created.
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 Asset's membership from a Workbench. If the membership was `OWNED`, the Asset is also soft-deleted; if `IMPORTED`, only the join is dropped.
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 Asset relates to the Workbench it is joined to."""
47
+ """How an asset belongs to a workbench."""
43
48
  enum WorkbenchAssetRelationship {
44
49
  """
45
- Authored or uploaded directly into this Workbench. Soft-deleted when removed.
50
+ Uploaded into the workbench, which owns it. Removing it deletes the asset.
46
51
  """
47
52
  OWNED
48
53
  """
49
- A reference to an Asset owned elsewhere (for example a Design System's DESIGN.md). Removing it drops only the join.
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
- """Identifies the logical entity a Workbench belongs to."""
63
+ """The experience or design system that a workbench belongs to."""
59
64
  type WorkbenchOwner {
60
- """The owner kind: `"experience"` or `"design_system"`."""
65
+ """The kind of owner: `"experience"` or `"design_system"`."""
61
66
  type: String!
62
67
  """
63
- The owner's stable cross-workspace reference: an Experience's `key`, or a Design System's `id`.
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 Asset's membership in a Workbench."""
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 Asset."""
83
+ """The asset."""
83
84
  asset: Asset!
84
85
  """
85
- The Design System this Asset was imported from, when it is a Design System's file; null otherwise.
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
- """Edge type for `WorkbenchAssetConnection`."""
95
+ """A workbench asset in a page of results."""
95
96
  type WorkbenchAssetEdge {
96
- """Pagination cursor for this edge."""
97
+ """The cursor of this edge."""
97
98
  cursor: String!
98
- """The Workbench-Asset membership."""
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
- """List of Workbench-Asset membership edges."""
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
- """Pagination metadata."""
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 cross-workspace working directory for a logical entity (an Experience or a
130
- Design System), associated by `(project, ownerType, ownerRef)`. A Workbench is
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
- """Unique Workbench identifier."""
128
+ """The ID of the workbench."""
137
129
  id: ID!
138
- """The logical entity this Workbench belongs to."""
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
- This Experience's Workbench, resolved (and created on first access) by its stable `key`.
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
- This Design System's Workbench, resolved (and created on first access) by its `id`.
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
- """Input for `workbenchAssetImport`."""
169
+ """The input of `workbenchAssetImport`."""
180
170
  input WorkbenchAssetImportInput {
181
- """The Workbench to import into."""
171
+ """The ID of the workbench to import into."""
182
172
  workbenchId: ID!
183
- """The Asset to import, owned elsewhere."""
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
- """Payload returned by `workbenchAssetImport`."""
181
+ """The result of `workbenchAssetImport`."""
192
182
  type WorkbenchAssetImportPayload {
193
- """The newly created `IMPORTED` membership."""
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
- """Input for `workbenchAssetAdoptOwned`."""
191
+ """The input of `workbenchAssetAdoptOwned`."""
202
192
  input WorkbenchAssetAdoptOwnedInput {
203
- """The Workbench that should take ownership of the Asset."""
193
+ """The ID of the workbench that takes ownership."""
204
194
  workbenchId: ID!
205
195
  """
206
- The project-library Asset to adopt as `OWNED`, transferring its ownership to the Workbench.
196
+ The ID of the asset, in the workbench's project and not owned by another workbench.
207
197
  """
208
198
  assetId: ID!
209
- """Optional logical path to assign the membership within the Workbench."""
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
- """Payload returned by `workbenchAssetAdoptOwned`."""
207
+ """The result of `workbenchAssetAdoptOwned`."""
218
208
  type WorkbenchAssetAdoptOwnedPayload {
219
- """The `OWNED` membership after adoption."""
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
- """Input for `workbenchAssetRemove`."""
217
+ """The input of `workbenchAssetRemove`."""
228
218
  input WorkbenchAssetRemoveInput {
229
- """The Workbench to remove the Asset from."""
219
+ """The ID of the workbench to remove the asset from."""
230
220
  workbenchId: ID!
231
- """The Asset to remove."""
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
- """Payload returned by `workbenchAssetRemove`."""
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
- The operations and types that `workflow-run.graphql` adds to the Management API. See [Management API schema](/reference/management-api/schema) for every domain, the endpoint and authentication.
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
- Get a workflow run by ID. Requires scope: `ORGANIZATION_PROJECTS_READ`.
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
- """Where a run is in its life."""
27
+ """The state of a workflow run."""
27
28
  enum WorkflowRunStatus {
28
- """The run has started and not yet ended."""
29
+ """Started and not yet ended."""
29
30
  RUNNING
30
- """Every task the run reached succeeded."""
31
+ """Ended with every task succeeded."""
31
32
  COMPLETED
32
- """A task failed and the run stopped there."""
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 suspended the run."""
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
- """Where a task is in its life."""
57
+ """The state of a workflow task."""
57
58
  enum WorkflowTaskStatus {
58
- """The task has started and not yet ended."""
59
+ """Started and not yet ended."""
59
60
  RUNNING
60
- """The task did its work."""
61
+ """Ended with its work done."""
61
62
  SUCCEEDED
62
- """The task failed, and the run with it."""
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
- Sort keys accepted by `Workflow.runs(...)`. Pair with `reverse: true` to flip
72
- the order. A cursor belongs to the order it was issued under: change `sortKey` or `reverse` only from the first page.
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
- """Sort by `startedAt`."""
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
- Sort keys accepted by `WorkflowRun.tasks(...)`. Pair with `reverse: true` to
85
- flip the order. A cursor belongs to the order it was issued under: change `sortKey` or `reverse` only from the first page.
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: its published version, or its draft for a run
100
- started on the preview surface.
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
- """Unique run identifier."""
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 belongs to. A workflow ID is unique only within its workspace.
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 the run executed, or null once it is deleted. Requires scope:
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
- """Where the run is in its life."""
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, or null while it is running."""
119
+ """When the run ended. Null while it runs."""
128
120
  finishedAt: DateTime
129
- """Why the run failed, or null unless it did."""
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
- True when a visitor on the preview surface started the run. A preview run
133
- executes the workspace's draft workflow as it stood when the run started, and
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 performed, one per visit of a node, in the order it reached them;
139
- pass `reverse: true` for the latest first. Requires scope: `ORGANIZATION_PROJECTS_READ`.
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 run's labels, ordered by namespace then key: state the run keeps about
144
- itself, such as its outcome, or a person's notes on it. An expired label is
145
- not listed. Run labels outlive every lead.
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 task of a workflow run: one visit of a node the run reached, and what came of it.
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
- """Unique task identifier. The same across every attempt of one visit."""
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 graph node the task ran, as the workflow's `nodes` name it.
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
- Which visit of its node the task is, from 1. A run that re-enters a node records each visit as a task of its own.
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 a tool task ran, or null for another kind."""
164
+ """The tool the task ran. Null when the task is not a `TOOL` task."""
176
165
  tool: String
177
- """Where the task is in its life."""
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, or null while it is running."""
170
+ """When the task ended. Null while it runs."""
182
171
  finishedAt: DateTime
183
- """Why the task failed, or null unless it did."""
172
+ """Why the task failed. Null unless `status` is `FAILED`."""
184
173
  failureReason: String
185
- """The run this task belongs to."""
174
+ """The run of the task."""
186
175
  run: WorkflowRun!
187
176
  """
188
- What the task did to leads and labels, latest first; pass `reverse: false`
189
- for the order performed. Requires scope: `ORGANIZATION_PROJECTS_READ`.
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
- """Relay-style connection of workflow runs."""
187
+ """A page of workflow runs."""
199
188
  type WorkflowRunConnection {
200
- """List of run edges."""
189
+ """The edges in this page."""
201
190
  edges: [WorkflowRunEdge!]!
202
- """Flat list of runs, equivalent to `edges[].node`. Convenience accessor."""
191
+ """The runs in this page."""
203
192
  nodes: [WorkflowRun!]!
204
- """Pagination metadata."""
193
+ """Where this page sits in the list."""
205
194
  pageInfo: PageInfo!
206
- """Total number of runs in the list."""
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
- """Edge type for `WorkflowRunConnection`."""
203
+ """A workflow run in a page of results."""
215
204
  type WorkflowRunEdge {
216
- """Pagination cursor for this edge."""
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
- """Relay-style connection of workflow run tasks."""
215
+ """A page of workflow tasks."""
227
216
  type WorkflowTaskConnection {
228
- """List of task edges."""
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
- """Pagination metadata."""
221
+ """Where this page sits in the list."""
235
222
  pageInfo: PageInfo!
236
- """Total number of tasks the run performed."""
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
- """Edge type for `WorkflowTaskConnection`."""
231
+ """A workflow task in a page of results."""
245
232
  type WorkflowTaskEdge {
246
- """Pagination cursor for this edge."""
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
- This workflow's runs in its workspace, oldest first; pass `reverse: true`
259
- for the latest first. Requires scope: `ORGANIZATION_PROJECTS_READ`.
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
  }