picked 0.0.101-next.2 → 0.0.101

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 (175) hide show
  1. package/README.md +27 -12
  2. package/docs/explanation/conditions-and-the-logic-engine.md +94 -0
  3. package/docs/explanation/content-references.md +99 -0
  4. package/docs/explanation/feature-flag-allocation.md +218 -0
  5. package/docs/explanation/how-picked-works.md +124 -0
  6. package/docs/explanation/how-pickedql-works.md +76 -0
  7. package/docs/explanation/pages-and-flows.md +64 -0
  8. package/docs/explanation/the-content-model.md +87 -0
  9. package/docs/explanation/the-two-apis.md +68 -0
  10. package/docs/explanation/why-server-side-rendering.md +76 -0
  11. package/docs/explanation/workspaces-and-versions.md +71 -0
  12. package/docs/how-to/add-a-step-field-or-action.md +56 -0
  13. package/docs/how-to/analytics/index.md +324 -0
  14. package/docs/how-to/archive-or-delete-a-workspace.md +59 -0
  15. package/docs/how-to/authenticate-the-cli.md +101 -0
  16. package/docs/how-to/authenticate-with-a-magic-link.md +56 -0
  17. package/docs/how-to/authenticate-with-a-password.md +68 -0
  18. package/docs/how-to/authenticate-with-an-api-key.md +60 -0
  19. package/docs/how-to/authenticate-with-oauth.md +49 -0
  20. package/docs/how-to/build-a-flow.md +106 -0
  21. package/docs/how-to/call-an-external-api-from-a-workflow.md +116 -0
  22. package/docs/how-to/connect-the-mcp-server.md +46 -0
  23. package/docs/how-to/create-a-content-entry.md +58 -0
  24. package/docs/how-to/create-a-project.md +40 -0
  25. package/docs/how-to/create-an-experience.md +51 -0
  26. package/docs/how-to/create-and-revoke-an-api-key.md +54 -0
  27. package/docs/how-to/debug-with-the-chrome-extension.md +57 -0
  28. package/docs/how-to/define-a-page-layout.md +54 -0
  29. package/docs/how-to/fill-and-publish-a-page.md +82 -0
  30. package/docs/how-to/install-the-gtm-template.md +84 -0
  31. package/docs/how-to/install-the-sdk.md +93 -0
  32. package/docs/how-to/install-the-vite-plugin.md +69 -0
  33. package/docs/how-to/invite-and-remove-members.md +45 -0
  34. package/docs/how-to/point-one-entry-at-another.md +75 -0
  35. package/docs/how-to/preview-a-workspace.md +39 -0
  36. package/docs/how-to/publish-a-workspace.md +42 -0
  37. package/docs/how-to/read-a-feature-flag.md +113 -0
  38. package/docs/how-to/read-a-referenced-entry.md +109 -0
  39. package/docs/how-to/register-a-component.md +55 -0
  40. package/docs/how-to/register-an-action-handler.md +85 -0
  41. package/docs/how-to/register-an-api-that-uses-oauth2.md +107 -0
  42. package/docs/how-to/render-a-step-form.md +131 -0
  43. package/docs/how-to/render-an-unpublished-preview.md +41 -0
  44. package/docs/how-to/retry-a-failed-call-with-a-loop.md +81 -0
  45. package/docs/how-to/reuse-a-section.md +64 -0
  46. package/docs/how-to/reuse-a-step-field-or-action.md +39 -0
  47. package/docs/how-to/roll-back-a-published-version.md +39 -0
  48. package/docs/how-to/run-an-ab-test.md +59 -0
  49. package/docs/how-to/run-code-on-a-form-submission.md +125 -0
  50. package/docs/how-to/server-render-a-page.md +81 -0
  51. package/docs/how-to/set-a-content-security-policy.md +32 -0
  52. package/docs/how-to/set-up-mfa.md +126 -0
  53. package/docs/how-to/switch-workspaces.md +122 -0
  54. package/docs/how-to/upload-and-use-an-asset.mdx +87 -0
  55. package/docs/how-to/validate-a-field.md +52 -0
  56. package/docs/how-to/wait-for-an-action-response.md +182 -0
  57. package/docs/how-to/write-a-condition.md +57 -0
  58. package/docs/how-to/write-a-predicate.md +60 -0
  59. package/docs/index.md +59 -0
  60. package/docs/reference/dashboard/actions.mdx +65 -0
  61. package/docs/reference/dashboard/api-keys.mdx +47 -0
  62. package/docs/reference/dashboard/conditions.mdx +51 -0
  63. package/docs/reference/dashboard/content/asset-library.mdx +74 -0
  64. package/docs/reference/dashboard/content/blocks.mdx +66 -0
  65. package/docs/reference/dashboard/content/content-entries.mdx +109 -0
  66. package/docs/reference/dashboard/content/models.mdx +119 -0
  67. package/docs/reference/dashboard/content/pages.mdx +72 -0
  68. package/docs/reference/dashboard/experiences.mdx +61 -0
  69. package/docs/reference/dashboard/external-apis.md +182 -0
  70. package/docs/reference/dashboard/features.mdx +165 -0
  71. package/docs/reference/dashboard/fields.mdx +120 -0
  72. package/docs/reference/dashboard/flow-builder/canvas.mdx +58 -0
  73. package/docs/reference/dashboard/flow-builder/condition-builder.md +69 -0
  74. package/docs/reference/dashboard/flow-builder/keyboard-shortcuts.md +72 -0
  75. package/docs/reference/dashboard/flow-builder/nodes.md +74 -0
  76. package/docs/reference/dashboard/labels.md +321 -0
  77. package/docs/reference/dashboard/lead-search.md +235 -0
  78. package/docs/reference/dashboard/projects.mdx +53 -0
  79. package/docs/reference/dashboard/reports.mdx +53 -0
  80. package/docs/reference/dashboard/steps.mdx +47 -0
  81. package/docs/reference/dashboard/team-management.md +38 -0
  82. package/docs/reference/dashboard/workflow-runs.md +157 -0
  83. package/docs/reference/dashboard/workflow-templates.md +182 -0
  84. package/docs/reference/dashboard/workflow-test-runs.md +85 -0
  85. package/docs/reference/dashboard/workspace-versioning.mdx +42 -0
  86. package/docs/reference/dashboard/workspaces.mdx +91 -0
  87. package/docs/reference/delivery-api/experience-content.md +152 -0
  88. package/docs/reference/delivery-api/index.md +45 -0
  89. package/docs/reference/delivery-api/preview-caching-crawling.md +79 -0
  90. package/docs/reference/delivery-api/project-config.md +65 -0
  91. package/docs/reference/delivery-api/workspace-schema.md +107 -0
  92. package/docs/reference/glossary.md +201 -0
  93. package/docs/reference/management-api/authentication.md +87 -0
  94. package/docs/reference/management-api/authorization-and-scopes.md +291 -0
  95. package/docs/reference/management-api/error-handling.md +232 -0
  96. package/docs/reference/management-api/pagination.md +192 -0
  97. package/docs/reference/management-api/schema/action.md +261 -0
  98. package/docs/reference/management-api/schema/analytics-session.md +363 -0
  99. package/docs/reference/management-api/schema/analytics.md +73 -0
  100. package/docs/reference/management-api/schema/api-key.md +170 -0
  101. package/docs/reference/management-api/schema/auth.md +1177 -0
  102. package/docs/reference/management-api/schema/cms-fields.md +954 -0
  103. package/docs/reference/management-api/schema/cms-models.md +1155 -0
  104. package/docs/reference/management-api/schema/common.md +362 -0
  105. package/docs/reference/management-api/schema/condition.md +254 -0
  106. package/docs/reference/management-api/schema/design-system.md +199 -0
  107. package/docs/reference/management-api/schema/experience.md +1098 -0
  108. package/docs/reference/management-api/schema/external-api.md +637 -0
  109. package/docs/reference/management-api/schema/feature.md +350 -0
  110. package/docs/reference/management-api/schema/feedback.md +103 -0
  111. package/docs/reference/management-api/schema/field.md +400 -0
  112. package/docs/reference/management-api/schema/index.md +243 -0
  113. package/docs/reference/management-api/schema/integration.md +272 -0
  114. package/docs/reference/management-api/schema/label.md +349 -0
  115. package/docs/reference/management-api/schema/lead.md +340 -0
  116. package/docs/reference/management-api/schema/mcp-server.md +299 -0
  117. package/docs/reference/management-api/schema/metric.md +223 -0
  118. package/docs/reference/management-api/schema/operation.md +96 -0
  119. package/docs/reference/management-api/schema/organization.md +749 -0
  120. package/docs/reference/management-api/schema/project.md +607 -0
  121. package/docs/reference/management-api/schema/report.md +243 -0
  122. package/docs/reference/management-api/schema/saved-view.md +288 -0
  123. package/docs/reference/management-api/schema/shopify.md +795 -0
  124. package/docs/reference/management-api/schema/step.md +273 -0
  125. package/docs/reference/management-api/schema/tenant-branding.md +185 -0
  126. package/docs/reference/management-api/schema/workbench.md +246 -0
  127. package/docs/reference/management-api/schema/workflow-run.md +263 -0
  128. package/docs/reference/management-api/schema/workflow.md +1110 -0
  129. package/docs/reference/management-api/schema/workspace-version.md +823 -0
  130. package/docs/reference/management-api/schema/workspace.md +917 -0
  131. package/docs/reference/pickedql/data-sources.md +174 -0
  132. package/docs/reference/pickedql/dimensions.md +103 -0
  133. package/docs/reference/pickedql/filtering.md +64 -0
  134. package/docs/reference/pickedql/index.md +18 -0
  135. package/docs/reference/pickedql/schema.md +172 -0
  136. package/docs/reference/pickedql/virtual-functions.md +248 -0
  137. package/docs/reference/sdk/actions.md +154 -0
  138. package/docs/reference/sdk/analytics-events.md +453 -0
  139. package/docs/reference/sdk/conditions.md +147 -0
  140. package/docs/reference/sdk/content-security-policy.md +21 -0
  141. package/docs/reference/sdk/content.md +253 -0
  142. package/docs/reference/sdk/experiences.md +51 -0
  143. package/docs/reference/sdk/features.md +256 -0
  144. package/docs/reference/sdk/fields.md +255 -0
  145. package/docs/reference/sdk/index.md +68 -0
  146. package/docs/reference/sdk/plugins/create-experience.md +123 -0
  147. package/docs/reference/sdk/plugins/dynamic-experiences.md +74 -0
  148. package/docs/reference/sdk/plugins/fingerprintjs.md +39 -0
  149. package/docs/reference/sdk/plugins/hotjar.md +60 -0
  150. package/docs/reference/sdk/plugins/index.md +33 -0
  151. package/docs/reference/sdk/plugins/sentry.md +51 -0
  152. package/docs/reference/sdk/plugins/shopify.md +109 -0
  153. package/docs/reference/sdk/plugins/window-object.md +25 -0
  154. package/docs/reference/sdk/predicates.md +43 -0
  155. package/docs/reference/sdk/react.md +61 -0
  156. package/docs/reference/sdk/ssr/index.md +33 -0
  157. package/docs/reference/sdk/ssr/rendering-and-hydration.md +103 -0
  158. package/docs/reference/sdk/ssr/serialize.md +80 -0
  159. package/docs/reference/sdk/ssr/slots-and-placements.md +113 -0
  160. package/docs/reference/sdk/steps.md +86 -0
  161. package/docs/reference/sdk/svelte.md +74 -0
  162. package/docs/reference/sdk/type-generation.md +265 -0
  163. package/docs/reference/tools/admin-api-client.md +89 -0
  164. package/docs/reference/tools/chrome-extension.md +16 -0
  165. package/docs/reference/tools/cli.md +319 -0
  166. package/docs/reference/tools/delivery-api-client.md +60 -0
  167. package/docs/reference/tools/image-optimisation-service.md +104 -0
  168. package/docs/reference/tools/mcp-run.md +121 -0
  169. package/docs/reference/tools/mcp.md +391 -0
  170. package/docs/reference/tools/vite-plugin.md +163 -0
  171. package/docs/tutorials/first-api-call.md +253 -0
  172. package/docs/tutorials/first-experience-in-the-dashboard.mdx +160 -0
  173. package/docs/tutorials/first-experience.mdx +254 -0
  174. package/docs/tutorials/first-server-rendered-page.mdx +186 -0
  175. package/package.json +8 -7
