realtime-avatar 0.37.0 → 0.38.0

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/README.md CHANGED
@@ -492,7 +492,7 @@ rta.iterateRenders({ limit? }) // every render, paging handled
492
492
  rta.getRenderAccess(renderId) // { id, url, expiresAt }; signed for an hour, renew when needed
493
493
 
494
494
  // avatars
495
- rta.createLive2dAvatar({ displayName, voice, settings?, metadata? }) // app-owned rig, explicit voice, no assets
495
+ rta.createAnimaAvatar({ displayName, voice, settings?, metadata? }) // app-owned rig and rendering, explicit voice, no assets
496
496
  rta.createAvatarFromImage({ displayName, imageUrl, motionPrompt?, voice? }) // platform-rendered video
497
497
  rta.createAvatarFromVideo({ displayName, videoUrl, voice? }) // DEPRECATED — closed, 422
498
498
  rta.listAvatars()
@@ -544,10 +544,10 @@ const voice: VoiceSpecInput = {
544
544
  };
545
545
  ```
546
546
 
547
- ### Register an app-owned Live2D rig
547
+ ### Register an Anima avatar (your app owns the rig and the rendering)
548
548
 
549
549
  ```ts
550
- const avatar = await rta.createLive2dAvatar({
550
+ const avatar = await rta.createAnimaAvatar({
551
551
  displayName: "Rin",
552
552
  voice: { provider: "fish", voice_id: "your-provider-voice-id", model: "s2-pro" },
553
553
  metadata: { characterId: "your-character-id" },
@@ -556,18 +556,21 @@ const avatar = await rta.createLive2dAvatar({
556
556
  const call = await rta.startCall({ avatarId: avatar.id, mode: "voice" });
557
557
  ```
558
558
 
559
- Requires the platform's Live2D identity support. One `POST /avatars` sends `renderer: "live2d"`,
559
+ Requires the platform's `anima` renderer. One `POST /avatars` sends `renderer: "anima"`,
560
560
  `sourceKind: "image"` and an explicit voice selector; no assets, automatic casting, clips or
561
- resting-loop generation are requested. Your app owns the rig. Source fields, motion prompts,
561
+ resting-loop generation are requested. Your app owns the rig and the rendering. Source fields, motion prompts,
562
562
  renderer overrides and automatic voice descriptions are refused before network I/O.
563
563
  `settings` and `metadata` are optional records and are omitted unless provided.
564
564
 
565
- The exported `CreateLive2dAvatarInput` and complete `RegisteredAvatar` response derive from
565
+ The exported `CreateAnimaAvatarInput` and complete `RegisteredAvatar` response derive from
566
566
  canonical generated schemas. The response is parsed once; malformed successful responses throw
567
567
  `RealtimeAvatarError` without the rejected body. Existing image/video creation requests are
568
568
  unchanged. Existing avatar methods retain `renderer`, defaulting older responses that omit it to
569
569
  `"video"`.
570
570
 
571
+ `renderer: "anima"` replaced `live2d` in 0.38.0 with no alias: the platform refuses `live2d` and
572
+ SDK 0.37.0 and earlier cannot parse an `anima` avatar, so upgrade once the platform serves `anima`.
573
+
571
574
  ### Validate persisted grants and proxy requests
572
575
 
573
576
  The server root (`realtime-avatar` or `realtime-avatar/server`) exports the existing
@@ -845,104 +845,108 @@ var schema47 = z.strictObject({
845
845
  var schema56 = z.string().regex(new RegExp("^(vce|voice)_"));
846
846
  var schema64 = z.number().min(0);
847
847
  var schema74 = z.int().min(1);
848
- var schema84 = z.strictObject({
848
+ var schema84 = z.enum(["normal", "balanced", "low"]);
849
+ var schema94 = z.int().min(100).max(300);
850
+ var schema104 = z.strictObject({
849
851
  "text": z.string().trim().pipe(schema08),
850
852
  "speed": schema212.optional(),
851
- "language": schema37.optional()
852
- });
853
- var schema94 = z.string().max(4096);
854
- var schema104 = z.number().min(0).max(180);
855
- var schema118 = z.strictObject({
856
- "text": schema94,
857
- "start": schema104,
858
- "end": schema104
859
- });
860
- var speechAlignedTextSchema = schema118.refine((segment) => segment.end >= segment.start);
861
- var schema134 = z.uuid().regex(new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"));
862
- var schema144 = z.literal("started");
863
- var schema154 = z.literal("pcm_s16le");
864
- var schema163 = z.literal(24e3);
865
- var schema173 = z.literal(1);
866
- var schema183 = z.strictObject({
867
- "requestId": schema134,
868
- "type": schema144,
869
- "encoding": schema154,
870
- "sampleRate": schema163,
871
- "channels": schema173
872
- });
873
- var schema193 = z.literal("audio");
874
- var schema202 = z.int().min(0).max(9007199254740991);
875
- var schema213 = z.int().min(0).max(432e4);
876
- var schema222 = z.base64().regex(new RegExp("^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$")).min(4).max(21848);
877
- var schema232 = z.strictObject({
878
- "requestId": schema134,
879
- "type": schema193,
880
- "sequence": schema202,
881
- "sampleOffset": schema213,
882
- "audioBase64": schema222
883
- });
884
- var schema242 = z.literal("alignment");
885
- var schema252 = z.int().min(0).max(127);
886
- var schema262 = z.array(speechAlignedTextSchema).max(2048);
887
- var schema272 = z.strictObject({
888
- "requestId": schema134,
889
- "type": schema242,
890
- "chunkSeq": schema252,
891
- "segments": schema262
892
- });
893
- var schema282 = z.literal("completed");
894
- var schema292 = z.int().max(432e4).gt(0);
895
- var schema30 = z.int().max(9007199254740991).gt(0);
896
- var schema31 = z.strictObject({
897
- "requestId": schema134,
898
- "type": schema282,
899
- "totalSamples": schema292,
853
+ "language": schema37.optional(),
854
+ "latency": schema84.optional(),
855
+ "chunkLength": schema94.optional()
856
+ });
857
+ var schema118 = z.string().max(4096);
858
+ var schema124 = z.number().min(0).max(180);
859
+ var schema134 = z.strictObject({
860
+ "text": schema118,
861
+ "start": schema124,
862
+ "end": schema124
863
+ });
864
+ var speechAlignedTextSchema = schema134.refine((segment) => segment.end >= segment.start);
865
+ var schema154 = z.uuid().regex(new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"));
866
+ var schema163 = z.literal("started");
867
+ var schema173 = z.literal("pcm_s16le");
868
+ var schema183 = z.literal(24e3);
869
+ var schema193 = z.literal(1);
870
+ var schema202 = z.strictObject({
871
+ "requestId": schema154,
872
+ "type": schema163,
873
+ "encoding": schema173,
874
+ "sampleRate": schema183,
875
+ "channels": schema193
876
+ });
877
+ var schema213 = z.literal("audio");
878
+ var schema222 = z.int().min(0).max(9007199254740991);
879
+ var schema232 = z.int().min(0).max(432e4);
880
+ var schema242 = z.base64().regex(new RegExp("^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$")).min(4).max(21848);
881
+ var schema252 = z.strictObject({
882
+ "requestId": schema154,
883
+ "type": schema213,
884
+ "sequence": schema222,
885
+ "sampleOffset": schema232,
886
+ "audioBase64": schema242
887
+ });
888
+ var schema262 = z.literal("alignment");
889
+ var schema272 = z.int().min(0).max(127);
890
+ var schema282 = z.array(speechAlignedTextSchema).max(2048);
891
+ var schema292 = z.strictObject({
892
+ "requestId": schema154,
893
+ "type": schema262,
894
+ "chunkSeq": schema272,
895
+ "segments": schema282
896
+ });
897
+ var schema30 = z.literal("completed");
898
+ var schema31 = z.int().max(432e4).gt(0);
899
+ var schema322 = z.int().max(9007199254740991).gt(0);
900
+ var schema332 = z.strictObject({
901
+ "requestId": schema154,
902
+ "type": schema30,
903
+ "totalSamples": schema31,
900
904
  "billedCredits": schema64,
901
- "billedBytes": schema30
905
+ "billedBytes": schema322
902
906
  });
903
- var schema322 = z.literal("failed");
904
- var schema332 = z.string();
905
- var schema342 = z.int().min(-9007199254740991).max(9007199254740991);
907
+ var schema342 = z.literal("failed");
906
908
  var schema352 = z.string();
907
- var schema362 = z.url();
908
- var schema372 = z.boolean();
909
- var schema38 = z.uuid().regex(new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"));
910
- var schema39 = z.enum(["*", "api_keys:write", "credits:read", "avatars:read", "avatars:write", "realtime:write", "usage:read", "recordings:read", "usage:write", "speech:write", "renders:read", "renders:write"]);
911
- var schema40 = z.enum(["*", "api_keys:write", "credits:read", "avatars:read", "avatars:write", "realtime:write", "usage:read", "recordings:read", "usage:write", "speech:write", "renders:read", "renders:write"]);
912
- var schema41 = z.array(schema40);
913
- var schema422 = z.string();
914
- var schema432 = z.int().max(9007199254740991).gt(0);
915
- var schema442 = z.int().min(0).max(9007199254740991);
916
- var schema452 = z.int().min(0).max(9007199254740991);
909
+ var schema362 = z.int().min(-9007199254740991).max(9007199254740991);
910
+ var schema372 = z.string();
911
+ var schema38 = z.url();
912
+ var schema39 = z.boolean();
913
+ var schema40 = z.uuid().regex(new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"));
914
+ var schema41 = z.enum(["*", "api_keys:write", "credits:read", "avatars:read", "avatars:write", "realtime:write", "usage:read", "recordings:read", "usage:write", "speech:write", "renders:read", "renders:write"]);
915
+ var schema422 = z.enum(["*", "api_keys:write", "credits:read", "avatars:read", "avatars:write", "realtime:write", "usage:read", "recordings:read", "usage:write", "speech:write", "renders:read", "renders:write"]);
916
+ var schema432 = z.array(schema422);
917
+ var schema442 = z.string();
918
+ var schema452 = z.int().max(9007199254740991).gt(0);
917
919
  var schema462 = z.int().min(0).max(9007199254740991);
918
920
  var schema472 = z.int().min(0).max(9007199254740991);
919
- var schema48 = z.looseObject({
920
- "error": schema332,
921
- "status": schema342,
922
- "code": schema352,
923
- "documentation": schema362,
924
- "retryable": schema372.optional(),
925
- "requestId": schema38.optional(),
926
- "requiredScope": schema39.optional(),
927
- "grantedScopes": schema41.optional(),
928
- "billingUrl": schema422.optional(),
929
- "maxConcurrentSessions": schema432.optional(),
930
- "liveSessions": schema442.optional(),
931
- "activeSessions": schema452.optional(),
932
- "connectingSessions": schema462.optional(),
933
- "pendingSessions": schema472.optional()
934
- });
935
- var schema49 = z.strictObject({
936
- "requestId": schema134,
937
- "type": schema322,
938
- "error": schema48
939
- });
940
- var schema50 = z.union([schema183, schema232, schema272, schema31, schema49]);
921
+ var schema48 = z.int().min(0).max(9007199254740991);
922
+ var schema49 = z.int().min(0).max(9007199254740991);
923
+ var schema50 = z.looseObject({
924
+ "error": schema352,
925
+ "status": schema362,
926
+ "code": schema372,
927
+ "documentation": schema38,
928
+ "retryable": schema39.optional(),
929
+ "requestId": schema40.optional(),
930
+ "requiredScope": schema41.optional(),
931
+ "grantedScopes": schema432.optional(),
932
+ "billingUrl": schema442.optional(),
933
+ "maxConcurrentSessions": schema452.optional(),
934
+ "liveSessions": schema462.optional(),
935
+ "activeSessions": schema472.optional(),
936
+ "connectingSessions": schema48.optional(),
937
+ "pendingSessions": schema49.optional()
938
+ });
939
+ var schema51 = z.strictObject({
940
+ "requestId": schema154,
941
+ "type": schema342,
942
+ "error": schema50
943
+ });
944
+ var schema522 = z.union([schema202, schema252, schema292, schema332, schema51]);
941
945
  var createSpeechRequestSchema = schema47.extend({
942
946
  format: schema47.shape.format.unwrap().default("mp3")
943
947
  });
944
- var createSpeechStreamRequestSchema = schema84;
945
- var speechStreamEventSchema = schema50;
948
+ var createSpeechStreamRequestSchema = schema104;
949
+ var speechStreamEventSchema = schema522;
946
950
  var SPEECH_STREAM_CONTRACT = { "maxAudioEventBytes": 16384, "maxSamples": 432e4};
947
951
  var speechVoiceIdSchema = schema56;
948
952
  var speechContentTypeSchema = z.enum(["audio/mpeg", "audio/wav"]);
@@ -1004,7 +1008,7 @@ var schema85 = z.string().min(1).max(80);
1004
1008
  var schema95 = z.union([schema85, schema65]);
1005
1009
  var schema105 = z.string().min(2).max(16);
1006
1010
  var schema1110 = z.union([schema105, schema65]);
1007
- var schema124 = z.strictObject({
1011
+ var schema125 = z.strictObject({
1008
1012
  "provider": schema214,
1009
1013
  "voice_id": schema310,
1010
1014
  "model": schema410.optional(),
@@ -1013,13 +1017,13 @@ var schema124 = z.strictObject({
1013
1017
  "language": schema1110.optional()
1014
1018
  });
1015
1019
  var schema135 = z.string().min(8).max(80);
1016
- var schema145 = z.string();
1017
- var schema155 = z.enum(["video", "live2d"]);
1020
+ var schema144 = z.string();
1021
+ var schema155 = z.enum(["video", "anima"]);
1018
1022
  var schema164 = z.enum(["image", "video"]);
1019
1023
  var schema174 = z.enum(["realtime-avatar-live-v1", "realtime-avatar-video-v1"]);
1020
1024
  var schema184 = z.union([schema135, schema65]);
1021
1025
  var schema194 = z.enum(["draft", "preprocessing", "ready", "failed", "disabled", "deleted"]);
1022
- var schema203 = z.union([schema145, schema65]);
1026
+ var schema203 = z.union([schema144, schema65]);
1023
1027
  var schema215 = z.enum(["none", "queued", "generating", "ready", "failed"]);
1024
1028
  var schema223 = z.enum(["local", "gemini", "openai"]);
1025
1029
  var schema233 = z.string().max(200);
@@ -1032,7 +1036,7 @@ var schema263 = z.union([schema253, schema65]);
1032
1036
  var schema273 = z.strictObject({
1033
1037
  "id": schema135,
1034
1038
  "tenantId": schema135,
1035
- "displayName": schema145,
1039
+ "displayName": schema144,
1036
1040
  "renderer": schema155,
1037
1041
  "sourceKind": schema164,
1038
1042
  "modelId": schema174,
@@ -1042,14 +1046,14 @@ var schema273 = z.strictObject({
1042
1046
  "idleVideoStatus": schema215,
1043
1047
  "defaultVoiceId": schema203,
1044
1048
  "llm": schema263,
1045
- "createdAt": schema145,
1046
- "updatedAt": schema145
1049
+ "createdAt": schema144,
1050
+ "updatedAt": schema144
1047
1051
  });
1048
- var createLive2dAvatarInputSchema = z.strictObject({
1052
+ var createAnimaAvatarInputSchema = z.strictObject({
1049
1053
  displayName: schema09,
1050
1054
  settings: schema119.optional(),
1051
1055
  metadata: schema119.optional(),
1052
- voice: schema124
1056
+ voice: schema125
1053
1057
  });
1054
1058
  var avatarResponseSchema = schema273;
1055
1059
 
@@ -1397,9 +1401,9 @@ var schema1111 = z.object({
1397
1401
  "generation_id": schema96,
1398
1402
  "utterance_id": schema106
1399
1403
  });
1400
- var schema125 = z.string().min(1).max(200);
1404
+ var schema126 = z.string().min(1).max(200);
1401
1405
  var schema136 = z.string();
1402
- var schema146 = z.string().min(1).max(5e3);
1406
+ var schema145 = z.string().min(1).max(5e3);
1403
1407
  var schema156 = z.string();
1404
1408
  var schema165 = z.null();
1405
1409
  var schema175 = z.union([schema156, schema165]);
@@ -1419,9 +1423,9 @@ var schema264 = z.object({
1419
1423
  "type": schema76,
1420
1424
  "version": schema86,
1421
1425
  "performance": schema1111.optional(),
1422
- "request_id": schema125,
1426
+ "request_id": schema126,
1423
1427
  "session_id": schema136,
1424
- "text": schema146,
1428
+ "text": schema145,
1425
1429
  "voice_id": schema175,
1426
1430
  "language": schema195,
1427
1431
  "output": schema224,
@@ -1465,7 +1469,7 @@ var schema107 = z.object({
1465
1469
  "fail_closed": schema97
1466
1470
  });
1467
1471
  var schema1112 = z.literal("correlated_pcm_v1");
1468
- var schema126 = z.object({
1472
+ var schema127 = z.object({
1469
1473
  "performance": schema87,
1470
1474
  "fail_closed": schema97,
1471
1475
  "audio_output": schema1112
@@ -1485,7 +1489,7 @@ var schema137 = z.strictObject({
1485
1489
  }
1486
1490
  }).superRefine((value, ctx) => {
1487
1491
  if (value["text_output"] !== void 0) {
1488
- const result = schema126.safeParse(value);
1492
+ const result = schema127.safeParse(value);
1489
1493
  if (!result.success) for (const issue of result.error.issues) ctx.addIssue({ code: "custom", message: issue.message, path: issue.path });
1490
1494
  }
1491
1495
  });
@@ -1512,9 +1516,9 @@ function externalLlmToWire(input) {
1512
1516
  });
1513
1517
  }
1514
1518
  var schema012 = z.string().min(8).max(80);
1515
- var schema127 = z.enum(["eou", "llm", "tts", "decision", "hold", "e2e"]);
1519
+ var schema128 = z.enum(["eou", "llm", "tts", "decision", "hold", "e2e"]);
1516
1520
  var schema219 = z.literal("interrupt_stop");
1517
- var schema313 = z.union([schema127, schema219]);
1521
+ var schema313 = z.union([schema128, schema219]);
1518
1522
  var schema413 = z.int().max(9007199254740991).gt(0);
1519
1523
  var schema510 = z.number().min(0);
1520
1524
  var schema68 = z.strictObject({
@@ -1528,18 +1532,18 @@ var schema88 = z.literal("available");
1528
1532
  var schema98 = z.literal("dialogue");
1529
1533
  var schema108 = z.string().regex(new RegExp("^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"));
1530
1534
  var schema1113 = z.null();
1531
- var schema128 = z.union([schema108, schema1113]);
1535
+ var schema129 = z.union([schema108, schema1113]);
1532
1536
  var schema138 = z.int().min(0).max(9007199254740991);
1533
- var schema147 = z.strictObject({
1534
- "first_at": schema128,
1535
- "last_at": schema128,
1537
+ var schema146 = z.strictObject({
1538
+ "first_at": schema129,
1539
+ "last_at": schema129,
1536
1540
  "lines": schema138
1537
1541
  });
1538
1542
  var schema157 = z.strictObject({
1539
1543
  "latency_ms": schema78,
1540
1544
  "status": schema88,
1541
1545
  "sourceRole": schema98,
1542
- "coverage": schema147
1546
+ "coverage": schema146
1543
1547
  });
1544
1548
  var schema166 = z.literal("unavailable");
1545
1549
  var schema176 = z.enum(["not_closed", "unconfigured", "missing", "invalid", "oversized", "unscorable", "no_measured_latency", "timeout", "aborted", "storage_unavailable"]);
@@ -1610,7 +1614,7 @@ var DEFAULT_BASE_URL = "https://realtimeavatar.ai/api/v1";
1610
1614
  var RENDER_MISMATCH = "Render response did not match the SDK contract";
1611
1615
  var SPEECH_MISMATCH = "Speech response did not match the SDK contract";
1612
1616
  var MAX_SPEECH_RESPONSE_BYTES = 24 * 1024 * 1024;
1613
- var SDK_VERSION = "0.37.0";
1617
+ var SDK_VERSION = "0.38.0";
1614
1618
  var RealtimeAvatar = class {
1615
1619
  #apiKey;
1616
1620
  #baseUrl;
@@ -1813,14 +1817,15 @@ var RealtimeAvatar = class {
1813
1817
  });
1814
1818
  }
1815
1819
  /**
1816
- * Register an app-owned Live2D rig for voice sessions. No assets, motion generation or
1820
+ * Register an Anima avatar for voice sessions: your application owns the rig and the rendering,
1821
+ * the platform owns identity, voice and sessions. No assets, motion generation or
1817
1822
  * automatic voice casting: supply an explicit provider and voice_id, then mint with mode voice.
1818
1823
  */
1819
- async createLive2dAvatar(input) {
1820
- const { voice, ...identity } = createLive2dAvatarInputSchema.parse(input);
1824
+ async createAnimaAvatar(input) {
1825
+ const { voice, ...identity } = createAnimaAvatarInputSchema.parse(input);
1821
1826
  const body = {
1822
1827
  ...identity,
1823
- renderer: "live2d",
1828
+ renderer: "anima",
1824
1829
  sourceKind: "image",
1825
1830
  voice: { voice }
1826
1831
  };
@@ -1,4 +1,4 @@
1
- import { RealtimeAvatar, ROUTE_TIMEOUT_MS, proxyEndRequestSchema, proxyConnectRequestSchema, isQueued, RealtimeAvatarHttpError, RealtimeAvatarError } from './chunk-RBK6EHVH.js';
1
+ import { RealtimeAvatar, ROUTE_TIMEOUT_MS, proxyEndRequestSchema, proxyConnectRequestSchema, isQueued, RealtimeAvatarHttpError, RealtimeAvatarError } from './chunk-7NZ7U5HN.js';
2
2
 
3
3
  // ../http-client/src/generated/error-semantics.ts
4
4
  var ERROR_SEMANTICS = {
package/dist/express.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as ProxyConfig } from './types-RQo4LwZ3.js';
2
- import './types-DVL5VX3N.js';
1
+ import { P as ProxyConfig } from './types-CYti2_bv.js';
2
+ import './types-niYtoW5A.js';
3
3
  import 'zod';
4
4
 
5
5
  type Expressish = {
package/dist/express.js CHANGED
@@ -1,5 +1,5 @@
1
- import { createProxyHandler } from './chunk-FFMZERDZ.js';
2
- import './chunk-RBK6EHVH.js';
1
+ import { createProxyHandler } from './chunk-T4WKWENM.js';
2
+ import './chunk-7NZ7U5HN.js';
3
3
  import './chunk-MCIXU6XP.js';
4
4
 
5
5
  // ../proxy/src/express.ts
package/dist/hono.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as ProxyConfig } from './types-RQo4LwZ3.js';
2
- import './types-DVL5VX3N.js';
1
+ import { P as ProxyConfig } from './types-CYti2_bv.js';
2
+ import './types-niYtoW5A.js';
3
3
  import 'zod';
4
4
 
5
5
  /**
package/dist/hono.js CHANGED
@@ -1,5 +1,5 @@
1
- import { createProxyHandler } from './chunk-FFMZERDZ.js';
2
- import './chunk-RBK6EHVH.js';
1
+ import { createProxyHandler } from './chunk-T4WKWENM.js';
2
+ import './chunk-7NZ7U5HN.js';
3
3
  import './chunk-MCIXU6XP.js';
4
4
 
5
5
  // ../proxy/src/hono.ts
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as CallPolicy, C as CallMode, S as StartCallResult, E as EndCallOptions, A as Avatar, b as CreateLive2dAvatarInput, R as RegisteredAvatar, c as AvatarUpdate, d as AvatarSourceSwap, e as ClipLibraryDeclaration, f as ClipLibraryUpdate, L as LoopRedirect, g as ClipLibrary, h as AssetKind, i as Asset, j as ListSessionsOptions, U as UsageSessionPage, k as UsageSession, l as ListRecordingsQuery, m as ListRecordingsResponse, n as RecordingArtifact, o as RecordingAccessResponse, p as CreateRenderInput, q as CreditBalance, r as operations, s as CreateSpeechInput, t as SpeechResult, u as CreateSpeechStreamRequest, v as SpeechStreamEvent, T as TranscriptPayload, V as VoiceWebhookRequest } from './types-DVL5VX3N.js';
2
- export { w as AvatarClip, x as CallConnection, y as CallQueued, z as ClipDeclaration, B as ClipLibraryPlan, D as ClipSource, F as ContextMessage, G as EndCallReason, H as ExternalLlm, I as RecordingArtifactStatus, J as RecordingMode, K as RenderShot, M as SpeechAlignedText, N as VideoPolicy, O as VoiceWebhook, P as VoiceWebhookErrorCode, Q as createSpeechRequestSchema, W as createSpeechStreamRequestSchema, X as isQueued, Y as listRecordingsResponseSchema, Z as recordingAccessResponseSchema, _ as recordingArtifactSchema, $ as recordingModeSchema, a0 as speechAlignedTextSchema, a1 as speechStreamEventSchema } from './types-DVL5VX3N.js';
1
+ import { a as CallPolicy, C as CallMode, S as StartCallResult, E as EndCallOptions, A as Avatar, b as CreateAnimaAvatarInput, R as RegisteredAvatar, c as AvatarUpdate, d as AvatarSourceSwap, e as ClipLibraryDeclaration, f as ClipLibraryUpdate, L as LoopRedirect, g as ClipLibrary, h as AssetKind, i as Asset, j as ListSessionsOptions, U as UsageSessionPage, k as UsageSession, l as ListRecordingsQuery, m as ListRecordingsResponse, n as RecordingArtifact, o as RecordingAccessResponse, p as CreateRenderInput, q as CreditBalance, r as operations, s as CreateSpeechInput, t as SpeechResult, u as CreateSpeechStreamRequest, v as SpeechStreamEvent, T as TranscriptPayload, V as VoiceWebhookRequest } from './types-niYtoW5A.js';
2
+ export { w as AvatarClip, x as CallConnection, y as CallQueued, z as ClipDeclaration, B as ClipLibraryPlan, D as ClipSource, F as ContextMessage, G as EndCallReason, H as ExternalLlm, I as RecordingArtifactStatus, J as RecordingMode, K as RenderShot, M as SpeechAlignedText, N as VideoPolicy, O as VoiceWebhook, P as VoiceWebhookErrorCode, Q as createSpeechRequestSchema, W as createSpeechStreamRequestSchema, X as isQueued, Y as listRecordingsResponseSchema, Z as recordingAccessResponseSchema, _ as recordingArtifactSchema, $ as recordingModeSchema, a0 as speechAlignedTextSchema, a1 as speechStreamEventSchema } from './types-niYtoW5A.js';
3
3
  import { ConnectionHistoryResponse } from './connection-history.js';
4
4
  import { z } from 'zod';
5
5
 
@@ -277,10 +277,11 @@ declare class RealtimeAvatar {
277
277
  metadata?: Record<string, unknown>;
278
278
  }): Promise<Avatar>;
279
279
  /**
280
- * Register an app-owned Live2D rig for voice sessions. No assets, motion generation or
280
+ * Register an Anima avatar for voice sessions: your application owns the rig and the rendering,
281
+ * the platform owns identity, voice and sessions. No assets, motion generation or
281
282
  * automatic voice casting: supply an explicit provider and voice_id, then mint with mode voice.
282
283
  */
283
- createLive2dAvatar(input: CreateLive2dAvatarInput): Promise<RegisteredAvatar>;
284
+ createAnimaAvatar(input: CreateAnimaAvatarInput): Promise<RegisteredAvatar>;
284
285
  createAvatar(input: {
285
286
  displayName: string;
286
287
  sourceKind: "image" | "video";
@@ -961,4 +962,4 @@ declare const proxyEndRequestSchema: z.ZodObject<{
961
962
  }>>>;
962
963
  }, z.core.$strict>;
963
964
 
964
- export { Asset, AssetKind, Avatar, AvatarSourceSwap, AvatarUpdate, CallMode, CallPolicy, ClipLibrary, ClipLibraryDeclaration, ClipLibraryUpdate, CreateLive2dAvatarInput, CreateRenderInput, CreateSpeechInput, CreateSpeechStreamRequest, CreditBalance, DEFAULT_FISH_TTS_MODEL, EndCallOptions, type ExternalSpeechSegment, type ExternalTurnContext, type ExternalUtterance, FISH_DELIVERY_MODELS, type FishDelivery, type FishTtsModel, ListRecordingsQuery, ListRecordingsResponse, type ListRendersQuery, type ListRendersResponse, ListSessionsOptions, LoopRedirect, RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, type RealtimeAvatarOptions, RealtimeAvatarWebhookError, RecordingAccessResponse, RecordingArtifact, RegisteredAvatar, type Render, type RenderAccessResponse, type RenderFailureCode, type RenderPlayback, type RenderStatus, type ShotTiming, SpeechResult, SpeechStreamEvent, type StartCallOptions, StartCallResult, TranscriptPayload, UsageSession, UsageSessionPage, VoiceWebhookRequest, type WebhookVerificationErrorCode, capacityBusyResponseSchema, clipLibraryDeclarationSchema, externalSpeechSegmentSchema, externalTurnContextSchema, externalUtteranceSchema, fishTtsModelSchema, listRendersResponseSchema, liveKitSessionGrantSchema, proxyConnectRequestSchema, proxyEndRequestSchema, renderAccessResponseSchema, renderSchema, verifyTranscript, verifyVoiceWebhook };
965
+ export { Asset, AssetKind, Avatar, AvatarSourceSwap, AvatarUpdate, CallMode, CallPolicy, ClipLibrary, ClipLibraryDeclaration, ClipLibraryUpdate, CreateAnimaAvatarInput, CreateRenderInput, CreateSpeechInput, CreateSpeechStreamRequest, CreditBalance, DEFAULT_FISH_TTS_MODEL, EndCallOptions, type ExternalSpeechSegment, type ExternalTurnContext, type ExternalUtterance, FISH_DELIVERY_MODELS, type FishDelivery, type FishTtsModel, ListRecordingsQuery, ListRecordingsResponse, type ListRendersQuery, type ListRendersResponse, ListSessionsOptions, LoopRedirect, RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, type RealtimeAvatarOptions, RealtimeAvatarWebhookError, RecordingAccessResponse, RecordingArtifact, RegisteredAvatar, type Render, type RenderAccessResponse, type RenderFailureCode, type RenderPlayback, type RenderStatus, type ShotTiming, SpeechResult, SpeechStreamEvent, type StartCallOptions, StartCallResult, TranscriptPayload, UsageSession, UsageSessionPage, VoiceWebhookRequest, type WebhookVerificationErrorCode, capacityBusyResponseSchema, clipLibraryDeclarationSchema, externalSpeechSegmentSchema, externalTurnContextSchema, externalUtteranceSchema, fishTtsModelSchema, listRendersResponseSchema, liveKitSessionGrantSchema, proxyConnectRequestSchema, proxyEndRequestSchema, renderAccessResponseSchema, renderSchema, verifyTranscript, verifyVoiceWebhook };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import './chunk-6KQS7CTR.js';
2
- export { DEFAULT_FISH_TTS_MODEL, FISH_DELIVERY_MODELS, RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, RealtimeAvatarWebhookError, capacityBusyResponseSchema, clipLibraryDeclarationSchema, createSpeechRequestSchema, createSpeechStreamRequestSchema, externalSpeechSegmentSchema, externalTurnContextSchema, externalUtteranceSchema, fishTtsModelSchema, isQueued, listRecordingsResponseSchema, listRendersResponseSchema, liveKitSessionGrantSchema, proxyConnectRequestSchema, proxyEndRequestSchema, recordingAccessResponseSchema, recordingArtifactSchema, recordingModeSchema, renderAccessResponseSchema, renderSchema, speechAlignedTextSchema, speechStreamEventSchema, verifyTranscript, verifyVoiceWebhook } from './chunk-RBK6EHVH.js';
2
+ export { DEFAULT_FISH_TTS_MODEL, FISH_DELIVERY_MODELS, RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, RealtimeAvatarWebhookError, capacityBusyResponseSchema, clipLibraryDeclarationSchema, createSpeechRequestSchema, createSpeechStreamRequestSchema, externalSpeechSegmentSchema, externalTurnContextSchema, externalUtteranceSchema, fishTtsModelSchema, isQueued, listRecordingsResponseSchema, listRendersResponseSchema, liveKitSessionGrantSchema, proxyConnectRequestSchema, proxyEndRequestSchema, recordingAccessResponseSchema, recordingArtifactSchema, recordingModeSchema, renderAccessResponseSchema, renderSchema, speechAlignedTextSchema, speechStreamEventSchema, verifyTranscript, verifyVoiceWebhook } from './chunk-7NZ7U5HN.js';
3
3
  import './chunk-MCIXU6XP.js';
package/dist/nextjs.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as ProxyConfig } from './types-RQo4LwZ3.js';
2
- import './types-DVL5VX3N.js';
1
+ import { P as ProxyConfig } from './types-CYti2_bv.js';
2
+ import './types-niYtoW5A.js';
3
3
  import 'zod';
4
4
 
5
5
  /**
package/dist/nextjs.js CHANGED
@@ -1,5 +1,5 @@
1
- import { createProxyHandler } from './chunk-FFMZERDZ.js';
2
- import './chunk-RBK6EHVH.js';
1
+ import { createProxyHandler } from './chunk-T4WKWENM.js';
2
+ import './chunk-7NZ7U5HN.js';
3
3
  import './chunk-MCIXU6XP.js';
4
4
 
5
5
  // ../proxy/src/nextjs.ts
package/dist/server.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { DEFAULT_FISH_TTS_MODEL, ExternalSpeechSegment, ExternalTurnContext, ExternalUtterance, FISH_DELIVERY_MODELS, FishDelivery, FishTtsModel, ListRendersQuery, ListRendersResponse, RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, RealtimeAvatarOptions, RealtimeAvatarWebhookError, Render, RenderAccessResponse, RenderFailureCode, RenderPlayback, RenderStatus, ShotTiming, StartCallOptions, WebhookVerificationErrorCode, capacityBusyResponseSchema, clipLibraryDeclarationSchema, externalSpeechSegmentSchema, externalTurnContextSchema, externalUtteranceSchema, fishTtsModelSchema, listRendersResponseSchema, liveKitSessionGrantSchema, proxyConnectRequestSchema, proxyEndRequestSchema, renderAccessResponseSchema, renderSchema, verifyTranscript, verifyVoiceWebhook } from './index.js';
2
- export { i as Asset, h as AssetKind, A as Avatar, w as AvatarClip, d as AvatarSourceSwap, c as AvatarUpdate, x as CallConnection, C as CallMode, a as CallPolicy, y as CallQueued, z as ClipDeclaration, g as ClipLibrary, e as ClipLibraryDeclaration, B as ClipLibraryPlan, f as ClipLibraryUpdate, D as ClipSource, F as ContextMessage, b as CreateLive2dAvatarInput, p as CreateRenderInput, s as CreateSpeechInput, u as CreateSpeechStreamRequest, q as CreditBalance, E as EndCallOptions, G as EndCallReason, H as ExternalLlm, l as ListRecordingsQuery, m as ListRecordingsResponse, j as ListSessionsOptions, L as LoopRedirect, o as RecordingAccessResponse, n as RecordingArtifact, I as RecordingArtifactStatus, J as RecordingMode, R as RegisteredAvatar, K as RenderShot, M as SpeechAlignedText, t as SpeechResult, v as SpeechStreamEvent, S as StartCallResult, T as TranscriptPayload, k as UsageSession, U as UsageSessionPage, N as VideoPolicy, O as VoiceWebhook, P as VoiceWebhookErrorCode, V as VoiceWebhookRequest, Q as createSpeechRequestSchema, W as createSpeechStreamRequestSchema, X as isQueued, Y as listRecordingsResponseSchema, Z as recordingAccessResponseSchema, _ as recordingArtifactSchema, $ as recordingModeSchema, a0 as speechAlignedTextSchema, a1 as speechStreamEventSchema } from './types-DVL5VX3N.js';
2
+ export { i as Asset, h as AssetKind, A as Avatar, w as AvatarClip, d as AvatarSourceSwap, c as AvatarUpdate, x as CallConnection, C as CallMode, a as CallPolicy, y as CallQueued, z as ClipDeclaration, g as ClipLibrary, e as ClipLibraryDeclaration, B as ClipLibraryPlan, f as ClipLibraryUpdate, D as ClipSource, F as ContextMessage, b as CreateAnimaAvatarInput, p as CreateRenderInput, s as CreateSpeechInput, u as CreateSpeechStreamRequest, q as CreditBalance, E as EndCallOptions, G as EndCallReason, H as ExternalLlm, l as ListRecordingsQuery, m as ListRecordingsResponse, j as ListSessionsOptions, L as LoopRedirect, o as RecordingAccessResponse, n as RecordingArtifact, I as RecordingArtifactStatus, J as RecordingMode, R as RegisteredAvatar, K as RenderShot, M as SpeechAlignedText, t as SpeechResult, v as SpeechStreamEvent, S as StartCallResult, T as TranscriptPayload, k as UsageSession, U as UsageSessionPage, N as VideoPolicy, O as VoiceWebhook, P as VoiceWebhookErrorCode, V as VoiceWebhookRequest, Q as createSpeechRequestSchema, W as createSpeechStreamRequestSchema, X as isQueued, Y as listRecordingsResponseSchema, Z as recordingAccessResponseSchema, _ as recordingArtifactSchema, $ as recordingModeSchema, a0 as speechAlignedTextSchema, a1 as speechStreamEventSchema } from './types-niYtoW5A.js';
3
3
  import './connection-history.js';
4
4
  import 'zod';
package/dist/server.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import './chunk-6KQS7CTR.js';
2
- export { DEFAULT_FISH_TTS_MODEL, FISH_DELIVERY_MODELS, RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, RealtimeAvatarWebhookError, capacityBusyResponseSchema, clipLibraryDeclarationSchema, createSpeechRequestSchema, createSpeechStreamRequestSchema, externalSpeechSegmentSchema, externalTurnContextSchema, externalUtteranceSchema, fishTtsModelSchema, isQueued, listRecordingsResponseSchema, listRendersResponseSchema, liveKitSessionGrantSchema, proxyConnectRequestSchema, proxyEndRequestSchema, recordingAccessResponseSchema, recordingArtifactSchema, recordingModeSchema, renderAccessResponseSchema, renderSchema, speechAlignedTextSchema, speechStreamEventSchema, verifyTranscript, verifyVoiceWebhook } from './chunk-RBK6EHVH.js';
2
+ export { DEFAULT_FISH_TTS_MODEL, FISH_DELIVERY_MODELS, RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, RealtimeAvatarWebhookError, capacityBusyResponseSchema, clipLibraryDeclarationSchema, createSpeechRequestSchema, createSpeechStreamRequestSchema, externalSpeechSegmentSchema, externalTurnContextSchema, externalUtteranceSchema, fishTtsModelSchema, isQueued, listRecordingsResponseSchema, listRendersResponseSchema, liveKitSessionGrantSchema, proxyConnectRequestSchema, proxyEndRequestSchema, recordingAccessResponseSchema, recordingArtifactSchema, recordingModeSchema, renderAccessResponseSchema, renderSchema, speechAlignedTextSchema, speechStreamEventSchema, verifyTranscript, verifyVoiceWebhook } from './chunk-7NZ7U5HN.js';
3
3
  import './chunk-MCIXU6XP.js';
@@ -1,5 +1,5 @@
1
- import { P as ProxyConfig } from './types-RQo4LwZ3.js';
2
- import './types-DVL5VX3N.js';
1
+ import { P as ProxyConfig } from './types-CYti2_bv.js';
2
+ import './types-niYtoW5A.js';
3
3
  import 'zod';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { createProxyHandler } from './chunk-FFMZERDZ.js';
2
- import './chunk-RBK6EHVH.js';
1
+ import { createProxyHandler } from './chunk-T4WKWENM.js';
2
+ import './chunk-7NZ7U5HN.js';
3
3
  import './chunk-MCIXU6XP.js';
4
4
 
5
5
  // src/tanstack-start.ts
@@ -1,4 +1,4 @@
1
- import { C as CallMode, a as CallPolicy } from './types-DVL5VX3N.js';
1
+ import { C as CallMode, a as CallPolicy } from './types-niYtoW5A.js';
2
2
 
3
3
  /** The three things a caller can ask the proxy to do. Gate on these, not on URLs. */
4
4
  type ProxyOperation = "connect" | "end" | "avatars" | "credits";
@@ -849,7 +849,7 @@ interface components {
849
849
  tenantId: string;
850
850
  displayName: string;
851
851
  /** @enum {string} */
852
- renderer: "video" | "live2d";
852
+ renderer: "video" | "anima";
853
853
  /** @enum {string} */
854
854
  sourceKind: "image" | "video";
855
855
  /** @enum {string} */
@@ -872,11 +872,11 @@ interface components {
872
872
  CreateAvatarRequest: {
873
873
  displayName: string;
874
874
  /**
875
- * @description Defaults to video. live2d allocates a ready avatar identity for voice sessions with an app-owned rig. It requires defaultVoiceId or an explicit voice.voice selector; automatic casting is refused. Keep sourceKind image, omit sourceAssetId and motionPrompt, and omit modelId or use realtime-avatar-live-v1. No assets, clips, cache or manufacturing charge are created. Mint with mode voice; video rendering is refused. Session billing, authorization and external-LLM gates are unchanged.
875
+ * @description Defaults to video. anima allocates a ready avatar identity for voice sessions; the application owns the rig and the rendering. It requires defaultVoiceId or an explicit voice.voice selector; automatic casting is refused. Keep sourceKind image, omit sourceAssetId and motionPrompt, and omit modelId or use realtime-avatar-live-v1. No assets, clips, cache or manufacturing charge are created. Mint with mode voice; video rendering is refused. Session billing, authorization and external-LLM gates are unchanged.
876
876
  * @default video
877
877
  * @enum {string}
878
878
  */
879
- renderer: "video" | "live2d";
879
+ renderer: "video" | "anima";
880
880
  /**
881
881
  * @description `image` is how avatars are created: upload a portrait, and the platform generates the looping source video and the motion library from it. `video` is CLOSED — it survives in this enum for a handful of grandfathered tenants, and `createAvatar` answers everyone else `422` ("Creating from a supplied video is closed"). The gate is a per-tenant flag that fails closed, so treat `video` as unavailable unless you already know yours is on.
882
882
  * @default image
@@ -919,7 +919,7 @@ interface components {
919
919
  };
920
920
  UpdateAvatarRequest: {
921
921
  displayName?: string;
922
- /** @description For Live2D avatars, must remain a ready shared or tenant-owned platform voice. Null, missing and foreign voices are refused with 404; this does not change video-avatar PATCH behavior. */
922
+ /** @description For anima avatars, must remain a ready shared or tenant-owned platform voice. Null, missing and foreign voices are refused with 404; this does not change video-avatar PATCH behavior. */
923
923
  defaultVoiceId?: string | null;
924
924
  llm?: {
925
925
  /** @enum {string} */
@@ -1117,6 +1117,13 @@ interface components {
1117
1117
  speed?: number;
1118
1118
  /** @description BCP-47 tag such as en-AU. Shapes how numbers, dates and units are read; it does not change the voice. */
1119
1119
  language?: string;
1120
+ /**
1121
+ * @description normal (best quality), balanced (reduced latency, the default) or low (lowest latency, least stable).
1122
+ * @enum {string}
1123
+ */
1124
+ latency?: "normal" | "balanced" | "low";
1125
+ /** @description Characters the voice provider takes per text chunk, 100 to 300. Smaller starts audio sooner; useful on a conversation's first sentence. Omit for the provider's default. */
1126
+ chunkLength?: number;
1120
1127
  };
1121
1128
  SpeechStreamEvent: {
1122
1129
  /** Format: uuid */
@@ -1643,7 +1650,7 @@ interface components {
1643
1650
  tenantId: string;
1644
1651
  displayName: string;
1645
1652
  /** @enum {string} */
1646
- renderer: "video" | "live2d";
1653
+ renderer: "video" | "anima";
1647
1654
  /** @enum {string} */
1648
1655
  sourceKind: "image" | "video";
1649
1656
  /** @enum {string} */
@@ -2254,7 +2261,7 @@ interface operations {
2254
2261
  "application/json": components["schemas"]["Error"];
2255
2262
  };
2256
2263
  };
2257
- /** @description Per-workspace rate limit (code "rate_limited"), or speech generation is busy (code "speech_busy"): this workspace already has a request in progress, or the platform-wide cap is reached. Both are retryable; honour Retry-After. */
2264
+ /** @description Per-workspace rate limit (code "rate_limited"), or speech generation is busy (code "speech_busy"): this workspace already has its share of requests in progress, or the platform-wide cap is reached. Both are retryable; honour Retry-After. */
2258
2265
  429: {
2259
2266
  headers: {
2260
2267
  /** @description Seconds to wait before retrying. */
@@ -3837,7 +3844,7 @@ interface operations {
3837
3844
  };
3838
3845
  }
3839
3846
 
3840
- declare const createLive2dAvatarInputSchema: z.ZodObject<{
3847
+ declare const createAnimaAvatarInputSchema: z.ZodObject<{
3841
3848
  displayName: z.ZodString;
3842
3849
  settings: z.ZodOptional<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>>;
3843
3850
  metadata: z.ZodOptional<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>>;
@@ -3859,7 +3866,7 @@ declare const avatarResponseSchema: z.ZodObject<{
3859
3866
  displayName: z.ZodString;
3860
3867
  renderer: z.ZodEnum<{
3861
3868
  video: "video";
3862
- live2d: "live2d";
3869
+ anima: "anima";
3863
3870
  }>;
3864
3871
  sourceKind: z.ZodEnum<{
3865
3872
  video: "video";
@@ -4291,6 +4298,12 @@ declare const createSpeechStreamRequestSchema: z.ZodObject<{
4291
4298
  text: z.ZodPipe<z.ZodString, z.ZodString>;
4292
4299
  speed: z.ZodOptional<z.ZodNumber>;
4293
4300
  language: z.ZodOptional<z.ZodString>;
4301
+ latency: z.ZodOptional<z.ZodEnum<{
4302
+ normal: "normal";
4303
+ balanced: "balanced";
4304
+ low: "low";
4305
+ }>>;
4306
+ chunkLength: z.ZodOptional<z.ZodInt>;
4294
4307
  }, z.core.$strict>;
4295
4308
  type CreateSpeechStreamRequest = z.infer<typeof createSpeechStreamRequestSchema>;
4296
4309
  type SpeechAlignedText = z.infer<typeof speechAlignedTextSchema>;
@@ -4726,9 +4739,9 @@ type Asset = Pick<Wire["Asset"], "id" | "kind"> & {
4726
4739
  */
4727
4740
  status: Wire["Asset"]["status"] | (string & {});
4728
4741
  };
4729
- /** DERIVATION: the generated creation schema curates an explicit voice for an app-owned Live2D rig. */
4730
- type CreateLive2dAvatarInput = z.input<typeof createLive2dAvatarInputSchema>;
4731
- /** DERIVATION: the complete generated platform response, validated by createLive2dAvatar. */
4742
+ /** DERIVATION: the generated creation schema curates an explicit voice for an Anima avatar (app-owned rig and rendering). */
4743
+ type CreateAnimaAvatarInput = z.input<typeof createAnimaAvatarInputSchema>;
4744
+ /** DERIVATION: the complete generated platform response, validated by createAnimaAvatar. */
4732
4745
  type RegisteredAvatar = z.output<typeof avatarResponseSchema>;
4733
4746
  type Avatar = Pick<Wire["Avatar"], "id" | "displayName" | "renderer" | "sourceKind" | "status" | "defaultVoiceId" | "sourceAssetId" | "error" | "idleVideoStatus">;
4734
4747
  /**
@@ -4882,4 +4895,4 @@ interface TranscriptPayload {
4882
4895
  client_metadata: Record<string, string>;
4883
4896
  }
4884
4897
 
4885
- export { recordingModeSchema as $, type Avatar as A, type ClipLibraryPlan as B, type CallMode as C, type ClipSource as D, type EndCallOptions as E, type ContextMessage as F, type EndCallReason as G, type ExternalLlm as H, type RecordingArtifactStatus as I, type RecordingMode as J, type RenderShot as K, type LoopRedirect as L, type SpeechAlignedText as M, type VideoPolicy as N, type VoiceWebhook as O, type VoiceWebhookErrorCode as P, createSpeechRequestSchema as Q, type RegisteredAvatar as R, type StartCallResult as S, type TranscriptPayload as T, type UsageSessionPage as U, type VoiceWebhookRequest as V, createSpeechStreamRequestSchema as W, isQueued as X, listRecordingsResponseSchema as Y, recordingAccessResponseSchema as Z, recordingArtifactSchema as _, type CallPolicy as a, speechAlignedTextSchema as a0, speechStreamEventSchema as a1, type CreateLive2dAvatarInput as b, type AvatarUpdate as c, type AvatarSourceSwap as d, type ClipLibraryDeclaration as e, type ClipLibraryUpdate as f, type ClipLibrary as g, type AssetKind as h, type Asset as i, type ListSessionsOptions as j, type UsageSession as k, type ListRecordingsQuery as l, type ListRecordingsResponse as m, type RecordingArtifact as n, type RecordingAccessResponse as o, type CreateRenderInput as p, type CreditBalance as q, type operations as r, type CreateSpeechInput as s, type SpeechResult as t, type CreateSpeechStreamRequest as u, type SpeechStreamEvent as v, type AvatarClip as w, type CallConnection as x, type CallQueued as y, type ClipDeclaration as z };
4898
+ export { recordingModeSchema as $, type Avatar as A, type ClipLibraryPlan as B, type CallMode as C, type ClipSource as D, type EndCallOptions as E, type ContextMessage as F, type EndCallReason as G, type ExternalLlm as H, type RecordingArtifactStatus as I, type RecordingMode as J, type RenderShot as K, type LoopRedirect as L, type SpeechAlignedText as M, type VideoPolicy as N, type VoiceWebhook as O, type VoiceWebhookErrorCode as P, createSpeechRequestSchema as Q, type RegisteredAvatar as R, type StartCallResult as S, type TranscriptPayload as T, type UsageSessionPage as U, type VoiceWebhookRequest as V, createSpeechStreamRequestSchema as W, isQueued as X, listRecordingsResponseSchema as Y, recordingAccessResponseSchema as Z, recordingArtifactSchema as _, type CallPolicy as a, speechAlignedTextSchema as a0, speechStreamEventSchema as a1, type CreateAnimaAvatarInput as b, type AvatarUpdate as c, type AvatarSourceSwap as d, type ClipLibraryDeclaration as e, type ClipLibraryUpdate as f, type ClipLibrary as g, type AssetKind as h, type Asset as i, type ListSessionsOptions as j, type UsageSession as k, type ListRecordingsQuery as l, type ListRecordingsResponse as m, type RecordingArtifact as n, type RecordingAccessResponse as o, type CreateRenderInput as p, type CreditBalance as q, type operations as r, type CreateSpeechInput as s, type SpeechResult as t, type CreateSpeechStreamRequest as u, type SpeechStreamEvent as v, type AvatarClip as w, type CallConnection as x, type CallQueued as y, type ClipDeclaration as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "realtime-avatar",
3
- "version": "0.37.0",
3
+ "version": "0.38.0",
4
4
  "description": "Realtime Avatar SDK. `realtime-avatar` and the route adapters hold your API key and are server-only; `realtime-avatar/react`, `/browser` and `/tools` never can — importing a server entry into a browser build throws at bundle time.",
5
5
  "license": "MIT",
6
6
  "author": "The Influence Company",