@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.
- package/dist/{errors-JkeKc3cu.d.cts → errors-DEz42hh5.d.cts} +0 -6
- package/dist/{errors-HTG0DcWa.d.ts → errors-DxBa5Wne.d.ts} +0 -6
- package/dist/index.cjs +2 -74
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -13
- package/dist/index.d.ts +3 -13
- package/dist/index.js +3 -70
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +2 -4
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +2 -2
- package/dist/starknet/index.d.ts +2 -2
- package/dist/starknet/index.js +2 -4
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
2
|
-
export { bI as CreatedOwner, bJ as OwnerSigner, bf as PasskeyCancelledError, bK as PasskeyConfig, bx as UserFacingError, bL as createPasskeyOwner } from '../errors-
|
|
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';
|
package/dist/starknet/index.d.ts
CHANGED
|
@@ -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-
|
|
2
|
-
export { bI as CreatedOwner, bJ as OwnerSigner, bf as PasskeyCancelledError, bK as PasskeyConfig, bx as UserFacingError, bL as createPasskeyOwner } from '../errors-
|
|
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';
|
package/dist/starknet/index.js
CHANGED
|
@@ -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 {
|
|
759
|
+
return { waitingWallets: body.waitingWallets ?? [] };
|
|
762
760
|
}
|
|
763
761
|
claimWallet(params) {
|
|
764
762
|
return this.post("/v1/users/me/claim-wallet", params);
|