@absolutejs/voice 0.0.22-beta.672 → 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.
Files changed (73) hide show
  1. package/dist/core/assistantHealth.d.ts +3 -40
  2. package/dist/core/auditDeliveryRoutes.d.ts +5 -40
  3. package/dist/core/auditRoutes.d.ts +3 -27
  4. package/dist/core/bargeInRoutes.d.ts +3 -27
  5. package/dist/core/browserCallProfiles.d.ts +3 -27
  6. package/dist/core/browserMediaRoutes.d.ts +3 -27
  7. package/dist/core/callDebugger.d.ts +3 -27
  8. package/dist/core/campaign.d.ts +166 -143
  9. package/dist/core/competitiveCoverage.d.ts +3 -40
  10. package/dist/core/dataControl.d.ts +3 -27
  11. package/dist/core/deliveryRuntime.d.ts +3 -40
  12. package/dist/core/deliverySinkRoutes.d.ts +3 -40
  13. package/dist/core/demoReadyRoutes.d.ts +3 -27
  14. package/dist/core/diagnosticsRoutes.d.ts +3 -27
  15. package/dist/core/evalRoutes.d.ts +3 -27
  16. package/dist/core/guardrails.d.ts +3 -27
  17. package/dist/core/handoffHealth.d.ts +5 -40
  18. package/dist/core/htmxDashboardRoutes.d.ts +309 -195
  19. package/dist/core/incidentBundle.d.ts +3 -27
  20. package/dist/core/incidentTimeline.d.ts +3 -40
  21. package/dist/core/liveLatency.d.ts +3 -40
  22. package/dist/core/liveOps.d.ts +154 -44
  23. package/dist/core/mediaPipelineRoutes.d.ts +3 -40
  24. package/dist/core/monitor.d.ts +5 -19
  25. package/dist/core/observabilityExport.d.ts +6 -54
  26. package/dist/core/operationalStatus.d.ts +3 -40
  27. package/dist/core/operationsRecord.d.ts +3 -27
  28. package/dist/core/opsActionAuditRoutes.d.ts +160 -51
  29. package/dist/core/opsConsoleRoutes.d.ts +3 -27
  30. package/dist/core/opsRecovery.d.ts +3 -40
  31. package/dist/core/opsStatusRoutes.d.ts +3 -27
  32. package/dist/core/opsWebhook.d.ts +158 -49
  33. package/dist/core/outcomeContract.d.ts +3 -40
  34. package/dist/core/phoneAgentProductionSmoke.d.ts +6 -40
  35. package/dist/core/platformCoverage.d.ts +3 -27
  36. package/dist/core/plugin.d.ts +12 -40
  37. package/dist/core/postCallAnalysis.d.ts +3 -27
  38. package/dist/core/productionReadiness.d.ts +3 -27
  39. package/dist/core/profileSwitchRecommendation.d.ts +299 -116
  40. package/dist/core/proofPack.d.ts +3 -27
  41. package/dist/core/proofTrends.d.ts +15 -135
  42. package/dist/core/providerCapabilities.d.ts +3 -40
  43. package/dist/core/providerDecisionTraces.d.ts +3 -40
  44. package/dist/core/providerHealth.d.ts +3 -40
  45. package/dist/core/providerOrchestration.d.ts +3 -40
  46. package/dist/core/providerSlo.d.ts +3 -27
  47. package/dist/core/providerStackRecommendations.d.ts +3 -27
  48. package/dist/core/qualityRoutes.d.ts +3 -27
  49. package/dist/core/realtimeChannel.d.ts +3 -40
  50. package/dist/core/realtimeProviderContracts.d.ts +3 -40
  51. package/dist/core/reconnectContract.d.ts +153 -79
  52. package/dist/core/resilienceRoutes.d.ts +3 -40
  53. package/dist/core/routeAuth.d.ts +3 -29
  54. package/dist/core/sessionObservability.d.ts +3 -27
  55. package/dist/core/sessionReplay.d.ts +10 -79
  56. package/dist/core/sessionSnapshot.d.ts +148 -39
  57. package/dist/core/simulationSuite.d.ts +3 -40
  58. package/dist/core/sloCalibration.d.ts +6 -54
  59. package/dist/core/telephonyMediaRoutes.d.ts +3 -27
  60. package/dist/core/telephonyOutcome.d.ts +148 -39
  61. package/dist/core/toolContract.d.ts +3 -40
  62. package/dist/core/traceDeliveryRoutes.d.ts +5 -40
  63. package/dist/core/traceTimeline.d.ts +3 -27
  64. package/dist/core/turnLatency.d.ts +3 -40
  65. package/dist/core/turnQuality.d.ts +3 -40
  66. package/dist/core/voiceMonitoring.d.ts +164 -115
  67. package/dist/index.js +58 -26
  68. package/dist/telephony/matrix.d.ts +148 -39
  69. package/dist/telephony/plivo.d.ts +10 -33
  70. package/dist/telephony/security.d.ts +3 -40
  71. package/dist/telephony/telnyx.d.ts +10 -33
  72. package/dist/testing/index.js +14 -10
  73. package/package.json +7 -81
