@memberjunction/realtime-widget 6.2.0-edge.7 → 6.2.0-edge.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  IsPlainObject
3
- } from "./chunk-VXA62VEQ.js";
3
+ } from "./chunk-DIDGGUK7.js";
4
4
 
5
5
  // ../../AI/Core/dist/generic/baseModel.js
6
6
  var BaseResult = class {
@@ -3,15 +3,15 @@ import {
3
3
  ArtifactMetadataEngine,
4
4
  ConversationEngine,
5
5
  ConversationUtility,
6
+ Fe,
6
7
  FileStorageEngineBase,
7
8
  MJAICredentialBindingEntity,
8
9
  MJAIModelPriceUnitTypeEntity,
10
+ Rr,
11
+ S,
9
12
  TemplateEngineBase,
10
- coerceFailedExecuteAgentResult,
11
- h,
12
- lr,
13
- we
14
- } from "./chunk-46L5OHPT.js";
13
+ coerceFailedExecuteAgentResult
14
+ } from "./chunk-HDCS43DU.js";
15
15
  import {
16
16
  BaseEngine,
17
17
  BaseEntity,
@@ -22,12 +22,12 @@ import {
22
22
  PermissionConstrainedError,
23
23
  RegisterForStartup,
24
24
  RunView
25
- } from "./chunk-MQPAK26D.js";
25
+ } from "./chunk-DAGQZKVY.js";
26
26
  import {
27
27
  ParseModelConfiguration,
28
28
  ParseVendorConfiguration,
29
29
  ResolveEffectiveModelConfiguration
30
- } from "./chunk-4IZZL4GA.js";
30
+ } from "./chunk-JOGHPRST.js";
31
31
  import {
32
32
  BaseSingleton,
33
33
  BehaviorSubject,
@@ -44,7 +44,7 @@ import {
44
44
  ValidationErrorInfo,
45
45
  ValidationErrorType,
46
46
  throttleTime
47
- } from "./chunk-VXA62VEQ.js";
47
+ } from "./chunk-DIDGGUK7.js";
48
48
 
49
49
  // ../../AI/BaseAIEngine/dist/PriceUnitTypes.js
