@ever-works/resend-plugin 1.0.0 → 1.0.5

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.
@@ -0,0 +1,24 @@
1
+ import { IEmailOutboundPlugin, PluginCategory, JsonSchema, EmailSendInput, EmailOptions, EmailSendResult, EmailVerification } from '@ever-works/plugin';
2
+
3
+ /**
4
+ * Resend outbound email plugin, built on the official `resend` SDK.
5
+ * Idempotency is handled by Resend natively via the `idempotencyKey`
6
+ * request option (keyed on `EmailSendInput.messageRef`), backed by a
7
+ * local cache so repeated refs short-circuit without a network call.
8
+ */
9
+ declare class ResendPlugin implements IEmailOutboundPlugin {
10
+ readonly id = "resend";
11
+ readonly name = "Resend";
12
+ readonly version = "1.0.0";
13
+ readonly category: PluginCategory;
14
+ readonly capabilities: readonly ["email-outbound"];
15
+ readonly settingsSchema: JsonSchema;
16
+ onLoad(): Promise<void>;
17
+ onUnload(): Promise<void>;
18
+ private readonly idempotencyCache;
19
+ sendEmail(input: EmailSendInput, options: EmailOptions): Promise<EmailSendResult>;
20
+ verifyAddress(address: string, _options: EmailOptions): Promise<EmailVerification>;
21
+ }
22
+ declare const resendPlugin: ResendPlugin;
23
+
24
+ export { ResendPlugin, resendPlugin };
@@ -0,0 +1,24 @@
1
+ import { IEmailOutboundPlugin, PluginCategory, JsonSchema, EmailSendInput, EmailOptions, EmailSendResult, EmailVerification } from '@ever-works/plugin';
2
+
3
+ /**
4
+ * Resend outbound email plugin, built on the official `resend` SDK.
5
+ * Idempotency is handled by Resend natively via the `idempotencyKey`
6
+ * request option (keyed on `EmailSendInput.messageRef`), backed by a
7
+ * local cache so repeated refs short-circuit without a network call.
8
+ */
9
+ declare class ResendPlugin implements IEmailOutboundPlugin {
10
+ readonly id = "resend";
11
+ readonly name = "Resend";
12
+ readonly version = "1.0.0";
13
+ readonly category: PluginCategory;
14
+ readonly capabilities: readonly ["email-outbound"];
15
+ readonly settingsSchema: JsonSchema;
16
+ onLoad(): Promise<void>;
17
+ onUnload(): Promise<void>;
18
+ private readonly idempotencyCache;
19
+ sendEmail(input: EmailSendInput, options: EmailOptions): Promise<EmailSendResult>;
20
+ verifyAddress(address: string, _options: EmailOptions): Promise<EmailVerification>;
21
+ }
22
+ declare const resendPlugin: ResendPlugin;
23
+
24
+ export { ResendPlugin, resendPlugin };