@trii/types 2.10.771 → 2.10.773

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.
@@ -51,7 +51,9 @@ export declare enum MessageType {
51
51
  COMMENT = 6,
52
52
  INFO = 7,
53
53
  NOTIFICATION_NEW_CONVERSATION = 12,
54
- N2B = 13
54
+ N2B = 13,
55
+ /** History activity; the payload (for example, ticket) identifies its content. */
56
+ ACTIVITY = 14
55
57
  }
56
58
  export type MessageType2 = 'audio' | 'button' | 'contact' | 'document' | 'image' | 'location' | 'sticker' | 'text' | 'video' | 'interactive';
57
59
  export interface MessageHeader {
@@ -267,9 +269,13 @@ export interface MessageInfoVar {
267
269
  conversationDetails?: string;
268
270
  }
269
271
  export interface MessageTicket {
270
- ticketId: string;
271
- ticketNumber?: number;
272
- ticketTitle?: string;
272
+ id: string;
273
+ number: number;
274
+ title: string;
275
+ description?: string;
276
+ stage: string;
277
+ priority: string;
278
+ version: number;
273
279
  }
274
280
  export interface MessageForm {
275
281
  url: string;
@@ -34,6 +34,8 @@ var MessageType;
34
34
  MessageType[MessageType["INFO"] = 7] = "INFO";
35
35
  MessageType[MessageType["NOTIFICATION_NEW_CONVERSATION"] = 12] = "NOTIFICATION_NEW_CONVERSATION";
36
36
  MessageType[MessageType["N2B"] = 13] = "N2B";
37
+ /** History activity; the payload (for example, ticket) identifies its content. */
38
+ MessageType[MessageType["ACTIVITY"] = 14] = "ACTIVITY";
37
39
  })(MessageType || (exports.MessageType = MessageType = {}));
38
40
  var MessageHeaderType;
39
41
  (function (MessageHeaderType) {
@@ -48,7 +48,8 @@ export interface PersonalInboxSnapshot {
48
48
  }
49
49
  export interface PersonalInboxMembership {
50
50
  pending: ID[];
51
- following: ID[];
51
+ /** @deprecated Empty compatibility field; following uses paged API queries. */
52
+ following?: ID[];
52
53
  }
53
54
  export interface PersonalInboxItem {
54
55
  id: ID;
@@ -79,11 +80,15 @@ export interface PersonalInboxItem {
79
80
  metric: IConversation['sla']['clocks'][number]['metric'];
80
81
  status: IConversation['sla']['clocks'][number]['status'];
81
82
  deadlineAt: string | null;
83
+ nextWarningAt?: string | null;
84
+ warningAt?: string | null;
85
+ breachedAt?: string | null;
82
86
  }[];
83
87
  /** Current automation control only; older snapshots may omit these fields. */
84
88
  automationStatus?: NonNullable<IConversation['automation']>['status'] | null;
85
89
  activeAiAgent?: NonNullable<IConversation['automation']>['activeAiAgent'] | null;
86
90
  queueId: ID | null;
91
+ isSharedQueue: boolean;
87
92
  ownerUserId: ID | null;
88
93
  ownerName: string | null;
89
94
  ownerAvatarUrl: string | null;
@@ -104,6 +109,19 @@ export interface PersonalInboxItem {
104
109
  color: string | null;
105
110
  }[];
106
111
  }
112
+ /** Ephemeral viewers of one conversation. An owner or participant may be offline. */
113
+ export interface ConversationPresenceViewer {
114
+ id: ID;
115
+ name: string;
116
+ imageUrl: string | null;
117
+ }
118
+ export interface ConversationPresenceResponse {
119
+ viewers: ConversationPresenceViewer[];
120
+ }
121
+ export interface ConversationPresenceHeartbeatRequest {
122
+ /** One UUID per browser tab/conversation visit. */
123
+ sessionId: string;
124
+ }
107
125
  export interface ResolvePersonalInboxItemsRequest {
108
126
  conversationIds: ID[];
109
127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.771",
3
+ "version": "2.10.773",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",