@every-app/sdk 0.3.0-rc.8 → 0.3.0
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 +75 -74
- package/dist/cloudflare/catalogSettings.generated.d.ts +20 -6
- package/dist/cloudflare/catalogSettings.generated.d.ts.map +1 -1
- package/dist/cloudflare/catalogSettings.generated.js +45 -14
- package/dist/cloudflare/index.d.ts +1 -1
- package/dist/cloudflare/index.d.ts.map +1 -1
- package/dist/cloudflare/sentinel.d.ts +3 -0
- package/dist/cloudflare/sentinel.d.ts.map +1 -1
- package/dist/cloudflare/sentinel.js +10 -0
- package/dist/cloudflare/worker.d.ts +67 -23
- package/dist/cloudflare/worker.d.ts.map +1 -1
- package/dist/cloudflare/worker.js +68 -32
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/internal/aiDefault.d.ts +36 -79
- package/dist/internal/aiDefault.d.ts.map +1 -1
- package/dist/internal/aiDefault.js +47 -149
- package/dist/internal/aiProviders.d.ts +1 -1
- package/dist/internal/aiProviders.d.ts.map +1 -1
- package/dist/internal/aiProviders.js +2 -2
- package/dist/internal/appSettings.d.ts +140 -89
- package/dist/internal/appSettings.d.ts.map +1 -1
- package/dist/internal/appSettings.js +264 -156
- package/dist/internal/capabilities.d.ts +145 -503
- package/dist/internal/capabilities.d.ts.map +1 -1
- package/dist/internal/capabilities.js +29 -550
- package/dist/internal/catalog/commerce.js +1 -1
- package/dist/internal/catalog/comms.d.ts +37 -0
- package/dist/internal/catalog/comms.d.ts.map +1 -1
- package/dist/internal/catalog/comms.js +43 -0
- package/dist/internal/catalog/index.d.ts +72 -0
- package/dist/internal/catalog/index.d.ts.map +1 -1
- package/dist/internal/catalog/infra.d.ts +35 -0
- package/dist/internal/catalog/infra.d.ts.map +1 -1
- package/dist/internal/catalog/infra.js +65 -0
- 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/events.d.ts +52 -1
- package/dist/internal/events.d.ts.map +1 -1
- package/dist/internal/events.js +66 -2
- package/dist/internal/gatewaySettings.d.ts +6 -16
- package/dist/internal/gatewaySettings.d.ts.map +1 -1
- package/dist/internal/gatewaySettings.js +6 -24
- package/dist/internal/index.d.ts +1 -0
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +1 -0
- package/dist/internal/mcpOAuth.d.ts +210 -0
- package/dist/internal/mcpOAuth.d.ts.map +1 -0
- package/dist/internal/mcpOAuth.js +735 -0
- package/dist/internal/oauthClient.d.ts +7 -47
- package/dist/internal/oauthClient.d.ts.map +1 -1
- package/dist/internal/oauthClient.js +1 -115
- package/dist/internal/oauthPresets.d.ts +356 -20
- package/dist/internal/oauthPresets.d.ts.map +1 -1
- package/dist/internal/oauthPresets.js +183 -861
- package/dist/internal/oauthScopes.d.ts +43 -155
- package/dist/internal/oauthScopes.d.ts.map +1 -1
- package/dist/internal/oauthScopes.js +82 -475
- package/dist/internal/oauthSpec.d.ts +28 -71
- package/dist/internal/oauthSpec.d.ts.map +1 -1
- package/dist/internal/oauthSpec.js +172 -448
- package/dist/internal/protocol.d.ts +39 -15
- package/dist/internal/protocol.d.ts.map +1 -1
- package/dist/internal/protocol.js +40 -7
- package/dist/internal/providerApps.d.ts +2 -2
- package/dist/internal/providerApps.js +2 -2
- package/dist/internal/providerRegistry.d.ts +5 -64
- package/dist/internal/providerRegistry.d.ts.map +1 -1
- package/dist/internal/providerRegistry.js +19 -118
- package/dist/internal/providerSpec.d.ts.map +1 -1
- package/dist/internal/providerSpec.js +14 -36
- package/dist/internal/remoteMcp.d.ts +191 -47
- package/dist/internal/remoteMcp.d.ts.map +1 -1
- package/dist/internal/remoteMcp.js +338 -133
- package/dist/internal/signInProviders.d.ts +1 -1
- package/dist/internal/signInProviders.d.ts.map +1 -1
- package/dist/internal/tools.d.ts +15 -8
- package/dist/internal/tools.d.ts.map +1 -1
- package/dist/internal/tools.js +9 -8
- package/dist/manifest.d.ts +96 -28
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +1 -1
- package/dist/server/ai.d.ts +1 -93
- package/dist/server/ai.d.ts.map +1 -1
- package/dist/server/ai.js +17 -111
- package/dist/server/attribution.d.ts +10 -1
- package/dist/server/attribution.d.ts.map +1 -1
- package/dist/server/attribution.js +7 -1
- package/dist/server/connectUrl.d.ts +4 -9
- package/dist/server/connectUrl.d.ts.map +1 -1
- package/dist/server/connectUrl.js +17 -14
- package/dist/server/context.d.ts +12 -14
- package/dist/server/context.d.ts.map +1 -1
- package/dist/server/context.js +23 -25
- package/dist/server/emit.d.ts.map +1 -1
- package/dist/server/emit.js +2 -2
- package/dist/server/env.d.ts +3 -0
- package/dist/server/env.d.ts.map +1 -1
- package/dist/server/eventsEndpoint.d.ts +48 -0
- package/dist/server/eventsEndpoint.d.ts.map +1 -0
- package/dist/server/eventsEndpoint.js +145 -0
- package/dist/server/everyApp.d.ts +16 -26
- package/dist/server/everyApp.d.ts.map +1 -1
- package/dist/server/everyApp.js +22 -46
- package/dist/server/gatewayFetch.d.ts +19 -1
- package/dist/server/gatewayFetch.d.ts.map +1 -1
- package/dist/server/gatewayFetch.js +45 -3
- package/dist/server/index.d.ts +6 -9
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +4 -8
- package/dist/server/integrationFetch.d.ts +60 -72
- package/dist/server/integrationFetch.d.ts.map +1 -1
- package/dist/server/integrationFetch.js +124 -397
- package/dist/server/listMembers.d.ts.map +1 -1
- package/dist/server/listMembers.js +2 -2
- package/dist/server/refusal.d.ts +0 -9
- package/dist/server/refusal.d.ts.map +1 -1
- package/dist/server/refusal.js +0 -22
- package/dist/server/sendEmail.d.ts.map +1 -1
- package/dist/server/sendEmail.js +2 -2
- package/dist/server/tools.d.ts +17 -6
- package/dist/server/tools.d.ts.map +1 -1
- package/dist/server/tools.js +14 -4
- package/dist/server/toolsEndpoint.d.ts +2 -1
- package/dist/server/toolsEndpoint.d.ts.map +1 -1
- package/dist/server/toolsEndpoint.js +4 -3
- package/dist/server/webhooks.d.ts +56 -0
- package/dist/server/webhooks.d.ts.map +1 -0
- package/dist/server/webhooks.js +205 -0
- package/dist/testing/index.d.ts +2 -3
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +2 -6
- package/package.json +6 -1
- package/dist/server/aiBinding.d.ts +0 -68
- package/dist/server/aiBinding.d.ts.map +0 -1
- package/dist/server/aiBinding.js +0 -294
- package/dist/server/authorizeUrl.d.ts +0 -43
- package/dist/server/authorizeUrl.d.ts.map +0 -1
- package/dist/server/authorizeUrl.js +0 -106
- package/dist/server/emailBinding.d.ts +0 -72
- package/dist/server/emailBinding.d.ts.map +0 -1
- package/dist/server/emailBinding.js +0 -124
- package/dist/server/fromMcpTools.d.ts +0 -89
- package/dist/server/fromMcpTools.d.ts.map +0 -1
- package/dist/server/fromMcpTools.js +0 -192
package/README.md
CHANGED
|
@@ -69,14 +69,13 @@ export default defineConfig((ctx) => ({
|
|
|
69
69
|
in `.dev.vars`: `everyAppWorker()` declares it only when it is set there,
|
|
70
70
|
since the Vite plugin passes a `.dev.vars` value through only for a
|
|
71
71
|
declared secret. Type it as optional in `src/env.d.ts`
|
|
72
|
-
(`GITHUB_TOKEN?: string` in `Cloudflare.Env`). An entry can carry
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
`
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
what is missing (`docs/manifest-settings.md`).
|
|
72
|
+
(`GITHUB_TOKEN?: string` in `Cloudflare.Env`). An entry can carry
|
|
73
|
+
`{ name: "GITHUB_TOKEN", why, docs, how, generate, file }`; `providers`
|
|
74
|
+
and `capabilities` entries take `why` and `docs`. The top level is
|
|
75
|
+
required; what the app works without goes in an optional feature
|
|
76
|
+
(`features`). Until every required setting is set the app shows "Needs
|
|
77
|
+
setup" and its tools stay out of `/mcp`; `pnpm everyapp configure <app>`
|
|
78
|
+
walks what is missing (`docs/manifest-settings.md`).
|
|
80
79
|
|
|
81
80
|
## Compatibility flags
|
|
82
81
|
|
|
@@ -361,7 +360,8 @@ export const tools = defineTools(
|
|
|
361
360
|
},
|
|
362
361
|
delete_todo: {
|
|
363
362
|
description: "Permanently delete one todo.",
|
|
364
|
-
risk: "
|
|
363
|
+
risk: "write",
|
|
364
|
+
destructive: true, // clients ask the person before calling it
|
|
365
365
|
input: z.object({ id: z.string() }).strict(),
|
|
366
366
|
handler: async ({ id }, { user }) => {
|
|
367
367
|
if (!(await deleteTodo(user.id, id)))
|
|
@@ -375,8 +375,9 @@ export const tools = defineTools(
|
|
|
375
375
|
export default everyApp(handler, { tools });
|
|
376
376
|
```
|
|
377
377
|
|
|
378
|
-
- `risk` is `read
|
|
379
|
-
|
|
378
|
+
- `risk` is `read` or `write`. Read-only connections and tokens see only
|
|
379
|
+
`read` tools. `destructive: true` marks a write tool that deletes or
|
|
380
|
+
can't be undone; clients see `destructiveHint` and ask before calling it.
|
|
380
381
|
- `input` (and the optional `output`) take zod >= 4.2 or any validator that
|
|
381
382
|
implements Standard Schema and Standard JSON Schema; a plain
|
|
382
383
|
`{ jsonSchema, validate }` pair works too. Both describe objects: a
|
|
@@ -517,88 +518,85 @@ binding, the event is checked as the gateway would, printed as
|
|
|
517
518
|
`[everyapp dev] event app.<id>.<event>` (never its data) and answered
|
|
518
519
|
`{ id: "dev-<uuid>", type }`.
|
|
519
520
|
|
|
520
|
-
###
|
|
521
|
+
### OAuth providers
|
|
521
522
|
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
authorize URL (for a client with scope sets, the one `authorizeUrl()`
|
|
529
|
-
builds from its status; for the others, one you build from the status's
|
|
530
|
-
`clientId` and the network's documented scopes), and exchange or refresh
|
|
531
|
-
tokens through the gateway without any client:
|
|
523
|
+
For a person's own account at a provider (Google, Microsoft 365, Slack,
|
|
524
|
+
GitHub, Notion and the other presets: deploying an app that lists one
|
|
525
|
+
registers it on the gateway), the gateway holds the client, runs the flow
|
|
526
|
+
and keeps the tokens. The
|
|
527
|
+
app lists the provider's own scopes, sends people to connect inside the app,
|
|
528
|
+
and calls the provider's API; it never sees a token.
|
|
532
529
|
|
|
533
530
|
```ts
|
|
534
531
|
// everyapp.config.ts
|
|
535
532
|
capabilities: {
|
|
536
|
-
linkedin: { access: "write" },
|
|
537
|
-
// A client several apps share lists the scope sets it uses.
|
|
538
533
|
"google-workspace": {
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
why: "Reads Search Console for the sites you connect",
|
|
534
|
+
scopes: ["webmasters.readonly", "analytics.readonly"],
|
|
535
|
+
why: "Reads Search Console and Analytics for the sites you connect.",
|
|
542
536
|
},
|
|
543
537
|
}
|
|
544
538
|
```
|
|
545
539
|
|
|
540
|
+
A short scope (`gmail.modify`) is joined onto the provider's prefix
|
|
541
|
+
(`https://www.googleapis.com/auth/`); a full one is used as written; `[]`
|
|
542
|
+
for a provider with no scopes (Notion). The gateway adds the scopes that
|
|
543
|
+
name the account (Google's `openid email`), so don't list them. An OAuth
|
|
544
|
+
entry takes no `access`.
|
|
545
|
+
|
|
546
546
|
```ts
|
|
547
547
|
import {
|
|
548
|
-
|
|
548
|
+
connectUrl,
|
|
549
|
+
gatewayRefusal,
|
|
549
550
|
integrationFetch,
|
|
550
551
|
integrationStatus,
|
|
551
552
|
} from "@every-app/sdk/server";
|
|
552
553
|
|
|
553
554
|
const status = await integrationStatus({ env, provider: "google-workspace" });
|
|
554
|
-
if (!status.ready)
|
|
555
|
-
//
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
env,
|
|
566
|
-
provider: "google-workspace",
|
|
567
|
-
for: request,
|
|
568
|
-
})("https://oauth2.googleapis.com/token", {
|
|
569
|
-
method: "POST",
|
|
570
|
-
headers: { "content-type": "application/x-www-form-urlencoded" },
|
|
571
|
-
body: new URLSearchParams({
|
|
572
|
-
grant_type: "authorization_code",
|
|
573
|
-
code,
|
|
574
|
-
redirect_uri,
|
|
575
|
-
code_verifier,
|
|
576
|
-
}),
|
|
577
|
-
});
|
|
555
|
+
if (!status.connection?.ready) {
|
|
556
|
+
// A "Connect Google" button: the gateway asks Google for exactly this
|
|
557
|
+
// app's scopes and sends the person back.
|
|
558
|
+
return redirect(
|
|
559
|
+
connectUrl({ env, provider: "google-workspace", returnTo: request.url }),
|
|
560
|
+
);
|
|
561
|
+
}
|
|
562
|
+
const google = integrationFetch({ env, provider: "google-workspace" });
|
|
563
|
+
const sites = await google(
|
|
564
|
+
"https://searchconsole.googleapis.com/webmasters/v3/sites",
|
|
565
|
+
);
|
|
578
566
|
```
|
|
579
567
|
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
the
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
568
|
+
`connectUrl({ env, provider, returnTo })` is
|
|
569
|
+
`<gateway>/connect/<id>?app=<this app>&return=<returnTo>`. The connection
|
|
570
|
+
belongs to that person and this app: another app that needs the same
|
|
571
|
+
provider connects for its own scopes. The gateway refuses a token that
|
|
572
|
+
carries more scopes than the app lists.
|
|
573
|
+
|
|
574
|
+
`integrationFetch` reaches https URLs only, and the gateway forwards a call
|
|
575
|
+
to the provider's API hosts alone (a token endpoint or any other host is
|
|
576
|
+
refused, `invalid_integration_route`); it puts the person's token on the
|
|
577
|
+
call. Without a connection, or when the
|
|
578
|
+
connection lacks a scope the app now lists, the gateway answers 409
|
|
579
|
+
`integration_not_connected` with `connectPath` (and `missingScopes`): send
|
|
580
|
+
the person to `connectUrl()`.
|
|
581
|
+
|
|
582
|
+
`integrationStatus` for an OAuth provider adds `scopes` (as the manifest
|
|
583
|
+
lists them), `connectPath` (`/connect/<id>?app=<app>`, or null) and
|
|
584
|
+
`connection` (`{ label, scopes, ready, missingScopes?, reconnect? }`, or
|
|
585
|
+
null) for the person.
|
|
586
|
+
|
|
587
|
+
An app may use a connection made in it at any time, including from a cron
|
|
588
|
+
or a Durable Object alarm. `for: { background: true, userId }` names any
|
|
589
|
+
member's connection to this app, even while serving another member's
|
|
590
|
+
request: OpenSEO reads a project's Search Console with the connection of the
|
|
591
|
+
member who picked the property, whoever is viewing. The call carries that
|
|
592
|
+
member (`x-everyapp-user`), not the person being served. Only an
|
|
593
|
+
organization's own app may, and only for a member who may still open the
|
|
594
|
+
app.
|
|
595
|
+
|
|
596
|
+
In local dev, with no binding, put a token you obtained yourself in
|
|
597
|
+
`.dev.vars` as `<PREFIX>_ACCESS_TOKEN` (`GOOGLE_WORKSPACE_ACCESS_TOKEN`,
|
|
598
|
+
`GITHUB_OAUTH_ACCESS_TOKEN`; `devAccessTokenName(id)` names it). It goes on
|
|
599
|
+
calls to the provider's hosts as the bearer; without it calls answer the same 409.
|
|
602
600
|
|
|
603
601
|
### Whom a call is for
|
|
604
602
|
|
|
@@ -610,6 +608,9 @@ passes the Worker.
|
|
|
610
608
|
- `for: { background: true, organizationId }`, for work no request started
|
|
611
609
|
(a cron, a Workflow step, a queue): sent as `x-everyapp-org` with no
|
|
612
610
|
identity.
|
|
611
|
+
- `for: { background: true, userId }`, for a call to an OAuth provider on a
|
|
612
|
+
member's connection to this app: sent as `x-everyapp-user`, with no
|
|
613
|
+
identity, even while a request is being served.
|
|
613
614
|
- Omitted: allowed only in an organization's own app, whose background
|
|
614
615
|
calls are the app's, in its own organization (the same as
|
|
615
616
|
`{ background: true }`). Naming another organization is refused.
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* setting, a host setting), by manifest id. With no Gateway in
|
|
6
6
|
* development, the SDK reaches them with the developer's own values under
|
|
7
7
|
* the same names, and `everyAppWorker()` declares the ones set locally.
|
|
8
|
+
* An OAuth preset's is the token that stands in for a connection in dev
|
|
9
|
+
* (`<PREFIX>_ACCESS_TOKEN`), never its client.
|
|
8
10
|
*/
|
|
9
11
|
export declare const DEV_GATEWAY_KEYS: {
|
|
10
12
|
readonly providers: {
|
|
@@ -22,9 +24,6 @@ export declare const DEV_GATEWAY_KEYS: {
|
|
|
22
24
|
readonly context: readonly ["CONTEXT_API_KEY"];
|
|
23
25
|
readonly email: readonly ["EMAIL_FROM", "EMAIL_FROM_NAME", "EMAIL_REST_API_TOKEN", "CLOUDFLARE_ACCOUNT_ID", "RESEND_API_KEY", "EMAIL_PROVIDER"];
|
|
24
26
|
readonly members: readonly [];
|
|
25
|
-
readonly slack: readonly ["SLACK_CLIENT_ID", "SLACK_CLIENT_SECRET"];
|
|
26
|
-
readonly "google-workspace": readonly ["GOOGLE_WORKSPACE_CLIENT_ID", "GOOGLE_WORKSPACE_CLIENT_SECRET"];
|
|
27
|
-
readonly "microsoft-365": readonly ["MICROSOFT_365_CLIENT_ID", "MICROSOFT_365_CLIENT_SECRET"];
|
|
28
27
|
readonly stripe: readonly ["STRIPE_API_KEY"];
|
|
29
28
|
readonly lemonsqueezy: readonly ["LEMONSQUEEZY_API_KEY"];
|
|
30
29
|
readonly paddle: readonly ["PADDLE_API_KEY"];
|
|
@@ -40,6 +39,7 @@ export declare const DEV_GATEWAY_KEYS: {
|
|
|
40
39
|
readonly twilio: readonly ["TWILIO_API_SECRET", "TWILIO_API_KEY"];
|
|
41
40
|
readonly intercom: readonly ["INTERCOM_API_TOKEN"];
|
|
42
41
|
readonly crisp: readonly ["CRISP_API_KEY", "CRISP_API_IDENTIFIER"];
|
|
42
|
+
readonly granola: readonly ["GRANOLA_API_KEY"];
|
|
43
43
|
readonly linear: readonly ["LINEAR_API_KEY"];
|
|
44
44
|
readonly github: readonly ["GITHUB_API_TOKEN"];
|
|
45
45
|
readonly gitlab: readonly ["GITLAB_API_TOKEN"];
|
|
@@ -55,6 +55,7 @@ export declare const DEV_GATEWAY_KEYS: {
|
|
|
55
55
|
readonly pinecone: readonly ["PINECONE_API_KEY", "PINECONE_HOST"];
|
|
56
56
|
readonly mapbox: readonly ["MAPBOX_ACCESS_TOKEN"];
|
|
57
57
|
readonly openweather: readonly ["OPENWEATHER_API_KEY"];
|
|
58
|
+
readonly daytona: readonly ["DAYTONA_API_KEY"];
|
|
58
59
|
readonly voyage: readonly ["VOYAGE_API_KEY"];
|
|
59
60
|
readonly perplexity: readonly ["PERPLEXITY_API_KEY"];
|
|
60
61
|
readonly jina: readonly ["JINA_API_KEY"];
|
|
@@ -70,11 +71,24 @@ export declare const DEV_GATEWAY_KEYS: {
|
|
|
70
71
|
readonly elevenlabs: readonly ["ELEVENLABS_API_KEY"];
|
|
71
72
|
readonly assemblyai: readonly ["ASSEMBLYAI_API_KEY"];
|
|
72
73
|
readonly newsapi: readonly ["NEWSAPI_API_KEY"];
|
|
74
|
+
readonly "google-workspace": readonly ["GOOGLE_WORKSPACE_ACCESS_TOKEN"];
|
|
75
|
+
readonly "microsoft-365": readonly ["MICROSOFT_365_ACCESS_TOKEN"];
|
|
76
|
+
readonly slack: readonly ["SLACK_ACCESS_TOKEN"];
|
|
77
|
+
readonly "github-oauth": readonly ["GITHUB_OAUTH_ACCESS_TOKEN"];
|
|
78
|
+
readonly "notion-oauth": readonly ["NOTION_OAUTH_ACCESS_TOKEN"];
|
|
79
|
+
readonly "linear-oauth": readonly ["LINEAR_OAUTH_ACCESS_TOKEN"];
|
|
80
|
+
readonly "gitlab-oauth": readonly ["GITLAB_OAUTH_ACCESS_TOKEN"];
|
|
81
|
+
readonly atlassian: readonly ["ATLASSIAN_ACCESS_TOKEN"];
|
|
82
|
+
readonly "hubspot-oauth": readonly ["HUBSPOT_OAUTH_ACCESS_TOKEN"];
|
|
83
|
+
readonly zoom: readonly ["ZOOM_ACCESS_TOKEN"];
|
|
84
|
+
readonly dropbox: readonly ["DROPBOX_ACCESS_TOKEN"];
|
|
85
|
+
readonly spotify: readonly ["SPOTIFY_ACCESS_TOKEN"];
|
|
73
86
|
};
|
|
74
87
|
};
|
|
75
88
|
/**
|
|
76
|
-
* Every setting a catalog entry reads, in catalog
|
|
77
|
-
* the Gateway's cloudflare.config.ts declares for
|
|
89
|
+
* Every setting a catalog entry or an OAuth preset reads, in catalog
|
|
90
|
+
* order, each once: what the Gateway's cloudflare.config.ts declares for
|
|
91
|
+
* local dev.
|
|
78
92
|
*/
|
|
79
|
-
export declare const CATALOG_GATEWAY_SETTINGS: readonly ["OPENAI_API_KEY", "OPENROUTER_API_KEY", "WORKERS_AI_API_TOKEN", "CLOUDFLARE_ACCOUNT_ID", "AI_GATEWAY_API_KEY", "AI_GATEWAY_ID", "DATAFORSEO_API_KEY", "CONTEXT_API_KEY", "EMAIL_FROM", "EMAIL_FROM_NAME", "EMAIL_REST_API_TOKEN", "RESEND_API_KEY", "EMAIL_PROVIDER", "
|
|
93
|
+
export declare const CATALOG_GATEWAY_SETTINGS: readonly ["OPENAI_API_KEY", "OPENROUTER_API_KEY", "WORKERS_AI_API_TOKEN", "CLOUDFLARE_ACCOUNT_ID", "AI_GATEWAY_API_KEY", "AI_GATEWAY_ID", "DATAFORSEO_API_KEY", "CONTEXT_API_KEY", "EMAIL_FROM", "EMAIL_FROM_NAME", "EMAIL_REST_API_TOKEN", "RESEND_API_KEY", "EMAIL_PROVIDER", "STRIPE_API_KEY", "LEMONSQUEEZY_API_KEY", "PADDLE_API_KEY", "SHOPIFY_API_TOKEN", "SHOPIFY_HOST", "PLAID_SECRET", "ATTIO_API_KEY", "HUBSPOT_API_TOKEN", "PIPEDRIVE_API_TOKEN", "AIRTABLE_API_TOKEN", "NOTION_API_TOKEN", "POSTMARK_API_TOKEN", "SENDGRID_API_KEY", "TWILIO_API_SECRET", "TWILIO_API_KEY", "INTERCOM_API_TOKEN", "CRISP_API_KEY", "CRISP_API_IDENTIFIER", "GRANOLA_API_KEY", "LINEAR_API_KEY", "GITHUB_API_TOKEN", "GITLAB_API_TOKEN", "VERCEL_API_TOKEN", "CLOUDFLARE_PROVIDER_API_TOKEN", "POSTHOG_PERSONAL_API_KEY", "MIXPANEL_SERVICE_ACCOUNT_SECRET", "MIXPANEL_SERVICE_ACCOUNT_USERNAME", "SEGMENT_WRITE_KEY", "SUPABASE_SECRET_KEY", "SUPABASE_HOST", "TURSO_API_TOKEN", "TURSO_DB_AUTH_TOKEN", "TURSO_DB_HOST", "NEON_API_KEY", "PINECONE_API_KEY", "PINECONE_HOST", "MAPBOX_ACCESS_TOKEN", "OPENWEATHER_API_KEY", "DAYTONA_API_KEY", "ANTHROPIC_API_KEY", "GEMINI_API_KEY", "MISTRAL_API_KEY", "GROQ_API_KEY", "COHERE_API_KEY", "VOYAGE_API_KEY", "PERPLEXITY_API_KEY", "JINA_API_KEY", "REPLICATE_API_TOKEN", "HUGGINGFACE_API_TOKEN", "FIRECRAWL_API_KEY", "EXA_API_KEY", "TAVILY_API_KEY", "SERPER_API_KEY", "BRAVE_SEARCH_API_KEY", "APIFY_API_TOKEN", "DEEPGRAM_API_KEY", "ELEVENLABS_API_KEY", "ASSEMBLYAI_API_KEY", "NEWSAPI_API_KEY", "GOOGLE_WORKSPACE_CLIENT_ID", "GOOGLE_WORKSPACE_CLIENT_SECRET", "MICROSOFT_365_CLIENT_ID", "MICROSOFT_365_CLIENT_SECRET", "SLACK_CLIENT_ID", "SLACK_CLIENT_SECRET", "GITHUB_OAUTH_CLIENT_ID", "GITHUB_OAUTH_CLIENT_SECRET", "NOTION_OAUTH_CLIENT_ID", "NOTION_OAUTH_CLIENT_SECRET", "LINEAR_OAUTH_CLIENT_ID", "LINEAR_OAUTH_CLIENT_SECRET", "GITLAB_OAUTH_CLIENT_ID", "GITLAB_OAUTH_CLIENT_SECRET", "ATLASSIAN_CLIENT_ID", "ATLASSIAN_CLIENT_SECRET", "HUBSPOT_OAUTH_CLIENT_ID", "HUBSPOT_OAUTH_CLIENT_SECRET", "ZOOM_CLIENT_ID", "ZOOM_CLIENT_SECRET", "DROPBOX_OAUTH_CLIENT_ID", "DROPBOX_OAUTH_CLIENT_SECRET", "SPOTIFY_CLIENT_ID", "SPOTIFY_CLIENT_SECRET"];
|
|
80
94
|
//# sourceMappingURL=catalogSettings.generated.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalogSettings.generated.d.ts","sourceRoot":"","sources":["../../src/cloudflare/catalogSettings.generated.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"catalogSettings.generated.d.ts","sourceRoot":"","sources":["../../src/cloudflare/catalogSettings.generated.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFnB,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,ulEAiG3B,CAAC"}
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* setting, a host setting), by manifest id. With no Gateway in
|
|
9
9
|
* development, the SDK reaches them with the developer's own values under
|
|
10
10
|
* the same names, and `everyAppWorker()` declares the ones set locally.
|
|
11
|
+
* An OAuth preset's is the token that stands in for a connection in dev
|
|
12
|
+
* (`<PREFIX>_ACCESS_TOKEN`), never its client.
|
|
11
13
|
*/
|
|
12
14
|
export const DEV_GATEWAY_KEYS = {
|
|
13
15
|
providers: {
|
|
@@ -32,12 +34,6 @@ export const DEV_GATEWAY_KEYS = {
|
|
|
32
34
|
"EMAIL_PROVIDER",
|
|
33
35
|
],
|
|
34
36
|
members: [],
|
|
35
|
-
slack: ["SLACK_CLIENT_ID", "SLACK_CLIENT_SECRET"],
|
|
36
|
-
"google-workspace": [
|
|
37
|
-
"GOOGLE_WORKSPACE_CLIENT_ID",
|
|
38
|
-
"GOOGLE_WORKSPACE_CLIENT_SECRET",
|
|
39
|
-
],
|
|
40
|
-
"microsoft-365": ["MICROSOFT_365_CLIENT_ID", "MICROSOFT_365_CLIENT_SECRET"],
|
|
41
37
|
stripe: ["STRIPE_API_KEY"],
|
|
42
38
|
lemonsqueezy: ["LEMONSQUEEZY_API_KEY"],
|
|
43
39
|
paddle: ["PADDLE_API_KEY"],
|
|
@@ -53,6 +49,7 @@ export const DEV_GATEWAY_KEYS = {
|
|
|
53
49
|
twilio: ["TWILIO_API_SECRET", "TWILIO_API_KEY"],
|
|
54
50
|
intercom: ["INTERCOM_API_TOKEN"],
|
|
55
51
|
crisp: ["CRISP_API_KEY", "CRISP_API_IDENTIFIER"],
|
|
52
|
+
granola: ["GRANOLA_API_KEY"],
|
|
56
53
|
linear: ["LINEAR_API_KEY"],
|
|
57
54
|
github: ["GITHUB_API_TOKEN"],
|
|
58
55
|
gitlab: ["GITLAB_API_TOKEN"],
|
|
@@ -71,6 +68,7 @@ export const DEV_GATEWAY_KEYS = {
|
|
|
71
68
|
pinecone: ["PINECONE_API_KEY", "PINECONE_HOST"],
|
|
72
69
|
mapbox: ["MAPBOX_ACCESS_TOKEN"],
|
|
73
70
|
openweather: ["OPENWEATHER_API_KEY"],
|
|
71
|
+
daytona: ["DAYTONA_API_KEY"],
|
|
74
72
|
voyage: ["VOYAGE_API_KEY"],
|
|
75
73
|
perplexity: ["PERPLEXITY_API_KEY"],
|
|
76
74
|
jina: ["JINA_API_KEY"],
|
|
@@ -86,11 +84,24 @@ export const DEV_GATEWAY_KEYS = {
|
|
|
86
84
|
elevenlabs: ["ELEVENLABS_API_KEY"],
|
|
87
85
|
assemblyai: ["ASSEMBLYAI_API_KEY"],
|
|
88
86
|
newsapi: ["NEWSAPI_API_KEY"],
|
|
87
|
+
"google-workspace": ["GOOGLE_WORKSPACE_ACCESS_TOKEN"],
|
|
88
|
+
"microsoft-365": ["MICROSOFT_365_ACCESS_TOKEN"],
|
|
89
|
+
slack: ["SLACK_ACCESS_TOKEN"],
|
|
90
|
+
"github-oauth": ["GITHUB_OAUTH_ACCESS_TOKEN"],
|
|
91
|
+
"notion-oauth": ["NOTION_OAUTH_ACCESS_TOKEN"],
|
|
92
|
+
"linear-oauth": ["LINEAR_OAUTH_ACCESS_TOKEN"],
|
|
93
|
+
"gitlab-oauth": ["GITLAB_OAUTH_ACCESS_TOKEN"],
|
|
94
|
+
atlassian: ["ATLASSIAN_ACCESS_TOKEN"],
|
|
95
|
+
"hubspot-oauth": ["HUBSPOT_OAUTH_ACCESS_TOKEN"],
|
|
96
|
+
zoom: ["ZOOM_ACCESS_TOKEN"],
|
|
97
|
+
dropbox: ["DROPBOX_ACCESS_TOKEN"],
|
|
98
|
+
spotify: ["SPOTIFY_ACCESS_TOKEN"],
|
|
89
99
|
},
|
|
90
100
|
};
|
|
91
101
|
/**
|
|
92
|
-
* Every setting a catalog entry reads, in catalog
|
|
93
|
-
* the Gateway's cloudflare.config.ts declares for
|
|
102
|
+
* Every setting a catalog entry or an OAuth preset reads, in catalog
|
|
103
|
+
* order, each once: what the Gateway's cloudflare.config.ts declares for
|
|
104
|
+
* local dev.
|
|
94
105
|
*/
|
|
95
106
|
export const CATALOG_GATEWAY_SETTINGS = [
|
|
96
107
|
"OPENAI_API_KEY",
|
|
@@ -106,12 +117,6 @@ export const CATALOG_GATEWAY_SETTINGS = [
|
|
|
106
117
|
"EMAIL_REST_API_TOKEN",
|
|
107
118
|
"RESEND_API_KEY",
|
|
108
119
|
"EMAIL_PROVIDER",
|
|
109
|
-
"SLACK_CLIENT_ID",
|
|
110
|
-
"SLACK_CLIENT_SECRET",
|
|
111
|
-
"GOOGLE_WORKSPACE_CLIENT_ID",
|
|
112
|
-
"GOOGLE_WORKSPACE_CLIENT_SECRET",
|
|
113
|
-
"MICROSOFT_365_CLIENT_ID",
|
|
114
|
-
"MICROSOFT_365_CLIENT_SECRET",
|
|
115
120
|
"STRIPE_API_KEY",
|
|
116
121
|
"LEMONSQUEEZY_API_KEY",
|
|
117
122
|
"PADDLE_API_KEY",
|
|
@@ -130,6 +135,7 @@ export const CATALOG_GATEWAY_SETTINGS = [
|
|
|
130
135
|
"INTERCOM_API_TOKEN",
|
|
131
136
|
"CRISP_API_KEY",
|
|
132
137
|
"CRISP_API_IDENTIFIER",
|
|
138
|
+
"GRANOLA_API_KEY",
|
|
133
139
|
"LINEAR_API_KEY",
|
|
134
140
|
"GITHUB_API_TOKEN",
|
|
135
141
|
"GITLAB_API_TOKEN",
|
|
@@ -149,6 +155,7 @@ export const CATALOG_GATEWAY_SETTINGS = [
|
|
|
149
155
|
"PINECONE_HOST",
|
|
150
156
|
"MAPBOX_ACCESS_TOKEN",
|
|
151
157
|
"OPENWEATHER_API_KEY",
|
|
158
|
+
"DAYTONA_API_KEY",
|
|
152
159
|
"ANTHROPIC_API_KEY",
|
|
153
160
|
"GEMINI_API_KEY",
|
|
154
161
|
"MISTRAL_API_KEY",
|
|
@@ -169,4 +176,28 @@ export const CATALOG_GATEWAY_SETTINGS = [
|
|
|
169
176
|
"ELEVENLABS_API_KEY",
|
|
170
177
|
"ASSEMBLYAI_API_KEY",
|
|
171
178
|
"NEWSAPI_API_KEY",
|
|
179
|
+
"GOOGLE_WORKSPACE_CLIENT_ID",
|
|
180
|
+
"GOOGLE_WORKSPACE_CLIENT_SECRET",
|
|
181
|
+
"MICROSOFT_365_CLIENT_ID",
|
|
182
|
+
"MICROSOFT_365_CLIENT_SECRET",
|
|
183
|
+
"SLACK_CLIENT_ID",
|
|
184
|
+
"SLACK_CLIENT_SECRET",
|
|
185
|
+
"GITHUB_OAUTH_CLIENT_ID",
|
|
186
|
+
"GITHUB_OAUTH_CLIENT_SECRET",
|
|
187
|
+
"NOTION_OAUTH_CLIENT_ID",
|
|
188
|
+
"NOTION_OAUTH_CLIENT_SECRET",
|
|
189
|
+
"LINEAR_OAUTH_CLIENT_ID",
|
|
190
|
+
"LINEAR_OAUTH_CLIENT_SECRET",
|
|
191
|
+
"GITLAB_OAUTH_CLIENT_ID",
|
|
192
|
+
"GITLAB_OAUTH_CLIENT_SECRET",
|
|
193
|
+
"ATLASSIAN_CLIENT_ID",
|
|
194
|
+
"ATLASSIAN_CLIENT_SECRET",
|
|
195
|
+
"HUBSPOT_OAUTH_CLIENT_ID",
|
|
196
|
+
"HUBSPOT_OAUTH_CLIENT_SECRET",
|
|
197
|
+
"ZOOM_CLIENT_ID",
|
|
198
|
+
"ZOOM_CLIENT_SECRET",
|
|
199
|
+
"DROPBOX_OAUTH_CLIENT_ID",
|
|
200
|
+
"DROPBOX_OAUTH_CLIENT_SECRET",
|
|
201
|
+
"SPOTIFY_CLIENT_ID",
|
|
202
|
+
"SPOTIFY_CLIENT_SECRET",
|
|
172
203
|
];
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* `/internal` would break `cf dev` wherever the SDK is linked from source.
|
|
18
18
|
* (The dev keypair it hands the dev Worker is a leaf the Worker never loads.)
|
|
19
19
|
*/
|
|
20
|
-
export { EVERYAPP_OBSERVABILITY, everyAppAuxiliaryWorker, everyAppWorker, helperWorkerName, localD1Id, localD1Path, workflowNameFor, type AiBinding, type AnalyticsEngineDatasetBinding, type BrowserBinding, type AiGatewayBinding, type D1Binding, type DurableObjectBinding, type DurableObjectExport, type EveryAppAuxiliaryWorkerConfig, type EveryAppAuxiliaryWorkerOptions, type EveryAppBinding, type EveryAppConfigContext, type EveryAppDeployEnv, type EveryAppDevEnv, type EveryAppExports, type EveryAppObservability, type EveryAppPlacement, type EveryAppTrigger, type EveryAppWorkerConfig, type EveryAppWorkerManifest, type EveryAppWorkerOptions, type EveryAppWorkerReference, type GatewayBinding, type HyperdriveBinding, type ImagesBinding, type JsonBinding, type KvBinding, type QueueBinding, type QueueConsumerTrigger, type SecretBinding, type SecretsStoreSecretBinding, type SendEmailBinding, type ServiceBinding, type TextBinding, type VectorizeBinding, type VersionMetadataBinding, type WorkflowBinding, type WorkflowExport, } from "./worker.js";
|
|
20
|
+
export { EVERYAPP_OBSERVABILITY, everyAppAuxiliaryWorker, everyAppWorker, helperWorkerName, localD1Id, localD1Path, workflowNameFor, type AiBinding, type AnalyticsEngineDatasetBinding, type ArtifactsBinding, type BrowserBinding, type AiGatewayBinding, type D1Binding, type DurableObjectBinding, type DurableObjectExport, type EveryAppAuxiliaryWorkerConfig, type EveryAppAuxiliaryWorkerOptions, type EveryAppBinding, type EveryAppConfigContext, type EveryAppDeployEnv, type EveryAppDevEnv, type EveryAppExports, type EveryAppObservability, type EveryAppPlacement, type EveryAppTrigger, type EveryAppWorkerConfig, type EveryAppWorkerManifest, type EveryAppWorkerOptions, type EveryAppWorkerReference, type GatewayBinding, type HyperdriveBinding, type ImagesBinding, type JsonBinding, type KvBinding, type QueueBinding, type QueueConsumerTrigger, type SecretBinding, type SecretsStoreSecretBinding, type SendEmailBinding, type ServiceBinding, type TextBinding, type VectorizeBinding, type VersionMetadataBinding, type WorkflowBinding, type WorkflowExport, } from "./worker.js";
|
|
21
21
|
export { aiGatewayUrl, BUILD_SENTINEL, resourceSentinel, sentinelDeployTarget, type AiGatewayValue, type EveryAppDeployTarget, } from "./sentinel.js";
|
|
22
22
|
export { CATALOG_GATEWAY_SETTINGS } from "./catalogSettings.generated.js";
|
|
23
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cloudflare/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,WAAW,EACX,eAAe,EACf,KAAK,SAAS,EACd,KAAK,6BAA6B,EAClC,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,cAAc,GACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,cAAc,EACnB,KAAK,oBAAoB,GAC1B,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cloudflare/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,WAAW,EACX,eAAe,EACf,KAAK,SAAS,EACd,KAAK,6BAA6B,EAClC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,cAAc,GACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,cAAc,EACnB,KAAK,oBAAoB,GAC1B,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -24,6 +24,9 @@ export declare const BUILD_SENTINEL: Readonly<{
|
|
|
24
24
|
gatewayUrl: "https://every-hosted--sentinel.invalid";
|
|
25
25
|
publicKey: "-----BEGIN PUBLIC KEY-----\nEVERYAPPHOSTEDDEPLOYSENTINEL\n-----END PUBLIC KEY-----\n";
|
|
26
26
|
}>;
|
|
27
|
+
/** Runtime-independent resource names used by both release installers. */
|
|
28
|
+
export declare function helperWorkerName(appWorker: string, helper: string): string;
|
|
29
|
+
export declare function workflowNameFor(workerName: string, binding: string): string;
|
|
27
30
|
/**
|
|
28
31
|
* A manifest binding's placeholder: a D1 database's name and id, an R2
|
|
29
32
|
* bucket's, queue's or Vectorize index's name, a KV namespace's, Hyperdrive
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentinel.d.ts","sourceRoot":"","sources":["../../src/cloudflare/sentinel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,cAAc;;;IAKzB;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U,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KACxE,CAAC;CACH;AAED,8EAA8E;AAC9E,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,gBAAgB,GACzB,oBAAoB,CAoDtB"}
|
|
@@ -26,6 +26,16 @@ export const BUILD_SENTINEL = Object.freeze({
|
|
|
26
26
|
gatewayUrl: "https://every-hosted--sentinel.invalid",
|
|
27
27
|
publicKey: "-----BEGIN PUBLIC KEY-----\nEVERYAPPHOSTEDDEPLOYSENTINEL\n-----END PUBLIC KEY-----\n",
|
|
28
28
|
});
|
|
29
|
+
/** Runtime-independent resource names used by both release installers. */
|
|
30
|
+
export function helperWorkerName(appWorker, helper) {
|
|
31
|
+
const name = `${appWorker}--${helper}`;
|
|
32
|
+
if (name.length > 63)
|
|
33
|
+
throw new Error(`Helper Worker ${name} is longer than Cloudflare's 63 characters; shorten its name in everyapp.config.ts.`);
|
|
34
|
+
return name;
|
|
35
|
+
}
|
|
36
|
+
export function workflowNameFor(workerName, binding) {
|
|
37
|
+
return `${workerName}--${binding.toLowerCase().replaceAll("_", "-")}`;
|
|
38
|
+
}
|
|
29
39
|
/**
|
|
30
40
|
* A manifest binding's placeholder: a D1 database's name and id, an R2
|
|
31
41
|
* bucket's, queue's or Vectorize index's name, a KV namespace's, Hyperdrive
|