@medialane/sdk 0.132.0 → 0.133.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,7 +947,6 @@ interface ApiUserWallet {
947
947
  walletAddress: string;
948
948
  email?: string | null;
949
949
  emailVerified?: boolean;
950
- requiresEmailVerification?: boolean;
951
950
  }
952
951
  interface ApiCollectionClaim {
953
952
  id: string;
@@ -1155,7 +1154,6 @@ declare class ApiClient {
1155
1154
  getApiKeys(siwsToken?: string): Promise<ApiResponse<ApiPortalKey[]>>;
1156
1155
  createApiKey(input?: {
1157
1156
  label?: string;
1158
- appSource?: string;
1159
1157
  }, siwsToken?: string): Promise<ApiResponse<ApiPortalKeyCreated>>;
1160
1158
  deleteApiKey(id: string, siwsToken?: string): Promise<ApiResponse<{
1161
1159
  id: string;
@@ -1242,7 +1240,6 @@ declare class ApiClient {
1242
1240
  registerUser(params: {
1243
1241
  walletAddress: string;
1244
1242
  walletType?: string;
1245
- appSource?: ApiAppSource;
1246
1243
  chain?: ApiChain;
1247
1244
  }): Promise<{
1248
1245
  accountId: string;
@@ -1255,9 +1252,7 @@ declare class ApiClient {
1255
1252
  }>;
1256
1253
  upsertMyWallet(siwsToken: string, options?: {
1257
1254
  walletType?: string;
1258
- appSource?: ApiAppSource;
1259
1255
  chain?: ApiChain;
1260
- emailVerificationToken?: string;
1261
1256
  email?: string;
1262
1257
  accountToken?: string;
1263
1258
  }): Promise<ApiUserWallet>;
@@ -1268,7 +1263,6 @@ declare class ApiClient {
1268
1263
  requestEmailCode(email: string): Promise<void>;
1269
1264
  registerEmailAccount(email: string): Promise<void>;
1270
1265
  verifyEmailCode(email: string, code: string): Promise<{
1271
- token: string;
1272
1266
  waitingWallets: string[];
1273
1267
  }>;
1274
1268
  claimWallet(params: {
@@ -947,7 +947,6 @@ interface ApiUserWallet {
947
947
  walletAddress: string;
948
948
  email?: string | null;
949
949
  emailVerified?: boolean;
950
- requiresEmailVerification?: boolean;
951
950
  }
952
951
  interface ApiCollectionClaim {
953
952
  id: string;
@@ -1155,7 +1154,6 @@ declare class ApiClient {
1155
1154
  getApiKeys(siwsToken?: string): Promise<ApiResponse<ApiPortalKey[]>>;
1156
1155
  createApiKey(input?: {
1157
1156
  label?: string;
1158
- appSource?: string;
1159
1157
  }, siwsToken?: string): Promise<ApiResponse<ApiPortalKeyCreated>>;
1160
1158
  deleteApiKey(id: string, siwsToken?: string): Promise<ApiResponse<{
1161
1159
  id: string;
@@ -1242,7 +1240,6 @@ declare class ApiClient {
1242
1240
  registerUser(params: {
1243
1241
  walletAddress: string;
1244
1242
  walletType?: string;
1245
- appSource?: ApiAppSource;
1246
1243
  chain?: ApiChain;
1247
1244
  }): Promise<{
1248
1245
  accountId: string;
@@ -1255,9 +1252,7 @@ declare class ApiClient {
1255
1252
  }>;
1256
1253
  upsertMyWallet(siwsToken: string, options?: {
1257
1254
  walletType?: string;
1258
- appSource?: ApiAppSource;
1259
1255
  chain?: ApiChain;
1260
- emailVerificationToken?: string;
1261
1256
  email?: string;
1262
1257
  accountToken?: string;
1263
1258
  }): Promise<ApiUserWallet>;
@@ -1268,7 +1263,6 @@ declare class ApiClient {
1268
1263
  requestEmailCode(email: string): Promise<void>;
1269
1264
  registerEmailAccount(email: string): Promise<void>;
1270
1265
  verifyEmailCode(email: string, code: string): Promise<{
1271
- token: string;
1272
1266
  waitingWallets: string[];
1273
1267
  }>;
1274
1268
  claimWallet(params: {
package/dist/index.cjs CHANGED
@@ -760,11 +760,9 @@ var ApiClient = class {
760
760
  }
761
761
  async upsertMyWallet(siwsToken, options = {}) {
762
762
  const body = {
763
- walletType: options.walletType ?? "UNKNOWN",
764
- appSource: options.appSource ?? "MEDIALANE_SDK"
763
+ walletType: options.walletType ?? "UNKNOWN"
765
764
  };
766
765
  if (options.chain) body.chain = options.chain;
767
- if (options.emailVerificationToken) body.emailVerificationToken = options.emailVerificationToken;
768
766
  if (options.email) body.email = options.email;
769
767
  if (options.accountToken) body.accountToken = options.accountToken;
770
768
  return this.request("/v1/users/me", {
@@ -787,7 +785,7 @@ var ApiClient = class {
787
785
  }
788
786
  async verifyEmailCode(email, code) {
789
787
  const body = await this.post("/v1/auth/email/verify-code", { email, code });
790
- return { token: body.token, waitingWallets: body.waitingWallets ?? [] };
788
+ return { waitingWallets: body.waitingWallets ?? [] };
791
789
  }
792
790
  claimWallet(params) {
793
791
  return this.post("/v1/users/me/claim-wallet", params);