@absolutejs/voice 0.0.22-beta.224 → 0.0.22-beta.226
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 +23 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3070 -2914
- package/dist/observabilityExport.d.ts +33 -0
- package/dist/productionReadiness.d.ts +21 -1
- package/package.json +1 -1
|
@@ -154,9 +154,36 @@ export type VoiceObservabilityExportDeliveryReport = {
|
|
|
154
154
|
total: number;
|
|
155
155
|
};
|
|
156
156
|
};
|
|
157
|
+
export type VoiceObservabilityExportDeliveryReceipt = {
|
|
158
|
+
checkedAt: number;
|
|
159
|
+
destinations: VoiceObservabilityExportDeliveryDestinationResult[];
|
|
160
|
+
exportStatus: VoiceObservabilityExportStatus;
|
|
161
|
+
id: string;
|
|
162
|
+
runId: string;
|
|
163
|
+
status: VoiceObservabilityExportStatus;
|
|
164
|
+
summary: VoiceObservabilityExportDeliveryReport['summary'];
|
|
165
|
+
};
|
|
166
|
+
export type VoiceObservabilityExportDeliveryReceiptStore = {
|
|
167
|
+
get: (id: string) => Promise<VoiceObservabilityExportDeliveryReceipt | undefined> | VoiceObservabilityExportDeliveryReceipt | undefined;
|
|
168
|
+
list: () => Promise<VoiceObservabilityExportDeliveryReceipt[]> | VoiceObservabilityExportDeliveryReceipt[];
|
|
169
|
+
remove: (id: string) => Promise<void> | void;
|
|
170
|
+
set: (id: string, receipt: VoiceObservabilityExportDeliveryReceipt) => Promise<void> | void;
|
|
171
|
+
};
|
|
172
|
+
export type VoiceObservabilityExportDeliveryHistory = {
|
|
173
|
+
checkedAt: number;
|
|
174
|
+
receipts: VoiceObservabilityExportDeliveryReceipt[];
|
|
175
|
+
status: VoiceObservabilityExportStatus;
|
|
176
|
+
summary: {
|
|
177
|
+
delivered: number;
|
|
178
|
+
failed: number;
|
|
179
|
+
receipts: number;
|
|
180
|
+
totalDestinations: number;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
157
183
|
export type VoiceObservabilityExportDeliveryOptions = {
|
|
158
184
|
destinations: VoiceObservabilityExportDeliveryDestination[];
|
|
159
185
|
report: VoiceObservabilityExportReport;
|
|
186
|
+
receipts?: VoiceObservabilityExportDeliveryReceiptStore;
|
|
160
187
|
runId?: string;
|
|
161
188
|
};
|
|
162
189
|
export type VoiceObservabilityExportOptions = {
|
|
@@ -188,6 +215,7 @@ export type VoiceObservabilityExportRoutesOptions = VoiceObservabilityExportOpti
|
|
|
188
215
|
artifactIndexPath?: false | string;
|
|
189
216
|
deliveryDestinations?: VoiceObservabilityExportDeliveryDestination[];
|
|
190
217
|
deliveryPath?: false | string;
|
|
218
|
+
deliveryReceipts?: VoiceObservabilityExportDeliveryReceiptStore;
|
|
191
219
|
htmlPath?: false | string;
|
|
192
220
|
markdownPath?: false | string;
|
|
193
221
|
name?: string;
|
|
@@ -195,6 +223,11 @@ export type VoiceObservabilityExportRoutesOptions = VoiceObservabilityExportOpti
|
|
|
195
223
|
render?: (report: VoiceObservabilityExportReport) => string | Promise<string>;
|
|
196
224
|
title?: string;
|
|
197
225
|
};
|
|
226
|
+
export declare const createVoiceMemoryObservabilityExportDeliveryReceiptStore: () => VoiceObservabilityExportDeliveryReceiptStore;
|
|
227
|
+
export declare const createVoiceFileObservabilityExportDeliveryReceiptStore: (options: {
|
|
228
|
+
directory: string;
|
|
229
|
+
}) => VoiceObservabilityExportDeliveryReceiptStore;
|
|
230
|
+
export declare const buildVoiceObservabilityExportDeliveryHistory: (store: VoiceObservabilityExportDeliveryReceiptStore) => Promise<VoiceObservabilityExportDeliveryHistory>;
|
|
198
231
|
export declare const buildVoiceObservabilityExport: (options?: VoiceObservabilityExportOptions) => Promise<VoiceObservabilityExportReport>;
|
|
199
232
|
export declare const renderVoiceObservabilityExportMarkdown: (report: VoiceObservabilityExportReport, options?: {
|
|
200
233
|
title?: string;
|
|
@@ -15,7 +15,14 @@ import type { VoiceProviderContractMatrixReport, VoiceProviderStackCapabilityGap
|
|
|
15
15
|
import { type VoiceProviderSloReport, type VoiceProviderSloReportOptions } from './providerSlo';
|
|
16
16
|
import type { VoiceCampaignReadinessProofReport } from './campaign';
|
|
17
17
|
import { type VoiceOpsRecoveryReport } from './opsRecovery';
|
|
18
|
-
import type
|
|
18
|
+
import { type VoiceObservabilityExportDeliveryHistory, type VoiceObservabilityExportDeliveryReceiptStore, type VoiceObservabilityExportReport } from './observabilityExport';
|
|
19
|
+
export type VoiceProductionReadinessObservabilityExportDeliveryHistoryOptions = {
|
|
20
|
+
failOnMissing?: boolean;
|
|
21
|
+
failOnStale?: boolean;
|
|
22
|
+
history?: VoiceObservabilityExportDeliveryHistory;
|
|
23
|
+
maxAgeMs?: number;
|
|
24
|
+
store?: VoiceObservabilityExportDeliveryReceiptStore;
|
|
25
|
+
};
|
|
19
26
|
export type VoiceProductionReadinessStatus = 'fail' | 'pass' | 'warn';
|
|
20
27
|
export type VoiceProductionReadinessAction = {
|
|
21
28
|
description?: string;
|
|
@@ -93,6 +100,7 @@ export type VoiceProductionReadinessReport = {
|
|
|
93
100
|
liveLatency?: string;
|
|
94
101
|
operationsRecords?: string;
|
|
95
102
|
observabilityExport?: string;
|
|
103
|
+
observabilityExportDeliveries?: string;
|
|
96
104
|
opsActions?: string;
|
|
97
105
|
opsRecovery?: string;
|
|
98
106
|
phoneAgentSmoke?: string;
|
|
@@ -165,6 +173,14 @@ export type VoiceProductionReadinessReport = {
|
|
|
165
173
|
status: VoiceProductionReadinessStatus;
|
|
166
174
|
traceEvents: number;
|
|
167
175
|
};
|
|
176
|
+
observabilityExportDeliveryHistory?: {
|
|
177
|
+
delivered: number;
|
|
178
|
+
failed: number;
|
|
179
|
+
latestSuccessAgeMs?: number;
|
|
180
|
+
receipts: number;
|
|
181
|
+
status: VoiceProductionReadinessStatus;
|
|
182
|
+
totalDestinations: number;
|
|
183
|
+
};
|
|
168
184
|
providers: {
|
|
169
185
|
degraded: number;
|
|
170
186
|
total: number;
|
|
@@ -352,6 +368,10 @@ export type VoiceProductionReadinessRoutesOptions = {
|
|
|
352
368
|
query: Record<string, unknown>;
|
|
353
369
|
request: Request;
|
|
354
370
|
}) => Promise<VoiceObservabilityExportReport> | VoiceObservabilityExportReport);
|
|
371
|
+
observabilityExportDeliveryHistory?: false | VoiceObservabilityExportDeliveryHistory | VoiceObservabilityExportDeliveryReceiptStore | VoiceProductionReadinessObservabilityExportDeliveryHistoryOptions | ((input: {
|
|
372
|
+
query: Record<string, unknown>;
|
|
373
|
+
request: Request;
|
|
374
|
+
}) => Promise<VoiceObservabilityExportDeliveryHistory | VoiceObservabilityExportDeliveryReceiptStore | VoiceProductionReadinessObservabilityExportDeliveryHistoryOptions> | VoiceObservabilityExportDeliveryHistory | VoiceObservabilityExportDeliveryReceiptStore | VoiceProductionReadinessObservabilityExportDeliveryHistoryOptions);
|
|
355
375
|
path?: string;
|
|
356
376
|
phoneAgentSmokes?: false | readonly VoicePhoneAgentProductionSmokeReport[] | ((input: {
|
|
357
377
|
query: Record<string, unknown>;
|