zynor 0.0.63 → 0.0.68

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/dist/index.d.ts CHANGED
@@ -3,9 +3,9 @@ import { AnyARecord, AnyAaaaRecord, AnyCnameRecord, AnyMxRecord, AnyNaptrRecord,
3
3
  export interface CacheConfig {
4
4
  /** Enable/disable caching. Default: true */
5
5
  enabled?: boolean;
6
- /** Max entries per cache namespace. Default: 1000 */
6
+ /** Max entries per cache namespace. Default: 100_000 */
7
7
  maxSize?: number;
8
- /** DNS result TTL in ms. Default: 300_000 (5 min) */
8
+ /** DNS result TTL in ms. Default: 1_440_000 (24 min) */
9
9
  dnsTtl?: number;
10
10
  }
11
11
  /**
@@ -1547,6 +1547,71 @@ declare const EmailProviders: readonly [
1547
1547
  readonly domains: readonly [
1548
1548
  "@chello.nl"
1549
1549
  ];
1550
+ },
1551
+ {
1552
+ readonly name: "Hey";
1553
+ readonly domains: readonly [
1554
+ "@hey.com"
1555
+ ];
1556
+ },
1557
+ {
1558
+ readonly name: "Inbox";
1559
+ readonly domains: readonly [
1560
+ "@inbox.lv",
1561
+ "@inbox.eu"
1562
+ ];
1563
+ },
1564
+ {
1565
+ readonly name: "Kolab Now";
1566
+ readonly domains: readonly [
1567
+ "@kolabnow.com"
1568
+ ];
1569
+ },
1570
+ {
1571
+ readonly name: "Lycos";
1572
+ readonly domains: readonly [
1573
+ "@lycos.com"
1574
+ ];
1575
+ },
1576
+ {
1577
+ readonly name: "Mailbox.org";
1578
+ readonly domains: readonly [
1579
+ "@mailbox.org"
1580
+ ];
1581
+ },
1582
+ {
1583
+ readonly name: "Mailfence";
1584
+ readonly domains: readonly [
1585
+ "@mailfence.com"
1586
+ ];
1587
+ },
1588
+ {
1589
+ readonly name: "Posteo";
1590
+ readonly domains: readonly [
1591
+ "@posteo.de"
1592
+ ];
1593
+ },
1594
+ {
1595
+ readonly name: "Rediffmail";
1596
+ readonly domains: readonly [
1597
+ "@rediffmail.com"
1598
+ ];
1599
+ },
1600
+ {
1601
+ readonly name: "Skiff";
1602
+ readonly domains: readonly [
1603
+ "@skiff.com"
1604
+ ];
1605
+ },
1606
+ {
1607
+ readonly name: "Tutanota";
1608
+ readonly domains: readonly [
1609
+ "@tutanota.com",
1610
+ "@tutanota.de",
1611
+ "@tuta.io",
1612
+ "@tutamail.com",
1613
+ "@keemail.me"
1614
+ ];
1550
1615
  }
1551
1616
  ];
1552
1617
  export type ProviderNames = typeof EmailProviders[number]["name"];
@@ -1909,6 +1974,62 @@ declare const records: readonly [
1909
1974
  readonly name: "Front";
1910
1975
  readonly mx: ".frontapp.com";
1911
1976
  },
1977
+ {
1978
+ readonly name: "Tutanota";
1979
+ readonly mx: ".tutanota.de";
1980
+ },
1981
+ {
1982
+ readonly name: "Tutanota";
1983
+ readonly mx: ".tutanota.com";
1984
+ },
1985
+ {
1986
+ readonly name: "Tutanota";
1987
+ readonly mx: ".tuta.io";
1988
+ },
1989
+ {
1990
+ readonly name: "Mailbox.org";
1991
+ readonly mx: ".mailbox.org";
1992
+ },
1993
+ {
1994
+ readonly name: "Posteo";
1995
+ readonly mx: ".posteo.de";
1996
+ },
1997
+ {
1998
+ readonly name: "Mailfence";
1999
+ readonly mx: ".mailfence.com";
2000
+ },
2001
+ {
2002
+ readonly name: "Rediffmail";
2003
+ readonly mx: ".rediffmail.com";
2004
+ },
2005
+ {
2006
+ readonly name: "Rediffmail";
2007
+ readonly mx: ".rediff.com";
2008
+ },
2009
+ {
2010
+ readonly name: "Lycos";
2011
+ readonly mx: ".lycos.com";
2012
+ },
2013
+ {
2014
+ readonly name: "Kolab Now";
2015
+ readonly mx: ".kolabnow.com";
2016
+ },
2017
+ {
2018
+ readonly name: "Hey";
2019
+ readonly mx: ".hey.com";
2020
+ },
2021
+ {
2022
+ readonly name: "Skiff";
2023
+ readonly mx: ".skiff.com";
2024
+ },
2025
+ {
2026
+ readonly name: "Inbox";
2027
+ readonly mx: ".inbox.lv";
2028
+ },
2029
+ {
2030
+ readonly name: "Inbox";
2031
+ readonly mx: ".inbox.eu";
2032
+ },
1912
2033
  {
1913
2034
  readonly name: "Unknown";
1914
2035
  readonly mx: "..................";
@@ -2113,7 +2234,17 @@ export declare class EmailValidator {
2113
2234
  */
2114
2235
  validate(email: string, options: AbortOptions & {
2115
2236
  deep?: boolean;
2237
+ logo?: boolean;
2116
2238
  }): Promise<EmailResponse>;
2239
+ /**
2240
+ * Build a Valid response with `websiteTitle` and optional `loginUrl`
2241
+ * populated from the provider maps in ./provider-webmail.
2242
+ *
2243
+ * `webmail` (record-level override) and `loginUrl` (provider-level default)
2244
+ * coexist: both may be set, neither, or one. All optional fields use
2245
+ * conditional spread to satisfy `exactOptionalPropertyTypes`.
2246
+ */
2247
+ private _buildValidResponse;
2117
2248
  /**
2118
2249
  * Reconstruct full EmailResponse from a cache entry + cheap recomputed fields.
2119
2250
  */
@@ -2146,6 +2277,7 @@ export declare class EmailValidator {
2146
2277
  validateBulk(emails: string[], options?: {
2147
2278
  concurrency?: number;
2148
2279
  deep?: boolean;
2280
+ logo?: boolean;
2149
2281
  signal?: AbortSignal;
2150
2282
  timeout?: number;
2151
2283
  }): Promise<EmailResponse[]>;
@@ -2477,7 +2609,10 @@ export interface Valid {
2477
2609
  isFree: boolean;
2478
2610
  email: string;
2479
2611
  role: boolean;
2612
+ websiteTitle: string;
2480
2613
  webmail?: string;
2614
+ loginUrl?: string;
2615
+ logo?: string;
2481
2616
  };
2482
2617
  }
2483
2618
  export interface Invalid {
@@ -2824,6 +2959,7 @@ export declare class Zynor {
2824
2959
  static validateBulk(emails: string[], options?: {
2825
2960
  concurrency?: number;
2826
2961
  deep?: boolean;
2962
+ logo?: boolean;
2827
2963
  signal?: AbortSignal;
2828
2964
  timeout?: number;
2829
2965
  }): Promise<EmailResponse[]>;