@dbx-tools/shared-email 0.9.99 → 0.9.105
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/README.md +5 -14
- package/index.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,20 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Browser-safe email sending schemas and inferred types.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
[`@dbx-tools/email`](../../node/email) sends.
|
|
8
|
-
|
|
9
|
-
Key features:
|
|
10
|
-
|
|
11
|
-
- Shared `EmailMessage` contract for generated email drafts and direct sends.
|
|
12
|
-
- Attachment schema that supports inline content, file paths, URLs, encoding,
|
|
13
|
-
and content-type hints.
|
|
14
|
-
- Send-result schema for SMTP and outbox responses.
|
|
15
|
-
- Sender-options schema for AppKit routes that expose allowed `From` values to
|
|
16
|
-
a browser client.
|
|
17
|
-
- Model/tool-friendly schemas that avoid JSON Schema constraints known to cause
|
|
18
|
-
problems with some serving endpoints.
|
|
5
|
+
Use these schemas in UIs, Mastra tools, routes, and tests that exchange email
|
|
6
|
+
payloads with [`@dbx-tools/email`](../../node/email).
|
|
19
7
|
|
|
20
8
|
## Validate A Drafted Message
|
|
21
9
|
|
|
@@ -34,6 +22,9 @@ The message schema covers recipients, subject, body content, and attachments.
|
|
|
34
22
|
Attachments can carry inline content, a local path, a URL, encoding metadata, and
|
|
35
23
|
content type hints.
|
|
36
24
|
|
|
25
|
+
The package also includes send-result and sender-option schemas for routes,
|
|
26
|
+
approval UIs, and tests.
|
|
27
|
+
|
|
37
28
|
## Validate Send Results
|
|
38
29
|
|
|
39
30
|
```ts
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
|
|
5
5
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/shared-email";
|
|
6
|
-
export const PACKAGE_VERSION = "0.9.
|
|
6
|
+
export const PACKAGE_VERSION = "0.9.105";
|
|
7
7
|
export * as email from "./src/email.ts";
|
|
8
8
|
export { emailAttachmentSchema, emailMessageSchema, emailResultSchema, emailSendersSchema } from "./src/email.ts";
|
|
9
9
|
export type { EmailAttachment, EmailMessage, EmailResult, EmailSenders } from "./src/email.ts";
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const PACKAGE_IDENTIFIER = "@dbx-tools/shared-email";
|
|
2
|
-
export declare const PACKAGE_VERSION = "0.9.
|
|
2
|
+
export declare const PACKAGE_VERSION = "0.9.105";
|
|
3
3
|
export * as email from "./src/email.ts";
|
|
4
4
|
export { emailAttachmentSchema, emailMessageSchema, emailResultSchema, emailSendersSchema } from "./src/email.ts";
|
|
5
5
|
export type { EmailAttachment, EmailMessage, EmailResult, EmailSenders } from "./src/email.ts";
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Regenerated from the exporting modules in ./src.
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/shared-email";
|
|
5
|
-
export const PACKAGE_VERSION = "0.9.
|
|
5
|
+
export const PACKAGE_VERSION = "0.9.105";
|
|
6
6
|
export * as email from "./src/email.js";
|
|
7
7
|
export { emailAttachmentSchema, emailMessageSchema, emailResultSchema, emailSendersSchema } from "./src/email.js";
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSwyQ0FBMkM7QUFDM0MsbURBQW1EO0FBQ25ELHdFQUF3RTtBQUV4RSxNQUFNLEN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