@sylphx/contract 0.5.1 → 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.
Files changed (123) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/endpoint.d.ts +3 -1
  3. package/dist/endpoint.d.ts.map +1 -1
  4. package/dist/endpoints/admin-audit.d.ts +2 -2
  5. package/dist/endpoints/admin-audit.js +2 -2
  6. package/dist/endpoints/admin-bootstrap.js +3 -3
  7. package/dist/endpoints/admin-branch-databases.d.ts +1 -1
  8. package/dist/endpoints/admin-branch-databases.js +2 -2
  9. package/dist/endpoints/admin-envs-spec.d.ts +27 -0
  10. package/dist/endpoints/admin-envs-spec.d.ts.map +1 -0
  11. package/dist/endpoints/admin-envs-spec.js +25 -0
  12. package/dist/endpoints/admin-projects.d.ts +1 -1
  13. package/dist/endpoints/admin-rate-limits.d.ts +1 -1
  14. package/dist/endpoints/admin-rate-limits.js +3 -3
  15. package/dist/endpoints/admin-secrets.d.ts +3 -3
  16. package/dist/endpoints/admin-secrets.js +1 -1
  17. package/dist/endpoints/admin-services.d.ts +3 -3
  18. package/dist/endpoints/admin-services.d.ts.map +1 -1
  19. package/dist/endpoints/admin-services.js +4 -5
  20. package/dist/endpoints/branch-databases.d.ts +13 -7
  21. package/dist/endpoints/branch-databases.d.ts.map +1 -1
  22. package/dist/endpoints/branch-databases.js +3 -3
  23. package/dist/endpoints/databases.d.ts +100 -164
  24. package/dist/endpoints/databases.d.ts.map +1 -1
  25. package/dist/endpoints/databases.js +8 -35
  26. package/dist/endpoints/deployments.d.ts +1 -3
  27. package/dist/endpoints/deployments.d.ts.map +1 -1
  28. package/dist/endpoints/deployments.js +1 -1
  29. package/dist/endpoints/environments.d.ts +11 -42
  30. package/dist/endpoints/environments.d.ts.map +1 -1
  31. package/dist/endpoints/image-opt.d.ts +5 -13
  32. package/dist/endpoints/image-opt.d.ts.map +1 -1
  33. package/dist/endpoints/image-opt.js +6 -18
  34. package/dist/endpoints/kv-admin.d.ts +0 -1
  35. package/dist/endpoints/kv-admin.d.ts.map +1 -1
  36. package/dist/endpoints/organizations.d.ts +8 -6
  37. package/dist/endpoints/organizations.d.ts.map +1 -1
  38. package/dist/endpoints/project-manifest.d.ts +90 -84
  39. package/dist/endpoints/project-manifest.d.ts.map +1 -1
  40. package/dist/endpoints/projects.d.ts +0 -8
  41. package/dist/endpoints/projects.d.ts.map +1 -1
  42. package/dist/endpoints/realtime-admin.d.ts +0 -1
  43. package/dist/endpoints/realtime-admin.d.ts.map +1 -1
  44. package/dist/endpoints/realtime-admin.js +1 -1
  45. package/dist/endpoints/regions.d.ts +2 -4
  46. package/dist/endpoints/regions.d.ts.map +1 -1
  47. package/dist/endpoints/regions.js +2 -2
  48. package/dist/endpoints/tasks.d.ts +2 -6
  49. package/dist/endpoints/tasks.d.ts.map +1 -1
  50. package/dist/hono-app.d.ts +2 -2
  51. package/dist/hono-app.js +2 -2
  52. package/dist/index.d.ts +254 -338
  53. package/dist/index.d.ts.map +1 -1
  54. package/dist/index.js +4 -0
  55. package/dist/schemas/_primitives.d.ts +14 -0
  56. package/dist/schemas/_primitives.d.ts.map +1 -1
  57. package/dist/schemas/_primitives.js +16 -0
  58. package/dist/schemas/admin-audit.d.ts +4 -4
  59. package/dist/schemas/admin-audit.js +3 -3
  60. package/dist/schemas/admin-bootstrap.d.ts +1 -1
  61. package/dist/schemas/admin-bootstrap.js +1 -1
  62. package/dist/schemas/admin-builds.d.ts +1 -1
  63. package/dist/schemas/admin-builds.js +1 -1
  64. package/dist/schemas/admin-envs-spec.d.ts +49 -0
  65. package/dist/schemas/admin-envs-spec.d.ts.map +1 -0
  66. package/dist/schemas/admin-envs-spec.js +58 -0
  67. package/dist/schemas/admin-projects.d.ts +2 -2
  68. package/dist/schemas/admin-projects.js +1 -1
  69. package/dist/schemas/admin-rate-limits.d.ts +2 -2
  70. package/dist/schemas/admin-rate-limits.js +2 -2
  71. package/dist/schemas/admin-secrets.d.ts +14 -14
  72. package/dist/schemas/admin-secrets.d.ts.map +1 -1
  73. package/dist/schemas/admin-secrets.js +10 -10
  74. package/dist/schemas/admin-services.d.ts +18 -22
  75. package/dist/schemas/admin-services.d.ts.map +1 -1
  76. package/dist/schemas/admin-services.js +15 -19
  77. package/dist/schemas/branch-database.d.ts +25 -18
  78. package/dist/schemas/branch-database.d.ts.map +1 -1
  79. package/dist/schemas/branch-database.js +15 -14
  80. package/dist/schemas/database.d.ts +13 -19
  81. package/dist/schemas/database.d.ts.map +1 -1
  82. package/dist/schemas/database.js +7 -19
  83. package/dist/schemas/deployment.d.ts +5 -7
  84. package/dist/schemas/deployment.d.ts.map +1 -1
  85. package/dist/schemas/deployment.js +6 -6
  86. package/dist/schemas/environment.d.ts +17 -31
  87. package/dist/schemas/environment.d.ts.map +1 -1
  88. package/dist/schemas/environment.js +11 -16
  89. package/dist/schemas/ids.d.ts +4 -0
  90. package/dist/schemas/ids.d.ts.map +1 -1
  91. package/dist/schemas/ids.js +2 -0
  92. package/dist/schemas/image-opt.d.ts +10 -11
  93. package/dist/schemas/image-opt.d.ts.map +1 -1
  94. package/dist/schemas/image-opt.js +11 -12
  95. package/dist/schemas/kv-admin.d.ts +0 -1
  96. package/dist/schemas/kv-admin.d.ts.map +1 -1
  97. package/dist/schemas/kv-admin.js +0 -1
  98. package/dist/schemas/organization.d.ts +8 -6
  99. package/dist/schemas/organization.d.ts.map +1 -1
  100. package/dist/schemas/organization.js +11 -6
  101. package/dist/schemas/project-manifest.d.ts +180 -187
  102. package/dist/schemas/project-manifest.d.ts.map +1 -1
  103. package/dist/schemas/project-manifest.js +62 -57
  104. package/dist/schemas/project.d.ts +0 -6
  105. package/dist/schemas/project.d.ts.map +1 -1
  106. package/dist/schemas/project.js +0 -2
  107. package/dist/schemas/realtime-admin.d.ts +0 -1
  108. package/dist/schemas/realtime-admin.d.ts.map +1 -1
  109. package/dist/schemas/realtime-admin.js +0 -1
  110. package/dist/schemas/realtime.d.ts +2 -2
  111. package/dist/schemas/realtime.js +2 -2
  112. package/dist/schemas/region.d.ts +3 -21
  113. package/dist/schemas/region.d.ts.map +1 -1
  114. package/dist/schemas/region.js +2 -11
  115. package/dist/schemas/resources.d.ts +213 -164
  116. package/dist/schemas/resources.d.ts.map +1 -1
  117. package/dist/schemas/resources.js +87 -105
  118. package/dist/schemas/storage.d.ts +1 -1
  119. package/dist/schemas/storage.js +1 -1
  120. package/dist/schemas/tasks.d.ts +3 -8
  121. package/dist/schemas/tasks.d.ts.map +1 -1
  122. package/dist/schemas/tasks.js +1 -4
  123. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sylphx/contract
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#679](https://github.com/SylphxAI/platform/pull/679) [`df3c86e`](https://github.com/SylphxAI/platform/commit/df3c86e210f165070ed1e2f715eeed11ece6f07b) Thanks [@shtse8](https://github.com/shtse8)! - Align organization creation with the runtime SDK contract by supporting server-generated slugs plus optional organization email and metadata.
8
+
3
9
  ## 0.5.1
