@medialane/sdk 0.179.0 → 0.181.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 { bU as ResolvedConfig, b6 as CreatePopCollectionParams, b$ as TxResult, a_ as CreateDropParams, bd as CreateTicketParams, bE as MintTicketsParams, b2 as CreateMembershipParams, bD as MintMembershipsParams, ba as CreateSponsorshipOfferParams, bR as ProposeSponsorshipParams, k as ApiClient, c6 as CreatorCoinService, bB as MedialaneConfig, bC as MedialaneErrorCode, bJ as OrderDetails, R as ResolvedFeeConfig, J as ApiFundingIntent, I as ApiFundingInstructions, M as ApiFundingSubmit, O as ApiIntentCreated, bk as DropTerms, c7 as SealedOwner, c8 as ReceiptProviderLike, c9 as WalletExecutor, ca as ExecutedTransaction, cb as PasskeyOwner, bi as CreateWalletManageIntentParams, cc as CreatedOwner } from '../errors-Bf4s_b14.cjs';
2
- export { cd as CreateCreatorCoinParams, ce as CreatorCoinGuarantees, cf as CreatorCoinReceiptLike, cg as DropMintState, ch as DropMintStateKind, ci as DropOnchain, cj as EkuboLaunchParams, ck as EkuboPoolParams, cl as InvalidRecoveryKeyError, cm as MAX_HOLDERS_AT_LAUNCH, cn as MAX_TEAM_ALLOCATION_PERCENT, co as OwnerSigner, bM as PasskeyCancelledError, cp as PasskeyConfig, bN as PasskeyUnsupportedError, bO as PasskeyUnsupportedReason, cq as PopAllowlist, cr as PopClaimInfo, cs as PopClaimLink, ct as PopClaimState, cu as RecoveryKey, c1 as UserFacingError, cv as VALIDATED_EKUBO_PARAMS, cw as buildCreateCreatorCoinCall, cx as buildLaunchOnEkuboCalls, cy as buildPopAllowlist, cz as createPasskeyOwner, cA as decodePopClaimFragment, cB as dropClaimLinks, cC as dropClaimedBy, cD as dropMintState, cE as encodePopClaimFragment, cF as encodeRecoveryKey, cG as getCreatorCoinGuarantees, cH as parseCreatorCoinCreated, cI as parseRecoveryKey, cJ as popCalls, cK as popClaimInfo, cL as popClaimLinks, cM as popClaimLinksCsv, cN as popClaimState, cO as priceToEkuboParams, cP as readDrop, cQ as validatePrice, cR as verifyPopProof } from '../errors-Bf4s_b14.cjs';
1
+ import { bU as ResolvedConfig, b6 as CreatePopCollectionParams, b$ as TxResult, a_ as CreateDropParams, bd as CreateTicketParams, bE as MintTicketsParams, b2 as CreateMembershipParams, bD as MintMembershipsParams, ba as CreateSponsorshipOfferParams, bR as ProposeSponsorshipParams, k as ApiClient, c6 as CreatorCoinService, bB as MedialaneConfig, bC as MedialaneErrorCode, bJ as OrderDetails, R as ResolvedFeeConfig, J as ApiFundingIntent, I as ApiFundingInstructions, M as ApiFundingSubmit, O as ApiIntentCreated, bk as DropTerms, c7 as SealedOwner, c8 as ReceiptProviderLike, c9 as WalletExecutor, ca as ExecutedTransaction, cb as PasskeyOwner, bi as CreateWalletManageIntentParams, cc as CreatedOwner } from '../errors-Bsah998f.cjs';
2
+ export { cd as ApiKeyAction, ce as ApiKeyConfirmation, cf as ApiKeyConfirmationInput, cg as CreateCreatorCoinParams, ch as CreatorCoinGuarantees, ci as CreatorCoinReceiptLike, cj as DropMintState, ck as DropMintStateKind, cl as DropOnchain, cm as EkuboLaunchParams, cn as EkuboPoolParams, co as InvalidRecoveryKeyError, cp as MAX_HOLDERS_AT_LAUNCH, cq as MAX_TEAM_ALLOCATION_PERCENT, cr as OwnerSigner, bM as PasskeyCancelledError, cs as PasskeyConfig, bN as PasskeyUnsupportedError, bO as PasskeyUnsupportedReason, ct as PopAllowlist, cu as PopClaimInfo, cv as PopClaimLink, cw as PopClaimState, cx as RecoveryKey, c1 as UserFacingError, cy as VALIDATED_EKUBO_PARAMS, cz as apiKeyConfirmationTypedData, cA as buildCreateCreatorCoinCall, cB as buildLaunchOnEkuboCalls, cC as buildPopAllowlist, cD as createPasskeyOwner, cE as decodePopClaimFragment, cF as dropClaimLinks, cG as dropClaimedBy, cH as dropMintState, cI as encodePopClaimFragment, cJ as encodeRecoveryKey, cK as getCreatorCoinGuarantees, cL as parseCreatorCoinCreated, cM as parseRecoveryKey, cN as popCalls, cO as popClaimInfo, cP as popClaimLinks, cQ as popClaimLinksCsv, cR as popClaimState, cS as priceToEkuboParams, cT as readDrop, cU as validatePrice, cV as verifyPopProof } from '../errors-Bsah998f.cjs';
3
3
  import * as starknet from 'starknet';