@@ -0,0 +1,263 @@
1
+ ---
2
+ type: reference
3
+ layout: docs
4
+ generated: true
5
+ ---
6
+
7
+ # Workflow run schema
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.
10
+
11
+ ## Queries
12
+
13
+ ### `workflowRun`
14
+
15
+ Get a workflow run by ID. Requires scope: `ORGANIZATION_PROJECTS_READ`.
16
+
17
+ ```graphql
18
+ workflowRun(id: ID!): WorkflowRun @auth
19
+ ```
20
+
21
+ ## Types
22
+
23
+ ### `WorkflowRunStatus`
24
+
25
+ ```graphql
26
+ """Where a run is in its life."""
27
+ enum WorkflowRunStatus {
28
+ """The run has started and not yet ended."""
29
+ RUNNING
30
+ """Every task the run reached succeeded."""
31
+ COMPLETED
32
+ """A task failed and the run stopped there."""
33
+ FAILED
34
+ }
35
+ ```
36
+
37
+ ### `WorkflowTaskType`
38
+
39
+ ```graphql
40
+ """The kind of node a task ran."""
41
+ enum WorkflowTaskType {
42
+ """The trigger node the run started from."""
43
+ ORIGIN
44
+ """A tool node."""
45
+ TOOL
46
+ """A condition node, which chose a branch."""
47
+ CONDITION
48
+ """A sleep node, which suspended the run."""
49
+ SLEEP
50
+ }
51
+ ```
52
+
53
+ ### `WorkflowTaskStatus`
54
+
55
+ ```graphql
56
+ """Where a task is in its life."""
57
+ enum WorkflowTaskStatus {
58
+ """The task has started and not yet ended."""
59
+ RUNNING
60
+ """The task did its work."""
61
+ SUCCEEDED
62
+ """The task failed, and the run with it."""
63
+ FAILED
64
+ }
65
+ ```
66
+
67
+ ### `WorkflowRunSortKeys`
68
+
69
+ ```graphql
70
+ """
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.
73
+ """
74
+ enum WorkflowRunSortKeys {
75
+ """Sort by `startedAt`."""
76
+ STARTED_AT
77
+ }
78
+ ```
79
+
80
+ ### `WorkflowTaskSortKeys`
81
+
82
+ ```graphql
83
+ """
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.
86
+ """
87
+ enum WorkflowTaskSortKeys {
88
+ """
89
+ Sort by `startedAt`: the order the run executed its tasks in, one at a time.
90
+ """
91
+ STARTED_AT
92
+ }
93
+ ```
94
+
95
+ ### `WorkflowRun`
96
+
97
+ ```graphql
98
+ """
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.
105
+ """
106
+ type WorkflowRun {
107
+ """Unique run identifier."""
108
+ 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
+ """
113
+ workflowId: ID!
114
+ """
115
+ ID of the workspace the workflow belongs to. A workflow ID is unique only within its workspace.
116
+ """
117
+ workspaceId: ID!
118
+ """
119
+ The workflow the run executed, or null once it is deleted. Requires scope:
120
+ `ORGANIZATION_WORKSPACE_READ`.
121
+ """
122
+ workflow: Workflow
123
+ """Where the run is in its life."""
124
+ status: WorkflowRunStatus!
125
+ """When the run started."""
126
+ startedAt: DateTime!
127
+ """When the run ended, or null while it is running."""
128
+ finishedAt: DateTime
129
+ """Why the run failed, or null unless it did."""
130
+ failureReason: String
131
+ """
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.
135
+ """
136
+ preview: Boolean!
137
+ """
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`.
140
+ """
141
+ tasks(first: Int, after: String, sortKey: WorkflowTaskSortKeys = STARTED_AT, reverse: Boolean = false): WorkflowTaskConnection! @auth
142
+ """
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`.
148
+ """
149
+ labels: [Label!]! @auth
150
+ }
151
+ ```
152
+
153
+ ### `WorkflowTask`
154
+
155
+ ```graphql
156
+ """
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.
161
+ """
162
+ type WorkflowTask {
163
+ """Unique task identifier. The same across every attempt of one visit."""
164
+ id: ID!
165
+ """
166
+ The ID of the graph node the task ran, as the workflow's `nodes` name it.
167
+ """
168
+ stepId: ID!
169
+ """
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.
171
+ """
172
+ visit: Int!
173
+ """The kind of node the task ran."""
174
+ type: WorkflowTaskType!
175
+ """The tool a tool task ran, or null for another kind."""
176
+ tool: String
177
+ """Where the task is in its life."""
178
+ status: WorkflowTaskStatus!
179
+ """When the task started."""
180
+ startedAt: DateTime!
181
+ """When the task ended, or null while it is running."""
182
+ finishedAt: DateTime
183
+ """Why the task failed, or null unless it did."""
184
+ failureReason: String
185
+ """The run this task belongs to."""
186
+ run: WorkflowRun!
187
+ """
188
+ What the task did to leads and labels, latest first; pass `reverse: false`
189
+ for the order performed. Requires scope: `ORGANIZATION_PROJECTS_READ`.
190
+ """
191
+ operations(first: Int, after: String, sortKey: OperationSortKeys = OCCURRED_AT, reverse: Boolean = true): OperationConnection! @auth
192
+ }
193
+ ```
194
+
195
+ ### `WorkflowRunConnection`
196
+
197
+ ```graphql
198
+ """Relay-style connection of workflow runs."""
199
+ type WorkflowRunConnection {
200
+ """List of run edges."""
201
+ edges: [WorkflowRunEdge!]!
202
+ """Flat list of runs, equivalent to `edges[].node`. Convenience accessor."""
203
+ nodes: [WorkflowRun!]!
204
+ """Pagination metadata."""
205
+ pageInfo: PageInfo!
206
+ """Total number of runs in the list."""
207
+ totalCount: Int!
208
+ }
209
+ ```
210
+
211
+ ### `WorkflowRunEdge`
212
+
213
+ ```graphql
214
+ """Edge type for `WorkflowRunConnection`."""
215
+ type WorkflowRunEdge {
216
+ """Pagination cursor for this edge."""
217
+ cursor: String!
218
+ """The run."""
219
+ node: WorkflowRun!
220
+ }
221
+ ```
222
+
223
+ ### `WorkflowTaskConnection`
224
+
225
+ ```graphql
226
+ """Relay-style connection of workflow run tasks."""
227
+ type WorkflowTaskConnection {
228
+ """List of task edges."""
229
+ edges: [WorkflowTaskEdge!]!
230
+ """
231
+ Flat list of tasks, equivalent to `edges[].node`. Convenience accessor.
232
+ """
233
+ nodes: [WorkflowTask!]!
234
+ """Pagination metadata."""
235
+ pageInfo: PageInfo!
236
+ """Total number of tasks the run performed."""
237
+ totalCount: Int!
238
+ }
239
+ ```
240
+
241
+ ### `WorkflowTaskEdge`
242
+
243
+ ```graphql
244
+ """Edge type for `WorkflowTaskConnection`."""
245
+ type WorkflowTaskEdge {
246
+ """Pagination cursor for this edge."""
247
+ cursor: String!
248
+ """The task."""
249
+ node: WorkflowTask!
250
+ }
251
+ ```
252
+
253
+ ### `Workflow` (extension)
254
+
255
+ ```graphql
256
+ extend type Workflow {
257
+ """
258
+ This workflow's runs in its workspace, oldest first; pass `reverse: true`
259
+ for the latest first. Requires scope: `ORGANIZATION_PROJECTS_READ`.
260
+ """
261
+ runs(first: Int, after: String, last: Int, before: String, sortKey: WorkflowRunSortKeys = STARTED_AT, reverse: Boolean = false): WorkflowRunConnection! @auth
262
+ }
263
+ ```