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,14 @@ generated: true
6
6
 
7
7
  # Field schema
8
8
 
9
- The operations and types that `field.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
  ### `field`
14
14
 
15
- Get a field by ID within a workspace.
15
+ Reads a field.
16
+ Scope: `ORGANIZATION_WORKSPACE_READ`.
16
17
 
17
18
  ```graphql
18
19
  field(id: ID!, workspaceId: ID!): Field @auth
@@ -20,7 +21,9 @@ field(id: ID!, workspaceId: ID!): Field @auth
20
21
 
21
22
  ### `fields`
22
23
 
23
- Get list of fields within a workspace.
24
+ Lists the fields in a workspace. `search` matches a case-insensitive substring of the name;
25
+ `sortKey` and `reverse` set the order.
26
+ Scope: `ORGANIZATION_WORKSPACE_READ`.
24
27
 
25
28
  ```graphql
26
29
  fields(
@@ -33,7 +36,7 @@ fields(
33
36
  sortKey: FieldSortKeys = NAME
34
37
  reverse: Boolean = false
35
38
  """
36
- Restrict the listing to the fields attached to this step. Search, sort and paging still apply; `totalCount` counts the step.
39
+ Only the fields on this step. `totalCount` then counts that step's fields.
37
40
  """
38
41
  stepId: ID
39
42
  ): FieldConnection! @auth
@@ -43,7 +46,8 @@ fields(
43
46
 
44
47
  ### `fieldCreate`
45
48
 
46
- Create a new field. Requires scope: `ORGANIZATION_PROJECTS_CREATE`.
49
+ Creates a field in a workspace.
50
+ Scope: `ORGANIZATION_WORKSPACE_UPDATE`.
47
51
 
48
52
  ```graphql
49
53
  fieldCreate(input: FieldCreateInput!): FieldCreatePayload! @auth
@@ -51,7 +55,8 @@ fieldCreate(input: FieldCreateInput!): FieldCreatePayload! @auth
51
55
 
52
56
  ### `fieldUpdate`
53
57
 
54
- Update a field. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`.
58
+ Updates a field.
59
+ Scope: `ORGANIZATION_WORKSPACE_UPDATE`.
55
60
 
56
61
  ```graphql
57
62
  fieldUpdate(input: FieldUpdateInput!): FieldUpdatePayload! @auth
@@ -59,7 +64,9 @@ fieldUpdate(input: FieldUpdateInput!): FieldUpdatePayload! @auth
59
64
 
60
65
  ### `fieldDelete`
61
66
 
62
- Delete a field. Requires scope: `ORGANIZATION_PROJECTS_DELETE`.
67
+ Deletes a field. A field that is on a step is not deleted, and comes back as an `IN_USE` user
68
+ error.
69
+ Scope: `ORGANIZATION_WORKSPACE_UPDATE`.
63
70
 
64
71
  ```graphql
65
72
  fieldDelete(input: FieldDeleteInput!): FieldDeletePayload! @auth
@@ -70,15 +77,15 @@ fieldDelete(input: FieldDeleteInput!): FieldDeletePayload! @auth
70
77
  ### `FieldType`
71
78
 
72
79
  ```graphql
73
- """Field type — what kind of value the field captures."""
80
+ """The kinds of value a field captures."""
74
81
  enum FieldType {
75
- """Plain text input."""
82
+ """Text."""
76
83
  TEXT
77
- """Numeric input."""
84
+ """A number."""
78
85
  NUMBER
79
- """Boolean (checkbox/toggle)."""
86
+ """True or false, as a checkbox or toggle."""
80
87
  BOOLEAN
81
- """Free-form JSON structure (the SDK plugin renders an editor)."""
88
+ """A JSON value."""
82
89
  OBJECT
83
90
  }
84
91
  ```
@@ -87,64 +94,55 @@ enum FieldType {
87
94
 
88
95
  ```graphql
