@pagelines/sdk 1.0.864 → 1.0.866

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.
@@ -76,7 +76,7 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
76
76
  runtime?: string | undefined;
77
77
  timezone?: string | undefined;
78
78
  desiredStatus?: "active" | "stopped" | null | undefined;
79
- automationPrimaryChannel?: string | undefined;
79
+ routinePrimaryChannel?: string | undefined;
80
80
  heartbeatEnabled?: boolean | undefined;
81
81
  heartbeatBriefingTime?: string | null | undefined;
82
82
  heartbeatCheckinTime?: string | null | undefined;
@@ -215,7 +215,7 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
215
215
  runtime?: string | undefined;
216
216
  timezone?: string | undefined;
217
217
  desiredStatus?: "active" | "stopped" | null | undefined;
218
- automationPrimaryChannel?: string | undefined;
218
+ routinePrimaryChannel?: string | undefined;
219
219
  heartbeatEnabled?: boolean | undefined;
220
220
  heartbeatBriefingTime?: string | null | undefined;
221
221
  heartbeatCheckinTime?: string | null | undefined;
@@ -5,8 +5,9 @@ type JsonSchema = Record<string, unknown>;
5
5
  * SHOULD reject contracts whose `version` they don't understand.
6
6
  *
7
7
  * v1: initial — schemas keyed by name.
8
+ * v2: prelaunch cleanup removed fleet message-preview fields.
8
9
  */
9
- export declare const CONTRACT_VERSION = "1.0.0";
10
+ export declare const CONTRACT_VERSION = "2.0.0";
10
11
  export interface WireContract {
11
12
  version: string;
12
13
  generatedAt: string;
package/dist/sdk.css CHANGED
@@ -1,2 +1,2 @@
1
- .ring-circular{animation:1s linear infinite rotate}.ring-path{will-change:stroke-dasharray;will-change:stroke-dashoffset;stroke-dasharray:1 200;stroke-dashoffset:0;stroke-linecap:round;animation:2s ease-in-out infinite dash}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1 200;stroke-dashoffset:0}50%{stroke-dasharray:89 200;stroke-dashoffset:-35px}to{stroke-dasharray:89 200;stroke-dashoffset:-124px}}.voice-call-enter-active[data-v-939949a8]{transition:opacity .3s cubic-bezier(.25,1,.33,1)}.voice-call-leave-active[data-v-939949a8]{transition:opacity .2s cubic-bezier(.5,0,.75,0)}.voice-call-enter-active .voice-call-card[data-v-939949a8]{transition:transform .42s cubic-bezier(.25,1,.33,1)}.voice-call-leave-active .voice-call-card[data-v-939949a8]{transition:transform .2s cubic-bezier(.5,0,.75,0)}.voice-call-enter-from[data-v-939949a8],.voice-call-leave-to[data-v-939949a8]{opacity:0}.voice-call-enter-from .voice-call-card[data-v-939949a8]{transform:translateY(32px)}.voice-call-leave-to .voice-call-card[data-v-939949a8]{transform:translateY(12px)}@media (prefers-reduced-motion:reduce){.voice-call-enter-active[data-v-939949a8],.voice-call-leave-active[data-v-939949a8],.voice-call-enter-active .voice-call-card[data-v-939949a8],.voice-call-leave-active .voice-call-card[data-v-939949a8]{transition-duration:1ms}.voice-call-enter-from .voice-call-card[data-v-939949a8],.voice-call-leave-to .voice-call-card[data-v-939949a8]{transform:none}}.nlist-enter-active,.nlist-leave-active,.nlist-move{transition:all .6s cubic-bezier(.68,-.55,.27,1.55)}.nlist-enter-from{opacity:0;transform:translate(-30px)scale(.9)}.nlist-enter-to{opacity:1;transform:translate(0)scale(1)}.nlist-leave-active{position:absolute}.nlist-leave-to{opacity:0;transform:scale(.9)}.widget-container[data-v-96deba7b]{transition:width .4s cubic-bezier(.32,.72,0,1),height .4s cubic-bezier(.32,.72,0,1),border-radius .4s cubic-bezier(.32,.72,0,1),box-shadow .4s cubic-bezier(.32,.72,0,1)}
1
+ .ring-circular{animation:1s linear infinite rotate}.ring-path{will-change:stroke-dasharray;will-change:stroke-dashoffset;stroke-dasharray:1 200;stroke-dashoffset:0;stroke-linecap:round;animation:2s ease-in-out infinite dash}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1 200;stroke-dashoffset:0}50%{stroke-dasharray:89 200;stroke-dashoffset:-35px}to{stroke-dasharray:89 200;stroke-dashoffset:-124px}}.voice-call-enter-active[data-v-0122d7a1]{transition:opacity .3s cubic-bezier(.25,1,.33,1)}.voice-call-leave-active[data-v-0122d7a1]{transition:opacity .2s cubic-bezier(.5,0,.75,0)}.voice-call-enter-active .voice-call-card[data-v-0122d7a1]{transition:transform .42s cubic-bezier(.25,1,.33,1)}.voice-call-leave-active .voice-call-card[data-v-0122d7a1]{transition:transform .2s cubic-bezier(.5,0,.75,0)}.voice-call-enter-from[data-v-0122d7a1],.voice-call-leave-to[data-v-0122d7a1]{opacity:0}.voice-call-enter-from .voice-call-card[data-v-0122d7a1]{transform:translateY(32px)}.voice-call-leave-to .voice-call-card[data-v-0122d7a1]{transform:translateY(12px)}@media (prefers-reduced-motion:reduce){.voice-call-enter-active[data-v-0122d7a1],.voice-call-leave-active[data-v-0122d7a1],.voice-call-enter-active .voice-call-card[data-v-0122d7a1],.voice-call-leave-active .voice-call-card[data-v-0122d7a1]{transition-duration:1ms}.voice-call-enter-from .voice-call-card[data-v-0122d7a1],.voice-call-leave-to .voice-call-card[data-v-0122d7a1]{transform:none}}.nlist-enter-active,.nlist-leave-active,.nlist-move{transition:all .6s cubic-bezier(.68,-.55,.27,1.55)}.nlist-enter-from{opacity:0;transform:translate(-30px)scale(.9)}.nlist-enter-to{opacity:1;transform:translate(0)scale(1)}.nlist-leave-active{position:absolute}.nlist-leave-to{opacity:0;transform:scale(.9)}.widget-container[data-v-96deba7b]{transition:width .4s cubic-bezier(.32,.72,0,1),height .4s cubic-bezier(.32,.72,0,1),border-radius .4s cubic-bezier(.32,.72,0,1),box-shadow .4s cubic-bezier(.32,.72,0,1)}
2
2
  /*$vite$:1*/
