@medialane/sdk 0.131.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.
@@ -1,5 +1,5 @@
1
- import { bn as ResolvedConfig, bv as TxResult, aI as CreatePopCollectionParams, at as ClaimConditions, aE as CreateDropParams, aN as CreateTicketParams, b7 as MintTicketsParams, aG as CreateMembershipParams, b6 as MintMembershipsParams, aL as CreateSponsorshipOfferParams, bk as ProposeSponsorshipParams, l as ApiClient, b4 as MedialaneConfig, b5 as MedialaneErrorCode, bc as OrderDetails, R as ResolvedFeeConfig, F as ApiFundingIntent, E as ApiFundingInstructions, I as ApiFundingSubmit, K as ApiIntentCreated, bD as SealedOwner, bE as ReceiptProviderLike, bF as WalletExecutor, bG as ExecutedTransaction, bH as PasskeyOwner } from '../errors-JkeKc3cu.cjs';
2
- export { bI as CreatedOwner, bJ as OwnerSigner, bf as PasskeyCancelledError, bK as PasskeyConfig, bx as UserFacingError, bL as createPasskeyOwner } from '../errors-JkeKc3cu.cjs';
1
+ import { bn as ResolvedConfig, bv as TxResult, aI as CreatePopCollectionParams, at as ClaimConditions, aE as CreateDropParams, aN as CreateTicketParams, b7 as MintTicketsParams, aG as CreateMembershipParams, b6 as MintMembershipsParams, aL as CreateSponsorshipOfferParams, bk as ProposeSponsorshipParams, l as ApiClient, b4 as MedialaneConfig, b5 as MedialaneErrorCode, bc as OrderDetails, R as ResolvedFeeConfig, F as ApiFundingIntent, E as ApiFundingInstructions, I as ApiFundingSubmit, K as ApiIntentCreated, bD as SealedOwner, bE as ReceiptProviderLike, bF as WalletExecutor, bG as ExecutedTransaction, bH as PasskeyOwner } from '../errors-DEz42hh5.cjs';
2
+ export { bI as CreatedOwner, bJ as OwnerSigner, bf as PasskeyCancelledError, bK as PasskeyConfig, bx as UserFacingError, bL as createPasskeyOwner } from '../errors-DEz42hh5.cjs';
3
3
  import { AccountInterface, Call, ProviderInterface, TypedData, constants, BigNumberish, DeployAccountContractPayload, Account } from 'starknet';
4
4
  import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-CuSlc_YE.cjs';
5
5
  import 'zod';
@@ -1,5 +1,5 @@
1
- import { bn as ResolvedConfig, bv as TxResult, aI as CreatePopCollectionParams, at as ClaimConditions, aE as CreateDropParams, aN as CreateTicketParams, b7 as MintTicketsParams, aG as CreateMembershipParams, b6 as MintMembershipsParams, aL as CreateSponsorshipOfferParams, bk as ProposeSponsorshipParams, l as ApiClient, b4 as MedialaneConfig, b5 as MedialaneErrorCode, bc as OrderDetails, R as ResolvedFeeConfig, F as ApiFundingIntent, E as ApiFundingInstructions, I as ApiFundingSubmit, K as ApiIntentCreated, bD as SealedOwner, bE as ReceiptProviderLike, bF as WalletExecutor, bG as ExecutedTransaction, bH as PasskeyOwner } from '../errors-HTG0DcWa.js';
2
- export { bI as CreatedOwner, bJ as OwnerSigner, bf as PasskeyCancelledError, bK as PasskeyConfig, bx as UserFacingError, bL as createPasskeyOwner } from '../errors-HTG0DcWa.js';
1
+ import { bn as ResolvedConfig, bv as TxResult, aI as CreatePopCollectionParams, at as ClaimConditions, aE as CreateDropParams, aN as CreateTicketParams, b7 as MintTicketsParams, aG as CreateMembershipParams, b6 as MintMembershipsParams, aL as CreateSponsorshipOfferParams, bk as ProposeSponsorshipParams, l as ApiClient, b4 as MedialaneConfig, b5 as MedialaneErrorCode, bc as OrderDetails, R as ResolvedFeeConfig, F as ApiFundingIntent, E as ApiFundingInstructions, I as ApiFundingSubmit, K as ApiIntentCreated, bD as SealedOwner, bE as ReceiptProviderLike, bF as WalletExecutor, bG as ExecutedTransaction, bH as PasskeyOwner } from '../errors-DxBa5Wne.js';
2
+ export { bI as CreatedOwner, bJ as OwnerSigner, bf as PasskeyCancelledError, bK as PasskeyConfig, bx as UserFacingError, bL as createPasskeyOwner } from '../errors-DxBa5Wne.js';
3
3
  import { AccountInterface, Call, ProviderInterface, TypedData, constants, BigNumberish, DeployAccountContractPayload, Account } from 'starknet';
4
4
  import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-CuSlc_YE.js';
5
5
  import 'zod';
@@ -731,11 +731,9 @@ var ApiClient = class {
731
731
  }
732
732
  async upsertMyWallet(siwsToken, options = {}) {
733
733
  const body = {
734
- walletType: options.walletType ?? "UNKNOWN",
735
- appSource: options.appSource ?? "MEDIALANE_SDK"
734
+ walletType: options.walletType ?? "UNKNOWN"
736
735
  };
737
736
  if (options.chain) body.chain = options.chain;
738
- if (options.emailVerificationToken) body.emailVerificationToken = options.emailVerificationToken;
739
737
  if (options.email) body.email = options.email;
740
738
  if (options.accountToken) body.accountToken = options.accountToken;
741
739
  return this.request("/v1/users/me", {
@@ -758,7 +756,7 @@ var ApiClient = class {
758
756
  }
759
757
  async verifyEmailCode(email, code) {
760
758
  const body = await this.post("/v1/auth/email/verify-code", { email, code });
761
- return { token: body.token, waitingWallets: body.waitingWallets ?? [] };
759
+ return { waitingWallets: body.waitingWallets ?? [] };
762
760
  }
763
761
  claimWallet(params) {
764
762
  return this.post("/v1/users/me/claim-wallet", params);