@medialane/sdk 0.138.0 → 0.139.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-iITqaALF.d.cts → errors-CMjZp66y.d.cts} +15 -20
- package/dist/{errors-ac8HvmsP.d.ts → errors-CtXjdRsL.d.ts} +15 -20
- package/dist/index.cjs +11 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +11 -9
- 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 +11 -9
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bG as ResolvedConfig, bO as TxResult, a$ as CreatePopCollectionParams, aM as ClaimConditions, aX as CreateDropParams, b4 as CreateTicketParams, bq as MintTicketsParams, aZ as CreateMembershipParams, bp as MintMembershipsParams, b2 as CreateSponsorshipOfferParams, bD as ProposeSponsorshipParams, k as ApiClient, bn as MedialaneConfig, bo as MedialaneErrorCode, bv as OrderDetails, R as ResolvedFeeConfig, I as ApiFundingIntent, H as ApiFundingInstructions, L as ApiFundingSubmit, N as ApiIntentCreated, bW as SealedOwner, bX as ReceiptProviderLike, bY as WalletExecutor, bZ as ExecutedTransaction, b_ as PasskeyOwner } from '../errors-
|
|
2
|
-
export { b$ as CreatedOwner, c0 as OwnerSigner, by as PasskeyCancelledError, c1 as PasskeyConfig, bQ as UserFacingError, c2 as createPasskeyOwner } from '../errors-
|
|
1
|
+
import { bG as ResolvedConfig, bO as TxResult, a$ as CreatePopCollectionParams, aM as ClaimConditions, aX as CreateDropParams, b4 as CreateTicketParams, bq as MintTicketsParams, aZ as CreateMembershipParams, bp as MintMembershipsParams, b2 as CreateSponsorshipOfferParams, bD as ProposeSponsorshipParams, k as ApiClient, bn as MedialaneConfig, bo as MedialaneErrorCode, bv as OrderDetails, R as ResolvedFeeConfig, I as ApiFundingIntent, H as ApiFundingInstructions, L as ApiFundingSubmit, N as ApiIntentCreated, bW as SealedOwner, bX as ReceiptProviderLike, bY as WalletExecutor, bZ as ExecutedTransaction, b_ as PasskeyOwner } from '../errors-CMjZp66y.cjs';
|
|
2
|
+
export { b$ as CreatedOwner, c0 as OwnerSigner, by as PasskeyCancelledError, c1 as PasskeyConfig, bQ as UserFacingError, c2 as createPasskeyOwner } from '../errors-CMjZp66y.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 { bG as ResolvedConfig, bO as TxResult, a$ as CreatePopCollectionParams, aM as ClaimConditions, aX as CreateDropParams, b4 as CreateTicketParams, bq as MintTicketsParams, aZ as CreateMembershipParams, bp as MintMembershipsParams, b2 as CreateSponsorshipOfferParams, bD as ProposeSponsorshipParams, k as ApiClient, bn as MedialaneConfig, bo as MedialaneErrorCode, bv as OrderDetails, R as ResolvedFeeConfig, I as ApiFundingIntent, H as ApiFundingInstructions, L as ApiFundingSubmit, N as ApiIntentCreated, bW as SealedOwner, bX as ReceiptProviderLike, bY as WalletExecutor, bZ as ExecutedTransaction, b_ as PasskeyOwner } from '../errors-
|
|
2
|
-
export { b$ as CreatedOwner, c0 as OwnerSigner, by as PasskeyCancelledError, c1 as PasskeyConfig, bQ as UserFacingError, c2 as createPasskeyOwner } from '../errors-
|
|
1
|
+
import { bG as ResolvedConfig, bO as TxResult, a$ as CreatePopCollectionParams, aM as ClaimConditions, aX as CreateDropParams, b4 as CreateTicketParams, bq as MintTicketsParams, aZ as CreateMembershipParams, bp as MintMembershipsParams, b2 as CreateSponsorshipOfferParams, bD as ProposeSponsorshipParams, k as ApiClient, bn as MedialaneConfig, bo as MedialaneErrorCode, bv as OrderDetails, R as ResolvedFeeConfig, I as ApiFundingIntent, H as ApiFundingInstructions, L as ApiFundingSubmit, N as ApiIntentCreated, bW as SealedOwner, bX as ReceiptProviderLike, bY as WalletExecutor, bZ as ExecutedTransaction, b_ as PasskeyOwner } from '../errors-CtXjdRsL.js';
|
|
2
|
+
export { b$ as CreatedOwner, c0 as OwnerSigner, by as PasskeyCancelledError, c1 as PasskeyConfig, bQ as UserFacingError, c2 as createPasskeyOwner } from '../errors-CtXjdRsL.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
|
@@ -743,10 +743,8 @@ var ApiClient = class {
|
|
|
743
743
|
});
|
|
744
744
|
}
|
|
745
745
|
async checkEmail(email) {
|
|
746
|
-
const body = await this.get(
|
|
747
|
-
|
|
748
|
-
);
|
|
749
|
-
return { exists: body.exists, walletWaiting: body.walletWaiting === true };
|
|
746
|
+
const body = await this.get(`/v1/auth/email/exists?email=${encodeURIComponent(email)}`);
|
|
747
|
+
return { exists: body.exists };
|
|
750
748
|
}
|
|
751
749
|
async requestEmailCode(email) {
|
|
752
750
|
await this.post("/v1/auth/email/request-code", { email });
|
|
@@ -755,15 +753,19 @@ var ApiClient = class {
|
|
|
755
753
|
await this.post("/v1/auth/email/register-account", { email });
|
|
756
754
|
}
|
|
757
755
|
async verifyEmailCode(email, code) {
|
|
758
|
-
|
|
759
|
-
return { waitingWallets: body.waitingWallets ?? [] };
|
|
756
|
+
await this.post("/v1/auth/email/verify-code", { email, code });
|
|
760
757
|
}
|
|
761
|
-
|
|
762
|
-
|
|
758
|
+
/**
|
|
759
|
+
* Makes the passkey the only owner of the session account's wallet. `signature` is the passkey's owner-alive
|
|
760
|
+
* proof for the wallet. Answers 409 when the wallet is already set up.
|
|
761
|
+
*/
|
|
762
|
+
setupWalletKey(params) {
|
|
763
|
+
return this.post("/v1/users/me/wallet/key", params);
|
|
763
764
|
}
|
|
765
|
+
/** The session account's wallet, and whether its passkey still has to be set up (`setupWalletKey`). */
|
|
764
766
|
async getSessionWallet() {
|
|
765
767
|
const body = await this.post("/v1/users/me/wallet", {});
|
|
766
|
-
return body.walletAddress
|
|
768
|
+
return body.walletAddress ? { walletAddress: body.walletAddress, needsKeySetup: body.needsKeySetup === true } : null;
|
|
767
769
|
}
|
|
768
770
|
getMyWallet(siwsToken) {
|
|
769
771
|
return this.request(
|