picked 0.0.111-next.2 → 0.0.111-next.4

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 (78) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/docs/explanation/app-authentication.md +178 -0
  3. package/docs/explanation/apps.md +169 -0
  4. package/docs/explanation/conditions-and-the-logic-engine.md +12 -2
  5. package/docs/explanation/feature-flag-allocation.md +5 -3
  6. package/docs/how-to/apps/add-a-page-to-the-dashboard.md +257 -0
  7. package/docs/how-to/apps/add-a-workflow-tool.md +199 -0
  8. package/docs/how-to/apps/add-an-mcp-server-to-an-app.md +210 -0
  9. package/docs/how-to/apps/connect-a-third-party-service-with-oauth.md +307 -0
  10. package/docs/how-to/apps/create-an-app-in-the-dashboard.md +162 -0
  11. package/docs/how-to/apps/deploy-an-app.md +201 -0
  12. package/docs/how-to/apps/develop-an-app-locally.md +152 -0
  13. package/docs/how-to/apps/host-an-app-on-vercel.md +226 -0
  14. package/docs/how-to/apps/install-an-app.md +116 -0
  15. package/docs/how-to/apps/link-to-an-installation-from-your-site.md +134 -0
  16. package/docs/how-to/apps/read-project-data-from-an-app.md +225 -0
  17. package/docs/how-to/apps/rotate-an-app-key.md +130 -0
  18. package/docs/how-to/apps/run-code-when-a-workspace-publishes.md +148 -0
  19. package/docs/how-to/apps/store-data-for-an-installation.md +230 -0
  20. package/docs/how-to/apps/test-an-app.md +359 -0
  21. package/docs/how-to/apps/upgrade-or-uninstall-an-app.md +97 -0
  22. package/docs/how-to/apps/use-an-app-tool-in-a-workflow.md +112 -0
  23. package/docs/index.md +6 -3
  24. package/docs/reference/apps/app-kit.md +811 -0
  25. package/docs/reference/apps/environment.md +116 -0
  26. package/docs/reference/apps/manifest.md +311 -0
  27. package/docs/reference/apps/protocol.md +497 -0
  28. package/docs/reference/dashboard/apps.md +504 -0
  29. package/docs/reference/dashboard/external-apis.md +5 -0
  30. package/docs/reference/dashboard/features.mdx +5 -5
  31. package/docs/reference/dashboard/labels.md +25 -8
  32. package/docs/reference/dashboard/lead-search.md +6 -6
  33. package/docs/reference/dashboard/reports.mdx +13 -5
  34. package/docs/reference/dashboard/workflow-tools.md +14 -0
  35. package/docs/reference/glossary.md +153 -140
  36. package/docs/reference/management-api/authentication.md +36 -27
  37. package/docs/reference/management-api/authorization-and-scopes.md +73 -21
  38. package/docs/reference/management-api/schema/api-key.md +10 -10
  39. package/docs/reference/management-api/schema/app.md +726 -0
  40. package/docs/reference/management-api/schema/auth.md +7 -7
  41. package/docs/reference/management-api/schema/common.md +54 -35
  42. package/docs/reference/management-api/schema/feature.md +1 -1
  43. package/docs/reference/management-api/schema/feedback.md +1 -1
  44. package/docs/reference/management-api/schema/index.md +35 -20
  45. package/docs/reference/management-api/schema/label.md +31 -8
  46. package/docs/reference/management-api/schema/organization.md +66 -66
  47. package/docs/reference/management-api/schema/project.md +5 -5
  48. package/docs/reference/management-api/schema/report.md +1 -1
  49. package/docs/reference/management-api/schema/shopify.md +19 -19
  50. package/docs/reference/management-api/schema/tenant-branding.md +16 -0
  51. package/docs/reference/management-api/schema/workflow.md +6 -1
  52. package/docs/reference/management-api/schema/workspace.md +2 -2
  53. package/docs/reference/sdk/analytics-events.md +42 -36
  54. package/docs/reference/sdk/conditions.md +3 -3
  55. package/docs/reference/sdk/fields.md +5 -4
  56. package/docs/reference/sdk/index.md +4 -4
  57. package/docs/reference/sdk/plugins/create-experience.md +11 -9
  58. package/docs/reference/sdk/plugins/hotjar.md +2 -2
  59. package/docs/reference/sdk/plugins/sentry.md +2 -2
  60. package/docs/reference/sdk/plugins/shopify.md +2 -2
  61. package/docs/reference/sdk/predicates.md +5 -5
  62. package/docs/reference/sdk/ssr/index.md +4 -3
  63. package/docs/reference/sdk/ssr/rendering-and-hydration.md +30 -0
  64. package/docs/reference/sdk/type-generation.md +24 -19
  65. package/docs/reference/tools/admin-api-client.md +15 -0
  66. package/docs/reference/tools/cli.md +192 -41
  67. package/docs/reference/tools/mcp.md +30 -9
  68. package/docs/tutorials/first-app.md +308 -0
  69. package/package.json +4 -4
  70. package/docs/explanation/how-pickedql-works.md +0 -76
  71. package/docs/how-to/analytics/index.md +0 -324
  72. package/docs/reference/management-api/schema/analytics.md +0 -75
  73. package/docs/reference/pickedql/data-sources.md +0 -174
  74. package/docs/reference/pickedql/dimensions.md +0 -103
  75. package/docs/reference/pickedql/filtering.md +0 -64
  76. package/docs/reference/pickedql/index.md +0 -18
  77. package/docs/reference/pickedql/schema.md +0 -172
  78. package/docs/reference/pickedql/virtual-functions.md +0 -248
