@floe-ai/sdk 0.1.0-dev.6 → 0.1.0-dev.8

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.
@@ -18529,24 +18529,24 @@ class ec extends Yd {
18529
18529
  async checkEndUserStatus() {
18530
18530
  var t, r, i, o, s;
18531
18531
  try {
18532
- const c = `${this.config.apiUrl || "http://localhost:3001"}/end-users/check-status`, u = {
18532
+ const a = `${this.config.apiUrl}/end-users/check-status`, c = {
18533
18533
  clientKey: this.config.clientKey,
18534
18534
  origin: window.location.origin
18535
18535
  };
18536
- (t = this.config.userInfo) != null && t.externalId && (u.externalId = this.config.userInfo.externalId), (r = this.config.userInfo) != null && r.email && (u.email = this.config.userInfo.email), this.config.debug && console.log("[OnboardingSDK] Checking EndUser status...", {
18537
- externalId: u.externalId ? "***" : void 0,
18538
- email: u.email ? "***" : void 0
18536
+ (t = this.config.userInfo) != null && t.externalId && (c.externalId = this.config.userInfo.externalId), (r = this.config.userInfo) != null && r.email && (c.email = this.config.userInfo.email), this.config.debug && console.log("[OnboardingSDK] Checking EndUser status...", {
18537
+ externalId: c.externalId ? "***" : void 0,
18538
+ email: c.email ? "***" : void 0
18539
18539
  });
18540
- const d = await fetch(c, {
18540
+ const u = await fetch(a, {
18541
18541
  method: "POST",
18542
18542
  headers: { "Content-Type": "application/json" },
18543
- body: JSON.stringify(u)
18543
+ body: JSON.stringify(c)
18544
18544
  });
18545
- if (!d.ok) {
18546
- console.warn(`[OnboardingSDK] EndUser status check failed: ${d.status}`);
18545
+ if (!u.ok) {
18546
+ console.warn(`[OnboardingSDK] EndUser status check failed: ${u.status}`);
18547
18547
  return;
18548
18548
  }
18549
- this.endUserStatus = await d.json(), console.log(`[OnboardingSDK] EndUser status: found=${(i = this.endUserStatus) == null ? void 0 : i.found}, isNewUser=${(o = this.endUserStatus) == null ? void 0 : o.isNewUser}, hasPreferences=${(s = this.endUserStatus) == null ? void 0 : s.hasPreferences}`);
18549
+ this.endUserStatus = await u.json(), console.log(`[OnboardingSDK] EndUser status: found=${(i = this.endUserStatus) == null ? void 0 : i.found}, isNewUser=${(o = this.endUserStatus) == null ? void 0 : o.isNewUser}, hasPreferences=${(s = this.endUserStatus) == null ? void 0 : s.hasPreferences}`);
18550
18550
  } catch (a) {
18551
18551
  console.warn("[OnboardingSDK] Error checking EndUser status:", a);
18552
18552
  }
@@ -18597,7 +18597,9 @@ typeof window < "u" && (window.OnboardingSDK = ec);
18597
18597
  function oh(n) {
18598
18598
  return {
18599
18599
  clientKey: n.clientKey,
18600
- apiUrl: n.apiUrl,
18600
+ // Only include apiUrl if explicitly provided - this allows the SDK constructor
18601
+ // to use its build-time default (__FLOE_API_URL__) when not overridden
18602
+ ...n.apiUrl !== void 0 && { apiUrl: n.apiUrl },
18601
18603
  enableVideo: !1,
18602
18604
  // Video not used in current implementation
18603
18605
  enableAudio: n.enableAudio ?? !0,