@coreframe/config 0.1.16 → 0.1.18
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 +30 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -163,8 +163,36 @@ type DeploySmokeCheck = {
|
|
|
163
163
|
url?: string; /** HTTP status code or codes that count as a successful check. */
|
|
164
164
|
expectedStatus?: "2xx" | number | number[];
|
|
165
165
|
};
|
|
166
|
+
/** Inputs passed only to the application-owned reviewer deployment entrypoint. Never log them. */
|
|
167
|
+
type ReviewerDeployContext = DeployContext & {
|
|
168
|
+
/** Deployment database dialect; no local database lifecycle is started. */dialect: DatabaseDialect; /** Deployment database credentials using the same connection selection as migrations; no local fallbacks. */
|
|
169
|
+
env: NodeJS.ProcessEnv; /** Dedicated reviewer email, normalized to lowercase. */
|
|
170
|
+
email: string; /** Password hashed when creating the account and used for credential and HTTPS sign-in verification. */
|
|
171
|
+
password: string;
|
|
172
|
+
};
|
|
173
|
+
/** Application-owned provisioning and verification, independent of local/demo seeds. */
|
|
174
|
+
type ReviewerDeployModule = {
|
|
175
|
+
/** Validate app-specific configuration before the deployment mutates external state. */validate(context: Omit<ReviewerDeployContext, "releaseName" | "version">): Promise<void> | void;
|
|
176
|
+
/**
|
|
177
|
+
* Create or check the dedicated identity and prepare isolated app data. Must preserve
|
|
178
|
+
* credentials.
|
|
179
|
+
*/
|
|
180
|
+
provision(context: ReviewerDeployContext): Promise<{
|
|
181
|
+
userId: string;
|
|
182
|
+
}>; /** Sign in through normal deployed authentication and assert application readiness. */
|
|
183
|
+
verify(context: ReviewerDeployContext, identity: {
|
|
184
|
+
userId: string;
|
|
185
|
+
}): Promise<void>;
|
|
186
|
+
};
|
|
166
187
|
type DeployEnvironmentConfig = {
|
|
167
|
-
/**
|
|
188
|
+
/**
|
|
189
|
+
* Explicitly enable required reviewer provisioning for this environment. Omit to leave it
|
|
190
|
+
* untouched.
|
|
191
|
+
*/
|
|
192
|
+
reviewer?: {
|
|
193
|
+
/** Project-relative module exporting validate, provision, and verify functions. */entrypoint: string;
|
|
194
|
+
}; /** Public application URL for the deployment environment. */
|
|
195
|
+
url?: string;
|
|
168
196
|
};
|
|
169
197
|
type StagingHostnameConfig = {
|
|
170
198
|
/** Prefix added to generated staging DNS labels. */managedLabelPrefix: string; /** Parent hostname under which staging hostnames are generated. */
|
|
@@ -220,4 +248,4 @@ declare function readProjectConfig({
|
|
|
220
248
|
declare function importProjectModule<T>(path: string, cwd?: string): Promise<T>;
|
|
221
249
|
declare function importProjectDependency<T>(specifier: string, cwd?: string): Promise<T>;
|
|
222
250
|
//#endregion
|
|
223
|
-
export { AssetsConfig, BreakpointsConfig, CoreframeConfig, DashboardConfig, DatabaseConfig, DatabaseDialect, DeployConfig, DeployContext, DeployEnvironment, DeployEnvironmentConfig, DeployMode, DeploySmokeCheck, DevConfig, DevPlatform, FlutterConfig, FlutterDeepLinkConfig, I18nConfig, JobsConfig, 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 };
|
|
251
|
+
export { AssetsConfig, BreakpointsConfig, CoreframeConfig, DashboardConfig, DatabaseConfig, DatabaseDialect, DeployConfig, DeployContext, DeployEnvironment, DeployEnvironmentConfig, DeployMode, DeploySmokeCheck, DevConfig, DevPlatform, FlutterConfig, FlutterDeepLinkConfig, I18nConfig, JobsConfig, JsonObject, JsonValue, PreviewAccessBypassConfig, PreviewAccessConfig, PreviewAccessIpContext, PreviewAccessIpResolver, PreviewConfig, PreviewTunnelConfig, PreviewWorkerConfig, PrimaryWorkerContributions, PrimaryWorkerEnvironment, ReviewerDeployContext, ReviewerDeployModule, StagingHostnameConfig, WorkerConfig, WorkerDeployEnvironment, WorkerEnvironmentDeclaration, WorkerEnvironmentKind, WorkerEnvironmentVariableConfig, WranglerConfig, breakpointNames, coreframeGeneratedWorkerVariables, coreframeLocalWorkerVariables, coreframeManagedWorkerSecrets, defineConfig, derivePrimaryWorkerConfig, importProjectDependency, importProjectModule, normalizeWorkerEnvironment, primaryWorkerConfigPath, primaryWorkerEnvironments, readProjectBreakpoints, readProjectConfig, validateBreakpoints, validateWorkerInventoryOwnership, workerBindingNames, wranglerEnvironmentNames };
|