@@ -89,6 +89,26 @@ not give `organization_projects/create`, `organization_projects/update`, or
89
89
  | `organization_integrations/update` | `ORGANIZATION_INTEGRATIONS_UPDATE` | Change the settings of an integration |
90
90
  | `organization_integrations/delete` | `ORGANIZATION_INTEGRATIONS_DELETE` | Remove an integration |
91
91
 
92
+ ### Organization apps
93
+
94
+ An app is an integration that your organization builds. You deploy it as a set of
95
+ versions, and you install it on a project.
96
+
97
+ | Scope | GraphQL Enum | Description |
98
+ | -------------------------- | -------------------------- | -------------------------------------------------------------------------------- |
99
+ | `organization_apps/create` | `ORGANIZATION_APPS_CREATE` | Create an app, and install an app on a project |
100
+ | `organization_apps/read` | `ORGANIZATION_APPS_READ` | Read the apps, their versions and their installations, and open an app |
101
+ | `organization_apps/update` | `ORGANIZATION_APPS_UPDATE` | Deploy a new version, upgrade an installation, and add or remove the public keys |
102
+ | `organization_apps/delete` | `ORGANIZATION_APPS_DELETE` | Delete an app, and uninstall an app from a project |
103
+
104
+ ### Publish an app
105
+
106
+ This scope is root-level: it binds to no organization. A client manager does not get it by default.
107
+
108
+ | Scope | GraphQL Enum | Description |
109
+ | -------------- | -------------- | ------------------------------------ |
110
+ | `apps/publish` | `APPS_PUBLISH` | Publish an app to every organization |
111
+
92
112
  ### Organization reports
93
113
 
94
114
  | Scope | GraphQL Enum | Description |
@@ -125,6 +145,7 @@ owner:
125
145
  - `organization_projects/read`, `organization_projects/update`, `organization_projects/delete`
126
146
  - All `organization_api_keys/*` scopes
127
147
  - All `organization_integrations/*` scopes
148
+ - All `organization_apps/*` scopes
128
149
  - `organization_reports/read`
129
150
 
130
151
  ### Member
@@ -138,6 +159,7 @@ another member. These are the default scopes of a member:
138
159
  - `organization_projects/read`, `organization_projects/update`, `organization_projects/delete`
139
160
  - All `organization_api_keys/*` scopes
140
161
  - All `organization_integrations/*` scopes
162
+ - All `organization_apps/*` scopes
141
163
  - `organization_reports/read`
142
164
 
143
165
  These are the differences between an owner and a member:
@@ -150,6 +172,7 @@ These are the differences between an owner and a member:
150
172
  | Update member roles | Yes | No |
151
173
  | Revoke invitations | Yes | No |
152
174
  | Control projects and integrations | Yes | Yes |
175
+ | Control apps | Yes | Yes |
153
176
  | Control API keys | Yes | Yes |
154
177
  | Read reports | Yes | Yes |
155
178
 
@@ -185,30 +208,55 @@ This table gives the scope that each common operation needs:
185
208
  | `shopifyWebhooks` | `organization_integrations/read` |
