@medialane/sdk 0.76.0 → 0.77.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 +12 -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 +12 -0
- package/dist/index.js.map +1 -1
- package/dist/{services-BhOmAkmL.d.ts → services-C5lxQjem.d.ts} +9 -0
- package/dist/{services-CaQGkLlb.d.cts → services-DgIaaJbX.d.cts} +9 -0
- package/dist/starknet/index.cjs +12 -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 +12 -0
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -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");
|