@connekz/connekz-agent 1.4.0 → 1.4.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/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## [1.4.1] - 2026-03-25 (Patch Release)
2
+
3
+ ### Added
4
+
5
+ ### Changed
6
+
7
+ ### Fixed
8
+
9
+ ### Security
10
+
1
11
  ## [1.4.0] - 2026-03-25 (Minor Release)
2
12
 
3
13
  ### Added
@@ -9830,14 +9830,15 @@ const zr = /* @__PURE__ */ _f("layout", {
9830
9830
  baseUrl: null,
9831
9831
  clientId: null,
9832
9832
  clientSecret: null,
9833
- userIdentity: null
9833
+ userIdentity: null,
9834
+ platform: null
9834
9835
  }),
9835
9836
  persist: !0,
9836
9837
  actions: {
9837
9838
  setConfigs(e) {
9838
9839
  this.baseDomain = e.baseDomain, this.baseUrl = e.baseUrl, this.clientId = e.clientId, this.clientSecret = e.clientSecret;
9839
9840
  let t = e.userIdentity || this.userIdentity;
9840
- !t && window && (t = window.localStorage.getItem("userIdentity") || null), this.userIdentity = t || `cg-${crypto.randomUUID()}-${Date.now()}`, window && window.localStorage.setItem("userIdentity", this.userIdentity), zr().setChatAppInitStatus("success");
9841
+ !t && window && (t = window.localStorage.getItem("userIdentity") || null), this.userIdentity = t || `cg-${crypto.randomUUID()}-${Date.now()}`, this.platform = e.platform || null, window && window.localStorage.setItem("userIdentity", this.userIdentity), zr().setChatAppInitStatus("success");
9841
9842
  }
9842
9843
  }
9843
9844
  }), Kt = /* @__PURE__ */ Object.create(null);
@@ -13107,7 +13108,7 @@ function C2() {
13107
13108
  authorization: `Bearer ${k}`,
13108
13109
  localTimezone: Intl.DateTimeFormat().resolvedOptions().timeZone
13109
13110
  };
13110
- e.clientId && (y.clientId = e.clientId), e.userIdentity && (y.userIdentity = e.userIdentity);
13111
+ e.clientId && (y.clientId = e.clientId), e.userIdentity && (y.userIdentity = e.userIdentity), e.platform && (y.platform = e.platform);
13111
13112
  const V = tr(e.baseDomain || "https://api.connekz.com", {
13112
13113
  query: y,
13113
13114
  path: "/ws/",
@@ -13216,7 +13217,7 @@ function C2() {
13216
13217
  authorization: `Bearer ${y}`,
13217
13218
  localTimezone: Intl.DateTimeFormat().resolvedOptions().timeZone
13218
13219
  };
13219
- e.clientId && (V.clientId = e.clientId), e.userIdentity && (V.userIdentity = e.userIdentity);
13220
+ e.clientId && (V.clientId = e.clientId), e.userIdentity && (V.userIdentity = e.userIdentity), e.platform && (V.platform = e.platform);
13220
13221
  const _ = tr(e.baseDomain || "https://api.connekz.com", {
13221
13222
  query: V,
13222
13223
  path: "/ws/",
@@ -17012,7 +17013,8 @@ function Q4(e, t) {
17012
17013
  baseUrl: e.baseUrl ? `${e.baseUrl}/v1/api` : "https://api.connekz.com/v1/api",
17013
17014
  clientId: i ? null : e.clientId,
17014
17015
  clientSecret: i || e.clientSecret,
17015
- userIdentity: e.userIdentity
17016
+ userIdentity: e.userIdentity,
17017
+ platform: e._platform || null
17016
17018
  });
17017
17019
  }
17018
17020
  const R4 = (e) => {
@@ -17121,17 +17123,17 @@ const R4 = (e) => {
17121
17123
  throw new Error(`Unknown component key: ${e}`);
17122
17124
  }
17123
17125
  }, V4 = (e) => {
17124
- if (!e.clientId || !e.clientSecret)
17126
+ if (!!!e._paut && (!e.clientId || !e.clientSecret))
17125
17127
  throw new Error("clientId and clientSecret are required");
17126
17128
  if (!Co) {
17127
- const { pinia: a, api: i, cleanupSubs: r } = R4(e);
17128
- Co = a, ea = i, Nr = r, i.connekzSocket.connect();
17129
+ const { pinia: i, api: r, cleanupSubs: n } = R4(e);
17130
+ Co = i, ea = r, Nr = n, r.connekzSocket.connect();
17129
17131
  }
17130
17132
  Bo || (Bo = {
17131
17133
  unmount: () => {
17132
- var i, r, n, o;
17133
- (r = (i = ea == null ? void 0 : ea.connekzAgent) == null ? void 0 : i.stopAgent) == null || r.call(i), (o = (n = ea == null ? void 0 : ea.connekzSocket) == null ? void 0 : n.cleanup) == null || o.call(n), Object.values(Jr).forEach((f) => {
17134
- Object.values(f).forEach((u) => u.unmount());
17134
+ var r, n, o, f;
17135
+ (n = (r = ea == null ? void 0 : ea.connekzAgent) == null ? void 0 : r.stopAgent) == null || n.call(r), (f = (o = ea == null ? void 0 : ea.connekzSocket) == null ? void 0 : o.cleanup) == null || f.call(o), Object.values(Jr).forEach((u) => {
17136
+ Object.values(u).forEach((l) => l.unmount());
17135
17137
  }), Jr = {
17136
17138
  chatWindow: {},
17137
17139
  aiSphere: {},
@@ -17141,16 +17143,16 @@ const R4 = (e) => {
17141
17143
  },
17142
17144
  ...ea
17143
17145
  });
17144
- const t = (a, i) => {
17145
- if (i != null && i.mountElementId) {
17146
- const r = i.mountElementId;
17147
- if (!Jr[a][r]) {
17148
- const n = J4(a), o = N4(n, r, i, Co, ea);
17149
- Jr[a][r] = o;
17146
+ const a = (i, r) => {
17147
+ if (r != null && r.mountElementId) {
17148
+ const n = r.mountElementId;
17149
+ if (!Jr[i][n]) {
17150
+ const o = J4(i), f = N4(o, n, r, Co, ea);
17151
+ Jr[i][n] = f;
17150
17152
  }
17151
17153
  }
17152
17154
  };
17153
- return t("chatWindow", e.chatWindow), t("aiSphere", e.aiSphere), t("transcription", e.transcription), t("connekzControls", e.connekzControls), Bo;
17155
+ return a("chatWindow", e.chatWindow), a("aiSphere", e.aiSphere), a("transcription", e.transcription), a("connekzControls", e.connekzControls), Bo;
17154
17156
  };
17155
17157
  export {
17156
17158
  V4 as default