@absolutejs/voice 0.0.22-beta.117 → 0.0.22-beta.119
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/dist/vue/index.js +27 -25
- package/dist/vue/useVoiceAppKitStatus.d.ts +1 -1
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +1 -1
- package/dist/vue/useVoiceController.d.ts +1 -1
- package/dist/vue/useVoiceProviderCapabilities.d.ts +1 -1
- package/dist/vue/useVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/vue/useVoiceProviderStatus.d.ts +1 -1
- package/dist/vue/useVoiceRoutingStatus.d.ts +1 -1
- package/dist/vue/useVoiceStream.d.ts +1 -1
- package/dist/vue/useVoiceTraceTimeline.d.ts +1 -1
- package/dist/vue/useVoiceTurnLatency.d.ts +1 -1
- package/dist/vue/useVoiceTurnQuality.d.ts +1 -1
- package/dist/vue/useVoiceWorkflowStatus.d.ts +1 -1
- package/package.json +1 -1
package/dist/vue/index.js
CHANGED
|
@@ -278,7 +278,7 @@ var defineVoiceOpsStatusElement = (tagName = "absolute-voice-ops-status") => {
|
|
|
278
278
|
|
|
279
279
|
// src/vue/useVoiceAppKitStatus.ts
|
|
280
280
|
import { onUnmounted, ref, shallowRef } from "vue";
|
|
281
|
-
|
|
281
|
+
function useVoiceAppKitStatus(path = "/app-kit/status", options = {}) {
|
|
282
282
|
const store = createVoiceAppKitStatusStore(path, options);
|
|
283
283
|
const error = ref(null);
|
|
284
284
|
const isLoading = ref(false);
|
|
@@ -307,7 +307,7 @@ var useVoiceAppKitStatus = (path = "/app-kit/status", options = {}) => {
|
|
|
307
307
|
report,
|
|
308
308
|
updatedAt
|
|
309
309
|
};
|
|
310
|
-
}
|
|
310
|
+
}
|
|
311
311
|
|
|
312
312
|
// src/vue/VoiceOpsStatus.ts
|
|
313
313
|
var VoiceOpsStatus = defineComponent({
|
|
@@ -555,7 +555,7 @@ var defineVoiceProviderSimulationControlsElement = (tagName = "absolute-voice-pr
|
|
|
555
555
|
|
|
556
556
|
// src/vue/useVoiceProviderSimulationControls.ts
|
|
557
557
|
import { onUnmounted as onUnmounted2, ref as ref2 } from "vue";
|
|
558
|
-
|
|
558
|
+
function useVoiceProviderSimulationControls(options) {
|
|
559
559
|
const store = createVoiceProviderSimulationControlsStore(options);
|
|
560
560
|
const error = ref2(null);
|
|
561
561
|
const isRunning = ref2(false);
|
|
@@ -587,7 +587,7 @@ var useVoiceProviderSimulationControls = (options) => {
|
|
|
587
587
|
run: store.run,
|
|
588
588
|
updatedAt
|
|
589
589
|
};
|
|
590
|
-
}
|
|
590
|
+
}
|
|
591
591
|
|
|
592
592
|
// src/vue/VoiceProviderSimulationControls.ts
|
|
593
593
|
var VoiceProviderSimulationControls = defineComponent2({
|
|
@@ -865,7 +865,7 @@ var defineVoiceProviderCapabilitiesElement = (tagName = "absolute-voice-provider
|
|
|
865
865
|
|
|
866
866
|
// src/vue/useVoiceProviderCapabilities.ts
|
|
867
867
|
import { onUnmounted as onUnmounted3, shallowRef as shallowRef2 } from "vue";
|
|
868
|
-
|
|
868
|
+
function useVoiceProviderCapabilities(path = "/api/provider-capabilities", options = {}) {
|
|
869
869
|
const store = createVoiceProviderCapabilitiesStore(path, options);
|
|
870
870
|
const error = shallowRef2(null);
|
|
871
871
|
const isLoading = shallowRef2(false);
|
|
@@ -892,7 +892,7 @@ var useVoiceProviderCapabilities = (path = "/api/provider-capabilities", options
|
|
|
892
892
|
report,
|
|
893
893
|
updatedAt
|
|
894
894
|
};
|
|
895
|
-
}
|
|
895
|
+
}
|
|
896
896
|
|
|
897
897
|
// src/vue/VoiceProviderCapabilities.ts
|
|
898
898
|
var VoiceProviderCapabilities = defineComponent3({
|
|
@@ -1168,7 +1168,7 @@ var defineVoiceProviderStatusElement = (tagName = "absolute-voice-provider-statu
|
|
|
1168
1168
|
|
|
1169
1169
|
// src/vue/useVoiceProviderStatus.ts
|
|
1170
1170
|
import { onUnmounted as onUnmounted4, ref as ref3, shallowRef as shallowRef3 } from "vue";
|
|
1171
|
-
|
|
1171
|
+
function useVoiceProviderStatus(path = "/api/provider-status", options = {}) {
|
|
1172
1172
|
const store = createVoiceProviderStatusStore(path, options);
|
|
1173
1173
|
const error = ref3(null);
|
|
1174
1174
|
const isLoading = ref3(false);
|
|
@@ -1195,7 +1195,7 @@ var useVoiceProviderStatus = (path = "/api/provider-status", options = {}) => {
|
|
|
1195
1195
|
refresh: store.refresh,
|
|
1196
1196
|
updatedAt
|
|
1197
1197
|
};
|
|
1198
|
-
}
|
|
1198
|
+
}
|
|
1199
1199
|
|
|
1200
1200
|
// src/vue/VoiceProviderStatus.ts
|
|
1201
1201
|
var VoiceProviderStatus = defineComponent4({
|
|
@@ -1444,7 +1444,7 @@ var defineVoiceRoutingStatusElement = (tagName = "absolute-voice-routing-status"
|
|
|
1444
1444
|
|
|
1445
1445
|
// src/vue/useVoiceRoutingStatus.ts
|
|
1446
1446
|
import { onUnmounted as onUnmounted5, ref as ref4, shallowRef as shallowRef4 } from "vue";
|
|
1447
|
-
|
|
1447
|
+
function useVoiceRoutingStatus(path = "/api/routing/latest", options = {}) {
|
|
1448
1448
|
const store = createVoiceRoutingStatusStore(path, options);
|
|
1449
1449
|
const decision = shallowRef4(null);
|
|
1450
1450
|
const error = ref4(null);
|
|
@@ -1471,7 +1471,7 @@ var useVoiceRoutingStatus = (path = "/api/routing/latest", options = {}) => {
|
|
|
1471
1471
|
refresh: store.refresh,
|
|
1472
1472
|
updatedAt
|
|
1473
1473
|
};
|
|
1474
|
-
}
|
|
1474
|
+
}
|
|
1475
1475
|
|
|
1476
1476
|
// src/vue/VoiceRoutingStatus.ts
|
|
1477
1477
|
var VoiceRoutingStatus = defineComponent5({
|
|
@@ -1739,7 +1739,7 @@ var defineVoiceTurnLatencyElement = (tagName = "absolute-voice-turn-latency") =>
|
|
|
1739
1739
|
|
|
1740
1740
|
// src/vue/useVoiceTurnLatency.ts
|
|
1741
1741
|
import { onUnmounted as onUnmounted6, shallowRef as shallowRef5 } from "vue";
|
|
1742
|
-
|
|
1742
|
+
function useVoiceTurnLatency(path = "/api/turn-latency", options = {}) {
|
|
1743
1743
|
const store = createVoiceTurnLatencyStore(path, options);
|
|
1744
1744
|
const error = shallowRef5(null);
|
|
1745
1745
|
const isLoading = shallowRef5(false);
|
|
@@ -1767,7 +1767,7 @@ var useVoiceTurnLatency = (path = "/api/turn-latency", options = {}) => {
|
|
|
1767
1767
|
runProof: store.runProof,
|
|
1768
1768
|
updatedAt
|
|
1769
1769
|
};
|
|
1770
|
-
}
|
|
1770
|
+
}
|
|
1771
1771
|
|
|
1772
1772
|
// src/vue/VoiceTurnLatency.ts
|
|
1773
1773
|
var VoiceTurnLatency = defineComponent6({
|
|
@@ -2031,7 +2031,7 @@ var defineVoiceTurnQualityElement = (tagName = "absolute-voice-turn-quality") =>
|
|
|
2031
2031
|
|
|
2032
2032
|
// src/vue/useVoiceTurnQuality.ts
|
|
2033
2033
|
import { onUnmounted as onUnmounted7, shallowRef as shallowRef6 } from "vue";
|
|
2034
|
-
|
|
2034
|
+
function useVoiceTurnQuality(path = "/api/turn-quality", options = {}) {
|
|
2035
2035
|
const store = createVoiceTurnQualityStore(path, options);
|
|
2036
2036
|
const error = shallowRef6(null);
|
|
2037
2037
|
const isLoading = shallowRef6(false);
|
|
@@ -2052,7 +2052,7 @@ var useVoiceTurnQuality = (path = "/api/turn-quality", options = {}) => {
|
|
|
2052
2052
|
store.close();
|
|
2053
2053
|
});
|
|
2054
2054
|
return { error, isLoading, refresh: store.refresh, report, updatedAt };
|
|
2055
|
-
}
|
|
2055
|
+
}
|
|
2056
2056
|
|
|
2057
2057
|
// src/vue/VoiceTurnQuality.ts
|
|
2058
2058
|
var VoiceTurnQuality = defineComponent7({
|
|
@@ -2232,7 +2232,7 @@ var createVoiceCampaignDialerProofStore = (path = "/api/voice/campaigns/dialer-p
|
|
|
2232
2232
|
};
|
|
2233
2233
|
|
|
2234
2234
|
// src/vue/useVoiceCampaignDialerProof.ts
|
|
2235
|
-
|
|
2235
|
+
function useVoiceCampaignDialerProof(path = "/api/voice/campaigns/dialer-proof", options = {}) {
|
|
2236
2236
|
const store = createVoiceCampaignDialerProofStore(path, options);
|
|
2237
2237
|
const error = shallowRef7(null);
|
|
2238
2238
|
const isLoading = shallowRef7(false);
|
|
@@ -2249,7 +2249,9 @@ var useVoiceCampaignDialerProof = (path = "/api/voice/campaigns/dialer-proof", o
|
|
|
2249
2249
|
};
|
|
2250
2250
|
const unsubscribe = store.subscribe(sync);
|
|
2251
2251
|
sync();
|
|
2252
|
-
|
|
2252
|
+
if (typeof window !== "undefined") {
|
|
2253
|
+
store.refresh().catch(() => {});
|
|
2254
|
+
}
|
|
2253
2255
|
onUnmounted8(() => {
|
|
2254
2256
|
unsubscribe();
|
|
2255
2257
|
store.close();
|
|
@@ -2263,7 +2265,7 @@ var useVoiceCampaignDialerProof = (path = "/api/voice/campaigns/dialer-proof", o
|
|
|
2263
2265
|
status,
|
|
2264
2266
|
updatedAt
|
|
2265
2267
|
};
|
|
2266
|
-
}
|
|
2268
|
+
}
|
|
2267
2269
|
// src/vue/useVoiceStream.ts
|
|
2268
2270
|
import { onUnmounted as onUnmounted9, ref as ref5, shallowRef as shallowRef8 } from "vue";
|
|
2269
2271
|
|
|
@@ -2781,7 +2783,7 @@ var createVoiceStream = (path, options = {}) => {
|
|
|
2781
2783
|
};
|
|
2782
2784
|
|
|
2783
2785
|
// src/vue/useVoiceStream.ts
|
|
2784
|
-
|
|
2786
|
+
function useVoiceStream(path, options = {}) {
|
|
2785
2787
|
const stream = createVoiceStream(path, options);
|
|
2786
2788
|
const assistantAudio = shallowRef8([]);
|
|
2787
2789
|
const assistantTexts = shallowRef8([]);
|
|
@@ -2825,7 +2827,7 @@ var useVoiceStream = (path, options = {}) => {
|
|
|
2825
2827
|
status,
|
|
2826
2828
|
turns
|
|
2827
2829
|
};
|
|
2828
|
-
}
|
|
2830
|
+
}
|
|
2829
2831
|
// src/vue/useVoiceController.ts
|
|
2830
2832
|
import { onUnmounted as onUnmounted10, ref as ref6, shallowRef as shallowRef9 } from "vue";
|
|
2831
2833
|
|
|
@@ -3466,7 +3468,7 @@ var createVoiceController = (path, options = {}) => {
|
|
|
3466
3468
|
};
|
|
3467
3469
|
|
|
3468
3470
|
// src/vue/useVoiceController.ts
|
|
3469
|
-
|
|
3471
|
+
function useVoiceController(path, options = {}) {
|
|
3470
3472
|
const controller = createVoiceController(path, options);
|
|
3471
3473
|
const assistantAudio = shallowRef9([]);
|
|
3472
3474
|
const assistantTexts = shallowRef9([]);
|
|
@@ -3516,7 +3518,7 @@ var useVoiceController = (path, options = {}) => {
|
|
|
3516
3518
|
toggleRecording: () => controller.toggleRecording(),
|
|
3517
3519
|
turns
|
|
3518
3520
|
};
|
|
3519
|
-
}
|
|
3521
|
+
}
|
|
3520
3522
|
// src/vue/useVoiceTraceTimeline.ts
|
|
3521
3523
|
import { onUnmounted as onUnmounted11, ref as ref7, shallowRef as shallowRef10 } from "vue";
|
|
3522
3524
|
|
|
@@ -3601,7 +3603,7 @@ var createVoiceTraceTimelineStore = (path = "/api/voice-traces", options = {}) =
|
|
|
3601
3603
|
};
|
|
3602
3604
|
|
|
3603
3605
|
// src/vue/useVoiceTraceTimeline.ts
|
|
3604
|
-
|
|
3606
|
+
function useVoiceTraceTimeline(path = "/api/voice-traces", options = {}) {
|
|
3605
3607
|
const store = createVoiceTraceTimelineStore(path, options);
|
|
3606
3608
|
const error = ref7(null);
|
|
3607
3609
|
const isLoading = ref7(false);
|
|
@@ -3628,7 +3630,7 @@ var useVoiceTraceTimeline = (path = "/api/voice-traces", options = {}) => {
|
|
|
3628
3630
|
report,
|
|
3629
3631
|
updatedAt
|
|
3630
3632
|
};
|
|
3631
|
-
}
|
|
3633
|
+
}
|
|
3632
3634
|
// src/vue/useVoiceWorkflowStatus.ts
|
|
3633
3635
|
import { onUnmounted as onUnmounted12, ref as ref8, shallowRef as shallowRef11 } from "vue";
|
|
3634
3636
|
|
|
@@ -3712,7 +3714,7 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
|
|
|
3712
3714
|
};
|
|
3713
3715
|
|
|
3714
3716
|
// src/vue/useVoiceWorkflowStatus.ts
|
|
3715
|
-
|
|
3717
|
+
function useVoiceWorkflowStatus(path = "/evals/scenarios/json", options = {}) {
|
|
3716
3718
|
const store = createVoiceWorkflowStatusStore(path, options);
|
|
3717
3719
|
const error = ref8(null);
|
|
3718
3720
|
const isLoading = ref8(false);
|
|
@@ -3741,7 +3743,7 @@ var useVoiceWorkflowStatus = (path = "/evals/scenarios/json", options = {}) => {
|
|
|
3741
3743
|
report,
|
|
3742
3744
|
updatedAt
|
|
3743
3745
|
};
|
|
3744
|
-
}
|
|
3746
|
+
}
|
|
3745
3747
|
export {
|
|
3746
3748
|
useVoiceWorkflowStatus,
|
|
3747
3749
|
useVoiceTurnQuality,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type VoiceAppKitStatusClientOptions } from '../client/appKitStatus';
|
|
2
2
|
import type { VoiceAppKitStatusReport } from '../appKit';
|
|
3
|
-
export declare
|
|
3
|
+
export declare function useVoiceAppKitStatus(path?: string, options?: VoiceAppKitStatusClientOptions): {
|
|
4
4
|
error: import("vue").Ref<string | null, string | null>;
|
|
5
5
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
6
6
|
refresh: () => Promise<VoiceAppKitStatusReport | undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type VoiceCampaignDialerProofClientOptions } from '../client/campaignDialerProof';
|
|
2
2
|
import type { VoiceCampaignDialerProofReport, VoiceCampaignDialerProofStatus } from '../campaignDialers';
|
|
3
|
-
export declare
|
|
3
|
+
export declare function useVoiceCampaignDialerProof(path?: string, options?: VoiceCampaignDialerProofClientOptions): {
|
|
4
4
|
error: import("vue").ShallowRef<string | null, string | null>;
|
|
5
5
|
isLoading: import("vue").ShallowRef<boolean, boolean>;
|
|
6
6
|
refresh: () => Promise<VoiceCampaignDialerProofStatus | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VoiceControllerOptions, VoiceTurnRecord } from '../types';
|
|
2
|
-
export declare
|
|
2
|
+
export declare function useVoiceController<TResult = unknown>(path: string, options?: VoiceControllerOptions): {
|
|
3
3
|
assistantAudio: import("vue").ShallowRef<{
|
|
4
4
|
chunk: Uint8Array;
|
|
5
5
|
format: import("..").AudioFormat;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type VoiceProviderCapabilitiesClientOptions } from '../client/providerCapabilities';
|
|
2
2
|
import type { VoiceProviderCapabilityReport } from '../providerCapabilities';
|
|
3
|
-
export declare
|
|
3
|
+
export declare function useVoiceProviderCapabilities<TProvider extends string = string>(path?: string, options?: VoiceProviderCapabilitiesClientOptions): {
|
|
4
4
|
error: import("vue").ShallowRef<string | null, string | null>;
|
|
5
5
|
isLoading: import("vue").ShallowRef<boolean, boolean>;
|
|
6
6
|
refresh: () => Promise<VoiceProviderCapabilityReport<TProvider> | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VoiceProviderSimulationControlsOptions } from '../client/providerSimulationControls';
|
|
2
|
-
export declare
|
|
2
|
+
export declare function useVoiceProviderSimulationControls<TProvider extends string = string>(options: VoiceProviderSimulationControlsOptions<TProvider>): {
|
|
3
3
|
error: import("vue").Ref<string | null, string | null>;
|
|
4
4
|
isRunning: import("vue").Ref<boolean, boolean>;
|
|
5
5
|
lastResult: import("vue").Ref<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type VoiceProviderStatusClientOptions } from '../client/providerStatus';
|
|
2
2
|
import type { VoiceProviderHealthSummary } from '../providerHealth';
|
|
3
|
-
export declare
|
|
3
|
+
export declare function useVoiceProviderStatus<TProvider extends string = string>(path?: string, options?: VoiceProviderStatusClientOptions): {
|
|
4
4
|
error: import("vue").Ref<string | null, string | null>;
|
|
5
5
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
6
6
|
providers: import("vue").ShallowRef<VoiceProviderHealthSummary<TProvider>[], VoiceProviderHealthSummary<TProvider>[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VoiceRoutingStatusClientOptions } from '../client/routingStatus';
|
|
2
|
-
export declare
|
|
2
|
+
export declare function useVoiceRoutingStatus(path?: string, options?: VoiceRoutingStatusClientOptions): {
|
|
3
3
|
decision: import("vue").ShallowRef<import("..").VoiceRoutingEvent | null, import("..").VoiceRoutingEvent | null>;
|
|
4
4
|
error: import("vue").Ref<string | null, string | null>;
|
|
5
5
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VoiceConnectionOptions, VoiceTurnRecord } from '../types';
|
|
2
|
-
export declare
|
|
2
|
+
export declare function useVoiceStream<TResult = unknown>(path: string, options?: VoiceConnectionOptions): {
|
|
3
3
|
assistantAudio: import("vue").ShallowRef<{
|
|
4
4
|
chunk: Uint8Array;
|
|
5
5
|
format: import("..").AudioFormat;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type VoiceTraceTimelineClientOptions } from '../client/traceTimeline';
|
|
2
2
|
import type { VoiceTraceTimelineReport } from '../traceTimeline';
|
|
3
|
-
export declare
|
|
3
|
+
export declare function useVoiceTraceTimeline(path?: string, options?: VoiceTraceTimelineClientOptions): {
|
|
4
4
|
error: import("vue").Ref<string | null, string | null>;
|
|
5
5
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
6
6
|
refresh: () => Promise<VoiceTraceTimelineReport | null>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type VoiceTurnLatencyClientOptions } from '../client/turnLatency';
|
|
2
2
|
import type { VoiceTurnLatencyReport } from '../turnLatency';
|
|
3
|
-
export declare
|
|
3
|
+
export declare function useVoiceTurnLatency(path?: string, options?: VoiceTurnLatencyClientOptions): {
|
|
4
4
|
error: import("vue").ShallowRef<string | null, string | null>;
|
|
5
5
|
isLoading: import("vue").ShallowRef<boolean, boolean>;
|
|
6
6
|
refresh: () => Promise<VoiceTurnLatencyReport | undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type VoiceTurnQualityClientOptions } from '../client/turnQuality';
|
|
2
2
|
import type { VoiceTurnQualityReport } from '../turnQuality';
|
|
3
|
-
export declare
|
|
3
|
+
export declare function useVoiceTurnQuality(path?: string, options?: VoiceTurnQualityClientOptions): {
|
|
4
4
|
error: import("vue").ShallowRef<string | null, string | null>;
|
|
5
5
|
isLoading: import("vue").ShallowRef<boolean, boolean>;
|
|
6
6
|
refresh: () => Promise<VoiceTurnQualityReport | undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type VoiceWorkflowStatusClientOptions } from '../client/workflowStatus';
|
|
2
2
|
import type { VoiceScenarioEvalReport } from '../evalRoutes';
|
|
3
|
-
export declare
|
|
3
|
+
export declare function useVoiceWorkflowStatus(path?: string, options?: VoiceWorkflowStatusClientOptions): {
|
|
4
4
|
error: import("vue").Ref<string | null, string | null>;
|
|
5
5
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
6
6
|
refresh: () => Promise<VoiceScenarioEvalReport | undefined>;
|