@fabrika/provider-contract 0.0.25 → 0.0.26
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/package.json +2 -2
- package/src/control.ts +14 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabrika/provider-contract",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
"test": "bun test"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@fabrika/auth-core": "^0.0.
|
|
29
|
+
"@fabrika/auth-core": "^0.0.26"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/src/control.ts
CHANGED
|
@@ -212,12 +212,26 @@ export interface ProviderNamespaceFact {
|
|
|
212
212
|
readonly resource?: true
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
+
/**
|
|
216
|
+
* One public host this namespace's own entry point answers on, with the listener port that publishes it.
|
|
217
|
+
*
|
|
218
|
+
* Only the provider knows how a host comes to exist — Zerops generates one per published HTTP port — and
|
|
219
|
+
* core knows which of them an application environment already claims, so the provider names them and core
|
|
220
|
+
* marks them. A namespace whose domains are bound out of band names none: the provider cannot see them.
|
|
221
|
+
*/
|
|
222
|
+
export interface ProviderNamespaceHost {
|
|
223
|
+
readonly host: string
|
|
224
|
+
readonly port: number
|
|
225
|
+
}
|
|
226
|
+
|
|
215
227
|
/** Provider-owned operator copy for a planned or persisted namespace. */
|
|
216
228
|
export interface ProviderNamespacePresentation {
|
|
217
229
|
readonly preset: string
|
|
218
230
|
readonly title: string
|
|
219
231
|
readonly facts: readonly ProviderNamespaceFact[]
|
|
220
232
|
readonly instructions: readonly string[]
|
|
233
|
+
/** The hosts this namespace can serve, so an operator can name one as an environment's domain. */
|
|
234
|
+
readonly hosts?: readonly ProviderNamespaceHost[]
|
|
221
235
|
}
|
|
222
236
|
|
|
223
237
|
/** A mutation-free preview that can be submitted unchanged to namespace creation. */
|