@drawdream/livespeech 0.1.3 → 0.1.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.
package/dist/index.d.mts CHANGED
@@ -100,6 +100,11 @@ interface SessionConfig {
100
100
  * @default false
101
101
  */
102
102
  aiSpeaksFirst?: boolean;
103
+ /**
104
+ * Allow harmful content categories in AI responses
105
+ * @default false
106
+ */
107
+ allowHarmCategory?: boolean;
103
108
  }
104
109
  /**
105
110
  * Internal resolved configuration with defaults applied
package/dist/index.d.ts CHANGED
@@ -100,6 +100,11 @@ interface SessionConfig {
100
100
  * @default false
101
101
  */
102
102
  aiSpeaksFirst?: boolean;
103
+ /**
104
+ * Allow harmful content categories in AI responses
105
+ * @default false
106
+ */
107
+ allowHarmCategory?: boolean;
103
108
  }
104
109
  /**
105
110
  * Internal resolved configuration with defaults applied
package/dist/index.js CHANGED
@@ -737,6 +737,7 @@ var LiveSpeechClient = class {
737
737
  if (config?.aiSpeaksFirst) {
738
738
  startMessage.aiSpeaksFirst = config.aiSpeaksFirst;
739
739
  }
740
+ startMessage.allowHarmCategory = config?.allowHarmCategory ?? false;
740
741
  this.connection.send(startMessage);
741
742
  });
742
743
  }
package/dist/index.mjs CHANGED
@@ -698,6 +698,7 @@ var LiveSpeechClient = class {
698
698
  if (config?.aiSpeaksFirst) {
699
699
  startMessage.aiSpeaksFirst = config.aiSpeaksFirst;
700
700
  }
701
+ startMessage.allowHarmCategory = config?.allowHarmCategory ?? false;
701
702
  this.connection.send(startMessage);
702
703
  });
703
704
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drawdream/livespeech",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Real-time speech-to-speech AI conversation SDK",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",