@apifreaks/openapi-specs 0.4.0 → 0.4.2

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.
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Email Checker API - Real-Time Validation, Deliverability & Risk Signals",
5
5
  "version": "1.0.0",
6
- "description": "Validate a single email address and receive comprehensive results including syntax validation, domain verification, account detection, DNS records (MX and A records), and optional IP-based geolocation and security enrichment. Returns deliverability assessment with valid/invalid/unknown/risky/app_server_blocked status.",
6
+ "description": "Validate a single email address and receive comprehensive results including syntax validation, domain verification, account detection, DNS records (MX and A records), and optional IP-based geolocation and security enrichment. Returns deliverability assessment with valid/accept_all/invalid/unknown/risky/app_server_blocked status.",
7
7
  "contact": {
8
8
  "name": "APIFreaks Support",
9
9
  "url": "https://apifreaks.com/contact",
@@ -96,8 +96,8 @@
96
96
  }
97
97
  }
98
98
  },
99
- "noMxRecord": {
100
- "summary": "Valid syntax, domain has no MX record",
99
+ "nonexistentDomain": {
100
+ "summary": "Valid syntax, domain does not exist (NXDOMAIN)",
101
101
  "value": {
102
102
  "success": true,
103
103
  "email": "test@nonexistentdomainxyz123abc.com",
@@ -117,6 +117,83 @@
117
117
  }
118
118
  }
119
119
  },
120
+ "acceptAll": {
121
+ "summary": "Catch-all domain accepted the recipient — mailbox unconfirmed",
122
+ "value": {
123
+ "success": true,
124
+ "email": "random12345@yahoo.com",
125
+ "validEmail": "accept_all",
126
+ "validSyntax": true,
127
+ "reason": "domain accepts all addresses.",
128
+ "domain": {
129
+ "name": "yahoo.com",
130
+ "disposable": false,
131
+ "spam": false,
132
+ "free": true,
133
+ "validDomain": true,
134
+ "catchAll": true
135
+ },
136
+ "account": {
137
+ "role": false,
138
+ "fullMailBox": false
139
+ },
140
+ "dns": {
141
+ "mxRecord": [
142
+ "mta5.am0.yahoodns.net.",
143
+ "mta6.am0.yahoodns.net.",
144
+ "mta7.am0.yahoodns.net."
145
+ ]
146
+ }
147
+ }
148
+ },
149
+ "nullMxDomain": {
150
+ "summary": "Domain publishes a null MX (single \".\") — accepts no mail at all",
151
+ "value": {
152
+ "success": true,
153
+ "email": "test@example.com",
154
+ "validEmail": "invalid",
155
+ "validSyntax": true,
156
+ "reason": "domain does not accept mail.",
157
+ "domain": {
158
+ "name": "example.com",
159
+ "disposable": true,
160
+ "spam": false,
161
+ "free": false,
162
+ "validDomain": true,
163
+ "catchAll": false
164
+ },
165
+ "account": {
166
+ "role": false
167
+ },
168
+ "dns": {
169
+ "mxRecord": ["."]
170
+ }
171
+ }
172
+ },
173
+ "noMxAddressOnly": {
174
+ "summary": "Domain has no MX record but a working A record — gets a real SMTP probe",
175
+ "value": {
176
+ "success": true,
177
+ "email": "test@neverssl.com",
178
+ "validEmail": "unknown",
179
+ "validSyntax": true,
180
+ "reason": "We are unable to determine if email is valid or invalid.",
181
+ "domain": {
182
+ "name": "neverssl.com",
183
+ "disposable": false,
184
+ "spam": false,
185
+ "free": false,
186
+ "validDomain": true,
187
+ "catchAll": false
188
+ },
189
+ "account": {
190
+ "role": false
191
+ },
192
+ "dns": {
193
+ "aRecord": ["34.223.124.45"]
194
+ }
195
+ }
196
+ },
120
197
  "withIp": {
121
198
  "summary": "With ip — adds geolocation/security enrichment under address",
122
199
  "value": {
@@ -387,12 +464,12 @@
387
464
  },
388
465
  "reason": {
389
466
  "type": "string",
390
- "description": "Detailed explanation returned when validEmail is not valid."
467
+ "description": "Detailed explanation returned when validEmail is not valid. Omitted entirely when validEmail is valid."
391
468
  },
392
469
  "validEmail": {
393
470
  "type": "string",
394
- "enum": ["valid", "invalid", "INVALID_EMAIL", "unknown", "risky", "app_server_blocked"],
395
- "description": "Comprehensive deliverability assessment. Casing is inconsistent in the live API: syntactically invalid addresses return INVALID_EMAIL, while semantically invalid (undeliverable) addresses return lowercase invalid. risky is a documented possibility not observed during testing. app_server_blocked is returned when the recipient mail server blocked the live verification attempt (reason explains that retrying later may succeed)."
471
+ "enum": ["valid", "accept_all", "invalid", "INVALID_EMAIL", "unknown", "risky", "app_server_blocked"],
472
+ "description": "Comprehensive deliverability assessment. valid: recipient confirmed deliverable, reason omitted. accept_all: the domain is catch-all and accepted the recipient, so this specific mailbox is unconfirmed — see domain.catchAll, reason 'domain accepts all addresses.'. invalid: rejected mailbox, syntax failure, or the domain accepts no mail at all (a null MX). unknown: no conclusive answer, most common for domains with no MX record that only get a probe against their address record. risky: mailbox exists but over quota, or the server deferred with a greylist response. app_server_blocked: our verifier IP was blocked by the receiving server. Casing is inconsistent in the live API: syntactically invalid addresses can return the raw enum name INVALID_EMAIL instead of lowercase invalid — this is a known API bug, handle it defensively as equivalent to invalid."
396
473
  },
397
474
  "validSyntax": {
398
475
  "type": "boolean",
@@ -444,7 +521,7 @@
444
521
  },
445
522
  "catchAll": {
446
523
  "type": "boolean",
447
- "description": "Detection flag for domains configured to accept mail for any recipient address."
524
+ "description": "Detection flag for domains configured to accept mail for any recipient address. true always corresponds to a top-level validEmail of accept_all."
448
525
  }
449
526
  },
