@medialane/sdk 0.173.0 → 0.175.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/{chunk-AAH6ZM7O.cjs → chunk-46LSYJEM.cjs} +13 -2
- package/dist/chunk-46LSYJEM.cjs.map +1 -0
- package/dist/{chunk-HB2OWSZB.js → chunk-BGURLH5G.js} +13 -2
- package/dist/chunk-BGURLH5G.js.map +1 -0
- package/dist/{errors-BFqApRV3.d.cts → errors-Bf4s_b14.d.cts} +46 -1
- package/dist/{errors-J0nFhE6E.d.ts → errors-D3wtOrcq.d.ts} +46 -1
- package/dist/index.cjs +78 -76
- 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 +4 -2
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +71 -71
- package/dist/starknet/index.d.cts +3 -47
- package/dist/starknet/index.d.ts +3 -47
- package/dist/starknet/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-AAH6ZM7O.cjs.map +0 -1
- package/dist/chunk-HB2OWSZB.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-
|
|
2
|
-
export { A as AcceptSponsorshipBidIntentParams, b as AcceptSponsorshipProposalIntentParams, c as ActivityType, d as ApiActivitiesQuery, e as ApiActivity, f as ApiActivityPrice, g as ApiAdminCollectionClaim, h as ApiBusinessProvisioning, i as ApiChain, j as ApiCheckoutIntentResult, k as ApiClient, l as ApiCoin, m as ApiCoinClaimResult, n as ApiCoinPrice, o as ApiCoinPrices, p as ApiCoinsQuery, q as ApiCollection, r as ApiCollectionClaim, s as ApiCollectionProfile, t as ApiCollectionSlugClaim, u as ApiCollectionsListQuery, v as ApiCollectionsQuery, w as ApiComment, x as ApiCounterOffersQuery, y as ApiCreatorListResult, z as ApiCreatorProfile, B as ApiCreditPayment, C as ApiDrop, D as ApiDropFee, E as ApiDropListStatus, F as ApiDropMint, G as ApiEmissionCall, H as ApiEmissionResult, I as ApiFundingInstructions, J as ApiFundingIntent, K as ApiFundingMethod, L as ApiFundingStatus, M as ApiFundingSubmit, N as ApiIntent, O as ApiIntentCreated, P as ApiIpNftTokenData, Q as ApiMeta, T as ApiMetadataSignedUrl, U as ApiMetadataUpload, V as ApiOrder, W as ApiOrderConsideration, X as ApiOrderOffer, Y as ApiOrderPrice, Z as ApiOrderTokenMeta, _ as ApiOrderTxHash, $ as ApiOrdersQuery, a0 as ApiPlatformStats, a1 as ApiPointEvent, a2 as ApiPortalKey, a3 as ApiPortalKeyCreated, a4 as ApiPortalMe, a5 as ApiPortalSpend, a6 as ApiPricing, a7 as ApiPricingRule, a8 as ApiPublicRemix, a9 as ApiRemixOffer, aa as ApiRemixOfferPrice, ab as ApiRemixOffersQuery, ac as ApiReportTargetType, ad as ApiResponse, ae as ApiRewardsBadge, af as ApiRewardsBatchEntry, ag as ApiRewardsConfig, ah as ApiRewardsLeaderboardEntry, ai as ApiRewardsLevel, aj as ApiSearchCollectionResult, ak as ApiSearchCreatorResult, al as ApiSearchResult, am as ApiSearchTokenResult, an as ApiSession, ao as ApiSpendByAction, ap as ApiSponsorshipBid, aq as ApiSponsorshipLicense, ar as ApiSponsorshipLicensesQuery, as as ApiSponsorshipOffer, at as ApiSponsorshipOffersQuery, au as ApiSponsorshipProposal, av as ApiSponsorshipProposalsQuery, aw as ApiSubmitReport, ax as ApiSwapQuote, ay as ApiSwapQuoteRequest, az as ApiTierOnchain, aA as ApiToken, aB as ApiTokenBalance, aC as ApiTokenMetadata, aD as ApiTokensQuery, aE as ApiTxSyncResult, aF as ApiUserRewards, aG as ApiUserWallet, aH as ApiUsernameClaim, aI as ApiWalletActivity, aJ as AutoRemixOfferParams, aK as CancelOrderIntentParams, aL as ChainFilter, aM as CheckoutIntentItem, aN as CollectionServiceId, aO as CollectionSort, aP as CollectionTokensSort, aQ as ConfirmRemixOfferParams, aR as ConfirmSelfRemixParams, aS as ConsiderationItem, aT as CreateCheckoutIntentParams, aU as CreateCoinIntentParams, aV as CreateCollectionIntentParams, aW as CreateCommentIntentParams, aX as CreateCounterOfferIntentParams, aY as CreateDropClaimIntentParams, aZ as CreateDropManageIntentParams, a_ as CreateDropParams, a$ as CreateFundingTransferIntentParams, b0 as CreateGenesisMintIntentParams, b1 as CreateListingIntentParams, b2 as CreateMembershipParams, b3 as CreateMintIntentParams, b4 as CreatePopBurnIntentParams, b5 as CreatePopClaimIntentParams, b6 as CreatePopCollectionParams, b7 as CreatePopManageIntentParams, b8 as CreateRemixOfferParams, b9 as CreateSponsorshipOfferIntentParams, ba as CreateSponsorshipOfferParams, bb as CreateSponsorshipProposalIntentParams, bc as CreateSwapIntentParams, bd as CreateTicketParams, be as CreateTierIntentParams, bf as CreateTransferCollectionOwnershipIntentParams, bg as CreateTransferNftIntentParams, bh as CreateTransferTokenIntentParams, bi as CreateWalletManageIntentParams, bj as DropManageAction, bk as DropTerms, bl as DropTermsBody, bm as EmissionParams, bn as EnforcementDeclaration, bo as FactoryFamilyServiceId, bp as FeeConfig, bq as FeeConfigSchema, br as FulfillOrderIntentParams, bs as IPType, bt as IntentCall, bu as IntentStatus, bv as IntentType, bw as IpAttribute, bx as IpNftMetadata, by as LaunchCoinIntentParams, bz as MakeOfferIntentParams, bA as MedialaneApiError, bB as MedialaneConfig, bC as MedialaneErrorCode, bD as MintMembershipsParams, bE as MintTicketsParams, bF as OPEN_LICENSES, bG as OfferItem, bH as OpenLicense, bI as Order, bJ as OrderDetails, bK as OrderParameters, bL as OrderStatus, bM as PasskeyCancelledError, bN as PasskeyUnsupportedError, bO as PasskeyUnsupportedReason, bP as PlaceSponsorshipBidIntentParams, bQ as PopManageAction, bR as ProposeSponsorshipParams, bS as RejectSponsorshipProposalIntentParams, bT as RemixOfferStatus, bU as ResolvedConfig, bV as RetractSponsorshipBidIntentParams, bW as RetryOptions, bX as ServiceEventDeclaration, bY as SetSponsorshipOfferOpenIntentParams, bZ as SortOrder, b_ as TierServiceId, b$ as TxResult, c0 as UpdateCollectionProfileInput, c1 as UserFacingError, c2 as WalletManageAction, c3 as WithdrawSponsorshipProposalIntentParams, c4 as resolveConfig, c5 as resolveFeeConfig } from './errors-
|
|
1
|
+
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-D3wtOrcq.js';
|
|
2
|
+
export { A as AcceptSponsorshipBidIntentParams, b as AcceptSponsorshipProposalIntentParams, c as ActivityType, d as ApiActivitiesQuery, e as ApiActivity, f as ApiActivityPrice, g as ApiAdminCollectionClaim, h as ApiBusinessProvisioning, i as ApiChain, j as ApiCheckoutIntentResult, k as ApiClient, l as ApiCoin, m as ApiCoinClaimResult, n as ApiCoinPrice, o as ApiCoinPrices, p as ApiCoinsQuery, q as ApiCollection, r as ApiCollectionClaim, s as ApiCollectionProfile, t as ApiCollectionSlugClaim, u as ApiCollectionsListQuery, v as ApiCollectionsQuery, w as ApiComment, x as ApiCounterOffersQuery, y as ApiCreatorListResult, z as ApiCreatorProfile, B as ApiCreditPayment, C as ApiDrop, D as ApiDropFee, E as ApiDropListStatus, F as ApiDropMint, G as ApiEmissionCall, H as ApiEmissionResult, I as ApiFundingInstructions, J as ApiFundingIntent, K as ApiFundingMethod, L as ApiFundingStatus, M as ApiFundingSubmit, N as ApiIntent, O as ApiIntentCreated, P as ApiIpNftTokenData, Q as ApiMeta, T as ApiMetadataSignedUrl, U as ApiMetadataUpload, V as ApiOrder, W as ApiOrderConsideration, X as ApiOrderOffer, Y as ApiOrderPrice, Z as ApiOrderTokenMeta, _ as ApiOrderTxHash, $ as ApiOrdersQuery, a0 as ApiPlatformStats, a1 as ApiPointEvent, a2 as ApiPortalKey, a3 as ApiPortalKeyCreated, a4 as ApiPortalMe, a5 as ApiPortalSpend, a6 as ApiPricing, a7 as ApiPricingRule, a8 as ApiPublicRemix, a9 as ApiRemixOffer, aa as ApiRemixOfferPrice, ab as ApiRemixOffersQuery, ac as ApiReportTargetType, ad as ApiResponse, ae as ApiRewardsBadge, af as ApiRewardsBatchEntry, ag as ApiRewardsConfig, ah as ApiRewardsLeaderboardEntry, ai as ApiRewardsLevel, aj as ApiSearchCollectionResult, ak as ApiSearchCreatorResult, al as ApiSearchResult, am as ApiSearchTokenResult, an as ApiSession, ao as ApiSpendByAction, ap as ApiSponsorshipBid, aq as ApiSponsorshipLicense, ar as ApiSponsorshipLicensesQuery, as as ApiSponsorshipOffer, at as ApiSponsorshipOffersQuery, au as ApiSponsorshipProposal, av as ApiSponsorshipProposalsQuery, aw as ApiSubmitReport, ax as ApiSwapQuote, ay as ApiSwapQuoteRequest, az as ApiTierOnchain, aA as ApiToken, aB as ApiTokenBalance, aC as ApiTokenMetadata, aD as ApiTokensQuery, aE as ApiTxSyncResult, aF as ApiUserRewards, aG as ApiUserWallet, aH as ApiUsernameClaim, aI as ApiWalletActivity, aJ as AutoRemixOfferParams, aK as CancelOrderIntentParams, aL as ChainFilter, aM as CheckoutIntentItem, aN as CollectionServiceId, aO as CollectionSort, aP as CollectionTokensSort, aQ as ConfirmRemixOfferParams, aR as ConfirmSelfRemixParams, aS as ConsiderationItem, aT as CreateCheckoutIntentParams, aU as CreateCoinIntentParams, aV as CreateCollectionIntentParams, aW as CreateCommentIntentParams, aX as CreateCounterOfferIntentParams, aY as CreateDropClaimIntentParams, aZ as CreateDropManageIntentParams, a_ as CreateDropParams, a$ as CreateFundingTransferIntentParams, b0 as CreateGenesisMintIntentParams, b1 as CreateListingIntentParams, b2 as CreateMembershipParams, b3 as CreateMintIntentParams, b4 as CreatePopBurnIntentParams, b5 as CreatePopClaimIntentParams, b6 as CreatePopCollectionParams, b7 as CreatePopManageIntentParams, b8 as CreateRemixOfferParams, b9 as CreateSponsorshipOfferIntentParams, ba as CreateSponsorshipOfferParams, bb as CreateSponsorshipProposalIntentParams, bc as CreateSwapIntentParams, bd as CreateTicketParams, be as CreateTierIntentParams, bf as CreateTransferCollectionOwnershipIntentParams, bg as CreateTransferNftIntentParams, bh as CreateTransferTokenIntentParams, bi as CreateWalletManageIntentParams, bj as DropManageAction, bk as DropTerms, bl as DropTermsBody, bm as EmissionParams, bn as EnforcementDeclaration, bo as FactoryFamilyServiceId, bp as FeeConfig, bq as FeeConfigSchema, br as FulfillOrderIntentParams, bs as IPType, bt as IntentCall, bu as IntentStatus, bv as IntentType, bw as IpAttribute, bx as IpNftMetadata, by as LaunchCoinIntentParams, bz as MakeOfferIntentParams, bA as MedialaneApiError, bB as MedialaneConfig, bC as MedialaneErrorCode, bD as MintMembershipsParams, bE as MintTicketsParams, bF as OPEN_LICENSES, bG as OfferItem, bH as OpenLicense, bI as Order, bJ as OrderDetails, bK as OrderParameters, bL as OrderStatus, bM as PasskeyCancelledError, bN as PasskeyUnsupportedError, bO as PasskeyUnsupportedReason, bP as PlaceSponsorshipBidIntentParams, bQ as PopManageAction, bR as ProposeSponsorshipParams, bS as RejectSponsorshipProposalIntentParams, bT as RemixOfferStatus, bU as ResolvedConfig, bV as RetractSponsorshipBidIntentParams, bW as RetryOptions, bX as ServiceEventDeclaration, bY as SetSponsorshipOfferOpenIntentParams, bZ as SortOrder, b_ as TierServiceId, b$ as TxResult, c0 as UpdateCollectionProfileInput, c1 as UserFacingError, c2 as WalletManageAction, c3 as WithdrawSponsorshipProposalIntentParams, c4 as resolveConfig, c5 as resolveFeeConfig } from './errors-D3wtOrcq.js';
|
|
3
3
|
import { C as Chain } from './types-BTNjkUst.js';
|
|
4
4
|
export { A as AdapterTxResult, a as AssetRef, b as CHAINS, c as ChainCoordinates, d as CoordinatesByChain, e as CreateCollectionInput, D as DEFAULT_CHAIN, E as EvmCoordinates, I as IssuanceAdapter, M as MintInput, O as OrderRef, R as RegisterOrderParams, S as SolanaCoordinates, f as StarknetCoordinates, g as StellarCoordinates, V as VenueAdapter, h as getCoordinates, i as getStarknetCoordinates } from './types-BTNjkUst.js';
|
|
5
5
|
import 'starknet';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ApiClient, DEFAULT_CURRENCY, FeeConfigSchema, MedialaneApiError, POLICY_REFUSAL_CODES, PasskeyCancelledError, PasskeyUnsupportedError, STARKNET_COLLECTION_1155_CLASS_HASH, STARKNET_COLLECTION_1155_CONTRACT, STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH, STARKNET_COLLECTION_1155_START_BLOCK, STARKNET_COLLECTION_721_CONTRACT, STARKNET_COLLECTION_721_START_BLOCK, STARKNET_CREATOR_COIN_CLASS_HASH, STARKNET_CREATOR_COIN_EKUBO_LAUNCHER, STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH, STARKNET_CREATOR_COIN_FACTORY_CONTRACT, STARKNET_CREATOR_COIN_START_BLOCK, STARKNET_DATA_TOKENIZATION_721_CONTRACT, STARKNET_DROP_COLLECTION_CLASS_HASH, STARKNET_DROP_FACTORY_CONTRACT, STARKNET_DROP_FACTORY_START_BLOCK, STARKNET_EKUBO_CORE, STARKNET_GENESIS_MINT_CONTRACT, STARKNET_GENESIS_NFT_URI, STARKNET_IPCOLLECTION_CLASS_HASH, STARKNET_IPNFT_CLASS_HASH, STARKNET_IP_CLUB_COLLECTION_CLASS_HASH, STARKNET_IP_CLUB_FACTORY_CONTRACT, STARKNET_IP_SPONSORSHIP_CLASS_HASH, STARKNET_IP_SPONSORSHIP_CONTRACT, STARKNET_IP_TICKETS_FACTORY_CONTRACT, STARKNET_IP_TICKET_COLLECTION_CLASS_HASH, STARKNET_MARKETPLACE_1155_CLASS_HASH, STARKNET_MARKETPLACE_1155_CONTRACT, STARKNET_MARKETPLACE_1155_START_BLOCK, STARKNET_MARKETPLACE_721_CLASS_HASH, STARKNET_MARKETPLACE_721_CONTRACT, STARKNET_MARKETPLACE_721_START_BLOCK, STARKNET_NFTCOMMENTS_CONTRACT, STARKNET_POP_COLLECTION_CLASS_HASH, STARKNET_POP_FACTORY_CONTRACT, STARKNET_POP_FACTORY_START_BLOCK, SUPPORTED_TOKENS, SUPPORTED_URL_CHAINS, UserFacingError, assetHref, chainFromSlug, chainSlug, coinHref, collectionHref, createFailoverFetch, dropHref, encodeU256, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isPolicyRefusal, isServiceId, isTransientRpcError, listServices, normalizeAddress, normalizeHash, parseAmount, resolveAppFeeConfig, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt } from './chunk-
|
|
1
|
+
export { ApiClient, DEFAULT_CURRENCY, FeeConfigSchema, MedialaneApiError, POLICY_REFUSAL_CODES, PasskeyCancelledError, PasskeyUnsupportedError, STARKNET_COLLECTION_1155_CLASS_HASH, STARKNET_COLLECTION_1155_CONTRACT, STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH, STARKNET_COLLECTION_1155_START_BLOCK, STARKNET_COLLECTION_721_CONTRACT, STARKNET_COLLECTION_721_START_BLOCK, STARKNET_CREATOR_COIN_CLASS_HASH, STARKNET_CREATOR_COIN_EKUBO_LAUNCHER, STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH, STARKNET_CREATOR_COIN_FACTORY_CONTRACT, STARKNET_CREATOR_COIN_START_BLOCK, STARKNET_DATA_TOKENIZATION_721_CONTRACT, STARKNET_DROP_COLLECTION_CLASS_HASH, STARKNET_DROP_FACTORY_CONTRACT, STARKNET_DROP_FACTORY_START_BLOCK, STARKNET_EKUBO_CORE, STARKNET_GENESIS_MINT_CONTRACT, STARKNET_GENESIS_NFT_URI, STARKNET_IPCOLLECTION_CLASS_HASH, STARKNET_IPNFT_CLASS_HASH, STARKNET_IP_CLUB_COLLECTION_CLASS_HASH, STARKNET_IP_CLUB_FACTORY_CONTRACT, STARKNET_IP_SPONSORSHIP_CLASS_HASH, STARKNET_IP_SPONSORSHIP_CONTRACT, STARKNET_IP_TICKETS_FACTORY_CONTRACT, STARKNET_IP_TICKET_COLLECTION_CLASS_HASH, STARKNET_MARKETPLACE_1155_CLASS_HASH, STARKNET_MARKETPLACE_1155_CONTRACT, STARKNET_MARKETPLACE_1155_START_BLOCK, STARKNET_MARKETPLACE_721_CLASS_HASH, STARKNET_MARKETPLACE_721_CONTRACT, STARKNET_MARKETPLACE_721_START_BLOCK, STARKNET_NFTCOMMENTS_CONTRACT, STARKNET_POP_COLLECTION_CLASS_HASH, STARKNET_POP_FACTORY_CONTRACT, STARKNET_POP_FACTORY_START_BLOCK, SUPPORTED_TOKENS, SUPPORTED_URL_CHAINS, UserFacingError, assetHref, chainFromSlug, chainSlug, coinHref, collectionHref, createFailoverFetch, dropHref, encodeU256, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isPolicyRefusal, isServiceId, isTransientRpcError, listServices, normalizeAddress, normalizeHash, parseAmount, resolveAppFeeConfig, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt } from './chunk-BGURLH5G.js';
|
|
2
2
|
export { CHAINS, DEFAULT_CHAIN, getCoordinates, getStarknetCoordinates } from './chunk-WYKCGQPN.js';
|
|
3
3
|
import { hmac } from '@noble/hashes/hmac.js';
|
|
4
4
|
import { sha256 } from '@noble/hashes/sha2.js';
|
|
@@ -595,6 +595,7 @@ var PUBLIC_ROUTES = {
|
|
|
595
595
|
"drops",
|
|
596
596
|
`drops/${SEG}`,
|
|
597
597
|
`drops/${SEG}/mints`,
|
|
598
|
+
`drops/${SEG}/state`,
|
|
598
599
|
"rewards",
|
|
599
600
|
"rewards/config",
|
|
600
601
|
"rewards/batch",
|
|
@@ -619,7 +620,8 @@ var PUBLIC_ROUTES = {
|
|
|
619
620
|
].map((p) => new RegExp(`^${p}$`)),
|
|
620
621
|
POST: [
|
|
621
622
|
"auth/email/(request-code|verify-code|register-account|confirm)",
|
|
622
|
-
"auth/siws/(nonce|verify)"
|
|
623
|
+
"auth/siws/(nonce|verify)",
|
|
624
|
+
"users/register"
|
|
623
625
|
].map((p) => new RegExp(`^${p}$`))
|
|
624
626
|
};
|
|
625
627
|
function isPublicAppRoute(method, path) {
|