@rodrigobeber/patoai-dtos 1.0.25 → 1.1.1

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.
@@ -0,0 +1,8 @@
1
+ export interface CreateMessageDto {
2
+ idThread: number;
3
+ content: string;
4
+ chatMessageId: string;
5
+ messageId: string;
6
+ role: string;
7
+ idAgent: number;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { MessageInDto } from "./message-in.dto";
2
+ export interface HandleMessageDto {
3
+ crewCode: string;
4
+ method: string;
5
+ messageIn: MessageInDto;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export * from './integration.dto';
2
+ export * from './thread.dto';
3
+ export * from './create-message.dto';
4
+ export * from './sync-messages.dto';
5
+ export * from './message-in.dto';
6
+ export * from './handle-message.dto';
7
+ export * from './reply-message.dto';
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./integration.dto"), exports);
18
+ __exportStar(require("./thread.dto"), exports);
19
+ __exportStar(require("./create-message.dto"), exports);
20
+ __exportStar(require("./sync-messages.dto"), exports);
21
+ __exportStar(require("./message-in.dto"), exports);
22
+ __exportStar(require("./handle-message.dto"), exports);
23
+ // returns
24
+ __exportStar(require("./reply-message.dto"), exports);
@@ -0,0 +1,4 @@
1
+ export interface IntegrationDto {
2
+ type: string;
3
+ data: any;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ export declare enum MessageInTypeDto {
2
+ TEXT = "text",
3
+ VOICE = "voice"
4
+ }
5
+ export declare enum MessageLangDto {
6
+ PT = "pt",
7
+ EN = "en"
8
+ }
9
+ export interface MessageInDto {
10
+ userId: string;
11
+ lang: MessageLangDto;
12
+ userName: string;
13
+ type: MessageInTypeDto;
14
+ chatMessageId: string;
15
+ text: string;
16
+ isNewChat: boolean;
17
+ idAudio?: string;
18
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MessageLangDto = exports.MessageInTypeDto = void 0;
4
+ var MessageInTypeDto;
5
+ (function (MessageInTypeDto) {
6
+ MessageInTypeDto["TEXT"] = "text";
7
+ MessageInTypeDto["VOICE"] = "voice";
8
+ })(MessageInTypeDto || (exports.MessageInTypeDto = MessageInTypeDto = {}));
9
+ var MessageLangDto;
10
+ (function (MessageLangDto) {
11
+ MessageLangDto["PT"] = "pt";
12
+ MessageLangDto["EN"] = "en";
13
+ })(MessageLangDto || (exports.MessageLangDto = MessageLangDto = {}));
@@ -0,0 +1,4 @@
1
+ export interface ReplyMessageDto {
2
+ chatMessageId: string;
3
+ content: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { ThreadDto } from "./thread.dto";
2
+ export interface SyncMessagesDto {
3
+ aiKey: string;
4
+ thread: ThreadDto;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface ThreadDto {
2
+ id: number;
3
+ threadId: string;
4
+ userId: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from './openai';
2
2
  export * from './tool';
3
3
  export * from './platform';
4
- export * from './assistant';
4
+ export * from './chat';
5
5
  export * from './run';
package/dist/index.js CHANGED
@@ -17,5 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./openai"), exports);
18
18
  __exportStar(require("./tool"), exports);
19
19
  __exportStar(require("./platform"), exports);
20
- __exportStar(require("./assistant"), exports);
20
+ __exportStar(require("./chat"), exports);
21
21
  __exportStar(require("./run"), exports);
@@ -1,5 +1,5 @@
1
- import { BotDto } from "../assistant/bot.dto";
1
+ import { IntegrationDto } from "../chat/integration.dto";
2
2
  export interface GetAudioFileDto {
3
3
  id: string;
4
- bot: BotDto;
4
+ integration: IntegrationDto;
5
5
  }
@@ -1,7 +1,7 @@
1
- import { BotDto } from "../assistant/bot.dto";
1
+ import { IntegrationDto } from "../chat/integration.dto";
2
2
  export interface SendContactDto {
3
3
  userId: string;
4
- bot: BotDto;
4
+ integration: IntegrationDto;
5
5
  fullName: string;
6
6
  wuid: string;
7
7
  organization?: string;
@@ -1,4 +1,4 @@
1
- import { BotDto } from "../assistant/bot.dto";
1
+ import { IntegrationDto } from "../chat/integration.dto";
2
2
  export interface SendListRowDto {
3
3
  title: string;
4
4
  description: string;
@@ -10,7 +10,7 @@ export interface SendListSectionDto {
10
10
  }
11
11
  export interface SendListDto {
12
12
  userId: string;
13
- bot: BotDto;
13
+ integration: IntegrationDto;
14
14
  title: string;
15
15
  description: string;
16
16
  buttonText: string;
@@ -1,7 +1,7 @@
1
- import { BotDto } from "../assistant/bot.dto";
1
+ import { IntegrationDto } from "../chat/integration.dto";
2
2
  export interface SendMessageDto {
3
3
  userId: string;
4
- bot: BotDto;
4
+ integration: IntegrationDto;
5
5
  text: string;
6
6
  isQuoted: boolean;
7
7
  replyMessageId?: string;
@@ -1,5 +1,5 @@
1
- import { BotDto } from "../assistant/bot.dto";
1
+ import { IntegrationDto } from "../chat/integration.dto";
2
2
  export interface SendTypingDto {
3
3
  userId: string;
4
- bot: BotDto;
4
+ integration: IntegrationDto;
5
5
  }
@@ -1,10 +1,10 @@
1
- import { MessageLangDto } from "../assistant";
2
- import { BotDto } from "../assistant/bot.dto";
3
- import { ThreadDto } from "../assistant/thread.dto";
1
+ import { MessageLangDto } from "../chat";
2
+ import { IntegrationDto } from "../chat/integration.dto";
3
+ import { ThreadDto } from "../chat/thread.dto";
4
4
  export interface RunDto {
5
5
  aiKey: string;
6
6
  assistantId: string;
7
- bot: BotDto;
7
+ integration: IntegrationDto;
8
8
  thread: ThreadDto;
9
9
  lang: MessageLangDto;
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "1.0.25",
3
+ "version": "1.1.1",
4
4
  "description": "Data Transfer Objects for the PatoAI system",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",