@d-id/client-sdk 3.0.3 → 3.0.4-staging.437

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.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 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.
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'`, 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.
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-D3V0poNL.js";
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-D-vCkSp0.js";
2
2
  export {
3
3
  s as AgentActivityState,
4
4
  e as AvatarType,