@absolutejs/voice 0.0.22-beta.437 → 0.0.22-beta.439

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.
@@ -2,6 +2,7 @@ import { Elysia } from 'elysia';
2
2
  import type { VoiceFailureReplayReport, VoiceOperationsRecord } from './operationsRecord';
3
3
  import type { VoiceOperationalStatusReport } from './operationalStatus';
4
4
  import type { VoiceOpsRecoveryReport } from './opsRecovery';
5
+ import type { VoiceProductionReadinessCheck } from './productionReadiness';
5
6
  import type { VoiceAuditEventStore } from './audit';
6
7
  import type { VoiceTraceEventStore } from './trace';
7
8
  import type { VoiceMonitorIssue } from './voiceMonitoring';
@@ -59,10 +60,56 @@ export type VoiceIncidentRecoveryOutcomeReport = {
59
60
  total: number;
60
61
  unchanged: number;
61
62
  };
63
+ export type VoiceIncidentRecoveryTrendStatus = 'empty' | 'fail' | 'pass' | 'warn';
64
+ export type VoiceIncidentRecoveryTrendCycle = {
65
+ checkedAt: number;
66
+ failed: number;
67
+ failureRate: number;
68
+ improved: number;
69
+ improvementRate: number;
70
+ regressed: number;
71
+ regressionRate: number;
72
+ total: number;
73
+ unchanged: number;
74
+ unchangedRate: number;
75
+ };
76
+ export type VoiceIncidentRecoveryTrendReport = {
77
+ checkedAt: number;
78
+ cycles: VoiceIncidentRecoveryTrendCycle[];
79
+ latest?: VoiceIncidentRecoveryTrendCycle;
80
+ previous?: VoiceIncidentRecoveryTrendCycle;
81
+ status: VoiceIncidentRecoveryTrendStatus;
82
+ summary: {
83
+ cycles: number;
84
+ failed: number;
85
+ failureRate: number;
86
+ improved: number;
87
+ improvementRate: number;
88
+ regressed: number;
89
+ regressionRate: number;
90
+ total: number;
91
+ unchanged: number;
92
+ unchangedRate: number;
93
+ };
94
+ trend: {
95
+ failureRateDelta?: number;
96
+ improvementRateDelta?: number;
97
+ regressionRateDelta?: number;
98
+ unchangedRateDelta?: number;
99
+ };
100
+ };
62
101
  export type VoiceIncidentRecoveryOutcomeOptions = {
63
102
  audit?: VoiceAuditEventStore;
64
103
  limit?: number;
65
104
  };
105
+ export type VoiceIncidentRecoveryOutcomeReadinessOptions = {
106
+ failOnFailed?: boolean;
107
+ failOnRegressed?: boolean;
108
+ href?: string;
109
+ label?: string;
110
+ maxUnchanged?: number;
111
+ warnWhenEmpty?: boolean;
112
+ };
66
113
  export type VoiceIncidentTimelineEvent = {
67
114
  action?: VoiceIncidentTimelineAction;
68
115
  at: number;
@@ -129,6 +176,10 @@ export type VoiceIncidentTimelineRoutesOptions = VoiceIncidentTimelineOptions &
129
176
  render?: (report: VoiceIncidentTimelineReport) => string | Promise<string>;
130
177
  recoveryOutcomeHtmlPath?: false | string;
131
178
  recoveryOutcomePath?: false | string;
179
+ recoveryTrendHtmlPath?: false | string;
180
+ recoveryTrendMarkdownPath?: false | string;
181
+ recoveryTrendPath?: false | string;
182
+ recoveryTrendReports?: VoiceIncidentRecoveryOutcomeReport[] | (() => VoiceIncidentRecoveryOutcomeReport[] | Promise<VoiceIncidentRecoveryOutcomeReport[]>);
132
183
  title?: string;
133
184
  trace?: VoiceTraceEventStore;
134
185
  };
