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
@@ -21,8 +21,8 @@ user: User @auth(mfa: EXEMPT)
21
21
 
22
22
  ### `viewerScopes`
23
23
 
24
- Lists the scopes the caller holds outside any organisation, such as `ORGANIZATION_CREATE`. Empty
25
- for an API key. `Organization.viewerScopes` lists the scopes held in one organisation.
24
+ Lists the scopes the caller holds outside any organization, such as `ORGANIZATION_CREATE`. Empty
25
+ for an API key. `Organization.viewerScopes` lists the scopes held in one organization.
26
26
 
27
27
  ```graphql
28
28
  viewerScopes: [Scope!]! @auth
@@ -238,7 +238,7 @@ enum AuthErrorCode {
238
238
  """No factor with the ID belongs to the caller."""
239
239
  MFA_FACTOR_NOT_FOUND
240
240
  """
241
- The operation needs an `AAL2` session: the caller is staff, belongs to an organisation that
241
+ The operation needs an `AAL2` session: the caller is staff, belongs to an organization that
242
242
  requires two-factor authentication, or is removing a verified factor or setting a password while
243
243
  holding one. Verify a factor with `mfaChallengeVerify` and retry with the returned session.
244
244
  """
@@ -399,7 +399,7 @@ type MfaTotpEnrollment {
399
399
  enum MfaRequirementReason {
400
400
  """The user is a super admin or a client manager."""
401
401
  STAFF
402
- """The user belongs to an organisation with `requireMfa` on."""
402
+ """The user belongs to an organization with `requireMfa` on."""
403
403
  ORGANIZATION
404
404
  }
405
405
  ```
