evo360-types 1.3.349 → 1.3.350

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.
@@ -3,6 +3,13 @@ export type InboxType = 'personal' | 'team' | 'supervisor_view';
3
3
  export type InboxStatus = 'active' | 'paused' | 'disabled';
4
4
  export type InboxMemberRole = 'viewer' | 'agent' | 'admin';
5
5
  export type InboxSubscriptionType = 'dep' | 'tenant';
6
+ /**
7
+ * Modo da conversa HubIA, denormalizado no item do inbox para classificação
8
+ * de aba (Humano vs HubIA) sem precisar abrir o ticket.
9
+ *
10
+ * Fonte de verdade: tenants/{tenant}/apps/evo-hubia-v1/conversations/conv_{contactId}.mode
11
+ */
12
+ export type HubiaConversationMode = 'ai_only' | 'ai_suggest' | 'human_only' | 'hybrid_assist' | 'blocked';
6
13
  export interface IInbox extends IFireGlobalDoc {
7
14
  name: string;
8
15
  type: InboxType;
@@ -34,6 +41,8 @@ export interface IInboxItem {
34
41
  assigned_user_id?: string | null;
35
42
  /** Who is currently attending: 'ai', 'human', or null (unassigned) */
36
43
  attendant_type?: 'ai' | 'human' | null;
44
+ /** Modo da conversa HubIA (denormalizado da conversa). Null se não houver conversa HubIA. */
45
+ hubia_conversation_mode?: HubiaConversationMode | null;
37
46
  postponed_until?: Date | null;
38
47
  is_postponed: boolean;
39
48
  last_message_at?: Date;
@@ -7,6 +7,19 @@ export type InboxStatus = 'active' | 'paused' | 'disabled';
7
7
  export type InboxMemberRole = 'viewer' | 'agent' | 'admin';
8
8
  export type InboxSubscriptionType = 'dep' | 'tenant';
9
9
 
10
+ /**
11
+ * Modo da conversa HubIA, denormalizado no item do inbox para classificação
12
+ * de aba (Humano vs HubIA) sem precisar abrir o ticket.
13
+ *
14
+ * Fonte de verdade: tenants/{tenant}/apps/evo-hubia-v1/conversations/conv_{contactId}.mode
15
+ */
16
+ export type HubiaConversationMode =
17
+ | 'ai_only'
18
+ | 'ai_suggest'
19
+ | 'human_only'
20
+ | 'hybrid_assist'
21
+ | 'blocked';
22
+
10
23
  // ── Inbox (global, cross-tenant) ──
11
24
 
12
25
  export interface IInbox extends IFireGlobalDoc {
@@ -47,6 +60,8 @@ export interface IInboxItem {
47
60
  assigned_user_id?: string | null;
48
61
  /** Who is currently attending: 'ai', 'human', or null (unassigned) */
49
62
  attendant_type?: 'ai' | 'human' | null;
63
+ /** Modo da conversa HubIA (denormalizado da conversa). Null se não houver conversa HubIA. */
64
+ hubia_conversation_mode?: HubiaConversationMode | null;
50
65
  postponed_until?: Date | null;
51
66
  is_postponed: boolean;
52
67
  last_message_at?: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.349",
3
+ "version": "1.3.350",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",