@absolutejs/voice 0.0.22-beta.537 → 0.0.22-beta.539

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 (48) hide show
  1. package/dist/angular/index.js +118 -0
  2. package/dist/client/callDebugger.d.ts +2 -0
  3. package/dist/client/campaignDialerProof.d.ts +2 -0
  4. package/dist/client/deliveryRuntime.d.ts +2 -0
  5. package/dist/client/index.d.ts +2 -0
  6. package/dist/client/index.js +258 -36
  7. package/dist/client/opsActionCenter.d.ts +2 -0
  8. package/dist/client/opsActionHistory.d.ts +2 -0
  9. package/dist/client/opsStatus.d.ts +2 -0
  10. package/dist/client/platformCoverage.d.ts +2 -0
  11. package/dist/client/profileComparison.d.ts +2 -0
  12. package/dist/client/profileSwitchRecommendation.d.ts +2 -0
  13. package/dist/client/proofTrends.d.ts +2 -0
  14. package/dist/client/providerCapabilities.d.ts +2 -0
  15. package/dist/client/providerContracts.d.ts +2 -0
  16. package/dist/client/providerStatus.d.ts +2 -0
  17. package/dist/client/reactiveSource.d.ts +8 -0
  18. package/dist/client/readinessFailures.d.ts +2 -0
  19. package/dist/client/reconnectProfileEvidence.d.ts +2 -0
  20. package/dist/client/routingStatus.d.ts +2 -0
  21. package/dist/client/sessionObservability.d.ts +2 -0
  22. package/dist/client/sessionSnapshot.d.ts +2 -0
  23. package/dist/client/traceTimeline.d.ts +2 -0
  24. package/dist/client/turnLatency.d.ts +2 -0
  25. package/dist/client/turnQuality.d.ts +2 -0
  26. package/dist/client/workflowStatus.d.ts +2 -0
  27. package/dist/drizzle/assistantMemory.d.ts +17 -0
  28. package/dist/drizzle/index.d.ts +17 -0
  29. package/dist/drizzle/index.js +8 -13
  30. package/dist/react/index.js +252 -36
  31. package/dist/svelte/index.js +202 -24
  32. package/dist/vue/VoiceCallDebuggerLaunch.d.ts +4 -0
  33. package/dist/vue/VoiceDeliveryRuntime.d.ts +4 -0
  34. package/dist/vue/VoiceOpsStatus.d.ts +4 -0
  35. package/dist/vue/VoicePlatformCoverage.d.ts +4 -0
  36. package/dist/vue/VoiceProofTrends.d.ts +4 -0
  37. package/dist/vue/VoiceProviderCapabilities.d.ts +4 -0
  38. package/dist/vue/VoiceProviderContracts.d.ts +4 -0
  39. package/dist/vue/VoiceProviderStatus.d.ts +4 -0
  40. package/dist/vue/VoiceReadinessFailures.d.ts +4 -0
  41. package/dist/vue/VoiceReconnectProfileEvidence.d.ts +4 -0
  42. package/dist/vue/VoiceRoutingStatus.d.ts +4 -0
  43. package/dist/vue/VoiceSessionObservability.d.ts +4 -0
  44. package/dist/vue/VoiceSessionSnapshot.d.ts +4 -0
  45. package/dist/vue/VoiceTurnLatency.d.ts +4 -0
  46. package/dist/vue/VoiceTurnQuality.d.ts +4 -0
  47. package/dist/vue/index.js +261 -30
  48. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import { type VoiceReactiveSource } from "./reactiveSource";
1
2
  export type VoiceOpsActionMethod = "GET" | "POST";
