@realtimex/sdk 1.2.1 → 1.2.3

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.js CHANGED
@@ -1034,7 +1034,7 @@ var TTSModule = class {
1034
1034
  if (!response.ok) {
1035
1035
  const data = await response.json();
1036
1036
  if (data.code === "PERMISSION_REQUIRED") {
1037
- const permission = data.permission || "tts.speak";
1037
+ const permission = data.permission || "tts.generate";
1038
1038
  const granted = await this.requestPermission(permission);
1039
1039
  if (granted) {
1040
1040
  return this.request(method, endpoint, body, isStream);
package/dist/index.mjs CHANGED
@@ -986,7 +986,7 @@ var TTSModule = class {
986
986
  if (!response.ok) {
987
987
  const data = await response.json();
988
988
  if (data.code === "PERMISSION_REQUIRED") {
989
- const permission = data.permission || "tts.speak";
989
+ const permission = data.permission || "tts.generate";
990
990
  const granted = await this.requestPermission(permission);
991
991
  if (granted) {
992
992
  return this.request(method, endpoint, body, isStream);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realtimex/sdk",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "SDK for building Local Apps that integrate with RealtimeX",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",