@sylphx/contract 0.5.0 → 0.6.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/CHANGELOG.md +12 -0
- package/dist/endpoint.d.ts +3 -1
- package/dist/endpoint.d.ts.map +1 -1
- package/dist/endpoints/admin-audit.d.ts +2 -2
- package/dist/endpoints/admin-audit.js +2 -2
- package/dist/endpoints/admin-bootstrap.js +3 -3
- package/dist/endpoints/admin-branch-databases.d.ts +1 -1
- package/dist/endpoints/admin-branch-databases.js +2 -2
- package/dist/endpoints/admin-envs-spec.d.ts +27 -0
- package/dist/endpoints/admin-envs-spec.d.ts.map +1 -0
- package/dist/endpoints/admin-envs-spec.js +25 -0
- package/dist/endpoints/admin-projects.d.ts +1 -1
- package/dist/endpoints/admin-rate-limits.d.ts +1 -1
- package/dist/endpoints/admin-rate-limits.js +3 -3
- package/dist/endpoints/admin-secrets.d.ts +3 -3
- package/dist/endpoints/admin-secrets.js +1 -1
- package/dist/endpoints/admin-services.d.ts +3 -3
- package/dist/endpoints/admin-services.d.ts.map +1 -1
- package/dist/endpoints/admin-services.js +4 -5
- package/dist/endpoints/branch-databases.d.ts +13 -7
- package/dist/endpoints/branch-databases.d.ts.map +1 -1
- package/dist/endpoints/branch-databases.js +3 -3
- package/dist/endpoints/databases.d.ts +100 -164
- package/dist/endpoints/databases.d.ts.map +1 -1
- package/dist/endpoints/databases.js +8 -35
- package/dist/endpoints/deployments.d.ts +1 -3
- package/dist/endpoints/deployments.d.ts.map +1 -1
- package/dist/endpoints/deployments.js +1 -1
- package/dist/endpoints/environments.d.ts +11 -42
- package/dist/endpoints/environments.d.ts.map +1 -1
- package/dist/endpoints/image-opt.d.ts +5 -13
- package/dist/endpoints/image-opt.d.ts.map +1 -1
- package/dist/endpoints/image-opt.js +6 -18
- package/dist/endpoints/kv-admin.d.ts +1 -2
- package/dist/endpoints/kv-admin.d.ts.map +1 -1
- package/dist/endpoints/kv-admin.js +1 -1
- package/dist/endpoints/kv.d.ts +19 -13
- package/dist/endpoints/kv.d.ts.map +1 -1
- package/dist/endpoints/kv.js +9 -9
- package/dist/endpoints/notifications.d.ts +7 -0
- package/dist/endpoints/notifications.d.ts.map +1 -1
- package/dist/endpoints/organizations.d.ts +8 -6
- package/dist/endpoints/organizations.d.ts.map +1 -1
- package/dist/endpoints/project-manifest.d.ts +196 -84
- package/dist/endpoints/project-manifest.d.ts.map +1 -1
- package/dist/endpoints/projects.d.ts +0 -8
- package/dist/endpoints/projects.d.ts.map +1 -1
- package/dist/endpoints/realtime-admin.d.ts +0 -1
- package/dist/endpoints/realtime-admin.d.ts.map +1 -1
- package/dist/endpoints/realtime-admin.js +1 -1
- package/dist/endpoints/regions.d.ts +2 -4
- package/dist/endpoints/regions.d.ts.map +1 -1
- package/dist/endpoints/regions.js +2 -2
- package/dist/endpoints/storage.d.ts +18 -0
- package/dist/endpoints/storage.d.ts.map +1 -1
- package/dist/endpoints/storage.js +11 -1
- package/dist/endpoints/tasks.d.ts +2 -6
- package/dist/endpoints/tasks.d.ts.map +1 -1
- package/dist/hono-app.d.ts +2 -2
- package/dist/hono-app.js +2 -2
- package/dist/index.d.ts +403 -350
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/schemas/_primitives.d.ts +14 -0
- package/dist/schemas/_primitives.d.ts.map +1 -1
- package/dist/schemas/_primitives.js +16 -0
- package/dist/schemas/admin-audit.d.ts +4 -4
- package/dist/schemas/admin-audit.js +3 -3
- package/dist/schemas/admin-bootstrap.d.ts +1 -1
- package/dist/schemas/admin-bootstrap.js +1 -1
- package/dist/schemas/admin-builds.d.ts +1 -1
- package/dist/schemas/admin-builds.js +1 -1
- package/dist/schemas/admin-envs-spec.d.ts +49 -0
- package/dist/schemas/admin-envs-spec.d.ts.map +1 -0
- package/dist/schemas/admin-envs-spec.js +58 -0
- package/dist/schemas/admin-projects.d.ts +2 -2
- package/dist/schemas/admin-projects.js +1 -1
- package/dist/schemas/admin-rate-limits.d.ts +2 -2
- package/dist/schemas/admin-rate-limits.js +2 -2
- package/dist/schemas/admin-secrets.d.ts +14 -14
- package/dist/schemas/admin-secrets.d.ts.map +1 -1
- package/dist/schemas/admin-secrets.js +10 -10
- package/dist/schemas/admin-services.d.ts +18 -22
- package/dist/schemas/admin-services.d.ts.map +1 -1
- package/dist/schemas/admin-services.js +15 -19
- package/dist/schemas/auth.d.ts +1 -0
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/auth.js +1 -0
- package/dist/schemas/branch-database.d.ts +25 -18
- package/dist/schemas/branch-database.d.ts.map +1 -1
- package/dist/schemas/branch-database.js +15 -14
- package/dist/schemas/database.d.ts +13 -19
- package/dist/schemas/database.d.ts.map +1 -1
- package/dist/schemas/database.js +7 -19
- package/dist/schemas/deployment.d.ts +5 -7
- package/dist/schemas/deployment.d.ts.map +1 -1
- package/dist/schemas/deployment.js +6 -6
- package/dist/schemas/environment.d.ts +17 -31
- package/dist/schemas/environment.d.ts.map +1 -1
- package/dist/schemas/environment.js +11 -16
- package/dist/schemas/ids.d.ts +4 -0
- package/dist/schemas/ids.d.ts.map +1 -1
- package/dist/schemas/ids.js +2 -0
- package/dist/schemas/image-opt.d.ts +10 -11
- package/dist/schemas/image-opt.d.ts.map +1 -1
- package/dist/schemas/image-opt.js +11 -12
- package/dist/schemas/kv-admin.d.ts +1 -2
- package/dist/schemas/kv-admin.d.ts.map +1 -1
- package/dist/schemas/kv-admin.js +1 -2
- package/dist/schemas/kv.d.ts +12 -4
- package/dist/schemas/kv.d.ts.map +1 -1
- package/dist/schemas/kv.js +17 -5
- package/dist/schemas/notifications.d.ts +11 -0
- package/dist/schemas/notifications.d.ts.map +1 -1
- package/dist/schemas/notifications.js +11 -0
- package/dist/schemas/organization.d.ts +8 -6
- package/dist/schemas/organization.d.ts.map +1 -1
- package/dist/schemas/organization.js +11 -6
- package/dist/schemas/project-manifest.d.ts +384 -174
- package/dist/schemas/project-manifest.d.ts.map +1 -1
- package/dist/schemas/project-manifest.js +127 -50
- package/dist/schemas/project.d.ts +0 -6
- package/dist/schemas/project.d.ts.map +1 -1
- package/dist/schemas/project.js +0 -2
- package/dist/schemas/realtime-admin.d.ts +0 -1
- package/dist/schemas/realtime-admin.d.ts.map +1 -1
- package/dist/schemas/realtime-admin.js +0 -1
- package/dist/schemas/realtime.d.ts +2 -2
- package/dist/schemas/realtime.js +2 -2
- package/dist/schemas/region.d.ts +3 -21
- package/dist/schemas/region.d.ts.map +1 -1
- package/dist/schemas/region.js +2 -11
- package/dist/schemas/resources.d.ts +213 -164
- package/dist/schemas/resources.d.ts.map +1 -1
- package/dist/schemas/resources.js +87 -105
- package/dist/schemas/storage.d.ts +30 -1
- package/dist/schemas/storage.d.ts.map +1 -1
- package/dist/schemas/storage.js +20 -1
- package/dist/schemas/tasks.d.ts +3 -8
- package/dist/schemas/tasks.d.ts.map +1 -1
- package/dist/schemas/tasks.js +1 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-manifest.d.ts","sourceRoot":"","sources":["../../src/schemas/project-manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"project-manifest.d.ts","sourceRoot":"","sources":["../../src/schemas/project-manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAK/B;;;;GAIG;AACH,eAAO,MAAM,IAAI,mEAIhB,CAAA;AACD,MAAM,MAAM,IAAI,GAAG,OAAO,IAAI,CAAC,IAAI,CAAA;AAEnC,wEAAwE;AACxE,eAAO,MAAM,eAAe,qEAAoE,CAAA;AAChG,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAA;AAEzD,kFAAkF;AAClF,eAAO,MAAM,cAAc,0DAAyD,CAAA;A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;;;;;;;;;;;;;;;YAsB9C;;;eAGG;;YAEH;;;eAGG;;YAEH;;;eAGG;;;;;;;;QAmBH,wDAAwD;;QAExD,iEAAiE;;QAEjE,uDAAuD;;;EAoFtD,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAA;AAIvD;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IACnC,oEAAoE;IACpE,WAAW,EAAE,OAAO,CAAA;IACpB,uEAAuE;IACvE,kBAAkB,EAAE,MAAM,CAAA;IAC1B,2FAA2F;IAC3F,WAAW,EAAE,MAAM,CAAA;IACnB,0CAA0C;IAC1C,WAAW,EAAE,MAAM,CAAA;CACnB;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;IAClC,8DAA8D;;IAE9D,+DAA+D;;IAE/D,mEAAmE;;IAEnE,gFAAgF;;CAEvE,CAAA;AAEV;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CACzC,KAAK,EACF;IACA,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;CACnB,GACD,IAAI,GACJ,SAAS,EACZ,WAAW,CAAC,EAAE,MAAM,GAClB,mBAAmB,CAYrB"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Plane: `management`. The manifest is the user-facing, editable surface
|
|
5
5
|
* declared in Git at repo root. The CLI parses `sylphx.toml` via Bun's
|
|
6
6
|
* built-in TOML parser, validates against this schema, and pushes to the
|
|
7
|
-
* Management API (`PUT /projects/:id/manifest
|
|
7
|
+
* Management API (`PUT /projects/:id/manifest`).
|
|
8
8
|
*
|
|
9
9
|
* Slug-valued (not TypeID) on purpose: the manifest is what users type,
|
|
10
10
|
* so slugs are the DX-correct surface. The server maps slugs → TypeIDs
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
* See docs/design/sylphx-toml-manifest.md §2 for the full design.
|
|
16
16
|
*/
|
|
17
17
|
import { Schema } from 'effect';
|
|
18
|
+
import { ResourceTier, VolumeSharing } from './resources.js';
|
|
18
19
|
// ── Primitives ─────────────────────────────────────────────────────────────
|
|
19
20
|
/**
|
|
20
21
|
* Slug format per ADR-055 §Slugs — lower-case, DNS-safe, 3-63 chars.
|
|
@@ -24,19 +25,34 @@ import { Schema } from 'effect';
|
|
|
24
25
|
export const Slug = Schema.String.pipe(Schema.pattern(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/), Schema.minLength(3), Schema.maxLength(63));
|
|
25
26
|
/** Environment name — closed enum matches ADR-080 environment types. */
|
|
26
27
|
export const ManifestEnvName = Schema.Literal('production', 'staging', 'preview', 'development');
|
|
27
|
-
/**
|
|
28
|
+
/** Public region slug. The platform maps this to provider capacity internally. */
|
|
28
29
|
export const ManifestRegion = Schema.Literal('fsn1', 'nbg1', 'hel1', 'ash1', 'hil1');
|
|
29
|
-
/**
|
|
30
|
+
/** Compute size tiers — shared between build runners and runtime services. */
|
|
30
31
|
export const MachineSize = Schema.Literal('nano', 'micro', 'small', 'standard', 'large', 'xlarge');
|
|
31
32
|
/** Build runner size — smaller enum than MachineSize (no nano/micro). */
|
|
32
33
|
export const BuildMachineSize = Schema.Literal('standard', 'large', 'xlarge');
|
|
33
34
|
/** Buildpack identifier per ADR-071. `auto` lets the platform detect. */
|
|
34
35
|
export const BuildpackName = Schema.Literal('auto', 'ruby', 'node', 'python', 'static', 'dockerfile');
|
|
35
|
-
/**
|
|
36
|
+
/** Build strategy hint. `dockerfile` pins the build to the declared Dockerfile. */
|
|
37
|
+
export const BuildStrategy = Schema.Literal('auto', 'buildpack', 'dockerfile', 'nixpacks');
|
|
38
|
+
/** Service type discriminant — drives the platform runtime shape. */
|
|
36
39
|
export const ServiceType = Schema.Literal('web', 'worker', 'cron', 'function');
|
|
37
|
-
/**
|
|
40
|
+
/** Public instance count for user-declared services. */
|
|
41
|
+
export const ManifestServiceInstanceCount = Schema.Number.pipe(Schema.int(), Schema.between(0, 100));
|
|
42
|
+
function validateServiceInstanceRange(service) {
|
|
43
|
+
const min = service.min_instances ?? service.instances;
|
|
44
|
+
const max = service.max_instances ?? service.instances;
|
|
45
|
+
if (min !== undefined && max !== undefined && max < min) {
|
|
46
|
+
return {
|
|
47
|
+
path: ['max_instances'],
|
|
48
|
+
message: 'max_instances must be greater than or equal to min_instances',
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
/** Deploy strategy — `rolling` is the Sylphx default. */
|
|
38
54
|
export const DeployStrategy = Schema.Literal('rolling', 'blue-green', 'immediate');
|
|
39
|
-
/** WWW-apex redirect policy
|
|
55
|
+
/** WWW-apex redirect policy. */
|
|
40
56
|
export const WwwRedirect = Schema.Literal('apex', 'www', 'none');
|
|
41
57
|
// ── [project] ──────────────────────────────────────────────────────────────
|
|
42
58
|
export const ManifestProjectSection = Schema.Struct({
|
|
@@ -61,8 +77,12 @@ export const ManifestBuildSection = Schema.Struct({
|
|
|
61
77
|
* package.json / Gemfile / requirements.txt / Dockerfile.
|
|
62
78
|
*/
|
|
63
79
|
buildpack: Schema.optional(BuildpackName),
|
|
80
|
+
/** High-level build strategy alias used by current sylphx.toml files. */
|
|
81
|
+
strategy: Schema.optional(BuildStrategy),
|
|
64
82
|
/** Override path to Dockerfile (implies buildpack=dockerfile). */
|
|
65
83
|
dockerfile: Schema.optional(Schema.String),
|
|
84
|
+
/** Docker build context path. `context` is the product-facing TOML alias. */
|
|
85
|
+
context: Schema.optional(Schema.String),
|
|
66
86
|
/** Docker build context path (default: repo root). */
|
|
67
87
|
docker_context: Schema.optional(Schema.String),
|
|
68
88
|
/** Custom build command; overrides buildpack default. */
|
|
@@ -78,10 +98,10 @@ export const ManifestBuildSection = Schema.Struct({
|
|
|
78
98
|
export const ManifestDeploySection = Schema.Struct({
|
|
79
99
|
/**
|
|
80
100
|
* Command run before traffic cutover (DB migrations via expand-and-
|
|
81
|
-
* contract). Runs
|
|
101
|
+
* contract). Runs before the new release accepts traffic. ADR-066.2.
|
|
82
102
|
*/
|
|
83
103
|
release_command: Schema.optional(Schema.String),
|
|
84
|
-
/** HTTP path
|
|
104
|
+
/** HTTP readiness path. */
|
|
85
105
|
health_check_path: Schema.optional(Schema.String),
|
|
86
106
|
/** Timeout in seconds. */
|
|
87
107
|
health_check_timeout: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(1, 300))),
|
|
@@ -91,57 +111,86 @@ export const ManifestDeploySection = Schema.Struct({
|
|
|
91
111
|
graceful_shutdown: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(0, 300))),
|
|
92
112
|
});
|
|
93
113
|
// ── [[services]] ───────────────────────────────────────────────────────────
|
|
114
|
+
export const ManifestServiceBuildSection = Schema.Struct({
|
|
115
|
+
strategy: Schema.optional(BuildStrategy),
|
|
116
|
+
dockerfile: Schema.optional(Schema.String),
|
|
117
|
+
context: Schema.optional(Schema.String),
|
|
118
|
+
docker_context: Schema.optional(Schema.String),
|
|
119
|
+
build_command: Schema.optional(Schema.String),
|
|
120
|
+
});
|
|
121
|
+
export const ManifestServiceHealthSection = Schema.Struct({
|
|
122
|
+
mode: Schema.optional(Schema.Literal('http', 'tcp', 'command')),
|
|
123
|
+
path: Schema.optional(Schema.String),
|
|
124
|
+
command: Schema.optional(Schema.String),
|
|
125
|
+
});
|
|
94
126
|
export const ManifestServiceSection = Schema.Struct({
|
|
95
|
-
/** Service name — unique within project.
|
|
127
|
+
/** Service name — unique within project. */
|
|
96
128
|
name: Slug,
|
|
97
129
|
type: ServiceType,
|
|
98
|
-
/**
|
|
130
|
+
/** Per-service build override. Root [build] remains the default. */
|
|
131
|
+
build: Schema.optional(ManifestServiceBuildSection),
|
|
132
|
+
/** Per-service health contract. Platform owns probe translation. */
|
|
133
|
+
health: Schema.optional(ManifestServiceHealthSection),
|
|
134
|
+
/** Service start command. */
|
|
99
135
|
command: Schema.optional(Schema.String),
|
|
100
|
-
/**
|
|
136
|
+
/** Service port; required for `web` when it cannot be detected automatically. */
|
|
101
137
|
port: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(1, 65535))),
|
|
102
|
-
/**
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
*/
|
|
106
|
-
internal_port: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(1, 65535))),
|
|
107
|
-
/** Replica count. Ignored for `cron`. */
|
|
108
|
-
replicas: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(0, 100))),
|
|
109
|
-
/** Compute size; maps to per-service K8s resources.requests/limits. */
|
|
138
|
+
/** Explicit instance count. Ignored for `cron`. */
|
|
139
|
+
instances: Schema.optional(ManifestServiceInstanceCount),
|
|
140
|
+
/** Compute size; maps to per-service runtime resources. */
|
|
110
141
|
instance_type: Schema.optional(MachineSize),
|
|
111
142
|
/** Required when type=cron. Standard 5-field cron expression. */
|
|
112
143
|
cron_schedule: Schema.optional(Schema.String),
|
|
113
144
|
/** Optional per-service region override. */
|
|
114
145
|
regions: Schema.optional(Schema.Array(ManifestRegion)),
|
|
115
|
-
/**
|
|
116
|
-
* Scale-to-zero (KEDA). `false` (default) = pinned at `min_replicas >= 1`;
|
|
117
|
-
* `true` = the reconciler emits a KEDA ScaledObject and lets KEDA drive
|
|
118
|
-
* the replica count from 0 → N on incoming traffic (docs/design/scale-to-zero.md).
|
|
119
|
-
*/
|
|
146
|
+
/** Scale-to-zero. `false` (default) = pinned at `min_instances >= 1`. */
|
|
120
147
|
scale_to_zero: Schema.optional(Schema.Boolean),
|
|
121
148
|
/**
|
|
122
|
-
* Seconds of no traffic before
|
|
123
|
-
*
|
|
149
|
+
* Seconds of no traffic before the platform scales the service down to 0.
|
|
150
|
+
* Only meaningful when `scale_to_zero=true`.
|
|
124
151
|
* Range: 60s–3600s. Default: 300 (5 min).
|
|
125
152
|
*/
|
|
126
153
|
idle_timeout_seconds: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(60, 3600))),
|
|
127
154
|
/**
|
|
128
|
-
* Minimum
|
|
129
|
-
* Setting `
|
|
130
|
-
* floor while still
|
|
155
|
+
* Minimum instance count. Default: `0` when `scale_to_zero=true`, else `1`.
|
|
156
|
+
* Setting `min_instances=1` alongside `scale_to_zero=true` keeps a warm
|
|
157
|
+
* floor while still allowing horizontal scale-out beyond 1.
|
|
131
158
|
*/
|
|
132
|
-
|
|
159
|
+
min_instances: Schema.optional(ManifestServiceInstanceCount),
|
|
160
|
+
/** Optional upper bound for platform-managed horizontal scale-out. */
|
|
161
|
+
max_instances: Schema.optional(ManifestServiceInstanceCount),
|
|
133
162
|
/** Per-service env var merge — refs entries from top-level [env]. */
|
|
134
163
|
env: Schema.optional(Schema.Array(Schema.String)),
|
|
135
|
-
/**
|
|
164
|
+
/**
|
|
165
|
+
* Reserved for declarative service-scoped managed resource bindings.
|
|
166
|
+
* Current push-webhook support is environment-scoped via top-level [resources.*],
|
|
167
|
+
* so deploy parsing fails closed if this field is present.
|
|
168
|
+
*/
|
|
136
169
|
resources: Schema.optional(Schema.Array(Slug)),
|
|
170
|
+
/** Paths whose changes should trigger this service in monorepos. */
|
|
171
|
+
watch_paths: Schema.optional(Schema.Array(Schema.String)),
|
|
172
|
+
}).pipe(Schema.filter(validateServiceInstanceRange));
|
|
173
|
+
// ── [database] ─────────────────────────────────────────────────────────────
|
|
174
|
+
export const ManifestMigrationEngine = Schema.Literal('atlas', 'drizzle', 'prisma', 'alembic', 'flyway', 'goose', 'sqlx', 'custom');
|
|
175
|
+
export const ManifestMigrationDestructivePolicy = Schema.Literal('require-approval', 'allow');
|
|
176
|
+
export const ManifestMigrationsSection = Schema.Struct({
|
|
177
|
+
engine: ManifestMigrationEngine,
|
|
178
|
+
dir: Schema.optional(Schema.String),
|
|
179
|
+
image: Slug,
|
|
180
|
+
command: Schema.String.pipe(Schema.minLength(1)),
|
|
181
|
+
timeout: Schema.optional(Schema.String),
|
|
182
|
+
destructive_policy: Schema.optional(ManifestMigrationDestructivePolicy),
|
|
183
|
+
});
|
|
184
|
+
export const ManifestDatabaseSection = Schema.Struct({
|
|
185
|
+
migrations: Schema.optional(ManifestMigrationsSection),
|
|
137
186
|
});
|
|
138
187
|
// ── [env] ──────────────────────────────────────────────────────────────────
|
|
139
188
|
/**
|
|
140
189
|
* Env var value — literal, secret reference, or resource attribute.
|
|
141
190
|
* Values are NEVER stored in the manifest — always by reference.
|
|
142
191
|
* `from_secret` resolves via the platform `secrets` table (AES-256-GCM).
|
|
143
|
-
* `from_resource` + `attr` resolves
|
|
144
|
-
*
|
|
192
|
+
* `from_resource` + `attr` resolves product-level outputs such as
|
|
193
|
+
* `database_url`, `cache_url`, `search_url`, and `volume_mount_path`.
|
|
145
194
|
*/
|
|
146
195
|
export const ManifestEnvValue = Schema.Union(Schema.Struct({ value: Schema.String }), Schema.Struct({ from_secret: Schema.String }), Schema.Struct({ from_resource: Schema.String, attr: Schema.String }));
|
|
147
196
|
// ── [[domains]] ────────────────────────────────────────────────────────────
|
|
@@ -157,33 +206,60 @@ export const ManifestDomainSection = Schema.Struct({
|
|
|
157
206
|
aliases: Schema.optional(Schema.Array(Schema.String)),
|
|
158
207
|
});
|
|
159
208
|
// ── [resources] ────────────────────────────────────────────────────────────
|
|
160
|
-
export const
|
|
209
|
+
export const ManifestManagedResourceTier = ResourceTier;
|
|
210
|
+
export const PostgresTier = ManifestManagedResourceTier;
|
|
161
211
|
export const PostgresVersion = Schema.Literal('15', '16', '17');
|
|
162
|
-
export const SearchTier =
|
|
212
|
+
export const SearchTier = ManifestManagedResourceTier;
|
|
213
|
+
export const KvTier = ManifestManagedResourceTier;
|
|
214
|
+
export const ManifestVolumeTier = ManifestManagedResourceTier;
|
|
215
|
+
export const ManifestVolumeSharing = VolumeSharing;
|
|
163
216
|
export const ManifestDatabaseEngine = Schema.Literal('postgres');
|
|
164
|
-
export const ManifestSearchEngine = Schema.Literal('typesense');
|
|
165
217
|
export const ManifestDatabaseResource = Schema.Struct({
|
|
166
218
|
/** Capability-specific engine. PostgreSQL is the first supported database engine. */
|
|
167
219
|
engine: Schema.optional(ManifestDatabaseEngine),
|
|
168
|
-
/**
|
|
220
|
+
/** Product tier; IMMUTABLE after creation. */
|
|
169
221
|
tier: PostgresTier,
|
|
170
222
|
storage_gb: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(1, 10000))),
|
|
171
223
|
version: Schema.optional(PostgresVersion),
|
|
172
|
-
/**
|
|
173
|
-
|
|
224
|
+
/** Optional managed read replicas. */
|
|
225
|
+
read_replicas: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(0, 5))),
|
|
174
226
|
/** Branch-per-preview (P0 gap #4 sibling). */
|
|
175
227
|
branch_on_preview: Schema.optional(Schema.Boolean),
|
|
176
228
|
});
|
|
229
|
+
export const ManifestKvResource = Schema.Struct({
|
|
230
|
+
engine: Schema.optionalWith(Schema.Never, { exact: true }),
|
|
231
|
+
tier: KvTier,
|
|
232
|
+
storage_gb: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(1, 10000))),
|
|
233
|
+
});
|
|
177
234
|
export const ManifestSearchResource = Schema.Struct({
|
|
178
|
-
|
|
179
|
-
engine: Schema.optional(ManifestSearchEngine),
|
|
235
|
+
engine: Schema.optionalWith(Schema.Never, { exact: true }),
|
|
180
236
|
tier: SearchTier,
|
|
181
237
|
storage_gb: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(1, 10000))),
|
|
182
|
-
|
|
238
|
+
});
|
|
239
|
+
export const ManifestVolumeResource = Schema.Struct({
|
|
240
|
+
tier: ManifestVolumeTier,
|
|
241
|
+
storage_gb: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(1, 10000))),
|
|
242
|
+
/**
|
|
243
|
+
* Public sharing intent. The platform maps this to the best backend storage
|
|
244
|
+
* class without exposing implementation details.
|
|
245
|
+
*/
|
|
246
|
+
sharing: Schema.optional(ManifestVolumeSharing),
|
|
247
|
+
/**
|
|
248
|
+
* Optional env-facing path metadata. This does not mount the volume into an
|
|
249
|
+
* app service by itself; service/task mounts stay explicit bindings.
|
|
250
|
+
*/
|
|
251
|
+
mount_path: Schema.optional(Schema.String.pipe(Schema.pattern(/^\//))),
|
|
252
|
+
/**
|
|
253
|
+
* Binding role controls env var prefix. Example: role="workspace" emits
|
|
254
|
+
* WORKSPACE_VOLUME_ID for a volume binding.
|
|
255
|
+
*/
|
|
256
|
+
role: Schema.optional(Slug),
|
|
183
257
|
});
|
|
184
258
|
export const ManifestResourcesSection = Schema.Struct({
|
|
185
259
|
database: Schema.optional(ManifestDatabaseResource),
|
|
260
|
+
kv: Schema.optional(ManifestKvResource),
|
|
186
261
|
search: Schema.optional(ManifestSearchResource),
|
|
262
|
+
volume: Schema.optional(ManifestVolumeResource),
|
|
187
263
|
});
|
|
188
264
|
// ── [ci] ───────────────────────────────────────────────────────────────────
|
|
189
265
|
export const ManifestCiSection = Schema.Struct({
|
|
@@ -209,17 +285,17 @@ export const ManifestServiceOverride = Schema.Struct({
|
|
|
209
285
|
type: Schema.optional(ServiceType),
|
|
210
286
|
command: Schema.optional(Schema.String),
|
|
211
287
|
port: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(1, 65535))),
|
|
212
|
-
|
|
213
|
-
replicas: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(0, 100))),
|
|
288
|
+
instances: Schema.optional(ManifestServiceInstanceCount),
|
|
214
289
|
instance_type: Schema.optional(MachineSize),
|
|
215
290
|
cron_schedule: Schema.optional(Schema.String),
|
|
216
291
|
regions: Schema.optional(Schema.Array(ManifestRegion)),
|
|
217
292
|
scale_to_zero: Schema.optional(Schema.Boolean),
|
|
218
293
|
idle_timeout_seconds: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(60, 3600))),
|
|
219
|
-
|
|
294
|
+
min_instances: Schema.optional(ManifestServiceInstanceCount),
|
|
295
|
+
max_instances: Schema.optional(ManifestServiceInstanceCount),
|
|
220
296
|
env: Schema.optional(Schema.Array(Schema.String)),
|
|
221
297
|
resources: Schema.optional(Schema.Array(Slug)),
|
|
222
|
-
});
|
|
298
|
+
}).pipe(Schema.filter(validateServiceInstanceRange));
|
|
223
299
|
export const ManifestEnvironmentOverride = Schema.Struct({
|
|
224
300
|
/** Shallow-merge over top-level [env]. */
|
|
225
301
|
env: Schema.optional(Schema.Record({ key: Schema.String, value: ManifestEnvValue })),
|
|
@@ -259,6 +335,7 @@ export const SylphxManifest = Schema.Struct({
|
|
|
259
335
|
build: Schema.optional(ManifestBuildSection),
|
|
260
336
|
deploy: Schema.optional(ManifestDeploySection),
|
|
261
337
|
services: Schema.optional(Schema.Array(ManifestServiceSection)),
|
|
338
|
+
database: Schema.optional(ManifestDatabaseSection),
|
|
262
339
|
env: Schema.optional(Schema.Record({ key: Schema.String, value: ManifestEnvValue })),
|
|
263
340
|
domains: Schema.optional(Schema.Array(ManifestDomainSection)),
|
|
264
341
|
environments: Schema.optional(ManifestEnvironmentsMap),
|
|
@@ -273,11 +350,11 @@ export const SylphxManifest = Schema.Struct({
|
|
|
273
350
|
export const SCALE_TO_ZERO_DEFAULTS = {
|
|
274
351
|
/** Idle timeout in seconds when caller didn't provide one. */
|
|
275
352
|
idleTimeoutSeconds: 300,
|
|
276
|
-
/** Min
|
|
353
|
+
/** Min instances when the service opted into scale-to-zero. */
|
|
277
354
|
minReplicasScaleToZero: 0,
|
|
278
|
-
/** Min
|
|
355
|
+
/** Min instances when the service did NOT opt in (pinned warm). */
|
|
279
356
|
minReplicasWarm: 1,
|
|
280
|
-
/** Max
|
|
357
|
+
/** Max instances fallback when neither manifest nor compute profile specify. */
|
|
281
358
|
maxReplicasDefault: 10,
|
|
282
359
|
};
|
|
283
360
|
/**
|
|
@@ -289,7 +366,7 @@ export const SCALE_TO_ZERO_DEFAULTS = {
|
|
|
289
366
|
* Pass `null`/`undefined` for "no scale-to-zero".
|
|
290
367
|
* @param explicitMax - Optional per-tier ceiling (e.g. resolved from
|
|
291
368
|
* compute profile). Takes precedence over the static
|
|
292
|
-
* 10-
|
|
369
|
+
* 10-instance fallback but not over an input.maxReplicas.
|
|
293
370
|
*/
|
|
294
371
|
export function resolveScaleToZeroDefaults(input, explicitMax) {
|
|
295
372
|
const scaleToZero = input?.scaleToZero ?? false;
|
|
@@ -13,8 +13,6 @@ export declare const ProjectEnvironmentSummary: Schema.Struct<{
|
|
|
13
13
|
isActive: Schema.optional<typeof Schema.Boolean>;
|
|
14
14
|
publicKey: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
15
15
|
secretKeyPrefix: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
16
|
-
deployAppId: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
17
|
-
namespace: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
18
16
|
githubRepo: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
19
17
|
githubBranch: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
20
18
|
customDomains: Schema.optional<Schema.NullOr<Schema.Array$<typeof Schema.String>>>;
|
|
@@ -49,8 +47,6 @@ export declare const Project: Schema.Struct<{
|
|
|
49
47
|
isActive: Schema.optional<typeof Schema.Boolean>;
|
|
50
48
|
publicKey: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
51
49
|
secretKeyPrefix: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
52
|
-
deployAppId: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
53
|
-
namespace: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
54
50
|
githubRepo: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
55
51
|
githubBranch: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
56
52
|
customDomains: Schema.optional<Schema.NullOr<Schema.Array$<typeof Schema.String>>>;
|
|
@@ -88,8 +84,6 @@ export declare const CreateProjectResult: Schema.Struct<{
|
|
|
88
84
|
isActive: Schema.optional<typeof Schema.Boolean>;
|
|
89
85
|
publicKey: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
90
86
|
secretKeyPrefix: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
91
|
-
deployAppId: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
92
|
-
namespace: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
93
87
|
githubRepo: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
94
88
|
githubBranch: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
95
89
|
customDomains: Schema.optional<Schema.NullOr<Schema.Array$<typeof Schema.String>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAG/B,8DAA8D;AAC9D,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAG/B,8DAA8D;AAC9D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;EAapC,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAA;AAE7E,eAAO,MAAM,OAAO;;;;;;;;;IASnB,wFAAwF;;;;;;;;;;;;;;;;;;;;;;;;EAavF,CAAA;AACF,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAA;AAEzC,yEAAyE;AACzE,eAAO,MAAM,mBAAmB;;;;;;;;;;QAjB/B,wFAAwF;;;;;;;;;;;;;;;;;;;;;;;;;EAmBvF,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAA;AAEjE,qEAAqE;AACrE,eAAO,MAAM,mBAAmB;;;;;EAK9B,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAA;AAEjE,eAAO,MAAM,kBAAkB;;;;;;;;;;EAU7B,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAA;AAE/D,eAAO,MAAM,kBAAkB;;;;;;;;EAQ7B,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAA"}
|
package/dist/schemas/project.js
CHANGED
|
@@ -14,8 +14,6 @@ export const ProjectEnvironmentSummary = Schema.Struct({
|
|
|
14
14
|
isActive: Schema.optional(Schema.Boolean),
|
|
15
15
|
publicKey: Schema.optional(Schema.NullOr(Schema.String)),
|
|
16
16
|
secretKeyPrefix: Schema.optional(Schema.NullOr(Schema.String)),
|
|
17
|
-
deployAppId: Schema.optional(Schema.NullOr(Schema.String)),
|
|
18
|
-
namespace: Schema.optional(Schema.NullOr(Schema.String)),
|
|
19
17
|
githubRepo: Schema.optional(Schema.NullOr(Schema.String)),
|
|
20
18
|
githubBranch: Schema.optional(Schema.NullOr(Schema.String)),
|
|
21
19
|
customDomains: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
|
|
@@ -15,7 +15,6 @@ export declare const RealtimeAdminChannelNameParams: Schema.Struct<{
|
|
|
15
15
|
export type RealtimeAdminChannelNameParams = typeof RealtimeAdminChannelNameParams.Type;
|
|
16
16
|
export declare const RealtimeAdminStatusResult: Schema.Struct<{
|
|
17
17
|
available: typeof Schema.Boolean;
|
|
18
|
-
provider: typeof Schema.String;
|
|
19
18
|
}>;
|
|
20
19
|
export type RealtimeAdminStatusResult = typeof RealtimeAdminStatusResult.Type;
|
|
21
20
|
export declare const RealtimeAdminChannel: Schema.Struct<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-admin.d.ts","sourceRoot":"","sources":["../../src/schemas/realtime-admin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;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;EAA6C,CAAA;AAC1F,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAC,IAAI,CAAA"}
|
|
@@ -9,7 +9,6 @@ export const RealtimeAdminProjectIdQuery = Schema.Struct({ projectId: Schema.Str
|
|
|
9
9
|
export const RealtimeAdminChannelNameParams = Schema.Struct({ channelName: Schema.String });
|
|
10
10
|
export const RealtimeAdminStatusResult = Schema.Struct({
|
|
11
11
|
available: Schema.Boolean,
|
|
12
|
-
provider: Schema.String,
|
|
13
12
|
});
|
|
14
13
|
export const RealtimeAdminChannel = Schema.Struct({
|
|
15
14
|
name: Schema.String,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Realtime — BaaS plane pub/sub over
|
|
3
|
-
* events (SSE) for subscribe; REST for emit / history. Mirrors
|
|
2
|
+
* Realtime — BaaS plane pub/sub over managed realtime streams. Transport:
|
|
3
|
+
* server-sent events (SSE) for subscribe; REST for emit / history. Mirrors
|
|
4
4
|
* `@sylphx/sdk` `realtime.ts`.
|
|
5
5
|
*/
|
|
6
6
|
import { Schema } from 'effect';
|
package/dist/schemas/realtime.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Realtime — BaaS plane pub/sub over
|
|
3
|
-
* events (SSE) for subscribe; REST for emit / history. Mirrors
|
|
2
|
+
* Realtime — BaaS plane pub/sub over managed realtime streams. Transport:
|
|
3
|
+
* server-sent events (SSE) for subscribe; REST for emit / history. Mirrors
|
|
4
4
|
* `@sylphx/sdk` `realtime.ts`.
|
|
5
5
|
*/
|
|
6
6
|
import { Schema } from 'effect';
|
package/dist/schemas/region.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Plane: `management`. Region catalog is publicly listable (no auth) so
|
|
5
5
|
* docs and the pricing page can enumerate available regions. Customer
|
|
6
|
-
* region pinning remains absent from public contracts until multi-
|
|
6
|
+
* region pinning remains absent from public contracts until multi-region
|
|
7
7
|
* deploy is real.
|
|
8
8
|
*/
|
|
9
9
|
import { Schema } from 'effect';
|
|
@@ -21,22 +21,13 @@ export declare const Region: Schema.Struct<{
|
|
|
21
21
|
id: typeof Schema.String;
|
|
22
22
|
/** DNS-safe slug — e.g. `eu-north-1`. Globally unique, immutable. */
|
|
23
23
|
slug: typeof Schema.String;
|
|
24
|
-
/** Human-readable display name — e.g. `Europe
|
|
24
|
+
/** Human-readable display name — e.g. `Europe North`. */
|
|
25
25
|
name: typeof Schema.String;
|
|
26
|
-
/**
|
|
27
|
-
* K8s API server endpoint for the region's cluster. NULL while
|
|
28
|
-
* `status='coming-soon'` — the region exists as a catalog placeholder.
|
|
29
|
-
* Always redacted to non-operators (the Management API may return
|
|
30
|
-
* `null` even for GA regions).
|
|
31
|
-
*/
|
|
32
|
-
clusterEndpoint: Schema.NullOr<typeof Schema.String>;
|
|
33
26
|
status: Schema.Literal<["coming-soon", "active", "decommissioned"]>;
|
|
34
27
|
/** Data-center latitude for "nearest region" latency estimation. */
|
|
35
28
|
locationLat: Schema.NullOr<typeof Schema.String>;
|
|
36
29
|
/** Data-center longitude for "nearest region" latency estimation. */
|
|
37
30
|
locationLng: Schema.NullOr<typeof Schema.String>;
|
|
38
|
-
/** IPv4 CIDR range of the region's Gateway LB pool. Nullable. */
|
|
39
|
-
gatewayIpRange: Schema.NullOr<typeof Schema.String>;
|
|
40
31
|
createdAt: typeof Schema.String;
|
|
41
32
|
}>;
|
|
42
33
|
export type Region = typeof Region.Type;
|
|
@@ -47,22 +38,13 @@ export declare const ListRegionsResult: Schema.Struct<{
|
|
|
47
38
|
id: typeof Schema.String;
|
|
48
39
|
/** DNS-safe slug — e.g. `eu-north-1`. Globally unique, immutable. */
|
|
49
40
|
slug: typeof Schema.String;
|
|
50
|
-
/** Human-readable display name — e.g. `Europe
|
|
41
|
+
/** Human-readable display name — e.g. `Europe North`. */
|
|
51
42
|
name: typeof Schema.String;
|
|
52
|
-
/**
|
|
53
|
-
* K8s API server endpoint for the region's cluster. NULL while
|
|
54
|
-
* `status='coming-soon'` — the region exists as a catalog placeholder.
|
|
55
|
-
* Always redacted to non-operators (the Management API may return
|
|
56
|
-
* `null` even for GA regions).
|
|
57
|
-
*/
|
|
58
|
-
clusterEndpoint: Schema.NullOr<typeof Schema.String>;
|
|
59
43
|
status: Schema.Literal<["coming-soon", "active", "decommissioned"]>;
|
|
60
44
|
/** Data-center latitude for "nearest region" latency estimation. */
|
|
61
45
|
locationLat: Schema.NullOr<typeof Schema.String>;
|
|
62
46
|
/** Data-center longitude for "nearest region" latency estimation. */
|
|
63
47
|
locationLng: Schema.NullOr<typeof Schema.String>;
|
|
64
|
-
/** IPv4 CIDR range of the region's Gateway LB pool. Nullable. */
|
|
65
|
-
gatewayIpRange: Schema.NullOr<typeof Schema.String>;
|
|
66
48
|
createdAt: typeof Schema.String;
|
|
67
49
|
}>>;
|
|
68
50
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"region.d.ts","sourceRoot":"","sources":["../../src/schemas/region.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,8BAA8B;AAC9B,eAAO,MAAM,YAAY,6DAA4D,CAAA;AACrF,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAA;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,MAAM;IAClB,8EAA8E;;IAE9E,qEAAqE;;IAErE,
|
|
1
|
+
{"version":3,"file":"region.d.ts","sourceRoot":"","sources":["../../src/schemas/region.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,8BAA8B;AAC9B,eAAO,MAAM,YAAY,6DAA4D,CAAA;AACrF,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAA;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,MAAM;IAClB,8EAA8E;;IAE9E,qEAAqE;;IAErE,yDAAyD;;;IAGzD,oEAAoE;;IAEpE,qEAAqE;;;EAGpE,CAAA;AACF,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAA;AAEvC,+BAA+B;AAC/B,eAAO,MAAM,iBAAiB;;QAhB7B,8EAA8E;;QAE9E,qEAAqE;;QAErE,yDAAyD;;;QAGzD,oEAAoE;;QAEpE,qEAAqE;;;;EASpE,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAA"}
|
package/dist/schemas/region.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Plane: `management`. Region catalog is publicly listable (no auth) so
|
|
5
5
|
* docs and the pricing page can enumerate available regions. Customer
|
|
6
|
-
* region pinning remains absent from public contracts until multi-
|
|
6
|
+
* region pinning remains absent from public contracts until multi-region
|
|
7
7
|
* deploy is real.
|
|
8
8
|
*/
|
|
9
9
|
import { Schema } from 'effect';
|
|
@@ -20,22 +20,13 @@ export const Region = Schema.Struct({
|
|
|
20
20
|
id: Schema.String,
|
|
21
21
|
/** DNS-safe slug — e.g. `eu-north-1`. Globally unique, immutable. */
|
|
22
22
|
slug: Schema.String,
|
|
23
|
-
/** Human-readable display name — e.g. `Europe
|
|
23
|
+
/** Human-readable display name — e.g. `Europe North`. */
|
|
24
24
|
name: Schema.String,
|
|
25
|
-
/**
|
|
26
|
-
* K8s API server endpoint for the region's cluster. NULL while
|
|
27
|
-
* `status='coming-soon'` — the region exists as a catalog placeholder.
|
|
28
|
-
* Always redacted to non-operators (the Management API may return
|
|
29
|
-
* `null` even for GA regions).
|
|
30
|
-
*/
|
|
31
|
-
clusterEndpoint: Schema.NullOr(Schema.String),
|
|
32
25
|
status: RegionStatus,
|
|
33
26
|
/** Data-center latitude for "nearest region" latency estimation. */
|
|
34
27
|
locationLat: Schema.NullOr(Schema.String),
|
|
35
28
|
/** Data-center longitude for "nearest region" latency estimation. */
|
|
36
29
|
locationLng: Schema.NullOr(Schema.String),
|
|
37
|
-
/** IPv4 CIDR range of the region's Gateway LB pool. Nullable. */
|
|
38
|
-
gatewayIpRange: Schema.NullOr(Schema.String),
|
|
39
30
|
createdAt: Schema.String,
|
|
40
31
|
});
|
|
41
32
|
/** `GET /regions` response. */
|