89
96
  """
90
- A form field within a workspace. Reused across steps via `Step.fields`.
91
- Defines the input control's type, label, validation rules, default
92
- value, and any select-style options.
93
-
94
- `validation`, `defaultValue`, `condition`, and `options` are JSON blobs
95
- whose shapes depend on `type` — see the field-create / field-update
96
- mutations for the canonical shapes.
97
+ A data input inside a step, such as a name, an email address or a choice. A field belongs to the
98
+ workspace and can sit on more than one step.
97
99
  """
98
100
  type Field {
99
- """Unique field identifier."""
101
+ """The ID of the field."""
100
102
  id: ID!
101
- """
102
- Stable machine-readable name (used to key the value in the captured payload).
103
- """
103
+ """The machine-readable name of the field."""
104
104
  name: String!
105
- """Stable, human-readable key for SDK consumers."""
105
+ """The stable identifier of the field, unique within its workspace."""
106
106
  key: String!
107
- """Human-readable label shown to end-users next to the input."""
107
+ """The label shown next to the input."""
108
108
  label: String!
109
109
  """The kind of value the field captures."""
110
110
  type: FieldType!
111
- """
112
- Whether multiple values are allowed (renders as a multi-select / repeating input).
113
- """
111
+ """Whether the field accepts more than one value."""
114
112
  multiple: Boolean!
115
- """Whether the field is required."""
113
+ """Whether the visitor must answer the field."""
116
114
  required: Boolean!
117
- """JSON validation rules (shape depends on `type`)."""
115
+ """The validation rules, as JSON. Null when none are set."""
118
116
  validation: JSON
119
117
  """
120
- Selectable options when the field is a single/multi-select (shape: `{ label, value, ... }`).
118
+ The choices of a field with a fixed set of choices. Null when the field has none.
121
119
  """
122
120
  options: [FieldOption!]
123
121
  """
124
- JSON condition controlling whether the field is rendered (JSON Logic AST).
122
+ A JSON Logic rule that decides whether the field renders. Null when none is set.
125
123
  """
126
124
  condition: JSON
127
- """JSON default value (shape depends on `type`)."""
125
+ """The value the field starts with. Null when none is set."""
128
126
  defaultValue: JSON
129
- """Placeholder text rendered inside the input when empty."""
127
+ """The text shown in the empty input. Null when none is set."""
130
128
  placeholder: String
131
- """Field description shown alongside the label."""
129
+ """A description shown with the label. Null when none is set."""
132
130
  description: String
133
- """Help text rendered below the field as a hint."""
131
+ """A hint shown below the field. Null when none is set."""
134
132
  helpText: String
135
- """When true, the captured value is excluded from analytics tracking."""
133
+ """Whether the answer is left out of analytics."""
136
134
  doNotTrack: Boolean!
137
- """When true, the captured value is excluded from persistence."""
135
+ """Whether the answer is left out of storage."""
138
136
  doNotStore: Boolean!
139
- """The list of steps this field belongs to."""
137
+ """The steps the field is on."""
140
138
  steps: StepConnection!
141
- """The workspace this field belongs to."""
139
+ """The workspace the field belongs to."""
142
140
  workspace: Workspace!
143
- """The workspace ID this field belongs to."""
141
+ """The ID of the workspace the field belongs to."""
144
142
  workspaceId: ID!
145
- """When this field was created."""
143
+ """When the field was created."""
146
144
  createdAt: DateTime!
147
- """When this field was last updated."""
145
+ """When the field last changed."""
148
146
  updatedAt: DateTime!
149
147
  }
150
148
  ```
@@ -152,21 +150,19 @@ type Field {
152
150
  ### `FieldOption`
153
151
 
154
152
  ```graphql
155
- """
156
- A single selectable option within a field (only meaningful for select-style fields).
157
- """
153
+ """One choice in a field that has a fixed set of choices."""
158
154
  type FieldOption {
159
- """Stable option identifier."""
155
+ """The ID of the option."""
160
156
  id: ID!
161
- """Human-readable label shown to end-users."""
157
+ """The label shown for the option."""
162
158
  label: String!
163
- """Optional description shown alongside the label."""
159
+ """A description shown with the label. Null when none is set."""
164
160
  description: String
161
+ """The value the field captures when the visitor picks the option."""
162
+ value: JSON!
165
163
  """
166
- The option's machine value (becomes the field's captured value when selected).
164
+ A JSON Logic rule that decides whether the option renders. Null when none is set.
167
165
  """
168
- value: JSON!
169
- """JSON Logic condition controlling whether this option is rendered."""
170
166
  condition: JSON
171
167
  }
