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,74 @@
1
+ ---
2
+ type: reference
3
+ layout: docs
4
+ ---
5
+
6
+ import { Screenshot } from '../../../../../components/Screenshot'
7
+
8
+ # Asset Library
9
+
10
+ The Asset Library holds the files that your content points at. These are images,
11
+ video, documents, and HTML.
12
+
13
+ <Screenshot
14
+ route="/{orgSlug}/{projectId}/assets"
15
+ alt="The asset library on the Picked dashboard"
16
+ />
17
+
18
+ ## Upload and control your assets
19
+
20
+ The Asset Library is a project-level store. Upload a file, then point at it from any
21
+ Content Entry in the project.
22
+
23
+ - **Size limit:** 50 MB for each file.
24
+ - **Allowed types:** an image in PNG, JPEG, WebP, AVIF, GIF, or SVG. A video in MP4
25
+ or WebM. A common document format. HTML, as `text/html`.
26
+
27
+ Picked rejects a file of another type. It also rejects a file above the size limit.
28
+
29
+ ## HTML assets
30
+
31
+ Upload a `.html` file and point at it from an **HTML asset** field. Picked then scans
32
+ the file. The scan is advisory: it helps you, and it never stops you. It
33
+ reports findings about speed, about search rank, and about accessibility, so that you
34
+ can improve the file before you publish it:
35
+
36
+ - **File size:** a warning at 100 KB, and a stronger one at 250 KB.
37
+ - **Inline images:** a note when inline `base64` image data adds about 50 KB or more.
38
+ - **Image dimensions:** an image with no width and no height. Such an image can move
39
+ the content around it while the page loads.
40
+ - **Lazy load:** an image with no `loading="lazy"` attribute.
41
+ - **Link safety:** an external link with `target="_blank"` and no `rel="noopener"`.
42
+ - **Link search rank:** an external link with no `rel="nofollow"`.
43
+ - **Accessibility:** a pass by `axe-core`. It covers alt text, heading order,
44
+ contrast, and more.
45
+
46
+ Every finding is advisory. You can always upload the file as it is.
47
+
48
+ ## How assets are served
49
+
50
+ Picked serves each asset from a sandboxed storage origin. That origin is separate
51
+ from the trusted origin of your application. HTML therefore comes from its own
52
+ origin, so a document that you upload runs in isolation and cannot reach the page
53
+ that holds it. A script in that document cannot read a session, a token, or the DOM
54
+ around it, because each of those needs same-origin access.
55
+
56
+ An [Experience Content](/reference/delivery-api/experience-content) response can hold an HTML
57
+ asset. The response then carries the content of that asset, and the SDK renders it
58
+ with no second request to storage.
59
+
60
+ ## API and MCP
61
+
62
+ You can also do this task with the [Management API](/reference/management-api/schema), the [MCP server](/reference/tools/mcp), or code that you send to [`picked_run`](/reference/tools/mcp-run).
63
+
64
+ | Task | GraphQL | MCP tool | Run |
65
+ | --- | --- | --- | --- |
66
+ | Upload a file | [`assetUploadInit`](/reference/management-api/schema/cms-models#assetuploadinit), [`assetCommit`](/reference/management-api/schema/cms-models#assetcommit) | [`init_asset_upload`](/reference/tools/mcp#init_asset_upload), [`commit_asset_upload`](/reference/tools/mcp#commit_asset_upload) | `tools.init_asset_upload({ project_id, file_name, content_type })`, `tools.commit_asset_upload({ project_id, asset_id, version_id, file_name, storage_path })` |
67
+ | List the assets of a project | [`assets`](/reference/management-api/schema/cms-models#assets) | [`list_assets`](/reference/tools/mcp#list_assets) | `tools.list_assets({ project_id })` |
68
+
69
+ Between the two calls, send the file in a `PUT` request to the URL that the first call gives.
70
+
71
+ ## Related
72
+
73
+ - [How to upload and use an asset](/how-to/upload-and-use-an-asset)
74
+ - [Fields](/reference/dashboard/fields) — the field type for an HTML asset.
@@ -0,0 +1,66 @@
1
+ ---
2
+ type: reference
3
+ layout: docs
4
+ ---
5
+
6
+ import { Screenshot } from '../../../../../components/Screenshot'
7
+
8
+ # Blocks
9
+
10
+ A Block is a reusable schema fragment that you embed inside a Model, so that a common structure is defined one time.
11
+
12
+ <Screenshot
13
+ route="/{orgSlug}/{projectId}/workspaces/{workspaceId}/blocks"
14
+ alt="The blocks list in the schema builder on the Picked dashboard"
15
+ />
16
+
17
+ ## What a Block is
18
+
19
+ A Block is a schema fragment with its own **Key**. A
20
+ [Model](/reference/dashboard/content/models) gives its shape to a whole Page or Step. A
21
+ Block is a part that you put into one or more Models. Define the shape one time, then
22
+ reuse it everywhere.
23
+
24
+ A Block holds no data of its own. The content that fills a Block sits inside the entry
25
+ of the Model that embeds it.
26
+
27
+ ## Where a Block appears
28
+
29
+ **CMS** in the sidebar holds **Blocks**, and that list shows every Block in the
30
+ workspace. **Pages** holds **Page Sections**, which is the same list limited to the
31
+ Section category.
32
+
33
+ ## Category
34
+
35
+ | Category | What it does |
36
+ | --- | --- |
37
+ | **Section** | Marks the Block as a page section. A **Page Sections** field accepts it. |
38
+ | **None (general content)** | Gives the Block no layout role. |
39
+
40
+ The category is fixed when you create the Block. You cannot change it later.
41
+
42
+ A **Content block** field holds the category of the Blocks that it accepts. Give that
43
+ field the **Section** category to build a page section list.
44
+
45
+ A field set to **Any category** accepts every Block in the workspace. This is the only
46
+ kind of field that can hold a Block with no category.
47
+
48
+ ## Field types
49
+
50
+ A Block holds the same field types as a Model. See
51
+ [Field types](/reference/dashboard/content/models#field-types).
52
+
53
+ ## API and MCP
54
+
55
+ You can also do this task with the [Management API](/reference/management-api/schema), the [MCP server](/reference/tools/mcp), or code that you send to [`picked_run`](/reference/tools/mcp-run).
56
+
57
+ | Task | GraphQL | MCP tool | Run |
58
+ | --- | --- | --- | --- |
59
+ | List the Blocks of a workspace | [`contentBlocks`](/reference/management-api/schema/cms-models#contentblocks) | [`list_content_blocks`](/reference/tools/mcp#list_content_blocks) | `tools.list_content_blocks({ workspace_id })` |
60
+ | Create a Block | [`contentBlockCreate`](/reference/management-api/schema/cms-models#contentblockcreate) | [`create_content_block`](/reference/tools/mcp#create_content_block) | `tools.create_content_block({ workspace_id, name, key, schema })` |
61
+
62
+ ## Related
63
+
64
+ - [About the content model](/explanation/the-content-model) — why Blocks exist.
65
+ - [How to reuse a section](/how-to/reuse-a-section)
66
+ - [Models](/reference/dashboard/content/models)
@@ -0,0 +1,109 @@
1
+ ---
2
+ type: reference
3
+ layout: docs
4
+ ---
5
+
6
+ import { Screenshot } from '../../../../../components/Screenshot'
7
+
8
+ # Content Entries
9
+
10
+ A content entry is one instance of a Model, filled with real data. A Page renders one entry, and a Flow Step can render one too.
11
+
12
+ <Screenshot
13
+ route="/{orgSlug}/{projectId}/workspaces/{workspaceId}/content"
14
+ alt="The content entries list on the Picked dashboard"
15
+ />
16
+
17
+ ## What a content entry is
18
+
19
+ A content entry is an instance of the schema of a
20
+ [Model](/reference/dashboard/content/models). The Model sets the fields, and the entry
21
+ holds the values. One Model backs many entries, and each entry holds its own data.
22
+
23
+ The Model of an entry is fixed when you create the entry.
24
+
25
+ ## The entries list
26
+
27
+ **CMS** in the sidebar holds **Content entries**, with a count of every entry in the
28
+ workspace.
29
+
30
+ | Column | What it shows |
31
+ | --- | --- |
32
+ | Title | The value of the first single-line text field of the entry. It falls back to the entry id when no such field holds a value. |
33
+ | Model | The Model that the entry belongs to. |
34
+ | Entry ID | The stable id of the entry. |
35
+ | Last updated | When somebody last saved the entry. |
36
+
37
+ The **Model** filter narrows the list to one Model. The list has no search, because the
38
+ title is derived at read time and is not a column that Picked can search.
39
+
40
+ ## How entries bind to pages and steps
41
+
42
+ A [Page](/reference/dashboard/content/pages) has a single Step, and that Step links to
43
+ its entry through the layout content link. A Flow [Step](/reference/dashboard/steps)
44
+ with a Step Layout binds an entry the same way. When the SDK renders the Page or the
45
+ Step, it resolves the linked entry and gives the data to your component.
46
+
47
+ ## Edit entry data
48
+
49
+ The entry editor renders a form from the schema of the Model. There is one input for
50
+ each field, in the order that the schema sets. A repeatable field shows as a sortable
51
+ list. You can add to that list and put it into a new order. A group field holds its
52
+ inputs under one heading.
53
+
54
+ ## Reference fields
55
+
56
+ A [Reference field](/reference/dashboard/content/models#reference-fields) holds a pointer
57
+ at another entry, and not a copy of it.
58
+
59
+ | Control | What it does |
60
+ | --- | --- |
61
+ | **Choose entry** | Opens the entry picker. |
62
+ | **Change entry** | Opens the entry picker on a field that holds a target already. |
63
+ | **Clear** | Removes the pointer. It does not delete the entry. |
64
+
65
+ The entry picker lists the entries that the **Target Model** of the field allows, and it
66
+ has a search box. **Open model** opens the Model of an entry in a new tab.
67
+
68
+ ## Validation
69
+
70
+ Invalid data shows as an error on each field. The error carries a path in the JSON style,
71
+ and it points at the exact place in the entry, for example `sections[0].data.title`.
72
+
73
+ A reference field reports an error when its target does not exist, or when the target
74
+ belongs to the wrong Model. Fix every error before you publish, because Picked serves
75
+ valid content only.
76
+
77
+ ## Delete rules
78
+
79
+ Picked does not delete an entry while something still points at it.
80
+
81
+ | Condition | Result |
82
+ | --- | --- |
83
+ | A Step uses the entry as its layout | The delete stops. |
84
+ | Another entry points at it through a Reference field | The delete stops. |
85
+
86
+ Clear the reference on the other entry first, then delete the target.
87
+
88
+ ## API and MCP
89
+
90
+ You can also do this task with the [Management API](/reference/management-api/schema), the [MCP server](/reference/tools/mcp), or code that you send to [`picked_run`](/reference/tools/mcp-run).
91
+
92
+ | Task | GraphQL | MCP tool | Run |
93
+ | --- | --- | --- | --- |
94
+ | List the entries | [`contentEntries`](/reference/management-api/schema/cms-models#contententries) | [`list_content_entries`](/reference/tools/mcp#list_content_entries) | `tools.list_content_entries({ workspace_id, content_model_id })` |
95
+ | Bind an entry to a page or a step | [`stepUpdate`](/reference/management-api/schema/step#stepupdate) | [`update_step`](/reference/tools/mcp#update_step) | `tools.update_step({ step_id, layout_content_entry_id })` |
96
+ | Edit the entry data | [`contentEntryUpdate`](/reference/management-api/schema/cms-models#contententryupdate) | [`update_content_entry`](/reference/tools/mcp#update_content_entry) | `tools.update_content_entry({ content_entry_id, data })` |
97
+ | Find the entries that are not valid | [`workspaceContentEntryValidation`](/reference/management-api/schema/cms-models#workspacecontententryvalidation) | [`validate_workspace_content_entries`](/reference/tools/mcp#validate_workspace_content_entries) | `tools.validate_workspace_content_entries({ workspace_id })` |
98
+ | Delete an entry | [`contentEntryDelete`](/reference/management-api/schema/cms-models#contententrydelete) | [`guide_delete_content_entry`](/reference/tools/mcp#guide_delete_content_entry) | `tools.guide_delete_content_entry({ content_entry_id })` |
99
+
100
+ The MCP server does not delete an entry. `guide_delete_content_entry` gives the link to the entry in the dashboard, where you delete it.
101
+
102
+ ## Related
103
+
104
+ - [About the content model](/explanation/the-content-model) — why the schema and the data
105
+ are separate.
106
+ - [About content references](/explanation/content-references) — why a delete stops.
107
+ - [How to create a content entry](/how-to/create-a-content-entry)
108
+ - [How to point one entry at another](/how-to/point-one-entry-at-another)
109
+ - [Models](/reference/dashboard/content/models)
@@ -0,0 +1,119 @@
1
+ ---
2
+ type: reference
3
+ layout: docs
4
+ ---
5
+
6
+ import { Screenshot } from '../../../../../components/Screenshot'
7
+
8
+ # Models
9
+
10
+ A Model is a reusable schema. It sets which fields a piece of content can hold, and it holds no data itself.
11
+
12
+ <Screenshot
13
+ route="/{orgSlug}/{projectId}/workspaces/{workspaceId}/models"
14
+ alt="The models list in the schema builder on the Picked dashboard"
15
+ />
16
+
17
+ ## Where a Model appears
18
+
19
+ **CMS** in the sidebar holds **Models**, and that list shows every Model in the
20
+ workspace. The list shows the **Key** below the name, because the key is the value that
21
+ a schema holds.
22
+
23
+ Two shortcuts open a filtered subset of the same list. **Flows** holds **Step Layouts**,
24
+ and **Pages** holds **Page Layouts**.
25
+
26
+ ## Category
27
+
28
+ A category gives a Model a role. It decides where the Model appears, and what renders an
29
+ entry that comes from it.
30
+
31
+ | Category | It gives its shape to | What renders it |
32
+ | --- | --- | --- |
33
+ | **Page layout** | A standalone [Page](/reference/dashboard/content/pages). | The SDK renders the entry on your server. |
34
+ | **Step layout** | One [Step](/reference/dashboard/steps) inside a Flow. | The Step renders the entry in the browser. |
35
+ | **None (general content)** | Content with no layout role. | Nothing renders it directly. A [reference field](#reference-fields) reaches it. |
36
+
37
+ A Model with no category holds content that other content points at, such as a product
38
+ or a category. It appears under **CMS** only.
39
+
40
+ :::warning
41
+ The category is fixed when you create the Model. You cannot change it later.
42
+ :::
43
+
44
+ ## Field types
45
+
46
+ A Model is built from fields. Each field has a type. The type decides the editor for the
47
+ field, and the shape of the value that the field holds.
48
+
49
+ | Type | Holds | Use it for |
50
+ | --- | --- | --- |
51
+ | **Single line text** | A short string. | A title, a label, or a short headline. |
52
+ | **Multi-line text** | A longer plain string. | A description, or a paragraph with no format marks. |
53
+ | **Markdown** | A Markdown string. | Body copy with format marks. |
54
+ | **Slug** | A URL-safe string. | A part of a path, or an identifier. |
55
+ | **Number** | A numeric value. | A price, a count, or a rating. |
56
+ | **Boolean** | A true or false value. | A toggle or a flag. |
57
+ | **Date** | A date value. | A publish date or a deadline. |
58
+ | **Color** | A color value. | A theme accent or a swatch. |
59
+ | **JSON** | Any JSON value. | Structured data with no editor of its own. |
60
+ | **Group** | An object of fields inside the Model. | A set of related fields, held together. |
61
+ | **Content block** | A [Block](/reference/dashboard/content/blocks) schema inside the Model. | A shared schema fragment that you reuse. |
62
+ | **Page Sections** | A repeatable Content block field, limited to the Section category. | The section list of a page. |
63
+ | **Reference** | A pointer at another [content entry](/reference/dashboard/content/content-entries). | A product that points at its category. |
64
+ | **Asset** | A link to an [Asset Library](/reference/dashboard/content/asset-library) item. | An image, a video, or a document. |
65
+ | **HTML** | A link to a `.html` file in your library. | HTML that you wrote before, held inside the content. |
66
+
67
+ ## Reference fields
68
+
69
+ A **Reference** field points at another content entry. The entry that you point at keeps
70
+ its own data, and many fields can point at the same entry.
71
+
72
+ | Option | Values | What it does |
73
+ | --- | --- | --- |
74
+ | **Target Model** | A Model, or **Any Model** | Limits which entries an editor can choose. |
75
+ | **Repeatable** | On or off | On gives an ordered list of entries. Off gives one entry. |
76
+
77
+ **Target Model** holds the `key` of the Model, and not its id. A duplicate of the
78
+ workspace therefore keeps the constraint.
79
+
80
+ A reference stays inside one workspace. A field cannot point at an entry in another
81
+ workspace, and Picked reports such a target as unknown.
82
+
83
+ ## Repeatable and grouped fields
84
+
85
+ You can make any field **repeatable**. It then shows as a sortable list of values, and
86
+ not as one value. Use it for a gallery, for a list of features, or for any collection.
87
+
88
+ A **Group** field holds a set of fields under one key, and it gives a structured object.
89
+ Make a group repeatable to describe a list of objects, such as a list of feature cards.
90
+
91
+ ## Delete rules
92
+
93
+ Picked does not delete a Model while something still needs it.
94
+
95
+ | Condition | Result |
96
+ | --- | --- |
97
+ | Content entries still belong to the Model | The delete stops. |
98
+ | A Reference field still holds the Model as its **Target Model** | The delete stops. |
99
+
100
+ ## API and MCP
101
+
102
+ You can also do this task with the [Management API](/reference/management-api/schema), the [MCP server](/reference/tools/mcp), or code that you send to [`picked_run`](/reference/tools/mcp-run).
103
+
104
+ | Task | GraphQL | MCP tool | Run |
105
+ | --- | --- | --- | --- |
106
+ | List the Models of a workspace | [`contentModels`](/reference/management-api/schema/cms-models#contentmodels) | [`list_content_models`](/reference/tools/mcp#list_content_models) | `tools.list_content_models({ workspace_id })` |
107
+ | Create a Model | [`contentModelCreate`](/reference/management-api/schema/cms-models#contentmodelcreate) | [`create_content_model`](/reference/tools/mcp#create_content_model) | `tools.create_content_model({ workspace_id, name, key, schema })` |
108
+ | Change the fields of a Model | [`contentModelUpdate`](/reference/management-api/schema/cms-models#contentmodelupdate) | [`update_content_model`](/reference/tools/mcp#update_content_model) | `tools.update_content_model({ content_model_id, schema })` |
109
+ | Delete a Model | [`contentModelDelete`](/reference/management-api/schema/cms-models#contentmodeldelete) | None | None |
110
+
111
+ ## Related
112
+
113
+ - [About the content model](/explanation/the-content-model) — why a schema change does not
114
+ migrate your data.
115
+ - [About content references](/explanation/content-references) — why a reference is a pointer.
116
+ - [How to define a page layout](/how-to/define-a-page-layout)
117
+ - [How to create a content entry](/how-to/create-a-content-entry)
118
+ - [How to point one entry at another](/how-to/point-one-entry-at-another)
119
+ - [Blocks](/reference/dashboard/content/blocks)
@@ -0,0 +1,72 @@
1
+ ---
2
+ type: reference
3
+ layout: docs
4
+ ---
5
+
6
+ import { Screenshot } from '../../../../../components/Screenshot'
7
+
8
+ # Pages
9
+
10
+ A Page is a standalone, server-rendered experience backed by CMS content, built for SEO-critical landing pages.
11
+
12
+ <Screenshot
13
+ route="/{orgSlug}/{projectId}/workspaces/{workspaceId}/experiences"
14
+ alt="The experiences list, where Pages and Flows are created on the Picked dashboard"
15
+ />
16
+
17
+ ## Edit page content
18
+
19
+ The Page editor has two tabs. The **Properties** tab holds the content of the page.
20
+ The **Settings** tab holds its name, its condition, and its layout. Fill in the
21
+ fields on the **Properties** tab. The inspector on the right edits the field that you
22
+ choose, and the preview panel shows the page while it fills in.
23
+
24
+ ## Status
25
+
26
+ The **Settings** tab has a status control. It has two values.
27
+
28
+ | Value | Effect |
29
+ | --- | --- |
30
+ | **Active** | Picked serves the page to everyone. |
31
+ | **Draft** | Picked keeps the page out of the published site. |
32
+
33
+ A draft page is absent from the published payload. Picked also holds back the
34
+ steps, fields and actions that only that page uses, and it does not serve the
35
+ page content. A visitor and a search-engine crawler receive nothing.
36
+
37
+ To see a draft page, open it with a preview link. See
38
+ [How to see a preview of a workspace](/how-to/preview-a-workspace). One preview
39
+ link opens every draft page in the workspace.
40
+
41
+ Status applies to Flows and to Pages. It is not the same as the status of the
42
+ workspace: a draft page can be in a live workspace.
43
+
44
+ :::warning
45
+ Status is part of the published version. Change the value, then publish the
46
+ workspace to apply the change to the live site.
47
+ :::
48
+
49
+ ## Change or remove the layout
50
+
51
+ Use the change-layout control on the **Settings** tab to move the page to another
52
+ [Page Layout](/reference/dashboard/content/models#category). When you unlink a layout,
53
+ Picked separates the content entry from the page. It deletes no entry, but the page then
54
+ has no content to render until you attach a layout again.
55
+
56
+ ## API and MCP
57
+
58
+ You can also do this task with the [Management API](/reference/management-api/schema), the [MCP server](/reference/tools/mcp), or code that you send to [`picked_run`](/reference/tools/mcp-run).
59
+
60
+ | Task | GraphQL | MCP tool | Run |
61
+ | --- | --- | --- | --- |
62
+ | Edit the page content | [`contentEntryUpdate`](/reference/management-api/schema/cms-models#contententryupdate) | [`update_content_entry`](/reference/tools/mcp#update_content_entry) | `tools.update_content_entry({ content_entry_id, data })` |
63
+ | Set the status | [`experienceUpdate`](/reference/management-api/schema/experience#experienceupdate) | [`update_experience_flow`](/reference/tools/mcp#update_experience_flow) | `tools.update_experience_flow({ experience_id, workspace_id, status })` |
64
+ | See a draft page | None | [`get_preview_url`](/reference/tools/mcp#get_preview_url) | `tools.get_preview_url({ workspace_id, target_url })` |
65
+ | Change the layout | [`stepUpdate`](/reference/management-api/schema/step#stepupdate) | [`update_step`](/reference/tools/mcp#update_step) | `tools.update_step({ step_id, layout_content_entry_id })` |
66
+
67
+ ## Related
68
+
69
+ - [About pages and flows](/explanation/pages-and-flows) — when to choose a Page.
70
+ - [How to fill and publish a page](/how-to/fill-and-publish-a-page)
71
+ - [How to server-render a page](/how-to/server-render-a-page)
72
+ - [Models](/reference/dashboard/content/models) — the schema behind a Page.
@@ -0,0 +1,61 @@
1
+ ---
2
+ type: reference
3
+ layout: docs
4
+ ---
5
+
6
+ import { Screenshot } from '../../../../components/Screenshot'
7
+
8
+ # Experiences
9
+
10
+ An experience is personalized content that Picked serves to the visitors on your
11
+ site. Each experience points at a component that you register in your application.
12
+
13
+ An experience is either a **Flow** or a **Page**. A **Flow** is an interactive
14
+ experience of more than one step, and the browser renders it. This page covers the
15
+ flow. A **Page** is a standalone experience that the server renders from CMS content,
16
+ for a landing page where the search rank matters. See [Pages](/reference/dashboard/content/pages) for
17
+ that kind.
18
+
19
+ <Screenshot
20
+ route="/{orgSlug}/{projectId}/workspaces/{workspaceId}/experiences"
21
+ alt="The experiences list for a workspace on the Picked dashboard"
22
+ />
23
+
24
+ ## Experience settings
25
+
26
+ Choose no node on the canvas, or click the canvas background, to open the experience
27
+ inspector in the right panel.
28
+
29
+ **Name**: The name that the dashboard shows. Your visitors do not see it.
30
+
31
+ **Component Name**: The identifier that points this experience at a component in your
32
+ application.
33
+
34
+ **Condition**: An optional condition. When you set it, the experience starts only for
35
+ a visitor who matches the condition. See
36
+ [Condition Builder](/reference/dashboard/flow-builder/condition-builder) for how to write one. Keep it
37
+ blank to start the experience for every visitor.
38
+
39
+ **Initialize Open**: An optional condition that controls whether the experience opens
40
+ by itself when the page loads. When it is blank, the experience loads but stays
41
+ closed until something opens it.
42
+
43
+ ## Experience list
44
+
45
+ The experiences list shows every experience in the current project. Click an
46
+ experience to open it in the flow builder.
47
+
48
+ ## API and MCP
49
+
50
+ You can also do this task with the [Management API](/reference/management-api/schema), the [MCP server](/reference/tools/mcp), or code that you send to [`picked_run`](/reference/tools/mcp-run).
51
+
52
+ | Task | GraphQL | MCP tool | Run |
53
+ | --- | --- | --- | --- |
54
+ | Change the experience settings | [`experienceUpdate`](/reference/management-api/schema/experience#experienceupdate), [`experienceFlowUpdate`](/reference/management-api/schema/experience#experienceflowupdate) | [`update_experience_flow`](/reference/tools/mcp#update_experience_flow) | `tools.update_experience_flow({ experience_id, workspace_id, name, status, condition, targets })` |
55
+ | List the experiences | [`experiences`](/reference/management-api/schema/experience#experiences) | [`list_experiences`](/reference/tools/mcp#list_experiences) | `tools.list_experiences({ workspace_id })` |
56
+ | Open an experience | [`experience`](/reference/management-api/schema/experience#experience) | [`get_experience`](/reference/tools/mcp#get_experience) | `tools.get_experience({ experience_id })` |
57
+
58
+ ## Related
59
+
60
+ - [About pages and flows](/explanation/pages-and-flows) — Page or Flow.
61
+ - [How to create an experience](/how-to/create-an-experience)