@d-id/client-sdk 3.0.0 → 3.0.1-staging.429
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-511IdCtL.js → index-CMN0aJW-.js} +357 -358
- package/dist/index-CMN0aJW-.js.map +1 -0
- package/dist/index.d.ts +14 -6
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +5 -5
- package/dist/{livekit-manager-CO_xuYmz.js → livekit-manager-XvgzodsN.js} +2 -2
- package/dist/{livekit-manager-CO_xuYmz.js.map → livekit-manager-XvgzodsN.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-511IdCtL.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -384,9 +384,9 @@ export declare interface AgentManager {
|
|
|
384
384
|
* current {@link ChatMode} streams video — which a
|
|
385
385
|
* {@link AgentManager.changeMode | changeMode()} out of a text-only mode can bring about.
|
|
386
386
|
* @throws {@link HttpError} When creating the stream or the chat comes back non-2xx — a client
|
|
387
|
-
* key that is not authorized for the agent or the calling domain,
|
|
388
|
-
*
|
|
389
|
-
* out-of-credits response.
|
|
387
|
+
* key that is not authorized for the agent or the calling domain, an account out of credits, or
|
|
388
|
+
* an agent that is being upgraded. The SDK tries the initialization up to three times first,
|
|
389
|
+
* except on `429`, on an out-of-credits response and on an agent that is being upgraded.
|
|
390
390
|
* @throws {@link NetworkError} When those requests never reach the server.
|
|
391
391
|
* @example
|
|
392
392
|
* ```ts
|
|
@@ -1516,7 +1516,14 @@ export declare interface AgentManager {
|
|
|
1516
1516
|
* An Expressive (V4) avatar: a real-time avatar that also supports microphone and camera
|
|
1517
1517
|
* publishing, client tools and interruption.
|
|
1518
1518
|
*/
|
|
1519
|
-
Expressive = "expressive"
|
|
1519
|
+
Expressive = "expressive",
|
|
1520
|
+
/**
|
|
1521
|
+
* An image agent: a still photo animated in real time. Streams over the same real-time session
|
|
1522
|
+
* as Expressive (V4).
|
|
1523
|
+
*
|
|
1524
|
+
* @hidden
|
|
1525
|
+
*/
|
|
1526
|
+
Image = "image"
|
|
1520
1527
|
}
|
|
1521
1528
|
|
|
1522
1529
|
/**
|
|
@@ -2321,8 +2328,9 @@ export declare interface AgentManager {
|
|
|
2321
2328
|
* callback may not fire; the error is still thrown. Typical cases are `401` or `403` for a client
|
|
2322
2329
|
* key that is not authorized for the agent or the calling domain, and `404` for an unknown agent
|
|
2323
2330
|
* id; an account that is out of credits comes back with {@link HttpError.code | code}
|
|
2324
|
-
* `'InsufficientCreditsError'
|
|
2325
|
-
*
|
|
2331
|
+
* `'InsufficientCreditsError'`, and an agent that is being upgraded with `503` and code
|
|
2332
|
+
* `'AgentUpgradingError'`. A `429` is retried twice, one second apart (three attempts in total),
|
|
2333
|
+
* before it surfaces.
|
|
2326
2334
|
*
|
|
2327
2335
|
* {@link BaseError.kind | kind} is always `'HttpError'`, so a `switch` on it narrows a caught value
|
|
2328
2336
|
* to this class. The server's own classification lives on {@link HttpError.code | code} — the
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, k as e, B as t, m as o, o as n, p as i, f as E, g as c, D as d, H as g, N as C, P as S, q as l, e as p, b as A, j as m, T as v, V as T, r as D, W as h, s as w, u as y, v as M, w as P } from "./index-
|
|
1
|
+
import { A as s, k as e, B as t, m as o, o as n, p as i, f as E, g as c, D as d, H as g, N as C, P as S, q as l, e as p, b as A, j as m, T as v, V as T, r as D, W as h, s as w, u as y, v as M, w as P } from "./index-CMN0aJW-.js";
|
|
2
2
|
export {
|
|
3
3
|
s as AgentActivityState,
|
|
4
4
|
e as AvatarType,
|