@medialane/sdk 0.79.0 → 0.81.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 +6 -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 +6 -0
- package/dist/index.js.map +1 -1
- package/dist/{services-L8rbm-gZ.d.ts → services-DMsbdKMq.d.ts} +60 -8
- package/dist/{services-gpLj6m2X.d.cts → services-fxI2RtI-.d.cts} +60 -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
|
@@ -474,6 +474,7 @@ interface ApiActivityPrice {
|
|
|
474
474
|
}
|
|
475
475
|
interface ApiActivity {
|
|
476
476
|
type: ActivityType;
|
|
477
|
+
chain: Chain;
|
|
477
478
|
contractAddress?: string;
|
|
478
479
|
tokenId?: string;
|
|
479
480
|
from?: string;
|
|
@@ -495,6 +496,7 @@ interface ApiActivity {
|
|
|
495
496
|
token?: {
|
|
496
497
|
name: string | null;
|
|
497
498
|
image: string | null;
|
|
499
|
+
animationUrl: string | null;
|
|
498
500
|
} | null;
|
|
499
501
|
}
|
|
500
502
|
interface ApiActivitiesQuery {
|
|
@@ -628,18 +630,30 @@ interface CancelOrderIntentParams {
|
|
|
628
630
|
/** Caller hint — "ERC1155" forces 1155 routing even if the order isn't in the DB yet */
|
|
629
631
|
tokenStandard?: string;
|
|
630
632
|
}
|
|
633
|
+
/** Per-creator-factory services the intents API can create-collection/mint through. */
|
|
634
|
+
type FactoryFamilyServiceId = "mip-erc1155" | "ip-tickets" | "ip-club";
|
|
635
|
+
/** The subset of FactoryFamilyServiceId that supports CREATE_TIER (ip-tickets, ip-club). */
|
|
636
|
+
type TierServiceId = "ip-tickets" | "ip-club";
|
|
631
637
|
interface CreateMintIntentParams {
|
|
632
638
|
/** Collection owner wallet address — must be the collection owner on-chain */
|
|
633
639
|
owner: string;
|
|
634
|
-
collectionId: string;
|
|
635
640
|
recipient: string;
|
|
636
|
-
|
|
641
|
+
/** Registry mint (mip-erc721/ip-erc721, the default): required together with tokenUri. */
|
|
642
|
+
collectionId?: string;
|
|
643
|
+
/** Registry mint: token metadata URI. mip-erc1155: required together with `value`. */
|
|
644
|
+
tokenUri?: string;
|
|
637
645
|
/**
|
|
638
|
-
* EIP-2981 secondary-sale royalty in basis points (0–10_000).
|
|
639
|
-
*
|
|
646
|
+
* EIP-2981 secondary-sale royalty in basis points (0–10_000). Registry mint only —
|
|
647
|
+
* has no effect (and the backend rejects it) on mip-erc1155/ip-tickets/ip-club mints.
|
|
640
648
|
*/
|
|
641
|
-
royaltyBps
|
|
642
|
-
/**
|
|
649
|
+
royaltyBps?: number;
|
|
650
|
+
/** ip-tickets/ip-club mint: the existing tier's token id (create it first via createTierIntent). */
|
|
651
|
+
tokenId?: string;
|
|
652
|
+
/** ip-tickets/ip-club mint: copies to mint into `tokenId`. */
|
|
653
|
+
amount?: string;
|
|
654
|
+
/** mip-erc1155 mint: edition count for the newly-minted token. */
|
|
655
|
+
value?: string;
|
|
656
|
+
/** Required for every factory-family mint (mip-erc1155/ip-tickets/ip-club); omit for registry mint. */
|
|
643
657
|
collectionContract?: string;
|
|
644
658
|
}
|
|
645
659
|
interface CreateCollectionIntentParams {
|
|
@@ -652,8 +666,42 @@ interface CreateCollectionIntentParams {
|
|
|
652
666
|
image?: string;
|
|
653
667
|
/** Base URI for token metadata. Defaults to empty string if not provided. */
|
|
654
668
|
baseUri?: string;
|
|
655
|
-
/** Optional: override the default collection contract address */
|
|
669
|
+
/** Optional: override the default collection contract address (registry path only). */
|
|
656
670
|
collectionContract?: string;
|
|
671
|
+
/**
|
|
672
|
+
* Omit for the registry path (mip-erc721/ip-erc721). Pass a factory-family id to
|
|
673
|
+
* deploy a new per-creator contract via that service's factory instead.
|
|
674
|
+
*/
|
|
675
|
+
service?: FactoryFamilyServiceId;
|
|
676
|
+
}
|
|
677
|
+
interface CreateCheckoutIntentParams {
|
|
678
|
+
fulfiller: string;
|
|
679
|
+
/**
|
|
680
|
+
* Order hashes to check out (1–20). The backend builds one FULFILL_ORDER
|
|
681
|
+
* intent per hash, not one atomic multi-item order — the client concatenates
|
|
682
|
+
* each result's `calls` into a single multicall.
|
|
683
|
+
*/
|
|
684
|
+
orderHashes: string[];
|
|
685
|
+
}
|
|
686
|
+
interface ApiCheckoutIntentResult {
|
|
687
|
+
id?: string;
|
|
688
|
+
orderHash: string;
|
|
689
|
+
requiresSignature?: false;
|
|
690
|
+
calls?: unknown;
|
|
691
|
+
expiresAt?: string;
|
|
692
|
+
/** Set instead of the above when this specific order couldn't be built (e.g. not yet indexed). */
|
|
693
|
+
error?: string;
|
|
694
|
+
}
|
|
695
|
+
interface CreateTierIntentParams {
|
|
696
|
+
owner: string;
|
|
697
|
+
/** The ip-tickets/ip-club collection contract to define the tier on. */
|
|
698
|
+
collection: string;
|
|
699
|
+
service: TierServiceId;
|
|
700
|
+
maxSupply: string;
|
|
701
|
+
startTime?: number;
|
|
702
|
+
endTime?: number;
|
|
703
|
+
royaltyBps: number;
|
|
704
|
+
metadataUri: string;
|
|
657
705
|
}
|
|
658
706
|
interface CreateCounterOfferIntentParams {
|
|
659
707
|
/** Wallet address of the NFT owner making the counter-offer. */
|
|
@@ -1054,11 +1102,15 @@ declare class ApiClient {
|
|
|
1054
1102
|
createOfferIntent(params: MakeOfferIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1055
1103
|
createFulfillIntent(params: FulfillOrderIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1056
1104
|
createCancelIntent(params: CancelOrderIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1105
|
+
createCheckoutIntent(params: CreateCheckoutIntentParams): Promise<{
|
|
1106
|
+
data: ApiCheckoutIntentResult[];
|
|
1107
|
+
}>;
|
|
1057
1108
|
getIntent(id: string): Promise<ApiResponse<ApiIntent>>;
|
|
1058
1109
|
submitIntentSignature(id: string, signature: string[]): Promise<ApiResponse<ApiIntent>>;
|
|
1059
1110
|
confirmIntent(id: string, txHash: string): Promise<ApiResponse<ApiIntent>>;
|
|
1060
1111
|
createMintIntent(params: CreateMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1061
1112
|
createCollectionIntent(params: CreateCollectionIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1113
|
+
createTierIntent(params: CreateTierIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1062
1114
|
/**
|
|
1063
1115
|
* Create a counter-offer intent. The seller proposes a new price in response
|
|
1064
1116
|
* to a buyer's active bid. clerkToken is optional — the endpoint authenticates
|
|
@@ -1408,4 +1460,4 @@ interface ProposeSponsorshipParams {
|
|
|
1408
1460
|
royaltyBps: bigint | string;
|
|
1409
1461
|
}
|
|
1410
1462
|
|
|
1411
|
-
export { type
|
|
1463
|
+
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 };
|
|
@@ -474,6 +474,7 @@ interface ApiActivityPrice {
|
|
|
474
474
|
}
|
|
475
475
|
interface ApiActivity {
|
|
476
476
|
type: ActivityType;
|
|
477
|
+
chain: Chain;
|
|
477
478
|
contractAddress?: string;
|
|
478
479
|
tokenId?: string;
|
|
479
480
|
from?: string;
|
|
@@ -495,6 +496,7 @@ interface ApiActivity {
|
|
|
495
496
|
token?: {
|
|
496
497
|
name: string | null;
|
|
497
498
|
image: string | null;
|
|
499
|
+
animationUrl: string | null;
|
|
498
500
|
} | null;
|
|
499
501
|
}
|
|
500
502
|
interface ApiActivitiesQuery {
|
|
@@ -628,18 +630,30 @@ interface CancelOrderIntentParams {
|
|
|
628
630
|
/** Caller hint — "ERC1155" forces 1155 routing even if the order isn't in the DB yet */
|
|
629
631
|
tokenStandard?: string;
|
|
630
632
|
}
|
|
633
|
+
/** Per-creator-factory services the intents API can create-collection/mint through. */
|
|
634
|
+
type FactoryFamilyServiceId = "mip-erc1155" | "ip-tickets" | "ip-club";
|
|
635
|
+
/** The subset of FactoryFamilyServiceId that supports CREATE_TIER (ip-tickets, ip-club). */
|
|
636
|
+
type TierServiceId = "ip-tickets" | "ip-club";
|
|
631
637
|
interface CreateMintIntentParams {
|
|
632
638
|
/** Collection owner wallet address — must be the collection owner on-chain */
|
|
633
639
|
owner: string;
|
|
634
|
-
collectionId: string;
|
|
635
640
|
recipient: string;
|
|
636
|
-
|
|
641
|
+
/** Registry mint (mip-erc721/ip-erc721, the default): required together with tokenUri. */
|
|
642
|
+
collectionId?: string;
|
|
643
|
+
/** Registry mint: token metadata URI. mip-erc1155: required together with `value`. */
|
|
644
|
+
tokenUri?: string;
|
|
637
645
|
/**
|
|
638
|
-
* EIP-2981 secondary-sale royalty in basis points (0–10_000).
|
|
639
|
-
*
|
|
646
|
+
* EIP-2981 secondary-sale royalty in basis points (0–10_000). Registry mint only —
|
|
647
|
+
* has no effect (and the backend rejects it) on mip-erc1155/ip-tickets/ip-club mints.
|
|
640
648
|
*/
|
|
641
|
-
royaltyBps
|
|
642
|
-
/**
|
|
649
|
+
royaltyBps?: number;
|
|
650
|
+
/** ip-tickets/ip-club mint: the existing tier's token id (create it first via createTierIntent). */
|
|
651
|
+
tokenId?: string;
|
|
652
|
+
/** ip-tickets/ip-club mint: copies to mint into `tokenId`. */
|
|
653
|
+
amount?: string;
|
|
654
|
+
/** mip-erc1155 mint: edition count for the newly-minted token. */
|
|
655
|
+
value?: string;
|
|
656
|
+
/** Required for every factory-family mint (mip-erc1155/ip-tickets/ip-club); omit for registry mint. */
|
|
643
657
|
collectionContract?: string;
|
|
644
658
|
}
|
|
645
659
|
interface CreateCollectionIntentParams {
|
|
@@ -652,8 +666,42 @@ interface CreateCollectionIntentParams {
|
|
|
652
666
|
image?: string;
|
|
653
667
|
/** Base URI for token metadata. Defaults to empty string if not provided. */
|
|
654
668
|
baseUri?: string;
|
|
655
|
-
/** Optional: override the default collection contract address */
|
|
669
|
+
/** Optional: override the default collection contract address (registry path only). */
|
|
656
670
|
collectionContract?: string;
|
|
671
|
+
/**
|
|
672
|
+
* Omit for the registry path (mip-erc721/ip-erc721). Pass a factory-family id to
|
|
673
|
+
* deploy a new per-creator contract via that service's factory instead.
|
|
674
|
+
*/
|
|
675
|
+
service?: FactoryFamilyServiceId;
|
|
676
|
+
}
|
|
677
|
+
interface CreateCheckoutIntentParams {
|
|
678
|
+
fulfiller: string;
|
|
679
|
+
/**
|
|
680
|
+
* Order hashes to check out (1–20). The backend builds one FULFILL_ORDER
|
|
681
|
+
* intent per hash, not one atomic multi-item order — the client concatenates
|
|
682
|
+
* each result's `calls` into a single multicall.
|
|
683
|
+
*/
|
|
684
|
+
orderHashes: string[];
|
|
685
|
+
}
|
|
686
|
+
interface ApiCheckoutIntentResult {
|
|
687
|
+
id?: string;
|
|
688
|
+
orderHash: string;
|
|
689
|
+
requiresSignature?: false;
|
|
690
|
+
calls?: unknown;
|
|
691
|
+
expiresAt?: string;
|
|
692
|
+
/** Set instead of the above when this specific order couldn't be built (e.g. not yet indexed). */
|
|
693
|
+
error?: string;
|
|
694
|
+
}
|
|
695
|
+
interface CreateTierIntentParams {
|
|
696
|
+
owner: string;
|
|
697
|
+
/** The ip-tickets/ip-club collection contract to define the tier on. */
|
|
698
|
+
collection: string;
|
|
699
|
+
service: TierServiceId;
|
|
700
|
+
maxSupply: string;
|
|
701
|
+
startTime?: number;
|
|
702
|
+
endTime?: number;
|
|
703
|
+
royaltyBps: number;
|
|
704
|
+
metadataUri: string;
|
|
657
705
|
}
|
|
658
706
|
interface CreateCounterOfferIntentParams {
|
|
659
707
|
/** Wallet address of the NFT owner making the counter-offer. */
|
|
@@ -1054,11 +1102,15 @@ declare class ApiClient {
|
|
|
1054
1102
|
createOfferIntent(params: MakeOfferIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1055
1103
|
createFulfillIntent(params: FulfillOrderIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1056
1104
|
createCancelIntent(params: CancelOrderIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1105
|
+
createCheckoutIntent(params: CreateCheckoutIntentParams): Promise<{
|
|
1106
|
+
data: ApiCheckoutIntentResult[];
|
|
1107
|
+
}>;
|
|
1057
1108
|
getIntent(id: string): Promise<ApiResponse<ApiIntent>>;
|
|
1058
1109
|
submitIntentSignature(id: string, signature: string[]): Promise<ApiResponse<ApiIntent>>;
|
|
1059
1110
|
confirmIntent(id: string, txHash: string): Promise<ApiResponse<ApiIntent>>;
|
|
1060
1111
|
createMintIntent(params: CreateMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1061
1112
|
createCollectionIntent(params: CreateCollectionIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1113
|
+
createTierIntent(params: CreateTierIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1062
1114
|
/**
|
|
1063
1115
|
* Create a counter-offer intent. The seller proposes a new price in response
|
|
1064
1116
|
* to a buyer's active bid. clerkToken is optional — the endpoint authenticates
|
|
@@ -1408,4 +1460,4 @@ interface ProposeSponsorshipParams {
|
|
|
1408
1460
|
royaltyBps: bigint | string;
|
|
1409
1461
|
}
|
|
1410
1462
|
|
|
1411
|
-
export { type
|
|
1463
|
+
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
|