50
50
  var __decorate = function(decorators, target, key, desc) {
@@ -3650,7 +3650,7 @@ var AgentClientSession = class {
3650
3650
  if (!provider) {
3651
3651
  return { Success: false, ErrorMessage: "GraphQL provider not available" };
3652
3652
  }
3653
- const aiClient = new we(provider);
3653
+ const aiClient = new Fe(provider);
3654
3654
  try {
3655
3655
  const agentShim = { ID: params.AgentId };
3656
3656
  const messages = params.Messages.map((m) => ({
@@ -3708,7 +3708,7 @@ var AgentClientSession = class {
3708
3708
  if (!provider) {
3709
3709
  return { Success: false, ErrorMessage: "GraphQL provider not available" };
3710
3710
  }
3711
- const aiClient = new we(provider);
3711
+ const aiClient = new Fe(provider);
3712
3712
  try {
3713
3713
  const gqlParams = {
3714
3714
  userMessageId: params.UserMessageId,
@@ -4861,7 +4861,7 @@ var ConversationStreaming = class {
4861
4861
  return;
4862
4862
  }
4863
4863
  try {
4864
- const dataProvider = h.Instance;
4864
+ const dataProvider = S.Instance;
4865
4865
  this.watchSocketAcknowledgement(dataProvider);
4866
4866
  this.pushStatusSubscription = dataProvider.PushStatusUpdates().subscribe({
4867
4867
  next: (status) => {
@@ -5395,7 +5395,7 @@ var ConversationLiveness = class {
5395
5395
  }
5396
5396
  let socketWired = false;
5397
5397
  try {
5398
- const provider = h.Instance;
5398
+ const provider = S.Instance;
5399
5399
  if (provider) {
5400
5400
  this.subscriptions.add(provider.SocketReconnected$.subscribe(() => this.Trigger("socket-reconnected")));
5401
5401
  socketWired = true;
@@ -5493,11 +5493,11 @@ var ConversationTail = class {
5493
5493
  return this.client;
5494
5494
  }
5495
5495
  try {
5496
- const provider = h.Instance;
5496
+ const provider = S.Instance;
5497
5497
  if (!provider) {
5498
5498
  return void 0;
5499
5499
  }
5500
- this.client = new lr(provider);
5500
+ this.client = new Rr(provider);
5501
5501
  return this.client;
5502
5502
  } catch {
5503
5503
  return void 0;
@@ -28,11 +28,11 @@ import {
28
28
  SessionCardStatusChip,
29
29
  SessionCardTitle,
30
30
  SessionsObserver
31
- } from "./chunk-FOFOZNZC.js";
32
- import "./chunk-46L5OHPT.js";
33
- import "./chunk-MQPAK26D.js";
34
- import "./chunk-4IZZL4GA.js";
35
- import "./chunk-VXA62VEQ.js";
31
+ } from "./chunk-L4OBOWDD.js";
32
+ import "./chunk-HDCS43DU.js";
33
+ import "./chunk-DAGQZKVY.js";
34
+ import "./chunk-JOGHPRST.js";
35
+ import "./chunk-DIDGGUK7.js";
36
36
  export {
37
37
  BuildConversationTimeline,
38
38
  ClientToolRegistry,
@@ -1,9 +1,9 @@
1
1
  import {
2
- h
3
- } from "./chunk-46L5OHPT.js";
4
- import "./chunk-MQPAK26D.js";
5
- import "./chunk-4IZZL4GA.js";
6
- import "./chunk-VXA62VEQ.js";
2
+ S
3
+ } from "./chunk-HDCS43DU.js";
4
+ import "./chunk-DAGQZKVY.js";
5
+ import "./chunk-JOGHPRST.js";
6
+ import "./chunk-DIDGGUK7.js";
7
7
 
8
8
  // dist/voice/guest-tool-relay.js
9
9
  var EXECUTE_TOOL_MUTATION = `
@@ -12,7 +12,7 @@ mutation WidgetRelayRealtimeTool($agentSessionId: String!, $callId: String!, $to
12
12
  }`;
13
13
  function CreateGuestToolRelay() {
14
14
  return async (agentSessionId, callId, toolName, argsJson) => {
15
- const data = await h.Instance.ExecuteGQL(EXECUTE_TOOL_MUTATION, {
15
+ const data = await S.Instance.ExecuteGQL(EXECUTE_TOOL_MUTATION, {
16
16
  agentSessionId,
17
17
  callId,
18
18
  toolName,
@@ -1,11 +1,11 @@
1
1
  import {
2
- h
3
- } from "./chunk-46L5OHPT.js";
4
- import "./chunk-MQPAK26D.js";
2
+ S
3
+ } from "./chunk-HDCS43DU.js";
4
+ import "./chunk-DAGQZKVY.js";
5
5
  import {
6
6
  ParseRealtimeClientTransport
7
- } from "./chunk-4IZZL4GA.js";
8
- import "./chunk-VXA62VEQ.js";
7
+ } from "./chunk-JOGHPRST.js";
8
+ import "./chunk-DIDGGUK7.js";
9
9
 
10
10
  // dist/voice/guest-voice-mint.js
11
11
  var MINT_FIELDS = ["AgentSessionId", "Provider", "Model", "EphemeralToken", "ExpiresAt", "SessionConfigJson"];
@@ -42,7 +42,7 @@ function CreateGuestVoiceMint(session) {
42
42
  for (; ; ) {
43
43
  try {
44
44
  const sent = asked.NoAgentVideo ? { ...variables, showsAgentVideo: false } : variables;
45
- return await h.Instance.ExecuteGQL(startRealtimeMutation(asked), sent);
45
+ return await S.Instance.ExecuteGQL(startRealtimeMutation(asked), sent);
46
46
  } catch (error) {
47
47
  const rejected = rejectedExtension(error, asked);
48
48
  if (!rejected) {
@@ -26,14 +26,14 @@ import {
26
26
  VideoSourceSeenNote,
27
27
  VideoSourceTurnedOffNote,
28
28
  VideoSourceTurnedOnNote
29
- } from "./chunk-4IZZL4GA.js";
29
+ } from "./chunk-JOGHPRST.js";
30
30
  import {
31
31
  BaseSingleton,
32
32
  MJGlobal,
33
33
  RegisterClass,
34
34
  __commonJS,
35
35
  __toESM
36
- } from "./chunk-VXA62VEQ.js";
36
+ } from "./chunk-DIDGGUK7.js";
37
37
 
38
38
  // ../../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js
39
39
  var require_retry_operation = __commonJS({
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  ConversationsRuntime
3
- } from "./chunk-FOFOZNZC.js";
3
+ } from "./chunk-L4OBOWDD.js";
4
4
  import {
5
+ Bt,
5
6
  ConversationEngine,
6
- Lt,
7
- Nt,
7
+ Ot,
8
8
  agentFailureMessage
9
- } from "./chunk-46L5OHPT.js";
9
+ } from "./chunk-HDCS43DU.js";
10
10
  import {
11
11
  RunView
12
- } from "./chunk-MQPAK26D.js";
13
- import "./chunk-4IZZL4GA.js";
14
- import "./chunk-VXA62VEQ.js";
12
+ } from "./chunk-DAGQZKVY.js";
13
+ import "./chunk-JOGHPRST.js";
14
+ import "./chunk-DIDGGUK7.js";
15
15
 
16
16
  // dist/transport/runtime-widget-transport.js
17
17
  var CONVERSATIONS_ENTITY = "MJ: Conversations";
@@ -29,7 +29,7 @@ var RuntimeWidgetTransport = class {
29
29
  async Initialize(session) {
30
30
  this.session = session;
31
31
  this.token = session.token;
32
- const provider = await Lt(this.buildConfig());
32
+ const provider = await Bt(this.buildConfig());
33
33
  this.provider = provider;
34
34
  this.contextUser = provider.CurrentUser;
35
35
  await ConversationsRuntime.Instance.Config(false, provider.CurrentUser, provider);
@@ -85,7 +85,7 @@ var RuntimeWidgetTransport = class {
85
85
  buildConfig() {
86
86
  const base = this.apiUrl.replace(/\/+$/, "");
87
87
  const wsUrl = base.replace(/^http/, "ws");
88
- return new Nt(this.token, base, wsUrl, async () => this.token);
88
+ return new Ot(this.token, base, wsUrl, async () => this.token);
89
89
  }
90
90
  /** Creates the conversation row the guest's turns attach to. */
91
91
  async createConversation() {
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  CreateProofOfPossessionJwt,
6
6
  CreateProofOfPossessionKey
7
- } from "./chunks/chunk-VXA62VEQ.js";
7
+ } from "./chunks/chunk-DIDGGUK7.js";
8
8
 
9
9
  // dist/ui/tokens.js
10
10
  var WIDGET_SHADOW_STYLES = `
@@ -960,14 +960,14 @@ function defaultSessionClient(apiUrl, widgetKey) {
960
960
  return new WidgetSessionClient(apiUrl, widgetKey);
961
961
  }
962
962
  async function defaultTransport(apiUrl) {
963
- const { RuntimeWidgetTransport } = await import("./chunks/runtime-widget-transport-V7B2B3TL.js");
963
+ const { RuntimeWidgetTransport } = await import("./chunks/runtime-widget-transport-XT55WJB2.js");
964
964
  return new RuntimeWidgetTransport(apiUrl);
965
965
  }
966
966
  async function defaultVoiceController(session) {
967
967
  const [{ RealtimeVoiceController }, { createGuestVoiceMint }, { createGuestToolRelay }] = await Promise.all([
968
- import("./chunks/realtime-voice-controller-D2GLGIK2.js"),
969
- import("./chunks/guest-voice-mint-MNMKTI3E.js"),
970
- import("./chunks/guest-tool-relay-2MP5GU67.js")
968
+ import("./chunks/realtime-voice-controller-76SVXCXJ.js"),
969
+ import("./chunks/guest-voice-mint-GPJQNDR3.js"),
970
+ import("./chunks/guest-tool-relay-IAAOBPAS.js")
971
971
  ]);
972
972
  return new RealtimeVoiceController(
973
973
  createGuestVoiceMint(session),
@@ -998,7 +998,7 @@ function resolveMountTarget(target) {
998
998
  return document.body;
999
999
  }
1000
1000
  function registerNotificationAdapter(element) {
1001
- void import("./chunks/dist-S5YIFSWR.js").then(({ ConversationsRuntime }) => {
1001
+ void import("./chunks/dist-BOIIDZ2X.js").then(({ ConversationsRuntime }) => {
1002
1002
  ConversationsRuntime.Instance.UseNotificationAdapter({
1003
1003
  Notify: (level, message) => {
1004
1004
  if (level === "error" || level === "warning") {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@memberjunction/realtime-widget",
3
3
  "type": "module",
4
- "version": "6.2.0-edge.7",
4
+ "version": "6.2.0-edge.8",
5
5
  "description": "MemberJunction: Droppable, embeddable public customer-support widget (text + voice). A shadow-DOM web component that reuses ConversationsRuntime + the realtime client stack against MJAPI with a guest session JWT. No MJ login required.",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -11,14 +11,14 @@
11
11
  "author": "MemberJunction.com",
12
12
  "license": "BUSL-1.1",
13
13
  "dependencies": {
14
- "@memberjunction/global": "6.2.0-edge.7",
15
- "@memberjunction/core": "6.2.0-edge.7",
16
- "@memberjunction/core-entities": "6.2.0-edge.7",
17
- "@memberjunction/ai": "6.2.0-edge.7",
18
- "@memberjunction/ai-core-plus": "6.2.0-edge.7",
19
- "@memberjunction/ai-realtime-client": "6.2.0-edge.7",
20
- "@memberjunction/conversations-runtime": "6.2.0-edge.7",
21
- "@memberjunction/graphql-dataprovider": "6.2.0-edge.7"
14
+ "@memberjunction/global": "6.2.0-edge.8",
15
+ "@memberjunction/core": "6.2.0-edge.8",
16
+ "@memberjunction/core-entities": "6.2.0-edge.8",
17
+ "@memberjunction/ai": "6.2.0-edge.8",
18
+ "@memberjunction/ai-core-plus": "6.2.0-edge.8",
19
+ "@memberjunction/ai-realtime-client": "6.2.0-edge.8",
20
+ "@memberjunction/conversations-runtime": "6.2.0-edge.8",
21
+ "@memberjunction/graphql-dataprovider": "6.2.0-edge.8"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/node": "24.10.11",
@@ -1,7 +0,0 @@
1
- import {
2
- UserViewEngine
3
- } from "./chunk-MQPAK26D.js";
4
- import "./chunk-VXA62VEQ.js";
5
- export {
6
- UserViewEngine
7
- };