@web-ts-toolkit/email-service 0.0.0-stage → 0.73.0

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/smtp.d.mts ADDED
@@ -0,0 +1,30 @@
1
+ import { S as SmtpCapacity, o as EmailProvider, z as SmtpSnapshot } from './provider-DC_av0SQ.mjs';
2
+
3
+ /** Configuration for a direct, unpooled ESMTP connection with verified TLS 1.2 or newer. */
4
+ type SmtpProviderOptions = {
5
+ key: string;
6
+ /** Must match the prepared snapshot and worker for opted-in messages. Omit for the V1 cap of 50. */
7
+ smtpCapacity?: SmtpCapacity;
8
+ /** ASCII DNS hostname or IP literal, without a URL, port or IPv6 brackets. */
9
+ host: string;
10
+ /** Defaults to 465 for implicit TLS or 587 for required STARTTLS. */
11
+ port?: number;
12
+ tls: 'implicit' | 'starttls';
13
+ /** Optional DNS name for SNI and certificate verification. Otherwise verify `host`, including IP SANs. */
14
+ servername?: string;
15
+ /** PEM CA certificates (one per entry). Replaces the default Node trust roots when provided. */
16
+ ca?: readonly string[];
17
+ /** Optional ESMTP PLAIN/LOGIN credentials, used only after certificate verification. */
18
+ auth?: {
19
+ user: string;
20
+ pass: string;
21
+ };
22
+ };
23
+ /**
24
+ * Create a live SMTP profile using the optional Nodemailer peer for MIME. Construction and
25
+ * `prepare` do no network I/O. Each prepared `submit` is one-shot, with no retry or pool.
26
+ * Acceptance only confirms SMTP submission, not inbox delivery. Direct use has no queue guarantees.
27
+ */
28
+ declare function createSmtpProvider(options: SmtpProviderOptions): EmailProvider<SmtpSnapshot>;
29
+
30
+ export { type SmtpProviderOptions, createSmtpProvider };
package/smtp.d.ts ADDED
@@ -0,0 +1,30 @@
1
+ import { S as SmtpCapacity, o as EmailProvider, z as SmtpSnapshot } from './provider-DC_av0SQ.js';
2
+
3
+ /** Configuration for a direct, unpooled ESMTP connection with verified TLS 1.2 or newer. */
4
+ type SmtpProviderOptions = {
5
+ key: string;
6
+ /** Must match the prepared snapshot and worker for opted-in messages. Omit for the V1 cap of 50. */
7
+ smtpCapacity?: SmtpCapacity;
8
+ /** ASCII DNS hostname or IP literal, without a URL, port or IPv6 brackets. */
9
+ host: string;
10
+ /** Defaults to 465 for implicit TLS or 587 for required STARTTLS. */
11
+ port?: number;
12
+ tls: 'implicit' | 'starttls';
13
+ /** Optional DNS name for SNI and certificate verification. Otherwise verify `host`, including IP SANs. */
14
+ servername?: string;
15
+ /** PEM CA certificates (one per entry). Replaces the default Node trust roots when provided. */
16
+ ca?: readonly string[];
17
+ /** Optional ESMTP PLAIN/LOGIN credentials, used only after certificate verification. */
18
+ auth?: {
19
+ user: string;
20
+ pass: string;
21
+ };
22
+ };
23
+ /**
24
+ * Create a live SMTP profile using the optional Nodemailer peer for MIME. Construction and
25
+ * `prepare` do no network I/O. Each prepared `submit` is one-shot, with no retry or pool.
26
+ * Acceptance only confirms SMTP submission, not inbox delivery. Direct use has no queue guarantees.
27
+ */
28
+ declare function createSmtpProvider(options: SmtpProviderOptions): EmailProvider<SmtpSnapshot>;
29
+
30
+ export { type SmtpProviderOptions, createSmtpProvider };