@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
|
@@ -1245,6 +1245,15 @@ declare class ApiClient {
|
|
|
1245
1245
|
getCoin(contract: string): Promise<{
|
|
1246
1246
|
data: ApiCoin;
|
|
1247
1247
|
}>;
|
|
1248
|
+
/**
|
|
1249
|
+
* Creator-authed coin profile edit (image/description). Backend authorizes
|
|
1250
|
+
* via `coin.creator` (trustless — from the factory event), not a body param;
|
|
1251
|
+
* `siwsToken` is the caller's SIWS/Clerk bearer token for `identityAuth`.
|
|
1252
|
+
*/
|
|
1253
|
+
updateCoinProfile(contract: string, data: {
|
|
1254
|
+
image?: string;
|
|
1255
|
+
description?: string;
|
|
1256
|
+
}, siwsToken: string): Promise<ApiResponse<ApiCoin>>;
|
|
1248
1257
|
getDropCollections(opts?: {
|
|
1249
1258
|
page?: number;
|
|
1250
1259
|
limit?: number;
|
|
@@ -1245,6 +1245,15 @@ declare class ApiClient {
|
|
|
1245
1245
|
getCoin(contract: string): Promise<{
|
|
1246
1246
|
data: ApiCoin;
|
|
1247
1247
|
}>;
|
|
1248
|
+
/**
|
|
1249
|
+
* Creator-authed coin profile edit (image/description). Backend authorizes
|
|
1250
|
+
* via `coin.creator` (trustless — from the factory event), not a body param;
|
|
1251
|
+
* `siwsToken` is the caller's SIWS/Clerk bearer token for `identityAuth`.
|
|
1252
|
+
*/
|
|
1253
|
+
updateCoinProfile(contract: string, data: {
|
|
1254
|
+
image?: string;
|
|
1255
|
+
description?: string;
|
|
1256
|
+
}, siwsToken: string): Promise<ApiResponse<ApiCoin>>;
|
|
1248
1257
|
getDropCollections(opts?: {
|
|
1249
1258
|
page?: number;
|
|
1250
1259
|
limit?: number;
|
package/dist/starknet/index.cjs
CHANGED
|
@@ -811,6 +811,18 @@ var ApiClient = class {
|
|
|
811
811
|
getCoin(contract) {
|
|
812
812
|
return this.get(`/v1/coins/${this.addr(contract)}`);
|
|
813
813
|
}
|
|
814
|
+
/**
|
|
815
|
+
* Creator-authed coin profile edit (image/description). Backend authorizes
|
|
816
|
+
* via `coin.creator` (trustless — from the factory event), not a body param;
|
|
817
|
+
* `siwsToken` is the caller's SIWS/Clerk bearer token for `identityAuth`.
|
|
818
|
+
*/
|
|
819
|
+
updateCoinProfile(contract, data, siwsToken) {
|
|
820
|
+
return this.request(`/v1/coins/${this.addr(contract)}`, {
|
|
821
|
+
method: "PATCH",
|
|
822
|
+
body: JSON.stringify(data),
|
|
823
|
+
headers: this.bearer(siwsToken)
|
|
824
|
+
});
|
|
825
|
+
}
|
|
814
826
|
// ─── Collection Drop ────────────────────────────────────────────────────────
|
|
815
827
|
getDropCollections(opts = {}) {
|
|
816
828
|
return this.getCollections(opts.page ?? 1, opts.limit ?? 20, void 0, opts.sort, "COLLECTION_DROP");
|