@absolutejs/voice 0.0.22-beta.22 → 0.0.22-beta.220
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 +2789 -51
- package/dist/agent.d.ts +62 -0
- package/dist/agentSquadContract.d.ts +69 -0
- package/dist/angular/index.d.ts +13 -0
- package/dist/angular/index.js +3154 -1110
- 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-provider-capabilities.service.d.ts +12 -0
- package/dist/angular/voice-provider-contracts.service.d.ts +12 -0
- package/dist/angular/voice-routing-status.service.d.ts +11 -0
- package/dist/angular/voice-stream.service.d.ts +3 -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 +746 -0
- package/dist/campaignDialers.d.ts +90 -0
- package/dist/client/actions.d.ts +105 -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/connection.d.ts +3 -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 +747 -15
- package/dist/client/index.d.ts +62 -0
- package/dist/client/index.js +4407 -20
- 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/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/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/dataControl.d.ts +140 -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/handoff.d.ts +54 -0
- package/dist/handoffHealth.d.ts +94 -0
- package/dist/incidentBundle.d.ts +116 -0
- package/dist/index.d.ts +126 -13
- package/dist/index.js +22477 -5134
- package/dist/latencySlo.d.ts +56 -0
- package/dist/liveLatency.d.ts +78 -0
- package/dist/liveOps.d.ts +122 -0
- package/dist/modelAdapters.d.ts +23 -2
- package/dist/observabilityExport.d.ts +123 -0
- package/dist/openaiRealtime.d.ts +27 -0
- package/dist/openaiTTS.d.ts +18 -0
- package/dist/operationsRecord.d.ts +158 -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/opsWebhook.d.ts +126 -0
- package/dist/outcomeContract.d.ts +115 -0
- package/dist/phoneAgent.d.ts +76 -0
- package/dist/phoneAgentProductionSmoke.d.ts +115 -0
- package/dist/postgresStore.d.ts +13 -2
- package/dist/productionReadiness.d.ts +433 -0
- package/dist/providerAdapters.d.ts +48 -0
- package/dist/providerCapabilities.d.ts +92 -0
- package/dist/providerHealth.d.ts +1 -0
- package/dist/providerRoutingContract.d.ts +38 -0
- package/dist/providerSlo.d.ts +114 -0
- package/dist/providerStackRecommendations.d.ts +145 -0
- package/dist/qualityRoutes.d.ts +76 -0
- package/dist/queue.d.ts +61 -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/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/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 +26 -0
- package/dist/react/index.js +4074 -33
- package/dist/react/useVoiceAgentSquadStatus.d.ts +8 -0
- package/dist/react/useVoiceCampaignDialerProof.d.ts +10 -0
- package/dist/react/useVoiceController.d.ts +3 -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/useVoiceProviderCapabilities.d.ts +8 -0
- package/dist/react/useVoiceProviderContracts.d.ts +8 -0
- package/dist/react/useVoiceProviderSimulationControls.d.ts +10 -0
- package/dist/react/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/react/useVoiceStream.d.ts +3 -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 +36 -0
- package/dist/reconnectContract.d.ts +87 -0
- package/dist/resilienceRoutes.d.ts +143 -0
- package/dist/sessionReplay.d.ts +93 -0
- package/dist/simulationSuite.d.ts +121 -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/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/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 +14 -0
- package/dist/svelte/index.js +4574 -439
- package/dist/telephony/contract.d.ts +61 -0
- package/dist/telephony/matrix.d.ts +97 -0
- package/dist/telephony/plivo.d.ts +254 -0
- package/dist/telephony/telnyx.d.ts +247 -0
- package/dist/telephony/twilio.d.ts +135 -2
- package/dist/telephonyOutcome.d.ts +201 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.js +2024 -69
- package/dist/testing/ioProviderSimulator.d.ts +41 -0
- package/dist/toolContract.d.ts +133 -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 +180 -4
- 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/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/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 +24 -0
- package/dist/vue/index.js +3852 -57
- 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/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/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/vue/useVoiceStream.d.ts +4 -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
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import { type PlivoVoiceRoutesOptions } from './telephony/plivo';
|
|
3
|
+
import { type TelnyxVoiceRoutesOptions } from './telephony/telnyx';
|
|
4
|
+
import { type TwilioVoiceRoutesOptions } from './telephony/twilio';
|
|
5
|
+
import { type VoiceTelephonyCarrierMatrix, type VoiceTelephonyCarrierMatrixRoutesOptions } from './telephony/matrix';
|
|
6
|
+
import { type VoicePhoneAgentProductionSmokeRoutesOptions } from './phoneAgentProductionSmoke';
|
|
7
|
+
import type { VoiceSessionRecord } from './types';
|
|
8
|
+
export type VoicePhoneAgentLifecycleStage = 'ringing' | 'answered' | 'media-started' | 'transcript' | 'assistant-response' | 'transfer' | 'voicemail' | 'no-answer' | 'completed' | 'failed';
|
|
9
|
+
type VoicePhoneAgentCarrierBase = {
|
|
10
|
+
name?: string;
|
|
11
|
+
smokePath?: false | string;
|
|
12
|
+
setupPath?: false | string;
|
|
13
|
+
};
|
|
14
|
+
export type VoicePhoneAgentTwilioCarrier<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = VoicePhoneAgentCarrierBase & {
|
|
15
|
+
options: TwilioVoiceRoutesOptions<TContext, TSession, TResult>;
|
|
16
|
+
provider: 'twilio';
|
|
17
|
+
};
|
|
18
|
+
export type VoicePhoneAgentTelnyxCarrier<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = VoicePhoneAgentCarrierBase & {
|
|
19
|
+
options?: TelnyxVoiceRoutesOptions<TContext, TSession, TResult>;
|
|
20
|
+
provider: 'telnyx';
|
|
21
|
+
};
|
|
22
|
+
export type VoicePhoneAgentPlivoCarrier<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = VoicePhoneAgentCarrierBase & {
|
|
23
|
+
options?: PlivoVoiceRoutesOptions<TContext, TSession, TResult>;
|
|
24
|
+
provider: 'plivo';
|
|
25
|
+
};
|
|
26
|
+
export type VoicePhoneAgentCarrier<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = VoicePhoneAgentTwilioCarrier<TContext, TSession, TResult> | VoicePhoneAgentTelnyxCarrier<TContext, TSession, TResult> | VoicePhoneAgentPlivoCarrier<TContext, TSession, TResult>;
|
|
27
|
+
export type VoicePhoneAgentRoutesOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
28
|
+
carriers: readonly VoicePhoneAgentCarrier<TContext, TSession, TResult>[];
|
|
29
|
+
matrix?: false | Omit<VoiceTelephonyCarrierMatrixRoutesOptions, 'load'>;
|
|
30
|
+
name?: string;
|
|
31
|
+
productionSmoke?: false | VoicePhoneAgentProductionSmokeRoutesOptions;
|
|
32
|
+
setup?: false | {
|
|
33
|
+
path?: string;
|
|
34
|
+
title?: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export type VoicePhoneAgentCarrierSummary = {
|
|
38
|
+
name?: string;
|
|
39
|
+
provider: 'plivo' | 'telnyx' | 'twilio';
|
|
40
|
+
setupPath?: false | string;
|
|
41
|
+
smokePath?: false | string;
|
|
42
|
+
};
|
|
43
|
+
export type VoicePhoneAgentSetupInstruction = {
|
|
44
|
+
answerLabel: string;
|
|
45
|
+
answerUrl?: string;
|
|
46
|
+
carrierName: string;
|
|
47
|
+
issues: string[];
|
|
48
|
+
provider: 'plivo' | 'telnyx' | 'twilio';
|
|
49
|
+
setupPath?: false | string;
|
|
50
|
+
smokePath?: false | string;
|
|
51
|
+
status: 'fail' | 'pass' | 'unknown' | 'warn';
|
|
52
|
+
steps: string[];
|
|
53
|
+
streamUrl?: string;
|
|
54
|
+
webhookUrl?: string;
|
|
55
|
+
};
|
|
56
|
+
export type VoicePhoneAgentRoutes = {
|
|
57
|
+
carriers: VoicePhoneAgentCarrierSummary[];
|
|
58
|
+
matrixPath?: string;
|
|
59
|
+
productionSmokePath?: string;
|
|
60
|
+
routes: Elysia;
|
|
61
|
+
setupPath?: string;
|
|
62
|
+
};
|
|
63
|
+
export type VoicePhoneAgentSetupReport = {
|
|
64
|
+
carriers: VoicePhoneAgentCarrierSummary[];
|
|
65
|
+
generatedAt: number;
|
|
66
|
+
lifecycleStages: VoicePhoneAgentLifecycleStage[];
|
|
67
|
+
matrix?: VoiceTelephonyCarrierMatrix;
|
|
68
|
+
matrixPath?: string;
|
|
69
|
+
productionSmokePath?: string;
|
|
70
|
+
ready: boolean;
|
|
71
|
+
setupInstructions: VoicePhoneAgentSetupInstruction[];
|
|
72
|
+
setupPath?: string;
|
|
73
|
+
title: string;
|
|
74
|
+
};
|
|
75
|
+
export declare const createVoicePhoneAgent: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(options: VoicePhoneAgentRoutesOptions<TContext, TSession, TResult>) => VoicePhoneAgentRoutes;
|
|
76
|
+
export {};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from './trace';
|
|
3
|
+
import type { VoiceTelephonyContractReport, VoiceTelephonyProvider } from './telephony/contract';
|
|
4
|
+
export type VoicePhoneAgentProductionSmokeRequirement = 'assistant-response' | 'carrier-contract' | 'fresh-trace' | 'lifecycle-outcome' | 'media-started' | 'no-session-error' | 'transcript';
|
|
5
|
+
export type VoicePhoneAgentProductionSmokeIssue = {
|
|
6
|
+
message: string;
|
|
7
|
+
requirement: VoicePhoneAgentProductionSmokeRequirement;
|
|
8
|
+
severity: 'error' | 'warning';
|
|
9
|
+
};
|
|
10
|
+
export type VoicePhoneAgentProductionSmokeReport<TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider> = {
|
|
11
|
+
contract?: VoiceTelephonyContractReport<TProvider>;
|
|
12
|
+
contractId: string;
|
|
13
|
+
generatedAt: number;
|
|
14
|
+
issues: VoicePhoneAgentProductionSmokeIssue[];
|
|
15
|
+
maxAgeMs?: number;
|
|
16
|
+
observed: {
|
|
17
|
+
assistantResponses: number;
|
|
18
|
+
carrierContract?: boolean;
|
|
19
|
+
lifecycleOutcomes: string[];
|
|
20
|
+
latestEventAt?: number;
|
|
21
|
+
mediaStarts: number;
|
|
22
|
+
sessionErrors: number;
|
|
23
|
+
transcripts: number;
|
|
24
|
+
};
|
|
25
|
+
pass: boolean;
|
|
26
|
+
provider?: TProvider;
|
|
27
|
+
required: VoicePhoneAgentProductionSmokeRequirement[];
|
|
28
|
+
scenarioId?: string;
|
|
29
|
+
sessionId?: string;
|
|
30
|
+
traceId?: string;
|
|
31
|
+
};
|
|
32
|
+
export type VoicePhoneAgentProductionSmokeOptions<TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider> = {
|
|
33
|
+
contract?: VoiceTelephonyContractReport<TProvider>;
|
|
34
|
+
contractId?: string;
|
|
35
|
+
events?: readonly StoredVoiceTraceEvent[];
|
|
36
|
+
maxAgeMs?: number;
|
|
37
|
+
now?: number;
|
|
38
|
+
provider?: TProvider;
|
|
39
|
+
required?: readonly VoicePhoneAgentProductionSmokeRequirement[];
|
|
40
|
+
scenarioId?: string;
|
|
41
|
+
sessionId?: string;
|
|
42
|
+
store?: VoiceTraceEventStore;
|
|
43
|
+
traceId?: string;
|
|
44
|
+
};
|
|
45
|
+
export type VoicePhoneAgentProductionSmokeHandlerOptions<TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider> = Omit<VoicePhoneAgentProductionSmokeOptions<TProvider>, 'events' | 'scenarioId' | 'sessionId' | 'traceId'> & {
|
|
46
|
+
getContract?: (input: {
|
|
47
|
+
query: Record<string, unknown>;
|
|
48
|
+
request: Request;
|
|
49
|
+
}) => Promise<VoiceTelephonyContractReport<TProvider> | undefined> | VoiceTelephonyContractReport<TProvider> | undefined;
|
|
50
|
+
scenarioId?: string;
|
|
51
|
+
sessionId?: string;
|
|
52
|
+
traceId?: string;
|
|
53
|
+
};
|
|
54
|
+
export type VoicePhoneAgentProductionSmokeHTMLHandlerOptions<TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider> = VoicePhoneAgentProductionSmokeHandlerOptions<TProvider> & {
|
|
55
|
+
headers?: HeadersInit;
|
|
56
|
+
render?: (report: VoicePhoneAgentProductionSmokeReport<TProvider>) => Promise<string> | string;
|
|
57
|
+
title?: string;
|
|
58
|
+
};
|
|
59
|
+
export type VoicePhoneAgentProductionSmokeRoutesOptions<TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider> = VoicePhoneAgentProductionSmokeHTMLHandlerOptions<TProvider> & {
|
|
60
|
+
htmlPath?: false | string;
|
|
61
|
+
name?: string;
|
|
62
|
+
path?: string;
|
|
63
|
+
};
|
|
64
|
+
export declare const runVoicePhoneAgentProductionSmokeContract: <TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider>(options: VoicePhoneAgentProductionSmokeOptions<TProvider>) => Promise<VoicePhoneAgentProductionSmokeReport<TProvider>>;
|
|
65
|
+
export declare const renderVoicePhoneAgentProductionSmokeHTML: <TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider>(report: VoicePhoneAgentProductionSmokeReport<TProvider>, options?: {
|
|
66
|
+
title?: string;
|
|
67
|
+
}) => string;
|
|
68
|
+
export declare const createVoicePhoneAgentProductionSmokeJSONHandler: <TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider>(options: VoicePhoneAgentProductionSmokeHandlerOptions<TProvider>) => ({ query, request }: {
|
|
69
|
+
query: Record<string, unknown>;
|
|
70
|
+
request: Request;
|
|
71
|
+
}) => Promise<VoicePhoneAgentProductionSmokeReport<TProvider>>;
|
|
72
|
+
export declare const createVoicePhoneAgentProductionSmokeHTMLHandler: <TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider>(options: VoicePhoneAgentProductionSmokeHTMLHandlerOptions<TProvider>) => ({ query, request }: {
|
|
73
|
+
query: Record<string, unknown>;
|
|
74
|
+
request: Request;
|
|
75
|
+
}) => Promise<Response>;
|
|
76
|
+
export declare const createVoicePhoneAgentProductionSmokeRoutes: <TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider>(options: VoicePhoneAgentProductionSmokeRoutesOptions<TProvider>) => Elysia<"", {
|
|
77
|
+
decorator: {};
|
|
78
|
+
store: {};
|
|
79
|
+
derive: {};
|
|
80
|
+
resolve: {};
|
|
81
|
+
}, {
|
|
82
|
+
typebox: {};
|
|
83
|
+
error: {};
|
|
84
|
+
}, {
|
|
85
|
+
schema: {};
|
|
86
|
+
standaloneSchema: {};
|
|
87
|
+
macro: {};
|
|
88
|
+
macroFn: {};
|
|
89
|
+
parser: {};
|
|
90
|
+
response: {};
|
|
91
|
+
}, {
|
|
92
|
+
[x: string]: {
|
|
93
|
+
get: {
|
|
94
|
+
body: unknown;
|
|
95
|
+
params: {};
|
|
96
|
+
query: unknown;
|
|
97
|
+
headers: unknown;
|
|
98
|
+
response: {
|
|
99
|
+
200: VoicePhoneAgentProductionSmokeReport<TProvider>;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}, {
|
|
104
|
+
derive: {};
|
|
105
|
+
resolve: {};
|
|
106
|
+
schema: {};
|
|
107
|
+
standaloneSchema: {};
|
|
108
|
+
response: {};
|
|
109
|
+
}, {
|
|
110
|
+
derive: {};
|
|
111
|
+
resolve: {};
|
|
112
|
+
schema: {};
|
|
113
|
+
standaloneSchema: {};
|
|
114
|
+
response: {};
|
|
115
|
+
}>;
|
package/dist/postgresStore.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { type StoredVoiceTraceEvent, type VoiceTraceSinkDeliveryRecord, type VoiceTraceSinkDeliveryStore, type VoiceTraceEventStore } from './trace';
|
|
2
|
+
import { type StoredVoiceAuditEvent, type VoiceAuditEventStore } from './audit';
|
|
3
|
+
import type { VoiceAuditSinkDeliveryRecord, VoiceAuditSinkDeliveryStore } from './auditSinks';
|
|
2
4
|
import type { StoredVoiceIntegrationEvent, StoredVoiceExternalObjectMap, StoredVoiceOpsTask, VoiceExternalObjectMapStore, VoiceIntegrationEventStore, VoiceOpsTaskStore } from './ops';
|
|
3
5
|
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewStore } from './testing/review';
|
|
6
|
+
import type { VoiceTelephonyWebhookIdempotencyStore } from './telephonyOutcome';
|
|
7
|
+
import type { VoiceCampaignStore } from './campaign';
|
|
4
8
|
import type { VoiceSessionRecord, VoiceSessionStore } from './types';
|
|
5
9
|
export type VoicePostgresClient = {
|
|
6
10
|
unsafe: <TRow extends Record<string, unknown> = Record<string, unknown>>(query: string, parameters?: unknown[]) => Promise<TRow[]>;
|
|
@@ -12,7 +16,10 @@ export type VoicePostgresStoreOptions = {
|
|
|
12
16
|
tableName?: string;
|
|
13
17
|
tablePrefix?: string;
|
|
14
18
|
};
|
|
15
|
-
export type VoicePostgresRuntimeStorage<TSession extends VoiceSessionRecord = VoiceSessionRecord, TReview extends StoredVoiceCallReviewArtifact = StoredVoiceCallReviewArtifact, TTask extends StoredVoiceOpsTask = StoredVoiceOpsTask, TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent, TMapping extends StoredVoiceExternalObjectMap = StoredVoiceExternalObjectMap, TTrace extends StoredVoiceTraceEvent = StoredVoiceTraceEvent, TTraceDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord> = {
|
|
19
|
+
export type VoicePostgresRuntimeStorage<TSession extends VoiceSessionRecord = VoiceSessionRecord, TReview extends StoredVoiceCallReviewArtifact = StoredVoiceCallReviewArtifact, TTask extends StoredVoiceOpsTask = StoredVoiceOpsTask, TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent, TMapping extends StoredVoiceExternalObjectMap = StoredVoiceExternalObjectMap, TTrace extends StoredVoiceTraceEvent = StoredVoiceTraceEvent, TTraceDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord, TAudit extends StoredVoiceAuditEvent = StoredVoiceAuditEvent, TAuditDelivery extends VoiceAuditSinkDeliveryRecord = VoiceAuditSinkDeliveryRecord> = {
|
|
20
|
+
audit: VoiceAuditEventStore<TAudit>;
|
|
21
|
+
auditDeliveries: VoiceAuditSinkDeliveryStore<TAuditDelivery>;
|
|
22
|
+
campaigns: VoiceCampaignStore;
|
|
16
23
|
events: VoiceIntegrationEventStore<TEvent>;
|
|
17
24
|
externalObjects: VoiceExternalObjectMapStore<TMapping>;
|
|
18
25
|
reviews: VoiceCallReviewStore<TReview>;
|
|
@@ -28,4 +35,8 @@ export declare const createVoicePostgresIntegrationEventStore: <TEvent extends S
|
|
|
28
35
|
export declare const createVoicePostgresExternalObjectMapStore: <TMapping extends StoredVoiceExternalObjectMap = StoredVoiceExternalObjectMap>(options: VoicePostgresStoreOptions) => VoiceExternalObjectMapStore<TMapping>;
|
|
29
36
|
export declare const createVoicePostgresTraceEventStore: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(options: VoicePostgresStoreOptions) => VoiceTraceEventStore<TEvent>;
|
|
30
37
|
export declare const createVoicePostgresTraceSinkDeliveryStore: <TDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord>(options: VoicePostgresStoreOptions) => VoiceTraceSinkDeliveryStore<TDelivery>;
|
|
31
|
-
export declare const
|
|
38
|
+
export declare const createVoicePostgresAuditEventStore: <TEvent extends StoredVoiceAuditEvent = StoredVoiceAuditEvent>(options: VoicePostgresStoreOptions) => VoiceAuditEventStore<TEvent>;
|
|
39
|
+
export declare const createVoicePostgresAuditSinkDeliveryStore: <TDelivery extends VoiceAuditSinkDeliveryRecord = VoiceAuditSinkDeliveryRecord>(options: VoicePostgresStoreOptions) => VoiceAuditSinkDeliveryStore<TDelivery>;
|
|
40
|
+
export declare const createVoicePostgresTelephonyWebhookIdempotencyStore: <TResult = unknown>(options: VoicePostgresStoreOptions) => VoiceTelephonyWebhookIdempotencyStore<TResult>;
|
|
41
|
+
export declare const createVoicePostgresCampaignStore: (options: VoicePostgresStoreOptions) => VoiceCampaignStore;
|
|
42
|
+
export declare const createVoicePostgresRuntimeStorage: <TSession extends VoiceSessionRecord = VoiceSessionRecord, TReview extends StoredVoiceCallReviewArtifact = StoredVoiceCallReviewArtifact, TTask extends StoredVoiceOpsTask = StoredVoiceOpsTask, TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent, TMapping extends StoredVoiceExternalObjectMap = StoredVoiceExternalObjectMap, TTrace extends StoredVoiceTraceEvent = StoredVoiceTraceEvent, TTraceDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord, TAudit extends StoredVoiceAuditEvent = StoredVoiceAuditEvent, TAuditDelivery extends VoiceAuditSinkDeliveryRecord = VoiceAuditSinkDeliveryRecord>(options: VoicePostgresStoreOptions) => VoicePostgresRuntimeStorage<TSession, TReview, TTask, TEvent, TMapping, TTrace, TTraceDelivery, TAudit, TAuditDelivery>;
|
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import { type VoiceProviderFallbackRecoverySummary } from './sessionReplay';
|
|
3
|
+
import { type VoiceTelephonyCarrierMatrixInput } from './telephony/matrix';
|
|
4
|
+
import type { VoiceTraceEventStore } from './trace';
|
|
5
|
+
import type { VoiceTraceSinkDeliveryStore } from './trace';
|
|
6
|
+
import type { VoiceAgentSquadContractReport } from './agentSquadContract';
|
|
7
|
+
import type { VoiceBargeInReport } from './bargeInRoutes';
|
|
8
|
+
import type { VoiceDeliveryRuntime, VoiceDeliveryRuntimeSummary } from './deliveryRuntime';
|
|
9
|
+
import type { VoiceProviderRoutingContractReport } from './providerRoutingContract';
|
|
10
|
+
import type { VoicePhoneAgentProductionSmokeReport } from './phoneAgentProductionSmoke';
|
|
11
|
+
import type { VoiceReconnectContractReport } from './reconnectContract';
|
|
12
|
+
import type { VoiceAuditEventStore, VoiceAuditEventType, VoiceAuditOutcome } from './audit';
|
|
13
|
+
import { type VoiceAuditSinkDeliveryStore } from './auditSinks';
|
|
14
|
+
import type { VoiceProviderContractMatrixReport, VoiceProviderStackCapabilityGapReport } from './providerStackRecommendations';
|
|
15
|
+
import { type VoiceProviderSloReport, type VoiceProviderSloReportOptions } from './providerSlo';
|
|
16
|
+
import type { VoiceCampaignReadinessProofReport } from './campaign';
|
|
17
|
+
import { type VoiceOpsRecoveryReport } from './opsRecovery';
|
|
18
|
+
import type { VoiceObservabilityExportReport } from './observabilityExport';
|
|
19
|
+
export type VoiceProductionReadinessStatus = 'fail' | 'pass' | 'warn';
|
|
20
|
+
export type VoiceProductionReadinessAction = {
|
|
21
|
+
description?: string;
|
|
22
|
+
href: string;
|
|
23
|
+
label: string;
|
|
24
|
+
method?: 'GET' | 'POST';
|
|
25
|
+
};
|
|
26
|
+
export type VoiceProductionReadinessCheck = {
|
|
27
|
+
actions?: VoiceProductionReadinessAction[];
|
|
28
|
+
detail?: string;
|
|
29
|
+
href?: string;
|
|
30
|
+
label: string;
|
|
31
|
+
proofSource?: VoiceProductionReadinessProofSource;
|
|
32
|
+
status: VoiceProductionReadinessStatus;
|
|
33
|
+
value?: number | string;
|
|
34
|
+
};
|
|
35
|
+
export type VoiceProductionReadinessGateIssue = {
|
|
36
|
+
code: string;
|
|
37
|
+
detail?: string;
|
|
38
|
+
href?: string;
|
|
39
|
+
label: string;
|
|
40
|
+
status: Exclude<VoiceProductionReadinessStatus, 'pass'>;
|
|
41
|
+
value?: number | string;
|
|
42
|
+
};
|
|
43
|
+
export type VoiceProductionReadinessGateOptions = {
|
|
44
|
+
failOnWarnings?: boolean;
|
|
45
|
+
};
|
|
46
|
+
export type VoiceProductionReadinessGateReport = {
|
|
47
|
+
checkedAt: number;
|
|
48
|
+
failures: VoiceProductionReadinessGateIssue[];
|
|
49
|
+
ok: boolean;
|
|
50
|
+
profile?: VoiceProductionReadinessGateProfile;
|
|
51
|
+
status: VoiceProductionReadinessStatus;
|
|
52
|
+
warnings: VoiceProductionReadinessGateIssue[];
|
|
53
|
+
};
|
|
54
|
+
export type VoiceProductionReadinessProofSource = {
|
|
55
|
+
detail?: string;
|
|
56
|
+
href?: string;
|
|
57
|
+
label?: string;
|
|
58
|
+
source: string;
|
|
59
|
+
sourceLabel: string;
|
|
60
|
+
};
|
|
61
|
+
export type VoiceProductionReadinessProfileSurface = {
|
|
62
|
+
configured: boolean;
|
|
63
|
+
href?: string;
|
|
64
|
+
key: string;
|
|
65
|
+
label: string;
|
|
66
|
+
};
|
|
67
|
+
export type VoiceProductionReadinessProfileExplanation = {
|
|
68
|
+
description: string;
|
|
69
|
+
name: string;
|
|
70
|
+
purpose: string;
|
|
71
|
+
surfaces: VoiceProductionReadinessProfileSurface[];
|
|
72
|
+
};
|
|
73
|
+
export type VoiceProductionReadinessGateProfileSurface = VoiceProductionReadinessProfileSurface & {
|
|
74
|
+
issues: VoiceProductionReadinessGateIssue[];
|
|
75
|
+
status: VoiceProductionReadinessStatus;
|
|
76
|
+
};
|
|
77
|
+
export type VoiceProductionReadinessGateProfile = Omit<VoiceProductionReadinessProfileExplanation, 'surfaces'> & {
|
|
78
|
+
surfaces: VoiceProductionReadinessGateProfileSurface[];
|
|
79
|
+
};
|
|
80
|
+
export type VoiceProductionReadinessReport = {
|
|
81
|
+
checkedAt: number;
|
|
82
|
+
checks: VoiceProductionReadinessCheck[];
|
|
83
|
+
links: {
|
|
84
|
+
agentSquadContracts?: string;
|
|
85
|
+
audit?: string;
|
|
86
|
+
auditDeliveries?: string;
|
|
87
|
+
bargeIn?: string;
|
|
88
|
+
campaignReadiness?: string;
|
|
89
|
+
carriers?: string;
|
|
90
|
+
deliveryRuntime?: string;
|
|
91
|
+
handoffs?: string;
|
|
92
|
+
handoffRetry?: string;
|
|
93
|
+
liveLatency?: string;
|
|
94
|
+
operationsRecords?: string;
|
|
95
|
+
observabilityExport?: string;
|
|
96
|
+
opsActions?: string;
|
|
97
|
+
opsRecovery?: string;
|
|
98
|
+
phoneAgentSmoke?: string;
|
|
99
|
+
providerContracts?: string;
|
|
100
|
+
providerRoutingContracts?: string;
|
|
101
|
+
providerSlo?: string;
|
|
102
|
+
quality?: string;
|
|
103
|
+
reconnectContracts?: string;
|
|
104
|
+
resilience?: string;
|
|
105
|
+
sessions?: string;
|
|
106
|
+
traceDeliveries?: string;
|
|
107
|
+
};
|
|
108
|
+
profile?: VoiceProductionReadinessProfileExplanation;
|
|
109
|
+
proofSources?: Record<string, VoiceProductionReadinessProofSource>;
|
|
110
|
+
operationsRecords?: VoiceProductionReadinessOperationsRecordLinks;
|
|
111
|
+
status: VoiceProductionReadinessStatus;
|
|
112
|
+
summary: {
|
|
113
|
+
agentSquadContracts?: {
|
|
114
|
+
failed: number;
|
|
115
|
+
passed: number;
|
|
116
|
+
status: VoiceProductionReadinessStatus;
|
|
117
|
+
total: number;
|
|
118
|
+
};
|
|
119
|
+
audit?: VoiceProductionReadinessAuditSummary;
|
|
120
|
+
auditDeliveries?: VoiceProductionReadinessAuditDeliverySummary;
|
|
121
|
+
bargeIn?: {
|
|
122
|
+
failed: number;
|
|
123
|
+
passed: number;
|
|
124
|
+
status: VoiceProductionReadinessStatus;
|
|
125
|
+
total: number;
|
|
126
|
+
warnings: number;
|
|
127
|
+
};
|
|
128
|
+
campaignReadiness?: {
|
|
129
|
+
failed: number;
|
|
130
|
+
passed: number;
|
|
131
|
+
status: VoiceProductionReadinessStatus;
|
|
132
|
+
total: number;
|
|
133
|
+
};
|
|
134
|
+
carriers?: {
|
|
135
|
+
failing: number;
|
|
136
|
+
providers: number;
|
|
137
|
+
ready: number;
|
|
138
|
+
status: VoiceProductionReadinessStatus;
|
|
139
|
+
warnings: number;
|
|
140
|
+
};
|
|
141
|
+
deliveryRuntime?: VoiceProductionReadinessDeliveryRuntimeSummary;
|
|
142
|
+
handoffs: {
|
|
143
|
+
failed: number;
|
|
144
|
+
total: number;
|
|
145
|
+
};
|
|
146
|
+
liveLatency: {
|
|
147
|
+
averageLatencyMs?: number;
|
|
148
|
+
failed: number;
|
|
149
|
+
status: VoiceProductionReadinessStatus;
|
|
150
|
+
total: number;
|
|
151
|
+
warnings: number;
|
|
152
|
+
};
|
|
153
|
+
opsActionHistory?: VoiceProductionReadinessOpsActionHistorySummary;
|
|
154
|
+
opsRecovery?: {
|
|
155
|
+
issues: number;
|
|
156
|
+
recoveredFallbacks: number;
|
|
157
|
+
status: VoiceProductionReadinessStatus;
|
|
158
|
+
unresolvedProviderFailures: number;
|
|
159
|
+
};
|
|
160
|
+
observabilityExport?: {
|
|
161
|
+
artifacts: number;
|
|
162
|
+
auditEvents: number;
|
|
163
|
+
envelopes: number;
|
|
164
|
+
issues: number;
|
|
165
|
+
status: VoiceProductionReadinessStatus;
|
|
166
|
+
traceEvents: number;
|
|
167
|
+
};
|
|
168
|
+
providers: {
|
|
169
|
+
degraded: number;
|
|
170
|
+
total: number;
|
|
171
|
+
};
|
|
172
|
+
providerStack?: VoiceProviderStackCapabilityGapReport;
|
|
173
|
+
providerContractMatrix?: VoiceProviderContractMatrixReport;
|
|
174
|
+
providerRecovery: VoiceProviderFallbackRecoverySummary;
|
|
175
|
+
phoneAgentSmokes?: {
|
|
176
|
+
failed: number;
|
|
177
|
+
passed: number;
|
|
178
|
+
status: VoiceProductionReadinessStatus;
|
|
179
|
+
total: number;
|
|
180
|
+
};
|
|
181
|
+
providerRoutingContracts?: {
|
|
182
|
+
failed: number;
|
|
183
|
+
passed: number;
|
|
184
|
+
status: VoiceProductionReadinessStatus;
|
|
185
|
+
total: number;
|
|
186
|
+
};
|
|
187
|
+
providerSlo?: {
|
|
188
|
+
events: number;
|
|
189
|
+
eventsWithLatency: number;
|
|
190
|
+
issues: number;
|
|
191
|
+
status: VoiceProductionReadinessStatus;
|
|
192
|
+
};
|
|
193
|
+
reconnectContracts?: {
|
|
194
|
+
failed: number;
|
|
195
|
+
passed: number;
|
|
196
|
+
status: VoiceProductionReadinessStatus;
|
|
197
|
+
total: number;
|
|
198
|
+
};
|
|
199
|
+
quality: {
|
|
200
|
+
status: 'fail' | 'pass';
|
|
201
|
+
};
|
|
202
|
+
routing: {
|
|
203
|
+
events: number;
|
|
204
|
+
sessions: number;
|
|
205
|
+
};
|
|
206
|
+
sessions: {
|
|
207
|
+
failed: number;
|
|
208
|
+
total: number;
|
|
209
|
+
};
|
|
210
|
+
traceDeliveries?: VoiceProductionReadinessTraceDeliverySummary;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
export type VoiceProductionReadinessOperationsRecordLink = {
|
|
214
|
+
detail?: string;
|
|
215
|
+
href: string;
|
|
216
|
+
label: string;
|
|
217
|
+
sessionId: string;
|
|
218
|
+
status: VoiceProductionReadinessStatus;
|
|
219
|
+
};
|
|
220
|
+
export type VoiceProductionReadinessOperationsRecordLinks = {
|
|
221
|
+
failedSessions: VoiceProductionReadinessOperationsRecordLink[];
|
|
222
|
+
failingLatency: VoiceProductionReadinessOperationsRecordLink[];
|
|
223
|
+
providerErrors: VoiceProductionReadinessOperationsRecordLink[];
|
|
224
|
+
};
|
|
225
|
+
export type VoiceProductionReadinessAuditRequirement = {
|
|
226
|
+
label?: string;
|
|
227
|
+
maxAgeMs?: number;
|
|
228
|
+
outcomes?: VoiceAuditOutcome[];
|
|
229
|
+
status?: VoiceProductionReadinessStatus;
|
|
230
|
+
type: VoiceAuditEventType;
|
|
231
|
+
};
|
|
232
|
+
export type VoiceProductionReadinessAuditSummary = {
|
|
233
|
+
events: number;
|
|
234
|
+
missing: VoiceProductionReadinessAuditRequirement[];
|
|
235
|
+
present: Record<VoiceAuditEventType, number>;
|
|
236
|
+
required: VoiceProductionReadinessAuditRequirement[];
|
|
237
|
+
status: VoiceProductionReadinessStatus;
|
|
238
|
+
};
|
|
239
|
+
export type VoiceProductionReadinessAuditDeliverySummary = {
|
|
240
|
+
deadLettered: number;
|
|
241
|
+
delivered: number;
|
|
242
|
+
failed: number;
|
|
243
|
+
failPendingAfterMs: number;
|
|
244
|
+
pending: number;
|
|
245
|
+
retryEligible: number;
|
|
246
|
+
skipped: number;
|
|
247
|
+
staleFailing: number;
|
|
248
|
+
staleWarning: number;
|
|
249
|
+
status: VoiceProductionReadinessStatus;
|
|
250
|
+
total: number;
|
|
251
|
+
warnPendingAfterMs: number;
|
|
252
|
+
};
|
|
253
|
+
export type VoiceProductionReadinessTraceDeliverySummary = {
|
|
254
|
+
deadLettered: number;
|
|
255
|
+
delivered: number;
|
|
256
|
+
failed: number;
|
|
257
|
+
failPendingAfterMs: number;
|
|
258
|
+
pending: number;
|
|
259
|
+
retryEligible: number;
|
|
260
|
+
skipped: number;
|
|
261
|
+
staleFailing: number;
|
|
262
|
+
staleWarning: number;
|
|
263
|
+
status: VoiceProductionReadinessStatus;
|
|
264
|
+
total: number;
|
|
265
|
+
warnPendingAfterMs: number;
|
|
266
|
+
};
|
|
267
|
+
export type VoiceProductionReadinessOpsActionHistorySummary = {
|
|
268
|
+
failed: number;
|
|
269
|
+
passed: number;
|
|
270
|
+
status: VoiceProductionReadinessStatus;
|
|
271
|
+
total: number;
|
|
272
|
+
warnWhenEmpty: boolean;
|
|
273
|
+
};
|
|
274
|
+
export type VoiceProductionReadinessDeliveryRuntimeSummary = {
|
|
275
|
+
audit?: VoiceProductionReadinessDeliveryRuntimeQueueSummary;
|
|
276
|
+
deadLettered: number;
|
|
277
|
+
delivered: number;
|
|
278
|
+
failed: number;
|
|
279
|
+
pending: number;
|
|
280
|
+
retryEligible: number;
|
|
281
|
+
skipped: number;
|
|
282
|
+
status: VoiceProductionReadinessStatus;
|
|
283
|
+
total: number;
|
|
284
|
+
trace?: VoiceProductionReadinessDeliveryRuntimeQueueSummary;
|
|
285
|
+
};
|
|
286
|
+
export type VoiceProductionReadinessDeliveryRuntimeQueueSummary = {
|
|
287
|
+
deadLettered: number;
|
|
288
|
+
delivered: number;
|
|
289
|
+
failed: number;
|
|
290
|
+
pending: number;
|
|
291
|
+
retryEligible: number;
|
|
292
|
+
skipped: number;
|
|
293
|
+
total: number;
|
|
294
|
+
};
|
|
295
|
+
export type VoiceProductionReadinessAuditOptions = VoiceAuditEventStore | {
|
|
296
|
+
require?: readonly (VoiceAuditEventType | VoiceProductionReadinessAuditRequirement)[];
|
|
297
|
+
store: VoiceAuditEventStore;
|
|
298
|
+
};
|
|
299
|
+
export type VoiceProductionReadinessAuditDeliveryOptions = VoiceAuditSinkDeliveryStore | {
|
|
300
|
+
deadLetters?: VoiceAuditSinkDeliveryStore;
|
|
301
|
+
failPendingAfterMs?: number;
|
|
302
|
+
store: VoiceAuditSinkDeliveryStore;
|
|
303
|
+
warnPendingAfterMs?: number;
|
|
304
|
+
};
|
|
305
|
+
export type VoiceProductionReadinessTraceDeliveryOptions = VoiceTraceSinkDeliveryStore | {
|
|
306
|
+
deadLetters?: VoiceTraceSinkDeliveryStore;
|
|
307
|
+
failPendingAfterMs?: number;
|
|
308
|
+
store: VoiceTraceSinkDeliveryStore;
|
|
309
|
+
warnPendingAfterMs?: number;
|
|
310
|
+
};
|
|
311
|
+
export type VoiceProductionReadinessOpsActionHistoryOptions = VoiceAuditEventStore | {
|
|
312
|
+
failOnFailedActions?: boolean;
|
|
313
|
+
store: VoiceAuditEventStore;
|
|
314
|
+
warnWhenEmpty?: boolean;
|
|
315
|
+
};
|
|
316
|
+
export type VoiceProductionReadinessRoutesOptions = {
|
|
317
|
+
agentSquadContracts?: false | readonly VoiceAgentSquadContractReport[] | ((input: {
|
|
318
|
+
query: Record<string, unknown>;
|
|
319
|
+
request: Request;
|
|
320
|
+
}) => Promise<readonly VoiceAgentSquadContractReport[]> | readonly VoiceAgentSquadContractReport[]);
|
|
321
|
+
audit?: false | VoiceProductionReadinessAuditOptions;
|
|
322
|
+
auditDeliveries?: false | VoiceProductionReadinessAuditDeliveryOptions;
|
|
323
|
+
bargeInReports?: false | readonly VoiceBargeInReport[] | ((input: {
|
|
324
|
+
query: Record<string, unknown>;
|
|
325
|
+
request: Request;
|
|
326
|
+
}) => Promise<readonly VoiceBargeInReport[]> | readonly VoiceBargeInReport[]);
|
|
327
|
+
carriers?: false | readonly VoiceTelephonyCarrierMatrixInput[] | ((input: {
|
|
328
|
+
query: Record<string, unknown>;
|
|
329
|
+
request: Request;
|
|
330
|
+
}) => Promise<readonly VoiceTelephonyCarrierMatrixInput[]> | readonly VoiceTelephonyCarrierMatrixInput[]);
|
|
331
|
+
campaignReadiness?: false | VoiceCampaignReadinessProofReport | ((input: {
|
|
332
|
+
query: Record<string, unknown>;
|
|
333
|
+
request: Request;
|
|
334
|
+
}) => Promise<VoiceCampaignReadinessProofReport> | VoiceCampaignReadinessProofReport);
|
|
335
|
+
deliveryRuntime?: false | VoiceDeliveryRuntime | VoiceDeliveryRuntimeSummary | ((input: {
|
|
336
|
+
query: Record<string, unknown>;
|
|
337
|
+
request: Request;
|
|
338
|
+
}) => Promise<VoiceDeliveryRuntime | VoiceDeliveryRuntimeSummary> | VoiceDeliveryRuntime | VoiceDeliveryRuntimeSummary);
|
|
339
|
+
headers?: HeadersInit;
|
|
340
|
+
gate?: false | VoiceProductionReadinessGateOptions;
|
|
341
|
+
gatePath?: false | string;
|
|
342
|
+
htmlPath?: false | string;
|
|
343
|
+
links?: VoiceProductionReadinessReport['links'];
|
|
344
|
+
llmProviders?: readonly string[];
|
|
345
|
+
name?: string;
|
|
346
|
+
opsActionHistory?: false | VoiceProductionReadinessOpsActionHistoryOptions;
|
|
347
|
+
opsRecovery?: false | VoiceOpsRecoveryReport | ((input: {
|
|
348
|
+
query: Record<string, unknown>;
|
|
349
|
+
request: Request;
|
|
350
|
+
}) => Promise<VoiceOpsRecoveryReport> | VoiceOpsRecoveryReport);
|
|
351
|
+
observabilityExport?: false | VoiceObservabilityExportReport | ((input: {
|
|
352
|
+
query: Record<string, unknown>;
|
|
353
|
+
request: Request;
|
|
354
|
+
}) => Promise<VoiceObservabilityExportReport> | VoiceObservabilityExportReport);
|
|
355
|
+
path?: string;
|
|
356
|
+
phoneAgentSmokes?: false | readonly VoicePhoneAgentProductionSmokeReport[] | ((input: {
|
|
357
|
+
query: Record<string, unknown>;
|
|
358
|
+
request: Request;
|
|
359
|
+
}) => Promise<readonly VoicePhoneAgentProductionSmokeReport[]> | readonly VoicePhoneAgentProductionSmokeReport[]);
|
|
360
|
+
providerRoutingContracts?: false | readonly VoiceProviderRoutingContractReport[] | ((input: {
|
|
361
|
+
query: Record<string, unknown>;
|
|
362
|
+
request: Request;
|
|
363
|
+
}) => Promise<readonly VoiceProviderRoutingContractReport[]> | readonly VoiceProviderRoutingContractReport[]);
|
|
364
|
+
providerSlo?: false | VoiceProviderSloReport | VoiceProviderSloReportOptions | ((input: {
|
|
365
|
+
query: Record<string, unknown>;
|
|
366
|
+
request: Request;
|
|
367
|
+
}) => Promise<VoiceProviderSloReport | VoiceProviderSloReportOptions> | VoiceProviderSloReport | VoiceProviderSloReportOptions);
|
|
368
|
+
providerStack?: false | VoiceProviderStackCapabilityGapReport | ((input: {
|
|
369
|
+
query: Record<string, unknown>;
|
|
370
|
+
request: Request;
|
|
371
|
+
}) => Promise<VoiceProviderStackCapabilityGapReport> | VoiceProviderStackCapabilityGapReport);
|
|
372
|
+
providerContractMatrix?: false | VoiceProviderContractMatrixReport | ((input: {
|
|
373
|
+
query: Record<string, unknown>;
|
|
374
|
+
request: Request;
|
|
375
|
+
}) => Promise<VoiceProviderContractMatrixReport> | VoiceProviderContractMatrixReport);
|
|
376
|
+
reconnectContracts?: false | readonly VoiceReconnectContractReport[] | ((input: {
|
|
377
|
+
query: Record<string, unknown>;
|
|
378
|
+
request: Request;
|
|
379
|
+
}) => Promise<readonly VoiceReconnectContractReport[]> | readonly VoiceReconnectContractReport[]);
|
|
380
|
+
proofSources?: false | Record<string, VoiceProductionReadinessProofSource> | ((input: {
|
|
381
|
+
query: Record<string, unknown>;
|
|
382
|
+
request: Request;
|
|
383
|
+
}) => Promise<Record<string, VoiceProductionReadinessProofSource>> | Record<string, VoiceProductionReadinessProofSource>);
|
|
384
|
+
profile?: false | VoiceProductionReadinessProfileExplanation;
|
|
385
|
+
render?: (report: VoiceProductionReadinessReport) => string | Promise<string>;
|
|
386
|
+
store: VoiceTraceEventStore;
|
|
387
|
+
sttProviders?: readonly string[];
|
|
388
|
+
title?: string;
|
|
389
|
+
traceDeliveries?: false | VoiceProductionReadinessTraceDeliveryOptions;
|
|
390
|
+
ttsProviders?: readonly string[];
|
|
391
|
+
liveLatencyWarnAfterMs?: number;
|
|
392
|
+
liveLatencyFailAfterMs?: number;
|
|
393
|
+
};
|
|
394
|
+
export declare const summarizeVoiceProductionReadinessGate: (report: VoiceProductionReadinessReport, options?: VoiceProductionReadinessGateOptions) => VoiceProductionReadinessGateReport;
|
|
395
|
+
export declare const buildVoiceProductionReadinessReport: (options: VoiceProductionReadinessRoutesOptions, input?: {
|
|
396
|
+
query?: Record<string, unknown>;
|
|
397
|
+
request?: Request;
|
|
398
|
+
}) => Promise<VoiceProductionReadinessReport>;
|
|
399
|
+
export declare const buildVoiceProductionReadinessGate: (options: VoiceProductionReadinessRoutesOptions, input?: {
|
|
400
|
+
query?: Record<string, unknown>;
|
|
401
|
+
request?: Request;
|
|
402
|
+
}) => Promise<VoiceProductionReadinessGateReport>;
|
|
403
|
+
export declare const renderVoiceProductionReadinessHTML: (report: VoiceProductionReadinessReport, options?: {
|
|
404
|
+
title?: string;
|
|
405
|
+
}) => string;
|
|
406
|
+
export declare const createVoiceProductionReadinessRoutes: (options: VoiceProductionReadinessRoutesOptions) => Elysia<"", {
|
|
407
|
+
decorator: {};
|
|
408
|
+
store: {};
|
|
409
|
+
derive: {};
|
|
410
|
+
resolve: {};
|
|
411
|
+
}, {
|
|
412
|
+
typebox: {};
|
|
413
|
+
error: {};
|
|
414
|
+
}, {
|
|
415
|
+
schema: {};
|
|
416
|
+
standaloneSchema: {};
|
|
417
|
+
macro: {};
|
|
418
|
+
macroFn: {};
|
|
419
|
+
parser: {};
|
|
420
|
+
response: {};
|
|
421
|
+
}, {}, {
|
|
422
|
+
derive: {};
|
|
423
|
+
resolve: {};
|
|
424
|
+
schema: {};
|
|
425
|
+
standaloneSchema: {};
|
|
426
|
+
response: {};
|
|
427
|
+
}, {
|
|
428
|
+
derive: {};
|
|
429
|
+
resolve: {};
|
|
430
|
+
schema: {};
|
|
431
|
+
standaloneSchema: {};
|
|
432
|
+
response: {};
|
|
433
|
+
}>;
|