@medialane/sdk 0.180.0 → 0.181.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-H263CTVH.js → chunk-BTSTG6SP.js} +32 -50
- package/dist/chunk-BTSTG6SP.js.map +1 -0
- package/dist/{chunk-PNUHSQPU.cjs → chunk-EWDU2XV3.cjs} +32 -50
- package/dist/chunk-EWDU2XV3.cjs.map +1 -0
- package/dist/{errors-DThsFcc1.d.cts → errors-Bsah998f.d.cts} +34 -19
- package/dist/{errors-CTVls5-y.d.ts → errors-DQyz1fFP.d.ts} +34 -19
- package/dist/index.cjs +82 -87
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -7
- package/dist/index.d.ts +5 -7
- package/dist/index.js +8 -13
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +100 -76
- 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 +32 -9
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-H263CTVH.js.map +0 -1
- package/dist/chunk-PNUHSQPU.cjs.map +0 -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 ApiBusinessProvisioning, i as ApiChain, j as ApiCheckoutIntentResult, k as ApiClient, l as ApiCoin, m as ApiCoinClaimResult, n as ApiCoinPrice, o as ApiCoinPrices, p as ApiCoinsQuery, q as ApiCollection, r as ApiCollectionClaim, s as ApiCollectionProfile, t as ApiCollectionSlugClaim, u as ApiCollectionsListQuery, v as ApiCollectionsQuery, w as ApiComment, x as ApiCounterOffersQuery, y as ApiCreatorListResult, z as ApiCreatorProfile, B as ApiCreditPayment, C as ApiDrop, D as ApiDropFee, E as ApiDropListStatus, F as ApiDropMint, G as ApiEmissionCall, H as ApiEmissionResult, I as ApiFundingInstructions, J as ApiFundingIntent, K as ApiFundingMethod, L as ApiFundingStatus, M as ApiFundingSubmit, N as ApiIntent, O as ApiIntentCreated, P as ApiIpNftTokenData, Q as ApiMeta, T as ApiMetadataSignedUrl, U as ApiMetadataUpload, V as ApiOrder, W as ApiOrderConsideration, X as ApiOrderOffer, Y as ApiOrderPrice, Z as ApiOrderTokenMeta, _ as ApiOrderTxHash, $ as ApiOrdersQuery, a0 as ApiPlatformStats, a1 as ApiPointEvent, a2 as ApiPortalKey, a3 as ApiPortalKeyCreated, a4 as ApiPortalMe, a5 as ApiPortalSpend, a6 as ApiPricing, a7 as ApiPricingRule, a8 as ApiPublicRemix, a9 as ApiRemixOffer, aa as ApiRemixOfferPrice, ab as ApiRemixOffersQuery, ac as ApiReportTargetType, ad as ApiResponse, ae as ApiRewardsBadge, af as ApiRewardsBatchEntry, ag as ApiRewardsConfig, ah as ApiRewardsLeaderboardEntry, ai as ApiRewardsLevel, aj as ApiSearchCollectionResult, ak as ApiSearchCreatorResult, al as ApiSearchResult, am as ApiSearchTokenResult, an as ApiSession, ao as ApiSpendByAction, ap as ApiSponsorshipBid, aq as ApiSponsorshipLicense, ar as ApiSponsorshipLicensesQuery, as as ApiSponsorshipOffer, at as ApiSponsorshipOffersQuery, au as ApiSponsorshipProposal, av as ApiSponsorshipProposalsQuery, aw as ApiSubmitReport, ax as ApiSwapQuote, ay as ApiSwapQuoteRequest, az as ApiTierOnchain, aA as ApiToken, aB as ApiTokenBalance, aC as ApiTokenMetadata, aD as ApiTokensQuery, aE as ApiTxSyncResult, aF as ApiUserRewards, aG as ApiUserWallet, aH as ApiUsernameClaim, aI as ApiWalletActivity, aJ as AutoRemixOfferParams, aK as CancelOrderIntentParams, aL as ChainFilter, aM as CheckoutIntentItem, aN as CollectionServiceId, aO as CollectionSort, aP as CollectionTokensSort, aQ as ConfirmRemixOfferParams, aR as ConfirmSelfRemixParams, aS as ConsiderationItem, aT as CreateCheckoutIntentParams, aU as CreateCoinIntentParams, aV as CreateCollectionIntentParams, aW as CreateCommentIntentParams, aX as CreateCounterOfferIntentParams, aY as CreateDropClaimIntentParams, aZ as CreateDropManageIntentParams, a_ as CreateDropParams, a$ as CreateFundingTransferIntentParams, b0 as CreateGenesisMintIntentParams, b1 as CreateListingIntentParams, b2 as CreateMembershipParams, b3 as CreateMintIntentParams, b4 as CreatePopBurnIntentParams, b5 as CreatePopClaimIntentParams, b6 as CreatePopCollectionParams, b7 as CreatePopManageIntentParams, b8 as CreateRemixOfferParams, b9 as CreateSponsorshipOfferIntentParams, ba as CreateSponsorshipOfferParams, bb as CreateSponsorshipProposalIntentParams, bc as CreateSwapIntentParams, bd as CreateTicketParams, be as CreateTierIntentParams, bf as CreateTransferCollectionOwnershipIntentParams, bg as CreateTransferNftIntentParams, bh as CreateTransferTokenIntentParams, bi as CreateWalletManageIntentParams, bj as DropManageAction, bk as DropTerms, bl as DropTermsBody, bm as EmissionParams, bn as EnforcementDeclaration, bo as FactoryFamilyServiceId, bp as FeeConfig, bq as FeeConfigSchema, br as FulfillOrderIntentParams, bs as IPType, bt as IntentCall, bu as IntentStatus, bv as IntentType, bw as IpAttribute, bx as IpNftMetadata, by as LaunchCoinIntentParams, bz as MakeOfferIntentParams, bA as MedialaneApiError, bB as MedialaneConfig, bC as MedialaneErrorCode, bD as MintMembershipsParams, bE as MintTicketsParams, bF as OPEN_LICENSES, bG as OfferItem, bH as OpenLicense, bI as Order, bJ as OrderDetails, bK as OrderParameters, bL as OrderStatus, bM as PasskeyCancelledError, bN as PasskeyUnsupportedError, bO as PasskeyUnsupportedReason, bP as PlaceSponsorshipBidIntentParams, bQ as PopManageAction, bR as ProposeSponsorshipParams, bS as RejectSponsorshipProposalIntentParams, bT as RemixOfferStatus, bU as ResolvedConfig, bV as RetractSponsorshipBidIntentParams, bW as RetryOptions, bX as ServiceEventDeclaration, bY as SetSponsorshipOfferOpenIntentParams, bZ as SortOrder, b_ as TierServiceId, b$ as TxResult, c0 as UpdateCollectionProfileInput, c1 as UserFacingError, c2 as WalletManageAction, c3 as WithdrawSponsorshipProposalIntentParams, c4 as resolveConfig, c5 as resolveFeeConfig } from './errors-
|
|
1
|
+
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-Bsah998f.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-Bsah998f.cjs';
|
|
3
3
|
import { C as Chain } from './types-BTNjkUst.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-BTNjkUst.cjs';
|
|
5
5
|
import 'starknet';
|
|
@@ -129,14 +129,12 @@ declare class RunRequestError extends Error {
|
|
|
129
129
|
readonly body: Record<string, unknown>;
|
|
130
130
|
constructor(message: string, status: number, body: Record<string, unknown>);
|
|
131
131
|
}
|
|
132
|
-
type TokenSource = () => Promise<string | null>;
|
|
133
132
|
interface LaunchpadRunsClientOptions {
|
|
134
133
|
baseUrl: string;
|
|
135
|
-
getToken: TokenSource;
|
|
136
134
|
fetchImpl?: typeof fetch;
|
|
137
135
|
}
|
|
138
|
-
declare function createLaunchpadRunsClient({ baseUrl,
|
|
139
|
-
|
|
136
|
+
declare function createLaunchpadRunsClient({ baseUrl, fetchImpl }: LaunchpadRunsClientOptions): {
|
|
137
|
+
fetch: typeof fetch;
|
|
140
138
|
runBase: (id: string) => string;
|
|
141
139
|
runBatchBase: (id: string, index: number) => string;
|
|
142
140
|
runCollectionBase: (id: string) => string;
|
|
@@ -849,4 +847,4 @@ declare const IPFS_SAFE_CONTENT_TYPE_PREFIXES: readonly ["image/jpeg", "image/pn
|
|
|
849
847
|
declare function resolveSafeImageContentType(contentType: string): string;
|
|
850
848
|
declare const MAX_IPFS_GATEWAY_RESPONSE_BYTES: number;
|
|
851
849
|
|
|
852
|
-
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 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 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
|
|
850
|
+
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 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 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, createFailoverFetch, createImageProxyHandler, createLaunchpadRunsClient, dropHref, encodeU256, formatAmount, getBackendSignedUrl, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isCertificateEmissionRun, isDataTokenizationRun, isPolicyRefusal, isPrivateHost, isPrivateOrInsecureUrl, isPublicAppRoute, 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,5 +1,5 @@
|
|
|
1
|
-
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-
|
|
2
|
-
export { A as AcceptSponsorshipBidIntentParams, b as AcceptSponsorshipProposalIntentParams, c as ActivityType, d as ApiActivitiesQuery, e as ApiActivity, f as ApiActivityPrice, g as ApiAdminCollectionClaim, h as ApiBusinessProvisioning, i as ApiChain, j as ApiCheckoutIntentResult, k as ApiClient, l as ApiCoin, m as ApiCoinClaimResult, n as ApiCoinPrice, o as ApiCoinPrices, p as ApiCoinsQuery, q as ApiCollection, r as ApiCollectionClaim, s as ApiCollectionProfile, t as ApiCollectionSlugClaim, u as ApiCollectionsListQuery, v as ApiCollectionsQuery, w as ApiComment, x as ApiCounterOffersQuery, y as ApiCreatorListResult, z as ApiCreatorProfile, B as ApiCreditPayment, C as ApiDrop, D as ApiDropFee, E as ApiDropListStatus, F as ApiDropMint, G as ApiEmissionCall, H as ApiEmissionResult, I as ApiFundingInstructions, J as ApiFundingIntent, K as ApiFundingMethod, L as ApiFundingStatus, M as ApiFundingSubmit, N as ApiIntent, O as ApiIntentCreated, P as ApiIpNftTokenData, Q as ApiMeta, T as ApiMetadataSignedUrl, U as ApiMetadataUpload, V as ApiOrder, W as ApiOrderConsideration, X as ApiOrderOffer, Y as ApiOrderPrice, Z as ApiOrderTokenMeta, _ as ApiOrderTxHash, $ as ApiOrdersQuery, a0 as ApiPlatformStats, a1 as ApiPointEvent, a2 as ApiPortalKey, a3 as ApiPortalKeyCreated, a4 as ApiPortalMe, a5 as ApiPortalSpend, a6 as ApiPricing, a7 as ApiPricingRule, a8 as ApiPublicRemix, a9 as ApiRemixOffer, aa as ApiRemixOfferPrice, ab as ApiRemixOffersQuery, ac as ApiReportTargetType, ad as ApiResponse, ae as ApiRewardsBadge, af as ApiRewardsBatchEntry, ag as ApiRewardsConfig, ah as ApiRewardsLeaderboardEntry, ai as ApiRewardsLevel, aj as ApiSearchCollectionResult, ak as ApiSearchCreatorResult, al as ApiSearchResult, am as ApiSearchTokenResult, an as ApiSession, ao as ApiSpendByAction, ap as ApiSponsorshipBid, aq as ApiSponsorshipLicense, ar as ApiSponsorshipLicensesQuery, as as ApiSponsorshipOffer, at as ApiSponsorshipOffersQuery, au as ApiSponsorshipProposal, av as ApiSponsorshipProposalsQuery, aw as ApiSubmitReport, ax as ApiSwapQuote, ay as ApiSwapQuoteRequest, az as ApiTierOnchain, aA as ApiToken, aB as ApiTokenBalance, aC as ApiTokenMetadata, aD as ApiTokensQuery, aE as ApiTxSyncResult, aF as ApiUserRewards, aG as ApiUserWallet, aH as ApiUsernameClaim, aI as ApiWalletActivity, aJ as AutoRemixOfferParams, aK as CancelOrderIntentParams, aL as ChainFilter, aM as CheckoutIntentItem, aN as CollectionServiceId, aO as CollectionSort, aP as CollectionTokensSort, aQ as ConfirmRemixOfferParams, aR as ConfirmSelfRemixParams, aS as ConsiderationItem, aT as CreateCheckoutIntentParams, aU as CreateCoinIntentParams, aV as CreateCollectionIntentParams, aW as CreateCommentIntentParams, aX as CreateCounterOfferIntentParams, aY as CreateDropClaimIntentParams, aZ as CreateDropManageIntentParams, a_ as CreateDropParams, a$ as CreateFundingTransferIntentParams, b0 as CreateGenesisMintIntentParams, b1 as CreateListingIntentParams, b2 as CreateMembershipParams, b3 as CreateMintIntentParams, b4 as CreatePopBurnIntentParams, b5 as CreatePopClaimIntentParams, b6 as CreatePopCollectionParams, b7 as CreatePopManageIntentParams, b8 as CreateRemixOfferParams, b9 as CreateSponsorshipOfferIntentParams, ba as CreateSponsorshipOfferParams, bb as CreateSponsorshipProposalIntentParams, bc as CreateSwapIntentParams, bd as CreateTicketParams, be as CreateTierIntentParams, bf as CreateTransferCollectionOwnershipIntentParams, bg as CreateTransferNftIntentParams, bh as CreateTransferTokenIntentParams, bi as CreateWalletManageIntentParams, bj as DropManageAction, bk as DropTerms, bl as DropTermsBody, bm as EmissionParams, bn as EnforcementDeclaration, bo as FactoryFamilyServiceId, bp as FeeConfig, bq as FeeConfigSchema, br as FulfillOrderIntentParams, bs as IPType, bt as IntentCall, bu as IntentStatus, bv as IntentType, bw as IpAttribute, bx as IpNftMetadata, by as LaunchCoinIntentParams, bz as MakeOfferIntentParams, bA as MedialaneApiError, bB as MedialaneConfig, bC as MedialaneErrorCode, bD as MintMembershipsParams, bE as MintTicketsParams, bF as OPEN_LICENSES, bG as OfferItem, bH as OpenLicense, bI as Order, bJ as OrderDetails, bK as OrderParameters, bL as OrderStatus, bM as PasskeyCancelledError, bN as PasskeyUnsupportedError, bO as PasskeyUnsupportedReason, bP as PlaceSponsorshipBidIntentParams, bQ as PopManageAction, bR as ProposeSponsorshipParams, bS as RejectSponsorshipProposalIntentParams, bT as RemixOfferStatus, bU as ResolvedConfig, bV as RetractSponsorshipBidIntentParams, bW as RetryOptions, bX as ServiceEventDeclaration, bY as SetSponsorshipOfferOpenIntentParams, bZ as SortOrder, b_ as TierServiceId, b$ as TxResult, c0 as UpdateCollectionProfileInput, c1 as UserFacingError, c2 as WalletManageAction, c3 as WithdrawSponsorshipProposalIntentParams, c4 as resolveConfig, c5 as resolveFeeConfig } from './errors-
|
|
1
|
+
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-DQyz1fFP.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-DQyz1fFP.js';
|
|
3
3
|
import { C as Chain } from './types-BTNjkUst.js';
|
|
4
4
|
export { A as AdapterTxResult, a as AssetRef, b as CHAINS, c as ChainCoordinates, d as CoordinatesByChain, e as CreateCollectionInput, D as DEFAULT_CHAIN, E as EvmCoordinates, I as IssuanceAdapter, M as MintInput, O as OrderRef, R as RegisterOrderParams, S as SolanaCoordinates, f as StarknetCoordinates, g as StellarCoordinates, V as VenueAdapter, h as getCoordinates, i as getStarknetCoordinates } from './types-BTNjkUst.js';
|
|
5
5
|
import 'starknet';
|
|
@@ -129,14 +129,12 @@ declare class RunRequestError extends Error {
|
|
|
129
129
|
readonly body: Record<string, unknown>;
|
|
130
130
|
constructor(message: string, status: number, body: Record<string, unknown>);
|
|
131
131
|
}
|
|
132
|
-
type TokenSource = () => Promise<string | null>;
|
|
133
132
|
interface LaunchpadRunsClientOptions {
|
|
134
133
|
baseUrl: string;
|
|
135
|
-
getToken: TokenSource;
|
|
136
134
|
fetchImpl?: typeof fetch;
|
|
137
135
|
}
|
|
138
|
-
declare function createLaunchpadRunsClient({ baseUrl,
|
|
139
|
-
|
|
136
|
+
declare function createLaunchpadRunsClient({ baseUrl, fetchImpl }: LaunchpadRunsClientOptions): {
|
|
137
|
+
fetch: typeof fetch;
|
|
140
138
|
runBase: (id: string) => string;
|
|
141
139
|
runBatchBase: (id: string, index: number) => string;
|
|
142
140
|
runCollectionBase: (id: string) => string;
|
|
@@ -849,4 +847,4 @@ declare const IPFS_SAFE_CONTENT_TYPE_PREFIXES: readonly ["image/jpeg", "image/pn
|
|
|
849
847
|
declare function resolveSafeImageContentType(contentType: string): string;
|
|
850
848
|
declare const MAX_IPFS_GATEWAY_RESPONSE_BYTES: number;
|
|
851
849
|
|
|
852
|
-
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 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 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
|
|
850
|
+
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 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 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, createFailoverFetch, createImageProxyHandler, createLaunchpadRunsClient, dropHref, encodeU256, formatAmount, getBackendSignedUrl, getDerivativesTerm, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isCertificateEmissionRun, isDataTokenizationRun, isPolicyRefusal, isPrivateHost, isPrivateOrInsecureUrl, isPublicAppRoute, 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ApiClient, DEFAULT_CURRENCY, FeeConfigSchema, MedialaneApiError, POLICY_REFUSAL_CODES, PasskeyCancelledError, PasskeyUnsupportedError, STARKNET_COLLECTION_1155_CLASS_HASH, STARKNET_COLLECTION_1155_CONTRACT, STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH, STARKNET_COLLECTION_1155_START_BLOCK, STARKNET_COLLECTION_721_CONTRACT, STARKNET_COLLECTION_721_START_BLOCK, STARKNET_CREATOR_COIN_CLASS_HASH, STARKNET_CREATOR_COIN_EKUBO_LAUNCHER, STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH, STARKNET_CREATOR_COIN_FACTORY_CONTRACT, STARKNET_CREATOR_COIN_START_BLOCK, STARKNET_DATA_TOKENIZATION_721_CONTRACT, STARKNET_DROP_COLLECTION_CLASS_HASH, STARKNET_DROP_FACTORY_CONTRACT, STARKNET_DROP_FACTORY_START_BLOCK, STARKNET_EKUBO_CORE, STARKNET_GENESIS_MINT_CONTRACT, STARKNET_GENESIS_NFT_URI, STARKNET_IPCOLLECTION_CLASS_HASH, STARKNET_IPNFT_CLASS_HASH, STARKNET_IP_CLUB_COLLECTION_CLASS_HASH, STARKNET_IP_CLUB_FACTORY_CONTRACT, STARKNET_IP_SPONSORSHIP_CLASS_HASH, STARKNET_IP_SPONSORSHIP_CONTRACT, STARKNET_IP_TICKETS_FACTORY_CONTRACT, STARKNET_IP_TICKET_COLLECTION_CLASS_HASH, STARKNET_MARKETPLACE_1155_CLASS_HASH, STARKNET_MARKETPLACE_1155_CONTRACT, STARKNET_MARKETPLACE_1155_START_BLOCK, STARKNET_MARKETPLACE_721_CLASS_HASH, STARKNET_MARKETPLACE_721_CONTRACT, STARKNET_MARKETPLACE_721_START_BLOCK, STARKNET_NFTCOMMENTS_CONTRACT, STARKNET_POP_COLLECTION_CLASS_HASH, STARKNET_POP_FACTORY_CONTRACT, STARKNET_POP_FACTORY_START_BLOCK, SUPPORTED_TOKENS, SUPPORTED_URL_CHAINS, UserFacingError, assetHref, chainFromSlug, chainSlug, coinHref, collectionHref, createFailoverFetch, dropHref, encodeU256, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isPolicyRefusal, isServiceId, isTransientRpcError, listServices, normalizeAddress, normalizeHash, parseAmount, resolveAppFeeConfig, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt } from './chunk-
|
|
1
|
+
export { ApiClient, DEFAULT_CURRENCY, FeeConfigSchema, MedialaneApiError, POLICY_REFUSAL_CODES, PasskeyCancelledError, PasskeyUnsupportedError, STARKNET_COLLECTION_1155_CLASS_HASH, STARKNET_COLLECTION_1155_CONTRACT, STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH, STARKNET_COLLECTION_1155_START_BLOCK, STARKNET_COLLECTION_721_CONTRACT, STARKNET_COLLECTION_721_START_BLOCK, STARKNET_CREATOR_COIN_CLASS_HASH, STARKNET_CREATOR_COIN_EKUBO_LAUNCHER, STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH, STARKNET_CREATOR_COIN_FACTORY_CONTRACT, STARKNET_CREATOR_COIN_START_BLOCK, STARKNET_DATA_TOKENIZATION_721_CONTRACT, STARKNET_DROP_COLLECTION_CLASS_HASH, STARKNET_DROP_FACTORY_CONTRACT, STARKNET_DROP_FACTORY_START_BLOCK, STARKNET_EKUBO_CORE, STARKNET_GENESIS_MINT_CONTRACT, STARKNET_GENESIS_NFT_URI, STARKNET_IPCOLLECTION_CLASS_HASH, STARKNET_IPNFT_CLASS_HASH, STARKNET_IP_CLUB_COLLECTION_CLASS_HASH, STARKNET_IP_CLUB_FACTORY_CONTRACT, STARKNET_IP_SPONSORSHIP_CLASS_HASH, STARKNET_IP_SPONSORSHIP_CONTRACT, STARKNET_IP_TICKETS_FACTORY_CONTRACT, STARKNET_IP_TICKET_COLLECTION_CLASS_HASH, STARKNET_MARKETPLACE_1155_CLASS_HASH, STARKNET_MARKETPLACE_1155_CONTRACT, STARKNET_MARKETPLACE_1155_START_BLOCK, STARKNET_MARKETPLACE_721_CLASS_HASH, STARKNET_MARKETPLACE_721_CONTRACT, STARKNET_MARKETPLACE_721_START_BLOCK, STARKNET_NFTCOMMENTS_CONTRACT, STARKNET_POP_COLLECTION_CLASS_HASH, STARKNET_POP_FACTORY_CONTRACT, STARKNET_POP_FACTORY_START_BLOCK, SUPPORTED_TOKENS, SUPPORTED_URL_CHAINS, UserFacingError, assetHref, chainFromSlug, chainSlug, coinHref, collectionHref, createFailoverFetch, dropHref, encodeU256, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, hasCapability, isPolicyRefusal, isServiceId, isTransientRpcError, listServices, normalizeAddress, normalizeHash, parseAmount, resolveAppFeeConfig, resolveConfig, resolveFeeConfig, shortenAddress, stringifyBigInts, u256ToBigInt } from './chunk-BTSTG6SP.js';
|
|
2
2
|
export { CHAINS, DEFAULT_CHAIN, getCoordinates, getStarknetCoordinates } from './chunk-WYKCGQPN.js';
|
|
3
3
|
import { hmac } from '@noble/hashes/hmac.js';
|
|
4
4
|
import { sha256 } from '@noble/hashes/sha2.js';
|
|
@@ -15,20 +15,15 @@ var RunRequestError = class extends Error {
|
|
|
15
15
|
this.body = body;
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
function createLaunchpadRunsClient({ baseUrl,
|
|
18
|
+
function createLaunchpadRunsClient({ baseUrl, fetchImpl = fetch }) {
|
|
19
19
|
const runsUrl = `${baseUrl.replace(/\/$/, "")}/v1/portal/runs`;
|
|
20
20
|
const runBase = (id) => `${runsUrl}/${id}`;
|
|
21
21
|
const runBatchBase = (id, index) => `${runBase(id)}/batches/${index}`;
|
|
22
22
|
const runCollectionBase = (id) => `${runBase(id)}/collection`;
|
|
23
23
|
const runTierBase = (id) => `${runBase(id)}/tier`;
|
|
24
|
-
const
|
|
25
|
-
const token = await getToken();
|
|
26
|
-
const headers2 = new Headers(init?.headers);
|
|
27
|
-
if (token) headers2.set("authorization", `Bearer ${token}`);
|
|
28
|
-
return fetchImpl(input, { ...init, headers: headers2, cache: "no-store" });
|
|
29
|
-
};
|
|
24
|
+
const runFetch = (input, init) => fetchImpl(input, { ...init, cache: "no-store" });
|
|
30
25
|
async function call(url, init) {
|
|
31
|
-
const res = await
|
|
26
|
+
const res = await runFetch(url, {
|
|
32
27
|
...init,
|
|
33
28
|
headers: { "content-type": "application/json", ...init?.headers }
|
|
34
29
|
});
|
|
@@ -63,7 +58,7 @@ function createLaunchpadRunsClient({ baseUrl, getToken, fetchImpl = fetch }) {
|
|
|
63
58
|
confirmBatch: (id, index) => confirm(`${runBatchBase(id, index)}/confirm`)
|
|
64
59
|
};
|
|
65
60
|
return {
|
|
66
|
-
|
|
61
|
+
fetch: runFetch,
|
|
67
62
|
runBase,
|
|
68
63
|
runBatchBase,
|
|
69
64
|
runCollectionBase,
|
|
@@ -210,12 +205,12 @@ function createAppGateway(config) {
|
|
|
210
205
|
} catch {
|
|
211
206
|
body = null;
|
|
212
207
|
}
|
|
213
|
-
|
|
214
|
-
|
|
208
|
+
if (!body) return new Response(text, { status: res.status, headers: out });
|
|
209
|
+
const token = typeof body.accountToken === "string" ? body.accountToken : null;
|
|
215
210
|
delete body.accountToken;
|
|
216
211
|
delete body.token;
|
|
217
212
|
out.set("content-type", "application/json");
|
|
218
|
-
out.append("set-cookie", sessionCookie(token));
|
|
213
|
+
if (token) out.append("set-cookie", sessionCookie(token));
|
|
219
214
|
return new Response(JSON.stringify(body), { status: res.status, headers: out });
|
|
220
215
|
}
|
|
221
216
|
if (method === "GET" && res.ok && !session && (config.cacheableGets ?? []).some((re) => re.test(joined))) {
|