@sylphx/contract 0.2.1 → 0.4.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 +6 -0
- package/dist/endpoint.d.ts.map +1 -1
- package/dist/endpoints/admin-projects.d.ts +29 -0
- package/dist/endpoints/admin-projects.d.ts.map +1 -1
- package/dist/endpoints/admin-projects.js +30 -1
- package/dist/endpoints/auth.d.ts +47 -0
- package/dist/endpoints/auth.d.ts.map +1 -1
- package/dist/endpoints/auth.js +19 -1
- package/dist/endpoints/branch-databases.d.ts +27 -28
- package/dist/endpoints/branch-databases.d.ts.map +1 -1
- package/dist/endpoints/branch-databases.js +7 -7
- package/dist/endpoints/databases.d.ts +253 -3
- package/dist/endpoints/databases.d.ts.map +1 -1
- package/dist/endpoints/databases.js +19 -12
- package/dist/endpoints/organizations.d.ts +11 -0
- package/dist/endpoints/organizations.d.ts.map +1 -1
- package/dist/endpoints/organizations.js +8 -1
- package/dist/endpoints/project-manifest.d.ts +26 -18
- package/dist/endpoints/project-manifest.d.ts.map +1 -1
- package/dist/endpoints/secrets.d.ts +6 -6
- package/dist/endpoints/secrets.d.ts.map +1 -1
- package/dist/endpoints/secrets.js +6 -5
- package/dist/endpoints/storage.d.ts +183 -125
- package/dist/endpoints/storage.d.ts.map +1 -1
- package/dist/endpoints/storage.js +96 -59
- package/dist/index.d.ts +323 -164
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/schemas/admin-projects.d.ts +20 -0
- package/dist/schemas/admin-projects.d.ts.map +1 -1
- package/dist/schemas/admin-projects.js +17 -0
- package/dist/schemas/auth.d.ts +65 -0
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/auth.js +32 -0
- package/dist/schemas/branch-database.d.ts +20 -19
- package/dist/schemas/branch-database.d.ts.map +1 -1
- package/dist/schemas/branch-database.js +9 -7
- package/dist/schemas/ids.d.ts +2 -0
- package/dist/schemas/ids.d.ts.map +1 -1
- package/dist/schemas/ids.js +1 -0
- package/dist/schemas/organization.d.ts +24 -2
- package/dist/schemas/organization.d.ts.map +1 -1
- package/dist/schemas/organization.js +13 -1
- package/dist/schemas/project-manifest.d.ts +43 -21
- package/dist/schemas/project-manifest.d.ts.map +1 -1
- package/dist/schemas/project-manifest.js +11 -3
- package/dist/schemas/secret.d.ts +1 -1
- package/dist/schemas/secret.js +2 -2
- package/dist/schemas/storage.d.ts +259 -203
- package/dist/schemas/storage.d.ts.map +1 -1
- package/dist/schemas/storage.js +159 -144
- package/package.json +5 -1
|
@@ -48,6 +48,19 @@ export const MyOrgResponse = Schema.Struct({
|
|
|
48
48
|
memberCount: Schema.Number,
|
|
49
49
|
projects: Schema.Array(OrgProjectSummary),
|
|
50
50
|
});
|
|
51
|
+
export const OrgMemberRole = Schema.Literal('super_admin', 'admin', 'billing', 'analytics', 'developer', 'viewer', 'member');
|
|
52
|
+
export const UserOrganizationMembership = Schema.Struct({
|
|
53
|
+
id: OrgId,
|
|
54
|
+
name: Schema.String,
|
|
55
|
+
slug: Schema.String,
|
|
56
|
+
logoUrl: Schema.NullOr(Schema.String),
|
|
57
|
+
role: OrgMemberRole,
|
|
58
|
+
joinedAt: Schema.String,
|
|
59
|
+
createdAt: Schema.String,
|
|
60
|
+
});
|
|
61
|
+
export const UserOrganizationsResponse = Schema.Struct({
|
|
62
|
+
organizations: Schema.Array(UserOrganizationMembership),
|
|
63
|
+
});
|
|
51
64
|
export const OrgDetail = Schema.Struct({
|
|
52
65
|
id: OrgId,
|
|
53
66
|
name: Schema.String,
|
|
@@ -80,7 +93,6 @@ export const UpdateOrgInput = Schema.Struct({
|
|
|
80
93
|
billingEmail: Schema.optional(Schema.NullOr(Schema.String)),
|
|
81
94
|
logoUrl: Schema.optional(Schema.NullOr(Schema.String)),
|
|
82
95
|
});
|
|
83
|
-
export const OrgMemberRole = Schema.Literal('super_admin', 'admin', 'billing', 'analytics', 'developer', 'viewer', 'member');
|
|
84
96
|
export const OrgMember = Schema.Struct({
|
|
85
97
|
userId: UserId,
|
|
86
98
|
email: Schema.String,
|
|
@@ -8,7 +8,7 @@
|
|
|
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
|
|
11
|
-
* per ADR-055. Immutable fields (slug, org, service.name,
|
|
11
|
+
* per ADR-055. Immutable fields (slug, org, service.name, database.tier,
|
|
12
12
|
* volume.size_gb shrink) are validated at apply time on the server;
|
|
13
13
|
* the local parser only enforces shape.
|
|
14
14
|
*
|
|
@@ -183,7 +183,13 @@ export declare const VolumeAccess: Schema.Literal<["ReadWriteOnce", "ReadWriteMa
|
|
|
183
183
|
export type VolumeAccess = typeof VolumeAccess.Type;
|
|
184
184
|
export declare const SearchTier: Schema.Literal<["micro", "standard"]>;
|
|
185
185
|
export type SearchTier = typeof SearchTier.Type;
|
|
186
|
-
export declare const
|
|
186
|
+
export declare const ManifestDatabaseEngine: Schema.Literal<["postgres"]>;
|
|
187
|
+
export type ManifestDatabaseEngine = typeof ManifestDatabaseEngine.Type;
|
|
188
|
+
export declare const ManifestSearchEngine: Schema.Literal<["typesense"]>;
|
|
189
|
+
export type ManifestSearchEngine = typeof ManifestSearchEngine.Type;
|
|
190
|
+
export declare const ManifestDatabaseResource: Schema.Struct<{
|
|
191
|
+
/** Capability-specific engine. PostgreSQL is the first supported database engine. */
|
|
192
|
+
engine: Schema.optional<Schema.Literal<["postgres"]>>;
|
|
187
193
|
/** CNPG tier; IMMUTABLE after creation. */
|
|
188
194
|
tier: Schema.Literal<["nano", "micro", "standard", "large", "xl"]>;
|
|
189
195
|
storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
|
|
@@ -193,7 +199,7 @@ export declare const ManifestPostgresResource: Schema.Struct<{
|
|
|
193
199
|
/** Branch-per-preview (P0 gap #4 sibling). */
|
|
194
200
|
branch_on_preview: Schema.optional<typeof Schema.Boolean>;
|
|
195
201
|
}>;
|
|
196
|
-
export type
|
|
202
|
+
export type ManifestDatabaseResource = typeof ManifestDatabaseResource.Type;
|
|
197
203
|
export declare const ManifestRedisResource: Schema.Struct<{
|
|
198
204
|
tier: Schema.Literal<["micro", "standard", "large"]>;
|
|
199
205
|
}>;
|
|
@@ -213,11 +219,17 @@ export declare const ManifestVolumeResource: Schema.Struct<{
|
|
|
213
219
|
}>;
|
|
214
220
|
export type ManifestVolumeResource = typeof ManifestVolumeResource.Type;
|
|
215
221
|
export declare const ManifestSearchResource: Schema.Struct<{
|
|
222
|
+
/** Capability-specific engine. Typesense is the first supported search engine. */
|
|
223
|
+
engine: Schema.optional<Schema.Literal<["typesense"]>>;
|
|
216
224
|
tier: Schema.Literal<["micro", "standard"]>;
|
|
225
|
+
storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
|
|
226
|
+
nodes: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
|
|
217
227
|
}>;
|
|
218
228
|
export type ManifestSearchResource = typeof ManifestSearchResource.Type;
|
|
219
229
|
export declare const ManifestResourcesSection: Schema.Struct<{
|
|
220
|
-
|
|
230
|
+
database: Schema.optional<Schema.Struct<{
|
|
231
|
+
/** Capability-specific engine. PostgreSQL is the first supported database engine. */
|
|
232
|
+
engine: Schema.optional<Schema.Literal<["postgres"]>>;
|
|
221
233
|
/** CNPG tier; IMMUTABLE after creation. */
|
|
222
234
|
tier: Schema.Literal<["nano", "micro", "standard", "large", "xl"]>;
|
|
223
235
|
storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
|
|
@@ -243,7 +255,11 @@ export declare const ManifestResourcesSection: Schema.Struct<{
|
|
|
243
255
|
mount: typeof Schema.String;
|
|
244
256
|
}>>>;
|
|
245
257
|
search: Schema.optional<Schema.Struct<{
|
|
258
|
+
/** Capability-specific engine. Typesense is the first supported search engine. */
|
|
259
|
+
engine: Schema.optional<Schema.Literal<["typesense"]>>;
|
|
246
260
|
tier: Schema.Literal<["micro", "standard"]>;
|
|
261
|
+
storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
|
|
262
|
+
nodes: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
|
|
247
263
|
}>>;
|
|
248
264
|
}>;
|
|
249
265
|
export type ManifestResourcesSection = typeof ManifestResourcesSection.Type;
|
|
@@ -382,6 +398,7 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
382
398
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
383
399
|
readonly port?: number | undefined;
|
|
384
400
|
readonly env?: readonly string[] | undefined;
|
|
401
|
+
readonly resources?: readonly string[] | undefined;
|
|
385
402
|
readonly replicas?: number | undefined;
|
|
386
403
|
readonly command?: string | undefined;
|
|
387
404
|
readonly internal_port?: number | undefined;
|
|
@@ -391,7 +408,6 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
391
408
|
readonly scale_to_zero?: boolean | undefined;
|
|
392
409
|
readonly idle_timeout_seconds?: number | undefined;
|
|
393
410
|
readonly min_replicas?: number | undefined;
|
|
394
|
-
readonly resources?: readonly string[] | undefined;
|
|
395
411
|
}[] | undefined;
|
|
396
412
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
397
413
|
readonly env?: {
|
|
@@ -434,6 +450,7 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
434
450
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
435
451
|
readonly port?: number | undefined;
|
|
436
452
|
readonly env?: readonly string[] | undefined;
|
|
453
|
+
readonly resources?: readonly string[] | undefined;
|
|
437
454
|
readonly replicas?: number | undefined;
|
|
438
455
|
readonly command?: string | undefined;
|
|
439
456
|
readonly internal_port?: number | undefined;
|
|
@@ -443,7 +460,6 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
443
460
|
readonly scale_to_zero?: boolean | undefined;
|
|
444
461
|
readonly idle_timeout_seconds?: number | undefined;
|
|
445
462
|
readonly min_replicas?: number | undefined;
|
|
446
|
-
readonly resources?: readonly string[] | undefined;
|
|
447
463
|
}[] | undefined;
|
|
448
464
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
449
465
|
readonly env?: {
|
|
@@ -486,6 +502,7 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
486
502
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
487
503
|
readonly port?: number | undefined;
|
|
488
504
|
readonly env?: readonly string[] | undefined;
|
|
505
|
+
readonly resources?: readonly string[] | undefined;
|
|
489
506
|
readonly replicas?: number | undefined;
|
|
490
507
|
readonly command?: string | undefined;
|
|
491
508
|
readonly internal_port?: number | undefined;
|
|
@@ -495,7 +512,6 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
495
512
|
readonly scale_to_zero?: boolean | undefined;
|
|
496
513
|
readonly idle_timeout_seconds?: number | undefined;
|
|
497
514
|
readonly min_replicas?: number | undefined;
|
|
498
|
-
readonly resources?: readonly string[] | undefined;
|
|
499
515
|
}[] | undefined;
|
|
500
516
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
501
517
|
readonly env?: {
|
|
@@ -538,6 +554,7 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
538
554
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
539
555
|
readonly port?: number | undefined;
|
|
540
556
|
readonly env?: readonly string[] | undefined;
|
|
557
|
+
readonly resources?: readonly string[] | undefined;
|
|
541
558
|
readonly replicas?: number | undefined;
|
|
542
559
|
readonly command?: string | undefined;
|
|
543
560
|
readonly internal_port?: number | undefined;
|
|
@@ -547,7 +564,6 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
547
564
|
readonly scale_to_zero?: boolean | undefined;
|
|
548
565
|
readonly idle_timeout_seconds?: number | undefined;
|
|
549
566
|
readonly min_replicas?: number | undefined;
|
|
550
|
-
readonly resources?: readonly string[] | undefined;
|
|
551
567
|
}[] | undefined;
|
|
552
568
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
553
569
|
readonly env?: {
|
|
@@ -591,6 +607,7 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
591
607
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
592
608
|
readonly port?: number | undefined;
|
|
593
609
|
readonly env?: readonly string[] | undefined;
|
|
610
|
+
readonly resources?: readonly string[] | undefined;
|
|
594
611
|
readonly replicas?: number | undefined;
|
|
595
612
|
readonly command?: string | undefined;
|
|
596
613
|
readonly internal_port?: number | undefined;
|
|
@@ -600,7 +617,6 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
600
617
|
readonly scale_to_zero?: boolean | undefined;
|
|
601
618
|
readonly idle_timeout_seconds?: number | undefined;
|
|
602
619
|
readonly min_replicas?: number | undefined;
|
|
603
|
-
readonly resources?: readonly string[] | undefined;
|
|
604
620
|
}[] | undefined;
|
|
605
621
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
606
622
|
readonly env?: {
|
|
@@ -643,6 +659,7 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
643
659
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
644
660
|
readonly port?: number | undefined;
|
|
645
661
|
readonly env?: readonly string[] | undefined;
|
|
662
|
+
readonly resources?: readonly string[] | undefined;
|
|
646
663
|
readonly replicas?: number | undefined;
|
|
647
664
|
readonly command?: string | undefined;
|
|
648
665
|
readonly internal_port?: number | undefined;
|
|
@@ -652,7 +669,6 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
652
669
|
readonly scale_to_zero?: boolean | undefined;
|
|
653
670
|
readonly idle_timeout_seconds?: number | undefined;
|
|
654
671
|
readonly min_replicas?: number | undefined;
|
|
655
|
-
readonly resources?: readonly string[] | undefined;
|
|
656
672
|
}[] | undefined;
|
|
657
673
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
658
674
|
readonly env?: {
|
|
@@ -695,6 +711,7 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
695
711
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
696
712
|
readonly port?: number | undefined;
|
|
697
713
|
readonly env?: readonly string[] | undefined;
|
|
714
|
+
readonly resources?: readonly string[] | undefined;
|
|
698
715
|
readonly replicas?: number | undefined;
|
|
699
716
|
readonly command?: string | undefined;
|
|
700
717
|
readonly internal_port?: number | undefined;
|
|
@@ -704,7 +721,6 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
704
721
|
readonly scale_to_zero?: boolean | undefined;
|
|
705
722
|
readonly idle_timeout_seconds?: number | undefined;
|
|
706
723
|
readonly min_replicas?: number | undefined;
|
|
707
|
-
readonly resources?: readonly string[] | undefined;
|
|
708
724
|
}[] | undefined;
|
|
709
725
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
710
726
|
readonly env?: {
|
|
@@ -747,6 +763,7 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
747
763
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
748
764
|
readonly port?: number | undefined;
|
|
749
765
|
readonly env?: readonly string[] | undefined;
|
|
766
|
+
readonly resources?: readonly string[] | undefined;
|
|
750
767
|
readonly replicas?: number | undefined;
|
|
751
768
|
readonly command?: string | undefined;
|
|
752
769
|
readonly internal_port?: number | undefined;
|
|
@@ -756,7 +773,6 @@ export declare const ManifestEnvironmentsMap: Schema.SchemaClass<{
|
|
|
756
773
|
readonly scale_to_zero?: boolean | undefined;
|
|
757
774
|
readonly idle_timeout_seconds?: number | undefined;
|
|
758
775
|
readonly min_replicas?: number | undefined;
|
|
759
|
-
readonly resources?: readonly string[] | undefined;
|
|
760
776
|
}[] | undefined;
|
|
761
777
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
762
778
|
readonly env?: {
|
|
@@ -921,6 +937,7 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
921
937
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
922
938
|
readonly port?: number | undefined;
|
|
923
939
|
readonly env?: readonly string[] | undefined;
|
|
940
|
+
readonly resources?: readonly string[] | undefined;
|
|
924
941
|
readonly replicas?: number | undefined;
|
|
925
942
|
readonly command?: string | undefined;
|
|
926
943
|
readonly internal_port?: number | undefined;
|
|
@@ -930,7 +947,6 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
930
947
|
readonly scale_to_zero?: boolean | undefined;
|
|
931
948
|
readonly idle_timeout_seconds?: number | undefined;
|
|
932
949
|
readonly min_replicas?: number | undefined;
|
|
933
|
-
readonly resources?: readonly string[] | undefined;
|
|
934
950
|
}[] | undefined;
|
|
935
951
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
936
952
|
readonly env?: {
|
|
@@ -973,6 +989,7 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
973
989
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
974
990
|
readonly port?: number | undefined;
|
|
975
991
|
readonly env?: readonly string[] | undefined;
|
|
992
|
+
readonly resources?: readonly string[] | undefined;
|
|
976
993
|
readonly replicas?: number | undefined;
|
|
977
994
|
readonly command?: string | undefined;
|
|
978
995
|
readonly internal_port?: number | undefined;
|
|
@@ -982,7 +999,6 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
982
999
|
readonly scale_to_zero?: boolean | undefined;
|
|
983
1000
|
readonly idle_timeout_seconds?: number | undefined;
|
|
984
1001
|
readonly min_replicas?: number | undefined;
|
|
985
|
-
readonly resources?: readonly string[] | undefined;
|
|
986
1002
|
}[] | undefined;
|
|
987
1003
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
988
1004
|
readonly env?: {
|
|
@@ -1025,6 +1041,7 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
1025
1041
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
1026
1042
|
readonly port?: number | undefined;
|
|
1027
1043
|
readonly env?: readonly string[] | undefined;
|
|
1044
|
+
readonly resources?: readonly string[] | undefined;
|
|
1028
1045
|
readonly replicas?: number | undefined;
|
|
1029
1046
|
readonly command?: string | undefined;
|
|
1030
1047
|
readonly internal_port?: number | undefined;
|
|
@@ -1034,7 +1051,6 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
1034
1051
|
readonly scale_to_zero?: boolean | undefined;
|
|
1035
1052
|
readonly idle_timeout_seconds?: number | undefined;
|
|
1036
1053
|
readonly min_replicas?: number | undefined;
|
|
1037
|
-
readonly resources?: readonly string[] | undefined;
|
|
1038
1054
|
}[] | undefined;
|
|
1039
1055
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
1040
1056
|
readonly env?: {
|
|
@@ -1077,6 +1093,7 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
1077
1093
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
1078
1094
|
readonly port?: number | undefined;
|
|
1079
1095
|
readonly env?: readonly string[] | undefined;
|
|
1096
|
+
readonly resources?: readonly string[] | undefined;
|
|
1080
1097
|
readonly replicas?: number | undefined;
|
|
1081
1098
|
readonly command?: string | undefined;
|
|
1082
1099
|
readonly internal_port?: number | undefined;
|
|
@@ -1086,7 +1103,6 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
1086
1103
|
readonly scale_to_zero?: boolean | undefined;
|
|
1087
1104
|
readonly idle_timeout_seconds?: number | undefined;
|
|
1088
1105
|
readonly min_replicas?: number | undefined;
|
|
1089
|
-
readonly resources?: readonly string[] | undefined;
|
|
1090
1106
|
}[] | undefined;
|
|
1091
1107
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
1092
1108
|
readonly env?: {
|
|
@@ -1130,6 +1146,7 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
1130
1146
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
1131
1147
|
readonly port?: number | undefined;
|
|
1132
1148
|
readonly env?: readonly string[] | undefined;
|
|
1149
|
+
readonly resources?: readonly string[] | undefined;
|
|
1133
1150
|
readonly replicas?: number | undefined;
|
|
1134
1151
|
readonly command?: string | undefined;
|
|
1135
1152
|
readonly internal_port?: number | undefined;
|
|
@@ -1139,7 +1156,6 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
1139
1156
|
readonly scale_to_zero?: boolean | undefined;
|
|
1140
1157
|
readonly idle_timeout_seconds?: number | undefined;
|
|
1141
1158
|
readonly min_replicas?: number | undefined;
|
|
1142
|
-
readonly resources?: readonly string[] | undefined;
|
|
1143
1159
|
}[] | undefined;
|
|
1144
1160
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
1145
1161
|
readonly env?: {
|
|
@@ -1182,6 +1198,7 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
1182
1198
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
1183
1199
|
readonly port?: number | undefined;
|
|
1184
1200
|
readonly env?: readonly string[] | undefined;
|
|
1201
|
+
readonly resources?: readonly string[] | undefined;
|
|
1185
1202
|
readonly replicas?: number | undefined;
|
|
1186
1203
|
readonly command?: string | undefined;
|
|
1187
1204
|
readonly internal_port?: number | undefined;
|
|
@@ -1191,7 +1208,6 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
1191
1208
|
readonly scale_to_zero?: boolean | undefined;
|
|
1192
1209
|
readonly idle_timeout_seconds?: number | undefined;
|
|
1193
1210
|
readonly min_replicas?: number | undefined;
|
|
1194
|
-
readonly resources?: readonly string[] | undefined;
|
|
1195
1211
|
}[] | undefined;
|
|
1196
1212
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
1197
1213
|
readonly env?: {
|
|
@@ -1234,6 +1250,7 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
1234
1250
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
1235
1251
|
readonly port?: number | undefined;
|
|
1236
1252
|
readonly env?: readonly string[] | undefined;
|
|
1253
|
+
readonly resources?: readonly string[] | undefined;
|
|
1237
1254
|
readonly replicas?: number | undefined;
|
|
1238
1255
|
readonly command?: string | undefined;
|
|
1239
1256
|
readonly internal_port?: number | undefined;
|
|
@@ -1243,7 +1260,6 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
1243
1260
|
readonly scale_to_zero?: boolean | undefined;
|
|
1244
1261
|
readonly idle_timeout_seconds?: number | undefined;
|
|
1245
1262
|
readonly min_replicas?: number | undefined;
|
|
1246
|
-
readonly resources?: readonly string[] | undefined;
|
|
1247
1263
|
}[] | undefined;
|
|
1248
1264
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
1249
1265
|
readonly env?: {
|
|
@@ -1286,6 +1302,7 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
1286
1302
|
readonly type?: "function" | "cron" | "web" | "worker" | undefined;
|
|
1287
1303
|
readonly port?: number | undefined;
|
|
1288
1304
|
readonly env?: readonly string[] | undefined;
|
|
1305
|
+
readonly resources?: readonly string[] | undefined;
|
|
1289
1306
|
readonly replicas?: number | undefined;
|
|
1290
1307
|
readonly command?: string | undefined;
|
|
1291
1308
|
readonly internal_port?: number | undefined;
|
|
@@ -1295,7 +1312,6 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
1295
1312
|
readonly scale_to_zero?: boolean | undefined;
|
|
1296
1313
|
readonly idle_timeout_seconds?: number | undefined;
|
|
1297
1314
|
readonly min_replicas?: number | undefined;
|
|
1298
|
-
readonly resources?: readonly string[] | undefined;
|
|
1299
1315
|
}[] | undefined;
|
|
1300
1316
|
readonly region?: "fsn1" | "nbg1" | "hel1" | "ash1" | "hil1" | undefined;
|
|
1301
1317
|
readonly env?: {
|
|
@@ -1327,7 +1343,9 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
1327
1343
|
};
|
|
1328
1344
|
}, never>>;
|
|
1329
1345
|
resources: Schema.optional<Schema.Struct<{
|
|
1330
|
-
|
|
1346
|
+
database: Schema.optional<Schema.Struct<{
|
|
1347
|
+
/** Capability-specific engine. PostgreSQL is the first supported database engine. */
|
|
1348
|
+
engine: Schema.optional<Schema.Literal<["postgres"]>>;
|
|
1331
1349
|
/** CNPG tier; IMMUTABLE after creation. */
|
|
1332
1350
|
tier: Schema.Literal<["nano", "micro", "standard", "large", "xl"]>;
|
|
1333
1351
|
storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
|
|
@@ -1353,7 +1371,11 @@ export declare const SylphxManifest: Schema.Struct<{
|
|
|
1353
1371
|
mount: typeof Schema.String;
|
|
1354
1372
|
}>>>;
|
|
1355
1373
|
search: Schema.optional<Schema.Struct<{
|
|
1374
|
+
/** Capability-specific engine. Typesense is the first supported search engine. */
|
|
1375
|
+
engine: Schema.optional<Schema.Literal<["typesense"]>>;
|
|
1356
1376
|
tier: Schema.Literal<["micro", "standard"]>;
|
|
1377
|
+
storage_gb: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
|
|
1378
|
+
nodes: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
|
|
1357
1379
|
}>>;
|
|
1358
1380
|
}>>;
|
|
1359
1381
|
ci: Schema.optional<Schema.Struct<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-manifest.d.ts","sourceRoot":"","sources":["../../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,EACZ,WAAW,CAAC,EAAE,MAAM,GAClB,mBAAmB,CAYrB"}
|
|
@@ -8,7 +8,7 @@
|
|
|
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
|
|
11
|
-
* per ADR-055. Immutable fields (slug, org, service.name,
|
|
11
|
+
* per ADR-055. Immutable fields (slug, org, service.name, database.tier,
|
|
12
12
|
* volume.size_gb shrink) are validated at apply time on the server;
|
|
13
13
|
* the local parser only enforces shape.
|
|
14
14
|
*
|
|
@@ -163,7 +163,11 @@ export const PostgresVersion = Schema.Literal('15', '16', '17');
|
|
|
163
163
|
export const BlobVisibility = Schema.Literal('private', 'public');
|
|
164
164
|
export const VolumeAccess = Schema.Literal('ReadWriteOnce', 'ReadWriteMany');
|
|
165
165
|
export const SearchTier = Schema.Literal('micro', 'standard');
|
|
166
|
-
export const
|
|
166
|
+
export const ManifestDatabaseEngine = Schema.Literal('postgres');
|
|
167
|
+
export const ManifestSearchEngine = Schema.Literal('typesense');
|
|
168
|
+
export const ManifestDatabaseResource = Schema.Struct({
|
|
169
|
+
/** Capability-specific engine. PostgreSQL is the first supported database engine. */
|
|
170
|
+
engine: Schema.optional(ManifestDatabaseEngine),
|
|
167
171
|
/** CNPG tier; IMMUTABLE after creation. */
|
|
168
172
|
tier: PostgresTier,
|
|
169
173
|
storage_gb: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(1, 10000))),
|
|
@@ -189,10 +193,14 @@ export const ManifestVolumeResource = Schema.Struct({
|
|
|
189
193
|
mount: Schema.String,
|
|
190
194
|
});
|
|
191
195
|
export const ManifestSearchResource = Schema.Struct({
|
|
196
|
+
/** Capability-specific engine. Typesense is the first supported search engine. */
|
|
197
|
+
engine: Schema.optional(ManifestSearchEngine),
|
|
192
198
|
tier: SearchTier,
|
|
199
|
+
storage_gb: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(1, 10000))),
|
|
200
|
+
nodes: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.between(1, 9))),
|
|
193
201
|
});
|
|
194
202
|
export const ManifestResourcesSection = Schema.Struct({
|
|
195
|
-
|
|
203
|
+
database: Schema.optional(ManifestDatabaseResource),
|
|
196
204
|
redis: Schema.optional(ManifestRedisResource),
|
|
197
205
|
blob: Schema.optional(ManifestBlobResource),
|
|
198
206
|
volume: Schema.optional(Schema.Array(ManifestVolumeResource)),
|
package/dist/schemas/secret.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export declare const SecretDetail: Schema.Struct<{
|
|
|
58
58
|
}>;
|
|
59
59
|
export type SecretDetail = typeof SecretDetail.Type;
|
|
60
60
|
export declare const CreateSecretInput: Schema.Struct<{
|
|
61
|
-
projectId: typeof Schema.String
|
|
61
|
+
projectId: Schema.brand<Schema.filter<typeof Schema.String>, "ProjectId">;
|
|
62
62
|
key: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
63
63
|
value: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
64
64
|
description: Schema.optional<typeof Schema.String>;
|
package/dist/schemas/secret.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* audited vault with opt-in reveal.
|
|
5
5
|
*/
|
|
6
6
|
import { Schema } from 'effect';
|
|
7
|
-
import { EnvironmentId, SecretId } from './ids.js';
|
|
7
|
+
import { EnvironmentId, ProjectId, SecretId } from './ids.js';
|
|
8
8
|
/** `[A-Z0-9_]+` per apps/api schema — uppercase config-key convention. */
|
|
9
9
|
export const SecretKey = Schema.String.pipe(Schema.minLength(1), Schema.maxLength(255), Schema.pattern(/^[A-Z0-9_]+$/));
|
|
10
10
|
/** Secret values may contain anything up to 64 KiB. */
|
|
@@ -43,7 +43,7 @@ export const SecretDetail = Schema.Struct({
|
|
|
43
43
|
updatedAt: Schema.String,
|
|
44
44
|
});
|
|
45
45
|
export const CreateSecretInput = Schema.Struct({
|
|
46
|
-
projectId:
|
|
46
|
+
projectId: ProjectId,
|
|
47
47
|
key: SecretKey,
|
|
48
48
|
value: SecretValue,
|
|
49
49
|
description: Schema.optional(Schema.String),
|