@medialane/sdk 0.145.0 → 0.147.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/{errors-SGwgtvtF.d.cts → errors-BU-LJRp3.d.cts} +1 -16
- package/dist/{errors-DUiebYFo.d.ts → errors-CTfk25XX.d.ts} +1 -16
- package/dist/index.cjs +0 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -7
- package/dist/index.d.ts +2 -7
- package/dist/index.js +0 -9
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +63 -80
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +17 -23
- package/dist/starknet/index.d.ts +17 -23
- package/dist/starknet/index.js +62 -78
- 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 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-
|
|
1
|
+
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-BU-LJRp3.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-BU-LJRp3.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';
|
|
@@ -43,7 +43,6 @@ type NextStep = {
|
|
|
43
43
|
} | {
|
|
44
44
|
kind: "done";
|
|
45
45
|
};
|
|
46
|
-
/** What a paid IP Ticketing run asks for next. Kinds it shares with the shared union keep their shape. */
|
|
47
46
|
type TicketingNextStep = {
|
|
48
47
|
kind: "collection";
|
|
49
48
|
} | {
|
|
@@ -68,7 +67,6 @@ type TicketingNextStep = {
|
|
|
68
67
|
} | {
|
|
69
68
|
kind: "done";
|
|
70
69
|
};
|
|
71
|
-
/** What a paid Certificate Emission run asks for next. No tier step — PoP collections are flat. */
|
|
72
70
|
type CertificateEmissionNextStep = {
|
|
73
71
|
kind: "collection";
|
|
74
72
|
} | {
|
|
@@ -131,12 +129,10 @@ declare class RunRequestError extends Error {
|
|
|
131
129
|
}
|
|
132
130
|
type TokenSource = () => Promise<string | null>;
|
|
133
131
|
interface LaunchpadRunsClientOptions {
|
|
134
|
-
/** The backend, or an app's proxy to it. `/v1/portal/runs` is appended. */
|
|
135
132
|
baseUrl: string;
|
|
136
133
|
getToken: TokenSource;
|
|
137
134
|
fetchImpl?: typeof fetch;
|
|
138
135
|
}
|
|
139
|
-
/** Paid launchpad runs for the caller's account: create, pay, execute step by step, confirm. */
|
|
140
136
|
declare function createLaunchpadRunsClient({ baseUrl, getToken, fetchImpl }: LaunchpadRunsClientOptions): {
|
|
141
137
|
authorizedFetch: typeof fetch;
|
|
142
138
|
runBase: (id: string) => string;
|
|
@@ -152,7 +148,6 @@ declare function createLaunchpadRunsClient({ baseUrl, getToken, fetchImpl }: Lau
|
|
|
152
148
|
metadata: (id: string, userAddress: string) => Promise<{
|
|
153
149
|
tokenUri: string;
|
|
154
150
|
}>;
|
|
155
|
-
/** Guests who still need a wallet deployed; the ones who already have one are recorded on the run. */
|
|
156
151
|
resolveWallets: (id: string) => Promise<string[]>;
|
|
157
152
|
registerWallet: (id: string, request: WalletRequest) => Promise<{
|
|
158
153
|
recipient: string;
|
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 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-
|
|
1
|
+
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-CTfk25XX.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-CTfk25XX.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';
|
|
@@ -43,7 +43,6 @@ type NextStep = {
|
|
|
43
43
|
} | {
|
|
44
44
|
kind: "done";
|
|
45
45
|
};
|
|
46
|
-
/** What a paid IP Ticketing run asks for next. Kinds it shares with the shared union keep their shape. */
|
|
47
46
|
type TicketingNextStep = {
|
|
48
47
|
kind: "collection";
|
|
49
48
|
} | {
|
|
@@ -68,7 +67,6 @@ type TicketingNextStep = {
|
|
|
68
67
|
} | {
|
|
69
68
|
kind: "done";
|
|
70
69
|
};
|
|
71
|
-
/** What a paid Certificate Emission run asks for next. No tier step — PoP collections are flat. */
|
|
72
70
|
type CertificateEmissionNextStep = {
|
|
73
71
|
kind: "collection";
|
|
74
72
|
} | {
|
|
@@ -131,12 +129,10 @@ declare class RunRequestError extends Error {
|
|
|
131
129
|
}
|
|
132
130
|
type TokenSource = () => Promise<string | null>;
|
|
133
131
|
interface LaunchpadRunsClientOptions {
|
|
134
|
-
/** The backend, or an app's proxy to it. `/v1/portal/runs` is appended. */
|
|
135
132
|
baseUrl: string;
|
|
136
133
|
getToken: TokenSource;
|
|
137
134
|
fetchImpl?: typeof fetch;
|
|
138
135
|
}
|
|
139
|
-
/** Paid launchpad runs for the caller's account: create, pay, execute step by step, confirm. */
|
|
140
136
|
declare function createLaunchpadRunsClient({ baseUrl, getToken, fetchImpl }: LaunchpadRunsClientOptions): {
|
|
141
137
|
authorizedFetch: typeof fetch;
|
|
142
138
|
runBase: (id: string) => string;
|
|
@@ -152,7 +148,6 @@ declare function createLaunchpadRunsClient({ baseUrl, getToken, fetchImpl }: Lau
|
|
|
152
148
|
metadata: (id: string, userAddress: string) => Promise<{
|
|
153
149
|
tokenUri: string;
|
|
154
150
|
}>;
|
|
155
|
-
/** Guests who still need a wallet deployed; the ones who already have one are recorded on the run. */
|
|
156
151
|
resolveWallets: (id: string) => Promise<string[]>;
|
|
157
152
|
registerWallet: (id: string, request: WalletRequest) => Promise<{
|
|
158
153
|
recipient: string;
|
package/dist/index.js
CHANGED
|
@@ -377,7 +377,6 @@ var ApiClient = class {
|
|
|
377
377
|
getActiveOrdersForToken(contract, tokenId) {
|
|
378
378
|
return this.get(`/v1/orders/token/${this.addr(contract)}/${tokenId}`);
|
|
379
379
|
}
|
|
380
|
-
/** Offers others made on the address's assets. */
|
|
381
380
|
getReceivedOffers(address, opts = {}) {
|
|
382
381
|
const params = new URLSearchParams({ page: String(opts.page ?? 1), limit: String(opts.limit ?? 50) });
|
|
383
382
|
return this.get(`/v1/orders/received/${this.addr(address)}?${params}`);
|
|
@@ -536,7 +535,6 @@ var ApiClient = class {
|
|
|
536
535
|
uploadMetadata(metadata) {
|
|
537
536
|
return this.post("/v1/metadata/upload", metadata);
|
|
538
537
|
}
|
|
539
|
-
/** Pins several JSON files as one IPFS directory, e.g. a drop's token metadata. */
|
|
540
538
|
async uploadMetadataDirectory(files) {
|
|
541
539
|
const res = await this.post("/v1/metadata/upload-directory", { files });
|
|
542
540
|
return res.data;
|
|
@@ -590,7 +588,6 @@ var ApiClient = class {
|
|
|
590
588
|
headers: this.asSubject(siwsToken)
|
|
591
589
|
});
|
|
592
590
|
}
|
|
593
|
-
/** @deprecated Use the funding methods (`createFunding`, or `fundWithChainTransfer` from `@medialane/sdk/starknet`). This call only nudges a legacy scanner and never credits anything itself. */
|
|
594
591
|
checkDeposit(txHash, siwsToken) {
|
|
595
592
|
return this.request("/v1/portal/credits/check", {
|
|
596
593
|
method: "POST",
|
|
@@ -782,14 +779,9 @@ var ApiClient = class {
|
|
|
782
779
|
async verifyEmailCode(email, code) {
|
|
783
780
|
await this.post("/v1/auth/email/verify-code", { email, code });
|
|
784
781
|
}
|
|
785
|
-
/**
|
|
786
|
-
* Makes the passkey the only owner of the session account's wallet. `signature` is the passkey's owner-alive
|
|
787
|
-
* proof for the wallet. Answers 409 when the wallet is already set up.
|
|
788
|
-
*/
|
|
789
782
|
setupWalletKey(params) {
|
|
790
783
|
return this.post("/v1/users/me/wallet/key", params);
|
|
791
784
|
}
|
|
792
|
-
/** The session account's wallet, and whether its passkey still has to be set up (`setupWalletKey`). */
|
|
793
785
|
async getSessionWallet() {
|
|
794
786
|
const body = await this.post("/v1/users/me/wallet", {});
|
|
795
787
|
return body.walletAddress ? { walletAddress: body.walletAddress, needsKeySetup: body.needsKeySetup === true } : null;
|
|
@@ -1164,7 +1156,6 @@ function createLaunchpadRunsClient({ baseUrl, getToken, fetchImpl = fetch }) {
|
|
|
1164
1156
|
uploadUrl: async (id, name) => (await post(`${runBase(id)}/files/upload-url`, { name })).data.url,
|
|
1165
1157
|
uploaded: async (id, name, cid) => (await post(`${runBase(id)}/files/uploaded`, { name, cid })).data,
|
|
1166
1158
|
metadata: async (id, userAddress) => (await post(`${runBase(id)}/metadata`, { userAddress })).data,
|
|
1167
|
-
/** Guests who still need a wallet deployed; the ones who already have one are recorded on the run. */
|
|
1168
1159
|
resolveWallets: async (id) => (await post(`${runBase(id)}/wallets/resolve`)).data.pending,
|
|
1169
1160
|
registerWallet: async (id, request) => (await post(`${runBase(id)}/wallets`, request)).data,
|
|
1170
1161
|
confirmCollection: (id) => confirm(`${runCollectionBase(id)}/confirm`),
|