@medialane/sdk 0.95.0 → 0.96.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 +12 -0
- 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 +12 -0
- package/dist/index.js.map +1 -1
- package/dist/{services-BllZwNlB.d.ts → services-CRrl4KPp.d.ts} +10 -1
- package/dist/{services-DbJoYGF0.d.cts → services-DoPHyfG_.d.cts} +10 -1
- package/dist/starknet/index.cjs +12 -0
- 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 +12 -0
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -373,6 +373,13 @@ interface ApiCoinPrice {
|
|
|
373
373
|
usdc: number;
|
|
374
374
|
}
|
|
375
375
|
type ApiCoinPrices = Record<string, ApiCoinPrice | null>;
|
|
376
|
+
type ApiCoinClaimResult = {
|
|
377
|
+
verified: true;
|
|
378
|
+
coin: ApiCoin | null;
|
|
379
|
+
} | {
|
|
380
|
+
verified: false;
|
|
381
|
+
reason: "owner_mismatch" | "owner_check_failed" | "not_erc20" | "no_total_supply";
|
|
382
|
+
};
|
|
376
383
|
interface ApiCoinsQuery {
|
|
377
384
|
chain?: ChainFilter;
|
|
378
385
|
page?: number;
|
|
@@ -1163,6 +1170,8 @@ declare class ApiClient {
|
|
|
1163
1170
|
data: ApiCoin;
|
|
1164
1171
|
}>;
|
|
1165
1172
|
getCoinPrices(): Promise<ApiResponse<ApiCoinPrices>>;
|
|
1173
|
+
claimCoin(coinAddress: string, siwsToken: string): Promise<ApiCoinClaimResult>;
|
|
1174
|
+
getCoinClaims(status?: string): Promise<ApiResponse<ApiCollectionClaim[]>>;
|
|
1166
1175
|
updateCoinProfile(contract: string, data: {
|
|
1167
1176
|
image?: string;
|
|
1168
1177
|
description?: string;
|
|
@@ -1291,4 +1300,4 @@ interface ProposeSponsorshipParams {
|
|
|
1291
1300
|
royaltyBps: bigint | string;
|
|
1292
1301
|
}
|
|
1293
1302
|
|
|
1294
|
-
export { type
|
|
1303
|
+
export { type ApiRewardsConfig as $, type AcceptSponsorshipBidIntentParams as A, type ApiIntent as B, type ApiIntentCreated as C, type ApiKeyStatus as D, type ApiMeta as E, type ApiMetadataSignedUrl as F, type ApiMetadataUpload as G, type ApiOrder as H, type ApiOrderConsideration as I, type ApiOrderOffer as J, type ApiOrderPrice as K, type ApiOrderTokenMeta as L, type ApiOrderTxHash as M, type ApiOrdersQuery as N, type ApiPointEvent as O, type ApiPortalKey as P, type ApiPortalKeyCreated as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiPortalMe as T, type ApiPublicRemix as U, type ApiRemixOffer as V, type ApiRemixOfferPrice as W, type ApiRemixOffersQuery as X, type ApiResponse as Y, type ApiRewardsBadge as Z, type ApiRewardsBatchEntry as _, type ServiceCapability as a, type OpenLicense as a$, type ApiRewardsLeaderboardEntry as a0, type ApiRewardsLevel as a1, type ApiSearchCollectionResult as a2, type ApiSearchCreatorResult as a3, type ApiSearchResult as a4, type ApiSearchTokenResult as a5, type ApiToken as a6, type ApiTokenBalance as a7, type ApiTokenMetadata as a8, type ApiUsageDay as a9, type CreateSponsorshipOfferIntentParams as aA, type CreateSponsorshipOfferParams as aB, type CreateSponsorshipProposalIntentParams as aC, type CreateTicketParams as aD, type CreateTierIntentParams as aE, type CreateWebhookParams as aF, type DropMintStatus as aG, type EnforcementDeclaration as aH, type FactoryFamilyServiceId as aI, type FeeConfig as aJ, FeeConfigSchema as aK, type FulfillOrderIntentParams as aL, type IPType as aM, type IntentCall as aN, type IntentStatus as aO, type IntentType as aP, type IpAttribute as aQ, type IpNftMetadata as aR, type LaunchCoinIntentParams as aS, type MakeOfferIntentParams as aT, MedialaneApiError as aU, type MedialaneConfig as aV, type MedialaneErrorCode as aW, type MintMembershipsParams as aX, type MintTicketsParams as aY, OPEN_LICENSES as aZ, type OfferItem as a_, type ApiUserRewards as aa, type ApiUserWallet as ab, type ApiWalletActivity as ac, type ApiWebhookCreated as ad, type ApiWebhookEndpoint as ae, type AutoRemixOfferParams as af, type CancelOrderIntentParams as ag, type ChainFilter as ah, type CheckoutIntentItem as ai, type ClaimConditions as aj, type CollectionServiceId as ak, type CollectionSort as al, type CollectionTokensSort as am, type ConfirmRemixOfferParams as an, type ConfirmSelfRemixParams as ao, type ConsiderationItem as ap, type CreateCheckoutIntentParams as aq, type CreateCoinIntentParams as ar, type CreateCollectionIntentParams as as, type CreateCounterOfferIntentParams as at, type CreateDropParams as au, type CreateListingIntentParams as av, type CreateMembershipParams as aw, type CreateMintIntentParams as ax, type CreatePopCollectionParams as ay, type CreateRemixOfferParams as az, type AcceptSponsorshipProposalIntentParams as b, type Order as b0, type OrderDetails as b1, type OrderParameters as b2, type OrderStatus as b3, type PlaceSponsorshipBidIntentParams as b4, type PopBatchEligibilityItem as b5, type PopClaimStatus as b6, type PopEventType as b7, type ProposeSponsorshipParams as b8, type RejectSponsorshipProposalIntentParams as b9, type RemixOfferStatus as ba, type ResolvedConfig as bb, type RetractSponsorshipBidIntentParams as bc, type RetryOptions as bd, type ServiceEventDeclaration as be, type SetSponsorshipOfferOpenIntentParams as bf, type SortOrder as bg, type TenantPlan as bh, type TierServiceId as bi, type TxResult as bj, type WebhookEventType as bk, type WebhookStatus as bl, type WithdrawSponsorshipProposalIntentParams as bm, resolveConfig as bn, resolveFeeConfig as bo, type ActivityType as c, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiAppSource as h, type ApiBusinessProvisioning as i, type ApiChain as j, type ApiCheckoutIntentResult as k, ApiClient as l, type ApiCoin as m, type ApiCoinClaimResult as n, type ApiCoinPrice as o, type ApiCoinPrices as p, type ApiCoinsQuery as q, type ApiCollection as r, type ApiCollectionClaim as s, type ApiCollectionProfile as t, type ApiCollectionSlugClaim as u, type ApiCollectionsQuery as v, type ApiComment as w, type ApiCounterOffersQuery as x, type ApiCreatorListResult as y, type ApiCreatorProfile as z };
|
|
@@ -373,6 +373,13 @@ interface ApiCoinPrice {
|
|
|
373
373
|
usdc: number;
|
|
374
374
|
}
|
|
375
375
|
type ApiCoinPrices = Record<string, ApiCoinPrice | null>;
|
|
376
|
+
type ApiCoinClaimResult = {
|
|
377
|
+
verified: true;
|
|
378
|
+
coin: ApiCoin | null;
|
|
379
|
+
} | {
|
|
380
|
+
verified: false;
|
|
381
|
+
reason: "owner_mismatch" | "owner_check_failed" | "not_erc20" | "no_total_supply";
|
|
382
|
+
};
|
|
376
383
|
interface ApiCoinsQuery {
|
|
377
384
|
chain?: ChainFilter;
|
|
378
385
|
page?: number;
|
|
@@ -1163,6 +1170,8 @@ declare class ApiClient {
|
|
|
1163
1170
|
data: ApiCoin;
|
|
1164
1171
|
}>;
|
|
1165
1172
|
getCoinPrices(): Promise<ApiResponse<ApiCoinPrices>>;
|
|
1173
|
+
claimCoin(coinAddress: string, siwsToken: string): Promise<ApiCoinClaimResult>;
|
|
1174
|
+
getCoinClaims(status?: string): Promise<ApiResponse<ApiCollectionClaim[]>>;
|
|
1166
1175
|
updateCoinProfile(contract: string, data: {
|
|
1167
1176
|
image?: string;
|
|
1168
1177
|
description?: string;
|
|
@@ -1291,4 +1300,4 @@ interface ProposeSponsorshipParams {
|
|
|
1291
1300
|
royaltyBps: bigint | string;
|
|
1292
1301
|
}
|
|
1293
1302
|
|
|
1294
|
-
export { type
|
|
1303
|
+
export { type ApiRewardsConfig as $, type AcceptSponsorshipBidIntentParams as A, type ApiIntent as B, type ApiIntentCreated as C, type ApiKeyStatus as D, type ApiMeta as E, type ApiMetadataSignedUrl as F, type ApiMetadataUpload as G, type ApiOrder as H, type ApiOrderConsideration as I, type ApiOrderOffer as J, type ApiOrderPrice as K, type ApiOrderTokenMeta as L, type ApiOrderTxHash as M, type ApiOrdersQuery as N, type ApiPointEvent as O, type ApiPortalKey as P, type ApiPortalKeyCreated as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiPortalMe as T, type ApiPublicRemix as U, type ApiRemixOffer as V, type ApiRemixOfferPrice as W, type ApiRemixOffersQuery as X, type ApiResponse as Y, type ApiRewardsBadge as Z, type ApiRewardsBatchEntry as _, type ServiceCapability as a, type OpenLicense as a$, type ApiRewardsLeaderboardEntry as a0, type ApiRewardsLevel as a1, type ApiSearchCollectionResult as a2, type ApiSearchCreatorResult as a3, type ApiSearchResult as a4, type ApiSearchTokenResult as a5, type ApiToken as a6, type ApiTokenBalance as a7, type ApiTokenMetadata as a8, type ApiUsageDay as a9, type CreateSponsorshipOfferIntentParams as aA, type CreateSponsorshipOfferParams as aB, type CreateSponsorshipProposalIntentParams as aC, type CreateTicketParams as aD, type CreateTierIntentParams as aE, type CreateWebhookParams as aF, type DropMintStatus as aG, type EnforcementDeclaration as aH, type FactoryFamilyServiceId as aI, type FeeConfig as aJ, FeeConfigSchema as aK, type FulfillOrderIntentParams as aL, type IPType as aM, type IntentCall as aN, type IntentStatus as aO, type IntentType as aP, type IpAttribute as aQ, type IpNftMetadata as aR, type LaunchCoinIntentParams as aS, type MakeOfferIntentParams as aT, MedialaneApiError as aU, type MedialaneConfig as aV, type MedialaneErrorCode as aW, type MintMembershipsParams as aX, type MintTicketsParams as aY, OPEN_LICENSES as aZ, type OfferItem as a_, type ApiUserRewards as aa, type ApiUserWallet as ab, type ApiWalletActivity as ac, type ApiWebhookCreated as ad, type ApiWebhookEndpoint as ae, type AutoRemixOfferParams as af, type CancelOrderIntentParams as ag, type ChainFilter as ah, type CheckoutIntentItem as ai, type ClaimConditions as aj, type CollectionServiceId as ak, type CollectionSort as al, type CollectionTokensSort as am, type ConfirmRemixOfferParams as an, type ConfirmSelfRemixParams as ao, type ConsiderationItem as ap, type CreateCheckoutIntentParams as aq, type CreateCoinIntentParams as ar, type CreateCollectionIntentParams as as, type CreateCounterOfferIntentParams as at, type CreateDropParams as au, type CreateListingIntentParams as av, type CreateMembershipParams as aw, type CreateMintIntentParams as ax, type CreatePopCollectionParams as ay, type CreateRemixOfferParams as az, type AcceptSponsorshipProposalIntentParams as b, type Order as b0, type OrderDetails as b1, type OrderParameters as b2, type OrderStatus as b3, type PlaceSponsorshipBidIntentParams as b4, type PopBatchEligibilityItem as b5, type PopClaimStatus as b6, type PopEventType as b7, type ProposeSponsorshipParams as b8, type RejectSponsorshipProposalIntentParams as b9, type RemixOfferStatus as ba, type ResolvedConfig as bb, type RetractSponsorshipBidIntentParams as bc, type RetryOptions as bd, type ServiceEventDeclaration as be, type SetSponsorshipOfferOpenIntentParams as bf, type SortOrder as bg, type TenantPlan as bh, type TierServiceId as bi, type TxResult as bj, type WebhookEventType as bk, type WebhookStatus as bl, type WithdrawSponsorshipProposalIntentParams as bm, resolveConfig as bn, resolveFeeConfig as bo, type ActivityType as c, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiAppSource as h, type ApiBusinessProvisioning as i, type ApiChain as j, type ApiCheckoutIntentResult as k, ApiClient as l, type ApiCoin as m, type ApiCoinClaimResult as n, type ApiCoinPrice as o, type ApiCoinPrices as p, type ApiCoinsQuery as q, type ApiCollection as r, type ApiCollectionClaim as s, type ApiCollectionProfile as t, type ApiCollectionSlugClaim as u, type ApiCollectionsQuery as v, type ApiComment as w, type ApiCounterOffersQuery as x, type ApiCreatorListResult as y, type ApiCreatorProfile as z };
|
package/dist/starknet/index.cjs
CHANGED
|
@@ -763,6 +763,18 @@ var ApiClient = class {
|
|
|
763
763
|
getCoinPrices() {
|
|
764
764
|
return this.get("/v1/coins/prices");
|
|
765
765
|
}
|
|
766
|
+
claimCoin(coinAddress, siwsToken) {
|
|
767
|
+
return this.request("/v1/coins/claim", {
|
|
768
|
+
method: "POST",
|
|
769
|
+
headers: { Authorization: `Bearer ${siwsToken}` },
|
|
770
|
+
body: JSON.stringify({ coinAddress })
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
getCoinClaims(status = "PENDING") {
|
|
774
|
+
return this.get(
|
|
775
|
+
`/v1/coins/claims?status=${encodeURIComponent(status)}`
|
|
776
|
+
);
|
|
777
|
+
}
|
|
766
778
|
updateCoinProfile(contract, data, siwsToken) {
|
|
767
779
|
return this.request(`/v1/coins/${this.addr(contract)}`, {
|
|
768
780
|
method: "PATCH",
|