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,16 +6,16 @@ generated: true
|
|
|
6
6
|
|
|
7
7
|
# Label 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
|
### `labelsSet`
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
`
|
|
17
|
-
`ORGANIZATION_PROJECTS_UPDATE
|
|
18
|
-
`
|
|
15
|
+
Creates or replaces labels on a lead, a project or a workflow run. Labels the call does not name
|
|
16
|
+
are unchanged. A `LEAD` owner needs `ORGANIZATION_LEADS_UPDATE`; the other owners need
|
|
17
|
+
`ORGANIZATION_PROJECTS_UPDATE`.
|
|
18
|
+
Scope: `ORGANIZATION_LEADS_UPDATE` or `ORGANIZATION_PROJECTS_UPDATE`.
|
|
19
19
|
|
|
20
20
|
```graphql
|
|
21
21
|
labelsSet(input: LabelsSetInput!): LabelsSetPayload! @auth
|
|
@@ -23,9 +23,10 @@ labelsSet(input: LabelsSetInput!): LabelsSetPayload! @auth
|
|
|
23
23
|
|
|
24
24
|
### `labelsDelete`
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
Deletes labels from a lead, a project or a workflow run. Deleting a label that is not set
|
|
27
|
+
succeeds. A `LEAD` owner needs `ORGANIZATION_LEADS_UPDATE`; the other owners need
|
|
28
|
+
`ORGANIZATION_PROJECTS_UPDATE`.
|
|
29
|
+
Scope: `ORGANIZATION_LEADS_UPDATE` or `ORGANIZATION_PROJECTS_UPDATE`.
|
|
29
30
|
|
|
30
31
|
```graphql
|
|
31
32
|
labelsDelete(input: LabelsDeleteInput!): LabelsDeletePayload! @auth
|
|
@@ -36,7 +37,7 @@ labelsDelete(input: LabelsDeleteInput!): LabelsDeletePayload! @auth
|
|
|
36
37
|
### `LabelType`
|
|
37
38
|
|
|
38
39
|
```graphql
|
|
39
|
-
"""How to read a label
|
|
40
|
+
"""How to read the `value` of a label."""
|
|
40
41
|
enum LabelType {
|
|
41
42
|
"""A plain string."""
|
|
42
43
|
TEXT
|
|
@@ -53,8 +54,7 @@ enum LabelType {
|
|
|
53
54
|
|
|
54
55
|
```graphql
|
|
55
56
|
"""
|
|
56
|
-
The kind of entity a label is
|
|
57
|
-
scope and written under another:
|
|
57
|
+
The kind of entity a label is on. Each kind is read and written under its own scopes:
|
|
58
58
|
|
|
59
59
|
| Owner type | Read scope | Write scope |
|
|
60
60
|
| --- | --- | --- |
|
|
@@ -62,14 +62,14 @@ scope and written under another:
|
|
|
62
62
|
| `PROJECT` | `ORGANIZATION_PROJECTS_READ` | `ORGANIZATION_PROJECTS_UPDATE` |
|
|
63
63
|
| `WORKFLOW_RUN` | `ORGANIZATION_PROJECTS_READ` | `ORGANIZATION_PROJECTS_UPDATE` |
|
|
64
64
|
|
|
65
|
-
A workflow run reads and writes its own labels without
|
|
65
|
+
A workflow run reads and writes its own labels without a scope.
|
|
66
66
|
"""
|
|
67
67
|
enum LabelOwnerType {
|
|
68
|
-
"""A
|
|
68
|
+
"""A lead. Its labels are deleted with it."""
|
|
69
69
|
LEAD
|
|
70
|
-
"""A project
|
|
70
|
+
"""A project. The owner ID is the project ID."""
|
|
71
71
|
PROJECT
|
|
72
|
-
"""A workflow run.
|
|
72
|
+
"""A workflow run."""
|
|
73
73
|
WORKFLOW_RUN
|
|
74
74
|
}
|
|
75
75
|
```
|
|
@@ -78,31 +78,27 @@ enum LabelOwnerType {
|
|
|
78
78
|
|
|
79
79
|
```graphql
|
|
80
80
|
"""
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
A label written with `expiresIn` expires that many seconds after the write.
|
|
85
|
-
Once it has expired it reads as absent: it leaves its owner's `labels`, matches
|
|
86
|
-
no lead query clause, and a later write to it creates a new label with a new id.
|
|
81
|
+
A name and a value on a lead, a project or a workflow run. An owner holds one label per namespace
|
|
82
|
+
and key, and an expired label reads as absent everywhere.
|
|
87
83
|
"""
|
|
88
84
|
type Label {
|
|
89
|
-
"""
|
|
85
|
+
"""The ID of the label."""
|
|
90
86
|
id: ID!
|
|
91
|
-
"""
|
|
87
|
+
"""The first part of the name of the label, which groups related keys."""
|
|
92
88
|
namespace: String!
|
|
93
|
-
"""
|
|
89
|
+
"""The name of the label within its namespace."""
|
|
94
90
|
key: String!
|
|
95
91
|
"""How to read `value`."""
|
|
96
92
|
type: LabelType!
|
|
97
|
-
"""The value,
|
|
93
|
+
"""The value, as a string to read through `type`."""
|
|
98
94
|
value: String!
|
|
99
|
-
"""When
|
|
95
|
+
"""When the label was created."""
|
|
100
96
|
createdAt: DateTime!
|
|
101
|
-
"""When
|
|
97
|
+
"""When the label last changed."""
|
|
102
98
|
updatedAt: DateTime!
|
|
103
|
-
"""When
|
|
99
|
+
"""When the label expires. Null when it does not expire."""
|
|
104
100
|
expiresAt: DateTime
|
|
105
|
-
"""The
|
|
101
|
+
"""The lead, project or workflow run the label is on."""
|
|
106
102
|
owner: LabelOwner!
|
|
107
103
|
}
|
|
108
104
|
```
|
|
@@ -110,7 +106,7 @@ type Label {
|
|
|
110
106
|
### `LabelOwner`
|
|
111
107
|
|
|
112
108
|
```graphql
|
|
113
|
-
"""The
|
|
109
|
+
"""The entity a label is on: a lead, a project or a workflow run."""
|
|
114
110
|
union LabelOwner = Lead | Project | WorkflowRun
|
|
115
111
|
```
|
|
116
112
|
|
|
@@ -118,22 +114,20 @@ union LabelOwner = Lead | Project | WorkflowRun
|
|
|
118
114
|
|
|
119
115
|
```graphql
|
|
120
116
|
"""
|
|
121
|
-
|
|
122
|
-
task, a person or an integration. `label` is null once the label has been
|
|
123
|
-
removed or has expired.
|
|
117
|
+
A change to a label, made by a workflow run task, a person or an integration.
|
|
124
118
|
"""
|
|
125
119
|
type LabelOperation implements Operation {
|
|
126
|
-
"""
|
|
120
|
+
"""The ID of the operation."""
|
|
127
121
|
id: ID!
|
|
128
|
-
"""What
|
|
122
|
+
"""What the operation did to the label."""
|
|
129
123
|
type: OperationType!
|
|
130
124
|
"""When the operation happened."""
|
|
131
125
|
occurredAt: DateTime!
|
|
132
126
|
"""
|
|
133
|
-
The workflow run task that
|
|
127
|
+
The workflow run task that made the change. Null when a workflow did not make it.
|
|
134
128
|
"""
|
|
135
129
|
task: WorkflowTask
|
|
136
|
-
"""The label
|
|
130
|
+
"""The label. Null when the label was deleted or has expired."""
|
|
137
131
|
label: Label
|
|
138
132
|
}
|
|
139
133
|
```
|
|
@@ -142,61 +136,35 @@ type LabelOperation implements Operation {
|
|
|
142
136
|
|
|
143
137
|
```graphql
|
|
144
138
|
"""
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
search query language splits `labels.<namespace>.<key>` on it.
|
|
148
|
-
|
|
149
|
-
Exactly one of `value` and `increment` is required; a label carrying both, or
|
|
150
|
-
neither, is refused with `LABEL_WRITE_INVALID`.
|
|
151
|
-
|
|
152
|
-
Example, a lock that holds the caller's id for an hour unless another caller
|
|
153
|
-
holds it already:
|
|
154
|
-
|
|
155
|
-
{ namespace: "cms", key: "request-callback", type: TEXT, value: "wkrun_abc",
|
|
156
|
-
onlyIfAbsent: true, expiresIn: 3600 }
|
|
157
|
-
|
|
158
|
-
Example, a counter:
|
|
159
|
-
|
|
160
|
-
{ namespace: "cms", key: "sent-today", type: NUMBER, increment: 1, expiresIn: 86400 }
|
|
139
|
+
A label to set. A namespace and a key are each 1-64 lowercase letters, digits, underscores or
|
|
140
|
+
hyphens. Exactly one of `value` and `increment` is required.
|
|
161
141
|
"""
|
|
162
142
|
input LabelInput {
|
|
163
|
-
"""
|
|
143
|
+
"""The first part of the name of the label, which groups related keys."""
|
|
164
144
|
namespace: String!
|
|
165
|
-
"""
|
|
145
|
+
"""The name of the label within its namespace."""
|
|
166
146
|
key: String!
|
|
167
147
|
"""How to read `value`. Must be `NUMBER` with `increment`."""
|
|
168
148
|
type: LabelType!
|
|
169
149
|
"""
|
|
170
|
-
The value, as a string
|
|
171
|
-
`expiresIn` makes the label permanent, clearing any expiry it had.
|
|
150
|
+
The value, as a string that parses as `type`. Without `expiresIn`, the label does not expire.
|
|
172
151
|
"""
|
|
173
152
|
value: String
|
|
174
153
|
"""
|
|
175
|
-
A finite number to add to the
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
an increment of a label of another type is refused with
|
|
179
|
-
`VALUE_INVALID_FOR_TYPE`, and the label is unchanged. Concurrent increments
|
|
180
|
-
all count. An increment keeps a live label's expiry, so its `expiresIn`
|
|
181
|
-
applies only when the increment creates the label. Each increment records an
|
|
182
|
-
operation, and cannot be combined with `onlyIfAbsent`.
|
|
154
|
+
A finite number to add to the current value; a negative number subtracts. An absent or expired
|
|
155
|
+
label counts as 0, concurrent increments all count, and a live label keeps its expiry. Cannot
|
|
156
|
+
be combined with `onlyIfAbsent`.
|
|
183
157
|
"""
|
|
184
158
|
increment: Float
|
|
185
159
|
"""
|
|
186
|
-
|
|
187
|
-
31536000 (365 days). An expired label reads as absent everywhere.
|
|
160
|
+
The number of seconds until the label expires, from 1 to 31536000 (365 days).
|
|
188
161
|
"""
|
|
189
162
|
expiresIn: Int
|
|
190
163
|
"""
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
A live label that already holds this write's type and value counts as taken,
|
|
196
|
-
is left unchanged (its expiry included) and records no operation, so a
|
|
197
|
-
retried write reads the same result. A live label holding anything else is
|
|
198
|
-
left unchanged, is not taken, and is listed in `LabelsSetPayload.skipped`. A
|
|
199
|
-
lock's value should therefore be unique to its holder, such as a run id.
|
|
164
|
+
Whether to write the label only when no live label has this namespace and key. Of several
|
|
165
|
+
concurrent writes to an absent label, exactly one takes effect. A live label with this type and
|
|
166
|
+
value counts as written and is unchanged; a live label with another value is unchanged and is
|
|
167
|
+
listed in `LabelsSetPayload.skipped`.
|
|
200
168
|
"""
|
|
201
169
|
onlyIfAbsent: Boolean
|
|
202
170
|
}
|
|
@@ -205,17 +173,15 @@ input LabelInput {
|
|
|
205
173
|
### `LabelIdentifierInput`
|
|
206
174
|
|
|
207
175
|
```graphql
|
|
208
|
-
"""
|
|
176
|
+
"""A label to delete, named by namespace and key."""
|
|
209
177
|
input LabelIdentifierInput {
|
|
210
|
-
"""
|
|
178
|
+
"""The first part of the name of the label, which groups related keys."""
|
|
211
179
|
namespace: String!
|
|
212
|
-
"""
|
|
180
|
+
"""The name of the label within its namespace."""
|
|
213
181
|
key: String!
|
|
214
182
|
"""
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
value is left unchanged, records no operation, and is not counted as
|
|
218
|
-
removed: a holder releases its lock and never another holder's.
|
|
183
|
+
The value the label must hold to be deleted. A live label with another value is unchanged and
|
|
184
|
+
is not listed in `deletedLabelIds`.
|
|
219
185
|
"""
|
|
220
186
|
ifValue: String
|
|
221
187
|
}
|
|
@@ -224,31 +190,17 @@ input LabelIdentifierInput {
|
|
|
224
190
|
### `LabelsSetInput`
|
|
225
191
|
|
|
226
192
|
```graphql
|
|
227
|
-
"""
|
|
228
|
-
Input for `labelsSet`. Creates or replaces each named label and leaves every
|
|
229
|
-
other label on the owner untouched, so a partial save cannot discard work
|
|
230
|
-
another writer did.
|
|
231
|
-
|
|
232
|
-
The labels are taken in (namespace, key) order, so two concurrent calls naming
|
|
233
|
-
the same labels cannot deadlock.
|
|
234
|
-
"""
|
|
193
|
+
"""The input of `labelsSet`."""
|
|
235
194
|
input LabelsSetInput {
|
|
236
|
-
"""The kind of entity
|
|
195
|
+
"""The kind of entity the labels are on."""
|
|
237
196
|
ownerType: LabelOwnerType!
|
|
238
|
-
"""ID of the entity
|
|
197
|
+
"""The ID of the entity the labels are on."""
|
|
239
198
|
ownerId: ID!
|
|
240
|
-
"""
|
|
241
|
-
Labels to create or replace, one per namespace and key. A label naming the
|
|
242
|
-
namespace and key of an earlier one is refused with `LABEL_WRITE_INVALID`.
|
|
243
|
-
"""
|
|
199
|
+
"""The labels to create or replace, one per namespace and key."""
|
|
244
200
|
labels: [LabelInput!]!
|
|
245
201
|
"""
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
`skipped` the existing labels that blocked it. Of two concurrent
|
|
249
|
-
`atomic` calls that both write some label with `onlyIfAbsent`, each
|
|
250
|
-
with a value unique to its caller, at most one takes effect. Defaults to
|
|
251
|
-
false.
|
|
202
|
+
Whether to write every label or none. When an `onlyIfAbsent` label is skipped, the call writes
|
|
203
|
+
nothing and lists the blocking labels in `skipped`. Defaults to false.
|
|
252
204
|
"""
|
|
253
205
|
atomic: Boolean
|
|
254
206
|
}
|
|
@@ -257,20 +209,18 @@ input LabelsSetInput {
|
|
|
257
209
|
### `LabelsSetPayload`
|
|
258
210
|
|
|
259
211
|
```graphql
|
|
260
|
-
"""
|
|
212
|
+
"""The result of `labelsSet`."""
|
|
261
213
|
type LabelsSetPayload {
|
|
262
214
|
"""
|
|
263
|
-
The labels the call
|
|
264
|
-
|
|
265
|
-
input failed validation.
|
|
215
|
+
The labels the call wrote, and the `onlyIfAbsent` labels that already held this type and value.
|
|
216
|
+
Empty when the call has `userErrors`, or when an `atomic` call wrote nothing.
|
|
266
217
|
"""
|
|
267
218
|
labels: [Label!]!
|
|
268
219
|
"""
|
|
269
|
-
The
|
|
270
|
-
another type or value.
|
|
220
|
+
The live labels that an `onlyIfAbsent` label left in place because they held another value.
|
|
271
221
|
"""
|
|
272
222
|
skipped: [Label!]!
|
|
273
|
-
"""
|
|
223
|
+
"""The errors, one per invalid label. Empty on success."""
|
|
274
224
|
userErrors: [LabelUserError!]!
|
|
275
225
|
}
|
|
276
226
|
```
|
|
@@ -278,16 +228,13 @@ type LabelsSetPayload {
|
|
|
278
228
|
### `LabelsDeleteInput`
|
|
279
229
|
|
|
280
230
|
```graphql
|
|
281
|
-
"""
|
|
282
|
-
Input for `labelsDelete`. Deleting a label that is not set is a no-op success.
|
|
283
|
-
An expired label is deleted without being counted as removed.
|
|
284
|
-
"""
|
|
231
|
+
"""The input of `labelsDelete`."""
|
|
285
232
|
input LabelsDeleteInput {
|
|
286
|
-
"""The kind of entity
|
|
233
|
+
"""The kind of entity the labels are on."""
|
|
287
234
|
ownerType: LabelOwnerType!
|
|
288
|
-
"""ID of the entity
|
|
235
|
+
"""The ID of the entity the labels are on."""
|
|
289
236
|
ownerId: ID!
|
|
290
|
-
"""
|
|
237
|
+
"""The labels to delete."""
|
|
291
238
|
labels: [LabelIdentifierInput!]!
|
|
292
239
|
}
|
|
293
240
|
```
|
|
@@ -295,13 +242,11 @@ input LabelsDeleteInput {
|
|
|
295
242
|
### `LabelsDeletePayload`
|
|
296
243
|
|
|
297
244
|
```graphql
|
|
298
|
-
"""
|
|
245
|
+
"""The result of `labelsDelete`."""
|
|
299
246
|
type LabelsDeletePayload {
|
|
300
|
-
"""
|
|
301
|
-
IDs of the labels that were removed. A label `ifValue` spared is not listed.
|
|
302
|
-
"""
|
|
247
|
+
"""The IDs of the labels the call deleted."""
|
|
303
248
|
deletedLabelIds: [ID!]!
|
|
304
|
-
"""
|
|
249
|
+
"""The errors, one per invalid label. Empty on success."""
|
|
305
250
|
userErrors: [LabelUserError!]!
|
|
306
251
|
}
|
|
307
252
|
```
|
|
@@ -309,24 +254,23 @@ type LabelsDeletePayload {
|
|
|
309
254
|
### `LabelUserErrorCode`
|
|
310
255
|
|
|
311
256
|
```graphql
|
|
312
|
-
"""
|
|
257
|
+
"""What went wrong in a label mutation."""
|
|
313
258
|
enum LabelUserErrorCode {
|
|
314
|
-
"""
|
|
259
|
+
"""
|
|
260
|
+
The namespace has a character outside the allowed set, or a wrong length.
|
|
261
|
+
"""
|
|
315
262
|
NAMESPACE_INVALID
|
|
316
|
-
"""The key
|
|
263
|
+
"""The key has a character outside the allowed set, or a wrong length."""
|
|
317
264
|
KEY_INVALID
|
|
318
|
-
"""The value does not parse as the declared type."""
|
|
319
|
-
VALUE_INVALID_FOR_TYPE
|
|
320
265
|
"""
|
|
321
|
-
|
|
322
|
-
type's prefix.
|
|
266
|
+
The value does not parse as the type, or the incremented label is not a `NUMBER`.
|
|
323
267
|
"""
|
|
268
|
+
VALUE_INVALID_FOR_TYPE
|
|
269
|
+
"""No owner of that type has that ID."""
|
|
324
270
|
OWNER_NOT_FOUND
|
|
325
271
|
"""
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
`expiresIn` outside 1 to 31536000 seconds, or the namespace and key of an
|
|
329
|
-
earlier label in the same call.
|
|
272
|
+
A malformed write: both or neither of `value` and `increment`, `increment` with `onlyIfAbsent`
|
|
273
|
+
or a type other than `NUMBER`, `expiresIn` out of range, or a repeated namespace and key.
|
|
330
274
|
"""
|
|
331
275
|
LABEL_WRITE_INVALID
|
|
332
276
|
}
|
|
@@ -335,15 +279,15 @@ enum LabelUserErrorCode {
|
|
|
335
279
|
### `LabelUserError`
|
|
336
280
|
|
|
337
281
|
```graphql
|
|
338
|
-
"""
|
|
282
|
+
"""An error from `labelsSet` or `labelsDelete`."""
|
|
339
283
|
type LabelUserError {
|
|
340
284
|
"""
|
|
341
|
-
|
|
285
|
+
The path to the input field that caused the error, such as `["labels", "0", "namespace"]`.
|
|
342
286
|
"""
|
|
343
287
|
field: [String!]
|
|
344
|
-
"""
|
|
288
|
+
"""A message that describes the error."""
|
|
345
289
|
message: String!
|
|
346
|
-
"""
|
|
290
|
+
"""The error code."""
|
|
347
291
|
code: LabelUserErrorCode!
|
|
348
292
|
}
|
|
349
293
|
```
|