186
209
  | `shopifyMetafieldConfigs` | `organization_integrations/read` |
187
210
  | `report` | `organization_reports/read` |
211
+ | `apps` | `organization_apps/read` |
212
+ | `app` | `organization_apps/read` |
213
+ | `appInstallations` | `organization_apps/read` |
214
+ | `appInstallation` | `organization_apps/read` |
215
+ | `labeledAppInstallations` | `organization_apps/read` |
216
+ | `installableApps` | `organization_apps/read` |
188
217
 
189
218
  ### Mutations
190
219
 
191
- | Mutation | Required Scope |
192
- | ------------------------------ | ---------------------------------- |
193
- | `organizationCreate` | `organization/create` |
194
- | `organizationUpdate` | `organization/update` |
195
- | `organizationDelete` | `organization/delete` |
196
- | `organizationMemberInvite` | `organization_invitations/create` |
197
- | `organizationInvitationRevoke` | `organization_invitations/delete` |
198
- | `organizationMemberRemove` | `organization_members/delete` |
199
- | `organizationMemberRoleUpdate` | `organization_members/update` |
200
- | `projectCreate` | `organization_projects/create` |
201
- | `apiKeyCreate` | `organization_api_keys/create` |
202
- | `apiKeyRevoke` | `organization_api_keys/delete` |
203
- | `shopifyWebhookCreate` | `organization_integrations/create` |
204
- | `shopifyWebhookUpdate` | `organization_integrations/update` |
205
- | `shopifyWebhookDelete` | `organization_integrations/delete` |
206
- | `shopifyMetafieldConfigCreate` | `organization_integrations/create` |
207
- | `shopifyMetafieldConfigUpdate` | `organization_integrations/update` |
208
- | `shopifyMetafieldConfigDelete` | `organization_integrations/delete` |
209
- | `reportCreate` | `organization_reports/create` |
210
- | `reportUpdate` | `organization_reports/update` |
211
- | `reportDelete` | `organization_reports/delete` |
220
+ | Mutation | Required Scope |
221
+ | ------------------------------ | ---------------------------------------------------------------------------------------- |
222
+ | `organizationCreate` | `organization/create` |
223
+ | `organizationUpdate` | `organization/update` |
224
+ | `organizationDelete` | `organization/delete` |
225
+ | `organizationMemberInvite` | `organization_invitations/create` |
226
+ | `organizationInvitationRevoke` | `organization_invitations/delete` |
227
+ | `organizationMemberRemove` | `organization_members/delete` |
228
+ | `organizationMemberRoleUpdate` | `organization_members/update` |
229
+ | `projectCreate` | `organization_projects/create` |
230
+ | `apiKeyCreate` | `organization_api_keys/create` |
231
+ | `apiKeyRevoke` | `organization_api_keys/delete` |
232
+ | `shopifyWebhookCreate` | `organization_integrations/create` |
233
+ | `shopifyWebhookUpdate` | `organization_integrations/update` |
234
+ | `shopifyWebhookDelete` | `organization_integrations/delete` |
235
+ | `shopifyMetafieldConfigCreate` | `organization_integrations/create` |
236
+ | `shopifyMetafieldConfigUpdate` | `organization_integrations/update` |
237
+ | `shopifyMetafieldConfigDelete` | `organization_integrations/delete` |
238
+ | `reportCreate` | `organization_reports/create` |
239
+ | `reportUpdate` | `organization_reports/update` |
240
+ | `reportDelete` | `organization_reports/delete` |
241
+ | `appDeploy` | `organization_apps/update`. The first deploy of an app needs `organization_apps/create`. |
242
+ | `appInstall` | `organization_apps/create` |
243
+ | `appInstallationUpgrade` | `organization_apps/update` |
244
+ | `appUninstall` | `organization_apps/delete` |
245
+ | `appDelete` | `organization_apps/delete` |
246
+ | `appPublicKeyAdd` | `organization_apps/update` |
247
+ | `appPublicKeyRemove` | `organization_apps/update` |
248
+ | `appSessionTokenCreate` | `organization_apps/read` |
249
+ | `appVisibilityUpdate` | `apps/publish` |
250
+
251
+ `appInstall` and `appInstallationUpgrade` also need each scope that the version of the app
252
+ asks for, in the project.
253
+
254
+ `appInstallationTokenCreate` needs no scope. It accepts only an app, which signs a
255
+ `picked-app-assertion` token. See
256
+ [Installation tokens](/reference/apps/protocol#installation-tokens).
257
+
258
+ An installation token carries only the scopes that the installation got. It also reads and
259
+ writes the labels of its installation, and reads its installation, with no scope.
212
260
 
213
261
  Some mutations do not require organization-level scopes because they operate on the caller's own data:
214
262
 
@@ -295,6 +343,10 @@ Response:
295
343
  "ORGANIZATION_INTEGRATIONS_READ",
296
344
  "ORGANIZATION_INTEGRATIONS_UPDATE",
297
345
  "ORGANIZATION_INTEGRATIONS_DELETE",
346
+ "ORGANIZATION_APPS_CREATE",
347
+ "ORGANIZATION_APPS_READ",
348
+ "ORGANIZATION_APPS_UPDATE",
349
+ "ORGANIZATION_APPS_DELETE",
298
350
  "ORGANIZATION_REPORTS_READ"
299
351
  ]