4
4
  import { AccountInterface, ProviderInterface, Call, TypedData, constants, BigNumberish, DeployAccountContractPayload, Account } from 'starknet';
5
5
  import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-BTNjkUst.cjs';
@@ -417,7 +417,7 @@ interface FundingApi {
417
417
  status: string;
418
418
  }>;
419
419
  }
420
- declare function fundingApiFor(client: ApiClient, siwsToken?: string): FundingApi;
420
+ declare function fundingApiFor(client: ApiClient): FundingApi;
421
421
  declare function buildFundingTransferCall(instructions: ApiFundingInstructions): FundingTransferCall;
422
422
  type FundingStep = "creating" | "signing" | "authorizing" | "paying" | "confirming";
423
423
  type FundingResult = {
@@ -1,5 +1,5 @@
1
- import { bU as ResolvedConfig, b6 as CreatePopCollectionParams, b$ as TxResult, a_ as CreateDropParams, bd as CreateTicketParams, bE as MintTicketsParams, b2 as CreateMembershipParams, bD as MintMembershipsParams, ba as CreateSponsorshipOfferParams, bR as ProposeSponsorshipParams, k as ApiClient, c6 as CreatorCoinService, bB as MedialaneConfig, bC as MedialaneErrorCode, bJ as OrderDetails, R as ResolvedFeeConfig, J as ApiFundingIntent, I as ApiFundingInstructions, M as ApiFundingSubmit, O as ApiIntentCreated, bk as DropTerms, c7 as SealedOwner, c8 as ReceiptProviderLike, c9 as WalletExecutor, ca as ExecutedTransaction, cb as PasskeyOwner, bi as CreateWalletManageIntentParams, cc as CreatedOwner } from '../errors-D3wtOrcq.js';
2
- export { cd as CreateCreatorCoinParams, ce as CreatorCoinGuarantees, cf as CreatorCoinReceiptLike, cg as DropMintState, ch as DropMintStateKind, ci as DropOnchain, cj as EkuboLaunchParams, ck as EkuboPoolParams, cl as InvalidRecoveryKeyError, cm as MAX_HOLDERS_AT_LAUNCH, cn as MAX_TEAM_ALLOCATION_PERCENT, co as OwnerSigner, bM as PasskeyCancelledError, cp as PasskeyConfig, bN as PasskeyUnsupportedError, bO as PasskeyUnsupportedReason, cq as PopAllowlist, cr as PopClaimInfo, cs as PopClaimLink, ct as PopClaimState, cu as RecoveryKey, c1 as UserFacingError, cv as VALIDATED_EKUBO_PARAMS, cw as buildCreateCreatorCoinCall, cx as buildLaunchOnEkuboCalls, cy as buildPopAllowlist, cz as createPasskeyOwner, cA as decodePopClaimFragment, cB as dropClaimLinks, cC as dropClaimedBy, cD as dropMintState, cE as encodePopClaimFragment, cF as encodeRecoveryKey, cG as getCreatorCoinGuarantees, cH as parseCreatorCoinCreated, cI as parseRecoveryKey, cJ as popCalls, cK as popClaimInfo, cL as popClaimLinks, cM as popClaimLinksCsv, cN as popClaimState, cO as priceToEkuboParams, cP as readDrop, cQ as validatePrice, cR as verifyPopProof } from '../errors-D3wtOrcq.js';
1
+ import { bU as ResolvedConfig, b6 as CreatePopCollectionParams, b$ as TxResult, a_ as CreateDropParams, bd as CreateTicketParams, bE as MintTicketsParams, b2 as CreateMembershipParams, bD as MintMembershipsParams, ba as CreateSponsorshipOfferParams, bR as ProposeSponsorshipParams, k as ApiClient, c6 as CreatorCoinService, bB as MedialaneConfig, bC as MedialaneErrorCode, bJ as OrderDetails, R as ResolvedFeeConfig, J as ApiFundingIntent, I as ApiFundingInstructions, M as ApiFundingSubmit, O as ApiIntentCreated, bk as DropTerms, c7 as SealedOwner, c8 as ReceiptProviderLike, c9 as WalletExecutor, ca as ExecutedTransaction, cb as PasskeyOwner, bi as CreateWalletManageIntentParams, cc as CreatedOwner } from '../errors-DQyz1fFP.js';
2
+ export { cd as ApiKeyAction, ce as ApiKeyConfirmation, cf as ApiKeyConfirmationInput, cg as CreateCreatorCoinParams, ch as CreatorCoinGuarantees, ci as CreatorCoinReceiptLike, cj as DropMintState, ck as DropMintStateKind, cl as DropOnchain, cm as EkuboLaunchParams, cn as EkuboPoolParams, co as InvalidRecoveryKeyError, cp as MAX_HOLDERS_AT_LAUNCH, cq as MAX_TEAM_ALLOCATION_PERCENT, cr as OwnerSigner, bM as PasskeyCancelledError, cs as PasskeyConfig, bN as PasskeyUnsupportedError, bO as PasskeyUnsupportedReason, ct as PopAllowlist, cu as PopClaimInfo, cv as PopClaimLink, cw as PopClaimState, cx as RecoveryKey, c1 as UserFacingError, cy as VALIDATED_EKUBO_PARAMS, cz as apiKeyConfirmationTypedData, cA as buildCreateCreatorCoinCall, cB as buildLaunchOnEkuboCalls, cC as buildPopAllowlist, cD as createPasskeyOwner, cE as decodePopClaimFragment, cF as dropClaimLinks, cG as dropClaimedBy, cH as dropMintState, cI as encodePopClaimFragment, cJ as encodeRecoveryKey, cK as getCreatorCoinGuarantees, cL as parseCreatorCoinCreated, cM as parseRecoveryKey, cN as popCalls, cO as popClaimInfo, cP as popClaimLinks, cQ as popClaimLinksCsv, cR as popClaimState, cS as priceToEkuboParams, cT as readDrop, cU as validatePrice, cV as verifyPopProof } from '../errors-DQyz1fFP.js';
3
3
  import * as starknet from 'starknet';
4
4
  import { AccountInterface, ProviderInterface, Call, TypedData, constants, BigNumberish, DeployAccountContractPayload, Account } from 'starknet';
5
5
  import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-BTNjkUst.js';
@@ -417,7 +417,7 @@ interface FundingApi {
417
417
  status: string;
418
418
  }>;
419
419
  }
