@ziggs-ai/contracts 0.33.1 → 0.34.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/inbox.d.ts +29 -0
  2. package/package.json +1 -1
package/dist/inbox.d.ts CHANGED
@@ -267,3 +267,32 @@ export interface InboxRequestChannel {
267
267
  /** Unacked requests, separated from generic deliveries for exact-match triage. */
268
268
  openRequestsAwaitingMe: InboxOpenRequestRef[];
269
269
  }
270
+ /**
271
+ * A task whose plan is waiting on the reader's acknowledgement.
272
+ *
273
+ * The acknowledgement belongs to whoever pays for the work, so this lists
274
+ * tasks under agreements the reader's side pays for. A plan on work the reader
275
+ * was hired to do is the hirer's to acknowledge and does not appear here, even
276
+ * though the task itself is in `tasksAwaitingMe`. A task can be in both lists
277
+ * when a person hired their own assistant: the work is the assistant's, the
278
+ * acknowledgement is the person's.
279
+ *
280
+ * Acknowledge with `POST /tasks/:taskId/plan/acknowledge`.
281
+ */
282
+ export interface InboxPlanAckRef {
283
+ taskId: string;
284
+ agreementId: string;
285
+ title: string;
286
+ /**
287
+ * Which gate is waiting. `execution`: the plan must be acknowledged before
288
+ * the work starts. `mid_work`: the plan changed during the work.
289
+ */
290
+ scope: 'execution' | 'mid_work';
291
+ updatedAt: string | null;
292
+ }
293
+ export interface InboxPlanAckChannel {
294
+ /** Tasks whose plan waits on the reader's acknowledgement, newest first. */
295
+ planAcksAwaitingMe: InboxPlanAckRef[];
296
+ /** How many more the cap left off. */
297
+ truncatedPlanAcks: number;
298
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/contracts",
3
- "version": "0.33.1",
3
+ "version": "0.34.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",