@@ -465,11 +465,11 @@ type User {
465
465
  """When the user last changed."""
466
466
  updatedAt: DateTime!
467
467
  """
468
- The pending organisation invitations addressed to the user's email address.
468
+ The pending organization invitations addressed to the user's email address.
469
469
  """
470
470
  invitations(first: Int, after: String): ViewerInvitationConnection! @auth
471
471
  """
472
- The organisations the user belongs to; for a staff caller, every organisation. `search` filters
472
+ The organizations the user belongs to; for a staff caller, every organization. `search` filters
473
473
  by name (case-insensitive substring); `sortKey` and `reverse` set the order.
474
474
  """
475
475
  organizations(first: Int, after: String, search: String, sortKey: OrganizationSortKeys = NAME, reverse: Boolean = false): OrganizationConnection! @auth
@@ -871,7 +871,7 @@ type MagicLinkVerifyPayload {
871
871
  enum EmailLinkType {
872
872
  """A password-reset email."""
873
873
  RECOVERY
874
- """An invitation to an organisation, sent to an address with no account."""
874
+ """An invitation to an organization, sent to an address with no account."""
875
875
  INVITE
876
876
  """A sign-in email to a confirmed account."""
877
877
  MAGIC_LINK
@@ -58,6 +58,11 @@ enum AuthType {
58
58
  USER
59
59
  """An API key, sent as `X-API-Key`."""
60
60
  API_KEY
61
+ """
62
+ An app assertion, sent as `picked-app-assertion`: a JWT the app signs with its key, naming the
63
+ installation it acts for. Only fields that name `APP` accept it.
64
+ """
65
+ APP
61
66
  }
62
67
  ```
63
68
 
@@ -89,7 +94,7 @@ refuses an API key. `only: API_KEY` accepts an API key and refuses a user access
89
94
  invalid or refused credential fails with `UNAUTHENTICATED`.
90
95
 
91
96
  `mfa` applies to user access tokens only. With `mfa: ENFORCE`, the default, a super admin, a client
92
- manager or a member of an organisation that requires two-factor authentication is refused with
97
+ manager or a member of an organization that requires two-factor authentication is refused with
93
98
  `MFA_REQUIRED` while their session is `AAL1`; a token issued through OAuth counts as `AAL2`.
94
99
  `mfa: EXEMPT` serves the field at `AAL1`, so such a user can enrol or verify a second factor.
95
100
  """
@@ -110,72 +115,84 @@ directive @cache(policy: String!) on FIELD_DEFINITION
110
115
 
111
116
  ```graphql
112
117
  """
113
- A permission that an operation checks. `ORGANIZATION_` scopes come from an organisation membership
118
+ A permission that an operation checks. `ORGANIZATION_` scopes come from an organization membership
114
119
  or an API key. `STAFF_`, `FLAGS_`, `USERS_` and `CHAT_` scopes are system-level and held by Picked
115
120
  staff.
116
121
  """
117
122
  enum Scope {
118
- """Create new organisations."""
123
+ """Create new organizations."""
119
124
  ORGANIZATION_CREATE
120
- """Read organisation details."""
125
+ """Read organization details."""
121
126
  ORGANIZATION_READ
122
- """Update organisation settings."""
127
+ """Update organization settings."""
123
128
  ORGANIZATION_UPDATE
124
- """Delete an organisation."""
129
+ """Delete an organization."""
125
130
  ORGANIZATION_DELETE
126
- """Invite new organisation members."""
131
+ """Invite new organization members."""
127
132
  ORGANIZATION_MEMBERS_CREATE
128
- """View organisation members."""
133
+ """View organization members."""
129
134
  ORGANIZATION_MEMBERS_READ
130
- """Update organisation member roles."""
135
+ """Update organization member roles."""
131
136
  ORGANIZATION_MEMBERS_UPDATE
132
- """Remove organisation members."""
137
+ """Remove organization members."""
133
138
  ORGANIZATION_MEMBERS_DELETE
134
- """Grant and revoke the scopes held by organisation members."""
139
+ """Grant and revoke the scopes held by organization members."""
135
140
  ORGANIZATION_MEMBERS_MANAGE_SCOPES
136
- """Create organisation invitations."""
141
+ """Create organization invitations."""
137
142
  ORGANIZATION_INVITATIONS_CREATE
138
- """View organisation invitations."""
143
+ """View organization invitations."""
139
144
  ORGANIZATION_INVITATIONS_READ
140
- """Revoke organisation invitations."""
145
+ """Revoke organization invitations."""
141
146
  ORGANIZATION_INVITATIONS_DELETE
142
- """Create projects within an organisation."""
147
+ """Create projects within an organization."""
143
148
  ORGANIZATION_PROJECTS_CREATE
144
- """View organisation projects."""
149
+ """View organization projects."""
145
150
  ORGANIZATION_PROJECTS_READ
146
- """Update organisation projects."""
151
+ """Update organization projects."""
147
152
  ORGANIZATION_PROJECTS_UPDATE
148
- """Delete organisation projects."""
153
+ """Delete organization projects."""
149
154
  ORGANIZATION_PROJECTS_DELETE
150
- """Create API keys for an organisation."""
155
+ """Create API keys for an organization."""
151
156
  ORGANIZATION_API_KEYS_CREATE
152
- """View organisation API keys."""
157
+ """View organization API keys."""
153
158
  ORGANIZATION_API_KEYS_READ
154
- """Revoke organisation API keys."""
159
+ """Revoke organization API keys."""
155
160
  ORGANIZATION_API_KEYS_DELETE
156
- """Create organisation integrations."""
161
+ """Create organization integrations."""
157
162
  ORGANIZATION_INTEGRATIONS_CREATE
158
- """View organisation integrations."""
163
+ """View organization integrations."""
159
164
  ORGANIZATION_INTEGRATIONS_READ
160
- """Update organisation integrations."""
165
+ """Update organization integrations."""
161
166
  ORGANIZATION_INTEGRATIONS_UPDATE
162
- """Delete organisation integrations."""
167
+ """Delete organization integrations."""
163
168
  ORGANIZATION_INTEGRATIONS_DELETE
164
- """Create organisation reports."""
169
+ """
170
+ View organization apps, their versions and installations, and open an installed app.
171
+ """
172
+ ORGANIZATION_APPS_READ
173
+ """Create organization apps and install them on projects."""
174
+ ORGANIZATION_APPS_CREATE
175
+ """
176
+ Deploy new app versions, upgrade installations and manage an app's public keys.
177
+ """
178
+ ORGANIZATION_APPS_UPDATE
179
+ """Delete organization apps and uninstall them from projects."""
180
+ ORGANIZATION_APPS_DELETE
181
+ """Create organization reports."""
165
182
  ORGANIZATION_REPORTS_CREATE
166
- """View organisation reports."""
183
+ """View organization reports."""
167
184
  ORGANIZATION_REPORTS_READ
168
- """Update organisation reports."""
185
+ """Update organization reports."""
169
186
  ORGANIZATION_REPORTS_UPDATE
170
- """Delete organisation reports."""
187
+ """Delete organization reports."""
171
188
  ORGANIZATION_REPORTS_DELETE
172
189
  """View the content a project's workspaces hold."""
173
190
  ORGANIZATION_WORKSPACE_READ
174
191
  """Create, change and remove the content a project's workspaces hold."""
175
192
  ORGANIZATION_WORKSPACE_UPDATE
176
- """Create leads for an organisation's projects."""
193
+ """Create leads for an organization's projects."""
177
194
  ORGANIZATION_LEADS_CREATE
178
- """View leads captured by an organisation's projects."""
195
+ """View leads captured by an organization's projects."""
179
196
  ORGANIZATION_LEADS_READ
180
197
  """Update leads and their labels."""
181
198
  ORGANIZATION_LEADS_UPDATE
@@ -203,6 +220,8 @@ enum Scope {
203
220
  FLAGS_UPDATE
204
221
  """Delete platform feature flags."""
205
222
  FLAGS_DELETE
223
+ """Publish an app to every organization."""
224
+ APPS_PUBLISH
206
225
  """
207
226
  Reset a user's two-factor authentication: delete their factors and revoke their sessions.
208
227
  """
@@ -237,9 +256,9 @@ enum ErrorCode {
237
256
  UNAUTHORIZED
238
257
  """The caller is authenticated but lacks the scope."""
239
258
  FORBIDDEN
240
- """The organisation does not exist."""
259
+ """The organization does not exist."""
241
260
  ORGANIZATION_NOT_FOUND
242
- """An organisation with this name already exists."""
261
+ """An organization with this name already exists."""
243
262
  ORGANIZATION_ALREADY_EXISTS
244
263
  """The slug is already in use."""
245
264
  SLUG_ALREADY_EXISTS
@@ -249,9 +268,9 @@ enum ErrorCode {
249
268
  INVALID_SLUG
250
269
  """The member does not exist."""
251
270
  MEMBER_NOT_FOUND
252
- """The user is already a member of the organisation."""
271
+ """The user is already a member of the organization."""
253
272
  MEMBER_ALREADY_EXISTS
254
- """The primary owner cannot be removed from the organisation."""
273
+ """The primary owner cannot be removed from the organization."""
255
274
  CANNOT_REMOVE_PRIMARY_OWNER
256
275
  """The invitation does not exist."""
257
276
  INVITATION_NOT_FOUND
@@ -217,7 +217,7 @@ input FeatureVariantInput {
217
217
  input FeatureCreateInput {
218
218
  """The ID of the workspace to create the feature in."""
219
219
  workspaceId: ID!
220
- """Ignored. The feature belongs to the workspace's organisation."""
220
+ """Ignored. The feature belongs to the workspace's organization."""
221
221
  organizationId: ID!
222
222
  """The name of the feature. At least 3 characters."""
223
223
  name: String!
@@ -73,7 +73,7 @@ input FeedbackCreateInput {
73
73
  The dashboard path the user sent the feedback from, such as `/orgs/acme/projects/123`.
74
74
  """
75
75
  pagePath: String
76
- """The ID of the organisation the user was working in."""
76
+ """The ID of the organization the user was working in."""
77
77
  organizationId: ID
78
78
  """The ID of the project the user was working in."""
79
79
  projectId: ID
@@ -32,7 +32,21 @@ An operation with `@auth` needs a caller that has authenticated. `@auth(only: US
32
32
  | [`analyticsSignInTokenCreate`](/reference/management-api/schema/analytics-sign-in#analyticssignintokencreate) | Mutation | Creates a short-lived token that signs the current user into analytics for an organization. Refuses tokens issued to OAuth clients. Scope: `ORGANIZATION_REPORTS_READ`. |
33
33
  | [`apiKeyCreate`](/reference/management-api/schema/api-key#apikeycreate) | Mutation | Creates an API key and returns the full key, once. A blank name, no scopes, or a scope the caller does not hold or the key cannot carry returns `VALIDATION_ERROR`. Scope: `ORGANIZATION_API_KEYS_CREATE`. |
34
34
  | [`apiKeyRevoke`](/reference/management-api/schema/api-key#apikeyrevoke) | Mutation | Revokes an API key, which then stops authenticating at once. Cannot be undone; an unknown or revoked key returns `NOT_FOUND`. Scope: `ORGANIZATION_API_KEYS_DELETE`. |
35
- | [`apiKeys`](/reference/management-api/schema/api-key#apikeys) | Query | Lists an organisation's API keys, newest first. Revoked keys are left out. Scope: `ORGANIZATION_API_KEYS_READ`. |
35
+ | [`apiKeys`](/reference/management-api/schema/api-key#apikeys) | Query | Lists an organization's API keys, newest first. Revoked keys are left out. Scope: `ORGANIZATION_API_KEYS_READ`. |
36
+ | [`app`](/reference/management-api/schema/app#app) | Query | Reads an app. Null when no app has the ID. Scope: `ORGANIZATION_APPS_READ`. |
37
+ | [`appDelete`](/reference/management-api/schema/app#appdelete) | Mutation | Deletes an app and removes it from every project it is installed on. Scope: `ORGANIZATION_APPS_DELETE`. |
38
+ | [`appDeploy`](/reference/management-api/schema/app#appdeploy) | Mutation | Deploys an app manifest as the app's next version, or returns the channel's latest version when the manifest matches it. The first deploy of a handle creates the app, which takes `ORGANIZATION_APPS_CREATE`. Scope: `ORGANIZATION_APPS_UPDATE`. |
39
+ | [`appInstall`](/reference/management-api/schema/app#appinstall) | Mutation | Installs an app's latest version on a project with the access the user accepted, and sends the app `installation.created`. The user must hold, at the project, each scope the version asks for. Scope: `ORGANIZATION_APPS_CREATE`. |
40
+ | [`appInstallation`](/reference/management-api/schema/app#appinstallation) | Query | Reads an installation. Null when no installation has the ID. The installation's own token reads it without a scope. Scope: `ORGANIZATION_APPS_READ`. |
41
+ | [`appInstallations`](/reference/management-api/schema/app#appinstallations) | Query | Lists the apps installed on a project, oldest first, up to 200 a page. Scope: `ORGANIZATION_APPS_READ`. |
42
+ | [`appInstallationTokenCreate`](/reference/management-api/schema/app#appinstallationtokencreate) | Mutation | Mints a one-hour token for an installation, authenticated by an app assertion in the `picked-app-assertion` header. An installation with offline access gets one at any time; any other only with the session token of the dashboard user the app is answering. |
43
+ | [`appInstallationUpgrade`](/reference/management-api/schema/app#appinstallationupgrade) | Mutation | Moves an installation to the newest version on its channel with the access the user accepted. It sends the app `installation.upgraded`. The user must hold, at the project, each scope the version asks for. An upgrade the app refuses or cannot receive is undone. Scope: `ORGANIZATION_APPS_UPDATE`. |
44
+ | [`appPublicKeyAdd`](/reference/management-api/schema/app#apppublickeyadd) | Mutation | Registers a public key the app signs its app assertions with. An app holds at most two keys, so a rotation adds the next key before removing the last. Scope: `ORGANIZATION_APPS_UPDATE`. |
45
+ | [`appPublicKeyRemove`](/reference/management-api/schema/app#apppublickeyremove) | Mutation | Removes a public key. App assertions it signs fail from then on. Scope: `ORGANIZATION_APPS_UPDATE`. |
46
+ | [`apps`](/reference/management-api/schema/app#apps) | Query | Lists an organization's apps, by name, up to 200 a page. Scope: `ORGANIZATION_APPS_READ`. |
47
+ | [`appSessionTokenCreate`](/reference/management-api/schema/app#appsessiontokencreate) | Mutation | Mints a short-lived token asserting the signed-in user, for an app's frame to send its own server. Scope: `ORGANIZATION_APPS_READ`. |
48
+ | [`appUninstall`](/reference/management-api/schema/app#appuninstall) | Mutation | Removes an app from a project, with its tokens and labels. Scope: `ORGANIZATION_APPS_DELETE`. |
49
+ | [`appVisibilityUpdate`](/reference/management-api/schema/app#appvisibilityupdate) | Mutation | Publishes an app to every organization, or takes it back to its own. Scope: `APPS_PUBLISH`. |
36
50
  | [`asset`](/reference/management-api/schema/cms-models#asset) | Query | Reads an asset. Scope: `ORGANIZATION_PROJECTS_READ`. |
37
51
  | [`assetCommit`](/reference/management-api/schema/cms-models#assetcommit) | Mutation | Commits an uploaded file as the asset's current version, recording its size, MIME type and image dimensions. Fails when the bytes do not match the claimed content type. Scope: `ORGANIZATION_PROJECTS_UPDATE`. |
38
52
  | [`assetDelete`](/reference/management-api/schema/cms-models#assetdelete) | Mutation | Deletes an asset and its stored files. Fails with `CONFLICT` once a publish uses any of its versions; content entries that reference it are not checked. Scope: `ORGANIZATION_PROJECTS_UPDATE`. |
@@ -94,11 +108,13 @@ An operation with `@auth` needs a caller that has authenticated. `@auth(only: US
94
108
  | [`fieldDelete`](/reference/management-api/schema/field#fielddelete) | Mutation | Deletes a field. A field that is on a step is not deleted, and comes back as an `IN_USE` user error. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
95
109
  | [`fields`](/reference/management-api/schema/field#fields) | Query | Lists the fields in a workspace. `search` matches a case-insensitive substring of the name; `sortKey` and `reverse` set the order. Scope: `ORGANIZATION_WORKSPACE_READ`. |
96
110
  | [`fieldUpdate`](/reference/management-api/schema/field#fieldupdate) | Mutation | Updates a field. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
111
+ | [`installableApps`](/reference/management-api/schema/app#installableapps) | Query | Lists the apps a project can install, by name, up to 200 a page. These are its organization's own apps and the apps published to every organization. Only an app with a version an install can pin is listed: a release version, or for the organization's own app a dev version. Scope: `ORGANIZATION_APPS_READ`. |
97
112
  | [`integrationConfigurationCreate`](/reference/management-api/schema/integration#integrationconfigurationcreate) | Mutation | Creates the configuration of an installed integration. An integration has at most one configuration; a second gets a `CONFLICT` error. Scope: `ORGANIZATION_INTEGRATIONS_CREATE`. |
98
113
  | [`integrationConfigurationDelete`](/reference/management-api/schema/integration#integrationconfigurationdelete) | Mutation | Deletes an integration's configuration. The integration stays installed. Scope: `ORGANIZATION_INTEGRATIONS_DELETE`. |
99
114
  | [`integrationConfigurationUpdate`](/reference/management-api/schema/integration#integrationconfigurationupdate) | Mutation | Updates an integration's configuration. Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`. |
100
115
  | [`integrationInstall`](/reference/management-api/schema/integration#integrationinstall) | Mutation | Installs an integration for a project. A project that already has an integration of that type gets a `CONFLICT` error. Scope: `ORGANIZATION_INTEGRATIONS_CREATE` and `ORGANIZATION_PROJECTS_READ`. |
101
116
  | [`integrationUninstall`](/reference/management-api/schema/integration#integrationuninstall) | Mutation | Uninstalls an integration and deletes its configuration. Scope: `ORGANIZATION_INTEGRATIONS_DELETE`. |
117
+ | [`labeledAppInstallations`](/reference/management-api/schema/app#labeledappinstallations) | Query | Lists the installations of an app that hold a label with the value, oldest first, up to 200 of them. Covers only projects where the user holds the scope; a secret label never matches. Scope: `ORGANIZATION_APPS_READ`. |
102
118
  | [`labelsDelete`](/reference/management-api/schema/label#labelsdelete) | Mutation | Deletes labels from a lead, a project or a workflow run. Deleting a label that is not set succeeds. A `LEAD` owner needs `ORGANIZATION_LEADS_UPDATE`; the other owners need `ORGANIZATION_PROJECTS_UPDATE`. Scope: `ORGANIZATION_LEADS_UPDATE` or `ORGANIZATION_PROJECTS_UPDATE`. |
103
119
  | [`labelsSet`](/reference/management-api/schema/label#labelsset) | Mutation | Creates or replaces labels on a lead, a project or a workflow run. Labels the call does not name are unchanged. A `LEAD` owner needs `ORGANIZATION_LEADS_UPDATE`; the other owners need `ORGANIZATION_PROJECTS_UPDATE`. Scope: `ORGANIZATION_LEADS_UPDATE` or `ORGANIZATION_PROJECTS_UPDATE`. |
104
120
  | [`lead`](/reference/management-api/schema/lead#lead) | Query | Reads a lead. Scope: `ORGANIZATION_LEADS_READ`. |
@@ -121,23 +137,22 @@ An operation with `@auth` needs a caller that has authenticated. `@auth(only: US
121
137
  | [`oauthConsentApprove`](/reference/management-api/schema/auth#oauthconsentapprove) | Mutation | Approves an OAuth authorisation request for the signed-in user. |
122
138
  | [`oauthConsentDeny`](/reference/management-api/schema/auth#oauthconsentdeny) | Mutation | Denies an OAuth authorisation request for the signed-in user. |
123
139
  | [`oauthConsentDetails`](/reference/management-api/schema/auth#oauthconsentdetails) | Query | Reads an OAuth authorisation request waiting for the signed-in user's consent. Reading a request the user already consented to approves it. |
124
- | [`organization`](/reference/management-api/schema/organization#organization) | Query | Reads an organisation by ID or slug. Null when no organisation matches. Scope: `ORGANIZATION_READ`. |
140
+ | [`organization`](/reference/management-api/schema/organization#organization) | Query | Reads an organization by ID or slug. Null when no organization matches. Scope: `ORGANIZATION_READ`. |
125
141
  | [`organizationAnalyticsProvision`](/reference/management-api/schema/analytics-sign-in#organizationanalyticsprovision) | Mutation | Sets analytics up for an organization: everything the organization's members need to sign into analytics. Running it again sets up only what is missing. Scope: `ORGANIZATION_REPORTS_READ`. |
126
- | [`organizationClientManagerScopesUpdate`](/reference/management-api/schema/organization#organizationclientmanagerscopesupdate) | Mutation | Sets the scopes a client manager holds in one organisation. The caller cannot edit their own scopes, and a client manager can add or remove only scopes they hold there themselves. Scope: `STAFF_INVITE_CLIENT_MANAGER`. |
127
- | [`organizationCreate`](/reference/management-api/schema/organization#organizationcreate) | Mutation | Creates an organisation owned by the calling user. Scope: `ORGANIZATION_CREATE`. |
128
- | [`organizationDelete`](/reference/management-api/schema/organization#organizationdelete) | Mutation | Deletes an organisation. Scope: `ORGANIZATION_DELETE`. |
142
+ | [`organizationClientManagerScopesUpdate`](/reference/management-api/schema/organization#organizationclientmanagerscopesupdate) | Mutation | Sets the scopes a client manager holds in one organization. The caller cannot edit their own scopes, and a client manager can add or remove only scopes they hold there themselves. Scope: `STAFF_INVITE_CLIENT_MANAGER`. |
143
+ | [`organizationCreate`](/reference/management-api/schema/organization#organizationcreate) | Mutation | Creates an organization owned by the calling user. Scope: `ORGANIZATION_CREATE`. |
144
+ | [`organizationDelete`](/reference/management-api/schema/organization#organizationdelete) | Mutation | Deletes an organization. Scope: `ORGANIZATION_DELETE`. |
129
145
  | [`organizationInvitationAccept`](/reference/management-api/schema/organization#organizationinvitationaccept) | Mutation | Accepts an invitation, making the calling user a member with the scopes it carries. The invitation is used up. An unknown or expired token, or an existing membership, fails. |
130
146
  | [`organizationInvitationDecline`](/reference/management-api/schema/organization#organizationinvitationdecline) | Mutation | Declines an invitation addressed to the calling user's email address and deletes it. |
131
147
  | [`organizationInvitationRevoke`](/reference/management-api/schema/organization#organizationinvitationrevoke) | Mutation | Revokes a pending invitation, so its token stops working. Scope: `ORGANIZATION_INVITATIONS_DELETE`. |
132
- | [`organizationMemberInvite`](/reference/management-api/schema/organization#organizationmemberinvite) | Mutation | Invites an email address to an organisation and emails the invitee. `delivery` says which email went out. Scope: `ORGANIZATION_INVITATIONS_CREATE`. |
133
- | [`organizationMemberRemove`](/reference/management-api/schema/organization#organizationmemberremove) | Mutation | Removes a member from an organisation, with every scope they held there. The primary owner cannot be removed. Scope: `ORGANIZATION_MEMBERS_DELETE`. |
134
- | [`organizationMemberScopesUpdate`](/reference/management-api/schema/organization#organizationmemberscopesupdate) | Mutation | Sets the scopes a member holds in an organisation. The caller cannot edit their own scopes, grant a scope they do not hold, or take `ORGANIZATION_MEMBERS_MANAGE_SCOPES` from the primary owner. Scope: `ORGANIZATION_MEMBERS_MANAGE_SCOPES`. |
135
- | [`organizations`](/reference/management-api/schema/organization#organizations) | Query | Lists the organisations the user belongs to. `search` matches a case-insensitive substring of the name. Empty for an API key. |
136
- | [`organizationShopifyWebhooks`](/reference/management-api/schema/shopify#organizationshopifywebhooks) | Query | Lists an organisation's Shopify webhooks. Scope: `ORGANIZATION_INTEGRATIONS_READ`. |
137
- | [`organizationUpdate`](/reference/management-api/schema/organization#organizationupdate) | Mutation | Updates an organisation. Scope: `ORGANIZATION_UPDATE`. |
148
+ | [`organizationMemberInvite`](/reference/management-api/schema/organization#organizationmemberinvite) | Mutation | Invites an email address to an organization and emails the invitee. `delivery` says which email went out. Scope: `ORGANIZATION_INVITATIONS_CREATE`. |
149
+ | [`organizationMemberRemove`](/reference/management-api/schema/organization#organizationmemberremove) | Mutation | Removes a member from an organization, with every scope they held there. The primary owner cannot be removed. Scope: `ORGANIZATION_MEMBERS_DELETE`. |
150
+ | [`organizationMemberScopesUpdate`](/reference/management-api/schema/organization#organizationmemberscopesupdate) | Mutation | Sets the scopes a member holds in an organization. The caller cannot edit their own scopes, grant a scope they do not hold, or take `ORGANIZATION_MEMBERS_MANAGE_SCOPES` from the primary owner. Scope: `ORGANIZATION_MEMBERS_MANAGE_SCOPES`. |
151
+ | [`organizations`](/reference/management-api/schema/organization#organizations) | Query | Lists the organizations the user belongs to. `search` matches a case-insensitive substring of the name. Empty for an API key. |
152
+ | [`organizationShopifyWebhooks`](/reference/management-api/schema/shopify#organizationshopifywebhooks) | Query | Lists an organization's Shopify webhooks. Scope: `ORGANIZATION_INTEGRATIONS_READ`. |
153
+ | [`organizationUpdate`](/reference/management-api/schema/organization#organizationupdate) | Mutation | Updates an organization. Scope: `ORGANIZATION_UPDATE`. |
138
154
  | [`passwordResetSend`](/reference/management-api/schema/auth#passwordresetsend) | Mutation | Sends a password-reset email. Returns `RATE_LIMITED` when the address was emailed within the minimum send interval or the project's email quota is spent. |
139
155
  | [`passwordUpdate`](/reference/management-api/schema/auth#passwordupdate) | Mutation | Sets the signed-in user's password without asking for the current one. Ends the user's other sessions and keeps the caller's. An `AAL1` session may set a password only while the user holds no verified factor, and otherwise gets `MFA_REQUIRED`. |
140
- | [`pickedqlQuery`](/reference/management-api/schema/analytics#pickedqlquery) | Query | Runs a PickedQL query against one project's analytics data. A statement that does not parse, or queries a project's data without a `project_id` filter, fails with `VALIDATION_ERROR`. Scope: `ORGANIZATION_REPORTS_READ`. |
141
156
  | [`ping`](/reference/management-api/schema/common#ping) | Query | Checks that the API is up. Answers `pong`. |
142
157
  | [`project`](/reference/management-api/schema/project#project) | Query | Reads a project. Null when no project has the ID. Scope: `ORGANIZATION_PROJECTS_READ`. |
143
158
  | [`projectCreate`](/reference/management-api/schema/project#projectcreate) | Mutation | Creates a project, with a draft workspace named `Default`. Scope: `ORGANIZATION_PROJECTS_CREATE`. |
@@ -145,7 +160,7 @@ An operation with `@auth` needs a caller that has authenticated. `@auth(only: US
145
160
  | [`projectPreviewEnvironmentCreate`](/reference/management-api/schema/project#projectpreviewenvironmentcreate) | Mutation | Creates a preview environment on a project. Invalid input comes back as `userErrors`. Scope: `ORGANIZATION_PROJECTS_UPDATE`. |
146
161
  | [`projectPreviewEnvironmentDelete`](/reference/management-api/schema/project#projectpreviewenvironmentdelete) | Mutation | Deletes a preview environment. An unknown ID comes back as `userErrors`. Scope: `ORGANIZATION_PROJECTS_UPDATE`. |
147
162
  | [`projectPreviewEnvironmentUpdate`](/reference/management-api/schema/project#projectpreviewenvironmentupdate) | Mutation | Updates a preview environment. Invalid input comes back as `userErrors`. Scope: `ORGANIZATION_PROJECTS_UPDATE`. |
148
- | [`projects`](/reference/management-api/schema/project#projects) | Query | Lists the projects the user can reach, across every organisation they belong to. `search` matches a case-insensitive substring of the name. Empty for an API key. |
163
+ | [`projects`](/reference/management-api/schema/project#projects) | Query | Lists the projects the user can reach, across every organization they belong to. `search` matches a case-insensitive substring of the name. Empty for an API key. |
149
164
  | [`projectShopifyMetafieldConfigs`](/reference/management-api/schema/shopify#projectshopifymetafieldconfigs) | Query | Lists a project's Shopify metafield configs. Scope: `ORGANIZATION_INTEGRATIONS_READ`. |
150
165
  | [`projectUpdate`](/reference/management-api/schema/project#projectupdate) | Mutation | Updates a project's name or brief. Scope: `ORGANIZATION_PROJECTS_UPDATE`. |
151
166
  | [`report`](/reference/management-api/schema/report#report) | Query | Reads a project report. Null when no project report has the ID. Scope: `ORGANIZATION_REPORTS_READ`. |
@@ -159,17 +174,17 @@ An operation with `@auth` needs a caller that has authenticated. `@auth(only: US
159
174
  | [`sessionCreate`](/reference/management-api/schema/auth#sessioncreate) | Mutation | Signs in with an email address and password and returns an `AAL1` session. |
160
175
  | [`sessionRefresh`](/reference/management-api/schema/auth#sessionrefresh) | Mutation | Exchanges a refresh token for a new session. |
161
176
  | [`sessionStart`](/reference/management-api/schema/auth#sessionstart) | Mutation | Begins a sign-in from an email address alone: answers `PASSWORD`, or emails a sign-in code and answers `EMAIL_CODE`. Never creates an account. Returns `RATE_LIMITED` past 10 requests a minute from one IP address, or when the project's email quota is spent. |
162
- | [`shopifyCollectionContentUpdate`](/reference/management-api/schema/shopify#shopifycollectioncontentupdate) | Mutation | Updates the content at `key` of a Shopify collection, stored in its app metafield `content.<key>`. Keeps up to nine earlier values. The shop must belong to the calling API key's organisation. Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`. |
177
+ | [`shopifyCollectionContentUpdate`](/reference/management-api/schema/shopify#shopifycollectioncontentupdate) | Mutation | Updates the content at `key` of a Shopify collection, stored in its app metafield `content.<key>`. Keeps up to nine earlier values. The shop must belong to the calling API key's organization. Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`. |
163
178
  | [`shopifyMetafieldConfigCreate`](/reference/management-api/schema/shopify#shopifymetafieldconfigcreate) | Mutation | Creates a Shopify metafield config for a project. Scope: `ORGANIZATION_INTEGRATIONS_CREATE`. |
164
179
  | [`shopifyMetafieldConfigDelete`](/reference/management-api/schema/shopify#shopifymetafieldconfigdelete) | Mutation | Deletes a Shopify metafield config. Scope: `ORGANIZATION_INTEGRATIONS_DELETE`. |
165
180
  | [`shopifyMetafieldConfigs`](/reference/management-api/schema/shopify#shopifymetafieldconfigs) | Query | Lists a project's Shopify metafield configs. Scope: `ORGANIZATION_INTEGRATIONS_READ`. |
166
181
  | [`shopifyMetafieldConfigUpdate`](/reference/management-api/schema/shopify#shopifymetafieldconfigupdate) | Mutation | Updates a Shopify metafield config. Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`. |
167
182
  | [`shopifyProduct`](/reference/management-api/schema/shopify#shopifyproduct) | Query | Reads a Shopify product. Always returns null. |
168
- | [`shopifyProductContentUpdate`](/reference/management-api/schema/shopify#shopifyproductcontentupdate) | Mutation | Updates the content at `key` of a Shopify product, stored in its app metafield `content.<key>`. Keeps up to nine earlier values. The shop must belong to the calling API key's organisation. Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`. |
183
+ | [`shopifyProductContentUpdate`](/reference/management-api/schema/shopify#shopifyproductcontentupdate) | Mutation | Updates the content at `key` of a Shopify product, stored in its app metafield `content.<key>`. Keeps up to nine earlier values. The shop must belong to the calling API key's organization. Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`. |
169
184
  | [`shopifyProducts`](/reference/management-api/schema/shopify#shopifyproducts) | Query | Lists Shopify products. Always returns an empty page. |
170
185
  | [`shopifyWebhookCreate`](/reference/management-api/schema/shopify#shopifywebhookcreate) | Mutation | Creates a Shopify webhook for a project and generates its HMAC secret. The result is the only place the secret appears. Scope: `ORGANIZATION_INTEGRATIONS_CREATE` and `ORGANIZATION_INTEGRATIONS_READ`. |
171
186
  | [`shopifyWebhookDelete`](/reference/management-api/schema/shopify#shopifywebhookdelete) | Mutation | Deletes a Shopify webhook. Scope: `ORGANIZATION_INTEGRATIONS_DELETE`. |
172
- | [`shopifyWebhooks`](/reference/management-api/schema/shopify#shopifywebhooks) | Query | Lists an organisation's Shopify webhooks. Scope: `ORGANIZATION_INTEGRATIONS_READ`. |
187
+ | [`shopifyWebhooks`](/reference/management-api/schema/shopify#shopifywebhooks) | Query | Lists an organization's Shopify webhooks. Scope: `ORGANIZATION_INTEGRATIONS_READ`. |
173
188
  | [`shopifyWebhookUpdate`](/reference/management-api/schema/shopify#shopifywebhookupdate) | Mutation | Updates a Shopify webhook. Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`. |
174
189
  | [`step`](/reference/management-api/schema/step#step) | Query | Reads a step. Scope: `ORGANIZATION_WORKSPACE_READ`. |
175
190
  | [`stepCreate`](/reference/management-api/schema/step#stepcreate) | Mutation | Creates a step in a workspace. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
@@ -177,12 +192,12 @@ An operation with `@auth` needs a caller that has authenticated. `@auth(only: US
177
192
  | [`steps`](/reference/management-api/schema/step#steps) | Query | Lists the steps in a workspace. `search` matches a case-insensitive substring of the name; `sortKey` and `reverse` set the order. Scope: `ORGANIZATION_WORKSPACE_READ`. |
178
193
  | [`stepUpdate`](/reference/management-api/schema/step#stepupdate) | Mutation | Updates a step. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
179
194
  | [`tenant`](/reference/management-api/schema/tenant-branding#tenant) | Query | Reads a tenant and its branding by slug or hostname. Returns the default tenant when neither matches. Needs no authentication, and responses are cacheable for 5 minutes. |
180
- | [`updateShopifyCollectionContent`](/reference/management-api/schema/shopify#updateshopifycollectioncontent) | Mutation | Updates the content at `key` of a Shopify collection, stored in its app metafield `content.<key>`. Keeps up to nine earlier values. The shop must belong to the calling API key's organisation. Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`. |
195
+ | [`updateShopifyCollectionContent`](/reference/management-api/schema/shopify#updateshopifycollectioncontent) | Mutation | Updates the content at `key` of a Shopify collection, stored in its app metafield `content.<key>`. Keeps up to nine earlier values. The shop must belong to the calling API key's organization. Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`. |
181
196
  | [`updateShopifyMetafieldConfig`](/reference/management-api/schema/shopify#updateshopifymetafieldconfig) | Mutation | Updates a Shopify metafield config. Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`. |
182
- | [`updateShopifyProductContent`](/reference/management-api/schema/shopify#updateshopifyproductcontent) | Mutation | Updates the content at `key` of a Shopify product, stored in its app metafield `content.<key>`. Keeps up to nine earlier values. The shop must belong to the calling API key's organisation. Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`. |
197
+ | [`updateShopifyProductContent`](/reference/management-api/schema/shopify#updateshopifyproductcontent) | Mutation | Updates the content at `key` of a Shopify product, stored in its app metafield `content.<key>`. Keeps up to nine earlier values. The shop must belong to the calling API key's organization. Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`. |
183
198
  | [`updateShopifyWebhook`](/reference/management-api/schema/shopify#updateshopifywebhook) | Mutation | Updates a Shopify webhook. Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`. |
184
199
  | [`user`](/reference/management-api/schema/auth#user) | Query | Reads the signed-in user. Null when the caller is an API key or the auth service rejects the token. Exempt from the MFA policy, so a user the policy gates can read `mfa` and `mfaFactors`. |
185
- | [`viewerScopes`](/reference/management-api/schema/auth#viewerscopes) | Query | Lists the scopes the caller holds outside any organisation, such as `ORGANIZATION_CREATE`. Empty for an API key. `Organization.viewerScopes` lists the scopes held in one organisation. |
200
+ | [`viewerScopes`](/reference/management-api/schema/auth#viewerscopes) | Query | Lists the scopes the caller holds outside any organization, such as `ORGANIZATION_CREATE`. Empty for an API key. `Organization.viewerScopes` lists the scopes held in one organization. |
186
201
  | [`workbenchAssetAdoptOwned`](/reference/management-api/schema/workbench#workbenchassetadoptowned) | Mutation | Moves the ownership of an asset-library asset to a workbench, as `OWNED`. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
187
202
  | [`workbenchAssetImport`](/reference/management-api/schema/workbench#workbenchassetimport) | Mutation | Imports an asset owned elsewhere into a workbench as `IMPORTED`. The asset's owner does not change. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
188
203
  | [`workbenchAssetRemove`](/reference/management-api/schema/workbench#workbenchassetremove) | Mutation | Removes an asset from a workbench. Removing an `OWNED` asset also deletes it, which needs `ORGANIZATION_PROJECTS_UPDATE` and fails once a publish uses the asset. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
@@ -215,8 +230,8 @@ An operation with `@auth` needs a caller that has authenticated. `@auth(only: US
215
230
  - [Action](/reference/management-api/schema/action)
216
231
  - [Analytics session](/reference/management-api/schema/analytics-session)
217
232
  - [Analytics sign in](/reference/management-api/schema/analytics-sign-in)
218
- - [Analytics](/reference/management-api/schema/analytics)
219
233
  - [Api key](/reference/management-api/schema/api-key)
234
+ - [App](/reference/management-api/schema/app)
220
235
  - [Auth](/reference/management-api/schema/auth)
221
236
  - [Cms fields](/reference/management-api/schema/cms-fields)
222
237
  - [Cms models](/reference/management-api/schema/cms-models)
@@ -61,8 +61,10 @@ The kind of entity a label is on. Each kind is read and written under its own sc
61
61
  | `LEAD` | `ORGANIZATION_LEADS_READ` | `ORGANIZATION_LEADS_UPDATE` |
62
62
  | `PROJECT` | `ORGANIZATION_PROJECTS_READ` | `ORGANIZATION_PROJECTS_UPDATE` |
63
63
  | `WORKFLOW_RUN` | `ORGANIZATION_WORKSPACE_READ` | `ORGANIZATION_PROJECTS_UPDATE` |
64
+ | `APP_INSTALLATION` | `ORGANIZATION_APPS_READ` | `ORGANIZATION_APPS_UPDATE` |
64
65
 
65
- A workflow run reads and writes its own labels without a scope.
66
+ A workflow run reads and writes its own labels without a scope, and so does an app installation
67
+ calling with its own token.
66
68
  """
67
69
  enum LabelOwnerType {
68
70
  """A lead. Its labels are deleted with it."""
@@ -71,6 +73,10 @@ enum LabelOwnerType {
71
73
  PROJECT
72
74
  """A workflow run."""
73
75
  WORKFLOW_RUN
76
+ """
77
+ An app installation. Its labels are deleted when the app is uninstalled.
78
+ """
79
+ APP_INSTALLATION
74
80
  }
75
81
  ```
76
82
 
@@ -78,8 +84,8 @@ enum LabelOwnerType {
78
84
 
79
85
  ```graphql
80
86
  """
81
- A name and a value on a lead, a project or a workflow run. An owner holds one label per namespace
82
- and key, and an expired label reads as absent everywhere.
87
+ A name and a value on a lead, a project, a workflow run or an app installation. An owner holds one
88
+ label per namespace and key, and an expired label reads as absent everywhere.
83
89
  """
84
90
  type Label {
85
91
  """The ID of the label."""
@@ -90,15 +96,22 @@ type Label {
90
96
  key: String!
91
97
  """How to read `value`."""
92
98
  type: LabelType!
93
- """The value, as a string to read through `type`."""
99
+ """
100
+ The value, as a string to read through `type`. A secret label's value is empty, except to the
101
+ app installation that owns it.
102
+ """
94
103
  value: String!
104
+ """
105
+ Whether the value is kept in Vault. Only an app installation's labels are secret.
106
+ """
107
+ secret: Boolean!
95
108
  """When the label was created."""
96
109
  createdAt: DateTime!
97
110
  """When the label last changed."""
98
111
  updatedAt: DateTime!
99
112
  """When the label expires. Null when it does not expire."""
100
113
  expiresAt: DateTime
101
- """The lead, project or workflow run the label is on."""
114
+ """The lead, project, workflow run or app installation the label is on."""
102
115
  owner: LabelOwner!
103
116
  }
104
117
  ```
@@ -106,8 +119,10 @@ type Label {
106
119
  ### `LabelOwner`
107
120
 
108
121
  ```graphql
109
- """The entity a label is on: a lead, a project or a workflow run."""
110
- union LabelOwner = Lead | Project | WorkflowRun
122
+ """
123
+ The entity a label is on: a lead, a project, a workflow run or an app installation.
124
+ """
125
+ union LabelOwner = Lead | Project | WorkflowRun | AppInstallation
111
126
  ```
112
127
 
113
128
  ### `LabelOperation`
@@ -167,6 +182,12 @@ input LabelInput {
167
182
  listed in `LabelsSetPayload.skipped`.
168
183
  """
169
184
  onlyIfAbsent: Boolean
185
+ """
186
+ Whether to keep the value in Vault, where it reads as empty to anyone but the installation. Only an app installation's `TEXT`
187
+ and `JSON` labels can be secret, and a secret label takes no `increment` or `onlyIfAbsent`.
188
+ Defaults to false.
189
+ """
190
+ secret: Boolean
170
191
  }
171
192
  ```
172
193
 
@@ -270,7 +291,9 @@ enum LabelUserErrorCode {
270
291
  OWNER_NOT_FOUND
271
292
  """
272
293
  A malformed write: both or neither of `value` and `increment`, `increment` with `onlyIfAbsent`
273
- or a type other than `NUMBER`, `expiresIn` out of range, or a repeated namespace and key.
294
+ or a type other than `NUMBER`, `expiresIn` out of range, a repeated namespace and key, or a
295
+ `secret` label that is not an app installation's `TEXT` or `JSON` value without `increment` and
296
+ `onlyIfAbsent`.
274
297
  """
275
298
  LABEL_WRITE_INVALID
276
299
  }