@oxvo/ai-live-assist 7.3.0

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.
Files changed (76) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +17 -0
  3. package/cjs/AiLiveAssist.d.ts +108 -0
  4. package/cjs/AiLiveAssist.js +1774 -0
  5. package/cjs/client.d.ts +53 -0
  6. package/cjs/client.js +193 -0
  7. package/cjs/context.d.ts +58 -0
  8. package/cjs/context.js +979 -0
  9. package/cjs/control.d.ts +31 -0
  10. package/cjs/control.js +190 -0
  11. package/cjs/experienceState.d.ts +18 -0
  12. package/cjs/experienceState.js +82 -0
  13. package/cjs/index.d.ts +13 -0
  14. package/cjs/index.js +32 -0
  15. package/cjs/media.d.ts +34 -0
  16. package/cjs/media.js +207 -0
  17. package/cjs/messages.d.ts +2 -0
  18. package/cjs/messages.js +95 -0
  19. package/cjs/package.json +1 -0
  20. package/cjs/placement.d.ts +52 -0
  21. package/cjs/placement.js +293 -0
  22. package/cjs/presentation.d.ts +41 -0
  23. package/cjs/presentation.js +483 -0
  24. package/cjs/recordingPolicy.d.ts +2 -0
  25. package/cjs/recordingPolicy.js +12 -0
  26. package/cjs/safeSvg.d.ts +1 -0
  27. package/cjs/safeSvg.js +157 -0
  28. package/cjs/tabLock.d.ts +31 -0
  29. package/cjs/tabLock.js +260 -0
  30. package/cjs/types.d.ts +299 -0
  31. package/cjs/types.js +2 -0
  32. package/cjs/ui.d.ts +184 -0
  33. package/cjs/ui.js +2353 -0
  34. package/cjs/version.d.ts +1 -0
  35. package/cjs/version.js +4 -0
  36. package/cjs/visualContext.d.ts +21 -0
  37. package/cjs/visualContext.js +72 -0
  38. package/cjs/voicePresenceUi.d.ts +148 -0
  39. package/cjs/voicePresenceUi.js +2182 -0
  40. package/lib/AiLiveAssist.d.ts +108 -0
  41. package/lib/AiLiveAssist.js +1769 -0
  42. package/lib/client.d.ts +53 -0
  43. package/lib/client.js +187 -0
  44. package/lib/context.d.ts +58 -0
  45. package/lib/context.js +975 -0
  46. package/lib/control.d.ts +31 -0
  47. package/lib/control.js +186 -0
  48. package/lib/experienceState.d.ts +18 -0
  49. package/lib/experienceState.js +78 -0
  50. package/lib/index.d.ts +13 -0
  51. package/lib/index.js +26 -0
  52. package/lib/media.d.ts +34 -0
  53. package/lib/media.js +203 -0
  54. package/lib/messages.d.ts +2 -0
  55. package/lib/messages.js +92 -0
  56. package/lib/placement.d.ts +52 -0
  57. package/lib/placement.js +286 -0
  58. package/lib/presentation.d.ts +41 -0
  59. package/lib/presentation.js +478 -0
  60. package/lib/recordingPolicy.d.ts +2 -0
  61. package/lib/recordingPolicy.js +8 -0
  62. package/lib/safeSvg.d.ts +1 -0
  63. package/lib/safeSvg.js +153 -0
  64. package/lib/tabLock.d.ts +31 -0
  65. package/lib/tabLock.js +256 -0
  66. package/lib/types.d.ts +299 -0
  67. package/lib/types.js +1 -0
  68. package/lib/ui.d.ts +184 -0
  69. package/lib/ui.js +2349 -0
  70. package/lib/version.d.ts +1 -0
  71. package/lib/version.js +1 -0
  72. package/lib/visualContext.d.ts +21 -0
  73. package/lib/visualContext.js +68 -0
  74. package/lib/voicePresenceUi.d.ts +148 -0
  75. package/lib/voicePresenceUi.js +2178 -0
  76. package/package.json +58 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) OXVO
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @oxvo/ai-live-assist
2
+
3
+ AI Live Assist is an `@oxvo/browser` peer plugin. It reuses the existing OXVO
4
+ Sessions tracker and never creates a second recording instance.
5
+
6
+ ```ts
7
+ import Browser from '@oxvo/browser/class';
8
+ import aiLiveAssist from '@oxvo/ai-live-assist';
9
+
10
+ const tracker = new Browser({ siteKey: 'public-site-key' });
11
+ tracker.use(aiLiveAssist({ runtimeUrl: 'https://api.oxvo.com' }));
12
+ tracker.start();
13
+ ```
14
+
15
+ Only the public site key, runtime URL, and presentation overrides belong in
16
+ browser configuration. Provider keys, Console credentials, tool credentials,
17
+ and policy authority remain server-side.
@@ -0,0 +1,108 @@
1
+ import type { App } from '@oxvo/browser';
2
+ import type { PluginOptions } from './types.js';
3
+ export type ConfirmationReplyIntent = 'approve' | 'decline' | null;
4
+ export declare const confirmationReplyIntent: (value: string) => ConfirmationReplyIntent;
5
+ export default class AiLiveAssist {
6
+ private readonly app;
7
+ private readonly options;
8
+ readonly version = "7.3.0";
9
+ private readonly siteKey;
10
+ private tabId;
11
+ private readonly windowId;
12
+ private readonly locale;
13
+ private readonly storageKey;
14
+ private readonly runtime;
15
+ private readonly lock;
16
+ private bootstrap;
17
+ private view;
18
+ private result;
19
+ private channel;
20
+ private media;
21
+ private context;
22
+ private presentation;
23
+ private connectionAbort;
24
+ private scopes;
25
+ private mode;
26
+ private ended;
27
+ private reconnecting;
28
+ private pendingSessionAuthorization;
29
+ private terminalRequestPending;
30
+ private reconnectAttempts;
31
+ private heartbeatSeconds;
32
+ private pendingAction;
33
+ private pendingConfirmation;
34
+ private destroyed;
35
+ private lastLaunch;
36
+ private visualConsentGranted;
37
+ private manualTurn;
38
+ private pushActive;
39
+ private activeFallback;
40
+ private pendingHumanFallback;
41
+ private pendingFocusedHandoff;
42
+ private agentDiscoveryLink;
43
+ constructor(app: App, options: PluginOptions);
44
+ end(): Promise<void>;
45
+ destroy(): void;
46
+ private initialize;
47
+ private syncAgentDiscovery;
48
+ private widgetCallbacks;
49
+ private fallbackAllowed;
50
+ private standardFallbackBootstrap;
51
+ private activateFallback;
52
+ private launch;
53
+ private applyVisitorLimitFailure;
54
+ private resume;
55
+ private connectTransport;
56
+ private startContext;
57
+ private startPresentation;
58
+ private sendText;
59
+ private resolvePendingConfirmationReply;
60
+ private cancelConfirmationForNewRequest;
61
+ private handleServerMessage;
62
+ private executeGrant;
63
+ private confirmSafetySurface;
64
+ private resolveVisualContext;
65
+ private parseGrant;
66
+ private updateMute;
67
+ private interrupt;
68
+ private updateVoiceTurnMode;
69
+ private updatePushToTalk;
70
+ private updatePause;
71
+ private updateCaptions;
72
+ private updateVisualPause;
73
+ private switchToText;
74
+ private submitFeedback;
75
+ private retry;
76
+ private scheduleReconnect;
77
+ private createMedia;
78
+ private finishFromServer;
79
+ private cleanupTransport;
80
+ private requestRuntimeEnd;
81
+ private send;
82
+ private replayContext;
83
+ private visitorId;
84
+ private readResume;
85
+ private writeResume;
86
+ private updateResumeManualTurn;
87
+ private updateResumeSequence;
88
+ private storeResume;
89
+ private clearResume;
90
+ private publicError;
91
+ private retryable;
92
+ private string;
93
+ private state;
94
+ private sendPresentationResult;
95
+ private isVoicePresence;
96
+ private lowPowerMode;
97
+ private bindWindowLifecycle;
98
+ private onPageHide;
99
+ private onPageShow;
100
+ private onWindowFocus;
101
+ private onVisibilityChange;
102
+ private onOffline;
103
+ private onOnline;
104
+ private requestFocusedHandoff;
105
+ private handoffToFocusedTab;
106
+ private acceptFocusedTabHandoff;
107
+ private onVisitorControl;
108
+ }