@ziggs-ai/contracts 0.17.0 → 0.18.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.
@@ -57,6 +57,11 @@ export type AgreementApproval = {
57
57
  respondedAt: string | null;
58
58
  respondedBy?: string | null;
59
59
  };
60
+ export type AgreementApprovalAction = {
61
+ state: "available" | "needs_decision" | "unavailable";
62
+ partyId?: string;
63
+ explanation: string;
64
+ };
60
65
  export type AgreementUserReport = {
61
66
  userId: string;
62
67
  message: string;
@@ -94,6 +99,7 @@ export type AgreementRead = {
94
99
  userOutcomeSatisfaction: "positive" | "negative" | null;
95
100
  approvals: Array<AgreementApproval>;
96
101
  pendingApprovalPartyId?: string | null;
102
+ approvalAction?: AgreementApprovalAction;
97
103
  userReports: Array<AgreementUserReport>;
98
104
  activationFailure: AgreementActivationFailure | null;
99
105
  providerPinned: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/contracts",
3
- "version": "0.17.0",
3
+ "version": "0.18.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",