@ziggs-ai/contracts 0.14.0 → 0.16.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.
|
@@ -22,6 +22,7 @@ export type AgreementTerms = {
|
|
|
22
22
|
wakeCeiling?: number | null;
|
|
23
23
|
conversationAllowance?: number | null;
|
|
24
24
|
conversationAllowanceScope?: "direct" | "subtree";
|
|
25
|
+
conversationAllowancePeriod?: "total" | "month";
|
|
25
26
|
interactionMode?: "messages" | "tasks" | "both";
|
|
26
27
|
};
|
|
27
28
|
export type AgreementHeld = {
|
|
@@ -108,6 +109,8 @@ export type AgreementRead = {
|
|
|
108
109
|
kind: string;
|
|
109
110
|
id: string;
|
|
110
111
|
};
|
|
112
|
+
access?: "read" | "write";
|
|
113
|
+
temporal?: "from-now" | "from-start";
|
|
111
114
|
durationHours?: number;
|
|
112
115
|
reason?: string;
|
|
113
116
|
expiresAt?: string | null;
|
package/dist/inbox.d.ts
CHANGED
|
@@ -66,6 +66,8 @@ export interface DecisionRef {
|
|
|
66
66
|
* than leaving the reader to assume it.
|
|
67
67
|
*/
|
|
68
68
|
export interface AccessAsk {
|
|
69
|
+
/** A reply grant includes reading and writing in this one conversation. */
|
|
70
|
+
permission?: 'read' | 'reply';
|
|
69
71
|
/** The one thing. `name` is absent when nothing readable resolves. */
|
|
70
72
|
scope: {
|
|
71
73
|
kind: string;
|
|
@@ -158,12 +160,12 @@ export interface InboxDeliveryRef {
|
|
|
158
160
|
* a grant. The two can disagree — a grant expires, a room is left, admission
|
|
159
161
|
* never minted one — and before this the protocol stamped the row as the
|
|
160
162
|
* reader's work and pre-filled a read that refused. A row carrying this is
|
|
161
|
-
* reported with
|
|
163
|
+
* reported with its own assignment cleared and `needsHuman: true`: it is not the
|
|
162
164
|
* agent's to handle, it does not block their ack, and it is not planned as a
|
|
163
165
|
* read. `remedy` says in one line what would put it in reach.
|
|
164
166
|
*/
|
|
165
167
|
outOfReach?: {
|
|
166
|
-
scopeKind: 'chat' | 'agreement' | 'task';
|
|
168
|
+
scopeKind: 'chat' | 'agreement' | 'task' | 'artifact';
|
|
167
169
|
scopeId: string;
|
|
168
170
|
remedy: string;
|
|
169
171
|
} | null;
|
package/package.json
CHANGED