@every-app/sdk 0.3.0-rc.3 → 0.3.0-rc.5
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 +1 -1
- package/dist/cloudflare/catalogSettings.generated.d.ts +95 -0
- package/dist/cloudflare/catalogSettings.generated.d.ts.map +1 -0
- package/dist/cloudflare/catalogSettings.generated.js +221 -0
- package/dist/cloudflare/index.d.ts +2 -1
- package/dist/cloudflare/index.d.ts.map +1 -1
- package/dist/cloudflare/index.js +3 -0
- package/dist/cloudflare/sentinel.d.ts +21 -4
- package/dist/cloudflare/sentinel.d.ts.map +1 -1
- package/dist/cloudflare/sentinel.js +8 -4
- package/dist/cloudflare/worker.d.ts +195 -103
- package/dist/cloudflare/worker.d.ts.map +1 -1
- package/dist/cloudflare/worker.js +220 -137
- package/dist/dev/index.d.ts +1 -1
- package/dist/dev/index.d.ts.map +1 -1
- package/dist/dev/index.js +1 -1
- package/dist/dev/keypair.d.ts +2 -0
- package/dist/dev/keypair.d.ts.map +1 -1
- package/dist/dev/keypair.js +2 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/internal/capabilities.d.ts +1 -1
- package/dist/internal/catalog/index.d.ts +1 -1
- package/dist/internal/catalog/inference.d.ts +1 -1
- package/dist/internal/catalog/inference.js +3 -3
- package/dist/internal/events.d.ts +1 -1
- package/dist/internal/events.d.ts.map +1 -1
- package/dist/internal/events.js +23 -1
- package/dist/internal/gatewaySettings.d.ts +7 -1
- package/dist/internal/gatewaySettings.d.ts.map +1 -1
- package/dist/internal/gatewaySettings.js +12 -1
- package/dist/internal/identity.d.ts +29 -3
- package/dist/internal/identity.d.ts.map +1 -1
- package/dist/internal/identity.js +37 -9
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/members.d.ts +3 -2
- package/dist/internal/members.d.ts.map +1 -1
- package/dist/internal/protocol.d.ts +25 -1
- package/dist/internal/protocol.d.ts.map +1 -1
- package/dist/internal/protocol.js +21 -1
- package/dist/manifest.d.ts +205 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/manifest.js +30 -0
- package/dist/server/ai.d.ts +21 -0
- package/dist/server/ai.d.ts.map +1 -1
- package/dist/server/ai.js +37 -8
- package/dist/server/aiBinding.d.ts +68 -0
- package/dist/server/aiBinding.d.ts.map +1 -0
- package/dist/server/aiBinding.js +294 -0
- package/dist/server/attribution.d.ts +9 -5
- package/dist/server/attribution.d.ts.map +1 -1
- package/dist/server/attribution.js +12 -4
- package/dist/server/context.d.ts +68 -0
- package/dist/server/context.d.ts.map +1 -0
- package/dist/server/context.js +117 -0
- package/dist/server/emailBinding.d.ts +72 -0
- package/dist/server/emailBinding.d.ts.map +1 -0
- package/dist/server/emailBinding.js +124 -0
- package/dist/server/emit.d.ts +1 -1
- package/dist/server/emit.d.ts.map +1 -1
- package/dist/server/emit.js +4 -4
- package/dist/server/env.d.ts +41 -0
- package/dist/server/env.d.ts.map +1 -0
- package/dist/server/env.js +1 -0
- package/dist/server/everyApp.d.ts +27 -7
- package/dist/server/everyApp.d.ts.map +1 -1
- package/dist/server/everyApp.js +106 -5
- package/dist/server/fromMcpTools.d.ts +89 -0
- package/dist/server/fromMcpTools.d.ts.map +1 -0
- package/dist/server/fromMcpTools.js +192 -0
- package/dist/server/gatewayFetch.d.ts +24 -18
- package/dist/server/gatewayFetch.d.ts.map +1 -1
- package/dist/server/gatewayFetch.js +9 -9
- package/dist/server/gatewayUrl.d.ts +13 -0
- package/dist/server/gatewayUrl.d.ts.map +1 -0
- package/dist/server/gatewayUrl.js +34 -0
- package/dist/server/index.d.ts +11 -3
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +9 -2
- package/dist/server/integrationFetch.d.ts +28 -7
- package/dist/server/integrationFetch.d.ts.map +1 -1
- package/dist/server/integrationFetch.js +24 -28
- package/dist/server/listMembers.d.ts +1 -1
- package/dist/server/listMembers.d.ts.map +1 -1
- package/dist/server/listMembers.js +5 -8
- package/dist/server/sendEmail.d.ts +1 -1
- package/dist/server/sendEmail.d.ts.map +1 -1
- package/dist/server/sendEmail.js +4 -4
- package/dist/server/toolsEndpoint.d.ts.map +1 -1
- package/dist/server/toolsEndpoint.js +11 -5
- package/dist/tanstack-start/index.d.ts +9 -0
- package/dist/tanstack-start/index.d.ts.map +1 -0
- package/dist/tanstack-start/index.js +29 -0
- package/dist/testing/index.d.ts +93 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +156 -0
- package/package.json +25 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @every-app/sdk
|
|
2
2
|
|
|
3
|
-
The embedded SDK for building apps on the
|
|
3
|
+
The embedded SDK for building apps on the EveryApp platform.
|
|
4
4
|
|
|
5
5
|
It verifies the identity the Gateway injects, defines the app's Worker and its agent tools, and reaches the Gateway's AI, email and integrations. There is no client-side export.
|
|
6
6
|
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Gateway settings holding the keys of the AI providers and
|
|
3
|
+
* capabilities an app may ask for, with the settings a provider needs
|
|
4
|
+
* besides its key (Workers AI's account, a Basic username held as a
|
|
5
|
+
* setting, a host setting), by manifest id. With no Gateway in
|
|
6
|
+
* development, the SDK reaches them with the developer's own values under
|
|
7
|
+
* the same names, and `everyAppWorker()` declares the ones set locally.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DEV_GATEWAY_KEYS: {
|
|
10
|
+
readonly providers: {
|
|
11
|
+
readonly openai: readonly ["OPENAI_API_KEY"];
|
|
12
|
+
readonly openrouter: readonly ["OPENROUTER_API_KEY"];
|
|
13
|
+
readonly "workers-ai": readonly ["WORKERS_AI_API_TOKEN", "CLOUDFLARE_ACCOUNT_ID"];
|
|
14
|
+
readonly anthropic: readonly ["ANTHROPIC_API_KEY"];
|
|
15
|
+
readonly gemini: readonly ["GEMINI_API_KEY"];
|
|
16
|
+
readonly mistral: readonly ["MISTRAL_API_KEY"];
|
|
17
|
+
readonly groq: readonly ["GROQ_API_KEY"];
|
|
18
|
+
readonly cohere: readonly ["COHERE_API_KEY"];
|
|
19
|
+
};
|
|
20
|
+
readonly capabilities: {
|
|
21
|
+
readonly dataforseo: readonly ["DATAFORSEO_API_KEY"];
|
|
22
|
+
readonly context: readonly ["CONTEXT_API_KEY"];
|
|
23
|
+
readonly email: readonly ["EMAIL_FROM", "EMAIL_FROM_NAME", "EMAIL_REST_API_TOKEN", "CLOUDFLARE_ACCOUNT_ID", "RESEND_API_KEY", "EMAIL_PROVIDER"];
|
|
24
|
+
readonly members: readonly [];
|
|
25
|
+
readonly linkedin: readonly ["LINKEDIN_CLIENT_ID", "LINKEDIN_CLIENT_SECRET"];
|
|
26
|
+
readonly facebook: readonly ["FACEBOOK_APP_ID", "FACEBOOK_APP_SECRET"];
|
|
27
|
+
readonly instagram: readonly ["INSTAGRAM_APP_ID", "INSTAGRAM_APP_SECRET"];
|
|
28
|
+
readonly threads: readonly ["THREADS_APP_ID", "THREADS_APP_SECRET"];
|
|
29
|
+
readonly youtube: readonly ["YOUTUBE_CLIENT_ID", "YOUTUBE_CLIENT_SECRET"];
|
|
30
|
+
readonly tiktok: readonly ["TIKTOK_CLIENT_ID", "TIKTOK_CLIENT_SECRET"];
|
|
31
|
+
readonly "tiktok-business": readonly ["TIKTOK_BUSINESS_CLIENT_ID", "TIKTOK_BUSINESS_CLIENT_SECRET"];
|
|
32
|
+
readonly reddit: readonly ["REDDIT_CLIENT_ID", "REDDIT_CLIENT_SECRET"];
|
|
33
|
+
readonly pinterest: readonly ["PINTEREST_CLIENT_ID", "PINTEREST_CLIENT_SECRET"];
|
|
34
|
+
readonly discord: readonly ["DISCORD_CLIENT_ID", "DISCORD_CLIENT_SECRET"];
|
|
35
|
+
readonly slack: readonly ["SLACK_CLIENT_ID", "SLACK_CLIENT_SECRET"];
|
|
36
|
+
readonly mastodon: readonly ["MASTODON_CLIENT_ID", "MASTODON_CLIENT_SECRET", "MASTODON_URL"];
|
|
37
|
+
readonly kick: readonly ["KICK_CLIENT_ID", "KICK_CLIENT_SECRET"];
|
|
38
|
+
readonly twitch: readonly ["TWITCH_CLIENT_ID", "TWITCH_CLIENT_SECRET"];
|
|
39
|
+
readonly tumblr: readonly ["TUMBLR_CLIENT_ID", "TUMBLR_CLIENT_SECRET"];
|
|
40
|
+
readonly dribbble: readonly ["DRIBBBLE_CLIENT_ID", "DRIBBBLE_CLIENT_SECRET"];
|
|
41
|
+
readonly "google-workspace": readonly ["GOOGLE_WORKSPACE_CLIENT_ID", "GOOGLE_WORKSPACE_CLIENT_SECRET"];
|
|
42
|
+
readonly "microsoft-365": readonly ["MICROSOFT_365_CLIENT_ID", "MICROSOFT_365_CLIENT_SECRET"];
|
|
43
|
+
readonly stripe: readonly ["STRIPE_API_KEY"];
|
|
44
|
+
readonly lemonsqueezy: readonly ["LEMONSQUEEZY_API_KEY"];
|
|
45
|
+
readonly paddle: readonly ["PADDLE_API_KEY"];
|
|
46
|
+
readonly shopify: readonly ["SHOPIFY_API_TOKEN", "SHOPIFY_HOST"];
|
|
47
|
+
readonly plaid: readonly ["PLAID_SECRET"];
|
|
48
|
+
readonly attio: readonly ["ATTIO_API_KEY"];
|
|
49
|
+
readonly hubspot: readonly ["HUBSPOT_API_TOKEN"];
|
|
50
|
+
readonly pipedrive: readonly ["PIPEDRIVE_API_TOKEN"];
|
|
51
|
+
readonly airtable: readonly ["AIRTABLE_API_TOKEN"];
|
|
52
|
+
readonly notion: readonly ["NOTION_API_TOKEN"];
|
|
53
|
+
readonly postmark: readonly ["POSTMARK_API_TOKEN"];
|
|
54
|
+
readonly sendgrid: readonly ["SENDGRID_API_KEY"];
|
|
55
|
+
readonly twilio: readonly ["TWILIO_API_SECRET", "TWILIO_API_KEY"];
|
|
56
|
+
readonly intercom: readonly ["INTERCOM_API_TOKEN"];
|
|
57
|
+
readonly crisp: readonly ["CRISP_API_KEY", "CRISP_API_IDENTIFIER"];
|
|
58
|
+
readonly linear: readonly ["LINEAR_API_KEY"];
|
|
59
|
+
readonly github: readonly ["GITHUB_API_TOKEN"];
|
|
60
|
+
readonly gitlab: readonly ["GITLAB_API_TOKEN"];
|
|
61
|
+
readonly vercel: readonly ["VERCEL_API_TOKEN"];
|
|
62
|
+
readonly cloudflare: readonly ["CLOUDFLARE_PROVIDER_API_TOKEN"];
|
|
63
|
+
readonly posthog: readonly ["POSTHOG_PERSONAL_API_KEY"];
|
|
64
|
+
readonly mixpanel: readonly ["MIXPANEL_SERVICE_ACCOUNT_SECRET", "MIXPANEL_SERVICE_ACCOUNT_USERNAME"];
|
|
65
|
+
readonly segment: readonly ["SEGMENT_WRITE_KEY"];
|
|
66
|
+
readonly supabase: readonly ["SUPABASE_SECRET_KEY", "SUPABASE_HOST"];
|
|
67
|
+
readonly turso: readonly ["TURSO_API_TOKEN"];
|
|
68
|
+
readonly "turso-db": readonly ["TURSO_DB_AUTH_TOKEN", "TURSO_DB_HOST"];
|
|
69
|
+
readonly neon: readonly ["NEON_API_KEY"];
|
|
70
|
+
readonly pinecone: readonly ["PINECONE_API_KEY", "PINECONE_HOST"];
|
|
71
|
+
readonly mapbox: readonly ["MAPBOX_ACCESS_TOKEN"];
|
|
72
|
+
readonly openweather: readonly ["OPENWEATHER_API_KEY"];
|
|
73
|
+
readonly voyage: readonly ["VOYAGE_API_KEY"];
|
|
74
|
+
readonly perplexity: readonly ["PERPLEXITY_API_KEY"];
|
|
75
|
+
readonly jina: readonly ["JINA_API_KEY"];
|
|
76
|
+
readonly replicate: readonly ["REPLICATE_API_TOKEN"];
|
|
77
|
+
readonly huggingface: readonly ["HUGGINGFACE_API_TOKEN"];
|
|
78
|
+
readonly firecrawl: readonly ["FIRECRAWL_API_KEY"];
|
|
79
|
+
readonly exa: readonly ["EXA_API_KEY"];
|
|
80
|
+
readonly tavily: readonly ["TAVILY_API_KEY"];
|
|
81
|
+
readonly serper: readonly ["SERPER_API_KEY"];
|
|
82
|
+
readonly "brave-search": readonly ["BRAVE_SEARCH_API_KEY"];
|
|
83
|
+
readonly apify: readonly ["APIFY_API_TOKEN"];
|
|
84
|
+
readonly deepgram: readonly ["DEEPGRAM_API_KEY"];
|
|
85
|
+
readonly elevenlabs: readonly ["ELEVENLABS_API_KEY"];
|
|
86
|
+
readonly assemblyai: readonly ["ASSEMBLYAI_API_KEY"];
|
|
87
|
+
readonly newsapi: readonly ["NEWSAPI_API_KEY"];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Every setting a catalog entry reads, in catalog order, each once: what
|
|
92
|
+
* the Gateway's cloudflare.config.ts declares for local dev.
|
|
93
|
+
*/
|
|
94
|
+
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", "LINKEDIN_CLIENT_ID", "LINKEDIN_CLIENT_SECRET", "FACEBOOK_APP_ID", "FACEBOOK_APP_SECRET", "INSTAGRAM_APP_ID", "INSTAGRAM_APP_SECRET", "THREADS_APP_ID", "THREADS_APP_SECRET", "YOUTUBE_CLIENT_ID", "YOUTUBE_CLIENT_SECRET", "TIKTOK_CLIENT_ID", "TIKTOK_CLIENT_SECRET", "TIKTOK_BUSINESS_CLIENT_ID", "TIKTOK_BUSINESS_CLIENT_SECRET", "REDDIT_CLIENT_ID", "REDDIT_CLIENT_SECRET", "PINTEREST_CLIENT_ID", "PINTEREST_CLIENT_SECRET", "DISCORD_CLIENT_ID", "DISCORD_CLIENT_SECRET", "SLACK_CLIENT_ID", "SLACK_CLIENT_SECRET", "MASTODON_CLIENT_ID", "MASTODON_CLIENT_SECRET", "MASTODON_URL", "KICK_CLIENT_ID", "KICK_CLIENT_SECRET", "TWITCH_CLIENT_ID", "TWITCH_CLIENT_SECRET", "TUMBLR_CLIENT_ID", "TUMBLR_CLIENT_SECRET", "DRIBBBLE_CLIENT_ID", "DRIBBBLE_CLIENT_SECRET", "GOOGLE_WORKSPACE_CLIENT_ID", "GOOGLE_WORKSPACE_CLIENT_SECRET", "MICROSOFT_365_CLIENT_ID", "MICROSOFT_365_CLIENT_SECRET", "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", "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", "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"];
|
|
95
|
+
//# sourceMappingURL=catalogSettings.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogSettings.generated.d.ts","sourceRoot":"","sources":["../../src/cloudflare/catalogSettings.generated.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgGnB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,wBAAwB,uxEA4G3B,CAAC"}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
// Generated from packages/sdk/src/internal/capabilities.ts by
|
|
2
|
+
// src/cloudflare/catalogSettings.test.ts. Do not edit: change the catalog
|
|
3
|
+
// and run `pnpm -C packages/sdk catalog:update`.
|
|
4
|
+
/**
|
|
5
|
+
* The Gateway settings holding the keys of the AI providers and
|
|
6
|
+
* capabilities an app may ask for, with the settings a provider needs
|
|
7
|
+
* besides its key (Workers AI's account, a Basic username held as a
|
|
8
|
+
* setting, a host setting), by manifest id. With no Gateway in
|
|
9
|
+
* development, the SDK reaches them with the developer's own values under
|
|
10
|
+
* the same names, and `everyAppWorker()` declares the ones set locally.
|
|
11
|
+
*/
|
|
12
|
+
export const DEV_GATEWAY_KEYS = {
|
|
13
|
+
providers: {
|
|
14
|
+
openai: ["OPENAI_API_KEY"],
|
|
15
|
+
openrouter: ["OPENROUTER_API_KEY"],
|
|
16
|
+
"workers-ai": ["WORKERS_AI_API_TOKEN", "CLOUDFLARE_ACCOUNT_ID"],
|
|
17
|
+
anthropic: ["ANTHROPIC_API_KEY"],
|
|
18
|
+
gemini: ["GEMINI_API_KEY"],
|
|
19
|
+
mistral: ["MISTRAL_API_KEY"],
|
|
20
|
+
groq: ["GROQ_API_KEY"],
|
|
21
|
+
cohere: ["COHERE_API_KEY"],
|
|
22
|
+
},
|
|
23
|
+
capabilities: {
|
|
24
|
+
dataforseo: ["DATAFORSEO_API_KEY"],
|
|
25
|
+
context: ["CONTEXT_API_KEY"],
|
|
26
|
+
email: [
|
|
27
|
+
"EMAIL_FROM",
|
|
28
|
+
"EMAIL_FROM_NAME",
|
|
29
|
+
"EMAIL_REST_API_TOKEN",
|
|
30
|
+
"CLOUDFLARE_ACCOUNT_ID",
|
|
31
|
+
"RESEND_API_KEY",
|
|
32
|
+
"EMAIL_PROVIDER",
|
|
33
|
+
],
|
|
34
|
+
members: [],
|
|
35
|
+
linkedin: ["LINKEDIN_CLIENT_ID", "LINKEDIN_CLIENT_SECRET"],
|
|
36
|
+
facebook: ["FACEBOOK_APP_ID", "FACEBOOK_APP_SECRET"],
|
|
37
|
+
instagram: ["INSTAGRAM_APP_ID", "INSTAGRAM_APP_SECRET"],
|
|
38
|
+
threads: ["THREADS_APP_ID", "THREADS_APP_SECRET"],
|
|
39
|
+
youtube: ["YOUTUBE_CLIENT_ID", "YOUTUBE_CLIENT_SECRET"],
|
|
40
|
+
tiktok: ["TIKTOK_CLIENT_ID", "TIKTOK_CLIENT_SECRET"],
|
|
41
|
+
"tiktok-business": [
|
|
42
|
+
"TIKTOK_BUSINESS_CLIENT_ID",
|
|
43
|
+
"TIKTOK_BUSINESS_CLIENT_SECRET",
|
|
44
|
+
],
|
|
45
|
+
reddit: ["REDDIT_CLIENT_ID", "REDDIT_CLIENT_SECRET"],
|
|
46
|
+
pinterest: ["PINTEREST_CLIENT_ID", "PINTEREST_CLIENT_SECRET"],
|
|
47
|
+
discord: ["DISCORD_CLIENT_ID", "DISCORD_CLIENT_SECRET"],
|
|
48
|
+
slack: ["SLACK_CLIENT_ID", "SLACK_CLIENT_SECRET"],
|
|
49
|
+
mastodon: ["MASTODON_CLIENT_ID", "MASTODON_CLIENT_SECRET", "MASTODON_URL"],
|
|
50
|
+
kick: ["KICK_CLIENT_ID", "KICK_CLIENT_SECRET"],
|
|
51
|
+
twitch: ["TWITCH_CLIENT_ID", "TWITCH_CLIENT_SECRET"],
|
|
52
|
+
tumblr: ["TUMBLR_CLIENT_ID", "TUMBLR_CLIENT_SECRET"],
|
|
53
|
+
dribbble: ["DRIBBBLE_CLIENT_ID", "DRIBBBLE_CLIENT_SECRET"],
|
|
54
|
+
"google-workspace": [
|
|
55
|
+
"GOOGLE_WORKSPACE_CLIENT_ID",
|
|
56
|
+
"GOOGLE_WORKSPACE_CLIENT_SECRET",
|
|
57
|
+
],
|
|
58
|
+
"microsoft-365": ["MICROSOFT_365_CLIENT_ID", "MICROSOFT_365_CLIENT_SECRET"],
|
|
59
|
+
stripe: ["STRIPE_API_KEY"],
|
|
60
|
+
lemonsqueezy: ["LEMONSQUEEZY_API_KEY"],
|
|
61
|
+
paddle: ["PADDLE_API_KEY"],
|
|
62
|
+
shopify: ["SHOPIFY_API_TOKEN", "SHOPIFY_HOST"],
|
|
63
|
+
plaid: ["PLAID_SECRET"],
|
|
64
|
+
attio: ["ATTIO_API_KEY"],
|
|
65
|
+
hubspot: ["HUBSPOT_API_TOKEN"],
|
|
66
|
+
pipedrive: ["PIPEDRIVE_API_TOKEN"],
|
|
67
|
+
airtable: ["AIRTABLE_API_TOKEN"],
|
|
68
|
+
notion: ["NOTION_API_TOKEN"],
|
|
69
|
+
postmark: ["POSTMARK_API_TOKEN"],
|
|
70
|
+
sendgrid: ["SENDGRID_API_KEY"],
|
|
71
|
+
twilio: ["TWILIO_API_SECRET", "TWILIO_API_KEY"],
|
|
72
|
+
intercom: ["INTERCOM_API_TOKEN"],
|
|
73
|
+
crisp: ["CRISP_API_KEY", "CRISP_API_IDENTIFIER"],
|
|
74
|
+
linear: ["LINEAR_API_KEY"],
|
|
75
|
+
github: ["GITHUB_API_TOKEN"],
|
|
76
|
+
gitlab: ["GITLAB_API_TOKEN"],
|
|
77
|
+
vercel: ["VERCEL_API_TOKEN"],
|
|
78
|
+
cloudflare: ["CLOUDFLARE_PROVIDER_API_TOKEN"],
|
|
79
|
+
posthog: ["POSTHOG_PERSONAL_API_KEY"],
|
|
80
|
+
mixpanel: [
|
|
81
|
+
"MIXPANEL_SERVICE_ACCOUNT_SECRET",
|
|
82
|
+
"MIXPANEL_SERVICE_ACCOUNT_USERNAME",
|
|
83
|
+
],
|
|
84
|
+
segment: ["SEGMENT_WRITE_KEY"],
|
|
85
|
+
supabase: ["SUPABASE_SECRET_KEY", "SUPABASE_HOST"],
|
|
86
|
+
turso: ["TURSO_API_TOKEN"],
|
|
87
|
+
"turso-db": ["TURSO_DB_AUTH_TOKEN", "TURSO_DB_HOST"],
|
|
88
|
+
neon: ["NEON_API_KEY"],
|
|
89
|
+
pinecone: ["PINECONE_API_KEY", "PINECONE_HOST"],
|
|
90
|
+
mapbox: ["MAPBOX_ACCESS_TOKEN"],
|
|
91
|
+
openweather: ["OPENWEATHER_API_KEY"],
|
|
92
|
+
voyage: ["VOYAGE_API_KEY"],
|
|
93
|
+
perplexity: ["PERPLEXITY_API_KEY"],
|
|
94
|
+
jina: ["JINA_API_KEY"],
|
|
95
|
+
replicate: ["REPLICATE_API_TOKEN"],
|
|
96
|
+
huggingface: ["HUGGINGFACE_API_TOKEN"],
|
|
97
|
+
firecrawl: ["FIRECRAWL_API_KEY"],
|
|
98
|
+
exa: ["EXA_API_KEY"],
|
|
99
|
+
tavily: ["TAVILY_API_KEY"],
|
|
100
|
+
serper: ["SERPER_API_KEY"],
|
|
101
|
+
"brave-search": ["BRAVE_SEARCH_API_KEY"],
|
|
102
|
+
apify: ["APIFY_API_TOKEN"],
|
|
103
|
+
deepgram: ["DEEPGRAM_API_KEY"],
|
|
104
|
+
elevenlabs: ["ELEVENLABS_API_KEY"],
|
|
105
|
+
assemblyai: ["ASSEMBLYAI_API_KEY"],
|
|
106
|
+
newsapi: ["NEWSAPI_API_KEY"],
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Every setting a catalog entry reads, in catalog order, each once: what
|
|
111
|
+
* the Gateway's cloudflare.config.ts declares for local dev.
|
|
112
|
+
*/
|
|
113
|
+
export const CATALOG_GATEWAY_SETTINGS = [
|
|
114
|
+
"OPENAI_API_KEY",
|
|
115
|
+
"OPENROUTER_API_KEY",
|
|
116
|
+
"WORKERS_AI_API_TOKEN",
|
|
117
|
+
"CLOUDFLARE_ACCOUNT_ID",
|
|
118
|
+
"AI_GATEWAY_API_KEY",
|
|
119
|
+
"AI_GATEWAY_ID",
|
|
120
|
+
"DATAFORSEO_API_KEY",
|
|
121
|
+
"CONTEXT_API_KEY",
|
|
122
|
+
"EMAIL_FROM",
|
|
123
|
+
"EMAIL_FROM_NAME",
|
|
124
|
+
"EMAIL_REST_API_TOKEN",
|
|
125
|
+
"RESEND_API_KEY",
|
|
126
|
+
"EMAIL_PROVIDER",
|
|
127
|
+
"LINKEDIN_CLIENT_ID",
|
|
128
|
+
"LINKEDIN_CLIENT_SECRET",
|
|
129
|
+
"FACEBOOK_APP_ID",
|
|
130
|
+
"FACEBOOK_APP_SECRET",
|
|
131
|
+
"INSTAGRAM_APP_ID",
|
|
132
|
+
"INSTAGRAM_APP_SECRET",
|
|
133
|
+
"THREADS_APP_ID",
|
|
134
|
+
"THREADS_APP_SECRET",
|
|
135
|
+
"YOUTUBE_CLIENT_ID",
|
|
136
|
+
"YOUTUBE_CLIENT_SECRET",
|
|
137
|
+
"TIKTOK_CLIENT_ID",
|
|
138
|
+
"TIKTOK_CLIENT_SECRET",
|
|
139
|
+
"TIKTOK_BUSINESS_CLIENT_ID",
|
|
140
|
+
"TIKTOK_BUSINESS_CLIENT_SECRET",
|
|
141
|
+
"REDDIT_CLIENT_ID",
|
|
142
|
+
"REDDIT_CLIENT_SECRET",
|
|
143
|
+
"PINTEREST_CLIENT_ID",
|
|
144
|
+
"PINTEREST_CLIENT_SECRET",
|
|
145
|
+
"DISCORD_CLIENT_ID",
|
|
146
|
+
"DISCORD_CLIENT_SECRET",
|
|
147
|
+
"SLACK_CLIENT_ID",
|
|
148
|
+
"SLACK_CLIENT_SECRET",
|
|
149
|
+
"MASTODON_CLIENT_ID",
|
|
150
|
+
"MASTODON_CLIENT_SECRET",
|
|
151
|
+
"MASTODON_URL",
|
|
152
|
+
"KICK_CLIENT_ID",
|
|
153
|
+
"KICK_CLIENT_SECRET",
|
|
154
|
+
"TWITCH_CLIENT_ID",
|
|
155
|
+
"TWITCH_CLIENT_SECRET",
|
|
156
|
+
"TUMBLR_CLIENT_ID",
|
|
157
|
+
"TUMBLR_CLIENT_SECRET",
|
|
158
|
+
"DRIBBBLE_CLIENT_ID",
|
|
159
|
+
"DRIBBBLE_CLIENT_SECRET",
|
|
160
|
+
"GOOGLE_WORKSPACE_CLIENT_ID",
|
|
161
|
+
"GOOGLE_WORKSPACE_CLIENT_SECRET",
|
|
162
|
+
"MICROSOFT_365_CLIENT_ID",
|
|
163
|
+
"MICROSOFT_365_CLIENT_SECRET",
|
|
164
|
+
"STRIPE_API_KEY",
|
|
165
|
+
"LEMONSQUEEZY_API_KEY",
|
|
166
|
+
"PADDLE_API_KEY",
|
|
167
|
+
"SHOPIFY_API_TOKEN",
|
|
168
|
+
"SHOPIFY_HOST",
|
|
169
|
+
"PLAID_SECRET",
|
|
170
|
+
"ATTIO_API_KEY",
|
|
171
|
+
"HUBSPOT_API_TOKEN",
|
|
172
|
+
"PIPEDRIVE_API_TOKEN",
|
|
173
|
+
"AIRTABLE_API_TOKEN",
|
|
174
|
+
"NOTION_API_TOKEN",
|
|
175
|
+
"POSTMARK_API_TOKEN",
|
|
176
|
+
"SENDGRID_API_KEY",
|
|
177
|
+
"TWILIO_API_SECRET",
|
|
178
|
+
"TWILIO_API_KEY",
|
|
179
|
+
"INTERCOM_API_TOKEN",
|
|
180
|
+
"CRISP_API_KEY",
|
|
181
|
+
"CRISP_API_IDENTIFIER",
|
|
182
|
+
"LINEAR_API_KEY",
|
|
183
|
+
"GITHUB_API_TOKEN",
|
|
184
|
+
"GITLAB_API_TOKEN",
|
|
185
|
+
"VERCEL_API_TOKEN",
|
|
186
|
+
"CLOUDFLARE_PROVIDER_API_TOKEN",
|
|
187
|
+
"POSTHOG_PERSONAL_API_KEY",
|
|
188
|
+
"MIXPANEL_SERVICE_ACCOUNT_SECRET",
|
|
189
|
+
"MIXPANEL_SERVICE_ACCOUNT_USERNAME",
|
|
190
|
+
"SEGMENT_WRITE_KEY",
|
|
191
|
+
"SUPABASE_SECRET_KEY",
|
|
192
|
+
"SUPABASE_HOST",
|
|
193
|
+
"TURSO_API_TOKEN",
|
|
194
|
+
"TURSO_DB_AUTH_TOKEN",
|
|
195
|
+
"TURSO_DB_HOST",
|
|
196
|
+
"NEON_API_KEY",
|
|
197
|
+
"PINECONE_API_KEY",
|
|
198
|
+
"PINECONE_HOST",
|
|
199
|
+
"MAPBOX_ACCESS_TOKEN",
|
|
200
|
+
"OPENWEATHER_API_KEY",
|
|
201
|
+
"ANTHROPIC_API_KEY",
|
|
202
|
+
"GEMINI_API_KEY",
|
|
203
|
+
"MISTRAL_API_KEY",
|
|
204
|
+
"GROQ_API_KEY",
|
|
205
|
+
"COHERE_API_KEY",
|
|
206
|
+
"VOYAGE_API_KEY",
|
|
207
|
+
"PERPLEXITY_API_KEY",
|
|
208
|
+
"JINA_API_KEY",
|
|
209
|
+
"REPLICATE_API_TOKEN",
|
|
210
|
+
"HUGGINGFACE_API_TOKEN",
|
|
211
|
+
"FIRECRAWL_API_KEY",
|
|
212
|
+
"EXA_API_KEY",
|
|
213
|
+
"TAVILY_API_KEY",
|
|
214
|
+
"SERPER_API_KEY",
|
|
215
|
+
"BRAVE_SEARCH_API_KEY",
|
|
216
|
+
"APIFY_API_TOKEN",
|
|
217
|
+
"DEEPGRAM_API_KEY",
|
|
218
|
+
"ELEVENLABS_API_KEY",
|
|
219
|
+
"ASSEMBLYAI_API_KEY",
|
|
220
|
+
"NEWSAPI_API_KEY",
|
|
221
|
+
];
|
|
@@ -17,6 +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 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 EveryAppWorkerConfig, type EveryAppWorkerManifest, type EveryAppWorkerOptions, type EveryAppWorkerReference, type GatewayBinding, type HyperdriveBinding, type ImagesBinding, type JsonBinding, type KvBinding, type SecretBinding, 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 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
|
+
export { CATALOG_GATEWAY_SETTINGS } from "./catalogSettings.generated.js";
|
|
22
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,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,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,aAAa,EAClB,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"}
|
|
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"}
|
package/dist/cloudflare/index.js
CHANGED
|
@@ -19,3 +19,6 @@
|
|
|
19
19
|
*/
|
|
20
20
|
export { EVERYAPP_OBSERVABILITY, everyAppAuxiliaryWorker, everyAppWorker, helperWorkerName, localD1Id, localD1Path, workflowNameFor, } from "./worker.js";
|
|
21
21
|
export { aiGatewayUrl, BUILD_SENTINEL, resourceSentinel, sentinelDeployTarget, } from "./sentinel.js";
|
|
22
|
+
// Every setting a provider of the built-in catalog reads, generated from
|
|
23
|
+
// it: the Gateway's cloudflare.config.ts declares them for local dev.
|
|
24
|
+
export { CATALOG_GATEWAY_SETTINGS } from "./catalogSettings.generated.js";
|
|
@@ -26,10 +26,8 @@ export declare const BUILD_SENTINEL: Readonly<{
|
|
|
26
26
|
}>;
|
|
27
27
|
/**
|
|
28
28
|
* A manifest binding's placeholder: a D1 database's name and id, an R2
|
|
29
|
-
* bucket's or Vectorize index's name, a KV namespace's
|
|
30
|
-
* config's id
|
|
31
|
-
* rewrites each by its binding name; the value only has to be recognizable.
|
|
32
|
-
* bucket's name, a KV namespace's, Hyperdrive config's or AI Gateway's id.
|
|
29
|
+
* bucket's, queue's or Vectorize index's name, a KV namespace's, Hyperdrive
|
|
30
|
+
* config's or AI Gateway's id, a Secrets Store secret's store id and name.
|
|
33
31
|
* The installer rewrites each by its binding name; the value only has to
|
|
34
32
|
* be recognizable.
|
|
35
33
|
*/
|
|
@@ -43,12 +41,18 @@ interface SentinelManifest {
|
|
|
43
41
|
hyperdrive?: readonly {
|
|
44
42
|
readonly name: string;
|
|
45
43
|
}[];
|
|
44
|
+
queues?: readonly {
|
|
45
|
+
readonly name: string;
|
|
46
|
+
}[];
|
|
46
47
|
vectorize?: readonly {
|
|
47
48
|
readonly name: string;
|
|
48
49
|
}[];
|
|
49
50
|
aiGateway?: readonly {
|
|
50
51
|
readonly name: string;
|
|
51
52
|
}[];
|
|
53
|
+
secretsStore?: readonly {
|
|
54
|
+
readonly name: string;
|
|
55
|
+
}[];
|
|
52
56
|
};
|
|
53
57
|
}
|
|
54
58
|
/** Where an AI Gateway takes requests: `https://gateway.ai.cloudflare.com/v1/<account>/<id>`. */
|
|
@@ -93,12 +97,25 @@ export interface EveryAppDeployTarget {
|
|
|
93
97
|
r2?: Record<string, {
|
|
94
98
|
name: string;
|
|
95
99
|
}>;
|
|
100
|
+
/** Queues by binding: each one's name (which its bindings and triggers use) and id. */
|
|
101
|
+
queues?: Record<string, {
|
|
102
|
+
name: string;
|
|
103
|
+
id: string;
|
|
104
|
+
}>;
|
|
96
105
|
/** Vectorize indexes by binding, under the names the deploy provisioned. */
|
|
97
106
|
vectorize?: Record<string, {
|
|
98
107
|
name: string;
|
|
99
108
|
}>;
|
|
100
109
|
/** AI Gateways by binding: each binding's whole value. */
|
|
101
110
|
aiGateway?: Record<string, AiGatewayValue>;
|
|
111
|
+
/**
|
|
112
|
+
* Secrets Store secrets by binding: the account's store and the
|
|
113
|
+
* secret the deploy made in it.
|
|
114
|
+
*/
|
|
115
|
+
secretsStore?: Record<string, {
|
|
116
|
+
storeId: string;
|
|
117
|
+
secretName: string;
|
|
118
|
+
}>;
|
|
102
119
|
};
|
|
103
120
|
}
|
|
104
121
|
/** The target every production build is made for: placeholders throughout. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentinel.d.ts","sourceRoot":"","sources":["../../src/cloudflare/sentinel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,cAAc;;;IAKzB;;;;OAIG;;IAEH,qDAAqD;;;EAIrD,CAAC;AAEH
|
|
1
|
+
{"version":3,"file":"sentinel.d.ts","sourceRoot":"","sources":["../../src/cloudflare/sentinel.ts"],"names":[],"mappings":"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"}
|
|
@@ -28,10 +28,8 @@ export const BUILD_SENTINEL = Object.freeze({
|
|
|
28
28
|
});
|
|
29
29
|
/**
|
|
30
30
|
* A manifest binding's placeholder: a D1 database's name and id, an R2
|
|
31
|
-
* bucket's or Vectorize index's name, a KV namespace's
|
|
32
|
-
* config's id
|
|
33
|
-
* rewrites each by its binding name; the value only has to be recognizable.
|
|
34
|
-
* bucket's name, a KV namespace's, Hyperdrive config's or AI Gateway's id.
|
|
31
|
+
* bucket's, queue's or Vectorize index's name, a KV namespace's, Hyperdrive
|
|
32
|
+
* config's or AI Gateway's id, a Secrets Store secret's store id and name.
|
|
35
33
|
* The installer rewrites each by its binding name; the value only has to
|
|
36
34
|
* be recognizable.
|
|
37
35
|
*/
|
|
@@ -60,12 +58,18 @@ export function sentinelDeployTarget(manifest) {
|
|
|
60
58
|
kv: byBinding(resources?.kv, (id) => ({ id })),
|
|
61
59
|
hyperdrive: byBinding(resources?.hyperdrive?.map((config) => config.name), (id) => ({ id })),
|
|
62
60
|
r2: byBinding(resources?.r2, (name) => ({ name })),
|
|
61
|
+
...(resources?.queues?.length
|
|
62
|
+
? {
|
|
63
|
+
queues: byBinding(resources.queues.map((queue) => queue.name), (name) => ({ name, id: name })),
|
|
64
|
+
}
|
|
65
|
+
: {}),
|
|
63
66
|
vectorize: byBinding(resources?.vectorize?.map((index) => index.name), (name) => ({ name })),
|
|
64
67
|
aiGateway: byBinding(resources?.aiGateway?.map((gateway) => gateway.name), (id) => ({
|
|
65
68
|
id,
|
|
66
69
|
accountId: BUILD_SENTINEL.accountId,
|
|
67
70
|
url: aiGatewayUrl(BUILD_SENTINEL.accountId, id),
|
|
68
71
|
})),
|
|
72
|
+
secretsStore: byBinding(resources?.secretsStore?.map((secret) => secret.name), (placeholder) => ({ storeId: placeholder, secretName: placeholder })),
|
|
69
73
|
},
|
|
70
74
|
};
|
|
71
75
|
}
|