@absolutejs/voice 0.0.22-beta.418 → 0.0.22-beta.419
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/index.d.ts +2 -2
- package/dist/index.js +28 -0
- package/dist/proofPack.d.ts +22 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -206,6 +206,6 @@ export type { PlivoInboundMessage, PlivoMediaStreamBridge, PlivoMediaStreamBridg
|
|
|
206
206
|
export type { VoiceTelephonyCarrierMatrix, VoiceTelephonyCarrierMatrixEntry, VoiceTelephonyCarrierMatrixInput, VoiceTelephonyCarrierMatrixOptions, VoiceTelephonyCarrierMatrixRoutesOptions, VoiceTelephonyCarrierMatrixStatus } from './telephony/matrix';
|
|
207
207
|
export { shapeTelephonyAssistantText } from './telephony/response';
|
|
208
208
|
export type { TelephonyResponseShapeMode, TelephonyResponseShapeOptions } from './telephony/response';
|
|
209
|
-
export { buildVoiceProofPack, buildVoiceProofPackFromObservabilityExport, createVoiceProofPackBuildContext, createVoiceProofRefreshSnapshot, createVoiceProofPackStaleWhileRefreshSource, createVoiceProofPackArtifacts, createVoiceProofPackOperationsRecordSection, createVoiceProofPackProductionReadinessSection, createVoiceProofPackProviderSloSection, createVoiceProofPackRoutes, createVoiceProofPackSupportBundleSection, renderVoiceProofPackMarkdown, writeVoiceProofPack } from './proofPack';
|
|
210
|
-
export type { VoiceProofPack, VoiceProofPackBuildContext, VoiceProofPackBuildContextOptions, VoiceProofPackBuildTiming, VoiceProofPackEvidence, VoiceProofPackInput, VoiceProofPackRefreshState, VoiceProofPackRefreshStatus, VoiceProofPackRoutesOptions, VoiceProofPackSection, VoiceProofPackSourceValue, VoiceProofPackStatus, VoiceProofPackStaleWhileRefreshSource, VoiceProofPackStaleWhileRefreshSourceOptions, VoiceProofPackWriteResult, VoiceProofRefreshSnapshot, VoiceProofRefreshSnapshotOptions } from './proofPack';
|
|
209
|
+
export { buildVoiceProofPackInput, buildVoiceProofPack, buildVoiceProofPackFromObservabilityExport, createVoiceProofPackBuildContext, createVoiceProofRefreshSnapshot, createVoiceProofPackStaleWhileRefreshSource, createVoiceProofPackArtifacts, createVoiceProofPackOperationsRecordSection, createVoiceProofPackProductionReadinessSection, createVoiceProofPackProviderSloSection, createVoiceProofPackRoutes, createVoiceProofPackSupportBundleSection, renderVoiceProofPackMarkdown, writeVoiceProofPack } from './proofPack';
|
|
210
|
+
export type { VoiceProofPack, VoiceProofPackBuildContext, VoiceProofPackBuildContextOptions, VoiceProofPackBuildTiming, VoiceProofPackEvidence, VoiceProofPackInput, VoiceProofPackInputBuilderLoaderInput, VoiceProofPackInputBuilderOperationsLoaderInput, VoiceProofPackInputBuilderOptions, VoiceProofPackInputBuilderSupportBundle, VoiceProofPackRefreshState, VoiceProofPackRefreshStatus, VoiceProofPackRoutesOptions, VoiceProofPackSection, VoiceProofPackSourceValue, VoiceProofPackStatus, VoiceProofPackStaleWhileRefreshSource, VoiceProofPackStaleWhileRefreshSourceOptions, VoiceProofPackWriteResult, VoiceProofRefreshSnapshot, VoiceProofRefreshSnapshotOptions } from './proofPack';
|
|
211
211
|
export * from './types';
|
package/dist/index.js
CHANGED
|
@@ -40068,6 +40068,33 @@ var createVoiceProofRefreshSnapshot = async (options = {}) => {
|
|
|
40068
40068
|
traceStore: createSnapshotTraceStore(traceEvents)
|
|
40069
40069
|
};
|
|
40070
40070
|
};
|
|
40071
|
+
var buildVoiceProofPackInput = async (options) => {
|
|
40072
|
+
const context = options.context ?? createVoiceProofPackBuildContext();
|
|
40073
|
+
const loaderInput = { context };
|
|
40074
|
+
const [productionReadiness, providerSlo, supportBundle, observabilityExport] = await Promise.all([
|
|
40075
|
+
options.loadProductionReadiness ? context.time("productionReadiness", () => options.loadProductionReadiness?.(loaderInput)) : undefined,
|
|
40076
|
+
options.loadProviderSlo ? context.time("providerSlo", () => options.loadProviderSlo?.(loaderInput)) : undefined,
|
|
40077
|
+
options.loadSupportBundle ? context.time("supportBundle", () => options.loadSupportBundle?.(loaderInput)) : undefined,
|
|
40078
|
+
options.loadObservabilityExport ? context.time("observabilityExport", () => options.loadObservabilityExport?.(loaderInput)) : undefined
|
|
40079
|
+
]);
|
|
40080
|
+
const operationsRecords = options.loadOperationsRecords ? await context.time("operationsRecords", () => options.loadOperationsRecords?.({
|
|
40081
|
+
context,
|
|
40082
|
+
supportBundle
|
|
40083
|
+
})) : options.operationsRecords;
|
|
40084
|
+
return {
|
|
40085
|
+
artifacts: options.artifacts,
|
|
40086
|
+
callDebuggerReports: supportBundle?.callDebuggerReports ?? options.callDebuggerReports,
|
|
40087
|
+
generatedAt: options.generatedAt,
|
|
40088
|
+
observabilityExport,
|
|
40089
|
+
operationsRecords,
|
|
40090
|
+
outputDir: options.outputDir,
|
|
40091
|
+
productionReadiness,
|
|
40092
|
+
providerSlo,
|
|
40093
|
+
runId: options.runId,
|
|
40094
|
+
sections: options.sections,
|
|
40095
|
+
sessionSnapshots: supportBundle?.sessionSnapshots ?? options.sessionSnapshots
|
|
40096
|
+
};
|
|
40097
|
+
};
|
|
40071
40098
|
var toProofPackStatus = (status) => {
|
|
40072
40099
|
if (status === "fail" || status === "failed") {
|
|
40073
40100
|
return "fail";
|
|
@@ -41140,6 +41167,7 @@ export {
|
|
|
41140
41167
|
buildVoiceProofTrendReport,
|
|
41141
41168
|
buildVoiceProofTrendRecommendationReport,
|
|
41142
41169
|
buildVoiceProofTrendProfileSummaries,
|
|
41170
|
+
buildVoiceProofPackInput,
|
|
41143
41171
|
buildVoiceProofPackFromObservabilityExport,
|
|
41144
41172
|
buildVoiceProofPack,
|
|
41145
41173
|
buildVoiceProfileSwitchReadinessReport,
|
package/dist/proofPack.d.ts
CHANGED
|
@@ -92,6 +92,27 @@ export type VoiceProofRefreshSnapshot = {
|
|
|
92
92
|
traceEvents: StoredVoiceTraceEvent[];
|
|
93
93
|
traceStore: VoiceTraceEventStore;
|
|
94
94
|
};
|
|
95
|
+
export type VoiceProofPackInputBuilderSupportBundle = {
|
|
96
|
+
callDebuggerReports?: VoiceCallDebuggerReport[];
|
|
97
|
+
sessionSnapshots?: VoiceSessionSnapshot[];
|
|
98
|
+
};
|
|
99
|
+
export type VoiceProofPackInputBuilderLoaderInput = {
|
|
100
|
+
context: VoiceProofPackBuildContext;
|
|
101
|
+
};
|
|
102
|
+
export type VoiceProofPackInputBuilderOperationsLoaderInput = VoiceProofPackInputBuilderLoaderInput & {
|
|
103
|
+
supportBundle?: VoiceProofPackInputBuilderSupportBundle;
|
|
104
|
+
};
|
|
105
|
+
export type VoiceProofPackInputBuilderOptions = Omit<VoiceProofPackInput, 'callDebuggerReports' | 'observabilityExport' | 'operationsRecords' | 'productionReadiness' | 'providerSlo' | 'sessionSnapshots'> & {
|
|
106
|
+
callDebuggerReports?: VoiceCallDebuggerReport[];
|
|
107
|
+
context?: VoiceProofPackBuildContext;
|
|
108
|
+
loadObservabilityExport?: (input: VoiceProofPackInputBuilderLoaderInput) => Promise<VoiceObservabilityExportReport> | VoiceObservabilityExportReport;
|
|
109
|
+
loadOperationsRecords?: (input: VoiceProofPackInputBuilderOperationsLoaderInput) => Promise<VoiceOperationsRecord[]> | VoiceOperationsRecord[];
|
|
110
|
+
loadProductionReadiness?: (input: VoiceProofPackInputBuilderLoaderInput) => Promise<VoiceProductionReadinessReport> | VoiceProductionReadinessReport;
|
|
111
|
+
loadProviderSlo?: (input: VoiceProofPackInputBuilderLoaderInput) => Promise<VoiceProviderSloReport> | VoiceProviderSloReport;
|
|
112
|
+
loadSupportBundle?: (input: VoiceProofPackInputBuilderLoaderInput) => Promise<VoiceProofPackInputBuilderSupportBundle> | VoiceProofPackInputBuilderSupportBundle;
|
|
113
|
+
operationsRecords?: VoiceOperationsRecord[];
|
|
114
|
+
sessionSnapshots?: VoiceSessionSnapshot[];
|
|
115
|
+
};
|
|
95
116
|
export type VoiceProofPackSourceValue = VoiceProofPack | VoiceProofPackInput;
|
|
96
117
|
export type VoiceProofPackStaleWhileRefreshSourceOptions = {
|
|
97
118
|
maxAgeMs?: number;
|
|
@@ -124,6 +145,7 @@ export type VoiceProofPackRoutesOptions = {
|
|
|
124
145
|
};
|
|
125
146
|
export declare const createVoiceProofPackBuildContext: (options?: VoiceProofPackBuildContextOptions) => VoiceProofPackBuildContext;
|
|
126
147
|
export declare const createVoiceProofRefreshSnapshot: (options?: VoiceProofRefreshSnapshotOptions) => Promise<VoiceProofRefreshSnapshot>;
|
|
148
|
+
export declare const buildVoiceProofPackInput: (options: VoiceProofPackInputBuilderOptions) => Promise<VoiceProofPackInput>;
|
|
127
149
|
export declare const createVoiceProofPackProviderSloSection: (report: VoiceProviderSloReport, options?: {
|
|
128
150
|
href?: string;
|
|
129
151
|
title?: string;
|