@odingard/guardian-sdk 0.0.0-stage → 0.1.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.
@@ -0,0 +1,45 @@
1
+ import { z } from "zod";
2
+ export declare const EmailAddressSchema: z.ZodString;
3
+ export declare const EmailSubjectSchema: z.ZodString;
4
+ export declare const EmailBodyTextSchema: z.ZodString;
5
+ export declare const EmailSendParametersV1Schema: z.ZodObject<{
6
+ schema: z.ZodLiteral<"odingard.guardian.email.send.v1">;
7
+ connectionId: z.core.$ZodBranded<z.ZodString, "ConnectionId", "out">;
8
+ from: z.ZodString;
9
+ to: z.ZodArray<z.ZodString>;
10
+ cc: z.ZodArray<z.ZodString>;
11
+ bcc: z.ZodArray<z.ZodString>;
12
+ replyTo: z.ZodArray<z.ZodNever>;
13
+ subject: z.ZodString;
14
+ body: z.ZodObject<{
15
+ format: z.ZodLiteral<"text/plain">;
16
+ text: z.ZodString;
17
+ }, z.core.$strict>;
18
+ attachments: z.ZodArray<z.ZodNever>;
19
+ inReplyTo: z.ZodNull;
20
+ }, z.core.$strict>;
21
+ export type EmailSendParametersV1 = z.infer<typeof EmailSendParametersV1Schema>;
22
+ export declare function canonicalBodyForComparison(text: string): string;
23
+ export declare function emailVerificationProjection(input: EmailSendParametersV1): Readonly<{
24
+ domain: "odingard.guardian.email-projection.v1";
25
+ sender: string;
26
+ to: readonly string[];
27
+ cc: readonly string[];
28
+ bcc: readonly string[];
29
+ replyTo: readonly string[];
30
+ subject: string;
31
+ bodyDigest: string;
32
+ attachmentCount: 0;
33
+ inReplyTo: null;
34
+ }>;
35
+ export declare function emailEnvelopeProjection(input: EmailSendParametersV1): Readonly<{
36
+ domain: "odingard.guardian.email-projection.v1";
37
+ sender: string;
38
+ to: readonly string[];
39
+ cc: readonly string[];
40
+ bcc: readonly string[];
41
+ replyTo: readonly string[];
42
+ subject: string;
43
+ attachmentCount: 0;
44
+ inReplyTo: null;
45
+ }>;