@rodrigobeber/patoai-dtos 3.4.18 → 3.5.2

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.
Files changed (37) hide show
  1. package/dist/chat/thread/message/assistant-message.dto.d.ts +3 -3
  2. package/dist/chat/thread/message/developer-message.dto.d.ts +1 -1
  3. package/dist/chat/thread/message/owner-message.dto.d.ts +2 -2
  4. package/dist/chat/thread/message/user-message.dto.d.ts +2 -2
  5. package/dist/chat/thread/set-manual-mode.dto.d.ts +1 -1
  6. package/dist/chat/thread/thread-processing.dto.d.ts +1 -1
  7. package/dist/chat/thread/thread.dto.d.ts +1 -1
  8. package/dist/crm/set-lead-stage.dto.d.ts +1 -1
  9. package/dist/run/run-pending-resume.dto.d.ts +1 -1
  10. package/dist/run/run-result.dto.d.ts +1 -1
  11. package/dist/run/run.dto.d.ts +1 -1
  12. package/dist/tool/tool-response.dto.d.ts +1 -1
  13. package/dist/uh/reply-message.dto.d.ts +1 -1
  14. package/dist/uh/send-header.dto.d.ts +1 -1
  15. package/dist/uh/send-receipts.dto.d.ts +1 -1
  16. package/dist/uh/send-template.dto.d.ts +1 -1
  17. package/dist/webchat/crm/webchat-get-lead-history.dto.d.ts +1 -1
  18. package/dist/webchat/crm/webchat-lead.dto.d.ts +1 -1
  19. package/dist/webchat/crm/webchat-set-lead-observation.dto.d.ts +1 -1
  20. package/dist/webchat/crm/webchat-set-lead-stage.dto.d.ts +1 -1
  21. package/dist/webchat/crm/webchat-set-tag.dto.d.ts +1 -1
  22. package/dist/webchat/crm/webchat-stage-history.dto.d.ts +1 -1
  23. package/dist/webchat/crm/webchat-stage.dto.d.ts +1 -1
  24. package/dist/webchat/thread/webchat-delete-messages.dto.d.ts +1 -1
  25. package/dist/webchat/thread/webchat-get-media-url.dto.d.ts +1 -1
  26. package/dist/webchat/thread/webchat-id-thread.dto.d.ts +6 -6
  27. package/dist/webchat/thread/webchat-last-message.dto.d.ts +1 -1
  28. package/dist/webchat/thread/webchat-media.dto.d.ts +1 -1
  29. package/dist/webchat/thread/webchat-message-create.dto.d.ts +2 -2
  30. package/dist/webchat/thread/webchat-message.dto.d.ts +3 -3
  31. package/dist/webchat/thread/webchat-messages-deleted.dto.d.ts +1 -1
  32. package/dist/webchat/thread/webchat-set-processed.dto.d.ts +2 -2
  33. package/dist/webchat/thread/webchat-set-thread-manual.dto.d.ts +1 -1
  34. package/dist/webchat/thread/webchat-set-user-name.dto.d.ts +1 -1
  35. package/dist/webchat/thread/webchat-thread.dto.d.ts +1 -1
  36. package/dist/webchat/thread/webchat-update-message.dto.d.ts +2 -2
  37. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import { MediaInfoDto } from "../../media";
2
2
  export interface AssistantMessageDto {
3
- idThread: number;
3
+ idThread: string;
4
4
  messageId: string;
5
5
  content: string;
6
6
  mediaInfo?: MediaInfoDto;
7
- idReply?: number;
8
- idLastProcessed: number;
7
+ idReply?: string;
8
+ idLastProcessed: string;
9
9
  }
@@ -1,4 +1,4 @@
1
1
  export interface DeveloperMessageDto {
2
- idThread: number;
2
+ idThread: string;
3
3
  content: string;
4
4
  }
@@ -1,8 +1,8 @@
1
1
  import { MediaInfoDto } from "../../media";
2
2
  export interface OwnerMessageDto {
3
- idThread: number;
3
+ idThread: string;
4
4
  messageId: string;
5
5
  content: string;
6
6
  mediaInfo?: MediaInfoDto;
7
- idReply: number | null;
7
+ idReply: string | null;
8
8
  }
@@ -1,8 +1,8 @@
1
1
  import { MediaInfoDto } from "../../media";
2
2
  export interface UserMessageDto {
3
- idThread: number;
3
+ idThread: string;
4
4
  messageId: string;
5
5
  content: string;
6
6
  mediaInfo?: MediaInfoDto;
7
- idReply: number | null;
7
+ idReply: string | null;
8
8
  }
