@flowengage/react-chatbot 1.0.1 → 1.0.3
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.
|
@@ -1947,19 +1947,21 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
1947
1947
|
let c = a(() => e ? {
|
|
1948
1948
|
...t || {},
|
|
1949
1949
|
siteId: e
|
|
1950
|
-
} : t || null, [e, t]), u = a(() => pn([c?.widgetSettings?.branding?.fallbackAgentName, c?.widgetSettings?.branding?.headerName], "Agent"), [c]), [d, f] = s("booting"), [m, h] = s(null), [_, ne] = s(null), [v, ce] = s(""), [y, b] = s([]), [de, fe] = s(ie().isOpen), [pe, me] = s(ie().activeScreen), [he, ge] = s(ie().isHumanHandled), [_e, ve] = s(ie().agentName), [ye, be] = s(ie().agentHeadshot), [xe, Se] = s(() => oe(c?.siteId)), [Ce, we] = s(!1), [Te, Ee] = s(!1), [De, Oe] = s("idle"), [ke, Ae] = s(!1), [je, Me] = s(!1), [Ne, Pe] = s(""), [x, Fe] = s(!1), [Ie, Le] = s(!1), [S, Re] = s(null), [ze, Be] = s(null), [Ve, He] = s("idle"), [Ue, We] = s(null), [Ge, Ke] = s(!1), [qe, Je] = s(""), C = o(null), w = o(null), T = o(""), Ye = o(null), Xe = o(null), Ze = o(null), Qe = o(null), $e = o(null), et = o([]), tt = o(null), nt = o(null), rt = o(!1), it = o(!1), at = o(""), ot = o([]),
|
|
1950
|
+
} : t || null, [e, t]), u = a(() => pn([c?.widgetSettings?.branding?.fallbackAgentName, c?.widgetSettings?.branding?.headerName], "Agent"), [c]), [d, f] = s("booting"), [m, h] = s(null), [_, ne] = s(null), [v, ce] = s(""), [y, b] = s([]), [de, fe] = s(ie().isOpen), [pe, me] = s(ie().activeScreen), [he, ge] = s(ie().isHumanHandled), [_e, ve] = s(ie().agentName), [ye, be] = s(ie().agentHeadshot), [xe, Se] = s(() => oe(c?.siteId)), [Ce, we] = s(!1), [Te, Ee] = s(!1), [De, Oe] = s("idle"), [ke, Ae] = s(!1), [je, Me] = s(!1), [Ne, Pe] = s(""), [x, Fe] = s(!1), [Ie, Le] = s(!1), [S, Re] = s(null), [ze, Be] = s(null), [Ve, He] = s("idle"), [Ue, We] = s(null), [Ge, Ke] = s(!1), [qe, Je] = s(""), C = o(null), w = o(null), T = o(""), Ye = o(null), Xe = o(null), Ze = o(null), Qe = o(null), $e = o(null), et = o([]), tt = o(null), nt = o(null), rt = o(!1), it = o(!1), at = o(""), ot = o(_e), st = o([]), ct = o(!1), lt = o({
|
|
1951
1951
|
notifyRouteChange: () => {},
|
|
1952
1952
|
cleanup: () => {}
|
|
1953
|
-
}),
|
|
1953
|
+
}), ut = a(() => {
|
|
1954
1954
|
let e = _?.widgetSettings?.call?.maxDurationSeconds ?? c?.widgetSettings?.call?.maxDurationSeconds ?? c?.callMaxDurationSeconds, t = Number(e);
|
|
1955
1955
|
return Number.isFinite(t) && t > 0 ? t : ee;
|
|
1956
1956
|
}, [c, _]);
|
|
1957
1957
|
i(() => {
|
|
1958
1958
|
Ye.current = S;
|
|
1959
|
-
}, [S])
|
|
1960
|
-
|
|
1959
|
+
}, [S]), i(() => {
|
|
1960
|
+
ot.current = _e;
|
|
1961
|
+
}, [_e]);
|
|
1962
|
+
let dt = () => {
|
|
1961
1963
|
Je("");
|
|
1962
|
-
},
|
|
1964
|
+
}, ft = (e) => {
|
|
1963
1965
|
let t = typeof e == "string" ? e.trim().toLowerCase() : "";
|
|
1964
1966
|
return Se(t), se(t, c?.siteId), t;
|
|
1965
1967
|
};
|
|
@@ -1967,9 +1969,9 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
1967
1969
|
let e = c?.siteId;
|
|
1968
1970
|
e && Se(oe(e));
|
|
1969
1971
|
}, [c?.siteId]);
|
|
1970
|
-
let
|
|
1972
|
+
let pt = () => {
|
|
1971
1973
|
Xe.current &&= (Xe.current.close(), null), Ze.current &&= (Ze.current.getTracks().forEach((e) => e.stop()), null), Qe.current &&= (Qe.current.srcObject = null, Qe.current.remove(), null), $e.current = null, et.current = [], tt.current = null, nt.current = null, rt.current = !1, Ke(!1), Re(null), Be(null), He("idle"), We(null);
|
|
1972
|
-
},
|
|
1974
|
+
}, mt = (e = (/* @__PURE__ */ new Date()).toISOString()) => {
|
|
1973
1975
|
let t = C.current, n = tt.current || $e.current?.callId;
|
|
1974
1976
|
if (!t?.connected || !n || rt.current) {
|
|
1975
1977
|
console.log("[FlowEngageProvider] skipping call:connected emit", {
|
|
@@ -1989,7 +1991,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
1989
1991
|
chatId: T.current,
|
|
1990
1992
|
connectedAt: e
|
|
1991
1993
|
});
|
|
1992
|
-
},
|
|
1994
|
+
}, ht = (e = {}) => {
|
|
1993
1995
|
if (!e.callId) return;
|
|
1994
1996
|
let t = nt.current === e.callId, n = tt.current === e.callId, r = Ye.current?.callId === e.callId;
|
|
1995
1997
|
if (!(!t && !n && !r)) {
|
|
@@ -2005,7 +2007,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2005
2007
|
}
|
|
2006
2008
|
He("idle");
|
|
2007
2009
|
}
|
|
2008
|
-
},
|
|
2010
|
+
}, gt = (e = {}) => {
|
|
2009
2011
|
if (!e.callId) return;
|
|
2010
2012
|
let t = nt.current === e.callId, n = tt.current === e.callId, r = Ye.current?.callId === e.callId;
|
|
2011
2013
|
if (!(!t && !n && !r)) {
|
|
@@ -2017,12 +2019,12 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2017
2019
|
isIncomingHere: r,
|
|
2018
2020
|
reason: e.reason || e.status || null
|
|
2019
2021
|
}), n) {
|
|
2020
|
-
|
|
2022
|
+
pt();
|
|
2021
2023
|
return;
|
|
2022
2024
|
}
|
|
2023
2025
|
nt.current = null, $e.current = null, et.current = [], Re(null), He("idle");
|
|
2024
2026
|
}
|
|
2025
|
-
},
|
|
2027
|
+
}, _t = async (e = {}) => {
|
|
2026
2028
|
let t = Xe.current, n = C.current, r = e.sdpOffer || e.offer?.sdp;
|
|
2027
2029
|
if (!t || !n?.connected || !r || !e.callId) {
|
|
2028
2030
|
console.log("[FlowEngageProvider] deferring remote offer until peer/socket ready", {
|
|
@@ -2179,7 +2181,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2179
2181
|
let t = pn([
|
|
2180
2182
|
e.agent?.name,
|
|
2181
2183
|
e.agentName,
|
|
2182
|
-
|
|
2184
|
+
ot.current
|
|
2183
2185
|
], u);
|
|
2184
2186
|
ge(!1), me("ai"), b((e) => [...e, {
|
|
2185
2187
|
id: `agent-left-${Date.now()}`,
|
|
@@ -2192,7 +2194,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2192
2194
|
let t = pn([
|
|
2193
2195
|
e.agent?.name,
|
|
2194
2196
|
e.agentName,
|
|
2195
|
-
|
|
2197
|
+
ot.current
|
|
2196
2198
|
], u);
|
|
2197
2199
|
ge(!1), me("ai"), b((e) => [...e, {
|
|
2198
2200
|
id: `agent-left-${Date.now()}`,
|
|
@@ -2234,7 +2236,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2234
2236
|
callId: e.callId,
|
|
2235
2237
|
chatId: T.current,
|
|
2236
2238
|
agentName: t
|
|
2237
|
-
}),
|
|
2239
|
+
}), dt(), rt.current = !1, Re({
|
|
2238
2240
|
callId: e.callId,
|
|
2239
2241
|
from: e.from || "owner",
|
|
2240
2242
|
agentId: e.agentId || null,
|
|
@@ -2247,7 +2249,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2247
2249
|
offerLength: (e.sdpOffer || e.offer?.sdp || "").length
|
|
2248
2250
|
}), $e.current = e;
|
|
2249
2251
|
try {
|
|
2250
|
-
await
|
|
2252
|
+
await _t(e);
|
|
2251
2253
|
} catch (e) {
|
|
2252
2254
|
console.error("[FlowEngageProvider] failed to apply remote offer", e);
|
|
2253
2255
|
}
|
|
@@ -2285,35 +2287,35 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2285
2287
|
console.error("[FlowEngageProvider] failed to add ICE candidate", e);
|
|
2286
2288
|
}
|
|
2287
2289
|
}), o.on("call:ended", () => {
|
|
2288
|
-
|
|
2290
|
+
dt(), pt();
|
|
2289
2291
|
}), o.on("call:accepted", (e = {}) => {
|
|
2290
2292
|
console.log("[FlowEngageProvider] received call:accepted", {
|
|
2291
2293
|
callId: e.callId,
|
|
2292
2294
|
chatId: e.chatId || T.current
|
|
2293
|
-
}),
|
|
2295
|
+
}), ht(e);
|
|
2294
2296
|
}), o.on("call:accepted_by_other", (e = {}) => {
|
|
2295
2297
|
console.log("[FlowEngageProvider] received call:accepted_by_other", {
|
|
2296
2298
|
callId: e.callId,
|
|
2297
2299
|
chatId: e.chatId || T.current
|
|
2298
|
-
}),
|
|
2300
|
+
}), ht(e);
|
|
2299
2301
|
}), o.on("call:rejected", (e = {}) => {
|
|
2300
2302
|
console.log("[FlowEngageProvider] received call:rejected", {
|
|
2301
2303
|
callId: e.callId,
|
|
2302
2304
|
chatId: e.chatId || T.current,
|
|
2303
2305
|
reason: e.reason
|
|
2304
|
-
}),
|
|
2306
|
+
}), gt(e);
|
|
2305
2307
|
}), o.on("call:missed", (e = {}) => {
|
|
2306
2308
|
console.log("[FlowEngageProvider] received call:missed", {
|
|
2307
2309
|
callId: e.callId,
|
|
2308
2310
|
chatId: e.chatId || T.current,
|
|
2309
2311
|
reason: e.reason
|
|
2310
|
-
}),
|
|
2312
|
+
}), gt(e);
|
|
2311
2313
|
}), o.on("call:failed", (e = {}) => {
|
|
2312
2314
|
console.log("[FlowEngageProvider] received call:failed", {
|
|
2313
2315
|
callId: e.callId,
|
|
2314
2316
|
chatId: e.chatId || T.current,
|
|
2315
2317
|
reason: e.reason
|
|
2316
|
-
}),
|
|
2318
|
+
}), gt(e);
|
|
2317
2319
|
}), o.on("call:connected", (e = {}) => {
|
|
2318
2320
|
if (!e.callId) return;
|
|
2319
2321
|
let t = nt.current === e.callId, n = tt.current === e.callId, r = Ye.current?.callId === e.callId;
|
|
@@ -2331,9 +2333,9 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2331
2333
|
}
|
|
2332
2334
|
rt.current = !0, nt.current = null, tt.current = e.callId, Be(e.callId), Re(null), He("connected"), We(e.connectedAt || (/* @__PURE__ */ new Date()).toISOString()), fe(!0);
|
|
2333
2335
|
}), o.on("call:unavailable", (e = {}) => {
|
|
2334
|
-
|
|
2336
|
+
pt(), Je(un(e, "This visitor is not available for a call right now.")), fe(!0);
|
|
2335
2337
|
}), o.on("call:error", (e = {}) => {
|
|
2336
|
-
|
|
2338
|
+
pt(), Je(un(e, "We couldn't connect the call right now.")), fe(!0);
|
|
2337
2339
|
}), o.on("visitor:navigate", async ({ url: e, section: n, highlight: r } = {}) => {
|
|
2338
2340
|
if (e) {
|
|
2339
2341
|
if (console.log("[FlowEngageProvider] visitor:navigate", {
|
|
@@ -2365,7 +2367,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2365
2367
|
n && tn(n);
|
|
2366
2368
|
}), o.on("visitor:clear_highlight", () => {
|
|
2367
2369
|
nn();
|
|
2368
|
-
}),
|
|
2370
|
+
}), lt.current = Jt({
|
|
2369
2371
|
socket: o,
|
|
2370
2372
|
chatId: i
|
|
2371
2373
|
}), console.log("[FlowEngageProvider] tracking started", { chatId: i });
|
|
@@ -2377,12 +2379,12 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2377
2379
|
console.error("[FlowEngageProvider] boot failed", t), h(t), f("error");
|
|
2378
2380
|
}
|
|
2379
2381
|
})(), () => {
|
|
2380
|
-
e = !1,
|
|
2382
|
+
e = !1, lt.current?.cleanup?.(), pt(), C.current?.disconnect();
|
|
2381
2383
|
};
|
|
2382
2384
|
}, [c, r]), i(() => () => {
|
|
2383
|
-
if (x && !
|
|
2384
|
-
let e = T.current, t =
|
|
2385
|
-
n && e && t.length > 0 && (console.log("[FlowEngageProvider] safety-net: syncing voice transcript on unmount"), n.beaconSyncVoice(r, i, e, t) || n.syncVoice(e, t).catch(() => {}),
|
|
2385
|
+
if (x && !ct.current && st.current.length > 0) {
|
|
2386
|
+
let e = T.current, t = st.current, n = w.current, r = _?.apiBaseUrl || "", i = _?.userId || "";
|
|
2387
|
+
n && e && t.length > 0 && (console.log("[FlowEngageProvider] safety-net: syncing voice transcript on unmount"), n.beaconSyncVoice(r, i, e, t) || n.syncVoice(e, t).catch(() => {}), ct.current = !0);
|
|
2386
2388
|
}
|
|
2387
2389
|
}, [x, _]), i(() => {
|
|
2388
2390
|
if (!w.current || !v || d !== "ready" || he) return;
|
|
@@ -2398,9 +2400,9 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2398
2400
|
d,
|
|
2399
2401
|
he
|
|
2400
2402
|
]);
|
|
2401
|
-
let
|
|
2403
|
+
let vt = async () => {
|
|
2402
2404
|
if (!(!S?.callId || !w.current || !C.current || !v)) {
|
|
2403
|
-
|
|
2405
|
+
dt(), nt.current = S.callId, console.log("[FlowEngageProvider] acceptCall started", {
|
|
2404
2406
|
callId: S?.callId,
|
|
2405
2407
|
chatId: v,
|
|
2406
2408
|
socketConnected: !!C.current?.connected,
|
|
@@ -2424,7 +2426,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2424
2426
|
signalingState: t.signalingState
|
|
2425
2427
|
}), e === "connected") {
|
|
2426
2428
|
let e = (/* @__PURE__ */ new Date()).toISOString();
|
|
2427
|
-
He("connected"), We((t) => t || e),
|
|
2429
|
+
He("connected"), We((t) => t || e), mt(e);
|
|
2428
2430
|
return;
|
|
2429
2431
|
}
|
|
2430
2432
|
e === "connecting" && He((e) => e === "connected" ? e : "connecting");
|
|
@@ -2438,7 +2440,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2438
2440
|
signalingState: t.signalingState
|
|
2439
2441
|
}), e === "connected" || e === "completed") {
|
|
2440
2442
|
let e = (/* @__PURE__ */ new Date()).toISOString();
|
|
2441
|
-
He("connected"), We((t) => t || e),
|
|
2443
|
+
He("connected"), We((t) => t || e), mt(e);
|
|
2442
2444
|
return;
|
|
2443
2445
|
}
|
|
2444
2446
|
(e === "checking" || e === "new") && He((e) => e === "connected" ? e : "connecting");
|
|
@@ -2479,7 +2481,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2479
2481
|
n && (console.log("[FlowEngageProvider] found pending remote offer during accept", {
|
|
2480
2482
|
callId: n.callId || S.callId,
|
|
2481
2483
|
chatId: v
|
|
2482
|
-
}), await
|
|
2484
|
+
}), await _t({
|
|
2483
2485
|
...n,
|
|
2484
2486
|
callId: n.callId || S.callId
|
|
2485
2487
|
})), await w.current.acceptCall(S.callId, v), console.log("[FlowEngageProvider] acceptCall API succeeded", {
|
|
@@ -2487,7 +2489,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2487
2489
|
chatId: v
|
|
2488
2490
|
}), tt.current = S.callId, Be(S.callId), He("connecting"), Re(null), fe(!0);
|
|
2489
2491
|
} catch (e) {
|
|
2490
|
-
if (console.error("[FlowEngageProvider] acceptCall failed", e), nt.current = null,
|
|
2492
|
+
if (console.error("[FlowEngageProvider] acceptCall failed", e), nt.current = null, pt(), e?.status === 404 || e?.status === 409 || e?.status === 422) {
|
|
2491
2493
|
Je(un(e, "This visitor call is no longer available."));
|
|
2492
2494
|
return;
|
|
2493
2495
|
}
|
|
@@ -2503,41 +2505,41 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2503
2505
|
Je("We couldn't connect the call right now. Please try again.");
|
|
2504
2506
|
}
|
|
2505
2507
|
}
|
|
2506
|
-
},
|
|
2508
|
+
}, yt = async () => {
|
|
2507
2509
|
if (!S?.callId || !w.current || !v) {
|
|
2508
|
-
|
|
2510
|
+
pt();
|
|
2509
2511
|
return;
|
|
2510
2512
|
}
|
|
2511
|
-
|
|
2513
|
+
dt();
|
|
2512
2514
|
try {
|
|
2513
2515
|
await w.current.rejectCall(S.callId, v);
|
|
2514
2516
|
} catch (e) {
|
|
2515
2517
|
console.error("[FlowEngageProvider] rejectCall failed", e), Je(un(e, "We couldn't decline the call cleanly."));
|
|
2516
2518
|
} finally {
|
|
2517
|
-
|
|
2519
|
+
pt();
|
|
2518
2520
|
}
|
|
2519
|
-
},
|
|
2520
|
-
|
|
2521
|
+
}, bt = o(yt);
|
|
2522
|
+
bt.current = yt, i(() => {
|
|
2521
2523
|
if (!S?.callId || ze) return;
|
|
2522
2524
|
let e = S.callId, t = window.setTimeout(() => {
|
|
2523
|
-
Ye.current?.callId === e &&
|
|
2525
|
+
Ye.current?.callId === e && bt.current();
|
|
2524
2526
|
}, te);
|
|
2525
2527
|
return () => window.clearTimeout(t);
|
|
2526
2528
|
}, [S?.callId, ze]);
|
|
2527
|
-
let
|
|
2529
|
+
let xt = async () => {
|
|
2528
2530
|
if (!ze || !w.current || !v) {
|
|
2529
|
-
|
|
2531
|
+
pt();
|
|
2530
2532
|
return;
|
|
2531
2533
|
}
|
|
2532
|
-
|
|
2534
|
+
dt();
|
|
2533
2535
|
try {
|
|
2534
2536
|
await w.current.endWebRTCCall(ze, v);
|
|
2535
2537
|
} catch (e) {
|
|
2536
2538
|
console.error("[FlowEngageProvider] endWebRTCCall failed", e), Je(un(e, "The call ended locally, but the server could not be updated."));
|
|
2537
2539
|
} finally {
|
|
2538
|
-
|
|
2540
|
+
pt();
|
|
2539
2541
|
}
|
|
2540
|
-
},
|
|
2542
|
+
}, St = () => {
|
|
2541
2543
|
let e = Ze.current?.getAudioTracks?.() || [], t = Xe.current?.getSenders?.().map((e) => e.track).filter((e) => e?.kind === "audio") || [], n = [...e, ...t].filter(Boolean);
|
|
2542
2544
|
if (n.length === 0) {
|
|
2543
2545
|
console.warn("[FlowEngageProvider] no local audio tracks available for mute");
|
|
@@ -2550,7 +2552,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2550
2552
|
nextMuted: r,
|
|
2551
2553
|
trackCount: n.length
|
|
2552
2554
|
}), Ke(r);
|
|
2553
|
-
},
|
|
2555
|
+
}, Ct = async (e = {}) => {
|
|
2554
2556
|
let t = e.notifyChatInitiated === !0;
|
|
2555
2557
|
if (fe(!0), !(!t || !w.current || !v || typeof window > "u")) {
|
|
2556
2558
|
try {
|
|
@@ -2563,8 +2565,8 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2563
2565
|
await w.current.updateChatStatus(v, "open");
|
|
2564
2566
|
} catch {}
|
|
2565
2567
|
}
|
|
2566
|
-
},
|
|
2567
|
-
let t =
|
|
2568
|
+
}, wt = async (e) => {
|
|
2569
|
+
let t = ft(e);
|
|
2568
2570
|
if (!t || !w.current || !T.current) return t;
|
|
2569
2571
|
try {
|
|
2570
2572
|
await w.current.trackVisitor({
|
|
@@ -2576,7 +2578,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2576
2578
|
console.error("[FlowEngageProvider] failed to persist visitor email", e);
|
|
2577
2579
|
}
|
|
2578
2580
|
return t;
|
|
2579
|
-
},
|
|
2581
|
+
}, Tt = () => {
|
|
2580
2582
|
if (!v || !C.current?.connected || it.current) {
|
|
2581
2583
|
console.log("[FlowEngageProvider] skipped typing:start emit", {
|
|
2582
2584
|
chatId: v,
|
|
@@ -2592,7 +2594,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2592
2594
|
chatId: v,
|
|
2593
2595
|
sender: "user"
|
|
2594
2596
|
});
|
|
2595
|
-
},
|
|
2597
|
+
}, Et = () => {
|
|
2596
2598
|
if (v && C.current?.connected && at.current !== "" && (console.log("[FlowEngageProvider] clearing typing draft", {
|
|
2597
2599
|
chatId: v,
|
|
2598
2600
|
sender: "user"
|
|
@@ -2615,7 +2617,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2615
2617
|
chatId: v,
|
|
2616
2618
|
sender: "user"
|
|
2617
2619
|
});
|
|
2618
|
-
},
|
|
2620
|
+
}, Dt = (e = "") => {
|
|
2619
2621
|
let t = typeof e == "string" ? e : "";
|
|
2620
2622
|
if (!v || !C.current?.connected) {
|
|
2621
2623
|
console.log("[FlowEngageProvider] skipped typing:update emit", {
|
|
@@ -2634,9 +2636,9 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2634
2636
|
sender: "user",
|
|
2635
2637
|
text: t
|
|
2636
2638
|
}));
|
|
2637
|
-
},
|
|
2639
|
+
}, Ot = async (e, t = "", n = null) => {
|
|
2638
2640
|
if (!e.trim() || !w.current || !v || d !== "ready" || Ie) return;
|
|
2639
|
-
|
|
2641
|
+
Et();
|
|
2640
2642
|
let i = `pending-user-${Date.now()}`, a = {
|
|
2641
2643
|
id: i,
|
|
2642
2644
|
sender: "user",
|
|
@@ -2669,7 +2671,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2669
2671
|
} finally {
|
|
2670
2672
|
Ae(!1);
|
|
2671
2673
|
}
|
|
2672
|
-
},
|
|
2674
|
+
}, kt = async (e) => {
|
|
2673
2675
|
if (!(!w.current || !v)) {
|
|
2674
2676
|
try {
|
|
2675
2677
|
let t = e ? "voice" : "text";
|
|
@@ -2677,11 +2679,11 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2677
2679
|
} catch (e) {
|
|
2678
2680
|
console.error("[FlowEngageProvider] setVoiceMode failed", e);
|
|
2679
2681
|
}
|
|
2680
|
-
Fe(e), e && (
|
|
2682
|
+
Fe(e), e && (ct.current = !1);
|
|
2681
2683
|
}
|
|
2682
|
-
},
|
|
2683
|
-
if (!
|
|
2684
|
-
if (
|
|
2684
|
+
}, At = async (e) => {
|
|
2685
|
+
if (!ct.current) {
|
|
2686
|
+
if (ct.current = !0, !w.current || !v || !e?.length) {
|
|
2685
2687
|
Fe(!1);
|
|
2686
2688
|
return;
|
|
2687
2689
|
}
|
|
@@ -2692,9 +2694,9 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2692
2694
|
Fe(!1);
|
|
2693
2695
|
}
|
|
2694
2696
|
}
|
|
2695
|
-
},
|
|
2697
|
+
}, E = async () => {
|
|
2696
2698
|
if (!(!w.current || !v)) {
|
|
2697
|
-
x && !
|
|
2699
|
+
x && !ct.current && st.current.length > 0 && await At(st.current);
|
|
2698
2700
|
try {
|
|
2699
2701
|
await w.current.endConversation(v);
|
|
2700
2702
|
} catch {
|
|
@@ -2712,9 +2714,9 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2712
2714
|
}
|
|
2713
2715
|
};
|
|
2714
2716
|
i(() => {
|
|
2715
|
-
if (Ve !== "connected" || !ze || !v || !Ue || !
|
|
2716
|
-
let e = new Date(Ue).getTime(), t = Number.isFinite(e) ? Date.now() - e : 0, n = Math.max(0,
|
|
2717
|
-
Je("The call ended because it reached the time limit."),
|
|
2717
|
+
if (Ve !== "connected" || !ze || !v || !Ue || !ut) return;
|
|
2718
|
+
let e = new Date(Ue).getTime(), t = Number.isFinite(e) ? Date.now() - e : 0, n = Math.max(0, ut * 1e3 - t), r = window.setTimeout(() => {
|
|
2719
|
+
Je("The call ended because it reached the time limit."), xt();
|
|
2718
2720
|
}, n);
|
|
2719
2721
|
return () => window.clearTimeout(r);
|
|
2720
2722
|
}, [
|
|
@@ -2722,8 +2724,8 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2722
2724
|
Ue,
|
|
2723
2725
|
Ve,
|
|
2724
2726
|
v,
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
+
xt,
|
|
2728
|
+
ut
|
|
2727
2729
|
]), i(() => {
|
|
2728
2730
|
let e = () => {
|
|
2729
2731
|
let e = T.current, t = w.current;
|
|
@@ -2739,7 +2741,7 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2739
2741
|
window.removeEventListener("pagehide", e), window.removeEventListener("beforeunload", e);
|
|
2740
2742
|
};
|
|
2741
2743
|
}, []);
|
|
2742
|
-
let
|
|
2744
|
+
let jt = a(() => ({
|
|
2743
2745
|
status: d,
|
|
2744
2746
|
error: m,
|
|
2745
2747
|
runtimeConfig: _,
|
|
@@ -2767,34 +2769,34 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2767
2769
|
isCallMuted: Ge,
|
|
2768
2770
|
webRTCError: qe,
|
|
2769
2771
|
language: r,
|
|
2770
|
-
historyRef:
|
|
2771
|
-
hasSyncedRef:
|
|
2772
|
-
dismissCallError:
|
|
2773
|
-
captureVisitorEmail:
|
|
2774
|
-
startTyping:
|
|
2775
|
-
stopTyping:
|
|
2776
|
-
updateTypingDraft:
|
|
2777
|
-
notifyRouteChange: () =>
|
|
2778
|
-
openWidget:
|
|
2772
|
+
historyRef: st,
|
|
2773
|
+
hasSyncedRef: ct,
|
|
2774
|
+
dismissCallError: dt,
|
|
2775
|
+
captureVisitorEmail: wt,
|
|
2776
|
+
startTyping: Tt,
|
|
2777
|
+
stopTyping: Et,
|
|
2778
|
+
updateTypingDraft: Dt,
|
|
2779
|
+
notifyRouteChange: () => lt.current?.notifyRouteChange?.(),
|
|
2780
|
+
openWidget: Ct,
|
|
2779
2781
|
closeWidget: () => fe(!1),
|
|
2780
2782
|
toggleWidget: () => {
|
|
2781
2783
|
if (de) {
|
|
2782
2784
|
fe(!1);
|
|
2783
2785
|
return;
|
|
2784
2786
|
}
|
|
2785
|
-
|
|
2787
|
+
Ct({ notifyChatInitiated: !0 });
|
|
2786
2788
|
},
|
|
2787
|
-
sendMessage:
|
|
2788
|
-
setVoiceMode:
|
|
2789
|
-
onMessageSync:
|
|
2790
|
-
endConversation:
|
|
2791
|
-
acceptCall:
|
|
2792
|
-
rejectCall:
|
|
2793
|
-
endWebRTCCall:
|
|
2794
|
-
toggleCallMute:
|
|
2795
|
-
startTyping:
|
|
2796
|
-
stopTyping:
|
|
2797
|
-
updateTypingDraft:
|
|
2789
|
+
sendMessage: Ot,
|
|
2790
|
+
setVoiceMode: kt,
|
|
2791
|
+
onMessageSync: At,
|
|
2792
|
+
endConversation: E,
|
|
2793
|
+
acceptCall: vt,
|
|
2794
|
+
rejectCall: yt,
|
|
2795
|
+
endWebRTCCall: xt,
|
|
2796
|
+
toggleCallMute: St,
|
|
2797
|
+
startTyping: Tt,
|
|
2798
|
+
stopTyping: Et,
|
|
2799
|
+
updateTypingDraft: Dt
|
|
2798
2800
|
}), [
|
|
2799
2801
|
d,
|
|
2800
2802
|
m,
|
|
@@ -2823,23 +2825,23 @@ function mn({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2823
2825
|
Ge,
|
|
2824
2826
|
qe,
|
|
2825
2827
|
r,
|
|
2826
|
-
Ct,
|
|
2827
2828
|
wt,
|
|
2828
2829
|
Tt,
|
|
2829
2830
|
Et,
|
|
2830
|
-
|
|
2831
|
+
Dt,
|
|
2831
2832
|
vt,
|
|
2832
|
-
|
|
2833
|
+
yt,
|
|
2833
2834
|
xt,
|
|
2834
2835
|
St,
|
|
2835
|
-
|
|
2836
|
+
Ct,
|
|
2836
2837
|
Ot,
|
|
2837
2838
|
kt,
|
|
2838
2839
|
At,
|
|
2839
|
-
|
|
2840
|
+
E,
|
|
2841
|
+
dt
|
|
2840
2842
|
]);
|
|
2841
2843
|
return /* @__PURE__ */ l(Yt.Provider, {
|
|
2842
|
-
value:
|
|
2844
|
+
value: jt,
|
|
2843
2845
|
children: n
|
|
2844
2846
|
});
|
|
2845
2847
|
}
|
|
@@ -3839,7 +3841,8 @@ function Ln({ input: e, setInput: t, onSubmit: n, isConversationEnded: r, callUi
|
|
|
3839
3841
|
cursor: "pointer"
|
|
3840
3842
|
},
|
|
3841
3843
|
onClick: a,
|
|
3842
|
-
title: "
|
|
3844
|
+
title: "Voice assistant",
|
|
3845
|
+
"aria-label": "Voice assistant",
|
|
3843
3846
|
disabled: r || i,
|
|
3844
3847
|
onMouseEnter: (e) => {
|
|
3845
3848
|
e.currentTarget.style.background = "#f3f4f6";
|
|
@@ -3847,7 +3850,10 @@ function Ln({ input: e, setInput: t, onSubmit: n, isConversationEnded: r, callUi
|
|
|
3847
3850
|
onMouseLeave: (e) => {
|
|
3848
3851
|
e.currentTarget.style.background = "transparent";
|
|
3849
3852
|
},
|
|
3850
|
-
children: /* @__PURE__ */ l(
|
|
3853
|
+
children: /* @__PURE__ */ l(_n, {
|
|
3854
|
+
size: 18,
|
|
3855
|
+
color: "currentColor"
|
|
3856
|
+
})
|
|
3851
3857
|
}),
|
|
3852
3858
|
/* @__PURE__ */ l("input", {
|
|
3853
3859
|
style: {
|
|
@@ -4493,11 +4499,11 @@ function wr(e, t) {
|
|
|
4493
4499
|
default: return t == 0;
|
|
4494
4500
|
}
|
|
4495
4501
|
}
|
|
4496
|
-
var
|
|
4502
|
+
var A;
|
|
4497
4503
|
(function(e) {
|
|
4498
4504
|
e[e.Varint = 0] = "Varint", e[e.Bit64 = 1] = "Bit64", e[e.LengthDelimited = 2] = "LengthDelimited", e[e.StartGroup = 3] = "StartGroup", e[e.EndGroup = 4] = "EndGroup", e[e.Bit32 = 5] = "Bit32";
|
|
4499
|
-
})(
|
|
4500
|
-
var
|
|
4505
|
+
})(A ||= {});
|
|
4506
|
+
var Tr = class {
|
|
4501
4507
|
constructor(e) {
|
|
4502
4508
|
this.stack = [], this.textEncoder = e ?? new TextEncoder(), this.chunks = [], this.buf = [];
|
|
4503
4509
|
}
|
|
@@ -4585,7 +4591,7 @@ var Er = class {
|
|
|
4585
4591
|
let t = O.uEnc(e);
|
|
4586
4592
|
return lr(t.lo, t.hi, this.buf), this;
|
|
4587
4593
|
}
|
|
4588
|
-
},
|
|
4594
|
+
}, Er = class {
|
|
4589
4595
|
constructor(e, t) {
|
|
4590
4596
|
this.varint64 = cr, this.uint32 = yr, this.buf = e, this.len = e.length, this.pos = 0, this.view = new DataView(e.buffer, e.byteOffset, e.byteLength), this.textDecoder = t ?? new TextDecoder();
|
|
4591
4597
|
}
|
|
@@ -4597,21 +4603,21 @@ var Er = class {
|
|
|
4597
4603
|
skip(e, t) {
|
|
4598
4604
|
let n = this.pos;
|
|
4599
4605
|
switch (e) {
|
|
4600
|
-
case
|
|
4606
|
+
case A.Varint:
|
|
4601
4607
|
for (; this.buf[this.pos++] & 128;);
|
|
4602
4608
|
break;
|
|
4603
|
-
case
|
|
4604
|
-
case
|
|
4609
|
+
case A.Bit64: this.pos += 4;
|
|
4610
|
+
case A.Bit32:
|
|
4605
4611
|
this.pos += 4;
|
|
4606
4612
|
break;
|
|
4607
|
-
case
|
|
4613
|
+
case A.LengthDelimited:
|
|
4608
4614
|
let n = this.uint32();
|
|
4609
4615
|
this.pos += n;
|
|
4610
4616
|
break;
|
|
4611
|
-
case
|
|
4617
|
+
case A.StartGroup:
|
|
4612
4618
|
for (;;) {
|
|
4613
4619
|
let [e, n] = this.tag();
|
|
4614
|
-
if (n ===
|
|
4620
|
+
if (n === A.EndGroup) {
|
|
4615
4621
|
if (t !== void 0 && e !== t) throw Error("invalid end group tag");
|
|
4616
4622
|
break;
|
|
4617
4623
|
}
|
|
@@ -4672,7 +4678,7 @@ var Er = class {
|
|
|
4672
4678
|
return this.textDecoder.decode(this.bytes());
|
|
4673
4679
|
}
|
|
4674
4680
|
};
|
|
4675
|
-
function
|
|
4681
|
+
function Dr(e, t, n, r) {
|
|
4676
4682
|
let i;
|
|
4677
4683
|
return {
|
|
4678
4684
|
typeName: t,
|
|
@@ -4687,11 +4693,11 @@ function Or(e, t, n, r) {
|
|
|
4687
4693
|
runtime: e
|
|
4688
4694
|
};
|
|
4689
4695
|
}
|
|
4690
|
-
function
|
|
4696
|
+
function Or(e) {
|
|
4691
4697
|
let t = e.field.localName, n = Object.create(null);
|
|
4692
|
-
return n[t] =
|
|
4698
|
+
return n[t] = kr(e), [n, () => n[t]];
|
|
4693
4699
|
}
|
|
4694
|
-
function
|
|
4700
|
+
function kr(e) {
|
|
4695
4701
|
let t = e.field;
|
|
4696
4702
|
if (t.repeated) return [];
|
|
4697
4703
|
if (t.default !== void 0) return t.default;
|
|
@@ -4704,23 +4710,23 @@ function Ar(e) {
|
|
|
4704
4710
|
case "map": throw "map fields are not allowed to be extensions";
|
|
4705
4711
|
}
|
|
4706
4712
|
}
|
|
4707
|
-
function
|
|
4713
|
+
function Ar(e, t) {
|
|
4708
4714
|
if (!t.repeated && (t.kind == "enum" || t.kind == "scalar")) {
|
|
4709
4715
|
for (let n = e.length - 1; n >= 0; --n) if (e[n].no == t.no) return [e[n]];
|
|
4710
4716
|
return [];
|
|
4711
4717
|
}
|
|
4712
4718
|
return e.filter((e) => e.no === t.no);
|
|
4713
4719
|
}
|
|
4714
|
-
var
|
|
4715
|
-
for (let e = 0; e <
|
|
4716
|
-
|
|
4717
|
-
var
|
|
4720
|
+
var jr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), Mr = [];
|
|
4721
|
+
for (let e = 0; e < jr.length; e++) Mr[jr[e].charCodeAt(0)] = e;
|
|
4722
|
+
Mr[45] = jr.indexOf("+"), Mr[95] = jr.indexOf("/");
|
|
4723
|
+
var Nr = {
|
|
4718
4724
|
dec(e) {
|
|
4719
4725
|
let t = e.length * 3 / 4;
|
|
4720
4726
|
e[e.length - 2] == "=" ? t -= 2 : e[e.length - 1] == "=" && --t;
|
|
4721
4727
|
let n = new Uint8Array(t), r = 0, i = 0, a, o = 0;
|
|
4722
4728
|
for (let t = 0; t < e.length; t++) {
|
|
4723
|
-
if (a =
|
|
4729
|
+
if (a = Mr[e.charCodeAt(t)], a === void 0) switch (e[t]) {
|
|
4724
4730
|
case "=": i = 0;
|
|
4725
4731
|
case "\n":
|
|
4726
4732
|
case "\r":
|
|
@@ -4750,28 +4756,28 @@ var Pr = {
|
|
|
4750
4756
|
let t = "", n = 0, r, i = 0;
|
|
4751
4757
|
for (let a = 0; a < e.length; a++) switch (r = e[a], n) {
|
|
4752
4758
|
case 0:
|
|
4753
|
-
t +=
|
|
4759
|
+
t += jr[r >> 2], i = (r & 3) << 4, n = 1;
|
|
4754
4760
|
break;
|
|
4755
4761
|
case 1:
|
|
4756
|
-
t +=
|
|
4762
|
+
t += jr[i | r >> 4], i = (r & 15) << 2, n = 2;
|
|
4757
4763
|
break;
|
|
4758
4764
|
case 2:
|
|
4759
|
-
t +=
|
|
4765
|
+
t += jr[i | r >> 6], t += jr[r & 63], n = 0;
|
|
4760
4766
|
break;
|
|
4761
4767
|
}
|
|
4762
|
-
return n && (t +=
|
|
4768
|
+
return n && (t += jr[i], t += "=", n == 1 && (t += "=")), t;
|
|
4763
4769
|
}
|
|
4764
4770
|
};
|
|
4765
|
-
function
|
|
4766
|
-
|
|
4767
|
-
let r = t.runtime.bin.makeReadOptions(n), i =
|
|
4771
|
+
function Pr(e, t, n) {
|
|
4772
|
+
Lr(t, e);
|
|
4773
|
+
let r = t.runtime.bin.makeReadOptions(n), i = Ar(e.getType().runtime.bin.listUnknownFields(e), t.field), [a, o] = Or(t);
|
|
4768
4774
|
for (let e of i) t.runtime.bin.readField(a, r.readerFactory(e.data), t.field, e.wireType, r);
|
|
4769
4775
|
return o();
|
|
4770
4776
|
}
|
|
4771
|
-
function
|
|
4772
|
-
|
|
4777
|
+
function Fr(e, t, n, r) {
|
|
4778
|
+
Lr(t, e);
|
|
4773
4779
|
let i = t.runtime.bin.makeReadOptions(r), a = t.runtime.bin.makeWriteOptions(r);
|
|
4774
|
-
if (
|
|
4780
|
+
if (Ir(e, t)) {
|
|
4775
4781
|
let n = e.getType().runtime.bin.listUnknownFields(e).filter((e) => e.no != t.field.no);
|
|
4776
4782
|
e.getType().runtime.bin.discardUnknownFields(e);
|
|
4777
4783
|
for (let t of n) e.getType().runtime.bin.onUnknownField(e, t.no, t.wireType, t.data);
|
|
@@ -4784,14 +4790,14 @@ function Ir(e, t, n, r) {
|
|
|
4784
4790
|
e.getType().runtime.bin.onUnknownField(e, t, n, r);
|
|
4785
4791
|
}
|
|
4786
4792
|
}
|
|
4787
|
-
function
|
|
4793
|
+
function Ir(e, t) {
|
|
4788
4794
|
let n = e.getType();
|
|
4789
4795
|
return t.extendee.typeName === n.typeName && !!n.runtime.bin.listUnknownFields(e).find((e) => e.no == t.field.no);
|
|
4790
4796
|
}
|
|
4791
|
-
function
|
|
4797
|
+
function Lr(e, t) {
|
|
4792
4798
|
D(e.extendee.typeName == t.getType().typeName, `extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`);
|
|
4793
4799
|
}
|
|
4794
|
-
function
|
|
4800
|
+
function Rr(e, t) {
|
|
4795
4801
|
let n = e.localName;
|
|
4796
4802
|
if (e.repeated) return t[n].length > 0;
|
|
4797
4803
|
if (e.oneof) return t[e.oneof.localName].case === n;
|
|
@@ -4802,7 +4808,7 @@ function zr(e, t) {
|
|
|
4802
4808
|
case "map": return Object.keys(t[n]).length > 0;
|
|
4803
4809
|
}
|
|
4804
4810
|
}
|
|
4805
|
-
function
|
|
4811
|
+
function zr(e, t) {
|
|
4806
4812
|
let n = e.localName, r = !e.opt && !e.req;
|
|
4807
4813
|
if (e.repeated) t[n] = [];
|
|
4808
4814
|
else if (e.oneof) t[e.oneof.localName] = { case: void 0 };
|
|
@@ -4821,34 +4827,34 @@ function Br(e, t) {
|
|
|
4821
4827
|
break;
|
|
4822
4828
|
}
|
|
4823
4829
|
}
|
|
4824
|
-
function
|
|
4830
|
+
function Br(e, t) {
|
|
4825
4831
|
if (typeof e != "object" || !e || !Object.getOwnPropertyNames(or.prototype).every((t) => t in e && typeof e[t] == "function")) return !1;
|
|
4826
4832
|
let n = e.getType();
|
|
4827
4833
|
return n === null || typeof n != "function" || !("typeName" in n) || typeof n.typeName != "string" ? !1 : t === void 0 ? !0 : n.typeName == t.typeName;
|
|
4828
4834
|
}
|
|
4829
|
-
function
|
|
4830
|
-
return
|
|
4835
|
+
function Vr(e, t) {
|
|
4836
|
+
return Br(t) || !e.fieldWrapper ? t : e.fieldWrapper.wrapField(t);
|
|
4831
4837
|
}
|
|
4832
4838
|
k.DOUBLE, k.FLOAT, k.INT64, k.UINT64, k.INT32, k.UINT32, k.BOOL, k.STRING, k.BYTES;
|
|
4833
|
-
var
|
|
4839
|
+
var Hr = { ignoreUnknownFields: !1 }, Ur = {
|
|
4834
4840
|
emitDefaultValues: !1,
|
|
4835
4841
|
enumAsInteger: !1,
|
|
4836
4842
|
useProtoFieldName: !1,
|
|
4837
4843
|
prettySpaces: 0
|
|
4838
4844
|
};
|
|
4845
|
+
function Wr(e) {
|
|
4846
|
+
return e ? Object.assign(Object.assign({}, Hr), e) : Hr;
|
|
4847
|
+
}
|
|
4839
4848
|
function Gr(e) {
|
|
4840
4849
|
return e ? Object.assign(Object.assign({}, Ur), e) : Ur;
|
|
4841
4850
|
}
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
}
|
|
4845
|
-
var qr = Symbol(), Jr = Symbol();
|
|
4846
|
-
function Yr() {
|
|
4851
|
+
var Kr = Symbol(), qr = Symbol();
|
|
4852
|
+
function Jr() {
|
|
4847
4853
|
return {
|
|
4848
|
-
makeReadOptions:
|
|
4849
|
-
makeWriteOptions:
|
|
4854
|
+
makeReadOptions: Wr,
|
|
4855
|
+
makeWriteOptions: Gr,
|
|
4850
4856
|
readMessage(e, t, n, r) {
|
|
4851
|
-
if (t == null || Array.isArray(t) || typeof t != "object") throw Error(`cannot decode message ${e.typeName} from JSON: ${
|
|
4857
|
+
if (t == null || Array.isArray(t) || typeof t != "object") throw Error(`cannot decode message ${e.typeName} from JSON: ${Yr(t)}`);
|
|
4852
4858
|
r ??= new e();
|
|
4853
4859
|
let i = /* @__PURE__ */ new Map(), a = n.typeRegistry;
|
|
4854
4860
|
for (let [o, s] of Object.entries(t)) {
|
|
@@ -4860,15 +4866,15 @@ function Yr() {
|
|
|
4860
4866
|
if (n !== void 0) throw Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${t.oneof.name}" present: "${n}", "${o}"`);
|
|
4861
4867
|
i.set(t.oneof, o);
|
|
4862
4868
|
}
|
|
4863
|
-
|
|
4869
|
+
Xr(r, s, t, n, e);
|
|
4864
4870
|
} else {
|
|
4865
4871
|
let t = !1;
|
|
4866
4872
|
if (a?.findExtension && o.startsWith("[") && o.endsWith("]")) {
|
|
4867
4873
|
let i = a.findExtension(o.substring(1, o.length - 1));
|
|
4868
4874
|
if (i && i.extendee.typeName == e.typeName) {
|
|
4869
4875
|
t = !0;
|
|
4870
|
-
let [e, a] =
|
|
4871
|
-
|
|
4876
|
+
let [e, a] = Or(i);
|
|
4877
|
+
Xr(e, s, i.field, n, i), Fr(r, i, a(), n);
|
|
4872
4878
|
}
|
|
4873
4879
|
}
|
|
4874
4880
|
if (!t && !n.ignoreUnknownFields) throw Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`);
|
|
@@ -4880,18 +4886,18 @@ function Yr() {
|
|
|
4880
4886
|
let n = e.getType(), r = {}, i;
|
|
4881
4887
|
try {
|
|
4882
4888
|
for (i of n.fields.byNumber()) {
|
|
4883
|
-
if (!
|
|
4889
|
+
if (!Rr(i, e)) {
|
|
4884
4890
|
if (i.req) throw "required field not set";
|
|
4885
|
-
if (!t.emitDefaultValues || !
|
|
4891
|
+
if (!t.emitDefaultValues || !ei(i)) continue;
|
|
4886
4892
|
}
|
|
4887
|
-
let n = i.oneof ? e[i.oneof.localName].value : e[i.localName], a =
|
|
4893
|
+
let n = i.oneof ? e[i.oneof.localName].value : e[i.localName], a = ti(i, n, t);
|
|
4888
4894
|
a !== void 0 && (r[t.useProtoFieldName ? i.name : i.jsonName] = a);
|
|
4889
4895
|
}
|
|
4890
4896
|
let a = t.typeRegistry;
|
|
4891
4897
|
if (a?.findExtensionFor) for (let i of n.runtime.bin.listUnknownFields(e)) {
|
|
4892
4898
|
let o = a.findExtensionFor(n.typeName, i.no);
|
|
4893
|
-
if (o &&
|
|
4894
|
-
let n =
|
|
4899
|
+
if (o && Ir(e, o)) {
|
|
4900
|
+
let n = Pr(e, o, t), i = ti(o.field, n, t);
|
|
4895
4901
|
i !== void 0 && (r[o.field.jsonName] = i);
|
|
4896
4902
|
}
|
|
4897
4903
|
}
|
|
@@ -4902,15 +4908,15 @@ function Yr() {
|
|
|
4902
4908
|
return r;
|
|
4903
4909
|
},
|
|
4904
4910
|
readScalar(e, t, n) {
|
|
4905
|
-
return
|
|
4911
|
+
return Qr(e, t, n ?? xr.BIGINT, !0);
|
|
4906
4912
|
},
|
|
4907
4913
|
writeScalar(e, t, n) {
|
|
4908
|
-
if (t !== void 0 && (n || wr(e, t))) return
|
|
4914
|
+
if (t !== void 0 && (n || wr(e, t))) return ri(e, t);
|
|
4909
4915
|
},
|
|
4910
|
-
debug:
|
|
4916
|
+
debug: Yr
|
|
4911
4917
|
};
|
|
4912
4918
|
}
|
|
4913
|
-
function
|
|
4919
|
+
function Yr(e) {
|
|
4914
4920
|
if (e === null) return "null";
|
|
4915
4921
|
switch (typeof e) {
|
|
4916
4922
|
case "object": return Array.isArray(e) ? "array" : "object";
|
|
@@ -4918,27 +4924,27 @@ function Xr(e) {
|
|
|
4918
4924
|
default: return String(e);
|
|
4919
4925
|
}
|
|
4920
4926
|
}
|
|
4921
|
-
function
|
|
4927
|
+
function Xr(e, t, n, r, i) {
|
|
4922
4928
|
let a = n.localName;
|
|
4923
4929
|
if (n.repeated) {
|
|
4924
4930
|
if (D(n.kind != "map"), t === null) return;
|
|
4925
|
-
if (!Array.isArray(t)) throw Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${
|
|
4931
|
+
if (!Array.isArray(t)) throw Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Yr(t)}`);
|
|
4926
4932
|
let o = e[a];
|
|
4927
4933
|
for (let e of t) {
|
|
4928
|
-
if (e === null) throw Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${
|
|
4934
|
+
if (e === null) throw Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Yr(e)}`);
|
|
4929
4935
|
switch (n.kind) {
|
|
4930
4936
|
case "message":
|
|
4931
4937
|
o.push(n.T.fromJson(e, r));
|
|
4932
4938
|
break;
|
|
4933
4939
|
case "enum":
|
|
4934
|
-
let t =
|
|
4935
|
-
t !==
|
|
4940
|
+
let t = $r(n.T, e, r.ignoreUnknownFields, !0);
|
|
4941
|
+
t !== qr && o.push(t);
|
|
4936
4942
|
break;
|
|
4937
4943
|
case "scalar":
|
|
4938
4944
|
try {
|
|
4939
|
-
o.push(
|
|
4945
|
+
o.push(Qr(n.T, e, n.L, !0));
|
|
4940
4946
|
} catch (t) {
|
|
4941
|
-
let r = `cannot decode field ${i.typeName}.${n.name} from JSON: ${
|
|
4947
|
+
let r = `cannot decode field ${i.typeName}.${n.name} from JSON: ${Yr(e)}`;
|
|
4942
4948
|
throw t instanceof Error && t.message.length > 0 && (r += `: ${t.message}`), Error(r);
|
|
4943
4949
|
}
|
|
4944
4950
|
break;
|
|
@@ -4946,15 +4952,15 @@ function Zr(e, t, n, r, i) {
|
|
|
4946
4952
|
}
|
|
4947
4953
|
} else if (n.kind == "map") {
|
|
4948
4954
|
if (t === null) return;
|
|
4949
|
-
if (typeof t != "object" || Array.isArray(t)) throw Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${
|
|
4955
|
+
if (typeof t != "object" || Array.isArray(t)) throw Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Yr(t)}`);
|
|
4950
4956
|
let o = e[a];
|
|
4951
4957
|
for (let [e, a] of Object.entries(t)) {
|
|
4952
4958
|
if (a === null) throw Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);
|
|
4953
4959
|
let s;
|
|
4954
4960
|
try {
|
|
4955
|
-
s =
|
|
4961
|
+
s = Zr(n.K, e);
|
|
4956
4962
|
} catch (e) {
|
|
4957
|
-
let r = `cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${
|
|
4963
|
+
let r = `cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${Yr(t)}`;
|
|
4958
4964
|
throw e instanceof Error && e.message.length > 0 && (r += `: ${e.message}`), Error(r);
|
|
4959
4965
|
}
|
|
4960
4966
|
switch (n.V.kind) {
|
|
@@ -4962,14 +4968,14 @@ function Zr(e, t, n, r, i) {
|
|
|
4962
4968
|
o[s] = n.V.T.fromJson(a, r);
|
|
4963
4969
|
break;
|
|
4964
4970
|
case "enum":
|
|
4965
|
-
let e =
|
|
4966
|
-
e !==
|
|
4971
|
+
let e = $r(n.V.T, a, r.ignoreUnknownFields, !0);
|
|
4972
|
+
e !== qr && (o[s] = e);
|
|
4967
4973
|
break;
|
|
4968
4974
|
case "scalar":
|
|
4969
4975
|
try {
|
|
4970
|
-
o[s] =
|
|
4976
|
+
o[s] = Qr(n.V.T, a, xr.BIGINT, !0);
|
|
4971
4977
|
} catch (e) {
|
|
4972
|
-
let r = `cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${
|
|
4978
|
+
let r = `cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${Yr(t)}`;
|
|
4973
4979
|
throw e instanceof Error && e.message.length > 0 && (r += `: ${e.message}`), Error(r);
|
|
4974
4980
|
}
|
|
4975
4981
|
break;
|
|
@@ -4980,15 +4986,15 @@ function Zr(e, t, n, r, i) {
|
|
|
4980
4986
|
let o = n.T;
|
|
4981
4987
|
if (t === null && o.typeName != "google.protobuf.Value") return;
|
|
4982
4988
|
let s = e[a];
|
|
4983
|
-
|
|
4989
|
+
Br(s) ? s.fromJson(t, r) : (e[a] = s = o.fromJson(t, r), o.fieldWrapper && !n.oneof && (e[a] = o.fieldWrapper.unwrapField(s)));
|
|
4984
4990
|
break;
|
|
4985
4991
|
case "enum":
|
|
4986
|
-
let c =
|
|
4992
|
+
let c = $r(n.T, t, r.ignoreUnknownFields, !1);
|
|
4987
4993
|
switch (c) {
|
|
4988
|
-
case
|
|
4989
|
-
|
|
4994
|
+
case Kr:
|
|
4995
|
+
zr(n, e);
|
|
4990
4996
|
break;
|
|
4991
|
-
case
|
|
4997
|
+
case qr: break;
|
|
4992
4998
|
default:
|
|
4993
4999
|
e[a] = c;
|
|
4994
5000
|
break;
|
|
@@ -4996,23 +5002,23 @@ function Zr(e, t, n, r, i) {
|
|
|
4996
5002
|
break;
|
|
4997
5003
|
case "scalar":
|
|
4998
5004
|
try {
|
|
4999
|
-
let r =
|
|
5005
|
+
let r = Qr(n.T, t, n.L, !1);
|
|
5000
5006
|
switch (r) {
|
|
5001
|
-
case
|
|
5002
|
-
|
|
5007
|
+
case Kr:
|
|
5008
|
+
zr(n, e);
|
|
5003
5009
|
break;
|
|
5004
5010
|
default:
|
|
5005
5011
|
e[a] = r;
|
|
5006
5012
|
break;
|
|
5007
5013
|
}
|
|
5008
5014
|
} catch (e) {
|
|
5009
|
-
let r = `cannot decode field ${i.typeName}.${n.name} from JSON: ${
|
|
5015
|
+
let r = `cannot decode field ${i.typeName}.${n.name} from JSON: ${Yr(t)}`;
|
|
5010
5016
|
throw e instanceof Error && e.message.length > 0 && (r += `: ${e.message}`), Error(r);
|
|
5011
5017
|
}
|
|
5012
5018
|
break;
|
|
5013
5019
|
}
|
|
5014
5020
|
}
|
|
5015
|
-
function
|
|
5021
|
+
function Zr(e, t) {
|
|
5016
5022
|
if (e === k.BOOL) switch (t) {
|
|
5017
5023
|
case "true":
|
|
5018
5024
|
t = !0;
|
|
@@ -5021,10 +5027,10 @@ function Qr(e, t) {
|
|
|
5021
5027
|
t = !1;
|
|
5022
5028
|
break;
|
|
5023
5029
|
}
|
|
5024
|
-
return
|
|
5030
|
+
return Qr(e, t, xr.BIGINT, !0).toString();
|
|
5025
5031
|
}
|
|
5026
|
-
function
|
|
5027
|
-
if (t === null) return r ? Cr(e, n) :
|
|
5032
|
+
function Qr(e, t, n, r) {
|
|
5033
|
+
if (t === null) return r ? Cr(e, n) : Kr;
|
|
5028
5034
|
switch (e) {
|
|
5029
5035
|
case k.DOUBLE:
|
|
5030
5036
|
case k.FLOAT:
|
|
@@ -5063,12 +5069,12 @@ function $r(e, t, n, r) {
|
|
|
5063
5069
|
case k.BYTES:
|
|
5064
5070
|
if (t === "") return new Uint8Array();
|
|
5065
5071
|
if (typeof t != "string") break;
|
|
5066
|
-
return
|
|
5072
|
+
return Nr.dec(t);
|
|
5067
5073
|
}
|
|
5068
5074
|
throw Error();
|
|
5069
5075
|
}
|
|
5070
|
-
function
|
|
5071
|
-
if (t === null) return e.typeName == "google.protobuf.NullValue" ? 0 : r ? e.values[0].no :
|
|
5076
|
+
function $r(e, t, n, r) {
|
|
5077
|
+
if (t === null) return e.typeName == "google.protobuf.NullValue" ? 0 : r ? e.values[0].no : Kr;
|
|
5072
5078
|
switch (typeof t) {
|
|
5073
5079
|
case "number":
|
|
5074
5080
|
if (Number.isInteger(t)) return t;
|
|
@@ -5076,28 +5082,28 @@ function ei(e, t, n, r) {
|
|
|
5076
5082
|
case "string":
|
|
5077
5083
|
let r = e.findName(t);
|
|
5078
5084
|
if (r !== void 0) return r.no;
|
|
5079
|
-
if (n) return
|
|
5085
|
+
if (n) return qr;
|
|
5080
5086
|
break;
|
|
5081
5087
|
}
|
|
5082
|
-
throw Error(`cannot decode enum ${e.typeName} from JSON: ${
|
|
5088
|
+
throw Error(`cannot decode enum ${e.typeName} from JSON: ${Yr(t)}`);
|
|
5083
5089
|
}
|
|
5084
|
-
function
|
|
5090
|
+
function ei(e) {
|
|
5085
5091
|
return e.repeated || e.kind == "map" ? !0 : !(e.oneof || e.kind == "message" || e.opt || e.req);
|
|
5086
5092
|
}
|
|
5087
|
-
function
|
|
5093
|
+
function ti(e, t, n) {
|
|
5088
5094
|
if (e.kind == "map") {
|
|
5089
5095
|
D(typeof t == "object" && !!t);
|
|
5090
5096
|
let r = {}, i = Object.entries(t);
|
|
5091
5097
|
switch (e.V.kind) {
|
|
5092
5098
|
case "scalar":
|
|
5093
|
-
for (let [t, n] of i) r[t.toString()] =
|
|
5099
|
+
for (let [t, n] of i) r[t.toString()] = ri(e.V.T, n);
|
|
5094
5100
|
break;
|
|
5095
5101
|
case "message":
|
|
5096
5102
|
for (let [e, t] of i) r[e.toString()] = t.toJson(n);
|
|
5097
5103
|
break;
|
|
5098
5104
|
case "enum":
|
|
5099
5105
|
let t = e.V.T;
|
|
5100
|
-
for (let [e, a] of i) r[e.toString()] =
|
|
5106
|
+
for (let [e, a] of i) r[e.toString()] = ni(t, a, n.enumAsInteger);
|
|
5101
5107
|
break;
|
|
5102
5108
|
}
|
|
5103
5109
|
return n.emitDefaultValues || i.length > 0 ? r : void 0;
|
|
@@ -5107,10 +5113,10 @@ function ni(e, t, n) {
|
|
|
5107
5113
|
let r = [];
|
|
5108
5114
|
switch (e.kind) {
|
|
5109
5115
|
case "scalar":
|
|
5110
|
-
for (let n = 0; n < t.length; n++) r.push(
|
|
5116
|
+
for (let n = 0; n < t.length; n++) r.push(ri(e.T, t[n]));
|
|
5111
5117
|
break;
|
|
5112
5118
|
case "enum":
|
|
5113
|
-
for (let i = 0; i < t.length; i++) r.push(
|
|
5119
|
+
for (let i = 0; i < t.length; i++) r.push(ni(e.T, t[i], n.enumAsInteger));
|
|
5114
5120
|
break;
|
|
5115
5121
|
case "message":
|
|
5116
5122
|
for (let e = 0; e < t.length; e++) r.push(t[e].toJson(n));
|
|
@@ -5119,15 +5125,15 @@ function ni(e, t, n) {
|
|
|
5119
5125
|
return n.emitDefaultValues || r.length > 0 ? r : void 0;
|
|
5120
5126
|
}
|
|
5121
5127
|
switch (e.kind) {
|
|
5122
|
-
case "scalar": return
|
|
5123
|
-
case "enum": return
|
|
5124
|
-
case "message": return
|
|
5128
|
+
case "scalar": return ri(e.T, t);
|
|
5129
|
+
case "enum": return ni(e.T, t, n.enumAsInteger);
|
|
5130
|
+
case "message": return Vr(e.T, t).toJson(n);
|
|
5125
5131
|
}
|
|
5126
5132
|
}
|
|
5127
|
-
function
|
|
5133
|
+
function ni(e, t, n) {
|
|
5128
5134
|
return D(typeof t == "number"), e.typeName == "google.protobuf.NullValue" ? null : n ? t : e.findNumber(t)?.name ?? t;
|
|
5129
5135
|
}
|
|
5130
|
-
function
|
|
5136
|
+
function ri(e, t) {
|
|
5131
5137
|
switch (e) {
|
|
5132
5138
|
case k.INT32:
|
|
5133
5139
|
case k.SFIXED32:
|
|
@@ -5143,39 +5149,39 @@ function ii(e, t) {
|
|
|
5143
5149
|
case k.INT64:
|
|
5144
5150
|
case k.SFIXED64:
|
|
5145
5151
|
case k.SINT64: return D(typeof t == "bigint" || typeof t == "string" || typeof t == "number"), t.toString();
|
|
5146
|
-
case k.BYTES: return D(t instanceof Uint8Array),
|
|
5152
|
+
case k.BYTES: return D(t instanceof Uint8Array), Nr.enc(t);
|
|
5147
5153
|
}
|
|
5148
5154
|
}
|
|
5149
|
-
var
|
|
5155
|
+
var ii = Symbol("@bufbuild/protobuf/unknown-fields"), ai = {
|
|
5150
5156
|
readUnknownFields: !0,
|
|
5151
|
-
readerFactory: (e) => new
|
|
5152
|
-
},
|
|
5157
|
+
readerFactory: (e) => new Er(e)
|
|
5158
|
+
}, oi = {
|
|
5153
5159
|
writeUnknownFields: !0,
|
|
5154
|
-
writerFactory: () => new
|
|
5160
|
+
writerFactory: () => new Tr()
|
|
5155
5161
|
};
|
|
5162
|
+
function si(e) {
|
|
5163
|
+
return e ? Object.assign(Object.assign({}, ai), e) : ai;
|
|
5164
|
+
}
|
|
5156
5165
|
function ci(e) {
|
|
5157
5166
|
return e ? Object.assign(Object.assign({}, oi), e) : oi;
|
|
5158
5167
|
}
|
|
5159
|
-
function li(
|
|
5160
|
-
return e ? Object.assign(Object.assign({}, si), e) : si;
|
|
5161
|
-
}
|
|
5162
|
-
function ui() {
|
|
5168
|
+
function li() {
|
|
5163
5169
|
return {
|
|
5164
|
-
makeReadOptions:
|
|
5165
|
-
makeWriteOptions:
|
|
5170
|
+
makeReadOptions: si,
|
|
5171
|
+
makeWriteOptions: ci,
|
|
5166
5172
|
listUnknownFields(e) {
|
|
5167
|
-
return e[
|
|
5173
|
+
return e[ii] ?? [];
|
|
5168
5174
|
},
|
|
5169
5175
|
discardUnknownFields(e) {
|
|
5170
|
-
delete e[
|
|
5176
|
+
delete e[ii];
|
|
5171
5177
|
},
|
|
5172
5178
|
writeUnknownFields(e, t) {
|
|
5173
|
-
let n = e[
|
|
5179
|
+
let n = e[ii];
|
|
5174
5180
|
if (n) for (let e of n) t.tag(e.no, e.wireType).raw(e.data);
|
|
5175
5181
|
},
|
|
5176
5182
|
onUnknownField(e, t, n, r) {
|
|
5177
5183
|
let i = e;
|
|
5178
|
-
Array.isArray(i[
|
|
5184
|
+
Array.isArray(i[ii]) || (i[ii] = []), i[ii].push({
|
|
5179
5185
|
no: t,
|
|
5180
5186
|
wireType: n,
|
|
5181
5187
|
data: r
|
|
@@ -5183,43 +5189,43 @@ function ui() {
|
|
|
5183
5189
|
},
|
|
5184
5190
|
readMessage(e, t, n, r, i) {
|
|
5185
5191
|
let a = e.getType(), o = i ? t.len : t.pos + n, s, c;
|
|
5186
|
-
for (; t.pos < o && ([s, c] = t.tag(), !(i === !0 && c ==
|
|
5192
|
+
for (; t.pos < o && ([s, c] = t.tag(), !(i === !0 && c == A.EndGroup));) {
|
|
5187
5193
|
let n = a.fields.find(s);
|
|
5188
5194
|
if (!n) {
|
|
5189
5195
|
let n = t.skip(c, s);
|
|
5190
5196
|
r.readUnknownFields && this.onUnknownField(e, s, c, n);
|
|
5191
5197
|
continue;
|
|
5192
5198
|
}
|
|
5193
|
-
|
|
5199
|
+
ui(e, t, n, c, r);
|
|
5194
5200
|
}
|
|
5195
|
-
if (i && (c !=
|
|
5201
|
+
if (i && (c != A.EndGroup || s !== n)) throw Error("invalid end group tag");
|
|
5196
5202
|
},
|
|
5197
|
-
readField:
|
|
5203
|
+
readField: ui,
|
|
5198
5204
|
writeMessage(e, t, n) {
|
|
5199
5205
|
let r = e.getType();
|
|
5200
5206
|
for (let i of r.fields.byNumber()) {
|
|
5201
|
-
if (!
|
|
5207
|
+
if (!Rr(i, e)) {
|
|
5202
5208
|
if (i.req) throw Error(`cannot encode field ${r.typeName}.${i.name} to binary: required field not set`);
|
|
5203
5209
|
continue;
|
|
5204
5210
|
}
|
|
5205
|
-
|
|
5211
|
+
hi(i, i.oneof ? e[i.oneof.localName].value : e[i.localName], t, n);
|
|
5206
5212
|
}
|
|
5207
5213
|
return n.writeUnknownFields && this.writeUnknownFields(e, t), t;
|
|
5208
5214
|
},
|
|
5209
5215
|
writeField(e, t, n, r) {
|
|
5210
|
-
t !== void 0 &&
|
|
5216
|
+
t !== void 0 && hi(e, t, n, r);
|
|
5211
5217
|
}
|
|
5212
5218
|
};
|
|
5213
5219
|
}
|
|
5214
|
-
function
|
|
5220
|
+
function ui(e, t, n, r, i) {
|
|
5215
5221
|
let { repeated: a, localName: o } = n;
|
|
5216
5222
|
switch (n.oneof && (e = e[n.oneof.localName], e.case != o && delete e.value, e.case = o, o = "value"), n.kind) {
|
|
5217
5223
|
case "scalar":
|
|
5218
5224
|
case "enum":
|
|
5219
|
-
let s = n.kind == "enum" ? k.INT32 : n.T, c =
|
|
5220
|
-
if (n.kind == "scalar" && n.L > 0 && (c =
|
|
5225
|
+
let s = n.kind == "enum" ? k.INT32 : n.T, c = mi;
|
|
5226
|
+
if (n.kind == "scalar" && n.L > 0 && (c = pi), a) {
|
|
5221
5227
|
let n = e[o];
|
|
5222
|
-
if (r ==
|
|
5228
|
+
if (r == A.LengthDelimited && s != k.STRING && s != k.BYTES) {
|
|
5223
5229
|
let e = t.uint32() + t.pos;
|
|
5224
5230
|
for (; t.pos < e;) n.push(c(t, s));
|
|
5225
5231
|
} else n.push(c(t, s));
|
|
@@ -5227,36 +5233,36 @@ function di(e, t, n, r, i) {
|
|
|
5227
5233
|
break;
|
|
5228
5234
|
case "message":
|
|
5229
5235
|
let l = n.T;
|
|
5230
|
-
a ? e[o].push(
|
|
5236
|
+
a ? e[o].push(di(t, new l(), i, n)) : Br(e[o]) ? di(t, e[o], i, n) : (e[o] = di(t, new l(), i, n), l.fieldWrapper && !n.oneof && !n.repeated && (e[o] = l.fieldWrapper.unwrapField(e[o])));
|
|
5231
5237
|
break;
|
|
5232
5238
|
case "map":
|
|
5233
|
-
let [u, d] =
|
|
5239
|
+
let [u, d] = fi(n, t, i);
|
|
5234
5240
|
e[o][u] = d;
|
|
5235
5241
|
break;
|
|
5236
5242
|
}
|
|
5237
5243
|
}
|
|
5238
|
-
function
|
|
5244
|
+
function di(e, t, n, r) {
|
|
5239
5245
|
let i = t.getType().runtime.bin, a = r?.delimited;
|
|
5240
5246
|
return i.readMessage(t, e, a ? r.no : e.uint32(), n, a), t;
|
|
5241
5247
|
}
|
|
5242
|
-
function
|
|
5248
|
+
function fi(e, t, n) {
|
|
5243
5249
|
let r = t.uint32(), i = t.pos + r, a, o;
|
|
5244
5250
|
for (; t.pos < i;) {
|
|
5245
5251
|
let [r] = t.tag();
|
|
5246
5252
|
switch (r) {
|
|
5247
5253
|
case 1:
|
|
5248
|
-
a =
|
|
5254
|
+
a = mi(t, e.K);
|
|
5249
5255
|
break;
|
|
5250
5256
|
case 2:
|
|
5251
5257
|
switch (e.V.kind) {
|
|
5252
5258
|
case "scalar":
|
|
5253
|
-
o =
|
|
5259
|
+
o = mi(t, e.V.T);
|
|
5254
5260
|
break;
|
|
5255
5261
|
case "enum":
|
|
5256
5262
|
o = t.int32();
|
|
5257
5263
|
break;
|
|
5258
5264
|
case "message":
|
|
5259
|
-
o =
|
|
5265
|
+
o = di(t, new e.V.T(), n, void 0);
|
|
5260
5266
|
break;
|
|
5261
5267
|
}
|
|
5262
5268
|
break;
|
|
@@ -5275,11 +5281,11 @@ function pi(e, t, n) {
|
|
|
5275
5281
|
}
|
|
5276
5282
|
return [a, o];
|
|
5277
5283
|
}
|
|
5278
|
-
function
|
|
5279
|
-
let n =
|
|
5284
|
+
function pi(e, t) {
|
|
5285
|
+
let n = mi(e, t);
|
|
5280
5286
|
return typeof n == "bigint" ? n.toString() : n;
|
|
5281
5287
|
}
|
|
5282
|
-
function
|
|
5288
|
+
function mi(e, t) {
|
|
5283
5289
|
switch (t) {
|
|
5284
5290
|
case k.STRING: return e.string();
|
|
5285
5291
|
case k.BOOL: return e.bool();
|
|
@@ -5298,31 +5304,31 @@ function hi(e, t) {
|
|
|
5298
5304
|
case k.SINT32: return e.sint32();
|
|
5299
5305
|
}
|
|
5300
5306
|
}
|
|
5301
|
-
function
|
|
5307
|
+
function hi(e, t, n, r) {
|
|
5302
5308
|
D(t !== void 0);
|
|
5303
5309
|
let i = e.repeated;
|
|
5304
5310
|
switch (e.kind) {
|
|
5305
5311
|
case "scalar":
|
|
5306
5312
|
case "enum":
|
|
5307
5313
|
let a = e.kind == "enum" ? k.INT32 : e.T;
|
|
5308
|
-
if (i) if (D(Array.isArray(t)), e.packed)
|
|
5309
|
-
else for (let r of t)
|
|
5310
|
-
else
|
|
5314
|
+
if (i) if (D(Array.isArray(t)), e.packed) yi(n, a, e.no, t);
|
|
5315
|
+
else for (let r of t) vi(n, a, e.no, r);
|
|
5316
|
+
else vi(n, a, e.no, t);
|
|
5311
5317
|
break;
|
|
5312
5318
|
case "message":
|
|
5313
5319
|
if (i) {
|
|
5314
5320
|
D(Array.isArray(t));
|
|
5315
|
-
for (let i of t)
|
|
5316
|
-
} else
|
|
5321
|
+
for (let i of t) _i(n, r, e, i);
|
|
5322
|
+
} else _i(n, r, e, t);
|
|
5317
5323
|
break;
|
|
5318
5324
|
case "map":
|
|
5319
5325
|
D(typeof t == "object" && !!t);
|
|
5320
|
-
for (let [i, a] of Object.entries(t))
|
|
5326
|
+
for (let [i, a] of Object.entries(t)) gi(n, r, e, i, a);
|
|
5321
5327
|
break;
|
|
5322
5328
|
}
|
|
5323
5329
|
}
|
|
5324
|
-
function
|
|
5325
|
-
e.tag(n.no,
|
|
5330
|
+
function gi(e, t, n, r, i) {
|
|
5331
|
+
e.tag(n.no, A.LengthDelimited), e.fork();
|
|
5326
5332
|
let a = r;
|
|
5327
5333
|
switch (n.K) {
|
|
5328
5334
|
case k.INT32:
|
|
@@ -5336,57 +5342,57 @@ function _i(e, t, n, r, i) {
|
|
|
5336
5342
|
D(r == "true" || r == "false"), a = r == "true";
|
|
5337
5343
|
break;
|
|
5338
5344
|
}
|
|
5339
|
-
switch (
|
|
5345
|
+
switch (vi(e, n.K, 1, a), n.V.kind) {
|
|
5340
5346
|
case "scalar":
|
|
5341
|
-
|
|
5347
|
+
vi(e, n.V.T, 2, i);
|
|
5342
5348
|
break;
|
|
5343
5349
|
case "enum":
|
|
5344
|
-
|
|
5350
|
+
vi(e, k.INT32, 2, i);
|
|
5345
5351
|
break;
|
|
5346
5352
|
case "message":
|
|
5347
|
-
D(i !== void 0), e.tag(2,
|
|
5353
|
+
D(i !== void 0), e.tag(2, A.LengthDelimited).bytes(i.toBinary(t));
|
|
5348
5354
|
break;
|
|
5349
5355
|
}
|
|
5350
5356
|
e.join();
|
|
5351
5357
|
}
|
|
5352
|
-
function
|
|
5353
|
-
let i =
|
|
5354
|
-
n.delimited ? e.tag(n.no,
|
|
5358
|
+
function _i(e, t, n, r) {
|
|
5359
|
+
let i = Vr(n.T, r);
|
|
5360
|
+
n.delimited ? e.tag(n.no, A.StartGroup).raw(i.toBinary(t)).tag(n.no, A.EndGroup) : e.tag(n.no, A.LengthDelimited).bytes(i.toBinary(t));
|
|
5355
5361
|
}
|
|
5356
|
-
function
|
|
5362
|
+
function vi(e, t, n, r) {
|
|
5357
5363
|
D(r !== void 0);
|
|
5358
|
-
let [i, a] =
|
|
5364
|
+
let [i, a] = bi(t);
|
|
5359
5365
|
e.tag(n, i)[a](r);
|
|
5360
5366
|
}
|
|
5361
|
-
function
|
|
5367
|
+
function yi(e, t, n, r) {
|
|
5362
5368
|
if (!r.length) return;
|
|
5363
|
-
e.tag(n,
|
|
5364
|
-
let [, i] =
|
|
5369
|
+
e.tag(n, A.LengthDelimited).fork();
|
|
5370
|
+
let [, i] = bi(t);
|
|
5365
5371
|
for (let t = 0; t < r.length; t++) e[i](r[t]);
|
|
5366
5372
|
e.join();
|
|
5367
5373
|
}
|
|
5368
|
-
function
|
|
5369
|
-
let t =
|
|
5374
|
+
function bi(e) {
|
|
5375
|
+
let t = A.Varint;
|
|
5370
5376
|
switch (e) {
|
|
5371
5377
|
case k.BYTES:
|
|
5372
5378
|
case k.STRING:
|
|
5373
|
-
t =
|
|
5379
|
+
t = A.LengthDelimited;
|
|
5374
5380
|
break;
|
|
5375
5381
|
case k.DOUBLE:
|
|
5376
5382
|
case k.FIXED64:
|
|
5377
5383
|
case k.SFIXED64:
|
|
5378
|
-
t =
|
|
5384
|
+
t = A.Bit64;
|
|
5379
5385
|
break;
|
|
5380
5386
|
case k.FIXED32:
|
|
5381
5387
|
case k.SFIXED32:
|
|
5382
5388
|
case k.FLOAT:
|
|
5383
|
-
t =
|
|
5389
|
+
t = A.Bit32;
|
|
5384
5390
|
break;
|
|
5385
5391
|
}
|
|
5386
5392
|
let n = k[e].toLowerCase();
|
|
5387
5393
|
return [t, n];
|
|
5388
5394
|
}
|
|
5389
|
-
function
|
|
5395
|
+
function xi() {
|
|
5390
5396
|
return {
|
|
5391
5397
|
setEnumType: nr,
|
|
5392
5398
|
initPartial(e, t) {
|
|
@@ -5399,7 +5405,7 @@ function Si() {
|
|
|
5399
5405
|
let e = a[n].case;
|
|
5400
5406
|
if (e === void 0) continue;
|
|
5401
5407
|
let t = r.findField(e), o = a[n].value;
|
|
5402
|
-
t && t.kind == "message" && !
|
|
5408
|
+
t && t.kind == "message" && !Br(o, t.T) ? o = new t.T(o) : t && t.kind === "scalar" && t.T === k.BYTES && (o = Ci(o)), i[n] = {
|
|
5403
5409
|
case: e,
|
|
5404
5410
|
value: o
|
|
5405
5411
|
};
|
|
@@ -5407,13 +5413,13 @@ function Si() {
|
|
|
5407
5413
|
case "scalar":
|
|
5408
5414
|
case "enum":
|
|
5409
5415
|
let s = a[n];
|
|
5410
|
-
r.T === k.BYTES && (s = r.repeated ? s.map(
|
|
5416
|
+
r.T === k.BYTES && (s = r.repeated ? s.map(Ci) : Ci(s)), i[n] = s;
|
|
5411
5417
|
break;
|
|
5412
5418
|
case "map":
|
|
5413
5419
|
switch (r.V.kind) {
|
|
5414
5420
|
case "scalar":
|
|
5415
5421
|
case "enum":
|
|
5416
|
-
if (r.V.T === k.BYTES) for (let [e, t] of Object.entries(a[n])) i[n][e] =
|
|
5422
|
+
if (r.V.T === k.BYTES) for (let [e, t] of Object.entries(a[n])) i[n][e] = Ci(t);
|
|
5417
5423
|
else Object.assign(i[n], a[n]);
|
|
5418
5424
|
break;
|
|
5419
5425
|
case "message":
|
|
@@ -5427,10 +5433,10 @@ function Si() {
|
|
|
5427
5433
|
break;
|
|
5428
5434
|
case "message":
|
|
5429
5435
|
let c = r.T;
|
|
5430
|
-
if (r.repeated) i[n] = a[n].map((e) =>
|
|
5436
|
+
if (r.repeated) i[n] = a[n].map((e) => Br(e, c) ? e : new c(e));
|
|
5431
5437
|
else {
|
|
5432
5438
|
let e = a[n];
|
|
5433
|
-
c.fieldWrapper ? c.typeName === "google.protobuf.BytesValue" ? i[n] =
|
|
5439
|
+
c.fieldWrapper ? c.typeName === "google.protobuf.BytesValue" ? i[n] = Ci(e) : i[n] = e : i[n] = Br(e, c) ? e : new c(e);
|
|
5434
5440
|
}
|
|
5435
5441
|
break;
|
|
5436
5442
|
}
|
|
@@ -5451,7 +5457,7 @@ function Si() {
|
|
|
5451
5457
|
switch (e.kind) {
|
|
5452
5458
|
case "message":
|
|
5453
5459
|
let t = r, n = i;
|
|
5454
|
-
return e.T.fieldWrapper && (t !== void 0 && !
|
|
5460
|
+
return e.T.fieldWrapper && (t !== void 0 && !Br(t) && (t = e.T.fieldWrapper.wrapField(t)), n !== void 0 && !Br(n) && (n = e.T.fieldWrapper.wrapField(n))), e.T.equals(t, n);
|
|
5455
5461
|
case "enum": return Sr(k.INT32, r, i);
|
|
5456
5462
|
case "scalar": return Sr(e.T, r, i);
|
|
5457
5463
|
case "oneof":
|
|
@@ -5483,14 +5489,14 @@ function Si() {
|
|
|
5483
5489
|
let t = e.getType(), n = new t(), r = n;
|
|
5484
5490
|
for (let n of t.fields.byMember()) {
|
|
5485
5491
|
let t = e[n.localName], i;
|
|
5486
|
-
if (n.repeated) i = t.map(
|
|
5492
|
+
if (n.repeated) i = t.map(Si);
|
|
5487
5493
|
else if (n.kind == "map") {
|
|
5488
5494
|
i = r[n.localName];
|
|
5489
|
-
for (let [e, n] of Object.entries(t)) i[e] =
|
|
5495
|
+
for (let [e, n] of Object.entries(t)) i[e] = Si(n);
|
|
5490
5496
|
} else i = n.kind == "oneof" ? n.findField(t.case) ? {
|
|
5491
5497
|
case: t.case,
|
|
5492
|
-
value:
|
|
5493
|
-
} : { case: void 0 } :
|
|
5498
|
+
value: Si(t.value)
|
|
5499
|
+
} : { case: void 0 } : Si(t);
|
|
5494
5500
|
r[n.localName] = i;
|
|
5495
5501
|
}
|
|
5496
5502
|
for (let n of t.runtime.bin.listUnknownFields(e)) t.runtime.bin.onUnknownField(r, n.no, n.wireType, n.data);
|
|
@@ -5498,24 +5504,24 @@ function Si() {
|
|
|
5498
5504
|
}
|
|
5499
5505
|
};
|
|
5500
5506
|
}
|
|
5501
|
-
function
|
|
5507
|
+
function Si(e) {
|
|
5502
5508
|
if (e === void 0) return e;
|
|
5503
|
-
if (
|
|
5509
|
+
if (Br(e)) return e.clone();
|
|
5504
5510
|
if (e instanceof Uint8Array) {
|
|
5505
5511
|
let t = new Uint8Array(e.byteLength);
|
|
5506
5512
|
return t.set(e), t;
|
|
5507
5513
|
}
|
|
5508
5514
|
return e;
|
|
5509
5515
|
}
|
|
5510
|
-
function
|
|
5516
|
+
function Ci(e) {
|
|
5511
5517
|
return e instanceof Uint8Array ? e : new Uint8Array(e);
|
|
5512
5518
|
}
|
|
5513
|
-
function
|
|
5519
|
+
function wi(e, t, n) {
|
|
5514
5520
|
return {
|
|
5515
5521
|
syntax: e,
|
|
5516
|
-
json:
|
|
5517
|
-
bin:
|
|
5518
|
-
util: Object.assign(Object.assign({},
|
|
5522
|
+
json: Jr(),
|
|
5523
|
+
bin: li(),
|
|
5524
|
+
util: Object.assign(Object.assign({}, xi()), {
|
|
5519
5525
|
newFieldList: t,
|
|
5520
5526
|
initFields: n
|
|
5521
5527
|
}),
|
|
@@ -5526,11 +5532,11 @@ function Ti(e, t, n) {
|
|
|
5526
5532
|
makeEnumType: rr,
|
|
5527
5533
|
getEnumType: tr,
|
|
5528
5534
|
makeExtension(e, t, n) {
|
|
5529
|
-
return
|
|
5535
|
+
return Dr(this, e, t, n);
|
|
5530
5536
|
}
|
|
5531
5537
|
};
|
|
5532
5538
|
}
|
|
5533
|
-
var
|
|
5539
|
+
var Ti = class {
|
|
5534
5540
|
constructor(e, t) {
|
|
5535
5541
|
this._fields = e, this._normalizer = t;
|
|
5536
5542
|
}
|
|
@@ -5565,15 +5571,15 @@ var Ei = class {
|
|
|
5565
5571
|
return this.members;
|
|
5566
5572
|
}
|
|
5567
5573
|
};
|
|
5568
|
-
function
|
|
5569
|
-
let n =
|
|
5570
|
-
return t ? n :
|
|
5574
|
+
function Ei(e, t) {
|
|
5575
|
+
let n = ki(e);
|
|
5576
|
+
return t ? n : Pi(Ni(n));
|
|
5571
5577
|
}
|
|
5572
|
-
function
|
|
5573
|
-
return
|
|
5578
|
+
function Di(e) {
|
|
5579
|
+
return Ei(e, !1);
|
|
5574
5580
|
}
|
|
5575
|
-
var
|
|
5576
|
-
function
|
|
5581
|
+
var Oi = ki;
|
|
5582
|
+
function ki(e) {
|
|
5577
5583
|
let t = !1, n = [];
|
|
5578
5584
|
for (let r = 0; r < e.length; r++) {
|
|
5579
5585
|
let i = e.charAt(r);
|
|
@@ -5600,12 +5606,12 @@ function Ai(e) {
|
|
|
5600
5606
|
}
|
|
5601
5607
|
return n.join("");
|
|
5602
5608
|
}
|
|
5603
|
-
var
|
|
5609
|
+
var Ai = new Set([
|
|
5604
5610
|
"constructor",
|
|
5605
5611
|
"toString",
|
|
5606
5612
|
"toJSON",
|
|
5607
5613
|
"valueOf"
|
|
5608
|
-
]),
|
|
5614
|
+
]), ji = new Set([
|
|
5609
5615
|
"getType",
|
|
5610
5616
|
"clone",
|
|
5611
5617
|
"equals",
|
|
@@ -5616,9 +5622,9 @@ var ji = new Set([
|
|
|
5616
5622
|
"toJson",
|
|
5617
5623
|
"toJsonString",
|
|
5618
5624
|
"toObject"
|
|
5619
|
-
]),
|
|
5625
|
+
]), Mi = (e) => `${e}\$`, Ni = (e) => ji.has(e) ? Mi(e) : e, Pi = (e) => Ai.has(e) ? Mi(e) : e, Fi = class {
|
|
5620
5626
|
constructor(e) {
|
|
5621
|
-
this.kind = "oneof", this.repeated = !1, this.packed = !1, this.opt = !1, this.req = !1, this.default = void 0, this.fields = [], this.name = e, this.localName =
|
|
5627
|
+
this.kind = "oneof", this.repeated = !1, this.packed = !1, this.opt = !1, this.req = !1, this.default = void 0, this.fields = [], this.name = e, this.localName = Di(e);
|
|
5622
5628
|
}
|
|
5623
5629
|
addField(e) {
|
|
5624
5630
|
D(e.oneof === this, `field ${e.name} not one of ${this.name}`), this.fields.push(e);
|
|
@@ -5631,19 +5637,19 @@ var ji = new Set([
|
|
|
5631
5637
|
return this._lookup[e];
|
|
5632
5638
|
}
|
|
5633
5639
|
};
|
|
5634
|
-
function
|
|
5640
|
+
function Ii(e, t) {
|
|
5635
5641
|
let n = [], r;
|
|
5636
5642
|
for (let t of typeof e == "function" ? e() : e) {
|
|
5637
5643
|
let e = t;
|
|
5638
|
-
if (e.localName =
|
|
5644
|
+
if (e.localName = Ei(t.name, t.oneof !== void 0), e.jsonName = t.jsonName ?? Oi(t.name), e.repeated = t.repeated ?? !1, t.kind == "scalar" && (e.L = t.L ?? xr.BIGINT), e.delimited = t.delimited ?? !1, e.req = t.req ?? !1, e.opt = t.opt ?? !1, t.packed === void 0 && (e.packed = t.kind == "enum" || t.kind == "scalar" && t.T != k.BYTES && t.T != k.STRING), t.oneof !== void 0) {
|
|
5639
5645
|
let n = typeof t.oneof == "string" ? t.oneof : t.oneof.name;
|
|
5640
|
-
(!r || r.name != n) && (r = new
|
|
5646
|
+
(!r || r.name != n) && (r = new Fi(n)), e.oneof = r, r.addField(e);
|
|
5641
5647
|
}
|
|
5642
5648
|
n.push(e);
|
|
5643
5649
|
}
|
|
5644
5650
|
return n;
|
|
5645
5651
|
}
|
|
5646
|
-
var
|
|
5652
|
+
var j = wi("proto3", (e) => new Ti(e, (e) => Ii(e)), (e) => {
|
|
5647
5653
|
for (let t of e.getType().fields.byMember()) {
|
|
5648
5654
|
if (t.opt) continue;
|
|
5649
5655
|
let n = t.localName, r = e;
|
|
@@ -5666,12 +5672,12 @@ var A = Ti("proto3", (e) => new Ei(e, (e) => Li(e)), (e) => {
|
|
|
5666
5672
|
break;
|
|
5667
5673
|
}
|
|
5668
5674
|
}
|
|
5669
|
-
}),
|
|
5675
|
+
}), Li = class e extends or {
|
|
5670
5676
|
constructor(e) {
|
|
5671
|
-
super(), this.seconds = O.zero, this.nanos = 0,
|
|
5677
|
+
super(), this.seconds = O.zero, this.nanos = 0, j.util.initPartial(e, this);
|
|
5672
5678
|
}
|
|
5673
5679
|
fromJson(e, t) {
|
|
5674
|
-
if (typeof e != "string") throw Error(`cannot decode google.protobuf.Timestamp from JSON: ${
|
|
5680
|
+
if (typeof e != "string") throw Error(`cannot decode google.protobuf.Timestamp from JSON: ${j.json.debug(e)}`);
|
|
5675
5681
|
let n = e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
|
|
5676
5682
|
if (!n) throw Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");
|
|
5677
5683
|
let r = Date.parse(n[1] + "-" + n[2] + "-" + n[3] + "T" + n[4] + ":" + n[5] + ":" + n[6] + (n[8] ? n[8] : "Z"));
|
|
@@ -5713,10 +5719,10 @@ var A = Ti("proto3", (e) => new Ei(e, (e) => Li(e)), (e) => {
|
|
|
5713
5719
|
return new e().fromJsonString(t, n);
|
|
5714
5720
|
}
|
|
5715
5721
|
static equals(t, n) {
|
|
5716
|
-
return
|
|
5722
|
+
return j.util.equals(e, t, n);
|
|
5717
5723
|
}
|
|
5718
5724
|
};
|
|
5719
|
-
|
|
5725
|
+
Li.runtime = j, Li.typeName = "google.protobuf.Timestamp", Li.fields = j.util.newFieldList(() => [{
|
|
5720
5726
|
no: 1,
|
|
5721
5727
|
name: "seconds",
|
|
5722
5728
|
kind: "scalar",
|
|
@@ -5727,7 +5733,7 @@ Ri.runtime = A, Ri.typeName = "google.protobuf.Timestamp", Ri.fields = A.util.ne
|
|
|
5727
5733
|
kind: "scalar",
|
|
5728
5734
|
T: 5
|
|
5729
5735
|
}]);
|
|
5730
|
-
var
|
|
5736
|
+
var Ri = /* @__PURE__ */ j.makeMessageType("livekit.MetricsBatch", () => [
|
|
5731
5737
|
{
|
|
5732
5738
|
no: 1,
|
|
5733
5739
|
name: "timestamp_ms",
|
|
@@ -5738,7 +5744,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
5738
5744
|
no: 2,
|
|
5739
5745
|
name: "normalized_timestamp",
|
|
5740
5746
|
kind: "message",
|
|
5741
|
-
T:
|
|
5747
|
+
T: Li
|
|
5742
5748
|
},
|
|
5743
5749
|
{
|
|
5744
5750
|
no: 3,
|
|
@@ -5751,17 +5757,17 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
5751
5757
|
no: 4,
|
|
5752
5758
|
name: "time_series",
|
|
5753
5759
|
kind: "message",
|
|
5754
|
-
T:
|
|
5760
|
+
T: zi,
|
|
5755
5761
|
repeated: !0
|
|
5756
5762
|
},
|
|
5757
5763
|
{
|
|
5758
5764
|
no: 5,
|
|
5759
5765
|
name: "events",
|
|
5760
5766
|
kind: "message",
|
|
5761
|
-
T:
|
|
5767
|
+
T: Vi,
|
|
5762
5768
|
repeated: !0
|
|
5763
5769
|
}
|
|
5764
|
-
]),
|
|
5770
|
+
]), zi = /* @__PURE__ */ j.makeMessageType("livekit.TimeSeriesMetric", () => [
|
|
5765
5771
|
{
|
|
5766
5772
|
no: 1,
|
|
5767
5773
|
name: "label",
|
|
@@ -5784,7 +5790,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
5784
5790
|
no: 4,
|
|
5785
5791
|
name: "samples",
|
|
5786
5792
|
kind: "message",
|
|
5787
|
-
T:
|
|
5793
|
+
T: Bi,
|
|
5788
5794
|
repeated: !0
|
|
5789
5795
|
},
|
|
5790
5796
|
{
|
|
@@ -5793,7 +5799,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
5793
5799
|
kind: "scalar",
|
|
5794
5800
|
T: 13
|
|
5795
5801
|
}
|
|
5796
|
-
]),
|
|
5802
|
+
]), Bi = /* @__PURE__ */ j.makeMessageType("livekit.MetricSample", () => [
|
|
5797
5803
|
{
|
|
5798
5804
|
no: 1,
|
|
5799
5805
|
name: "timestamp_ms",
|
|
@@ -5804,7 +5810,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
5804
5810
|
no: 2,
|
|
5805
5811
|
name: "normalized_timestamp",
|
|
5806
5812
|
kind: "message",
|
|
5807
|
-
T:
|
|
5813
|
+
T: Li
|
|
5808
5814
|
},
|
|
5809
5815
|
{
|
|
5810
5816
|
no: 3,
|
|
@@ -5812,7 +5818,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
5812
5818
|
kind: "scalar",
|
|
5813
5819
|
T: 2
|
|
5814
5820
|
}
|
|
5815
|
-
]),
|
|
5821
|
+
]), Vi = /* @__PURE__ */ j.makeMessageType("livekit.EventMetric", () => [
|
|
5816
5822
|
{
|
|
5817
5823
|
no: 1,
|
|
5818
5824
|
name: "label",
|
|
@@ -5848,13 +5854,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
5848
5854
|
no: 6,
|
|
5849
5855
|
name: "normalized_start_timestamp",
|
|
5850
5856
|
kind: "message",
|
|
5851
|
-
T:
|
|
5857
|
+
T: Li
|
|
5852
5858
|
},
|
|
5853
5859
|
{
|
|
5854
5860
|
no: 7,
|
|
5855
5861
|
name: "normalized_end_timestamp",
|
|
5856
5862
|
kind: "message",
|
|
5857
|
-
T:
|
|
5863
|
+
T: Li,
|
|
5858
5864
|
opt: !0
|
|
5859
5865
|
},
|
|
5860
5866
|
{
|
|
@@ -5869,7 +5875,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
5869
5875
|
kind: "scalar",
|
|
5870
5876
|
T: 13
|
|
5871
5877
|
}
|
|
5872
|
-
]),
|
|
5878
|
+
]), Hi = /* @__PURE__ */ j.makeEnum("livekit.BackupCodecPolicy", [
|
|
5873
5879
|
{
|
|
5874
5880
|
no: 0,
|
|
5875
5881
|
name: "PREFER_REGRESSION"
|
|
@@ -5882,7 +5888,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
5882
5888
|
no: 2,
|
|
5883
5889
|
name: "REGRESSION"
|
|
5884
5890
|
}
|
|
5885
|
-
]),
|
|
5891
|
+
]), Ui = /* @__PURE__ */ j.makeEnum("livekit.TrackType", [
|
|
5886
5892
|
{
|
|
5887
5893
|
no: 0,
|
|
5888
5894
|
name: "AUDIO"
|
|
@@ -5895,7 +5901,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
5895
5901
|
no: 2,
|
|
5896
5902
|
name: "DATA"
|
|
5897
5903
|
}
|
|
5898
|
-
]),
|
|
5904
|
+
]), Wi = /* @__PURE__ */ j.makeEnum("livekit.TrackSource", [
|
|
5899
5905
|
{
|
|
5900
5906
|
no: 0,
|
|
5901
5907
|
name: "UNKNOWN"
|
|
@@ -5916,7 +5922,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
5916
5922
|
no: 4,
|
|
5917
5923
|
name: "SCREEN_SHARE_AUDIO"
|
|
5918
5924
|
}
|
|
5919
|
-
]), Gi = /* @__PURE__ */
|
|
5925
|
+
]), Gi = /* @__PURE__ */ j.makeEnum("livekit.VideoQuality", [
|
|
5920
5926
|
{
|
|
5921
5927
|
no: 0,
|
|
5922
5928
|
name: "LOW"
|
|
@@ -5933,7 +5939,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
5933
5939
|
no: 3,
|
|
5934
5940
|
name: "OFF"
|
|
5935
5941
|
}
|
|
5936
|
-
]), Ki = /* @__PURE__ */
|
|
5942
|
+
]), Ki = /* @__PURE__ */ j.makeEnum("livekit.ConnectionQuality", [
|
|
5937
5943
|
{
|
|
5938
5944
|
no: 0,
|
|
5939
5945
|
name: "POOR"
|
|
@@ -5950,7 +5956,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
5950
5956
|
no: 3,
|
|
5951
5957
|
name: "LOST"
|
|
5952
5958
|
}
|
|
5953
|
-
]), qi = /* @__PURE__ */
|
|
5959
|
+
]), qi = /* @__PURE__ */ j.makeEnum("livekit.ClientConfigSetting", [
|
|
5954
5960
|
{
|
|
5955
5961
|
no: 0,
|
|
5956
5962
|
name: "UNSET"
|
|
@@ -5963,7 +5969,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
5963
5969
|
no: 2,
|
|
5964
5970
|
name: "ENABLED"
|
|
5965
5971
|
}
|
|
5966
|
-
]), Ji = /* @__PURE__ */
|
|
5972
|
+
]), Ji = /* @__PURE__ */ j.makeEnum("livekit.DisconnectReason", [
|
|
5967
5973
|
{
|
|
5968
5974
|
no: 0,
|
|
5969
5975
|
name: "UNKNOWN_REASON"
|
|
@@ -6028,7 +6034,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6028
6034
|
no: 15,
|
|
6029
6035
|
name: "MEDIA_FAILURE"
|
|
6030
6036
|
}
|
|
6031
|
-
]), Yi = /* @__PURE__ */
|
|
6037
|
+
]), Yi = /* @__PURE__ */ j.makeEnum("livekit.ReconnectReason", [
|
|
6032
6038
|
{
|
|
6033
6039
|
no: 0,
|
|
6034
6040
|
name: "RR_UNKNOWN"
|
|
@@ -6049,7 +6055,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6049
6055
|
no: 4,
|
|
6050
6056
|
name: "RR_SWITCH_CANDIDATE"
|
|
6051
6057
|
}
|
|
6052
|
-
]), Xi = /* @__PURE__ */
|
|
6058
|
+
]), Xi = /* @__PURE__ */ j.makeEnum("livekit.SubscriptionError", [
|
|
6053
6059
|
{
|
|
6054
6060
|
no: 0,
|
|
6055
6061
|
name: "SE_UNKNOWN"
|
|
@@ -6062,7 +6068,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6062
6068
|
no: 2,
|
|
6063
6069
|
name: "SE_TRACK_NOTFOUND"
|
|
6064
6070
|
}
|
|
6065
|
-
]), Zi = /* @__PURE__ */
|
|
6071
|
+
]), Zi = /* @__PURE__ */ j.makeEnum("livekit.AudioTrackFeature", [
|
|
6066
6072
|
{
|
|
6067
6073
|
no: 0,
|
|
6068
6074
|
name: "TF_STEREO"
|
|
@@ -6091,7 +6097,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6091
6097
|
no: 6,
|
|
6092
6098
|
name: "TF_PRECONNECT_BUFFER"
|
|
6093
6099
|
}
|
|
6094
|
-
]), Qi = /* @__PURE__ */
|
|
6100
|
+
]), Qi = /* @__PURE__ */ j.makeMessageType("livekit.Room", () => [
|
|
6095
6101
|
{
|
|
6096
6102
|
no: 1,
|
|
6097
6103
|
name: "sid",
|
|
@@ -6177,7 +6183,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6177
6183
|
kind: "message",
|
|
6178
6184
|
T: Pa
|
|
6179
6185
|
}
|
|
6180
|
-
]), $i = /* @__PURE__ */
|
|
6186
|
+
]), $i = /* @__PURE__ */ j.makeMessageType("livekit.Codec", () => [{
|
|
6181
6187
|
no: 1,
|
|
6182
6188
|
name: "mime",
|
|
6183
6189
|
kind: "scalar",
|
|
@@ -6187,7 +6193,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6187
6193
|
name: "fmtp_line",
|
|
6188
6194
|
kind: "scalar",
|
|
6189
6195
|
T: 9
|
|
6190
|
-
}]), ea = /* @__PURE__ */
|
|
6196
|
+
}]), ea = /* @__PURE__ */ j.makeMessageType("livekit.ParticipantPermission", () => [
|
|
6191
6197
|
{
|
|
6192
6198
|
no: 1,
|
|
6193
6199
|
name: "can_subscribe",
|
|
@@ -6210,7 +6216,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6210
6216
|
no: 9,
|
|
6211
6217
|
name: "can_publish_sources",
|
|
6212
6218
|
kind: "enum",
|
|
6213
|
-
T:
|
|
6219
|
+
T: j.getEnumType(Wi),
|
|
6214
6220
|
repeated: !0
|
|
6215
6221
|
},
|
|
6216
6222
|
{
|
|
@@ -6243,7 +6249,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6243
6249
|
kind: "scalar",
|
|
6244
6250
|
T: 8
|
|
6245
6251
|
}
|
|
6246
|
-
]), ta = /* @__PURE__ */
|
|
6252
|
+
]), ta = /* @__PURE__ */ j.makeMessageType("livekit.ParticipantInfo", () => [
|
|
6247
6253
|
{
|
|
6248
6254
|
no: 1,
|
|
6249
6255
|
name: "sid",
|
|
@@ -6260,7 +6266,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6260
6266
|
no: 3,
|
|
6261
6267
|
name: "state",
|
|
6262
6268
|
kind: "enum",
|
|
6263
|
-
T:
|
|
6269
|
+
T: j.getEnumType(na)
|
|
6264
6270
|
},
|
|
6265
6271
|
{
|
|
6266
6272
|
no: 4,
|
|
@@ -6321,7 +6327,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6321
6327
|
no: 14,
|
|
6322
6328
|
name: "kind",
|
|
6323
6329
|
kind: "enum",
|
|
6324
|
-
T:
|
|
6330
|
+
T: j.getEnumType(ra)
|
|
6325
6331
|
},
|
|
6326
6332
|
{
|
|
6327
6333
|
no: 15,
|
|
@@ -6337,13 +6343,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6337
6343
|
no: 16,
|
|
6338
6344
|
name: "disconnect_reason",
|
|
6339
6345
|
kind: "enum",
|
|
6340
|
-
T:
|
|
6346
|
+
T: j.getEnumType(Ji)
|
|
6341
6347
|
},
|
|
6342
6348
|
{
|
|
6343
6349
|
no: 18,
|
|
6344
6350
|
name: "kind_details",
|
|
6345
6351
|
kind: "enum",
|
|
6346
|
-
T:
|
|
6352
|
+
T: j.getEnumType(ia),
|
|
6347
6353
|
repeated: !0
|
|
6348
6354
|
},
|
|
6349
6355
|
{
|
|
@@ -6353,7 +6359,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6353
6359
|
T: sa,
|
|
6354
6360
|
repeated: !0
|
|
6355
6361
|
}
|
|
6356
|
-
]), na = /* @__PURE__ */
|
|
6362
|
+
]), na = /* @__PURE__ */ j.makeEnum("livekit.ParticipantInfo.State", [
|
|
6357
6363
|
{
|
|
6358
6364
|
no: 0,
|
|
6359
6365
|
name: "JOINING"
|
|
@@ -6370,7 +6376,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6370
6376
|
no: 3,
|
|
6371
6377
|
name: "DISCONNECTED"
|
|
6372
6378
|
}
|
|
6373
|
-
]), ra = /* @__PURE__ */
|
|
6379
|
+
]), ra = /* @__PURE__ */ j.makeEnum("livekit.ParticipantInfo.Kind", [
|
|
6374
6380
|
{
|
|
6375
6381
|
no: 0,
|
|
6376
6382
|
name: "STANDARD"
|
|
@@ -6399,7 +6405,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6399
6405
|
no: 8,
|
|
6400
6406
|
name: "BRIDGE"
|
|
6401
6407
|
}
|
|
6402
|
-
]), ia = /* @__PURE__ */
|
|
6408
|
+
]), ia = /* @__PURE__ */ j.makeEnum("livekit.ParticipantInfo.KindDetail", [
|
|
6403
6409
|
{
|
|
6404
6410
|
no: 0,
|
|
6405
6411
|
name: "CLOUD_AGENT"
|
|
@@ -6420,7 +6426,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6420
6426
|
no: 4,
|
|
6421
6427
|
name: "BRIDGE_RTSP"
|
|
6422
6428
|
}
|
|
6423
|
-
]), M = /* @__PURE__ */
|
|
6429
|
+
]), M = /* @__PURE__ */ j.makeEnum("livekit.Encryption.Type", [
|
|
6424
6430
|
{
|
|
6425
6431
|
no: 0,
|
|
6426
6432
|
name: "NONE"
|
|
@@ -6433,7 +6439,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6433
6439
|
no: 2,
|
|
6434
6440
|
name: "CUSTOM"
|
|
6435
6441
|
}
|
|
6436
|
-
]), aa = /* @__PURE__ */
|
|
6442
|
+
]), aa = /* @__PURE__ */ j.makeMessageType("livekit.SimulcastCodecInfo", () => [
|
|
6437
6443
|
{
|
|
6438
6444
|
no: 1,
|
|
6439
6445
|
name: "mime_type",
|
|
@@ -6463,7 +6469,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6463
6469
|
no: 5,
|
|
6464
6470
|
name: "video_layer_mode",
|
|
6465
6471
|
kind: "enum",
|
|
6466
|
-
T:
|
|
6472
|
+
T: j.getEnumType(ua)
|
|
6467
6473
|
},
|
|
6468
6474
|
{
|
|
6469
6475
|
no: 6,
|
|
@@ -6471,7 +6477,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6471
6477
|
kind: "scalar",
|
|
6472
6478
|
T: 9
|
|
6473
6479
|
}
|
|
6474
|
-
]), oa = /* @__PURE__ */
|
|
6480
|
+
]), oa = /* @__PURE__ */ j.makeMessageType("livekit.TrackInfo", () => [
|
|
6475
6481
|
{
|
|
6476
6482
|
no: 1,
|
|
6477
6483
|
name: "sid",
|
|
@@ -6482,7 +6488,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6482
6488
|
no: 2,
|
|
6483
6489
|
name: "type",
|
|
6484
6490
|
kind: "enum",
|
|
6485
|
-
T:
|
|
6491
|
+
T: j.getEnumType(Ui)
|
|
6486
6492
|
},
|
|
6487
6493
|
{
|
|
6488
6494
|
no: 3,
|
|
@@ -6524,7 +6530,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6524
6530
|
no: 9,
|
|
6525
6531
|
name: "source",
|
|
6526
6532
|
kind: "enum",
|
|
6527
|
-
T:
|
|
6533
|
+
T: j.getEnumType(Wi)
|
|
6528
6534
|
},
|
|
6529
6535
|
{
|
|
6530
6536
|
no: 10,
|
|
@@ -6568,7 +6574,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6568
6574
|
no: 16,
|
|
6569
6575
|
name: "encryption",
|
|
6570
6576
|
kind: "enum",
|
|
6571
|
-
T:
|
|
6577
|
+
T: j.getEnumType(M)
|
|
6572
6578
|
},
|
|
6573
6579
|
{
|
|
6574
6580
|
no: 17,
|
|
@@ -6586,16 +6592,16 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6586
6592
|
no: 19,
|
|
6587
6593
|
name: "audio_features",
|
|
6588
6594
|
kind: "enum",
|
|
6589
|
-
T:
|
|
6595
|
+
T: j.getEnumType(Zi),
|
|
6590
6596
|
repeated: !0
|
|
6591
6597
|
},
|
|
6592
6598
|
{
|
|
6593
6599
|
no: 20,
|
|
6594
6600
|
name: "backup_codec_policy",
|
|
6595
6601
|
kind: "enum",
|
|
6596
|
-
T:
|
|
6602
|
+
T: j.getEnumType(Hi)
|
|
6597
6603
|
}
|
|
6598
|
-
]), sa = /* @__PURE__ */
|
|
6604
|
+
]), sa = /* @__PURE__ */ j.makeMessageType("livekit.DataTrackInfo", () => [
|
|
6599
6605
|
{
|
|
6600
6606
|
no: 1,
|
|
6601
6607
|
name: "pub_handle",
|
|
@@ -6618,20 +6624,20 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6618
6624
|
no: 4,
|
|
6619
6625
|
name: "encryption",
|
|
6620
6626
|
kind: "enum",
|
|
6621
|
-
T:
|
|
6627
|
+
T: j.getEnumType(M)
|
|
6622
6628
|
}
|
|
6623
|
-
]), ca = /* @__PURE__ */
|
|
6629
|
+
]), ca = /* @__PURE__ */ j.makeMessageType("livekit.DataTrackSubscriptionOptions", () => [{
|
|
6624
6630
|
no: 1,
|
|
6625
6631
|
name: "target_fps",
|
|
6626
6632
|
kind: "scalar",
|
|
6627
6633
|
T: 13,
|
|
6628
6634
|
opt: !0
|
|
6629
|
-
}]), la = /* @__PURE__ */
|
|
6635
|
+
}]), la = /* @__PURE__ */ j.makeMessageType("livekit.VideoLayer", () => [
|
|
6630
6636
|
{
|
|
6631
6637
|
no: 1,
|
|
6632
6638
|
name: "quality",
|
|
6633
6639
|
kind: "enum",
|
|
6634
|
-
T:
|
|
6640
|
+
T: j.getEnumType(Gi)
|
|
6635
6641
|
},
|
|
6636
6642
|
{
|
|
6637
6643
|
no: 2,
|
|
@@ -6675,7 +6681,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6675
6681
|
kind: "scalar",
|
|
6676
6682
|
T: 13
|
|
6677
6683
|
}
|
|
6678
|
-
]), ua = /* @__PURE__ */
|
|
6684
|
+
]), ua = /* @__PURE__ */ j.makeEnum("livekit.VideoLayer.Mode", [
|
|
6679
6685
|
{
|
|
6680
6686
|
no: 0,
|
|
6681
6687
|
name: "MODE_UNUSED"
|
|
@@ -6692,12 +6698,12 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6692
6698
|
no: 3,
|
|
6693
6699
|
name: "ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR"
|
|
6694
6700
|
}
|
|
6695
|
-
]), da = /* @__PURE__ */
|
|
6701
|
+
]), da = /* @__PURE__ */ j.makeMessageType("livekit.DataPacket", () => [
|
|
6696
6702
|
{
|
|
6697
6703
|
no: 1,
|
|
6698
6704
|
name: "kind",
|
|
6699
6705
|
kind: "enum",
|
|
6700
|
-
T:
|
|
6706
|
+
T: j.getEnumType(fa)
|
|
6701
6707
|
},
|
|
6702
6708
|
{
|
|
6703
6709
|
no: 4,
|
|
@@ -6744,7 +6750,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6744
6750
|
no: 8,
|
|
6745
6751
|
name: "metrics",
|
|
6746
6752
|
kind: "message",
|
|
6747
|
-
T:
|
|
6753
|
+
T: Ri,
|
|
6748
6754
|
oneof: "value"
|
|
6749
6755
|
},
|
|
6750
6756
|
{
|
|
@@ -6815,18 +6821,18 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6815
6821
|
kind: "scalar",
|
|
6816
6822
|
T: 9
|
|
6817
6823
|
}
|
|
6818
|
-
]), fa = /* @__PURE__ */
|
|
6824
|
+
]), fa = /* @__PURE__ */ j.makeEnum("livekit.DataPacket.Kind", [{
|
|
6819
6825
|
no: 0,
|
|
6820
6826
|
name: "RELIABLE"
|
|
6821
6827
|
}, {
|
|
6822
6828
|
no: 1,
|
|
6823
6829
|
name: "LOSSY"
|
|
6824
|
-
}]), pa = /* @__PURE__ */
|
|
6830
|
+
}]), pa = /* @__PURE__ */ j.makeMessageType("livekit.EncryptedPacket", () => [
|
|
6825
6831
|
{
|
|
6826
6832
|
no: 1,
|
|
6827
6833
|
name: "encryption_type",
|
|
6828
6834
|
kind: "enum",
|
|
6829
|
-
T:
|
|
6835
|
+
T: j.getEnumType(M)
|
|
6830
6836
|
},
|
|
6831
6837
|
{
|
|
6832
6838
|
no: 2,
|
|
@@ -6846,7 +6852,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6846
6852
|
kind: "scalar",
|
|
6847
6853
|
T: 12
|
|
6848
6854
|
}
|
|
6849
|
-
]), ma = /* @__PURE__ */
|
|
6855
|
+
]), ma = /* @__PURE__ */ j.makeMessageType("livekit.EncryptedPacketPayload", () => [
|
|
6850
6856
|
{
|
|
6851
6857
|
no: 1,
|
|
6852
6858
|
name: "user",
|
|
@@ -6903,13 +6909,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6903
6909
|
T: Ba,
|
|
6904
6910
|
oneof: "value"
|
|
6905
6911
|
}
|
|
6906
|
-
]), ha = /* @__PURE__ */
|
|
6912
|
+
]), ha = /* @__PURE__ */ j.makeMessageType("livekit.ActiveSpeakerUpdate", () => [{
|
|
6907
6913
|
no: 1,
|
|
6908
6914
|
name: "speakers",
|
|
6909
6915
|
kind: "message",
|
|
6910
6916
|
T: ga,
|
|
6911
6917
|
repeated: !0
|
|
6912
|
-
}]), ga = /* @__PURE__ */
|
|
6918
|
+
}]), ga = /* @__PURE__ */ j.makeMessageType("livekit.SpeakerInfo", () => [
|
|
6913
6919
|
{
|
|
6914
6920
|
no: 1,
|
|
6915
6921
|
name: "sid",
|
|
@@ -6928,7 +6934,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6928
6934
|
kind: "scalar",
|
|
6929
6935
|
T: 8
|
|
6930
6936
|
}
|
|
6931
|
-
]), _a = /* @__PURE__ */
|
|
6937
|
+
]), _a = /* @__PURE__ */ j.makeMessageType("livekit.UserPacket", () => [
|
|
6932
6938
|
{
|
|
6933
6939
|
no: 1,
|
|
6934
6940
|
name: "participant_sid",
|
|
@@ -6995,7 +7001,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
6995
7001
|
kind: "scalar",
|
|
6996
7002
|
T: 12
|
|
6997
7003
|
}
|
|
6998
|
-
]), va = /* @__PURE__ */
|
|
7004
|
+
]), va = /* @__PURE__ */ j.makeMessageType("livekit.SipDTMF", () => [{
|
|
6999
7005
|
no: 3,
|
|
7000
7006
|
name: "code",
|
|
7001
7007
|
kind: "scalar",
|
|
@@ -7005,7 +7011,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7005
7011
|
name: "digit",
|
|
7006
7012
|
kind: "scalar",
|
|
7007
7013
|
T: 9
|
|
7008
|
-
}]), ya = /* @__PURE__ */
|
|
7014
|
+
}]), ya = /* @__PURE__ */ j.makeMessageType("livekit.Transcription", () => [
|
|
7009
7015
|
{
|
|
7010
7016
|
no: 2,
|
|
7011
7017
|
name: "transcribed_participant_identity",
|
|
@@ -7025,7 +7031,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7025
7031
|
T: ba,
|
|
7026
7032
|
repeated: !0
|
|
7027
7033
|
}
|
|
7028
|
-
]), ba = /* @__PURE__ */
|
|
7034
|
+
]), ba = /* @__PURE__ */ j.makeMessageType("livekit.TranscriptionSegment", () => [
|
|
7029
7035
|
{
|
|
7030
7036
|
no: 1,
|
|
7031
7037
|
name: "id",
|
|
@@ -7062,7 +7068,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7062
7068
|
kind: "scalar",
|
|
7063
7069
|
T: 9
|
|
7064
7070
|
}
|
|
7065
|
-
]), xa = /* @__PURE__ */
|
|
7071
|
+
]), xa = /* @__PURE__ */ j.makeMessageType("livekit.ChatMessage", () => [
|
|
7066
7072
|
{
|
|
7067
7073
|
no: 1,
|
|
7068
7074
|
name: "id",
|
|
@@ -7100,7 +7106,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7100
7106
|
kind: "scalar",
|
|
7101
7107
|
T: 8
|
|
7102
7108
|
}
|
|
7103
|
-
]), Sa = /* @__PURE__ */
|
|
7109
|
+
]), Sa = /* @__PURE__ */ j.makeMessageType("livekit.RpcRequest", () => [
|
|
7104
7110
|
{
|
|
7105
7111
|
no: 1,
|
|
7106
7112
|
name: "id",
|
|
@@ -7131,12 +7137,12 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7131
7137
|
kind: "scalar",
|
|
7132
7138
|
T: 13
|
|
7133
7139
|
}
|
|
7134
|
-
]), Ca = /* @__PURE__ */
|
|
7140
|
+
]), Ca = /* @__PURE__ */ j.makeMessageType("livekit.RpcAck", () => [{
|
|
7135
7141
|
no: 1,
|
|
7136
7142
|
name: "request_id",
|
|
7137
7143
|
kind: "scalar",
|
|
7138
7144
|
T: 9
|
|
7139
|
-
}]), wa = /* @__PURE__ */
|
|
7145
|
+
}]), wa = /* @__PURE__ */ j.makeMessageType("livekit.RpcResponse", () => [
|
|
7140
7146
|
{
|
|
7141
7147
|
no: 1,
|
|
7142
7148
|
name: "request_id",
|
|
@@ -7157,7 +7163,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7157
7163
|
T: Ta,
|
|
7158
7164
|
oneof: "value"
|
|
7159
7165
|
}
|
|
7160
|
-
]), Ta = /* @__PURE__ */
|
|
7166
|
+
]), Ta = /* @__PURE__ */ j.makeMessageType("livekit.RpcError", () => [
|
|
7161
7167
|
{
|
|
7162
7168
|
no: 1,
|
|
7163
7169
|
name: "code",
|
|
@@ -7176,7 +7182,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7176
7182
|
kind: "scalar",
|
|
7177
7183
|
T: 9
|
|
7178
7184
|
}
|
|
7179
|
-
]), Ea = /* @__PURE__ */
|
|
7185
|
+
]), Ea = /* @__PURE__ */ j.makeMessageType("livekit.ParticipantTracks", () => [{
|
|
7180
7186
|
no: 1,
|
|
7181
7187
|
name: "participant_sid",
|
|
7182
7188
|
kind: "scalar",
|
|
@@ -7187,12 +7193,12 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7187
7193
|
kind: "scalar",
|
|
7188
7194
|
T: 9,
|
|
7189
7195
|
repeated: !0
|
|
7190
|
-
}]), Da = /* @__PURE__ */
|
|
7196
|
+
}]), Da = /* @__PURE__ */ j.makeMessageType("livekit.ServerInfo", () => [
|
|
7191
7197
|
{
|
|
7192
7198
|
no: 1,
|
|
7193
7199
|
name: "edition",
|
|
7194
7200
|
kind: "enum",
|
|
7195
|
-
T:
|
|
7201
|
+
T: j.getEnumType(Oa)
|
|
7196
7202
|
},
|
|
7197
7203
|
{
|
|
7198
7204
|
no: 2,
|
|
@@ -7230,18 +7236,18 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7230
7236
|
kind: "scalar",
|
|
7231
7237
|
T: 5
|
|
7232
7238
|
}
|
|
7233
|
-
]), Oa = /* @__PURE__ */
|
|
7239
|
+
]), Oa = /* @__PURE__ */ j.makeEnum("livekit.ServerInfo.Edition", [{
|
|
7234
7240
|
no: 0,
|
|
7235
7241
|
name: "Standard"
|
|
7236
7242
|
}, {
|
|
7237
7243
|
no: 1,
|
|
7238
7244
|
name: "Cloud"
|
|
7239
|
-
}]), ka = /* @__PURE__ */
|
|
7245
|
+
}]), ka = /* @__PURE__ */ j.makeMessageType("livekit.ClientInfo", () => [
|
|
7240
7246
|
{
|
|
7241
7247
|
no: 1,
|
|
7242
7248
|
name: "sdk",
|
|
7243
7249
|
kind: "enum",
|
|
7244
|
-
T:
|
|
7250
|
+
T: j.getEnumType(Aa)
|
|
7245
7251
|
},
|
|
7246
7252
|
{
|
|
7247
7253
|
no: 2,
|
|
@@ -7303,7 +7309,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7303
7309
|
kind: "scalar",
|
|
7304
7310
|
T: 9
|
|
7305
7311
|
}
|
|
7306
|
-
]), Aa = /* @__PURE__ */
|
|
7312
|
+
]), Aa = /* @__PURE__ */ j.makeEnum("livekit.ClientInfo.SDK", [
|
|
7307
7313
|
{
|
|
7308
7314
|
no: 0,
|
|
7309
7315
|
name: "UNKNOWN"
|
|
@@ -7364,7 +7370,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7364
7370
|
no: 14,
|
|
7365
7371
|
name: "ESP32"
|
|
7366
7372
|
}
|
|
7367
|
-
]), ja = /* @__PURE__ */
|
|
7373
|
+
]), ja = /* @__PURE__ */ j.makeMessageType("livekit.ClientConfiguration", () => [
|
|
7368
7374
|
{
|
|
7369
7375
|
no: 1,
|
|
7370
7376
|
name: "video",
|
|
@@ -7381,7 +7387,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7381
7387
|
no: 3,
|
|
7382
7388
|
name: "resume_connection",
|
|
7383
7389
|
kind: "enum",
|
|
7384
|
-
T:
|
|
7390
|
+
T: j.getEnumType(qi)
|
|
7385
7391
|
},
|
|
7386
7392
|
{
|
|
7387
7393
|
no: 4,
|
|
@@ -7393,14 +7399,14 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7393
7399
|
no: 5,
|
|
7394
7400
|
name: "force_relay",
|
|
7395
7401
|
kind: "enum",
|
|
7396
|
-
T:
|
|
7402
|
+
T: j.getEnumType(qi)
|
|
7397
7403
|
}
|
|
7398
|
-
]), Ma = /* @__PURE__ */
|
|
7404
|
+
]), Ma = /* @__PURE__ */ j.makeMessageType("livekit.VideoConfiguration", () => [{
|
|
7399
7405
|
no: 1,
|
|
7400
7406
|
name: "hardware_encoder",
|
|
7401
7407
|
kind: "enum",
|
|
7402
|
-
T:
|
|
7403
|
-
}]), Na = /* @__PURE__ */
|
|
7408
|
+
T: j.getEnumType(qi)
|
|
7409
|
+
}]), Na = /* @__PURE__ */ j.makeMessageType("livekit.DisabledCodecs", () => [{
|
|
7404
7410
|
no: 1,
|
|
7405
7411
|
name: "codecs",
|
|
7406
7412
|
kind: "message",
|
|
@@ -7412,7 +7418,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7412
7418
|
kind: "message",
|
|
7413
7419
|
T: $i,
|
|
7414
7420
|
repeated: !0
|
|
7415
|
-
}]), Pa = /* @__PURE__ */
|
|
7421
|
+
}]), Pa = /* @__PURE__ */ j.makeMessageType("livekit.TimedVersion", () => [{
|
|
7416
7422
|
no: 1,
|
|
7417
7423
|
name: "unix_micro",
|
|
7418
7424
|
kind: "scalar",
|
|
@@ -7422,7 +7428,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7422
7428
|
name: "ticks",
|
|
7423
7429
|
kind: "scalar",
|
|
7424
7430
|
T: 5
|
|
7425
|
-
}]), Fa = /* @__PURE__ */
|
|
7431
|
+
}]), Fa = /* @__PURE__ */ j.makeEnum("livekit.DataStream.OperationType", [
|
|
7426
7432
|
{
|
|
7427
7433
|
no: 0,
|
|
7428
7434
|
name: "CREATE"
|
|
@@ -7439,12 +7445,12 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7439
7445
|
no: 3,
|
|
7440
7446
|
name: "REACTION"
|
|
7441
7447
|
}
|
|
7442
|
-
]), Ia = /* @__PURE__ */
|
|
7448
|
+
]), Ia = /* @__PURE__ */ j.makeMessageType("livekit.DataStream.TextHeader", () => [
|
|
7443
7449
|
{
|
|
7444
7450
|
no: 1,
|
|
7445
7451
|
name: "operation_type",
|
|
7446
7452
|
kind: "enum",
|
|
7447
|
-
T:
|
|
7453
|
+
T: j.getEnumType(Fa)
|
|
7448
7454
|
},
|
|
7449
7455
|
{
|
|
7450
7456
|
no: 2,
|
|
@@ -7471,12 +7477,12 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7471
7477
|
kind: "scalar",
|
|
7472
7478
|
T: 8
|
|
7473
7479
|
}
|
|
7474
|
-
], { localName: "DataStream_TextHeader" }), La = /* @__PURE__ */
|
|
7480
|
+
], { localName: "DataStream_TextHeader" }), La = /* @__PURE__ */ j.makeMessageType("livekit.DataStream.ByteHeader", () => [{
|
|
7475
7481
|
no: 1,
|
|
7476
7482
|
name: "name",
|
|
7477
7483
|
kind: "scalar",
|
|
7478
7484
|
T: 9
|
|
7479
|
-
}], { localName: "DataStream_ByteHeader" }), Ra = /* @__PURE__ */
|
|
7485
|
+
}], { localName: "DataStream_ByteHeader" }), Ra = /* @__PURE__ */ j.makeMessageType("livekit.DataStream.Header", () => [
|
|
7480
7486
|
{
|
|
7481
7487
|
no: 1,
|
|
7482
7488
|
name: "stream_id",
|
|
@@ -7512,7 +7518,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7512
7518
|
no: 7,
|
|
7513
7519
|
name: "encryption_type",
|
|
7514
7520
|
kind: "enum",
|
|
7515
|
-
T:
|
|
7521
|
+
T: j.getEnumType(M)
|
|
7516
7522
|
},
|
|
7517
7523
|
{
|
|
7518
7524
|
no: 8,
|
|
@@ -7538,7 +7544,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7538
7544
|
T: La,
|
|
7539
7545
|
oneof: "content_header"
|
|
7540
7546
|
}
|
|
7541
|
-
], { localName: "DataStream_Header" }), za = /* @__PURE__ */
|
|
7547
|
+
], { localName: "DataStream_Header" }), za = /* @__PURE__ */ j.makeMessageType("livekit.DataStream.Chunk", () => [
|
|
7542
7548
|
{
|
|
7543
7549
|
no: 1,
|
|
7544
7550
|
name: "stream_id",
|
|
@@ -7570,7 +7576,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7570
7576
|
T: 12,
|
|
7571
7577
|
opt: !0
|
|
7572
7578
|
}
|
|
7573
|
-
], { localName: "DataStream_Chunk" }), Ba = /* @__PURE__ */
|
|
7579
|
+
], { localName: "DataStream_Chunk" }), Ba = /* @__PURE__ */ j.makeMessageType("livekit.DataStream.Trailer", () => [
|
|
7574
7580
|
{
|
|
7575
7581
|
no: 1,
|
|
7576
7582
|
name: "stream_id",
|
|
@@ -7593,7 +7599,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7593
7599
|
T: 9
|
|
7594
7600
|
}
|
|
7595
7601
|
}
|
|
7596
|
-
], { localName: "DataStream_Trailer" }), Va = /* @__PURE__ */
|
|
7602
|
+
], { localName: "DataStream_Trailer" }), Va = /* @__PURE__ */ j.makeMessageType("livekit.SubscribedAudioCodec", () => [{
|
|
7597
7603
|
no: 1,
|
|
7598
7604
|
name: "codec",
|
|
7599
7605
|
kind: "scalar",
|
|
@@ -7603,19 +7609,19 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7603
7609
|
name: "enabled",
|
|
7604
7610
|
kind: "scalar",
|
|
7605
7611
|
T: 8
|
|
7606
|
-
}]), Ha = /* @__PURE__ */
|
|
7612
|
+
}]), Ha = /* @__PURE__ */ j.makeEnum("livekit.SignalTarget", [{
|
|
7607
7613
|
no: 0,
|
|
7608
7614
|
name: "PUBLISHER"
|
|
7609
7615
|
}, {
|
|
7610
7616
|
no: 1,
|
|
7611
7617
|
name: "SUBSCRIBER"
|
|
7612
|
-
}]), Ua = /* @__PURE__ */
|
|
7618
|
+
}]), Ua = /* @__PURE__ */ j.makeEnum("livekit.StreamState", [{
|
|
7613
7619
|
no: 0,
|
|
7614
7620
|
name: "ACTIVE"
|
|
7615
7621
|
}, {
|
|
7616
7622
|
no: 1,
|
|
7617
7623
|
name: "PAUSED"
|
|
7618
|
-
}]), Wa = /* @__PURE__ */
|
|
7624
|
+
}]), Wa = /* @__PURE__ */ j.makeEnum("livekit.CandidateProtocol", [
|
|
7619
7625
|
{
|
|
7620
7626
|
no: 0,
|
|
7621
7627
|
name: "UDP"
|
|
@@ -7628,7 +7634,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7628
7634
|
no: 2,
|
|
7629
7635
|
name: "TLS"
|
|
7630
7636
|
}
|
|
7631
|
-
]), Ga = /* @__PURE__ */
|
|
7637
|
+
]), Ga = /* @__PURE__ */ j.makeMessageType("livekit.SignalRequest", () => [
|
|
7632
7638
|
{
|
|
7633
7639
|
no: 1,
|
|
7634
7640
|
name: "offer",
|
|
@@ -7769,7 +7775,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7769
7775
|
T: uo,
|
|
7770
7776
|
oneof: "message"
|
|
7771
7777
|
}
|
|
7772
|
-
]), Ka = /* @__PURE__ */
|
|
7778
|
+
]), Ka = /* @__PURE__ */ j.makeMessageType("livekit.SignalResponse", () => [
|
|
7773
7779
|
{
|
|
7774
7780
|
no: 1,
|
|
7775
7781
|
name: "join",
|
|
@@ -7966,7 +7972,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7966
7972
|
T: $a,
|
|
7967
7973
|
oneof: "message"
|
|
7968
7974
|
}
|
|
7969
|
-
]), qa = /* @__PURE__ */
|
|
7975
|
+
]), qa = /* @__PURE__ */ j.makeMessageType("livekit.SimulcastCodec", () => [
|
|
7970
7976
|
{
|
|
7971
7977
|
no: 1,
|
|
7972
7978
|
name: "codec",
|
|
@@ -7990,9 +7996,9 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
7990
7996
|
no: 5,
|
|
7991
7997
|
name: "video_layer_mode",
|
|
7992
7998
|
kind: "enum",
|
|
7993
|
-
T:
|
|
7999
|
+
T: j.getEnumType(ua)
|
|
7994
8000
|
}
|
|
7995
|
-
]), Ja = /* @__PURE__ */
|
|
8001
|
+
]), Ja = /* @__PURE__ */ j.makeMessageType("livekit.AddTrackRequest", () => [
|
|
7996
8002
|
{
|
|
7997
8003
|
no: 1,
|
|
7998
8004
|
name: "cid",
|
|
@@ -8009,7 +8015,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8009
8015
|
no: 3,
|
|
8010
8016
|
name: "type",
|
|
8011
8017
|
kind: "enum",
|
|
8012
|
-
T:
|
|
8018
|
+
T: j.getEnumType(Ui)
|
|
8013
8019
|
},
|
|
8014
8020
|
{
|
|
8015
8021
|
no: 4,
|
|
@@ -8039,7 +8045,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8039
8045
|
no: 8,
|
|
8040
8046
|
name: "source",
|
|
8041
8047
|
kind: "enum",
|
|
8042
|
-
T:
|
|
8048
|
+
T: j.getEnumType(Wi)
|
|
8043
8049
|
},
|
|
8044
8050
|
{
|
|
8045
8051
|
no: 9,
|
|
@@ -8077,7 +8083,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8077
8083
|
no: 14,
|
|
8078
8084
|
name: "encryption",
|
|
8079
8085
|
kind: "enum",
|
|
8080
|
-
T:
|
|
8086
|
+
T: j.getEnumType(M)
|
|
8081
8087
|
},
|
|
8082
8088
|
{
|
|
8083
8089
|
no: 15,
|
|
@@ -8089,16 +8095,16 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8089
8095
|
no: 16,
|
|
8090
8096
|
name: "backup_codec_policy",
|
|
8091
8097
|
kind: "enum",
|
|
8092
|
-
T:
|
|
8098
|
+
T: j.getEnumType(Hi)
|
|
8093
8099
|
},
|
|
8094
8100
|
{
|
|
8095
8101
|
no: 17,
|
|
8096
8102
|
name: "audio_features",
|
|
8097
8103
|
kind: "enum",
|
|
8098
|
-
T:
|
|
8104
|
+
T: j.getEnumType(Zi),
|
|
8099
8105
|
repeated: !0
|
|
8100
8106
|
}
|
|
8101
|
-
]), Ya = /* @__PURE__ */
|
|
8107
|
+
]), Ya = /* @__PURE__ */ j.makeMessageType("livekit.PublishDataTrackRequest", () => [
|
|
8102
8108
|
{
|
|
8103
8109
|
no: 1,
|
|
8104
8110
|
name: "pub_handle",
|
|
@@ -8115,24 +8121,24 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8115
8121
|
no: 3,
|
|
8116
8122
|
name: "encryption",
|
|
8117
8123
|
kind: "enum",
|
|
8118
|
-
T:
|
|
8124
|
+
T: j.getEnumType(M)
|
|
8119
8125
|
}
|
|
8120
|
-
]), Xa = /* @__PURE__ */
|
|
8126
|
+
]), Xa = /* @__PURE__ */ j.makeMessageType("livekit.PublishDataTrackResponse", () => [{
|
|
8121
8127
|
no: 1,
|
|
8122
8128
|
name: "info",
|
|
8123
8129
|
kind: "message",
|
|
8124
8130
|
T: sa
|
|
8125
|
-
}]), Za = /* @__PURE__ */
|
|
8131
|
+
}]), Za = /* @__PURE__ */ j.makeMessageType("livekit.UnpublishDataTrackRequest", () => [{
|
|
8126
8132
|
no: 1,
|
|
8127
8133
|
name: "pub_handle",
|
|
8128
8134
|
kind: "scalar",
|
|
8129
8135
|
T: 13
|
|
8130
|
-
}]), Qa = /* @__PURE__ */
|
|
8136
|
+
}]), Qa = /* @__PURE__ */ j.makeMessageType("livekit.UnpublishDataTrackResponse", () => [{
|
|
8131
8137
|
no: 1,
|
|
8132
8138
|
name: "info",
|
|
8133
8139
|
kind: "message",
|
|
8134
8140
|
T: sa
|
|
8135
|
-
}]), $a = /* @__PURE__ */
|
|
8141
|
+
}]), $a = /* @__PURE__ */ j.makeMessageType("livekit.DataTrackSubscriberHandles", () => [{
|
|
8136
8142
|
no: 1,
|
|
8137
8143
|
name: "sub_handles",
|
|
8138
8144
|
kind: "map",
|
|
@@ -8141,7 +8147,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8141
8147
|
kind: "message",
|
|
8142
8148
|
T: eo
|
|
8143
8149
|
}
|
|
8144
|
-
}]), eo = /* @__PURE__ */
|
|
8150
|
+
}]), eo = /* @__PURE__ */ j.makeMessageType("livekit.DataTrackSubscriberHandles.PublishedDataTrack", () => [
|
|
8145
8151
|
{
|
|
8146
8152
|
no: 1,
|
|
8147
8153
|
name: "publisher_identity",
|
|
@@ -8160,7 +8166,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8160
8166
|
kind: "scalar",
|
|
8161
8167
|
T: 9
|
|
8162
8168
|
}
|
|
8163
|
-
], { localName: "DataTrackSubscriberHandles_PublishedDataTrack" }), to = /* @__PURE__ */
|
|
8169
|
+
], { localName: "DataTrackSubscriberHandles_PublishedDataTrack" }), to = /* @__PURE__ */ j.makeMessageType("livekit.TrickleRequest", () => [
|
|
8164
8170
|
{
|
|
8165
8171
|
no: 1,
|
|
8166
8172
|
name: "candidateInit",
|
|
@@ -8171,7 +8177,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8171
8177
|
no: 2,
|
|
8172
8178
|
name: "target",
|
|
8173
8179
|
kind: "enum",
|
|
8174
|
-
T:
|
|
8180
|
+
T: j.getEnumType(Ha)
|
|
8175
8181
|
},
|
|
8176
8182
|
{
|
|
8177
8183
|
no: 3,
|
|
@@ -8179,7 +8185,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8179
8185
|
kind: "scalar",
|
|
8180
8186
|
T: 8
|
|
8181
8187
|
}
|
|
8182
|
-
]), no = /* @__PURE__ */
|
|
8188
|
+
]), no = /* @__PURE__ */ j.makeMessageType("livekit.MuteTrackRequest", () => [{
|
|
8183
8189
|
no: 1,
|
|
8184
8190
|
name: "sid",
|
|
8185
8191
|
kind: "scalar",
|
|
@@ -8189,7 +8195,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8189
8195
|
name: "muted",
|
|
8190
8196
|
kind: "scalar",
|
|
8191
8197
|
T: 8
|
|
8192
|
-
}]), ro = /* @__PURE__ */
|
|
8198
|
+
}]), ro = /* @__PURE__ */ j.makeMessageType("livekit.JoinResponse", () => [
|
|
8193
8199
|
{
|
|
8194
8200
|
no: 1,
|
|
8195
8201
|
name: "room",
|
|
@@ -8283,7 +8289,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8283
8289
|
kind: "scalar",
|
|
8284
8290
|
T: 8
|
|
8285
8291
|
}
|
|
8286
|
-
]), io = /* @__PURE__ */
|
|
8292
|
+
]), io = /* @__PURE__ */ j.makeMessageType("livekit.ReconnectResponse", () => [
|
|
8287
8293
|
{
|
|
8288
8294
|
no: 1,
|
|
8289
8295
|
name: "ice_servers",
|
|
@@ -8309,7 +8315,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8309
8315
|
kind: "scalar",
|
|
8310
8316
|
T: 13
|
|
8311
8317
|
}
|
|
8312
|
-
]), ao = /* @__PURE__ */
|
|
8318
|
+
]), ao = /* @__PURE__ */ j.makeMessageType("livekit.TrackPublishedResponse", () => [{
|
|
8313
8319
|
no: 1,
|
|
8314
8320
|
name: "cid",
|
|
8315
8321
|
kind: "scalar",
|
|
@@ -8319,12 +8325,12 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8319
8325
|
name: "track",
|
|
8320
8326
|
kind: "message",
|
|
8321
8327
|
T: oa
|
|
8322
|
-
}]), oo = /* @__PURE__ */
|
|
8328
|
+
}]), oo = /* @__PURE__ */ j.makeMessageType("livekit.TrackUnpublishedResponse", () => [{
|
|
8323
8329
|
no: 1,
|
|
8324
8330
|
name: "track_sid",
|
|
8325
8331
|
kind: "scalar",
|
|
8326
8332
|
T: 9
|
|
8327
|
-
}]), so = /* @__PURE__ */
|
|
8333
|
+
}]), so = /* @__PURE__ */ j.makeMessageType("livekit.SessionDescription", () => [
|
|
8328
8334
|
{
|
|
8329
8335
|
no: 1,
|
|
8330
8336
|
name: "type",
|
|
@@ -8353,13 +8359,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8353
8359
|
T: 9
|
|
8354
8360
|
}
|
|
8355
8361
|
}
|
|
8356
|
-
]), co = /* @__PURE__ */
|
|
8362
|
+
]), co = /* @__PURE__ */ j.makeMessageType("livekit.ParticipantUpdate", () => [{
|
|
8357
8363
|
no: 1,
|
|
8358
8364
|
name: "participants",
|
|
8359
8365
|
kind: "message",
|
|
8360
8366
|
T: ta,
|
|
8361
8367
|
repeated: !0
|
|
8362
|
-
}]), lo = /* @__PURE__ */
|
|
8368
|
+
}]), lo = /* @__PURE__ */ j.makeMessageType("livekit.UpdateSubscription", () => [
|
|
8363
8369
|
{
|
|
8364
8370
|
no: 1,
|
|
8365
8371
|
name: "track_sids",
|
|
@@ -8380,13 +8386,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8380
8386
|
T: Ea,
|
|
8381
8387
|
repeated: !0
|
|
8382
8388
|
}
|
|
8383
|
-
]), uo = /* @__PURE__ */
|
|
8389
|
+
]), uo = /* @__PURE__ */ j.makeMessageType("livekit.UpdateDataSubscription", () => [{
|
|
8384
8390
|
no: 1,
|
|
8385
8391
|
name: "updates",
|
|
8386
8392
|
kind: "message",
|
|
8387
8393
|
T: fo,
|
|
8388
8394
|
repeated: !0
|
|
8389
|
-
}]), fo = /* @__PURE__ */
|
|
8395
|
+
}]), fo = /* @__PURE__ */ j.makeMessageType("livekit.UpdateDataSubscription.Update", () => [
|
|
8390
8396
|
{
|
|
8391
8397
|
no: 1,
|
|
8392
8398
|
name: "track_sid",
|
|
@@ -8405,7 +8411,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8405
8411
|
kind: "message",
|
|
8406
8412
|
T: ca
|
|
8407
8413
|
}
|
|
8408
|
-
], { localName: "UpdateDataSubscription_Update" }), po = /* @__PURE__ */
|
|
8414
|
+
], { localName: "UpdateDataSubscription_Update" }), po = /* @__PURE__ */ j.makeMessageType("livekit.UpdateTrackSettings", () => [
|
|
8409
8415
|
{
|
|
8410
8416
|
no: 1,
|
|
8411
8417
|
name: "track_sids",
|
|
@@ -8423,7 +8429,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8423
8429
|
no: 4,
|
|
8424
8430
|
name: "quality",
|
|
8425
8431
|
kind: "enum",
|
|
8426
|
-
T:
|
|
8432
|
+
T: j.getEnumType(Gi)
|
|
8427
8433
|
},
|
|
8428
8434
|
{
|
|
8429
8435
|
no: 5,
|
|
@@ -8449,7 +8455,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8449
8455
|
kind: "scalar",
|
|
8450
8456
|
T: 13
|
|
8451
8457
|
}
|
|
8452
|
-
]), mo = /* @__PURE__ */
|
|
8458
|
+
]), mo = /* @__PURE__ */ j.makeMessageType("livekit.UpdateLocalAudioTrack", () => [{
|
|
8453
8459
|
no: 1,
|
|
8454
8460
|
name: "track_sid",
|
|
8455
8461
|
kind: "scalar",
|
|
@@ -8458,9 +8464,9 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8458
8464
|
no: 2,
|
|
8459
8465
|
name: "features",
|
|
8460
8466
|
kind: "enum",
|
|
8461
|
-
T:
|
|
8467
|
+
T: j.getEnumType(Zi),
|
|
8462
8468
|
repeated: !0
|
|
8463
|
-
}]), ho = /* @__PURE__ */
|
|
8469
|
+
}]), ho = /* @__PURE__ */ j.makeMessageType("livekit.UpdateLocalVideoTrack", () => [
|
|
8464
8470
|
{
|
|
8465
8471
|
no: 1,
|
|
8466
8472
|
name: "track_sid",
|
|
@@ -8479,7 +8485,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8479
8485
|
kind: "scalar",
|
|
8480
8486
|
T: 13
|
|
8481
8487
|
}
|
|
8482
|
-
]), go = /* @__PURE__ */
|
|
8488
|
+
]), go = /* @__PURE__ */ j.makeMessageType("livekit.LeaveRequest", () => [
|
|
8483
8489
|
{
|
|
8484
8490
|
no: 1,
|
|
8485
8491
|
name: "can_reconnect",
|
|
@@ -8490,13 +8496,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8490
8496
|
no: 2,
|
|
8491
8497
|
name: "reason",
|
|
8492
8498
|
kind: "enum",
|
|
8493
|
-
T:
|
|
8499
|
+
T: j.getEnumType(Ji)
|
|
8494
8500
|
},
|
|
8495
8501
|
{
|
|
8496
8502
|
no: 3,
|
|
8497
8503
|
name: "action",
|
|
8498
8504
|
kind: "enum",
|
|
8499
|
-
T:
|
|
8505
|
+
T: j.getEnumType(_o)
|
|
8500
8506
|
},
|
|
8501
8507
|
{
|
|
8502
8508
|
no: 4,
|
|
@@ -8504,7 +8510,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8504
8510
|
kind: "message",
|
|
8505
8511
|
T: Vo
|
|
8506
8512
|
}
|
|
8507
|
-
]), _o = /* @__PURE__ */
|
|
8513
|
+
]), _o = /* @__PURE__ */ j.makeEnum("livekit.LeaveRequest.Action", [
|
|
8508
8514
|
{
|
|
8509
8515
|
no: 0,
|
|
8510
8516
|
name: "DISCONNECT"
|
|
@@ -8517,7 +8523,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8517
8523
|
no: 2,
|
|
8518
8524
|
name: "RECONNECT"
|
|
8519
8525
|
}
|
|
8520
|
-
]), vo = /* @__PURE__ */
|
|
8526
|
+
]), vo = /* @__PURE__ */ j.makeMessageType("livekit.UpdateVideoLayers", () => [{
|
|
8521
8527
|
no: 1,
|
|
8522
8528
|
name: "track_sid",
|
|
8523
8529
|
kind: "scalar",
|
|
@@ -8528,7 +8534,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8528
8534
|
kind: "message",
|
|
8529
8535
|
T: la,
|
|
8530
8536
|
repeated: !0
|
|
8531
|
-
}]), yo = /* @__PURE__ */
|
|
8537
|
+
}]), yo = /* @__PURE__ */ j.makeMessageType("livekit.UpdateParticipantMetadata", () => [
|
|
8532
8538
|
{
|
|
8533
8539
|
no: 1,
|
|
8534
8540
|
name: "metadata",
|
|
@@ -8557,7 +8563,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8557
8563
|
kind: "scalar",
|
|
8558
8564
|
T: 13
|
|
8559
8565
|
}
|
|
8560
|
-
]), bo = /* @__PURE__ */
|
|
8566
|
+
]), bo = /* @__PURE__ */ j.makeMessageType("livekit.ICEServer", () => [
|
|
8561
8567
|
{
|
|
8562
8568
|
no: 1,
|
|
8563
8569
|
name: "urls",
|
|
@@ -8577,18 +8583,18 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8577
8583
|
kind: "scalar",
|
|
8578
8584
|
T: 9
|
|
8579
8585
|
}
|
|
8580
|
-
]), xo = /* @__PURE__ */
|
|
8586
|
+
]), xo = /* @__PURE__ */ j.makeMessageType("livekit.SpeakersChanged", () => [{
|
|
8581
8587
|
no: 1,
|
|
8582
8588
|
name: "speakers",
|
|
8583
8589
|
kind: "message",
|
|
8584
8590
|
T: ga,
|
|
8585
8591
|
repeated: !0
|
|
8586
|
-
}]), So = /* @__PURE__ */
|
|
8592
|
+
}]), So = /* @__PURE__ */ j.makeMessageType("livekit.RoomUpdate", () => [{
|
|
8587
8593
|
no: 1,
|
|
8588
8594
|
name: "room",
|
|
8589
8595
|
kind: "message",
|
|
8590
8596
|
T: Qi
|
|
8591
|
-
}]), Co = /* @__PURE__ */
|
|
8597
|
+
}]), Co = /* @__PURE__ */ j.makeMessageType("livekit.ConnectionQualityInfo", () => [
|
|
8592
8598
|
{
|
|
8593
8599
|
no: 1,
|
|
8594
8600
|
name: "participant_sid",
|
|
@@ -8599,7 +8605,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8599
8605
|
no: 2,
|
|
8600
8606
|
name: "quality",
|
|
8601
8607
|
kind: "enum",
|
|
8602
|
-
T:
|
|
8608
|
+
T: j.getEnumType(Ki)
|
|
8603
8609
|
},
|
|
8604
8610
|
{
|
|
8605
8611
|
no: 3,
|
|
@@ -8607,13 +8613,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8607
8613
|
kind: "scalar",
|
|
8608
8614
|
T: 2
|
|
8609
8615
|
}
|
|
8610
|
-
]), wo = /* @__PURE__ */
|
|
8616
|
+
]), wo = /* @__PURE__ */ j.makeMessageType("livekit.ConnectionQualityUpdate", () => [{
|
|
8611
8617
|
no: 1,
|
|
8612
8618
|
name: "updates",
|
|
8613
8619
|
kind: "message",
|
|
8614
8620
|
T: Co,
|
|
8615
8621
|
repeated: !0
|
|
8616
|
-
}]), To = /* @__PURE__ */
|
|
8622
|
+
}]), To = /* @__PURE__ */ j.makeMessageType("livekit.StreamStateInfo", () => [
|
|
8617
8623
|
{
|
|
8618
8624
|
no: 1,
|
|
8619
8625
|
name: "participant_sid",
|
|
@@ -8630,25 +8636,25 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8630
8636
|
no: 3,
|
|
8631
8637
|
name: "state",
|
|
8632
8638
|
kind: "enum",
|
|
8633
|
-
T:
|
|
8639
|
+
T: j.getEnumType(Ua)
|
|
8634
8640
|
}
|
|
8635
|
-
]), Eo = /* @__PURE__ */
|
|
8641
|
+
]), Eo = /* @__PURE__ */ j.makeMessageType("livekit.StreamStateUpdate", () => [{
|
|
8636
8642
|
no: 1,
|
|
8637
8643
|
name: "stream_states",
|
|
8638
8644
|
kind: "message",
|
|
8639
8645
|
T: To,
|
|
8640
8646
|
repeated: !0
|
|
8641
|
-
}]), Do = /* @__PURE__ */
|
|
8647
|
+
}]), Do = /* @__PURE__ */ j.makeMessageType("livekit.SubscribedQuality", () => [{
|
|
8642
8648
|
no: 1,
|
|
8643
8649
|
name: "quality",
|
|
8644
8650
|
kind: "enum",
|
|
8645
|
-
T:
|
|
8651
|
+
T: j.getEnumType(Gi)
|
|
8646
8652
|
}, {
|
|
8647
8653
|
no: 2,
|
|
8648
8654
|
name: "enabled",
|
|
8649
8655
|
kind: "scalar",
|
|
8650
8656
|
T: 8
|
|
8651
|
-
}]), Oo = /* @__PURE__ */
|
|
8657
|
+
}]), Oo = /* @__PURE__ */ j.makeMessageType("livekit.SubscribedCodec", () => [{
|
|
8652
8658
|
no: 1,
|
|
8653
8659
|
name: "codec",
|
|
8654
8660
|
kind: "scalar",
|
|
@@ -8659,7 +8665,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8659
8665
|
kind: "message",
|
|
8660
8666
|
T: Do,
|
|
8661
8667
|
repeated: !0
|
|
8662
|
-
}]), ko = /* @__PURE__ */
|
|
8668
|
+
}]), ko = /* @__PURE__ */ j.makeMessageType("livekit.SubscribedQualityUpdate", () => [
|
|
8663
8669
|
{
|
|
8664
8670
|
no: 1,
|
|
8665
8671
|
name: "track_sid",
|
|
@@ -8680,7 +8686,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8680
8686
|
T: Oo,
|
|
8681
8687
|
repeated: !0
|
|
8682
8688
|
}
|
|
8683
|
-
]), Ao = /* @__PURE__ */
|
|
8689
|
+
]), Ao = /* @__PURE__ */ j.makeMessageType("livekit.SubscribedAudioCodecUpdate", () => [{
|
|
8684
8690
|
no: 1,
|
|
8685
8691
|
name: "track_sid",
|
|
8686
8692
|
kind: "scalar",
|
|
@@ -8691,7 +8697,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8691
8697
|
kind: "message",
|
|
8692
8698
|
T: Va,
|
|
8693
8699
|
repeated: !0
|
|
8694
|
-
}]), jo = /* @__PURE__ */
|
|
8700
|
+
}]), jo = /* @__PURE__ */ j.makeMessageType("livekit.TrackPermission", () => [
|
|
8695
8701
|
{
|
|
8696
8702
|
no: 1,
|
|
8697
8703
|
name: "participant_sid",
|
|
@@ -8717,7 +8723,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8717
8723
|
kind: "scalar",
|
|
8718
8724
|
T: 9
|
|
8719
8725
|
}
|
|
8720
|
-
]), Mo = /* @__PURE__ */
|
|
8726
|
+
]), Mo = /* @__PURE__ */ j.makeMessageType("livekit.SubscriptionPermission", () => [{
|
|
8721
8727
|
no: 1,
|
|
8722
8728
|
name: "all_participants",
|
|
8723
8729
|
kind: "scalar",
|
|
@@ -8728,7 +8734,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8728
8734
|
kind: "message",
|
|
8729
8735
|
T: jo,
|
|
8730
8736
|
repeated: !0
|
|
8731
|
-
}]), No = /* @__PURE__ */
|
|
8737
|
+
}]), No = /* @__PURE__ */ j.makeMessageType("livekit.SubscriptionPermissionUpdate", () => [
|
|
8732
8738
|
{
|
|
8733
8739
|
no: 1,
|
|
8734
8740
|
name: "participant_sid",
|
|
@@ -8747,7 +8753,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8747
8753
|
kind: "scalar",
|
|
8748
8754
|
T: 8
|
|
8749
8755
|
}
|
|
8750
|
-
]), Po = /* @__PURE__ */
|
|
8756
|
+
]), Po = /* @__PURE__ */ j.makeMessageType("livekit.RoomMovedResponse", () => [
|
|
8751
8757
|
{
|
|
8752
8758
|
no: 1,
|
|
8753
8759
|
name: "room",
|
|
@@ -8773,7 +8779,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8773
8779
|
T: ta,
|
|
8774
8780
|
repeated: !0
|
|
8775
8781
|
}
|
|
8776
|
-
]), Fo = /* @__PURE__ */
|
|
8782
|
+
]), Fo = /* @__PURE__ */ j.makeMessageType("livekit.SyncState", () => [
|
|
8777
8783
|
{
|
|
8778
8784
|
no: 1,
|
|
8779
8785
|
name: "answer",
|
|
@@ -8827,7 +8833,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8827
8833
|
T: Xa,
|
|
8828
8834
|
repeated: !0
|
|
8829
8835
|
}
|
|
8830
|
-
]), Io = /* @__PURE__ */
|
|
8836
|
+
]), Io = /* @__PURE__ */ j.makeMessageType("livekit.DataChannelReceiveState", () => [{
|
|
8831
8837
|
no: 1,
|
|
8832
8838
|
name: "publisher_sid",
|
|
8833
8839
|
kind: "scalar",
|
|
@@ -8837,7 +8843,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8837
8843
|
name: "last_seq",
|
|
8838
8844
|
kind: "scalar",
|
|
8839
8845
|
T: 13
|
|
8840
|
-
}]), Lo = /* @__PURE__ */
|
|
8846
|
+
}]), Lo = /* @__PURE__ */ j.makeMessageType("livekit.DataChannelInfo", () => [
|
|
8841
8847
|
{
|
|
8842
8848
|
no: 1,
|
|
8843
8849
|
name: "label",
|
|
@@ -8854,9 +8860,9 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8854
8860
|
no: 3,
|
|
8855
8861
|
name: "target",
|
|
8856
8862
|
kind: "enum",
|
|
8857
|
-
T:
|
|
8863
|
+
T: j.getEnumType(Ha)
|
|
8858
8864
|
}
|
|
8859
|
-
]), Ro = /* @__PURE__ */
|
|
8865
|
+
]), Ro = /* @__PURE__ */ j.makeMessageType("livekit.SimulateScenario", () => [
|
|
8860
8866
|
{
|
|
8861
8867
|
no: 1,
|
|
8862
8868
|
name: "speaker_update",
|
|
@@ -8889,7 +8895,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8889
8895
|
no: 5,
|
|
8890
8896
|
name: "switch_candidate_protocol",
|
|
8891
8897
|
kind: "enum",
|
|
8892
|
-
T:
|
|
8898
|
+
T: j.getEnumType(Wa),
|
|
8893
8899
|
oneof: "scenario"
|
|
8894
8900
|
},
|
|
8895
8901
|
{
|
|
@@ -8920,7 +8926,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8920
8926
|
T: 8,
|
|
8921
8927
|
oneof: "scenario"
|
|
8922
8928
|
}
|
|
8923
|
-
]), zo = /* @__PURE__ */
|
|
8929
|
+
]), zo = /* @__PURE__ */ j.makeMessageType("livekit.Ping", () => [{
|
|
8924
8930
|
no: 1,
|
|
8925
8931
|
name: "timestamp",
|
|
8926
8932
|
kind: "scalar",
|
|
@@ -8930,7 +8936,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8930
8936
|
name: "rtt",
|
|
8931
8937
|
kind: "scalar",
|
|
8932
8938
|
T: 3
|
|
8933
|
-
}]), Bo = /* @__PURE__ */
|
|
8939
|
+
}]), Bo = /* @__PURE__ */ j.makeMessageType("livekit.Pong", () => [{
|
|
8934
8940
|
no: 1,
|
|
8935
8941
|
name: "last_ping_timestamp",
|
|
8936
8942
|
kind: "scalar",
|
|
@@ -8940,13 +8946,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8940
8946
|
name: "timestamp",
|
|
8941
8947
|
kind: "scalar",
|
|
8942
8948
|
T: 3
|
|
8943
|
-
}]), Vo = /* @__PURE__ */
|
|
8949
|
+
}]), Vo = /* @__PURE__ */ j.makeMessageType("livekit.RegionSettings", () => [{
|
|
8944
8950
|
no: 1,
|
|
8945
8951
|
name: "regions",
|
|
8946
8952
|
kind: "message",
|
|
8947
8953
|
T: Ho,
|
|
8948
8954
|
repeated: !0
|
|
8949
|
-
}]), Ho = /* @__PURE__ */
|
|
8955
|
+
}]), Ho = /* @__PURE__ */ j.makeMessageType("livekit.RegionInfo", () => [
|
|
8950
8956
|
{
|
|
8951
8957
|
no: 1,
|
|
8952
8958
|
name: "region",
|
|
@@ -8965,7 +8971,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8965
8971
|
kind: "scalar",
|
|
8966
8972
|
T: 3
|
|
8967
8973
|
}
|
|
8968
|
-
]), Uo = /* @__PURE__ */
|
|
8974
|
+
]), Uo = /* @__PURE__ */ j.makeMessageType("livekit.SubscriptionResponse", () => [{
|
|
8969
8975
|
no: 1,
|
|
8970
8976
|
name: "track_sid",
|
|
8971
8977
|
kind: "scalar",
|
|
@@ -8974,8 +8980,8 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8974
8980
|
no: 2,
|
|
8975
8981
|
name: "err",
|
|
8976
8982
|
kind: "enum",
|
|
8977
|
-
T:
|
|
8978
|
-
}]), Wo = /* @__PURE__ */
|
|
8983
|
+
T: j.getEnumType(Xi)
|
|
8984
|
+
}]), Wo = /* @__PURE__ */ j.makeMessageType("livekit.RequestResponse", () => [
|
|
8979
8985
|
{
|
|
8980
8986
|
no: 1,
|
|
8981
8987
|
name: "request_id",
|
|
@@ -8986,7 +8992,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
8986
8992
|
no: 2,
|
|
8987
8993
|
name: "reason",
|
|
8988
8994
|
kind: "enum",
|
|
8989
|
-
T:
|
|
8995
|
+
T: j.getEnumType(Go)
|
|
8990
8996
|
},
|
|
8991
8997
|
{
|
|
8992
8998
|
no: 3,
|
|
@@ -9050,7 +9056,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
9050
9056
|
T: Za,
|
|
9051
9057
|
oneof: "request"
|
|
9052
9058
|
}
|
|
9053
|
-
]), Go = /* @__PURE__ */
|
|
9059
|
+
]), Go = /* @__PURE__ */ j.makeEnum("livekit.RequestResponse.Reason", [
|
|
9054
9060
|
{
|
|
9055
9061
|
no: 0,
|
|
9056
9062
|
name: "OK"
|
|
@@ -9095,12 +9101,12 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
9095
9101
|
no: 10,
|
|
9096
9102
|
name: "DUPLICATE_NAME"
|
|
9097
9103
|
}
|
|
9098
|
-
]), Ko = /* @__PURE__ */
|
|
9104
|
+
]), Ko = /* @__PURE__ */ j.makeMessageType("livekit.TrackSubscribed", () => [{
|
|
9099
9105
|
no: 1,
|
|
9100
9106
|
name: "track_sid",
|
|
9101
9107
|
kind: "scalar",
|
|
9102
9108
|
T: 9
|
|
9103
|
-
}]), qo = /* @__PURE__ */
|
|
9109
|
+
}]), qo = /* @__PURE__ */ j.makeMessageType("livekit.ConnectionSettings", () => [
|
|
9104
9110
|
{
|
|
9105
9111
|
no: 1,
|
|
9106
9112
|
name: "auto_subscribe",
|
|
@@ -9133,7 +9139,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
9133
9139
|
T: 8,
|
|
9134
9140
|
opt: !0
|
|
9135
9141
|
}
|
|
9136
|
-
]), Jo = /* @__PURE__ */
|
|
9142
|
+
]), Jo = /* @__PURE__ */ j.makeMessageType("livekit.JoinRequest", () => [
|
|
9137
9143
|
{
|
|
9138
9144
|
no: 1,
|
|
9139
9145
|
name: "client_info",
|
|
@@ -9185,7 +9191,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
9185
9191
|
no: 8,
|
|
9186
9192
|
name: "reconnect_reason",
|
|
9187
9193
|
kind: "enum",
|
|
9188
|
-
T:
|
|
9194
|
+
T: j.getEnumType(Yi)
|
|
9189
9195
|
},
|
|
9190
9196
|
{
|
|
9191
9197
|
no: 9,
|
|
@@ -9199,23 +9205,23 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
|
|
|
9199
9205
|
kind: "message",
|
|
9200
9206
|
T: Fo
|
|
9201
9207
|
}
|
|
9202
|
-
]), Yo = /* @__PURE__ */
|
|
9208
|
+
]), Yo = /* @__PURE__ */ j.makeMessageType("livekit.WrappedJoinRequest", () => [{
|
|
9203
9209
|
no: 1,
|
|
9204
9210
|
name: "compression",
|
|
9205
9211
|
kind: "enum",
|
|
9206
|
-
T:
|
|
9212
|
+
T: j.getEnumType(Xo)
|
|
9207
9213
|
}, {
|
|
9208
9214
|
no: 2,
|
|
9209
9215
|
name: "join_request",
|
|
9210
9216
|
kind: "scalar",
|
|
9211
9217
|
T: 12
|
|
9212
|
-
}]), Xo = /* @__PURE__ */
|
|
9218
|
+
}]), Xo = /* @__PURE__ */ j.makeEnum("livekit.WrappedJoinRequest.Compression", [{
|
|
9213
9219
|
no: 0,
|
|
9214
9220
|
name: "NONE"
|
|
9215
9221
|
}, {
|
|
9216
9222
|
no: 1,
|
|
9217
9223
|
name: "GZIP"
|
|
9218
|
-
}]), Zo = /* @__PURE__ */
|
|
9224
|
+
}]), Zo = /* @__PURE__ */ j.makeMessageType("livekit.MediaSectionsRequirement", () => [{
|
|
9219
9225
|
no: 1,
|
|
9220
9226
|
name: "num_audios",
|
|
9221
9227
|
kind: "scalar",
|
|
@@ -11420,10 +11426,10 @@ function xl(e) {
|
|
|
11420
11426
|
}
|
|
11421
11427
|
function Sl(e) {
|
|
11422
11428
|
switch (e) {
|
|
11423
|
-
case
|
|
11424
|
-
case
|
|
11425
|
-
case
|
|
11426
|
-
case
|
|
11429
|
+
case Wi.CAMERA: return W.Source.Camera;
|
|
11430
|
+
case Wi.MICROPHONE: return W.Source.Microphone;
|
|
11431
|
+
case Wi.SCREEN_SHARE: return W.Source.ScreenShare;
|
|
11432
|
+
case Wi.SCREEN_SHARE_AUDIO: return W.Source.ScreenShareAudio;
|
|
11427
11433
|
default: return W.Source.Unknown;
|
|
11428
11434
|
}
|
|
11429
11435
|
}
|
|
@@ -11555,36 +11561,36 @@ function kl(e, t) {
|
|
|
11555
11561
|
})(r = e.StreamState ||= {});
|
|
11556
11562
|
function i(e) {
|
|
11557
11563
|
switch (e) {
|
|
11558
|
-
case t.Audio: return
|
|
11559
|
-
case t.Video: return
|
|
11560
|
-
default: return
|
|
11564
|
+
case t.Audio: return Ui.AUDIO;
|
|
11565
|
+
case t.Video: return Ui.VIDEO;
|
|
11566
|
+
default: return Ui.DATA;
|
|
11561
11567
|
}
|
|
11562
11568
|
}
|
|
11563
11569
|
e.kindToProto = i;
|
|
11564
11570
|
function a(e) {
|
|
11565
11571
|
switch (e) {
|
|
11566
|
-
case
|
|
11567
|
-
case
|
|
11572
|
+
case Ui.AUDIO: return t.Audio;
|
|
11573
|
+
case Ui.VIDEO: return t.Video;
|
|
11568
11574
|
default: return t.Unknown;
|
|
11569
11575
|
}
|
|
11570
11576
|
}
|
|
11571
11577
|
e.kindFromProto = a;
|
|
11572
11578
|
function o(e) {
|
|
11573
11579
|
switch (e) {
|
|
11574
|
-
case n.Camera: return
|
|
11575
|
-
case n.Microphone: return
|
|
11576
|
-
case n.ScreenShare: return
|
|
11577
|
-
case n.ScreenShareAudio: return
|
|
11578
|
-
default: return
|
|
11580
|
+
case n.Camera: return Wi.CAMERA;
|
|
11581
|
+
case n.Microphone: return Wi.MICROPHONE;
|
|
11582
|
+
case n.ScreenShare: return Wi.SCREEN_SHARE;
|
|
11583
|
+
case n.ScreenShareAudio: return Wi.SCREEN_SHARE_AUDIO;
|
|
11584
|
+
default: return Wi.UNKNOWN;
|
|
11579
11585
|
}
|
|
11580
11586
|
}
|
|
11581
11587
|
e.sourceToProto = o;
|
|
11582
11588
|
function s(e) {
|
|
11583
11589
|
switch (e) {
|
|
11584
|
-
case
|
|
11585
|
-
case
|
|
11586
|
-
case
|
|
11587
|
-
case
|
|
11590
|
+
case Wi.CAMERA: return n.Camera;
|
|
11591
|
+
case Wi.MICROPHONE: return n.Microphone;
|
|
11592
|
+
case Wi.SCREEN_SHARE: return n.ScreenShare;
|
|
11593
|
+
case Wi.SCREEN_SHARE_AUDIO: return n.ScreenShareAudio;
|
|
11588
11594
|
default: return n.Unknown;
|
|
11589
11595
|
}
|
|
11590
11596
|
}
|
|
@@ -20482,9 +20488,9 @@ var Bm = 4 * 1e3, Vm = class e extends bs.EventEmitter {
|
|
|
20482
20488
|
name: "local-name"
|
|
20483
20489
|
})), this.setupLocalParticipantEvents(), this.emit(R.SignalConnected), this.emit(R.Connected), this.setAndEmitConnectionState(X.Connected), t.video) {
|
|
20484
20490
|
let e = new Om(W.Kind.Video, new oa({
|
|
20485
|
-
source:
|
|
20491
|
+
source: Wi.CAMERA,
|
|
20486
20492
|
sid: Math.floor(Math.random() * 1e4).toString(),
|
|
20487
|
-
type:
|
|
20493
|
+
type: Ui.AUDIO,
|
|
20488
20494
|
name: "video-dummy"
|
|
20489
20495
|
}), new Bf(t.useRealTracks && window.navigator.mediaDevices?.getUserMedia ? (yield window.navigator.mediaDevices.getUserMedia({ video: !0 })).getVideoTracks()[0] : uu(160 * (n.aspectRatios[0] ?? 1), 160, !0, !0), void 0, !1, {
|
|
20490
20496
|
loggerName: this.options.loggerName,
|
|
@@ -20497,9 +20503,9 @@ var Bm = 4 * 1e3, Vm = class e extends bs.EventEmitter {
|
|
|
20497
20503
|
}
|
|
20498
20504
|
if (t.audio) {
|
|
20499
20505
|
let e = new Om(W.Kind.Audio, new oa({
|
|
20500
|
-
source:
|
|
20506
|
+
source: Wi.MICROPHONE,
|
|
20501
20507
|
sid: Math.floor(Math.random() * 1e4).toString(),
|
|
20502
|
-
type:
|
|
20508
|
+
type: Ui.AUDIO
|
|
20503
20509
|
}), new xf(t.useRealTracks && navigator.mediaDevices?.getUserMedia ? (yield navigator.mediaDevices.getUserMedia({ audio: !0 })).getAudioTracks()[0] : fu(), void 0, !1, this.audioContext, {
|
|
20504
20510
|
loggerName: this.options.loggerName,
|
|
20505
20511
|
loggerContextCb: () => this.logContext
|
|
@@ -20519,17 +20525,17 @@ var Bm = 4 * 1e3, Vm = class e extends bs.EventEmitter {
|
|
|
20519
20525
|
}), r = this.getOrCreateParticipant(t.identity, t);
|
|
20520
20526
|
if (n.video) {
|
|
20521
20527
|
let i = uu(160 * (n.aspectRatios[e % n.aspectRatios.length] ?? 1), 160, !1, !0), a = new oa({
|
|
20522
|
-
source:
|
|
20528
|
+
source: Wi.CAMERA,
|
|
20523
20529
|
sid: Math.floor(Math.random() * 1e4).toString(),
|
|
20524
|
-
type:
|
|
20530
|
+
type: Ui.AUDIO
|
|
20525
20531
|
});
|
|
20526
20532
|
r.addSubscribedMediaTrack(i, a.sid, new MediaStream([i]), new RTCRtpReceiver()), t.tracks = [...t.tracks, a];
|
|
20527
20533
|
}
|
|
20528
20534
|
if (n.audio) {
|
|
20529
20535
|
let e = fu(), n = new oa({
|
|
20530
|
-
source:
|
|
20536
|
+
source: Wi.MICROPHONE,
|
|
20531
20537
|
sid: Math.floor(Math.random() * 1e4).toString(),
|
|
20532
|
-
type:
|
|
20538
|
+
type: Ui.AUDIO
|
|
20533
20539
|
});
|
|
20534
20540
|
r.addSubscribedMediaTrack(e, n.sid, new MediaStream([e]), new RTCRtpReceiver()), t.tracks = [...t.tracks, n];
|
|
20535
20541
|
}
|
|
@@ -22670,136 +22676,139 @@ var cg = [
|
|
|
22670
22676
|
})
|
|
22671
22677
|
});
|
|
22672
22678
|
function ug() {
|
|
22673
|
-
let { status: e, runtimeConfig: t, resolvedConfig: n, chatId: r, chatHistory:
|
|
22674
|
-
...
|
|
22675
|
-
...
|
|
22676
|
-
},
|
|
22677
|
-
...
|
|
22678
|
-
...
|
|
22679
|
-
},
|
|
22679
|
+
let { status: e, runtimeConfig: t, resolvedConfig: n, chatId: r, chatHistory: o, isOpen: c, activeScreen: d, isHumanHandled: f, agentName: p, agentHeadshot: m, visitorEmail: h, isAgentTyping: g, isAiTyping: ee, isLoading: te, isVoiceMode: _, isRateLimited: ne, rateLimitMessage: re, isConversationEnded: ie, incomingCall: ae, activeCallId: oe, callConnectionState: se, callConnectedAt: v, isCallMuted: ce, webRTCError: le, language: ue, historyRef: y, onMessageSync: b, endConversation: de, acceptCall: fe, rejectCall: pe, endWebRTCCall: me, toggleCallMute: he, dismissCallError: ge, captureVisitorEmail: _e, openWidget: ve, closeWidget: ye, sendMessage: be, setVoiceMode: xe, startTyping: Se, stopTyping: Ce, updateTypingDraft: we } = Xt(), [Te, Ee] = s(""), [De, Oe] = s(null), [ke, Ae] = s(null), [je, Me] = s(null), [Ne, Pe] = s(0), [x, Fe] = s(h || ""), [Ie, Le] = s(""), S = t?.widgetSettings || {}, Re = n?.widgetSettings || {}, ze = {
|
|
22680
|
+
...S.branding || {},
|
|
22681
|
+
...Re.branding || {}
|
|
22682
|
+
}, Be = {
|
|
22683
|
+
...S.theme || {},
|
|
22684
|
+
...Re.theme || {}
|
|
22685
|
+
}, Ve = Be.primaryColor || "#3B82F6", He = Be.accentColor || "#1D4ED8", Ue = (Be.position || "bottom-right") === "bottom-left" ? {
|
|
22680
22686
|
left: "1.5rem",
|
|
22681
22687
|
bottom: "1.5rem"
|
|
22682
22688
|
} : {
|
|
22683
22689
|
right: "1.5rem",
|
|
22684
22690
|
bottom: "1.5rem"
|
|
22685
|
-
},
|
|
22686
|
-
"--flowengage-primary":
|
|
22687
|
-
"--flowengage-accent":
|
|
22691
|
+
}, We = {
|
|
22692
|
+
"--flowengage-primary": Ve,
|
|
22693
|
+
"--flowengage-accent": He,
|
|
22688
22694
|
position: "fixed",
|
|
22689
22695
|
zIndex: 999999,
|
|
22690
22696
|
border: "none",
|
|
22691
22697
|
outline: "none",
|
|
22692
22698
|
fontFamily: "ui-sans-serif, system-ui, sans-serif",
|
|
22693
|
-
...
|
|
22694
|
-
},
|
|
22699
|
+
...c ? {} : Ue
|
|
22700
|
+
}, Ge = Re.recommendations?.[ue] || S.recommendations?.[ue] || cg, Ke = Re.greetings?.[ue] || S.greetings?.[ue], qe = ze.chatButtonText || "Chat with us", Je = ze.headerName || t?.websiteName || "OpenSense Labs", C = ze.logoUrl || null, w = ze.hideWatermark || !1, T = Re.elevenLabsAgentId || t?.elevenLabsAgentId || null, Ye = t?.siteId || n?.siteId || null, Xe = t?.apiBaseUrl || "", Ze = ze.fallbackAgentName || "Agent", Qe = ze.botLabel || "AI", $e = m && String(m).trim() || t?.ownerProfileImageUrl && String(t.ownerProfileImageUrl).trim() || null, et = ae?.agentName || p || Ze, tt = o.some((e) => e.sender === "user"), nt = a(() => {
|
|
22701
|
+
let e = o.findIndex((e) => e.sender === "user");
|
|
22702
|
+
return e === -1 ? !1 : o.slice(e + 1).some((e) => e.sender === "bot" || e.sender === "ai" || e.sender === "agent");
|
|
22703
|
+
}, [o]), rt = !h && tt && nt;
|
|
22695
22704
|
i(() => {
|
|
22696
|
-
|
|
22697
|
-
}, [
|
|
22698
|
-
if (!
|
|
22699
|
-
|
|
22705
|
+
Fe(h || ""), h && Le("");
|
|
22706
|
+
}, [h]), i(() => {
|
|
22707
|
+
if (!v || se !== "connected") {
|
|
22708
|
+
Pe(0);
|
|
22700
22709
|
return;
|
|
22701
22710
|
}
|
|
22702
22711
|
let e = () => {
|
|
22703
|
-
let e = new Date(
|
|
22704
|
-
isNaN(e) ||
|
|
22712
|
+
let e = new Date(v).getTime();
|
|
22713
|
+
isNaN(e) || Pe(Math.max(0, Math.floor((Date.now() - e) / 1e3)));
|
|
22705
22714
|
};
|
|
22706
22715
|
e();
|
|
22707
22716
|
let t = window.setInterval(e, 1e3);
|
|
22708
22717
|
return () => window.clearInterval(t);
|
|
22709
|
-
}, [
|
|
22710
|
-
if (!
|
|
22711
|
-
|
|
22718
|
+
}, [v, se]), i(() => {
|
|
22719
|
+
if (!f || _ || ie) {
|
|
22720
|
+
we(""), Ce();
|
|
22712
22721
|
return;
|
|
22713
22722
|
}
|
|
22714
|
-
if (!
|
|
22715
|
-
|
|
22723
|
+
if (!Te.trim()) {
|
|
22724
|
+
we(""), Ce();
|
|
22716
22725
|
return;
|
|
22717
22726
|
}
|
|
22718
|
-
|
|
22727
|
+
Se();
|
|
22719
22728
|
let e = window.setTimeout(() => {
|
|
22720
|
-
|
|
22729
|
+
we(Te);
|
|
22721
22730
|
}, 120), t = window.setTimeout(() => {
|
|
22722
|
-
|
|
22731
|
+
Ce();
|
|
22723
22732
|
}, 1200);
|
|
22724
22733
|
return () => {
|
|
22725
22734
|
window.clearTimeout(e), window.clearTimeout(t);
|
|
22726
22735
|
};
|
|
22727
22736
|
}, [
|
|
22728
|
-
|
|
22729
|
-
|
|
22730
|
-
|
|
22731
|
-
|
|
22732
|
-
xe,
|
|
22737
|
+
Te,
|
|
22738
|
+
f,
|
|
22739
|
+
_,
|
|
22740
|
+
ie,
|
|
22733
22741
|
Se,
|
|
22734
|
-
Ce
|
|
22742
|
+
Ce,
|
|
22743
|
+
we
|
|
22735
22744
|
]);
|
|
22736
|
-
let
|
|
22745
|
+
let it = (e) => e ? {
|
|
22737
22746
|
replyTo: e.messageId || e.id || null,
|
|
22738
22747
|
replyToContent: (e.replyToContent || e.message || "").replace(/<[^>]+>/g, "").trim().slice(0, 200),
|
|
22739
22748
|
replyToSender: e.sender || null
|
|
22740
|
-
} : null,
|
|
22741
|
-
if (e.preventDefault(),
|
|
22742
|
-
if (
|
|
22743
|
-
let e =
|
|
22749
|
+
} : null, at = async (e) => {
|
|
22750
|
+
if (e.preventDefault(), ie) return;
|
|
22751
|
+
if (rt) {
|
|
22752
|
+
let e = x.trim().toLowerCase();
|
|
22744
22753
|
if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)) {
|
|
22745
|
-
|
|
22754
|
+
Le("Please enter a valid email so we can continue helping you.");
|
|
22746
22755
|
return;
|
|
22747
22756
|
}
|
|
22748
|
-
await
|
|
22757
|
+
await _e(e), Le("");
|
|
22749
22758
|
return;
|
|
22750
22759
|
}
|
|
22751
|
-
if (!
|
|
22752
|
-
let t =
|
|
22753
|
-
|
|
22754
|
-
},
|
|
22755
|
-
if (
|
|
22756
|
-
|
|
22760
|
+
if (!Te.trim()) return;
|
|
22761
|
+
let t = Te.trim(), n = it(je);
|
|
22762
|
+
Ee(""), Me(null), await be(t, "", n);
|
|
22763
|
+
}, ot = async () => {
|
|
22764
|
+
if (rt) {
|
|
22765
|
+
Le("Please share your email before starting a call.");
|
|
22757
22766
|
return;
|
|
22758
22767
|
}
|
|
22759
|
-
if (
|
|
22760
|
-
|
|
22768
|
+
if (_) {
|
|
22769
|
+
xe(!1);
|
|
22761
22770
|
return;
|
|
22762
22771
|
}
|
|
22763
|
-
|
|
22772
|
+
Ae(null);
|
|
22764
22773
|
try {
|
|
22765
|
-
|
|
22774
|
+
Oe(await navigator.mediaDevices.getUserMedia({ audio: !0 })), xe(!0);
|
|
22766
22775
|
} catch (e) {
|
|
22767
|
-
|
|
22776
|
+
Ae(e.message || "Could not access microphone.");
|
|
22768
22777
|
}
|
|
22769
|
-
},
|
|
22770
|
-
|
|
22771
|
-
},
|
|
22778
|
+
}, st = () => {
|
|
22779
|
+
De && (De.getTracks().forEach((e) => e.stop()), Oe(null)), xe(!1);
|
|
22780
|
+
}, ct = (e) => {
|
|
22772
22781
|
let t = Math.floor(e / 60), n = e % 60;
|
|
22773
22782
|
return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
|
|
22774
22783
|
};
|
|
22775
22784
|
return e === "ready" ? /* @__PURE__ */ u("div", {
|
|
22776
22785
|
className: "flowengage-shell",
|
|
22777
|
-
"data-open":
|
|
22778
|
-
style:
|
|
22786
|
+
"data-open": c ? "true" : "false",
|
|
22787
|
+
style: We,
|
|
22779
22788
|
children: [/* @__PURE__ */ l(Tn, {
|
|
22780
|
-
isOpen:
|
|
22781
|
-
openWidget:
|
|
22782
|
-
launcherText:
|
|
22783
|
-
primaryColor:
|
|
22784
|
-
posInline:
|
|
22785
|
-
}),
|
|
22789
|
+
isOpen: c,
|
|
22790
|
+
openWidget: ve,
|
|
22791
|
+
launcherText: qe,
|
|
22792
|
+
primaryColor: Ve,
|
|
22793
|
+
posInline: Ue
|
|
22794
|
+
}), c && /* @__PURE__ */ u("div", {
|
|
22786
22795
|
className: "flowengage-chat-panel",
|
|
22787
|
-
style: { background:
|
|
22796
|
+
style: { background: o.length === 0 && !_ ? `linear-gradient(to bottom, ${Ve} 0%, ${Ve} 70%, white 85%)` : "white" },
|
|
22788
22797
|
children: [
|
|
22789
22798
|
/* @__PURE__ */ l(kn, {
|
|
22790
|
-
logoUrl:
|
|
22791
|
-
brandName:
|
|
22792
|
-
agentName:
|
|
22793
|
-
fallbackAgentName:
|
|
22794
|
-
activeScreen:
|
|
22795
|
-
branding:
|
|
22796
|
-
isConversationEnded:
|
|
22797
|
-
endConversation:
|
|
22798
|
-
closeWidget:
|
|
22799
|
-
isInitial:
|
|
22800
|
-
botLabel:
|
|
22801
|
-
agentAvatarUrl:
|
|
22802
|
-
primaryColor:
|
|
22799
|
+
logoUrl: C,
|
|
22800
|
+
brandName: Je,
|
|
22801
|
+
agentName: p,
|
|
22802
|
+
fallbackAgentName: Ze,
|
|
22803
|
+
activeScreen: d,
|
|
22804
|
+
branding: ze,
|
|
22805
|
+
isConversationEnded: ie,
|
|
22806
|
+
endConversation: de,
|
|
22807
|
+
closeWidget: ye,
|
|
22808
|
+
isInitial: o.length === 0 && !_,
|
|
22809
|
+
botLabel: Qe,
|
|
22810
|
+
agentAvatarUrl: d === "agent" ? $e : null,
|
|
22811
|
+
primaryColor: Ve
|
|
22803
22812
|
}),
|
|
22804
22813
|
/* @__PURE__ */ l("div", {
|
|
22805
22814
|
style: {
|
|
@@ -22809,7 +22818,7 @@ function ug() {
|
|
|
22809
22818
|
flexDirection: "column"
|
|
22810
22819
|
},
|
|
22811
22820
|
className: "flowengage-content-wrapper",
|
|
22812
|
-
children:
|
|
22821
|
+
children: _ ? /* @__PURE__ */ l("div", {
|
|
22813
22822
|
style: {
|
|
22814
22823
|
flex: 1,
|
|
22815
22824
|
display: "flex",
|
|
@@ -22817,15 +22826,15 @@ function ug() {
|
|
|
22817
22826
|
},
|
|
22818
22827
|
className: "fe-screen-fade-in",
|
|
22819
22828
|
children: /* @__PURE__ */ l(sg, {
|
|
22820
|
-
agentId:
|
|
22829
|
+
agentId: T,
|
|
22821
22830
|
chatId: r,
|
|
22822
|
-
siteId:
|
|
22823
|
-
apiBaseUrl:
|
|
22824
|
-
historyRef:
|
|
22825
|
-
onMessageSync:
|
|
22826
|
-
onEnd:
|
|
22831
|
+
siteId: Ye,
|
|
22832
|
+
apiBaseUrl: Xe,
|
|
22833
|
+
historyRef: y,
|
|
22834
|
+
onMessageSync: b,
|
|
22835
|
+
onEnd: st
|
|
22827
22836
|
})
|
|
22828
|
-
}, "voice") :
|
|
22837
|
+
}, "voice") : o.length === 0 ? /* @__PURE__ */ l("div", {
|
|
22829
22838
|
style: {
|
|
22830
22839
|
flex: 1,
|
|
22831
22840
|
display: "flex",
|
|
@@ -22833,9 +22842,9 @@ function ug() {
|
|
|
22833
22842
|
},
|
|
22834
22843
|
className: "fe-screen-fade-in",
|
|
22835
22844
|
children: /* @__PURE__ */ l(In, {
|
|
22836
|
-
greetings:
|
|
22837
|
-
recommendations:
|
|
22838
|
-
onSendMessage:
|
|
22845
|
+
greetings: Ke,
|
|
22846
|
+
recommendations: Ge,
|
|
22847
|
+
onSendMessage: be
|
|
22839
22848
|
})
|
|
22840
22849
|
}, "welcome") : /* @__PURE__ */ l("div", {
|
|
22841
22850
|
style: {
|
|
@@ -22845,60 +22854,60 @@ function ug() {
|
|
|
22845
22854
|
},
|
|
22846
22855
|
className: "fe-screen-fade-in",
|
|
22847
22856
|
children: /* @__PURE__ */ l(Nn, {
|
|
22848
|
-
chatHistory:
|
|
22849
|
-
isAiTyping:
|
|
22850
|
-
isAgentTyping:
|
|
22851
|
-
setReplyContext:
|
|
22857
|
+
chatHistory: o,
|
|
22858
|
+
isAiTyping: ee,
|
|
22859
|
+
isAgentTyping: g,
|
|
22860
|
+
setReplyContext: Me,
|
|
22852
22861
|
TypingDots: lg,
|
|
22853
|
-
primaryColor:
|
|
22854
|
-
agentHeadshot:
|
|
22855
|
-
agentDisplayName:
|
|
22862
|
+
primaryColor: Ve,
|
|
22863
|
+
agentHeadshot: $e,
|
|
22864
|
+
agentDisplayName: p || Ze
|
|
22856
22865
|
})
|
|
22857
22866
|
}, "history")
|
|
22858
22867
|
}),
|
|
22859
22868
|
/* @__PURE__ */ l(Bn, {
|
|
22860
|
-
webRTCError:
|
|
22861
|
-
micError:
|
|
22862
|
-
setMicError:
|
|
22863
|
-
dismissCallError:
|
|
22864
|
-
incomingCall:
|
|
22865
|
-
rejectCall:
|
|
22866
|
-
acceptCall:
|
|
22867
|
-
activeCallId:
|
|
22868
|
-
callConnectionState:
|
|
22869
|
-
formatCallDuration:
|
|
22870
|
-
callDurationSeconds:
|
|
22871
|
-
endWebRTCCall:
|
|
22872
|
-
isCallMuted:
|
|
22873
|
-
toggleCallMute:
|
|
22874
|
-
isAIVoiceActive:
|
|
22875
|
-
currentCallAgentName:
|
|
22876
|
-
isRateLimited:
|
|
22877
|
-
rateLimitMessage:
|
|
22869
|
+
webRTCError: le,
|
|
22870
|
+
micError: ke,
|
|
22871
|
+
setMicError: Ae,
|
|
22872
|
+
dismissCallError: ge,
|
|
22873
|
+
incomingCall: ae,
|
|
22874
|
+
rejectCall: pe,
|
|
22875
|
+
acceptCall: fe,
|
|
22876
|
+
activeCallId: oe,
|
|
22877
|
+
callConnectionState: se,
|
|
22878
|
+
formatCallDuration: ct,
|
|
22879
|
+
callDurationSeconds: Ne,
|
|
22880
|
+
endWebRTCCall: me,
|
|
22881
|
+
isCallMuted: ce,
|
|
22882
|
+
toggleCallMute: he,
|
|
22883
|
+
isAIVoiceActive: _,
|
|
22884
|
+
currentCallAgentName: et,
|
|
22885
|
+
isRateLimited: ne,
|
|
22886
|
+
rateLimitMessage: re
|
|
22878
22887
|
}),
|
|
22879
|
-
!
|
|
22888
|
+
!_ && /* @__PURE__ */ l("div", {
|
|
22880
22889
|
style: {
|
|
22881
22890
|
position: "relative",
|
|
22882
22891
|
zIndex: 1
|
|
22883
22892
|
},
|
|
22884
22893
|
children: /* @__PURE__ */ l(Ln, {
|
|
22885
|
-
input:
|
|
22886
|
-
setInput:
|
|
22887
|
-
onSubmit:
|
|
22888
|
-
isConversationEnded:
|
|
22889
|
-
callUiActive: !!(
|
|
22890
|
-
handleToggleVoice:
|
|
22891
|
-
activeScreen:
|
|
22892
|
-
inputDisabled:
|
|
22893
|
-
replyContext:
|
|
22894
|
-
clearReplyContext: () =>
|
|
22895
|
-
requiresEmail:
|
|
22896
|
-
emailInput:
|
|
22897
|
-
setEmailInput:
|
|
22898
|
-
emailError:
|
|
22894
|
+
input: Te,
|
|
22895
|
+
setInput: Ee,
|
|
22896
|
+
onSubmit: at,
|
|
22897
|
+
isConversationEnded: ie,
|
|
22898
|
+
callUiActive: !!(ae || oe),
|
|
22899
|
+
handleToggleVoice: ot,
|
|
22900
|
+
activeScreen: d,
|
|
22901
|
+
inputDisabled: te || ne || ie,
|
|
22902
|
+
replyContext: je,
|
|
22903
|
+
clearReplyContext: () => Me(null),
|
|
22904
|
+
requiresEmail: rt,
|
|
22905
|
+
emailInput: x,
|
|
22906
|
+
setEmailInput: Fe,
|
|
22907
|
+
emailError: Ie
|
|
22899
22908
|
})
|
|
22900
22909
|
}),
|
|
22901
|
-
!
|
|
22910
|
+
!w && /* @__PURE__ */ l("div", {
|
|
22902
22911
|
style: {
|
|
22903
22912
|
position: "relative",
|
|
22904
22913
|
zIndex: 1,
|