@easybits.cloud/mailmask 0.4.10 → 0.4.11

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/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { MailMaskConfig, Domain, DomainCreated, DomainVerification, Alias, AliasCreated, MailboxCreated, CreateAliasInput, UpdateAliasInput, Rule, CreateRuleInput, UpdateRuleInput, EmailLog, SendEmailInput, BulkSendInput, BulkJob, BulkJobCreated, SmtpCredential, SmtpCredentialCreated, ApiKey, SendOptions, UploadAttachmentInput, UploadedAttachment, Suppression, Webhook, WebhookCreated, CreateWebhookInput, UpdateWebhookInput, WebhookDelivery, DnsRecordType, DnsListResponse, DnsZoneCreated, DnsDelegation, DnsImportResult, DnsChangeResult, DnsPreset, DnsPresetPreview, DnsSetup, WebsiteStatus, PublishEasyBitsSiteInput, EasyBitsPublishResult, EasyBitsSiteStatus, EasyBitsUnpublishResult, BillingStatus, AddonsResponse, CheckoutLink, DomainSearchResult, TldPrice, DomainRegistrationCreated, DomainRegistration, TransferCheck, TransferDnsInventory, RenewalLink, DomainMember, DomainInvite, CannedReply, AccountProfile, AccountMe, AccountExport, InboxPage, InboxListOptions, InboxConversation, InboxConversationDetail, InboxComposeInput, InboxReplyInput, InboxUpdateInput, InboxNote, OrdersPage, ReferralStats, UploadedEmailImage } from "./types.js";
1
+ import type { MailMaskConfig, Domain, DomainCreated, DomainVerification, Alias, AliasCreated, MailboxCreated, CreateAliasInput, UpdateAliasInput, Rule, CreateRuleInput, UpdateRuleInput, EmailLog, SendEmailInput, BulkSendInput, BulkJob, BulkJobCreated, SmtpCredential, SmtpCredentialCreated, ApiKey, SendOptions, UploadAttachmentInput, UploadedAttachment, Suppression, Webhook, WebhookCreated, CreateWebhookInput, UpdateWebhookInput, WebhookDelivery, DnsRecordType, DnsListResponse, DnsZoneCreated, DnsDelegation, DnsImportResult, DnsAudit, DnsChangeResult, DnsPreset, DnsPresetPreview, DnsSetup, WebsiteStatus, PublishEasyBitsSiteInput, EasyBitsPublishResult, EasyBitsSiteStatus, EasyBitsUnpublishResult, BillingStatus, AddonsResponse, CheckoutLink, DomainSearchResult, TldPrice, DomainRegistrationCreated, DomainRegistration, TransferCheck, TransferDnsInventory, RenewalLink, DomainMember, DomainInvite, CannedReply, AccountProfile, AccountMe, AccountExport, InboxPage, InboxListOptions, InboxConversation, InboxConversationDetail, InboxComposeInput, InboxReplyInput, InboxUpdateInput, InboxNote, OrdersPage, ReferralStats, UploadedEmailImage } from "./types.js";
2
2
  declare class MailMaskError extends Error {
3
3
  status: number;
4
4
  constructor(status: number, message: string);
@@ -80,6 +80,8 @@ declare class DnsResource {
80
80
  createZone(domainId: string): Promise<DnsZoneCreated>;
81
81
  delegation(domainId: string): Promise<DnsDelegation>;
82
82
  import(domainId: string): Promise<DnsImportResult>;
83
+ /** Mide qué registros siguen vivos y los clasifica para podar (sólo lectura). */
84
+ audit(domainId: string): Promise<DnsAudit>;
83
85
  /** Reemplaza el conjunto: `values` sustituye por completo lo que hubiera en ese nombre y tipo. */
84
86
  upsert(domainId: string, record: {
85
87
  name: string;
package/dist/index.cjs CHANGED
@@ -159,6 +159,10 @@ var DnsResource = class {
159
159
  import(domainId) {
160
160
  return this.req(`/api/domains/${domainId}/dns/import`, { method: "POST" });
161
161
  }
162
+ /** Mide qué registros siguen vivos y los clasifica para podar (sólo lectura). */
163
+ audit(domainId) {
164
+ return this.req(`/api/domains/${domainId}/dns/audit`);
165
+ }
162
166
  /** Reemplaza el conjunto: `values` sustituye por completo lo que hubiera en ese nombre y tipo. */
163
167
  upsert(domainId, record) {
164
168
  return this.req(`/api/domains/${domainId}/dns/records`, { method: "PUT", body: JSON.stringify(record) });
package/dist/index.js CHANGED
@@ -131,6 +131,10 @@ var DnsResource = class {
131
131
  import(domainId) {
132
132
  return this.req(`/api/domains/${domainId}/dns/import`, { method: "POST" });
133
133
  }
134
+ /** Mide qué registros siguen vivos y los clasifica para podar (sólo lectura). */
135
+ audit(domainId) {
136
+ return this.req(`/api/domains/${domainId}/dns/audit`);
137
+ }
134
138
  /** Reemplaza el conjunto: `values` sustituye por completo lo que hubiera en ese nombre y tipo. */
135
139
  upsert(domainId, record) {
136
140
  return this.req(`/api/domains/${domainId}/dns/records`, { method: "PUT", body: JSON.stringify(record) });
package/dist/types.d.ts CHANGED
@@ -350,6 +350,26 @@ export interface DnsListResponse {
350
350
  /** Presente cuando todavía no hay zona: dice qué hacer. */
351
351
  hint?: string;
352
352
  }
353
+ export type DnsAuditVerdict = "takeover_risk" | "duplicated_name" | "not_responding" | "previous_provider" | "cert_validation" | "in_use" | "keep";
354
+ export interface DnsAuditFinding {
355
+ name: string;
356
+ type: string;
357
+ values: string[];
358
+ verdict: DnsAuditVerdict;
359
+ /** Lo que se midió, en español. */
360
+ evidence: string;
361
+ /** Qué conviene hacer, en español. */
362
+ action: string;
363
+ }
364
+ /** Respuesta de `dns.audit`: hallazgos ordenados, los urgentes primero. */
365
+ export interface DnsAudit {
366
+ domain: string;
367
+ checkedAt: string;
368
+ summary: Partial<Record<DnsAuditVerdict, number>>;
369
+ findings: DnsAuditFinding[];
370
+ truncated: boolean;
371
+ note: string;
372
+ }
353
373
  export interface DnsZoneCreated {
354
374
  hostedZoneId: string;
355
375
  nameservers: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easybits.cloud/mailmask",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
4
4
  "description": "Official SDK for the MailMask email alias/forwarding API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",