@mulingai-npm/redis 3.29.3 → 3.29.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.
@@ -18,6 +18,7 @@ export type StreamingChunkData = {
18
18
  export type MulingstreamChunkData = {
19
19
  chunkId: string;
20
20
  roomId: string;
21
+ userId: string;
21
22
  chunkNumber: number;
22
23
  language: string;
23
24
  targetLanguages: string[];
@@ -62,6 +63,7 @@ export declare class MulingstreamChunkManager {
62
63
  */
63
64
  addStreamingChunk(params: {
64
65
  roomId: string;
66
+ userId: string;
65
67
  chunkNumber: number;
66
68
  language: string;
67
69
  transcription: string;
@@ -27,6 +27,7 @@ class MulingstreamChunkManager {
27
27
  return {
28
28
  chunkId: h.chunkId,
29
29
  roomId: h.roomId,
30
+ userId: h.userId,
30
31
  chunkNumber: parseInt(h.chunkNumber, 10),
31
32
  language: h.language,
32
33
  targetLanguages: this.deserialize(h.targetLanguages),
@@ -74,7 +75,7 @@ class MulingstreamChunkManager {
74
75
  */
75
76
  async addStreamingChunk(params) {
76
77
  var _a, _b;
77
- const { roomId, chunkNumber, language, transcription, sttProvider, targetLanguages, shortCodeTargetLanguages, streamingData } = params;
78
+ const { roomId, userId, chunkNumber, language, transcription, sttProvider, targetLanguages, shortCodeTargetLanguages, streamingData } = params;
78
79
  // Clear room if this is first chunk (new session)
79
80
  if (chunkNumber === 1) {
80
81
  const old = await this.redisClient.zrange(this.roomZsetKey(roomId), 0, -1);
@@ -118,6 +119,7 @@ class MulingstreamChunkManager {
118
119
  const chunk = {
119
120
  chunkId,
120
121
  roomId,
122
+ userId,
121
123
  chunkNumber,
122
124
  language,
123
125
  targetLanguages,
@@ -133,6 +135,7 @@ class MulingstreamChunkManager {
133
135
  const hash = {
134
136
  chunkId,
135
137
  roomId,
138
+ userId,
136
139
  chunkNumber: String(chunkNumber),
137
140
  language,
138
141
  targetLanguages: this.serialize(targetLanguages),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mulingai-npm/redis",
3
- "version": "3.29.3",
3
+ "version": "3.29.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": {