@medialane/sdk 0.151.0 → 0.153.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/README.md +1 -0
- package/dist/{errors-DY8a9DV-.d.cts → errors-DQRDzDiT.d.cts} +6 -2
- package/dist/{errors-B315qikS.d.ts → errors-dgfLd7nS.d.ts} +6 -2
- package/dist/evm/index.cjs +1 -3
- package/dist/evm/index.cjs.map +1 -1
- package/dist/evm/index.d.cts +1 -1
- package/dist/evm/index.d.ts +1 -1
- package/dist/evm/index.js +1 -3
- package/dist/evm/index.js.map +1 -1
- package/dist/index.cjs +17 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -8
- package/dist/index.d.ts +5 -8
- package/dist/index.js +18 -11
- package/dist/index.js.map +1 -1
- package/dist/solana/index.cjs +1 -3
- package/dist/solana/index.cjs.map +1 -1
- package/dist/solana/index.d.cts +1 -1
- package/dist/solana/index.d.ts +1 -1
- package/dist/solana/index.js +1 -3
- package/dist/solana/index.js.map +1 -1
- package/dist/starknet/index.cjs +16 -12
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +3 -3
- package/dist/starknet/index.d.ts +3 -3
- package/dist/starknet/index.js +16 -12
- package/dist/starknet/index.js.map +1 -1
- package/dist/stellar/index.cjs +1 -3
- package/dist/stellar/index.cjs.map +1 -1
- package/dist/stellar/index.d.cts +1 -1
- package/dist/stellar/index.d.ts +1 -1
- package/dist/stellar/index.js +1 -3
- package/dist/stellar/index.js.map +1 -1
- package/dist/{types-CuSlc_YE.d.cts → types-CO6YYHVA.d.cts} +1 -3
- package/dist/{types-CuSlc_YE.d.ts → types-CO6YYHVA.d.ts} +1 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 ApiDropConditions, D as ApiDropInfo, E as ApiDropState, F as ApiEmissionCall, G as ApiEmissionResult, H as ApiFundingInstructions, I as ApiFundingIntent, J as ApiFundingMethod, K as ApiFundingStatus, L as ApiFundingSubmit, M as ApiIntent, N as ApiIntentCreated, O as ApiIpNftTokenData, P as ApiKeyStatus, 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 ApiSpendByAction, ao as ApiSponsorshipBid, ap as ApiSponsorshipLicense, aq as ApiSponsorshipLicensesQuery, ar as ApiSponsorshipOffer, as as ApiSponsorshipOffersQuery, at as ApiSponsorshipProposal, au as ApiSponsorshipProposalsQuery, av as ApiSubmitReport, aw as ApiTierOnchain, ax as ApiToken, ay as ApiTokenBalance, az as ApiTokenMetadata, aA as ApiTokensQuery, aB as ApiTxSyncResult, aC as ApiUserRewards, aD as ApiUserWallet, aE as ApiUsernameClaim, aF as ApiWalletActivity, aG as ApiWebhookCreated, aH as ApiWebhookEndpoint, aI as AutoRemixOfferParams, aJ as CancelOrderIntentParams, aK as ChainFilter, aL as CheckoutIntentItem, aM as ClaimConditions, 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 CreateCounterOfferIntentParams, aX as CreateDropParams, aY as CreateListingIntentParams, aZ as CreateMembershipParams, a_ as CreateMintIntentParams, a$ as CreatePopCollectionParams, b0 as CreateRemixOfferParams, b1 as CreateSponsorshipOfferIntentParams, b2 as CreateSponsorshipOfferParams, b3 as CreateSponsorshipProposalIntentParams, b4 as CreateTicketParams, b5 as CreateTierIntentParams, b6 as CreateWebhookParams, b7 as DropMintStatus, b8 as EmissionParams, b9 as EnforcementDeclaration, ba as FactoryFamilyServiceId, bb as FeeConfig, bc as FeeConfigSchema, bd as FulfillOrderIntentParams, be as IPType, bf as IntentCall, bg as IntentStatus, bh as IntentType, bi as IpAttribute, bj as IpNftMetadata, bk as LaunchCoinIntentParams, bl as MakeOfferIntentParams, bm as MedialaneApiError, bn as MedialaneConfig, bo as MedialaneErrorCode, bp as MintMembershipsParams, bq as MintTicketsParams, br as OPEN_LICENSES, bs as OfferItem, bt as OpenLicense, bu as Order, bv as OrderDetails, bw as OrderParameters, bx as OrderStatus, by as PasskeyCancelledError, bz as PlaceSponsorshipBidIntentParams, bA as PopBatchEligibilityItem, bB as PopClaimStatus, bC as PopEventType, bD as ProposeSponsorshipParams, bE as RejectSponsorshipProposalIntentParams, bF as RemixOfferStatus, bG as ResolvedConfig, bH as RetractSponsorshipBidIntentParams, bI as RetryOptions, bJ as ServiceEventDeclaration, bK as SetSponsorshipOfferOpenIntentParams, bL as SortOrder, bM as TenantPlan, bN as TierServiceId, bO as TxResult, bP as UpdateCollectionProfileInput, bQ as UserFacingError, bR as WebhookEventType, bS as WebhookStatus, bT as WithdrawSponsorshipProposalIntentParams, bU as resolveConfig, bV as resolveFeeConfig } from './errors-
|
|
3
|
-
import { C as Chain } from './types-
|
|
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-
|
|
1
|
+
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-DQRDzDiT.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 ApiDropConditions, D as ApiDropInfo, E as ApiDropState, F as ApiEmissionCall, G as ApiEmissionResult, H as ApiFundingInstructions, I as ApiFundingIntent, J as ApiFundingMethod, K as ApiFundingStatus, L as ApiFundingSubmit, M as ApiIntent, N as ApiIntentCreated, O as ApiIpNftTokenData, P as ApiKeyStatus, 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 ApiSpendByAction, ao as ApiSponsorshipBid, ap as ApiSponsorshipLicense, aq as ApiSponsorshipLicensesQuery, ar as ApiSponsorshipOffer, as as ApiSponsorshipOffersQuery, at as ApiSponsorshipProposal, au as ApiSponsorshipProposalsQuery, av as ApiSubmitReport, aw as ApiTierOnchain, ax as ApiToken, ay as ApiTokenBalance, az as ApiTokenMetadata, aA as ApiTokensQuery, aB as ApiTxSyncResult, aC as ApiUserRewards, aD as ApiUserWallet, aE as ApiUsernameClaim, aF as ApiWalletActivity, aG as ApiWebhookCreated, aH as ApiWebhookEndpoint, aI as AutoRemixOfferParams, aJ as CancelOrderIntentParams, aK as ChainFilter, aL as CheckoutIntentItem, aM as ClaimConditions, 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 CreateCounterOfferIntentParams, aX as CreateDropParams, aY as CreateListingIntentParams, aZ as CreateMembershipParams, a_ as CreateMintIntentParams, a$ as CreatePopCollectionParams, b0 as CreateRemixOfferParams, b1 as CreateSponsorshipOfferIntentParams, b2 as CreateSponsorshipOfferParams, b3 as CreateSponsorshipProposalIntentParams, b4 as CreateTicketParams, b5 as CreateTierIntentParams, b6 as CreateWebhookParams, b7 as DropMintStatus, b8 as EmissionParams, b9 as EnforcementDeclaration, ba as FactoryFamilyServiceId, bb as FeeConfig, bc as FeeConfigSchema, bd as FulfillOrderIntentParams, be as IPType, bf as IntentCall, bg as IntentStatus, bh as IntentType, bi as IpAttribute, bj as IpNftMetadata, bk as LaunchCoinIntentParams, bl as MakeOfferIntentParams, bm as MedialaneApiError, bn as MedialaneConfig, bo as MedialaneErrorCode, bp as MintMembershipsParams, bq as MintTicketsParams, br as OPEN_LICENSES, bs as OfferItem, bt as OpenLicense, bu as Order, bv as OrderDetails, bw as OrderParameters, bx as OrderStatus, by as PasskeyCancelledError, bz as PlaceSponsorshipBidIntentParams, bA as PopBatchEligibilityItem, bB as PopClaimStatus, bC as PopEventType, bD as ProposeSponsorshipParams, bE as RejectSponsorshipProposalIntentParams, bF as RemixOfferStatus, bG as ResolvedConfig, bH as RetractSponsorshipBidIntentParams, bI as RetryOptions, bJ as ServiceEventDeclaration, bK as SetSponsorshipOfferOpenIntentParams, bL as SortOrder, bM as TenantPlan, bN as TierServiceId, bO as TxResult, bP as UpdateCollectionProfileInput, bQ as UserFacingError, bR as WebhookEventType, bS as WebhookStatus, bT as WithdrawSponsorshipProposalIntentParams, bU as resolveConfig, bV as resolveFeeConfig } from './errors-DQRDzDiT.cjs';
|
|
3
|
+
import { C as Chain } from './types-CO6YYHVA.cjs';
|
|
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-CO6YYHVA.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'starknet';
|
|
7
7
|
|
|
@@ -226,9 +226,6 @@ declare const STARKNET_CREATOR_COIN_EKUBO_LAUNCHER: `0x${string}`;
|
|
|
226
226
|
declare const STARKNET_CREATOR_COIN_CLASS_HASH: `0x${string}`;
|
|
227
227
|
declare const STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH: `0x${string}`;
|
|
228
228
|
declare const STARKNET_CREATOR_COIN_START_BLOCK: number;
|
|
229
|
-
declare const STARKNET_GENESIS_MINT_LAUNCH_CONTRACT: `0x${string}`;
|
|
230
|
-
declare const STARKNET_GENESIS_MINT_BR_CONTRACT: `0x${string}`;
|
|
231
|
-
declare const STARKNET_GENESIS_MINT_GLOBAL_CONTRACT: `0x${string}`;
|
|
232
229
|
declare const STARKNET_GENESIS_MINT_CONTRACT: `0x${string}`;
|
|
233
230
|
declare const STARKNET_GENESIS_NFT_URI = "ipfs://bafkreiag6wzov7migmxwx3wrtudvbx4ajrlbjopqw7uni7nn2nsxv4eykm";
|
|
234
231
|
declare const STARKNET_EKUBO_CORE: `0x${string}`;
|
|
@@ -819,4 +816,4 @@ declare const IPFS_SAFE_CONTENT_TYPE_PREFIXES: readonly ["image/jpeg", "image/pn
|
|
|
819
816
|
declare function resolveSafeImageContentType(contentType: string): string;
|
|
820
817
|
declare const MAX_IPFS_GATEWAY_RESPONSE_BYTES: number;
|
|
821
818
|
|
|
822
|
-
export { ACCOUNT_SESSION_TTL_SECONDS, ALLOWED_IMAGE_CONTENT_TYPES, type AssetAttribute, type AssetMetadata, type BackendMetadataConfig, type BackendProxyConfig, type BackendUploadResult, type BuildAssetMetadataInput, type CanonicalHash, type CappedBody, type CertificateEmissionNextStep, type CertificateEmissionRun, Chain, type ConfirmResult, DEFAULT_CURRENCY, type DataTokenizationRun, type FailoverFetchOptions, 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, POLICY_REFUSAL_CODES, RESERVED_TRAITS, type RemixPolicy, type RemixPolicyInput, ResolvedFeeConfig, type RpcProxyConfig, 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_EKUBO_CORE,
|
|
819
|
+
export { ACCOUNT_SESSION_TTL_SECONDS, ALLOWED_IMAGE_CONTENT_TYPES, type AssetAttribute, type AssetMetadata, type BackendMetadataConfig, type BackendProxyConfig, type BackendUploadResult, type BuildAssetMetadataInput, type CanonicalHash, type CappedBody, type CertificateEmissionNextStep, type CertificateEmissionRun, Chain, type ConfirmResult, DEFAULT_CURRENCY, type DataTokenizationRun, type FailoverFetchOptions, 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, POLICY_REFUSAL_CODES, RESERVED_TRAITS, type RemixPolicy, type RemixPolicyInput, ResolvedFeeConfig, type RpcProxyConfig, 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_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, SUPPORTED_TOKENS, SUPPORTED_URL_CHAINS, ServiceCapability, ServiceDefinition, type ServiceId, type SiwsIdentity, type SupportedToken, type SupportedTokenSymbol, type TicketingNextStep, type TicketingRun, type TokenSource, type WalletRequest, assetHref, buildAssetMetadata, chainFromSlug, chainSlug, coinHref, collectionHref, createBackendProxyHandler, createFailoverFetch, createImageProxyHandler, createLaunchpadRunsClient, createRpcProxyHandler, encodeU256, formatAmount, getBackendSignedUrl, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isCertificateEmissionRun, isDataTokenizationRun, isPolicyRefusal, isPrivateHost, isPrivateOrInsecureUrl, isSameOrigin, isServiceId, isTicketingRun, isTransientRpcError, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, listServices, normalizeAddress, normalizeHash, parseAmount, readBodyWithCap, resolveAppFeeConfig, resolveRemixPolicy, resolveSafeImageContentType, shortenAddress, stringifyBigInts, u256ToBigInt, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, validateUrl, verifyAccountSessionToken, verifySiwsToken };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 ApiDropConditions, D as ApiDropInfo, E as ApiDropState, F as ApiEmissionCall, G as ApiEmissionResult, H as ApiFundingInstructions, I as ApiFundingIntent, J as ApiFundingMethod, K as ApiFundingStatus, L as ApiFundingSubmit, M as ApiIntent, N as ApiIntentCreated, O as ApiIpNftTokenData, P as ApiKeyStatus, 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 ApiSpendByAction, ao as ApiSponsorshipBid, ap as ApiSponsorshipLicense, aq as ApiSponsorshipLicensesQuery, ar as ApiSponsorshipOffer, as as ApiSponsorshipOffersQuery, at as ApiSponsorshipProposal, au as ApiSponsorshipProposalsQuery, av as ApiSubmitReport, aw as ApiTierOnchain, ax as ApiToken, ay as ApiTokenBalance, az as ApiTokenMetadata, aA as ApiTokensQuery, aB as ApiTxSyncResult, aC as ApiUserRewards, aD as ApiUserWallet, aE as ApiUsernameClaim, aF as ApiWalletActivity, aG as ApiWebhookCreated, aH as ApiWebhookEndpoint, aI as AutoRemixOfferParams, aJ as CancelOrderIntentParams, aK as ChainFilter, aL as CheckoutIntentItem, aM as ClaimConditions, 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 CreateCounterOfferIntentParams, aX as CreateDropParams, aY as CreateListingIntentParams, aZ as CreateMembershipParams, a_ as CreateMintIntentParams, a$ as CreatePopCollectionParams, b0 as CreateRemixOfferParams, b1 as CreateSponsorshipOfferIntentParams, b2 as CreateSponsorshipOfferParams, b3 as CreateSponsorshipProposalIntentParams, b4 as CreateTicketParams, b5 as CreateTierIntentParams, b6 as CreateWebhookParams, b7 as DropMintStatus, b8 as EmissionParams, b9 as EnforcementDeclaration, ba as FactoryFamilyServiceId, bb as FeeConfig, bc as FeeConfigSchema, bd as FulfillOrderIntentParams, be as IPType, bf as IntentCall, bg as IntentStatus, bh as IntentType, bi as IpAttribute, bj as IpNftMetadata, bk as LaunchCoinIntentParams, bl as MakeOfferIntentParams, bm as MedialaneApiError, bn as MedialaneConfig, bo as MedialaneErrorCode, bp as MintMembershipsParams, bq as MintTicketsParams, br as OPEN_LICENSES, bs as OfferItem, bt as OpenLicense, bu as Order, bv as OrderDetails, bw as OrderParameters, bx as OrderStatus, by as PasskeyCancelledError, bz as PlaceSponsorshipBidIntentParams, bA as PopBatchEligibilityItem, bB as PopClaimStatus, bC as PopEventType, bD as ProposeSponsorshipParams, bE as RejectSponsorshipProposalIntentParams, bF as RemixOfferStatus, bG as ResolvedConfig, bH as RetractSponsorshipBidIntentParams, bI as RetryOptions, bJ as ServiceEventDeclaration, bK as SetSponsorshipOfferOpenIntentParams, bL as SortOrder, bM as TenantPlan, bN as TierServiceId, bO as TxResult, bP as UpdateCollectionProfileInput, bQ as UserFacingError, bR as WebhookEventType, bS as WebhookStatus, bT as WithdrawSponsorshipProposalIntentParams, bU as resolveConfig, bV as resolveFeeConfig } from './errors-
|
|
3
|
-
import { C as Chain } from './types-
|
|
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-
|
|
1
|
+
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-dgfLd7nS.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 ApiDropConditions, D as ApiDropInfo, E as ApiDropState, F as ApiEmissionCall, G as ApiEmissionResult, H as ApiFundingInstructions, I as ApiFundingIntent, J as ApiFundingMethod, K as ApiFundingStatus, L as ApiFundingSubmit, M as ApiIntent, N as ApiIntentCreated, O as ApiIpNftTokenData, P as ApiKeyStatus, 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 ApiSpendByAction, ao as ApiSponsorshipBid, ap as ApiSponsorshipLicense, aq as ApiSponsorshipLicensesQuery, ar as ApiSponsorshipOffer, as as ApiSponsorshipOffersQuery, at as ApiSponsorshipProposal, au as ApiSponsorshipProposalsQuery, av as ApiSubmitReport, aw as ApiTierOnchain, ax as ApiToken, ay as ApiTokenBalance, az as ApiTokenMetadata, aA as ApiTokensQuery, aB as ApiTxSyncResult, aC as ApiUserRewards, aD as ApiUserWallet, aE as ApiUsernameClaim, aF as ApiWalletActivity, aG as ApiWebhookCreated, aH as ApiWebhookEndpoint, aI as AutoRemixOfferParams, aJ as CancelOrderIntentParams, aK as ChainFilter, aL as CheckoutIntentItem, aM as ClaimConditions, 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 CreateCounterOfferIntentParams, aX as CreateDropParams, aY as CreateListingIntentParams, aZ as CreateMembershipParams, a_ as CreateMintIntentParams, a$ as CreatePopCollectionParams, b0 as CreateRemixOfferParams, b1 as CreateSponsorshipOfferIntentParams, b2 as CreateSponsorshipOfferParams, b3 as CreateSponsorshipProposalIntentParams, b4 as CreateTicketParams, b5 as CreateTierIntentParams, b6 as CreateWebhookParams, b7 as DropMintStatus, b8 as EmissionParams, b9 as EnforcementDeclaration, ba as FactoryFamilyServiceId, bb as FeeConfig, bc as FeeConfigSchema, bd as FulfillOrderIntentParams, be as IPType, bf as IntentCall, bg as IntentStatus, bh as IntentType, bi as IpAttribute, bj as IpNftMetadata, bk as LaunchCoinIntentParams, bl as MakeOfferIntentParams, bm as MedialaneApiError, bn as MedialaneConfig, bo as MedialaneErrorCode, bp as MintMembershipsParams, bq as MintTicketsParams, br as OPEN_LICENSES, bs as OfferItem, bt as OpenLicense, bu as Order, bv as OrderDetails, bw as OrderParameters, bx as OrderStatus, by as PasskeyCancelledError, bz as PlaceSponsorshipBidIntentParams, bA as PopBatchEligibilityItem, bB as PopClaimStatus, bC as PopEventType, bD as ProposeSponsorshipParams, bE as RejectSponsorshipProposalIntentParams, bF as RemixOfferStatus, bG as ResolvedConfig, bH as RetractSponsorshipBidIntentParams, bI as RetryOptions, bJ as ServiceEventDeclaration, bK as SetSponsorshipOfferOpenIntentParams, bL as SortOrder, bM as TenantPlan, bN as TierServiceId, bO as TxResult, bP as UpdateCollectionProfileInput, bQ as UserFacingError, bR as WebhookEventType, bS as WebhookStatus, bT as WithdrawSponsorshipProposalIntentParams, bU as resolveConfig, bV as resolveFeeConfig } from './errors-dgfLd7nS.js';
|
|
3
|
+
import { C as Chain } from './types-CO6YYHVA.js';
|
|
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-CO6YYHVA.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'starknet';
|
|
7
7
|
|
|
@@ -226,9 +226,6 @@ declare const STARKNET_CREATOR_COIN_EKUBO_LAUNCHER: `0x${string}`;
|
|
|
226
226
|
declare const STARKNET_CREATOR_COIN_CLASS_HASH: `0x${string}`;
|
|
227
227
|
declare const STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH: `0x${string}`;
|
|
228
228
|
declare const STARKNET_CREATOR_COIN_START_BLOCK: number;
|
|
229
|
-
declare const STARKNET_GENESIS_MINT_LAUNCH_CONTRACT: `0x${string}`;
|
|
230
|
-
declare const STARKNET_GENESIS_MINT_BR_CONTRACT: `0x${string}`;
|
|
231
|
-
declare const STARKNET_GENESIS_MINT_GLOBAL_CONTRACT: `0x${string}`;
|
|
232
229
|
declare const STARKNET_GENESIS_MINT_CONTRACT: `0x${string}`;
|
|
233
230
|
declare const STARKNET_GENESIS_NFT_URI = "ipfs://bafkreiag6wzov7migmxwx3wrtudvbx4ajrlbjopqw7uni7nn2nsxv4eykm";
|
|
234
231
|
declare const STARKNET_EKUBO_CORE: `0x${string}`;
|
|
@@ -819,4 +816,4 @@ declare const IPFS_SAFE_CONTENT_TYPE_PREFIXES: readonly ["image/jpeg", "image/pn
|
|
|
819
816
|
declare function resolveSafeImageContentType(contentType: string): string;
|
|
820
817
|
declare const MAX_IPFS_GATEWAY_RESPONSE_BYTES: number;
|
|
821
818
|
|
|
822
|
-
export { ACCOUNT_SESSION_TTL_SECONDS, ALLOWED_IMAGE_CONTENT_TYPES, type AssetAttribute, type AssetMetadata, type BackendMetadataConfig, type BackendProxyConfig, type BackendUploadResult, type BuildAssetMetadataInput, type CanonicalHash, type CappedBody, type CertificateEmissionNextStep, type CertificateEmissionRun, Chain, type ConfirmResult, DEFAULT_CURRENCY, type DataTokenizationRun, type FailoverFetchOptions, 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, POLICY_REFUSAL_CODES, RESERVED_TRAITS, type RemixPolicy, type RemixPolicyInput, ResolvedFeeConfig, type RpcProxyConfig, 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_EKUBO_CORE,
|
|
819
|
+
export { ACCOUNT_SESSION_TTL_SECONDS, ALLOWED_IMAGE_CONTENT_TYPES, type AssetAttribute, type AssetMetadata, type BackendMetadataConfig, type BackendProxyConfig, type BackendUploadResult, type BuildAssetMetadataInput, type CanonicalHash, type CappedBody, type CertificateEmissionNextStep, type CertificateEmissionRun, Chain, type ConfirmResult, DEFAULT_CURRENCY, type DataTokenizationRun, type FailoverFetchOptions, 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, POLICY_REFUSAL_CODES, RESERVED_TRAITS, type RemixPolicy, type RemixPolicyInput, ResolvedFeeConfig, type RpcProxyConfig, 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_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, SUPPORTED_TOKENS, SUPPORTED_URL_CHAINS, ServiceCapability, ServiceDefinition, type ServiceId, type SiwsIdentity, type SupportedToken, type SupportedTokenSymbol, type TicketingNextStep, type TicketingRun, type TokenSource, type WalletRequest, assetHref, buildAssetMetadata, chainFromSlug, chainSlug, coinHref, collectionHref, createBackendProxyHandler, createFailoverFetch, createImageProxyHandler, createLaunchpadRunsClient, createRpcProxyHandler, encodeU256, formatAmount, getBackendSignedUrl, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isCertificateEmissionRun, isDataTokenizationRun, isPolicyRefusal, isPrivateHost, isPrivateOrInsecureUrl, isSameOrigin, isServiceId, isTicketingRun, isTransientRpcError, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, listServices, normalizeAddress, normalizeHash, parseAmount, readBodyWithCap, resolveAppFeeConfig, resolveRemixPolicy, resolveSafeImageContentType, shortenAddress, stringifyBigInts, u256ToBigInt, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, validateUrl, verifyAccountSessionToken, verifySiwsToken };
|
package/dist/index.js
CHANGED
|
@@ -50,9 +50,7 @@ var COORDINATES = {
|
|
|
50
50
|
ipSponsorshipClassHash: "0x0626daac2ed7e2bf630ef5b10104b3202db1559216c0c1a504c0e99be2fbfec3",
|
|
51
51
|
ipSponsorshipStartBlock: 11896456,
|
|
52
52
|
mediaWalletClassHash: "0x014b210c7d47392691144bafecdca3c6c7791cc295ea305988da0a724c05ac31",
|
|
53
|
-
|
|
54
|
-
genesisMintBR: "0x01f8b92e3b9e963b8eacb075207e2cc89d4614ff2ac6c2702c7ae10ad19a9db8",
|
|
55
|
-
genesisMintGlobal: "0x06ad4d55ed2d12ad5d6d55587d800874ef807b051bfefe13497e60ec5b019369"
|
|
53
|
+
genesisMint: "0x06ed61abba98a44d45bed2c4b1a456df15053c3321cfd6e007afb33b7226c9f0"
|
|
56
54
|
}
|
|
57
55
|
};
|
|
58
56
|
function getCoordinates(chain) {
|
|
@@ -107,6 +105,7 @@ var MedialaneConfigSchema = z.object({
|
|
|
107
105
|
rpcUrl: z.string().url().optional(),
|
|
108
106
|
backendUrl: z.string().url().optional(),
|
|
109
107
|
apiKey: z.string().optional(),
|
|
108
|
+
appSource: z.string().regex(/^[A-Z][A-Z0-9_]*$/).optional(),
|
|
110
109
|
marketplace721Contract: z.string().optional(),
|
|
111
110
|
marketplaceContract: z.string().optional(),
|
|
112
111
|
marketplace1155Contract: z.string().optional(),
|
|
@@ -131,6 +130,7 @@ function resolveConfig(raw) {
|
|
|
131
130
|
rpcUrl: parsed.rpcUrl ?? coords.rpcUrl,
|
|
132
131
|
backendUrl: parsed.backendUrl,
|
|
133
132
|
apiKey: parsed.apiKey,
|
|
133
|
+
appSource: parsed.appSource,
|
|
134
134
|
marketplace721Contract,
|
|
135
135
|
marketplaceContract: marketplace721Contract,
|
|
136
136
|
marketplace1155Contract: parsed.marketplace1155Contract ?? sn.marketplace1155,
|
|
@@ -293,10 +293,13 @@ function parseRetryAfter(value) {
|
|
|
293
293
|
return void 0;
|
|
294
294
|
}
|
|
295
295
|
var ApiClient = class {
|
|
296
|
-
constructor(baseUrl, apiKey, retryOptions, chain = "STARKNET") {
|
|
296
|
+
constructor(baseUrl, apiKey, retryOptions, chain = "STARKNET", appSource) {
|
|
297
297
|
this.baseUrl = baseUrl;
|
|
298
298
|
this.chain = chain;
|
|
299
|
-
this.baseHeaders =
|
|
299
|
+
this.baseHeaders = {
|
|
300
|
+
...apiKey ? { "x-api-key": apiKey } : {},
|
|
301
|
+
...appSource ? { "x-app-source": appSource } : {}
|
|
302
|
+
};
|
|
300
303
|
this.retryOptions = retryOptions;
|
|
301
304
|
}
|
|
302
305
|
addr(a) {
|
|
@@ -1240,10 +1243,7 @@ var STARKNET_CREATOR_COIN_EKUBO_LAUNCHER = SN.creatorCoinEkuboLauncher;
|
|
|
1240
1243
|
var STARKNET_CREATOR_COIN_CLASS_HASH = SN.creatorCoinClassHash;
|
|
1241
1244
|
var STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH = SN.creatorCoinFactoryClassHash;
|
|
1242
1245
|
var STARKNET_CREATOR_COIN_START_BLOCK = SN.creatorCoinStartBlock;
|
|
1243
|
-
var
|
|
1244
|
-
var STARKNET_GENESIS_MINT_BR_CONTRACT = SN.genesisMintBR;
|
|
1245
|
-
var STARKNET_GENESIS_MINT_GLOBAL_CONTRACT = SN.genesisMintGlobal;
|
|
1246
|
-
var STARKNET_GENESIS_MINT_CONTRACT = SN.genesisMintLaunch;
|
|
1246
|
+
var STARKNET_GENESIS_MINT_CONTRACT = SN.genesisMint;
|
|
1247
1247
|
var STARKNET_GENESIS_NFT_URI = "ipfs://bafkreiag6wzov7migmxwx3wrtudvbx4ajrlbjopqw7uni7nn2nsxv4eykm";
|
|
1248
1248
|
var STARKNET_EKUBO_CORE = SN.ekuboCore;
|
|
1249
1249
|
var SUPPORTED_TOKENS = [
|
|
@@ -1930,6 +1930,13 @@ function isPrivateIpv6(bytes) {
|
|
|
1930
1930
|
if (bytes.slice(0, 10).every((b) => b === 0) && bytes[10] === 255 && bytes[11] === 255) {
|
|
1931
1931
|
return isPrivateIpv4(bytes.slice(12));
|
|
1932
1932
|
}
|
|
1933
|
+
if (bytes.slice(0, 12).every((b) => b === 0)) return isPrivateIpv4(bytes.slice(12));
|
|
1934
|
+
if (bytes[0] === 0 && bytes[1] === 100 && bytes[2] === 255 && bytes[3] === 155 && bytes.slice(4, 12).every((b) => b === 0)) {
|
|
1935
|
+
return isPrivateIpv4(bytes.slice(12));
|
|
1936
|
+
}
|
|
1937
|
+
if (bytes[0] === 32 && bytes[1] === 2) return isPrivateIpv4(bytes.slice(2, 6));
|
|
1938
|
+
if (bytes[0] === 254 && (bytes[1] & 192) === 192) return true;
|
|
1939
|
+
if (bytes[0] === 255) return true;
|
|
1933
1940
|
return false;
|
|
1934
1941
|
}
|
|
1935
1942
|
function parseNumber(part) {
|
|
@@ -1964,7 +1971,7 @@ var BLOCKED_HOSTNAMES = /* @__PURE__ */ new Set([
|
|
|
1964
1971
|
function isPrivateHost(hostname) {
|
|
1965
1972
|
const host = hostname.toLowerCase().replace(/^\[|\]$/g, "");
|
|
1966
1973
|
if (BLOCKED_HOSTNAMES.has(host)) return true;
|
|
1967
|
-
if (host.endsWith(".local") || host.endsWith(".internal")) return true;
|
|
1974
|
+
if (host.endsWith(".local") || host.endsWith(".internal") || host.endsWith(".localhost")) return true;
|
|
1968
1975
|
const candidate = normalizeNumericHostname(host) ?? host;
|
|
1969
1976
|
const v4 = parseIpv4(candidate);
|
|
1970
1977
|
if (v4) return isPrivateIpv4(v4);
|
|
@@ -2321,6 +2328,6 @@ var UserFacingError = class extends Error {
|
|
|
2321
2328
|
}
|
|
2322
2329
|
};
|
|
2323
2330
|
|
|
2324
|
-
export { ACCOUNT_SESSION_TTL_SECONDS, ALLOWED_IMAGE_CONTENT_TYPES, ApiClient, CHAINS, DEFAULT_CHAIN, DEFAULT_CURRENCY, FeeConfigSchema, IDENTITY_TTL_SECONDS, IPFS_SAFE_CONTENT_TYPE_PREFIXES, MAX_IMAGE_PROXY_BYTES, MAX_IMAGE_REDIRECTS, MAX_IPFS_GATEWAY_RESPONSE_BYTES, MedialaneApiError, OPEN_LICENSES, POLICY_REFUSAL_CODES, PasskeyCancelledError, RESERVED_TRAITS, RunRequestError, 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_EKUBO_CORE,
|
|
2331
|
+
export { ACCOUNT_SESSION_TTL_SECONDS, ALLOWED_IMAGE_CONTENT_TYPES, ApiClient, CHAINS, DEFAULT_CHAIN, DEFAULT_CURRENCY, FeeConfigSchema, IDENTITY_TTL_SECONDS, IPFS_SAFE_CONTENT_TYPE_PREFIXES, MAX_IMAGE_PROXY_BYTES, MAX_IMAGE_REDIRECTS, MAX_IPFS_GATEWAY_RESPONSE_BYTES, MedialaneApiError, OPEN_LICENSES, POLICY_REFUSAL_CODES, PasskeyCancelledError, RESERVED_TRAITS, RunRequestError, 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_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, SUPPORTED_TOKENS, SUPPORTED_URL_CHAINS, UserFacingError, assetHref, buildAssetMetadata, chainFromSlug, chainSlug, coinHref, collectionHref, createBackendProxyHandler, createFailoverFetch, createImageProxyHandler, createLaunchpadRunsClient, createRpcProxyHandler, encodeU256, formatAmount, getBackendSignedUrl, getCoordinates, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getStarknetCoordinates, getTokenByAddress, getTokenBySymbol, hasCapability, isCertificateEmissionRun, isDataTokenizationRun, isPolicyRefusal, isPrivateHost, isPrivateOrInsecureUrl, isSameOrigin, isServiceId, isTicketingRun, isTransientRpcError, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, listServices, normalizeAddress, normalizeHash, parseAmount, readBodyWithCap, resolveAppFeeConfig, resolveConfig, resolveFeeConfig, resolveRemixPolicy, resolveSafeImageContentType, shortenAddress, stringifyBigInts, u256ToBigInt, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, validateUrl, verifyAccountSessionToken, verifySiwsToken };
|
|
2325
2332
|
//# sourceMappingURL=index.js.map
|
|
2326
2333
|
//# sourceMappingURL=index.js.map
|