@@ -1,5 +1,5 @@
1
1
  export interface SetManualModeDto {
2
- idThread: number;
2
+ idThread: string;
3
3
  idHuman: number | null;
4
4
  manual: boolean;
5
5
  reason: string | null;
@@ -1,5 +1,5 @@
1
1
  export interface ThreadProcessingDto {
2
- idThread: number;
2
+ idThread: string;
3
3
  processing: boolean;
4
4
  at: Date;
5
5
  }
@@ -1,4 +1,4 @@
1
1
  export interface ThreadDto {
2
- id: number;
2
+ id: string;
3
3
  userId: string;
4
4
  }
@@ -1,4 +1,4 @@
1
1
  export interface SetLeadStageDto {
2
- idLead: number;
2
+ idLead: string;
3
3
  idStage: number;
4
4
  }
@@ -1,4 +1,4 @@
1
1
  export interface RunPendingResumeDto {
2
- idMax: number;
2
+ idMax: string;
3
3
  count: number;
4
4
  }
@@ -3,5 +3,5 @@ import { UsageDto } from "./usage.dto";
3
3
  export interface RunResultDto {
4
4
  data: RunDto;
5
5
  usage: UsageDto;
6
- idLastSent: number | null;
6
+ idLastSent: string | null;
7
7
  }
@@ -11,5 +11,5 @@ export interface RunDto {
11
11
  instruction?: InputMessageDeveloper[];
12
12
  followUp?: number;
13
13
  type: RunEnum;
14
- idLast?: number;
14
+ idLast?: string;
15
15
  }
@@ -4,5 +4,5 @@ export interface ToolResponseDto {
4
4
  volatile?: boolean;
5
5
  terminate?: boolean;
6
6
  postRunInstruction?: string;
7
- idSentMessage?: number;
7
+ idSentMessage?: string;
8
8
  }
@@ -1,5 +1,5 @@
1
1
  export interface ReplyMessageDto {
2
- idMessage: number;
2
+ idMessage: string;
3
3
  messageId: string;
4
4
  content: string;
5
5
  }
@@ -2,7 +2,7 @@ import { ChannelDto } from "./channel.dto";
2
2
  import { ReplyMessageDto } from "./reply-message.dto";
3
3
  export interface SendHeaderDto {
4
4
  userId: string;
5
- idThread: number;
5
+ idThread: string;
6
6
  channel: ChannelDto;
7
7
  quoted: boolean;
8
8
  speed: number;
@@ -1,6 +1,6 @@
1
1
  import { ChannelDto } from "./channel.dto";
2
2
  export interface SendReceiptsDto {
3
- idThread: number;
3
+ idThread: string;
4
4
  chatMessageIds: string[];
5
5
  channel: ChannelDto;
6
6
  userId: string;
@@ -6,7 +6,7 @@ export interface SendTemplateDto {
6
6
  variables: any;
7
7
  }
8
8
  export interface SendFromTemplateDto {
9
- idThread: number;
9
+ idThread: string;
10
10
  instruction?: string;
11
11
  varSet: Record<string, string>;
12
12
  userId: string;
@@ -1,3 +1,3 @@
1
1
  export interface WebChatGetLeadHistoryDto {
2
- idLead: number;
2
+ idLead: string;
3
3
  }
@@ -1,5 +1,5 @@
1
1
  export interface WebChatLeadDto {
2
- idLead: number;
2
+ idLead: string;
3
3
  idStage: number;
4
4
  stageAt: Date;
5
5
  idHuman: number | null;
@@ -1,4 +1,4 @@
1
1
  export interface WebChatSetLeadObservationDto {
2
- idLead: number;
2
+ idLead: string;
3
3
  observation: string | null;
4
4
  }
@@ -1,4 +1,4 @@
1
1
  export interface WebChatSetLeadStageDto {
2
- idLead: number;
2
+ idLead: string;
3
3
  idStage: number;
4
4
  }
@@ -1,5 +1,5 @@
1
1
  export interface WebChatSetTagDto {
2
- idLead: number;
2
+ idLead: string;
3
3
  idTag: number;
4
4
  assigned: boolean;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  export interface WebChatStageHistoryDto {
2
- idLead: number;
2
+ idLead: string;
3
3
  idPreviousStage: number | null;
4
4
  idStage: number;
5
5
  at: Date;
@@ -7,7 +7,7 @@ export declare enum StageEnum {
7
7
  CUSTOM = 10
8
8
  }
9
9
  export interface WebChatStageDto {
10
- id: number;
10
+ id: string;
11
11
  order: number;
12
12
  type: StageEnum;
13
13
  name: string;
@@ -1,5 +1,5 @@
1
1
  export interface WebChatDeleteMessagesDto {
2
- idThread: number;
2
+ idThread: string;
3
3
  messageIds: string[];
4
4
  all: boolean;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { MediaEnum } from "../../chat";
2
2
  export interface WebChatGetMediaUrlDto {
3
- idThread: number;
3
+ idThread: string;
4
4
  mediaId: string;
5
5
  type: MediaEnum;
6
6
  asset: boolean;
@@ -1,18 +1,18 @@
1
1
  export interface WebChatJoinThreadDto {
2
- idThread: number;
2
+ idThread: string;
3
3
  }
4
4
  export interface WebChatLeaveThreadDto {
5
- idThread: number;
5
+ idThread: string;
6
6
  }
7
7
  export interface WebChatGetConversatioDto {
8
- idThread: number;
8
+ idThread: string;
9
9
  }
10
10
  export interface WebChatDeleteThreadDto {
11
- idThread: number;
11
+ idThread: string;
12
12
  }
13
13
  export interface WebChatThreadDeletedDto {
14
- idThread: number;
14
+ idThread: string;
15
15
  }
16
16
  export interface WebChatThreadDeletedDto {
17
- idThread: number;
17
+ idThread: string;
18
18
  }
@@ -1,6 +1,6 @@
1
1
  import { MediaEnum } from "../../chat";
2
2
  export interface WebChatLastMessageDto {
3
- id: number;
3
+ id: string;
4
4
  at: Date;
5
5
  text: string;
6
6
  role: 'user' | 'assistant' | 'owner';
@@ -1,6 +1,6 @@
1
1
  import { MediaEnum } from "../../chat";
2
2
  export interface WebChatMediaDto {
3
- idMessage: number;
3
+ idMessage: string;
4
4
  type: MediaEnum;
5
5
  asset: boolean;
6
6
  mediaId: string;
@@ -7,10 +7,10 @@ export interface WebChatMediaCreateDto {
7
7
  }
8
8
  export interface WebChatMessageCreateDto {
9
9
  tempId: string;
10
- idThread: number;
10
+ idThread: string;
11
11
  userId: string;
12
12
  text: string;
13
13
  role: 'owner';
14
- idReply?: number;
14
+ idReply?: string;
15
15
  media?: WebChatMediaCreateDto;
16
16
  }
@@ -1,13 +1,13 @@
1
1
  import { WebChatMediaDto } from "./webchat-media.dto";
2
2
  export interface WebChatMessageDto {
3
- idMessage: number;
4
- idThread: number;
3
+ idMessage: string;
4
+ idThread: string;
5
5
  text: string | null;
6
6
  role: 'user' | 'system' | 'developer' | 'assistant' | 'owner';
7
7
  processed: boolean;
8
8
  hidden: boolean;
9
9
  messageId: string;
10
- idReply: number | null;
10
+ idReply: string | null;
11
11
  createdAt: Date;
12
12
  media: WebChatMediaDto | null;
13
13
  tempId?: string;
@@ -1,4 +1,4 @@
1
1
  export interface WebChatMessagesDeletedDto {
2
- idThread: number;
2
+ idThread: string;
3
3
  messageIds: string[];
4
4
  }
@@ -1,5 +1,5 @@
1
1
  export interface WebChatSetProcessedDto {
2
- idThread: number;
3
- idMessage: number;
2
+ idThread: string;
3
+ idMessage: string;
4
4
  processed: boolean;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  export interface WebChatSetThreadManualDto {
2
- idThread: number;
2
+ idThread: string;
3
3
  idHuman: number | null;
4
4
  manual: boolean;
5
5
  }
@@ -1,4 +1,4 @@
1
1
  export interface WebChatSetThreadUserNameDto {
2
- idThread: number;
2
+ idThread: string;
3
3
  userName: string;
4
4
  }
@@ -1,7 +1,7 @@
1
1
  import { WebChatLeadDto } from "../crm/webchat-lead.dto";
2
2
  import { WebChatLastMessageDto } from "./webchat-last-message.dto";
3
3
  export interface WebChatThreadDto {
4
- idThread: number;
4
+ idThread: string;
5
5
  idCrew: number;
6
6
  idChannel: number;
7
7
  idUser: number;
@@ -1,5 +1,5 @@
1
1
  export interface WebChatUpdateMessageDto {
2
- idThread: number;
3
- idMessage: number;
2
+ idThread: string;
3
+ idMessage: string;
4
4
  text: string | null;
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "3.4.18",
3
+ "version": "3.5.2",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",