420
- declare function fundingApiFor(client: ApiClient, siwsToken?: string): FundingApi;
420
+ declare function fundingApiFor(client: ApiClient): FundingApi;
421
421
  declare function buildFundingTransferCall(instructions: ApiFundingInstructions): FundingTransferCall;
422
422
  type FundingStep = "creating" | "signing" | "authorizing" | "paying" | "confirming";
423
423
  type FundingResult = {
@@ -1,5 +1,5 @@
1
- import { normalizeAddress, collectionHref, dropHref, resolveConfig, ApiClient, UserFacingError, getService, STARKNET_MEDIAWALLET_CLASS_HASH, computeAccountAddress, ownerConstructorCalldata, getTokenBySymbol, signWithPrivateKey, stringifyBigInts, SUPPORTED_TOKENS, starkKeyPairFromPrivateKey, createFailoverFetch } from '../chunk-BGURLH5G.js';
2
- export { InvalidStarkPrivateKeyError, PasskeyCancelledError, PasskeyUnsupportedError, UserFacingError, computeAccountAddress, createPasskeyOwner, deriveAesKey, generateStarkKeyPair, ownerConstructorCalldata, sealPrivateKey, signWithPrivateKey, starkKeyPairFromPrivateKey, unsealPrivateKey } from '../chunk-BGURLH5G.js';
1
+ import { normalizeAddress, collectionHref, dropHref, resolveConfig, ApiClient, UserFacingError, getService, STARKNET_MEDIAWALLET_CLASS_HASH, computeAccountAddress, ownerConstructorCalldata, getTokenBySymbol, signWithPrivateKey, stringifyBigInts, SUPPORTED_TOKENS, starkKeyPairFromPrivateKey, createFailoverFetch } from '../chunk-BTSTG6SP.js';
2
+ export { InvalidStarkPrivateKeyError, PasskeyCancelledError, PasskeyUnsupportedError, UserFacingError, computeAccountAddress, createPasskeyOwner, deriveAesKey, generateStarkKeyPair, ownerConstructorCalldata, sealPrivateKey, signWithPrivateKey, starkKeyPairFromPrivateKey, unsealPrivateKey } from '../chunk-BTSTG6SP.js';
3
3
  import { getStarknetCoordinates, getCoordinates } from '../chunk-WYKCGQPN.js';
4
4
  import { CallData, hash, cairo, RpcProvider, uint256, CairoOption, CairoOptionVariant, num, ec, validateAndParseAddress, Account, typedData, stark, byteArray, Contract, TypedDataRevision, constants, shortString } from 'starknet';
5
5
  import { extract, expand } from '@noble/hashes/hkdf.js';
@@ -11955,6 +11955,29 @@ async function signInWithWallet(args) {
11955
11955
  }
11956
11956
  }