300
352
  }
@@ -12,7 +12,7 @@ See [Management API schema](/reference/management-api/schema) for every domain,
12
12
 
13
13
  ### `apiKeys`
14
14
 
15
- Lists an organisation's API keys, newest first. Revoked keys are left out.
15
+ Lists an organization's API keys, newest first. Revoked keys are left out.
16
16
  Scope: `ORGANIZATION_API_KEYS_READ`.
17
17
 
18
18
  ```graphql
@@ -47,7 +47,7 @@ apiKeyRevoke(input: ApiKeyRevokeInput!): Boolean! @auth
47
47
 
48
48
  ```graphql
49
49
  """
50
- A credential for a server-to-server integration. It belongs to an organisation, can belong to one
50
+ A credential for a server-to-server integration. It belongs to an organization, can belong to one
51
51
  project, and carries scopes. The full key is returned only once, by `apiKeyCreate`.
52
52
  """
53
53
  type ApiKey {
@@ -60,11 +60,11 @@ type ApiKey {
60
60
  """
61
61
  keyPrefix: String!
62
62
  """
63
- The ID of the project the key belongs to. Null when the key covers the whole organisation.
63
+ The ID of the project the key belongs to. Null when the key covers the whole organization.
64
64
  """
65
65
  projectId: String
66
66
  """
67
- The name of the project the key belongs to. Null when the key covers the whole organisation.
67
+ The name of the project the key belongs to. Null when the key covers the whole organization.
68
68
  """
69
69
  projectName: String
70
70
  """The ID of the user who created the key."""
@@ -122,7 +122,7 @@ type ApiKeyCreatePayload {
122
122
  ```graphql
123
123
  """The input of `apiKeys`."""
124
124
  input ApiKeysInput {
125
- """The ID of the organisation whose keys to list."""
125
+ """The ID of the organization whose keys to list."""
126
126
  organizationId: ID!
127
127
  }
128
128
  ```
@@ -132,17 +132,17 @@ input ApiKeysInput {
132
132
  ```graphql
133
133
  """The input of `apiKeyCreate`."""
134
134
  input ApiKeyCreateInput {
135
- """The ID of the organisation the key belongs to."""
135
+ """The ID of the organization the key belongs to."""
136
136
  organizationId: ID!
137
137
  """The name of the key. Must not be blank."""
138
138
  name: String!
139
139
  """
140
- The ID of the project to restrict the key to. Null for a key that covers the whole organisation.
141
- A project key is refused on any operation outside that project, organisation-level ones included.
140
+ The ID of the project to restrict the key to. Null for a key that covers the whole organization.
141
+ A project key is refused on any operation outside that project, organization-level ones included.
142
142
  """
143
143
  projectId: ID
144
144
  """
145
- The scopes the key holds. At least one, each held by the caller and assignable to an organisation
145
+ The scopes the key holds. At least one, each held by the caller and assignable to an organization
146
146
  key, or to a project key when `projectId` is set.
147
147
  """
148
148
  scopes: [Scope!]!
@@ -156,7 +156,7 @@ input ApiKeyCreateInput {
156
156
  input ApiKeyRevokeInput {
157
157
  """The ID of the API key to revoke."""
158
158
  keyId: ID!
159
- """Not read: the key's own organisation applies."""
159
+ """Not read: the key's own organization applies."""
160
160
  organizationId: ID!
161
161
  }
162
162
  ```