172
168
  ```
@@ -174,9 +170,9 @@ type FieldOption {
174
170
  ### `FieldEdge`
175
171
 
176
172
  ```graphql
177
- """Edge type for `FieldConnection`."""
173
+ """A field in a page of results."""
178
174
  type FieldEdge {
179
- """Pagination cursor for this edge."""
175
+ """The cursor of this edge."""
180
176
  cursor: String!
181
177
  """The field."""
182
178
  node: Field!
@@ -186,19 +182,15 @@ type FieldEdge {
186
182
  ### `FieldConnection`
187
183
 
188
184
  ```graphql
189
- """
190
- Relay-style connection of fields, with both an `edges` list and a flat `nodes` accessor.
191
- """
185
+ """A page of fields."""
192
186
  type FieldConnection {
193
- """List of field edges."""
187
+ """The edges in this page."""
194
188
  edges: [FieldEdge!]!
195
- """
196
- Flat list of fields, equivalent to `edges[].node`. Convenience accessor.
197
- """
189
+ """The fields in this page."""
198
190
  nodes: [Field!]!
199
- """Pagination metadata."""
191
+ """Where this page sits in the list."""
200
192
  pageInfo: PageInfo!
201
- """Total number of fields."""
193
+ """The number of fields across all pages, ignoring `search`."""
202
194
  totalCount: Int!
203
195
  }
204
196
  ```
@@ -206,47 +198,41 @@ type FieldConnection {
206
198
  ### `FieldCreateInput`
207
199
 
208
200
  ```graphql
209
- """Input for `fieldCreate`."""
201
+ """The input of `fieldCreate`."""
210
202
  input FieldCreateInput {
211
- """Workspace ID to create the field in."""
203
+ """The ID of the workspace to create the field in."""
212
204
  workspaceId: ID!
213
- """Stable machine-readable name."""
205
+ """The machine-readable name of the field."""
214
206
  name: String!
215
- """Unique key identifier for the field."""
207
+ """
208
+ The stable identifier of the field, unique within the workspace. It cannot change later.
209
+ """
216
210
  key: String!
217
- """Human-readable label."""
211
+ """The label shown next to the input."""
218
212
  label: String!
219
- """The field type."""
213
+ """The kind of value the field captures."""
220
214
  type: FieldType!
221
- """Whether multiple values are allowed."""
215
+ """Whether the field accepts more than one value."""
222
216
  multiple: Boolean
223
- """Whether the field is required."""
217
+ """Whether the visitor must answer the field."""
224
218
  required: Boolean
225
- """
226
- Validation rules as a JSON-encoded string. Server parses before persisting.
227
- """
219
+ """The validation rules, as a JSON string. Invalid JSON is rejected."""
228
220
  validationString: String
229
- """JSON default value (shape depends on `type`)."""
221
+ """The value the field starts with."""
230
222
  defaultValue: JSON
231
- """
232
- Field options as a JSON array (only meaningful for select-style fields).
233
- """
223
+ """The choices, as a JSON array. An option without an `id` gets one."""
234
224
  options: JSON
235
- """JSON Logic condition controlling whether the field is rendered."""
225
+ """A JSON Logic rule that decides whether the field renders."""
236
226
  condition: JSON
237
- """Placeholder text."""
227
+ """The text shown in the empty input."""
238
228
  placeholder: String
239
- """Description shown alongside the label."""
229
+ """A description shown with the label."""
240
230
  description: String
241
- """Help text shown below the field."""
231
+ """A hint shown below the field."""
242
232
  helpText: String
243
- """
244
- When true, the captured value is excluded from analytics tracking. Omitted defaults to `true`: tracking is opt-in.
245
- """
233
+ """Whether the answer is left out of analytics. Defaults to `true`."""
246
234
  doNotTrack: Boolean
247
- """
248
- When true, the captured value is excluded from persistence. Omitted defaults to `true`: persistence is opt-in.
249
- """
235
+ """Whether the answer is left out of storage. Defaults to `true`."""
250
236
  doNotStore: Boolean
251
237
  }
252
238
  ```
@@ -254,7 +240,7 @@ input FieldCreateInput {
254
240
  ### `FieldCreatePayload`
255
241
 
256
242
  ```graphql
257
- """Payload returned by `fieldCreate`."""
243
+ """The result of `fieldCreate`."""
258
244
  type FieldCreatePayload {
259
245
  """The created field."""
260
246
  field: Field
@@ -265,42 +251,44 @@ type FieldCreatePayload {
265
251
 
266
252
  ```graphql
267
253
  """
268
- Input for `fieldUpdate`. Omit a field to leave it unchanged (but `type` is required because it is used to coerce other fields).
254
+ The input of `fieldUpdate`. Omit a field to keep its value. `type` is required.
269
255
  """
270
256
  input FieldUpdateInput {
271
- """Field ID."""
257
+ """The ID of the field."""
272
258
  id: ID!
273
- """Workspace ID the field belongs to."""
259
+ """The ID of the workspace the field belongs to."""
274
260
  workspaceId: ID!
275
- """New machine-readable name."""
261
+ """The machine-readable name of the field."""
276
262
  name: String
277
- """New label."""
263
+ """The label shown next to the input."""
278
264
  label: String
279
265
  """
280
- Field type. Required even when unchanged — used to coerce `validationString`, `options`, and `defaultValue` server-side.
266
+ The kind of value the field captures. Required: send the current type to keep it.
281
267
  """
282
268
  type: FieldType!
283
- """Whether multiple values are allowed."""
269
+ """Whether the field accepts more than one value."""
284
270
  multiple: Boolean
285
- """Whether the field is required."""
271
+ """Whether the visitor must answer the field."""
286
272
  required: Boolean
287
- """Validation rules as a JSON-encoded string."""
273
+ """The validation rules, as a JSON string. Invalid JSON is rejected."""
288
274
  validationString: String
289
- """JSON default value."""
275
+ """The value the field starts with."""
290
276
  defaultValue: JSON
291
- """Field options as a JSON array."""
277
+ """
278
+ The choices, as a JSON array. Replaces the current choices; an option without an `id` gets one.
279
+ """
292
280
  options: JSON
293
- """JSON Logic condition controlling whether the field is rendered."""
281
+ """A JSON Logic rule that decides whether the field renders."""
294
282
  condition: JSON
295
- """Placeholder text."""
283
+ """The text shown in the empty input."""
296
284
  placeholder: String
297
- """Description shown alongside the label."""
285
+ """A description shown with the label."""
298
286
  description: String
299
- """Help text shown below the field."""
287
+ """A hint shown below the field."""
300
288
  helpText: String
301
- """When true, the captured value is excluded from analytics tracking."""
289
+ """Whether the answer is left out of analytics."""
302
290
  doNotTrack: Boolean
303
- """When true, the captured value is excluded from persistence."""
291
+ """Whether the answer is left out of storage."""
304
292
  doNotStore: Boolean
305
293
  }
306
294
  ```
@@ -308,7 +296,7 @@ input FieldUpdateInput {
308
296
  ### `FieldUpdatePayload`
309
297
 
310
298
  ```graphql
311
- """Payload returned by `fieldUpdate`."""
299
+ """The result of `fieldUpdate`."""
312
300
  type FieldUpdatePayload {
313
301
  """The updated field."""
314
302
  field: Field
@@ -318,11 +306,11 @@ type FieldUpdatePayload {
318
306
  ### `FieldDeleteInput`
319
307
 
320
308
  ```graphql
321
- """Input for `fieldDelete`."""
309
+ """The input of `fieldDelete`."""
322
310
  input FieldDeleteInput {
323
- """Field ID."""
311
+ """The ID of the field."""
324
312
  id: ID!
325
- """Workspace ID the field belongs to."""
313
+ """The ID of the workspace the field belongs to."""
326
314
  workspaceId: ID!
327
315
  }
328
316
  ```
@@ -330,13 +318,11 @@ input FieldDeleteInput {
330
318
  ### `FieldDeletePayload`
331
319
 
332
320
  ```graphql
333
- """
334
- Payload returned by `fieldDelete`. Returns `userErrors` when the field is in use.
335
- """
321
+ """The result of `fieldDelete`."""
336
322
  type FieldDeletePayload {
337
- """ID of the deleted field (null when `userErrors` is non-empty)."""
323
+ """The ID of the deleted field. Null when `userErrors` is not empty."""
338
324
  deletedFieldId: ID
339
- """Validation errors. Empty array indicates success."""
325
+ """The reasons the field was not deleted. Empty on success."""
340
326
  userErrors: [FieldDeleteUserError!]!
341
327
  }
342
328
  ```
@@ -344,9 +330,9 @@ type FieldDeletePayload {
344
330
  ### `FieldDeleteUserErrorCode`
345
331
 
346
332
  ```graphql
347
- """Machine-readable error codes for `fieldDelete`."""
333
+ """The reasons `fieldDelete` refuses a delete."""
348
334
  enum FieldDeleteUserErrorCode {
349
- """The field is attached to one or more steps and cannot be deleted."""
335
+ """The field is on a step."""
350
336
  IN_USE
351
337
  }
352
338
  ```
@@ -354,17 +340,17 @@ enum FieldDeleteUserErrorCode {
354
340
  ### `FieldDeleteUserError`
355
341
 
356
342
  ```graphql
357
- """
358
- A user error from `fieldDelete`. Carries the steps that block the delete when `code` is `IN_USE`.
359
- """
343
+ """A reason `fieldDelete` did not delete a field."""
360
344
  type FieldDeleteUserError {
361
- """Path to the input field that caused the error."""
345
+ """
346
+ The path to the input field at fault. Null when no single field is at fault.
347
+ """
362
348
  field: [String!]
363
- """Human-readable error message."""
349
+ """A message to show the user."""
364
350
  message: String!
365
- """Machine-readable error code."""
351
+ """A machine-readable code."""
366
352
  code: FieldDeleteUserErrorCode!
367
- """Steps this field is attached to (present when `code` is `IN_USE`)."""
353
+ """The steps the field is on. Null unless `code` is `IN_USE`."""
368
354
  referencingSteps: [ReferencingStep!]
369
355
  }
370
356
  ```
@@ -372,13 +358,11 @@ type FieldDeleteUserError {
372
358
  ### `ReferencingStep`
373
359
 
374
360
  ```graphql
375
- """
376
- A step that has this field attached, preventing its deletion. Returned in `FieldDeleteUserError` when the delete is blocked by usage.
377
- """
361
+ """A step that a field is on, and so blocks the field's delete."""
378
362
  type ReferencingStep {
379
- """The step id."""
363
+ """The ID of the step."""
380
364
  id: ID!
381
- """The step name."""
365
+ """The name of the step."""
382
366
  name: String!
383
367
  }
384
368
  ```
@@ -386,15 +370,13 @@ type ReferencingStep {
386
370
  ### `FieldSortKeys`
387
371
 
388
372
  ```graphql
389
- """
390
- Sort keys for `fields(...)`. Pair with `reverse: true` to flip the order (`NAME` + `reverse: false` sorts A→Z; `CREATED_AT` + `reverse: true` is newest-first).
391
- """
373
+ """The orders `fields` can sort by. `reverse: true` flips each."""
392
374
  enum FieldSortKeys {
393
- """Sort by `name` (alphabetical)."""
375
+ """By name, A to Z."""
394
376
  NAME
395
- """Sort by `createdAt`."""
377
+ """By creation time, oldest first."""
396
378
  CREATED_AT
397
- """Sort by `updatedAt`."""
379
+ """By last change, oldest first."""
398
380
  UPDATED_AT
399
381
  }
400
382
  ```