@d-id/client-sdk 3.0.2 → 3.0.3-staging.435
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-DPdbrvR2.js → index-BtbLx1VY.js} +6 -6
- package/dist/index-BtbLx1VY.js.map +1 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/{livekit-manager-VAsAnNV5.js → livekit-manager-BQpwA_3y.js} +2 -2
- package/dist/{livekit-manager-VAsAnNV5.js.map → livekit-manager-BQpwA_3y.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-DPdbrvR2.js.map +0 -1
|
@@ -531,7 +531,7 @@ function rt(e) {
|
|
|
531
531
|
function xe(e) {
|
|
532
532
|
return e instanceof q ? e.toJson() : { kind: "UnknownError", message: qt(e) || "UnknownError" };
|
|
533
533
|
}
|
|
534
|
-
const Zt = "3.0.
|
|
534
|
+
const Zt = "3.0.3-staging.435", en = "https://api-js.mixpanel.com/track/?verbose=1&ip=1", St = 50, Q = [];
|
|
535
535
|
let Le = !1;
|
|
536
536
|
async function Ct(e) {
|
|
537
537
|
const t = await fetch(en, {
|
|
@@ -1356,7 +1356,7 @@ async function Pn(e, t, r, a) {
|
|
|
1356
1356
|
const { version: s, ...i } = t;
|
|
1357
1357
|
switch (i.transport.provider) {
|
|
1358
1358
|
case Ve.Livekit:
|
|
1359
|
-
const { createLiveKitStreamingManager: u } = await import("./livekit-manager-
|
|
1359
|
+
const { createLiveKitStreamingManager: u } = await import("./livekit-manager-BQpwA_3y.js");
|
|
1360
1360
|
return u(o, i, r);
|
|
1361
1361
|
default:
|
|
1362
1362
|
throw new Error(`Unsupported transport provider: ${i.transport.provider}`);
|
|
@@ -1600,7 +1600,7 @@ async function Kn(e, t) {
|
|
|
1600
1600
|
const P = Ue(S.avatar.type);
|
|
1601
1601
|
if (P && te(u))
|
|
1602
1602
|
throw new I(je);
|
|
1603
|
-
P && import("./livekit-manager-
|
|
1603
|
+
P && import("./livekit-manager-BQpwA_3y.js").then(({ preloadLiveKit: c }) => c()).catch(() => {
|
|
1604
1604
|
}), d.enrich(Kt(S));
|
|
1605
1605
|
const { onMessage: U, clearQueue: j } = mn(d, n, p, S, (c) => {
|
|
1606
1606
|
var m, w;
|
|
@@ -1689,13 +1689,13 @@ async function Kn(e, t) {
|
|
|
1689
1689
|
limit: 3,
|
|
1690
1690
|
timeout: Pt,
|
|
1691
1691
|
timeoutErrorMessage: "Timeout initializing the stream",
|
|
1692
|
-
shouldRetryFn: (N) => !(N instanceof Ne && (N.status === 429 || N.
|
|
1692
|
+
shouldRetryFn: (N) => !(N instanceof Ne && (N.status === 429 || N.status === 409 || N.code === "InsufficientCreditsError")),
|
|
1693
1693
|
delayMs: 1e3
|
|
1694
1694
|
}
|
|
1695
1695
|
).catch(async (N) => {
|
|
1696
1696
|
var Ce;
|
|
1697
1697
|
throw m.then((W) => W == null ? void 0 : W.disconnect()).catch(() => {
|
|
1698
|
-
}), N instanceof Ne && N.code === "
|
|
1698
|
+
}), N instanceof Ne && N.code === "NotReadyError" || await ce(L.Maintenance), (Ce = l.onConnectionStateChange) == null || Ce.call(l, R.Fail), N;
|
|
1699
1699
|
}), M = (_e = n.chat) == null ? void 0 : _e.id, [E, { streamingManager: z, chat: _ }] = await Promise.all([m, w]), b = !!_ && _.id !== M;
|
|
1700
1700
|
if (_ && b && (($ = l.onNewChat) == null || $.call(l, _.id)), n.streamingManager = z, n.socketManager = E, n.chat = _, X) {
|
|
1701
1701
|
await V();
|
|
@@ -2063,4 +2063,4 @@ export {
|
|
|
2063
2063
|
Hn as v,
|
|
2064
2064
|
yt as w
|
|
2065
2065
|
};
|
|
2066
|
-
//# sourceMappingURL=index-
|
|
2066
|
+
//# sourceMappingURL=index-BtbLx1VY.js.map
|