@medialane/sdk 0.82.0 → 0.84.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 +31 -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 +31 -2
- package/dist/index.js.map +1 -1
- package/dist/{services-BrLuUB_Z.d.ts → services-BggxMBlL.d.ts} +87 -1
- package/dist/{services-B5tH-bth.d.cts → services-CRWVGLDq.d.cts} +87 -1
- package/dist/starknet/index.cjs +32 -3
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +2 -2
- package/dist/starknet/index.d.ts +2 -2
- package/dist/starknet/index.js +32 -3
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,16 +12,19 @@ declare const FeeConfigSchema: z.ZodObject<{
|
|
|
12
12
|
fundAddress: z.ZodOptional<z.ZodString>;
|
|
13
13
|
marketplaceBps: z.ZodDefault<z.ZodNumber>;
|
|
14
14
|
launchpadBps: z.ZodDefault<z.ZodNumber>;
|
|
15
|
+
sponsorshipBps: z.ZodDefault<z.ZodNumber>;
|
|
15
16
|
}, "strip", z.ZodTypeAny, {
|
|
16
17
|
enabled: boolean;
|
|
17
18
|
marketplaceBps: number;
|
|
18
19
|
launchpadBps: number;
|
|
20
|
+
sponsorshipBps: number;
|
|
19
21
|
fundAddress?: string | undefined;
|
|
20
22
|
}, {
|
|
21
23
|
enabled?: boolean | undefined;
|
|
22
24
|
fundAddress?: string | undefined;
|
|
23
25
|
marketplaceBps?: number | undefined;
|
|
24
26
|
launchpadBps?: number | undefined;
|
|
27
|
+
sponsorshipBps?: number | undefined;
|
|
25
28
|
}>;
|
|
26
29
|
type FeeConfig = z.input<typeof FeeConfigSchema>;
|
|
27
30
|
interface ResolvedFeeConfig {
|
|
@@ -29,6 +32,7 @@ interface ResolvedFeeConfig {
|
|
|
29
32
|
fundAddress: string | undefined;
|
|
30
33
|
marketplaceBps: number;
|
|
31
34
|
launchpadBps: number;
|
|
35
|
+
sponsorshipBps: number;
|
|
32
36
|
}
|
|
33
37
|
declare function resolveFeeConfig(raw: FeeConfig | undefined): ResolvedFeeConfig;
|
|
34
38
|
|
|
@@ -61,16 +65,19 @@ declare const MedialaneConfigSchema: z.ZodObject<{
|
|
|
61
65
|
fundAddress: z.ZodOptional<z.ZodString>;
|
|
62
66
|
marketplaceBps: z.ZodDefault<z.ZodNumber>;
|
|
63
67
|
launchpadBps: z.ZodDefault<z.ZodNumber>;
|
|
68
|
+
sponsorshipBps: z.ZodDefault<z.ZodNumber>;
|
|
64
69
|
}, "strip", z.ZodTypeAny, {
|
|
65
70
|
enabled: boolean;
|
|
66
71
|
marketplaceBps: number;
|
|
67
72
|
launchpadBps: number;
|
|
73
|
+
sponsorshipBps: number;
|
|
68
74
|
fundAddress?: string | undefined;
|
|
69
75
|
}, {
|
|
70
76
|
enabled?: boolean | undefined;
|
|
71
77
|
fundAddress?: string | undefined;
|
|
72
78
|
marketplaceBps?: number | undefined;
|
|
73
79
|
launchpadBps?: number | undefined;
|
|
80
|
+
sponsorshipBps?: number | undefined;
|
|
74
81
|
}>>;
|
|
75
82
|
}, "strip", z.ZodTypeAny, {
|
|
76
83
|
chain: "STARKNET" | "ETHEREUM" | "SOLANA" | "BASE" | "STELLAR" | "BITCOIN";
|
|
@@ -92,6 +99,7 @@ declare const MedialaneConfigSchema: z.ZodObject<{
|
|
|
92
99
|
enabled: boolean;
|
|
93
100
|
marketplaceBps: number;
|
|
94
101
|
launchpadBps: number;
|
|
102
|
+
sponsorshipBps: number;
|
|
95
103
|
fundAddress?: string | undefined;
|
|
96
104
|
} | undefined;
|
|
97
105
|
}, {
|
|
@@ -115,6 +123,7 @@ declare const MedialaneConfigSchema: z.ZodObject<{
|
|
|
115
123
|
fundAddress?: string | undefined;
|
|
116
124
|
marketplaceBps?: number | undefined;
|
|
117
125
|
launchpadBps?: number | undefined;
|
|
126
|
+
sponsorshipBps?: number | undefined;
|
|
118
127
|
} | undefined;
|
|
119
128
|
}>;
|
|
120
129
|
type MedialaneConfig = z.input<typeof MedialaneConfigSchema>;
|
|
@@ -704,6 +713,74 @@ interface CreateTierIntentParams {
|
|
|
704
713
|
royaltyBps: number;
|
|
705
714
|
metadataUri: string;
|
|
706
715
|
}
|
|
716
|
+
interface CreateSponsorshipOfferIntentParams {
|
|
717
|
+
/** The offer author — must currently own (nftContract, tokenId) on-chain. */
|
|
718
|
+
author: string;
|
|
719
|
+
nftContract: string;
|
|
720
|
+
tokenId: string;
|
|
721
|
+
minAmount: string;
|
|
722
|
+
/** Seconds, applied from acceptance (not from offer creation). */
|
|
723
|
+
duration: number;
|
|
724
|
+
paymentToken: string;
|
|
725
|
+
licenseTermsUri: string;
|
|
726
|
+
transferable: boolean;
|
|
727
|
+
/** Basis points, 0–10000. EIP-2981 royalty to the author on license resale. */
|
|
728
|
+
royaltyBps: number;
|
|
729
|
+
/** Restricts acceptance to one sponsor address; omit for open bidding. */
|
|
730
|
+
specificSponsor?: string;
|
|
731
|
+
}
|
|
732
|
+
interface SetSponsorshipOfferOpenIntentParams {
|
|
733
|
+
/** Must be the offer's author. */
|
|
734
|
+
author: string;
|
|
735
|
+
offerId: string;
|
|
736
|
+
open: boolean;
|
|
737
|
+
}
|
|
738
|
+
interface PlaceSponsorshipBidIntentParams {
|
|
739
|
+
/** The sponsor placing the bid — becomes the ERC-20 approve + place_bid caller. */
|
|
740
|
+
sponsor: string;
|
|
741
|
+
offerId: string;
|
|
742
|
+
amount: string;
|
|
743
|
+
paymentToken: string;
|
|
744
|
+
}
|
|
745
|
+
interface RetractSponsorshipBidIntentParams {
|
|
746
|
+
sponsor: string;
|
|
747
|
+
offerId: string;
|
|
748
|
+
}
|
|
749
|
+
interface AcceptSponsorshipBidIntentParams {
|
|
750
|
+
/** Must be the offer's author — re-verified on-chain. */
|
|
751
|
+
author: string;
|
|
752
|
+
offerId: string;
|
|
753
|
+
/** The bidder whose bid is being accepted. */
|
|
754
|
+
sponsor: string;
|
|
755
|
+
}
|
|
756
|
+
interface CreateSponsorshipProposalIntentParams {
|
|
757
|
+
/** The sponsor proposing terms — pays if accepted. */
|
|
758
|
+
proposer: string;
|
|
759
|
+
nftContract: string;
|
|
760
|
+
tokenId: string;
|
|
761
|
+
/** Fixed take-it-or-leave-it amount (not a bid floor). */
|
|
762
|
+
amount: string;
|
|
763
|
+
duration: number;
|
|
764
|
+
/** Unix seconds; the deadline for the asset owner to accept. Omit/0 = no deadline. */
|
|
765
|
+
validUntil?: number;
|
|
766
|
+
paymentToken: string;
|
|
767
|
+
licenseTermsUri: string;
|
|
768
|
+
transferable: boolean;
|
|
769
|
+
royaltyBps: number;
|
|
770
|
+
}
|
|
771
|
+
interface WithdrawSponsorshipProposalIntentParams {
|
|
772
|
+
proposer: string;
|
|
773
|
+
proposalId: string;
|
|
774
|
+
}
|
|
775
|
+
interface AcceptSponsorshipProposalIntentParams {
|
|
776
|
+
/** Must currently own the asset — re-verified on-chain (binds to the asset, not a person). */
|
|
777
|
+
owner: string;
|
|
778
|
+
proposalId: string;
|
|
779
|
+
}
|
|
780
|
+
interface RejectSponsorshipProposalIntentParams {
|
|
781
|
+
owner: string;
|
|
782
|
+
proposalId: string;
|
|
783
|
+
}
|
|
707
784
|
interface CreateCounterOfferIntentParams {
|
|
708
785
|
/** Wallet address of the NFT owner making the counter-offer. */
|
|
709
786
|
sellerAddress: string;
|
|
@@ -1112,6 +1189,15 @@ declare class ApiClient {
|
|
|
1112
1189
|
createMintIntent(params: CreateMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1113
1190
|
createCollectionIntent(params: CreateCollectionIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1114
1191
|
createTierIntent(params: CreateTierIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1192
|
+
createSponsorshipOfferIntent(params: CreateSponsorshipOfferIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1193
|
+
setSponsorshipOfferOpenIntent(params: SetSponsorshipOfferOpenIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1194
|
+
placeSponsorshipBidIntent(params: PlaceSponsorshipBidIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1195
|
+
retractSponsorshipBidIntent(params: RetractSponsorshipBidIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1196
|
+
acceptSponsorshipBidIntent(params: AcceptSponsorshipBidIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1197
|
+
createSponsorshipProposalIntent(params: CreateSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1198
|
+
withdrawSponsorshipProposalIntent(params: WithdrawSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1199
|
+
acceptSponsorshipProposalIntent(params: AcceptSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1200
|
+
rejectSponsorshipProposalIntent(params: RejectSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1115
1201
|
/**
|
|
1116
1202
|
* Create a counter-offer intent. The seller proposes a new price in response
|
|
1117
1203
|
* to a buyer's active bid. clerkToken is optional — the endpoint authenticates
|
|
@@ -1461,4 +1547,4 @@ interface ProposeSponsorshipParams {
|
|
|
1461
1547
|
royaltyBps: bigint | string;
|
|
1462
1548
|
}
|
|
1463
1549
|
|
|
1464
|
-
export { type
|
|
1550
|
+
export { type ApiSearchCreatorResult as $, type AcceptSponsorshipBidIntentParams as A, type ApiMeta as B, type ApiMetadataSignedUrl as C, type ApiMetadataUpload as D, type ApiOrder as E, type ApiOrderConsideration as F, type ApiOrderOffer as G, type ApiOrderPrice as H, type ApiOrderTokenMeta as I, type ApiOrderTxHash as J, type ApiOrdersQuery as K, type ApiPointEvent as L, type ApiPortalKey as M, type ApiPortalKeyCreated as N, type ApiPortalMe as O, type ApiPublicRemix as P, type ApiRemixOffer as Q, type ApiRemixOfferPrice as R, type ServiceDefinition as S, type ApiRemixOffersQuery as T, type ApiResponse as U, type ApiRewardsBadge as V, type ApiRewardsBatchEntry as W, type ApiRewardsConfig as X, type ApiRewardsLeaderboardEntry as Y, type ApiRewardsLevel as Z, type ApiSearchCollectionResult as _, type ServiceCapability as a, type PopEventType as a$, type ApiSearchResult as a0, type ApiSearchTokenResult as a1, type ApiToken as a2, type ApiTokenBalance as a3, type ApiTokenMetadata as a4, type ApiUsageDay as a5, type ApiUserRewards as a6, type ApiUserWallet as a7, type ApiWalletActivity as a8, type ApiWebhookCreated as a9, type EnforcementDeclaration as aA, type FactoryFamilyServiceId as aB, type FeeConfig as aC, FeeConfigSchema as aD, type FulfillOrderIntentParams as aE, type IPType as aF, type IntentCall as aG, type IntentStatus as aH, type IntentType as aI, type IpAttribute as aJ, type IpNftMetadata as aK, type MakeOfferIntentParams as aL, MedialaneApiError as aM, type MedialaneConfig as aN, type MedialaneErrorCode as aO, type MintMembershipsParams as aP, type MintTicketsParams as aQ, OPEN_LICENSES as aR, type OfferItem as aS, type OpenLicense as aT, type Order as aU, type OrderDetails as aV, type OrderParameters as aW, type OrderStatus as aX, type PlaceSponsorshipBidIntentParams as aY, type PopBatchEligibilityItem as aZ, type PopClaimStatus as a_, type ApiWebhookEndpoint as aa, type AutoRemixOfferParams as ab, type CancelOrderIntentParams as ac, type ChainFilter as ad, type ClaimConditions as ae, type CollectionSort as af, type CollectionTokensSort as ag, type ConfirmRemixOfferParams as ah, type ConfirmSelfRemixParams as ai, type ConsiderationItem as aj, type CreateCheckoutIntentParams as ak, type CreateCollectionIntentParams as al, type CreateCounterOfferIntentParams as am, type CreateDropParams as an, type CreateListingIntentParams as ao, type CreateMembershipParams as ap, type CreateMintIntentParams as aq, type CreatePopCollectionParams as ar, type CreateRemixOfferParams as as, type CreateSponsorshipOfferIntentParams as at, type CreateSponsorshipOfferParams as au, type CreateSponsorshipProposalIntentParams as av, type CreateTicketParams as aw, type CreateTierIntentParams as ax, type CreateWebhookParams as ay, type DropMintStatus as az, type AcceptSponsorshipProposalIntentParams as b, type ProposeSponsorshipParams as b0, type RejectSponsorshipProposalIntentParams as b1, type RemixOfferStatus as b2, type ResolvedConfig as b3, type ResolvedFeeConfig as b4, type RetractSponsorshipBidIntentParams as b5, type RetryOptions as b6, type ServiceEventDeclaration as b7, type SetSponsorshipOfferOpenIntentParams as b8, type SortOrder as b9, type TenantPlan as ba, type TierServiceId as bb, type TxResult as bc, type WebhookEventType as bd, type WebhookStatus as be, type WithdrawSponsorshipProposalIntentParams as bf, resolveConfig as bg, resolveFeeConfig as bh, 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 ApiCoinsQuery as n, type ApiCollection as o, type ApiCollectionClaim as p, type ApiCollectionProfile as q, type ApiCollectionSlugClaim as r, type ApiCollectionsQuery as s, type ApiComment as t, type ApiCounterOffersQuery as u, type ApiCreatorListResult as v, type ApiCreatorProfile as w, type ApiIntent as x, type ApiIntentCreated as y, type ApiKeyStatus as z };
|
|
@@ -12,16 +12,19 @@ declare const FeeConfigSchema: z.ZodObject<{
|
|
|
12
12
|
fundAddress: z.ZodOptional<z.ZodString>;
|
|
13
13
|
marketplaceBps: z.ZodDefault<z.ZodNumber>;
|
|
14
14
|
launchpadBps: z.ZodDefault<z.ZodNumber>;
|
|
15
|
+
sponsorshipBps: z.ZodDefault<z.ZodNumber>;
|
|
15
16
|
}, "strip", z.ZodTypeAny, {
|
|
16
17
|
enabled: boolean;
|
|
17
18
|
marketplaceBps: number;
|
|
18
19
|
launchpadBps: number;
|
|
20
|
+
sponsorshipBps: number;
|
|
19
21
|
fundAddress?: string | undefined;
|
|
20
22
|
}, {
|
|
21
23
|
enabled?: boolean | undefined;
|
|
22
24
|
fundAddress?: string | undefined;
|
|
23
25
|
marketplaceBps?: number | undefined;
|
|
24
26
|
launchpadBps?: number | undefined;
|
|
27
|
+
sponsorshipBps?: number | undefined;
|
|
25
28
|
}>;
|
|
26
29
|
type FeeConfig = z.input<typeof FeeConfigSchema>;
|
|
27
30
|
interface ResolvedFeeConfig {
|
|
@@ -29,6 +32,7 @@ interface ResolvedFeeConfig {
|
|
|
29
32
|
fundAddress: string | undefined;
|
|
30
33
|
marketplaceBps: number;
|
|
31
34
|
launchpadBps: number;
|
|
35
|
+
sponsorshipBps: number;
|
|
32
36
|
}
|
|
33
37
|
declare function resolveFeeConfig(raw: FeeConfig | undefined): ResolvedFeeConfig;
|
|
34
38
|
|
|
@@ -61,16 +65,19 @@ declare const MedialaneConfigSchema: z.ZodObject<{
|
|
|
61
65
|
fundAddress: z.ZodOptional<z.ZodString>;
|
|
62
66
|
marketplaceBps: z.ZodDefault<z.ZodNumber>;
|
|
63
67
|
launchpadBps: z.ZodDefault<z.ZodNumber>;
|
|
68
|
+
sponsorshipBps: z.ZodDefault<z.ZodNumber>;
|
|
64
69
|
}, "strip", z.ZodTypeAny, {
|
|
65
70
|
enabled: boolean;
|
|
66
71
|
marketplaceBps: number;
|
|
67
72
|
launchpadBps: number;
|
|
73
|
+
sponsorshipBps: number;
|
|
68
74
|
fundAddress?: string | undefined;
|
|
69
75
|
}, {
|
|
70
76
|
enabled?: boolean | undefined;
|
|
71
77
|
fundAddress?: string | undefined;
|
|
72
78
|
marketplaceBps?: number | undefined;
|
|
73
79
|
launchpadBps?: number | undefined;
|
|
80
|
+
sponsorshipBps?: number | undefined;
|
|
74
81
|
}>>;
|
|
75
82
|
}, "strip", z.ZodTypeAny, {
|
|
76
83
|
chain: "STARKNET" | "ETHEREUM" | "SOLANA" | "BASE" | "STELLAR" | "BITCOIN";
|
|
@@ -92,6 +99,7 @@ declare const MedialaneConfigSchema: z.ZodObject<{
|
|
|
92
99
|
enabled: boolean;
|
|
93
100
|
marketplaceBps: number;
|
|
94
101
|
launchpadBps: number;
|
|
102
|
+
sponsorshipBps: number;
|
|
95
103
|
fundAddress?: string | undefined;
|
|
96
104
|
} | undefined;
|
|
97
105
|
}, {
|
|
@@ -115,6 +123,7 @@ declare const MedialaneConfigSchema: z.ZodObject<{
|
|
|
115
123
|
fundAddress?: string | undefined;
|
|
116
124
|
marketplaceBps?: number | undefined;
|
|
117
125
|
launchpadBps?: number | undefined;
|
|
126
|
+
sponsorshipBps?: number | undefined;
|
|
118
127
|
} | undefined;
|
|
119
128
|
}>;
|
|
120
129
|
type MedialaneConfig = z.input<typeof MedialaneConfigSchema>;
|
|
@@ -704,6 +713,74 @@ interface CreateTierIntentParams {
|
|
|
704
713
|
royaltyBps: number;
|
|
705
714
|
metadataUri: string;
|
|
706
715
|
}
|
|
716
|
+
interface CreateSponsorshipOfferIntentParams {
|
|
717
|
+
/** The offer author — must currently own (nftContract, tokenId) on-chain. */
|
|
718
|
+
author: string;
|
|
719
|
+
nftContract: string;
|
|
720
|
+
tokenId: string;
|
|
721
|
+
minAmount: string;
|
|
722
|
+
/** Seconds, applied from acceptance (not from offer creation). */
|
|
723
|
+
duration: number;
|
|
724
|
+
paymentToken: string;
|
|
725
|
+
licenseTermsUri: string;
|
|
726
|
+
transferable: boolean;
|
|
727
|
+
/** Basis points, 0–10000. EIP-2981 royalty to the author on license resale. */
|
|
728
|
+
royaltyBps: number;
|
|
729
|
+
/** Restricts acceptance to one sponsor address; omit for open bidding. */
|
|
730
|
+
specificSponsor?: string;
|
|
731
|
+
}
|
|
732
|
+
interface SetSponsorshipOfferOpenIntentParams {
|
|
733
|
+
/** Must be the offer's author. */
|
|
734
|
+
author: string;
|
|
735
|
+
offerId: string;
|
|
736
|
+
open: boolean;
|
|
737
|
+
}
|
|
738
|
+
interface PlaceSponsorshipBidIntentParams {
|
|
739
|
+
/** The sponsor placing the bid — becomes the ERC-20 approve + place_bid caller. */
|
|
740
|
+
sponsor: string;
|
|
741
|
+
offerId: string;
|
|
742
|
+
amount: string;
|
|
743
|
+
paymentToken: string;
|
|
744
|
+
}
|
|
745
|
+
interface RetractSponsorshipBidIntentParams {
|
|
746
|
+
sponsor: string;
|
|
747
|
+
offerId: string;
|
|
748
|
+
}
|
|
749
|
+
interface AcceptSponsorshipBidIntentParams {
|
|
750
|
+
/** Must be the offer's author — re-verified on-chain. */
|
|
751
|
+
author: string;
|
|
752
|
+
offerId: string;
|
|
753
|
+
/** The bidder whose bid is being accepted. */
|
|
754
|
+
sponsor: string;
|
|
755
|
+
}
|
|
756
|
+
interface CreateSponsorshipProposalIntentParams {
|
|
757
|
+
/** The sponsor proposing terms — pays if accepted. */
|
|
758
|
+
proposer: string;
|
|
759
|
+
nftContract: string;
|
|
760
|
+
tokenId: string;
|
|
761
|
+
/** Fixed take-it-or-leave-it amount (not a bid floor). */
|
|
762
|
+
amount: string;
|
|
763
|
+
duration: number;
|
|
764
|
+
/** Unix seconds; the deadline for the asset owner to accept. Omit/0 = no deadline. */
|
|
765
|
+
validUntil?: number;
|
|
766
|
+
paymentToken: string;
|
|
767
|
+
licenseTermsUri: string;
|
|
768
|
+
transferable: boolean;
|
|
769
|
+
royaltyBps: number;
|
|
770
|
+
}
|
|
771
|
+
interface WithdrawSponsorshipProposalIntentParams {
|
|
772
|
+
proposer: string;
|
|
773
|
+
proposalId: string;
|
|
774
|
+
}
|
|
775
|
+
interface AcceptSponsorshipProposalIntentParams {
|
|
776
|
+
/** Must currently own the asset — re-verified on-chain (binds to the asset, not a person). */
|
|
777
|
+
owner: string;
|
|
778
|
+
proposalId: string;
|
|
779
|
+
}
|
|
780
|
+
interface RejectSponsorshipProposalIntentParams {
|
|
781
|
+
owner: string;
|
|
782
|
+
proposalId: string;
|
|
783
|
+
}
|
|
707
784
|
interface CreateCounterOfferIntentParams {
|
|
708
785
|
/** Wallet address of the NFT owner making the counter-offer. */
|
|
709
786
|
sellerAddress: string;
|
|
@@ -1112,6 +1189,15 @@ declare class ApiClient {
|
|
|
1112
1189
|
createMintIntent(params: CreateMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1113
1190
|
createCollectionIntent(params: CreateCollectionIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1114
1191
|
createTierIntent(params: CreateTierIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1192
|
+
createSponsorshipOfferIntent(params: CreateSponsorshipOfferIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1193
|
+
setSponsorshipOfferOpenIntent(params: SetSponsorshipOfferOpenIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1194
|
+
placeSponsorshipBidIntent(params: PlaceSponsorshipBidIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1195
|
+
retractSponsorshipBidIntent(params: RetractSponsorshipBidIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1196
|
+
acceptSponsorshipBidIntent(params: AcceptSponsorshipBidIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1197
|
+
createSponsorshipProposalIntent(params: CreateSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1198
|
+
withdrawSponsorshipProposalIntent(params: WithdrawSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1199
|
+
acceptSponsorshipProposalIntent(params: AcceptSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1200
|
+
rejectSponsorshipProposalIntent(params: RejectSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1115
1201
|
/**
|
|
1116
1202
|
* Create a counter-offer intent. The seller proposes a new price in response
|
|
1117
1203
|
* to a buyer's active bid. clerkToken is optional — the endpoint authenticates
|
|
@@ -1461,4 +1547,4 @@ interface ProposeSponsorshipParams {
|
|
|
1461
1547
|
royaltyBps: bigint | string;
|
|
1462
1548
|
}
|
|
1463
1549
|
|
|
1464
|
-
export { type
|
|
1550
|
+
export { type ApiSearchCreatorResult as $, type AcceptSponsorshipBidIntentParams as A, type ApiMeta as B, type ApiMetadataSignedUrl as C, type ApiMetadataUpload as D, type ApiOrder as E, type ApiOrderConsideration as F, type ApiOrderOffer as G, type ApiOrderPrice as H, type ApiOrderTokenMeta as I, type ApiOrderTxHash as J, type ApiOrdersQuery as K, type ApiPointEvent as L, type ApiPortalKey as M, type ApiPortalKeyCreated as N, type ApiPortalMe as O, type ApiPublicRemix as P, type ApiRemixOffer as Q, type ApiRemixOfferPrice as R, type ServiceDefinition as S, type ApiRemixOffersQuery as T, type ApiResponse as U, type ApiRewardsBadge as V, type ApiRewardsBatchEntry as W, type ApiRewardsConfig as X, type ApiRewardsLeaderboardEntry as Y, type ApiRewardsLevel as Z, type ApiSearchCollectionResult as _, type ServiceCapability as a, type PopEventType as a$, type ApiSearchResult as a0, type ApiSearchTokenResult as a1, type ApiToken as a2, type ApiTokenBalance as a3, type ApiTokenMetadata as a4, type ApiUsageDay as a5, type ApiUserRewards as a6, type ApiUserWallet as a7, type ApiWalletActivity as a8, type ApiWebhookCreated as a9, type EnforcementDeclaration as aA, type FactoryFamilyServiceId as aB, type FeeConfig as aC, FeeConfigSchema as aD, type FulfillOrderIntentParams as aE, type IPType as aF, type IntentCall as aG, type IntentStatus as aH, type IntentType as aI, type IpAttribute as aJ, type IpNftMetadata as aK, type MakeOfferIntentParams as aL, MedialaneApiError as aM, type MedialaneConfig as aN, type MedialaneErrorCode as aO, type MintMembershipsParams as aP, type MintTicketsParams as aQ, OPEN_LICENSES as aR, type OfferItem as aS, type OpenLicense as aT, type Order as aU, type OrderDetails as aV, type OrderParameters as aW, type OrderStatus as aX, type PlaceSponsorshipBidIntentParams as aY, type PopBatchEligibilityItem as aZ, type PopClaimStatus as a_, type ApiWebhookEndpoint as aa, type AutoRemixOfferParams as ab, type CancelOrderIntentParams as ac, type ChainFilter as ad, type ClaimConditions as ae, type CollectionSort as af, type CollectionTokensSort as ag, type ConfirmRemixOfferParams as ah, type ConfirmSelfRemixParams as ai, type ConsiderationItem as aj, type CreateCheckoutIntentParams as ak, type CreateCollectionIntentParams as al, type CreateCounterOfferIntentParams as am, type CreateDropParams as an, type CreateListingIntentParams as ao, type CreateMembershipParams as ap, type CreateMintIntentParams as aq, type CreatePopCollectionParams as ar, type CreateRemixOfferParams as as, type CreateSponsorshipOfferIntentParams as at, type CreateSponsorshipOfferParams as au, type CreateSponsorshipProposalIntentParams as av, type CreateTicketParams as aw, type CreateTierIntentParams as ax, type CreateWebhookParams as ay, type DropMintStatus as az, type AcceptSponsorshipProposalIntentParams as b, type ProposeSponsorshipParams as b0, type RejectSponsorshipProposalIntentParams as b1, type RemixOfferStatus as b2, type ResolvedConfig as b3, type ResolvedFeeConfig as b4, type RetractSponsorshipBidIntentParams as b5, type RetryOptions as b6, type ServiceEventDeclaration as b7, type SetSponsorshipOfferOpenIntentParams as b8, type SortOrder as b9, type TenantPlan as ba, type TierServiceId as bb, type TxResult as bc, type WebhookEventType as bd, type WebhookStatus as be, type WithdrawSponsorshipProposalIntentParams as bf, resolveConfig as bg, resolveFeeConfig as bh, 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 ApiCoinsQuery as n, type ApiCollection as o, type ApiCollectionClaim as p, type ApiCollectionProfile as q, type ApiCollectionSlugClaim as r, type ApiCollectionsQuery as s, type ApiComment as t, type ApiCounterOffersQuery as u, type ApiCreatorListResult as v, type ApiCreatorProfile as w, type ApiIntent as x, type ApiIntentCreated as y, type ApiKeyStatus as z };
|
package/dist/starknet/index.cjs
CHANGED
|
@@ -74,7 +74,8 @@ var FeeConfigSchema = zod.z.object({
|
|
|
74
74
|
enabled: zod.z.boolean().default(true),
|
|
75
75
|
fundAddress: zod.z.string().min(1).optional(),
|
|
76
76
|
marketplaceBps: zod.z.number().int().min(0).max(1e4).default(100),
|
|
77
|
-
launchpadBps: zod.z.number().int().min(0).max(1e4).default(100)
|
|
77
|
+
launchpadBps: zod.z.number().int().min(0).max(1e4).default(100),
|
|
78
|
+
sponsorshipBps: zod.z.number().int().min(0).max(1e4).default(100)
|
|
78
79
|
});
|
|
79
80
|
function resolveFeeConfig(raw) {
|
|
80
81
|
const p = FeeConfigSchema.parse(raw ?? {});
|
|
@@ -82,7 +83,8 @@ function resolveFeeConfig(raw) {
|
|
|
82
83
|
enabled: p.enabled,
|
|
83
84
|
fundAddress: p.fundAddress,
|
|
84
85
|
marketplaceBps: p.marketplaceBps,
|
|
85
|
-
launchpadBps: p.launchpadBps
|
|
86
|
+
launchpadBps: p.launchpadBps,
|
|
87
|
+
sponsorshipBps: p.sponsorshipBps
|
|
86
88
|
};
|
|
87
89
|
}
|
|
88
90
|
|
|
@@ -457,6 +459,33 @@ var ApiClient = class {
|
|
|
457
459
|
createTierIntent(params) {
|
|
458
460
|
return this.post("/v1/intents/create-tier", params);
|
|
459
461
|
}
|
|
462
|
+
createSponsorshipOfferIntent(params) {
|
|
463
|
+
return this.post("/v1/intents/sponsorship-offer", params);
|
|
464
|
+
}
|
|
465
|
+
setSponsorshipOfferOpenIntent(params) {
|
|
466
|
+
return this.post("/v1/intents/sponsorship-offer-open", params);
|
|
467
|
+
}
|
|
468
|
+
placeSponsorshipBidIntent(params) {
|
|
469
|
+
return this.post("/v1/intents/sponsorship-bid", params);
|
|
470
|
+
}
|
|
471
|
+
retractSponsorshipBidIntent(params) {
|
|
472
|
+
return this.post("/v1/intents/sponsorship-bid-retract", params);
|
|
473
|
+
}
|
|
474
|
+
acceptSponsorshipBidIntent(params) {
|
|
475
|
+
return this.post("/v1/intents/sponsorship-bid-accept", params);
|
|
476
|
+
}
|
|
477
|
+
createSponsorshipProposalIntent(params) {
|
|
478
|
+
return this.post("/v1/intents/sponsorship-proposal", params);
|
|
479
|
+
}
|
|
480
|
+
withdrawSponsorshipProposalIntent(params) {
|
|
481
|
+
return this.post("/v1/intents/sponsorship-proposal-withdraw", params);
|
|
482
|
+
}
|
|
483
|
+
acceptSponsorshipProposalIntent(params) {
|
|
484
|
+
return this.post("/v1/intents/sponsorship-proposal-accept", params);
|
|
485
|
+
}
|
|
486
|
+
rejectSponsorshipProposalIntent(params) {
|
|
487
|
+
return this.post("/v1/intents/sponsorship-proposal-reject", params);
|
|
488
|
+
}
|
|
460
489
|
/**
|
|
461
490
|
* Create a counter-offer intent. The seller proposes a new price in response
|
|
462
491
|
* to a buyer's active bid. clerkToken is optional — the endpoint authenticates
|
|
@@ -10131,7 +10160,7 @@ var PopService = class {
|
|
|
10131
10160
|
};
|
|
10132
10161
|
function buildFeeCall(p, cfg) {
|
|
10133
10162
|
if (!cfg.enabled || !cfg.fundAddress) return null;
|
|
10134
|
-
const bps = p.surface === "marketplace" ? cfg.marketplaceBps : cfg.launchpadBps;
|
|
10163
|
+
const bps = p.surface === "marketplace" ? cfg.marketplaceBps : p.surface === "launchpad" ? cfg.launchpadBps : cfg.sponsorshipBps;
|
|
10135
10164
|
if (bps <= 0) return null;
|
|
10136
10165
|
const fee = p.grossAmount * BigInt(bps) / 10000n;
|
|
10137
10166
|
if (fee <= 0n) return null;
|