@absolutejs/voice 0.0.22-beta.350 → 0.0.22-beta.351
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/client/index.js +9 -0
- package/dist/react/index.js +9 -0
- package/dist/resilienceRoutes.d.ts +3 -0
- package/dist/svelte/index.js +9 -0
- package/dist/vue/index.js +9 -0
- package/package.json +1 -1
package/dist/client/index.js
CHANGED
|
@@ -6667,6 +6667,7 @@ var DEFAULT_TITLE7 = "Voice Routing";
|
|
|
6667
6667
|
var DEFAULT_DESCRIPTION7 = "Latest provider routing decision from the self-hosted trace store.";
|
|
6668
6668
|
var escapeHtml11 = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'");
|
|
6669
6669
|
var formatValue = (value, fallback = "None") => typeof value === "string" && value.trim() ? value : typeof value === "number" && Number.isFinite(value) ? String(value) : fallback;
|
|
6670
|
+
var formatProviderRoutes = (routes) => routes && typeof routes === "object" ? Object.entries(routes).map(([role, provider]) => `${role}: ${formatValue(provider)}`).join(", ") || "None" : "None";
|
|
6670
6671
|
var createVoiceRoutingStatusViewModel = (snapshot, options = {}) => {
|
|
6671
6672
|
const decision = snapshot.decision;
|
|
6672
6673
|
const rows = decision ? [
|
|
@@ -6682,6 +6683,14 @@ var createVoiceRoutingStatusViewModel = (snapshot, options = {}) => {
|
|
|
6682
6683
|
value: formatValue(decision.fallbackProvider)
|
|
6683
6684
|
},
|
|
6684
6685
|
{ label: "Status", value: formatValue(decision.status, "unknown") },
|
|
6686
|
+
{
|
|
6687
|
+
label: "Voice profile",
|
|
6688
|
+
value: formatValue(decision.profileLabel ?? decision.profileId)
|
|
6689
|
+
},
|
|
6690
|
+
{
|
|
6691
|
+
label: "Default routes",
|
|
6692
|
+
value: formatProviderRoutes(decision.providerRoutes)
|
|
6693
|
+
},
|
|
6685
6694
|
{
|
|
6686
6695
|
label: "Latency budget",
|
|
6687
6696
|
value: typeof decision.latencyBudgetMs === "number" ? `${decision.latencyBudgetMs}ms` : "None"
|
package/dist/react/index.js
CHANGED
|
@@ -4264,6 +4264,7 @@ var DEFAULT_TITLE10 = "Voice Routing";
|
|
|
4264
4264
|
var DEFAULT_DESCRIPTION10 = "Latest provider routing decision from the self-hosted trace store.";
|
|
4265
4265
|
var escapeHtml12 = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'");
|
|
4266
4266
|
var formatValue = (value, fallback = "None") => typeof value === "string" && value.trim() ? value : typeof value === "number" && Number.isFinite(value) ? String(value) : fallback;
|
|
4267
|
+
var formatProviderRoutes = (routes) => routes && typeof routes === "object" ? Object.entries(routes).map(([role, provider]) => `${role}: ${formatValue(provider)}`).join(", ") || "None" : "None";
|
|
4267
4268
|
var createVoiceRoutingStatusViewModel = (snapshot, options = {}) => {
|
|
4268
4269
|
const decision = snapshot.decision;
|
|
4269
4270
|
const rows = decision ? [
|
|
@@ -4279,6 +4280,14 @@ var createVoiceRoutingStatusViewModel = (snapshot, options = {}) => {
|
|
|
4279
4280
|
value: formatValue(decision.fallbackProvider)
|
|
4280
4281
|
},
|
|
4281
4282
|
{ label: "Status", value: formatValue(decision.status, "unknown") },
|
|
4283
|
+
{
|
|
4284
|
+
label: "Voice profile",
|
|
4285
|
+
value: formatValue(decision.profileLabel ?? decision.profileId)
|
|
4286
|
+
},
|
|
4287
|
+
{
|
|
4288
|
+
label: "Default routes",
|
|
4289
|
+
value: formatProviderRoutes(decision.providerRoutes)
|
|
4290
|
+
},
|
|
4282
4291
|
{
|
|
4283
4292
|
label: "Latency budget",
|
|
4284
4293
|
value: typeof decision.latencyBudgetMs === "number" ? `${decision.latencyBudgetMs}ms` : "None"
|
|
@@ -12,7 +12,10 @@ export type VoiceRoutingEvent = {
|
|
|
12
12
|
kind: VoiceRoutingEventKind;
|
|
13
13
|
latencyBudgetMs?: number;
|
|
14
14
|
operation?: string;
|
|
15
|
+
profileId?: string;
|
|
16
|
+
profileLabel?: string;
|
|
15
17
|
provider?: string;
|
|
18
|
+
providerRoutes?: Record<string, string>;
|
|
16
19
|
routing?: string;
|
|
17
20
|
scenarioId?: string;
|
|
18
21
|
selectedProvider?: string;
|
package/dist/svelte/index.js
CHANGED
|
@@ -4931,6 +4931,7 @@ var DEFAULT_TITLE7 = "Voice Routing";
|
|
|
4931
4931
|
var DEFAULT_DESCRIPTION7 = "Latest provider routing decision from the self-hosted trace store.";
|
|
4932
4932
|
var escapeHtml10 = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'");
|
|
4933
4933
|
var formatValue = (value, fallback = "None") => typeof value === "string" && value.trim() ? value : typeof value === "number" && Number.isFinite(value) ? String(value) : fallback;
|
|
4934
|
+
var formatProviderRoutes = (routes) => routes && typeof routes === "object" ? Object.entries(routes).map(([role, provider]) => `${role}: ${formatValue(provider)}`).join(", ") || "None" : "None";
|
|
4934
4935
|
var createVoiceRoutingStatusViewModel = (snapshot, options = {}) => {
|
|
4935
4936
|
const decision = snapshot.decision;
|
|
4936
4937
|
const rows = decision ? [
|
|
@@ -4946,6 +4947,14 @@ var createVoiceRoutingStatusViewModel = (snapshot, options = {}) => {
|
|
|
4946
4947
|
value: formatValue(decision.fallbackProvider)
|
|
4947
4948
|
},
|
|
4948
4949
|
{ label: "Status", value: formatValue(decision.status, "unknown") },
|
|
4950
|
+
{
|
|
4951
|
+
label: "Voice profile",
|
|
4952
|
+
value: formatValue(decision.profileLabel ?? decision.profileId)
|
|
4953
|
+
},
|
|
4954
|
+
{
|
|
4955
|
+
label: "Default routes",
|
|
4956
|
+
value: formatProviderRoutes(decision.providerRoutes)
|
|
4957
|
+
},
|
|
4949
4958
|
{
|
|
4950
4959
|
label: "Latency budget",
|
|
4951
4960
|
value: typeof decision.latencyBudgetMs === "number" ? `${decision.latencyBudgetMs}ms` : "None"
|
package/dist/vue/index.js
CHANGED
|
@@ -4279,6 +4279,7 @@ var DEFAULT_TITLE10 = "Voice Routing";
|
|
|
4279
4279
|
var DEFAULT_DESCRIPTION10 = "Latest provider routing decision from the self-hosted trace store.";
|
|
4280
4280
|
var escapeHtml12 = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'");
|
|
4281
4281
|
var formatValue = (value, fallback = "None") => typeof value === "string" && value.trim() ? value : typeof value === "number" && Number.isFinite(value) ? String(value) : fallback;
|
|
4282
|
+
var formatProviderRoutes = (routes) => routes && typeof routes === "object" ? Object.entries(routes).map(([role, provider]) => `${role}: ${formatValue(provider)}`).join(", ") || "None" : "None";
|
|
4282
4283
|
var createVoiceRoutingStatusViewModel = (snapshot, options = {}) => {
|
|
4283
4284
|
const decision = snapshot.decision;
|
|
4284
4285
|
const rows = decision ? [
|
|
@@ -4294,6 +4295,14 @@ var createVoiceRoutingStatusViewModel = (snapshot, options = {}) => {
|
|
|
4294
4295
|
value: formatValue(decision.fallbackProvider)
|
|
4295
4296
|
},
|
|
4296
4297
|
{ label: "Status", value: formatValue(decision.status, "unknown") },
|
|
4298
|
+
{
|
|
4299
|
+
label: "Voice profile",
|
|
4300
|
+
value: formatValue(decision.profileLabel ?? decision.profileId)
|
|
4301
|
+
},
|
|
4302
|
+
{
|
|
4303
|
+
label: "Default routes",
|
|
4304
|
+
value: formatProviderRoutes(decision.providerRoutes)
|
|
4305
|
+
},
|
|
4297
4306
|
{
|
|
4298
4307
|
label: "Latency budget",
|
|
4299
4308
|
value: typeof decision.latencyBudgetMs === "number" ? `${decision.latencyBudgetMs}ms` : "None"
|