@rodrigobeber/patoai-dtos 4.7.49 → 4.7.51

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.
@@ -2,5 +2,6 @@ export declare enum ProviderEnum {
2
2
  ELEVEN_LABS = "elevenlabs",
3
3
  GOOGLE_CLOUD = "googlecloud",
4
4
  OPENAI = "openai",
5
- OPENROUTER = "openrouter"
5
+ OPENROUTER = "openrouter",
6
+ ANTHROPIC = "anthropic"
6
7
  }
@@ -7,4 +7,5 @@ var ProviderEnum;
7
7
  ProviderEnum["GOOGLE_CLOUD"] = "googlecloud";
8
8
  ProviderEnum["OPENAI"] = "openai";
9
9
  ProviderEnum["OPENROUTER"] = "openrouter";
10
+ ProviderEnum["ANTHROPIC"] = "anthropic";
10
11
  })(ProviderEnum || (exports.ProviderEnum = ProviderEnum = {}));
@@ -14,13 +14,14 @@ export interface InputMessageFile {
14
14
  fileId?: string;
15
15
  }
16
16
  export type InputMessageContent = InputMessageText | InputMessageImage | InputMessageFile;
17
+ export type InputMessageContentOrArray = InputMessageContent | InputMessageContent[];
17
18
  export interface InputMessageSystem {
18
19
  role: 'system';
19
- content: InputMessageContent;
20
+ content: InputMessageContentOrArray;
20
21
  }
21
22
  export interface InputMessageDeveloper {
22
23
  role: 'developer';
23
- content: InputMessageContent;
24
+ content: InputMessageContentOrArray;
24
25
  }
25
26
  export interface InputMessageAssistant {
26
27
  role: 'assistant';
@@ -28,6 +29,6 @@ export interface InputMessageAssistant {
28
29
  }
29
30
  export interface InputMessageUser {
30
31
  role: 'user';
31
- content: InputMessageContent;
32
+ content: InputMessageContentOrArray;
32
33
  }
33
34
  export type InputMessageDto = InputMessageSystem | InputMessageDeveloper | InputMessageUser | InputMessageAssistant;
@@ -2,3 +2,4 @@ export * from './support-message.dto';
2
2
  export * from './support-crew-features.dto';
3
3
  export * from './support-ask.dto';
4
4
  export * from './support-answer.dto';
5
+ export * from './support-crew-config.dto';
@@ -18,3 +18,4 @@ __exportStar(require("./support-message.dto"), exports);
18
18
  __exportStar(require("./support-crew-features.dto"), exports);
19
19
  __exportStar(require("./support-ask.dto"), exports);
20
20
  __exportStar(require("./support-answer.dto"), exports);
21
+ __exportStar(require("./support-crew-config.dto"), exports);
@@ -0,0 +1,52 @@
1
+ import { AccountRoleEnum } from "../auth/account-role.enum";
2
+ import { MemberWithAccountDto } from "../organization/member-with-account.dto";
3
+ import { WebChatAssetDto } from "../webchat/asset/webchat-asset.dto";
4
+ import { WebChatCrewCrmDto } from "../webchat/crm/webchat-crew-crm.dto";
5
+ import { WebChatStageDto } from "../webchat/crm/webchat-stage.dto";
6
+ import { WebChatCrewDto } from "../webchat/crew/webchat-crew.dto";
7
+ import { WebChatCrewHoursResponseDto } from "../webchat/crew/webchat-crew-hours.dto";
8
+ import { WebChatFollowUpDto } from "../webchat/follow-up/webchat-followup.dto";
9
+ import { WebChatHandoffDto } from "../webchat/handoff/webchat-handoff.dto";
10
+ import { WebChatHoursResponseDto } from "../webchat/organization/webchat-hours.dto";
11
+ import { WebChatTriggerDto } from "../webchat/automation/webchat-trigger.dto";
12
+ export interface SupportCrewConfigRequestDto {
13
+ idCrew: number;
14
+ idAccount: number;
15
+ accountRole: AccountRoleEnum;
16
+ }
17
+ export interface SupportPromptSummaryDto {
18
+ title: string;
19
+ type: string;
20
+ active: boolean;
21
+ stageIds: number[];
22
+ order: number;
23
+ }
24
+ export interface SupportAttendeeNameTitleDto {
25
+ attendeeName: boolean;
26
+ attendeeNameMask: string | null;
27
+ }
28
+ export interface SupportCrewConfigDto {
29
+ crew?: WebChatCrewDto;
30
+ crewHours?: WebChatCrewHoursResponseDto[];
31
+ assets?: WebChatAssetDto[];
32
+ prompts?: SupportPromptSummaryDto[];
33
+ stages?: WebChatStageDto[];
34
+ followUps?: WebChatFollowUpDto[];
35
+ handoff?: WebChatHandoffDto;
36
+ humanHours?: WebChatHoursResponseDto[];
37
+ triggers?: WebChatTriggerDto[];
38
+ crmIntegration?: WebChatCrewCrmDto;
39
+ members?: MemberWithAccountDto[];
40
+ attendeeNameTitle?: SupportAttendeeNameTitleDto;
41
+ advancedVisible: boolean;
42
+ omittedSections: string[];
43
+ }
44
+ export interface SupportChannelStatusRequestDto {
45
+ idCrew: number;
46
+ idChannel?: number;
47
+ idAccount: number;
48
+ accountRole: AccountRoleEnum;
49
+ }
50
+ export interface SupportChannelStatusResponseDto {
51
+ text: string;
52
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,9 @@
1
1
  export interface SupportMessageDto {
2
2
  role: 'user' | 'assistant';
3
3
  text: string;
4
+ /**
5
+ * Imagens (prints) anexadas pelo usuario, como data URLs base64 (ex.: "data:image/webp;base64,...").
6
+ * So no papel 'user'. O front so envia na ultima mensagem para controlar tokens.
7
+ */
8
+ images?: string[];
4
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "4.7.49",
3
+ "version": "4.7.51",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",