@absolutejs/voice 0.0.22-beta.374 → 0.0.22-beta.375

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.
@@ -68,6 +68,7 @@ var __decorateElement = (array, flags, name, decorators, target, extra) => {
68
68
  }
69
69
  return k || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p ? k ^ 4 ? extra : desc : target;
70
70
  };
71
+ var __require = import.meta.require;
71
72
 
72
73
  // src/angular/voice-ops-status.service.ts
73
74
  import { computed, Injectable, signal } from "@angular/core";
@@ -68,6 +68,7 @@ var __decorateElement = (array, flags, name, decorators, target, extra) => {
68
68
  }
69
69
  return k || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p ? k ^ 4 ? extra : desc : target;
70
70
  };
71
+ var __require = import.meta.require;
71
72
 
72
73
  // src/client/connection.ts
73
74
  var WS_OPEN = 1;
@@ -3907,7 +3908,6 @@ var defineVoicePlatformCoverageElement = (tagName = "absolute-voice-platform-cov
3907
3908
  };
3908
3909
  // src/proofTrends.ts
3909
3910
  import { Elysia } from "elysia";
3910
- import { Database } from "bun:sqlite";
3911
3911
  var DEFAULT_VOICE_PROOF_TRENDS_MAX_AGE_MS = 24 * 60 * 60 * 1000;