@@ -136,6 +187,14 @@ export declare const buildVoiceIncidentRecoveryOutcomeReport: (options: VoiceInc
136
187
  export declare const renderVoiceIncidentRecoveryOutcomeHTML: (report: VoiceIncidentRecoveryOutcomeReport, options?: {
137
188
  title?: string;
138
189
  }) => string;
190
+ export declare const buildVoiceIncidentRecoveryOutcomeReadinessCheck: (report: VoiceIncidentRecoveryOutcomeReport, options?: VoiceIncidentRecoveryOutcomeReadinessOptions) => VoiceProductionReadinessCheck;
191
+ export declare const buildVoiceIncidentRecoveryTrendReport: (reports?: readonly VoiceIncidentRecoveryOutcomeReport[]) => VoiceIncidentRecoveryTrendReport;
192
+ export declare const renderVoiceIncidentRecoveryTrendMarkdown: (report: VoiceIncidentRecoveryTrendReport, options?: {
193
+ title?: string;
194
+ }) => string;
195
+ export declare const renderVoiceIncidentRecoveryTrendHTML: (report: VoiceIncidentRecoveryTrendReport, options?: {
196
+ title?: string;
197
+ }) => string;
139
198
  export declare const buildVoiceIncidentTimelineReport: (options: VoiceIncidentTimelineOptions) => Promise<VoiceIncidentTimelineReport>;
140
199
  export declare const renderVoiceIncidentTimelineMarkdown: (report: VoiceIncidentTimelineReport, options?: {
141
200
  title?: string;
package/dist/index.d.ts CHANGED
@@ -52,7 +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 { buildVoiceIncidentRecoveryOutcomeReport, buildVoiceIncidentTimelineReport, createVoiceIncidentTimelineRoutes, renderVoiceIncidentRecoveryOutcomeHTML, renderVoiceIncidentTimelineHTML, renderVoiceIncidentTimelineMarkdown } from './incidentTimeline';
55
+ export { buildVoiceIncidentRecoveryOutcomeReport, buildVoiceIncidentRecoveryOutcomeReadinessCheck, buildVoiceIncidentRecoveryTrendReport, buildVoiceIncidentTimelineReport, createVoiceIncidentTimelineRoutes, renderVoiceIncidentRecoveryOutcomeHTML, renderVoiceIncidentRecoveryTrendHTML, renderVoiceIncidentRecoveryTrendMarkdown, renderVoiceIncidentTimelineHTML, renderVoiceIncidentTimelineMarkdown } from './incidentTimeline';
56
56
  export { applyVoiceDataRetentionPolicy, assertVoiceDataControlEvidence, buildVoiceDataControlReport, buildVoiceDataRetentionPlan, createVoiceDataControlRoutes, createVoiceZeroRetentionPolicy, evaluateVoiceDataControlEvidence, renderVoiceDataControlHTML, renderVoiceDataControlMarkdown, voiceComplianceRedactionDefaults } from './dataControl';
57
57
  export type { VoiceDataControlAssertionInput, VoiceDataControlAssertionReport, VoiceDataControlProviderKeySurface, VoiceDataControlReport, VoiceDataControlRoutesOptions, VoiceDataControlStorageSurface, VoiceDataRetentionPolicy, VoiceDataRetentionReport, VoiceDataRetentionScope, VoiceDataRetentionScopeReport, VoiceDataRetentionStores } from './dataControl';
58
58
  export type { VoiceDemoReadyReport, VoiceDemoReadyRoutesOptions, VoiceDemoReadySection, VoiceDemoReadyStatus } from './demoReadyRoutes';
@@ -60,7 +60,7 @@ export type { VoiceDeliverySinkDescriptor, VoiceDeliverySinkDescriptorInput, Voi
60
60
  export type { VoiceOpsActionAuditRecord, VoiceOpsActionAuditRoutesOptions, VoiceOpsActionHistoryEntry, VoiceOpsActionHistoryReport } from './opsActionAuditRoutes';
61
61
  export type { VoiceDeliveryRuntime, VoiceDeliveryRuntimeAuditConfig, VoiceDeliveryRuntimeConfig, VoiceDeliveryRuntimeFilePresetOptions, VoiceDeliveryRuntimePresetLeaseConfig, VoiceDeliveryRuntimePresetMode, VoiceDeliveryRuntimePresetOptions, VoiceDeliveryRuntimeReport, VoiceDeliveryRuntimeRoutesOptions, VoiceDeliveryRuntimeS3PresetOptions, VoiceDeliveryRuntimeSummary, VoiceDeliveryRuntimeTickResult, VoiceDeliveryRuntimeTraceConfig, VoiceDeliveryRuntimeWebhookPresetOptions } from './deliveryRuntime';
62
62
  export type { VoiceOperationalStatus, VoiceOperationalStatusCheck, VoiceOperationalStatusOptions, VoiceOperationalStatusReport, VoiceOperationalStatusRoutesOptions, VoiceOperationalStatusValue } from './operationalStatus';
63
- export type { VoiceIncidentRecoveryAction, VoiceIncidentRecoveryActionHandler, VoiceIncidentRecoveryActionHandlerInput, VoiceIncidentRecoveryActionResult, VoiceIncidentRecoveryOutcome, VoiceIncidentRecoveryOutcomeEntry, VoiceIncidentRecoveryOutcomeOptions, VoiceIncidentRecoveryOutcomeReport, VoiceIncidentTimelineAction, VoiceIncidentTimelineEvent, VoiceIncidentTimelineLinks, VoiceIncidentTimelineOptions, VoiceIncidentTimelineReport, VoiceIncidentTimelineRoutesOptions, VoiceIncidentTimelineSeverity, VoiceIncidentTimelineStatus, VoiceIncidentTimelineValue } from './incidentTimeline';
63
+ export type { VoiceIncidentRecoveryAction, VoiceIncidentRecoveryActionHandler, VoiceIncidentRecoveryActionHandlerInput, VoiceIncidentRecoveryActionResult, VoiceIncidentRecoveryOutcome, VoiceIncidentRecoveryOutcomeEntry, VoiceIncidentRecoveryOutcomeOptions, VoiceIncidentRecoveryOutcomeReadinessOptions, VoiceIncidentRecoveryOutcomeReport, VoiceIncidentRecoveryTrendCycle, VoiceIncidentRecoveryTrendReport, VoiceIncidentRecoveryTrendStatus, VoiceIncidentTimelineAction, VoiceIncidentTimelineEvent, VoiceIncidentTimelineLinks, VoiceIncidentTimelineOptions, VoiceIncidentTimelineReport, VoiceIncidentTimelineRoutesOptions, VoiceIncidentTimelineSeverity, VoiceIncidentTimelineStatus, VoiceIncidentTimelineValue } from './incidentTimeline';
64
64
  export { compareVoiceEvalBaseline, createVoiceFileEvalBaselineStore, createVoiceFileScenarioFixtureStore, createVoiceEvalRoutes, renderVoiceEvalBaselineHTML, renderVoiceEvalHTML, renderVoiceScenarioEvalHTML, renderVoiceScenarioFixtureEvalHTML, runVoiceScenarioEvals, runVoiceScenarioFixtureEvals, runVoiceSessionEvals } from './evalRoutes';
65
65
  export { assertVoiceSimulationSuiteEvidence, createVoiceSimulationSuiteRoutes, evaluateVoiceSimulationSuiteEvidence, renderVoiceSimulationSuiteHTML, runVoiceSimulationSuite } from './simulationSuite';
66
66
  export { createVoiceWorkflowContract, createVoiceWorkflowContractHandler, createVoiceWorkflowContractPreset, createVoiceWorkflowScenario, recordVoiceWorkflowContractTrace, validateVoiceWorkflowRouteResult } from './workflowContract';