@ts-cloud/core 0.16.49 → 0.16.50
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/app-mail.d.ts +11 -1
- package/dist/index.js +94 -94
- package/dist/types.d.ts +18 -5
- package/package.json +2 -2
package/dist/app-mail.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CloudConfig, EnvironmentType, MailServiceConfig, MailServiceMode } from './types';
|
|
1
|
+
import type { CloudConfig, ComputeProxyConfig, SiteConfig, EnvironmentType, MailServiceConfig, MailServiceMode } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* The one place that decides what "mail" means for an environment.
|
|
4
4
|
*
|
|
@@ -50,6 +50,9 @@ export interface ResolvedMailService {
|
|
|
50
50
|
enabled: boolean;
|
|
51
51
|
port: number;
|
|
52
52
|
domain?: string;
|
|
53
|
+
aliases: string[];
|
|
54
|
+
tls: boolean;
|
|
55
|
+
secureCookies: boolean;
|
|
53
56
|
};
|
|
54
57
|
/** How outbound mail leaves. */
|
|
55
58
|
delivery: 'direct' | 'ses' | 'none';
|
|
@@ -59,6 +62,7 @@ export interface ResolvedMailService {
|
|
|
59
62
|
accounts: Array<{
|
|
60
63
|
address: string;
|
|
61
64
|
password: string;
|
|
65
|
+
passwordPolicy: 'initial' | 'managed';
|
|
62
66
|
}>;
|
|
63
67
|
/** Where mailboxes, the database and the DKIM keys live. */
|
|
64
68
|
storagePath: string;
|
|
@@ -128,3 +132,9 @@ export declare function mailFirewallPorts(mail: ResolvedMailService): number[];
|
|
|
128
132
|
* mistake this whole module exists to make impossible.
|
|
129
133
|
*/
|
|
130
134
|
export declare function buildMailEnv(mail: ResolvedMailService): Record<string, string>;
|
|
135
|
+
/** Gateway routes derived from the managed service, so there is no second site
|
|
136
|
+
* declaration to keep in sync with its listener or certificate names. */
|
|
137
|
+
export declare function mailWebmailSites(mail: ResolvedMailService): Record<string, SiteConfig>;
|
|
138
|
+
/** A production webmail hostname gets managed HTTPS by default. Explicit
|
|
139
|
+
* gateway settings still win, including custom certificates and ACME contact. */
|
|
140
|
+
export declare function resolveMailProxy(config: Pick<CloudConfig, 'project' | 'sites' | 'environments' | 'infrastructure'>, options?: ResolveMailOptions): ComputeProxyConfig | undefined;
|