@d-id/client-sdk 3.0.1 → 3.0.2-staging.432
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-D5L_puf1.js → index-C_bX3NcV.js} +120 -120
- package/dist/index-C_bX3NcV.js.map +1 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +5 -5
- package/dist/{livekit-manager-Dr0vnEwM.js → livekit-manager-CSV7fX8y.js} +2 -2
- package/dist/{livekit-manager-Dr0vnEwM.js.map → livekit-manager-CSV7fX8y.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-D5L_puf1.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
|
|
@@ -2328,8 +2328,9 @@ export declare interface AgentManager {
|
|
|
2328
2328
|
* callback may not fire; the error is still thrown. Typical cases are `401` or `403` for a client
|
|
2329
2329
|
* key that is not authorized for the agent or the calling domain, and `404` for an unknown agent
|
|
2330
2330
|
* id; an account that is out of credits comes back with {@link HttpError.code | code}
|
|
2331
|
-
* `'InsufficientCreditsError'
|
|
2332
|
-
*
|
|
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.
|
|
2333
2334
|
*
|
|
2334
2335
|
* {@link BaseError.kind | kind} is always `'HttpError'`, so a `switch` on it narrows a caught value
|
|
2335
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-C_bX3NcV.js";
|
|
2
2
|
export {
|
|
3
3
|
s as AgentActivityState,
|
|
4
4
|
e as AvatarType,
|