@medialane/sdk 0.147.0 → 0.148.0

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.
@@ -1445,6 +1445,9 @@ declare class ApiClient {
1445
1445
  requestEmailCode(email: string): Promise<void>;
1446
1446
  registerEmailAccount(email: string): Promise<void>;
1447
1447
  verifyEmailCode(email: string, code: string): Promise<void>;
1448
+ confirmEmail(token: string): Promise<{
1449
+ email: string;
1450
+ }>;
1448
1451
  setupWalletKey(params: {
1449
1452
  newOwnerPubkey: string;
1450
1453
  }): Promise<{
@@ -1445,6 +1445,9 @@ declare class ApiClient {
1445
1445
  requestEmailCode(email: string): Promise<void>;
1446
1446
  registerEmailAccount(email: string): Promise<void>;
1447
1447
  verifyEmailCode(email: string, code: string): Promise<void>;
1448
+ confirmEmail(token: string): Promise<{
1449
+ email: string;
1450
+ }>;
1448
1451
  setupWalletKey(params: {
1449
1452
  newOwnerPubkey: string;
1450
1453
  }): Promise<{
package/dist/index.cjs CHANGED
@@ -781,6 +781,10 @@ var ApiClient = class {
781
781
  async verifyEmailCode(email, code) {
782
782
  await this.post("/v1/auth/email/verify-code", { email, code });
783
783
  }
784
+ async confirmEmail(token) {
785
+ const body = await this.post("/v1/auth/email/confirm", { token });
786
+ return { email: body.email };
787
+ }
784
788
  setupWalletKey(params) {
785
789
  return this.post("/v1/users/me/wallet/key", params);
786
790
  }