@medialane/sdk 0.76.0 → 0.78.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 +16 -4
- 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 +16 -4
- package/dist/index.js.map +1 -1
- package/dist/{services-BhOmAkmL.d.ts → services-L8rbm-gZ.d.ts} +11 -1
- package/dist/{services-CaQGkLlb.d.cts → services-gpLj6m2X.d.cts} +11 -1
- package/dist/starknet/index.cjs +16 -4
- 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 +16 -4
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -576,10 +576,10 @@ var ApiClient = class {
|
|
|
576
576
|
{ method: "PATCH", body: JSON.stringify(data), headers: this.bearer(clerkToken) }
|
|
577
577
|
);
|
|
578
578
|
}
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
{
|
|
579
|
+
/** No signature required — wallet activity is public on-chain data, read like any other /v1 GET. */
|
|
580
|
+
getWalletActivity(address, chain = "STARKNET") {
|
|
581
|
+
return this.get(
|
|
582
|
+
`/v1/wallet-activity?address=${this.addr(address)}&chain=${chain}`
|
|
583
583
|
);
|
|
584
584
|
}
|
|
585
585
|
getGatedContent(contractAddress, clerkToken) {
|
|
@@ -820,6 +820,18 @@ var ApiClient = class {
|
|
|
820
820
|
getCoin(contract) {
|
|
821
821
|
return this.get(`/v1/coins/${this.addr(contract)}`);
|
|
822
822
|
}
|
|
823
|
+
/**
|
|
824
|
+
* Creator-authed coin profile edit (image/description). Backend authorizes
|
|
825
|
+
* via `coin.creator` (trustless — from the factory event), not a body param;
|
|
826
|
+
* `siwsToken` is the caller's SIWS/Clerk bearer token for `identityAuth`.
|
|
827
|
+
*/
|
|
828
|
+
updateCoinProfile(contract, data, siwsToken) {
|
|
829
|
+
return this.request(`/v1/coins/${this.addr(contract)}`, {
|
|
830
|
+
method: "PATCH",
|
|
831
|
+
body: JSON.stringify(data),
|
|
832
|
+
headers: this.bearer(siwsToken)
|
|
833
|
+
});
|
|
834
|
+
}
|
|
823
835
|
// ─── Collection Drop ────────────────────────────────────────────────────────
|
|
824
836
|
getDropCollections(opts = {}) {
|
|
825
837
|
return this.getCollections(opts.page ?? 1, opts.limit ?? 20, void 0, opts.sort, "COLLECTION_DROP");
|