@medialane/sdk 0.153.0 → 0.155.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/dist/{errors-dgfLd7nS.d.ts → errors-BKaHnCOI.d.ts} +2 -35
- package/dist/{errors-DQRDzDiT.d.cts → errors-CAKnNI3N.d.cts} +2 -35
- package/dist/index.cjs +2 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -21
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +5 -28
- 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 +5 -28
- 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
|
|
1
|
+
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-CAKnNI3N.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 ApiMeta, Q as ApiMetadataSignedUrl, T as ApiMetadataUpload, U as ApiOrder, V as ApiOrderConsideration, W as ApiOrderOffer, X as ApiOrderPrice, Y as ApiOrderTokenMeta, Z as ApiOrderTxHash, _ as ApiOrdersQuery, $ as ApiPlatformStats, a0 as ApiPointEvent, a1 as ApiPortalKey, a2 as ApiPortalKeyCreated, a3 as ApiPortalMe, a4 as ApiPortalSpend, a5 as ApiPricing, a6 as ApiPricingRule, a7 as ApiPublicRemix, a8 as ApiRemixOffer, a9 as ApiRemixOfferPrice, aa as ApiRemixOffersQuery, ab as ApiReportTargetType, ac as ApiResponse, ad as ApiRewardsBadge, ae as ApiRewardsBatchEntry, af as ApiRewardsConfig, ag as ApiRewardsLeaderboardEntry, ah as ApiRewardsLevel, ai as ApiSearchCollectionResult, aj as ApiSearchCreatorResult, ak as ApiSearchResult, al as ApiSearchTokenResult, am as ApiSpendByAction, an as ApiSponsorshipBid, ao as ApiSponsorshipLicense, ap as ApiSponsorshipLicensesQuery, aq as ApiSponsorshipOffer, ar as ApiSponsorshipOffersQuery, as as ApiSponsorshipProposal, at as ApiSponsorshipProposalsQuery, au as ApiSubmitReport, av as ApiTierOnchain, aw as ApiToken, ax as ApiTokenBalance, ay as ApiTokenMetadata, az as ApiTokensQuery, aA as ApiTxSyncResult, aB as ApiUserRewards, aC as ApiUserWallet, aD as ApiUsernameClaim, aE as ApiWalletActivity, aF as AutoRemixOfferParams, aG as CancelOrderIntentParams, aH as ChainFilter, aI as CheckoutIntentItem, aJ as ClaimConditions, aK as CollectionServiceId, aL as CollectionSort, aM as CollectionTokensSort, aN as ConfirmRemixOfferParams, aO as ConfirmSelfRemixParams, aP as ConsiderationItem, aQ as CreateCheckoutIntentParams, aR as CreateCoinIntentParams, aS as CreateCollectionIntentParams, aT as CreateCounterOfferIntentParams, aU as CreateDropParams, aV as CreateListingIntentParams, aW as CreateMembershipParams, aX as CreateMintIntentParams, aY as CreatePopCollectionParams, aZ as CreateRemixOfferParams, a_ as CreateSponsorshipOfferIntentParams, a$ as CreateSponsorshipOfferParams, b0 as CreateSponsorshipProposalIntentParams, b1 as CreateTicketParams, b2 as CreateTierIntentParams, b3 as DropMintStatus, b4 as EmissionParams, b5 as EnforcementDeclaration, b6 as FactoryFamilyServiceId, b7 as FeeConfig, b8 as FeeConfigSchema, b9 as FulfillOrderIntentParams, ba as IPType, bb as IntentCall, bc as IntentStatus, bd as IntentType, be as IpAttribute, bf as IpNftMetadata, bg as LaunchCoinIntentParams, bh as MakeOfferIntentParams, bi as MedialaneApiError, bj as MedialaneConfig, bk as MedialaneErrorCode, bl as MintMembershipsParams, bm as MintTicketsParams, bn as OPEN_LICENSES, bo as OfferItem, bp as OpenLicense, bq as Order, br as OrderDetails, bs as OrderParameters, bt as OrderStatus, bu as PasskeyCancelledError, bv as PlaceSponsorshipBidIntentParams, bw as PopBatchEligibilityItem, bx as PopClaimStatus, by as PopEventType, bz as ProposeSponsorshipParams, bA as RejectSponsorshipProposalIntentParams, bB as RemixOfferStatus, bC as ResolvedConfig, bD as RetractSponsorshipBidIntentParams, bE as RetryOptions, bF as ServiceEventDeclaration, bG as SetSponsorshipOfferOpenIntentParams, bH as SortOrder, bI as TierServiceId, bJ as TxResult, bK as UpdateCollectionProfileInput, bL as UserFacingError, bM as WithdrawSponsorshipProposalIntentParams, bN as resolveConfig, bO as resolveFeeConfig } from './errors-CAKnNI3N.cjs';
|
|
3
3
|
import { C as Chain } from './types-CO6YYHVA.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-CO6YYHVA.cjs';
|
|
5
5
|
import 'zod';
|
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
|
|
1
|
+
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './errors-BKaHnCOI.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 ApiMeta, Q as ApiMetadataSignedUrl, T as ApiMetadataUpload, U as ApiOrder, V as ApiOrderConsideration, W as ApiOrderOffer, X as ApiOrderPrice, Y as ApiOrderTokenMeta, Z as ApiOrderTxHash, _ as ApiOrdersQuery, $ as ApiPlatformStats, a0 as ApiPointEvent, a1 as ApiPortalKey, a2 as ApiPortalKeyCreated, a3 as ApiPortalMe, a4 as ApiPortalSpend, a5 as ApiPricing, a6 as ApiPricingRule, a7 as ApiPublicRemix, a8 as ApiRemixOffer, a9 as ApiRemixOfferPrice, aa as ApiRemixOffersQuery, ab as ApiReportTargetType, ac as ApiResponse, ad as ApiRewardsBadge, ae as ApiRewardsBatchEntry, af as ApiRewardsConfig, ag as ApiRewardsLeaderboardEntry, ah as ApiRewardsLevel, ai as ApiSearchCollectionResult, aj as ApiSearchCreatorResult, ak as ApiSearchResult, al as ApiSearchTokenResult, am as ApiSpendByAction, an as ApiSponsorshipBid, ao as ApiSponsorshipLicense, ap as ApiSponsorshipLicensesQuery, aq as ApiSponsorshipOffer, ar as ApiSponsorshipOffersQuery, as as ApiSponsorshipProposal, at as ApiSponsorshipProposalsQuery, au as ApiSubmitReport, av as ApiTierOnchain, aw as ApiToken, ax as ApiTokenBalance, ay as ApiTokenMetadata, az as ApiTokensQuery, aA as ApiTxSyncResult, aB as ApiUserRewards, aC as ApiUserWallet, aD as ApiUsernameClaim, aE as ApiWalletActivity, aF as AutoRemixOfferParams, aG as CancelOrderIntentParams, aH as ChainFilter, aI as CheckoutIntentItem, aJ as ClaimConditions, aK as CollectionServiceId, aL as CollectionSort, aM as CollectionTokensSort, aN as ConfirmRemixOfferParams, aO as ConfirmSelfRemixParams, aP as ConsiderationItem, aQ as CreateCheckoutIntentParams, aR as CreateCoinIntentParams, aS as CreateCollectionIntentParams, aT as CreateCounterOfferIntentParams, aU as CreateDropParams, aV as CreateListingIntentParams, aW as CreateMembershipParams, aX as CreateMintIntentParams, aY as CreatePopCollectionParams, aZ as CreateRemixOfferParams, a_ as CreateSponsorshipOfferIntentParams, a$ as CreateSponsorshipOfferParams, b0 as CreateSponsorshipProposalIntentParams, b1 as CreateTicketParams, b2 as CreateTierIntentParams, b3 as DropMintStatus, b4 as EmissionParams, b5 as EnforcementDeclaration, b6 as FactoryFamilyServiceId, b7 as FeeConfig, b8 as FeeConfigSchema, b9 as FulfillOrderIntentParams, ba as IPType, bb as IntentCall, bc as IntentStatus, bd as IntentType, be as IpAttribute, bf as IpNftMetadata, bg as LaunchCoinIntentParams, bh as MakeOfferIntentParams, bi as MedialaneApiError, bj as MedialaneConfig, bk as MedialaneErrorCode, bl as MintMembershipsParams, bm as MintTicketsParams, bn as OPEN_LICENSES, bo as OfferItem, bp as OpenLicense, bq as Order, br as OrderDetails, bs as OrderParameters, bt as OrderStatus, bu as PasskeyCancelledError, bv as PlaceSponsorshipBidIntentParams, bw as PopBatchEligibilityItem, bx as PopClaimStatus, by as PopEventType, bz as ProposeSponsorshipParams, bA as RejectSponsorshipProposalIntentParams, bB as RemixOfferStatus, bC as ResolvedConfig, bD as RetractSponsorshipBidIntentParams, bE as RetryOptions, bF as ServiceEventDeclaration, bG as SetSponsorshipOfferOpenIntentParams, bH as SortOrder, bI as TierServiceId, bJ as TxResult, bK as UpdateCollectionProfileInput, bL as UserFacingError, bM as WithdrawSponsorshipProposalIntentParams, bN as resolveConfig, bO as resolveFeeConfig } from './errors-BKaHnCOI.js';
|
|
3
3
|
import { C as Chain } from './types-CO6YYHVA.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-CO6YYHVA.js';
|
|
5
5
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -105,7 +105,6 @@ var MedialaneConfigSchema = z.object({
|
|
|
105
105
|
rpcUrl: z.string().url().optional(),
|
|
106
106
|
backendUrl: z.string().url().optional(),
|
|
107
107
|
apiKey: z.string().optional(),
|
|
108
|
-
appSource: z.string().regex(/^[A-Z][A-Z0-9_]*$/).optional(),
|
|
109
108
|
marketplace721Contract: z.string().optional(),
|
|
110
109
|
marketplaceContract: z.string().optional(),
|
|
111
110
|
marketplace1155Contract: z.string().optional(),
|
|
@@ -130,7 +129,6 @@ function resolveConfig(raw) {
|
|
|
130
129
|
rpcUrl: parsed.rpcUrl ?? coords.rpcUrl,
|
|
131
130
|
backendUrl: parsed.backendUrl,
|
|
132
131
|
apiKey: parsed.apiKey,
|
|
133
|
-
appSource: parsed.appSource,
|
|
134
132
|
marketplace721Contract,
|
|
135
133
|
marketplaceContract: marketplace721Contract,
|
|
136
134
|
marketplace1155Contract: parsed.marketplace1155Contract ?? sn.marketplace1155,
|
|
@@ -293,13 +291,10 @@ function parseRetryAfter(value) {
|
|
|
293
291
|
return void 0;
|
|
294
292
|
}
|
|
295
293
|
var ApiClient = class {
|
|
296
|
-
constructor(baseUrl, apiKey, retryOptions, chain = "STARKNET"
|
|
294
|
+
constructor(baseUrl, apiKey, retryOptions, chain = "STARKNET") {
|
|
297
295
|
this.baseUrl = baseUrl;
|
|
298
296
|
this.chain = chain;
|
|
299
|
-
this.baseHeaders = {
|
|
300
|
-
...apiKey ? { "x-api-key": apiKey } : {},
|
|
301
|
-
...appSource ? { "x-app-source": appSource } : {}
|
|
302
|
-
};
|
|
297
|
+
this.baseHeaders = apiKey ? { "x-api-key": apiKey } : {};
|
|
303
298
|
this.retryOptions = retryOptions;
|
|
304
299
|
}
|
|
305
300
|
addr(a) {
|
|
@@ -350,9 +345,6 @@ var ApiClient = class {
|
|
|
350
345
|
patch(path, body) {
|
|
351
346
|
return this.request(path, { method: "PATCH", body: JSON.stringify(body) });
|
|
352
347
|
}
|
|
353
|
-
del(path) {
|
|
354
|
-
return this.request(path, { method: "DELETE" });
|
|
355
|
-
}
|
|
356
348
|
bearer(siwsToken) {
|
|
357
349
|
return { Authorization: `Bearer ${siwsToken}` };
|
|
358
350
|
}
|
|
@@ -644,17 +636,6 @@ var ApiClient = class {
|
|
|
644
636
|
headers: this.asSubject(siwsToken)
|
|
645
637
|
});
|
|
646
638
|
}
|
|
647
|
-
getWebhooks() {
|
|
648
|
-
return this.get("/v1/portal/webhooks");
|
|
649
|
-
}
|
|
650
|
-
createWebhook(params) {
|
|
651
|
-
return this.post("/v1/portal/webhooks", params);
|
|
652
|
-
}
|
|
653
|
-
deleteWebhook(id) {
|
|
654
|
-
return this.del(
|
|
655
|
-
`/v1/portal/webhooks/${id}`
|
|
656
|
-
);
|
|
657
|
-
}
|
|
658
639
|
async claimCollection(contractAddress, walletAddress, siwsToken) {
|
|
659
640
|
return this.request("/v1/collections/claim", {
|
|
660
641
|
method: "POST",
|