@medialane/sdk 0.85.6 → 0.85.7

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.
@@ -1125,6 +1125,10 @@ declare class ApiClient {
1125
1125
  }): Promise<ApiUserWallet>;
1126
1126
  checkEmailExists(email: string): Promise<boolean>;
1127
1127
  getMyWallet(siwsToken: string): Promise<ApiUserWallet | null>;
1128
+ changeMyEmail(email: string, siwsToken: string): Promise<{
1129
+ email: string;
1130
+ emailVerified: boolean;
1131
+ }>;
1128
1132
  getTokenRemixes(contract: string, tokenId: string, opts?: {
1129
1133
  page?: number;
1130
1134
  limit?: number;
@@ -1125,6 +1125,10 @@ declare class ApiClient {
1125
1125
  }): Promise<ApiUserWallet>;
1126
1126
  checkEmailExists(email: string): Promise<boolean>;
1127
1127
  getMyWallet(siwsToken: string): Promise<ApiUserWallet | null>;
1128
+ changeMyEmail(email: string, siwsToken: string): Promise<{
1129
+ email: string;
1130
+ emailVerified: boolean;
1131
+ }>;
1128
1132
  getTokenRemixes(contract: string, tokenId: string, opts?: {
1129
1133
  page?: number;
1130
1134
  limit?: number;
@@ -658,6 +658,13 @@ var ApiClient = class {
658
658
  { allow404: true }
659
659
  );
660
660
  }
661
+ changeMyEmail(email, siwsToken) {
662
+ return this.request("/v1/users/me/email", {
663
+ method: "POST",
664
+ headers: this.bearer(siwsToken),
665
+ body: JSON.stringify({ email })
666
+ });
667
+ }
661
668
  getTokenRemixes(contract, tokenId, opts = {}) {
662
669
  const params = new URLSearchParams();
663
670
  if (opts.page !== void 0) params.set("page", String(opts.page));