@medialane/sdk 0.119.2 → 0.121.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
1
  import { bh as ResolvedConfig, bp as TxResult, aD as CreatePopCollectionParams, ao as ClaimConditions, az as CreateDropParams, aI as CreateTicketParams, b2 as MintTicketsParams, aB as CreateMembershipParams, b1 as MintMembershipsParams, aG as CreateSponsorshipOfferParams, be as ProposeSponsorshipParams, l as ApiClient, a$ as MedialaneConfig, b0 as MedialaneErrorCode, b7 as OrderDetails, R as ResolvedFeeConfig, F as ApiIntentCreated } from '../services-CkUqZ75g.cjs';
2
- import { AccountInterface, Call, ProviderInterface, TypedData, constants, BigNumberish, DeployAccountContractPayload } from 'starknet';
2
+ import { AccountInterface, Call, ProviderInterface, TypedData, constants, BigNumberish, DeployAccountContractPayload, Account } from 'starknet';
3
3
  import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-CuSlc_YE.cjs';
4
4
  import 'zod';
5
5
 
@@ -7961,6 +7961,165 @@ declare function sealPrivateKey(aesKey: CryptoKey, iv: Uint8Array, privateKeyHex
7961
7961
  declare function unsealPrivateKey(aesKey: CryptoKey, iv: Uint8Array, ciphertext: BufferSource): Promise<string>;
7962
7962
  declare function signWithPrivateKey(privateKeyHex: string, msgHash: string): [string, string];
7963
7963
 
7964
+ interface SealedOwner {
7965
+ credentialId: string;
7966
+ ownerPubKey: string;
7967
+ address: string;
7968
+ iv: string;
7969
+ ciphertext: string;
7970
+ }
7971
+ interface OwnerSigner {
7972
+ address: string;
7973
+ signTypedData(typedData: TypedData): Promise<string[]>;
7974
+ }
7975
+ interface ExecutedTransaction {
7976
+ transactionHash: string;
7977
+ }
7978
+ interface WalletExecutor {
7979
+ execute(input: {
7980
+ userAddress: string;
7981
+ privateKeyHex: string;
7982
+ calls: Call[];
7983
+ }): Promise<ExecutedTransaction>;
7984
+ }
7985
+ interface ReceiptProviderLike {
7986
+ getClassHashAt(address: string): Promise<unknown>;
7987
+ }
7988
+
7989
+ interface OwnerStore {
7990
+ load(): SealedOwner | null;
7991
+ loadAddress(): string | null;
7992
+ save(sealed: SealedOwner): void;
7993
+ clear(): void;
7994
+ notifyChange(): void;
7995
+ onChange(listener: () => void): () => void;
7996
+ }
7997
+ declare function createOwnerStore(config: {
7998
+ storeKey: string;
7999
+ changeEvent: string;
8000
+ }): OwnerStore;
8001
+
8002
+ declare class InvalidPairingPayloadError extends Error {
8003
+ constructor(message?: string);
8004
+ }
8005
+ interface PairingPayload {
8006
+ publicKey: string;
8007
+ label: string;
8008
+ }
8009
+ declare function encodePairingPayload(payload: PairingPayload): string;
8010
+ declare function parsePairingPayload(encoded: string): PairingPayload;
8011
+ declare function parseAccountAddress(input: string): string;
8012
+
8013
+ declare function isRecoveryKeyForWallet(sealed: SealedOwner): boolean;
8014
+
8015
+ type GuardianStatus = {
8016
+ kind: "none";
8017
+ } | {
8018
+ kind: "active";
8019
+ guardian: GuardianInfo;
8020
+ };
8021
+ declare function describeGuardianStatus(guardians: GuardianInfo[]): GuardianStatus;
8022
+ type RecoveryAction = "start" | "complete" | "none";
8023
+ declare function describeRecoveryAction(escape: EscapeInfo): RecoveryAction;
8024
+
8025
+ declare function normalizeWalletAddress(address: string): string;
8026
+ declare function isValidStarknetAddress(address: string): boolean;
8027
+ declare function isDeployed(provider: ReceiptProviderLike, address: string): Promise<boolean>;
8028
+
8029
+ interface SelfFundFeeEstimate {
8030
+ feeRaw: bigint;
8031
+ unit: string;
8032
+ }
8033
+ type SelfFundConsentHandler = (feeEstimate: Promise<SelfFundFeeEstimate | null>) => Promise<boolean>;
8034
+ interface SelfFundConsent {
8035
+ registerHandler(handler: SelfFundConsentHandler | null): void;
8036
+ request(input: {
8037
+ address?: string;
8038
+ calls?: Call[];
8039
+ }): Promise<boolean>;
8040
+ }
8041
+ declare function createSelfFundConsent(estimateFee: (address: string, calls: Call[]) => Promise<SelfFundFeeEstimate>): SelfFundConsent;
8042
+
8043
+ declare class PasskeyCancelledError extends Error {
8044
+ constructor(message?: string);
8045
+ }
8046
+ interface PasskeyConfig {
8047
+ appName: string;
8048
+ relyingPartyName: string;
8049
+ relyingPartyId: () => string;
8050
+ prfSalt: Uint8Array<ArrayBuffer>;
8051
+ hkdfInfo: Uint8Array<ArrayBuffer>;
8052
+ passkeyUser: () => Promise<PublicKeyCredentialUserEntity>;
8053
+ knownCredentials: () => PublicKeyCredentialDescriptor[];
8054
+ credentials?: CredentialsContainer;
8055
+ randomBytes?: (length: number) => Uint8Array<ArrayBuffer>;
8056
+ }
8057
+ interface CreatedOwner {
8058
+ sealed: SealedOwner;
8059
+ privateKeyHex: string;
8060
+ }
8061
+ interface PasskeyOwner {
8062
+ createOwnerKey(): Promise<CreatedOwner>;
8063
+ unlockOwnerKey(sealed: SealedOwner): Promise<string>;
8064
+ sealImportedOwnerKey(privateKeyInput: string): Promise<SealedOwner>;
8065
+ walletAddressForPrivateKey(privateKeyInput: string): string;
8066
+ }
8067
+ declare function createPasskeyOwner(config: PasskeyConfig): PasskeyOwner;
8068
+
8069
+ interface SelfFundedDeps {
8070
+ provider: () => ProviderInterface;
8071
+ }
8072
+ declare function accountFor(provider: ProviderInterface, address: string, privateKeyHex: string): Account;
8073
+ declare function estimateSelfFundedFee(provider: ProviderInterface, address: string, calls: Call[]): Promise<SelfFundFeeEstimate>;
8074
+ declare function selfFundedExecutor(deps: SelfFundedDeps): WalletExecutor;
8075
+ interface SponsoredDeps extends SelfFundedDeps {
8076
+ proxyUrl: string;
8077
+ consent: SelfFundConsent;
8078
+ fetchImpl?: typeof fetch;
8079
+ fallback?: WalletExecutor;
8080
+ }
8081
+ declare function sponsoredExecutor(deps: SponsoredDeps): WalletExecutor;
8082
+
8083
+ interface DeviceEntry {
8084
+ guid: string;
8085
+ type: GuardianInfo["type"];
8086
+ isThisDevice: boolean;
8087
+ }
8088
+ declare function describeDevices(owners: GuardianInfo[], thisDevicePubkey: string): DeviceEntry[];
8089
+ declare function canRemoveDevice(devices: DeviceEntry[], guid: string): boolean;
8090
+ interface MediaWalletConfig {
8091
+ store: OwnerStore;
8092
+ passkey: PasskeyOwner;
8093
+ executor: WalletExecutor;
8094
+ provider: () => ProviderInterface;
8095
+ unlockTtlMs?: number;
8096
+ }
8097
+ interface MediaWallet {
8098
+ store: OwnerStore;
8099
+ passkey: PasskeyOwner;
8100
+ lock(address: string): void;
8101
+ signerFor(sealed: SealedOwner): {
8102
+ address: string;
8103
+ signTypedData(data: TypedData): Promise<string[]>;
8104
+ execute(calls: Call[]): Promise<{
8105
+ txHash: string;
8106
+ }>;
8107
+ };
8108
+ run(sealed: SealedOwner, calls: Call[], userAddress?: string): Promise<ExecutedTransaction>;
8109
+ getGuardians(address: string): Promise<GuardianInfo[]>;
8110
+ getEscape(address: string): Promise<EscapeInfo>;
8111
+ getEscapeSecurityPeriod(address: string): Promise<number>;
8112
+ setFirstGuardian(sealed: SealedOwner, guardianPubkey: string): Promise<string>;
8113
+ triggerEscapeOwner(guardianSealed: SealedOwner, targetAddress: string, newOwnerPubkey: string): Promise<string>;
8114
+ completeEscapeOwner(guardianSealed: SealedOwner, targetAddress: string): Promise<string>;
8115
+ cancelEscape(sealed: SealedOwner): Promise<string>;
8116
+ getOwners(address: string): Promise<GuardianInfo[]>;
8117
+ isOwnerOf(accountAddress: string, devicePubkey: string): Promise<boolean>;
8118
+ addDevice(sealed: SealedOwner, devicePubkey: string): Promise<string>;
8119
+ removeDevice(sealed: SealedOwner, ownerGuid: string): Promise<string>;
8120
+ }
8121
+ declare function createMediaWallet(config: MediaWalletConfig): MediaWallet;
8122
+
7964
8123
  type StarknetVenueSigner = VenueSigner<TypedData, Call>;
7965
8124
 
7966
- export { ADMIN_HEADERS, ADMIN_SCOPE, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, type CreateGrantOpts, CreatePopCollectionParams, CreatorCoinFactoryABI, type CreatorCoinGuarantees, type CreatorCoinReceiptLike, CreatorCoinService, type DeployCollectionParams, type DeployingServiceId, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecuteIntentOpts, type FeeSurface, type GuardianInfo, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, Medialane1155ABI, MedialaneClient, MedialaneError, type MintEditionParams, POPCollectionABI, POPFactoryABI, type ParsedAdminHeaders, PopService, type ReceiptLike, type ReceiptProvider, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, type SiwsSigner, SponsoredCallRejectedError, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsorshipFailureCode, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, adminRequestDigest, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, toRaw as coinToRaw, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, decodeEscapeAndStatus, decodeGuardiansInfo, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, encodeAdminHeaders, encodeByteArray, executeIntent, executeIntents, executeSponsored, fdvHuman, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isSiwsTokenValid, mintedTokenIdFromReceipt, normalizeSiwsSignature, ownerAliveTypedData, ownerConstructorCalldata, parseAdminHeaders, parseCreatorCoinCreated, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, sessionKeyHashOf, signAdminRequest, signWithPrivateKey, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, userMayPayInstead, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig };
8125
+ export { ADMIN_HEADERS, ADMIN_SCOPE, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, type CreateGrantOpts, CreatePopCollectionParams, type CreatedOwner, CreatorCoinFactoryABI, type CreatorCoinGuarantees, type CreatorCoinReceiptLike, CreatorCoinService, type DeployCollectionParams, type DeployingServiceId, type DeviceEntry, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecuteIntentOpts, type ExecutedTransaction, type FeeSurface, type GuardianInfo, type GuardianStatus, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidPairingPayloadError, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, type MediaWallet, type MediaWalletConfig, Medialane1155ABI, MedialaneClient, MedialaneError, type MintEditionParams, type OwnerSigner, type OwnerStore, POPCollectionABI, POPFactoryABI, type PairingPayload, type ParsedAdminHeaders, PasskeyCancelledError, type PasskeyConfig, type PasskeyOwner, PopService, type ReceiptLike, type ReceiptProvider, type ReceiptProviderLike, type RecoveryAction, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, type SealedOwner, type SelfFundConsent, type SelfFundConsentHandler, type SelfFundFeeEstimate, type SelfFundedDeps, type SiwsSigner, SponsoredCallRejectedError, type SponsoredDeps, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsorshipFailureCode, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, type WalletExecutor, accountFor, adminRequestDigest, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, canRemoveDevice, toRaw as coinToRaw, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodeAdminHeaders, encodeByteArray, encodePairingPayload, estimateSelfFundedFee, executeIntent, executeIntents, executeSponsored, fdvHuman, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isDeployed, isRecoveryKeyForWallet, isSiwsTokenValid, isValidStarknetAddress, mintedTokenIdFromReceipt, normalizeSiwsSignature, normalizeWalletAddress, ownerAliveTypedData, ownerConstructorCalldata, parseAccountAddress, parseAdminHeaders, parseCreatorCoinCreated, parsePairingPayload, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, selfFundedExecutor, sessionKeyHashOf, signAdminRequest, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, userMayPayInstead, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig };
@@ -1,5 +1,5 @@
1
1
  import { bh as ResolvedConfig, bp as TxResult, aD as CreatePopCollectionParams, ao as ClaimConditions, az as CreateDropParams, aI as CreateTicketParams, b2 as MintTicketsParams, aB as CreateMembershipParams, b1 as MintMembershipsParams, aG as CreateSponsorshipOfferParams, be as ProposeSponsorshipParams, l as ApiClient, a$ as MedialaneConfig, b0 as MedialaneErrorCode, b7 as OrderDetails, R as ResolvedFeeConfig, F as ApiIntentCreated } from '../services-4Z16tkFa.js';
2
- import { AccountInterface, Call, ProviderInterface, TypedData, constants, BigNumberish, DeployAccountContractPayload } from 'starknet';
2
+ import { AccountInterface, Call, ProviderInterface, TypedData, constants, BigNumberish, DeployAccountContractPayload, Account } from 'starknet';
3
3
  import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-CuSlc_YE.js';
4
4
  import 'zod';
5
5
 
@@ -7961,6 +7961,165 @@ declare function sealPrivateKey(aesKey: CryptoKey, iv: Uint8Array, privateKeyHex
7961
7961
  declare function unsealPrivateKey(aesKey: CryptoKey, iv: Uint8Array, ciphertext: BufferSource): Promise<string>;
7962
7962
  declare function signWithPrivateKey(privateKeyHex: string, msgHash: string): [string, string];
7963
7963
 
7964
+ interface SealedOwner {
7965
+ credentialId: string;
7966
+ ownerPubKey: string;
7967
+ address: string;
7968
+ iv: string;
7969
+ ciphertext: string;
7970
+ }
7971
+ interface OwnerSigner {
7972
+ address: string;
7973
+ signTypedData(typedData: TypedData): Promise<string[]>;
7974
+ }
7975
+ interface ExecutedTransaction {
7976
+ transactionHash: string;
7977
+ }
7978
+ interface WalletExecutor {
7979
+ execute(input: {
7980
+ userAddress: string;
7981
+ privateKeyHex: string;
7982
+ calls: Call[];
7983
+ }): Promise<ExecutedTransaction>;
7984
+ }
7985
+ interface ReceiptProviderLike {
7986
+ getClassHashAt(address: string): Promise<unknown>;
7987
+ }
7988
+
7989
+ interface OwnerStore {
7990
+ load(): SealedOwner | null;
7991
+ loadAddress(): string | null;
7992
+ save(sealed: SealedOwner): void;
7993
+ clear(): void;
7994
+ notifyChange(): void;
7995
+ onChange(listener: () => void): () => void;
7996
+ }
7997
+ declare function createOwnerStore(config: {
7998
+ storeKey: string;
7999
+ changeEvent: string;
8000
+ }): OwnerStore;
8001
+
8002
+ declare class InvalidPairingPayloadError extends Error {
8003
+ constructor(message?: string);
8004
+ }
8005
+ interface PairingPayload {
8006
+ publicKey: string;
8007
+ label: string;
8008
+ }
8009
+ declare function encodePairingPayload(payload: PairingPayload): string;
8010
+ declare function parsePairingPayload(encoded: string): PairingPayload;
8011
+ declare function parseAccountAddress(input: string): string;
8012
+
8013
+ declare function isRecoveryKeyForWallet(sealed: SealedOwner): boolean;
8014
+
8015
+ type GuardianStatus = {
8016
+ kind: "none";
8017
+ } | {
8018
+ kind: "active";
8019
+ guardian: GuardianInfo;
8020
+ };
8021
+ declare function describeGuardianStatus(guardians: GuardianInfo[]): GuardianStatus;
8022
+ type RecoveryAction = "start" | "complete" | "none";
8023
+ declare function describeRecoveryAction(escape: EscapeInfo): RecoveryAction;
8024
+
8025
+ declare function normalizeWalletAddress(address: string): string;
8026
+ declare function isValidStarknetAddress(address: string): boolean;
8027
+ declare function isDeployed(provider: ReceiptProviderLike, address: string): Promise<boolean>;
8028
+
8029
+ interface SelfFundFeeEstimate {
8030
+ feeRaw: bigint;
8031
+ unit: string;
8032
+ }
8033
+ type SelfFundConsentHandler = (feeEstimate: Promise<SelfFundFeeEstimate | null>) => Promise<boolean>;
8034
+ interface SelfFundConsent {
8035
+ registerHandler(handler: SelfFundConsentHandler | null): void;
8036
+ request(input: {
8037
+ address?: string;
8038
+ calls?: Call[];
8039
+ }): Promise<boolean>;
8040
+ }
8041
+ declare function createSelfFundConsent(estimateFee: (address: string, calls: Call[]) => Promise<SelfFundFeeEstimate>): SelfFundConsent;
8042
+
8043
+ declare class PasskeyCancelledError extends Error {
8044
+ constructor(message?: string);
8045
+ }
8046
+ interface PasskeyConfig {
8047
+ appName: string;
8048
+ relyingPartyName: string;
8049
+ relyingPartyId: () => string;
8050
+ prfSalt: Uint8Array<ArrayBuffer>;
8051
+ hkdfInfo: Uint8Array<ArrayBuffer>;
8052
+ passkeyUser: () => Promise<PublicKeyCredentialUserEntity>;
8053
+ knownCredentials: () => PublicKeyCredentialDescriptor[];
8054
+ credentials?: CredentialsContainer;
8055
+ randomBytes?: (length: number) => Uint8Array<ArrayBuffer>;
8056
+ }
8057
+ interface CreatedOwner {
8058
+ sealed: SealedOwner;
8059
+ privateKeyHex: string;
8060
+ }
8061
+ interface PasskeyOwner {
8062
+ createOwnerKey(): Promise<CreatedOwner>;
8063
+ unlockOwnerKey(sealed: SealedOwner): Promise<string>;
8064
+ sealImportedOwnerKey(privateKeyInput: string): Promise<SealedOwner>;
8065
+ walletAddressForPrivateKey(privateKeyInput: string): string;
8066
+ }
8067
+ declare function createPasskeyOwner(config: PasskeyConfig): PasskeyOwner;
8068
+
8069
+ interface SelfFundedDeps {
8070
+ provider: () => ProviderInterface;
8071
+ }
8072
+ declare function accountFor(provider: ProviderInterface, address: string, privateKeyHex: string): Account;
8073
+ declare function estimateSelfFundedFee(provider: ProviderInterface, address: string, calls: Call[]): Promise<SelfFundFeeEstimate>;
8074
+ declare function selfFundedExecutor(deps: SelfFundedDeps): WalletExecutor;
8075
+ interface SponsoredDeps extends SelfFundedDeps {
8076
+ proxyUrl: string;
8077
+ consent: SelfFundConsent;
8078
+ fetchImpl?: typeof fetch;
8079
+ fallback?: WalletExecutor;
8080
+ }
8081
+ declare function sponsoredExecutor(deps: SponsoredDeps): WalletExecutor;
8082
+
8083
+ interface DeviceEntry {
8084
+ guid: string;
8085
+ type: GuardianInfo["type"];
8086
+ isThisDevice: boolean;
8087
+ }
8088
+ declare function describeDevices(owners: GuardianInfo[], thisDevicePubkey: string): DeviceEntry[];
8089
+ declare function canRemoveDevice(devices: DeviceEntry[], guid: string): boolean;
8090
+ interface MediaWalletConfig {
8091
+ store: OwnerStore;
8092
+ passkey: PasskeyOwner;
8093
+ executor: WalletExecutor;
8094
+ provider: () => ProviderInterface;
8095
+ unlockTtlMs?: number;
8096
+ }
8097
+ interface MediaWallet {
8098
+ store: OwnerStore;
8099
+ passkey: PasskeyOwner;
8100
+ lock(address: string): void;
8101
+ signerFor(sealed: SealedOwner): {
8102
+ address: string;
8103
+ signTypedData(data: TypedData): Promise<string[]>;
8104
+ execute(calls: Call[]): Promise<{
8105
+ txHash: string;
8106
+ }>;
8107
+ };
8108
+ run(sealed: SealedOwner, calls: Call[], userAddress?: string): Promise<ExecutedTransaction>;
8109
+ getGuardians(address: string): Promise<GuardianInfo[]>;
8110
+ getEscape(address: string): Promise<EscapeInfo>;
8111
+ getEscapeSecurityPeriod(address: string): Promise<number>;
8112
+ setFirstGuardian(sealed: SealedOwner, guardianPubkey: string): Promise<string>;
8113
+ triggerEscapeOwner(guardianSealed: SealedOwner, targetAddress: string, newOwnerPubkey: string): Promise<string>;
8114
+ completeEscapeOwner(guardianSealed: SealedOwner, targetAddress: string): Promise<string>;
8115
+ cancelEscape(sealed: SealedOwner): Promise<string>;
8116
+ getOwners(address: string): Promise<GuardianInfo[]>;
8117
+ isOwnerOf(accountAddress: string, devicePubkey: string): Promise<boolean>;
8118
+ addDevice(sealed: SealedOwner, devicePubkey: string): Promise<string>;
8119
+ removeDevice(sealed: SealedOwner, ownerGuid: string): Promise<string>;
8120
+ }
8121
+ declare function createMediaWallet(config: MediaWalletConfig): MediaWallet;
8122
+
7964
8123
  type StarknetVenueSigner = VenueSigner<TypedData, Call>;
7965
8124
 
7966
- export { ADMIN_HEADERS, ADMIN_SCOPE, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, type CreateGrantOpts, CreatePopCollectionParams, CreatorCoinFactoryABI, type CreatorCoinGuarantees, type CreatorCoinReceiptLike, CreatorCoinService, type DeployCollectionParams, type DeployingServiceId, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecuteIntentOpts, type FeeSurface, type GuardianInfo, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, Medialane1155ABI, MedialaneClient, MedialaneError, type MintEditionParams, POPCollectionABI, POPFactoryABI, type ParsedAdminHeaders, PopService, type ReceiptLike, type ReceiptProvider, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, type SiwsSigner, SponsoredCallRejectedError, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsorshipFailureCode, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, adminRequestDigest, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, toRaw as coinToRaw, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, decodeEscapeAndStatus, decodeGuardiansInfo, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, encodeAdminHeaders, encodeByteArray, executeIntent, executeIntents, executeSponsored, fdvHuman, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isSiwsTokenValid, mintedTokenIdFromReceipt, normalizeSiwsSignature, ownerAliveTypedData, ownerConstructorCalldata, parseAdminHeaders, parseCreatorCoinCreated, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, sessionKeyHashOf, signAdminRequest, signWithPrivateKey, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, userMayPayInstead, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig };
8125
+ export { ADMIN_HEADERS, ADMIN_SCOPE, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, type CreateGrantOpts, CreatePopCollectionParams, type CreatedOwner, CreatorCoinFactoryABI, type CreatorCoinGuarantees, type CreatorCoinReceiptLike, CreatorCoinService, type DeployCollectionParams, type DeployingServiceId, type DeviceEntry, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecuteIntentOpts, type ExecutedTransaction, type FeeSurface, type GuardianInfo, type GuardianStatus, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidPairingPayloadError, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, type MediaWallet, type MediaWalletConfig, Medialane1155ABI, MedialaneClient, MedialaneError, type MintEditionParams, type OwnerSigner, type OwnerStore, POPCollectionABI, POPFactoryABI, type PairingPayload, type ParsedAdminHeaders, PasskeyCancelledError, type PasskeyConfig, type PasskeyOwner, PopService, type ReceiptLike, type ReceiptProvider, type ReceiptProviderLike, type RecoveryAction, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, type SealedOwner, type SelfFundConsent, type SelfFundConsentHandler, type SelfFundFeeEstimate, type SelfFundedDeps, type SiwsSigner, SponsoredCallRejectedError, type SponsoredDeps, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsorshipFailureCode, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, type WalletExecutor, accountFor, adminRequestDigest, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, canRemoveDevice, toRaw as coinToRaw, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodeAdminHeaders, encodeByteArray, encodePairingPayload, estimateSelfFundedFee, executeIntent, executeIntents, executeSponsored, fdvHuman, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isDeployed, isRecoveryKeyForWallet, isSiwsTokenValid, isValidStarknetAddress, mintedTokenIdFromReceipt, normalizeSiwsSignature, normalizeWalletAddress, ownerAliveTypedData, ownerConstructorCalldata, parseAccountAddress, parseAdminHeaders, parseCreatorCoinCreated, parsePairingPayload, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, selfFundedExecutor, sessionKeyHashOf, signAdminRequest, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, userMayPayInstead, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig };