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,16 +6,16 @@ generated: true
6
6
 
7
7
  # Label schema
8
8
 
9
- The operations and types that `label.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
  ### `labelsSet`
14
14
 
15
- Create or replace labels on an owner. Requires scope:
16
- `ORGANIZATION_LEADS_UPDATE` on the lead's project for a `LEAD` owner, and
17
- `ORGANIZATION_PROJECTS_UPDATE` on the project for a `PROJECT` or
18
- `WORKFLOW_RUN` owner.
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
- Remove labels from an owner. Requires scope: `ORGANIZATION_LEADS_UPDATE` on
27
- the lead's project for a `LEAD` owner, and `ORGANIZATION_PROJECTS_UPDATE` on
28
- the project for a `PROJECT` or `WORKFLOW_RUN` owner.
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's `value`."""
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 attached to. Each kind is read under its own
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 either scope.
65
+ A workflow run reads and writes its own labels without a scope.
66
66
  """
67
67
  enum LabelOwnerType {
68
- """A captured lead. Its labels are deleted with it."""
68
+ """A lead. Its labels are deleted with it."""
69
69
  LEAD
70
- """A project, whose id is the owner id. Its labels outlive every lead."""
70
+ """A project. The owner ID is the project ID."""
71
71
  PROJECT
72
- """A workflow run. Its labels outlive every lead."""
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
- An annotation on an owner. Unique per owner, namespace and key, so setting one
82
- that already exists replaces its value and type.
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
- """Unique label identifier."""
85
+ """The ID of the label."""
90
86
  id: ID!
91
- """Grouping for related keys, rendered as a section heading."""
87
+ """The first part of the name of the label, which groups related keys."""
92
88
  namespace: String!
93
- """Name of this label within its namespace."""
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, always a string. Interpret it through `type`."""
93
+ """The value, as a string to read through `type`."""
98
94
  value: String!
99
- """When this label was first set."""
95
+ """When the label was created."""
100
96
  createdAt: DateTime!
101
- """When this label was last changed."""
97
+ """When the label last changed."""
102
98
  updatedAt: DateTime!
103
- """When this label expires, or null when it does not expire."""
99
+ """When the label expires. Null when it does not expire."""
104
100
  expiresAt: DateTime
105
- """The owner this label annotates."""
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 resource a label annotates: a lead, a project or a workflow run."""
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
- One entry in a label's log: something done to the label, by a workflow run
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
- """Unique operation identifier."""
120
+ """The ID of the operation."""
127
121
  id: ID!
128
- """What was done to the label."""
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 performed the operation, or null when it was not a workflow.
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, or null once it has been removed or has expired."""
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
- One label to set. Namespace and key must be 1-64 characters of lowercase
146
- letters, digits, underscore or hyphen; a dot is rejected, because the leads
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
- """Grouping for related keys."""
143
+ """The first part of the name of the label, which groups related keys."""
164
144
  namespace: String!
165
- """Name of this label within its namespace."""
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. Must parse as `type`. A write with `value` and no
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 label's current value, in place of `value`; a
176
- negative number subtracts.
177
- An absent or expired label reads as 0. The label must be of type `NUMBER`:
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
- Seconds from the write until the label expires: a whole number from 1 to
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
- Writes the label only when the owner holds no unexpired label under this
192
- namespace and key. The check and the write are one atomic step, so of
193
- several concurrent writes to an absent label exactly one takes effect.
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
- """Names one label without its value, for deletion."""
176
+ """A label to delete, named by namespace and key."""
209
177
  input LabelIdentifierInput {
210
- """Grouping for related keys."""
178
+ """The first part of the name of the label, which groups related keys."""
211
179
  namespace: String!
212
- """Name of this label within its namespace."""
180
+ """The name of the label within its namespace."""
213
181
  key: String!
214
182
  """
215
- Removes the label only when it has not expired and its stored value equals
216
- this. The check and the removal are one atomic step. A label holding another
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 being annotated."""
195
+ """The kind of entity the labels are on."""
237
196
  ownerType: LabelOwnerType!
238
- """ID of the entity being annotated."""
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
- Takes every label or none. When any `onlyIfAbsent` label is skipped, the call
247
- writes nothing, records no operation, returns no `labels`, and lists in
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
- """Payload returned by `labelsSet`."""
212
+ """The result of `labelsSet`."""
261
213
  type LabelsSetPayload {
262
214
  """
263
- The labels the call took, as they now stand: those it wrote, and those an
264
- `onlyIfAbsent` label found already holding its own type and value. Empty when
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 existing labels an `onlyIfAbsent` label left in place, because they held
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
- """Per-label validation errors. Empty array indicates success."""
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 being annotated."""
233
+ """The kind of entity the labels are on."""
287
234
  ownerType: LabelOwnerType!
288
- """ID of the entity being annotated."""
235
+ """The ID of the entity the labels are on."""
289
236
  ownerId: ID!
290
- """Labels to remove."""
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
- """Payload returned by `labelsDelete`."""
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
- """Per-label validation errors. Empty array indicates success."""
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
- """Machine-readable error codes for the label mutations."""
257
+ """What went wrong in a label mutation."""
313
258
  enum LabelUserErrorCode {
314
- """The namespace is outside the accepted character set."""
259
+ """
260
+ The namespace has a character outside the allowed set, or a wrong length.
261
+ """
315
262
  NAMESPACE_INVALID
316
- """The key is outside the accepted character set."""
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
- No owner of that type exists with that id, or the id carries another owner
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
- The write is malformed: it carries both `value` and `increment` or neither,
327
- an `increment` with `onlyIfAbsent` or with a type other than `NUMBER`, an
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
- """A user error from `labelsSet` or `labelsDelete`."""
282
+ """An error from `labelsSet` or `labelsDelete`."""
339
283
  type LabelUserError {
340
284
  """
341
- Path to the input field that caused the error, e.g. `['labels', '0', 'namespace']`.
285
+ The path to the input field that caused the error, such as `["labels", "0", "namespace"]`.
342
286
  """
343
287
  field: [String!]
344
- """Human-readable error message."""
288
+ """A message that describes the error."""
345
289
  message: String!
346
- """Machine-readable error code."""
290
+ """The error code."""
347
291
  code: LabelUserErrorCode!
348
292
  }
349
293
  ```