@medialane/sdk 0.128.0 → 0.129.1
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 +34 -0
- package/dist/{errors-De9avg1S.d.ts → errors-DQJIxfVu.d.ts} +1 -2
- package/dist/{errors-CO99guAf.d.cts → errors-Fgqpww_8.d.cts} +1 -2
- package/dist/index.cjs +30 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +29 -11
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +4 -8
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +2 -2
- package/dist/starknet/index.d.ts +2 -2
- package/dist/starknet/index.js +4 -8
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
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 ApiAppSource, i as ApiBusinessProvisioning, j as ApiChain, k as ApiCheckoutIntentResult, l as ApiClient, m as ApiCoin, n as ApiCoinClaimResult, o as ApiCoinPrice, p as ApiCoinPrices, q as ApiCoinsQuery, r as ApiCollection, s as ApiCollectionClaim, t as ApiCollectionProfile, u as ApiCollectionSlugClaim, v as ApiCollectionsQuery, w as ApiComment, x as ApiCounterOffersQuery, y as ApiCreatorListResult, z as ApiCreatorProfile, B as ApiCreditPayment, C as ApiEmissionCall, D as ApiEmissionResult, E as ApiIntent, F as ApiIntentCreated, G as ApiKeyStatus, H as ApiMeta, I as ApiMetadataSignedUrl, J as ApiMetadataUpload, K as ApiOrder, L as ApiOrderConsideration, M as ApiOrderOffer, N as ApiOrderPrice, O as ApiOrderTokenMeta, P as ApiOrderTxHash, Q as ApiOrdersQuery, T as ApiPointEvent, U as ApiPortalKey, V as ApiPortalKeyCreated, W as ApiPortalMe, X as ApiPortalSpend, Y as ApiPublicRemix, Z as ApiRemixOffer, _ as ApiRemixOfferPrice, $ as ApiRemixOffersQuery, a0 as ApiResponse, a1 as ApiRewardsBadge, a2 as ApiRewardsBatchEntry, a3 as ApiRewardsConfig, a4 as ApiRewardsLeaderboardEntry, a5 as ApiRewardsLevel, a6 as ApiSearchCollectionResult, a7 as ApiSearchCreatorResult, a8 as ApiSearchResult, a9 as ApiSearchTokenResult, aa as ApiSpendByAction, ab as ApiToken, ac as ApiTokenBalance, ad as ApiTokenMetadata, ae as ApiTxSyncResult, af as ApiUserRewards, ag as ApiUserWallet, ah as ApiWalletActivity, ai as ApiWebhookCreated, aj as ApiWebhookEndpoint, ak as AutoRemixOfferParams, al as CancelOrderIntentParams, am as ChainFilter, an as CheckoutIntentItem, ao as ClaimConditions, ap as CollectionServiceId, aq as CollectionSort, ar as CollectionTokensSort, as as ConfirmRemixOfferParams, at as ConfirmSelfRemixParams, au as ConsiderationItem, av as CreateCheckoutIntentParams, aw as CreateCoinIntentParams, ax as CreateCollectionIntentParams, ay as CreateCounterOfferIntentParams, az as CreateDropParams, aA as CreateListingIntentParams, aB as CreateMembershipParams, aC as CreateMintIntentParams, aD as CreatePopCollectionParams, aE as CreateRemixOfferParams, aF as CreateSponsorshipOfferIntentParams, aG as CreateSponsorshipOfferParams, aH as CreateSponsorshipProposalIntentParams, aI as CreateTicketParams, aJ as CreateTierIntentParams, aK as CreateWebhookParams, aL as DropMintStatus, aM as EmissionParams, aN as EnforcementDeclaration, aO as FactoryFamilyServiceId, aP as FeeConfig, aQ as FeeConfigSchema, aR as FulfillOrderIntentParams, aS as IPType, aT as IntentCall, aU as IntentStatus, aV as IntentType, aW as IpAttribute, aX as IpNftMetadata, aY as LaunchCoinIntentParams, aZ as MakeOfferIntentParams, a_ as MedialaneApiError, a$ as MedialaneConfig, b0 as MedialaneErrorCode, b1 as MintMembershipsParams, b2 as MintTicketsParams, b3 as OPEN_LICENSES, b4 as OfferItem, b5 as OpenLicense, b6 as Order, b7 as OrderDetails, b8 as OrderParameters, b9 as OrderStatus, ba as PasskeyCancelledError, bb as PlaceSponsorshipBidIntentParams, bc as PopBatchEligibilityItem, bd as PopClaimStatus, be as PopEventType, bf as ProposeSponsorshipParams, bg as RejectSponsorshipProposalIntentParams, bh as RemixOfferStatus, bi as ResolvedConfig, bj as RetractSponsorshipBidIntentParams, bk as RetryOptions, bl as ServiceEventDeclaration, bm as SetSponsorshipOfferOpenIntentParams, bn as SortOrder, bo as TenantPlan, bp as TierServiceId, bq as TxResult, br as UpdateCollectionProfileInput, bs as UserFacingError, bt as WebhookEventType, bu as WebhookStatus, bv as WithdrawSponsorshipProposalIntentParams, bw as resolveConfig, bx as resolveFeeConfig } from './errors-
|
|
1
|
+
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-Fgqpww_8.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 ApiAppSource, i as ApiBusinessProvisioning, j as ApiChain, k as ApiCheckoutIntentResult, l as ApiClient, m as ApiCoin, n as ApiCoinClaimResult, o as ApiCoinPrice, p as ApiCoinPrices, q as ApiCoinsQuery, r as ApiCollection, s as ApiCollectionClaim, t as ApiCollectionProfile, u as ApiCollectionSlugClaim, v as ApiCollectionsQuery, w as ApiComment, x as ApiCounterOffersQuery, y as ApiCreatorListResult, z as ApiCreatorProfile, B as ApiCreditPayment, C as ApiEmissionCall, D as ApiEmissionResult, E as ApiIntent, F as ApiIntentCreated, G as ApiKeyStatus, H as ApiMeta, I as ApiMetadataSignedUrl, J as ApiMetadataUpload, K as ApiOrder, L as ApiOrderConsideration, M as ApiOrderOffer, N as ApiOrderPrice, O as ApiOrderTokenMeta, P as ApiOrderTxHash, Q as ApiOrdersQuery, T as ApiPointEvent, U as ApiPortalKey, V as ApiPortalKeyCreated, W as ApiPortalMe, X as ApiPortalSpend, Y as ApiPublicRemix, Z as ApiRemixOffer, _ as ApiRemixOfferPrice, $ as ApiRemixOffersQuery, a0 as ApiResponse, a1 as ApiRewardsBadge, a2 as ApiRewardsBatchEntry, a3 as ApiRewardsConfig, a4 as ApiRewardsLeaderboardEntry, a5 as ApiRewardsLevel, a6 as ApiSearchCollectionResult, a7 as ApiSearchCreatorResult, a8 as ApiSearchResult, a9 as ApiSearchTokenResult, aa as ApiSpendByAction, ab as ApiToken, ac as ApiTokenBalance, ad as ApiTokenMetadata, ae as ApiTxSyncResult, af as ApiUserRewards, ag as ApiUserWallet, ah as ApiWalletActivity, ai as ApiWebhookCreated, aj as ApiWebhookEndpoint, ak as AutoRemixOfferParams, al as CancelOrderIntentParams, am as ChainFilter, an as CheckoutIntentItem, ao as ClaimConditions, ap as CollectionServiceId, aq as CollectionSort, ar as CollectionTokensSort, as as ConfirmRemixOfferParams, at as ConfirmSelfRemixParams, au as ConsiderationItem, av as CreateCheckoutIntentParams, aw as CreateCoinIntentParams, ax as CreateCollectionIntentParams, ay as CreateCounterOfferIntentParams, az as CreateDropParams, aA as CreateListingIntentParams, aB as CreateMembershipParams, aC as CreateMintIntentParams, aD as CreatePopCollectionParams, aE as CreateRemixOfferParams, aF as CreateSponsorshipOfferIntentParams, aG as CreateSponsorshipOfferParams, aH as CreateSponsorshipProposalIntentParams, aI as CreateTicketParams, aJ as CreateTierIntentParams, aK as CreateWebhookParams, aL as DropMintStatus, aM as EmissionParams, aN as EnforcementDeclaration, aO as FactoryFamilyServiceId, aP as FeeConfig, aQ as FeeConfigSchema, aR as FulfillOrderIntentParams, aS as IPType, aT as IntentCall, aU as IntentStatus, aV as IntentType, aW as IpAttribute, aX as IpNftMetadata, aY as LaunchCoinIntentParams, aZ as MakeOfferIntentParams, a_ as MedialaneApiError, a$ as MedialaneConfig, b0 as MedialaneErrorCode, b1 as MintMembershipsParams, b2 as MintTicketsParams, b3 as OPEN_LICENSES, b4 as OfferItem, b5 as OpenLicense, b6 as Order, b7 as OrderDetails, b8 as OrderParameters, b9 as OrderStatus, ba as PasskeyCancelledError, bb as PlaceSponsorshipBidIntentParams, bc as PopBatchEligibilityItem, bd as PopClaimStatus, be as PopEventType, bf as ProposeSponsorshipParams, bg as RejectSponsorshipProposalIntentParams, bh as RemixOfferStatus, bi as ResolvedConfig, bj as RetractSponsorshipBidIntentParams, bk as RetryOptions, bl as ServiceEventDeclaration, bm as SetSponsorshipOfferOpenIntentParams, bn as SortOrder, bo as TenantPlan, bp as TierServiceId, bq as TxResult, br as UpdateCollectionProfileInput, bs as UserFacingError, bt as WebhookEventType, bu as WebhookStatus, bv as WithdrawSponsorshipProposalIntentParams, bw as resolveConfig, bx as resolveFeeConfig } from './errors-Fgqpww_8.cjs';
|
|
3
3
|
import { C as Chain } from './types-CuSlc_YE.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-CuSlc_YE.cjs';
|
|
5
5
|
import 'zod';
|
|
@@ -553,6 +553,9 @@ declare function requestIp(req: Request): string;
|
|
|
553
553
|
|
|
554
554
|
declare function isSameOrigin(req: Request): boolean;
|
|
555
555
|
|
|
556
|
+
declare function isSpoofableForwardingHeader(name: string): boolean;
|
|
557
|
+
declare function trustedClientIp(req: Request): string;
|
|
558
|
+
|
|
556
559
|
declare const IDENTITY_TTL_SECONDS = 86400;
|
|
557
560
|
declare const ACCOUNT_SESSION_TTL_SECONDS: number;
|
|
558
561
|
interface SiwsIdentity {
|
|
@@ -620,4 +623,4 @@ declare const IPFS_SAFE_CONTENT_TYPE_PREFIXES: readonly ["image/jpeg", "image/pn
|
|
|
620
623
|
declare function resolveSafeImageContentType(contentType: string): string;
|
|
621
624
|
declare const MAX_IPFS_GATEWAY_RESPONSE_BYTES: number;
|
|
622
625
|
|
|
623
|
-
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, Chain, DEFAULT_CURRENCY, type FailoverFetchOptions, type FeeEnv, IDENTITY_TTL_SECONDS, IPFS_SAFE_CONTENT_TYPE_PREFIXES, type ImageProxyConfig, MAX_IMAGE_PROXY_BYTES, MAX_IMAGE_REDIRECTS, MAX_IPFS_GATEWAY_RESPONSE_BYTES, POLICY_REFUSAL_CODES, RESERVED_TRAITS, type RemixPolicy, type RemixPolicyInput, ResolvedFeeConfig, type RpcProxyConfig, 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_BR_CONTRACT, STARKNET_GENESIS_MINT_GLOBAL_CONTRACT, STARKNET_GENESIS_MINT_LAUNCH_CONTRACT, 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, TRUSTED_APP_IP_HEADER, assetHref, buildAssetMetadata, chainFromSlug, chainSlug, coinHref, collectionHref, createBackendProxyHandler, createFailoverFetch, createImageProxyHandler, createRateLimiter, createRpcProxyHandler, encodeU256, formatAmount, getBackendSignedUrl, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isPolicyRefusal, isPrivateHost, isPrivateOrInsecureUrl, isSameOrigin, isServiceId, isTransientRpcError, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, listServices, normalizeAddress, normalizeHash, parseAmount, readBodyWithCap, requestIp, resolveAppFeeConfig, resolveRemixPolicy, resolveSafeImageContentType, shortenAddress, stringifyBigInts, u256ToBigInt, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, validateUrl, verifyAccountSessionToken, verifySiwsToken };
|
|
626
|
+
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, Chain, DEFAULT_CURRENCY, type FailoverFetchOptions, type FeeEnv, IDENTITY_TTL_SECONDS, IPFS_SAFE_CONTENT_TYPE_PREFIXES, type ImageProxyConfig, MAX_IMAGE_PROXY_BYTES, MAX_IMAGE_REDIRECTS, MAX_IPFS_GATEWAY_RESPONSE_BYTES, POLICY_REFUSAL_CODES, RESERVED_TRAITS, type RemixPolicy, type RemixPolicyInput, ResolvedFeeConfig, type RpcProxyConfig, 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_BR_CONTRACT, STARKNET_GENESIS_MINT_GLOBAL_CONTRACT, STARKNET_GENESIS_MINT_LAUNCH_CONTRACT, 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, TRUSTED_APP_IP_HEADER, assetHref, buildAssetMetadata, chainFromSlug, chainSlug, coinHref, collectionHref, createBackendProxyHandler, createFailoverFetch, createImageProxyHandler, createRateLimiter, createRpcProxyHandler, encodeU256, formatAmount, getBackendSignedUrl, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isPolicyRefusal, isPrivateHost, isPrivateOrInsecureUrl, isSameOrigin, isServiceId, isSpoofableForwardingHeader, isTransientRpcError, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, listServices, normalizeAddress, normalizeHash, parseAmount, readBodyWithCap, requestIp, resolveAppFeeConfig, resolveRemixPolicy, resolveSafeImageContentType, shortenAddress, stringifyBigInts, trustedClientIp, u256ToBigInt, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, 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-
|
|
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 ApiAppSource, i as ApiBusinessProvisioning, j as ApiChain, k as ApiCheckoutIntentResult, l as ApiClient, m as ApiCoin, n as ApiCoinClaimResult, o as ApiCoinPrice, p as ApiCoinPrices, q as ApiCoinsQuery, r as ApiCollection, s as ApiCollectionClaim, t as ApiCollectionProfile, u as ApiCollectionSlugClaim, v as ApiCollectionsQuery, w as ApiComment, x as ApiCounterOffersQuery, y as ApiCreatorListResult, z as ApiCreatorProfile, B as ApiCreditPayment, C as ApiEmissionCall, D as ApiEmissionResult, E as ApiIntent, F as ApiIntentCreated, G as ApiKeyStatus, H as ApiMeta, I as ApiMetadataSignedUrl, J as ApiMetadataUpload, K as ApiOrder, L as ApiOrderConsideration, M as ApiOrderOffer, N as ApiOrderPrice, O as ApiOrderTokenMeta, P as ApiOrderTxHash, Q as ApiOrdersQuery, T as ApiPointEvent, U as ApiPortalKey, V as ApiPortalKeyCreated, W as ApiPortalMe, X as ApiPortalSpend, Y as ApiPublicRemix, Z as ApiRemixOffer, _ as ApiRemixOfferPrice, $ as ApiRemixOffersQuery, a0 as ApiResponse, a1 as ApiRewardsBadge, a2 as ApiRewardsBatchEntry, a3 as ApiRewardsConfig, a4 as ApiRewardsLeaderboardEntry, a5 as ApiRewardsLevel, a6 as ApiSearchCollectionResult, a7 as ApiSearchCreatorResult, a8 as ApiSearchResult, a9 as ApiSearchTokenResult, aa as ApiSpendByAction, ab as ApiToken, ac as ApiTokenBalance, ad as ApiTokenMetadata, ae as ApiTxSyncResult, af as ApiUserRewards, ag as ApiUserWallet, ah as ApiWalletActivity, ai as ApiWebhookCreated, aj as ApiWebhookEndpoint, ak as AutoRemixOfferParams, al as CancelOrderIntentParams, am as ChainFilter, an as CheckoutIntentItem, ao as ClaimConditions, ap as CollectionServiceId, aq as CollectionSort, ar as CollectionTokensSort, as as ConfirmRemixOfferParams, at as ConfirmSelfRemixParams, au as ConsiderationItem, av as CreateCheckoutIntentParams, aw as CreateCoinIntentParams, ax as CreateCollectionIntentParams, ay as CreateCounterOfferIntentParams, az as CreateDropParams, aA as CreateListingIntentParams, aB as CreateMembershipParams, aC as CreateMintIntentParams, aD as CreatePopCollectionParams, aE as CreateRemixOfferParams, aF as CreateSponsorshipOfferIntentParams, aG as CreateSponsorshipOfferParams, aH as CreateSponsorshipProposalIntentParams, aI as CreateTicketParams, aJ as CreateTierIntentParams, aK as CreateWebhookParams, aL as DropMintStatus, aM as EmissionParams, aN as EnforcementDeclaration, aO as FactoryFamilyServiceId, aP as FeeConfig, aQ as FeeConfigSchema, aR as FulfillOrderIntentParams, aS as IPType, aT as IntentCall, aU as IntentStatus, aV as IntentType, aW as IpAttribute, aX as IpNftMetadata, aY as LaunchCoinIntentParams, aZ as MakeOfferIntentParams, a_ as MedialaneApiError, a$ as MedialaneConfig, b0 as MedialaneErrorCode, b1 as MintMembershipsParams, b2 as MintTicketsParams, b3 as OPEN_LICENSES, b4 as OfferItem, b5 as OpenLicense, b6 as Order, b7 as OrderDetails, b8 as OrderParameters, b9 as OrderStatus, ba as PasskeyCancelledError, bb as PlaceSponsorshipBidIntentParams, bc as PopBatchEligibilityItem, bd as PopClaimStatus, be as PopEventType, bf as ProposeSponsorshipParams, bg as RejectSponsorshipProposalIntentParams, bh as RemixOfferStatus, bi as ResolvedConfig, bj as RetractSponsorshipBidIntentParams, bk as RetryOptions, bl as ServiceEventDeclaration, bm as SetSponsorshipOfferOpenIntentParams, bn as SortOrder, bo as TenantPlan, bp as TierServiceId, bq as TxResult, br as UpdateCollectionProfileInput, bs as UserFacingError, bt as WebhookEventType, bu as WebhookStatus, bv as WithdrawSponsorshipProposalIntentParams, bw as resolveConfig, bx as resolveFeeConfig } from './errors-
|
|
1
|
+
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-DQJIxfVu.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 ApiAppSource, i as ApiBusinessProvisioning, j as ApiChain, k as ApiCheckoutIntentResult, l as ApiClient, m as ApiCoin, n as ApiCoinClaimResult, o as ApiCoinPrice, p as ApiCoinPrices, q as ApiCoinsQuery, r as ApiCollection, s as ApiCollectionClaim, t as ApiCollectionProfile, u as ApiCollectionSlugClaim, v as ApiCollectionsQuery, w as ApiComment, x as ApiCounterOffersQuery, y as ApiCreatorListResult, z as ApiCreatorProfile, B as ApiCreditPayment, C as ApiEmissionCall, D as ApiEmissionResult, E as ApiIntent, F as ApiIntentCreated, G as ApiKeyStatus, H as ApiMeta, I as ApiMetadataSignedUrl, J as ApiMetadataUpload, K as ApiOrder, L as ApiOrderConsideration, M as ApiOrderOffer, N as ApiOrderPrice, O as ApiOrderTokenMeta, P as ApiOrderTxHash, Q as ApiOrdersQuery, T as ApiPointEvent, U as ApiPortalKey, V as ApiPortalKeyCreated, W as ApiPortalMe, X as ApiPortalSpend, Y as ApiPublicRemix, Z as ApiRemixOffer, _ as ApiRemixOfferPrice, $ as ApiRemixOffersQuery, a0 as ApiResponse, a1 as ApiRewardsBadge, a2 as ApiRewardsBatchEntry, a3 as ApiRewardsConfig, a4 as ApiRewardsLeaderboardEntry, a5 as ApiRewardsLevel, a6 as ApiSearchCollectionResult, a7 as ApiSearchCreatorResult, a8 as ApiSearchResult, a9 as ApiSearchTokenResult, aa as ApiSpendByAction, ab as ApiToken, ac as ApiTokenBalance, ad as ApiTokenMetadata, ae as ApiTxSyncResult, af as ApiUserRewards, ag as ApiUserWallet, ah as ApiWalletActivity, ai as ApiWebhookCreated, aj as ApiWebhookEndpoint, ak as AutoRemixOfferParams, al as CancelOrderIntentParams, am as ChainFilter, an as CheckoutIntentItem, ao as ClaimConditions, ap as CollectionServiceId, aq as CollectionSort, ar as CollectionTokensSort, as as ConfirmRemixOfferParams, at as ConfirmSelfRemixParams, au as ConsiderationItem, av as CreateCheckoutIntentParams, aw as CreateCoinIntentParams, ax as CreateCollectionIntentParams, ay as CreateCounterOfferIntentParams, az as CreateDropParams, aA as CreateListingIntentParams, aB as CreateMembershipParams, aC as CreateMintIntentParams, aD as CreatePopCollectionParams, aE as CreateRemixOfferParams, aF as CreateSponsorshipOfferIntentParams, aG as CreateSponsorshipOfferParams, aH as CreateSponsorshipProposalIntentParams, aI as CreateTicketParams, aJ as CreateTierIntentParams, aK as CreateWebhookParams, aL as DropMintStatus, aM as EmissionParams, aN as EnforcementDeclaration, aO as FactoryFamilyServiceId, aP as FeeConfig, aQ as FeeConfigSchema, aR as FulfillOrderIntentParams, aS as IPType, aT as IntentCall, aU as IntentStatus, aV as IntentType, aW as IpAttribute, aX as IpNftMetadata, aY as LaunchCoinIntentParams, aZ as MakeOfferIntentParams, a_ as MedialaneApiError, a$ as MedialaneConfig, b0 as MedialaneErrorCode, b1 as MintMembershipsParams, b2 as MintTicketsParams, b3 as OPEN_LICENSES, b4 as OfferItem, b5 as OpenLicense, b6 as Order, b7 as OrderDetails, b8 as OrderParameters, b9 as OrderStatus, ba as PasskeyCancelledError, bb as PlaceSponsorshipBidIntentParams, bc as PopBatchEligibilityItem, bd as PopClaimStatus, be as PopEventType, bf as ProposeSponsorshipParams, bg as RejectSponsorshipProposalIntentParams, bh as RemixOfferStatus, bi as ResolvedConfig, bj as RetractSponsorshipBidIntentParams, bk as RetryOptions, bl as ServiceEventDeclaration, bm as SetSponsorshipOfferOpenIntentParams, bn as SortOrder, bo as TenantPlan, bp as TierServiceId, bq as TxResult, br as UpdateCollectionProfileInput, bs as UserFacingError, bt as WebhookEventType, bu as WebhookStatus, bv as WithdrawSponsorshipProposalIntentParams, bw as resolveConfig, bx as resolveFeeConfig } from './errors-DQJIxfVu.js';
|
|
3
3
|
import { C as Chain } from './types-CuSlc_YE.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-CuSlc_YE.js';
|
|
5
5
|
import 'zod';
|
|
@@ -553,6 +553,9 @@ declare function requestIp(req: Request): string;
|
|
|
553
553
|
|
|
554
554
|
declare function isSameOrigin(req: Request): boolean;
|
|
555
555
|
|
|
556
|
+
declare function isSpoofableForwardingHeader(name: string): boolean;
|
|
557
|
+
declare function trustedClientIp(req: Request): string;
|
|
558
|
+
|
|
556
559
|
declare const IDENTITY_TTL_SECONDS = 86400;
|
|
557
560
|
declare const ACCOUNT_SESSION_TTL_SECONDS: number;
|
|
558
561
|
interface SiwsIdentity {
|
|
@@ -620,4 +623,4 @@ declare const IPFS_SAFE_CONTENT_TYPE_PREFIXES: readonly ["image/jpeg", "image/pn
|
|
|
620
623
|
declare function resolveSafeImageContentType(contentType: string): string;
|
|
621
624
|
declare const MAX_IPFS_GATEWAY_RESPONSE_BYTES: number;
|
|
622
625
|
|
|
623
|
-
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, Chain, DEFAULT_CURRENCY, type FailoverFetchOptions, type FeeEnv, IDENTITY_TTL_SECONDS, IPFS_SAFE_CONTENT_TYPE_PREFIXES, type ImageProxyConfig, MAX_IMAGE_PROXY_BYTES, MAX_IMAGE_REDIRECTS, MAX_IPFS_GATEWAY_RESPONSE_BYTES, POLICY_REFUSAL_CODES, RESERVED_TRAITS, type RemixPolicy, type RemixPolicyInput, ResolvedFeeConfig, type RpcProxyConfig, 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_BR_CONTRACT, STARKNET_GENESIS_MINT_GLOBAL_CONTRACT, STARKNET_GENESIS_MINT_LAUNCH_CONTRACT, 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, TRUSTED_APP_IP_HEADER, assetHref, buildAssetMetadata, chainFromSlug, chainSlug, coinHref, collectionHref, createBackendProxyHandler, createFailoverFetch, createImageProxyHandler, createRateLimiter, createRpcProxyHandler, encodeU256, formatAmount, getBackendSignedUrl, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isPolicyRefusal, isPrivateHost, isPrivateOrInsecureUrl, isSameOrigin, isServiceId, isTransientRpcError, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, listServices, normalizeAddress, normalizeHash, parseAmount, readBodyWithCap, requestIp, resolveAppFeeConfig, resolveRemixPolicy, resolveSafeImageContentType, shortenAddress, stringifyBigInts, u256ToBigInt, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, validateUrl, verifyAccountSessionToken, verifySiwsToken };
|
|
626
|
+
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, Chain, DEFAULT_CURRENCY, type FailoverFetchOptions, type FeeEnv, IDENTITY_TTL_SECONDS, IPFS_SAFE_CONTENT_TYPE_PREFIXES, type ImageProxyConfig, MAX_IMAGE_PROXY_BYTES, MAX_IMAGE_REDIRECTS, MAX_IPFS_GATEWAY_RESPONSE_BYTES, POLICY_REFUSAL_CODES, RESERVED_TRAITS, type RemixPolicy, type RemixPolicyInput, ResolvedFeeConfig, type RpcProxyConfig, 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_BR_CONTRACT, STARKNET_GENESIS_MINT_GLOBAL_CONTRACT, STARKNET_GENESIS_MINT_LAUNCH_CONTRACT, 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, TRUSTED_APP_IP_HEADER, assetHref, buildAssetMetadata, chainFromSlug, chainSlug, coinHref, collectionHref, createBackendProxyHandler, createFailoverFetch, createImageProxyHandler, createRateLimiter, createRpcProxyHandler, encodeU256, formatAmount, getBackendSignedUrl, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isPolicyRefusal, isPrivateHost, isPrivateOrInsecureUrl, isSameOrigin, isServiceId, isSpoofableForwardingHeader, isTransientRpcError, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, listServices, normalizeAddress, normalizeHash, parseAmount, readBodyWithCap, requestIp, resolveAppFeeConfig, resolveRemixPolicy, resolveSafeImageContentType, shortenAddress, stringifyBigInts, trustedClientIp, u256ToBigInt, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, validateUrl, verifyAccountSessionToken, verifySiwsToken };
|
package/dist/index.js
CHANGED
|
@@ -273,12 +273,11 @@ function deriveErrorCode(status) {
|
|
|
273
273
|
return "UNKNOWN";
|
|
274
274
|
}
|
|
275
275
|
var MedialaneApiError = class extends Error {
|
|
276
|
-
constructor(status, message, retryAfterMs, details
|
|
276
|
+
constructor(status, message, retryAfterMs, details) {
|
|
277
277
|
super(message);
|
|
278
278
|
this.status = status;
|
|
279
279
|
this.retryAfterMs = retryAfterMs;
|
|
280
280
|
this.details = details;
|
|
281
|
-
this.isAuthored = isAuthored;
|
|
282
281
|
this.name = "MedialaneApiError";
|
|
283
282
|
this.code = deriveErrorCode(status);
|
|
284
283
|
}
|
|
@@ -315,14 +314,12 @@ var ApiClient = class {
|
|
|
315
314
|
});
|
|
316
315
|
if (!response.ok && !allowed(response.status)) {
|
|
317
316
|
const text = await response.text().catch(() => response.statusText);
|
|
318
|
-
let message =
|
|
319
|
-
let details;
|
|
320
|
-
let isAuthored = false;
|
|
317
|
+
let message = `Request failed with status ${response.status}`;
|
|
318
|
+
let details = text;
|
|
321
319
|
try {
|
|
322
320
|
const body = JSON.parse(text);
|
|
323
321
|
if (typeof body.error === "string" && body.error.trim() !== "") {
|
|
324
322
|
message = body.error;
|
|
325
|
-
isAuthored = true;
|
|
326
323
|
}
|
|
327
324
|
details = body;
|
|
328
325
|
} catch {
|
|
@@ -331,8 +328,7 @@ var ApiClient = class {
|
|
|
331
328
|
response.status,
|
|
332
329
|
message,
|
|
333
330
|
parseRetryAfter(response.headers.get("retry-after")),
|
|
334
|
-
details
|
|
335
|
-
isAuthored
|
|
331
|
+
details
|
|
336
332
|
);
|
|
337
333
|
}
|
|
338
334
|
return response;
|
|
@@ -1471,8 +1467,6 @@ function createRateLimiter(windowMs, max) {
|
|
|
1471
1467
|
}
|
|
1472
1468
|
var TRUSTED_APP_IP_HEADER = "x-medialane-client-ip";
|
|
1473
1469
|
function requestIp(req) {
|
|
1474
|
-
const fromApp = req.headers.get(TRUSTED_APP_IP_HEADER)?.trim();
|
|
1475
|
-
if (fromApp) return fromApp;
|
|
1476
1470
|
const fromEdge = req.headers.get("x-vercel-forwarded-for")?.split(",")[0]?.trim();
|
|
1477
1471
|
if (fromEdge) return fromEdge;
|
|
1478
1472
|
const forwarded = req.headers.get("x-forwarded-for");
|
|
@@ -1861,6 +1855,30 @@ async function getBackendSignedUrl(config, kind = "image") {
|
|
|
1861
1855
|
if (!res.ok || !data.data) throw new Error(data.error ?? "Failed to create upload URL");
|
|
1862
1856
|
return data.data.url;
|
|
1863
1857
|
}
|
|
1858
|
+
|
|
1859
|
+
// src/server/trusted-client-ip.ts
|
|
1860
|
+
var SPOOFABLE_FORWARDING_HEADERS = [
|
|
1861
|
+
"x-forwarded-for",
|
|
1862
|
+
"x-real-ip",
|
|
1863
|
+
"x-client-ip",
|
|
1864
|
+
"true-client-ip",
|
|
1865
|
+
"cf-connecting-ip",
|
|
1866
|
+
TRUSTED_APP_IP_HEADER
|
|
1867
|
+
];
|
|
1868
|
+
function isSpoofableForwardingHeader(name) {
|
|
1869
|
+
return SPOOFABLE_FORWARDING_HEADERS.includes(name.toLowerCase());
|
|
1870
|
+
}
|
|
1871
|
+
function trustedClientIp(req) {
|
|
1872
|
+
const vercel = req.headers.get("x-vercel-forwarded-for")?.split(",")[0]?.trim();
|
|
1873
|
+
if (vercel) return vercel;
|
|
1874
|
+
const forwarded = req.headers.get("x-forwarded-for");
|
|
1875
|
+
if (forwarded) {
|
|
1876
|
+
const hops = forwarded.split(",").map((hop) => hop.trim()).filter(Boolean);
|
|
1877
|
+
const nearest = hops[hops.length - 1];
|
|
1878
|
+
if (nearest) return nearest;
|
|
1879
|
+
}
|
|
1880
|
+
return "unknown";
|
|
1881
|
+
}
|
|
1864
1882
|
var IDENTITY_PREFIX = "siws_";
|
|
1865
1883
|
var ACCOUNT_SESSION_PREFIX = "account_session_";
|
|
1866
1884
|
var IDENTITY_DOMAIN = "siws-identity-v1";
|
|
@@ -2038,6 +2056,6 @@ var UserFacingError = class extends Error {
|
|
|
2038
2056
|
}
|
|
2039
2057
|
};
|
|
2040
2058
|
|
|
2041
|
-
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, 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_BR_CONTRACT, STARKNET_GENESIS_MINT_GLOBAL_CONTRACT, STARKNET_GENESIS_MINT_LAUNCH_CONTRACT, 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, TRUSTED_APP_IP_HEADER, UserFacingError, assetHref, buildAssetMetadata, chainFromSlug, chainSlug, coinHref, collectionHref, createBackendProxyHandler, createFailoverFetch, createImageProxyHandler, createRateLimiter, createRpcProxyHandler, encodeU256, formatAmount, getBackendSignedUrl, getCoordinates, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getStarknetCoordinates, getTokenByAddress, getTokenBySymbol, hasCapability, isPolicyRefusal, isPrivateHost, isPrivateOrInsecureUrl, isSameOrigin, isServiceId, isTransientRpcError, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, listServices, normalizeAddress, normalizeHash, parseAmount, readBodyWithCap, requestIp, resolveAppFeeConfig, resolveConfig, resolveFeeConfig, resolveRemixPolicy, resolveSafeImageContentType, shortenAddress, stringifyBigInts, u256ToBigInt, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, validateUrl, verifyAccountSessionToken, verifySiwsToken };
|
|
2059
|
+
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, 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_BR_CONTRACT, STARKNET_GENESIS_MINT_GLOBAL_CONTRACT, STARKNET_GENESIS_MINT_LAUNCH_CONTRACT, 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, TRUSTED_APP_IP_HEADER, UserFacingError, assetHref, buildAssetMetadata, chainFromSlug, chainSlug, coinHref, collectionHref, createBackendProxyHandler, createFailoverFetch, createImageProxyHandler, createRateLimiter, createRpcProxyHandler, encodeU256, formatAmount, getBackendSignedUrl, getCoordinates, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getStarknetCoordinates, getTokenByAddress, getTokenBySymbol, hasCapability, isPolicyRefusal, isPrivateHost, isPrivateOrInsecureUrl, isSameOrigin, isServiceId, isSpoofableForwardingHeader, isTransientRpcError, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, listServices, normalizeAddress, normalizeHash, parseAmount, readBodyWithCap, requestIp, resolveAppFeeConfig, resolveConfig, resolveFeeConfig, resolveRemixPolicy, resolveSafeImageContentType, shortenAddress, stringifyBigInts, trustedClientIp, u256ToBigInt, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, validateUrl, verifyAccountSessionToken, verifySiwsToken };
|
|
2042
2060
|
//# sourceMappingURL=index.js.map
|
|
2043
2061
|
//# sourceMappingURL=index.js.map
|