@ziggs-ai/api-client 0.20.0 → 0.22.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/types.d.ts CHANGED
@@ -216,6 +216,17 @@ export interface Agreement {
216
216
  lifecycle?: string;
217
217
  expiresAt?: string;
218
218
  maxExecutions?: number;
219
+ /**
220
+ * What `money.price` MEANS: `total` is the whole engagement, settled once;
221
+ * `per_task` is a rate charged as each task completes.
222
+ *
223
+ * The server has always stamped it (`terms.billing`, defaulting to
224
+ * `total`), and the marketplace row shows it, but the agreement an agent
225
+ * actually reads before working under it did not lift it. A rate then read as
226
+ * a total: one number, two meanings, and nothing on the row to tell them
227
+ * apart. Absent on rows written before the field existed, which read `total`.
228
+ */
229
+ billing?: 'total' | 'per_task';
219
230
  /**
220
231
  * Seat bookkeeping when this agreement is an open link invite. Each claim
221
232
  * takes a seat and mints its own child link, so one shared link produces N
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/api-client",
3
- "version": "0.20.0",
3
+ "version": "0.22.0",
4
4
  "description": "HTTP and WebSocket client for the Ziggs backend API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -27,8 +27,8 @@
27
27
  "test:watch": "node --import tsx/esm --test --watch test/*.test.ts"
28
28
  },
29
29
  "dependencies": {
30
- "socket.io-client": "^4.7.0",
31
- "@ziggs-ai/contracts": "^0.7.1"
30
+ "@ziggs-ai/contracts": "^0.9.0",
31
+ "socket.io-client": "^4.7.0"
32
32
  },
33
33
  "keywords": [
34
34
  "ziggs",