@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.
@@ -1123,7 +1123,8 @@ declare class ApiClient {
1123
1123
  * Update collection profile. Requires Clerk JWT for ownership check.
1124
1124
  */
1125
1125
  updateCollectionProfile(contractAddress: string, data: Partial<Omit<ApiCollectionProfile, "contractAddress" | "chain" | "updatedBy" | "updatedAt">>, clerkToken: string): Promise<ApiCollectionProfile>;
1126
- getWalletActivity(address: string, siwsToken: string, chain?: "STARKNET"): Promise<ApiResponse<ApiWalletActivity[]>>;
1126
+ /** No signature required — wallet activity is public on-chain data, read like any other /v1 GET. */
1127
+ getWalletActivity(address: string, chain?: "STARKNET"): Promise<ApiResponse<ApiWalletActivity[]>>;
1127
1128
  getGatedContent(contractAddress: string, clerkToken: string): Promise<{
1128
1129
  title: string;
1129
1130
  url: string;
@@ -1245,6 +1246,15 @@ declare class ApiClient {
1245
1246
  getCoin(contract: string): Promise<{
1246
1247
  data: ApiCoin;
1247
1248
  }>;
1249
+ /**
1250
+ * Creator-authed coin profile edit (image/description). Backend authorizes
1251
+ * via `coin.creator` (trustless — from the factory event), not a body param;
1252
+ * `siwsToken` is the caller's SIWS/Clerk bearer token for `identityAuth`.
1253
+ */
1254
+ updateCoinProfile(contract: string, data: {
1255
+ image?: string;
1256
+ description?: string;
1257
+ }, siwsToken: string): Promise<ApiResponse<ApiCoin>>;
1248
1258
  getDropCollections(opts?: {
1249
1259
  page?: number;
1250
1260
  limit?: number;
@@ -1123,7 +1123,8 @@ declare class ApiClient {
1123
1123
  * Update collection profile. Requires Clerk JWT for ownership check.
1124
1124
  */
1125
1125
  updateCollectionProfile(contractAddress: string, data: Partial<Omit<ApiCollectionProfile, "contractAddress" | "chain" | "updatedBy" | "updatedAt">>, clerkToken: string): Promise<ApiCollectionProfile>;
1126
- getWalletActivity(address: string, siwsToken: string, chain?: "STARKNET"): Promise<ApiResponse<ApiWalletActivity[]>>;
1126
+ /** No signature required — wallet activity is public on-chain data, read like any other /v1 GET. */
1127
+ getWalletActivity(address: string, chain?: "STARKNET"): Promise<ApiResponse<ApiWalletActivity[]>>;
1127
1128
  getGatedContent(contractAddress: string, clerkToken: string): Promise<{
1128
1129
  title: string;
1129
1130
  url: string;
@@ -1245,6 +1246,15 @@ declare class ApiClient {
1245
1246
  getCoin(contract: string): Promise<{
1246
1247
  data: ApiCoin;
1247
1248
  }>;
1249
+ /**
1250
+ * Creator-authed coin profile edit (image/description). Backend authorizes
1251
+ * via `coin.creator` (trustless — from the factory event), not a body param;
1252
+ * `siwsToken` is the caller's SIWS/Clerk bearer token for `identityAuth`.
1253
+ */
1254
+ updateCoinProfile(contract: string, data: {
1255
+ image?: string;
1256
+ description?: string;
1257
+ }, siwsToken: string): Promise<ApiResponse<ApiCoin>>;
1248
1258
  getDropCollections(opts?: {
1249
1259
  page?: number;
1250
1260
  limit?: number;
@@ -567,10 +567,10 @@ var ApiClient = class {
567
567
  { method: "PATCH", body: JSON.stringify(data), headers: this.bearer(clerkToken) }
568
568
  );
569
569
  }
570
- getWalletActivity(address, siwsToken, chain = "STARKNET") {
571
- return this.request(
572
- `/v1/wallet-activity?address=${this.addr(address)}&chain=${chain}`,
573
- { method: "GET", headers: this.bearer(siwsToken) }
570
+ /** No signature required — wallet activity is public on-chain data, read like any other /v1 GET. */
571
+ getWalletActivity(address, chain = "STARKNET") {
572
+ return this.get(
573
+ `/v1/wallet-activity?address=${this.addr(address)}&chain=${chain}`
574
574
  );
575
575
  }
576
576
  getGatedContent(contractAddress, clerkToken) {
@@ -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");