@substrat-run/control-plane-api 0.48.1 → 0.50.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/dist/api.d.ts +27 -0
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +464 -21
- package/dist/api.js.map +1 -1
- package/dist/backups.d.ts +93 -0
- package/dist/backups.d.ts.map +1 -0
- package/dist/backups.js +30 -0
- package/dist/backups.js.map +1 -0
- package/dist/cf-observability.d.ts.map +1 -1
- package/dist/cf-observability.js +67 -52
- package/dist/cf-observability.js.map +1 -1
- package/dist/deploy.d.ts +23 -1
- package/dist/deploy.d.ts.map +1 -1
- package/dist/deploy.js.map +1 -1
- package/dist/directory-backup.d.ts +57 -0
- package/dist/directory-backup.d.ts.map +1 -0
- package/dist/directory-backup.js +68 -0
- package/dist/directory-backup.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/mask.d.ts +15 -0
- package/dist/mask.d.ts.map +1 -1
- package/dist/mask.js +25 -1
- package/dist/mask.js.map +1 -1
- package/dist/observability.d.ts +7 -2
- package/dist/observability.d.ts.map +1 -1
- package/dist/r2-backups.d.ts +24 -0
- package/dist/r2-backups.d.ts.map +1 -0
- package/dist/r2-backups.js +175 -0
- package/dist/r2-backups.js.map +1 -0
- package/dist/wfp.d.ts.map +1 -1
- package/dist/wfp.js +107 -0
- package/dist/wfp.js.map +1 -1
- package/package.json +6 -6
package/dist/api.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import type { VerticalClient } from './vertical-client.js';
|
|
|
6
6
|
import type { DeployVerticalFn, FetchVerticalModulesFn } from './deploy.js';
|
|
7
7
|
import type { PatchScriptBindingsFn } from './wfp.js';
|
|
8
8
|
import type { ObservabilityReader } from './observability.js';
|
|
9
|
+
import type { DirectoryBackupStore, ScopeBackupStore } from './backups.js';
|
|
9
10
|
import { type CustomHostnameProvisioner } from './custom-hostnames.js';
|
|
10
11
|
export interface ControlPlaneApiOptions {
|
|
11
12
|
host: ScopeHost;
|
|
@@ -109,6 +110,32 @@ export interface ControlPlaneApiOptions {
|
|
|
109
110
|
* means forgetting that costs a feature, never a leak.
|
|
110
111
|
*/
|
|
111
112
|
observability?: ObservabilityReader;
|
|
113
|
+
/**
|
|
114
|
+
* Where a reap's recoverable copy is stored (#493) — host-injected like
|
|
115
|
+
* `observability`, so this package holds no bucket binding. When present, reaping a
|
|
116
|
+
* scope writes a full-fidelity dump here FIRST and records its ref on the admin-log
|
|
117
|
+
* entry; a store that throws aborts the reap, because a wipe with no copy is exactly
|
|
118
|
+
* what the seam exists to prevent.
|
|
119
|
+
*
|
|
120
|
+
* Absent ⇒ a reap that did not explicitly ask for a backup proceeds without one (the
|
|
121
|
+
* self-host / embedded / test shape, where there is no platform bucket), and one that
|
|
122
|
+
* DID ask is refused 501 rather than silently reaping. That asymmetry is deliberate:
|
|
123
|
+
* the console always asks, so a control plane deployed with the binding missing fails
|
|
124
|
+
* loudly instead of quietly dropping the guarantee — the lesson `PLATFORM_BASE_DOMAINS`
|
|
125
|
+
* taught when it silently went unset.
|
|
126
|
+
*/
|
|
127
|
+
scopeBackups?: ScopeBackupStore;
|
|
128
|
+
/**
|
|
129
|
+
* Where the platform's OWN copies live (#40) — the directory, not a tenant's scope.
|
|
130
|
+
* Host-injected on the same posture as `scopeBackups`, and pointable at the same
|
|
131
|
+
* bucket (the key prefixes keep the two apart) or at a different one.
|
|
132
|
+
*
|
|
133
|
+
* Absent ⇒ the directory backup routes answer 501 and the cron's backup phase is
|
|
134
|
+
* skipped. Loud, never silent: a control plane running with no directory copy is a
|
|
135
|
+
* platform one bug away from unrecoverable, and that must be visible rather than
|
|
136
|
+
* inferred from an absence of backups nobody looked for.
|
|
137
|
+
*/
|
|
138
|
+
directoryBackups?: DirectoryBackupStore;
|
|
112
139
|
/**
|
|
113
140
|
* Issues + polls Cloudflare-for-SaaS custom hostnames (#305, §4.7) — host-injected
|
|
114
141
|
* like `deployVertical`, so this package holds no Cloudflare credential (D-34). When
|
package/dist/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AA+B5B,OAAO,KAAK,EAGV,eAAe,EAMhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAe3D,OAAO,KAAK,EAAe,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACzF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAQtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAEV,oBAAoB,EAEpB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,SAAS,CAAC;IAChB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC3C;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;IAChG;;;;;;;;;OAS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