@d-id/client-sdk 3.0.3 → 3.0.4
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-D3V0poNL.js → index-Bg-Bdzun.js} +6 -6
- package/dist/index-Bg-Bdzun.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-CWngBsPu.js → livekit-manager-X_uL-Mz1.js} +2 -2
- package/dist/{livekit-manager-CWngBsPu.js.map → livekit-manager-X_uL-Mz1.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-D3V0poNL.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -385,8 +385,8 @@ export declare interface AgentManager {
|
|
|
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
387
|
* key that is not authorized for the agent or the calling domain, an account out of credits, or
|
|
388
|
-
* an agent that is
|
|
389
|
-
* except on `429`, on an out-of-credits response
|
|
388
|
+
* an agent that is not built yet. The SDK tries the initialization up to three times first,
|
|
389
|
+
* except on `429`, on `409` and on an out-of-credits response.
|
|
390
390
|
* @throws {@link NetworkError} When those requests never reach the server.
|
|
391
391
|
* @example
|
|
392
392
|
* ```ts
|
|
@@ -2328,9 +2328,10 @@ 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
|
-
* `'
|
|
2333
|
-
* before it
|
|
2331
|
+
* `'InsufficientCreditsError'`. An agent that is still being built comes back with `409` and code
|
|
2332
|
+
* `'NotReadyError'`, and one whose build failed or was rejected with `409` and code
|
|
2333
|
+
* `'ConflictError'`. A `429` is retried twice, one second apart (three attempts in total), before it
|
|
2334
|
+
* surfaces.
|
|
2334
2335
|
*
|
|
2335
2336
|
* {@link BaseError.kind | kind} is always `'HttpError'`, so a `switch` on it narrows a caught value
|
|
2336
2337
|
* 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-Bg-Bdzun.js";
|
|
2
2
|
export {
|
|
3
3
|
s as AgentActivityState,
|
|
4
4
|
e as AvatarType,
|