@medialane/sdk 0.14.0 → 0.14.1
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 +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4651,14 +4651,18 @@ var ApiClient = class {
|
|
|
4651
4651
|
* Call after onboarding when ChipiPay confirms the wallet address.
|
|
4652
4652
|
* Requires Clerk JWT; no tenant API key needed.
|
|
4653
4653
|
*/
|
|
4654
|
-
async upsertMyWallet(clerkToken) {
|
|
4654
|
+
async upsertMyWallet(clerkToken, options = {}) {
|
|
4655
4655
|
const url = `${this.baseUrl.replace(/\/$/, "")}/v1/users/me`;
|
|
4656
4656
|
const res = await fetch(url, {
|
|
4657
4657
|
method: "POST",
|
|
4658
4658
|
headers: {
|
|
4659
4659
|
"Content-Type": "application/json",
|
|
4660
4660
|
"Authorization": `Bearer ${clerkToken}`
|
|
4661
|
-
}
|
|
4661
|
+
},
|
|
4662
|
+
body: JSON.stringify({
|
|
4663
|
+
walletType: options.walletType ?? "UNKNOWN",
|
|
4664
|
+
appSource: options.appSource ?? "MEDIALANE_SDK"
|
|
4665
|
+
})
|
|
4662
4666
|
});
|
|
4663
4667
|
return this.checkResponse(res);
|
|
4664
4668
|
}
|