@every-app/sdk 0.3.0-rc.13 → 0.3.0-rc.15
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/README.md +15 -14
- package/dist/cloudflare/catalogSettings.generated.d.ts +17 -7
- package/dist/cloudflare/catalogSettings.generated.d.ts.map +1 -1
- package/dist/cloudflare/catalogSettings.generated.js +40 -12
- package/dist/cloudflare/worker.d.ts +27 -7
- package/dist/cloudflare/worker.d.ts.map +1 -1
- package/dist/cloudflare/worker.js +13 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/internal/appSettings.d.ts +124 -79
- package/dist/internal/appSettings.d.ts.map +1 -1
- package/dist/internal/appSettings.js +240 -125
- package/dist/internal/capabilities.d.ts +5 -29
- package/dist/internal/capabilities.d.ts.map +1 -1
- package/dist/internal/capabilities.js +4 -24
- package/dist/internal/devProviders.d.ts +1 -19
- package/dist/internal/devProviders.d.ts.map +1 -1
- package/dist/internal/devProviders.js +7 -1
- package/dist/internal/oauthPresets.d.ts +351 -14
- package/dist/internal/oauthPresets.d.ts.map +1 -1
- package/dist/internal/oauthPresets.js +155 -22
- package/dist/internal/oauthSpec.d.ts +2 -46
- package/dist/internal/oauthSpec.d.ts.map +1 -1
- package/dist/internal/oauthSpec.js +0 -57
- package/dist/internal/remoteMcp.d.ts.map +1 -1
- package/dist/internal/remoteMcp.js +4 -3
- package/dist/internal/tools.d.ts +3 -1
- package/dist/internal/tools.d.ts.map +1 -1
- package/dist/manifest.d.ts +49 -13
- package/dist/manifest.d.ts.map +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/integrationFetch.d.ts +7 -7
- package/dist/server/integrationFetch.d.ts.map +1 -1
- package/dist/server/integrationFetch.js +4 -2
- package/dist/server/tools.d.ts +5 -2
- package/dist/server/tools.d.ts.map +1 -1
- package/dist/server/tools.js +5 -2
- package/package.json +1 -1
- package/dist/internal/oauthBuiltIns.d.ts +0 -101
- package/dist/internal/oauthBuiltIns.d.ts.map +0 -1
- package/dist/internal/oauthBuiltIns.js +0 -122
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../src/internal/capabilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,mDAAmD;AACnD,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,MAAM,UAAU;AACpB,kGAAkG;AAChG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE;AACrD,8FAA8F;GAC5F;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE;AACrE,4CAA4C;GAC1C;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE;AAClD;;;;;;;;GAQG;GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,UAAU,CAAC;IACf,IAAI,EAAE,MAAM,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CACnC,GACD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,UAAU,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAElD,mFAAmF;AACnF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC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AAC;IAChB,EAAE,EAAE,mBAAmB,CAAC;IACxB,UAAU,EAAE,wBAAwB,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEN,0EAA0E;AAC1E,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAEnE;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,kBAAkB,EAC7B,MAAM,GAAE,gBAA0B,GACjC,qBAAqB,GAAG,IAAI,CAiC9B;AAWD;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,qBAAqB,GAChC,MAAM,CAER;AAaD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,gBAAgB,EAC5B,QAAQ,EAAE,MAAM,GACf,OAAO,CAqBT;AA6BD,sEAAsE;AACtE,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM/C"}
|
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
* proxy's rules: inference routes only, the model allowlist, the usage
|
|
17
17
|
* tap. Never a capability: its key would reach the account's credits
|
|
18
18
|
* and keys on the same host.
|
|
19
|
-
* - `oauth_client`: an OAuth provider
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* - `oauth_client`: an OAuth provider whose client the gateway holds and
|
|
20
|
+
* whose flow it runs. None is in the catalog: each is a registered row,
|
|
21
|
+
* written from a preset (./oauthPresets.ts: Google, Microsoft, Slack,
|
|
22
|
+
* GitHub and the rest) or an operator's spec. A person connects in an app,
|
|
22
23
|
* for exactly the provider scopes the app's manifest entry lists
|
|
23
24
|
* (`scopes`); the gateway keeps the tokens and puts the person's token
|
|
24
25
|
* on the app's calls to the provider's `api` hosts. Each provider is a
|
|
@@ -43,22 +44,6 @@ export const DEFAULT_WRITE_METHODS = [
|
|
|
43
44
|
"DELETE",
|
|
44
45
|
];
|
|
45
46
|
import { CATALOG_ENTRIES } from "./catalog/index.js";
|
|
46
|
-
import { BUILT_IN_OAUTH_SPECS } from "./oauthBuiltIns.js";
|
|
47
|
-
import { oauthCapabilityFromSpec } from "./oauthSpec.js";
|
|
48
|
-
/**
|
|
49
|
-
* A built-in OAuth provider's catalog entry from its spec, its setting
|
|
50
|
-
* names kept literal so `CapabilitySecret` names them.
|
|
51
|
-
*/
|
|
52
|
-
function builtInOAuth(spec, setup) {
|
|
53
|
-
return {
|
|
54
|
-
...oauthCapabilityFromSpec(spec),
|
|
55
|
-
secrets: {
|
|
56
|
-
clientId: spec.auth.clientId,
|
|
57
|
-
clientSecret: spec.auth.clientSecret,
|
|
58
|
-
},
|
|
59
|
-
setup,
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
47
|
export const CAPABILITIES = {
|
|
63
48
|
// The AI providers, in the order the AI proxy's table had them.
|
|
64
49
|
openai: {
|
|
@@ -308,11 +293,6 @@ export const CAPABILITIES = {
|
|
|
308
293
|
settings: [],
|
|
309
294
|
optionalSettings: [],
|
|
310
295
|
},
|
|
311
|
-
// The OAuth providers every Gateway has built in, from their JSON specs
|
|
312
|
-
// (./oauthBuiltIns.ts): what differs between them is data there.
|
|
313
|
-
slack: builtInOAuth(BUILT_IN_OAUTH_SPECS.slack, "setup/slack.md"),
|
|
314
|
-
"google-workspace": builtInOAuth(BUILT_IN_OAUTH_SPECS["google-workspace"], "setup/google.md"),
|
|
315
|
-
"microsoft-365": builtInOAuth(BUILT_IN_OAUTH_SPECS["microsoft-365"], "setup/microsoft-365.md"),
|
|
316
296
|
// The first fifty beyond the entries above (catalog/*.ts, PR 3 of the
|
|
317
297
|
// provider registry), after them so the derived lists keep their order.
|
|
318
298
|
...CATALOG_ENTRIES,
|
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A provider registered on a gateway, in local development
|
|
3
|
-
* (docs/design/2026-10-provider-registry.md, section 4). There is no
|
|
4
|
-
* gateway to ask in `everyapp dev`, so the spec comes from the app's
|
|
5
|
-
* directory: `everyapp provider add` (run in an app directory) and
|
|
6
|
-
* `everyapp provider show <id> --save` write it to
|
|
7
|
-
* `.everyapp/providers/<id>.json`, `everyAppWorker()` reads every such
|
|
8
|
-
* file when it builds the dev Worker and hands them over as one text
|
|
9
|
-
* binding, {@link DEV_PROVIDERS_ENV}, and `integrationFetch()`'s local
|
|
10
|
-
* fallback resolves an id outside the catalog from it, with the
|
|
11
|
-
* developer's own key from `.dev.vars` under the spec's setting names.
|
|
12
|
-
*
|
|
13
|
-
* The binding is JSON: `[{ "file": ".everyapp/providers/stripe.json",
|
|
14
|
-
* "spec": <the file's JSON, or its text when it isn't JSON> }]`. Each spec
|
|
15
|
-
* is parsed here, with the same parser `provider add` uses; one that
|
|
16
|
-
* doesn't parse is ignored until an app asks for its id, which then gets
|
|
17
|
-
* a ConfigurationError naming the file.
|
|
18
|
-
*/
|
|
19
1
|
import { type RegistrableCapability } from "./providerSpec.js";
|
|
20
2
|
/** The dev Worker's binding holding the specs (a copy is in ../cloudflare/worker.ts, kept in step by a test). */
|
|
21
3
|
export declare const DEV_PROVIDERS_ENV = "EVERYAPP_DEV_PROVIDERS";
|
|
@@ -34,7 +16,7 @@ export declare function devProviderFile(id: string): string;
|
|
|
34
16
|
export type DevProviderLookup = {
|
|
35
17
|
found: true;
|
|
36
18
|
capability: RegistrableCapability;
|
|
37
|
-
file
|
|
19
|
+
file?: string;
|
|
38
20
|
} | {
|
|
39
21
|
found: false;
|
|
40
22
|
problem: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devProviders.d.ts","sourceRoot":"","sources":["../../src/internal/devProviders.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"devProviders.d.ts","sourceRoot":"","sources":["../../src/internal/devProviders.ts"],"names":[],"mappings":"AAqBA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAC;AAE3B,iHAAiH;AACjH,eAAO,MAAM,iBAAiB,2BAA2B,CAAC;AAE1D,iEAAiE;AACjE,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AAEvD,0CAA0C;AAC1C,MAAM,WAAW,eAAe;IAC9B,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,IAAI,EAAE,OAAO,CAAC;CACf;AAED,uEAAuE;AACvE,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,gFAAgF;AAChF,MAAM,MAAM,iBAAiB,GACzB;IAAE,KAAK,EAAE,IAAI,CAAC;IAAC,UAAU,EAAE,qBAAqB,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GACjE;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAuBtC;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACzC,EAAE,EAAE,MAAM,GACT,iBAAiB,CAiCnB"}
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
* file when it builds the dev Worker and hands them over as one text
|
|
9
9
|
* binding, {@link DEV_PROVIDERS_ENV}, and `integrationFetch()`'s local
|
|
10
10
|
* fallback resolves an id outside the catalog from it, with the
|
|
11
|
-
* developer's own key from `.dev.vars` under the spec's setting names.
|
|
11
|
+
* developer's own key from `.dev.vars` under the spec's setting names. An
|
|
12
|
+
* OAuth preset's id needs no file: its preset is the spec (a deploy writes
|
|
13
|
+
* the same row).
|
|
12
14
|
*
|
|
13
15
|
* The binding is JSON: `[{ "file": ".everyapp/providers/stripe.json",
|
|
14
16
|
* "spec": <the file's JSON, or its text when it isn't JSON> }]`. Each spec
|
|
@@ -16,6 +18,7 @@
|
|
|
16
18
|
* doesn't parse is ignored until an app asks for its id, which then gets
|
|
17
19
|
* a ConfigurationError naming the file.
|
|
18
20
|
*/
|
|
21
|
+
import { oauthPreset } from "./oauthPresets.js";
|
|
19
22
|
import { describeSpecProblems, parseProviderSpec, } from "./providerSpec.js";
|
|
20
23
|
/** The dev Worker's binding holding the specs (a copy is in ../cloudflare/worker.ts, kept in step by a test). */
|
|
21
24
|
export const DEV_PROVIDERS_ENV = "EVERYAPP_DEV_PROVIDERS";
|
|
@@ -71,6 +74,9 @@ export function resolveDevProvider(values, id) {
|
|
|
71
74
|
}
|
|
72
75
|
return { found: true, capability: parsed.capability, file: entry.file };
|
|
73
76
|
}
|
|
77
|
+
const preset = problem ? null : oauthPreset(id);
|
|
78
|
+
if (preset)
|
|
79
|
+
return { found: true, capability: preset };
|
|
74
80
|
return {
|
|
75
81
|
found: false,
|
|
76
82
|
problem: problem
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* OAuth presets: ready `oauth2-user` specs
|
|
3
|
-
* provider add` takes
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
2
|
+
* The OAuth providers, as presets: ready `oauth2-user` specs in the JSON
|
|
3
|
+
* shape `everyapp provider add` takes. Every OAuth provider a Gateway
|
|
4
|
+
* serves is a `providers` row, and a preset is that row's spec, written
|
|
5
|
+
* when an app whose manifest names the preset's id is deployed or
|
|
6
|
+
* installed, or when an operator adds it (`everyapp provider add
|
|
7
|
+
* google-workspace`, the Admin dialog, `everyapp_provider_add` with
|
|
8
|
+
* `preset`). An operator may `provider show` and edit the row's copy. No
|
|
9
|
+
* gateway reserves a preset's setting names until its row is written.
|
|
10
|
+
* What differs between providers is data here: the endpoints, the API
|
|
11
|
+
* hosts, how scopes are separated and prefixed, the extra authorize
|
|
12
|
+
* parameters, how the account is named, and the scopes a token may carry
|
|
13
|
+
* beyond what the app asked. No code reads a provider id to decide
|
|
14
|
+
* anything.
|
|
11
15
|
*
|
|
12
16
|
* Each preset parses with `parseProviderSpec` (oauthPresets.test.ts) and
|
|
13
17
|
* names a console where the client is made, the API hosts the token is
|
|
@@ -15,18 +19,351 @@
|
|
|
15
19
|
* holds is each app's `everyapp.config.ts`, never the preset. Endpoints
|
|
16
20
|
* were checked against the providers' docs on 2026-10-25; only GitHub's
|
|
17
21
|
* and Google's have been tried against a live connect.
|
|
22
|
+
*
|
|
23
|
+
* A row is a copy: changing a preset here changes no Gateway that has
|
|
24
|
+
* written its row already. A change that must reach them ships with a D1
|
|
25
|
+
* data migration (as 0032 wrote the first rows) that rewrites the rows
|
|
26
|
+
* still equal to the old spec and moves `bound_to` (and a pasted client's
|
|
27
|
+
* `oauth_clients.bound_to`) from the old binding key to the new one, so
|
|
28
|
+
* the client keeps being read and `isPresetRow` keeps matching.
|
|
18
29
|
*/
|
|
30
|
+
import type { CapabilityLookup } from "./capabilities.js";
|
|
19
31
|
import { type RegistrableCapability } from "./providerSpec.js";
|
|
20
32
|
/** A preset's spec as JSON: the shape of ./oauthSpec.ts. */
|
|
21
33
|
export type OAuthPresetSpec = Readonly<Record<string, unknown>>;
|
|
34
|
+
declare const PRESETS: {
|
|
35
|
+
readonly "google-workspace": {
|
|
36
|
+
readonly id: "google-workspace";
|
|
37
|
+
readonly name: "Google";
|
|
38
|
+
readonly description: "Gmail, Calendar, Drive, Search Console, Analytics and the other Google APIs, as the person who connects.";
|
|
39
|
+
readonly docs: "https://console.cloud.google.com/apis/credentials";
|
|
40
|
+
readonly api: "https://developers.google.com/identity/protocols/oauth2/scopes";
|
|
41
|
+
readonly hosts: readonly ["gmail.googleapis.com", "www.googleapis.com", "searchconsole.googleapis.com", "analyticsdata.googleapis.com", "analyticsadmin.googleapis.com", "openidconnect.googleapis.com"];
|
|
42
|
+
readonly auth: {
|
|
43
|
+
readonly kind: "oauth2-user";
|
|
44
|
+
readonly authorizeUrl: "https://accounts.google.com/o/oauth2/v2/auth";
|
|
45
|
+
readonly tokenUrl: "https://oauth2.googleapis.com/token";
|
|
46
|
+
readonly revokeUrl: "https://oauth2.googleapis.com/revoke";
|
|
47
|
+
readonly clientId: "GOOGLE_WORKSPACE_CLIENT_ID";
|
|
48
|
+
readonly clientSecret: "GOOGLE_WORKSPACE_CLIENT_SECRET";
|
|
49
|
+
readonly inject: "form";
|
|
50
|
+
readonly pkce: true;
|
|
51
|
+
readonly scopeSeparator: "space";
|
|
52
|
+
readonly scopePrefix: "https://www.googleapis.com/auth/";
|
|
53
|
+
readonly authorizeParams: {
|
|
54
|
+
readonly access_type: "offline";
|
|
55
|
+
readonly prompt: "consent";
|
|
56
|
+
};
|
|
57
|
+
readonly identity: {
|
|
58
|
+
readonly url: "https://openidconnect.googleapis.com/v1/userinfo";
|
|
59
|
+
readonly label: "email";
|
|
60
|
+
readonly id: "sub";
|
|
61
|
+
readonly scopes: readonly ["openid", "email"];
|
|
62
|
+
};
|
|
63
|
+
readonly tolerated: readonly ["profile", "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile"];
|
|
64
|
+
};
|
|
65
|
+
readonly hint: "A Web application OAuth client in Google Cloud, with the Gateway's callback as its redirect URI and the scopes your apps list on its consent screen.";
|
|
66
|
+
};
|
|
67
|
+
readonly "microsoft-365": {
|
|
68
|
+
readonly id: "microsoft-365";
|
|
69
|
+
readonly name: "Microsoft 365";
|
|
70
|
+
readonly description: "Outlook mail and calendar, OneDrive and the rest of Microsoft Graph, as the person who connects.";
|
|
71
|
+
readonly docs: "https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade";
|
|
72
|
+
readonly api: "https://learn.microsoft.com/graph/permissions-reference";
|
|
73
|
+
readonly hosts: readonly ["graph.microsoft.com"];
|
|
74
|
+
readonly auth: {
|
|
75
|
+
readonly kind: "oauth2-user";
|
|
76
|
+
readonly authorizeUrl: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize";
|
|
77
|
+
readonly tokenUrl: "https://login.microsoftonline.com/common/oauth2/v2.0/token";
|
|
78
|
+
readonly clientId: "MICROSOFT_365_CLIENT_ID";
|
|
79
|
+
readonly clientSecret: "MICROSOFT_365_CLIENT_SECRET";
|
|
80
|
+
readonly inject: "form";
|
|
81
|
+
readonly pkce: true;
|
|
82
|
+
readonly scopeSeparator: "space";
|
|
83
|
+
readonly scopePrefix: "https://graph.microsoft.com/";
|
|
84
|
+
readonly identity: {
|
|
85
|
+
readonly url: "https://graph.microsoft.com/v1.0/me";
|
|
86
|
+
readonly label: "userPrincipalName";
|
|
87
|
+
readonly id: "id";
|
|
88
|
+
readonly scopes: readonly ["User.Read", "offline_access"];
|
|
89
|
+
};
|
|
90
|
+
readonly tolerated: readonly ["openid", "profile", "email"];
|
|
91
|
+
};
|
|
92
|
+
readonly hint: "An app registration in Entra for accounts in any organization and personal accounts, with the Gateway's callback as a Web redirect URI. If two apps share this client with different scopes, Microsoft may hand back both apps' scopes and the Gateway refuses the token: give each app its own client.";
|
|
93
|
+
};
|
|
94
|
+
readonly slack: {
|
|
95
|
+
readonly id: "slack";
|
|
96
|
+
readonly name: "Slack";
|
|
97
|
+
readonly description: "Channels, members and messages, as the Slack app.";
|
|
98
|
+
readonly docs: "https://api.slack.com/apps";
|
|
99
|
+
readonly api: "https://api.slack.com/scopes";
|
|
100
|
+
readonly hosts: readonly ["slack.com"];
|
|
101
|
+
readonly auth: {
|
|
102
|
+
readonly kind: "oauth2-user";
|
|
103
|
+
readonly authorizeUrl: "https://slack.com/oauth/v2/authorize";
|
|
104
|
+
readonly tokenUrl: "https://slack.com/api/oauth.v2.access";
|
|
105
|
+
readonly revokeUrl: "https://slack.com/api/auth.revoke";
|
|
106
|
+
readonly clientId: "SLACK_CLIENT_ID";
|
|
107
|
+
readonly clientSecret: "SLACK_CLIENT_SECRET";
|
|
108
|
+
readonly inject: "form";
|
|
109
|
+
readonly pkce: false;
|
|
110
|
+
readonly scopeSeparator: "comma";
|
|
111
|
+
readonly identity: {
|
|
112
|
+
readonly url: "https://slack.com/api/auth.test";
|
|
113
|
+
readonly label: "team";
|
|
114
|
+
readonly id: "team_id";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly hint: "A Slack app with the Gateway's callback as its redirect URL and the bot scopes your apps list. The Gateway takes its Client ID and Client Secret, not a bot token (xoxb-).";
|
|
118
|
+
};
|
|
119
|
+
readonly "github-oauth": {
|
|
120
|
+
readonly id: "github-oauth";
|
|
121
|
+
readonly name: "GitHub";
|
|
122
|
+
readonly description: "Repositories, issues, pull requests and the person's profile.";
|
|
123
|
+
readonly docs: "https://github.com/settings/developers";
|
|
124
|
+
readonly api: "https://docs.github.com/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps";
|
|
125
|
+
readonly hosts: readonly ["api.github.com"];
|
|
126
|
+
readonly auth: {
|
|
127
|
+
readonly kind: "oauth2-user";
|
|
128
|
+
readonly authorizeUrl: "https://github.com/login/oauth/authorize";
|
|
129
|
+
readonly tokenUrl: "https://github.com/login/oauth/access_token";
|
|
130
|
+
readonly revokeUrl: "https://api.github.com/applications/{client_id}/grant";
|
|
131
|
+
readonly revokeMethod: "DELETE";
|
|
132
|
+
readonly clientId: "GITHUB_OAUTH_CLIENT_ID";
|
|
133
|
+
readonly clientSecret: "GITHUB_OAUTH_CLIENT_SECRET";
|
|
134
|
+
readonly inject: "form";
|
|
135
|
+
readonly pkce: true;
|
|
136
|
+
readonly scopeSeparator: "comma";
|
|
137
|
+
readonly tokenHeaders: {
|
|
138
|
+
readonly Accept: "application/json";
|
|
139
|
+
};
|
|
140
|
+
readonly identity: {
|
|
141
|
+
readonly url: "https://api.github.com/user";
|
|
142
|
+
readonly label: "login";
|
|
143
|
+
readonly id: "id";
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
readonly hint: "Register an OAuth App (not a GitHub App) and paste its client id and secret. GitHub's `repo` scope is read and write.";
|
|
147
|
+
};
|
|
148
|
+
readonly "notion-oauth": {
|
|
149
|
+
readonly id: "notion-oauth";
|
|
150
|
+
readonly name: "Notion";
|
|
151
|
+
readonly description: "Pages and databases the person shares with the integration.";
|
|
152
|
+
readonly docs: "https://www.notion.so/my-integrations";
|
|
153
|
+
readonly api: "https://developers.notion.com/reference";
|
|
154
|
+
readonly hosts: readonly ["api.notion.com"];
|
|
155
|
+
readonly auth: {
|
|
156
|
+
readonly kind: "oauth2-user";
|
|
157
|
+
readonly authorizeUrl: "https://api.notion.com/v1/oauth/authorize";
|
|
158
|
+
readonly tokenUrl: "https://api.notion.com/v1/oauth/token";
|
|
159
|
+
readonly clientId: "NOTION_OAUTH_CLIENT_ID";
|
|
160
|
+
readonly clientSecret: "NOTION_OAUTH_CLIENT_SECRET";
|
|
161
|
+
readonly inject: "basic";
|
|
162
|
+
readonly pkce: false;
|
|
163
|
+
readonly scopeSeparator: "space";
|
|
164
|
+
readonly authorizeParams: {
|
|
165
|
+
readonly owner: "user";
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
readonly hint: "Notion has no scopes: an app lists scopes: [] and the person picks the pages to share on Notion's consent screen. Make the integration public to get a client id and secret. Apps send `Notion-Version` on every call.";
|
|
169
|
+
};
|
|
170
|
+
readonly "linear-oauth": {
|
|
171
|
+
readonly id: "linear-oauth";
|
|
172
|
+
readonly name: "Linear";
|
|
173
|
+
readonly description: "Issues, projects and teams, over Linear's GraphQL API.";
|
|
174
|
+
readonly docs: "https://linear.app/settings/api/applications";
|
|
175
|
+
readonly api: "https://developers.linear.app/docs/oauth/authentication";
|
|
176
|
+
readonly hosts: readonly ["api.linear.app"];
|
|
177
|
+
readonly auth: {
|
|
178
|
+
readonly kind: "oauth2-user";
|
|
179
|
+
readonly authorizeUrl: "https://linear.app/oauth/authorize";
|
|
180
|
+
readonly tokenUrl: "https://api.linear.app/oauth/token";
|
|
181
|
+
readonly revokeUrl: "https://api.linear.app/oauth/revoke";
|
|
182
|
+
readonly clientId: "LINEAR_OAUTH_CLIENT_ID";
|
|
183
|
+
readonly clientSecret: "LINEAR_OAUTH_CLIENT_SECRET";
|
|
184
|
+
readonly inject: "form";
|
|
185
|
+
readonly pkce: false;
|
|
186
|
+
readonly scopeSeparator: "comma";
|
|
187
|
+
};
|
|
188
|
+
readonly hint: "Linear's scopes are read, write, issues:create and comments:create; its API is GraphQL over POST.";
|
|
189
|
+
};
|
|
190
|
+
readonly "gitlab-oauth": {
|
|
191
|
+
readonly id: "gitlab-oauth";
|
|
192
|
+
readonly name: "GitLab";
|
|
193
|
+
readonly description: "Projects, merge requests and issues on gitlab.com.";
|
|
194
|
+
readonly docs: "https://gitlab.com/-/user_settings/applications";
|
|
195
|
+
readonly api: "https://docs.gitlab.com/integration/oauth_provider/#view-all-authorized-applications";
|
|
196
|
+
readonly hosts: readonly ["gitlab.com"];
|
|
197
|
+
readonly auth: {
|
|
198
|
+
readonly kind: "oauth2-user";
|
|
199
|
+
readonly authorizeUrl: "https://gitlab.com/oauth/authorize";
|
|
200
|
+
readonly tokenUrl: "https://gitlab.com/oauth/token";
|
|
201
|
+
readonly revokeUrl: "https://gitlab.com/oauth/revoke";
|
|
202
|
+
readonly clientId: "GITLAB_OAUTH_CLIENT_ID";
|
|
203
|
+
readonly clientSecret: "GITLAB_OAUTH_CLIENT_SECRET";
|
|
204
|
+
readonly inject: "form";
|
|
205
|
+
readonly pkce: true;
|
|
206
|
+
readonly scopeSeparator: "space";
|
|
207
|
+
readonly identity: {
|
|
208
|
+
readonly url: "https://gitlab.com/api/v4/user";
|
|
209
|
+
readonly label: "username";
|
|
210
|
+
readonly id: "id";
|
|
211
|
+
readonly scopes: readonly ["read_user"];
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
readonly hint: "A self-managed GitLab needs a custom provider with its own host in place of gitlab.com.";
|
|
215
|
+
};
|
|
216
|
+
readonly atlassian: {
|
|
217
|
+
readonly id: "atlassian";
|
|
218
|
+
readonly name: "Atlassian (Jira and Confluence)";
|
|
219
|
+
readonly description: "Jira issues and Confluence pages on the sites the person grants.";
|
|
220
|
+
readonly docs: "https://developer.atlassian.com/console/myapps/";
|
|
221
|
+
readonly api: "https://developer.atlassian.com/cloud/jira/platform/scopes-for-oauth-2-3LO-and-forge-apps/";
|
|
222
|
+
readonly hosts: readonly ["api.atlassian.com"];
|
|
223
|
+
readonly auth: {
|
|
224
|
+
readonly kind: "oauth2-user";
|
|
225
|
+
readonly authorizeUrl: "https://auth.atlassian.com/authorize";
|
|
226
|
+
readonly tokenUrl: "https://auth.atlassian.com/oauth/token";
|
|
227
|
+
readonly clientId: "ATLASSIAN_CLIENT_ID";
|
|
228
|
+
readonly clientSecret: "ATLASSIAN_CLIENT_SECRET";
|
|
229
|
+
readonly inject: "form";
|
|
230
|
+
readonly pkce: false;
|
|
231
|
+
readonly scopeSeparator: "space";
|
|
232
|
+
readonly authorizeParams: {
|
|
233
|
+
readonly audience: "api.atlassian.com";
|
|
234
|
+
readonly prompt: "consent";
|
|
235
|
+
};
|
|
236
|
+
readonly identity: {
|
|
237
|
+
readonly url: "https://api.atlassian.com/me";
|
|
238
|
+
readonly label: "email";
|
|
239
|
+
readonly id: "account_id";
|
|
240
|
+
readonly scopes: readonly ["read:me", "offline_access"];
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
readonly hint: "Calls go to api.atlassian.com/ex/jira/<cloud id>/… ; the cloud id comes from /oauth/token/accessible-resources.";
|
|
244
|
+
};
|
|
245
|
+
readonly "hubspot-oauth": {
|
|
246
|
+
readonly id: "hubspot-oauth";
|
|
247
|
+
readonly name: "HubSpot";
|
|
248
|
+
readonly description: "CRM contacts, companies and deals.";
|
|
249
|
+
readonly docs: "https://developers.hubspot.com/";
|
|
250
|
+
readonly api: "https://developers.hubspot.com/docs/api/working-with-oauth";
|
|
251
|
+
readonly hosts: readonly ["api.hubapi.com"];
|
|
252
|
+
readonly auth: {
|
|
253
|
+
readonly kind: "oauth2-user";
|
|
254
|
+
readonly authorizeUrl: "https://app.hubspot.com/oauth/authorize";
|
|
255
|
+
readonly tokenUrl: "https://api.hubapi.com/oauth/v1/token";
|
|
256
|
+
readonly clientId: "HUBSPOT_OAUTH_CLIENT_ID";
|
|
257
|
+
readonly clientSecret: "HUBSPOT_OAUTH_CLIENT_SECRET";
|
|
258
|
+
readonly inject: "form";
|
|
259
|
+
readonly pkce: false;
|
|
260
|
+
readonly scopeSeparator: "space";
|
|
261
|
+
};
|
|
262
|
+
readonly hint: "The app's scopes in HubSpot's developer console must include the scopes apps list, or HubSpot refuses the authorize URL.";
|
|
263
|
+
};
|
|
264
|
+
readonly zoom: {
|
|
265
|
+
readonly id: "zoom";
|
|
266
|
+
readonly name: "Zoom";
|
|
267
|
+
readonly description: "The person's meetings and recordings.";
|
|
268
|
+
readonly docs: "https://marketplace.zoom.us/develop/create";
|
|
269
|
+
readonly api: "https://developers.zoom.us/docs/integrations/oauth-scopes-overview/";
|
|
270
|
+
readonly hosts: readonly ["api.zoom.us"];
|
|
271
|
+
readonly auth: {
|
|
272
|
+
readonly kind: "oauth2-user";
|
|
273
|
+
readonly authorizeUrl: "https://zoom.us/oauth/authorize";
|
|
274
|
+
readonly tokenUrl: "https://zoom.us/oauth/token";
|
|
275
|
+
readonly revokeUrl: "https://zoom.us/oauth/revoke";
|
|
276
|
+
readonly clientId: "ZOOM_CLIENT_ID";
|
|
277
|
+
readonly clientSecret: "ZOOM_CLIENT_SECRET";
|
|
278
|
+
readonly inject: "basic";
|
|
279
|
+
readonly pkce: true;
|
|
280
|
+
readonly scopeSeparator: "space";
|
|
281
|
+
readonly identity: {
|
|
282
|
+
readonly url: "https://api.zoom.us/v2/users/me";
|
|
283
|
+
readonly label: "email";
|
|
284
|
+
readonly id: "id";
|
|
285
|
+
readonly scopes: readonly ["user:read:user"];
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
readonly hint: "A General app with user-managed OAuth, using Zoom's granular scope names.";
|
|
289
|
+
};
|
|
290
|
+
readonly dropbox: {
|
|
291
|
+
readonly id: "dropbox";
|
|
292
|
+
readonly name: "Dropbox";
|
|
293
|
+
readonly description: "Files and folders in the person's Dropbox.";
|
|
294
|
+
readonly docs: "https://www.dropbox.com/developers/apps";
|
|
295
|
+
readonly api: "https://developers.dropbox.com/oauth-guide";
|
|
296
|
+
readonly hosts: readonly ["api.dropboxapi.com", "content.dropboxapi.com"];
|
|
297
|
+
readonly auth: {
|
|
298
|
+
readonly kind: "oauth2-user";
|
|
299
|
+
readonly authorizeUrl: "https://www.dropbox.com/oauth2/authorize";
|
|
300
|
+
readonly tokenUrl: "https://api.dropboxapi.com/oauth2/token";
|
|
301
|
+
readonly revokeUrl: "https://api.dropboxapi.com/2/auth/token/revoke";
|
|
302
|
+
readonly clientId: "DROPBOX_OAUTH_CLIENT_ID";
|
|
303
|
+
readonly clientSecret: "DROPBOX_OAUTH_CLIENT_SECRET";
|
|
304
|
+
readonly inject: "form";
|
|
305
|
+
readonly pkce: true;
|
|
306
|
+
readonly scopeSeparator: "space";
|
|
307
|
+
readonly authorizeParams: {
|
|
308
|
+
readonly token_access_type: "offline";
|
|
309
|
+
};
|
|
310
|
+
readonly tolerated: readonly ["account_info.read"];
|
|
311
|
+
};
|
|
312
|
+
readonly hint: "`token_access_type=offline` is what yields a refresh token.";
|
|
313
|
+
};
|
|
314
|
+
readonly spotify: {
|
|
315
|
+
readonly id: "spotify";
|
|
316
|
+
readonly name: "Spotify";
|
|
317
|
+
readonly description: "The person's library, playlists and listening.";
|
|
318
|
+
readonly docs: "https://developer.spotify.com/dashboard";
|
|
319
|
+
readonly api: "https://developer.spotify.com/documentation/web-api/concepts/scopes";
|
|
320
|
+
readonly hosts: readonly ["api.spotify.com"];
|
|
321
|
+
readonly auth: {
|
|
322
|
+
readonly kind: "oauth2-user";
|
|
323
|
+
readonly authorizeUrl: "https://accounts.spotify.com/authorize";
|
|
324
|
+
readonly tokenUrl: "https://accounts.spotify.com/api/token";
|
|
325
|
+
readonly clientId: "SPOTIFY_CLIENT_ID";
|
|
326
|
+
readonly clientSecret: "SPOTIFY_CLIENT_SECRET";
|
|
327
|
+
readonly inject: "basic";
|
|
328
|
+
readonly pkce: true;
|
|
329
|
+
readonly scopeSeparator: "space";
|
|
330
|
+
readonly identity: {
|
|
331
|
+
readonly url: "https://api.spotify.com/v1/me";
|
|
332
|
+
readonly label: "display_name";
|
|
333
|
+
readonly id: "id";
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
/** The id of an OAuth provider the SDK ships a preset for (`google-workspace`, `github-oauth`, ...). */
|
|
339
|
+
export type OAuthPresetId = keyof typeof PRESETS;
|
|
340
|
+
/** Every preset by id, in the order the picker shows them. */
|
|
22
341
|
export declare const OAUTH_PRESETS: Readonly<Record<string, OAuthPresetSpec>>;
|
|
342
|
+
/** The setup guide for OAuth provider `id`'s client, when its preset has one (`setup` in an app's settings report). */
|
|
343
|
+
export declare function oauthSetupGuide(id: string): string | undefined;
|
|
23
344
|
/** The preset ids, in the order the picker shows them. */
|
|
24
345
|
export declare function oauthPresetIds(): string[];
|
|
25
346
|
/** A preset's parsed capability, for the picker's labels; throws for an unknown id (the test parses every preset). */
|
|
26
347
|
export declare function oauthPreset(id: string): RegistrableCapability | null;
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
348
|
+
/**
|
|
349
|
+
* Whether `capability`, a Gateway's row for `id`, is that preset's: its
|
|
350
|
+
* client would go to the preset's endpoints and hosts under the preset's
|
|
351
|
+
* setting names (the same binding key). Adding the preset again takes the
|
|
352
|
+
* client for such a row; a row of another spec under a preset's id is the
|
|
353
|
+
* operator's own and is never taken for the preset.
|
|
354
|
+
*/
|
|
355
|
+
export declare function isPresetRow(id: string, capability: RegistrableCapability): boolean;
|
|
356
|
+
/**
|
|
357
|
+
* The preset ids among `ids` (an app's capabilities) that `lookup` (a
|
|
358
|
+
* Gateway's registry) doesn't have: the rows a deploy or an install
|
|
359
|
+
* writes from their presets before it checks the manifest.
|
|
360
|
+
*/
|
|
361
|
+
export declare function unregisteredPresetIds(ids: Iterable<string>, lookup: Pick<CapabilityLookup, "get">): string[];
|
|
362
|
+
/**
|
|
363
|
+
* `lookup` with every preset it lacks, as the row it would be: what a
|
|
364
|
+
* local run (`everyapp dev`) and a check made before a Gateway is asked
|
|
365
|
+
* read, since a deploy writes the row of any preset an app names.
|
|
366
|
+
*/
|
|
367
|
+
export declare function withOAuthPresets(lookup: CapabilityLookup): CapabilityLookup;
|
|
368
|
+
export {};
|
|
32
369
|
//# sourceMappingURL=oauthPresets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauthPresets.d.ts","sourceRoot":"","sources":["../../src/internal/oauthPresets.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"oauthPresets.d.ts","sourceRoot":"","sources":["../../src/internal/oauthPresets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAC;AAE3B,4DAA4D;AAC5D,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAEhE,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwUuC,CAAC;AAErD,wGAAwG;AACxG,MAAM,MAAM,aA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