@absolutejs/voice 0.0.22-beta.146 → 0.0.22-beta.148
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/deliveryRuntime.d.ts +96 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +364 -246
- package/package.json +1 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import { createVoiceAuditSinkDeliveryWorker, type VoiceAuditSinkDeliveryQueueSummary, type VoiceAuditSinkDeliveryRecord, type VoiceAuditSinkDeliveryWorkerOptions, type VoiceAuditSinkDeliveryWorkerResult } from './auditSinks';
|
|
3
|
+
import { createVoiceTraceSinkDeliveryWorker, type VoiceTraceSinkDeliveryQueueSummary, type VoiceTraceSinkDeliveryWorkerOptions, type VoiceTraceSinkDeliveryWorkerResult } from './queue';
|
|
4
|
+
import type { VoiceTraceSinkDeliveryRecord } from './trace';
|
|
5
|
+
export type VoiceDeliveryRuntimeAuditConfig<TDelivery extends VoiceAuditSinkDeliveryRecord = VoiceAuditSinkDeliveryRecord> = VoiceAuditSinkDeliveryWorkerOptions<TDelivery> & {
|
|
6
|
+
autoStart?: boolean;
|
|
7
|
+
onError?: (error: unknown) => Promise<void> | void;
|
|
8
|
+
pollIntervalMs?: number;
|
|
9
|
+
};
|
|
10
|
+
export type VoiceDeliveryRuntimeTraceConfig<TDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord> = VoiceTraceSinkDeliveryWorkerOptions<TDelivery> & {
|
|
11
|
+
autoStart?: boolean;
|
|
12
|
+
onError?: (error: unknown) => Promise<void> | void;
|
|
13
|
+
pollIntervalMs?: number;
|
|
14
|
+
};
|
|
15
|
+
export type VoiceDeliveryRuntimeConfig<TAuditDelivery extends VoiceAuditSinkDeliveryRecord = VoiceAuditSinkDeliveryRecord, TTraceDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord> = {
|
|
16
|
+
audit?: VoiceDeliveryRuntimeAuditConfig<TAuditDelivery>;
|
|
17
|
+
trace?: VoiceDeliveryRuntimeTraceConfig<TTraceDelivery>;
|
|
18
|
+
};
|
|
19
|
+
export type VoiceDeliveryRuntimeTickResult = {
|
|
20
|
+
audit?: VoiceAuditSinkDeliveryWorkerResult;
|
|
21
|
+
trace?: VoiceTraceSinkDeliveryWorkerResult;
|
|
22
|
+
};
|
|
23
|
+
export type VoiceDeliveryRuntimeSummary = {
|
|
24
|
+
audit?: VoiceAuditSinkDeliveryQueueSummary;
|
|
25
|
+
trace?: VoiceTraceSinkDeliveryQueueSummary;
|
|
26
|
+
};
|
|
27
|
+
export type VoiceDeliveryRuntime = {
|
|
28
|
+
audit?: ReturnType<typeof createVoiceAuditSinkDeliveryWorker>;
|
|
29
|
+
isRunning: () => boolean;
|
|
30
|
+
start: () => void;
|
|
31
|
+
stop: () => void;
|
|
32
|
+
summarize: () => Promise<VoiceDeliveryRuntimeSummary>;
|
|
33
|
+
tick: () => Promise<VoiceDeliveryRuntimeTickResult>;
|
|
34
|
+
trace?: ReturnType<typeof createVoiceTraceSinkDeliveryWorker>;
|
|
35
|
+
};
|
|
36
|
+
export type VoiceDeliveryRuntimeReport = {
|
|
37
|
+
checkedAt: number;
|
|
38
|
+
isRunning: boolean;
|
|
39
|
+
summary: VoiceDeliveryRuntimeSummary;
|
|
40
|
+
};
|
|
41
|
+
export type VoiceDeliveryRuntimeRoutesOptions = {
|
|
42
|
+
headers?: HeadersInit;
|
|
43
|
+
htmlPath?: false | string;
|
|
44
|
+
name?: string;
|
|
45
|
+
path?: string;
|
|
46
|
+
render?: (report: VoiceDeliveryRuntimeReport) => string | Promise<string>;
|
|
47
|
+
runtime: VoiceDeliveryRuntime;
|
|
48
|
+
tickPath?: false | string;
|
|
49
|
+
title?: string;
|
|
50
|
+
};
|
|
51
|
+
export declare const createVoiceDeliveryRuntime: <TAuditDelivery extends VoiceAuditSinkDeliveryRecord = VoiceAuditSinkDeliveryRecord, TTraceDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord>(config: VoiceDeliveryRuntimeConfig<TAuditDelivery, TTraceDelivery>) => VoiceDeliveryRuntime;
|
|
52
|
+
export declare const buildVoiceDeliveryRuntimeReport: (runtime: VoiceDeliveryRuntime) => Promise<VoiceDeliveryRuntimeReport>;
|
|
53
|
+
export declare const renderVoiceDeliveryRuntimeHTML: (report: VoiceDeliveryRuntimeReport, options?: {
|
|
54
|
+
tickPath?: false | string;
|
|
55
|
+
title?: string;
|
|
56
|
+
}) => string;
|
|
57
|
+
export declare const createVoiceDeliveryRuntimeRoutes: (options: VoiceDeliveryRuntimeRoutesOptions) => Elysia<"", {
|
|
58
|
+
decorator: {};
|
|
59
|
+
store: {};
|
|
60
|
+
derive: {};
|
|
61
|
+
resolve: {};
|
|
62
|
+
}, {
|
|
63
|
+
typebox: {};
|
|
64
|
+
error: {};
|
|
65
|
+
}, {
|
|
66
|
+
schema: {};
|
|
67
|
+
standaloneSchema: {};
|
|
68
|
+
macro: {};
|
|
69
|
+
macroFn: {};
|
|
70
|
+
parser: {};
|
|
71
|
+
response: {};
|
|
72
|
+
}, {
|
|
73
|
+
[x: string]: {
|
|
74
|
+
get: {
|
|
75
|
+
body: unknown;
|
|
76
|
+
params: {};
|
|
77
|
+
query: unknown;
|
|
78
|
+
headers: unknown;
|
|
79
|
+
response: {
|
|
80
|
+
200: VoiceDeliveryRuntimeReport;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}, {
|
|
85
|
+
derive: {};
|
|
86
|
+
resolve: {};
|
|
87
|
+
schema: {};
|
|
88
|
+
standaloneSchema: {};
|
|
89
|
+
response: {};
|
|
90
|
+
}, {
|
|
91
|
+
derive: {};
|
|
92
|
+
resolve: {};
|
|
93
|
+
schema: {};
|
|
94
|
+
standaloneSchema: {};
|
|
95
|
+
response: {};
|
|
96
|
+
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -13,10 +13,12 @@ export { createVoiceReconnectContractRoutes, renderVoiceReconnectContractHTML, s
|
|
|
13
13
|
export { buildVoiceDiagnosticsMarkdown, createVoiceDiagnosticsRoutes, resolveVoiceDiagnosticsTraceFilter } from './diagnosticsRoutes';
|
|
14
14
|
export { buildVoiceDemoReadyReport, createVoiceDemoReadyRoutes, renderVoiceDemoReadyHTML } from './demoReadyRoutes';
|
|
15
15
|
export { buildVoiceDeliverySinkReport, createVoiceDeliverySinkDescriptor, createVoiceDeliverySinkPair, createVoiceDeliverySinkRoutes, createVoiceFileDeliverySink, createVoicePostgresDeliverySink, createVoiceS3DeliverySink, createVoiceSQLiteDeliverySink, createVoiceWebhookDeliverySink, renderVoiceDeliverySinkHTML } from './deliverySinkRoutes';
|
|
16
|
+
export { buildVoiceDeliveryRuntimeReport, createVoiceDeliveryRuntime, createVoiceDeliveryRuntimeRoutes, renderVoiceDeliveryRuntimeHTML } from './deliveryRuntime';
|
|
16
17
|
export { applyVoiceDataRetentionPolicy, buildVoiceDataRetentionPlan } from './dataControl';
|
|
17
18
|
export type { VoiceDataRetentionPolicy, VoiceDataRetentionReport, VoiceDataRetentionScope, VoiceDataRetentionScopeReport, VoiceDataRetentionStores } from './dataControl';
|
|
18
19
|
export type { VoiceDemoReadyReport, VoiceDemoReadyRoutesOptions, VoiceDemoReadySection, VoiceDemoReadyStatus } from './demoReadyRoutes';
|
|
19
20
|
export type { VoiceDeliverySinkDescriptor, VoiceDeliverySinkDescriptorInput, VoiceDeliverySinkKind, VoiceDeliverySinkPairOptions, VoiceDeliverySinkReport, VoiceDeliverySinkRoutesOptions, VoiceTraceDeliverySinkSurface } from './deliverySinkRoutes';
|
|
21
|
+
export type { VoiceDeliveryRuntime, VoiceDeliveryRuntimeAuditConfig, VoiceDeliveryRuntimeConfig, VoiceDeliveryRuntimeReport, VoiceDeliveryRuntimeRoutesOptions, VoiceDeliveryRuntimeSummary, VoiceDeliveryRuntimeTickResult, VoiceDeliveryRuntimeTraceConfig } from './deliveryRuntime';
|
|
20
22
|
export { compareVoiceEvalBaseline, createVoiceFileEvalBaselineStore, createVoiceFileScenarioFixtureStore, createVoiceEvalRoutes, renderVoiceEvalBaselineHTML, renderVoiceEvalHTML, renderVoiceScenarioEvalHTML, renderVoiceScenarioFixtureEvalHTML, runVoiceScenarioEvals, runVoiceScenarioFixtureEvals, runVoiceSessionEvals } from './evalRoutes';
|
|
21
23
|
export { createVoiceSimulationSuiteRoutes, renderVoiceSimulationSuiteHTML, runVoiceSimulationSuite } from './simulationSuite';
|
|
22
24
|
export { createVoiceWorkflowContract, createVoiceWorkflowContractHandler, createVoiceWorkflowContractPreset, createVoiceWorkflowScenario, recordVoiceWorkflowContractTrace, validateVoiceWorkflowRouteResult } from './workflowContract';
|