4
10
 
5
11
  ### Patch Changes
@@ -72,8 +72,10 @@ interface EndpointBase<Method extends HttpMethod = HttpMethod, Path extends stri
72
72
  *
73
73
  * `admin` is a distinct plane covering Console operator-dashboard routes
74
74
  * that customers never consume (super-admin platform administration).
75
+ * `operator` is lower-level platform-owned mutation/debug surface and is
76
+ * intentionally excluded from public OpenAPI snapshots.
75
77
  */
76
- readonly plane?: 'management' | 'baas' | 'admin';
78
+ readonly plane?: 'management' | 'baas' | 'admin' | 'operator';
77
79
  /**
78
80
  * OpenAPI security requirements. Omit for the default bearerAuth contract;
79
81
  * use an empty array for deliberately public endpoints such as sign-in and
@@ -1 +1 @@
1
- {"version":3,"file":"endpoint.d.ts","sourceRoot":"","sources":["../src/endpoint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA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AAE,eAAe,CAAA;CAClC,GAAG,uBAAuB,CAI1B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC7B,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,QAAQ,GAAG,aAAa,CAAA;CAChD"}
@@ -5,7 +5,7 @@
5
5
  * Production mount: `/admin/audit/*`. The audit tree aggregates data from
6
6
  * many per-project databases. Where the shape is stable we use typed
7
7
  * schemas; where the payload is a pass-through from an evolving external
8
- * surface (Loki, Tempo, Mimir, CNPG) we use envelope-typed schemas; the
8
+ * surface (logs, traces, metrics, databases) we use envelope-typed schemas; the
9
9
  * residual `AdminAuditUnknownResult` cases are documented inline.
10
10
  */