3912
3912
  var DEFAULT_VOICE_PROOF_TREND_PROFILE_DEFINITIONS = [
3913
3913
  {
@@ -4666,7 +4666,8 @@ var createVoiceInMemoryRealCallProfileRecoveryJobStore = (options = {}) => {
4666
4666
  };
4667
4667
  var normalizeRealCallRecoveryJobTableName = (value) => value.trim().replace(/[^a-zA-Z0-9_]+/g, "_").replace(/^_+|_+$/g, "") || "voice_real_call_profile_recovery_jobs";
4668
4668
  var createVoiceSQLiteRealCallProfileRecoveryJobStore = (options = {}) => {
4669
- const database = options.database ?? new Database(options.path ?? ":memory:", {
4669
+ const { Database: SQLiteDatabase } = __require("bun:sqlite");
4670
+ const database = options.database ?? new SQLiteDatabase(options.path ?? ":memory:", {
4670
4671
  create: true
4671
4672
  });
4672
4673
  const tableName = normalizeRealCallRecoveryJobTableName(options.tableName ?? "voice_real_call_profile_recovery_jobs");
package/dist/index.js CHANGED
@@ -68,6 +68,7 @@ var __decorateElement = (array, flags, name, decorators, target, extra) => {
68
68
  }
69
69
  return k || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p ? k ^ 4 ? extra : desc : target;
70
70
  };
71
+ var __require = import.meta.require;
71
72
 
72
73
  // src/audioConditioning.ts
73
74
  var DEFAULT_TARGET_LEVEL = 0.08;
@@ -15376,7 +15377,6 @@ var createVoiceCompetitiveCoverageRoutes = (options) => {
15376
15377
  };
15377
15378
  // src/proofTrends.ts
15378
15379
  import { Elysia as Elysia22 } from "elysia";
15379
- import { Database } from "bun:sqlite";
15380
15380
  var DEFAULT_VOICE_PROOF_TRENDS_MAX_AGE_MS = 24 * 60 * 60 * 1000;
15381
15381
  var DEFAULT_VOICE_PROOF_TREND_PROFILE_DEFINITIONS = [
15382
15382
  {
@@ -16135,7 +16135,8 @@ var createVoiceInMemoryRealCallProfileRecoveryJobStore = (options = {}) => {
16135
16135
  };
16136
16136
  var normalizeRealCallRecoveryJobTableName = (value) => value.trim().replace(/[^a-zA-Z0-9_]+/g, "_").replace(/^_+|_+$/g, "") || "voice_real_call_profile_recovery_jobs";
16137
16137
  var createVoiceSQLiteRealCallProfileRecoveryJobStore = (options = {}) => {
16138
- const database = options.database ?? new Database(options.path ?? ":memory:", {
16138
+ const { Database: SQLiteDatabase } = __require("bun:sqlite");
16139
+ const database = options.database ?? new SQLiteDatabase(options.path ?? ":memory:", {
16139
16140
  create: true
16140
16141
  });
16141
16142
  const tableName = normalizeRealCallRecoveryJobTableName(options.tableName ?? "voice_real_call_profile_recovery_jobs");
@@ -23619,7 +23620,7 @@ import { Elysia as Elysia45 } from "elysia";
23619
23620
 
23620
23621
  // src/telephony/plivo.ts
23621
23622
  import { Buffer as Buffer5 } from "buffer";
23622
- import { Database as Database2 } from "bun:sqlite";
23623
+ import { Database } from "bun:sqlite";
23623
23624
  import { Elysia as Elysia41 } from "elysia";
23624
23625
 
23625
23626
  // src/telephony/contract.ts
@@ -24746,7 +24747,7 @@ var resolvePlivoNonceTableName = (input) => {
24746
24747
  };
24747
24748
  var getPlivoNonceExpiresAt = (ttlSeconds) => typeof ttlSeconds === "number" && ttlSeconds > 0 ? Date.now() + Math.ceil(ttlSeconds * 1000) : null;
24748
24749
  var createVoiceSQLitePlivoWebhookNonceStore = (options) => {
24749
- const database = options.database ?? new Database2(options.path ?? ":memory:", {
24750
+ const database = options.database ?? new Database(options.path ?? ":memory:", {
24750
24751
  create: true
24751
24752
  });
24752
24753
  const tableName = resolvePlivoNonceTableName({
@@ -25146,7 +25147,7 @@ var createPlivoVoiceRoutes = (options = {}) => {
25146
25147
 
25147
25148
  // src/telephony/telnyx.ts
25148
25149
  import { Buffer as Buffer6 } from "buffer";
25149
- import { Database as Database3 } from "bun:sqlite";
25150
+ import { Database as Database2 } from "bun:sqlite";
25150
25151
  import { Elysia as Elysia42 } from "elysia";
25151
25152
  var escapeXml4 = (value) => value.replaceAll("&", "&amp;").replaceAll('"', "&quot;").replaceAll("'", "&apos;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
25152
25153
  var escapeHtml42 = (value) => value.replaceAll("&", "&amp;").replaceAll('"', "&quot;").replaceAll("'", "&#39;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
@@ -25346,7 +25347,7 @@ var resolveTelnyxEventTableName = (input) => {
25346
25347
  };
25347
25348
  var getTelnyxEventExpiresAt = (ttlSeconds) => typeof ttlSeconds === "number" && ttlSeconds > 0 ? Date.now() + Math.ceil(ttlSeconds * 1000) : null;
25348
25349
  var createVoiceSQLiteTelnyxWebhookEventStore = (options) => {
25349
- const database = options.database ?? new Database3(options.path ?? ":memory:", {
25350
+ const database = options.database ?? new Database2(options.path ?? ":memory:", {
25350
25351
  create: true
25351
25352
  });
25352
25353
  const tableName = resolveTelnyxEventTableName({
@@ -29077,7 +29078,7 @@ var createVoicePostgresRuntimeStorage = (options) => {
29077
29078
  };
29078
29079
 
29079
29080
  // src/sqliteStore.ts
29080
- import { Database as Database4 } from "bun:sqlite";
29081
+ import { Database as Database3 } from "bun:sqlite";
29081
29082
  var normalizeTableNameSegment = (value) => value.trim().replace(/[^a-zA-Z0-9_]+/g, "_").replace(/^_+|_+$/g, "") || "voice";
29082
29083
  var resolveTableName = (input) => {
29083
29084
  if (input.options.tableName) {
@@ -29088,7 +29089,7 @@ var resolveTableName = (input) => {
29088
29089
  return `${prefix}_${fallback}`;
29089
29090
  };
29090
29091
  var openVoiceSQLiteDatabase = (path) => {
29091
- const database = new Database4(path, {
29092
+ const database = new Database3(path, {
29092
29093
  create: true
29093
29094
  });
29094
29095
  database.exec("PRAGMA journal_mode = WAL;");
@@ -29867,7 +29868,7 @@ var createVoiceOpsRecoveryRoutes = (options = {}) => {
29867
29868
 
29868
29869
  // src/observabilityExport.ts
29869
29870
  import { Elysia as Elysia53 } from "elysia";
29870
- import { Database as Database5 } from "bun:sqlite";
29871
+ import { Database as Database4 } from "bun:sqlite";
29871
29872
  import { createHash } from "crypto";
29872
29873
  import { mkdir as mkdir4, readFile as readFile2, stat, unlink } from "fs/promises";
29873
29874
  import { join as join3 } from "path";
@@ -31486,7 +31487,7 @@ var loadVoiceObservabilityExportReplaySource = async (source) => {
31486
31487
  if (!source.database && !source.path) {
31487
31488
  throw new Error("SQLite observability export replay requires source.database or source.path.");
31488
31489
  }
31489
- const database = source.database ?? new Database5(source.path, { create: false });
31490
+ const database = source.database ?? new Database4(source.path, { create: false });
31490
31491
  const table2 = quoteObservabilityIdentifier(normalizeObservabilityIdentifier(source.tableName));
31491
31492
  const row2 = database.query(`SELECT manifest_json, artifact_index_json, payload_json FROM ${table2} WHERE run_id = $runId`).get({ $runId: source.runId });
31492
31493
  if (!row2) {
@@ -31563,7 +31564,7 @@ var deliverObservabilityExportToSQLite = async (input) => {
31563
31564
  if (!input.destination.database && !input.destination.path) {
31564
31565
  throw new Error("SQLite observability export delivery requires destination.database or destination.path.");
31565
31566
  }
31566
- const database = input.destination.database ?? new Database5(input.destination.path, { create: true });
31567
+ const database = input.destination.database ?? new Database4(input.destination.path, { create: true });
31567
31568
  const table = quoteObservabilityIdentifier(normalizeObservabilityIdentifier(input.destination.tableName));
31568
31569
  const record = buildObservabilityExportDatabaseRecord(input);
31569
31570
  database.exec(`CREATE TABLE IF NOT EXISTS ${table} (
@@ -1,5 +1,5 @@
1
1
  import { Elysia } from 'elysia';
2
- import { Database } from 'bun:sqlite';
2
+ import type { Database } from 'bun:sqlite';
3
3
  import type { VoiceProductionReadinessAction, VoiceProductionReadinessCheck } from './productionReadiness';
4
4
  import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from './trace';
5
5
  export type VoiceProofTrendStatus = 'empty' | 'fail' | 'pass' | 'stale';
@@ -68,6 +68,7 @@ var __decorateElement = (array, flags, name, decorators, target, extra) => {
68
68
  }
69
69
  return k || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p ? k ^ 4 ? extra : desc : target;
70
70
  };
71
+ var __require = import.meta.require;
71
72
 
72
73
  // src/react/useVoiceOpsStatus.tsx
73
74
  import { useEffect, useRef, useSyncExternalStore } from "react";
@@ -1494,7 +1495,6 @@ var useVoiceProofTrends = (path = "/api/voice/proof-trends", options = {}) => {
1494
1495
 
1495
1496
  // src/proofTrends.ts
1496
1497
  import { Elysia } from "elysia";
1497
- import { Database } from "bun:sqlite";
1498
1498
  var DEFAULT_VOICE_PROOF_TRENDS_MAX_AGE_MS = 24 * 60 * 60 * 1000;
1499
1499
  var DEFAULT_VOICE_PROOF_TREND_PROFILE_DEFINITIONS = [
1500
1500
  {
@@ -2253,7 +2253,8 @@ var createVoiceInMemoryRealCallProfileRecoveryJobStore = (options = {}) => {
2253
2253
  };
2254
2254
  var normalizeRealCallRecoveryJobTableName = (value) => value.trim().replace(/[^a-zA-Z0-9_]+/g, "_").replace(/^_+|_+$/g, "") || "voice_real_call_profile_recovery_jobs";
2255
2255
  var createVoiceSQLiteRealCallProfileRecoveryJobStore = (options = {}) => {
2256
- const database = options.database ?? new Database(options.path ?? ":memory:", {
2256
+ const { Database: SQLiteDatabase } = __require("bun:sqlite");
2257
+ const database = options.database ?? new SQLiteDatabase(options.path ?? ":memory:", {
2257
2258
  create: true
2258
2259
  });
2259
2260
  const tableName = normalizeRealCallRecoveryJobTableName(options.tableName ?? "voice_real_call_profile_recovery_jobs");
@@ -68,6 +68,7 @@ var __decorateElement = (array, flags, name, decorators, target, extra) => {
68
68
  }
69
69
  return k || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p ? k ^ 4 ? extra : desc : target;
70
70
  };
71
+ var __require = import.meta.require;
71
72
 
72
73
  // src/client/campaignDialerProof.ts
73
74
  var fetchVoiceCampaignDialerProofStatus = async (path = "/api/voice/campaigns/dialer-proof", options = {}) => {
@@ -68,6 +68,7 @@ var __decorateElement = (array, flags, name, decorators, target, extra) => {
68
68
  }
69
69
  return k || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p ? k ^ 4 ? extra : desc : target;
70
70
  };
71
+ var __require = import.meta.require;
71
72
 
72
73
  // src/turnDetection.ts
73
74
  var DEFAULT_SILENCE_MS = 700;
package/dist/vue/index.js CHANGED
@@ -68,6 +68,7 @@ var __decorateElement = (array, flags, name, decorators, target, extra) => {
68
68
  }
69
69
  return k || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p ? k ^ 4 ? extra : desc : target;
70
70
  };
71
+ var __require = import.meta.require;
71
72
 
72
73
  // src/vue/VoiceOpsStatus.ts
73
74
  import { defineComponent, h } from "vue";
@@ -1415,7 +1416,6 @@ import { defineComponent as defineComponent5, h as h5 } from "vue";
1415
1416
 
1416
1417
  // src/proofTrends.ts
1417
1418
  import { Elysia } from "elysia";
1418
- import { Database } from "bun:sqlite";
1419
1419
  var DEFAULT_VOICE_PROOF_TRENDS_MAX_AGE_MS = 24 * 60 * 60 * 1000;
1420
1420
  var DEFAULT_VOICE_PROOF_TREND_PROFILE_DEFINITIONS = [
1421
1421
  {
@@ -2174,7 +2174,8 @@ var createVoiceInMemoryRealCallProfileRecoveryJobStore = (options = {}) => {
2174
2174
  };
2175
2175
  var normalizeRealCallRecoveryJobTableName = (value) => value.trim().replace(/[^a-zA-Z0-9_]+/g, "_").replace(/^_+|_+$/g, "") || "voice_real_call_profile_recovery_jobs";
2176
2176
  var createVoiceSQLiteRealCallProfileRecoveryJobStore = (options = {}) => {
2177
- const database = options.database ?? new Database(options.path ?? ":memory:", {
2177
+ const { Database: SQLiteDatabase } = __require("bun:sqlite");
2178
+ const database = options.database ?? new SQLiteDatabase(options.path ?? ":memory:", {
2178
2179
  create: true
2179
2180
  });
2180
2181
  const tableName = normalizeRealCallRecoveryJobTableName(options.tableName ?? "voice_real_call_profile_recovery_jobs");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.374",
3
+ "version": "0.0.22-beta.375",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",