@oxvo/ai-live-assist 7.4.50 → 7.5.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.
- package/cjs/AiLiveAssist.d.ts +76 -11
- package/cjs/AiLiveAssist.js +1771 -298
- package/cjs/client.d.ts +19 -0
- package/cjs/client.js +51 -0
- package/cjs/context.d.ts +23 -1
- package/cjs/context.js +713 -126
- package/cjs/control.d.ts +2 -0
- package/cjs/control.js +42 -3
- package/cjs/ctaOffer.d.ts +11 -0
- package/cjs/ctaOffer.js +185 -0
- package/cjs/dialogFocusScope.js +1 -1
- package/cjs/guideAdmission.d.ts +46 -0
- package/cjs/guideAdmission.js +397 -0
- package/cjs/guideHost.d.ts +47 -0
- package/cjs/guideHost.js +48 -0
- package/cjs/guideInstallation.d.ts +12 -0
- package/cjs/guideInstallation.js +60 -0
- package/cjs/guideInstaller.d.ts +4 -0
- package/cjs/guideInstaller.js +116 -0
- package/cjs/guideMount.d.ts +22 -0
- package/cjs/guideMount.js +84 -0
- package/cjs/guideRecording.d.ts +64 -0
- package/cjs/guideRecording.js +176 -0
- package/cjs/guideRecordingSession.d.ts +35 -0
- package/cjs/guideRecordingSession.js +167 -0
- package/cjs/guideSubjectStore.d.ts +32 -0
- package/cjs/guideSubjectStore.js +105 -0
- package/cjs/guideTypes.d.ts +117 -0
- package/cjs/guideTypes.js +15 -0
- package/cjs/index.d.ts +6 -0
- package/cjs/index.js +25 -11
- package/cjs/liveAudioProcessor.d.ts +92 -0
- package/cjs/liveAudioProcessor.js +269 -0
- package/cjs/liveAudioQueue.d.ts +40 -0
- package/cjs/liveAudioQueue.js +130 -0
- package/cjs/liveAudioWorklet.d.ts +1 -0
- package/cjs/liveAudioWorklet.js +63 -0
- package/cjs/liveBrowserDetector.d.ts +16 -0
- package/cjs/liveBrowserDetector.js +75 -0
- package/cjs/liveBrowserDetectorWorker.d.ts +1 -0
- package/cjs/liveBrowserDetectorWorker.js +72 -0
- package/cjs/liveControlChannel.d.ts +176 -0
- package/cjs/liveControlChannel.js +829 -0
- package/cjs/liveDuplexMedia.d.ts +204 -0
- package/cjs/liveDuplexMedia.js +740 -0
- package/cjs/liveGuideAdmission.d.ts +21 -0
- package/cjs/liveGuideAdmission.js +94 -0
- package/cjs/liveGuideWidget.d.ts +68 -0
- package/cjs/liveGuideWidget.js +451 -0
- package/cjs/liveSpeechAssets.d.ts +36 -0
- package/cjs/liveSpeechAssets.js +39 -0
- package/cjs/liveSpeechCaptureBridge.d.ts +32 -0
- package/cjs/liveSpeechCaptureBridge.js +140 -0
- package/cjs/liveSpeechDetector.d.ts +62 -0
- package/cjs/liveSpeechDetector.js +206 -0
- package/cjs/liveSpeechModel.d.ts +46 -0
- package/cjs/liveSpeechModel.js +105 -0
- package/cjs/liveSpeechResampler.d.ts +22 -0
- package/cjs/liveSpeechResampler.js +93 -0
- package/cjs/liveSpeechWorker.d.ts +56 -0
- package/cjs/liveSpeechWorker.js +143 -0
- package/cjs/locales/resources.js +568 -8
- package/cjs/media.d.ts +11 -0
- package/cjs/media.js +78 -9
- package/cjs/messages.js +22 -8
- package/cjs/pageAssistancePreference.d.ts +15 -3
- package/cjs/pageAssistancePreference.js +46 -7
- package/cjs/preview.d.ts +4 -1
- package/cjs/preview.js +42 -1
- package/cjs/recording.d.ts +12 -0
- package/cjs/recording.js +150 -0
- package/cjs/standalone.d.ts +6 -0
- package/cjs/standalone.js +12 -0
- package/cjs/types.d.ts +31 -5
- package/cjs/types.js +14 -0
- package/cjs/ui.d.ts +128 -4
- package/cjs/ui.js +1918 -276
- package/cjs/version.d.ts +1 -1
- package/cjs/version.js +1 -1
- package/cjs/voicePresenceUi.d.ts +52 -4
- package/cjs/voicePresenceUi.js +659 -57
- package/lib/AiLiveAssist.d.ts +76 -11
- package/lib/AiLiveAssist.js +1772 -299
- package/lib/client.d.ts +19 -0
- package/lib/client.js +51 -0
- package/lib/context.d.ts +23 -1
- package/lib/context.js +713 -126
- package/lib/control.d.ts +2 -0
- package/lib/control.js +42 -3
- package/lib/ctaOffer.d.ts +11 -0
- package/lib/ctaOffer.js +179 -0
- package/lib/dialogFocusScope.js +1 -1
- package/lib/guideAdmission.d.ts +46 -0
- package/lib/guideAdmission.js +392 -0
- package/lib/guideHost.d.ts +47 -0
- package/lib/guideHost.js +42 -0
- package/lib/guideInstallation.d.ts +12 -0
- package/lib/guideInstallation.js +56 -0
- package/lib/guideInstaller.d.ts +4 -0
- package/lib/guideInstaller.js +113 -0
- package/lib/guideMount.d.ts +22 -0
- package/lib/guideMount.js +77 -0
- package/lib/guideRecording.d.ts +64 -0
- package/lib/guideRecording.js +172 -0
- package/lib/guideRecordingSession.d.ts +35 -0
- package/lib/guideRecordingSession.js +163 -0
- package/lib/guideSubjectStore.d.ts +32 -0
- package/lib/guideSubjectStore.js +101 -0
- package/lib/guideTypes.d.ts +117 -0
- package/lib/guideTypes.js +11 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +21 -10
- package/lib/liveAudioProcessor.d.ts +92 -0
- package/lib/liveAudioProcessor.js +265 -0
- package/lib/liveAudioQueue.d.ts +40 -0
- package/lib/liveAudioQueue.js +126 -0
- package/lib/liveAudioWorklet.d.ts +1 -0
- package/lib/liveAudioWorklet.js +61 -0
- package/lib/liveBrowserDetector.d.ts +16 -0
- package/lib/liveBrowserDetector.js +71 -0
- package/lib/liveBrowserDetectorWorker.d.ts +1 -0
- package/lib/liveBrowserDetectorWorker.js +70 -0
- package/lib/liveControlChannel.d.ts +176 -0
- package/lib/liveControlChannel.js +825 -0
- package/lib/liveDuplexMedia.d.ts +204 -0
- package/lib/liveDuplexMedia.js +736 -0
- package/lib/liveGuideAdmission.d.ts +21 -0
- package/lib/liveGuideAdmission.js +90 -0
- package/lib/liveGuideWidget.d.ts +68 -0
- package/lib/liveGuideWidget.js +447 -0
- package/lib/liveSpeechAssets.d.ts +36 -0
- package/lib/liveSpeechAssets.js +35 -0
- package/lib/liveSpeechCaptureBridge.d.ts +32 -0
- package/lib/liveSpeechCaptureBridge.js +136 -0
- package/lib/liveSpeechDetector.d.ts +62 -0
- package/lib/liveSpeechDetector.js +202 -0
- package/lib/liveSpeechModel.d.ts +46 -0
- package/lib/liveSpeechModel.js +101 -0
- package/lib/liveSpeechResampler.d.ts +22 -0
- package/lib/liveSpeechResampler.js +89 -0
- package/lib/liveSpeechWorker.d.ts +56 -0
- package/lib/liveSpeechWorker.js +137 -0
- package/lib/locales/resources.js +568 -8
- package/lib/media.d.ts +11 -0
- package/lib/media.js +77 -8
- package/lib/messages.js +22 -8
- package/lib/pageAssistancePreference.d.ts +15 -3
- package/lib/pageAssistancePreference.js +46 -7
- package/lib/preview.d.ts +4 -1
- package/lib/preview.js +42 -1
- package/lib/recording.d.ts +12 -0
- package/lib/recording.js +146 -0
- package/lib/standalone.d.ts +6 -0
- package/lib/standalone.js +6 -0
- package/lib/types.d.ts +31 -5
- package/lib/types.js +14 -0
- package/lib/ui.d.ts +128 -4
- package/lib/ui.js +1919 -277
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/voicePresenceUi.d.ts +52 -4
- package/lib/voicePresenceUi.js +659 -57
- package/package.json +16 -1
package/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "7.
|
|
1
|
+
export declare const VERSION = "7.5.0";
|
package/cjs/version.js
CHANGED
package/cjs/voicePresenceUi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssistMode, BootstrapConfig, CapabilityTier, HandoffContextRequest, HandoffContextStatus, PageAssistanceRequest, VisualContextRequest, WidgetMessageKey } from "./types.js";
|
|
1
|
+
import type { AssistMode, BootstrapConfig, CapabilityTier, CtaOffer, HandoffContextRequest, HandoffContextStatus, PageAssistanceRequest, VisualContextRequest, WidgetMessageKey } from "./types.js";
|
|
2
2
|
import type { WidgetCallbacks } from "./ui.js";
|
|
3
3
|
type Confirmation = {
|
|
4
4
|
actionId: string;
|
|
@@ -14,6 +14,8 @@ type ServerPresenceState = "ready" | "listening" | "thinking" | "speaking" | "ac
|
|
|
14
14
|
export declare class VoicePresenceView {
|
|
15
15
|
private readonly callbacks;
|
|
16
16
|
private readonly onFallback;
|
|
17
|
+
private ctaCard;
|
|
18
|
+
private ctaSlot;
|
|
17
19
|
private config;
|
|
18
20
|
private voiceConfig;
|
|
19
21
|
private messages;
|
|
@@ -58,9 +60,26 @@ export declare class VoicePresenceView {
|
|
|
58
60
|
private statusTimer;
|
|
59
61
|
private attributionTimer;
|
|
60
62
|
private audioContext;
|
|
63
|
+
private audioContextStateListener;
|
|
61
64
|
private playbackResumePending;
|
|
62
|
-
private
|
|
65
|
+
private outputSources;
|
|
66
|
+
private outputAnalysisStreams;
|
|
67
|
+
private outputAnalysedTracks;
|
|
63
68
|
private outputAnalyser;
|
|
69
|
+
private outputSilentSink;
|
|
70
|
+
private outputEvidenceFloatBuffer;
|
|
71
|
+
private outputEvidenceByteBuffer;
|
|
72
|
+
private outputEvidenceTimer;
|
|
73
|
+
private outputEvidenceGeneration;
|
|
74
|
+
private outputEvidenceAttackWindow;
|
|
75
|
+
private outputEvidenceQuietSince;
|
|
76
|
+
private outputEvidenceAudible;
|
|
77
|
+
private outputEvidenceCandidateUntil;
|
|
78
|
+
private outputEvidenceLastRms;
|
|
79
|
+
private playbackGeneration;
|
|
80
|
+
private playbackStateBindings;
|
|
81
|
+
private boundRemoteAudioStreams;
|
|
82
|
+
private boundRemoteAudioTracks;
|
|
64
83
|
private inputSource;
|
|
65
84
|
private inputAnalyser;
|
|
66
85
|
private levelFrame;
|
|
@@ -94,7 +113,10 @@ export declare class VoicePresenceView {
|
|
|
94
113
|
showRequestingMicrophone(): void;
|
|
95
114
|
showConnecting(resume?: boolean, _mode?: AssistMode): void;
|
|
96
115
|
showActive(welcomeMessage?: string | null): void;
|
|
97
|
-
addCaption(role: CaptionRole, text: string, final: boolean
|
|
116
|
+
addCaption(role: CaptionRole, text: string, final: boolean, _options?: {
|
|
117
|
+
sourceTurnId?: string;
|
|
118
|
+
restored?: boolean;
|
|
119
|
+
}): void;
|
|
98
120
|
showConfirmation(value: Confirmation): void;
|
|
99
121
|
showActionState(status: "running" | "verified" | "failed" | "unconfirmed"): void;
|
|
100
122
|
dismissActionState(): void;
|
|
@@ -114,7 +136,8 @@ export declare class VoicePresenceView {
|
|
|
114
136
|
setMuted(_value: boolean): void;
|
|
115
137
|
configureVoiceControls(_voice: boolean, _manual: boolean, _canUseAutomatic: boolean): void;
|
|
116
138
|
setManualTurn(_value: boolean): void;
|
|
117
|
-
setPushActive(_value: boolean):
|
|
139
|
+
setPushActive(_value: boolean): boolean;
|
|
140
|
+
setPushPending(_value: boolean): boolean;
|
|
118
141
|
interruptPlayback(): void;
|
|
119
142
|
showError(message?: string, retryable?: boolean, sessionActive?: boolean): void;
|
|
120
143
|
showEndingDetached(message?: string): void;
|
|
@@ -132,13 +155,34 @@ export declare class VoicePresenceView {
|
|
|
132
155
|
proposalChecksum: string;
|
|
133
156
|
}): boolean;
|
|
134
157
|
destroy(): void;
|
|
158
|
+
showCtaOffer(value: CtaOffer, options?: {
|
|
159
|
+
announce?: boolean;
|
|
160
|
+
}): void;
|
|
161
|
+
clearCtaOffer(): void;
|
|
135
162
|
private build;
|
|
136
163
|
private bind;
|
|
137
164
|
private bindPlaybackState;
|
|
165
|
+
private unbindPlaybackState;
|
|
166
|
+
private playbackSourceIsCurrent;
|
|
167
|
+
private applyPlaybackInactiveState;
|
|
138
168
|
private resumeRemotePlayback;
|
|
139
169
|
private effectivePresenceState;
|
|
140
170
|
private syncPresenceFromPlayback;
|
|
141
171
|
private syncLevelLoop;
|
|
172
|
+
private remoteAudioIsAudible;
|
|
173
|
+
private remoteAudioTrackIsPlayable;
|
|
174
|
+
private bindRemoteAudioTrackState;
|
|
175
|
+
private updateOutputEvidenceExpectation;
|
|
176
|
+
private outputEvidenceNow;
|
|
177
|
+
private outputEvidenceCandidateIsCurrent;
|
|
178
|
+
private outputEvidenceVisualStateIsEligible;
|
|
179
|
+
private startOutputEvidenceSampling;
|
|
180
|
+
private sampleOutputEvidence;
|
|
181
|
+
private readOutputEvidence;
|
|
182
|
+
private stopOutputEvidenceSampling;
|
|
183
|
+
private resetOutputEvidenceAttack;
|
|
184
|
+
private resetOutputEvidenceState;
|
|
185
|
+
private syncOutputLevel;
|
|
142
186
|
private emitPlaybackState;
|
|
143
187
|
private applyConfig;
|
|
144
188
|
private openActivation;
|
|
@@ -155,6 +199,7 @@ export declare class VoicePresenceView {
|
|
|
155
199
|
private resolveVisualRequest;
|
|
156
200
|
private resolveHandoffContextRequest;
|
|
157
201
|
private renderRecoveryCard;
|
|
202
|
+
private dismissRecoveryCard;
|
|
158
203
|
private hideRecoveryCard;
|
|
159
204
|
private syncSubtitleOcclusion;
|
|
160
205
|
private configuredFallback;
|
|
@@ -171,7 +216,10 @@ export declare class VoicePresenceView {
|
|
|
171
216
|
private renderHighlight;
|
|
172
217
|
private announce;
|
|
173
218
|
private ensureAudioContext;
|
|
219
|
+
private resumeOutputAudioContext;
|
|
174
220
|
private connectOutputAnalyser;
|
|
221
|
+
private outputAnalyserMatchesStream;
|
|
222
|
+
private disconnectOutputAnalyser;
|
|
175
223
|
private startLevelLoop;
|
|
176
224
|
private stopLevelLoop;
|
|
177
225
|
private stopAudio;
|