@rodrigobeber/patoai-dtos 1.8.9 → 1.8.11

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.
@@ -8,4 +8,4 @@ export * from './prepared-messages.dto';
8
8
  export * from './reply-message.dto';
9
9
  export * from './system-message.dto';
10
10
  export * from './user-message.dto';
11
- export * from './voice.dto';
11
+ export * from './voice.enum';
@@ -24,4 +24,4 @@ __exportStar(require("./prepared-messages.dto"), exports);
24
24
  __exportStar(require("./reply-message.dto"), exports);
25
25
  __exportStar(require("./system-message.dto"), exports);
26
26
  __exportStar(require("./user-message.dto"), exports);
27
- __exportStar(require("./voice.dto"), exports);
27
+ __exportStar(require("./voice.enum"), exports);
@@ -1,5 +1,5 @@
1
+ import { TtsDto } from "../run/tts.dto";
1
2
  import { ReplyMessageDto } from "./reply-message.dto";
2
- import { VoiceSettingsDto } from "./voice.dto";
3
3
  export interface PreparedMessagesDto {
4
4
  idAgent: number;
5
5
  assistantId: string;
@@ -7,7 +7,6 @@ export interface PreparedMessagesDto {
7
7
  replyMessage: ReplyMessageDto;
8
8
  emojis: number;
9
9
  speed: number;
10
- voice: VoiceSettingsDto;
11
- isVoice: boolean;
12
10
  language: string | null;
11
+ tts?: TtsDto;
13
12
  }
@@ -0,0 +1,8 @@
1
+ export declare enum VoiceModeEnum {
2
+ REPEAT_USER_FIXED = "R",
3
+ VOICE_FIXED = "V",
4
+ TEXT_FIXED = "T",
5
+ REPEAT_USER_CAN_CHANGE = "r",
6
+ VOICE_CAN_CHANGE = "v",
7
+ TEXT_CAN_CHANGE = "t"
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VoiceModeEnum = void 0;
4
+ var VoiceModeEnum;
5
+ (function (VoiceModeEnum) {
6
+ VoiceModeEnum["REPEAT_USER_FIXED"] = "R";
7
+ VoiceModeEnum["VOICE_FIXED"] = "V";
8
+ VoiceModeEnum["TEXT_FIXED"] = "T";
9
+ VoiceModeEnum["REPEAT_USER_CAN_CHANGE"] = "r";
10
+ VoiceModeEnum["VOICE_CAN_CHANGE"] = "v";
11
+ VoiceModeEnum["TEXT_CAN_CHANGE"] = "t";
12
+ })(VoiceModeEnum || (exports.VoiceModeEnum = VoiceModeEnum = {}));
@@ -1,6 +1,6 @@
1
1
  export interface AiResponseDto {
2
2
  messageId: string;
3
3
  content: string;
4
- transfToHuman: boolean;
5
- textToSpeech: boolean;
4
+ toHuman: boolean;
5
+ toSpeech: boolean;
6
6
  }
@@ -2,3 +2,4 @@ export * from './messages-to-process.dto';
2
2
  export * from './finished-run.dto';
3
3
  export * from './run-completed.dto';
4
4
  export * from './run.dto';
5
+ export * from './tts.dto';
package/dist/run/index.js CHANGED
@@ -18,3 +18,4 @@ __exportStar(require("./messages-to-process.dto"), exports);
18
18
  __exportStar(require("./finished-run.dto"), exports);
19
19
  __exportStar(require("./run-completed.dto"), exports);
20
20
  __exportStar(require("./run.dto"), exports);
21
+ __exportStar(require("./tts.dto"), exports);
@@ -0,0 +1,5 @@
1
+ export interface TtsDto {
2
+ speed: number;
3
+ voice: string;
4
+ dateFormat: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "1.8.9",
3
+ "version": "1.8.11",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",