@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.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, or an account out of
388
- * credits. The SDK tries the initialization up to three times first, except on `429` and on an
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'`. A `429` is retried twice, one second apart (three attempts in
2325
- * total), before it surfaces.
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-511IdCtL.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-CMN0aJW-.js";
2
2
  export {
3
3
  s as AgentActivityState,
4
4
  e as AvatarType,