@absolutejs/voice 0.0.22-beta.189 → 0.0.22-beta.190
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/angular/index.d.ts +1 -0
- package/dist/angular/index.js +277 -148
- package/dist/angular/voice-live-ops.service.d.ts +11 -0
- package/dist/client/index.d.ts +4 -0
- package/dist/client/index.js +1385 -105
- package/dist/client/liveOps.d.ts +22 -0
- package/dist/client/liveOpsWidget.d.ts +23 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +252 -59
- package/dist/liveOps.d.ts +122 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +119 -16
- package/dist/react/useVoiceLiveOps.d.ts +9 -0
- package/dist/svelte/createVoiceLiveOps.d.ts +13 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +1389 -101
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.js +165 -44
- package/dist/vue/useVoiceLiveOps.d.ts +9 -0
- package/package.json +1 -1
package/dist/angular/index.js
CHANGED
|
@@ -430,9 +430,137 @@ VoiceOpsActionCenterService = __decorateElement(_init, 0, "VoiceOpsActionCenterS
|
|
|
430
430
|
__runInitializers(_init, 1, VoiceOpsActionCenterService);
|
|
431
431
|
__decoratorMetadata(_init, VoiceOpsActionCenterService);
|
|
432
432
|
let _VoiceOpsActionCenterService = VoiceOpsActionCenterService;
|
|
433
|
-
// src/angular/voice-
|
|
433
|
+
// src/angular/voice-live-ops.service.ts
|
|
434
434
|
import { computed as computed3, Injectable as Injectable3, signal as signal3 } from "@angular/core";
|
|
435
435
|
|
|
436
|
+
// src/client/liveOps.ts
|
|
437
|
+
var postVoiceLiveOpsAction = async (input, options = {}) => {
|
|
438
|
+
if (!input.sessionId) {
|
|
439
|
+
throw new Error("Start a voice session before running live ops actions.");
|
|
440
|
+
}
|
|
441
|
+
const fetchImpl = options.fetch ?? globalThis.fetch;
|
|
442
|
+
const response = await fetchImpl(options.actionPath ?? "/api/voice/live-ops/action", {
|
|
443
|
+
body: JSON.stringify(input),
|
|
444
|
+
headers: {
|
|
445
|
+
"Content-Type": "application/json"
|
|
446
|
+
},
|
|
447
|
+
method: "POST"
|
|
448
|
+
});
|
|
449
|
+
const payload = await response.json().catch(() => null);
|
|
450
|
+
if (!response.ok || !payload?.ok) {
|
|
451
|
+
const message = payload && typeof payload === "object" && "error" in payload ? String(payload.error) : `Voice live ops action failed: HTTP ${response.status}`;
|
|
452
|
+
throw new Error(message);
|
|
453
|
+
}
|
|
454
|
+
return payload;
|
|
455
|
+
};
|
|
456
|
+
var createVoiceLiveOpsStore = (options = {}) => {
|
|
457
|
+
const listeners = new Set;
|
|
458
|
+
let closed = false;
|
|
459
|
+
let snapshot = {
|
|
460
|
+
error: null,
|
|
461
|
+
isRunning: false
|
|
462
|
+
};
|
|
463
|
+
const emit = () => {
|
|
464
|
+
for (const listener of listeners) {
|
|
465
|
+
listener();
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
const run = async (input) => {
|
|
469
|
+
if (closed) {
|
|
470
|
+
return snapshot.lastResult;
|
|
471
|
+
}
|
|
472
|
+
snapshot = {
|
|
473
|
+
...snapshot,
|
|
474
|
+
error: null,
|
|
475
|
+
isRunning: true,
|
|
476
|
+
runningAction: input.action
|
|
477
|
+
};
|
|
478
|
+
emit();
|
|
479
|
+
try {
|
|
480
|
+
const result = await postVoiceLiveOpsAction(input, options);
|
|
481
|
+
await options.onControl?.(result);
|
|
482
|
+
snapshot = {
|
|
483
|
+
...snapshot,
|
|
484
|
+
error: null,
|
|
485
|
+
isRunning: false,
|
|
486
|
+
lastResult: result,
|
|
487
|
+
runningAction: undefined,
|
|
488
|
+
updatedAt: Date.now()
|
|
489
|
+
};
|
|
490
|
+
emit();
|
|
491
|
+
return result;
|
|
492
|
+
} catch (error) {
|
|
493
|
+
snapshot = {
|
|
494
|
+
...snapshot,
|
|
495
|
+
error: error instanceof Error ? error.message : String(error),
|
|
496
|
+
isRunning: false,
|
|
497
|
+
runningAction: undefined,
|
|
498
|
+
updatedAt: Date.now()
|
|
499
|
+
};
|
|
500
|
+
emit();
|
|
501
|
+
throw error;
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
const close = () => {
|
|
505
|
+
closed = true;
|
|
506
|
+
listeners.clear();
|
|
507
|
+
};
|
|
508
|
+
return {
|
|
509
|
+
close,
|
|
510
|
+
getServerSnapshot: () => snapshot,
|
|
511
|
+
getSnapshot: () => snapshot,
|
|
512
|
+
run,
|
|
513
|
+
subscribe: (listener) => {
|
|
514
|
+
listeners.add(listener);
|
|
515
|
+
return () => {
|
|
516
|
+
listeners.delete(listener);
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
// src/angular/voice-live-ops.service.ts
|
|
523
|
+
var _dec = [
|
|
524
|
+
Injectable3({ providedIn: "root" })
|
|
525
|
+
];
|
|
526
|
+
var _init = __decoratorStart(undefined);
|
|
527
|
+
|
|
528
|
+
class VoiceLiveOpsService {
|
|
529
|
+
connect(options = {}) {
|
|
530
|
+
const store = createVoiceLiveOpsStore(options);
|
|
531
|
+
const errorSignal = signal3(null);
|
|
532
|
+
const isRunningSignal = signal3(false);
|
|
533
|
+
const lastResultSignal = signal3(undefined);
|
|
534
|
+
const runningActionSignal = signal3(undefined);
|
|
535
|
+
const sync = () => {
|
|
536
|
+
const snapshot = store.getSnapshot();
|
|
537
|
+
errorSignal.set(snapshot.error);
|
|
538
|
+
isRunningSignal.set(snapshot.isRunning);
|
|
539
|
+
lastResultSignal.set(snapshot.lastResult);
|
|
540
|
+
runningActionSignal.set(snapshot.runningAction);
|
|
541
|
+
};
|
|
542
|
+
const unsubscribe = store.subscribe(sync);
|
|
543
|
+
sync();
|
|
544
|
+
return {
|
|
545
|
+
close: () => {
|
|
546
|
+
unsubscribe();
|
|
547
|
+
store.close();
|
|
548
|
+
},
|
|
549
|
+
error: computed3(() => errorSignal()),
|
|
550
|
+
isRunning: computed3(() => isRunningSignal()),
|
|
551
|
+
lastResult: computed3(() => lastResultSignal()),
|
|
552
|
+
run: store.run,
|
|
553
|
+
runningAction: computed3(() => runningActionSignal())
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
VoiceLiveOpsService = __decorateElement(_init, 0, "VoiceLiveOpsService", _dec, VoiceLiveOpsService);
|
|
558
|
+
__runInitializers(_init, 1, VoiceLiveOpsService);
|
|
559
|
+
__decoratorMetadata(_init, VoiceLiveOpsService);
|
|
560
|
+
let _VoiceLiveOpsService = VoiceLiveOpsService;
|
|
561
|
+
// src/angular/voice-delivery-runtime.service.ts
|
|
562
|
+
import { computed as computed4, Injectable as Injectable4, signal as signal4 } from "@angular/core";
|
|
563
|
+
|
|
436
564
|
// src/client/deliveryRuntime.ts
|
|
437
565
|
var getDefaultActionPath = (path, action, options) => {
|
|
438
566
|
if (action === "tick") {
|
|
@@ -572,19 +700,19 @@ var createVoiceDeliveryRuntimeStore = (path = "/api/voice-delivery-runtime", opt
|
|
|
572
700
|
|
|
573
701
|
// src/angular/voice-delivery-runtime.service.ts
|
|
574
702
|
var _dec = [
|
|
575
|
-
|
|
703
|
+
Injectable4({ providedIn: "root" })
|
|
576
704
|
];
|
|
577
705
|
var _init = __decoratorStart(undefined);
|
|
578
706
|
|
|
579
707
|
class VoiceDeliveryRuntimeService {
|
|
580
708
|
connect(path = "/api/voice-delivery-runtime", options = {}) {
|
|
581
709
|
const store = createVoiceDeliveryRuntimeStore(path, options);
|
|
582
|
-
const actionErrorSignal =
|
|
583
|
-
const actionStatusSignal =
|
|
584
|
-
const errorSignal =
|
|
585
|
-
const isLoadingSignal =
|
|
586
|
-
const reportSignal =
|
|
587
|
-
const updatedAtSignal =
|
|
710
|
+
const actionErrorSignal = signal4(null);
|
|
711
|
+
const actionStatusSignal = signal4("idle");
|
|
712
|
+
const errorSignal = signal4(null);
|
|
713
|
+
const isLoadingSignal = signal4(false);
|
|
714
|
+
const reportSignal = signal4(undefined);
|
|
715
|
+
const updatedAtSignal = signal4(undefined);
|
|
588
716
|
const sync = () => {
|
|
589
717
|
const snapshot = store.getSnapshot();
|
|
590
718
|
actionErrorSignal.set(snapshot.actionError);
|
|
@@ -604,15 +732,15 @@ class VoiceDeliveryRuntimeService {
|
|
|
604
732
|
unsubscribe();
|
|
605
733
|
store.close();
|
|
606
734
|
},
|
|
607
|
-
error:
|
|
608
|
-
actionError:
|
|
609
|
-
actionStatus:
|
|
610
|
-
isLoading:
|
|
735
|
+
error: computed4(() => errorSignal()),
|
|
736
|
+
actionError: computed4(() => actionErrorSignal()),
|
|
737
|
+
actionStatus: computed4(() => actionStatusSignal()),
|
|
738
|
+
isLoading: computed4(() => isLoadingSignal()),
|
|
611
739
|
requeueDeadLetters: store.requeueDeadLetters,
|
|
612
740
|
refresh: store.refresh,
|
|
613
|
-
report:
|
|
741
|
+
report: computed4(() => reportSignal()),
|
|
614
742
|
tick: store.tick,
|
|
615
|
-
updatedAt:
|
|
743
|
+
updatedAt: computed4(() => updatedAtSignal())
|
|
616
744
|
};
|
|
617
745
|
}
|
|
618
746
|
}
|
|
@@ -621,7 +749,7 @@ __runInitializers(_init, 1, VoiceDeliveryRuntimeService);
|
|
|
621
749
|
__decoratorMetadata(_init, VoiceDeliveryRuntimeService);
|
|
622
750
|
let _VoiceDeliveryRuntimeService = VoiceDeliveryRuntimeService;
|
|
623
751
|
// src/angular/voice-campaign-dialer-proof.service.ts
|
|
624
|
-
import { computed as
|
|
752
|
+
import { computed as computed5, Injectable as Injectable5, signal as signal5 } from "@angular/core";
|
|
625
753
|
|
|
626
754
|
// src/client/campaignDialerProof.ts
|
|
627
755
|
var fetchVoiceCampaignDialerProofStatus = async (path = "/api/voice/campaigns/dialer-proof", options = {}) => {
|
|
@@ -743,18 +871,18 @@ var createVoiceCampaignDialerProofStore = (path = "/api/voice/campaigns/dialer-p
|
|
|
743
871
|
|
|
744
872
|
// src/angular/voice-campaign-dialer-proof.service.ts
|
|
745
873
|
var _dec = [
|
|
746
|
-
|
|
874
|
+
Injectable5({ providedIn: "root" })
|
|
747
875
|
];
|
|
748
876
|
var _init = __decoratorStart(undefined);
|
|
749
877
|
|
|
750
878
|
class VoiceCampaignDialerProofService {
|
|
751
879
|
connect(path = "/api/voice/campaigns/dialer-proof", options = {}) {
|
|
752
880
|
const store = createVoiceCampaignDialerProofStore(path, options);
|
|
753
|
-
const errorSignal =
|
|
754
|
-
const isLoadingSignal =
|
|
755
|
-
const reportSignal =
|
|
756
|
-
const statusSignal =
|
|
757
|
-
const updatedAtSignal =
|
|
881
|
+
const errorSignal = signal5(null);
|
|
882
|
+
const isLoadingSignal = signal5(false);
|
|
883
|
+
const reportSignal = signal5(undefined);
|
|
884
|
+
const statusSignal = signal5(undefined);
|
|
885
|
+
const updatedAtSignal = signal5(undefined);
|
|
758
886
|
const sync = () => {
|
|
759
887
|
const snapshot = store.getSnapshot();
|
|
760
888
|
errorSignal.set(snapshot.error);
|
|
@@ -771,13 +899,13 @@ class VoiceCampaignDialerProofService {
|
|
|
771
899
|
unsubscribe();
|
|
772
900
|
store.close();
|
|
773
901
|
},
|
|
774
|
-
error:
|
|
775
|
-
isLoading:
|
|
902
|
+
error: computed5(() => errorSignal()),
|
|
903
|
+
isLoading: computed5(() => isLoadingSignal()),
|
|
776
904
|
refresh: store.refresh,
|
|
777
|
-
report:
|
|
905
|
+
report: computed5(() => reportSignal()),
|
|
778
906
|
runProof: store.runProof,
|
|
779
|
-
status:
|
|
780
|
-
updatedAt:
|
|
907
|
+
status: computed5(() => statusSignal()),
|
|
908
|
+
updatedAt: computed5(() => updatedAtSignal())
|
|
781
909
|
};
|
|
782
910
|
}
|
|
783
911
|
}
|
|
@@ -786,7 +914,7 @@ __runInitializers(_init, 1, VoiceCampaignDialerProofService);
|
|
|
786
914
|
__decoratorMetadata(_init, VoiceCampaignDialerProofService);
|
|
787
915
|
let _VoiceCampaignDialerProofService = VoiceCampaignDialerProofService;
|
|
788
916
|
// src/angular/voice-stream.service.ts
|
|
789
|
-
import { computed as
|
|
917
|
+
import { computed as computed6, Injectable as Injectable6, signal as signal6 } from "@angular/core";
|
|
790
918
|
|
|
791
919
|
// src/client/actions.ts
|
|
792
920
|
var normalizeErrorMessage = (value) => {
|
|
@@ -1430,23 +1558,23 @@ var createVoiceStream = (path, options = {}) => {
|
|
|
1430
1558
|
|
|
1431
1559
|
// src/angular/voice-stream.service.ts
|
|
1432
1560
|
var _dec = [
|
|
1433
|
-
|
|
1561
|
+
Injectable6({ providedIn: "root" })
|
|
1434
1562
|
];
|
|
1435
1563
|
var _init = __decoratorStart(undefined);
|
|
1436
1564
|
|
|
1437
1565
|
class VoiceStreamService {
|
|
1438
1566
|
connect(path, options = {}) {
|
|
1439
1567
|
const stream = createVoiceStream(path, options);
|
|
1440
|
-
const assistantAudioSignal =
|
|
1441
|
-
const assistantTextsSignal =
|
|
1442
|
-
const callSignal =
|
|
1443
|
-
const errorSignal =
|
|
1444
|
-
const isConnectedSignal =
|
|
1445
|
-
const partialSignal =
|
|
1446
|
-
const reconnectSignal =
|
|
1447
|
-
const sessionIdSignal =
|
|
1448
|
-
const statusSignal =
|
|
1449
|
-
const turnsSignal =
|
|
1568
|
+
const assistantAudioSignal = signal6([]);
|
|
1569
|
+
const assistantTextsSignal = signal6([]);
|
|
1570
|
+
const callSignal = signal6(null);
|
|
1571
|
+
const errorSignal = signal6(null);
|
|
1572
|
+
const isConnectedSignal = signal6(false);
|
|
1573
|
+
const partialSignal = signal6("");
|
|
1574
|
+
const reconnectSignal = signal6(stream.reconnect);
|
|
1575
|
+
const sessionIdSignal = signal6(stream.sessionId);
|
|
1576
|
+
const statusSignal = signal6(stream.status);
|
|
1577
|
+
const turnsSignal = signal6([]);
|
|
1450
1578
|
const sync = () => {
|
|
1451
1579
|
assistantAudioSignal.set([...stream.assistantAudio]);
|
|
1452
1580
|
assistantTextsSignal.set([...stream.assistantTexts]);
|
|
@@ -1462,23 +1590,23 @@ class VoiceStreamService {
|
|
|
1462
1590
|
const unsubscribe = stream.subscribe(sync);
|
|
1463
1591
|
sync();
|
|
1464
1592
|
return {
|
|
1465
|
-
assistantAudio:
|
|
1466
|
-
assistantTexts:
|
|
1467
|
-
call:
|
|
1593
|
+
assistantAudio: computed6(() => assistantAudioSignal()),
|
|
1594
|
+
assistantTexts: computed6(() => assistantTextsSignal()),
|
|
1595
|
+
call: computed6(() => callSignal()),
|
|
1468
1596
|
callControl: (message) => stream.callControl(message),
|
|
1469
1597
|
close: () => {
|
|
1470
1598
|
unsubscribe();
|
|
1471
1599
|
stream.close();
|
|
1472
1600
|
},
|
|
1473
1601
|
endTurn: () => stream.endTurn(),
|
|
1474
|
-
error:
|
|
1475
|
-
isConnected:
|
|
1476
|
-
partial:
|
|
1477
|
-
reconnect:
|
|
1602
|
+
error: computed6(() => errorSignal()),
|
|
1603
|
+
isConnected: computed6(() => isConnectedSignal()),
|
|
1604
|
+
partial: computed6(() => partialSignal()),
|
|
1605
|
+
reconnect: computed6(() => reconnectSignal()),
|
|
1478
1606
|
sendAudio: (audio) => stream.sendAudio(audio),
|
|
1479
|
-
sessionId:
|
|
1480
|
-
status:
|
|
1481
|
-
turns:
|
|
1607
|
+
sessionId: computed6(() => sessionIdSignal()),
|
|
1608
|
+
status: computed6(() => statusSignal()),
|
|
1609
|
+
turns: computed6(() => turnsSignal())
|
|
1482
1610
|
};
|
|
1483
1611
|
}
|
|
1484
1612
|
}
|
|
@@ -1487,7 +1615,7 @@ __runInitializers(_init, 1, VoiceStreamService);
|
|
|
1487
1615
|
__decoratorMetadata(_init, VoiceStreamService);
|
|
1488
1616
|
let _VoiceStreamService = VoiceStreamService;
|
|
1489
1617
|
// src/angular/voice-controller.service.ts
|
|
1490
|
-
import { computed as
|
|
1618
|
+
import { computed as computed7, Injectable as Injectable7, signal as signal7 } from "@angular/core";
|
|
1491
1619
|
|
|
1492
1620
|
// src/client/htmx.ts
|
|
1493
1621
|
var DEFAULT_EVENT_NAME = "voice-refresh";
|
|
@@ -2132,24 +2260,24 @@ var createVoiceController = (path, options = {}) => {
|
|
|
2132
2260
|
|
|
2133
2261
|
// src/angular/voice-controller.service.ts
|
|
2134
2262
|
var _dec = [
|
|
2135
|
-
|
|
2263
|
+
Injectable7({ providedIn: "root" })
|
|
2136
2264
|
];
|
|
2137
2265
|
var _init = __decoratorStart(undefined);
|
|
2138
2266
|
|
|
2139
2267
|
class VoiceControllerService {
|
|
2140
2268
|
connect(path, options = {}) {
|
|
2141
2269
|
const controller = createVoiceController(path, options);
|
|
2142
|
-
const assistantAudioSignal =
|
|
2143
|
-
const assistantTextsSignal =
|
|
2144
|
-
const errorSignal =
|
|
2145
|
-
const isConnectedSignal =
|
|
2146
|
-
const isRecordingSignal =
|
|
2147
|
-
const partialSignal =
|
|
2148
|
-
const reconnectSignal =
|
|
2149
|
-
const recordingErrorSignal =
|
|
2150
|
-
const sessionIdSignal =
|
|
2151
|
-
const statusSignal =
|
|
2152
|
-
const turnsSignal =
|
|
2270
|
+
const assistantAudioSignal = signal7([]);
|
|
2271
|
+
const assistantTextsSignal = signal7([]);
|
|
2272
|
+
const errorSignal = signal7(null);
|
|
2273
|
+
const isConnectedSignal = signal7(false);
|
|
2274
|
+
const isRecordingSignal = signal7(false);
|
|
2275
|
+
const partialSignal = signal7("");
|
|
2276
|
+
const reconnectSignal = signal7(controller.reconnect);
|
|
2277
|
+
const recordingErrorSignal = signal7(null);
|
|
2278
|
+
const sessionIdSignal = signal7(controller.sessionId);
|
|
2279
|
+
const statusSignal = signal7(controller.status);
|
|
2280
|
+
const turnsSignal = signal7([]);
|
|
2153
2281
|
const sync = () => {
|
|
2154
2282
|
assistantAudioSignal.set([...controller.assistantAudio]);
|
|
2155
2283
|
assistantTextsSignal.set([...controller.assistantTexts]);
|
|
@@ -2166,27 +2294,27 @@ class VoiceControllerService {
|
|
|
2166
2294
|
const unsubscribe = controller.subscribe(sync);
|
|
2167
2295
|
sync();
|
|
2168
2296
|
return {
|
|
2169
|
-
assistantAudio:
|
|
2170
|
-
assistantTexts:
|
|
2297
|
+
assistantAudio: computed7(() => assistantAudioSignal()),
|
|
2298
|
+
assistantTexts: computed7(() => assistantTextsSignal()),
|
|
2171
2299
|
bindHTMX: controller.bindHTMX,
|
|
2172
2300
|
close: () => {
|
|
2173
2301
|
unsubscribe();
|
|
2174
2302
|
controller.close();
|
|
2175
2303
|
},
|
|
2176
2304
|
endTurn: () => controller.endTurn(),
|
|
2177
|
-
error:
|
|
2178
|
-
isConnected:
|
|
2179
|
-
isRecording:
|
|
2180
|
-
partial:
|
|
2181
|
-
reconnect:
|
|
2182
|
-
recordingError:
|
|
2305
|
+
error: computed7(() => errorSignal()),
|
|
2306
|
+
isConnected: computed7(() => isConnectedSignal()),
|
|
2307
|
+
isRecording: computed7(() => isRecordingSignal()),
|
|
2308
|
+
partial: computed7(() => partialSignal()),
|
|
2309
|
+
reconnect: computed7(() => reconnectSignal()),
|
|
2310
|
+
recordingError: computed7(() => recordingErrorSignal()),
|
|
2183
2311
|
sendAudio: (audio) => controller.sendAudio(audio),
|
|
2184
|
-
sessionId:
|
|
2312
|
+
sessionId: computed7(() => sessionIdSignal()),
|
|
2185
2313
|
startRecording: () => controller.startRecording(),
|
|
2186
|
-
status:
|
|
2314
|
+
status: computed7(() => statusSignal()),
|
|
2187
2315
|
stopRecording: () => controller.stopRecording(),
|
|
2188
2316
|
toggleRecording: () => controller.toggleRecording(),
|
|
2189
|
-
turns:
|
|
2317
|
+
turns: computed7(() => turnsSignal())
|
|
2190
2318
|
};
|
|
2191
2319
|
}
|
|
2192
2320
|
}
|
|
@@ -2195,7 +2323,7 @@ __runInitializers(_init, 1, VoiceControllerService);
|
|
|
2195
2323
|
__decoratorMetadata(_init, VoiceControllerService);
|
|
2196
2324
|
let _VoiceControllerService = VoiceControllerService;
|
|
2197
2325
|
// src/angular/voice-provider-capabilities.service.ts
|
|
2198
|
-
import { computed as
|
|
2326
|
+
import { computed as computed8, Injectable as Injectable8, signal as signal8 } from "@angular/core";
|
|
2199
2327
|
|
|
2200
2328
|
// src/client/providerCapabilities.ts
|
|
2201
2329
|
var fetchVoiceProviderCapabilities = async (path = "/api/provider-capabilities", options = {}) => {
|
|
@@ -2278,17 +2406,17 @@ var createVoiceProviderCapabilitiesStore = (path = "/api/provider-capabilities",
|
|
|
2278
2406
|
|
|
2279
2407
|
// src/angular/voice-provider-capabilities.service.ts
|
|
2280
2408
|
var _dec = [
|
|
2281
|
-
|
|
2409
|
+
Injectable8({ providedIn: "root" })
|
|
2282
2410
|
];
|
|
2283
2411
|
var _init = __decoratorStart(undefined);
|
|
2284
2412
|
|
|
2285
2413
|
class VoiceProviderCapabilitiesService {
|
|
2286
2414
|
connect(path = "/api/provider-capabilities", options = {}) {
|
|
2287
2415
|
const store = createVoiceProviderCapabilitiesStore(path, options);
|
|
2288
|
-
const errorSignal =
|
|
2289
|
-
const isLoadingSignal =
|
|
2290
|
-
const reportSignal =
|
|
2291
|
-
const updatedAtSignal =
|
|
2416
|
+
const errorSignal = signal8(null);
|
|
2417
|
+
const isLoadingSignal = signal8(false);
|
|
2418
|
+
const reportSignal = signal8(undefined);
|
|
2419
|
+
const updatedAtSignal = signal8(undefined);
|
|
2292
2420
|
const sync = () => {
|
|
2293
2421
|
const snapshot = store.getSnapshot();
|
|
2294
2422
|
errorSignal.set(snapshot.error);
|
|
@@ -2304,11 +2432,11 @@ class VoiceProviderCapabilitiesService {
|
|
|
2304
2432
|
unsubscribe();
|
|
2305
2433
|
store.close();
|
|
2306
2434
|
},
|
|
2307
|
-
error:
|
|
2308
|
-
isLoading:
|
|
2435
|
+
error: computed8(() => errorSignal()),
|
|
2436
|
+
isLoading: computed8(() => isLoadingSignal()),
|
|
2309
2437
|
refresh: store.refresh,
|
|
2310
|
-
report:
|
|
2311
|
-
updatedAt:
|
|
2438
|
+
report: computed8(() => reportSignal()),
|
|
2439
|
+
updatedAt: computed8(() => updatedAtSignal())
|
|
2312
2440
|
};
|
|
2313
2441
|
}
|
|
2314
2442
|
}
|
|
@@ -2317,7 +2445,7 @@ __runInitializers(_init, 1, VoiceProviderCapabilitiesService);
|
|
|
2317
2445
|
__decoratorMetadata(_init, VoiceProviderCapabilitiesService);
|
|
2318
2446
|
let _VoiceProviderCapabilitiesService = VoiceProviderCapabilitiesService;
|
|
2319
2447
|
// src/angular/voice-provider-contracts.service.ts
|
|
2320
|
-
import { computed as
|
|
2448
|
+
import { computed as computed9, Injectable as Injectable9, signal as signal9 } from "@angular/core";
|
|
2321
2449
|
|
|
2322
2450
|
// src/client/providerContracts.ts
|
|
2323
2451
|
var fetchVoiceProviderContracts = async (path = "/api/provider-contracts", options = {}) => {
|
|
@@ -2396,17 +2524,17 @@ var createVoiceProviderContractsStore = (path = "/api/provider-contracts", optio
|
|
|
2396
2524
|
|
|
2397
2525
|
// src/angular/voice-provider-contracts.service.ts
|
|
2398
2526
|
var _dec = [
|
|
2399
|
-
|
|
2527
|
+
Injectable9({ providedIn: "root" })
|
|
2400
2528
|
];
|
|
2401
2529
|
var _init = __decoratorStart(undefined);
|
|
2402
2530
|
|
|
2403
2531
|
class VoiceProviderContractsService {
|
|
2404
2532
|
connect(path = "/api/provider-contracts", options = {}) {
|
|
2405
2533
|
const store = createVoiceProviderContractsStore(path, options);
|
|
2406
|
-
const errorSignal =
|
|
2407
|
-
const isLoadingSignal =
|
|
2408
|
-
const reportSignal =
|
|
2409
|
-
const updatedAtSignal =
|
|
2534
|
+
const errorSignal = signal9(null);
|
|
2535
|
+
const isLoadingSignal = signal9(false);
|
|
2536
|
+
const reportSignal = signal9(undefined);
|
|
2537
|
+
const updatedAtSignal = signal9(undefined);
|
|
2410
2538
|
const sync = () => {
|
|
2411
2539
|
const snapshot = store.getSnapshot();
|
|
2412
2540
|
errorSignal.set(snapshot.error);
|
|
@@ -2422,11 +2550,11 @@ class VoiceProviderContractsService {
|
|
|
2422
2550
|
unsubscribe();
|
|
2423
2551
|
store.close();
|
|
2424
2552
|
},
|
|
2425
|
-
error:
|
|
2426
|
-
isLoading:
|
|
2553
|
+
error: computed9(() => errorSignal()),
|
|
2554
|
+
isLoading: computed9(() => isLoadingSignal()),
|
|
2427
2555
|
refresh: store.refresh,
|
|
2428
|
-
report:
|
|
2429
|
-
updatedAt:
|
|
2556
|
+
report: computed9(() => reportSignal()),
|
|
2557
|
+
updatedAt: computed9(() => updatedAtSignal())
|
|
2430
2558
|
};
|
|
2431
2559
|
}
|
|
2432
2560
|
}
|
|
@@ -2435,7 +2563,7 @@ __runInitializers(_init, 1, VoiceProviderContractsService);
|
|
|
2435
2563
|
__decoratorMetadata(_init, VoiceProviderContractsService);
|
|
2436
2564
|
let _VoiceProviderContractsService = VoiceProviderContractsService;
|
|
2437
2565
|
// src/angular/voice-provider-status.service.ts
|
|
2438
|
-
import { computed as
|
|
2566
|
+
import { computed as computed10, Injectable as Injectable10, signal as signal10 } from "@angular/core";
|
|
2439
2567
|
|
|
2440
2568
|
// src/client/providerStatus.ts
|
|
2441
2569
|
var fetchVoiceProviderStatus = async (path = "/api/provider-status", options = {}) => {
|
|
@@ -2519,17 +2647,17 @@ var createVoiceProviderStatusStore = (path = "/api/provider-status", options = {
|
|
|
2519
2647
|
|
|
2520
2648
|
// src/angular/voice-provider-status.service.ts
|
|
2521
2649
|
var _dec = [
|
|
2522
|
-
|
|
2650
|
+
Injectable10({ providedIn: "root" })
|
|
2523
2651
|
];
|
|
2524
2652
|
var _init = __decoratorStart(undefined);
|
|
2525
2653
|
|
|
2526
2654
|
class VoiceProviderStatusService {
|
|
2527
2655
|
connect(path = "/api/provider-status", options = {}) {
|
|
2528
2656
|
const store = createVoiceProviderStatusStore(path, options);
|
|
2529
|
-
const errorSignal =
|
|
2530
|
-
const isLoadingSignal =
|
|
2531
|
-
const providersSignal =
|
|
2532
|
-
const updatedAtSignal =
|
|
2657
|
+
const errorSignal = signal10(null);
|
|
2658
|
+
const isLoadingSignal = signal10(false);
|
|
2659
|
+
const providersSignal = signal10([]);
|
|
2660
|
+
const updatedAtSignal = signal10(undefined);
|
|
2533
2661
|
const sync = () => {
|
|
2534
2662
|
const snapshot = store.getSnapshot();
|
|
2535
2663
|
errorSignal.set(snapshot.error);
|
|
@@ -2545,11 +2673,11 @@ class VoiceProviderStatusService {
|
|
|
2545
2673
|
unsubscribe();
|
|
2546
2674
|
store.close();
|
|
2547
2675
|
},
|
|
2548
|
-
error:
|
|
2549
|
-
isLoading:
|
|
2550
|
-
providers:
|
|
2676
|
+
error: computed10(() => errorSignal()),
|
|
2677
|
+
isLoading: computed10(() => isLoadingSignal()),
|
|
2678
|
+
providers: computed10(() => providersSignal()),
|
|
2551
2679
|
refresh: store.refresh,
|
|
2552
|
-
updatedAt:
|
|
2680
|
+
updatedAt: computed10(() => updatedAtSignal())
|
|
2553
2681
|
};
|
|
2554
2682
|
}
|
|
2555
2683
|
}
|
|
@@ -2558,7 +2686,7 @@ __runInitializers(_init, 1, VoiceProviderStatusService);
|
|
|
2558
2686
|
__decoratorMetadata(_init, VoiceProviderStatusService);
|
|
2559
2687
|
let _VoiceProviderStatusService = VoiceProviderStatusService;
|
|
2560
2688
|
// src/angular/voice-routing-status.service.ts
|
|
2561
|
-
import { Injectable as
|
|
2689
|
+
import { Injectable as Injectable11, signal as signal11 } from "@angular/core";
|
|
2562
2690
|
|
|
2563
2691
|
// src/client/routingStatus.ts
|
|
2564
2692
|
var fetchVoiceRoutingStatus = async (path = "/api/routing/latest", options = {}) => {
|
|
@@ -2642,17 +2770,17 @@ var createVoiceRoutingStatusStore = (path = "/api/routing/latest", options = {})
|
|
|
2642
2770
|
|
|
2643
2771
|
// src/angular/voice-routing-status.service.ts
|
|
2644
2772
|
var _dec = [
|
|
2645
|
-
|
|
2773
|
+
Injectable11({ providedIn: "root" })
|
|
2646
2774
|
];
|
|
2647
2775
|
var _init = __decoratorStart(undefined);
|
|
2648
2776
|
|
|
2649
2777
|
class VoiceRoutingStatusService {
|
|
2650
2778
|
connect(path = "/api/routing/latest", options = {}) {
|
|
2651
2779
|
const store = createVoiceRoutingStatusStore(path, options);
|
|
2652
|
-
const decisionSignal =
|
|
2653
|
-
const errorSignal =
|
|
2654
|
-
const isLoadingSignal =
|
|
2655
|
-
const updatedAtSignal =
|
|
2780
|
+
const decisionSignal = signal11(null);
|
|
2781
|
+
const errorSignal = signal11(null);
|
|
2782
|
+
const isLoadingSignal = signal11(false);
|
|
2783
|
+
const updatedAtSignal = signal11(undefined);
|
|
2656
2784
|
const sync = () => {
|
|
2657
2785
|
const snapshot = store.getSnapshot();
|
|
2658
2786
|
decisionSignal.set(snapshot.decision);
|
|
@@ -2681,7 +2809,7 @@ __runInitializers(_init, 1, VoiceRoutingStatusService);
|
|
|
2681
2809
|
__decoratorMetadata(_init, VoiceRoutingStatusService);
|
|
2682
2810
|
let _VoiceRoutingStatusService = VoiceRoutingStatusService;
|
|
2683
2811
|
// src/angular/voice-trace-timeline.service.ts
|
|
2684
|
-
import { computed as
|
|
2812
|
+
import { computed as computed11, Injectable as Injectable12, signal as signal12 } from "@angular/core";
|
|
2685
2813
|
|
|
2686
2814
|
// src/client/traceTimeline.ts
|
|
2687
2815
|
var fetchVoiceTraceTimeline = async (path = "/api/voice-traces", options = {}) => {
|
|
@@ -2765,17 +2893,17 @@ var createVoiceTraceTimelineStore = (path = "/api/voice-traces", options = {}) =
|
|
|
2765
2893
|
|
|
2766
2894
|
// src/angular/voice-trace-timeline.service.ts
|
|
2767
2895
|
var _dec = [
|
|
2768
|
-
|
|
2896
|
+
Injectable12({ providedIn: "root" })
|
|
2769
2897
|
];
|
|
2770
2898
|
var _init = __decoratorStart(undefined);
|
|
2771
2899
|
|
|
2772
2900
|
class VoiceTraceTimelineService {
|
|
2773
2901
|
connect(path = "/api/voice-traces", options = {}) {
|
|
2774
2902
|
const store = createVoiceTraceTimelineStore(path, options);
|
|
2775
|
-
const errorSignal =
|
|
2776
|
-
const isLoadingSignal =
|
|
2777
|
-
const reportSignal =
|
|
2778
|
-
const updatedAtSignal =
|
|
2903
|
+
const errorSignal = signal12(null);
|
|
2904
|
+
const isLoadingSignal = signal12(false);
|
|
2905
|
+
const reportSignal = signal12(null);
|
|
2906
|
+
const updatedAtSignal = signal12(undefined);
|
|
2779
2907
|
const sync = () => {
|
|
2780
2908
|
const snapshot = store.getSnapshot();
|
|
2781
2909
|
errorSignal.set(snapshot.error);
|
|
@@ -2791,11 +2919,11 @@ class VoiceTraceTimelineService {
|
|
|
2791
2919
|
unsubscribe();
|
|
2792
2920
|
store.close();
|
|
2793
2921
|
},
|
|
2794
|
-
error:
|
|
2795
|
-
isLoading:
|
|
2922
|
+
error: computed11(() => errorSignal()),
|
|
2923
|
+
isLoading: computed11(() => isLoadingSignal()),
|
|
2796
2924
|
refresh: store.refresh,
|
|
2797
|
-
report:
|
|
2798
|
-
updatedAt:
|
|
2925
|
+
report: computed11(() => reportSignal()),
|
|
2926
|
+
updatedAt: computed11(() => updatedAtSignal())
|
|
2799
2927
|
};
|
|
2800
2928
|
}
|
|
2801
2929
|
}
|
|
@@ -2804,7 +2932,7 @@ __runInitializers(_init, 1, VoiceTraceTimelineService);
|
|
|
2804
2932
|
__decoratorMetadata(_init, VoiceTraceTimelineService);
|
|
2805
2933
|
let _VoiceTraceTimelineService = VoiceTraceTimelineService;
|
|
2806
2934
|
// src/angular/voice-turn-latency.service.ts
|
|
2807
|
-
import { computed as
|
|
2935
|
+
import { computed as computed12, Injectable as Injectable13, signal as signal13 } from "@angular/core";
|
|
2808
2936
|
|
|
2809
2937
|
// src/client/turnLatency.ts
|
|
2810
2938
|
var fetchVoiceTurnLatency = async (path = "/api/turn-latency", options = {}) => {
|
|
@@ -2911,17 +3039,17 @@ var createVoiceTurnLatencyStore = (path = "/api/turn-latency", options = {}) =>
|
|
|
2911
3039
|
|
|
2912
3040
|
// src/angular/voice-turn-latency.service.ts
|
|
2913
3041
|
var _dec = [
|
|
2914
|
-
|
|
3042
|
+
Injectable13({ providedIn: "root" })
|
|
2915
3043
|
];
|
|
2916
3044
|
var _init = __decoratorStart(undefined);
|
|
2917
3045
|
|
|
2918
3046
|
class VoiceTurnLatencyService {
|
|
2919
3047
|
connect(path = "/api/turn-latency", options = {}) {
|
|
2920
3048
|
const store = createVoiceTurnLatencyStore(path, options);
|
|
2921
|
-
const errorSignal =
|
|
2922
|
-
const isLoadingSignal =
|
|
2923
|
-
const reportSignal =
|
|
2924
|
-
const updatedAtSignal =
|
|
3049
|
+
const errorSignal = signal13(null);
|
|
3050
|
+
const isLoadingSignal = signal13(false);
|
|
3051
|
+
const reportSignal = signal13(undefined);
|
|
3052
|
+
const updatedAtSignal = signal13(undefined);
|
|
2925
3053
|
const sync = () => {
|
|
2926
3054
|
const snapshot = store.getSnapshot();
|
|
2927
3055
|
errorSignal.set(snapshot.error);
|
|
@@ -2937,12 +3065,12 @@ class VoiceTurnLatencyService {
|
|
|
2937
3065
|
unsubscribe();
|
|
2938
3066
|
store.close();
|
|
2939
3067
|
},
|
|
2940
|
-
error:
|
|
2941
|
-
isLoading:
|
|
3068
|
+
error: computed12(() => errorSignal()),
|
|
3069
|
+
isLoading: computed12(() => isLoadingSignal()),
|
|
2942
3070
|
refresh: store.refresh,
|
|
2943
|
-
report:
|
|
3071
|
+
report: computed12(() => reportSignal()),
|
|
2944
3072
|
runProof: store.runProof,
|
|
2945
|
-
updatedAt:
|
|
3073
|
+
updatedAt: computed12(() => updatedAtSignal())
|
|
2946
3074
|
};
|
|
2947
3075
|
}
|
|
2948
3076
|
}
|
|
@@ -2951,7 +3079,7 @@ __runInitializers(_init, 1, VoiceTurnLatencyService);
|
|
|
2951
3079
|
__decoratorMetadata(_init, VoiceTurnLatencyService);
|
|
2952
3080
|
let _VoiceTurnLatencyService = VoiceTurnLatencyService;
|
|
2953
3081
|
// src/angular/voice-turn-quality.service.ts
|
|
2954
|
-
import { computed as
|
|
3082
|
+
import { computed as computed13, Injectable as Injectable14, signal as signal14 } from "@angular/core";
|
|
2955
3083
|
|
|
2956
3084
|
// src/client/turnQuality.ts
|
|
2957
3085
|
var fetchVoiceTurnQuality = async (path = "/api/turn-quality", options = {}) => {
|
|
@@ -3034,17 +3162,17 @@ var createVoiceTurnQualityStore = (path = "/api/turn-quality", options = {}) =>
|
|
|
3034
3162
|
|
|
3035
3163
|
// src/angular/voice-turn-quality.service.ts
|
|
3036
3164
|
var _dec = [
|
|
3037
|
-
|
|
3165
|
+
Injectable14({ providedIn: "root" })
|
|
3038
3166
|
];
|
|
3039
3167
|
var _init = __decoratorStart(undefined);
|
|
3040
3168
|
|
|
3041
3169
|
class VoiceTurnQualityService {
|
|
3042
3170
|
connect(path = "/api/turn-quality", options = {}) {
|
|
3043
3171
|
const store = createVoiceTurnQualityStore(path, options);
|
|
3044
|
-
const errorSignal =
|
|
3045
|
-
const isLoadingSignal =
|
|
3046
|
-
const reportSignal =
|
|
3047
|
-
const updatedAtSignal =
|
|
3172
|
+
const errorSignal = signal14(null);
|
|
3173
|
+
const isLoadingSignal = signal14(false);
|
|
3174
|
+
const reportSignal = signal14(undefined);
|
|
3175
|
+
const updatedAtSignal = signal14(undefined);
|
|
3048
3176
|
const sync = () => {
|
|
3049
3177
|
const snapshot = store.getSnapshot();
|
|
3050
3178
|
errorSignal.set(snapshot.error);
|
|
@@ -3060,11 +3188,11 @@ class VoiceTurnQualityService {
|
|
|
3060
3188
|
unsubscribe();
|
|
3061
3189
|
store.close();
|
|
3062
3190
|
},
|
|
3063
|
-
error:
|
|
3064
|
-
isLoading:
|
|
3191
|
+
error: computed13(() => errorSignal()),
|
|
3192
|
+
isLoading: computed13(() => isLoadingSignal()),
|
|
3065
3193
|
refresh: store.refresh,
|
|
3066
|
-
report:
|
|
3067
|
-
updatedAt:
|
|
3194
|
+
report: computed13(() => reportSignal()),
|
|
3195
|
+
updatedAt: computed13(() => updatedAtSignal())
|
|
3068
3196
|
};
|
|
3069
3197
|
}
|
|
3070
3198
|
}
|
|
@@ -3073,7 +3201,7 @@ __runInitializers(_init, 1, VoiceTurnQualityService);
|
|
|
3073
3201
|
__decoratorMetadata(_init, VoiceTurnQualityService);
|
|
3074
3202
|
let _VoiceTurnQualityService = VoiceTurnQualityService;
|
|
3075
3203
|
// src/angular/voice-workflow-status.service.ts
|
|
3076
|
-
import { computed as
|
|
3204
|
+
import { computed as computed14, Injectable as Injectable15, signal as signal15 } from "@angular/core";
|
|
3077
3205
|
|
|
3078
3206
|
// src/client/workflowStatus.ts
|
|
3079
3207
|
var fetchVoiceWorkflowStatus = async (path = "/evals/scenarios/json", options = {}) => {
|
|
@@ -3156,17 +3284,17 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
|
|
|
3156
3284
|
|
|
3157
3285
|
// src/angular/voice-workflow-status.service.ts
|
|
3158
3286
|
var _dec = [
|
|
3159
|
-
|
|
3287
|
+
Injectable15({ providedIn: "root" })
|
|
3160
3288
|
];
|
|
3161
3289
|
var _init = __decoratorStart(undefined);
|
|
3162
3290
|
|
|
3163
3291
|
class VoiceWorkflowStatusService {
|
|
3164
3292
|
connect(path = "/evals/scenarios/json", options = {}) {
|
|
3165
3293
|
const store = createVoiceWorkflowStatusStore(path, options);
|
|
3166
|
-
const errorSignal =
|
|
3167
|
-
const isLoadingSignal =
|
|
3168
|
-
const reportSignal =
|
|
3169
|
-
const updatedAtSignal =
|
|
3294
|
+
const errorSignal = signal15(null);
|
|
3295
|
+
const isLoadingSignal = signal15(false);
|
|
3296
|
+
const reportSignal = signal15(undefined);
|
|
3297
|
+
const updatedAtSignal = signal15(undefined);
|
|
3170
3298
|
const sync = () => {
|
|
3171
3299
|
const snapshot = store.getSnapshot();
|
|
3172
3300
|
errorSignal.set(snapshot.error);
|
|
@@ -3184,11 +3312,11 @@ class VoiceWorkflowStatusService {
|
|
|
3184
3312
|
unsubscribe();
|
|
3185
3313
|
store.close();
|
|
3186
3314
|
},
|
|
3187
|
-
error:
|
|
3188
|
-
isLoading:
|
|
3315
|
+
error: computed14(() => errorSignal()),
|
|
3316
|
+
isLoading: computed14(() => isLoadingSignal()),
|
|
3189
3317
|
refresh: store.refresh,
|
|
3190
|
-
report:
|
|
3191
|
-
updatedAt:
|
|
3318
|
+
report: computed14(() => reportSignal()),
|
|
3319
|
+
updatedAt: computed14(() => updatedAtSignal())
|
|
3192
3320
|
};
|
|
3193
3321
|
}
|
|
3194
3322
|
}
|
|
@@ -3208,6 +3336,7 @@ export {
|
|
|
3208
3336
|
VoiceProviderCapabilitiesService,
|
|
3209
3337
|
VoiceOpsStatusService,
|
|
3210
3338
|
VoiceOpsActionCenterService,
|
|
3339
|
+
VoiceLiveOpsService,
|
|
3211
3340
|
VoiceDeliveryRuntimeService,
|
|
3212
3341
|
VoiceControllerService,
|
|
3213
3342
|
VoiceCampaignDialerProofService
|