@ziggs-ai/contracts 0.50.1 → 0.50.4

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.
@@ -120,6 +120,9 @@ export type AgreementRead = {
120
120
  };
121
121
  releaseSourceKind?: "artifact" | "agreement" | "message" | "task" | "connection-grant";
122
122
  holderId?: string;
123
+ itemsRead?: {
124
+ count: number;
125
+ };
123
126
  holders?: Array<{
124
127
  kind: "agent" | "user" | "org";
125
128
  id: string;
@@ -132,6 +135,7 @@ export type AgreementRead = {
132
135
  temporal?: "from-now" | "from-start";
133
136
  resumeAgreementId?: string;
134
137
  durationHours?: number;
138
+ itemCount?: number;
135
139
  reason?: string;
136
140
  expiresAt?: string | null;
137
141
  };
package/dist/inbox.d.ts CHANGED
@@ -108,6 +108,8 @@ export interface AccessAsk {
108
108
  * ask. Null when the request names no lifetime.
109
109
  */
110
110
  durationHours: number | null;
111
+ /** Fixed item count for an ongoing bucket admission request. */
112
+ itemCount?: number;
111
113
  /**
112
114
  * The grant's real expiry, once there is one. Absent while the ask is still
113
115
  * pending — a card must not show an expiry for access that does not exist.
@@ -167,6 +169,11 @@ export interface InboxDeliveryRef {
167
169
  addressId: string | null;
168
170
  agreementId: string | null;
169
171
  taskId: string | null;
172
+ /**
173
+ * ZIG-2428 — the thread this row belongs to, so a person's list can count
174
+ * unseen mail per conversation. Null when the row is not a message.
175
+ */
176
+ rootMessageId?: string | null;
170
177
  /** ISO instant of the event; the axis `ackTo` moves along. */
171
178
  ts: string;
172
179
  /**
@@ -113,6 +113,22 @@ export interface MessageRecord {
113
113
  intent: MessageIntent;
114
114
  /** The page it carries; null when it carries none, or the viewer cannot read the file. */
115
115
  page: ExactArtifactRef | null;
116
+ /**
117
+ * Set when it carries a page the viewer cannot open: that page's name, so a
118
+ * client says so instead of showing nothing. Absent otherwise.
119
+ */
120
+ pageUnavailable?: {
121
+ name: string | null;
122
+ };
123
+ /**
124
+ * On a single read of a message in a page thread: the version on show, the
125
+ * newest page the poster's side sent in the thread. `page` is null when the
126
+ * viewer cannot open that version. Absent outside a page thread.
127
+ */
128
+ currentPage?: {
129
+ messageId: string;
130
+ page: ExactArtifactRef | null;
131
+ };
116
132
  /** The outside channel it arrived through, without its provider reference. */
117
133
  importedFrom: {
118
134
  channel: 'slack' | 'email' | 'github';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/contracts",
3
- "version": "0.50.1",
3
+ "version": "0.50.4",
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",