@absolutejs/voice 0.0.22-beta.671 → 0.0.22-beta.673
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/core/assistantHealth.d.ts +3 -40
- package/dist/core/auditDeliveryRoutes.d.ts +5 -40
- package/dist/core/auditRoutes.d.ts +3 -27
- package/dist/core/bargeInRoutes.d.ts +3 -27
- package/dist/core/browserCallProfiles.d.ts +3 -27
- package/dist/core/browserMediaRoutes.d.ts +3 -27
- package/dist/core/callDebugger.d.ts +3 -27
- package/dist/core/campaign.d.ts +166 -143
- package/dist/core/competitiveCoverage.d.ts +3 -40
- package/dist/core/dataControl.d.ts +3 -27
- package/dist/core/deliveryRuntime.d.ts +3 -40
- package/dist/core/deliverySinkRoutes.d.ts +3 -40
- package/dist/core/demoReadyRoutes.d.ts +3 -27
- package/dist/core/diagnosticsRoutes.d.ts +3 -27
- package/dist/core/evalRoutes.d.ts +3 -27
- package/dist/core/guardrails.d.ts +3 -27
- package/dist/core/handoffHealth.d.ts +5 -40
- package/dist/core/htmxDashboardRoutes.d.ts +309 -195
- package/dist/core/incidentBundle.d.ts +3 -27
- package/dist/core/incidentTimeline.d.ts +3 -40
- package/dist/core/liveLatency.d.ts +3 -40
- package/dist/core/liveOps.d.ts +154 -44
- package/dist/core/mediaPipelineRoutes.d.ts +3 -40
- package/dist/core/monitor.d.ts +5 -19
- package/dist/core/observabilityExport.d.ts +6 -54
- package/dist/core/operationalStatus.d.ts +3 -40
- package/dist/core/operationsRecord.d.ts +3 -27
- package/dist/core/opsActionAuditRoutes.d.ts +160 -51
- package/dist/core/opsConsoleRoutes.d.ts +3 -27
- package/dist/core/opsRecovery.d.ts +3 -40
- package/dist/core/opsStatusRoutes.d.ts +3 -27
- package/dist/core/opsWebhook.d.ts +158 -49
- package/dist/core/outcomeContract.d.ts +3 -40
- package/dist/core/phoneAgentProductionSmoke.d.ts +6 -40
- package/dist/core/platformCoverage.d.ts +3 -27
- package/dist/core/plugin.d.ts +12 -40
- package/dist/core/postCallAnalysis.d.ts +3 -27
- package/dist/core/productionReadiness.d.ts +3 -27
- package/dist/core/profileSwitchRecommendation.d.ts +299 -116
- package/dist/core/proofPack.d.ts +3 -27
- package/dist/core/proofTrends.d.ts +15 -135
- package/dist/core/providerCapabilities.d.ts +3 -40
- package/dist/core/providerDecisionTraces.d.ts +3 -40
- package/dist/core/providerHealth.d.ts +3 -40
- package/dist/core/providerOrchestration.d.ts +3 -40
- package/dist/core/providerSlo.d.ts +3 -27
- package/dist/core/providerStackRecommendations.d.ts +3 -27
- package/dist/core/qualityRoutes.d.ts +3 -27
- package/dist/core/realtimeChannel.d.ts +3 -40
- package/dist/core/realtimeProviderContracts.d.ts +3 -40
- package/dist/core/reconnectContract.d.ts +153 -79
- package/dist/core/resilienceRoutes.d.ts +3 -40
- package/dist/core/routeAuth.d.ts +3 -29
- package/dist/core/sessionObservability.d.ts +3 -27
- package/dist/core/sessionReplay.d.ts +10 -79
- package/dist/core/sessionSnapshot.d.ts +148 -39
- package/dist/core/simulationSuite.d.ts +3 -40
- package/dist/core/sloCalibration.d.ts +6 -54
- package/dist/core/telephonyMediaRoutes.d.ts +3 -27
- package/dist/core/telephonyOutcome.d.ts +148 -39
- package/dist/core/toolContract.d.ts +3 -40
- package/dist/core/traceDeliveryRoutes.d.ts +5 -40
- package/dist/core/traceTimeline.d.ts +3 -27
- package/dist/core/turnLatency.d.ts +3 -40
- package/dist/core/turnQuality.d.ts +3 -40
- package/dist/core/voiceMonitoring.d.ts +164 -115
- package/dist/index.js +63 -27
- package/dist/telephony/matrix.d.ts +148 -39
- package/dist/telephony/plivo.d.ts +10 -33
- package/dist/telephony/security.d.ts +3 -40
- package/dist/telephony/telnyx.d.ts +10 -33
- package/dist/testing/index.js +19 -11
- package/package.json +7 -81
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Elysia } from "elysia";
|
|
2
1
|
import type { MediaProcessorGraphSnapshot } from "@absolutejs/media";
|
|
3
2
|
import type { VoiceProofAssertionResult, VoiceProofAssertionSummary } from "./proofAssertions";
|
|
4
3
|
import type { VoiceCampaignTelephonyOutcomeSnapshot } from "./campaign";
|
|
@@ -67,43 +66,153 @@ export declare const buildVoiceSessionSnapshotStatus: (input: {
|
|
|
67
66
|
telephonyOutcomes?: readonly Pick<VoiceCampaignTelephonyOutcomeSnapshot, "campaignOutcome" | "duplicate">[];
|
|
68
67
|
}) => VoiceSessionSnapshotStatus;
|
|
69
68
|
export declare const parseVoiceSessionSnapshot: (snapshot: VoiceSessionSnapshot) => VoiceSessionSnapshot;
|
|
70
|
-
export declare const createVoiceSessionSnapshotRoutes: (options?: VoiceSessionSnapshotRoutesOptions) =>
|
|
71
|
-
decorator: {};
|
|
72
|
-
store: {};
|
|
73
|
-
derive: {};
|
|
74
|
-
resolve: {};
|
|
75
|
-
}, {
|
|
69
|
+
export declare const createVoiceSessionSnapshotRoutes: (options?: VoiceSessionSnapshotRoutesOptions) => import("elysia/types").AddRoute<"", "local", import("elysia/types").DefaultSingleton, {
|
|
76
70
|
typebox: {};
|
|
77
|
-
error:
|
|
78
|
-
}, {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
query: unknown;
|
|
91
|
-
headers: unknown;
|
|
92
|
-
response: {
|
|
93
|
-
200: Response;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
71
|
+
error: [];
|
|
72
|
+
}, import("elysia/types").DefaultMetadata, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral, "get", string, import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, `/${string}`>, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, {}, ({ params, request, query }: {
|
|
73
|
+
body: unknown;
|
|
74
|
+
query: Record<string, string | undefined>;
|
|
75
|
+
params: {};
|
|
76
|
+
headers: Record<string, string | undefined>;
|
|
77
|
+
cookie: Record<string, import("elysia").Cookie<unknown>>;
|
|
78
|
+
server: import("elysia").Server | null;
|
|
79
|
+
redirect: import("elysia").redirect;
|
|
80
|
+
set: {
|
|
81
|
+
headers: import("elysia").HTTPHeaders;
|
|
82
|
+
status?: number | keyof import("elysia").StatusMap;
|
|
83
|
+
cookie?: Record<string, import("elysia").BaseCookie>;
|
|
96
84
|
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
85
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 404 | 400 | 408 | 401 | 503 | 200 | 429 | 500 | 300 | 420 | 413 | 415 | 403 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 409 | 410 | 411 | 412 | 414 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
86
|
+
readonly 100: "Continue";
|
|
87
|
+
readonly 101: "Switching Protocols";
|
|
88
|
+
readonly 102: "Processing";
|
|
89
|
+
readonly 103: "Early Hints";
|
|
90
|
+
readonly 200: "OK";
|
|
91
|
+
readonly 201: "Created";
|
|
92
|
+
readonly 202: "Accepted";
|
|
93
|
+
readonly 203: "Non-Authoritative Information";
|
|
94
|
+
readonly 204: "No Content";
|
|
95
|
+
readonly 205: "Reset Content";
|
|
96
|
+
readonly 206: "Partial Content";
|
|
97
|
+
readonly 207: "Multi-Status";
|
|
98
|
+
readonly 208: "Already Reported";
|
|
99
|
+
readonly 300: "Multiple Choices";
|
|
100
|
+
readonly 301: "Moved Permanently";
|
|
101
|
+
readonly 302: "Found";
|
|
102
|
+
readonly 303: "See Other";
|
|
103
|
+
readonly 304: "Not Modified";
|
|
104
|
+
readonly 307: "Temporary Redirect";
|
|
105
|
+
readonly 308: "Permanent Redirect";
|
|
106
|
+
readonly 400: "Bad Request";
|
|
107
|
+
readonly 401: "Unauthorized";
|
|
108
|
+
readonly 402: "Payment Required";
|
|
109
|
+
readonly 403: "Forbidden";
|
|
110
|
+
readonly 404: "Not Found";
|
|
111
|
+
readonly 405: "Method Not Allowed";
|
|
112
|
+
readonly 406: "Not Acceptable";
|
|
113
|
+
readonly 407: "Proxy Authentication Required";
|
|
114
|
+
readonly 408: "Request Timeout";
|
|
115
|
+
readonly 409: "Conflict";
|
|
116
|
+
readonly 410: "Gone";
|
|
117
|
+
readonly 411: "Length Required";
|
|
118
|
+
readonly 412: "Precondition Failed";
|
|
119
|
+
readonly 413: "Payload Too Large";
|
|
120
|
+
readonly 414: "URI Too Long";
|
|
121
|
+
readonly 415: "Unsupported Media Type";
|
|
122
|
+
readonly 416: "Range Not Satisfiable";
|
|
123
|
+
readonly 417: "Expectation Failed";
|
|
124
|
+
readonly 418: "I'm a teapot";
|
|
125
|
+
readonly 420: "Enhance Your Calm";
|
|
126
|
+
readonly 421: "Misdirected Request";
|
|
127
|
+
readonly 422: "Unprocessable Content";
|
|
128
|
+
readonly 423: "Locked";
|
|
129
|
+
readonly 424: "Failed Dependency";
|
|
130
|
+
readonly 425: "Too Early";
|
|
131
|
+
readonly 426: "Upgrade Required";
|
|
132
|
+
readonly 428: "Precondition Required";
|
|
133
|
+
readonly 429: "Too Many Requests";
|
|
134
|
+
readonly 431: "Request Header Fields Too Large";
|
|
135
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
136
|
+
readonly 500: "Internal Server Error";
|
|
137
|
+
readonly 501: "Not Implemented";
|
|
138
|
+
readonly 502: "Bad Gateway";
|
|
139
|
+
readonly 503: "Service Unavailable";
|
|
140
|
+
readonly 504: "Gateway Timeout";
|
|
141
|
+
readonly 505: "HTTP Version Not Supported";
|
|
142
|
+
readonly 506: "Variant Also Negotiates";
|
|
143
|
+
readonly 507: "Insufficient Storage";
|
|
144
|
+
readonly 508: "Loop Detected";
|
|
145
|
+
readonly 510: "Not Extended";
|
|
146
|
+
readonly 511: "Network Authentication Required";
|
|
147
|
+
}[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaStatus<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
|
|
148
|
+
readonly Continue: 100;
|
|
149
|
+
readonly "Switching Protocols": 101;
|
|
150
|
+
readonly Processing: 102;
|
|
151
|
+
readonly "Early Hints": 103;
|
|
152
|
+
readonly OK: 200;
|
|
153
|
+
readonly Created: 201;
|
|
154
|
+
readonly Accepted: 202;
|
|
155
|
+
readonly "Non-Authoritative Information": 203;
|
|
156
|
+
readonly "No Content": 204;
|
|
157
|
+
readonly "Reset Content": 205;
|
|
158
|
+
readonly "Partial Content": 206;
|
|
159
|
+
readonly "Multi-Status": 207;
|
|
160
|
+
readonly "Already Reported": 208;
|
|
161
|
+
readonly "Multiple Choices": 300;
|
|
162
|
+
readonly "Moved Permanently": 301;
|
|
163
|
+
readonly Found: 302;
|
|
164
|
+
readonly "See Other": 303;
|
|
165
|
+
readonly "Not Modified": 304;
|
|
166
|
+
readonly "Temporary Redirect": 307;
|
|
167
|
+
readonly "Permanent Redirect": 308;
|
|
168
|
+
readonly "Bad Request": 400;
|
|
169
|
+
readonly Unauthorized: 401;
|
|
170
|
+
readonly "Payment Required": 402;
|
|
171
|
+
readonly Forbidden: 403;
|
|
172
|
+
readonly "Not Found": 404;
|
|
173
|
+
readonly "Method Not Allowed": 405;
|
|
174
|
+
readonly "Not Acceptable": 406;
|
|
175
|
+
readonly "Proxy Authentication Required": 407;
|
|
176
|
+
readonly "Request Timeout": 408;
|
|
177
|
+
readonly Conflict: 409;
|
|
178
|
+
readonly Gone: 410;
|
|
179
|
+
readonly "Length Required": 411;
|
|
180
|
+
readonly "Precondition Failed": 412;
|
|
181
|
+
readonly "Payload Too Large": 413;
|
|
182
|
+
readonly "URI Too Long": 414;
|
|
183
|
+
readonly "Unsupported Media Type": 415;
|
|
184
|
+
readonly "Range Not Satisfiable": 416;
|
|
185
|
+
readonly "Expectation Failed": 417;
|
|
186
|
+
readonly "I'm a teapot": 418;
|
|
187
|
+
readonly "Enhance Your Calm": 420;
|
|
188
|
+
readonly "Misdirected Request": 421;
|
|
189
|
+
readonly "Unprocessable Content": 422;
|
|
190
|
+
readonly Locked: 423;
|
|
191
|
+
readonly "Failed Dependency": 424;
|
|
192
|
+
readonly "Too Early": 425;
|
|
193
|
+
readonly "Upgrade Required": 426;
|
|
194
|
+
readonly "Precondition Required": 428;
|
|
195
|
+
readonly "Too Many Requests": 429;
|
|
196
|
+
readonly "Request Header Fields Too Large": 431;
|
|
197
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
198
|
+
readonly "Internal Server Error": 500;
|
|
199
|
+
readonly "Not Implemented": 501;
|
|
200
|
+
readonly "Bad Gateway": 502;
|
|
201
|
+
readonly "Service Unavailable": 503;
|
|
202
|
+
readonly "Gateway Timeout": 504;
|
|
203
|
+
readonly "HTTP Version Not Supported": 505;
|
|
204
|
+
readonly "Variant Also Negotiates": 506;
|
|
205
|
+
readonly "Insufficient Storage": 507;
|
|
206
|
+
readonly "Loop Detected": 508;
|
|
207
|
+
readonly "Not Extended": 510;
|
|
208
|
+
readonly "Network Authentication Required": 511;
|
|
209
|
+
}[Code] : Code>;
|
|
210
|
+
defer: (fn: import("elysia/types").AfterResponseHandler<NoInfer<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, `/${string}`>, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>>, NoInfer<import("elysia/types").DefaultSingleton & {
|
|
211
|
+
derive: {};
|
|
212
|
+
}>>) => import("elysia/types").MaybePromise<void>;
|
|
213
|
+
readonly path: string;
|
|
214
|
+
route?: string | undefined;
|
|
215
|
+
rid?: string | undefined;
|
|
216
|
+
request: Request;
|
|
217
|
+
store: {};
|
|
218
|
+
}) => Promise<Response>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Elysia } from "elysia";
|
|
2
1
|
import { type VoiceEvalReport, type VoiceEvalRoutesOptions, type VoiceScenarioEvalDefinition, type VoiceScenarioEvalReport, type VoiceScenarioFixture, type VoiceScenarioFixtureEvalReport, type VoiceScenarioFixtureStore } from "./evalRoutes";
|
|
3
2
|
import { type VoiceOutcomeContractDefinition, type VoiceOutcomeContractOptions, type VoiceOutcomeContractSuiteReport } from "./outcomeContract";
|
|
4
3
|
import { type VoiceToolContractDefinition, type VoiceToolContractSuiteReport } from "./toolContract";
|
|
@@ -97,46 +96,10 @@ export type VoiceSimulationSuiteRoutesOptions<TSession extends VoiceSessionRecor
|
|
|
97
96
|
export declare const runVoiceSimulationSuite: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceSimulationSuiteOptions<TSession>) => Promise<VoiceSimulationSuiteReport>;
|
|
98
97
|
export declare const assertVoiceSimulationSuiteEvidence: (report: VoiceSimulationSuiteReport, input?: VoiceSimulationSuiteAssertionInput) => VoiceSimulationSuiteAssertionReport;
|
|
99
98
|
export declare const evaluateVoiceSimulationSuiteEvidence: (report: VoiceSimulationSuiteReport, input?: VoiceSimulationSuiteAssertionInput) => VoiceSimulationSuiteAssertionReport;
|
|
100
|
-
export declare const createVoiceSimulationSuiteRoutes: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceSimulationSuiteRoutesOptions<TSession>) =>
|
|
101
|
-
decorator: {};
|
|
102
|
-
store: {};
|
|
103
|
-
derive: {};
|
|
104
|
-
resolve: {};
|
|
105
|
-
}, {
|
|
99
|
+
export declare const createVoiceSimulationSuiteRoutes: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceSimulationSuiteRoutesOptions<TSession>) => import("elysia/types").AddRoute<"", "local", import("elysia/types").DefaultSingleton, {
|
|
106
100
|
typebox: {};
|
|
107
|
-
error:
|
|
108
|
-
}, {
|
|
109
|
-
schema: {};
|
|
110
|
-
standaloneSchema: {};
|
|
111
|
-
macro: {};
|
|
112
|
-
macroFn: {};
|
|
113
|
-
parser: {};
|
|
114
|
-
response: {};
|
|
115
|
-
}, {
|
|
116
|
-
[x: string]: {
|
|
117
|
-
get: {
|
|
118
|
-
body: unknown;
|
|
119
|
-
params: {};
|
|
120
|
-
query: unknown;
|
|
121
|
-
headers: unknown;
|
|
122
|
-
response: {
|
|
123
|
-
200: VoiceSimulationSuiteReport;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
}, {
|
|
128
|
-
derive: {};
|
|
129
|
-
resolve: {};
|
|
130
|
-
schema: {};
|
|
131
|
-
standaloneSchema: {};
|
|
132
|
-
response: {};
|
|
133
|
-
}, {
|
|
134
|
-
derive: {};
|
|
135
|
-
resolve: {};
|
|
136
|
-
schema: {};
|
|
137
|
-
standaloneSchema: {};
|
|
138
|
-
response: {};
|
|
139
|
-
}>;
|
|
101
|
+
error: [];
|
|
102
|
+
}, import("elysia/types").DefaultMetadata, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral, "get", string, import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, `/${string}`>, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, {}, () => Promise<VoiceSimulationSuiteReport>>;
|
|
140
103
|
export declare const renderVoiceSimulationSuiteHTML: (report: VoiceSimulationSuiteReport, options?: {
|
|
141
104
|
title?: string;
|
|
142
105
|
}) => string;
|
|
@@ -118,62 +118,14 @@ export declare const buildVoiceSloCalibrationReport: (input: Array<VoiceProofTre
|
|
|
118
118
|
export declare const buildVoiceSloReadinessThresholdReport: (input: VoiceSloCalibrationReport | VoiceSloThresholdProfile | Array<VoiceProofTrendReport | VoiceSloCalibrationSample>, options?: VoiceSloReadinessThresholdReportOptions) => VoiceSloReadinessThresholdReport;
|
|
119
119
|
export declare const createVoiceSloReadinessThresholdOptions: (input: VoiceSloCalibrationReport | VoiceSloThresholdProfile | Array<VoiceProofTrendReport | VoiceSloCalibrationSample>, options?: VoiceSloCalibrationOptions) => VoiceSloReadinessThresholdOptions;
|
|
120
120
|
export declare const createVoiceSloThresholdProfile: (input: VoiceSloCalibrationReport | Array<VoiceProofTrendReport | VoiceSloCalibrationSample>, options?: VoiceSloCalibrationOptions) => VoiceSloThresholdProfile;
|
|
121
|
-
export declare const createVoiceSloCalibrationRoutes: (options: VoiceSloCalibrationRoutesOptions) => Elysia<"", {
|
|
122
|
-
decorator: {};
|
|
123
|
-
store: {};
|
|
124
|
-
derive: {};
|
|
125
|
-
resolve: {};
|
|
126
|
-
}, {
|
|
121
|
+
export declare const createVoiceSloCalibrationRoutes: (options: VoiceSloCalibrationRoutesOptions) => Elysia<"", "local", import("elysia/types").DefaultSingleton, {
|
|
127
122
|
typebox: {};
|
|
128
|
-
error:
|
|
129
|
-
}, {
|
|
130
|
-
|
|
131
|
-
standaloneSchema: {};
|
|
132
|
-
macro: {};
|
|
133
|
-
macroFn: {};
|
|
134
|
-
parser: {};
|
|
135
|
-
response: {};
|
|
136
|
-
}, {}, {
|
|
137
|
-
derive: {};
|
|
138
|
-
resolve: {};
|
|
139
|
-
schema: {};
|
|
140
|
-
standaloneSchema: {};
|
|
141
|
-
response: {};
|
|
142
|
-
}, {
|
|
143
|
-
derive: {};
|
|
144
|
-
resolve: {};
|
|
145
|
-
schema: {};
|
|
146
|
-
standaloneSchema: {};
|
|
147
|
-
response: {};
|
|
148
|
-
}>;
|
|
149
|
-
export declare const createVoiceSloReadinessThresholdRoutes: (options: VoiceSloReadinessThresholdRoutesOptions) => Elysia<"", {
|
|
150
|
-
decorator: {};
|
|
151
|
-
store: {};
|
|
152
|
-
derive: {};
|
|
153
|
-
resolve: {};
|
|
154
|
-
}, {
|
|
123
|
+
error: [];
|
|
124
|
+
}, import("elysia/types").DefaultMetadata, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral>;
|
|
125
|
+
export declare const createVoiceSloReadinessThresholdRoutes: (options: VoiceSloReadinessThresholdRoutesOptions) => Elysia<"", "local", import("elysia/types").DefaultSingleton, {
|
|
155
126
|
typebox: {};
|
|
156
|
-
error:
|
|
157
|
-
}, {
|
|
158
|
-
schema: {};
|
|
159
|
-
standaloneSchema: {};
|
|
160
|
-
macro: {};
|
|
161
|
-
macroFn: {};
|
|
162
|
-
parser: {};
|
|
163
|
-
response: {};
|
|
164
|
-
}, {}, {
|
|
165
|
-
derive: {};
|
|
166
|
-
resolve: {};
|
|
167
|
-
schema: {};
|
|
168
|
-
standaloneSchema: {};
|
|
169
|
-
response: {};
|
|
170
|
-
}, {
|
|
171
|
-
derive: {};
|
|
172
|
-
resolve: {};
|
|
173
|
-
schema: {};
|
|
174
|
-
standaloneSchema: {};
|
|
175
|
-
response: {};
|
|
176
|
-
}>;
|
|
127
|
+
error: [];
|
|
128
|
+
}, import("elysia/types").DefaultMetadata, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral>;
|
|
177
129
|
export declare const renderVoiceSloCalibrationMarkdown: (report: VoiceSloCalibrationReport, options?: {
|
|
178
130
|
title?: string;
|
|
179
131
|
}) => string;
|
|
@@ -38,34 +38,10 @@ export type VoiceTelephonyMediaTraceReportOptions = {
|
|
|
38
38
|
export declare const buildVoiceTelephonyMediaReport: (input?: {
|
|
39
39
|
carriers?: readonly VoiceTelephonyMediaCarrierInput[];
|
|
40
40
|
}) => VoiceTelephonyMediaReport;
|
|
41
|
-
export declare const createVoiceTelephonyMediaRoutes: (options?: VoiceTelephonyMediaRoutesOptions) => Elysia<"", {
|
|
42
|
-
decorator: {};
|
|
43
|
-
store: {};
|
|
44
|
-
derive: {};
|
|
45
|
-
resolve: {};
|
|
46
|
-
}, {
|
|
41
|
+
export declare const createVoiceTelephonyMediaRoutes: (options?: VoiceTelephonyMediaRoutesOptions) => Elysia<"", "local", import("elysia/types").DefaultSingleton, {
|
|
47
42
|
typebox: {};
|
|
48
|
-
error:
|
|
49
|
-
}, {
|
|
50
|
-
schema: {};
|
|
51
|
-
standaloneSchema: {};
|
|
52
|
-
macro: {};
|
|
53
|
-
macroFn: {};
|
|
54
|
-
parser: {};
|
|
55
|
-
response: {};
|
|
56
|
-
}, {}, {
|
|
57
|
-
derive: {};
|
|
58
|
-
resolve: {};
|
|
59
|
-
schema: {};
|
|
60
|
-
standaloneSchema: {};
|
|
61
|
-
response: {};
|
|
62
|
-
}, {
|
|
63
|
-
derive: {};
|
|
64
|
-
resolve: {};
|
|
65
|
-
schema: {};
|
|
66
|
-
standaloneSchema: {};
|
|
67
|
-
response: {};
|
|
68
|
-
}>;
|
|
43
|
+
error: [];
|
|
44
|
+
}, import("elysia/types").DefaultMetadata, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral>;
|
|
69
45
|
export declare const getLatestVoiceTelephonyMediaReport: (options: VoiceTelephonyMediaTraceReportOptions) => Promise<VoiceTelephonyMediaReport | undefined>;
|
|
70
46
|
export declare const renderVoiceTelephonyMediaHTML: (report: VoiceTelephonyMediaReport, options?: {
|
|
71
47
|
title?: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Elysia } from "elysia";
|
|
2
1
|
import type { VoiceCallDisposition, VoiceRouteResult, VoiceSessionHandle, VoiceSessionRecord } from "./types";
|
|
3
2
|
export type VoiceTelephonyOutcomeAction = "complete" | "escalate" | "ignore" | "no-answer" | "transfer" | "voicemail";
|
|
4
3
|
export type VoiceTelephonyOutcomeProviderEvent = {
|
|
@@ -227,43 +226,153 @@ export declare const createVoiceTelephonyWebhookHandler: <TContext = unknown, TS
|
|
|
227
226
|
query?: Record<string, unknown>;
|
|
228
227
|
request: Request;
|
|
229
228
|
}) => Promise<VoiceTelephonyWebhookDecision<TResult>>;
|
|
230
|
-
export declare const createVoiceTelephonyWebhookRoutes: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(options?: VoiceTelephonyWebhookRoutesOptions<TContext, TSession, TResult>) =>
|
|
231
|
-
decorator: {};
|
|
232
|
-
store: {};
|
|
233
|
-
derive: {};
|
|
234
|
-
resolve: {};
|
|
235
|
-
}, {
|
|
229
|
+
export declare const createVoiceTelephonyWebhookRoutes: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(options?: VoiceTelephonyWebhookRoutesOptions<TContext, TSession, TResult>) => import("elysia/types").AddRoute<"", "local", import("elysia/types").DefaultSingleton, {
|
|
236
230
|
typebox: {};
|
|
237
|
-
error:
|
|
238
|
-
}, {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
query: unknown;
|
|
251
|
-
headers: unknown;
|
|
252
|
-
response: {
|
|
253
|
-
200: Response | VoiceTelephonyWebhookDecision<TResult>;
|
|
254
|
-
};
|
|
255
|
-
};
|
|
231
|
+
error: [];
|
|
232
|
+
}, import("elysia/types").DefaultMetadata, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral, "post", string, import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, `/${string}`>, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, {}, ({ query, request }: {
|
|
233
|
+
body: unknown;
|
|
234
|
+
query: Record<string, string | undefined>;
|
|
235
|
+
params: {};
|
|
236
|
+
headers: Record<string, string | undefined>;
|
|
237
|
+
cookie: Record<string, import("elysia").Cookie<unknown>>;
|
|
238
|
+
server: import("elysia").Server | null;
|
|
239
|
+
redirect: import("elysia").redirect;
|
|
240
|
+
set: {
|
|
241
|
+
headers: import("elysia").HTTPHeaders;
|
|
242
|
+
status?: number | keyof import("elysia").StatusMap;
|
|
243
|
+
cookie?: Record<string, import("elysia").BaseCookie>;
|
|
256
244
|
};
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
245
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 404 | 400 | 408 | 401 | 503 | 200 | 429 | 500 | 300 | 420 | 413 | 415 | 403 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 409 | 410 | 411 | 412 | 414 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
246
|
+
readonly 100: "Continue";
|
|
247
|
+
readonly 101: "Switching Protocols";
|
|
248
|
+
readonly 102: "Processing";
|
|
249
|
+
readonly 103: "Early Hints";
|
|
250
|
+
readonly 200: "OK";
|
|
251
|
+
readonly 201: "Created";
|
|
252
|
+
readonly 202: "Accepted";
|
|
253
|
+
readonly 203: "Non-Authoritative Information";
|
|
254
|
+
readonly 204: "No Content";
|
|
255
|
+
readonly 205: "Reset Content";
|
|
256
|
+
readonly 206: "Partial Content";
|
|
257
|
+
readonly 207: "Multi-Status";
|
|
258
|
+
readonly 208: "Already Reported";
|
|
259
|
+
readonly 300: "Multiple Choices";
|
|
260
|
+
readonly 301: "Moved Permanently";
|
|
261
|
+
readonly 302: "Found";
|
|
262
|
+
readonly 303: "See Other";
|
|
263
|
+
readonly 304: "Not Modified";
|
|
264
|
+
readonly 307: "Temporary Redirect";
|
|
265
|
+
readonly 308: "Permanent Redirect";
|
|
266
|
+
readonly 400: "Bad Request";
|
|
267
|
+
readonly 401: "Unauthorized";
|
|
268
|
+
readonly 402: "Payment Required";
|
|
269
|
+
readonly 403: "Forbidden";
|
|
270
|
+
readonly 404: "Not Found";
|
|
271
|
+
readonly 405: "Method Not Allowed";
|
|
272
|
+
readonly 406: "Not Acceptable";
|
|
273
|
+
readonly 407: "Proxy Authentication Required";
|
|
274
|
+
readonly 408: "Request Timeout";
|
|
275
|
+
readonly 409: "Conflict";
|
|
276
|
+
readonly 410: "Gone";
|
|
277
|
+
readonly 411: "Length Required";
|
|
278
|
+
readonly 412: "Precondition Failed";
|
|
279
|
+
readonly 413: "Payload Too Large";
|
|
280
|
+
readonly 414: "URI Too Long";
|
|
281
|
+
readonly 415: "Unsupported Media Type";
|
|
282
|
+
readonly 416: "Range Not Satisfiable";
|
|
283
|
+
readonly 417: "Expectation Failed";
|
|
284
|
+
readonly 418: "I'm a teapot";
|
|
285
|
+
readonly 420: "Enhance Your Calm";
|
|
286
|
+
readonly 421: "Misdirected Request";
|
|
287
|
+
readonly 422: "Unprocessable Content";
|
|
288
|
+
readonly 423: "Locked";
|
|
289
|
+
readonly 424: "Failed Dependency";
|
|
290
|
+
readonly 425: "Too Early";
|
|
291
|
+
readonly 426: "Upgrade Required";
|
|
292
|
+
readonly 428: "Precondition Required";
|
|
293
|
+
readonly 429: "Too Many Requests";
|
|
294
|
+
readonly 431: "Request Header Fields Too Large";
|
|
295
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
296
|
+
readonly 500: "Internal Server Error";
|
|
297
|
+
readonly 501: "Not Implemented";
|
|
298
|
+
readonly 502: "Bad Gateway";
|
|
299
|
+
readonly 503: "Service Unavailable";
|
|
300
|
+
readonly 504: "Gateway Timeout";
|
|
301
|
+
readonly 505: "HTTP Version Not Supported";
|
|
302
|
+
readonly 506: "Variant Also Negotiates";
|
|
303
|
+
readonly 507: "Insufficient Storage";
|
|
304
|
+
readonly 508: "Loop Detected";
|
|
305
|
+
readonly 510: "Not Extended";
|
|
306
|
+
readonly 511: "Network Authentication Required";
|
|
307
|
+
}[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaStatus<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
|
|
308
|
+
readonly Continue: 100;
|
|
309
|
+
readonly "Switching Protocols": 101;
|
|
310
|
+
readonly Processing: 102;
|
|
311
|
+
readonly "Early Hints": 103;
|
|
312
|
+
readonly OK: 200;
|
|
313
|
+
readonly Created: 201;
|
|
314
|
+
readonly Accepted: 202;
|
|
315
|
+
readonly "Non-Authoritative Information": 203;
|
|
316
|
+
readonly "No Content": 204;
|
|
317
|
+
readonly "Reset Content": 205;
|
|
318
|
+
readonly "Partial Content": 206;
|
|
319
|
+
readonly "Multi-Status": 207;
|
|
320
|
+
readonly "Already Reported": 208;
|
|
321
|
+
readonly "Multiple Choices": 300;
|
|
322
|
+
readonly "Moved Permanently": 301;
|
|
323
|
+
readonly Found: 302;
|
|
324
|
+
readonly "See Other": 303;
|
|
325
|
+
readonly "Not Modified": 304;
|
|
326
|
+
readonly "Temporary Redirect": 307;
|
|
327
|
+
readonly "Permanent Redirect": 308;
|
|
328
|
+
readonly "Bad Request": 400;
|
|
329
|
+
readonly Unauthorized: 401;
|
|
330
|
+
readonly "Payment Required": 402;
|
|
331
|
+
readonly Forbidden: 403;
|
|
332
|
+
readonly "Not Found": 404;
|
|
333
|
+
readonly "Method Not Allowed": 405;
|
|
334
|
+
readonly "Not Acceptable": 406;
|
|
335
|
+
readonly "Proxy Authentication Required": 407;
|
|
336
|
+
readonly "Request Timeout": 408;
|
|
337
|
+
readonly Conflict: 409;
|
|
338
|
+
readonly Gone: 410;
|
|
339
|
+
readonly "Length Required": 411;
|
|
340
|
+
readonly "Precondition Failed": 412;
|
|
341
|
+
readonly "Payload Too Large": 413;
|
|
342
|
+
readonly "URI Too Long": 414;
|
|
343
|
+
readonly "Unsupported Media Type": 415;
|
|
344
|
+
readonly "Range Not Satisfiable": 416;
|
|
345
|
+
readonly "Expectation Failed": 417;
|
|
346
|
+
readonly "I'm a teapot": 418;
|
|
347
|
+
readonly "Enhance Your Calm": 420;
|
|
348
|
+
readonly "Misdirected Request": 421;
|
|
349
|
+
readonly "Unprocessable Content": 422;
|
|
350
|
+
readonly Locked: 423;
|
|
351
|
+
readonly "Failed Dependency": 424;
|
|
352
|
+
readonly "Too Early": 425;
|
|
353
|
+
readonly "Upgrade Required": 426;
|
|
354
|
+
readonly "Precondition Required": 428;
|
|
355
|
+
readonly "Too Many Requests": 429;
|
|
356
|
+
readonly "Request Header Fields Too Large": 431;
|
|
357
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
358
|
+
readonly "Internal Server Error": 500;
|
|
359
|
+
readonly "Not Implemented": 501;
|
|
360
|
+
readonly "Bad Gateway": 502;
|
|
361
|
+
readonly "Service Unavailable": 503;
|
|
362
|
+
readonly "Gateway Timeout": 504;
|
|
363
|
+
readonly "HTTP Version Not Supported": 505;
|
|
364
|
+
readonly "Variant Also Negotiates": 506;
|
|
365
|
+
readonly "Insufficient Storage": 507;
|
|
366
|
+
readonly "Loop Detected": 508;
|
|
367
|
+
readonly "Not Extended": 510;
|
|
368
|
+
readonly "Network Authentication Required": 511;
|
|
369
|
+
}[Code] : Code>;
|
|
370
|
+
defer: (fn: import("elysia/types").AfterResponseHandler<NoInfer<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, `/${string}`>, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>>, NoInfer<import("elysia/types").DefaultSingleton & {
|
|
371
|
+
derive: {};
|
|
372
|
+
}>>) => import("elysia/types").MaybePromise<void>;
|
|
373
|
+
readonly path: string;
|
|
374
|
+
route?: string | undefined;
|
|
375
|
+
rid?: string | undefined;
|
|
376
|
+
request: Request;
|
|
377
|
+
store: {};
|
|
378
|
+
}) => Promise<Response | VoiceTelephonyWebhookDecision<TResult>>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Elysia } from "elysia";
|
|
2
1
|
import type { VoiceAgentTool } from "./agent";
|
|
3
2
|
import { type VoiceToolRuntimeOptions } from "./toolRuntime";
|
|
4
3
|
import type { VoiceSessionRecord, VoiceTurnRecord } from "./types";
|
|
@@ -112,46 +111,10 @@ export declare const createVoiceToolContract: <TContext = unknown, TSession exte
|
|
|
112
111
|
};
|
|
113
112
|
export declare const createVoiceToolContractHTMLHandler: (options: VoiceToolContractHTMLHandlerOptions) => () => Promise<Response>;
|
|
114
113
|
export declare const createVoiceToolContractJSONHandler: (options: VoiceToolContractHandlerOptions) => () => Promise<VoiceToolContractSuiteReport>;
|
|
115
|
-
export declare const createVoiceToolContractRoutes: (options: VoiceToolContractRoutesOptions) =>
|
|
116
|
-
decorator: {};
|
|
117
|
-
store: {};
|
|
118
|
-
derive: {};
|
|
119
|
-
resolve: {};
|
|
120
|
-
}, {
|
|
114
|
+
export declare const createVoiceToolContractRoutes: (options: VoiceToolContractRoutesOptions) => import("elysia/types").AddRoute<"", "local", import("elysia/types").DefaultSingleton, {
|
|
121
115
|
typebox: {};
|
|
122
|
-
error:
|
|
123
|
-
}, {
|
|
124
|
-
schema: {};
|
|
125
|
-
standaloneSchema: {};
|
|
126
|
-
macro: {};
|
|
127
|
-
macroFn: {};
|
|
128
|
-
parser: {};
|
|
129
|
-
response: {};
|
|
130
|
-
}, {
|
|
131
|
-
[x: string]: {
|
|
132
|
-
get: {
|
|
133
|
-
body: unknown;
|
|
134
|
-
params: {};
|
|
135
|
-
query: unknown;
|
|
136
|
-
headers: unknown;
|
|
137
|
-
response: {
|
|
138
|
-
200: VoiceToolContractSuiteReport;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
}, {
|
|
143
|
-
derive: {};
|
|
144
|
-
resolve: {};
|
|
145
|
-
schema: {};
|
|
146
|
-
standaloneSchema: {};
|
|
147
|
-
response: {};
|
|
148
|
-
}, {
|
|
149
|
-
derive: {};
|
|
150
|
-
resolve: {};
|
|
151
|
-
schema: {};
|
|
152
|
-
standaloneSchema: {};
|
|
153
|
-
response: {};
|
|
154
|
-
}>;
|
|
116
|
+
error: [];
|
|
117
|
+
}, import("elysia/types").DefaultMetadata, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral, "get", string, import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, `/${string}`>, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, {}, () => Promise<VoiceToolContractSuiteReport>>;
|
|
155
118
|
export declare const createVoiceToolRuntimeContractDefaults: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TRouteResult = unknown>() => VoiceToolRuntimeOptions<TContext, TSession, TRouteResult>;
|
|
156
119
|
export declare const evaluateVoiceToolContractEvidence: (report: VoiceToolContractSuiteReport, input?: VoiceToolContractAssertionInput) => VoiceToolContractAssertionReport;
|
|
157
120
|
export declare const renderVoiceToolContractHTML: (report: VoiceToolContractSuiteReport, options?: {
|