@medialane/sdk 0.182.0 → 0.184.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/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-C3dgi8bK.cjs';
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-C3dgi8bK.cjs';
1
+ import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-CrBviXC8.cjs';
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-CrBviXC8.cjs';
3
3
  import { C as Chain } from './types-DC4jNPAF.cjs';
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-DC4jNPAF.cjs';
5
5
  import 'starknet';
@@ -829,4 +829,15 @@ declare const IPFS_SAFE_CONTENT_TYPE_PREFIXES: readonly ["image/jpeg", "image/pn
829
829
  declare function resolveSafeImageContentType(contentType: string): string;
830
830
  declare const MAX_IPFS_GATEWAY_RESPONSE_BYTES: number;
831
831
 
832
- export { ACCOUNT_SESSION_COOKIE, ACCOUNT_SESSION_TTL_SECONDS, ALLOWED_IMAGE_CONTENT_TYPES, type AppGatewayConfig, type AppSessionConfig, type AssetAttribute, type AssetMetadata, type BackendMetadataConfig, type BackendUploadResult, type BuildAssetMetadataInput, type BuildCollectionMetadataInput, type CanonicalHash, type CappedBody, type CertificateEmissionNextStep, type CertificateEmissionRun, Chain, type CollectionMetadata, type ConfirmResult, DEFAULT_CURRENCY, type DataTokenizationRun, type FeeEnv, IDENTITY_TTL_SECONDS, IPFS_SAFE_CONTENT_TYPE_PREFIXES, type ImageProxyConfig, type LaunchpadRun, type LaunchpadRunsClient, type LaunchpadRunsClientOptions, MAX_IMAGE_PROXY_BYTES, MAX_IMAGE_REDIRECTS, MAX_IPFS_GATEWAY_RESPONSE_BYTES, type NextStep, RESERVED_TRAITS, type RemixPolicy, type RemixPolicyInput, ResolvedFeeConfig, type RunQuote, type RunQuoteLine, RunRequestError, type RunStatus, 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, ServiceCapability, ServiceDefinition, type ServiceId, type SiwsIdentity, type SupportedToken, type SupportedTokenSymbol, type TicketingNextStep, type TicketingRun, type WalletRequest, assetHref, buildAssetMetadata, buildCollectionMetadata, chainFromSlug, chainSlug, coinHref, collectionHref, createAppGateway, createAppSessionHandler, createImageProxyHandler, createLaunchpadRunsClient, dropHref, encodeU256, formatAmount, getBackendSignedUrl, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isCertificateEmissionRun, isDataTokenizationRun, isPrivateHost, isPrivateOrInsecureUrl, isPublicAppRoute, isSameOrigin, isServiceId, isTicketingRun, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, listServices, normalizeAddress, normalizeHash, parseAmount, readBodyWithCap, resolveAppFeeConfig, resolveRemixPolicy, resolveSafeImageContentType, shortenAddress, stringifyBigInts, u256ToBigInt, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, validateUrl, verifyAccountSessionToken, verifySiwsToken };
832
+ type UploadKind = "image" | "document" | "media";
833
+ interface UploadLimit {
834
+ maxBytes: number;
835
+ mimeTypes: readonly string[];
836
+ }
837
+ declare const UPLOAD_LIMITS: Record<UploadKind, UploadLimit>;
838
+ declare function formatFileSize(bytes: number): string;
839
+ declare function uploadSizeError(file: {
840
+ size: number;
841
+ }, kind?: UploadKind): string | null;
842
+
843
+ export { ACCOUNT_SESSION_COOKIE, ACCOUNT_SESSION_TTL_SECONDS, ALLOWED_IMAGE_CONTENT_TYPES, type AppGatewayConfig, type AppSessionConfig, type AssetAttribute, type AssetMetadata, type BackendMetadataConfig, type BackendUploadResult, type BuildAssetMetadataInput, type BuildCollectionMetadataInput, type CanonicalHash, type CappedBody, type CertificateEmissionNextStep, type CertificateEmissionRun, Chain, type CollectionMetadata, type ConfirmResult, DEFAULT_CURRENCY, type DataTokenizationRun, type FeeEnv, IDENTITY_TTL_SECONDS, IPFS_SAFE_CONTENT_TYPE_PREFIXES, type ImageProxyConfig, type LaunchpadRun, type LaunchpadRunsClient, type LaunchpadRunsClientOptions, MAX_IMAGE_PROXY_BYTES, MAX_IMAGE_REDIRECTS, MAX_IPFS_GATEWAY_RESPONSE_BYTES, type NextStep, RESERVED_TRAITS, type RemixPolicy, type RemixPolicyInput, ResolvedFeeConfig, type RunQuote, type RunQuoteLine, RunRequestError, type RunStatus, 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, ServiceCapability, ServiceDefinition, type ServiceId, type SiwsIdentity, type SupportedToken, type SupportedTokenSymbol, type TicketingNextStep, type TicketingRun, UPLOAD_LIMITS, type UploadKind, type UploadLimit, type WalletRequest, assetHref, buildAssetMetadata, buildCollectionMetadata, chainFromSlug, chainSlug, coinHref, collectionHref, createAppGateway, createAppSessionHandler, createImageProxyHandler, createLaunchpadRunsClient, dropHref, encodeU256, formatAmount, formatFileSize, getBackendSignedUrl, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isCertificateEmissionRun, isDataTokenizationRun, isPrivateHost, isPrivateOrInsecureUrl, isPublicAppRoute, isSameOrigin, isServiceId, isTicketingRun, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, listServices, normalizeAddress, normalizeHash, parseAmount, readBodyWithCap, resolveAppFeeConfig, resolveRemixPolicy, resolveSafeImageContentType, shortenAddress, stringifyBigInts, u256ToBigInt, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, uploadSizeError, validateUrl, verifyAccountSessionToken, verifySiwsToken };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-kFtjB-a3.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-kFtjB-a3.js';
1
+ import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-kCrcWfrz.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-kCrcWfrz.js';
3
3
  import { C as Chain } from './types-DC4jNPAF.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-DC4jNPAF.js';
5
5
  import 'starknet';
@@ -829,4 +829,15 @@ declare const IPFS_SAFE_CONTENT_TYPE_PREFIXES: readonly ["image/jpeg", "image/pn
829
829
  declare function resolveSafeImageContentType(contentType: string): string;
830
830
  declare const MAX_IPFS_GATEWAY_RESPONSE_BYTES: number;
831
831
 
832
- export { ACCOUNT_SESSION_COOKIE, ACCOUNT_SESSION_TTL_SECONDS, ALLOWED_IMAGE_CONTENT_TYPES, type AppGatewayConfig, type AppSessionConfig, type AssetAttribute, type AssetMetadata, type BackendMetadataConfig, type BackendUploadResult, type BuildAssetMetadataInput, type BuildCollectionMetadataInput, type CanonicalHash, type CappedBody, type CertificateEmissionNextStep, type CertificateEmissionRun, Chain, type CollectionMetadata, type ConfirmResult, DEFAULT_CURRENCY, type DataTokenizationRun, type FeeEnv, IDENTITY_TTL_SECONDS, IPFS_SAFE_CONTENT_TYPE_PREFIXES, type ImageProxyConfig, type LaunchpadRun, type LaunchpadRunsClient, type LaunchpadRunsClientOptions, MAX_IMAGE_PROXY_BYTES, MAX_IMAGE_REDIRECTS, MAX_IPFS_GATEWAY_RESPONSE_BYTES, type NextStep, RESERVED_TRAITS, type RemixPolicy, type RemixPolicyInput, ResolvedFeeConfig, type RunQuote, type RunQuoteLine, RunRequestError, type RunStatus, 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, ServiceCapability, ServiceDefinition, type ServiceId, type SiwsIdentity, type SupportedToken, type SupportedTokenSymbol, type TicketingNextStep, type TicketingRun, type WalletRequest, assetHref, buildAssetMetadata, buildCollectionMetadata, chainFromSlug, chainSlug, coinHref, collectionHref, createAppGateway, createAppSessionHandler, createImageProxyHandler, createLaunchpadRunsClient, dropHref, encodeU256, formatAmount, getBackendSignedUrl, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isCertificateEmissionRun, isDataTokenizationRun, isPrivateHost, isPrivateOrInsecureUrl, isPublicAppRoute, isSameOrigin, isServiceId, isTicketingRun, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, listServices, normalizeAddress, normalizeHash, parseAmount, readBodyWithCap, resolveAppFeeConfig, resolveRemixPolicy, resolveSafeImageContentType, shortenAddress, stringifyBigInts, u256ToBigInt, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, validateUrl, verifyAccountSessionToken, verifySiwsToken };
832
+ type UploadKind = "image" | "document" | "media";
833
+ interface UploadLimit {
834
+ maxBytes: number;
835
+ mimeTypes: readonly string[];
836
+ }
837
+ declare const UPLOAD_LIMITS: Record<UploadKind, UploadLimit>;
838
+ declare function formatFileSize(bytes: number): string;
839
+ declare function uploadSizeError(file: {
840
+ size: number;
841
+ }, kind?: UploadKind): string | null;
842
+
843
+ export { ACCOUNT_SESSION_COOKIE, ACCOUNT_SESSION_TTL_SECONDS, ALLOWED_IMAGE_CONTENT_TYPES, type AppGatewayConfig, type AppSessionConfig, type AssetAttribute, type AssetMetadata, type BackendMetadataConfig, type BackendUploadResult, type BuildAssetMetadataInput, type BuildCollectionMetadataInput, type CanonicalHash, type CappedBody, type CertificateEmissionNextStep, type CertificateEmissionRun, Chain, type CollectionMetadata, type ConfirmResult, DEFAULT_CURRENCY, type DataTokenizationRun, type FeeEnv, IDENTITY_TTL_SECONDS, IPFS_SAFE_CONTENT_TYPE_PREFIXES, type ImageProxyConfig, type LaunchpadRun, type LaunchpadRunsClient, type LaunchpadRunsClientOptions, MAX_IMAGE_PROXY_BYTES, MAX_IMAGE_REDIRECTS, MAX_IPFS_GATEWAY_RESPONSE_BYTES, type NextStep, RESERVED_TRAITS, type RemixPolicy, type RemixPolicyInput, ResolvedFeeConfig, type RunQuote, type RunQuoteLine, RunRequestError, type RunStatus, 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, ServiceCapability, ServiceDefinition, type ServiceId, type SiwsIdentity, type SupportedToken, type SupportedTokenSymbol, type TicketingNextStep, type TicketingRun, UPLOAD_LIMITS, type UploadKind, type UploadLimit, type WalletRequest, assetHref, buildAssetMetadata, buildCollectionMetadata, chainFromSlug, chainSlug, coinHref, collectionHref, createAppGateway, createAppSessionHandler, createImageProxyHandler, createLaunchpadRunsClient, dropHref, encodeU256, formatAmount, formatFileSize, getBackendSignedUrl, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isCertificateEmissionRun, isDataTokenizationRun, isPrivateHost, isPrivateOrInsecureUrl, isPublicAppRoute, isSameOrigin, isServiceId, isTicketingRun, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, listServices, normalizeAddress, normalizeHash, parseAmount, readBodyWithCap, resolveAppFeeConfig, resolveRemixPolicy, resolveSafeImageContentType, shortenAddress, stringifyBigInts, u256ToBigInt, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, uploadSizeError, validateUrl, verifyAccountSessionToken, verifySiwsToken };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { ApiClient, DEFAULT_CURRENCY, FeeConfigSchema, MedialaneApiError, 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, dropHref, encodeU256, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isServiceId, listServices, normalizeAddress, normalizeHash, parseAmount, resolveAppFeeConfig, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt } from './chunk-JZXIZGHW.js';
1
+ export { ApiClient, DEFAULT_CURRENCY, FeeConfigSchema, MedialaneApiError, 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, dropHref, encodeU256, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isServiceId, listServices, normalizeAddress, normalizeHash, parseAmount, resolveAppFeeConfig, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt } from './chunk-6KFXIVA6.js';
2
2
  export { CHAINS, DEFAULT_CHAIN, getCoordinates, getStarknetCoordinates } from './chunk-3ME5YKTW.js';
3
3
  import { hmac } from '@noble/hashes/hmac.js';
4
4
  import { sha256 } from '@noble/hashes/sha2.js';
@@ -576,6 +576,7 @@ var PUBLIC_ROUTES = {
576
576
  `tokens/owned/${SEG}`,
577
577
  `tokens/${SEG}/${SEG}`,
578
578
  `tokens/${SEG}/${SEG}/(history|comments|remixes)`,
579
+ `tokens/${SEG}/${SEG}/balances/${SEG}`,
579
580
  "collections",
580
581
  `collections/${SEG}`,
581
582
  `collections/${SEG}/tokens`,
@@ -808,6 +809,58 @@ function resolveSafeImageContentType(contentType) {
808
809
  }
809
810
  var MAX_IPFS_GATEWAY_RESPONSE_BYTES = 25 * 1024 * 1024;
810
811
 
811
- export { ACCOUNT_SESSION_COOKIE, ACCOUNT_SESSION_TTL_SECONDS, ALLOWED_IMAGE_CONTENT_TYPES, IDENTITY_TTL_SECONDS, IPFS_SAFE_CONTENT_TYPE_PREFIXES, MAX_IMAGE_PROXY_BYTES, MAX_IMAGE_REDIRECTS, MAX_IPFS_GATEWAY_RESPONSE_BYTES, OPEN_LICENSES, RESERVED_TRAITS, RunRequestError, buildAssetMetadata, buildCollectionMetadata, createAppGateway, createAppSessionHandler, createImageProxyHandler, createLaunchpadRunsClient, getBackendSignedUrl, getDerivativesTerm, isCertificateEmissionRun, isDataTokenizationRun, isPrivateHost, isPrivateOrInsecureUrl, isPublicAppRoute, isSameOrigin, isTicketingRun, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, readBodyWithCap, resolveRemixPolicy, resolveSafeImageContentType, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, validateUrl, verifyAccountSessionToken, verifySiwsToken };
812
+ // src/uploads.ts
813
+ var MB = 1024 * 1024;
814
+ var UPLOAD_LIMITS = {
815
+ image: {
816
+ maxBytes: 50 * MB,
817
+ mimeTypes: ["image/jpeg", "image/png", "image/gif", "image/svg+xml", "image/webp"]
818
+ },
819
+ document: {
820
+ maxBytes: 20 * MB,
821
+ mimeTypes: [
822
+ "application/pdf",
823
+ "application/msword",
824
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
825
+ "application/vnd.oasis.opendocument.text",
826
+ "application/rtf",
827
+ "text/plain",
828
+ "text/markdown",
829
+ "application/octet-stream"
830
+ ]
831
+ },
832
+ media: {
833
+ maxBytes: 100 * MB,
834
+ mimeTypes: [
835
+ "image/jpeg",
836
+ "image/png",
837
+ "image/gif",
838
+ "image/webp",
839
+ "image/svg+xml",
840
+ "image/avif",
841
+ "video/mp4",
842
+ "video/webm",
843
+ "video/ogg",
844
+ "audio/mpeg",
845
+ "audio/ogg",
846
+ "audio/wav",
847
+ "audio/webm",
848
+ "audio/flac",
849
+ "application/pdf"
850
+ ]
851
+ }
852
+ };
853
+ function formatFileSize(bytes) {
854
+ const mb = bytes / MB;
855
+ return `${Number.isInteger(mb) ? mb : mb.toFixed(1)} MB`;
856
+ }
857
+ function uploadSizeError(file, kind = "image") {
858
+ const { maxBytes } = UPLOAD_LIMITS[kind];
859
+ if (file.size <= maxBytes) return null;
860
+ const noun = kind === "image" ? "image" : "file";
861
+ return `That ${noun} is ${formatFileSize(file.size)}. Please choose one under ${formatFileSize(maxBytes)}.`;
862
+ }
863
+
864
+ export { ACCOUNT_SESSION_COOKIE, ACCOUNT_SESSION_TTL_SECONDS, ALLOWED_IMAGE_CONTENT_TYPES, IDENTITY_TTL_SECONDS, IPFS_SAFE_CONTENT_TYPE_PREFIXES, MAX_IMAGE_PROXY_BYTES, MAX_IMAGE_REDIRECTS, MAX_IPFS_GATEWAY_RESPONSE_BYTES, OPEN_LICENSES, RESERVED_TRAITS, RunRequestError, UPLOAD_LIMITS, buildAssetMetadata, buildCollectionMetadata, createAppGateway, createAppSessionHandler, createImageProxyHandler, createLaunchpadRunsClient, formatFileSize, getBackendSignedUrl, getDerivativesTerm, isCertificateEmissionRun, isDataTokenizationRun, isPrivateHost, isPrivateOrInsecureUrl, isPublicAppRoute, isSameOrigin, isTicketingRun, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, readBodyWithCap, resolveRemixPolicy, resolveSafeImageContentType, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, uploadSizeError, validateUrl, verifyAccountSessionToken, verifySiwsToken };
812
865
  //# sourceMappingURL=index.js.map
813
866
  //# sourceMappingURL=index.js.map