@trii/types 2.10.771 → 2.10.772

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.
@@ -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.772",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",