@medialane/sdk 0.117.0 → 0.118.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 +13 -2
- 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 +13 -2
- package/dist/index.js.map +1 -1
- package/dist/{services-D971bAZ2.d.cts → services-BVGQSIjq.d.cts} +31 -5
- package/dist/{services-BezTZ6gM.d.ts → services-Bb_anNPX.d.ts} +31 -5
- package/dist/starknet/index.cjs +13 -2
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +1 -1
- package/dist/starknet/index.d.ts +1 -1
- package/dist/starknet/index.js +13 -2
- 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 './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 ApiCreditPayment, C as ApiIntent, D as ApiIntentCreated, E as ApiKeyStatus, F as ApiMeta, G as ApiMetadataSignedUrl, H as ApiMetadataUpload, I as
|
|
1
|
+
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './services-BVGQSIjq.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 ApiMintCallsCall, J as ApiMintCallsResult, K as ApiOrder, L as ApiOrderConsideration, M as ApiOrderOffer, N as ApiOrderPrice, O as ApiOrderTokenMeta, P as ApiOrderTxHash, Q as ApiOrdersQuery, T as ApiPointEvent, U as ApiPortalKey, V as ApiPortalKeyCreated, W as ApiPortalMe, X as ApiPortalSpend, Y as ApiPublicRemix, Z as ApiRemixOffer, _ as ApiRemixOfferPrice, $ as ApiRemixOffersQuery, a0 as ApiResponse, a1 as ApiRewardsBadge, a2 as ApiRewardsBatchEntry, a3 as ApiRewardsConfig, a4 as ApiRewardsLeaderboardEntry, a5 as ApiRewardsLevel, a6 as ApiSearchCollectionResult, a7 as ApiSearchCreatorResult, a8 as ApiSearchResult, a9 as ApiSearchTokenResult, aa as ApiSpendByAction, ab as ApiToken, ac as ApiTokenBalance, ad as ApiTokenMetadata, ae as ApiUserRewards, af as ApiUserWallet, ag as ApiWalletActivity, ah as ApiWebhookCreated, ai as ApiWebhookEndpoint, aj as AutoRemixOfferParams, ak as CancelOrderIntentParams, al as ChainFilter, am as CheckoutIntentItem, an as ClaimConditions, ao as CollectionServiceId, ap as CollectionSort, aq as CollectionTokensSort, ar as ConfirmRemixOfferParams, as as ConfirmSelfRemixParams, at as ConsiderationItem, au as CreateCheckoutIntentParams, av as CreateCoinIntentParams, aw as CreateCollectionIntentParams, ax as CreateCounterOfferIntentParams, ay as CreateDropParams, az as CreateListingIntentParams, aA as CreateMembershipParams, aB as CreateMintIntentParams, aC as CreatePopCollectionParams, aD as CreateRemixOfferParams, aE as CreateSponsorshipOfferIntentParams, aF as CreateSponsorshipOfferParams, aG as CreateSponsorshipProposalIntentParams, aH as CreateTicketParams, aI as CreateTierIntentParams, aJ as CreateWebhookParams, aK as DropMintStatus, aL as EnforcementDeclaration, aM as FactoryFamilyServiceId, aN as FeeConfig, aO as FeeConfigSchema, aP as FulfillOrderIntentParams, aQ as IPType, aR as IntentCall, aS as IntentStatus, aT as IntentType, aU as IpAttribute, aV as IpNftMetadata, aW as LaunchCoinIntentParams, aX as MakeOfferIntentParams, aY as MedialaneApiError, aZ as MedialaneConfig, a_ as MedialaneErrorCode, a$ as MintCallsParams, b0 as MintMembershipsParams, b1 as MintTicketsParams, b2 as OPEN_LICENSES, b3 as OfferItem, b4 as OpenLicense, b5 as Order, b6 as OrderDetails, b7 as OrderParameters, b8 as OrderStatus, b9 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 WebhookEventType, br as WebhookStatus, bs as WithdrawSponsorshipProposalIntentParams, bt as resolveConfig, bu as resolveFeeConfig } from './services-BVGQSIjq.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 ApiCreditPayment, C as ApiIntent, D as ApiIntentCreated, E as ApiKeyStatus, F as ApiMeta, G as ApiMetadataSignedUrl, H as ApiMetadataUpload, I as
|
|
1
|
+
import { R as ResolvedFeeConfig, S as ServiceDefinition, a as ServiceCapability } from './services-Bb_anNPX.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 ApiMintCallsCall, J as ApiMintCallsResult, K as ApiOrder, L as ApiOrderConsideration, M as ApiOrderOffer, N as ApiOrderPrice, O as ApiOrderTokenMeta, P as ApiOrderTxHash, Q as ApiOrdersQuery, T as ApiPointEvent, U as ApiPortalKey, V as ApiPortalKeyCreated, W as ApiPortalMe, X as ApiPortalSpend, Y as ApiPublicRemix, Z as ApiRemixOffer, _ as ApiRemixOfferPrice, $ as ApiRemixOffersQuery, a0 as ApiResponse, a1 as ApiRewardsBadge, a2 as ApiRewardsBatchEntry, a3 as ApiRewardsConfig, a4 as ApiRewardsLeaderboardEntry, a5 as ApiRewardsLevel, a6 as ApiSearchCollectionResult, a7 as ApiSearchCreatorResult, a8 as ApiSearchResult, a9 as ApiSearchTokenResult, aa as ApiSpendByAction, ab as ApiToken, ac as ApiTokenBalance, ad as ApiTokenMetadata, ae as ApiUserRewards, af as ApiUserWallet, ag as ApiWalletActivity, ah as ApiWebhookCreated, ai as ApiWebhookEndpoint, aj as AutoRemixOfferParams, ak as CancelOrderIntentParams, al as ChainFilter, am as CheckoutIntentItem, an as ClaimConditions, ao as CollectionServiceId, ap as CollectionSort, aq as CollectionTokensSort, ar as ConfirmRemixOfferParams, as as ConfirmSelfRemixParams, at as ConsiderationItem, au as CreateCheckoutIntentParams, av as CreateCoinIntentParams, aw as CreateCollectionIntentParams, ax as CreateCounterOfferIntentParams, ay as CreateDropParams, az as CreateListingIntentParams, aA as CreateMembershipParams, aB as CreateMintIntentParams, aC as CreatePopCollectionParams, aD as CreateRemixOfferParams, aE as CreateSponsorshipOfferIntentParams, aF as CreateSponsorshipOfferParams, aG as CreateSponsorshipProposalIntentParams, aH as CreateTicketParams, aI as CreateTierIntentParams, aJ as CreateWebhookParams, aK as DropMintStatus, aL as EnforcementDeclaration, aM as FactoryFamilyServiceId, aN as FeeConfig, aO as FeeConfigSchema, aP as FulfillOrderIntentParams, aQ as IPType, aR as IntentCall, aS as IntentStatus, aT as IntentType, aU as IpAttribute, aV as IpNftMetadata, aW as LaunchCoinIntentParams, aX as MakeOfferIntentParams, aY as MedialaneApiError, aZ as MedialaneConfig, a_ as MedialaneErrorCode, a$ as MintCallsParams, b0 as MintMembershipsParams, b1 as MintTicketsParams, b2 as OPEN_LICENSES, b3 as OfferItem, b4 as OpenLicense, b5 as Order, b6 as OrderDetails, b7 as OrderParameters, b8 as OrderStatus, b9 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 WebhookEventType, br as WebhookStatus, bs as WithdrawSponsorshipProposalIntentParams, bt as resolveConfig, bu as resolveFeeConfig } from './services-Bb_anNPX.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
|
@@ -273,10 +273,11 @@ function deriveErrorCode(status) {
|
|
|
273
273
|
return "UNKNOWN";
|
|
274
274
|
}
|
|
275
275
|
var MedialaneApiError = class extends Error {
|
|
276
|
-
constructor(status, message, retryAfterMs) {
|
|
276
|
+
constructor(status, message, retryAfterMs, details) {
|
|
277
277
|
super(message);
|
|
278
278
|
this.status = status;
|
|
279
279
|
this.retryAfterMs = retryAfterMs;
|
|
280
|
+
this.details = details;
|
|
280
281
|
this.name = "MedialaneApiError";
|
|
281
282
|
this.code = deriveErrorCode(status);
|
|
282
283
|
}
|
|
@@ -314,12 +315,19 @@ var ApiClient = class {
|
|
|
314
315
|
if (!response.ok && !allowed(response.status)) {
|
|
315
316
|
const text = await response.text().catch(() => response.statusText);
|
|
316
317
|
let message = text;
|
|
318
|
+
let details;
|
|
317
319
|
try {
|
|
318
320
|
const body = JSON.parse(text);
|
|
319
321
|
if (body.error) message = body.error;
|
|
322
|
+
details = body;
|
|
320
323
|
} catch {
|
|
321
324
|
}
|
|
322
|
-
throw new MedialaneApiError(
|
|
325
|
+
throw new MedialaneApiError(
|
|
326
|
+
response.status,
|
|
327
|
+
message,
|
|
328
|
+
parseRetryAfter(response.headers.get("retry-after")),
|
|
329
|
+
details
|
|
330
|
+
);
|
|
323
331
|
}
|
|
324
332
|
return response;
|
|
325
333
|
}, this.retryOptions);
|
|
@@ -470,6 +478,9 @@ var ApiClient = class {
|
|
|
470
478
|
createTierIntent(params) {
|
|
471
479
|
return this.post("/v1/intents/create-tier", params);
|
|
472
480
|
}
|
|
481
|
+
mintCalls(params) {
|
|
482
|
+
return this.post("/v1/business/issuance/mint-calls", params);
|
|
483
|
+
}
|
|
473
484
|
createCoinIntent(params) {
|
|
474
485
|
return this.post("/v1/intents/create-coin", params);
|
|
475
486
|
}
|