@medialane/sdk 0.24.1 → 0.25.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 CHANGED
@@ -5812,16 +5812,18 @@ var ApiClient = class {
5812
5812
  }
5813
5813
  async upsertMyWallet(clerkToken, options = {}) {
5814
5814
  const url = `${this.baseUrl.replace(/\/$/, "")}/v1/users/me`;
5815
+ const body = {
5816
+ walletType: options.walletType ?? "UNKNOWN",
5817
+ appSource: options.appSource ?? "MEDIALANE_SDK"
5818
+ };
5819
+ if (options.chain) body.chain = options.chain;
5815
5820
  const res = await fetch(url, {
5816
5821
  method: "POST",
5817
5822
  headers: {
5818
5823
  "Content-Type": "application/json",
5819
5824
  "Authorization": `Bearer ${clerkToken}`
5820
5825
  },
5821
- body: JSON.stringify({
5822
- walletType: options.walletType ?? "UNKNOWN",
5823
- appSource: options.appSource ?? "MEDIALANE_SDK"
5824
- })
5826
+ body: JSON.stringify(body)
5825
5827
  });
5826
5828
  return this.checkResponse(res);
5827
5829
  }