@@ -201,7 +201,7 @@ export declare class PageLinesSDK extends SettingsObject<PageLinesSDKSettings> {
201
201
  runtime?: string | undefined;
202
202
  timezone?: string | undefined;
203
203
  desiredStatus?: "active" | "stopped" | null | undefined;
204
- automationPrimaryChannel?: string | undefined;
204
+ routinePrimaryChannel?: string | undefined;
205
205
  heartbeatEnabled?: boolean | undefined;
206
206
  heartbeatBriefingTime?: string | null | undefined;
207
207
  heartbeatCheckinTime?: string | null | undefined;
@@ -433,7 +433,7 @@ export declare class PageLinesSDK extends SettingsObject<PageLinesSDKSettings> {
433
433
  runtime?: string | undefined;
434
434
  timezone?: string | undefined;
435
435
  desiredStatus?: "active" | "stopped" | null | undefined;
436
- automationPrimaryChannel?: string | undefined;
436
+ routinePrimaryChannel?: string | undefined;
437
437
  heartbeatEnabled?: boolean | undefined;
438
438
  heartbeatBriefingTime?: string | null | undefined;
439
439
  heartbeatCheckinTime?: string | null | undefined;
@@ -562,7 +562,7 @@ export declare class PageLinesSDK extends SettingsObject<PageLinesSDKSettings> {
562
562
  runtime?: string | undefined;
563
563
  timezone?: string | undefined;
564
564
  desiredStatus?: "active" | "stopped" | null | undefined;
565
- automationPrimaryChannel?: string | undefined;
565
+ routinePrimaryChannel?: string | undefined;
566
566
  heartbeatEnabled?: boolean | undefined;
567
567
  heartbeatBriefingTime?: string | null | undefined;
568
568
  heartbeatCheckinTime?: string | null | undefined;
package/dist/sdkClient.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./rolldown-runtime.js";
2
- import { PAGELINES_APP_CONFIG as e, SettingsObject as t, cookieUtil as n, createLogger as r, objectId as i, runAuthenticatedChatTurnStream as a, shortId as o, toChatStreamError as s, zChatEvent as c } from "@pagelines/core";
3
- import { computed as l, ref as u, watch as d } from "vue";
2
+ import { PAGELINES_APP_CONFIG as e, SettingsObject as t, cookieUtil as n, createLogger as r, objectId as i, runAuthenticatedChatTurnStream as a, serverTransitionBudgets as o, shortId as s, toChatStreamError as c, zChatEvent as l } from "@pagelines/core";
3
+ import { computed as u, ref as d, watch as f } from "vue";
4
4
  //#region api.ts
5
5
  function resolveApiBase(t, n) {
6
6
  let r = Number(globalThis.process?.env?.PORT) || e.port;
@@ -28,9 +28,9 @@ function createApiFetch(e, t, r) {
28
28
  }
29
29
  //#endregion
30
30
  //#region ../../node_modules/.pnpm/nanostores@1.4.1/node_modules/nanostores/clean-stores/index.js
31
- var f = Symbol("clean"), p, m = [], h = 0, g = null, _ = 4, v = (p = globalThis).nanostoresGlobal || (p.nanostoresGlobal = { epoch: 0 }), drainQueue = () => {
32
- for (h = 0; h < m.length; h += _) m[h](m[h + 1].value, m[h + 2], m[h + 3]);
33
- m.length = 0;
31
+ var p = Symbol("clean"), m, h = [], g = 0, _ = null, v = 4, y = (m = globalThis).nanostoresGlobal || (m.nanostoresGlobal = { epoch: 0 }), drainQueue = () => {
32
+ for (g = 0; g < h.length; g += v) h[g](h[g + 1].value, h[g + 2], h[g + 3]);
33
+ h.length = 0;
34
34
  }, atom = /* @__NO_SIDE_EFFECTS__ */ (e) => {
35
35
  let t = [], n = {
36
36
  get() {
@@ -40,15 +40,15 @@ var f = Symbol("clean"), p, m = [], h = 0, g = null, _ = 4, v = (p = globalThis)
40
40
  lc: 0,
41
41
  listen(e) {
42
42
  return n.lc = t.push(e), () => {
43
- for (let t = h + _; t < m.length;) m[t] === e ? m.splice(t, _) : t += _;
43
+ for (let t = g + v; t < h.length;) h[t] === e ? h.splice(t, v) : t += v;
44
44
  let r = t.indexOf(e);
45
45
  ~r && (t.splice(r, 1), --n.lc || n.off());
46
46
  };
47
47
  },
48
48
  notify(e, r) {
49
- v.epoch++;
50
- let i = !m.length && !0;
51
- for (let i of t) g?.has(i) || (g?.add(i), m.push(i, n, e, r));
49
+ y.epoch++;
50
+ let i = !h.length && !0;
51
+ for (let i of t) _?.has(i) || (_?.add(i), h.push(i, n, e, r));
52
52
  i && drainQueue();
53
53
  },
54
54
  off() {},
@@ -62,7 +62,7 @@ var f = Symbol("clean"), p, m = [], h = 0, g = null, _ = 4, v = (p = globalThis)
62
62
  },
63
63
  value: e
64
64
  };
65
- return process.env.NODE_ENV !== "production" && (n[f] = () => {
65
+ return process.env.NODE_ENV !== "production" && (n[p] = () => {
66
66
  t = [], n.lc = 0, n.off();
67
67
  }), n;
68
68
  };
@@ -106,7 +106,7 @@ function _defineProperty(e, t, n) {
106
106
  }
107
107
  //#endregion
108
108
  //#region sdkStorage.ts
109
- var y = globalThis, b = y.__PL_AUTH_USER__ ?? (y.__PL_AUTH_USER__ = /* @__PURE__ */ atom(void 0)), x = y.__PL_AUTH_TOKEN__ ?? (y.__PL_AUTH_TOKEN__ = /* @__PURE__ */ atom(null)), S = y.__PL_AUTH_DEVICE_ID__ ?? (y.__PL_AUTH_DEVICE_ID__ = /* @__PURE__ */ atom(null)), SDKStorage = class {
109
+ var b = globalThis, x = b.__PL_AUTH_USER__ ?? (b.__PL_AUTH_USER__ = /* @__PURE__ */ atom(void 0)), S = b.__PL_AUTH_TOKEN__ ?? (b.__PL_AUTH_TOKEN__ = /* @__PURE__ */ atom(null)), C = b.__PL_AUTH_DEVICE_ID__ ?? (b.__PL_AUTH_DEVICE_ID__ = /* @__PURE__ */ atom(null)), SDKStorage = class {
110
110
  constructor() {
111
111
  _defineProperty(this, "logger", r("SDKStorage"));
112
112
  }
@@ -114,12 +114,12 @@ var y = globalThis, b = y.__PL_AUTH_USER__ ?? (y.__PL_AUTH_USER__ = /* @__PURE__
114
114
  return typeof window < "u" && typeof localStorage?.getItem == "function" && typeof localStorage?.setItem == "function" && typeof localStorage?.removeItem == "function";
115
115
  }
116
116
  syncWithGlobalStores(e) {
117
- let { activeUser: t, token: n, deviceId: r } = e, i = b.get(), a = x.get(), o = S.get();
118
- i && (t.value = i), a && (n.value = a), o && (r.value = o), d(t, (e) => b.set(e), { immediate: !0 }), d(n, (e) => x.set(e), { immediate: !0 }), d(r, (e) => S.set(e), { immediate: !0 }), b.subscribe((e) => {
117
+ let { activeUser: t, token: n, deviceId: r } = e, i = x.get(), a = S.get(), o = C.get();
118
+ i && (t.value = i), a && (n.value = a), o && (r.value = o), f(t, (e) => x.set(e), { immediate: !0 }), f(n, (e) => S.set(e), { immediate: !0 }), f(r, (e) => C.set(e), { immediate: !0 }), x.subscribe((e) => {
119
119
  e !== t.value && (t.value = e);
120
- }), x.subscribe((e) => {
121
- e !== n.value && (n.value = e);
122
120
  }), S.subscribe((e) => {
121
+ e !== n.value && (n.value = e);
122
+ }), C.subscribe((e) => {
123
123
  e !== r.value && (r.value = e);
124
124
  });
125
125
  }
@@ -149,7 +149,7 @@ var y = globalThis, b = y.__PL_AUTH_USER__ ?? (y.__PL_AUTH_USER__ = /* @__PURE__
149
149
  } catch (e) {
150
150
  this.logger.error("Failed to clear user from localStorage", { data: e });
151
151
  }
152
- b.set(void 0), x.set(null), S.set(null);
152
+ x.set(void 0), S.set(null), C.set(null);
153
153
  }
154
154
  }
155
155
  getItem(e) {
@@ -209,7 +209,7 @@ var y = globalThis, b = y.__PL_AUTH_USER__ ?? (y.__PL_AUTH_USER__ = /* @__PURE__
209
209
  }
210
210
  }
211
211
  async waitUntilReady(e) {
212
- let { agentId: t, onStatus: n, timeoutMs: r = 3e5, pollIntervalMs: i = 3e3 } = e, a = Date.now(), o;
212
+ let { agentId: t, onStatus: n, timeoutMs: r = o.wake, pollIntervalMs: i = 3e3 } = e, a = Date.now(), s;
213
213
  for (; Date.now() - a < r;) {
214
214
  let e = await this.getLiveStatus({ agentId: t });
215
215
  if (e.lifecycle === "running") {
@@ -217,7 +217,7 @@ var y = globalThis, b = y.__PL_AUTH_USER__ ?? (y.__PL_AUTH_USER__ = /* @__PURE__
217
217
  return;
218
218
  }
219
219
  if (e.lifecycle === "error") throw Error(e.detail || "Your bot hit a problem starting");
220
- e.lifecycle !== o && (n?.(e.lifecycle), o = e.lifecycle), await new Promise((e) => setTimeout(e, i));
220
+ e.lifecycle !== s && (n?.(e.lifecycle), s = e.lifecycle), await new Promise((e) => setTimeout(e, i));
221
221
  }
222
222
  throw Error("Your bot is taking longer than expected — please try again");
223
223
  }
@@ -243,7 +243,7 @@ var y = globalThis, b = y.__PL_AUTH_USER__ ?? (y.__PL_AUTH_USER__ = /* @__PURE__
243
243
  if (!e) throw Error("No organization found. Please sign in first.");
244
244
  return e;
245
245
  }
246
- }, C = "Signed in, but your account could not be loaded. Try again.";
246
+ }, w = "Signed in, but your account could not be loaded. Try again.";
247
247
  async function withLoadingState(e, t) {
248
248
  e.loading.value = !0, e.error.value = null;
249
249
  try {
@@ -266,7 +266,7 @@ var AuthClient = class {
266
266
  })).json();
267
267
  if (!n.ok) throw Error(n.error);
268
268
  let r = await this.getCurrentUser();
269
- if (!r) throw Error(C);
269
+ if (!r) throw Error(w);
270
270
  return r;
271
271
  }
272
272
  async sendCode(e) {
@@ -375,7 +375,7 @@ var AuthClient = class {
375
375
  });
376
376
  let r = await this.getCurrentUser();
377
377
  if (!r) {
378
- this.ctx.error.value = C, this.ctx.logger.error("Google login: token accepted but user hydration failed"), e?.onError?.(C);
378
+ this.ctx.error.value = w, this.ctx.logger.error("Google login: token accepted but user hydration failed"), e?.onError?.(w);
379
379
  return;
380
380
  }
381
381
  this.ctx.logger.info("Google login successful"), e?.onSuccess?.(r);
@@ -448,7 +448,7 @@ function parseChatEvent(e) {
448
448
  for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
449
449
  if (!n || r === void 0) return null;
450
450
  try {
451
- let e = c.safeParse({
451
+ let e = l.safeParse({
452
452
  event: n,
453
453
  data: JSON.parse(r)
454
454
  });
@@ -520,11 +520,11 @@ var ChatClient = class {
520
520
  e.onError("No response stream");
521
521
  return;
522
522
  }
523
- let c = new TextDecoder(), l = "";
523
+ let s = new TextDecoder(), l = "";
524
524
  outer: for (;;) {
525
525
  let { done: t, value: n } = await a.read();
526
526
  if (t) break;
527
- l += c.decode(n, { stream: !0 });
527
+ l += s.decode(n, { stream: !0 });
528
528
  let o = l.indexOf("\n\n");
529
529
  for (; o !== -1;) {
530
530
  let t = l.slice(0, o);
@@ -536,7 +536,7 @@ var ChatClient = class {
536
536
  else if (n.event === "working_end") e.onWorkingEnd?.();
537
537
  else if (n.event === "message_delta") e.onDelta(n.data.delta, n.data.role);
538
538
  else if (n.event === "error") {
539
- r = !0, e.onError(s(n.data));
539
+ r = !0, e.onError(c(n.data));
540
540
  break outer;
541
541
  } else if (n.event === "message" && (n.data.message.role === "assistant" || n.data.message.role === "system")) {
542
542
  i = !0;
@@ -576,9 +576,9 @@ var ChatClient = class {
576
576
  e.onError(t instanceof Error ? t.message : "Conversation failed");
577
577
  return;
578
578
  }
579
- let c = i ? `${t}/api/conversations/${encodeURIComponent(r)}/stream?since=${encodeURIComponent(i)}` : `${t}/api/conversations/${encodeURIComponent(r)}/stream`, l = `nonce_${o(16)}`, u = detectBrowserTimezone();
579
+ let o = i ? `${t}/api/conversations/${encodeURIComponent(r)}/stream?since=${encodeURIComponent(i)}` : `${t}/api/conversations/${encodeURIComponent(r)}/stream`, l = `nonce_${s(16)}`, u = detectBrowserTimezone();
580
580
  await a({
581
- streamUrl: c,
581
+ streamUrl: o,
582
582
  sendUrl: `${t}/api/messages`,
583
583
  headers: n,
584
584
  sendBody: {
@@ -597,7 +597,7 @@ var ChatClient = class {
597
597
  n && e.onMessage?.(n);
598
598
  },
599
599
  onDone: () => e.onDone(r),
600
- onChatError: (t) => e.onError(s(t)),
600
+ onChatError: (t) => e.onError(c(t)),
601
601
  onTransportError: (t) => e.onError(t.code ? {
602
602
  code: t.code,
603
603
  error: t.message
@@ -687,27 +687,27 @@ var ChatClient = class {
687
687
  delete() {
688
688
  typeof window < "u" && delete globalThis[this.key];
689
689
  }
690
- }, w = new SDKGlobal(), T = class PageLinesSDK extends t {
690
+ }, T = new SDKGlobal(), E = class PageLinesSDK extends t {
691
691
  static getInstance(e = {}) {
692
- return w.get() || new PageLinesSDK(e);
692
+ return T.get() || new PageLinesSDK(e);
693
693
  }
694
694
  get isDev() {
695
695
  return this.settings.isDev ?? (typeof window < "u" ? window.location.hostname === "localhost" || window.location.hostname.includes("127.0.0.1") : !1);
696
696
  }
697
697
  constructor(e = {}) {
698
- let t = w.get();
698
+ let t = T.get();
699
699
  if (t) return console.debug("[PageLinesSDK] Returning existing singleton instance"), t;
700
- super("PageLinesSDK", e), _defineProperty(this, "activeUser", u()), _defineProperty(this, "token", u(null)), _defineProperty(this, "deviceId", u(null)), _defineProperty(this, "loading", u(!1)), _defineProperty(this, "error", u(null)), _defineProperty(this, "apiBase", this.settings.apiBase || void 0), _defineProperty(this, "storage", new SDKStorage()), _defineProperty(this, "sessionId", i({ prefix: "ses" })), _defineProperty(this, "currentAgent", l(() => {
700
+ super("PageLinesSDK", e), _defineProperty(this, "activeUser", d()), _defineProperty(this, "token", d(null)), _defineProperty(this, "deviceId", d(null)), _defineProperty(this, "loading", d(!1)), _defineProperty(this, "error", d(null)), _defineProperty(this, "apiBase", this.settings.apiBase || void 0), _defineProperty(this, "storage", new SDKStorage()), _defineProperty(this, "sessionId", i({ prefix: "ses" })), _defineProperty(this, "currentAgent", u(() => {
701
701
  let e = this.activeUser.value;
702
702
  if (!e?.agents) return;
703
703
  let t = e.primaryAgentId || e.agents[0]?.agentId;
704
704
  if (t) return e.agents.find((e) => e.agentId === t);
705
- })), _defineProperty(this, "currentOrg", l(() => {
705
+ })), _defineProperty(this, "currentOrg", u(() => {
706
706
  let e = this.currentAgent.value;
707
707
  if (!e?.orgId) return;
708
708
  let t = this.activeUser.value;
709
709
  if (t?.orgs) return t.orgs.find((t) => t.orgId === e.orgId);
710
- })), _defineProperty(this, "initialized", void 0), _defineProperty(this, "resolveUser", void 0), _defineProperty(this, "agent", void 0), _defineProperty(this, "auth", void 0), _defineProperty(this, "billing", void 0), _defineProperty(this, "chat", void 0), _defineProperty(this, "user", void 0), w.set(this);
710
+ })), _defineProperty(this, "initialized", void 0), _defineProperty(this, "resolveUser", void 0), _defineProperty(this, "agent", void 0), _defineProperty(this, "auth", void 0), _defineProperty(this, "billing", void 0), _defineProperty(this, "chat", void 0), _defineProperty(this, "user", void 0), T.set(this);
711
711
  let n = {
712
712
  apiFetch: createApiFetch({
713
713
  isDev: this.isDev,
@@ -754,10 +754,10 @@ var ChatClient = class {
754
754
  this.logger.info("Clearing session"), this.activeUser.value = void 0, this.token.value = null, this.deviceId.value = null, this.error.value = null, this.storage.clearStorage();
755
755
  }
756
756
  clear() {
757
- this.logger.info("Clearing SDK completely"), this.clearSession(), this.loading.value = !1, this.sessionId = i({ prefix: "ses" }), w.delete();
757
+ this.logger.info("Clearing SDK completely"), this.clearSession(), this.loading.value = !1, this.sessionId = i({ prefix: "ses" }), T.delete();
758
758
  }
759
759
  };
760
760
  //#endregion
761
- export { AuthClient as a, resolveApiBase as c, BillingClient as i, UserClient as n, AgentClient as o, ChatClient as r, _defineProperty as s, T as t };
761
+ export { AuthClient as a, resolveApiBase as c, BillingClient as i, UserClient as n, AgentClient as o, ChatClient as r, _defineProperty as s, E as t };
762
762
 
763
763
  //# sourceMappingURL=sdkClient.js.map