450
527
  "description": "Domain validation details for the email address."
@@ -466,24 +543,24 @@
466
543
  },
467
544
  "DnsObject": {
468
545
  "type": "object",
469
- "required": ["mxRecord"],
546
+ "required": [],
470
547
  "properties": {
471
548
  "mxRecord": {
472
549
  "type": "array",
473
550
  "items": {
474
551
  "type": "string"
475
552
  },
476
- "description": "Collection of MX (Mail Exchange) hostname records from DNS queries."
553
+ "description": "Every MX hostname at the domain's lowest preference (not just one). [\".\"] means the domain publishes a null MX and accepts no mail at all. Absent entirely when the domain has no MX record of any kind — check aRecord in that case."
477
554
  },
478
555
  "aRecord": {
479
556
  "type": "array",
480
557
  "items": {
481
558
  "type": "string"
482
559
  },
483
- "description": "Collection of A (Address) records for the domain. Not observed in testing — may be rarely or never populated."
560
+ "description": "Collection of A (Address) records for the domain. Present when the domain has no MX record but does resolve to a web server or other host."
484
561
  }
485
562
  },
486
- "description": "DNS records for the email domain."
563
+ "description": "DNS records for the email domain. Absent entirely when the domain publishes neither an MX nor an A record."
487
564
  },
488
565
  "AddressObject": {
489
566
  "type": "object",
@@ -557,7 +557,7 @@
557
557
  "description": "IANA registrar ID."
558
558
  },
559
559
  "status": {
560
- "type": "string",
560
+ "type": ["string", "null"],
561
561
  "description": "Registrar's ICANN accreditation status (e.g. accredited), when published at the registrar level."
562
562
  },
563
563
  "registrar_name": {
@@ -565,15 +565,15 @@
565
565
  "description": "Registered name of the registrar."
566
566
  },
567
567
  "normalized_name": {
568
- "type": "string",
568
+ "type": ["string", "null"],
569
569
  "description": "Lowercased, normalized form of the registrar name, when published at the registrar level."
570
570
  },
571
571
  "whois_server": {
572
- "type": "string",
573
- "description": "WHOIS server operated by the registrar."
572
+ "type": ["string", "null"],
573
+ "description": "WHOIS server operated by the registrar, when published."
574
574
  },
575
575
  "rdap_server": {
576
- "type": "string",
576
+ "type": ["string", "null"],
577
577
  "description": "RDAP server URL operated by the registrar, when published at the registrar level."
578
578
  },
579
579
  "website_url": {
@@ -581,12 +581,12 @@
581
581
  "description": "Registrar's website URL."
582
582
  },
583
583
  "email_address": {
584
- "type": "string",
585
- "description": "Registrar abuse or contact email address."
584
+ "type": ["string", "null"],
585
+ "description": "Registrar abuse or contact email address, when published."
586
586
  },