@@ -1,4 +1,3 @@
1
- import { Elysia } from "elysia";
2
1
  import { type StoredVoiceAuditEvent, type VoiceAuditEventStore } from "./audit";
3
2
  import { type VoiceTraceEventStore } from "./trace";
4
3
  export type VoiceOpsActionAuditRecord = {
@@ -33,58 +32,168 @@ export type VoiceOpsActionHistoryReport = {
33
32
  passed: number;
34
33
  total: number;
35
34
  };
36
- export declare const createVoiceOpsActionAuditRoutes: (options: VoiceOpsActionAuditRoutesOptions) => Elysia<"", {
37
- decorator: {};
38
- store: {};
39
- derive: {};
40
- resolve: {};
41
- }, {
35
+ export declare const createVoiceOpsActionAuditRoutes: (options: VoiceOpsActionAuditRoutesOptions) => import("elysia/types").AddRoute<"", "local", import("elysia/types").DefaultSingleton, {
42
36
  typebox: {};
43
- error: {};
44
- }, {
45
- schema: {};
46
- standaloneSchema: {};
47
- macro: {};
48
- macroFn: {};
49
- parser: {};
50
- response: {};
51
- }, {
52
- [x: string]: {
53
- post: {
54
- body: unknown;
55
- params: {};
56
- query: unknown;
57
- headers: unknown;
58
- response: {
59
- 200: {
60
- audit: StoredVoiceAuditEvent<Record<string, unknown>> | (Omit<import("./audit").VoiceAuditEvent<Record<string, unknown>>, "at" | "id"> & {
61
- at: number;
62
- id: string;
63
- }) | undefined;
64
- ok: boolean;
65
- trace: (import("./trace").VoiceTraceEvent<Record<string, unknown>> & {
66
- id: string;
67
- }) | undefined;
68
- } | {
69
- error: string;
70
- ok: boolean;
71
- };
72
- };
73
- };
37
+ error: [];
38
+ }, import("elysia/types").DefaultMetadata, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral, "post", string, import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, `/${string}`>, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, {}, ({ body, request, set }: {
39
+ body: unknown;
40
+ query: Record<string, string | undefined>;
41
+ params: {};
42
+ headers: Record<string, string | undefined>;
43
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
44
+ server: import("elysia").Server | null;
45
+ redirect: import("elysia").redirect;
46
+ set: {
47
+ headers: import("elysia").HTTPHeaders;
48
+ status?: number | keyof import("elysia").StatusMap;
49
+ cookie?: Record<string, import("elysia").BaseCookie>;
74
50
  };
75
- }, {
76
- derive: {};
77
- resolve: {};
78
- schema: {};
79
- standaloneSchema: {};
80
- response: {};
81
- }, {
82
- derive: {};
83
- resolve: {};
84
- schema: {};
85
- standaloneSchema: {};
86
- response: {};
87
- }>;
51
+ 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 ? {
52
+ readonly 100: "Continue";
53
+ readonly 101: "Switching Protocols";
54
+ readonly 102: "Processing";
55
+ readonly 103: "Early Hints";
56
+ readonly 200: "OK";
57
+ readonly 201: "Created";
58
+ readonly 202: "Accepted";
59
+ readonly 203: "Non-Authoritative Information";
60
+ readonly 204: "No Content";
61
+ readonly 205: "Reset Content";
62
+ readonly 206: "Partial Content";
63
+ readonly 207: "Multi-Status";
64
+ readonly 208: "Already Reported";
65
+ readonly 300: "Multiple Choices";
66
+ readonly 301: "Moved Permanently";
67
+ readonly 302: "Found";
68
+ readonly 303: "See Other";
69
+ readonly 304: "Not Modified";
70
+ readonly 307: "Temporary Redirect";
71
+ readonly 308: "Permanent Redirect";
72
+ readonly 400: "Bad Request";
73
+ readonly 401: "Unauthorized";
74
+ readonly 402: "Payment Required";
75
+ readonly 403: "Forbidden";
76
+ readonly 404: "Not Found";
77
+ readonly 405: "Method Not Allowed";
78
+ readonly 406: "Not Acceptable";
79
+ readonly 407: "Proxy Authentication Required";
80
+ readonly 408: "Request Timeout";
81
+ readonly 409: "Conflict";
82
+ readonly 410: "Gone";
83
+ readonly 411: "Length Required";
84
+ readonly 412: "Precondition Failed";
85
+ readonly 413: "Payload Too Large";
86
+ readonly 414: "URI Too Long";
87
+ readonly 415: "Unsupported Media Type";
88
+ readonly 416: "Range Not Satisfiable";
89
+ readonly 417: "Expectation Failed";
90
+ readonly 418: "I'm a teapot";
91
+ readonly 420: "Enhance Your Calm";
92
+ readonly 421: "Misdirected Request";
93
+ readonly 422: "Unprocessable Content";
94
+ readonly 423: "Locked";
95
+ readonly 424: "Failed Dependency";
96
+ readonly 425: "Too Early";
97
+ readonly 426: "Upgrade Required";
98
+ readonly 428: "Precondition Required";
99
+ readonly 429: "Too Many Requests";
100
+ readonly 431: "Request Header Fields Too Large";
101
+ readonly 451: "Unavailable For Legal Reasons";
102
+ readonly 500: "Internal Server Error";
103
+ readonly 501: "Not Implemented";
104
+ readonly 502: "Bad Gateway";
105
+ readonly 503: "Service Unavailable";
106
+ readonly 504: "Gateway Timeout";
107
+ readonly 505: "HTTP Version Not Supported";
108
+ readonly 506: "Variant Also Negotiates";
109
+ readonly 507: "Insufficient Storage";
110
+ readonly 508: "Loop Detected";
111
+ readonly 510: "Not Extended";
112
+ readonly 511: "Network Authentication Required";
113
+ }[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" ? {
114
+ readonly Continue: 100;
115
+ readonly "Switching Protocols": 101;
116
+ readonly Processing: 102;
117
+ readonly "Early Hints": 103;
118
+ readonly OK: 200;
119
+ readonly Created: 201;
120
+ readonly Accepted: 202;
121
+ readonly "Non-Authoritative Information": 203;
122
+ readonly "No Content": 204;
123
+ readonly "Reset Content": 205;
124
+ readonly "Partial Content": 206;
125
+ readonly "Multi-Status": 207;
126
+ readonly "Already Reported": 208;
127
+ readonly "Multiple Choices": 300;
128
+ readonly "Moved Permanently": 301;
129
+ readonly Found: 302;
130
+ readonly "See Other": 303;
131
+ readonly "Not Modified": 304;
132
+ readonly "Temporary Redirect": 307;
133
+ readonly "Permanent Redirect": 308;
134
+ readonly "Bad Request": 400;
135
+ readonly Unauthorized: 401;
136
+ readonly "Payment Required": 402;
137
+ readonly Forbidden: 403;
138
+ readonly "Not Found": 404;
139
+ readonly "Method Not Allowed": 405;
140
+ readonly "Not Acceptable": 406;
141
+ readonly "Proxy Authentication Required": 407;
142
+ readonly "Request Timeout": 408;
143
+ readonly Conflict: 409;
144
+ readonly Gone: 410;
145
+ readonly "Length Required": 411;
146
+ readonly "Precondition Failed": 412;
147
+ readonly "Payload Too Large": 413;
148
+ readonly "URI Too Long": 414;
149
+ readonly "Unsupported Media Type": 415;
150
+ readonly "Range Not Satisfiable": 416;
151
+ readonly "Expectation Failed": 417;
152
+ readonly "I'm a teapot": 418;
153
+ readonly "Enhance Your Calm": 420;
154
+ readonly "Misdirected Request": 421;
155
+ readonly "Unprocessable Content": 422;
156
+ readonly Locked: 423;
157
+ readonly "Failed Dependency": 424;
158
+ readonly "Too Early": 425;
159
+ readonly "Upgrade Required": 426;
160
+ readonly "Precondition Required": 428;
161
+ readonly "Too Many Requests": 429;
162
+ readonly "Request Header Fields Too Large": 431;
163
+ readonly "Unavailable For Legal Reasons": 451;
164
+ readonly "Internal Server Error": 500;
165
+ readonly "Not Implemented": 501;
166
+ readonly "Bad Gateway": 502;
167
+ readonly "Service Unavailable": 503;
168
+ readonly "Gateway Timeout": 504;
169
+ readonly "HTTP Version Not Supported": 505;
170
+ readonly "Variant Also Negotiates": 506;
171
+ readonly "Insufficient Storage": 507;
172
+ readonly "Loop Detected": 508;
173
+ readonly "Not Extended": 510;
174
+ readonly "Network Authentication Required": 511;
175
+ }[Code] : Code>;
176
+ defer: (fn: import("elysia/types").AfterResponseHandler<NoInfer<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, `/${string}`>, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>>, NoInfer<import("elysia/types").DefaultSingleton & {
177
+ derive: {};
178
+ }>>) => import("elysia/types").MaybePromise<void>;
179
+ readonly path: string;
180
+ route?: string | undefined;
181
+ rid?: string | undefined;
182
+ request: Request;
183
+ store: {};
184
+ }) => Promise<{
185
+ audit: StoredVoiceAuditEvent<Record<string, unknown>> | (Omit<import("./audit").VoiceAuditEvent<Record<string, unknown>>, "at" | "id"> & {
186
+ at: number;
187
+ id: string;
188
+ }) | undefined;
189
+ ok: boolean;
190
+ trace: (import("./trace").VoiceTraceEvent<Record<string, unknown>> & {
191
+ id: string;
192
+ }) | undefined;
193
+ } | {
194
+ error: string;
195
+ ok: boolean;
196
+ }>>;
88
197
  export declare const recordVoiceOpsActionAudit: (record: VoiceOpsActionAuditRecord, options: Pick<VoiceOpsActionAuditRoutesOptions, "audit" | "trace">) => Promise<{
89
198
  audit: StoredVoiceAuditEvent<Record<string, unknown>> | (Omit<import("./audit").VoiceAuditEvent<Record<string, unknown>>, "at" | "id"> & {
90
199
  at: number;
@@ -47,34 +47,10 @@ export type VoiceOpsConsoleRoutesOptions = {
47
47
  ttsProviders?: readonly string[];
48
48
  };
49
49
  export declare const buildVoiceOpsConsoleReport: (options: VoiceOpsConsoleRoutesOptions) => Promise<VoiceOpsConsoleReport>;
50
- export declare const createVoiceOpsConsoleRoutes: (options: VoiceOpsConsoleRoutesOptions) => Elysia<"", {
51
- decorator: {};
52
- store: {};
53
- derive: {};
54
- resolve: {};
55
- }, {
50
+ export declare const createVoiceOpsConsoleRoutes: (options: VoiceOpsConsoleRoutesOptions) => Elysia<"", "local", import("elysia/types").DefaultSingleton, {
56
51
  typebox: {};
57
- error: {};
58
- }, {
59
- schema: {};
60
- standaloneSchema: {};
61
- macro: {};
62
- macroFn: {};
63
- parser: {};
64
- response: {};
65
- }, {}, {
66
- derive: {};
67
- resolve: {};
68
- schema: {};
69
- standaloneSchema: {};
70
- response: {};
71
- }, {
72
- derive: {};
73
- resolve: {};
74
- schema: {};
75
- standaloneSchema: {};
76
- response: {};
77
- }>;
52
+ error: [];
53
+ }, import("elysia/types").DefaultMetadata, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral>;
78
54
  export declare const renderVoiceOpsConsoleHTML: (report: VoiceOpsConsoleReport, options?: {
79
55
  title?: string;
80
56
  }) => string;
@@ -1,4 +1,3 @@
1
- import { Elysia } from "elysia";
2
1
  import { type VoiceAuditSinkDeliveryQueueSummary, type VoiceAuditSinkDeliveryStore } from "./auditSinks";
3
2
  import { type VoiceLatencySLOGateOptions, type VoiceLatencySLOGateReport } from "./latencySlo";
4
3
  import { type VoiceHandoffDeliveryQueueSummary, type VoiceTraceSinkDeliveryQueueSummary } from "./queue";
@@ -92,46 +91,10 @@ export declare const buildVoiceOpsRecoveryReport: <TProvider extends string = st
92
91
  export declare const renderVoiceOpsRecoveryMarkdown: (report: VoiceOpsRecoveryReport, options?: {
93
92
  title?: string;
94
93
  }) => string;
95
- export declare const createVoiceOpsRecoveryRoutes: <TProvider extends string = string>(options?: VoiceOpsRecoveryRoutesOptions<TProvider>) => Elysia<"", {
96
- decorator: {};
97
- store: {};
98
- derive: {};
99
- resolve: {};
100
- }, {
94
+ export declare const createVoiceOpsRecoveryRoutes: <TProvider extends string = string>(options?: VoiceOpsRecoveryRoutesOptions<TProvider>) => import("elysia/types").AddRoute<"", "local", import("elysia/types").DefaultSingleton, {
101
95
  typebox: {};
102
- error: {};
103
- }, {
104
- schema: {};
105
- standaloneSchema: {};
106
- macro: {};
107
- macroFn: {};
108
- parser: {};
109
- response: {};
110
- }, {
111
- [x: string]: {
112
- get: {
113
- body: unknown;
114
- params: {};
115
- query: unknown;
116
- headers: unknown;
117
- response: {
118
- 200: VoiceOpsRecoveryReport<TProvider>;
119
- };
120
- };
121
- };
122
- }, {
123
- derive: {};
124
- resolve: {};
125
- schema: {};
126
- standaloneSchema: {};
127
- response: {};
128
- }, {
129
- derive: {};
130
- resolve: {};
131
- schema: {};
132
- standaloneSchema: {};
133
- response: {};
134
- }>;
96
+ error: [];
97
+ }, 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<VoiceOpsRecoveryReport<TProvider>>>;
135
98
  export declare const renderVoiceOpsRecoveryHTML: (report: VoiceOpsRecoveryReport, options?: {
136
99
  title?: string;
137
100
  }) => string;
@@ -1,33 +1,9 @@
1
1
  import { Elysia } from "elysia";
2
2
  import { type VoiceOpsStatusReport, type VoiceOpsStatusRoutesOptions } from "./opsStatus";
3
- export declare const createVoiceOpsStatusRoutes: (options: VoiceOpsStatusRoutesOptions) => Elysia<"", {
4
- decorator: {};
5
- store: {};
6
- derive: {};
7
- resolve: {};
8
- }, {
3
+ export declare const createVoiceOpsStatusRoutes: (options: VoiceOpsStatusRoutesOptions) => Elysia<"", "local", import("elysia/types").DefaultSingleton, {
9
4
  typebox: {};
10
- error: {};
11
- }, {
12
- schema: {};
13
- standaloneSchema: {};
14
- macro: {};
15
- macroFn: {};
16
- parser: {};
17
- response: {};
18
- }, {}, {
19
- derive: {};
20
- resolve: {};
21
- schema: {};
22
- standaloneSchema: {};
23
- response: {};
24
- }, {
25
- derive: {};
26
- resolve: {};
27
- schema: {};
28
- standaloneSchema: {};
29
- response: {};
30
- }>;
5
+ error: [];
6
+ }, import("elysia/types").DefaultMetadata, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral>;
31
7
  export declare const renderVoiceOpsStatusHTML: (report: VoiceOpsStatusReport, options?: {
32
8
  title?: string;
33
9
  }) => string;
@@ -1,4 +1,3 @@
1
- import { Elysia } from "elysia";
2
1
  import type { StoredVoiceIntegrationEvent, VoiceIntegrationEventType } from "./ops";
3
2
  import type { VoiceIntegrationHTTPSinkOptions, VoiceIntegrationSink } from "./opsSinks";
4
3
  type MaybePromise<T> = T | Promise<T>;
@@ -64,56 +63,166 @@ export declare const createVoiceOpsWebhookEnvelope: (input: {
64
63
  reviewHref?: VoiceOpsWebhookLinkResolver;
65
64
  taskHref?: VoiceOpsWebhookLinkResolver;
66
65
  }) => Promise<VoiceOpsWebhookEnvelope>;
67
- export declare const createVoiceOpsWebhookReceiverRoutes: (options?: VoiceOpsWebhookReceiverRoutesOptions) => Elysia<"", {
68
- decorator: {};
69
- store: {};
70
- derive: {};
71
- resolve: {};
72
- }, {
66
+ export declare const createVoiceOpsWebhookReceiverRoutes: (options?: VoiceOpsWebhookReceiverRoutesOptions) => import("elysia/types").AddRoute<"", "local", import("elysia/types").DefaultSingleton, {
73
67
  typebox: {};
74
- error: {};
75
- }, {
76
- schema: {};
77
- standaloneSchema: {};
78
- macro: {};
79
- macroFn: {};
80
- parser: {};
81
- response: {};
82
- }, {
83
- [x: string]: {
84
- post: {
85
- body: unknown;
86
- params: {};
87
- query: unknown;
88
- headers: unknown;
89
- response: {
90
- 200: {
91
- ok: boolean;
92
- reason: "invalid-signature" | "missing-secret" | "missing-signature" | "missing-timestamp" | "stale-timestamp" | "unsupported-algorithm";
93
- eventId?: undefined;
94
- type?: undefined;
95
- } | {
96
- eventId: string;
97
- ok: boolean;
98
- type: VoiceIntegrationEventType;
99
- reason?: undefined;
100
- };
101
- };
102
- };
68
+ error: [];
69
+ }, 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<{}, {}, {}>>, {}, ({ body, request, set }: {
70
+ body: unknown;
71
+ query: Record<string, string | undefined>;
72
+ params: {};
73
+ headers: Record<string, string | undefined>;
74
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
75
+ server: import("elysia").Server | null;
76
+ redirect: import("elysia").redirect;
77
+ set: {
78
+ headers: import("elysia").HTTPHeaders;
79
+ status?: number | keyof import("elysia").StatusMap;
80
+ cookie?: Record<string, import("elysia").BaseCookie>;
103
81
  };
104
- }, {
105
- derive: {};
106
- resolve: {};
107
- schema: {};
108
- standaloneSchema: {};
109
- response: {};
110
- }, {
111
- derive: {};
112
- resolve: {};
113
- schema: {};
114
- standaloneSchema: {};
115
- response: {};
116
- }>;
82
+ 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 ? {
83
+ readonly 100: "Continue";
84
+ readonly 101: "Switching Protocols";
85
+ readonly 102: "Processing";
86
+ readonly 103: "Early Hints";
87
+ readonly 200: "OK";
88
+ readonly 201: "Created";
89
+ readonly 202: "Accepted";
90
+ readonly 203: "Non-Authoritative Information";
91
+ readonly 204: "No Content";
92
+ readonly 205: "Reset Content";
93
+ readonly 206: "Partial Content";
94
+ readonly 207: "Multi-Status";
95
+ readonly 208: "Already Reported";
96
+ readonly 300: "Multiple Choices";
97
+ readonly 301: "Moved Permanently";
98
+ readonly 302: "Found";
99
+ readonly 303: "See Other";
100
+ readonly 304: "Not Modified";
101
+ readonly 307: "Temporary Redirect";
102
+ readonly 308: "Permanent Redirect";
103
+ readonly 400: "Bad Request";
104
+ readonly 401: "Unauthorized";
105
+ readonly 402: "Payment Required";
106
+ readonly 403: "Forbidden";
107
+ readonly 404: "Not Found";
108
+ readonly 405: "Method Not Allowed";
109
+ readonly 406: "Not Acceptable";
110
+ readonly 407: "Proxy Authentication Required";
111
+ readonly 408: "Request Timeout";
112
+ readonly 409: "Conflict";
113
+ readonly 410: "Gone";
114
+ readonly 411: "Length Required";
115
+ readonly 412: "Precondition Failed";
116
+ readonly 413: "Payload Too Large";
117
+ readonly 414: "URI Too Long";
118
+ readonly 415: "Unsupported Media Type";
119
+ readonly 416: "Range Not Satisfiable";
120
+ readonly 417: "Expectation Failed";
121
+ readonly 418: "I'm a teapot";
122
+ readonly 420: "Enhance Your Calm";
123
+ readonly 421: "Misdirected Request";
124
+ readonly 422: "Unprocessable Content";
125
+ readonly 423: "Locked";
126
+ readonly 424: "Failed Dependency";
127
+ readonly 425: "Too Early";
128
+ readonly 426: "Upgrade Required";
129
+ readonly 428: "Precondition Required";
130
+ readonly 429: "Too Many Requests";
131
+ readonly 431: "Request Header Fields Too Large";
132
+ readonly 451: "Unavailable For Legal Reasons";
133
+ readonly 500: "Internal Server Error";
134
+ readonly 501: "Not Implemented";
135
+ readonly 502: "Bad Gateway";
136
+ readonly 503: "Service Unavailable";
137
+ readonly 504: "Gateway Timeout";
138
+ readonly 505: "HTTP Version Not Supported";
139
+ readonly 506: "Variant Also Negotiates";
140
+ readonly 507: "Insufficient Storage";
141
+ readonly 508: "Loop Detected";
142
+ readonly 510: "Not Extended";
143
+ readonly 511: "Network Authentication Required";
144
+ }[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" ? {
145
+ readonly Continue: 100;
146
+ readonly "Switching Protocols": 101;
147
+ readonly Processing: 102;
148
+ readonly "Early Hints": 103;
149
+ readonly OK: 200;
150
+ readonly Created: 201;
151
+ readonly Accepted: 202;
152
+ readonly "Non-Authoritative Information": 203;
153
+ readonly "No Content": 204;
154
+ readonly "Reset Content": 205;
155
+ readonly "Partial Content": 206;
156
+ readonly "Multi-Status": 207;
157
+ readonly "Already Reported": 208;
158
+ readonly "Multiple Choices": 300;
159
+ readonly "Moved Permanently": 301;
160
+ readonly Found: 302;
161
+ readonly "See Other": 303;
162
+ readonly "Not Modified": 304;
163
+ readonly "Temporary Redirect": 307;
164
+ readonly "Permanent Redirect": 308;
165
+ readonly "Bad Request": 400;
166
+ readonly Unauthorized: 401;
167
+ readonly "Payment Required": 402;
168
+ readonly Forbidden: 403;
169
+ readonly "Not Found": 404;
170
+ readonly "Method Not Allowed": 405;
171
+ readonly "Not Acceptable": 406;
172
+ readonly "Proxy Authentication Required": 407;
173
+ readonly "Request Timeout": 408;
174
+ readonly Conflict: 409;
175
+ readonly Gone: 410;
176
+ readonly "Length Required": 411;
177
+ readonly "Precondition Failed": 412;
178
+ readonly "Payload Too Large": 413;
179
+ readonly "URI Too Long": 414;
180
+ readonly "Unsupported Media Type": 415;
181
+ readonly "Range Not Satisfiable": 416;
182
+ readonly "Expectation Failed": 417;
183
+ readonly "I'm a teapot": 418;
184
+ readonly "Enhance Your Calm": 420;
185
+ readonly "Misdirected Request": 421;
186
+ readonly "Unprocessable Content": 422;
187
+ readonly Locked: 423;
188
+ readonly "Failed Dependency": 424;
189
+ readonly "Too Early": 425;
190
+ readonly "Upgrade Required": 426;
191
+ readonly "Precondition Required": 428;
192
+ readonly "Too Many Requests": 429;
193
+ readonly "Request Header Fields Too Large": 431;
194
+ readonly "Unavailable For Legal Reasons": 451;
195
+ readonly "Internal Server Error": 500;
196
+ readonly "Not Implemented": 501;
197
+ readonly "Bad Gateway": 502;
198
+ readonly "Service Unavailable": 503;
199
+ readonly "Gateway Timeout": 504;
200
+ readonly "HTTP Version Not Supported": 505;
201
+ readonly "Variant Also Negotiates": 506;
202
+ readonly "Insufficient Storage": 507;
203
+ readonly "Loop Detected": 508;
204
+ readonly "Not Extended": 510;
205
+ readonly "Network Authentication Required": 511;
206
+ }[Code] : Code>;
207
+ 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 & {
208
+ derive: {};
209
+ }>>) => import("elysia/types").MaybePromise<void>;
210
+ readonly path: string;
211
+ route?: string | undefined;
212
+ rid?: string | undefined;
213
+ request: Request;
214
+ store: {};
215
+ }) => Promise<{
216
+ ok: boolean;
217
+ reason: "invalid-signature" | "missing-secret" | "missing-signature" | "missing-timestamp" | "stale-timestamp" | "unsupported-algorithm";
218
+ eventId?: undefined;
219
+ type?: undefined;
220
+ } | {
221
+ eventId: string;
222
+ ok: boolean;
223
+ type: VoiceIntegrationEventType;
224
+ reason?: undefined;
225
+ }>>;
117
226
  export declare const createVoiceOpsWebhookSink: (options: VoiceOpsWebhookSinkOptions) => VoiceIntegrationSink;
118
227
  export declare const verifyVoiceOpsWebhookSignature: (input: {
119
228
  body: string;
@@ -1,4 +1,3 @@
1
- import { Elysia } from "elysia";
2
1
  import type { StoredVoiceHandoffDelivery, VoiceCallDisposition, VoiceHandoffAction, VoiceHandoffDeliveryStore, VoiceSessionRecord, VoiceSessionStore } from "./types";
3
2
  import type { StoredVoiceIntegrationEvent, StoredVoiceOpsTask, VoiceIntegrationEventType } from "./ops";
4
3
  import type { StoredVoiceCallReviewArtifact } from "../testing/review";
@@ -98,46 +97,10 @@ export type VoiceOutcomeContractRoutesOptions<TSession extends VoiceSessionRecor
98
97
  export declare const assertVoiceOutcomeContractEvidence: (report: VoiceOutcomeContractSuiteReport, input?: VoiceOutcomeContractAssertionInput) => VoiceOutcomeContractAssertionReport;
99
98
  export declare const createVoiceOutcomeContractHTMLHandler: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceOutcomeContractHTMLHandlerOptions<TSession>) => () => Promise<Response>;
100
99
  export declare const createVoiceOutcomeContractJSONHandler: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceOutcomeContractOptions<TSession>) => () => Promise<VoiceOutcomeContractSuiteReport>;
101
- export declare const createVoiceOutcomeContractRoutes: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceOutcomeContractRoutesOptions<TSession>) => Elysia<"", {
102
- decorator: {};
103
- store: {};
104
- derive: {};
105
- resolve: {};
106
- }, {
100
+ export declare const createVoiceOutcomeContractRoutes: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceOutcomeContractRoutesOptions<TSession>) => import("elysia/types").AddRoute<"", "local", import("elysia/types").DefaultSingleton, {
107
101
  typebox: {};
108
- error: {};
109
- }, {
110
- schema: {};
111
- standaloneSchema: {};
112
- macro: {};
113
- macroFn: {};
114
- parser: {};
115
- response: {};
116
- }, {
117
- [x: string]: {
118
- get: {
119
- body: unknown;
120
- params: {};
121
- query: unknown;
122
- headers: unknown;
123
- response: {
124
- 200: VoiceOutcomeContractSuiteReport;
125
- };
126
- };
127
- };
128
- }, {
129
- derive: {};
130
- resolve: {};
131
- schema: {};
132
- standaloneSchema: {};
133
- response: {};
134
- }, {
135
- derive: {};
136
- resolve: {};
137
- schema: {};
138
- standaloneSchema: {};
139
- response: {};
140
- }>;
102
+ error: [];
103
+ }, 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<VoiceOutcomeContractSuiteReport>>;
141
104
  export declare const evaluateVoiceOutcomeContractEvidence: (report: VoiceOutcomeContractSuiteReport, input?: VoiceOutcomeContractAssertionInput) => VoiceOutcomeContractAssertionReport;
142
105
  export declare const renderVoiceOutcomeContractHTML: (report: VoiceOutcomeContractSuiteReport, options?: {
143
106
  title?: string;