@medialane/sdk 0.14.1 → 0.14.2

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.d.cts CHANGED
@@ -1184,6 +1184,25 @@ declare class ApiClient {
1184
1184
  * Call after onboarding when ChipiPay confirms the wallet address.
1185
1185
  * Requires Clerk JWT; no tenant API key needed.
1186
1186
  */
1187
+ /**
1188
+ * Frictionless wallet registration. Tenant API key only (no Clerk JWT required).
1189
+ * Idempotent — backend's ensureAccountForWallet upserts and upgrades existing
1190
+ * UNKNOWN walletType rows when a more specific value is supplied.
1191
+ */
1192
+ registerUser(params: {
1193
+ walletAddress: string;
1194
+ walletType?: ApiWalletType;
1195
+ appSource?: ApiAppSource;
1196
+ chain?: "STARKNET" | "ETHEREUM" | "SOLANA" | "BITCOIN";
1197
+ }): Promise<{
1198
+ accountId: string;
1199
+ publicId: string;
1200
+ walletAddress: string;
1201
+ chain: string;
1202
+ walletType: ApiWalletType;
1203
+ appSource: ApiAppSource;
1204
+ createdAt: string;
1205
+ }>;
1187
1206
  upsertMyWallet(clerkToken: string, options?: {
1188
1207
  walletType?: ApiWalletType;
1189
1208
  appSource?: ApiAppSource;
package/dist/index.d.ts CHANGED
@@ -1184,6 +1184,25 @@ declare class ApiClient {
1184
1184
  * Call after onboarding when ChipiPay confirms the wallet address.
1185
1185
  * Requires Clerk JWT; no tenant API key needed.
1186
1186
  */
1187
+ /**
1188
+ * Frictionless wallet registration. Tenant API key only (no Clerk JWT required).
1189
+ * Idempotent — backend's ensureAccountForWallet upserts and upgrades existing
1190
+ * UNKNOWN walletType rows when a more specific value is supplied.
1191
+ */
1192
+ registerUser(params: {
1193
+ walletAddress: string;
1194
+ walletType?: ApiWalletType;
1195
+ appSource?: ApiAppSource;
1196
+ chain?: "STARKNET" | "ETHEREUM" | "SOLANA" | "BITCOIN";
1197
+ }): Promise<{
1198
+ accountId: string;
1199
+ publicId: string;
1200
+ walletAddress: string;
1201
+ chain: string;
1202
+ walletType: ApiWalletType;
1203
+ appSource: ApiAppSource;
1204
+ createdAt: string;
1205
+ }>;
1187
1206
  upsertMyWallet(clerkToken: string, options?: {
1188
1207
  walletType?: ApiWalletType;
1189
1208
  appSource?: ApiAppSource;
package/dist/index.js CHANGED
@@ -4649,6 +4649,14 @@ var ApiClient = class {
4649
4649
  * Call after onboarding when ChipiPay confirms the wallet address.
4650
4650
  * Requires Clerk JWT; no tenant API key needed.
4651
4651
  */
4652
+ /**
4653
+ * Frictionless wallet registration. Tenant API key only (no Clerk JWT required).
4654
+ * Idempotent — backend's ensureAccountForWallet upserts and upgrades existing
4655
+ * UNKNOWN walletType rows when a more specific value is supplied.
4656
+ */
4657
+ async registerUser(params) {
4658
+ return this.post("/v1/users/register", params);
4659
+ }
4652
4660
  async upsertMyWallet(clerkToken, options = {}) {
4653
4661
  const url = `${this.baseUrl.replace(/\/$/, "")}/v1/users/me`;
4654
4662
  const res = await fetch(url, {