alepha 0.20.6 → 0.20.7
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/AGENTS.md +0 -1
- package/CLAUDE.md +0 -1
- package/assets/agents-template.md +0 -1
- package/dist/api/audits/index.browser.js +1 -0
- package/dist/api/audits/index.browser.js.map +1 -1
- package/dist/api/audits/index.d.ts +370 -355
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js +1 -0
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.browser.js +1 -0
- package/dist/api/files/index.browser.js.map +1 -1
- package/dist/api/files/index.d.ts +179 -170
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/files/index.js +1 -0
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.browser.js +7 -0
- package/dist/api/jobs/index.browser.js.map +1 -1
- package/dist/api/jobs/index.d.ts +271 -262
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +21 -3
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/keys/index.d.ts +198 -192
- package/dist/api/keys/index.d.ts.map +1 -1
- package/dist/api/keys/index.js +1 -0
- package/dist/api/keys/index.js.map +1 -1
- package/dist/api/notifications/index.d.ts +246 -245
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/organizations/index.d.ts +100 -97
- package/dist/api/organizations/index.d.ts.map +1 -1
- package/dist/api/parameters/index.d.ts +323 -320
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/payments/index.d.ts +431 -376
- package/dist/api/payments/index.d.ts.map +1 -1
- package/dist/api/payments/index.js +202 -87
- package/dist/api/payments/index.js.map +1 -1
- package/dist/api/subscriptions/index.d.ts +1695 -0
- package/dist/api/subscriptions/index.d.ts.map +1 -0
- package/dist/api/subscriptions/index.js +1919 -0
- package/dist/api/subscriptions/index.js.map +1 -0
- package/dist/api/users/index.d.ts +863 -847
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/verifications/index.d.ts +126 -125
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/bucket/index.d.ts +3 -2
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/cache/core/index.d.ts +114 -4
- package/dist/cache/core/index.d.ts.map +1 -1
- package/dist/cache/core/index.js +181 -15
- package/dist/cache/core/index.js.map +1 -1
- package/dist/cache/core/index.workerd.js +181 -15
- package/dist/cache/core/index.workerd.js.map +1 -1
- package/dist/cache/database/index.d.ts +20 -19
- package/dist/cache/database/index.d.ts.map +1 -1
- package/dist/cache/redis/index.d.ts +3 -2
- package/dist/cache/redis/index.d.ts.map +1 -1
- package/dist/cli/core/index.d.ts +113 -129
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +75 -7
- package/dist/cli/core/index.js.map +1 -1
- package/dist/cli/devtools/index.d.ts +3 -2
- package/dist/cli/devtools/index.d.ts.map +1 -1
- package/dist/cli/platform/index.d.ts +346 -290
- package/dist/cli/platform/index.d.ts.map +1 -1
- package/dist/cli/platform/index.js +105 -6
- package/dist/cli/platform/index.js.map +1 -1
- package/dist/cli/vendor/index.d.ts +12 -11
- package/dist/cli/vendor/index.d.ts.map +1 -1
- package/dist/command/index.d.ts +5 -4
- package/dist/command/index.d.ts.map +1 -1
- package/dist/core/index.browser.js +1 -1
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +119 -118
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +1 -1
- package/dist/core/index.native.js.map +1 -1
- package/dist/core/index.workerd.js +1 -1
- package/dist/core/index.workerd.js.map +1 -1
- package/dist/crypto/index.d.ts +3 -2
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/email/core/index.d.ts +3 -2
- package/dist/email/core/index.d.ts.map +1 -1
- package/dist/email/smtp/index.d.ts +7 -6
- package/dist/email/smtp/index.d.ts.map +1 -1
- package/dist/lock/core/index.d.ts +5 -4
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/logger/index.d.ts +10 -9
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/mcp/index.d.ts +9 -8
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/core/index.browser.js +9 -3
- package/dist/orm/core/index.browser.js.map +1 -1
- package/dist/orm/core/index.bun.js +31 -10
- package/dist/orm/core/index.bun.js.map +1 -1
- package/dist/orm/core/index.d.ts +33 -14
- package/dist/orm/core/index.d.ts.map +1 -1
- package/dist/orm/core/index.js +31 -10
- package/dist/orm/core/index.js.map +1 -1
- package/dist/orm/postgres/index.d.ts +6 -5
- package/dist/orm/postgres/index.d.ts.map +1 -1
- package/dist/queue/core/index.d.ts +5 -4
- package/dist/queue/core/index.d.ts.map +1 -1
- package/dist/queue/redis/index.d.ts +3 -2
- package/dist/queue/redis/index.d.ts.map +1 -1
- package/dist/react/form/index.d.ts +5 -0
- package/dist/react/form/index.d.ts.map +1 -1
- package/dist/react/form/index.js +6 -4
- package/dist/react/form/index.js.map +1 -1
- package/dist/react/i18n/index.d.ts +2 -1
- package/dist/react/i18n/index.d.ts.map +1 -1
- package/dist/react/router/index.d.ts +206 -205
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/ui/index.d.ts +11 -11
- package/dist/react/ui/index.d.ts.map +1 -1
- package/dist/scheduler/index.d.ts +3 -2
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/security/index.browser.js +29 -1
- package/dist/security/index.browser.js.map +1 -1
- package/dist/security/index.d.ts +82 -35
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +56 -3
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +163 -158
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +16 -4
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/core/index.d.ts +35 -34
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/cors/index.d.ts +7 -6
- package/dist/server/cors/index.d.ts.map +1 -1
- package/dist/server/health/index.d.ts +16 -15
- package/dist/server/health/index.d.ts.map +1 -1
- package/dist/server/links/index.d.ts +51 -50
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.d.ts +6 -5
- package/dist/server/rate-limit/index.d.ts.map +1 -1
- package/dist/server/swagger/index.d.ts +2 -1
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/topic/redis/index.d.ts +3 -2
- package/dist/topic/redis/index.d.ts.map +1 -1
- package/package.json +16 -32
- package/src/api/audits/entities/audits.ts +1 -0
- package/src/api/files/entities/files.ts +1 -0
- package/src/api/jobs/__tests__/$job.spec.ts +92 -40
- package/src/api/jobs/entities/jobExecutionEntity.ts +1 -0
- package/src/api/jobs/providers/JobProvider.ts +20 -5
- package/src/api/jobs/schemas/jobConfigAtom.ts +5 -0
- package/src/api/keys/entities/apiKeyEntity.ts +1 -0
- package/src/api/payments/controllers/MockCheckoutController.ts +146 -0
- package/src/api/payments/index.ts +3 -0
- package/src/api/payments/providers/MemoryPaymentProvider.ts +9 -4
- package/src/api/payments/providers/PaymentProvider.ts +25 -9
- package/src/api/payments/services/PaymentService.ts +3 -0
- package/src/api/subscriptions/__tests__/BillingService.spec.ts +218 -0
- package/src/api/subscriptions/__tests__/SubscriptionService.spec.ts +278 -0
- package/src/api/subscriptions/controllers/AdminSubscriptionController.ts +212 -0
- package/src/api/subscriptions/controllers/SubscriptionController.ts +189 -0
- package/src/api/subscriptions/entities/subscriptionEvents.ts +54 -0
- package/src/api/subscriptions/entities/subscriptions.ts +68 -0
- package/src/api/subscriptions/index.ts +133 -0
- package/src/api/subscriptions/jobs/SubscriptionJobs.ts +382 -0
- package/src/api/subscriptions/middleware/$requireLimit.ts +50 -0
- package/src/api/subscriptions/middleware/$requirePlan.ts +49 -0
- package/src/api/subscriptions/notifications/SubscriptionNotifications.ts +110 -0
- package/src/api/subscriptions/schemas/cancelSubscriptionSchema.ts +8 -0
- package/src/api/subscriptions/schemas/changePlanSchema.ts +9 -0
- package/src/api/subscriptions/schemas/createSubscriptionSchema.ts +11 -0
- package/src/api/subscriptions/schemas/entitlementsSchema.ts +21 -0
- package/src/api/subscriptions/schemas/mrrSchema.ts +13 -0
- package/src/api/subscriptions/schemas/planDefinitionSchema.ts +71 -0
- package/src/api/subscriptions/schemas/planResourceSchema.ts +25 -0
- package/src/api/subscriptions/schemas/subscriptionEventResourceSchema.ts +8 -0
- package/src/api/subscriptions/schemas/subscriptionQuerySchema.ts +19 -0
- package/src/api/subscriptions/schemas/subscriptionResourceSchema.ts +6 -0
- package/src/api/subscriptions/schemas/subscriptionSettingsSchema.ts +32 -0
- package/src/api/subscriptions/schemas/subscriptionStatsSchema.ts +23 -0
- package/src/api/subscriptions/services/BillingService.ts +437 -0
- package/src/api/subscriptions/services/SubscriptionConfig.ts +56 -0
- package/src/api/subscriptions/services/SubscriptionService.ts +867 -0
- package/src/api/subscriptions/services/UsageService.ts +118 -0
- package/src/cache/core/__tests__/$cache.memory.spec.ts +450 -0
- package/src/cache/core/__tests__/$cache.swr.spec.ts +394 -0
- package/src/cache/core/index.ts +16 -0
- package/src/cache/core/primitives/$cache.ts +347 -21
- package/src/cli/core/tasks/BuildCloudflareTask.ts +16 -0
- package/src/cli/core/templates/agentMd.ts +39 -4
- package/src/cli/core/templates/biomeJson.ts +25 -1
- package/src/cli/core/templates/saasAdminLayoutTsx.ts +2 -2
- package/src/cli/platform/__tests__/CloudflareAdapter.spec.ts +117 -0
- package/src/cli/platform/adapters/CloudflareAdapter.ts +104 -7
- package/src/cli/platform/atoms/platformOptions.ts +13 -0
- package/src/cli/platform/schemas/platform.ts +1 -0
- package/src/cli/platform/services/CloudflareApi.ts +61 -0
- package/src/cli/platform/services/PlatformOrchestrator.ts +9 -4
- package/src/core/__tests__/$module.spec.ts +2 -2
- package/src/core/primitives/$module.ts +4 -4
- package/src/mcp/providers/McpServerProvider.ts +1 -1
- package/src/orm/core/providers/DatabaseTypeProvider.ts +9 -3
- package/src/orm/core/providers/drivers/DatabaseProvider.ts +1 -1
- package/src/orm/core/schemas/insertSchema.ts +10 -2
- package/src/orm/core/services/Repository.ts +27 -7
- package/src/react/form/hooks/useFormState.ts +8 -1
- package/src/react/form/index.ts +10 -1
- package/src/react/form/services/FormModel.ts +9 -3
- package/src/security/atoms/currentTenantAtom.ts +34 -0
- package/src/security/index.browser.ts +1 -0
- package/src/security/index.ts +12 -1
- package/src/security/primitives/$issuer.ts +17 -1
- package/src/security/providers/SecurityProvider.ts +37 -0
- package/src/server/auth/__tests__/validateRedirectUri.spec.ts +78 -0
- package/src/server/auth/providers/ServerAuthProvider.ts +21 -5
- package/tsconfig.base.json +2 -1
- package/dist/react/websocket/index.d.ts +0 -117
- package/dist/react/websocket/index.d.ts.map +0 -1
- package/dist/react/websocket/index.js +0 -108
- package/dist/react/websocket/index.js.map +0 -1
- package/dist/websocket/index.browser.js +0 -848
- package/dist/websocket/index.browser.js.map +0 -1
- package/dist/websocket/index.d.ts +0 -876
- package/dist/websocket/index.d.ts.map +0 -1
- package/dist/websocket/index.js +0 -1185
- package/dist/websocket/index.js.map +0 -1
- package/src/react/websocket/hooks/useRoom.tsx +0 -251
- package/src/react/websocket/index.ts +0 -7
- package/src/websocket/__tests__/$channel.spec.ts +0 -30
- package/src/websocket/__tests__/$websocket-new.spec.ts +0 -195
- package/src/websocket/__tests__/RoomManager.spec.ts +0 -146
- package/src/websocket/__tests__/websocket-integration.spec.ts +0 -951
- package/src/websocket/errors/WebSocketError.ts +0 -34
- package/src/websocket/index.browser.ts +0 -25
- package/src/websocket/index.shared.ts +0 -8
- package/src/websocket/index.ts +0 -85
- package/src/websocket/interfaces/WebSocketInterfaces.ts +0 -252
- package/src/websocket/primitives/$channel.ts +0 -131
- package/src/websocket/primitives/$websocket.ts +0 -107
- package/src/websocket/providers/NodeWebSocketServerProvider.ts +0 -617
- package/src/websocket/providers/WebSocketServerProvider.ts +0 -56
- package/src/websocket/services/RoomManager.ts +0 -160
- package/src/websocket/services/WebSocketClient.ts +0 -642
- package/src/websocket/services/WebSocketTopicService.ts +0 -108
|
@@ -7,6 +7,7 @@ import * as _$alepha_logger0 from "alepha/logger";
|
|
|
7
7
|
import { ConsoleColorProvider } from "alepha/logger";
|
|
8
8
|
import { FileSystemProvider, ShellProvider } from "alepha/system";
|
|
9
9
|
import { DateTimeProvider } from "alepha/datetime";
|
|
10
|
+
import * as _$typebox from "typebox";
|
|
10
11
|
|
|
11
12
|
//#region ../../src/cli/platform/atoms/platformOptions.d.ts
|
|
12
13
|
/**
|
|
@@ -15,50 +16,62 @@ import { DateTimeProvider } from "alepha/datetime";
|
|
|
15
16
|
* Filled from the `platform` section of `alepha.config.ts`.
|
|
16
17
|
* Read by `PlatformCommand` to resolve environments and adapters.
|
|
17
18
|
*/
|
|
18
|
-
declare const platformOptions: _$alepha.Atom<_$
|
|
19
|
+
declare const platformOptions: _$alepha.Atom<_$typebox.TOptional<_$typebox.TObject<{
|
|
19
20
|
/**
|
|
20
21
|
* Project name override. Defaults to root package.json "name".
|
|
21
22
|
*/
|
|
22
|
-
name: _$
|
|
23
|
+
name: _$typebox.TOptional<_$typebox.TString>;
|
|
23
24
|
/**
|
|
24
25
|
* Monorepo app paths relative to root. Omit for standalone apps.
|
|
25
26
|
*/
|
|
26
|
-
apps: _$
|
|
27
|
+
apps: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
|
|
27
28
|
/**
|
|
28
29
|
* Default environment when --env is omitted.
|
|
29
30
|
*
|
|
30
31
|
* @default "production"
|
|
31
32
|
*/
|
|
32
|
-
default: _$
|
|
33
|
+
default: _$typebox.TOptional<_$typebox.TString>;
|
|
33
34
|
/**
|
|
34
35
|
* Secret store configuration for syncing .env secrets
|
|
35
36
|
* to external providers (e.g. GitHub Actions environments).
|
|
36
37
|
*/
|
|
37
|
-
secrets: _$
|
|
38
|
+
secrets: _$typebox.TOptional<_$typebox.TObject<{
|
|
38
39
|
/**
|
|
39
40
|
* Secret store backend.
|
|
40
41
|
*/
|
|
41
|
-
store: _$
|
|
42
|
+
store: _$typebox.TUnsafe<"github">;
|
|
42
43
|
/**
|
|
43
44
|
* Pattern for resolving environment names in the store.
|
|
44
45
|
* Placeholders: {project}, {env}.
|
|
45
46
|
*
|
|
46
47
|
* @default "{project}-{env}"
|
|
47
48
|
*/
|
|
48
|
-
environmentPattern: _$
|
|
49
|
+
environmentPattern: _$typebox.TOptional<_$typebox.TString>;
|
|
49
50
|
}>>;
|
|
50
51
|
/**
|
|
51
52
|
* Named environments with their adapter and configuration.
|
|
52
53
|
*/
|
|
53
|
-
environments: _$
|
|
54
|
-
adapter: _$
|
|
54
|
+
environments: _$typebox.TRecord<"^.*$", _$typebox.TObject<{
|
|
55
|
+
adapter: _$typebox.TUnsafe<"cloudflare" | "vercel">;
|
|
55
56
|
/**
|
|
56
57
|
* Custom domain for the deployed worker (e.g. "api.example.com").
|
|
57
58
|
*
|
|
58
59
|
* On Cloudflare this is attached as a custom-domain route.
|
|
59
60
|
* Omit to use the adapter's default `*.workers.dev` / preview URL.
|
|
61
|
+
*
|
|
62
|
+
* Wildcards are supported for multi-tenant SaaS apps:
|
|
63
|
+
* `"*.club.alepha.dev"` routes every subdomain to the worker.
|
|
64
|
+
* Wildcard patterns require `zone` to be set, and the wildcard DNS
|
|
65
|
+
* record must already exist (proxied) in the Cloudflare zone.
|
|
66
|
+
*/
|
|
67
|
+
domain: _$typebox.TOptional<_$typebox.TString>;
|
|
68
|
+
/**
|
|
69
|
+
* Cloudflare zone name (e.g. "alepha.dev") that owns `domain`.
|
|
70
|
+
*
|
|
71
|
+
* Required when `domain` contains a wildcard (`*`). Ignored for
|
|
72
|
+
* plain custom domains, which Cloudflare resolves automatically.
|
|
60
73
|
*/
|
|
61
|
-
|
|
74
|
+
zone: _$typebox.TOptional<_$typebox.TString>;
|
|
62
75
|
/**
|
|
63
76
|
* Cloudflare data jurisdiction for R2 buckets and D1 databases.
|
|
64
77
|
* - "eu": data stays within the EU
|
|
@@ -66,7 +79,7 @@ declare const platformOptions: _$alepha.Atom<_$alepha.TOptional<_$alepha.TObject
|
|
|
66
79
|
*
|
|
67
80
|
* Omit for the default (global) jurisdiction.
|
|
68
81
|
*/
|
|
69
|
-
jurisdiction: _$
|
|
82
|
+
jurisdiction: _$typebox.TOptional<_$typebox.TUnsafe<"eu" | "fedramp">>;
|
|
70
83
|
/**
|
|
71
84
|
* Cloudflare account ID to deploy into.
|
|
72
85
|
*
|
|
@@ -74,7 +87,7 @@ declare const platformOptions: _$alepha.Atom<_$alepha.TOptional<_$alepha.TObject
|
|
|
74
87
|
* token's account when the token is scoped to exactly one.
|
|
75
88
|
* Required when the token has access to multiple accounts.
|
|
76
89
|
*/
|
|
77
|
-
accountId: _$
|
|
90
|
+
accountId: _$typebox.TOptional<_$typebox.TString>;
|
|
78
91
|
}>>;
|
|
79
92
|
}>>, "alepha.cli.platform.options">;
|
|
80
93
|
/**
|
|
@@ -87,6 +100,7 @@ type PlatformOptions = Static<typeof platformOptions.schema>;
|
|
|
87
100
|
interface EnvironmentConfig {
|
|
88
101
|
adapter: "cloudflare" | "vercel";
|
|
89
102
|
domain?: string;
|
|
103
|
+
zone?: string;
|
|
90
104
|
vars?: Record<string, string>;
|
|
91
105
|
jurisdiction?: "eu" | "fedramp";
|
|
92
106
|
accountId?: string;
|
|
@@ -118,146 +132,146 @@ declare class PlatformCacheProvider {
|
|
|
118
132
|
}
|
|
119
133
|
//#endregion
|
|
120
134
|
//#region ../../src/cli/platform/schemas/cloudflare.d.ts
|
|
121
|
-
declare const cloudflareAccountSchema: _$
|
|
122
|
-
id: _$
|
|
123
|
-
name: _$
|
|
135
|
+
declare const cloudflareAccountSchema: _$typebox.TObject<{
|
|
136
|
+
id: _$typebox.TString;
|
|
137
|
+
name: _$typebox.TString;
|
|
124
138
|
}>;
|
|
125
139
|
type CloudflareAccount = Static<typeof cloudflareAccountSchema>;
|
|
126
|
-
declare const cloudflareD1Schema: _$
|
|
127
|
-
uuid: _$
|
|
128
|
-
name: _$
|
|
140
|
+
declare const cloudflareD1Schema: _$typebox.TObject<{
|
|
141
|
+
uuid: _$typebox.TString;
|
|
142
|
+
name: _$typebox.TString;
|
|
129
143
|
}>;
|
|
130
144
|
type CloudflareD1 = Static<typeof cloudflareD1Schema>;
|
|
131
|
-
declare const cloudflareKVSchema: _$
|
|
132
|
-
id: _$
|
|
133
|
-
title: _$
|
|
145
|
+
declare const cloudflareKVSchema: _$typebox.TObject<{
|
|
146
|
+
id: _$typebox.TString;
|
|
147
|
+
title: _$typebox.TString;
|
|
134
148
|
}>;
|
|
135
149
|
type CloudflareKV = Static<typeof cloudflareKVSchema>;
|
|
136
|
-
declare const cloudflareR2Schema: _$
|
|
137
|
-
name: _$
|
|
138
|
-
creation_date: _$
|
|
150
|
+
declare const cloudflareR2Schema: _$typebox.TObject<{
|
|
151
|
+
name: _$typebox.TString;
|
|
152
|
+
creation_date: _$typebox.TOptional<_$typebox.TString>;
|
|
139
153
|
}>;
|
|
140
154
|
type CloudflareR2 = Static<typeof cloudflareR2Schema>;
|
|
141
|
-
declare const cloudflareR2ListSchema: _$
|
|
142
|
-
buckets: _$
|
|
143
|
-
name: _$
|
|
144
|
-
creation_date: _$
|
|
155
|
+
declare const cloudflareR2ListSchema: _$typebox.TObject<{
|
|
156
|
+
buckets: _$typebox.TArray<_$typebox.TObject<{
|
|
157
|
+
name: _$typebox.TString;
|
|
158
|
+
creation_date: _$typebox.TOptional<_$typebox.TString>;
|
|
145
159
|
}>>;
|
|
146
160
|
}>;
|
|
147
|
-
declare const cloudflareQueueSchema: _$
|
|
148
|
-
queue_id: _$
|
|
149
|
-
queue_name: _$
|
|
161
|
+
declare const cloudflareQueueSchema: _$typebox.TObject<{
|
|
162
|
+
queue_id: _$typebox.TString;
|
|
163
|
+
queue_name: _$typebox.TString;
|
|
150
164
|
}>;
|
|
151
165
|
type CloudflareQueue = Static<typeof cloudflareQueueSchema>;
|
|
152
|
-
declare const cloudflareQueueConsumerSchema: _$
|
|
153
|
-
consumer_id: _$
|
|
154
|
-
service: _$
|
|
155
|
-
environment: _$
|
|
166
|
+
declare const cloudflareQueueConsumerSchema: _$typebox.TObject<{
|
|
167
|
+
consumer_id: _$typebox.TString;
|
|
168
|
+
service: _$typebox.TString;
|
|
169
|
+
environment: _$typebox.TOptional<_$typebox.TString>;
|
|
156
170
|
}>;
|
|
157
171
|
type CloudflareQueueConsumer = Static<typeof cloudflareQueueConsumerSchema>;
|
|
158
|
-
declare const cloudflareHyperdriveOriginSchema: _$
|
|
159
|
-
host: _$
|
|
172
|
+
declare const cloudflareHyperdriveOriginSchema: _$typebox.TObject<{
|
|
173
|
+
host: _$typebox.TString;
|
|
160
174
|
}>;
|
|
161
|
-
declare const cloudflareHyperdriveSchema: _$
|
|
162
|
-
id: _$
|
|
163
|
-
name: _$
|
|
164
|
-
origin: _$
|
|
165
|
-
host: _$
|
|
175
|
+
declare const cloudflareHyperdriveSchema: _$typebox.TObject<{
|
|
176
|
+
id: _$typebox.TString;
|
|
177
|
+
name: _$typebox.TString;
|
|
178
|
+
origin: _$typebox.TObject<{
|
|
179
|
+
host: _$typebox.TString;
|
|
166
180
|
}>;
|
|
167
181
|
}>;
|
|
168
182
|
type CloudflareHyperdrive = Static<typeof cloudflareHyperdriveSchema>;
|
|
169
|
-
declare const cloudflareWorkerSchema: _$
|
|
170
|
-
id: _$
|
|
171
|
-
created_on: _$
|
|
172
|
-
modified_on: _$
|
|
183
|
+
declare const cloudflareWorkerSchema: _$typebox.TObject<{
|
|
184
|
+
id: _$typebox.TString;
|
|
185
|
+
created_on: _$typebox.TString;
|
|
186
|
+
modified_on: _$typebox.TString;
|
|
173
187
|
}>;
|
|
174
188
|
type CloudflareWorker = Static<typeof cloudflareWorkerSchema>;
|
|
175
|
-
declare const cloudflareDeploymentVersionSchema: _$
|
|
176
|
-
version_id: _$
|
|
177
|
-
percentage: _$
|
|
189
|
+
declare const cloudflareDeploymentVersionSchema: _$typebox.TObject<{
|
|
190
|
+
version_id: _$typebox.TString;
|
|
191
|
+
percentage: _$typebox.TNumber;
|
|
178
192
|
}>;
|
|
179
|
-
declare const cloudflareDeploymentSchema: _$
|
|
180
|
-
id: _$
|
|
181
|
-
versions: _$
|
|
182
|
-
version_id: _$
|
|
183
|
-
percentage: _$
|
|
193
|
+
declare const cloudflareDeploymentSchema: _$typebox.TObject<{
|
|
194
|
+
id: _$typebox.TString;
|
|
195
|
+
versions: _$typebox.TArray<_$typebox.TObject<{
|
|
196
|
+
version_id: _$typebox.TString;
|
|
197
|
+
percentage: _$typebox.TNumber;
|
|
184
198
|
}>>;
|
|
185
|
-
created_on: _$
|
|
199
|
+
created_on: _$typebox.TString;
|
|
186
200
|
}>;
|
|
187
201
|
type CloudflareDeployment = Static<typeof cloudflareDeploymentSchema>;
|
|
188
|
-
declare const cloudflareDeploymentListSchema: _$
|
|
189
|
-
deployments: _$
|
|
190
|
-
id: _$
|
|
191
|
-
versions: _$
|
|
192
|
-
version_id: _$
|
|
193
|
-
percentage: _$
|
|
202
|
+
declare const cloudflareDeploymentListSchema: _$typebox.TObject<{
|
|
203
|
+
deployments: _$typebox.TArray<_$typebox.TObject<{
|
|
204
|
+
id: _$typebox.TString;
|
|
205
|
+
versions: _$typebox.TArray<_$typebox.TObject<{
|
|
206
|
+
version_id: _$typebox.TString;
|
|
207
|
+
percentage: _$typebox.TNumber;
|
|
194
208
|
}>>;
|
|
195
|
-
created_on: _$
|
|
209
|
+
created_on: _$typebox.TString;
|
|
196
210
|
}>>;
|
|
197
211
|
}>;
|
|
198
|
-
declare const cloudflareVersionSchema: _$
|
|
199
|
-
id: _$
|
|
200
|
-
metadata: _$
|
|
201
|
-
created_on: _$
|
|
212
|
+
declare const cloudflareVersionSchema: _$typebox.TObject<{
|
|
213
|
+
id: _$typebox.TString;
|
|
214
|
+
metadata: _$typebox.TObject<{
|
|
215
|
+
created_on: _$typebox.TString;
|
|
202
216
|
}>;
|
|
203
|
-
annotations: _$
|
|
217
|
+
annotations: _$typebox.TOptional<_$typebox.TRecord<"^.*$", _$typebox.TString>>;
|
|
204
218
|
}>;
|
|
205
219
|
type CloudflareVersion = Static<typeof cloudflareVersionSchema>;
|
|
206
|
-
declare const cloudflareVersionListSchema: _$
|
|
207
|
-
items: _$
|
|
208
|
-
id: _$
|
|
209
|
-
metadata: _$
|
|
210
|
-
created_on: _$
|
|
220
|
+
declare const cloudflareVersionListSchema: _$typebox.TObject<{
|
|
221
|
+
items: _$typebox.TArray<_$typebox.TObject<{
|
|
222
|
+
id: _$typebox.TString;
|
|
223
|
+
metadata: _$typebox.TObject<{
|
|
224
|
+
created_on: _$typebox.TString;
|
|
211
225
|
}>;
|
|
212
|
-
annotations: _$
|
|
226
|
+
annotations: _$typebox.TOptional<_$typebox.TRecord<"^.*$", _$typebox.TString>>;
|
|
213
227
|
}>>;
|
|
214
228
|
}>;
|
|
215
|
-
declare const cloudflareSecretSchema: _$
|
|
216
|
-
name: _$
|
|
217
|
-
type: _$
|
|
229
|
+
declare const cloudflareSecretSchema: _$typebox.TObject<{
|
|
230
|
+
name: _$typebox.TString;
|
|
231
|
+
type: _$typebox.TString;
|
|
218
232
|
}>;
|
|
219
233
|
type CloudflareSecret = Static<typeof cloudflareSecretSchema>;
|
|
220
|
-
declare const createD1BodySchema: _$
|
|
221
|
-
name: _$
|
|
222
|
-
primary_location_hint: _$
|
|
223
|
-
jurisdiction: _$
|
|
234
|
+
declare const createD1BodySchema: _$typebox.TObject<{
|
|
235
|
+
name: _$typebox.TString;
|
|
236
|
+
primary_location_hint: _$typebox.TOptional<_$typebox.TString>;
|
|
237
|
+
jurisdiction: _$typebox.TOptional<_$typebox.TString>;
|
|
224
238
|
}>;
|
|
225
|
-
declare const createKVBodySchema: _$
|
|
226
|
-
title: _$
|
|
239
|
+
declare const createKVBodySchema: _$typebox.TObject<{
|
|
240
|
+
title: _$typebox.TString;
|
|
227
241
|
}>;
|
|
228
|
-
declare const createR2BodySchema: _$
|
|
229
|
-
name: _$
|
|
242
|
+
declare const createR2BodySchema: _$typebox.TObject<{
|
|
243
|
+
name: _$typebox.TString;
|
|
230
244
|
}>;
|
|
231
|
-
declare const createQueueBodySchema: _$
|
|
232
|
-
queue_name: _$
|
|
245
|
+
declare const createQueueBodySchema: _$typebox.TObject<{
|
|
246
|
+
queue_name: _$typebox.TString;
|
|
233
247
|
}>;
|
|
234
|
-
declare const createHyperdriveOriginSchema: _$
|
|
235
|
-
scheme: _$
|
|
236
|
-
host: _$
|
|
237
|
-
port: _$
|
|
238
|
-
database: _$
|
|
239
|
-
user: _$
|
|
240
|
-
password: _$
|
|
248
|
+
declare const createHyperdriveOriginSchema: _$typebox.TObject<{
|
|
249
|
+
scheme: _$typebox.TString;
|
|
250
|
+
host: _$typebox.TString;
|
|
251
|
+
port: _$typebox.TNumber;
|
|
252
|
+
database: _$typebox.TString;
|
|
253
|
+
user: _$typebox.TString;
|
|
254
|
+
password: _$typebox.TString;
|
|
241
255
|
}>;
|
|
242
|
-
declare const createHyperdriveBodySchema: _$
|
|
243
|
-
name: _$
|
|
244
|
-
origin: _$
|
|
245
|
-
scheme: _$
|
|
246
|
-
host: _$
|
|
247
|
-
port: _$
|
|
248
|
-
database: _$
|
|
249
|
-
user: _$
|
|
250
|
-
password: _$
|
|
256
|
+
declare const createHyperdriveBodySchema: _$typebox.TObject<{
|
|
257
|
+
name: _$typebox.TString;
|
|
258
|
+
origin: _$typebox.TObject<{
|
|
259
|
+
scheme: _$typebox.TString;
|
|
260
|
+
host: _$typebox.TString;
|
|
261
|
+
port: _$typebox.TNumber;
|
|
262
|
+
database: _$typebox.TString;
|
|
263
|
+
user: _$typebox.TString;
|
|
264
|
+
password: _$typebox.TString;
|
|
251
265
|
}>;
|
|
252
266
|
}>;
|
|
253
|
-
declare const putSecretBodySchema: _$
|
|
254
|
-
name: _$
|
|
255
|
-
text: _$
|
|
256
|
-
type: _$
|
|
267
|
+
declare const putSecretBodySchema: _$typebox.TObject<{
|
|
268
|
+
name: _$typebox.TString;
|
|
269
|
+
text: _$typebox.TString;
|
|
270
|
+
type: _$typebox.TString;
|
|
257
271
|
}>;
|
|
258
|
-
declare const cloudflareApiErrorSchema: _$
|
|
259
|
-
code: _$
|
|
260
|
-
message: _$
|
|
272
|
+
declare const cloudflareApiErrorSchema: _$typebox.TObject<{
|
|
273
|
+
code: _$typebox.TNumber;
|
|
274
|
+
message: _$typebox.TString;
|
|
261
275
|
}>;
|
|
262
276
|
type CloudflareApiError = Static<typeof cloudflareApiErrorSchema>;
|
|
263
277
|
//#endregion
|
|
@@ -368,6 +382,38 @@ declare class CloudflareApi {
|
|
|
368
382
|
listVersions(scriptName: string): Promise<CloudflareVersion[]>;
|
|
369
383
|
listSecrets(scriptName: string): Promise<CloudflareSecret[]>;
|
|
370
384
|
putSecret(scriptName: string, name: string, value: string): Promise<void>;
|
|
385
|
+
/**
|
|
386
|
+
* Fetch the current worker bindings via the script-settings endpoint.
|
|
387
|
+
* Used to merge new secrets into the existing binding set in one PATCH
|
|
388
|
+
* (avoids the per-secret `putSecret` calls, each of which creates a
|
|
389
|
+
* Cloudflare deployment — pushing 7 secrets meant 7 deployment rows).
|
|
390
|
+
*
|
|
391
|
+
* Secret bindings come back with `name` + `type` but no `text` (they're
|
|
392
|
+
* write-only on Cloudflare's side); to preserve them across a PATCH we
|
|
393
|
+
* forward each one as `{ type, name }` and Cloudflare keeps the stored
|
|
394
|
+
* value.
|
|
395
|
+
*/
|
|
396
|
+
getWorkerSettings(scriptName: string): Promise<{
|
|
397
|
+
bindings: Array<{
|
|
398
|
+
type: string;
|
|
399
|
+
name: string;
|
|
400
|
+
text?: string;
|
|
401
|
+
}>;
|
|
402
|
+
}>;
|
|
403
|
+
/**
|
|
404
|
+
* Replace the worker's binding set in one call (= one Cloudflare
|
|
405
|
+
* deployment, regardless of how many secrets are being updated).
|
|
406
|
+
*
|
|
407
|
+
* The endpoint expects multipart FormData with a `settings` field whose
|
|
408
|
+
* value is a JSON-encoded `{ bindings: [...] }` — the `fetch` helper
|
|
409
|
+
* above is JSON-only, so this one bypasses it and calls `globalThis.fetch`
|
|
410
|
+
* directly. Mirrors what `wrangler secret bulk` does internally.
|
|
411
|
+
*/
|
|
412
|
+
patchWorkerBindings(scriptName: string, bindings: Array<{
|
|
413
|
+
type: string;
|
|
414
|
+
name: string;
|
|
415
|
+
text?: string;
|
|
416
|
+
}>): Promise<void>;
|
|
371
417
|
protected fetch<T = unknown>(path: string, options?: {
|
|
372
418
|
method?: string;
|
|
373
419
|
body?: unknown;
|
|
@@ -603,6 +649,11 @@ declare class CloudflareAdapter extends PlatformAdapter {
|
|
|
603
649
|
*/
|
|
604
650
|
static readonly EXCLUDED_SECRET_KEYS: Set<string>;
|
|
605
651
|
secrets(ctx: PlatformContext, run: RunnerMethod): Promise<void>;
|
|
652
|
+
/**
|
|
653
|
+
* Plain-text binding used to fingerprint the deployed secret set so the
|
|
654
|
+
* next `up` can skip the PATCH when nothing has changed.
|
|
655
|
+
*/
|
|
656
|
+
static readonly SECRETS_HASH_BINDING = "ALEPHA_SECRETS_HASH";
|
|
606
657
|
provision(ctx: PlatformContext, run: RunnerMethod): Promise<void>;
|
|
607
658
|
migrate(ctx: PlatformContext, run: RunnerMethod): Promise<void>;
|
|
608
659
|
protected migrateD1(ctx: PlatformContext, run: RunnerMethod): Promise<void>;
|
|
@@ -625,40 +676,40 @@ declare class CloudflareAdapter extends PlatformAdapter {
|
|
|
625
676
|
}
|
|
626
677
|
//#endregion
|
|
627
678
|
//#region ../../src/cli/platform/schemas/vercel.d.ts
|
|
628
|
-
declare const vercelProjectSchema: _$
|
|
629
|
-
id: _$
|
|
630
|
-
name: _$
|
|
631
|
-
accountId: _$
|
|
679
|
+
declare const vercelProjectSchema: _$typebox.TObject<{
|
|
680
|
+
id: _$typebox.TString;
|
|
681
|
+
name: _$typebox.TString;
|
|
682
|
+
accountId: _$typebox.TString;
|
|
632
683
|
}>;
|
|
633
684
|
type VercelProject = Static<typeof vercelProjectSchema>;
|
|
634
|
-
declare const createProjectBodySchema: _$
|
|
635
|
-
name: _$
|
|
636
|
-
framework: _$
|
|
685
|
+
declare const createProjectBodySchema: _$typebox.TObject<{
|
|
686
|
+
name: _$typebox.TString;
|
|
687
|
+
framework: _$typebox.TOptional<_$typebox.TNull>;
|
|
637
688
|
}>;
|
|
638
|
-
declare const vercelDeploymentSchema: _$
|
|
639
|
-
uid: _$
|
|
640
|
-
name: _$
|
|
641
|
-
url: _$
|
|
642
|
-
state: _$
|
|
643
|
-
readyState: _$
|
|
644
|
-
created: _$
|
|
645
|
-
target: _$
|
|
646
|
-
alias: _$
|
|
689
|
+
declare const vercelDeploymentSchema: _$typebox.TObject<{
|
|
690
|
+
uid: _$typebox.TString;
|
|
691
|
+
name: _$typebox.TString;
|
|
692
|
+
url: _$typebox.TString;
|
|
693
|
+
state: _$typebox.TOptional<_$typebox.TString>;
|
|
694
|
+
readyState: _$typebox.TOptional<_$typebox.TString>;
|
|
695
|
+
created: _$typebox.TOptional<_$typebox.TNumber>;
|
|
696
|
+
target: _$typebox.TOptional<_$typebox.TString>;
|
|
697
|
+
alias: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
|
|
647
698
|
}>;
|
|
648
699
|
type VercelDeployment = Static<typeof vercelDeploymentSchema>;
|
|
649
|
-
declare const vercelEnvVarSchema: _$
|
|
650
|
-
id: _$
|
|
651
|
-
key: _$
|
|
652
|
-
value: _$
|
|
653
|
-
type: _$
|
|
654
|
-
target: _$
|
|
700
|
+
declare const vercelEnvVarSchema: _$typebox.TObject<{
|
|
701
|
+
id: _$typebox.TString;
|
|
702
|
+
key: _$typebox.TString;
|
|
703
|
+
value: _$typebox.TOptional<_$typebox.TString>;
|
|
704
|
+
type: _$typebox.TString;
|
|
705
|
+
target: _$typebox.TArray<_$typebox.TString>;
|
|
655
706
|
}>;
|
|
656
707
|
type VercelEnvVar = Static<typeof vercelEnvVarSchema>;
|
|
657
|
-
declare const createEnvVarBodySchema: _$
|
|
658
|
-
key: _$
|
|
659
|
-
value: _$
|
|
660
|
-
type: _$
|
|
661
|
-
target: _$
|
|
708
|
+
declare const createEnvVarBodySchema: _$typebox.TObject<{
|
|
709
|
+
key: _$typebox.TString;
|
|
710
|
+
value: _$typebox.TString;
|
|
711
|
+
type: _$typebox.TString;
|
|
712
|
+
target: _$typebox.TArray<_$typebox.TString>;
|
|
662
713
|
}>;
|
|
663
714
|
//#endregion
|
|
664
715
|
//#region ../../src/cli/platform/services/VercelCli.d.ts
|
|
@@ -819,6 +870,7 @@ declare class PlatformInspector {
|
|
|
819
870
|
} | undefined;
|
|
820
871
|
environments: Record<string, {
|
|
821
872
|
domain?: string | undefined;
|
|
873
|
+
zone?: string | undefined;
|
|
822
874
|
jurisdiction?: "eu" | "fedramp" | undefined;
|
|
823
875
|
accountId?: string | undefined;
|
|
824
876
|
adapter: "cloudflare" | "vercel";
|
|
@@ -1014,6 +1066,7 @@ declare class SecretsCommand {
|
|
|
1014
1066
|
} | undefined;
|
|
1015
1067
|
environments: Record<string, {
|
|
1016
1068
|
domain?: string | undefined;
|
|
1069
|
+
zone?: string | undefined;
|
|
1017
1070
|
jurisdiction?: "eu" | "fedramp" | undefined;
|
|
1018
1071
|
accountId?: string | undefined;
|
|
1019
1072
|
adapter: "cloudflare" | "vercel";
|
|
@@ -1025,21 +1078,21 @@ declare class SecretsCommand {
|
|
|
1025
1078
|
protected readonly githubStore: GitHubSecretStore;
|
|
1026
1079
|
protected readonly filter: SecretFilterService;
|
|
1027
1080
|
protected readonly color: ConsoleColorProvider;
|
|
1028
|
-
protected readonly envFlags: _$
|
|
1029
|
-
env: _$
|
|
1081
|
+
protected readonly envFlags: _$typebox.TObject<{
|
|
1082
|
+
env: _$typebox.TOptional<_$typebox.TString>;
|
|
1030
1083
|
}>;
|
|
1031
|
-
protected readonly list: _$alepha_command0.CommandPrimitive<_$
|
|
1032
|
-
env: _$
|
|
1033
|
-
format: _$
|
|
1034
|
-
}>, _$
|
|
1035
|
-
protected readonly diff: _$alepha_command0.CommandPrimitive<_$
|
|
1036
|
-
env: _$
|
|
1037
|
-
}>, _$
|
|
1038
|
-
protected readonly apply: _$alepha_command0.CommandPrimitive<_$
|
|
1039
|
-
env: _$
|
|
1040
|
-
"dry-run": _$
|
|
1041
|
-
}>, _$
|
|
1042
|
-
readonly secrets: _$alepha_command0.CommandPrimitive<_$
|
|
1084
|
+
protected readonly list: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
|
|
1085
|
+
env: _$typebox.TOptional<_$typebox.TString>;
|
|
1086
|
+
format: _$typebox.TOptional<_$typebox.TString>;
|
|
1087
|
+
}>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
|
|
1088
|
+
protected readonly diff: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
|
|
1089
|
+
env: _$typebox.TOptional<_$typebox.TString>;
|
|
1090
|
+
}>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
|
|
1091
|
+
protected readonly apply: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
|
|
1092
|
+
env: _$typebox.TOptional<_$typebox.TString>;
|
|
1093
|
+
"dry-run": _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1094
|
+
}>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
|
|
1095
|
+
readonly secrets: _$alepha_command0.CommandPrimitive<_$typebox.TObject<_$typebox.TProperties>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
|
|
1043
1096
|
resolveStore(): SecretStoreProvider;
|
|
1044
1097
|
protected resolveEnvironmentName(project: string, env: string): string;
|
|
1045
1098
|
}
|
|
@@ -1057,6 +1110,7 @@ declare class PlatformCommand {
|
|
|
1057
1110
|
} | undefined;
|
|
1058
1111
|
environments: Record<string, {
|
|
1059
1112
|
domain?: string | undefined;
|
|
1113
|
+
zone?: string | undefined;
|
|
1060
1114
|
jurisdiction?: "eu" | "fedramp" | undefined;
|
|
1061
1115
|
accountId?: string | undefined;
|
|
1062
1116
|
adapter: "cloudflare" | "vercel";
|
|
@@ -1073,55 +1127,55 @@ declare class PlatformCommand {
|
|
|
1073
1127
|
/**
|
|
1074
1128
|
* Common flags for env/app targeting.
|
|
1075
1129
|
*/
|
|
1076
|
-
protected readonly envFlags: _$
|
|
1077
|
-
env: _$
|
|
1078
|
-
app: _$
|
|
1079
|
-
verbose: _$
|
|
1080
|
-
json: _$
|
|
1130
|
+
protected readonly envFlags: _$typebox.TObject<{
|
|
1131
|
+
env: _$typebox.TOptional<_$typebox.TString>;
|
|
1132
|
+
app: _$typebox.TOptional<_$typebox.TString>;
|
|
1133
|
+
verbose: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1134
|
+
json: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1081
1135
|
}>;
|
|
1082
|
-
protected readonly plan: _$alepha_command0.CommandPrimitive<_$
|
|
1083
|
-
env: _$
|
|
1084
|
-
app: _$
|
|
1085
|
-
verbose: _$
|
|
1086
|
-
json: _$
|
|
1087
|
-
}>, _$
|
|
1088
|
-
protected readonly up: _$alepha_command0.CommandPrimitive<_$
|
|
1089
|
-
env: _$
|
|
1090
|
-
app: _$
|
|
1091
|
-
verbose: _$
|
|
1092
|
-
json: _$
|
|
1093
|
-
}>, _$
|
|
1094
|
-
protected readonly down: _$alepha_command0.CommandPrimitive<_$
|
|
1095
|
-
env: _$
|
|
1096
|
-
app: _$
|
|
1097
|
-
verbose: _$
|
|
1098
|
-
json: _$
|
|
1099
|
-
}>, _$
|
|
1100
|
-
protected readonly status: _$alepha_command0.CommandPrimitive<_$
|
|
1101
|
-
env: _$
|
|
1102
|
-
app: _$
|
|
1103
|
-
verbose: _$
|
|
1104
|
-
json: _$
|
|
1105
|
-
}>, _$
|
|
1106
|
-
protected readonly build: _$alepha_command0.CommandPrimitive<_$
|
|
1107
|
-
env: _$
|
|
1108
|
-
app: _$
|
|
1109
|
-
verbose: _$
|
|
1110
|
-
json: _$
|
|
1111
|
-
}>, _$
|
|
1112
|
-
protected readonly deploy: _$alepha_command0.CommandPrimitive<_$
|
|
1113
|
-
env: _$
|
|
1114
|
-
app: _$
|
|
1115
|
-
verbose: _$
|
|
1116
|
-
json: _$
|
|
1117
|
-
}>, _$
|
|
1118
|
-
protected readonly migrate: _$alepha_command0.CommandPrimitive<_$
|
|
1119
|
-
env: _$
|
|
1120
|
-
app: _$
|
|
1121
|
-
verbose: _$
|
|
1122
|
-
json: _$
|
|
1123
|
-
}>, _$
|
|
1124
|
-
readonly platform: _$alepha_command0.CommandPrimitive<_$
|
|
1136
|
+
protected readonly plan: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
|
|
1137
|
+
env: _$typebox.TOptional<_$typebox.TString>;
|
|
1138
|
+
app: _$typebox.TOptional<_$typebox.TString>;
|
|
1139
|
+
verbose: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1140
|
+
json: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1141
|
+
}>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
|
|
1142
|
+
protected readonly up: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
|
|
1143
|
+
env: _$typebox.TOptional<_$typebox.TString>;
|
|
1144
|
+
app: _$typebox.TOptional<_$typebox.TString>;
|
|
1145
|
+
verbose: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1146
|
+
json: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1147
|
+
}>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
|
|
1148
|
+
protected readonly down: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
|
|
1149
|
+
env: _$typebox.TOptional<_$typebox.TString>;
|
|
1150
|
+
app: _$typebox.TOptional<_$typebox.TString>;
|
|
1151
|
+
verbose: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1152
|
+
json: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1153
|
+
}>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
|
|
1154
|
+
protected readonly status: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
|
|
1155
|
+
env: _$typebox.TOptional<_$typebox.TString>;
|
|
1156
|
+
app: _$typebox.TOptional<_$typebox.TString>;
|
|
1157
|
+
verbose: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1158
|
+
json: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1159
|
+
}>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
|
|
1160
|
+
protected readonly build: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
|
|
1161
|
+
env: _$typebox.TOptional<_$typebox.TString>;
|
|
1162
|
+
app: _$typebox.TOptional<_$typebox.TString>;
|
|
1163
|
+
verbose: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1164
|
+
json: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1165
|
+
}>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
|
|
1166
|
+
protected readonly deploy: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
|
|
1167
|
+
env: _$typebox.TOptional<_$typebox.TString>;
|
|
1168
|
+
app: _$typebox.TOptional<_$typebox.TString>;
|
|
1169
|
+
verbose: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1170
|
+
json: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1171
|
+
}>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
|
|
1172
|
+
protected readonly migrate: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
|
|
1173
|
+
env: _$typebox.TOptional<_$typebox.TString>;
|
|
1174
|
+
app: _$typebox.TOptional<_$typebox.TString>;
|
|
1175
|
+
verbose: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1176
|
+
json: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
1177
|
+
}>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
|
|
1178
|
+
readonly platform: _$alepha_command0.CommandPrimitive<_$typebox.TObject<_$typebox.TProperties>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
|
|
1125
1179
|
/**
|
|
1126
1180
|
* Resolve app definitions.
|
|
1127
1181
|
*
|
|
@@ -1235,118 +1289,120 @@ declare class MemorySecretStore implements SecretStoreProvider {
|
|
|
1235
1289
|
}
|
|
1236
1290
|
//#endregion
|
|
1237
1291
|
//#region ../../src/cli/platform/schemas/platform.d.ts
|
|
1238
|
-
declare const platformStatusWorkerSchema: _$
|
|
1239
|
-
name: _$
|
|
1240
|
-
exists: _$
|
|
1241
|
-
id: _$
|
|
1242
|
-
detail: _$
|
|
1243
|
-
version: _$
|
|
1244
|
-
tag: _$
|
|
1245
|
-
createdAt: _$
|
|
1292
|
+
declare const platformStatusWorkerSchema: _$typebox.TObject<{
|
|
1293
|
+
name: _$typebox.TString;
|
|
1294
|
+
exists: _$typebox.TBoolean;
|
|
1295
|
+
id: _$typebox.TOptional<_$typebox.TString>;
|
|
1296
|
+
detail: _$typebox.TOptional<_$typebox.TString>;
|
|
1297
|
+
version: _$typebox.TOptional<_$typebox.TString>;
|
|
1298
|
+
tag: _$typebox.TOptional<_$typebox.TString>;
|
|
1299
|
+
createdAt: _$typebox.TOptional<_$typebox.TString>;
|
|
1246
1300
|
}>;
|
|
1247
|
-
declare const platformStatusResourceSchema: _$
|
|
1248
|
-
name: _$
|
|
1249
|
-
exists: _$
|
|
1250
|
-
id: _$
|
|
1251
|
-
detail: _$
|
|
1301
|
+
declare const platformStatusResourceSchema: _$typebox.TObject<{
|
|
1302
|
+
name: _$typebox.TString;
|
|
1303
|
+
exists: _$typebox.TBoolean;
|
|
1304
|
+
id: _$typebox.TOptional<_$typebox.TString>;
|
|
1305
|
+
detail: _$typebox.TOptional<_$typebox.TString>;
|
|
1252
1306
|
}>;
|
|
1253
|
-
declare const platformStatusSecretSchema: _$
|
|
1254
|
-
name: _$
|
|
1255
|
-
deployed: _$
|
|
1307
|
+
declare const platformStatusSecretSchema: _$typebox.TObject<{
|
|
1308
|
+
name: _$typebox.TString;
|
|
1309
|
+
deployed: _$typebox.TBoolean;
|
|
1256
1310
|
}>;
|
|
1257
|
-
declare const platformStatusSchema: _$
|
|
1258
|
-
project: _$
|
|
1259
|
-
env: _$
|
|
1260
|
-
adapter: _$
|
|
1261
|
-
workers: _$
|
|
1262
|
-
name: _$
|
|
1263
|
-
exists: _$
|
|
1264
|
-
id: _$
|
|
1265
|
-
detail: _$
|
|
1266
|
-
version: _$
|
|
1267
|
-
tag: _$
|
|
1268
|
-
createdAt: _$
|
|
1311
|
+
declare const platformStatusSchema: _$typebox.TObject<{
|
|
1312
|
+
project: _$typebox.TString;
|
|
1313
|
+
env: _$typebox.TString;
|
|
1314
|
+
adapter: _$typebox.TString;
|
|
1315
|
+
workers: _$typebox.TArray<_$typebox.TObject<{
|
|
1316
|
+
name: _$typebox.TString;
|
|
1317
|
+
exists: _$typebox.TBoolean;
|
|
1318
|
+
id: _$typebox.TOptional<_$typebox.TString>;
|
|
1319
|
+
detail: _$typebox.TOptional<_$typebox.TString>;
|
|
1320
|
+
version: _$typebox.TOptional<_$typebox.TString>;
|
|
1321
|
+
tag: _$typebox.TOptional<_$typebox.TString>;
|
|
1322
|
+
createdAt: _$typebox.TOptional<_$typebox.TString>;
|
|
1269
1323
|
}>>;
|
|
1270
|
-
databases: _$
|
|
1271
|
-
name: _$
|
|
1272
|
-
exists: _$
|
|
1273
|
-
id: _$
|
|
1274
|
-
detail: _$
|
|
1324
|
+
databases: _$typebox.TArray<_$typebox.TObject<{
|
|
1325
|
+
name: _$typebox.TString;
|
|
1326
|
+
exists: _$typebox.TBoolean;
|
|
1327
|
+
id: _$typebox.TOptional<_$typebox.TString>;
|
|
1328
|
+
detail: _$typebox.TOptional<_$typebox.TString>;
|
|
1275
1329
|
}>>;
|
|
1276
|
-
buckets: _$
|
|
1277
|
-
name: _$
|
|
1278
|
-
exists: _$
|
|
1279
|
-
id: _$
|
|
1280
|
-
detail: _$
|
|
1330
|
+
buckets: _$typebox.TArray<_$typebox.TObject<{
|
|
1331
|
+
name: _$typebox.TString;
|
|
1332
|
+
exists: _$typebox.TBoolean;
|
|
1333
|
+
id: _$typebox.TOptional<_$typebox.TString>;
|
|
1334
|
+
detail: _$typebox.TOptional<_$typebox.TString>;
|
|
1281
1335
|
}>>;
|
|
1282
|
-
kvNamespaces: _$
|
|
1283
|
-
name: _$
|
|
1284
|
-
exists: _$
|
|
1285
|
-
id: _$
|
|
1286
|
-
detail: _$
|
|
1336
|
+
kvNamespaces: _$typebox.TArray<_$typebox.TObject<{
|
|
1337
|
+
name: _$typebox.TString;
|
|
1338
|
+
exists: _$typebox.TBoolean;
|
|
1339
|
+
id: _$typebox.TOptional<_$typebox.TString>;
|
|
1340
|
+
detail: _$typebox.TOptional<_$typebox.TString>;
|
|
1287
1341
|
}>>;
|
|
1288
|
-
queues: _$
|
|
1289
|
-
name: _$
|
|
1290
|
-
exists: _$
|
|
1291
|
-
id: _$
|
|
1292
|
-
detail: _$
|
|
1342
|
+
queues: _$typebox.TArray<_$typebox.TObject<{
|
|
1343
|
+
name: _$typebox.TString;
|
|
1344
|
+
exists: _$typebox.TBoolean;
|
|
1345
|
+
id: _$typebox.TOptional<_$typebox.TString>;
|
|
1346
|
+
detail: _$typebox.TOptional<_$typebox.TString>;
|
|
1293
1347
|
}>>;
|
|
1294
|
-
secrets: _$
|
|
1295
|
-
name: _$
|
|
1296
|
-
deployed: _$
|
|
1348
|
+
secrets: _$typebox.TArray<_$typebox.TObject<{
|
|
1349
|
+
name: _$typebox.TString;
|
|
1350
|
+
deployed: _$typebox.TBoolean;
|
|
1297
1351
|
}>>;
|
|
1298
1352
|
}>;
|
|
1299
1353
|
type PlatformStatusOutput = Static<typeof platformStatusSchema>;
|
|
1300
|
-
declare const platformPlanAppResourcesSchema: _$
|
|
1301
|
-
hasDatabase: _$
|
|
1302
|
-
hasBucket: _$
|
|
1303
|
-
hasKV: _$
|
|
1304
|
-
hasQueue: _$
|
|
1305
|
-
hasCron: _$
|
|
1354
|
+
declare const platformPlanAppResourcesSchema: _$typebox.TObject<{
|
|
1355
|
+
hasDatabase: _$typebox.TBoolean;
|
|
1356
|
+
hasBucket: _$typebox.TBoolean;
|
|
1357
|
+
hasKV: _$typebox.TBoolean;
|
|
1358
|
+
hasQueue: _$typebox.TBoolean;
|
|
1359
|
+
hasCron: _$typebox.TBoolean;
|
|
1306
1360
|
}>;
|
|
1307
|
-
declare const platformPlanAppSchema: _$
|
|
1308
|
-
name: _$
|
|
1309
|
-
path: _$
|
|
1310
|
-
resources: _$
|
|
1311
|
-
hasDatabase: _$
|
|
1312
|
-
hasBucket: _$
|
|
1313
|
-
hasKV: _$
|
|
1314
|
-
hasQueue: _$
|
|
1315
|
-
hasCron: _$
|
|
1361
|
+
declare const platformPlanAppSchema: _$typebox.TObject<{
|
|
1362
|
+
name: _$typebox.TString;
|
|
1363
|
+
path: _$typebox.TString;
|
|
1364
|
+
resources: _$typebox.TObject<{
|
|
1365
|
+
hasDatabase: _$typebox.TBoolean;
|
|
1366
|
+
hasBucket: _$typebox.TBoolean;
|
|
1367
|
+
hasKV: _$typebox.TBoolean;
|
|
1368
|
+
hasQueue: _$typebox.TBoolean;
|
|
1369
|
+
hasCron: _$typebox.TBoolean;
|
|
1316
1370
|
}>;
|
|
1317
1371
|
}>;
|
|
1318
|
-
declare const platformPlanEnvironmentSchema: _$
|
|
1319
|
-
adapter: _$
|
|
1320
|
-
domain: _$
|
|
1372
|
+
declare const platformPlanEnvironmentSchema: _$typebox.TObject<{
|
|
1373
|
+
adapter: _$typebox.TString;
|
|
1374
|
+
domain: _$typebox.TOptional<_$typebox.TString>;
|
|
1375
|
+
zone: _$typebox.TOptional<_$typebox.TString>;
|
|
1321
1376
|
}>;
|
|
1322
|
-
declare const platformPlanResourceSchema: _$
|
|
1323
|
-
label: _$
|
|
1324
|
-
value: _$
|
|
1377
|
+
declare const platformPlanResourceSchema: _$typebox.TObject<{
|
|
1378
|
+
label: _$typebox.TString;
|
|
1379
|
+
value: _$typebox.TString;
|
|
1325
1380
|
}>;
|
|
1326
|
-
declare const platformPlanSchema: _$
|
|
1327
|
-
project: _$
|
|
1328
|
-
env: _$
|
|
1329
|
-
mode: _$
|
|
1330
|
-
apps: _$
|
|
1331
|
-
name: _$
|
|
1332
|
-
path: _$
|
|
1333
|
-
resources: _$
|
|
1334
|
-
hasDatabase: _$
|
|
1335
|
-
hasBucket: _$
|
|
1336
|
-
hasKV: _$
|
|
1337
|
-
hasQueue: _$
|
|
1338
|
-
hasCron: _$
|
|
1381
|
+
declare const platformPlanSchema: _$typebox.TObject<{
|
|
1382
|
+
project: _$typebox.TString;
|
|
1383
|
+
env: _$typebox.TString;
|
|
1384
|
+
mode: _$typebox.TUnsafe<"monorepo" | "standalone">;
|
|
1385
|
+
apps: _$typebox.TArray<_$typebox.TObject<{
|
|
1386
|
+
name: _$typebox.TString;
|
|
1387
|
+
path: _$typebox.TString;
|
|
1388
|
+
resources: _$typebox.TObject<{
|
|
1389
|
+
hasDatabase: _$typebox.TBoolean;
|
|
1390
|
+
hasBucket: _$typebox.TBoolean;
|
|
1391
|
+
hasKV: _$typebox.TBoolean;
|
|
1392
|
+
hasQueue: _$typebox.TBoolean;
|
|
1393
|
+
hasCron: _$typebox.TBoolean;
|
|
1339
1394
|
}>;
|
|
1340
1395
|
}>>;
|
|
1341
|
-
environments: _$
|
|
1342
|
-
adapter: _$
|
|
1343
|
-
domain: _$
|
|
1396
|
+
environments: _$typebox.TRecord<"^.*$", _$typebox.TObject<{
|
|
1397
|
+
adapter: _$typebox.TString;
|
|
1398
|
+
domain: _$typebox.TOptional<_$typebox.TString>;
|
|
1399
|
+
zone: _$typebox.TOptional<_$typebox.TString>;
|
|
1344
1400
|
}>>;
|
|
1345
|
-
resources: _$
|
|
1346
|
-
label: _$
|
|
1347
|
-
value: _$
|
|
1401
|
+
resources: _$typebox.TArray<_$typebox.TObject<{
|
|
1402
|
+
label: _$typebox.TString;
|
|
1403
|
+
value: _$typebox.TString;
|
|
1348
1404
|
}>>;
|
|
1349
|
-
secretCount: _$
|
|
1405
|
+
secretCount: _$typebox.TNumber;
|
|
1350
1406
|
}>;
|
|
1351
1407
|
type PlatformPlanOutput = Static<typeof platformPlanSchema>;
|
|
1352
1408
|
//#endregion
|