11
11
  export declare const adminAuditEndpoints: {
@@ -442,7 +442,7 @@ export declare const adminAuditEndpoints: {
442
442
  latencyP95: import("effect/Schema").Array$<typeof import("effect/Schema").Unknown>;
443
443
  cpuUsage: import("effect/Schema").Array$<typeof import("effect/Schema").Unknown>;
444
444
  memoryUsage: import("effect/Schema").Array$<typeof import("effect/Schema").Unknown>;
445
- podCount: import("effect/Schema").Array$<typeof import("effect/Schema").Unknown>;
445
+ instanceCount: import("effect/Schema").Array$<typeof import("effect/Schema").Unknown>;
446
446
  }>, undefined>;
447
447
  readonly obsMetricsRange: import("../endpoint.js").Endpoint<"GET", "/operator/audit/projects/:id/obs/metrics/range", import("effect/Schema").Struct<{
448
448
  id: typeof import("effect/Schema").String;
@@ -5,7 +5,7 @@
5
5
  * Production mount: `/admin/audit/*`. The audit tree aggregates data from
6
6
  * many per-project databases. Where the shape is stable we use typed
7
7
  * schemas; where the payload is a pass-through from an evolving external
8
- * surface (Loki, Tempo, Mimir, CNPG) we use envelope-typed schemas; the
8
+ * surface (logs, traces, metrics, databases) we use envelope-typed schemas; the
9
9
  * residual `AdminAuditUnknownResult` cases are documented inline.
10
10
  */
11
11
  import { defineEndpoint } from '../endpoint.js';
@@ -416,7 +416,7 @@ export const adminAuditEndpoints = {
416
416
  method: 'GET',
417
417
  path: '/operator/audit/projects/:id/database/metrics',
418
418
  params: AdminAuditProjectParams,
419
- // CNPG real-time metrics passthrough — upstream operator owns the shape.
419
+ // Database real-time metrics passthrough — upstream operator owns the shape.
420
420
  response: AdminAuditUnknownResult,
421
421
  plane: 'management',
422
422
  summary: 'Database metrics',
@@ -16,10 +16,10 @@ export const adminBootstrapEndpoints = {
16
16
  response: ResetBootstrapWindowResult,
17
17
  plane: 'management',
18
18
  summary: 'Re-open the Appwrite-pattern bootstrap window',
19
- description: 'Forcibly sets the `bootstrap:window:open` Redis key (TTL 600s) so ' +
20
- 'another call to `POST /v1/auth/bootstrap-signup` will succeed. ' +
19
+ description: 'Forcibly re-opens the managed bootstrap window (TTL 600s) so another ' +
20
+ 'call to `POST /v1/auth/bootstrap-signup` will succeed. ' +
21
21
  'Requires a super-admin platform session. The window normally opens ' +
22
- 'exactly once per fresh cluster and closes itself on first successful ' +
22
+ 'exactly once per fresh installation and closes itself on first successful ' +
23
23
  'bootstrap signup; this endpoint is the documented recovery path when ' +
24
24
  'the window expires before an operator can use it, or when a second ' +
25
25
  'recovery admin needs to be created via the same flow.',
@@ -2,7 +2,7 @@
2
2
  * Admin Branch Databases endpoints — operator recovery surface.
3
3
  *
4
4
  * Replaces raw production `branch_databases` UPDATE/INSERT repair steps with
5
- * scoped service-token endpoints. The controller still owns all CNPG/Rook
5
+ * scoped service-token endpoints. The controller still owns all backend
6
6
  * side effects; these endpoints only mutate the branch DB desired-state row.
7
7
  */
8
8
  export declare const adminBranchDatabasesEndpoints: {
@@ -2,7 +2,7 @@
2
2
  * Admin Branch Databases endpoints — operator recovery surface.
3
3
  *
4
4
  * Replaces raw production `branch_databases` UPDATE/INSERT repair steps with
5
- * scoped service-token endpoints. The controller still owns all CNPG/Rook
5
+ * scoped service-token endpoints. The controller still owns all backend
6
6
  * side effects; these endpoints only mutate the branch DB desired-state row.
7
7
  */
8
8
  import { defineEndpoint } from '../endpoint.js';
@@ -32,7 +32,7 @@ export const adminBranchDatabasesEndpoints = {
32
32
  plane: 'management',
33
33
  summary: 'Schedule preview branch database teardown from the operator plane',
34
34
  description: 'Transitions the active branch database for a preview environment to ' +
35
- '`destroying`; the controller performs CNPG/Rook cleanup and stamps ' +
35
+ '`destroying`; the controller performs backend cleanup and stamps ' +
36
36
  '`destroyed`. Re-running while already destroying is idempotent. Requires ' +
37
37
  'service token scope `platform:branchdb:destroy` and emits an `audit_logs` ' +
38
38
  'row with `operation=branch_database_destroy`.',
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Admin Envs-Spec endpoint — operator-only desired-spec patch surface.
3
+ *
4
+ * Scope: `platform:envs:spec`. Plane: operator.
5
+ */
6
+ export declare const adminEnvsSpecEndpoints: {
7
+ readonly patch: import("../endpoint.js").Endpoint<"PATCH", "/operator/envs/:envId/spec", import("effect/Schema").Struct<{
8
+ envId: import("effect/Schema").filter<typeof import("effect/Schema").String>;
9
+ }>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").filter<import("effect/Schema").Struct<{
10
+ runtimeClassName: import("effect/Schema").optional<import("effect/Schema").NullOr<typeof import("effect/Schema").String>>;
11
+ defaultSandboxImage: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").filter<typeof import("effect/Schema").String>>>;
12
+ defaultSecurityContext: import("effect/Schema").optional<import("effect/Schema").Struct<{
13
+ runAsNonRoot: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
14
+ allowPrivilegeEscalation: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
15
+ privileged: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
16
+ }>>;
17
+ defaultHealthAgentMode: import("effect/Schema").optional<import("effect/Schema").Literal<["auto", "passthrough", "disabled"]>>;
18
+ reason: import("effect/Schema").filter<import("effect/Schema").filter<typeof import("effect/Schema").String>>;
19
+ }>>, import("effect/Schema").Struct<{
20
+ envId: import("effect/Schema").filter<typeof import("effect/Schema").String>;
21
+ runtimeClassName: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
22
+ defaultSandboxImage: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
23
+ defaultSecurityContext: import("effect/Schema").NullOr<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
24
+ defaultHealthAgentMode: import("effect/Schema").NullOr<import("effect/Schema").Literal<["auto", "passthrough", "disabled"]>>;
25
+ }>, undefined>;
26
+ };
27
+ //# sourceMappingURL=admin-envs-spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-envs-spec.d.ts","sourceRoot":"","sources":["../../src/endpoints/admin-envs-spec.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;CAkBzB,CAAA"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Admin Envs-Spec endpoint — operator-only desired-spec patch surface.
3
+ *
4
+ * Scope: `platform:envs:spec`. Plane: operator.
5
+ */
6
+ import { defineEndpoint } from '../endpoint.js';
7
+ import { AdminEnvsSpecParams, AdminEnvsSpecPatchInput, AdminEnvsSpecPatchResult, } from '../schemas/admin-envs-spec.js';
8
+ export const adminEnvsSpecEndpoints = {
9
+ patch: defineEndpoint({
10
+ method: 'PATCH',
11
+ path: '/operator/envs/:envId/spec',
12
+ params: AdminEnvsSpecParams,
13
+ body: AdminEnvsSpecPatchInput,
14
+ response: AdminEnvsSpecPatchResult,
15
+ plane: 'operator',
16
+ summary: 'Patch operator-only environment desired-spec fields',
17
+ description: 'Mutates the operator-owned subset of environment desired_spec: ' +
18
+ 'runtimeClassName, defaultSandboxImage, defaultSecurityContext, and ' +
19
+ 'defaultHealthAgentMode. Requires service token scope `platform:envs:spec`, ' +
20
+ 'validates the merged result against the canonical EnvSpec schema, rejects ' +
21
+ 'privileged security context unless runtimeClassName contains `kata`, queues ' +
22
+ 'reconciliation for materialized environments, and emits an audit log.',
23
+ tags: ['admin-envs-spec'],
24
+ }),
25
+ };
@@ -149,7 +149,7 @@ export declare const adminProjectsEndpoints: {
149
149
  role: typeof import("effect/Schema").String;
150
150
  resourceId: typeof import("effect/Schema").String;
151
151
  status: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
152
- clusterName: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
152
+ backendName: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
153
153
  }>>, undefined>;
154
154
  };
155
155
  //# sourceMappingURL=admin-projects.d.ts.map
@@ -15,7 +15,7 @@
15
15
  * 2. DB row for credential type → multiplier.
16
16
  * 3. Inline `CREDENTIAL_MULTIPLIERS_INLINE` defaults if the DB lookup
17
17
  * fails (config-path fail-open). The enforcement layer itself still
18
- * fails CLOSED on Redis outages.
18
+ * fails CLOSED on managed cache outages.
19
19
  *
20
20
  * @see `apps/api/src/server/platform/routes/admin/rate-limits.ts`
21
21
  * @see `packages/core/src/lib/security/rate-limit-credential-multipliers.ts`
@@ -15,7 +15,7 @@
15
15
  * 2. DB row for credential type → multiplier.
16
16
  * 3. Inline `CREDENTIAL_MULTIPLIERS_INLINE` defaults if the DB lookup
17
17
  * fails (config-path fail-open). The enforcement layer itself still
18
- * fails CLOSED on Redis outages.
18
+ * fails CLOSED on managed cache outages.
19
19
  *
20
20
  * @see `apps/api/src/server/platform/routes/admin/rate-limits.ts`
21
21
  * @see `packages/core/src/lib/security/rate-limit-credential-multipliers.ts`
@@ -32,8 +32,8 @@ export const adminRateLimitsEndpoints = {
32
32
  description: 'Returns one row per credential type (`public`, `secret`, `service`, ' +
33
33
  '`session`, `spiffe`, `unknown`) with its multiplier, exempt flag, ' +
34
34
  'operator-supplied notes, and last-update timestamp. Reads ' +
35
- 'authoritatively from the DB; the in-memory cache is refreshed every ' +
36
- '5 minutes via Redis. Requires service token with scope ' +
35
+ 'authoritatively from the DB; the enforcement cache is refreshed every ' +
36
+ '5 minutes. Requires service token with scope ' +
37
37
  '`platform:ratelimits:write`.',
38
38
  tags: ['admin-rate-limits'],
39
39
  }),
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * Auth: service-token + scope `platform:secrets:rotate` (NOT super-admin
8
8
  * session — see schema header for rationale). The endpoint is the audit
9
- * trail; actual K8s secret value updates remain a two-person Ops runbook
9
+ * trail; actual secret value updates remain a two-person Ops runbook
10
10
  * step (`docs/runbooks/secret-rotation.md`).
11
11
  */
12
12
  export declare const adminSecretsEndpoints: {
@@ -17,7 +17,7 @@ export declare const adminSecretsEndpoints: {
17
17
  ageDays: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
18
18
  cadenceDays: typeof import("effect/Schema").Number;
19
19
  overdue: typeof import("effect/Schema").Boolean;
20
- clusterSecretRef: typeof import("effect/Schema").String;
20
+ rotationTarget: typeof import("effect/Schema").String;
21
21
  }>>;
22
22
  }>, undefined>;
23
23
  readonly rotate: import("../endpoint.js").Endpoint<"POST", "/operator/secrets/rotate", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
@@ -32,7 +32,7 @@ export declare const adminSecretsEndpoints: {
32
32
  ageDays: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
33
33
  cadenceDays: typeof import("effect/Schema").Number;
34
34
  overdue: typeof import("effect/Schema").Boolean;
35
- clusterSecretRef: typeof import("effect/Schema").String;
35
+ rotationTarget: typeof import("effect/Schema").String;
36
36
  }>;
37
37
  auditLogId: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
38
38
  message: typeof import("effect/Schema").String;
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * Auth: service-token + scope `platform:secrets:rotate` (NOT super-admin
8
8
  * session — see schema header for rationale). The endpoint is the audit
9
- * trail; actual K8s secret value updates remain a two-person Ops runbook
9
+ * trail; actual secret value updates remain a two-person Ops runbook
10
10
  * step (`docs/runbooks/secret-rotation.md`).
11
11
  */
12
12
  import { defineEndpoint } from '../endpoint.js';
@@ -17,11 +17,11 @@ export declare const adminServicesEndpoints: {
17
17
  readonly imageStatus: import("../endpoint.js").Endpoint<"GET", "/operator/services/image-status", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
18
18
  services: import("effect/Schema").Array$<import("effect/Schema").Struct<{
19
19
  name: typeof import("effect/Schema").String;
20
- dbRef: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
21
- k8sRef: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
20
+ controlRef: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
21
+ runtimeRef: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
22
22
  driftMinutes: import("effect/Schema").NullOr<typeof import("effect/Schema").Number>;
23
23
  inSync: typeof import("effect/Schema").Boolean;
24
- dbUpdatedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
24
+ controlUpdatedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
25
25
  }>>;
26
26
  checkedAt: typeof import("effect/Schema").String;
27
27
  }>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"admin-services.d.ts","sourceRoot":"","sources":["../../src/endpoints/admin-services.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;CAkBzB,CAAA"}
1
+ {"version":3,"file":"admin-services.d.ts","sourceRoot":"","sources":["../../src/endpoints/admin-services.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;CAiBzB,CAAA"}
@@ -21,14 +21,13 @@ export const adminServicesEndpoints = {
21
21
  path: '/operator/services/image-status',
22
22
  response: AdminServiceImageStatusResult,
23
23
  plane: 'management',
24
- summary: 'Per-Platform-service image SSOT vs live K8s drift report',
24
+ summary: 'Per-Platform-service image SSOT vs live runtime drift report',
25
25
  description: 'Returns one row per Platform service (controller, api, runtime, ' +
26
- 'web, exec-server, storage-gateway, storage-worker) reporting both ' +
27
- '`project_services.latest_image_ref` (DB SSOT) and the live ' +
28
- '`Deployment.spec.template.spec.containers[0].image` (K8s). The ' +
26
+ 'web, exec-server, storage-gateway, storage-worker) reporting both the ' +
27
+ 'control-plane artifact reference and the live runtime artifact reference. The ' +
29
28
  'drift-watchdog cronjob polls this every 10 minutes; rows where ' +
30
29
  '`inSync=false` past a 30-minute grace window page on-call. ' +
31
- 'Read-only: never mutates DB or K8s state. Requires service token ' +
30
+ 'Read-only: never mutates control-plane or runtime state. Requires service token ' +
32
31
  'with scope `platform:services:read`.',
33
32
  tags: ['admin-services'],
34
33
  }),
@@ -9,7 +9,7 @@
9
9
  * `project_environments.id` (the preview env's environment row).
10
10
  *
11
11
  * See `docs/design/branch-db-per-preview.md` for the full design. The
12
- * controller owns CNPG provisioning and teardown.
12
+ * controller owns backend provisioning and teardown.
13
13
  */
14
14
  import { Schema } from 'effect';
15
15
  export declare const branchDatabasesEndpoints: {
@@ -21,8 +21,10 @@ export declare const branchDatabasesEndpoints: {
21
21
  projectId: Schema.brand<Schema.filter<typeof Schema.String>, "ProjectId">;
22
22
  envId: Schema.brand<Schema.filter<typeof Schema.String>, "EnvironmentId">;
23
23
  sourceDbId: Schema.brand<Schema.filter<typeof Schema.String>, "ResourceId">;
24
- cnpgClusterName: Schema.NullOr<typeof Schema.String>;
25
- connectionString: Schema.NullOr<typeof Schema.String>;
24
+ connection: Schema.Struct<{
25
+ env: Schema.Array$<typeof Schema.String>;
26
+ maskedUrl: Schema.optional<Schema.NullOr<typeof Schema.String>>;
27
+ }>;
26
28
  dataMode: Schema.Literal<["none", "last-1d", "last-7d", "all"]>;
27
29
  status: Schema.Literal<["provisioning", "ready", "destroying", "destroyed", "degraded"]>;
28
30
  createdAt: typeof Schema.String;
@@ -40,8 +42,10 @@ export declare const branchDatabasesEndpoints: {
40
42
  projectId: Schema.brand<Schema.filter<typeof Schema.String>, "ProjectId">;
41
43
  envId: Schema.brand<Schema.filter<typeof Schema.String>, "EnvironmentId">;
42
44
  sourceDbId: Schema.brand<Schema.filter<typeof Schema.String>, "ResourceId">;
43
- cnpgClusterName: Schema.NullOr<typeof Schema.String>;
44
- connectionString: Schema.NullOr<typeof Schema.String>;
45
+ connection: Schema.Struct<{
46
+ env: Schema.Array$<typeof Schema.String>;
47
+ maskedUrl: Schema.optional<Schema.NullOr<typeof Schema.String>>;
48
+ }>;
45
49
  dataMode: Schema.Literal<["none", "last-1d", "last-7d", "all"]>;
46
50
  status: Schema.Literal<["provisioning", "ready", "destroying", "destroyed", "degraded"]>;
47
51
  createdAt: typeof Schema.String;
@@ -57,8 +61,10 @@ export declare const branchDatabasesEndpoints: {
57
61
  projectId: Schema.brand<Schema.filter<typeof Schema.String>, "ProjectId">;
58
62
  envId: Schema.brand<Schema.filter<typeof Schema.String>, "EnvironmentId">;
59
63
  sourceDbId: Schema.brand<Schema.filter<typeof Schema.String>, "ResourceId">;
60
- cnpgClusterName: Schema.NullOr<typeof Schema.String>;
61
- connectionString: Schema.NullOr<typeof Schema.String>;
64
+ connection: Schema.Struct<{
65
+ env: Schema.Array$<typeof Schema.String>;
66
+ maskedUrl: Schema.optional<Schema.NullOr<typeof Schema.String>>;
67
+ }>;
62
68
  dataMode: Schema.Literal<["none", "last-1d", "last-7d", "all"]>;
63
69
  status: Schema.Literal<["provisioning", "ready", "destroying", "destroyed", "degraded"]>;
64
70
  createdAt: typeof Schema.String;
@@ -1 +1 @@
1
- {"version":3,"file":"branch-databases.d.ts","sourceRoot":"","sources":["../../src/endpoints/branch-databases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkB/B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC3B,CAAA"}
1
+ {"version":3,"file":"branch-databases.d.ts","sourceRoot":"","sources":["../../src/endpoints/branch-databases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkB/B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC3B,CAAA"}
@@ -9,7 +9,7 @@
9
9
  * `project_environments.id` (the preview env's environment row).
10
10
  *
11
11
  * See `docs/design/branch-db-per-preview.md` for the full design. The
12
- * controller owns CNPG provisioning and teardown.
12
+ * controller owns backend provisioning and teardown.
13
13
  */
14
14
  import { Schema } from 'effect';
15
15
  import { defineEndpoint } from '../endpoint.js';
@@ -47,7 +47,7 @@ export const branchDatabasesEndpoints = {
47
47
  params: ProjectEnvPath,
48
48
  response: GetBranchDatabaseResult,
49
49
  plane: 'management',
50
- summary: 'Get branch database status + connection string (when ready)',
50
+ summary: 'Get branch database status and injected connection variables',
51
51
  tags: ['branch-databases'],
52
52
  }),
53
53
  destroy: defineEndpoint({
@@ -57,7 +57,7 @@ export const branchDatabasesEndpoints = {
57
57
  params: ProjectEnvPath,
58
58
  response: DestroyBranchDatabaseResult,
59
59
  plane: 'management',
60
- summary: 'Schedule branch database teardown (controller reclaims PVCs asynchronously)',
60
+ summary: 'Schedule branch database teardown',
61
61
  tags: ['branch-databases'],
62
62
  }),
63
63
  };