587
587
  "phone_number": {
588
- "type": "string",
589
- "description": "Registrar contact phone number."
588
+ "type": ["string", "null"],
589
+ "description": "Registrar contact phone number, when published."
590
590
  }
591
591
  }
592
592
  },
@@ -370,20 +370,20 @@
370
370
  "description": "Registered name of the registrar."
371
371
  },
372
372
  "whois_server": {
373
- "type": "string",
374
- "description": "WHOIS server operated by the registrar."
373
+ "type": ["string", "null"],
374
+ "description": "WHOIS server operated by the registrar, when published."
375
375
  },
376
376
  "website_url": {
377
377
  "type": "string",
378
378
  "description": "Registrar's website URL."
379
379
  },
380
380
  "email_address": {
381
- "type": "string",
382
- "description": "Registrar abuse or contact email address."
381
+ "type": ["string", "null"],
382
+ "description": "Registrar abuse or contact email address, when published."
383
383
  },
384
384
  "phone_number": {
385
- "type": "string",
386
- "description": "Registrar contact phone number."
385
+ "type": ["string", "null"],
386
+ "description": "Registrar contact phone number, when published."
387
387
  }
388
388
  }
389
389
  },
@@ -492,7 +492,7 @@
492
492
  },
493
493
  "status": {
494
494
  "type": ["string", "null"],
495
- "description": "Accreditation status of the registrar (e.g., 'accredited')."
495
+ "description": "Accreditation status of the registrar (e.g., 'accredited'), when published."
496
496
  },
497
497
  "registrar_name": {
498
498
  "type": ["string", "null"],
@@ -500,16 +500,16 @@
500
500
  },
501
501
  "normalized_name": {
502
502
  "type": ["string", "null"],
503
- "description": "Normalized (lowercase, stripped) registrar name."
503
+ "description": "Normalized (lowercase, stripped) registrar name, when published."
504
504
  },
505
505
  "whois_server": {
506
506
  "type": ["string", "null"],
507
- "description": "WHOIS server of the registrar."
507
+ "description": "WHOIS server of the registrar, when published."
508
508
  },
509
509
  "rdap_server": {
510
510
  "type": ["string", "null"],
511
511
  "format": "uri",
512
- "description": "RDAP (Registration Data Access Protocol) server URL of the registrar."
512
+ "description": "RDAP (Registration Data Access Protocol) server URL of the registrar, when published."
513
513
  },
514
514
  "website_url": {
515
515
  "type": ["string", "null"],
@@ -535,6 +535,10 @@
535
535
  "type": ["string", "null"],
536
536
  "description": "Contact identifier."
537
537
  },
538
+ "handle": {
539
+ "type": ["string", "null"],
540
+ "description": "Registry handle for the contact, when published."
541
+ },
538
542
  "name": {
539
543
  "type": ["string", "null"],
540
544
  "description": "Name of the contact person."
@@ -392,7 +392,7 @@
392
392
  "description": "IANA registrar ID."
393
393
  },
394
394
  "status": {
395
- "type": "string",
395
+ "type": ["string", "null"],
396
396
  "description": "Registrar's ICANN accreditation status (e.g. accredited), when published at the registrar level."
397
397
  },
398
398
  "registrar_name": {
@@ -400,15 +400,15 @@
400
400
  "description": "Registered name of the registrar."
401
401
  },
402
402
  "normalized_name": {
403
- "type": "string",
403
+ "type": ["string", "null"],
404
404
  "description": "Lowercased, normalized form of the registrar name, when published at the registrar level."
405
405
  },
406
406
  "whois_server": {
407
- "type": "string",
408
- "description": "WHOIS server operated by the registrar."
407
+ "type": ["string", "null"],
408
+ "description": "WHOIS server operated by the registrar, when published."
409
409
  },
410
410
  "rdap_server": {
411
- "type": "string",
411
+ "type": ["string", "null"],
412
412
  "description": "RDAP server URL operated by the registrar, when published at the registrar level."
413
413
  },
414
414
  "website_url": {
@@ -416,12 +416,12 @@
416
416
  "description": "Registrar's website URL."
417
417
  },
418
418
  "email_address": {
419
- "type": "string",
420
- "description": "Registrar abuse or contact email address."
419
+ "type": ["string", "null"],
420
+ "description": "Registrar abuse or contact email address, when published."
421
421
  },
422
422
  "phone_number": {
423
- "type": "string",
424
- "description": "Registrar contact phone number."
423
+ "type": ["string", "null"],
424
+ "description": "Registrar contact phone number, when published."
425
425
  }
426
426
  }
427
427
  },