picked 0.0.111-next.3 → 0.0.111
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.
- package/dist/.tsbuildinfo +1 -1
- package/docs/explanation/app-authentication.md +178 -0
- package/docs/explanation/apps.md +169 -0
- package/docs/explanation/conditions-and-the-logic-engine.md +12 -2
- package/docs/explanation/feature-flag-allocation.md +5 -3
- package/docs/how-to/apps/add-a-page-to-the-dashboard.md +257 -0
- package/docs/how-to/apps/add-a-workflow-tool.md +199 -0
- package/docs/how-to/apps/add-an-mcp-server-to-an-app.md +210 -0
- package/docs/how-to/apps/connect-a-third-party-service-with-oauth.md +307 -0
- package/docs/how-to/apps/create-an-app-in-the-dashboard.md +162 -0
- package/docs/how-to/apps/deploy-an-app.md +201 -0
- package/docs/how-to/apps/develop-an-app-locally.md +152 -0
- package/docs/how-to/apps/host-an-app-on-vercel.md +226 -0
- package/docs/how-to/apps/install-an-app.md +116 -0
- package/docs/how-to/apps/link-to-an-installation-from-your-site.md +134 -0
- package/docs/how-to/apps/read-project-data-from-an-app.md +225 -0
- package/docs/how-to/apps/rotate-an-app-key.md +130 -0
- package/docs/how-to/apps/run-code-when-a-workspace-publishes.md +148 -0
- package/docs/how-to/apps/store-data-for-an-installation.md +230 -0
- package/docs/how-to/apps/test-an-app.md +359 -0
- package/docs/how-to/apps/upgrade-or-uninstall-an-app.md +97 -0
- package/docs/how-to/apps/use-an-app-tool-in-a-workflow.md +112 -0
- package/docs/index.md +6 -3
- package/docs/reference/apps/app-kit.md +811 -0
- package/docs/reference/apps/environment.md +116 -0
- package/docs/reference/apps/manifest.md +311 -0
- package/docs/reference/apps/protocol.md +497 -0
- package/docs/reference/dashboard/apps.md +504 -0
- package/docs/reference/dashboard/external-apis.md +5 -0
- package/docs/reference/dashboard/features.mdx +5 -5
- package/docs/reference/dashboard/labels.md +25 -8
- package/docs/reference/dashboard/lead-search.md +6 -6
- package/docs/reference/dashboard/reports.mdx +13 -5
- package/docs/reference/dashboard/workflow-tools.md +14 -0
- package/docs/reference/glossary.md +153 -140
- package/docs/reference/management-api/authentication.md +36 -27
- package/docs/reference/management-api/authorization-and-scopes.md +73 -21
- package/docs/reference/management-api/schema/api-key.md +10 -10
- package/docs/reference/management-api/schema/app.md +726 -0
- package/docs/reference/management-api/schema/auth.md +7 -7
- package/docs/reference/management-api/schema/common.md +54 -35
- package/docs/reference/management-api/schema/feature.md +1 -1
- package/docs/reference/management-api/schema/feedback.md +1 -1
- package/docs/reference/management-api/schema/index.md +35 -20
- package/docs/reference/management-api/schema/label.md +31 -8
- package/docs/reference/management-api/schema/organization.md +66 -66
- package/docs/reference/management-api/schema/project.md +5 -5
- package/docs/reference/management-api/schema/report.md +1 -1
- package/docs/reference/management-api/schema/shopify.md +19 -19
- package/docs/reference/management-api/schema/workflow.md +6 -1
- package/docs/reference/management-api/schema/workspace.md +2 -2
- package/docs/reference/sdk/analytics-events.md +42 -36
- package/docs/reference/sdk/conditions.md +3 -3
- package/docs/reference/sdk/fields.md +5 -4
- package/docs/reference/sdk/index.md +4 -4
- package/docs/reference/sdk/plugins/create-experience.md +11 -9
- package/docs/reference/sdk/plugins/hotjar.md +2 -2
- package/docs/reference/sdk/plugins/sentry.md +2 -2
- package/docs/reference/sdk/plugins/shopify.md +2 -2
- package/docs/reference/sdk/predicates.md +5 -5
- package/docs/reference/sdk/type-generation.md +24 -19
- package/docs/reference/tools/admin-api-client.md +15 -0
- package/docs/reference/tools/cli.md +192 -41
- package/docs/reference/tools/mcp.md +30 -9
- package/docs/tutorials/first-app.md +308 -0
- package/package.json +4 -4
- package/docs/explanation/how-pickedql-works.md +0 -76
- package/docs/how-to/analytics/index.md +0 -324
- package/docs/reference/management-api/schema/analytics.md +0 -75
- package/docs/reference/pickedql/data-sources.md +0 -174
- package/docs/reference/pickedql/dimensions.md +0 -103
- package/docs/reference/pickedql/filtering.md +0 -64
- package/docs/reference/pickedql/index.md +0 -18
- package/docs/reference/pickedql/schema.md +0 -172
- package/docs/reference/pickedql/virtual-functions.md +0 -248
|
@@ -0,0 +1,726 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: reference
|
|
3
|
+
layout: docs
|
|
4
|
+
generated: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# App schema
|
|
8
|
+
|
|
9
|
+
See [Management API schema](/reference/management-api/schema) for every domain, the endpoint and authentication.
|
|
10
|
+
|
|
11
|
+
## Queries
|
|
12
|
+
|
|
13
|
+
### `apps`
|
|
14
|
+
|
|
15
|
+
Lists an organization's apps, by name, up to 200 a page.
|
|
16
|
+
Scope: `ORGANIZATION_APPS_READ`.
|
|
17
|
+
|
|
18
|
+
```graphql
|
|
19
|
+
apps(first: Int, after: String, input: AppsInput!): AppConnection! @auth
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### `app`
|
|
23
|
+
|
|
24
|
+
Reads an app. Null when no app has the ID.
|
|
25
|
+
Scope: `ORGANIZATION_APPS_READ`.
|
|
26
|
+
|
|
27
|
+
```graphql
|
|
28
|
+
app(input: AppInput!): App @auth
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### `appInstallations`
|
|
32
|
+
|
|
33
|
+
Lists the apps installed on a project, oldest first, up to 200 a page.
|
|
34
|
+
Scope: `ORGANIZATION_APPS_READ`.
|
|
35
|
+
|
|
36
|
+
```graphql
|
|
37
|
+
appInstallations(first: Int, after: String, input: AppInstallationsInput!): AppInstallationConnection! @auth
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### `appInstallation`
|
|
41
|
+
|
|
42
|
+
Reads an installation. Null when no installation has the ID. The installation's own token reads
|
|
43
|
+
it without a scope.
|
|
44
|
+
Scope: `ORGANIZATION_APPS_READ`.
|
|
45
|
+
|
|
46
|
+
```graphql
|
|
47
|
+
appInstallation(input: AppInstallationInput!): AppInstallation @auth
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### `labeledAppInstallations`
|
|
51
|
+
|
|
52
|
+
Lists the installations of an app that hold a label with the value, oldest first, up to 200 of them.
|
|
53
|
+
Covers only projects where the user holds the scope; a secret label never matches.
|
|
54
|
+
Scope: `ORGANIZATION_APPS_READ`.
|
|
55
|
+
|
|
56
|
+
```graphql
|
|
57
|
+
labeledAppInstallations(first: Int, after: String, input: LabeledAppInstallationsInput!): AppInstallationConnection! @auth(only: USER)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### `installableApps`
|
|
61
|
+
|
|
62
|
+
Lists the apps a project can install, by name, up to 200 a page. These are its organization's own
|
|
63
|
+
apps and the apps published to every organization. Only an app with a version an install can pin
|
|
64
|
+
is listed: a release version, or for the organization's own app a dev version.
|
|
65
|
+
Scope: `ORGANIZATION_APPS_READ`.
|
|
66
|
+
|
|
67
|
+
```graphql
|
|
68
|
+
installableApps(first: Int, after: String, input: InstallableAppsInput!): InstallableAppConnection! @auth
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Mutations
|
|
72
|
+
|
|
73
|
+
### `appDeploy`
|
|
74
|
+
|
|
75
|
+
Deploys an app manifest as the app's next version, or returns the channel's latest version when
|
|
76
|
+
the manifest matches it. The first deploy of a handle creates the app, which takes
|
|
77
|
+
`ORGANIZATION_APPS_CREATE`.
|
|
78
|
+
Scope: `ORGANIZATION_APPS_UPDATE`.
|
|
79
|
+
|
|
80
|
+
```graphql
|
|
81
|
+
appDeploy(input: AppDeployInput!): AppDeployPayload! @auth
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### `appDelete`
|
|
85
|
+
|
|
86
|
+
Deletes an app and removes it from every project it is installed on.
|
|
87
|
+
Scope: `ORGANIZATION_APPS_DELETE`.
|
|
88
|
+
|
|
89
|
+
```graphql
|
|
90
|
+
appDelete(input: AppDeleteInput!): AppDeletePayload! @auth(only: USER)
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### `appInstall`
|
|
94
|
+
|
|
95
|
+
Installs an app's latest version on a project with the access the user accepted, and sends the app `installation.created`.
|
|
96
|
+
The user must hold, at the project, each scope the version asks for.
|
|
97
|
+
Scope: `ORGANIZATION_APPS_CREATE`.
|
|
98
|
+
|
|
99
|
+
```graphql
|
|
100
|
+
appInstall(input: AppInstallInput!): AppInstallPayload! @auth(only: USER)
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### `appUninstall`
|
|
104
|
+
|
|
105
|
+
Removes an app from a project, with its tokens and labels.
|
|
106
|
+
Scope: `ORGANIZATION_APPS_DELETE`.
|
|
107
|
+
|
|
108
|
+
```graphql
|
|
109
|
+
appUninstall(input: AppUninstallInput!): AppUninstallPayload! @auth(only: USER)
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### `appInstallationUpgrade`
|
|
113
|
+
|
|
114
|
+
Moves an installation to the newest version on its channel with the access the user accepted.
|
|
115
|
+
It sends the app `installation.upgraded`. The user must hold, at the project, each scope the version
|
|
116
|
+
asks for. An upgrade the app refuses or cannot receive is undone.
|
|
117
|
+
Scope: `ORGANIZATION_APPS_UPDATE`.
|
|
118
|
+
|
|
119
|
+
```graphql
|
|
120
|
+
appInstallationUpgrade(input: AppInstallationUpgradeInput!): AppInstallationUpgradePayload! @auth(only: USER)
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### `appSessionTokenCreate`
|
|
124
|
+
|
|
125
|
+
Mints a short-lived token asserting the signed-in user, for an app's frame to send its own server.
|
|
126
|
+
Scope: `ORGANIZATION_APPS_READ`.
|
|
127
|
+
|
|
128
|
+
```graphql
|
|
129
|
+
appSessionTokenCreate(input: AppSessionTokenCreateInput!): AppSessionTokenCreatePayload! @auth(only: USER)
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### `appPublicKeyAdd`
|
|
133
|
+
|
|
134
|
+
Registers a public key the app signs its app assertions with. An app holds at most two keys, so a
|
|
135
|
+
rotation adds the next key before removing the last.
|
|
136
|
+
Scope: `ORGANIZATION_APPS_UPDATE`.
|
|
137
|
+
|
|
138
|
+
```graphql
|
|
139
|
+
appPublicKeyAdd(input: AppPublicKeyAddInput!): AppPublicKeyAddPayload! @auth
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### `appPublicKeyRemove`
|
|
143
|
+
|
|
144
|
+
Removes a public key. App assertions it signs fail from then on.
|
|
145
|
+
Scope: `ORGANIZATION_APPS_UPDATE`.
|
|
146
|
+
|
|
147
|
+
```graphql
|
|
148
|
+
appPublicKeyRemove(input: AppPublicKeyRemoveInput!): AppPublicKeyRemovePayload! @auth
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### `appInstallationTokenCreate`
|
|
152
|
+
|
|
153
|
+
Mints a one-hour token for an installation, authenticated by an app assertion in the
|
|
154
|
+
`picked-app-assertion` header. An installation with offline access gets one at any time; any
|
|
155
|
+
other only with the session token of the dashboard user the app is answering.
|
|
156
|
+
|
|
157
|
+
```graphql
|
|
158
|
+
appInstallationTokenCreate(input: AppInstallationTokenCreateInput!): AppInstallationTokenCreatePayload! @auth(only: APP)
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### `appVisibilityUpdate`
|
|
162
|
+
|
|
163
|
+
Publishes an app to every organization, or takes it back to its own.
|
|
164
|
+
Scope: `APPS_PUBLISH`.
|
|
165
|
+
|
|
166
|
+
```graphql
|
|
167
|
+
appVisibilityUpdate(input: AppVisibilityUpdateInput!): AppVisibilityUpdatePayload! @auth(only: USER)
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Types
|
|
171
|
+
|
|
172
|
+
### `App`
|
|
173
|
+
|
|
174
|
+
```graphql
|
|
175
|
+
"""
|
|
176
|
+
An integration an organization builds. A deploy that changes its manifest adds an `AppVersion`.
|
|
177
|
+
"""
|
|
178
|
+
type App {
|
|
179
|
+
"""The ID of the app."""
|
|
180
|
+
id: ID!
|
|
181
|
+
"""The ID of the organization that owns the app."""
|
|
182
|
+
organizationId: ID!
|
|
183
|
+
"""The app's handle, unique in its organization."""
|
|
184
|
+
handle: String!
|
|
185
|
+
"""The name of the app."""
|
|
186
|
+
name: String!
|
|
187
|
+
"""A sentence on what the app does."""
|
|
188
|
+
description: String!
|
|
189
|
+
"""
|
|
190
|
+
`private`, installable by the owning organization's projects; or `public`, installable by every organization's.
|
|
191
|
+
"""
|
|
192
|
+
visibility: String!
|
|
193
|
+
"""
|
|
194
|
+
`cli` when the Picked CLI deploys the app, which makes its manifest read-only in the dashboard; otherwise `dashboard`.
|
|
195
|
+
"""
|
|
196
|
+
managedBy: String!
|
|
197
|
+
"""The newest release version. Null before the first release deploy."""
|
|
198
|
+
latestVersion: AppVersion
|
|
199
|
+
"""Every version, newest first."""
|
|
200
|
+
versions: [AppVersion!]!
|
|
201
|
+
"""The public keys the app signs its app assertions with, oldest first."""
|
|
202
|
+
publicKeys: [AppPublicKey!]!
|
|
203
|
+
"""
|
|
204
|
+
The app's installations in its own organization's projects where the caller holds
|
|
205
|
+
`ORGANIZATION_APPS_READ`, oldest first, up to 200 of them.
|
|
206
|
+
"""
|
|
207
|
+
installations: [AppInstallation!]!
|
|
208
|
+
"""When the app was created."""
|
|
209
|
+
createdAt: DateTime!
|
|
210
|
+
"""When the app last changed."""
|
|
211
|
+
updatedAt: DateTime!
|
|
212
|
+
}
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### `AppPublicKey`
|
|
216
|
+
|
|
217
|
+
```graphql
|
|
218
|
+
"""An Ed25519 public key an app signs its app assertions with."""
|
|
219
|
+
type AppPublicKey {
|
|
220
|
+
"""The key's ID: the first 16 base64url characters of the key's SHA-256."""
|
|
221
|
+
kid: String!
|
|
222
|
+
"""The base64url of the key's 32 raw bytes."""
|
|
223
|
+
publicKey: String!
|
|
224
|
+
"""When the key was registered."""
|
|
225
|
+
createdAt: DateTime!
|
|
226
|
+
}
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### `AppVersion`
|
|
230
|
+
|
|
231
|
+
```graphql
|
|
232
|
+
"""One immutable app manifest."""
|
|
233
|
+
type AppVersion {
|
|
234
|
+
"""The ID of the version."""
|
|
235
|
+
id: ID!
|
|
236
|
+
"""The version's number, counting from 1 across both channels."""
|
|
237
|
+
version: Int!
|
|
238
|
+
"""The channel the version was deployed to."""
|
|
239
|
+
channel: AppVersionChannel!
|
|
240
|
+
"""
|
|
241
|
+
The manifest: the app's endpoint, slots, workflow tools, MCP server and scopes.
|
|
242
|
+
"""
|
|
243
|
+
manifest: JSON!
|
|
244
|
+
"""When the version was deployed."""
|
|
245
|
+
createdAt: DateTime!
|
|
246
|
+
}
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### `AppInstallation`
|
|
250
|
+
|
|
251
|
+
```graphql
|
|
252
|
+
"""An app version installed on a project."""
|
|
253
|
+
type AppInstallation {
|
|
254
|
+
"""The ID of the installation."""
|
|
255
|
+
id: ID!
|
|
256
|
+
"""The ID of the project the app is installed on."""
|
|
257
|
+
projectId: ID!
|
|
258
|
+
"""The project the app is installed on."""
|
|
259
|
+
project: Project! @auth
|
|
260
|
+
"""The installation's slug, unique in the project."""
|
|
261
|
+
slug: String!
|
|
262
|
+
"""The app."""
|
|
263
|
+
app: App!
|
|
264
|
+
"""The version the installation runs."""
|
|
265
|
+
version: AppVersion!
|
|
266
|
+
"""Whether the app has a newer version on the installation's channel."""
|
|
267
|
+
upgradeAvailable: Boolean!
|
|
268
|
+
"""
|
|
269
|
+
The newest version on the installation's channel, when it is newer than the one installed.
|
|
270
|
+
"""
|
|
271
|
+
availableVersion: AppVersion
|
|
272
|
+
"""The scopes the installation's tokens carry."""
|
|
273
|
+
grantedScopes: [String!]!
|
|
274
|
+
"""
|
|
275
|
+
Whether the installing user let the app mint tokens on its own, outside a request from Picked.
|
|
276
|
+
"""
|
|
277
|
+
offlineAccess: Boolean!
|
|
278
|
+
"""When the app was installed."""
|
|
279
|
+
installedAt: DateTime!
|
|
280
|
+
"""
|
|
281
|
+
The labels the app keeps for the installation. A secret label's value reads as empty, except
|
|
282
|
+
to the installation's own token.
|
|
283
|
+
"""
|
|
284
|
+
labels: [Label!]! @auth
|
|
285
|
+
}
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### `AppVersionChannel`
|
|
289
|
+
|
|
290
|
+
```graphql
|
|
291
|
+
"""The channel an app version is deployed to."""
|
|
292
|
+
enum AppVersionChannel {
|
|
293
|
+
"""A version every installation can move to."""
|
|
294
|
+
RELEASE
|
|
295
|
+
"""
|
|
296
|
+
A version from `picked app dev`, which only the app's own organization installs and only dev installations move to.
|
|
297
|
+
"""
|
|
298
|
+
DEV
|
|
299
|
+
}
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### `AppConnection`
|
|
303
|
+
|
|
304
|
+
```graphql
|
|
305
|
+
"""A page of apps."""
|
|
306
|
+
type AppConnection {
|
|
307
|
+
"""The edges in this page."""
|
|
308
|
+
edges: [AppEdge!]!
|
|
309
|
+
"""The apps in this page."""
|
|
310
|
+
nodes: [App!]!
|
|
311
|
+
"""Where this page sits in the list."""
|
|
312
|
+
pageInfo: PageInfo!
|
|
313
|
+
}
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### `AppEdge`
|
|
317
|
+
|
|
318
|
+
```graphql
|
|
319
|
+
"""An app in a page of results."""
|
|
320
|
+
type AppEdge {
|
|
321
|
+
"""The cursor of this edge."""
|
|
322
|
+
cursor: String!
|
|
323
|
+
"""The app."""
|
|
324
|
+
node: App!
|
|
325
|
+
}
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
### `AppInstallationConnection`
|
|
329
|
+
|
|
330
|
+
```graphql
|
|
331
|
+
"""A page of app installations."""
|
|
332
|
+
type AppInstallationConnection {
|
|
333
|
+
"""The edges in this page."""
|
|
334
|
+
edges: [AppInstallationEdge!]!
|
|
335
|
+
"""The installations in this page."""
|
|
336
|
+
nodes: [AppInstallation!]!
|
|
337
|
+
"""Where this page sits in the list."""
|
|
338
|
+
pageInfo: PageInfo!
|
|
339
|
+
}
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
### `AppInstallationEdge`
|
|
343
|
+
|
|
344
|
+
```graphql
|
|
345
|
+
"""An app installation in a page of results."""
|
|
346
|
+
type AppInstallationEdge {
|
|
347
|
+
"""The cursor of this edge."""
|
|
348
|
+
cursor: String!
|
|
349
|
+
"""The installation."""
|
|
350
|
+
node: AppInstallation!
|
|
351
|
+
}
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
### `InstallableAppConnection`
|
|
355
|
+
|
|
356
|
+
```graphql
|
|
357
|
+
"""A page of the apps a project can install."""
|
|
358
|
+
type InstallableAppConnection {
|
|
359
|
+
"""The edges in this page."""
|
|
360
|
+
edges: [InstallableAppEdge!]!
|
|
361
|
+
"""The apps in this page."""
|
|
362
|
+
nodes: [InstallableApp!]!
|
|
363
|
+
"""Where this page sits in the list."""
|
|
364
|
+
pageInfo: PageInfo!
|
|
365
|
+
}
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
### `InstallableAppEdge`
|
|
369
|
+
|
|
370
|
+
```graphql
|
|
371
|
+
"""An app a project can install, in a page of results."""
|
|
372
|
+
type InstallableAppEdge {
|
|
373
|
+
"""The cursor of this edge."""
|
|
374
|
+
cursor: String!
|
|
375
|
+
"""The app and the version an install would pin."""
|
|
376
|
+
node: InstallableApp!
|
|
377
|
+
}
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
### `InstallableApp`
|
|
381
|
+
|
|
382
|
+
```graphql
|
|
383
|
+
"""An app a project can install, with the version an install would pin."""
|
|
384
|
+
type InstallableApp {
|
|
385
|
+
"""The app."""
|
|
386
|
+
app: App!
|
|
387
|
+
"""The version an install would pin."""
|
|
388
|
+
version: AppVersion!
|
|
389
|
+
}
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
### `AppDeploySource`
|
|
393
|
+
|
|
394
|
+
```graphql
|
|
395
|
+
"""Where an app deploy comes from."""
|
|
396
|
+
enum AppDeploySource {
|
|
397
|
+
"""The Picked CLI. The app's manifest becomes read-only in the dashboard."""
|
|
398
|
+
CLI
|
|
399
|
+
"""The dashboard's app form."""
|
|
400
|
+
DASHBOARD
|
|
401
|
+
}
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
### `AppsInput`
|
|
405
|
+
|
|
406
|
+
```graphql
|
|
407
|
+
"""The input of `apps`."""
|
|
408
|
+
input AppsInput {
|
|
409
|
+
"""The ID of the organization."""
|
|
410
|
+
organizationId: ID!
|
|
411
|
+
}
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
### `AppInput`
|
|
415
|
+
|
|
416
|
+
```graphql
|
|
417
|
+
"""The input of `app`."""
|
|
418
|
+
input AppInput {
|
|
419
|
+
"""The ID of the app."""
|
|
420
|
+
id: ID!
|
|
421
|
+
}
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
### `AppInstallationsInput`
|
|
425
|
+
|
|
426
|
+
```graphql
|
|
427
|
+
"""The input of `appInstallations`."""
|
|
428
|
+
input AppInstallationsInput {
|
|
429
|
+
"""The ID of the project."""
|
|
430
|
+
projectId: ID!
|
|
431
|
+
}
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
### `LabeledAppInstallationsInput`
|
|
435
|
+
|
|
436
|
+
```graphql
|
|
437
|
+
"""The input of `labeledAppInstallations`."""
|
|
438
|
+
input LabeledAppInstallationsInput {
|
|
439
|
+
"""The ID of the app."""
|
|
440
|
+
appId: ID!
|
|
441
|
+
"""The namespace of the label."""
|
|
442
|
+
namespace: String!
|
|
443
|
+
"""The key of the label within its namespace."""
|
|
444
|
+
key: String!
|
|
445
|
+
"""The value the label holds."""
|
|
446
|
+
value: String!
|
|
447
|
+
}
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
### `InstallableAppsInput`
|
|
451
|
+
|
|
452
|
+
```graphql
|
|
453
|
+
"""The input of `installableApps`."""
|
|
454
|
+
input InstallableAppsInput {
|
|
455
|
+
"""The ID of the project."""
|
|
456
|
+
projectId: ID!
|
|
457
|
+
}
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
### `AppDeployInput`
|
|
461
|
+
|
|
462
|
+
```graphql
|
|
463
|
+
"""The input of `appDeploy`."""
|
|
464
|
+
input AppDeployInput {
|
|
465
|
+
"""The ID of the organization the app belongs to."""
|
|
466
|
+
organizationId: ID!
|
|
467
|
+
"""
|
|
468
|
+
The manifest. Its `handle` names the app; a new handle creates the app.
|
|
469
|
+
"""
|
|
470
|
+
manifest: JSON!
|
|
471
|
+
"""Where the deploy comes from."""
|
|
472
|
+
source: AppDeploySource!
|
|
473
|
+
"""The channel to deploy to. `RELEASE` by default."""
|
|
474
|
+
channel: AppVersionChannel
|
|
475
|
+
"""
|
|
476
|
+
A public key to register for the app, as `picked app keys generate` prints it. A key the app
|
|
477
|
+
holds stays as it is; an app holds at most two.
|
|
478
|
+
"""
|
|
479
|
+
publicKey: String
|
|
480
|
+
}
|
|
481
|
+
```
|
|
482
|
+
|
|
483
|
+
### `AppPublicKeyAddInput`
|
|
484
|
+
|
|
485
|
+
```graphql
|
|
486
|
+
"""The input of `appPublicKeyAdd`."""
|
|
487
|
+
input AppPublicKeyAddInput {
|
|
488
|
+
"""The ID of the app."""
|
|
489
|
+
appId: ID!
|
|
490
|
+
"""
|
|
491
|
+
The base64url Ed25519 public key, as `picked app keys generate` prints it.
|
|
492
|
+
"""
|
|
493
|
+
publicKey: String!
|
|
494
|
+
}
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
### `AppPublicKeyRemoveInput`
|
|
498
|
+
|
|
499
|
+
```graphql
|
|
500
|
+
"""The input of `appPublicKeyRemove`."""
|
|
501
|
+
input AppPublicKeyRemoveInput {
|
|
502
|
+
"""The ID of the app."""
|
|
503
|
+
appId: ID!
|
|
504
|
+
"""The ID of the key to remove."""
|
|
505
|
+
kid: String!
|
|
506
|
+
}
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
### `AppInstallationInput`
|
|
510
|
+
|
|
511
|
+
```graphql
|
|
512
|
+
"""The input of `appInstallation`."""
|
|
513
|
+
input AppInstallationInput {
|
|
514
|
+
"""The ID of the installation."""
|
|
515
|
+
id: ID!
|
|
516
|
+
}
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
### `AppInstallationTokenCreateInput`
|
|
520
|
+
|
|
521
|
+
```graphql
|
|
522
|
+
"""The input of `appInstallationTokenCreate`."""
|
|
523
|
+
input AppInstallationTokenCreateInput {
|
|
524
|
+
"""
|
|
525
|
+
The ID of the installation the app acts for, which its app assertion must name.
|
|
526
|
+
"""
|
|
527
|
+
installationId: ID!
|
|
528
|
+
"""
|
|
529
|
+
The session token, issued by Picked for the installation, of the dashboard user the app is
|
|
530
|
+
answering. An installation without offline access needs one to get a token.
|
|
531
|
+
"""
|
|
532
|
+
sessionToken: String
|
|
533
|
+
}
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
### `AppVisibilityUpdateInput`
|
|
537
|
+
|
|
538
|
+
```graphql
|
|
539
|
+
"""The input of `appVisibilityUpdate`."""
|
|
540
|
+
input AppVisibilityUpdateInput {
|
|
541
|
+
"""The ID of the app."""
|
|
542
|
+
appId: ID!
|
|
543
|
+
"""`private` or `public`."""
|
|
544
|
+
visibility: String!
|
|
545
|
+
}
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
### `AppDeleteInput`
|
|
549
|
+
|
|
550
|
+
```graphql
|
|
551
|
+
"""The input of `appDelete`."""
|
|
552
|
+
input AppDeleteInput {
|
|
553
|
+
"""The ID of the app."""
|
|
554
|
+
id: ID!
|
|
555
|
+
}
|
|
556
|
+
```
|
|
557
|
+
|
|
558
|
+
### `AppInstallInput`
|
|
559
|
+
|
|
560
|
+
```graphql
|
|
561
|
+
"""The input of `appInstall`."""
|
|
562
|
+
input AppInstallInput {
|
|
563
|
+
"""The ID of the app."""
|
|
564
|
+
appId: ID!
|
|
565
|
+
"""The ID of the project to install it on."""
|
|
566
|
+
projectId: ID!
|
|
567
|
+
"""The scopes the user accepted: exactly the ones the version asks for."""
|
|
568
|
+
acceptedScopes: [String!]!
|
|
569
|
+
"""
|
|
570
|
+
Whether the user accepted offline access: true exactly when the version's manifest asks for `offlineAccess`.
|
|
571
|
+
"""
|
|
572
|
+
acceptedOfflineAccess: Boolean
|
|
573
|
+
}
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
### `AppUninstallInput`
|
|
577
|
+
|
|
578
|
+
```graphql
|
|
579
|
+
"""The input of `appUninstall`."""
|
|
580
|
+
input AppUninstallInput {
|
|
581
|
+
"""The ID of the installation."""
|
|
582
|
+
id: ID!
|
|
583
|
+
}
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
### `AppInstallationUpgradeInput`
|
|
587
|
+
|
|
588
|
+
```graphql
|
|
589
|
+
"""The input of `appInstallationUpgrade`."""
|
|
590
|
+
input AppInstallationUpgradeInput {
|
|
591
|
+
"""The ID of the installation."""
|
|
592
|
+
id: ID!
|
|
593
|
+
"""
|
|
594
|
+
The scopes the user accepted: exactly the ones the new version asks for.
|
|
595
|
+
"""
|
|
596
|
+
acceptedScopes: [String!]!
|
|
597
|
+
"""
|
|
598
|
+
Whether the user accepted offline access: true exactly when the new version's manifest asks for `offlineAccess`.
|
|
599
|
+
"""
|
|
600
|
+
acceptedOfflineAccess: Boolean
|
|
601
|
+
}
|
|
602
|
+
```
|
|
603
|
+
|
|
604
|
+
### `AppSessionTokenCreateInput`
|
|
605
|
+
|
|
606
|
+
```graphql
|
|
607
|
+
"""The input of `appSessionTokenCreate`."""
|
|
608
|
+
input AppSessionTokenCreateInput {
|
|
609
|
+
"""The ID of the installation whose frame the token is for."""
|
|
610
|
+
installationId: ID!
|
|
611
|
+
}
|
|
612
|
+
```
|
|
613
|
+
|
|
614
|
+
### `AppDeployPayload`
|
|
615
|
+
|
|
616
|
+
```graphql
|
|
617
|
+
"""The result of `appDeploy`."""
|
|
618
|
+
type AppDeployPayload {
|
|
619
|
+
"""The app."""
|
|
620
|
+
app: App!
|
|
621
|
+
"""
|
|
622
|
+
The version the deploy wrote, or the channel's latest version when the manifest matched it.
|
|
623
|
+
"""
|
|
624
|
+
version: AppVersion!
|
|
625
|
+
"""
|
|
626
|
+
Whether the manifest matched the channel's latest version, so the deploy wrote none.
|
|
627
|
+
"""
|
|
628
|
+
unchanged: Boolean!
|
|
629
|
+
}
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
### `AppPublicKeyAddPayload`
|
|
633
|
+
|
|
634
|
+
```graphql
|
|
635
|
+
"""The result of `appPublicKeyAdd`."""
|
|
636
|
+
type AppPublicKeyAddPayload {
|
|
637
|
+
"""The key."""
|
|
638
|
+
publicKey: AppPublicKey!
|
|
639
|
+
}
|
|
640
|
+
```
|
|
641
|
+
|
|
642
|
+
### `AppPublicKeyRemovePayload`
|
|
643
|
+
|
|
644
|
+
```graphql
|
|
645
|
+
"""The result of `appPublicKeyRemove`."""
|
|
646
|
+
type AppPublicKeyRemovePayload {
|
|
647
|
+
"""Whether the key was removed."""
|
|
648
|
+
success: Boolean!
|
|
649
|
+
}
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
### `AppInstallationTokenCreatePayload`
|
|
653
|
+
|
|
654
|
+
```graphql
|
|
655
|
+
"""The result of `appInstallationTokenCreate`."""
|
|
656
|
+
type AppInstallationTokenCreatePayload {
|
|
657
|
+
"""
|
|
658
|
+
The token, which the app sends as `X-API-Key`. It carries the installation's granted scopes.
|
|
659
|
+
"""
|
|
660
|
+
token: String!
|
|
661
|
+
"""When the token expires, one hour after it was minted."""
|
|
662
|
+
expiresAt: DateTime!
|
|
663
|
+
}
|
|
664
|
+
```
|
|
665
|
+
|
|
666
|
+
### `AppVisibilityUpdatePayload`
|
|
667
|
+
|
|
668
|
+
```graphql
|
|
669
|
+
"""The result of `appVisibilityUpdate`."""
|
|
670
|
+
type AppVisibilityUpdatePayload {
|
|
671
|
+
"""The app."""
|
|
672
|
+
app: App!
|
|
673
|
+
}
|
|
674
|
+
```
|
|
675
|
+
|
|
676
|
+
### `AppDeletePayload`
|
|
677
|
+
|
|
678
|
+
```graphql
|
|
679
|
+
"""The result of `appDelete`."""
|
|
680
|
+
type AppDeletePayload {
|
|
681
|
+
"""Whether the app was deleted."""
|
|
682
|
+
success: Boolean!
|
|
683
|
+
}
|
|
684
|
+
```
|
|
685
|
+
|
|
686
|
+
### `AppInstallPayload`
|
|
687
|
+
|
|
688
|
+
```graphql
|
|
689
|
+
"""The result of `appInstall`."""
|
|
690
|
+
type AppInstallPayload {
|
|
691
|
+
"""The installation."""
|
|
692
|
+
installation: AppInstallation!
|
|
693
|
+
}
|
|
694
|
+
```
|
|
695
|
+
|
|
696
|
+
### `AppUninstallPayload`
|
|
697
|
+
|
|
698
|
+
```graphql
|
|
699
|
+
"""The result of `appUninstall`."""
|
|
700
|
+
type AppUninstallPayload {
|
|
701
|
+
"""Whether the app was removed."""
|
|
702
|
+
success: Boolean!
|
|
703
|
+
}
|
|
704
|
+
```
|
|
705
|
+
|
|
706
|
+
### `AppInstallationUpgradePayload`
|
|
707
|
+
|
|
708
|
+
```graphql
|
|
709
|
+
"""The result of `appInstallationUpgrade`."""
|
|
710
|
+
type AppInstallationUpgradePayload {
|
|
711
|
+
"""The installation, on the app's latest version."""
|
|
712
|
+
installation: AppInstallation!
|
|
713
|
+
}
|
|
714
|
+
```
|
|
715
|
+
|
|
716
|
+
### `AppSessionTokenCreatePayload`
|
|
717
|
+
|
|
718
|
+
```graphql
|
|
719
|
+
"""The result of `appSessionTokenCreate`."""
|
|
720
|
+
type AppSessionTokenCreatePayload {
|
|
721
|
+
"""The token, which the frame forwards to the app's own server."""
|
|
722
|
+
token: String!
|
|
723
|
+
"""When the token expires."""
|
|
724
|
+
expiresAt: DateTime!
|
|
725
|
+
}
|
|
726
|
+
```
|