@8wave/ai-elements 0.122.0-beta.8 → 0.122.0-beta.9

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.
@@ -219,9 +219,7 @@ export declare function useChatbotAuth(options?: {
219
219
  isAuthenticating: globalThis.Ref<boolean, boolean>;
220
220
  isExternalAuth: globalThis.ComputedRef<boolean>;
221
221
  token: globalThis.WritableComputedRef<string, string>;
222
- headers: globalThis.ComputedRef<{
223
- Authorization: string;
224
- } | undefined>;
222
+ headers: globalThis.ComputedRef<Record<string, string>>;
225
223
  onError: (error: {
226
224
  type: string;
227
225
  title: string;
@@ -4679,7 +4679,10 @@ function Y(e = {}) {
4679
4679
  set: (n) => {
4680
4680
  T(n, e.cookieName), t.value = n;
4681
4681
  }
4682
- }), i = c(() => !n.value && r.value ? { Authorization: `Bearer ${r.value}` } : void 0), a = v({
4682
+ }), i = c(() => ({
4683
+ "X-Agent-Channel": "widget",
4684
+ ...!n.value && r.value ? { Authorization: `Bearer ${r.value}` } : {}
4685
+ })), a = v({
4683
4686
  baseURL: e.baseUrl ?? "https://ai-api.8wave.it",
4684
4687
  basePath: e.basePath ?? "auth",
4685
4688
  plugins: [