@medialane/sdk 0.112.0 → 0.114.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/index.cjs +42 -10
- 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 +42 -10
- package/dist/index.js.map +1 -1
- package/dist/{services-BBXTfVDt.d.ts → services-BezTZ6gM.d.ts} +43 -12
- package/dist/{services-BcsFAZzQ.d.cts → services-D971bAZ2.d.cts} +43 -12
- package/dist/starknet/index.cjs +62 -10
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +6 -2
- package/dist/starknet/index.d.ts +6 -2
- package/dist/starknet/index.js +62 -11
- package/dist/starknet/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './services-
|
|
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
|
|
1
|
+
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './services-D971bAZ2.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 ApiIntent, D as ApiIntentCreated, E as ApiKeyStatus, F as ApiMeta, G as ApiMetadataSignedUrl, H as ApiMetadataUpload, I as ApiOrder, J as ApiOrderConsideration, K as ApiOrderOffer, L as ApiOrderPrice, M as ApiOrderTokenMeta, N as ApiOrderTxHash, O as ApiOrdersQuery, P as ApiPointEvent, Q as ApiPortalKey, T as ApiPortalKeyCreated, U as ApiPortalMe, V as ApiPortalSpend, W as ApiPublicRemix, X as ApiRemixOffer, Y as ApiRemixOfferPrice, Z as ApiRemixOffersQuery, _ as ApiResponse, $ as ApiRewardsBadge, a0 as ApiRewardsBatchEntry, a1 as ApiRewardsConfig, a2 as ApiRewardsLeaderboardEntry, a3 as ApiRewardsLevel, a4 as ApiSearchCollectionResult, a5 as ApiSearchCreatorResult, a6 as ApiSearchResult, a7 as ApiSearchTokenResult, a8 as ApiSpendByAction, a9 as ApiToken, aa as ApiTokenBalance, ab as ApiTokenMetadata, ac as ApiUserRewards, ad as ApiUserWallet, ae as ApiWalletActivity, af as ApiWebhookCreated, ag as ApiWebhookEndpoint, ah as AutoRemixOfferParams, ai as CancelOrderIntentParams, aj as ChainFilter, ak as CheckoutIntentItem, al as ClaimConditions, am as CollectionServiceId, an as CollectionSort, ao as CollectionTokensSort, ap as ConfirmRemixOfferParams, aq as ConfirmSelfRemixParams, ar as ConsiderationItem, as as CreateCheckoutIntentParams, at as CreateCoinIntentParams, au as CreateCollectionIntentParams, av as CreateCounterOfferIntentParams, aw as CreateDropParams, ax as CreateListingIntentParams, ay as CreateMembershipParams, az as CreateMintIntentParams, aA as CreatePopCollectionParams, aB as CreateRemixOfferParams, aC as CreateSponsorshipOfferIntentParams, aD as CreateSponsorshipOfferParams, aE as CreateSponsorshipProposalIntentParams, aF as CreateTicketParams, aG as CreateTierIntentParams, aH as CreateWebhookParams, aI as DropMintStatus, aJ as EnforcementDeclaration, aK as FactoryFamilyServiceId, aL as FeeConfig, aM as FeeConfigSchema, aN as FulfillOrderIntentParams, aO as IPType, aP as IntentCall, aQ as IntentStatus, aR as IntentType, aS as IpAttribute, aT as IpNftMetadata, aU as LaunchCoinIntentParams, aV as MakeOfferIntentParams, aW as MedialaneApiError, aX as MedialaneConfig, aY as MedialaneErrorCode, aZ as MintMembershipsParams, a_ as MintTicketsParams, a$ as OPEN_LICENSES, b0 as OfferItem, b1 as OpenLicense, b2 as Order, b3 as OrderDetails, b4 as OrderParameters, b5 as OrderStatus, b6 as PlaceSponsorshipBidIntentParams, b7 as PopBatchEligibilityItem, b8 as PopClaimStatus, b9 as PopEventType, ba as ProposeSponsorshipParams, bb as RejectSponsorshipProposalIntentParams, bc as RemixOfferStatus, bd as ResolvedConfig, be as RetractSponsorshipBidIntentParams, bf as RetryOptions, bg as ServiceEventDeclaration, bh as SetSponsorshipOfferOpenIntentParams, bi as SortOrder, bj as TenantPlan, bk as TierServiceId, bl as TxResult, bm as UpdateCollectionProfileInput, bn as WebhookEventType, bo as WebhookStatus, bp as WithdrawSponsorshipProposalIntentParams, bq as resolveConfig, br as resolveFeeConfig } from './services-D971bAZ2.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';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './services-
|
|
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
|
|
1
|
+
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './services-BezTZ6gM.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 ApiIntent, D as ApiIntentCreated, E as ApiKeyStatus, F as ApiMeta, G as ApiMetadataSignedUrl, H as ApiMetadataUpload, I as ApiOrder, J as ApiOrderConsideration, K as ApiOrderOffer, L as ApiOrderPrice, M as ApiOrderTokenMeta, N as ApiOrderTxHash, O as ApiOrdersQuery, P as ApiPointEvent, Q as ApiPortalKey, T as ApiPortalKeyCreated, U as ApiPortalMe, V as ApiPortalSpend, W as ApiPublicRemix, X as ApiRemixOffer, Y as ApiRemixOfferPrice, Z as ApiRemixOffersQuery, _ as ApiResponse, $ as ApiRewardsBadge, a0 as ApiRewardsBatchEntry, a1 as ApiRewardsConfig, a2 as ApiRewardsLeaderboardEntry, a3 as ApiRewardsLevel, a4 as ApiSearchCollectionResult, a5 as ApiSearchCreatorResult, a6 as ApiSearchResult, a7 as ApiSearchTokenResult, a8 as ApiSpendByAction, a9 as ApiToken, aa as ApiTokenBalance, ab as ApiTokenMetadata, ac as ApiUserRewards, ad as ApiUserWallet, ae as ApiWalletActivity, af as ApiWebhookCreated, ag as ApiWebhookEndpoint, ah as AutoRemixOfferParams, ai as CancelOrderIntentParams, aj as ChainFilter, ak as CheckoutIntentItem, al as ClaimConditions, am as CollectionServiceId, an as CollectionSort, ao as CollectionTokensSort, ap as ConfirmRemixOfferParams, aq as ConfirmSelfRemixParams, ar as ConsiderationItem, as as CreateCheckoutIntentParams, at as CreateCoinIntentParams, au as CreateCollectionIntentParams, av as CreateCounterOfferIntentParams, aw as CreateDropParams, ax as CreateListingIntentParams, ay as CreateMembershipParams, az as CreateMintIntentParams, aA as CreatePopCollectionParams, aB as CreateRemixOfferParams, aC as CreateSponsorshipOfferIntentParams, aD as CreateSponsorshipOfferParams, aE as CreateSponsorshipProposalIntentParams, aF as CreateTicketParams, aG as CreateTierIntentParams, aH as CreateWebhookParams, aI as DropMintStatus, aJ as EnforcementDeclaration, aK as FactoryFamilyServiceId, aL as FeeConfig, aM as FeeConfigSchema, aN as FulfillOrderIntentParams, aO as IPType, aP as IntentCall, aQ as IntentStatus, aR as IntentType, aS as IpAttribute, aT as IpNftMetadata, aU as LaunchCoinIntentParams, aV as MakeOfferIntentParams, aW as MedialaneApiError, aX as MedialaneConfig, aY as MedialaneErrorCode, aZ as MintMembershipsParams, a_ as MintTicketsParams, a$ as OPEN_LICENSES, b0 as OfferItem, b1 as OpenLicense, b2 as Order, b3 as OrderDetails, b4 as OrderParameters, b5 as OrderStatus, b6 as PlaceSponsorshipBidIntentParams, b7 as PopBatchEligibilityItem, b8 as PopClaimStatus, b9 as PopEventType, ba as ProposeSponsorshipParams, bb as RejectSponsorshipProposalIntentParams, bc as RemixOfferStatus, bd as ResolvedConfig, be as RetractSponsorshipBidIntentParams, bf as RetryOptions, bg as ServiceEventDeclaration, bh as SetSponsorshipOfferOpenIntentParams, bi as SortOrder, bj as TenantPlan, bk as TierServiceId, bl as TxResult, bm as UpdateCollectionProfileInput, bn as WebhookEventType, bo as WebhookStatus, bp as WithdrawSponsorshipProposalIntentParams, bq as resolveConfig, br as resolveFeeConfig } from './services-BezTZ6gM.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';
|
package/dist/index.js
CHANGED
|
@@ -341,6 +341,9 @@ var ApiClient = class {
|
|
|
341
341
|
bearer(siwsToken) {
|
|
342
342
|
return { Authorization: `Bearer ${siwsToken}` };
|
|
343
343
|
}
|
|
344
|
+
asSubject(siwsToken) {
|
|
345
|
+
return siwsToken ? this.bearer(siwsToken) : void 0;
|
|
346
|
+
}
|
|
344
347
|
getOrders(query = {}) {
|
|
345
348
|
const params = new URLSearchParams();
|
|
346
349
|
if (query.status) params.set("status", query.status);
|
|
@@ -535,20 +538,49 @@ var ApiClient = class {
|
|
|
535
538
|
body: formData
|
|
536
539
|
});
|
|
537
540
|
}
|
|
538
|
-
getMe() {
|
|
539
|
-
return this.
|
|
541
|
+
getMe(siwsToken) {
|
|
542
|
+
return this.request("/v1/portal/me", {
|
|
543
|
+
method: "GET",
|
|
544
|
+
headers: this.asSubject(siwsToken)
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
getApiKeys(siwsToken) {
|
|
548
|
+
return this.request("/v1/portal/keys", {
|
|
549
|
+
method: "GET",
|
|
550
|
+
headers: this.asSubject(siwsToken)
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
createApiKey(input, siwsToken) {
|
|
554
|
+
return this.request("/v1/portal/keys", {
|
|
555
|
+
method: "POST",
|
|
556
|
+
body: JSON.stringify(input ?? {}),
|
|
557
|
+
headers: this.asSubject(siwsToken)
|
|
558
|
+
});
|
|
540
559
|
}
|
|
541
|
-
|
|
542
|
-
return this.
|
|
560
|
+
deleteApiKey(id, siwsToken) {
|
|
561
|
+
return this.request(`/v1/portal/keys/${id}`, {
|
|
562
|
+
method: "DELETE",
|
|
563
|
+
headers: this.asSubject(siwsToken)
|
|
564
|
+
});
|
|
543
565
|
}
|
|
544
|
-
|
|
545
|
-
return this.
|
|
566
|
+
getCreditHistory(siwsToken) {
|
|
567
|
+
return this.request("/v1/portal/credits/history", {
|
|
568
|
+
method: "GET",
|
|
569
|
+
headers: this.asSubject(siwsToken)
|
|
570
|
+
});
|
|
546
571
|
}
|
|
547
|
-
|
|
548
|
-
return this.
|
|
572
|
+
getSpend(siwsToken) {
|
|
573
|
+
return this.request("/v1/portal/credits/spend", {
|
|
574
|
+
method: "GET",
|
|
575
|
+
headers: this.asSubject(siwsToken)
|
|
576
|
+
});
|
|
549
577
|
}
|
|
550
|
-
|
|
551
|
-
return this.
|
|
578
|
+
checkDeposit(txHash, siwsToken) {
|
|
579
|
+
return this.request("/v1/portal/credits/check", {
|
|
580
|
+
method: "POST",
|
|
581
|
+
body: JSON.stringify({ txHash }),
|
|
582
|
+
headers: this.asSubject(siwsToken)
|
|
583
|
+
});
|
|
552
584
|
}
|
|
553
585
|
getWebhooks() {
|
|
554
586
|
return this.get("/v1/portal/webhooks");
|