@rodrigobeber/patoai-dtos 1.5.14 → 1.5.16

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.
@@ -1,8 +1,7 @@
1
- import { VoiceUnion } from "../chat/voice.dto";
2
1
  export interface TextToSpeechDto {
3
- aiKey: string;
2
+ credentials: any;
4
3
  input: string;
5
- voice: VoiceUnion;
4
+ voice: string;
5
+ lang?: string;
6
6
  speed?: number;
7
- hd?: boolean;
8
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "1.5.14",
3
+ "version": "1.5.16",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,22 +0,0 @@
1
- export declare enum ThreadAudioTypeEnum {
2
- REPEAT_USER = "R",
3
- AUDIO = "A",
4
- TEXT = "T"
5
- }
6
- export declare enum AgentAudioType {
7
- REPEAT_USER_FIXED = "R",
8
- AUDIO_FIXED = "A",
9
- TEXT_FIXED = "T",
10
- REPEAT_USER_CAN_CHANGE = "r",
11
- AUDIO_CAN_CHANGE = "a",
12
- TEXT_CAN_CHANGE = "t"
13
- }
14
- export interface SetThreadAudioModeDto {
15
- idThread: number;
16
- audioType: ThreadAudioTypeEnum;
17
- }
18
- export interface AudioSettings {
19
- speed: number;
20
- voice: string;
21
- mode: AgentAudioType;
22
- }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgentAudioType = exports.ThreadAudioTypeEnum = void 0;
4
- var ThreadAudioTypeEnum;
5
- (function (ThreadAudioTypeEnum) {
6
- ThreadAudioTypeEnum["REPEAT_USER"] = "R";
7
- ThreadAudioTypeEnum["AUDIO"] = "A";
8
- ThreadAudioTypeEnum["TEXT"] = "T";
9
- })(ThreadAudioTypeEnum || (exports.ThreadAudioTypeEnum = ThreadAudioTypeEnum = {}));
10
- var AgentAudioType;
11
- (function (AgentAudioType) {
12
- AgentAudioType["REPEAT_USER_FIXED"] = "R";
13
- AgentAudioType["AUDIO_FIXED"] = "A";
14
- AgentAudioType["TEXT_FIXED"] = "T";
15
- AgentAudioType["REPEAT_USER_CAN_CHANGE"] = "r";
16
- AgentAudioType["AUDIO_CAN_CHANGE"] = "a";
17
- AgentAudioType["TEXT_CAN_CHANGE"] = "t";
18
- })(AgentAudioType || (exports.AgentAudioType = AgentAudioType = {}));
@@ -1,9 +0,0 @@
1
- export interface CreateMessageDto {
2
- idThread: number;
3
- content: string;
4
- chatMessageId: string;
5
- role: string;
6
- idsMessages?: number[];
7
- messageId?: string;
8
- idAgent?: number;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { ThreadDto } from "./thread.dto";
2
- export interface RouteMessagesDto {
3
- idCrew: number;
4
- aiKey: string;
5
- thread: ThreadDto;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { ReplyMessageDto } from "./reply-message.dto";
2
- export interface RouteDto {
3
- idAgent: number;
4
- assistantId: string;
5
- idsMessages: number[];
6
- chatMessageIds: string[];
7
- isRawOutput: boolean;
8
- replyMessage: ReplyMessageDto;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export interface SyncMessagesDto {
2
- aiKey: string;
3
- threadId: string;
4
- ids: number[];
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export interface AIMessageDto {
2
- messageId: string;
3
- content: string;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- export interface CreateThreadVisionMessageDto {
2
- aiKey: string;
3
- threadId: string;
4
- base64: string;
5
- mimeType: string;
6
- role: string;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type VoiceUnion = "alloy" | "ash" | "coral" | "echo" | "fable" | "onyx" | "nova" | "sage" | "shimmer";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export interface AudioFileDto {
2
- base64: string;
3
- filename: string;
4
- type: string;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { ChannelDto } from "./channel.dto";
2
- export interface GetAudioFileDto {
3
- id: string;
4
- channel: ChannelDto;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { ChannelDto } from "./channel.dto";
2
- export interface SendReadReceiptDto {
3
- chatMessageId: string;
4
- channel: ChannelDto;
5
- userId: string;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { ChannelDto } from "./channel.dto";
2
- export interface SendTypingDto {
3
- userId: string;
4
- channel: ChannelDto;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });