@fabrika/provider-contract 0.5.2 → 0.5.3
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 +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabrika/provider-contract",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
"test": "bun test"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@fabrika/auth-core": "0.5.
|
|
34
|
+
"@fabrika/auth-core": "0.5.3"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/src/control.ts
CHANGED
|
@@ -60,6 +60,12 @@ export interface ProviderEnvironment {
|
|
|
60
60
|
readonly domain?: string
|
|
61
61
|
/** Canonical externally reachable HTTP(S) origin; independent of provider domain routing. */
|
|
62
62
|
readonly publicOrigin?: string
|
|
63
|
+
/**
|
|
64
|
+
* The exact origins whose pages may call the environment's cross-origin endpoints, as the operator listed them in
|
|
65
|
+
* Control's registry (ADR-0022 "Cross-origin endpoints"). Absent when it lists none. A provider writes them into the
|
|
66
|
+
* application's proxy manifest entry as `crossOrigins`.
|
|
67
|
+
*/
|
|
68
|
+
readonly crossOrigins?: readonly string[]
|
|
63
69
|
readonly namespace?: ProviderDeploymentNamespace
|
|
64
70
|
readonly target: ProviderEnvelope
|
|
65
71
|
readonly artifact: ProviderEnvelope
|
|
@@ -289,6 +295,8 @@ export interface ProviderNamespaceMember {
|
|
|
289
295
|
readonly appId: string
|
|
290
296
|
readonly env: string
|
|
291
297
|
readonly domain?: string
|
|
298
|
+
/** See `ProviderEnvironment.crossOrigins`: the namespace proxy's entry for this member lists them. */
|
|
299
|
+
readonly crossOrigins?: readonly string[]
|
|
292
300
|
readonly artifact: ProviderEnvelope
|
|
293
301
|
/**
|
|
294
302
|
* The secret the namespace proxy authenticates itself to this application environment with (ADR-0022 rule 5).
|