2
3
  export type VoiceOpsActionDescriptor = {
3
4
  description?: string;
@@ -13,6 +14,7 @@ export type VoiceOpsActionCenterClientOptions = {
13
14
  fetch?: typeof fetch;
14
15
  intervalMs?: number;
15
16
  onActionResult?: (result: VoiceOpsActionRunResult) => Promise<void> | void;
17
+ reactiveSource?: VoiceReactiveSource;
16
18
  };
17
19
  export type VoiceOpsActionRunResult = {
18
20
  actionId: string;
@@ -1,7 +1,9 @@
1
1
  import type { VoiceOpsActionHistoryReport } from "../core/opsActionAuditRoutes";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceOpsActionHistoryClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoiceOpsActionHistorySnapshot = {
7
9
  error: string | null;
@@ -1,7 +1,9 @@
1
1
  import type { VoiceOpsStatusReport } from "../core/opsStatus";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceOpsStatusClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoiceOpsStatusSnapshot = {
7
9
  error: string | null;
@@ -1,7 +1,9 @@
1
1
  import type { VoicePlatformCoverageSummary } from "../core/platformCoverage";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoicePlatformCoverageClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoicePlatformCoverageSnapshot = {
7
9
  error: string | null;
@@ -1,7 +1,9 @@
1
1
  import type { VoiceRealCallProfileHistoryReport } from "../core/proofTrends";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceProfileComparisonClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoiceProfileComparisonSnapshot = {
7
9
  error: string | null;
@@ -1,7 +1,9 @@
1
1
  import type { VoiceProfileSwitchRecommendation } from "../core/profileSwitchRecommendation";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceProfileSwitchRecommendationClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoiceProfileSwitchRecommendationSnapshot = {
7
9
  error: string | null;
@@ -1,7 +1,9 @@
1
1
  import type { VoiceProofTrendReport } from "../core/proofTrends";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceProofTrendsClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoiceProofTrendsSnapshot = {
7
9
  error: string | null;
@@ -1,7 +1,9 @@
1
1
  import type { VoiceProviderCapabilityReport } from "../core/providerCapabilities";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceProviderCapabilitiesClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoiceProviderCapabilitiesSnapshot<TProvider extends string = string> = {
7
9
  error: string | null;
@@ -1,7 +1,9 @@
1
1
  import type { VoiceProviderContractMatrixReport } from "../core/providerStackRecommendations";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceProviderContractsClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoiceProviderContractsSnapshot<TProvider extends string = string> = {
7
9
  error: string | null;
@@ -1,7 +1,9 @@
1
1
  import type { VoiceProviderHealthSummary } from "../core/providerHealth";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceProviderStatusClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoiceProviderStatusSnapshot<TProvider extends string = string> = {
7
9
  error: string | null;
@@ -0,0 +1,8 @@
1
+ export type VoiceReactiveSource = (refresh: () => void) => (() => void) | void;
2
+ export declare const bindVoiceReactiveSource: (refresh: () => void, source?: VoiceReactiveSource) => (() => void);
3
+ export type VoiceSseReactiveSourceOptions = {
4
+ path?: string;
5
+ withCredentials?: boolean;
6
+ eventSourceImpl?: typeof EventSource;
7
+ };
8
+ export declare const voiceSseReactiveSource: (topic: string, options?: VoiceSseReactiveSourceOptions) => VoiceReactiveSource;
@@ -1,7 +1,9 @@
1
1
  import type { VoiceProductionReadinessReport } from "../core/productionReadiness";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceReadinessFailuresClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoiceReadinessFailuresSnapshot = {
7
9
  error: string | null;
@@ -1,7 +1,9 @@
1
1
  import type { VoiceReconnectProfileEvidenceSummary } from "../core/proofTrends";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceReconnectProfileEvidenceClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoiceReconnectProfileEvidenceSnapshot = {
7
9
  error: string | null;
@@ -1,7 +1,9 @@
1
1
  import type { VoiceRoutingDecisionSummary } from "../core/resilienceRoutes";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceRoutingStatusClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoiceRoutingStatusSnapshot = {
7
9
  decision: VoiceRoutingDecisionSummary | null;
@@ -1,7 +1,9 @@
1
1
  import type { VoiceSessionObservabilityReport } from "../core/sessionObservability";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceSessionObservabilityClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoiceSessionObservabilitySnapshot = {
7
9
  error: string | null;
@@ -1,7 +1,9 @@
1
1
  import type { VoiceSessionSnapshot } from "../core/sessionSnapshot";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceSessionSnapshotClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  turnId?: string;
6
8
  };
7
9
  export type VoiceSessionSnapshotClientState = {
@@ -1,7 +1,9 @@
1
1
  import type { VoiceTraceTimelineReport } from "../core/traceTimeline";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceTraceTimelineClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoiceTraceTimelineSnapshot = {
7
9
  error: string | null;
@@ -1,8 +1,10 @@
1
1
  import type { VoiceTurnLatencyReport } from "../core/turnLatency";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceTurnLatencyClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
5
6
  proofPath?: string;
7
+ reactiveSource?: VoiceReactiveSource;
6
8
  };
7
9
  export type VoiceTurnLatencySnapshot = {
8
10
  error: string | null;
@@ -1,7 +1,9 @@
1
1
  import type { VoiceTurnQualityReport } from "../core/turnQuality";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceTurnQualityClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoiceTurnQualitySnapshot = {
7
9
  error: string | null;
@@ -1,7 +1,9 @@
1
1
  import type { VoiceScenarioEvalReport } from "../core/evalRoutes";
2
+ import { type VoiceReactiveSource } from "./reactiveSource";
2
3
  export type VoiceWorkflowStatusClientOptions = {
3
4
  fetch?: typeof fetch;
4
5
  intervalMs?: number;
6
+ reactiveSource?: VoiceReactiveSource;
5
7
  };
6
8
  export type VoiceWorkflowStatusSnapshot = {
7
9
  error: string | null;
@@ -21,6 +21,23 @@ export declare const voiceAssistantMemoryTable: import("drizzle-orm/pg-core").Pg
21
21
  identity: undefined;
22
22
  generated: undefined;
23
23
  }, {}, {}>;
24
+ id: import("drizzle-orm/pg-core").PgColumn<{
25
+ name: "id";
26
+ tableName: "voice_assistant_memory";
27
+ dataType: "string";
28
+ columnType: "PgText";
29
+ data: string;
30
+ driverParam: string;
31
+ notNull: true;
32
+ hasDefault: false;
33
+ isPrimaryKey: true;
34
+ isAutoincrement: false;
35
+ hasRuntimeDefault: false;
36
+ enumValues: [string, ...string[]];
37
+ baseColumn: never;
38
+ identity: undefined;
39
+ generated: undefined;
40
+ }, {}, {}>;
24
41
  key: import("drizzle-orm/pg-core").PgColumn<{
25
42
  name: "key";
26
43
  tableName: "voice_assistant_memory";
@@ -28,6 +28,23 @@ export declare const voiceDrizzleSchema: {
28
28
  identity: undefined;
29
29
  generated: undefined;
30
30
  }, {}, {}>;
31
+ id: import("drizzle-orm/pg-core").PgColumn<{
32
+ name: "id";
33
+ tableName: "voice_assistant_memory";
34
+ dataType: "string";
35
+ columnType: "PgText";
36
+ data: string;
37
+ driverParam: string;
38
+ notNull: true;
39
+ hasDefault: false;
40
+ isPrimaryKey: true;
41
+ isAutoincrement: false;
42
+ hasRuntimeDefault: false;
43
+ enumValues: [string, ...string[]];
44
+ baseColumn: never;
45
+ identity: undefined;
46
+ generated: undefined;
47
+ }, {}, {}>;
31
48
  key: import("drizzle-orm/pg-core").PgColumn<{
32
49
  name: "key";
33
50
  tableName: "voice_assistant_memory";
@@ -85,7 +85,7 @@ var __require = import.meta.require;
85
85
 
86
86
  // src/drizzle/assistantMemory.ts
87
87
  import { and, desc, eq } from "drizzle-orm";
88
- import { bigint, jsonb, pgTable, primaryKey, text } from "drizzle-orm/pg-core";
88
+ import { bigint, jsonb, pgTable, text } from "drizzle-orm/pg-core";
89
89
 
90
90
  // src/core/assistantMemory.ts
91
91
  var createMemoryId = (input) => `${input.assistantId}:${input.namespace}:${input.key}`;
@@ -196,24 +196,22 @@ var resolveVoiceAssistantMemoryNamespace = async (input) => typeof input.memory.
196
196
  // src/drizzle/assistantMemory.ts
197
197
  var voiceAssistantMemoryTable = pgTable("voice_assistant_memory", {
198
198
  assistantId: text("assistant_id").notNull(),
199
+ id: text("id").primaryKey(),
199
200
  key: text("key").notNull(),
200
201
  namespace: text("namespace").notNull(),
201
202
  payload: jsonb("payload").notNull(),
202
203
  sortAt: bigint("sort_at", { mode: "number" }).notNull()
203
- }, (table) => [
204
- primaryKey({
205
- columns: [table.assistantId, table.namespace, table.key]
206
- })
207
- ]);
204
+ });
205
+ var voiceAssistantMemoryId = (input) => JSON.stringify([input.assistantId, input.namespace, input.key]);
208
206
  var createDrizzleAssistantMemoryStore = (db) => {
209
207
  const get = async (input) => {
210
- const rows = await db.select({ payload: voiceAssistantMemoryTable.payload }).from(voiceAssistantMemoryTable).where(and(eq(voiceAssistantMemoryTable.assistantId, input.assistantId), eq(voiceAssistantMemoryTable.namespace, input.namespace), eq(voiceAssistantMemoryTable.key, input.key))).limit(1);
208
+ const rows = await db.select({ payload: voiceAssistantMemoryTable.payload }).from(voiceAssistantMemoryTable).where(eq(voiceAssistantMemoryTable.id, voiceAssistantMemoryId(input))).limit(1);
211
209
  return rows[0]?.payload;
212
210
  };
213
211
  return {
214
212
  get,
215
213
  delete: async (input) => {
216
- await db.delete(voiceAssistantMemoryTable).where(and(eq(voiceAssistantMemoryTable.assistantId, input.assistantId), eq(voiceAssistantMemoryTable.namespace, input.namespace), eq(voiceAssistantMemoryTable.key, input.key)));
214
+ await db.delete(voiceAssistantMemoryTable).where(eq(voiceAssistantMemoryTable.id, voiceAssistantMemoryId(input)));
217
215
  },
218
216
  list: async (input) => {
219
217
  const rows = await db.select({ payload: voiceAssistantMemoryTable.payload }).from(voiceAssistantMemoryTable).where(input.namespace === undefined ? eq(voiceAssistantMemoryTable.assistantId, input.assistantId) : and(eq(voiceAssistantMemoryTable.assistantId, input.assistantId), eq(voiceAssistantMemoryTable.namespace, input.namespace))).orderBy(desc(voiceAssistantMemoryTable.sortAt));
@@ -228,6 +226,7 @@ var createDrizzleAssistantMemoryStore = (db) => {
228
226
  });
229
227
  await db.insert(voiceAssistantMemoryTable).values({
230
228
  assistantId: record.assistantId,
229
+ id: voiceAssistantMemoryId(record),
231
230
  key: record.key,
232
231
  namespace: record.namespace,
233
232
  payload: record,
@@ -237,11 +236,7 @@ var createDrizzleAssistantMemoryStore = (db) => {
237
236
  payload: record,
238
237
  sortAt: record.updatedAt
239
238
  },
240
- target: [
241
- voiceAssistantMemoryTable.assistantId,
242
- voiceAssistantMemoryTable.namespace,
243
- voiceAssistantMemoryTable.key
244
- ]
239
+ target: voiceAssistantMemoryTable.id
245
240
  });
246
241
  return record;
247
242
  }