@medialane/sdk 0.147.0 → 0.149.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.
@@ -947,6 +947,7 @@ interface ApiUserWallet {
947
947
  walletAddress: string;
948
948
  email?: string | null;
949
949
  emailVerified?: boolean;
950
+ emailDeadline?: string | null;
950
951
  }
951
952
  interface ApiCollectionClaim {
952
953
  id: string;
@@ -1445,6 +1446,9 @@ declare class ApiClient {
1445
1446
  requestEmailCode(email: string): Promise<void>;
1446
1447
  registerEmailAccount(email: string): Promise<void>;
1447
1448
  verifyEmailCode(email: string, code: string): Promise<void>;
1449
+ confirmEmail(token: string): Promise<{
1450
+ email: string;
1451
+ }>;
1448
1452
  setupWalletKey(params: {
1449
1453
  newOwnerPubkey: string;
1450
1454
  }): Promise<{
@@ -947,6 +947,7 @@ interface ApiUserWallet {
947
947
  walletAddress: string;
948
948
  email?: string | null;
949
949
  emailVerified?: boolean;
950
+ emailDeadline?: string | null;
950
951
  }
951
952
  interface ApiCollectionClaim {
952
953
  id: string;
@@ -1445,6 +1446,9 @@ declare class ApiClient {
1445
1446
  requestEmailCode(email: string): Promise<void>;
1446
1447
  registerEmailAccount(email: string): Promise<void>;
1447
1448
  verifyEmailCode(email: string, code: string): Promise<void>;
1449
+ confirmEmail(token: string): Promise<{
1450
+ email: string;
1451
+ }>;
1448
1452
  setupWalletKey(params: {
1449
1453
  newOwnerPubkey: string;
1450
1454
  }): 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
  }