@ziggs-ai/contracts 0.32.0 → 0.33.0

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.
package/dist/socket.d.ts CHANGED
@@ -86,9 +86,24 @@ export interface ChatMessageReadFrame {
86
86
  messageIds: string[];
87
87
  kind?: 'agent_handover';
88
88
  }
89
+ /**
90
+ * ZIG-857 — non-persisted "the agent is working" cue for the room.
91
+ *
92
+ * Agents never open a socket (inbox is HTTP). The server emits this when an
93
+ * agent picks up chat mail (`working`) so the room is not dead air until the
94
+ * first `chat:message:new`. Cleared by `done`, by that agent's next message,
95
+ * or by the client after a short idle.
96
+ */
97
+ export interface ChatMessageActivityFrame {
98
+ chatId: string;
99
+ /** Agent (or person) the indicator is about. */
100
+ senderId: string;
101
+ kind: 'working' | 'done';
102
+ }
89
103
  export interface ServerToClientEvents {
90
104
  'chat:message:new': ChatMessageNewFrame;
91
105
  'chat:message:read': ChatMessageReadFrame;
106
+ 'chat:message:activity': ChatMessageActivityFrame;
92
107
  'chat:read': ChatReadFrame;
93
108
  'chat:participants_changed': ChatParticipantsChangedFrame;
94
109
  'agent:liveness': AgentLivenessFrame;
@@ -102,6 +117,7 @@ export interface ClientToServerEvents {
102
117
  export declare const SERVER_EVENTS: {
103
118
  readonly chatMessageNew: "chat:message:new";
104
119
  readonly chatMessageRead: "chat:message:read";
120
+ readonly chatMessageActivity: "chat:message:activity";
105
121
  readonly chatRead: "chat:read";
106
122
  readonly chatParticipantsChanged: "chat:participants_changed";
107
123
  readonly agentLiveness: "agent:liveness";
package/dist/socket.js CHANGED
@@ -5,6 +5,7 @@ exports.CLIENT_EVENTS = exports.SERVER_EVENTS = void 0;
5
5
  exports.SERVER_EVENTS = {
6
6
  chatMessageNew: 'chat:message:new',
7
7
  chatMessageRead: 'chat:message:read',
8
+ chatMessageActivity: 'chat:message:activity',
8
9
  chatRead: 'chat:read',
9
10
  chatParticipantsChanged: 'chat:participants_changed',
10
11
  agentLiveness: 'agent:liveness',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/contracts",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "description": "Wire contracts for the Ziggs API — response shapes, error body, and socket events, shared by every client.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",