@medialane/sdk 0.78.0 → 0.80.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 +69 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -3
- package/dist/index.d.ts +48 -3
- package/dist/index.js +67 -1
- package/dist/index.js.map +1 -1
- package/dist/{services-gpLj6m2X.d.cts → services-1U8xO9JM.d.cts} +58 -8
- package/dist/{services-L8rbm-gZ.d.ts → services-vRjBk3Zn.d.ts} +58 -8
- package/dist/starknet/index.cjs +6 -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 +6 -0
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -628,18 +628,30 @@ interface CancelOrderIntentParams {
|
|
|
628
628
|
/** Caller hint — "ERC1155" forces 1155 routing even if the order isn't in the DB yet */
|
|
629
629
|
tokenStandard?: string;
|
|
630
630
|
}
|
|
631
|
+
/** Per-creator-factory services the intents API can create-collection/mint through. */
|
|
632
|
+
type FactoryFamilyServiceId = "mip-erc1155" | "ip-tickets" | "ip-club";
|
|
633
|
+
/** The subset of FactoryFamilyServiceId that supports CREATE_TIER (ip-tickets, ip-club). */
|
|
634
|
+
type TierServiceId = "ip-tickets" | "ip-club";
|
|
631
635
|
interface CreateMintIntentParams {
|
|
632
636
|
/** Collection owner wallet address — must be the collection owner on-chain */
|
|
633
637
|
owner: string;
|
|
634
|
-
collectionId: string;
|
|
635
638
|
recipient: string;
|
|
636
|
-
|
|
639
|
+
/** Registry mint (mip-erc721/ip-erc721, the default): required together with tokenUri. */
|
|
640
|
+
collectionId?: string;
|
|
641
|
+
/** Registry mint: token metadata URI. mip-erc1155: required together with `value`. */
|
|
642
|
+
tokenUri?: string;
|
|
637
643
|
/**
|
|
638
|
-
* EIP-2981 secondary-sale royalty in basis points (0–10_000).
|
|
639
|
-
*
|
|
644
|
+
* EIP-2981 secondary-sale royalty in basis points (0–10_000). Registry mint only —
|
|
645
|
+
* has no effect (and the backend rejects it) on mip-erc1155/ip-tickets/ip-club mints.
|
|
640
646
|
*/
|
|
641
|
-
royaltyBps
|
|
642
|
-
/**
|
|
647
|
+
royaltyBps?: number;
|
|
648
|
+
/** ip-tickets/ip-club mint: the existing tier's token id (create it first via createTierIntent). */
|
|
649
|
+
tokenId?: string;
|
|
650
|
+
/** ip-tickets/ip-club mint: copies to mint into `tokenId`. */
|
|
651
|
+
amount?: string;
|
|
652
|
+
/** mip-erc1155 mint: edition count for the newly-minted token. */
|
|
653
|
+
value?: string;
|
|
654
|
+
/** Required for every factory-family mint (mip-erc1155/ip-tickets/ip-club); omit for registry mint. */
|
|
643
655
|
collectionContract?: string;
|
|
644
656
|
}
|
|
645
657
|
interface CreateCollectionIntentParams {
|
|
@@ -652,8 +664,42 @@ interface CreateCollectionIntentParams {
|
|
|
652
664
|
image?: string;
|
|
653
665
|
/** Base URI for token metadata. Defaults to empty string if not provided. */
|
|
654
666
|
baseUri?: string;
|
|
655
|
-
/** Optional: override the default collection contract address */
|
|
667
|
+
/** Optional: override the default collection contract address (registry path only). */
|
|
656
668
|
collectionContract?: string;
|
|
669
|
+
/**
|
|
670
|
+
* Omit for the registry path (mip-erc721/ip-erc721). Pass a factory-family id to
|
|
671
|
+
* deploy a new per-creator contract via that service's factory instead.
|
|
672
|
+
*/
|
|
673
|
+
service?: FactoryFamilyServiceId;
|
|
674
|
+
}
|
|
675
|
+
interface CreateCheckoutIntentParams {
|
|
676
|
+
fulfiller: string;
|
|
677
|
+
/**
|
|
678
|
+
* Order hashes to check out (1–20). The backend builds one FULFILL_ORDER
|
|
679
|
+
* intent per hash, not one atomic multi-item order — the client concatenates
|
|
680
|
+
* each result's `calls` into a single multicall.
|
|
681
|
+
*/
|
|
682
|
+
orderHashes: string[];
|
|
683
|
+
}
|
|
684
|
+
interface ApiCheckoutIntentResult {
|
|
685
|
+
id?: string;
|
|
686
|
+
orderHash: string;
|
|
687
|
+
requiresSignature?: false;
|
|
688
|
+
calls?: unknown;
|
|
689
|
+
expiresAt?: string;
|
|
690
|
+
/** Set instead of the above when this specific order couldn't be built (e.g. not yet indexed). */
|
|
691
|
+
error?: string;
|
|
692
|
+
}
|
|
693
|
+
interface CreateTierIntentParams {
|
|
694
|
+
owner: string;
|
|
695
|
+
/** The ip-tickets/ip-club collection contract to define the tier on. */
|
|
696
|
+
collection: string;
|
|
697
|
+
service: TierServiceId;
|
|
698
|
+
maxSupply: string;
|
|
699
|
+
startTime?: number;
|
|
700
|
+
endTime?: number;
|
|
701
|
+
royaltyBps: number;
|
|
702
|
+
metadataUri: string;
|
|
657
703
|
}
|
|
658
704
|
interface CreateCounterOfferIntentParams {
|
|
659
705
|
/** Wallet address of the NFT owner making the counter-offer. */
|
|
@@ -1054,11 +1100,15 @@ declare class ApiClient {
|
|
|
1054
1100
|
createOfferIntent(params: MakeOfferIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1055
1101
|
createFulfillIntent(params: FulfillOrderIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1056
1102
|
createCancelIntent(params: CancelOrderIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1103
|
+
createCheckoutIntent(params: CreateCheckoutIntentParams): Promise<{
|
|
1104
|
+
data: ApiCheckoutIntentResult[];
|
|
1105
|
+
}>;
|
|
1057
1106
|
getIntent(id: string): Promise<ApiResponse<ApiIntent>>;
|
|
1058
1107
|
submitIntentSignature(id: string, signature: string[]): Promise<ApiResponse<ApiIntent>>;
|
|
1059
1108
|
confirmIntent(id: string, txHash: string): Promise<ApiResponse<ApiIntent>>;
|
|
1060
1109
|
createMintIntent(params: CreateMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1061
1110
|
createCollectionIntent(params: CreateCollectionIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1111
|
+
createTierIntent(params: CreateTierIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1062
1112
|
/**
|
|
1063
1113
|
* Create a counter-offer intent. The seller proposes a new price in response
|
|
1064
1114
|
* to a buyer's active bid. clerkToken is optional — the endpoint authenticates
|
|
@@ -1408,4 +1458,4 @@ interface ProposeSponsorshipParams {
|
|
|
1408
1458
|
royaltyBps: bigint | string;
|
|
1409
1459
|
}
|
|
1410
1460
|
|
|
1411
|
-
export { type
|
|
1461
|
+
export { type ApiSearchTokenResult as $, type ActivityType as A, type ApiMetadataUpload as B, type ApiOrder as C, type ApiOrderConsideration as D, type ApiOrderOffer as E, type ApiOrderPrice as F, type ApiOrderTokenMeta as G, type ApiOrderTxHash as H, type ApiOrdersQuery as I, type ApiPointEvent as J, type ApiPortalKey as K, type ApiPortalKeyCreated as L, type ApiPortalMe as M, type ApiPublicRemix as N, type ApiRemixOffer as O, type ApiRemixOfferPrice as P, type ApiRemixOffersQuery as Q, type ApiResponse as R, type ServiceDefinition as S, type ApiRewardsBadge as T, type ApiRewardsBatchEntry as U, type ApiRewardsConfig as V, type ApiRewardsLeaderboardEntry as W, type ApiRewardsLevel as X, type ApiSearchCollectionResult as Y, type ApiSearchCreatorResult as Z, type ApiSearchResult as _, type ServiceCapability as a, type RetryOptions as a$, type ApiToken as a0, type ApiTokenBalance as a1, type ApiTokenMetadata as a2, type ApiUsageDay as a3, type ApiUserRewards as a4, type ApiUserWallet as a5, type ApiWalletActivity as a6, type ApiWebhookCreated as a7, type ApiWebhookEndpoint as a8, type AutoRemixOfferParams as a9, type FulfillOrderIntentParams as aA, type IPType as aB, type IntentCall as aC, type IntentStatus as aD, type IntentType as aE, type IpAttribute as aF, type IpNftMetadata as aG, type MakeOfferIntentParams as aH, MedialaneApiError as aI, type MedialaneConfig as aJ, type MedialaneErrorCode as aK, type MintMembershipsParams as aL, type MintTicketsParams as aM, OPEN_LICENSES as aN, type OfferItem as aO, type OpenLicense as aP, type Order as aQ, type OrderDetails as aR, type OrderParameters as aS, type OrderStatus as aT, type PopBatchEligibilityItem as aU, type PopClaimStatus as aV, type PopEventType as aW, type ProposeSponsorshipParams as aX, type RemixOfferStatus as aY, type ResolvedConfig as aZ, type ResolvedFeeConfig as a_, type CancelOrderIntentParams as aa, type ChainFilter as ab, type ClaimConditions as ac, type CollectionSort as ad, type CollectionTokensSort as ae, type ConfirmRemixOfferParams as af, type ConfirmSelfRemixParams as ag, type ConsiderationItem as ah, type CreateCheckoutIntentParams as ai, type CreateCollectionIntentParams as aj, type CreateCounterOfferIntentParams as ak, type CreateDropParams as al, type CreateListingIntentParams as am, type CreateMembershipParams as an, type CreateMintIntentParams as ao, type CreatePopCollectionParams as ap, type CreateRemixOfferParams as aq, type CreateSponsorshipOfferParams as ar, type CreateTicketParams as as, type CreateTierIntentParams as at, type CreateWebhookParams as au, type DropMintStatus as av, type EnforcementDeclaration as aw, type FactoryFamilyServiceId as ax, type FeeConfig as ay, FeeConfigSchema as az, type ApiActivitiesQuery as b, type ServiceEventDeclaration as b0, type SortOrder as b1, type TenantPlan as b2, type TierServiceId as b3, type TxResult as b4, type WebhookEventType as b5, type WebhookStatus as b6, resolveConfig as b7, resolveFeeConfig as b8, type ApiActivity as c, type ApiActivityPrice as d, type ApiAdminCollectionClaim as e, type ApiAppSource as f, type ApiBusinessProvisioning as g, type ApiChain as h, type ApiCheckoutIntentResult as i, ApiClient as j, type ApiCoin as k, type ApiCoinsQuery as l, type ApiCollection as m, type ApiCollectionClaim as n, type ApiCollectionProfile as o, type ApiCollectionSlugClaim as p, type ApiCollectionsQuery as q, type ApiComment as r, type ApiCounterOffersQuery as s, type ApiCreatorListResult as t, type ApiCreatorProfile as u, type ApiIntent as v, type ApiIntentCreated as w, type ApiKeyStatus as x, type ApiMeta as y, type ApiMetadataSignedUrl as z };
|
|
@@ -628,18 +628,30 @@ interface CancelOrderIntentParams {
|
|
|
628
628
|
/** Caller hint — "ERC1155" forces 1155 routing even if the order isn't in the DB yet */
|
|
629
629
|
tokenStandard?: string;
|
|
630
630
|
}
|
|
631
|
+
/** Per-creator-factory services the intents API can create-collection/mint through. */
|
|
632
|
+
type FactoryFamilyServiceId = "mip-erc1155" | "ip-tickets" | "ip-club";
|
|
633
|
+
/** The subset of FactoryFamilyServiceId that supports CREATE_TIER (ip-tickets, ip-club). */
|
|
634
|
+
type TierServiceId = "ip-tickets" | "ip-club";
|
|
631
635
|
interface CreateMintIntentParams {
|
|
632
636
|
/** Collection owner wallet address — must be the collection owner on-chain */
|
|
633
637
|
owner: string;
|
|
634
|
-
collectionId: string;
|
|
635
638
|
recipient: string;
|
|
636
|
-
|
|
639
|
+
/** Registry mint (mip-erc721/ip-erc721, the default): required together with tokenUri. */
|
|
640
|
+
collectionId?: string;
|
|
641
|
+
/** Registry mint: token metadata URI. mip-erc1155: required together with `value`. */
|
|
642
|
+
tokenUri?: string;
|
|
637
643
|
/**
|
|
638
|
-
* EIP-2981 secondary-sale royalty in basis points (0–10_000).
|
|
639
|
-
*
|
|
644
|
+
* EIP-2981 secondary-sale royalty in basis points (0–10_000). Registry mint only —
|
|
645
|
+
* has no effect (and the backend rejects it) on mip-erc1155/ip-tickets/ip-club mints.
|
|
640
646
|
*/
|
|
641
|
-
royaltyBps
|
|
642
|
-
/**
|
|
647
|
+
royaltyBps?: number;
|
|
648
|
+
/** ip-tickets/ip-club mint: the existing tier's token id (create it first via createTierIntent). */
|
|
649
|
+
tokenId?: string;
|
|
650
|
+
/** ip-tickets/ip-club mint: copies to mint into `tokenId`. */
|
|
651
|
+
amount?: string;
|
|
652
|
+
/** mip-erc1155 mint: edition count for the newly-minted token. */
|
|
653
|
+
value?: string;
|
|
654
|
+
/** Required for every factory-family mint (mip-erc1155/ip-tickets/ip-club); omit for registry mint. */
|
|
643
655
|
collectionContract?: string;
|
|
644
656
|
}
|
|
645
657
|
interface CreateCollectionIntentParams {
|
|
@@ -652,8 +664,42 @@ interface CreateCollectionIntentParams {
|
|
|
652
664
|
image?: string;
|
|
653
665
|
/** Base URI for token metadata. Defaults to empty string if not provided. */
|
|
654
666
|
baseUri?: string;
|
|
655
|
-
/** Optional: override the default collection contract address */
|
|
667
|
+
/** Optional: override the default collection contract address (registry path only). */
|
|
656
668
|
collectionContract?: string;
|
|
669
|
+
/**
|
|
670
|
+
* Omit for the registry path (mip-erc721/ip-erc721). Pass a factory-family id to
|
|
671
|
+
* deploy a new per-creator contract via that service's factory instead.
|
|
672
|
+
*/
|
|
673
|
+
service?: FactoryFamilyServiceId;
|
|
674
|
+
}
|
|
675
|
+
interface CreateCheckoutIntentParams {
|
|
676
|
+
fulfiller: string;
|
|
677
|
+
/**
|
|
678
|
+
* Order hashes to check out (1–20). The backend builds one FULFILL_ORDER
|
|
679
|
+
* intent per hash, not one atomic multi-item order — the client concatenates
|
|
680
|
+
* each result's `calls` into a single multicall.
|
|
681
|
+
*/
|
|
682
|
+
orderHashes: string[];
|
|
683
|
+
}
|
|
684
|
+
interface ApiCheckoutIntentResult {
|
|
685
|
+
id?: string;
|
|
686
|
+
orderHash: string;
|
|
687
|
+
requiresSignature?: false;
|
|
688
|
+
calls?: unknown;
|
|
689
|
+
expiresAt?: string;
|
|
690
|
+
/** Set instead of the above when this specific order couldn't be built (e.g. not yet indexed). */
|
|
691
|
+
error?: string;
|
|
692
|
+
}
|
|
693
|
+
interface CreateTierIntentParams {
|
|
694
|
+
owner: string;
|
|
695
|
+
/** The ip-tickets/ip-club collection contract to define the tier on. */
|
|
696
|
+
collection: string;
|
|
697
|
+
service: TierServiceId;
|
|
698
|
+
maxSupply: string;
|
|
699
|
+
startTime?: number;
|
|
700
|
+
endTime?: number;
|
|
701
|
+
royaltyBps: number;
|
|
702
|
+
metadataUri: string;
|
|
657
703
|
}
|
|
658
704
|
interface CreateCounterOfferIntentParams {
|
|
659
705
|
/** Wallet address of the NFT owner making the counter-offer. */
|
|
@@ -1054,11 +1100,15 @@ declare class ApiClient {
|
|
|
1054
1100
|
createOfferIntent(params: MakeOfferIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1055
1101
|
createFulfillIntent(params: FulfillOrderIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1056
1102
|
createCancelIntent(params: CancelOrderIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1103
|
+
createCheckoutIntent(params: CreateCheckoutIntentParams): Promise<{
|
|
1104
|
+
data: ApiCheckoutIntentResult[];
|
|
1105
|
+
}>;
|
|
1057
1106
|
getIntent(id: string): Promise<ApiResponse<ApiIntent>>;
|
|
1058
1107
|
submitIntentSignature(id: string, signature: string[]): Promise<ApiResponse<ApiIntent>>;
|
|
1059
1108
|
confirmIntent(id: string, txHash: string): Promise<ApiResponse<ApiIntent>>;
|
|
1060
1109
|
createMintIntent(params: CreateMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1061
1110
|
createCollectionIntent(params: CreateCollectionIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1111
|
+
createTierIntent(params: CreateTierIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1062
1112
|
/**
|
|
1063
1113
|
* Create a counter-offer intent. The seller proposes a new price in response
|
|
1064
1114
|
* to a buyer's active bid. clerkToken is optional — the endpoint authenticates
|
|
@@ -1408,4 +1458,4 @@ interface ProposeSponsorshipParams {
|
|
|
1408
1458
|
royaltyBps: bigint | string;
|
|
1409
1459
|
}
|
|
1410
1460
|
|
|
1411
|
-
export { type
|
|
1461
|
+
export { type ApiSearchTokenResult as $, type ActivityType as A, type ApiMetadataUpload as B, type ApiOrder as C, type ApiOrderConsideration as D, type ApiOrderOffer as E, type ApiOrderPrice as F, type ApiOrderTokenMeta as G, type ApiOrderTxHash as H, type ApiOrdersQuery as I, type ApiPointEvent as J, type ApiPortalKey as K, type ApiPortalKeyCreated as L, type ApiPortalMe as M, type ApiPublicRemix as N, type ApiRemixOffer as O, type ApiRemixOfferPrice as P, type ApiRemixOffersQuery as Q, type ApiResponse as R, type ServiceDefinition as S, type ApiRewardsBadge as T, type ApiRewardsBatchEntry as U, type ApiRewardsConfig as V, type ApiRewardsLeaderboardEntry as W, type ApiRewardsLevel as X, type ApiSearchCollectionResult as Y, type ApiSearchCreatorResult as Z, type ApiSearchResult as _, type ServiceCapability as a, type RetryOptions as a$, type ApiToken as a0, type ApiTokenBalance as a1, type ApiTokenMetadata as a2, type ApiUsageDay as a3, type ApiUserRewards as a4, type ApiUserWallet as a5, type ApiWalletActivity as a6, type ApiWebhookCreated as a7, type ApiWebhookEndpoint as a8, type AutoRemixOfferParams as a9, type FulfillOrderIntentParams as aA, type IPType as aB, type IntentCall as aC, type IntentStatus as aD, type IntentType as aE, type IpAttribute as aF, type IpNftMetadata as aG, type MakeOfferIntentParams as aH, MedialaneApiError as aI, type MedialaneConfig as aJ, type MedialaneErrorCode as aK, type MintMembershipsParams as aL, type MintTicketsParams as aM, OPEN_LICENSES as aN, type OfferItem as aO, type OpenLicense as aP, type Order as aQ, type OrderDetails as aR, type OrderParameters as aS, type OrderStatus as aT, type PopBatchEligibilityItem as aU, type PopClaimStatus as aV, type PopEventType as aW, type ProposeSponsorshipParams as aX, type RemixOfferStatus as aY, type ResolvedConfig as aZ, type ResolvedFeeConfig as a_, type CancelOrderIntentParams as aa, type ChainFilter as ab, type ClaimConditions as ac, type CollectionSort as ad, type CollectionTokensSort as ae, type ConfirmRemixOfferParams as af, type ConfirmSelfRemixParams as ag, type ConsiderationItem as ah, type CreateCheckoutIntentParams as ai, type CreateCollectionIntentParams as aj, type CreateCounterOfferIntentParams as ak, type CreateDropParams as al, type CreateListingIntentParams as am, type CreateMembershipParams as an, type CreateMintIntentParams as ao, type CreatePopCollectionParams as ap, type CreateRemixOfferParams as aq, type CreateSponsorshipOfferParams as ar, type CreateTicketParams as as, type CreateTierIntentParams as at, type CreateWebhookParams as au, type DropMintStatus as av, type EnforcementDeclaration as aw, type FactoryFamilyServiceId as ax, type FeeConfig as ay, FeeConfigSchema as az, type ApiActivitiesQuery as b, type ServiceEventDeclaration as b0, type SortOrder as b1, type TenantPlan as b2, type TierServiceId as b3, type TxResult as b4, type WebhookEventType as b5, type WebhookStatus as b6, resolveConfig as b7, resolveFeeConfig as b8, type ApiActivity as c, type ApiActivityPrice as d, type ApiAdminCollectionClaim as e, type ApiAppSource as f, type ApiBusinessProvisioning as g, type ApiChain as h, type ApiCheckoutIntentResult as i, ApiClient as j, type ApiCoin as k, type ApiCoinsQuery as l, type ApiCollection as m, type ApiCollectionClaim as n, type ApiCollectionProfile as o, type ApiCollectionSlugClaim as p, type ApiCollectionsQuery as q, type ApiComment as r, type ApiCounterOffersQuery as s, type ApiCreatorListResult as t, type ApiCreatorProfile as u, type ApiIntent as v, type ApiIntentCreated as w, type ApiKeyStatus as x, type ApiMeta as y, type ApiMetadataSignedUrl as z };
|
package/dist/starknet/index.cjs
CHANGED
|
@@ -436,6 +436,9 @@ var ApiClient = class {
|
|
|
436
436
|
createCancelIntent(params) {
|
|
437
437
|
return this.post("/v1/intents/cancel", params);
|
|
438
438
|
}
|
|
439
|
+
createCheckoutIntent(params) {
|
|
440
|
+
return this.post("/v1/intents/checkout", params);
|
|
441
|
+
}
|
|
439
442
|
getIntent(id) {
|
|
440
443
|
return this.get(`/v1/intents/${id}`);
|
|
441
444
|
}
|
|
@@ -451,6 +454,9 @@ var ApiClient = class {
|
|
|
451
454
|
createCollectionIntent(params) {
|
|
452
455
|
return this.post("/v1/intents/create-collection", params);
|
|
453
456
|
}
|
|
457
|
+
createTierIntent(params) {
|
|
458
|
+
return this.post("/v1/intents/create-tier", params);
|
|
459
|
+
}
|
|
454
460
|
/**
|
|
455
461
|
* Create a counter-offer intent. The seller proposes a new price in response
|
|
456
462
|
* to a buyer's active bid. clerkToken is optional — the endpoint authenticates
|