@ziggs-ai/contracts 0.27.0 → 0.29.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.
Files changed (2) hide show
  1. package/dist/chat.d.ts +13 -0
  2. package/package.json +1 -1
package/dist/chat.d.ts CHANGED
@@ -129,6 +129,14 @@ export interface ChatReadDto {
129
129
  updatedAt: string | null;
130
130
  /** Newest-message snippet. Absent when the chat has no messages. */
131
131
  lastMessage?: ChatLastMessage;
132
+ /**
133
+ * The room's first message, so a room named after its opening line can be
134
+ * named before it is opened. Sent by the app's chat list, and absent from
135
+ * reads that do not resolve it. Null when the room has no messages, or when
136
+ * the reader's grant starts after it (a from-now grant never shows a later
137
+ * message in its place).
138
+ */
139
+ openingMessage?: ChatLastMessage | null;
132
140
  /**
133
141
  * Unread messages for the reader, capped at 99 so a badge can render "99+".
134
142
  * Attached by the list read; absent on reads that do not resolve it.
@@ -227,6 +235,11 @@ export interface MessageWireDto {
227
235
  service?: MessageServicePayload;
228
236
  /** ZIG-2182 — present only when a rail carried it in or out. */
229
237
  via?: MessageVia;
238
+ /**
239
+ * ZIG-2181 — written in Ziggs to a person not on Ziggs yet, and no channel
240
+ * could carry it to them.
241
+ */
242
+ notDelivered?: true;
230
243
  }
231
244
  /**
232
245
  * `GET /chats?withMessages=true`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/contracts",
3
- "version": "0.27.0",
3
+ "version": "0.29.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",