@bobfrankston/mailx-types 0.1.18 → 0.1.20
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/contact-rules.d.ts +1 -1
- package/contact-rules.js +1 -1
- package/contact-rules.jsonc +1 -1
- package/index.d.ts +7 -3
- package/mailx-api.d.ts +1 -1
- package/package.json +1 -1
package/contact-rules.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const CONTACT_RULES: {
|
|
2
|
-
readonly rulesVersion: "
|
|
2
|
+
readonly rulesVersion: "v4-name-hygiene";
|
|
3
3
|
readonly junk: {
|
|
4
4
|
readonly localExact: "^(no-?reply|do-?not-?reply|noreply|mailer-daemon|postmaster|abuse|automated|bounce(s|d)?|list-?(server|admin|owner|manager)?|notification|notifications?|admin@.*automated|root|daemon|nobody|undisclosed)$";
|
|
5
5
|
readonly localSuffix: "(-bounces|\\+bounces|-noreply|-no-reply|-notifications?|-mailer)$";
|
package/contact-rules.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// AUTO-GENERATED from contact-rules.jsonc — do not edit.
|
|
2
2
|
// Edit the .jsonc and run `node build-rules.js` (or `npm run build`).
|
|
3
3
|
export const CONTACT_RULES = {
|
|
4
|
-
"rulesVersion": "
|
|
4
|
+
"rulesVersion": "v4-name-hygiene",
|
|
5
5
|
"junk": {
|
|
6
6
|
"localExact": "^(no-?reply|do-?not-?reply|noreply|mailer-daemon|postmaster|abuse|automated|bounce(s|d)?|list-?(server|admin|owner|manager)?|notification|notifications?|admin@.*automated|root|daemon|nobody|undisclosed)$",
|
|
7
7
|
"localSuffix": "(-bounces|\\+bounces|-noreply|-no-reply|-notifications?|-mailer)$",
|
package/contact-rules.jsonc
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
// (e.g. "16179691997.15082868100.nfblcbll1x")
|
|
18
18
|
// domain — entire domain match (Google Voice SMS, reply.fb.com)
|
|
19
19
|
{
|
|
20
|
-
"rulesVersion": "
|
|
20
|
+
"rulesVersion": "v4-name-hygiene",
|
|
21
21
|
"junk": {
|
|
22
22
|
"localExact": "^(no-?reply|do-?not-?reply|noreply|mailer-daemon|postmaster|abuse|automated|bounce(s|d)?|list-?(server|admin|owner|manager)?|notification|notifications?|admin@.*automated|root|daemon|nobody|undisclosed)$",
|
|
23
23
|
"localSuffix": "(-bounces|\\+bounces|-noreply|-no-reply|-notifications?|-mailer)$",
|
package/index.d.ts
CHANGED
|
@@ -332,10 +332,14 @@ export interface AiTransformResponse {
|
|
|
332
332
|
/** Optional reason for empty result, surfaced to UI status bar. */
|
|
333
333
|
reason?: string;
|
|
334
334
|
}
|
|
335
|
-
/** Body storage backend interface -- implementations are swappable
|
|
335
|
+
/** Body storage backend interface -- implementations are swappable.
|
|
336
|
+
* Uses Uint8Array, not Node's Buffer: mailx-types is a zero-dep, browser-
|
|
337
|
+
* capable package, and the browser client (DOM lib, no @types/node) imports
|
|
338
|
+
* it. Buffer extends Uint8Array, so Node implementations (FileMessageStore)
|
|
339
|
+
* still satisfy this; the browser side gets a real, node-free type. */
|
|
336
340
|
export interface MessageStore {
|
|
337
|
-
putMessage(accountId: string, folderId: number, uid: number, raw:
|
|
338
|
-
getMessage(accountId: string, folderId: number, uid: number): Promise<
|
|
341
|
+
putMessage(accountId: string, folderId: number, uid: number, raw: Uint8Array): Promise<string>;
|
|
342
|
+
getMessage(accountId: string, folderId: number, uid: number): Promise<Uint8Array>;
|
|
339
343
|
deleteMessage(accountId: string, folderId: number, uid: number): Promise<void>;
|
|
340
344
|
hasMessage(accountId: string, folderId: number, uid: number): Promise<boolean>;
|
|
341
345
|
}
|
package/mailx-api.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export interface MailxApi {
|
|
|
51
51
|
contentType: string;
|
|
52
52
|
filename: string;
|
|
53
53
|
}>;
|
|
54
|
-
openAttachment(accountId: string, uid: number, attachmentId: number, folderId?: number): Promise<{
|
|
54
|
+
openAttachment(accountId: string, uid: number, attachmentId: number, folderId?: number, filename?: string): Promise<{
|
|
55
55
|
ok: boolean;
|
|
56
56
|
path: string;
|
|
57
57
|
}>;
|