@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
package/dist/index.cjs
CHANGED
|
@@ -71,7 +71,8 @@ var FeeConfigSchema = zod.z.object({
|
|
|
71
71
|
enabled: zod.z.boolean().default(true),
|
|
72
72
|
fundAddress: zod.z.string().min(1).optional(),
|
|
73
73
|
marketplaceBps: zod.z.number().int().min(0).max(1e4).default(100),
|
|
74
|
-
launchpadBps: zod.z.number().int().min(0).max(1e4).default(100)
|
|
74
|
+
launchpadBps: zod.z.number().int().min(0).max(1e4).default(100),
|
|
75
|
+
sponsorshipBps: zod.z.number().int().min(0).max(1e4).default(100)
|
|
75
76
|
});
|
|
76
77
|
function resolveFeeConfig(raw) {
|
|
77
78
|
const p = FeeConfigSchema.parse(raw ?? {});
|
|
@@ -79,7 +80,8 @@ function resolveFeeConfig(raw) {
|
|
|
79
80
|
enabled: p.enabled,
|
|
80
81
|
fundAddress: p.fundAddress,
|
|
81
82
|
marketplaceBps: p.marketplaceBps,
|
|
82
|
-
launchpadBps: p.launchpadBps
|
|
83
|
+
launchpadBps: p.launchpadBps,
|
|
84
|
+
sponsorshipBps: p.sponsorshipBps
|
|
83
85
|
};
|
|
84
86
|
}
|
|
85
87
|
|
|
@@ -466,6 +468,33 @@ var ApiClient = class {
|
|
|
466
468
|
createTierIntent(params) {
|
|
467
469
|
return this.post("/v1/intents/create-tier", params);
|
|
468
470
|
}
|
|
471
|
+
createSponsorshipOfferIntent(params) {
|
|
472
|
+
return this.post("/v1/intents/sponsorship-offer", params);
|
|
473
|
+
}
|
|
474
|
+
setSponsorshipOfferOpenIntent(params) {
|
|
475
|
+
return this.post("/v1/intents/sponsorship-offer-open", params);
|
|
476
|
+
}
|
|
477
|
+
placeSponsorshipBidIntent(params) {
|
|
478
|
+
return this.post("/v1/intents/sponsorship-bid", params);
|
|
479
|
+
}
|
|
480
|
+
retractSponsorshipBidIntent(params) {
|
|
481
|
+
return this.post("/v1/intents/sponsorship-bid-retract", params);
|
|
482
|
+
}
|
|
483
|
+
acceptSponsorshipBidIntent(params) {
|
|
484
|
+
return this.post("/v1/intents/sponsorship-bid-accept", params);
|
|
485
|
+
}
|
|
486
|
+
createSponsorshipProposalIntent(params) {
|
|
487
|
+
return this.post("/v1/intents/sponsorship-proposal", params);
|
|
488
|
+
}
|
|
489
|
+
withdrawSponsorshipProposalIntent(params) {
|
|
490
|
+
return this.post("/v1/intents/sponsorship-proposal-withdraw", params);
|
|
491
|
+
}
|
|
492
|
+
acceptSponsorshipProposalIntent(params) {
|
|
493
|
+
return this.post("/v1/intents/sponsorship-proposal-accept", params);
|
|
494
|
+
}
|
|
495
|
+
rejectSponsorshipProposalIntent(params) {
|
|
496
|
+
return this.post("/v1/intents/sponsorship-proposal-reject", params);
|
|
497
|
+
}
|
|
469
498
|
/**
|
|
470
499
|
* Create a counter-offer intent. The seller proposes a new price in response
|
|
471
500
|
* to a buyer's active bid. clerkToken is optional — the endpoint authenticates
|