@ziggs-ai/contracts 0.46.0 → 0.47.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.
@@ -18,6 +18,7 @@ export type AgreementTerms = {
18
18
  maxExecutions: number | null;
19
19
  description: string;
20
20
  billing?: "total" | "per_task";
21
+ taskCharge?: "fixed" | "at_completion";
21
22
  requiredConnections: Array<unknown>;
22
23
  wakeCeiling?: number | null;
23
24
  conversationAllowance?: number | null;
@@ -13,6 +13,10 @@ export interface MessageEndpoint {
13
13
  * Draws their face and, for an agent, their presence; it addresses nothing. */
14
14
  faceId: string;
15
15
  image: string | null;
16
+ /** Set when this reader is listed only because it owns an agent in the
17
+ * message: the ref of that agent. It reads along; it is not someone the
18
+ * conversation is with, so clients leave it out of titles and recipients. */
19
+ ownerOf?: string;
16
20
  }
17
21
  /** Discovery only. Sending rechecks recipient, authority, consent and allowance. */
18
22
  export interface MessagingControls {
@@ -85,6 +89,11 @@ export interface MessageCommand {
85
89
  /** One viewer-safe presentation for every message; no work/direct/shared variant. */
86
90
  export interface MessageRecord {
87
91
  messageId: string;
92
+ /** The first message of the thread this one belongs to (its own id when it
93
+ * replies to nothing). Set once at send from the reply link. It groups
94
+ * messages for display and for an agent's session; it grants nothing, and
95
+ * each message in the thread keeps its own readers. */
96
+ rootMessageId: string;
88
97
  timestamp: string;
89
98
  content: MessageCommand['content'];
90
99
  sender: MessageEndpoint;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/contracts",
3
- "version": "0.46.0",
3
+ "version": "0.47.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",