@absolutejs/voice 0.0.22-beta.431 → 0.0.22-beta.433
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/incidentTimeline.d.ts +148 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +587 -170
- package/package.json +1 -1
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import type { VoiceFailureReplayReport, VoiceOperationsRecord } from './operationsRecord';
|
|
3
|
+
import type { VoiceOperationalStatusReport } from './operationalStatus';
|
|
4
|
+
import type { VoiceOpsRecoveryReport } from './opsRecovery';
|
|
5
|
+
import type { VoiceMonitorIssue } from './voiceMonitoring';
|
|
6
|
+
export type VoiceIncidentTimelineStatus = 'fail' | 'pass' | 'warn';
|
|
7
|
+
export type VoiceIncidentTimelineSeverity = 'critical' | 'info' | 'warn';
|
|
8
|
+
export type VoiceIncidentTimelineAction = {
|
|
9
|
+
href?: string;
|
|
10
|
+
label: string;
|
|
11
|
+
method?: 'GET' | 'POST';
|
|
12
|
+
};
|
|
13
|
+
export type VoiceIncidentRecoveryAction = {
|
|
14
|
+
detail?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
eventId?: string;
|
|
17
|
+
href?: string;
|
|
18
|
+
id: string;
|
|
19
|
+
label: string;
|
|
20
|
+
method?: 'GET' | 'POST';
|
|
21
|
+
sessionId?: string;
|
|
22
|
+
};
|
|
23
|
+
export type VoiceIncidentRecoveryActionResult = {
|
|
24
|
+
actionId: string;
|
|
25
|
+
detail?: string;
|
|
26
|
+
href?: string;
|
|
27
|
+
ok: boolean;
|
|
28
|
+
status?: string;
|
|
29
|
+
};
|
|
30
|
+
export type VoiceIncidentRecoveryActionHandlerInput = {
|
|
31
|
+
action: VoiceIncidentRecoveryAction;
|
|
32
|
+
actionId: string;
|
|
33
|
+
report: VoiceIncidentTimelineReport;
|
|
34
|
+
request: Request;
|
|
35
|
+
};
|
|
36
|
+
export type VoiceIncidentRecoveryActionHandler = (input: VoiceIncidentRecoveryActionHandlerInput) => Promise<VoiceIncidentRecoveryActionResult> | VoiceIncidentRecoveryActionResult;
|
|
37
|
+
export type VoiceIncidentTimelineEvent = {
|
|
38
|
+
action?: VoiceIncidentTimelineAction;
|
|
39
|
+
at: number;
|
|
40
|
+
category: 'call' | 'delivery' | 'failure-replay' | 'monitor' | 'operational-status' | 'readiness' | 'recovery';
|
|
41
|
+
detail?: string;
|
|
42
|
+
href?: string;
|
|
43
|
+
id: string;
|
|
44
|
+
label: string;
|
|
45
|
+
sessionId?: string;
|
|
46
|
+
severity: VoiceIncidentTimelineSeverity;
|
|
47
|
+
source: string;
|
|
48
|
+
value?: number | string;
|
|
49
|
+
};
|
|
50
|
+
export type VoiceIncidentTimelineReport = {
|
|
51
|
+
actions: VoiceIncidentRecoveryAction[];
|
|
52
|
+
events: VoiceIncidentTimelineEvent[];
|
|
53
|
+
generatedAt: number;
|
|
54
|
+
links: VoiceIncidentTimelineLinks;
|
|
55
|
+
status: VoiceIncidentTimelineStatus;
|
|
56
|
+
summary: {
|
|
57
|
+
critical: number;
|
|
58
|
+
info: number;
|
|
59
|
+
total: number;
|
|
60
|
+
warn: number;
|
|
61
|
+
};
|
|
62
|
+
windowMs?: number;
|
|
63
|
+
};
|
|
64
|
+
export type VoiceIncidentTimelineValue<TValue> = TValue | (() => Promise<TValue> | TValue);
|
|
65
|
+
export type VoiceIncidentTimelineLinks = {
|
|
66
|
+
callDebugger?: string | ((sessionId: string) => string);
|
|
67
|
+
deliveryRuntime?: string;
|
|
68
|
+
failureReplay?: string | ((sessionId: string) => string);
|
|
69
|
+
monitorIssues?: string;
|
|
70
|
+
operationalStatus?: string;
|
|
71
|
+
operationsRecords?: string | ((sessionId: string) => string);
|
|
72
|
+
productionReadiness?: string;
|
|
73
|
+
proofPack?: string;
|
|
74
|
+
supportBundle?: string | ((sessionId: string) => string);
|
|
75
|
+
};
|
|
76
|
+
export type VoiceIncidentTimelineOptions = {
|
|
77
|
+
failureReplays?: VoiceIncidentTimelineValue<readonly VoiceFailureReplayReport[]>;
|
|
78
|
+
links?: VoiceIncidentTimelineLinks;
|
|
79
|
+
limit?: number;
|
|
80
|
+
monitorIssues?: VoiceIncidentTimelineValue<readonly VoiceMonitorIssue[]>;
|
|
81
|
+
now?: number;
|
|
82
|
+
operationalStatus?: VoiceIncidentTimelineValue<VoiceOperationalStatusReport>;
|
|
83
|
+
operationsRecords?: VoiceIncidentTimelineValue<readonly VoiceOperationsRecord[]>;
|
|
84
|
+
opsRecovery?: VoiceIncidentTimelineValue<VoiceOpsRecoveryReport>;
|
|
85
|
+
recoveryActions?: readonly VoiceIncidentRecoveryAction[] | ((input: {
|
|
86
|
+
events: readonly VoiceIncidentTimelineEvent[];
|
|
87
|
+
report: Omit<VoiceIncidentTimelineReport, 'actions'>;
|
|
88
|
+
}) => Promise<readonly VoiceIncidentRecoveryAction[]> | readonly VoiceIncidentRecoveryAction[]);
|
|
89
|
+
windowMs?: number;
|
|
90
|
+
};
|
|
91
|
+
export type VoiceIncidentTimelineRoutesOptions = VoiceIncidentTimelineOptions & {
|
|
92
|
+
actionHandlers?: Record<string, VoiceIncidentRecoveryActionHandler>;
|
|
93
|
+
actionPath?: false | string;
|
|
94
|
+
headers?: HeadersInit;
|
|
95
|
+
htmlPath?: false | string;
|
|
96
|
+
markdownPath?: false | string;
|
|
97
|
+
name?: string;
|
|
98
|
+
path?: string;
|
|
99
|
+
render?: (report: VoiceIncidentTimelineReport) => string | Promise<string>;
|
|
100
|
+
title?: string;
|
|
101
|
+
};
|
|
102
|
+
export declare const buildVoiceIncidentTimelineReport: (options: VoiceIncidentTimelineOptions) => Promise<VoiceIncidentTimelineReport>;
|
|
103
|
+
export declare const renderVoiceIncidentTimelineMarkdown: (report: VoiceIncidentTimelineReport, options?: {
|
|
104
|
+
title?: string;
|
|
105
|
+
}) => string;
|
|
106
|
+
export declare const renderVoiceIncidentTimelineHTML: (report: VoiceIncidentTimelineReport, options?: {
|
|
107
|
+
title?: string;
|
|
108
|
+
}) => string;
|
|
109
|
+
export declare const createVoiceIncidentTimelineRoutes: (options: VoiceIncidentTimelineRoutesOptions) => Elysia<"", {
|
|
110
|
+
decorator: {};
|
|
111
|
+
store: {};
|
|
112
|
+
derive: {};
|
|
113
|
+
resolve: {};
|
|
114
|
+
}, {
|
|
115
|
+
typebox: {};
|
|
116
|
+
error: {};
|
|
117
|
+
}, {
|
|
118
|
+
schema: {};
|
|
119
|
+
standaloneSchema: {};
|
|
120
|
+
macro: {};
|
|
121
|
+
macroFn: {};
|
|
122
|
+
parser: {};
|
|
123
|
+
response: {};
|
|
124
|
+
}, {
|
|
125
|
+
[x: string]: {
|
|
126
|
+
get: {
|
|
127
|
+
body: unknown;
|
|
128
|
+
params: {};
|
|
129
|
+
query: unknown;
|
|
130
|
+
headers: unknown;
|
|
131
|
+
response: {
|
|
132
|
+
200: Response;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}, {
|
|
137
|
+
derive: {};
|
|
138
|
+
resolve: {};
|
|
139
|
+
schema: {};
|
|
140
|
+
standaloneSchema: {};
|
|
141
|
+
response: {};
|
|
142
|
+
}, {
|
|
143
|
+
derive: {};
|
|
144
|
+
resolve: {};
|
|
145
|
+
schema: {};
|
|
146
|
+
standaloneSchema: {};
|
|
147
|
+
response: {};
|
|
148
|
+
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export { assertVoiceLiveOpsControlEvidence, assertVoiceLiveOpsEvidence, buildVoi
|
|
|
52
52
|
export type { VoiceLiveOpsAction, VoiceLiveOpsActionInput, VoiceLiveOpsActionResult, VoiceLiveOpsControllerOptions, VoiceLiveOpsControlState, VoiceLiveOpsControlStatus, VoiceLiveOpsControlStore, VoiceLiveOpsControlEvidenceInput, VoiceLiveOpsControlEvidenceReport, VoiceLiveOpsEvidenceInput, VoiceLiveOpsEvidenceReport, VoiceLiveOpsRoutesOptions } from './liveOps';
|
|
53
53
|
export { buildVoiceDeliveryRuntimeReport, createVoiceDeliveryRuntime, createVoiceDeliveryRuntimePresetConfig, createVoiceDeliveryRuntimeRoutes, renderVoiceDeliveryRuntimeHTML } from './deliveryRuntime';
|
|
54
54
|
export { buildVoiceOperationalStatusReport, createVoiceOperationalStatusRoutes, renderVoiceOperationalStatusHTML } from './operationalStatus';
|
|
55
|
+
export { buildVoiceIncidentTimelineReport, createVoiceIncidentTimelineRoutes, renderVoiceIncidentTimelineHTML, renderVoiceIncidentTimelineMarkdown } from './incidentTimeline';
|
|
55
56
|
export { applyVoiceDataRetentionPolicy, assertVoiceDataControlEvidence, buildVoiceDataControlReport, buildVoiceDataRetentionPlan, createVoiceDataControlRoutes, createVoiceZeroRetentionPolicy, evaluateVoiceDataControlEvidence, renderVoiceDataControlHTML, renderVoiceDataControlMarkdown, voiceComplianceRedactionDefaults } from './dataControl';
|
|
56
57
|
export type { VoiceDataControlAssertionInput, VoiceDataControlAssertionReport, VoiceDataControlProviderKeySurface, VoiceDataControlReport, VoiceDataControlRoutesOptions, VoiceDataControlStorageSurface, VoiceDataRetentionPolicy, VoiceDataRetentionReport, VoiceDataRetentionScope, VoiceDataRetentionScopeReport, VoiceDataRetentionStores } from './dataControl';
|
|
57
58
|
export type { VoiceDemoReadyReport, VoiceDemoReadyRoutesOptions, VoiceDemoReadySection, VoiceDemoReadyStatus } from './demoReadyRoutes';
|
|
@@ -59,6 +60,7 @@ export type { VoiceDeliverySinkDescriptor, VoiceDeliverySinkDescriptorInput, Voi
|
|
|
59
60
|
export type { VoiceOpsActionAuditRecord, VoiceOpsActionAuditRoutesOptions, VoiceOpsActionHistoryEntry, VoiceOpsActionHistoryReport } from './opsActionAuditRoutes';
|
|
60
61
|
export type { VoiceDeliveryRuntime, VoiceDeliveryRuntimeAuditConfig, VoiceDeliveryRuntimeConfig, VoiceDeliveryRuntimeFilePresetOptions, VoiceDeliveryRuntimePresetLeaseConfig, VoiceDeliveryRuntimePresetMode, VoiceDeliveryRuntimePresetOptions, VoiceDeliveryRuntimeReport, VoiceDeliveryRuntimeRoutesOptions, VoiceDeliveryRuntimeS3PresetOptions, VoiceDeliveryRuntimeSummary, VoiceDeliveryRuntimeTickResult, VoiceDeliveryRuntimeTraceConfig, VoiceDeliveryRuntimeWebhookPresetOptions } from './deliveryRuntime';
|
|
61
62
|
export type { VoiceOperationalStatus, VoiceOperationalStatusCheck, VoiceOperationalStatusOptions, VoiceOperationalStatusReport, VoiceOperationalStatusRoutesOptions, VoiceOperationalStatusValue } from './operationalStatus';
|
|
63
|
+
export type { VoiceIncidentRecoveryAction, VoiceIncidentRecoveryActionHandler, VoiceIncidentRecoveryActionHandlerInput, VoiceIncidentRecoveryActionResult, VoiceIncidentTimelineAction, VoiceIncidentTimelineEvent, VoiceIncidentTimelineLinks, VoiceIncidentTimelineOptions, VoiceIncidentTimelineReport, VoiceIncidentTimelineRoutesOptions, VoiceIncidentTimelineSeverity, VoiceIncidentTimelineStatus, VoiceIncidentTimelineValue } from './incidentTimeline';
|
|
62
64
|
export { compareVoiceEvalBaseline, createVoiceFileEvalBaselineStore, createVoiceFileScenarioFixtureStore, createVoiceEvalRoutes, renderVoiceEvalBaselineHTML, renderVoiceEvalHTML, renderVoiceScenarioEvalHTML, renderVoiceScenarioFixtureEvalHTML, runVoiceScenarioEvals, runVoiceScenarioFixtureEvals, runVoiceSessionEvals } from './evalRoutes';
|
|
63
65
|
export { assertVoiceSimulationSuiteEvidence, createVoiceSimulationSuiteRoutes, evaluateVoiceSimulationSuiteEvidence, renderVoiceSimulationSuiteHTML, runVoiceSimulationSuite } from './simulationSuite';
|
|
64
66
|
export { createVoiceWorkflowContract, createVoiceWorkflowContractHandler, createVoiceWorkflowContractPreset, createVoiceWorkflowScenario, recordVoiceWorkflowContractTrace, validateVoiceWorkflowRouteResult } from './workflowContract';
|