11957
11957
 
11958
+ // src/starknet/api-key-confirmation.ts
11959
+ function apiKeyConfirmationTypedData(input) {
11960
+ return {
11961
+ domain: { name: "Medialane", version: "1", chainId: "SN_MAIN", revision: "1" },
11962
+ primaryType: "ApiKeyConfirmation",
11963
+ types: {
11964
+ StarknetDomain: [
11965
+ { name: "name", type: "shortstring" },
11966
+ { name: "version", type: "shortstring" },
11967
+ { name: "chainId", type: "shortstring" },
11968
+ { name: "revision", type: "shortstring" }
11969
+ ],
11970
+ ApiKeyConfirmation: [
11971
+ { name: "action", type: "shortstring" },
11972
+ { name: "key", type: "string" },
11973
+ { name: "account", type: "string" },
11974
+ { name: "expiresAt", type: "timestamp" }
11975
+ ]
11976
+ },
11977
+ message: { action: input.action, key: input.key, account: input.account, expiresAt: input.expiresAt }
11978
+ };
11979
+ }
11980
+
11958
11981
  // src/starknet/funding/chain-transfer.ts
11959
11982
  var FundingTransferNotSentError = class extends Error {
11960
11983
  constructor(message = "The transfer was not sent.") {
@@ -11962,13 +11985,13 @@ var FundingTransferNotSentError = class extends Error {
11962
11985
  this.name = "FundingTransferNotSentError";
11963
11986
  }
11964
11987
  };
11965
- function fundingApiFor(client, siwsToken) {
11988
+ function fundingApiFor(client) {
11966
11989
  return {
11967
- createFunding: (input) => client.createFunding(input, siwsToken),
11968
- getFundingChallenge: (id, payer) => client.getFundingChallenge(id, payer, siwsToken),
11969
- authorizeFunding: (id, input) => client.authorizeFunding(id, input, siwsToken),
11970
- submitFunding: (id, txHash) => client.submitFunding(id, txHash, siwsToken),
11971
- cancelFunding: (id) => client.cancelFunding(id, siwsToken)
11990
+ createFunding: (input) => client.createFunding(input),
11991
+ getFundingChallenge: (id, payer) => client.getFundingChallenge(id, payer),
11992
+ authorizeFunding: (id, input) => client.authorizeFunding(id, input),
11993
+ submitFunding: (id, txHash) => client.submitFunding(id, txHash),
11994
+ cancelFunding: (id) => client.cancelFunding(id)
11972
11995
  };
11973
11996
  }
11974
11997
  function buildFundingTransferCall(instructions) {
@@ -12823,6 +12846,6 @@ async function claimSessionWallet(api, walletAddress, deps) {
12823
12846
  if (removeOwnerGuid) await deps.removeOwner(sealed, removeOwnerGuid);
12824
12847
  }
12825
12848
 
12826
- export { MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClubService, CreatorCoinFactoryABI, CreatorCoinService, DROP_MAX_CLAIM_QUANTITY, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, FundingTransferNotSentError, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidPairingPayloadError, InvalidRecoveryKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, Medialane1155ABI, MedialaneClient, MedialaneError, POPCollectionABI, POPFactoryABI, PopService, SUGGESTED_DEFAULT_PRICE, SponsoredCallRejectedError, SponsorshipService, StarknetVenue, TicketService, VALIDATED_EKUBO_PARAMS, accountFor, allowsFallbackFunding, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildCancelEscapeCall, buildCancellationTypedData, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildFundingTransferCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildPopAllowlist, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, canRemoveDevice, claimSessionWallet, toRaw as coinToRaw, completeDeployment, computeOwnerGuid, confirmIntentBestEffort, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, decodePopClaimFragment, deploySelfFunded, deploySponsored, deployedCollectionFromReceipt, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, dropCalls, dropClaimLinks, dropClaimedBy, dropMintCost, dropMintState, encodeByteArray, encodePairingPayload, encodePopClaimFragment, encodeRecoveryKey, estimateSelfFundedFee, executeIntent, executeIntents, executeSponsored, fdvHuman, feeAmount, feeBps, fundWithChainTransfer, fundingApiFor, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isDeployed, isSiwsTokenValid, isValidStarknetAddress, mintedTokenIdFromReceipt, normalizeSiwsSignature, normalizeWalletAddress, parseAccountAddress, parseCreatorCoinCreated, parsePairingPayload, parseRecoveryKey, popCalls, popClaimInfo, popClaimLinks, popClaimLinksCsv, popClaimState, popHasClaimed, priceToEkuboParams, readDrop, requestSiwsToken, selfFundedExecutor, signInWithWallet, sponsoredExecutor, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractTerms as toDropContractTerms, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyPopProof, waitUntilDeployed };
12849
+ export { MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClubService, CreatorCoinFactoryABI, CreatorCoinService, DROP_MAX_CLAIM_QUANTITY, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, FundingTransferNotSentError, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidPairingPayloadError, InvalidRecoveryKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, Medialane1155ABI, MedialaneClient, MedialaneError, POPCollectionABI, POPFactoryABI, PopService, SUGGESTED_DEFAULT_PRICE, SponsoredCallRejectedError, SponsorshipService, StarknetVenue, TicketService, VALIDATED_EKUBO_PARAMS, accountFor, allowsFallbackFunding, apiKeyConfirmationTypedData, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildCancelEscapeCall, buildCancellationTypedData, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildFundingTransferCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildPopAllowlist, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, canRemoveDevice, claimSessionWallet, toRaw as coinToRaw, completeDeployment, computeOwnerGuid, confirmIntentBestEffort, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, decodePopClaimFragment, deploySelfFunded, deploySponsored, deployedCollectionFromReceipt, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, dropCalls, dropClaimLinks, dropClaimedBy, dropMintCost, dropMintState, encodeByteArray, encodePairingPayload, encodePopClaimFragment, encodeRecoveryKey, estimateSelfFundedFee, executeIntent, executeIntents, executeSponsored, fdvHuman, feeAmount, feeBps, fundWithChainTransfer, fundingApiFor, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isDeployed, isSiwsTokenValid, isValidStarknetAddress, mintedTokenIdFromReceipt, normalizeSiwsSignature, normalizeWalletAddress, parseAccountAddress, parseCreatorCoinCreated, parsePairingPayload, parseRecoveryKey, popCalls, popClaimInfo, popClaimLinks, popClaimLinksCsv, popClaimState, popHasClaimed, priceToEkuboParams, readDrop, requestSiwsToken, selfFundedExecutor, signInWithWallet, sponsoredExecutor, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractTerms as toDropContractTerms, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyPopProof, waitUntilDeployed };
12827
12850
  //# sourceMappingURL=index.js.map
12828
12851
  //# sourceMappingURL=index.js.map