@absolutejs/voice 0.0.22-beta.274 → 0.0.22-beta.276
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/angular/voice-live-ops.service.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6098 -5924
- package/dist/productionReadiness.d.ts +13 -0
- package/dist/telephony/security.d.ts +88 -1
- package/dist/vue/useVoiceLiveOps.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Elysia } from 'elysia';
|
|
2
2
|
import { type VoiceProviderFallbackRecoverySummary } from './sessionReplay';
|
|
3
3
|
import { type VoiceTelephonyCarrierMatrixInput } from './telephony/matrix';
|
|
4
|
+
import { type VoiceTelephonyWebhookSecurityOptions, type VoiceTelephonyWebhookSecurityReport } from './telephony/security';
|
|
4
5
|
import type { VoiceTraceEventStore } from './trace';
|
|
5
6
|
import type { VoiceTraceSinkDeliveryStore } from './trace';
|
|
6
7
|
import type { VoiceAgentSquadContractReport } from './agentSquadContract';
|
|
@@ -120,6 +121,7 @@ export type VoiceProductionReadinessReport = {
|
|
|
120
121
|
opsActions?: string;
|
|
121
122
|
opsRecovery?: string;
|
|
122
123
|
phoneAgentSmoke?: string;
|
|
124
|
+
telephonyWebhookSecurity?: string;
|
|
123
125
|
providerContracts?: string;
|
|
124
126
|
providerRoutingContracts?: string;
|
|
125
127
|
providerSlo?: string;
|
|
@@ -219,6 +221,13 @@ export type VoiceProductionReadinessReport = {
|
|
|
219
221
|
status: VoiceProductionReadinessStatus;
|
|
220
222
|
total: number;
|
|
221
223
|
};
|
|
224
|
+
telephonyWebhookSecurity?: {
|
|
225
|
+
enabled: number;
|
|
226
|
+
failed: number;
|
|
227
|
+
passed: number;
|
|
228
|
+
status: VoiceProductionReadinessStatus;
|
|
229
|
+
warned: number;
|
|
230
|
+
};
|
|
222
231
|
providerRoutingContracts?: {
|
|
223
232
|
failed: number;
|
|
224
233
|
passed: number;
|
|
@@ -406,6 +415,10 @@ export type VoiceProductionReadinessRoutesOptions = {
|
|
|
406
415
|
query: Record<string, unknown>;
|
|
407
416
|
request: Request;
|
|
408
417
|
}) => Promise<readonly VoicePhoneAgentProductionSmokeReport[]> | readonly VoicePhoneAgentProductionSmokeReport[]);
|
|
418
|
+
telephonyWebhookSecurity?: false | VoiceTelephonyWebhookSecurityReport | VoiceTelephonyWebhookSecurityOptions | ((input: {
|
|
419
|
+
query: Record<string, unknown>;
|
|
420
|
+
request: Request;
|
|
421
|
+
}) => Promise<VoiceTelephonyWebhookSecurityReport | VoiceTelephonyWebhookSecurityOptions> | VoiceTelephonyWebhookSecurityReport | VoiceTelephonyWebhookSecurityOptions);
|
|
409
422
|
providerRoutingContracts?: false | readonly VoiceProviderRoutingContractReport[] | ((input: {
|
|
410
423
|
query: Record<string, unknown>;
|
|
411
424
|
request: Request;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type VoiceTelephonyWebhookIdempotencyStore, type VoiceTelephonyWebhookVerificationResult } from '../telephonyOutcome';
|
|
1
|
+
import { type VoiceTelephonyWebhookIdempotencyStore, type VoiceTelephonyWebhookProvider, type VoiceTelephonyWebhookVerificationResult } from '../telephonyOutcome';
|
|
2
|
+
import { Elysia } from 'elysia';
|
|
2
3
|
import { type VoicePostgresClient } from '../postgresStore';
|
|
3
4
|
import { type VoiceRedisTelephonyWebhookIdempotencyClient } from '../queue';
|
|
4
5
|
import { type VoicePlivoWebhookNonceStore, type VoiceRedisPlivoWebhookNonceClient } from './plivo';
|
|
@@ -92,4 +93,90 @@ export type VoiceTelephonyWebhookSecurityPreset<TResult = unknown> = {
|
|
|
92
93
|
twilio: VoiceTelephonyWebhookSecurityPreset<TResult>['twilio']['verify'];
|
|
93
94
|
};
|
|
94
95
|
};
|
|
96
|
+
export type VoiceTelephonyWebhookSecurityProviderStatus = {
|
|
97
|
+
checks: {
|
|
98
|
+
idempotency?: boolean;
|
|
99
|
+
persistentStore: boolean;
|
|
100
|
+
replayProtection: boolean;
|
|
101
|
+
verification: boolean;
|
|
102
|
+
};
|
|
103
|
+
enabled: boolean;
|
|
104
|
+
issues: string[];
|
|
105
|
+
provider: VoiceTelephonyWebhookProvider;
|
|
106
|
+
status: 'fail' | 'pass' | 'warn';
|
|
107
|
+
store: VoiceTelephonyWebhookSecurityStorePreset['kind'] | 'memory';
|
|
108
|
+
};
|
|
109
|
+
export type VoiceTelephonyWebhookSecurityReport = {
|
|
110
|
+
generatedAt: number;
|
|
111
|
+
ok: boolean;
|
|
112
|
+
providers: VoiceTelephonyWebhookSecurityProviderStatus[];
|
|
113
|
+
status: 'fail' | 'pass' | 'warn';
|
|
114
|
+
summary: {
|
|
115
|
+
enabled: number;
|
|
116
|
+
failed: number;
|
|
117
|
+
passed: number;
|
|
118
|
+
warned: number;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
export type VoiceTelephonyWebhookSecurityAssertionInput = {
|
|
122
|
+
maxFailedProviders?: number;
|
|
123
|
+
minEnabledProviders?: number;
|
|
124
|
+
requirePersistentStores?: boolean;
|
|
125
|
+
requiredProviders?: VoiceTelephonyWebhookProvider[];
|
|
126
|
+
};
|
|
127
|
+
export type VoiceTelephonyWebhookSecurityAssertionReport = {
|
|
128
|
+
failedProviders: VoiceTelephonyWebhookProvider[];
|
|
129
|
+
issues: string[];
|
|
130
|
+
ok: boolean;
|
|
131
|
+
passingProviders: VoiceTelephonyWebhookProvider[];
|
|
132
|
+
status: VoiceTelephonyWebhookSecurityReport['status'];
|
|
133
|
+
};
|
|
134
|
+
export type VoiceTelephonyWebhookSecurityRoutesOptions<TResult = unknown> = {
|
|
135
|
+
name?: string;
|
|
136
|
+
options: VoiceTelephonyWebhookSecurityOptions<TResult>;
|
|
137
|
+
path?: string;
|
|
138
|
+
};
|
|
139
|
+
export declare const buildVoiceTelephonyWebhookSecurityReport: <TResult = unknown>(options?: VoiceTelephonyWebhookSecurityOptions<TResult>) => VoiceTelephonyWebhookSecurityReport;
|
|
140
|
+
export declare const evaluateVoiceTelephonyWebhookSecurityEvidence: (report: VoiceTelephonyWebhookSecurityReport, input?: VoiceTelephonyWebhookSecurityAssertionInput) => VoiceTelephonyWebhookSecurityAssertionReport;
|
|
141
|
+
export declare const assertVoiceTelephonyWebhookSecurityEvidence: (report: VoiceTelephonyWebhookSecurityReport, input?: VoiceTelephonyWebhookSecurityAssertionInput) => VoiceTelephonyWebhookSecurityAssertionReport;
|
|
142
|
+
export declare const createVoiceTelephonyWebhookSecurityRoutes: <TResult = unknown>(options: VoiceTelephonyWebhookSecurityRoutesOptions<TResult>) => Elysia<"", {
|
|
143
|
+
decorator: {};
|
|
144
|
+
store: {};
|
|
145
|
+
derive: {};
|
|
146
|
+
resolve: {};
|
|
147
|
+
}, {
|
|
148
|
+
typebox: {};
|
|
149
|
+
error: {};
|
|
150
|
+
}, {
|
|
151
|
+
schema: {};
|
|
152
|
+
standaloneSchema: {};
|
|
153
|
+
macro: {};
|
|
154
|
+
macroFn: {};
|
|
155
|
+
parser: {};
|
|
156
|
+
response: {};
|
|
157
|
+
}, {
|
|
158
|
+
[x: string]: {
|
|
159
|
+
get: {
|
|
160
|
+
body: unknown;
|
|
161
|
+
params: {};
|
|
162
|
+
query: unknown;
|
|
163
|
+
headers: unknown;
|
|
164
|
+
response: {
|
|
165
|
+
200: VoiceTelephonyWebhookSecurityReport;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
}, {
|
|
170
|
+
derive: {};
|
|
171
|
+
resolve: {};
|
|
172
|
+
schema: {};
|
|
173
|
+
standaloneSchema: {};
|
|
174
|
+
response: {};
|
|
175
|
+
}, {
|
|
176
|
+
derive: {};
|
|
177
|
+
resolve: {};
|
|
178
|
+
schema: {};
|
|
179
|
+
standaloneSchema: {};
|
|
180
|
+
response: {};
|
|
181
|
+
}>;
|
|
95
182
|
export declare const createVoiceTelephonyWebhookSecurityPreset: <TResult = unknown>(options?: VoiceTelephonyWebhookSecurityOptions<TResult>) => VoiceTelephonyWebhookSecurityPreset<TResult>;
|
|
@@ -4,6 +4,6 @@ export declare function useVoiceLiveOps(options?: VoiceLiveOpsClientOptions): {
|
|
|
4
4
|
isRunning: import("vue").Ref<boolean, boolean>;
|
|
5
5
|
lastResult: import("vue").ShallowRef<VoiceLiveOpsActionResult | undefined, VoiceLiveOpsActionResult | undefined>;
|
|
6
6
|
run: (input: import("..").VoiceLiveOpsActionInput) => Promise<VoiceLiveOpsActionResult | undefined>;
|
|
7
|
-
runningAction: import("vue").Ref<"escalate" | "assign" | "create-task" | "force-handoff" | "inject-instruction" | "
|
|
7
|
+
runningAction: import("vue").Ref<"escalate" | "operator-takeover" | "assign" | "create-task" | "force-handoff" | "inject-instruction" | "pause-assistant" | "resume-assistant" | "tag" | undefined, "escalate" | "operator-takeover" | "assign" | "create-task" | "force-handoff" | "inject-instruction" | "pause-assistant" | "resume-assistant" | "tag" | undefined>;
|
|
8
8
|
updatedAt: import("vue").Ref<number | undefined, number | undefined>;
|
|
9
9
|
};
|