@dbx-tools/shared-email 0.3.21 → 0.3.22

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/email.ts +2 -6
package/package.json CHANGED
@@ -12,14 +12,14 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "zod": "^4.3.6",
15
- "@dbx-tools/shared-core": "0.3.21"
15
+ "@dbx-tools/shared-core": "0.3.22"
16
16
  },
17
17
  "main": "index.ts",
18
18
  "license": "UNLICENSED",
19
19
  "publishConfig": {
20
20
  "access": "public"
21
21
  },
22
- "version": "0.3.21",
22
+ "version": "0.3.22",
23
23
  "types": "index.ts",
24
24
  "type": "module",
25
25
  "exports": {
package/src/email.ts CHANGED
@@ -79,9 +79,7 @@ export type EmailMessage = z.infer<typeof emailMessageSchema>;
79
79
  /** Schema for the dispatch result returned to the model after a send. */
80
80
  export const emailResultSchema = z.object({
81
81
  sent: z.boolean().describe("True once the message was handed to the SMTP server."),
82
- recipient: z
83
- .string()
84
- .describe("Echo of the `to` recipients (comma-joined) for confirmation."),
82
+ recipient: z.string().describe("Echo of the `to` recipients (comma-joined) for confirmation."),
85
83
  from: z.string().describe("The resolved sender address the message was actually sent from."),
86
84
  messageId: z
87
85
  .string()
@@ -102,9 +100,7 @@ export type EmailResult = z.infer<typeof emailResultSchema>;
102
100
  * be resolved) and `restricted` is false, so a UI may allow free entry.
103
101
  */
104
102
  export const emailSendersSchema = z.object({
105
- senders: z
106
- .array(z.string())
107
- .describe("Permitted sender addresses to offer as `From` choices."),
103
+ senders: z.array(z.string()).describe("Permitted sender addresses to offer as `From` choices."),
108
104
  defaultSender: z
109
105
  .string()
110
106
  .optional()