@mulingai-npm/redis 3.26.3 → 3.28.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.
@@ -42,6 +42,7 @@ export type MulingstreamChunkData = {
42
42
  ttsAudioPath: string;
43
43
  status: StepStatus;
44
44
  isEmitted: boolean;
45
+ duration?: number;
45
46
  };
46
47
  };
47
48
  };
@@ -106,6 +107,7 @@ export declare class MulingstreamChunkManager {
106
107
  ttsAudioPath?: string;
107
108
  status?: StepStatus;
108
109
  isEmitted?: boolean;
110
+ duration?: number;
109
111
  }): Promise<MulingstreamChunkData | null>;
110
112
  areTranslationsProcessed(roomId: string, n: number): Promise<boolean>;
111
113
  /**
@@ -294,6 +294,8 @@ class MulingstreamChunkManager {
294
294
  e.status = opt.status;
295
295
  if (opt.isEmitted !== undefined)
296
296
  e.isEmitted = opt.isEmitted;
297
+ if (opt.duration !== undefined)
298
+ e.duration = opt.duration;
297
299
  });
298
300
  }
299
301
  async areTranslationsProcessed(roomId, n) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mulingai-npm/redis",
3
- "version": "3.26.3",
3
+ "version": "3.28.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": {