@web-ts-toolkit/email-service 0.0.0-stage → 0.72.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/LICENSE +201 -0
- package/README.md +446 -2
- package/index.d.mts +206 -0
- package/index.d.ts +206 -0
- package/index.js +4289 -0
- package/index.mjs +4244 -0
- package/mongoose.d.mts +24 -0
- package/mongoose.d.ts +24 -0
- package/mongoose.js +3045 -0
- package/mongoose.mjs +3020 -0
- package/package.json +89 -4
- package/provider-HisBc6hk.d.mts +183 -0
- package/provider-HisBc6hk.d.ts +183 -0
- package/sendgrid.d.mts +18 -0
- package/sendgrid.d.ts +18 -0
- package/sendgrid.js +1437 -0
- package/sendgrid.mjs +1410 -0
- package/smtp.d.mts +28 -0
- package/smtp.d.ts +28 -0
- package/smtp.js +1449 -0
- package/smtp.mjs +1412 -0
- package/store-D4YAI6Rk.d.mts +346 -0
- package/store-Vb63Gocz.d.ts +346 -0
package/smtp.d.mts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { o as EmailProvider, y as SmtpSnapshot } from './provider-HisBc6hk.mjs';
|
|
2
|
+
|
|
3
|
+
/** Configuration for a direct, unpooled ESMTP connection with verified TLS 1.2 or newer. */
|
|
4
|
+
type SmtpProviderOptions = {
|
|
5
|
+
key: string;
|
|
6
|
+
/** ASCII DNS hostname or IP literal, without a URL, port or IPv6 brackets. */
|
|
7
|
+
host: string;
|
|
8
|
+
/** Defaults to 465 for implicit TLS or 587 for required STARTTLS. */
|
|
9
|
+
port?: number;
|
|
10
|
+
tls: 'implicit' | 'starttls';
|
|
11
|
+
/** Optional DNS name for SNI and certificate verification. Otherwise verify `host`, including IP SANs. */
|
|
12
|
+
servername?: string;
|
|
13
|
+
/** PEM CA certificates (one per entry). Replaces the default Node trust roots when provided. */
|
|
14
|
+
ca?: readonly string[];
|
|
15
|
+
/** Optional ESMTP PLAIN/LOGIN credentials, used only after certificate verification. */
|
|
16
|
+
auth?: {
|
|
17
|
+
user: string;
|
|
18
|
+
pass: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Create a live SMTP profile using the optional Nodemailer peer for MIME. Construction and
|
|
23
|
+
* `prepare` do no network I/O. Each prepared `submit` is one-shot, with no retry or pool.
|
|
24
|
+
* Acceptance only confirms SMTP submission, not inbox delivery. Direct use has no queue guarantees.
|
|
25
|
+
*/
|
|
26
|
+
declare function createSmtpProvider(options: SmtpProviderOptions): EmailProvider<SmtpSnapshot>;
|
|
27
|
+
|
|
28
|
+
export { type SmtpProviderOptions, createSmtpProvider };
|
package/smtp.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { o as EmailProvider, y as SmtpSnapshot } from './provider-HisBc6hk.js';
|
|
2
|
+
|
|
3
|
+
/** Configuration for a direct, unpooled ESMTP connection with verified TLS 1.2 or newer. */
|
|
4
|
+
type SmtpProviderOptions = {
|
|
5
|
+
key: string;
|
|
6
|
+
/** ASCII DNS hostname or IP literal, without a URL, port or IPv6 brackets. */
|
|
7
|
+
host: string;
|
|
8
|
+
/** Defaults to 465 for implicit TLS or 587 for required STARTTLS. */
|
|
9
|
+
port?: number;
|
|
10
|
+
tls: 'implicit' | 'starttls';
|
|
11
|
+
/** Optional DNS name for SNI and certificate verification. Otherwise verify `host`, including IP SANs. */
|
|
12
|
+
servername?: string;
|
|
13
|
+
/** PEM CA certificates (one per entry). Replaces the default Node trust roots when provided. */
|
|
14
|
+
ca?: readonly string[];
|
|
15
|
+
/** Optional ESMTP PLAIN/LOGIN credentials, used only after certificate verification. */
|
|
16
|
+
auth?: {
|
|
17
|
+
user: string;
|
|
18
|
+
pass: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Create a live SMTP profile using the optional Nodemailer peer for MIME. Construction and
|
|
23
|
+
* `prepare` do no network I/O. Each prepared `submit` is one-shot, with no retry or pool.
|
|
24
|
+
* Acceptance only confirms SMTP submission, not inbox delivery. Direct use has no queue guarantees.
|
|
25
|
+
*/
|
|
26
|
+
declare function createSmtpProvider(options: SmtpProviderOptions): EmailProvider<SmtpSnapshot>;
|
|
27
|
+
|
|
28
|
+
export { type SmtpProviderOptions, createSmtpProvider };
|