@ziggs-ai/contracts 0.22.0 → 0.23.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/inbox.d.ts CHANGED
@@ -29,7 +29,7 @@ export interface DecideVia {
29
29
  */
30
30
  export interface DecisionRef {
31
31
  kind: DecisionKind;
32
- /** agreementId, or approvalId for a spend. Unique within a kind. */
32
+ /** agreementId, or admissionId for a room admission. Unique within a kind. */
33
33
  id: string;
34
34
  /** What it is, in the counterparty's own words where there are any. */
35
35
  title: string;
@@ -37,12 +37,9 @@ export interface DecisionRef {
37
37
  requestedByDisplayName: string | null;
38
38
  requestedByOrgName: string | null;
39
39
  requestedAt: string | null;
40
- /**
41
- * Money at stake in cents: an agreement's price, or the amount a paused
42
- * transfer would move. Null when nothing is owed.
43
- */
40
+ /** Money at stake in cents: an agreement's price. Null when nothing is owed. */
44
41
  amountCents: number | null;
45
- /** Present where the object expires on its own, e.g. a spend approval. */
42
+ /** Present where the object expires on its own, e.g. a proposal with an expiry. */
46
43
  expiresAt: string | null;
47
44
  /** Signed-in review page. Following it does not approve or mark anything seen. */
48
45
  reviewUrl?: string;
@@ -38,7 +38,7 @@ export type ResourceKind = (typeof RESOURCE_KINDS)[number];
38
38
  * names the card for an approval the chat rail has had since ZIG-426, which
39
39
  * was answerable all along and simply never reached this list.
40
40
  */
41
- export type DecisionKind = 'proposal' | 'connection_request' | 'spend_approval' | 'chat_admission';
41
+ export type DecisionKind = 'proposal' | 'connection_request' | 'chat_admission';
42
42
  /** Which mailbox a delivery copy lives in. */
43
43
  export type InboxPartyKind = 'human' | 'org';
44
44
  /** How a principal is party to an agreement. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/contracts",
3
- "version": "0.22.0",
3
+ "version": "0.23.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",