@coreframe/config 0.1.11 → 0.1.12
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/index.d.ts +20 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,23 @@ type PreviewTunnelConfig = {
|
|
|
61
61
|
name: string; /** Credential profile used to manage the tunnel. */
|
|
62
62
|
profile: string;
|
|
63
63
|
};
|
|
64
|
+
type PreviewAccessIpContext = {
|
|
65
|
+
/** Exact HTTPS origin configured for the preview application. */appOrigin: string; /** Public hostname assigned to the preview tunnel. */
|
|
66
|
+
hostname: string; /** Identity of the Coreframe-managed preview tunnel. */
|
|
67
|
+
tunnel: {
|
|
68
|
+
name: string;
|
|
69
|
+
profile: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
type PreviewAccessIpResolver = (context: PreviewAccessIpContext) => string | readonly string[] | Promise<string | readonly string[]>;
|
|
73
|
+
type PreviewAccessBypassConfig = {
|
|
74
|
+
/** Name of the application policy Coreframe creates or updates. */policyName?: string; /** One or more IPv4/IPv6 addresses or CIDR ranges, or a resolver evaluated at preview startup. */
|
|
75
|
+
ips: string | readonly string[] | PreviewAccessIpResolver;
|
|
76
|
+
};
|
|
77
|
+
type PreviewAccessConfig = {
|
|
78
|
+
/** Existing self-hosted Cloudflare Access application UUID. */applicationId?: string; /** Access policy used to bypass authentication for the resolved client IP ranges. */
|
|
79
|
+
bypass: PreviewAccessBypassConfig;
|
|
80
|
+
};
|
|
64
81
|
type PreviewConfig = {
|
|
65
82
|
/** Exact HTTPS origin used by browser-facing application URLs. */appOrigin?: string; /** Network interface on which the local preview server listens. */
|
|
66
83
|
host?: string; /** TCP port on which the local preview server listens. */
|
|
@@ -82,7 +99,8 @@ type PreviewConfig = {
|
|
|
82
99
|
* },
|
|
83
100
|
* })
|
|
84
101
|
*/
|
|
85
|
-
tunnel?: PreviewTunnelConfig; /**
|
|
102
|
+
tunnel?: PreviewTunnelConfig; /** Optional Cloudflare Access policy for a public preview tunnel. */
|
|
103
|
+
access?: PreviewAccessConfig; /** Worker bindings supplied during preview. */
|
|
86
104
|
worker?: PreviewWorkerConfig;
|
|
87
105
|
};
|
|
88
106
|
type PreviewWorkerConfig = {
|
|
@@ -188,4 +206,4 @@ declare function readProjectConfig({
|
|
|
188
206
|
declare function importProjectModule<T>(path: string, cwd?: string): Promise<T>;
|
|
189
207
|
declare function importProjectDependency<T>(specifier: string, cwd?: string): Promise<T>;
|
|
190
208
|
//#endregion
|
|
191
|
-
export { AssetsConfig, BreakpointsConfig, CoreframeConfig, DatabaseConfig, DatabaseDialect, DeployConfig, DeployContext, DeployEnvironment, DeployEnvironmentConfig, DeployMode, DeploySmokeCheck, DevConfig, DevPlatform, FlutterConfig, FlutterDeepLinkConfig, I18nConfig, JsonObject, JsonValue, PreviewConfig, PreviewTunnelConfig, PreviewWorkerConfig, PrimaryWorkerContributions, PrimaryWorkerEnvironment, StagingHostnameConfig, WorkerConfig, WorkerDeployEnvironment, WorkerEnvironmentDeclaration, WorkerEnvironmentKind, WorkerEnvironmentVariableConfig, WranglerConfig, breakpointNames, coreframeGeneratedWorkerVariables, coreframeLocalWorkerVariables, coreframeManagedWorkerSecrets, defineConfig, derivePrimaryWorkerConfig, importProjectDependency, importProjectModule, normalizeWorkerEnvironment, primaryWorkerConfigPath, primaryWorkerEnvironments, readProjectBreakpoints, readProjectConfig, validateBreakpoints, validateWorkerInventoryOwnership, workerBindingNames, wranglerEnvironmentNames };
|
|
209
|
+
export { AssetsConfig, BreakpointsConfig, CoreframeConfig, DatabaseConfig, DatabaseDialect, DeployConfig, DeployContext, DeployEnvironment, DeployEnvironmentConfig, DeployMode, DeploySmokeCheck, DevConfig, DevPlatform, FlutterConfig, FlutterDeepLinkConfig, I18nConfig, JsonObject, JsonValue, PreviewAccessBypassConfig, PreviewAccessConfig, PreviewAccessIpContext, PreviewAccessIpResolver, PreviewConfig, PreviewTunnelConfig, PreviewWorkerConfig, PrimaryWorkerContributions, PrimaryWorkerEnvironment, StagingHostnameConfig, WorkerConfig, WorkerDeployEnvironment, WorkerEnvironmentDeclaration, WorkerEnvironmentKind, WorkerEnvironmentVariableConfig, WranglerConfig, breakpointNames, coreframeGeneratedWorkerVariables, coreframeLocalWorkerVariables, coreframeManagedWorkerSecrets, defineConfig, derivePrimaryWorkerConfig, importProjectDependency, importProjectModule, normalizeWorkerEnvironment, primaryWorkerConfigPath, primaryWorkerEnvironments, readProjectBreakpoints, readProjectConfig, validateBreakpoints, validateWorkerInventoryOwnership, workerBindingNames, wranglerEnvironmentNames };
|