@ziggs-ai/contracts 0.25.1 → 0.27.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/chat.d.ts +7 -0
- package/dist/generated/grants.d.ts +1 -1
- package/package.json +1 -1
package/dist/chat.d.ts
CHANGED
|
@@ -206,6 +206,11 @@ export interface MessageServicePayload {
|
|
|
206
206
|
* Timestamps are ISO strings here. A server-side read model may hold them as
|
|
207
207
|
* dates; nothing outside the server ever sees that.
|
|
208
208
|
*/
|
|
209
|
+
/**
|
|
210
|
+
* ZIG-2182 — the channel that carried a message, written only by the rail
|
|
211
|
+
* that carried it. Absent means it was written in Ziggs.
|
|
212
|
+
*/
|
|
213
|
+
export type MessageVia = 'email' | 'slack';
|
|
209
214
|
export interface MessageWireDto {
|
|
210
215
|
messageId: string | null;
|
|
211
216
|
chatId: string;
|
|
@@ -220,6 +225,8 @@ export interface MessageWireDto {
|
|
|
220
225
|
timestamp: string;
|
|
221
226
|
sentTimestamp?: string;
|
|
222
227
|
service?: MessageServicePayload;
|
|
228
|
+
/** ZIG-2182 — present only when a rail carried it in or out. */
|
|
229
|
+
via?: MessageVia;
|
|
223
230
|
}
|
|
224
231
|
/**
|
|
225
232
|
* `GET /chats?withMessages=true`.
|
|
@@ -12,7 +12,7 @@ export type GrantCaveatView = {
|
|
|
12
12
|
value: unknown;
|
|
13
13
|
};
|
|
14
14
|
export type GrantBasis = {
|
|
15
|
-
kind: "creation" | "publication" | "membership" | "acceptance" | "agreement";
|
|
15
|
+
kind: "creation" | "publication" | "membership" | "acceptance" | "agreement" | "vouch";
|
|
16
16
|
id: string | null;
|
|
17
17
|
};
|
|
18
18
|
export type GrantView = {
|
package/package.json
CHANGED