@absolutejs/voice 0.0.22-beta.31 → 0.0.22-beta.311
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/README.md +3250 -73
- package/dist/agent.d.ts +62 -0
- package/dist/agentSquadContract.d.ts +98 -0
- package/dist/angular/index.d.ts +16 -0
- package/dist/angular/index.js +3498 -1128
- package/dist/angular/voice-agent-squad-status.service.d.ts +12 -0
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +14 -0
- package/dist/angular/voice-controller.service.d.ts +1 -0
- package/dist/angular/voice-delivery-runtime.component.d.ts +17 -0
- package/dist/angular/voice-delivery-runtime.service.d.ts +16 -0
- package/dist/angular/voice-live-ops.service.d.ts +11 -0
- package/dist/angular/voice-ops-action-center.service.d.ts +13 -0
- package/dist/angular/voice-ops-status.component.d.ts +15 -0
- package/dist/angular/voice-ops-status.service.d.ts +12 -0
- package/dist/angular/voice-platform-coverage.service.d.ts +12 -0
- package/dist/angular/voice-proof-trends.service.d.ts +12 -0
- package/dist/angular/voice-provider-capabilities.service.d.ts +12 -0
- package/dist/angular/voice-provider-contracts.service.d.ts +12 -0
- package/dist/angular/voice-readiness-failures.service.d.ts +13 -0
- package/dist/angular/voice-routing-status.service.d.ts +11 -0
- package/dist/angular/voice-stream.service.d.ts +1 -0
- package/dist/angular/voice-trace-timeline.service.d.ts +12 -0
- package/dist/angular/voice-turn-latency.service.d.ts +13 -0
- package/dist/angular/voice-turn-quality.service.d.ts +12 -0
- package/dist/angular/voice-workflow-status.service.d.ts +12 -0
- package/dist/audit.d.ts +128 -0
- package/dist/auditDeliveryRoutes.d.ts +85 -0
- package/dist/auditExport.d.ts +34 -0
- package/dist/auditRoutes.d.ts +66 -0
- package/dist/auditSinks.d.ts +151 -0
- package/dist/bargeInRoutes.d.ts +56 -0
- package/dist/campaign.d.ts +768 -0
- package/dist/campaignDialers.d.ts +111 -0
- package/dist/client/actions.d.ts +83 -0
- package/dist/client/agentSquadStatus.d.ts +37 -0
- package/dist/client/agentSquadStatusWidget.d.ts +24 -0
- package/dist/client/bargeInMonitor.d.ts +7 -0
- package/dist/client/campaignDialerProof.d.ts +23 -0
- package/dist/client/deliveryRuntime.d.ts +34 -0
- package/dist/client/deliveryRuntimeWidget.d.ts +37 -0
- package/dist/client/duplex.d.ts +1 -1
- package/dist/client/htmxBootstrap.js +703 -13
- package/dist/client/index.d.ts +70 -0
- package/dist/client/index.js +5257 -19
- package/dist/client/liveOps.d.ts +22 -0
- package/dist/client/liveOpsWidget.d.ts +23 -0
- package/dist/client/liveTurnLatency.d.ts +41 -0
- package/dist/client/opsActionCenter.d.ts +54 -0
- package/dist/client/opsActionCenterWidget.d.ts +29 -0
- package/dist/client/opsActionHistory.d.ts +19 -0
- package/dist/client/opsActionHistoryWidget.d.ts +11 -0
- package/dist/client/opsStatus.d.ts +19 -0
- package/dist/client/opsStatusWidget.d.ts +40 -0
- package/dist/client/platformCoverage.d.ts +19 -0
- package/dist/client/platformCoverageWidget.d.ts +37 -0
- package/dist/client/proofTrends.d.ts +19 -0
- package/dist/client/proofTrendsWidget.d.ts +37 -0
- package/dist/client/providerCapabilities.d.ts +19 -0
- package/dist/client/providerCapabilitiesWidget.d.ts +32 -0
- package/dist/client/providerContracts.d.ts +19 -0
- package/dist/client/providerContractsWidget.d.ts +37 -0
- package/dist/client/providerSimulationControls.d.ts +33 -0
- package/dist/client/providerSimulationControlsWidget.d.ts +20 -0
- package/dist/client/providerStatusWidget.d.ts +32 -0
- package/dist/client/readinessFailures.d.ts +19 -0
- package/dist/client/readinessFailuresWidget.d.ts +42 -0
- package/dist/client/routingStatus.d.ts +19 -0
- package/dist/client/routingStatusWidget.d.ts +28 -0
- package/dist/client/traceTimeline.d.ts +19 -0
- package/dist/client/traceTimelineWidget.d.ts +36 -0
- package/dist/client/turnLatency.d.ts +22 -0
- package/dist/client/turnLatencyWidget.d.ts +33 -0
- package/dist/client/turnQuality.d.ts +19 -0
- package/dist/client/turnQualityWidget.d.ts +32 -0
- package/dist/client/workflowStatus.d.ts +19 -0
- package/dist/competitiveCoverage.d.ts +141 -0
- package/dist/dataControl.d.ts +180 -0
- package/dist/deliveryRuntime.d.ts +158 -0
- package/dist/deliverySinkRoutes.d.ts +117 -0
- package/dist/demoReadyRoutes.d.ts +98 -0
- package/dist/diagnosticsRoutes.d.ts +44 -0
- package/dist/evalRoutes.d.ts +219 -0
- package/dist/fileStore.d.ts +14 -2
- package/dist/guardrails.d.ts +128 -0
- package/dist/incidentBundle.d.ts +116 -0
- package/dist/index.d.ts +146 -13
- package/dist/index.js +28245 -5219
- package/dist/latencySlo.d.ts +56 -0
- package/dist/liveLatency.d.ts +78 -0
- package/dist/liveOps.d.ts +190 -0
- package/dist/mediaPipeline.d.ts +125 -0
- package/dist/mediaPipelineRoutes.d.ts +93 -0
- package/dist/modelAdapters.d.ts +60 -2
- package/dist/observabilityExport.d.ts +481 -0
- package/dist/openaiTTS.d.ts +18 -0
- package/dist/operationsRecord.d.ts +254 -0
- package/dist/opsActionAuditRoutes.d.ts +99 -0
- package/dist/opsConsoleRoutes.d.ts +80 -0
- package/dist/opsRecovery.d.ts +137 -0
- package/dist/opsStatus.d.ts +76 -0
- package/dist/opsStatusRoutes.d.ts +33 -0
- package/dist/outcomeContract.d.ts +146 -0
- package/dist/phoneAgent.d.ts +139 -0
- package/dist/phoneAgentProductionSmoke.d.ts +115 -0
- package/dist/platformCoverage.d.ts +91 -0
- package/dist/postCallAnalysis.d.ts +98 -0
- package/dist/postgresStore.d.ts +13 -2
- package/dist/productionReadiness.d.ts +559 -0
- package/dist/proofTrends.d.ts +133 -0
- package/dist/providerAdapters.d.ts +48 -0
- package/dist/providerCapabilities.d.ts +92 -0
- package/dist/providerDecisionTraces.d.ts +130 -0
- package/dist/providerHealth.d.ts +1 -0
- package/dist/providerOrchestration.d.ts +109 -0
- package/dist/providerRoutingContract.d.ts +71 -0
- package/dist/providerSlo.d.ts +142 -0
- package/dist/providerStackRecommendations.d.ts +187 -0
- package/dist/qualityRoutes.d.ts +76 -0
- package/dist/queue.d.ts +9 -0
- package/dist/react/VoiceAgentSquadStatus.d.ts +5 -0
- package/dist/react/VoiceDeliveryRuntime.d.ts +7 -0
- package/dist/react/VoiceOpsActionCenter.d.ts +5 -0
- package/dist/react/VoiceOpsStatus.d.ts +6 -0
- package/dist/react/VoicePlatformCoverage.d.ts +6 -0
- package/dist/react/VoiceProofTrends.d.ts +6 -0
- package/dist/react/VoiceProviderCapabilities.d.ts +6 -0
- package/dist/react/VoiceProviderContracts.d.ts +6 -0
- package/dist/react/VoiceProviderSimulationControls.d.ts +5 -0
- package/dist/react/VoiceProviderStatus.d.ts +6 -0
- package/dist/react/VoiceReadinessFailures.d.ts +6 -0
- package/dist/react/VoiceRoutingStatus.d.ts +6 -0
- package/dist/react/VoiceTraceTimeline.d.ts +6 -0
- package/dist/react/VoiceTurnLatency.d.ts +6 -0
- package/dist/react/VoiceTurnQuality.d.ts +6 -0
- package/dist/react/index.d.ts +32 -0
- package/dist/react/index.js +5059 -31
- package/dist/react/useVoiceAgentSquadStatus.d.ts +8 -0
- package/dist/react/useVoiceCampaignDialerProof.d.ts +10 -0
- package/dist/react/useVoiceController.d.ts +1 -0
- package/dist/react/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/react/useVoiceLiveOps.d.ts +9 -0
- package/dist/react/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/react/useVoiceOpsStatus.d.ts +8 -0
- package/dist/react/useVoicePlatformCoverage.d.ts +8 -0
- package/dist/react/useVoiceProofTrends.d.ts +8 -0
- package/dist/react/useVoiceProviderCapabilities.d.ts +8 -0
- package/dist/react/useVoiceProviderContracts.d.ts +8 -0
- package/dist/react/useVoiceProviderSimulationControls.d.ts +10 -0
- package/dist/react/useVoiceReadinessFailures.d.ts +8 -0
- package/dist/react/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/react/useVoiceStream.d.ts +1 -0
- package/dist/react/useVoiceTraceTimeline.d.ts +8 -0
- package/dist/react/useVoiceTurnLatency.d.ts +9 -0
- package/dist/react/useVoiceTurnQuality.d.ts +8 -0
- package/dist/react/useVoiceWorkflowStatus.d.ts +8 -0
- package/dist/readinessProfiles.d.ts +38 -0
- package/dist/realtimeChannel.d.ts +136 -0
- package/dist/realtimeProviderContracts.d.ts +133 -0
- package/dist/reconnectContract.d.ts +88 -0
- package/dist/resilienceRoutes.d.ts +143 -0
- package/dist/sessionReplay.d.ts +12 -0
- package/dist/simulationSuite.d.ts +143 -0
- package/dist/sloCalibration.d.ts +185 -0
- package/dist/sqliteStore.d.ts +13 -2
- package/dist/svelte/createVoiceAgentSquadStatus.d.ts +9 -0
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +9 -0
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +11 -0
- package/dist/svelte/createVoiceLiveOps.d.ts +13 -0
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +10 -0
- package/dist/svelte/createVoiceOpsStatus.d.ts +9 -0
- package/dist/svelte/createVoicePlatformCoverage.d.ts +7 -0
- package/dist/svelte/createVoiceProofTrends.d.ts +7 -0
- package/dist/svelte/createVoiceProviderCapabilities.d.ts +10 -0
- package/dist/svelte/createVoiceProviderContracts.d.ts +10 -0
- package/dist/svelte/createVoiceProviderSimulationControls.d.ts +11 -0
- package/dist/svelte/createVoiceProviderStatus.d.ts +4 -2
- package/dist/svelte/createVoiceReadinessFailures.d.ts +7 -0
- package/dist/svelte/createVoiceRoutingStatus.d.ts +10 -0
- package/dist/svelte/createVoiceTraceTimeline.d.ts +10 -0
- package/dist/svelte/createVoiceTurnLatency.d.ts +11 -0
- package/dist/svelte/createVoiceTurnQuality.d.ts +10 -0
- package/dist/svelte/createVoiceWorkflowStatus.d.ts +8 -0
- package/dist/svelte/index.d.ts +17 -0
- package/dist/svelte/index.js +4924 -420
- package/dist/telephony/contract.d.ts +61 -0
- package/dist/telephony/matrix.d.ts +97 -0
- package/dist/telephony/plivo.d.ts +303 -0
- package/dist/telephony/security.d.ts +182 -0
- package/dist/telephony/telnyx.d.ts +291 -0
- package/dist/telephony/twilio.d.ts +135 -2
- package/dist/telephonyOutcome.d.ts +273 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.js +1767 -44
- package/dist/testing/ioProviderSimulator.d.ts +41 -0
- package/dist/toolContract.d.ts +161 -0
- package/dist/toolRuntime.d.ts +50 -0
- package/dist/trace.d.ts +19 -1
- package/dist/traceDeliveryRoutes.d.ts +86 -0
- package/dist/traceTimeline.d.ts +97 -0
- package/dist/turnLatency.d.ts +95 -0
- package/dist/turnQuality.d.ts +94 -0
- package/dist/types.d.ts +97 -3
- package/dist/voiceMonitoring.d.ts +444 -0
- package/dist/vue/VoiceDeliveryRuntime.d.ts +30 -0
- package/dist/vue/VoiceOpsActionCenter.d.ts +13 -0
- package/dist/vue/VoiceOpsStatus.d.ts +30 -0
- package/dist/vue/VoicePlatformCoverage.d.ts +23 -0
- package/dist/vue/VoiceProofTrends.d.ts +21 -0
- package/dist/vue/VoiceProviderCapabilities.d.ts +51 -0
- package/dist/vue/VoiceProviderContracts.d.ts +21 -0
- package/dist/vue/VoiceProviderSimulationControls.d.ts +88 -0
- package/dist/vue/VoiceProviderStatus.d.ts +51 -0
- package/dist/vue/VoiceReadinessFailures.d.ts +21 -0
- package/dist/vue/VoiceRoutingStatus.d.ts +51 -0
- package/dist/vue/VoiceTurnLatency.d.ts +69 -0
- package/dist/vue/VoiceTurnQuality.d.ts +51 -0
- package/dist/vue/index.d.ts +30 -0
- package/dist/vue/index.js +4828 -56
- package/dist/vue/useVoiceAgentSquadStatus.d.ts +9 -0
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +11 -0
- package/dist/vue/useVoiceController.d.ts +2 -1
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/vue/useVoiceLiveOps.d.ts +9 -0
- package/dist/vue/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/vue/useVoiceOpsStatus.d.ts +9 -0
- package/dist/vue/useVoicePlatformCoverage.d.ts +9 -0
- package/dist/vue/useVoiceProofTrends.d.ts +9 -0
- package/dist/vue/useVoiceProviderCapabilities.d.ts +9 -0
- package/dist/vue/useVoiceProviderContracts.d.ts +9 -0
- package/dist/vue/useVoiceProviderSimulationControls.d.ts +24 -0
- package/dist/vue/useVoiceProviderStatus.d.ts +1 -1
- package/dist/vue/useVoiceReadinessFailures.d.ts +775 -0
- package/dist/vue/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/vue/useVoiceStream.d.ts +2 -1
- package/dist/vue/useVoiceTraceTimeline.d.ts +9 -0
- package/dist/vue/useVoiceTurnLatency.d.ts +10 -0
- package/dist/vue/useVoiceTurnQuality.d.ts +9 -0
- package/dist/vue/useVoiceWorkflowStatus.d.ts +9 -0
- package/dist/workflowContract.d.ts +91 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { VoiceOpsDispositionTaskPolicies, VoiceOpsTaskAssignmentRule, Voice
|
|
|
3
3
|
import type { VoiceIntegrationSink } from './opsSinks';
|
|
4
4
|
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewArtifact, VoiceCallReviewStore } from './testing/review';
|
|
5
5
|
import type { VoiceTraceEventStore } from './trace';
|
|
6
|
+
import type { VoiceLiveOpsControlState } from './liveOps';
|
|
6
7
|
export type AudioFormat = {
|
|
7
8
|
container: 'raw';
|
|
8
9
|
encoding: 'alaw' | 'mulaw' | 'pcm_s16le';
|
|
@@ -193,6 +194,15 @@ export type RealtimeAdapter<TOptions extends RealtimeAdapterOpenOptions = Realti
|
|
|
193
194
|
open: (options: TOptions) => Promise<RealtimeAdapterSession> | RealtimeAdapterSession;
|
|
194
195
|
};
|
|
195
196
|
export type VoiceSessionStatus = 'active' | 'reconnecting' | 'completed' | 'failed';
|
|
197
|
+
export type VoiceReconnectClientStatus = 'idle' | 'reconnecting' | 'resumed' | 'exhausted';
|
|
198
|
+
export type VoiceReconnectClientState = {
|
|
199
|
+
attempts: number;
|
|
200
|
+
lastDisconnectAt?: number;
|
|
201
|
+
lastResumedAt?: number;
|
|
202
|
+
maxAttempts: number;
|
|
203
|
+
nextAttemptAt?: number;
|
|
204
|
+
status: VoiceReconnectClientStatus;
|
|
205
|
+
};
|
|
196
206
|
export type VoiceTurnRecord<TResult = unknown> = {
|
|
197
207
|
id: string;
|
|
198
208
|
text: string;
|
|
@@ -475,6 +485,10 @@ export type VoiceLexiconResolver<TContext = unknown> = (input: {
|
|
|
475
485
|
}) => Promise<VoiceLexiconEntry[] | void> | VoiceLexiconEntry[] | void;
|
|
476
486
|
export type VoiceOnTurnObjectHandler<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = (input: {
|
|
477
487
|
context: TContext;
|
|
488
|
+
liveOps?: {
|
|
489
|
+
control: VoiceLiveOpsControlState;
|
|
490
|
+
injectedInstruction?: string;
|
|
491
|
+
};
|
|
478
492
|
session: TSession;
|
|
479
493
|
turn: VoiceTurnRecord;
|
|
480
494
|
api: VoiceSessionHandle<TContext, TSession, TResult>;
|
|
@@ -596,6 +610,9 @@ export type VoiceRuntimeOpsConfig<TContext = unknown, TSession extends VoiceSess
|
|
|
596
610
|
tasks?: VoiceOpsTaskStore;
|
|
597
611
|
webhook?: VoiceIntegrationWebhookConfig;
|
|
598
612
|
};
|
|
613
|
+
export type VoiceLiveOpsRuntimeConfig = {
|
|
614
|
+
getControl: (sessionId: string) => Promise<VoiceLiveOpsControlState | null | undefined> | VoiceLiveOpsControlState | null | undefined;
|
|
615
|
+
};
|
|
599
616
|
export type VoiceNormalizedRouteConfig<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = Omit<VoiceRouteConfig<TContext, TSession, TResult>, 'onTurn'> & {
|
|
600
617
|
onTurn: VoiceOnTurnObjectHandler<TContext, TSession, TResult>;
|
|
601
618
|
};
|
|
@@ -616,9 +633,11 @@ export type VoicePluginConfig<TContext = unknown, TSession extends VoiceSessionR
|
|
|
616
633
|
lexicon?: VoiceLexiconEntry[] | VoiceLexiconResolver<TContext>;
|
|
617
634
|
phraseHints?: VoicePhraseHint[] | VoicePhraseHintResolver<TContext>;
|
|
618
635
|
preset?: VoiceRuntimePreset;
|
|
619
|
-
stt
|
|
636
|
+
stt?: STTAdapter;
|
|
620
637
|
sttFallback?: VoiceSTTFallbackConfig;
|
|
621
638
|
sttLifecycle?: VoiceSTTLifecycle;
|
|
639
|
+
realtime?: RealtimeAdapter;
|
|
640
|
+
realtimeInputFormat?: AudioFormat;
|
|
622
641
|
tts?: TTSAdapter;
|
|
623
642
|
session: VoiceSessionStore<NoInfer<TSession>>;
|
|
624
643
|
reconnect?: VoiceReconnectConfig;
|
|
@@ -628,6 +647,7 @@ export type VoicePluginConfig<TContext = unknown, TSession extends VoiceSessionR
|
|
|
628
647
|
htmx?: boolean | VoiceHTMXConfig<TSession, NoInfer<TResult>>;
|
|
629
648
|
handoff?: VoiceHandoffConfig<TContext, TSession, TResult>;
|
|
630
649
|
ops?: VoiceRuntimeOpsConfig<TContext, TSession, TResult>;
|
|
650
|
+
liveOps?: VoiceLiveOpsRuntimeConfig;
|
|
631
651
|
trace?: VoiceTraceEventStore;
|
|
632
652
|
} & VoiceRouteConfig<TContext, TSession, TResult>;
|
|
633
653
|
export type CreateVoiceSessionOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
@@ -635,7 +655,9 @@ export type CreateVoiceSessionOptions<TContext = unknown, TSession extends Voice
|
|
|
635
655
|
id: string;
|
|
636
656
|
context: TContext;
|
|
637
657
|
socket: VoiceSocket;
|
|
638
|
-
stt
|
|
658
|
+
stt?: STTAdapter;
|
|
659
|
+
realtime?: RealtimeAdapter;
|
|
660
|
+
realtimeInputFormat?: AudioFormat;
|
|
639
661
|
tts?: TTSAdapter;
|
|
640
662
|
languageStrategy?: VoiceLanguageStrategy;
|
|
641
663
|
lexicon?: VoiceLexiconEntry[];
|
|
@@ -649,6 +671,7 @@ export type CreateVoiceSessionOptions<TContext = unknown, TSession extends Voice
|
|
|
649
671
|
turnDetection: VoiceResolvedTurnDetectionConfig;
|
|
650
672
|
audioConditioning?: VoiceResolvedAudioConditioningConfig;
|
|
651
673
|
handoff?: VoiceHandoffConfig<TContext, TSession, TResult>;
|
|
674
|
+
liveOps?: VoiceLiveOpsRuntimeConfig;
|
|
652
675
|
route: VoiceNormalizedRouteConfig<TContext, TSession, TResult>;
|
|
653
676
|
logger?: VoiceLogger;
|
|
654
677
|
};
|
|
@@ -682,6 +705,16 @@ export type VoiceServerSessionMessage = {
|
|
|
682
705
|
status: VoiceSessionStatus;
|
|
683
706
|
scenarioId?: string;
|
|
684
707
|
};
|
|
708
|
+
export type VoiceServerReplayMessage<TResult = unknown> = {
|
|
709
|
+
type: 'replay';
|
|
710
|
+
assistantTexts: string[];
|
|
711
|
+
call?: VoiceCallLifecycleState;
|
|
712
|
+
partial: string;
|
|
713
|
+
scenarioId?: string;
|
|
714
|
+
sessionId: string;
|
|
715
|
+
status: VoiceSessionStatus;
|
|
716
|
+
turns: VoiceTurnRecord<TResult>[];
|
|
717
|
+
};
|
|
685
718
|
export type VoiceServerPartialMessage = {
|
|
686
719
|
type: 'partial';
|
|
687
720
|
transcript: Transcript;
|
|
@@ -723,17 +756,23 @@ export type VoiceServerErrorMessage = {
|
|
|
723
756
|
export type VoiceServerPongMessage = {
|
|
724
757
|
type: 'pong';
|
|
725
758
|
};
|
|
726
|
-
export type
|
|
759
|
+
export type VoiceServerConnectionMessage = {
|
|
760
|
+
type: 'connection';
|
|
761
|
+
reconnect: VoiceReconnectClientState;
|
|
762
|
+
};
|
|
763
|
+
export type VoiceServerMessage<TResult = unknown> = VoiceServerSessionMessage | VoiceServerReplayMessage<TResult> | VoiceServerPartialMessage | VoiceServerFinalMessage | VoiceServerTurnMessage<TResult> | VoiceServerAssistantMessage | VoiceServerAudioMessage | VoiceServerCallLifecycleMessage | VoiceServerCompleteMessage | VoiceServerErrorMessage | VoiceServerPongMessage | VoiceServerConnectionMessage;
|
|
727
764
|
export type VoiceConnectionOptions = {
|
|
728
765
|
protocols?: string[];
|
|
729
766
|
scenarioId?: string;
|
|
730
767
|
reconnect?: boolean;
|
|
768
|
+
reconnectReportPath?: string;
|
|
731
769
|
maxReconnectAttempts?: number;
|
|
732
770
|
pingInterval?: number;
|
|
733
771
|
sessionId?: string;
|
|
734
772
|
};
|
|
735
773
|
export type VoiceCaptureOptions = {
|
|
736
774
|
channelCount?: 1 | 2;
|
|
775
|
+
onAudio?: (audio: Uint8Array | ArrayBuffer, sendAudio: (audio: Uint8Array | ArrayBuffer) => void) => void;
|
|
737
776
|
onLevel?: (level: number) => void;
|
|
738
777
|
sampleRateHz?: number;
|
|
739
778
|
};
|
|
@@ -747,6 +786,46 @@ export type VoiceBargeInOptions = {
|
|
|
747
786
|
enabled?: boolean;
|
|
748
787
|
interruptOnPartial?: boolean;
|
|
749
788
|
interruptThreshold?: number;
|
|
789
|
+
monitor?: VoiceBargeInMonitor;
|
|
790
|
+
};
|
|
791
|
+
export type VoiceBargeInTriggerReason = 'input-level' | 'manual-audio' | 'manual-interrupt' | 'partial-transcript';
|
|
792
|
+
export type VoiceBargeInMonitorEvent = {
|
|
793
|
+
at: number;
|
|
794
|
+
id: string;
|
|
795
|
+
latencyMs?: number;
|
|
796
|
+
playbackStopLatencyMs?: number;
|
|
797
|
+
reason: VoiceBargeInTriggerReason;
|
|
798
|
+
sessionId?: string | null;
|
|
799
|
+
status: 'requested' | 'stopped' | 'skipped';
|
|
800
|
+
thresholdMs?: number;
|
|
801
|
+
};
|
|
802
|
+
export type VoiceBargeInMonitorSnapshot = {
|
|
803
|
+
averageLatencyMs?: number;
|
|
804
|
+
events: VoiceBargeInMonitorEvent[];
|
|
805
|
+
failed: number;
|
|
806
|
+
lastEvent?: VoiceBargeInMonitorEvent;
|
|
807
|
+
passed: number;
|
|
808
|
+
status: 'empty' | 'fail' | 'pass' | 'warn';
|
|
809
|
+
thresholdMs: number;
|
|
810
|
+
total: number;
|
|
811
|
+
};
|
|
812
|
+
export type VoiceBargeInMonitor = {
|
|
813
|
+
getSnapshot: () => VoiceBargeInMonitorSnapshot;
|
|
814
|
+
recordRequested: (input: {
|
|
815
|
+
reason: VoiceBargeInTriggerReason;
|
|
816
|
+
sessionId?: string | null;
|
|
817
|
+
}) => VoiceBargeInMonitorEvent;
|
|
818
|
+
recordSkipped: (input: {
|
|
819
|
+
reason: VoiceBargeInTriggerReason;
|
|
820
|
+
sessionId?: string | null;
|
|
821
|
+
}) => VoiceBargeInMonitorEvent;
|
|
822
|
+
recordStopped: (input: {
|
|
823
|
+
latencyMs?: number;
|
|
824
|
+
playbackStopLatencyMs?: number;
|
|
825
|
+
reason: VoiceBargeInTriggerReason;
|
|
826
|
+
sessionId?: string | null;
|
|
827
|
+
}) => VoiceBargeInMonitorEvent;
|
|
828
|
+
subscribe: (subscriber: () => void) => () => void;
|
|
750
829
|
};
|
|
751
830
|
export type VoiceAudioPlayerOptions = {
|
|
752
831
|
autoStart?: boolean;
|
|
@@ -805,6 +884,7 @@ export type VoiceStreamState<TResult = unknown> = {
|
|
|
805
884
|
sessionId: string | null;
|
|
806
885
|
scenarioId: string | null;
|
|
807
886
|
status: VoiceSessionStatus | 'idle';
|
|
887
|
+
reconnect: VoiceReconnectClientState;
|
|
808
888
|
partial: string;
|
|
809
889
|
turns: VoiceTurnRecord<TResult>[];
|
|
810
890
|
assistantTexts: string[];
|
|
@@ -831,6 +911,7 @@ export type VoiceStream<TResult = unknown> = {
|
|
|
831
911
|
getSnapshot: () => VoiceStreamState<TResult>;
|
|
832
912
|
isConnected: boolean;
|
|
833
913
|
partial: string;
|
|
914
|
+
reconnect: VoiceReconnectClientState;
|
|
834
915
|
sendAudio: (audio: Uint8Array | ArrayBuffer) => void;
|
|
835
916
|
sessionId: string | null;
|
|
836
917
|
scenarioId: string | null;
|
|
@@ -900,6 +981,7 @@ export type VoiceController<TResult = unknown> = {
|
|
|
900
981
|
isConnected: boolean;
|
|
901
982
|
isRecording: boolean;
|
|
902
983
|
partial: string;
|
|
984
|
+
reconnect: VoiceReconnectClientState;
|
|
903
985
|
recordingError: string | null;
|
|
904
986
|
sendAudio: (audio: Uint8Array | ArrayBuffer) => void;
|
|
905
987
|
sessionId: string | null;
|
|
@@ -933,6 +1015,15 @@ export type VoiceStoreAction<TResult = unknown> = {
|
|
|
933
1015
|
sessionId: string;
|
|
934
1016
|
scenarioId?: string;
|
|
935
1017
|
status: VoiceSessionStatus;
|
|
1018
|
+
} | {
|
|
1019
|
+
type: 'replay';
|
|
1020
|
+
assistantTexts: string[];
|
|
1021
|
+
call?: VoiceCallLifecycleState;
|
|
1022
|
+
partial: string;
|
|
1023
|
+
scenarioId?: string;
|
|
1024
|
+
sessionId: string;
|
|
1025
|
+
status: VoiceSessionStatus;
|
|
1026
|
+
turns: VoiceTurnRecord<TResult>[];
|
|
936
1027
|
} | {
|
|
937
1028
|
type: 'call_lifecycle';
|
|
938
1029
|
event: VoiceCallLifecycleEvent;
|
|
@@ -963,6 +1054,9 @@ export type VoiceStoreAction<TResult = unknown> = {
|
|
|
963
1054
|
message: string;
|
|
964
1055
|
} | {
|
|
965
1056
|
type: 'connected';
|
|
1057
|
+
} | {
|
|
1058
|
+
type: 'connection';
|
|
1059
|
+
reconnect: VoiceReconnectClientState;
|
|
966
1060
|
} | {
|
|
967
1061
|
type: 'disconnected';
|
|
968
1062
|
};
|
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
export type VoiceMonitorStatus = 'fail' | 'pass' | 'warn';
|
|
3
|
+
export type VoiceMonitorSeverity = 'critical' | 'info' | 'warn';
|
|
4
|
+
export type VoiceMonitorIssueStatus = 'acknowledged' | 'muted' | 'open' | 'resolved';
|
|
5
|
+
export type VoiceMonitorEvaluationInput<TEvidence = unknown> = {
|
|
6
|
+
evidence: TEvidence;
|
|
7
|
+
now: number;
|
|
8
|
+
};
|
|
9
|
+
export type VoiceMonitorEvaluation = {
|
|
10
|
+
detail?: string;
|
|
11
|
+
impactedSessions?: readonly string[];
|
|
12
|
+
operationsRecordHrefs?: readonly string[];
|
|
13
|
+
status: VoiceMonitorStatus;
|
|
14
|
+
threshold?: number | string;
|
|
15
|
+
value?: number | string;
|
|
16
|
+
};
|
|
17
|
+
export type VoiceMonitorDefinition<TEvidence = unknown> = {
|
|
18
|
+
description?: string;
|
|
19
|
+
id: string;
|
|
20
|
+
label: string;
|
|
21
|
+
severity?: VoiceMonitorSeverity;
|
|
22
|
+
windowMs?: number;
|
|
23
|
+
evaluate: (input: VoiceMonitorEvaluationInput<TEvidence>) => Promise<VoiceMonitorEvaluation> | VoiceMonitorEvaluation;
|
|
24
|
+
};
|
|
25
|
+
export type VoiceMonitorRun = VoiceMonitorEvaluation & {
|
|
26
|
+
checkedAt: number;
|
|
27
|
+
description?: string;
|
|
28
|
+
id: string;
|
|
29
|
+
label: string;
|
|
30
|
+
severity: VoiceMonitorSeverity;
|
|
31
|
+
windowMs?: number;
|
|
32
|
+
};
|
|
33
|
+
export type VoiceMonitorIssue = {
|
|
34
|
+
acknowledgedAt?: number;
|
|
35
|
+
acknowledgedBy?: string;
|
|
36
|
+
createdAt: number;
|
|
37
|
+
detail?: string;
|
|
38
|
+
id: string;
|
|
39
|
+
impactedSessions: string[];
|
|
40
|
+
label: string;
|
|
41
|
+
lastSeenAt: number;
|
|
42
|
+
monitorId: string;
|
|
43
|
+
mutedAt?: number;
|
|
44
|
+
mutedBy?: string;
|
|
45
|
+
operationsRecordHrefs: string[];
|
|
46
|
+
resolvedAt?: number;
|
|
47
|
+
resolvedBy?: string;
|
|
48
|
+
severity: VoiceMonitorSeverity;
|
|
49
|
+
status: VoiceMonitorIssueStatus;
|
|
50
|
+
threshold?: number | string;
|
|
51
|
+
value?: number | string;
|
|
52
|
+
};
|
|
53
|
+
export type VoiceMonitorIssueStore = {
|
|
54
|
+
list: () => Promise<VoiceMonitorIssue[]> | VoiceMonitorIssue[];
|
|
55
|
+
upsert: (issue: VoiceMonitorIssue) => Promise<VoiceMonitorIssue> | VoiceMonitorIssue;
|
|
56
|
+
update: (id: string, patch: Partial<VoiceMonitorIssue>) => Promise<VoiceMonitorIssue | undefined> | VoiceMonitorIssue | undefined;
|
|
57
|
+
};
|
|
58
|
+
export type VoiceMonitorNotifier = {
|
|
59
|
+
deliver: (input: VoiceMonitorNotifierDeliveryInput) => Promise<VoiceMonitorNotifierDeliveryResult> | VoiceMonitorNotifierDeliveryResult;
|
|
60
|
+
id: string;
|
|
61
|
+
label: string;
|
|
62
|
+
};
|
|
63
|
+
export type VoiceMonitorNotifierDeliveryInput = {
|
|
64
|
+
issue: VoiceMonitorIssue;
|
|
65
|
+
now: number;
|
|
66
|
+
};
|
|
67
|
+
export type VoiceMonitorNotifierDeliveryResult = {
|
|
68
|
+
detail?: string;
|
|
69
|
+
status: 'failed' | 'sent' | 'skipped';
|
|
70
|
+
};
|
|
71
|
+
export type VoiceMonitorNotifierDeliveryReceipt = {
|
|
72
|
+
detail?: string;
|
|
73
|
+
id: string;
|
|
74
|
+
issueId: string;
|
|
75
|
+
notifierId: string;
|
|
76
|
+
notifierLabel: string;
|
|
77
|
+
sentAt: number;
|
|
78
|
+
status: 'failed' | 'sent' | 'skipped';
|
|
79
|
+
};
|
|
80
|
+
export type VoiceMonitorNotifierDeliveryReceiptStore = {
|
|
81
|
+
list: () => Promise<VoiceMonitorNotifierDeliveryReceipt[]> | VoiceMonitorNotifierDeliveryReceipt[];
|
|
82
|
+
set: (id: string, receipt: VoiceMonitorNotifierDeliveryReceipt) => Promise<VoiceMonitorNotifierDeliveryReceipt> | VoiceMonitorNotifierDeliveryReceipt;
|
|
83
|
+
};
|
|
84
|
+
export type VoiceMonitorNotifierDeliveryReport = {
|
|
85
|
+
checkedAt: number;
|
|
86
|
+
elapsedMs: number;
|
|
87
|
+
receipts: VoiceMonitorNotifierDeliveryReceipt[];
|
|
88
|
+
status: VoiceMonitorStatus;
|
|
89
|
+
summary: {
|
|
90
|
+
failed: number;
|
|
91
|
+
notifiers: number;
|
|
92
|
+
sent: number;
|
|
93
|
+
skipped: number;
|
|
94
|
+
total: number;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
export type VoiceMonitorRunReport = {
|
|
98
|
+
checkedAt: number;
|
|
99
|
+
elapsedMs: number;
|
|
100
|
+
issues: VoiceMonitorIssue[];
|
|
101
|
+
runs: VoiceMonitorRun[];
|
|
102
|
+
status: VoiceMonitorStatus;
|
|
103
|
+
summary: {
|
|
104
|
+
acknowledged: number;
|
|
105
|
+
criticalOpen: number;
|
|
106
|
+
failed: number;
|
|
107
|
+
muted: number;
|
|
108
|
+
open: number;
|
|
109
|
+
passed: number;
|
|
110
|
+
resolved: number;
|
|
111
|
+
total: number;
|
|
112
|
+
warned: number;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
export type VoiceMonitorRunOptions<TEvidence = unknown> = {
|
|
116
|
+
evidence: TEvidence;
|
|
117
|
+
issueStore?: VoiceMonitorIssueStore;
|
|
118
|
+
monitors: readonly VoiceMonitorDefinition<TEvidence>[];
|
|
119
|
+
now?: number;
|
|
120
|
+
};
|
|
121
|
+
export type VoiceMonitorNotifierDeliveryOptions = {
|
|
122
|
+
issueStore: VoiceMonitorIssueStore;
|
|
123
|
+
notifiers: readonly VoiceMonitorNotifier[];
|
|
124
|
+
now?: number;
|
|
125
|
+
receiptStore?: VoiceMonitorNotifierDeliveryReceiptStore;
|
|
126
|
+
statuses?: readonly VoiceMonitorIssueStatus[];
|
|
127
|
+
};
|
|
128
|
+
export type VoiceMonitorWebhookNotifierOptions = {
|
|
129
|
+
fetch?: typeof fetch;
|
|
130
|
+
headers?: HeadersInit;
|
|
131
|
+
id: string;
|
|
132
|
+
label?: string;
|
|
133
|
+
mapIssue?: (issue: VoiceMonitorIssue) => unknown;
|
|
134
|
+
url: string;
|
|
135
|
+
};
|
|
136
|
+
export type VoiceMonitorRoutesOptions<TEvidence = unknown> = VoiceMonitorRunOptions<TEvidence> & {
|
|
137
|
+
headers?: HeadersInit;
|
|
138
|
+
htmlPath?: false | string;
|
|
139
|
+
issuePath?: string;
|
|
140
|
+
name?: string;
|
|
141
|
+
notifierPath?: false | string;
|
|
142
|
+
notifiers?: readonly VoiceMonitorNotifier[];
|
|
143
|
+
path?: string;
|
|
144
|
+
receiptStore?: VoiceMonitorNotifierDeliveryReceiptStore;
|
|
145
|
+
render?: (report: VoiceMonitorRunReport) => Promise<string> | string;
|
|
146
|
+
title?: string;
|
|
147
|
+
};
|
|
148
|
+
export type VoiceMonitorRunnerTickResult = {
|
|
149
|
+
completedAt: number;
|
|
150
|
+
monitoring: VoiceMonitorRunReport;
|
|
151
|
+
notifierDelivery?: VoiceMonitorNotifierDeliveryReport;
|
|
152
|
+
startedAt: number;
|
|
153
|
+
};
|
|
154
|
+
export type VoiceMonitorRunner = {
|
|
155
|
+
isRunning: () => boolean;
|
|
156
|
+
start: () => void;
|
|
157
|
+
stop: () => void;
|
|
158
|
+
tick: () => Promise<VoiceMonitorRunnerTickResult>;
|
|
159
|
+
};
|
|
160
|
+
export type VoiceMonitorRunnerOptions<TEvidence = unknown> = {
|
|
161
|
+
evidence?: TEvidence;
|
|
162
|
+
issueStore?: VoiceMonitorIssueStore;
|
|
163
|
+
loadEvidence?: () => Promise<TEvidence> | TEvidence;
|
|
164
|
+
monitors: readonly VoiceMonitorDefinition<TEvidence>[];
|
|
165
|
+
notifiers?: readonly VoiceMonitorNotifier[];
|
|
166
|
+
now?: () => number;
|
|
167
|
+
pollIntervalMs?: number;
|
|
168
|
+
receiptStore?: VoiceMonitorNotifierDeliveryReceiptStore;
|
|
169
|
+
};
|
|
170
|
+
export type VoiceMonitorRunnerRoutesOptions = {
|
|
171
|
+
headers?: HeadersInit;
|
|
172
|
+
name?: string;
|
|
173
|
+
path?: string;
|
|
174
|
+
runner: VoiceMonitorRunner;
|
|
175
|
+
};
|
|
176
|
+
export declare const createVoiceMemoryMonitorIssueStore: (initial?: readonly VoiceMonitorIssue[]) => VoiceMonitorIssueStore;
|
|
177
|
+
export declare const createVoiceMemoryMonitorNotifierDeliveryReceiptStore: (initial?: readonly VoiceMonitorNotifierDeliveryReceipt[]) => VoiceMonitorNotifierDeliveryReceiptStore;
|
|
178
|
+
export declare const buildVoiceMonitorRunReport: <TEvidence = unknown>(options: VoiceMonitorRunOptions<TEvidence>) => Promise<VoiceMonitorRunReport>;
|
|
179
|
+
export declare const acknowledgeVoiceMonitorIssue: (store: VoiceMonitorIssueStore, id: string, input?: {
|
|
180
|
+
actorId?: string;
|
|
181
|
+
now?: number;
|
|
182
|
+
}) => Promise<VoiceMonitorIssue | undefined>;
|
|
183
|
+
export declare const resolveVoiceMonitorIssue: (store: VoiceMonitorIssueStore, id: string, input?: {
|
|
184
|
+
actorId?: string;
|
|
185
|
+
now?: number;
|
|
186
|
+
}) => Promise<VoiceMonitorIssue | undefined>;
|
|
187
|
+
export declare const muteVoiceMonitorIssue: (store: VoiceMonitorIssueStore, id: string, input?: {
|
|
188
|
+
actorId?: string;
|
|
189
|
+
now?: number;
|
|
190
|
+
}) => Promise<VoiceMonitorIssue | undefined>;
|
|
191
|
+
export declare const createVoiceMonitorWebhookNotifier: (options: VoiceMonitorWebhookNotifierOptions) => VoiceMonitorNotifier;
|
|
192
|
+
export declare const deliverVoiceMonitorIssueNotifications: (options: VoiceMonitorNotifierDeliveryOptions) => Promise<VoiceMonitorNotifierDeliveryReport>;
|
|
193
|
+
export declare const createVoiceMonitorRunner: <TEvidence = unknown>(options: VoiceMonitorRunnerOptions<TEvidence>) => VoiceMonitorRunner;
|
|
194
|
+
export declare const renderVoiceMonitorMarkdown: (report: VoiceMonitorRunReport) => string;
|
|
195
|
+
export declare const renderVoiceMonitorHTML: (report: VoiceMonitorRunReport, options?: {
|
|
196
|
+
title?: string;
|
|
197
|
+
}) => string;
|
|
198
|
+
export declare const createVoiceMonitorRoutes: <TEvidence = unknown>(options: VoiceMonitorRoutesOptions<TEvidence>) => Elysia<"", {
|
|
199
|
+
decorator: {};
|
|
200
|
+
store: {};
|
|
201
|
+
derive: {};
|
|
202
|
+
resolve: {};
|
|
203
|
+
}, {
|
|
204
|
+
typebox: {};
|
|
205
|
+
error: {};
|
|
206
|
+
}, {
|
|
207
|
+
schema: {};
|
|
208
|
+
standaloneSchema: {};
|
|
209
|
+
macro: {};
|
|
210
|
+
macroFn: {};
|
|
211
|
+
parser: {};
|
|
212
|
+
response: {};
|
|
213
|
+
}, {
|
|
214
|
+
[x: string]: {
|
|
215
|
+
get: {
|
|
216
|
+
body: unknown;
|
|
217
|
+
params: {};
|
|
218
|
+
query: unknown;
|
|
219
|
+
headers: unknown;
|
|
220
|
+
response: {
|
|
221
|
+
200: VoiceMonitorRunReport;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
} & {
|
|
226
|
+
[x: `${string}.md`]: {
|
|
227
|
+
get: {
|
|
228
|
+
body: unknown;
|
|
229
|
+
params: {};
|
|
230
|
+
query: unknown;
|
|
231
|
+
headers: unknown;
|
|
232
|
+
response: {
|
|
233
|
+
200: Response;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
} & {
|
|
238
|
+
[x: string]: {
|
|
239
|
+
get: {
|
|
240
|
+
body: unknown;
|
|
241
|
+
params: {};
|
|
242
|
+
query: unknown;
|
|
243
|
+
headers: unknown;
|
|
244
|
+
response: {
|
|
245
|
+
200: VoiceMonitorIssue[];
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
} & {
|
|
250
|
+
[x: string]: {
|
|
251
|
+
notifications: {
|
|
252
|
+
get: {
|
|
253
|
+
body: unknown;
|
|
254
|
+
params: {};
|
|
255
|
+
query: unknown;
|
|
256
|
+
headers: unknown;
|
|
257
|
+
response: {
|
|
258
|
+
200: VoiceMonitorNotifierDeliveryReceipt[];
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
} & {
|
|
264
|
+
[x: string]: {
|
|
265
|
+
":id": {
|
|
266
|
+
acknowledge: {
|
|
267
|
+
post: {
|
|
268
|
+
body: unknown;
|
|
269
|
+
params: {
|
|
270
|
+
id: string;
|
|
271
|
+
} & {};
|
|
272
|
+
query: unknown;
|
|
273
|
+
headers: unknown;
|
|
274
|
+
response: {
|
|
275
|
+
200: Response | VoiceMonitorIssue;
|
|
276
|
+
422: {
|
|
277
|
+
type: "validation";
|
|
278
|
+
on: string;
|
|
279
|
+
summary?: string;
|
|
280
|
+
message?: string;
|
|
281
|
+
found?: unknown;
|
|
282
|
+
property?: string;
|
|
283
|
+
expected?: string;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
} & {
|
|
291
|
+
[x: string]: {
|
|
292
|
+
":id": {
|
|
293
|
+
resolve: {
|
|
294
|
+
post: {
|
|
295
|
+
body: unknown;
|
|
296
|
+
params: {
|
|
297
|
+
id: string;
|
|
298
|
+
} & {};
|
|
299
|
+
query: unknown;
|
|
300
|
+
headers: unknown;
|
|
301
|
+
response: {
|
|
302
|
+
200: Response | VoiceMonitorIssue;
|
|
303
|
+
422: {
|
|
304
|
+
type: "validation";
|
|
305
|
+
on: string;
|
|
306
|
+
summary?: string;
|
|
307
|
+
message?: string;
|
|
308
|
+
found?: unknown;
|
|
309
|
+
property?: string;
|
|
310
|
+
expected?: string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
} & {
|
|
318
|
+
[x: string]: {
|
|
319
|
+
":id": {
|
|
320
|
+
mute: {
|
|
321
|
+
post: {
|
|
322
|
+
body: unknown;
|
|
323
|
+
params: {
|
|
324
|
+
id: string;
|
|
325
|
+
} & {};
|
|
326
|
+
query: unknown;
|
|
327
|
+
headers: unknown;
|
|
328
|
+
response: {
|
|
329
|
+
200: Response | VoiceMonitorIssue;
|
|
330
|
+
422: {
|
|
331
|
+
type: "validation";
|
|
332
|
+
on: string;
|
|
333
|
+
summary?: string;
|
|
334
|
+
message?: string;
|
|
335
|
+
found?: unknown;
|
|
336
|
+
property?: string;
|
|
337
|
+
expected?: string;
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
}, {
|
|
345
|
+
derive: {};
|
|
346
|
+
resolve: {};
|
|
347
|
+
schema: {};
|
|
348
|
+
standaloneSchema: {};
|
|
349
|
+
response: {};
|
|
350
|
+
}, {
|
|
351
|
+
derive: {};
|
|
352
|
+
resolve: {};
|
|
353
|
+
schema: {};
|
|
354
|
+
standaloneSchema: {};
|
|
355
|
+
response: {};
|
|
356
|
+
}>;
|
|
357
|
+
export declare const createVoiceMonitorRunnerRoutes: (options: VoiceMonitorRunnerRoutesOptions) => Elysia<"", {
|
|
358
|
+
decorator: {};
|
|
359
|
+
store: {};
|
|
360
|
+
derive: {};
|
|
361
|
+
resolve: {};
|
|
362
|
+
}, {
|
|
363
|
+
typebox: {};
|
|
364
|
+
error: {};
|
|
365
|
+
}, {
|
|
366
|
+
schema: {};
|
|
367
|
+
standaloneSchema: {};
|
|
368
|
+
macro: {};
|
|
369
|
+
macroFn: {};
|
|
370
|
+
parser: {};
|
|
371
|
+
response: {};
|
|
372
|
+
}, {
|
|
373
|
+
[x: string]: {
|
|
374
|
+
get: {
|
|
375
|
+
body: unknown;
|
|
376
|
+
params: {};
|
|
377
|
+
query: unknown;
|
|
378
|
+
headers: unknown;
|
|
379
|
+
response: {
|
|
380
|
+
200: {
|
|
381
|
+
isRunning: boolean;
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
} & {
|
|
387
|
+
[x: string]: {
|
|
388
|
+
tick: {
|
|
389
|
+
post: {
|
|
390
|
+
body: unknown;
|
|
391
|
+
params: {};
|
|
392
|
+
query: unknown;
|
|
393
|
+
headers: unknown;
|
|
394
|
+
response: {
|
|
395
|
+
200: VoiceMonitorRunnerTickResult;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
} & {
|
|
401
|
+
[x: string]: {
|
|
402
|
+
start: {
|
|
403
|
+
post: {
|
|
404
|
+
body: unknown;
|
|
405
|
+
params: {};
|
|
406
|
+
query: unknown;
|
|
407
|
+
headers: unknown;
|
|
408
|
+
response: {
|
|
409
|
+
200: {
|
|
410
|
+
isRunning: boolean;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
} & {
|
|
417
|
+
[x: string]: {
|
|
418
|
+
stop: {
|
|
419
|
+
post: {
|
|
420
|
+
body: unknown;
|
|
421
|
+
params: {};
|
|
422
|
+
query: unknown;
|
|
423
|
+
headers: unknown;
|
|
424
|
+
response: {
|
|
425
|
+
200: {
|
|
426
|
+
isRunning: boolean;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
}, {
|
|
433
|
+
derive: {};
|
|
434
|
+
resolve: {};
|
|
435
|
+
schema: {};
|
|
436
|
+
standaloneSchema: {};
|
|
437
|
+
response: {};
|
|
438
|
+
}, {
|
|
439
|
+
derive: {};
|
|
440
|
+
resolve: {};
|
|
441
|
+
schema: {};
|
|
442
|
+
standaloneSchema: {};
|
|
443
|
+
response: {};
|
|
444
|
+
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const VoiceDeliveryRuntime: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
description: StringConstructor;
|
|
3
|
+
includeActions: {
|
|
4
|
+
default: boolean;
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
};
|
|
7
|
+
intervalMs: NumberConstructor;
|
|
8
|
+
path: {
|
|
9
|
+
default: string;
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
};
|
|
12
|
+
title: StringConstructor;
|
|
13
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
description: StringConstructor;
|
|
17
|
+
includeActions: {
|
|
18
|
+
default: boolean;
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
};
|
|
21
|
+
intervalMs: NumberConstructor;
|
|
22
|
+
path: {
|
|
23
|
+
default: string;
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
};
|
|
26
|
+
title: StringConstructor;
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
path: string;
|
|
29
|
+
includeActions: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { VoiceOpsActionDescriptor } from '../client/opsActionCenter';
|
|
3
|
+
export declare const VoiceOpsActionCenter: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
actions: PropType<VoiceOpsActionDescriptor[]>;
|
|
5
|
+
description: StringConstructor;
|
|
6
|
+
title: StringConstructor;
|
|
7
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
actions: PropType<VoiceOpsActionDescriptor[]>;
|
|
11
|
+
description: StringConstructor;
|
|
12
|
+
title: StringConstructor;
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|