@easybits.cloud/mailmask 0.4.5 → 0.4.6

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.cjs CHANGED
@@ -370,6 +370,13 @@ var RegistrationsResource = class {
370
370
  cancelRenewal(regId) {
371
371
  return this.req(`/api/domains/registrations/${regId}/renewal/cancel`, { method: "POST" });
372
372
  }
373
+ /**
374
+ * Pone el candado de transferencia. Quitarlo no está en el SDK a propósito: sólo se hace
375
+ * desde el panel, con la sesión del dueño y confirmando por correo.
376
+ */
377
+ lock(regId) {
378
+ return this.req(`/api/domains/registrations/${regId}/transfer-lock`, { method: "POST", body: JSON.stringify({ locked: true }) });
379
+ }
373
380
  };
374
381
  var TransfersResource = class {
375
382
  constructor(req) {
package/dist/index.d.cts CHANGED
@@ -463,6 +463,12 @@ interface DomainRegistration {
463
463
  nextChargeAt: string | null;
464
464
  dnsImportStatus: string;
465
465
  transferAuthCodeHint: string | null;
466
+ /** Candado de transferencia (`clientTransferProhibited`); null si aún no se ha leído de AWS. */
467
+ transferLock: boolean | null;
468
+ /** Mientras está quitado: cuándo se vuelve a poner solo. */
469
+ transferUnlockedUntil: string | null;
470
+ /** Desde cuándo puede cambiar de registrador (regla de 60 días de ICANN). */
471
+ transferEligibleAt: string;
466
472
  lastError: string | null;
467
473
  createdAt: string;
468
474
  [k: string]: unknown;
@@ -898,6 +904,15 @@ declare class RegistrationsResource {
898
904
  ok: boolean;
899
905
  aviso: string;
900
906
  }>;
907
+ /**
908
+ * Pone el candado de transferencia. Quitarlo no está en el SDK a propósito: sólo se hace
909
+ * desde el panel, con la sesión del dueño y confirmando por correo.
910
+ */
911
+ lock(regId: string): Promise<{
912
+ ok: boolean;
913
+ transferLock: boolean;
914
+ transferUnlockedUntil: null;
915
+ }>;
901
916
  }
902
917
  declare class TransfersResource {
903
918
  private req;
package/dist/index.d.ts CHANGED
@@ -463,6 +463,12 @@ interface DomainRegistration {
463
463
  nextChargeAt: string | null;
464
464
  dnsImportStatus: string;
465
465
  transferAuthCodeHint: string | null;
466
+ /** Candado de transferencia (`clientTransferProhibited`); null si aún no se ha leído de AWS. */
467
+ transferLock: boolean | null;
468
+ /** Mientras está quitado: cuándo se vuelve a poner solo. */
469
+ transferUnlockedUntil: string | null;
470
+ /** Desde cuándo puede cambiar de registrador (regla de 60 días de ICANN). */
471
+ transferEligibleAt: string;
466
472
  lastError: string | null;
467
473
  createdAt: string;
468
474
  [k: string]: unknown;
@@ -898,6 +904,15 @@ declare class RegistrationsResource {
898
904
  ok: boolean;
899
905
  aviso: string;
900
906
  }>;
907
+ /**
908
+ * Pone el candado de transferencia. Quitarlo no está en el SDK a propósito: sólo se hace
909
+ * desde el panel, con la sesión del dueño y confirmando por correo.
910
+ */
911
+ lock(regId: string): Promise<{
912
+ ok: boolean;
913
+ transferLock: boolean;
914
+ transferUnlockedUntil: null;
915
+ }>;
901
916
  }
902
917
  declare class TransfersResource {
903
918
  private req;
package/dist/index.js CHANGED
@@ -342,6 +342,13 @@ var RegistrationsResource = class {
342
342
  cancelRenewal(regId) {
343
343
  return this.req(`/api/domains/registrations/${regId}/renewal/cancel`, { method: "POST" });
344
344
  }
345
+ /**
346
+ * Pone el candado de transferencia. Quitarlo no está en el SDK a propósito: sólo se hace
347
+ * desde el panel, con la sesión del dueño y confirmando por correo.
348
+ */
349
+ lock(regId) {
350
+ return this.req(`/api/domains/registrations/${regId}/transfer-lock`, { method: "POST", body: JSON.stringify({ locked: true }) });
351
+ }
345
352
  };
346
353
  var TransfersResource = class {
347
354
  constructor(req) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easybits.cloud/mailmask",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "Official SDK for the MailMask email alias/forwarding API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",