@ziggs-ai/contracts 0.33.0 → 0.33.1
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/execution.d.ts +9 -0
- package/dist/generated/agreements.d.ts +5 -0
- package/dist/inbox.d.ts +1 -0
- package/package.json +1 -1
package/dist/execution.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export interface WorkExecutionContext {
|
|
|
4
4
|
actorId: string;
|
|
5
5
|
principalId: string;
|
|
6
6
|
agreementId: string | null;
|
|
7
|
+
/** Task assignment isolates retained execution state, including recursive delegation. */
|
|
8
|
+
taskId?: string | null;
|
|
7
9
|
position: 'payer' | 'provider' | 'participant';
|
|
8
10
|
/** Delivery destination. Its readers constrain execution; it grants no authority. */
|
|
9
11
|
chatId: string | null;
|
|
@@ -25,7 +27,14 @@ export interface ContributionTarget {
|
|
|
25
27
|
kind: 'chat' | 'agreement';
|
|
26
28
|
id: string;
|
|
27
29
|
}
|
|
30
|
+
/** Authority over an input whose information may be released in one exact output. */
|
|
31
|
+
export interface ContributionSource {
|
|
32
|
+
kind: 'artifact' | 'agreement' | 'chat' | 'task' | 'connection-grant';
|
|
33
|
+
id: string;
|
|
34
|
+
}
|
|
28
35
|
export interface ContextContribution {
|
|
36
|
+
/** Absent for the output owner's consent. Does not grant access to this source. */
|
|
37
|
+
releaseSource?: ContributionSource;
|
|
29
38
|
target: ContributionTarget;
|
|
30
39
|
/** Frozen, expanded audience approved by the owner; joining does not expand it. */
|
|
31
40
|
audienceIds: string[];
|
|
@@ -113,6 +113,11 @@ export type AgreementRead = {
|
|
|
113
113
|
grantRequest?: {
|
|
114
114
|
primitive?: "context";
|
|
115
115
|
kind?: "access-request" | "author-share";
|
|
116
|
+
contributionTo?: {
|
|
117
|
+
kind: "chat" | "agreement";
|
|
118
|
+
id: string;
|
|
119
|
+
};
|
|
120
|
+
releaseSourceKind?: "artifact" | "agreement" | "chat" | "task" | "connection-grant";
|
|
116
121
|
holderId?: string;
|
|
117
122
|
holders?: Array<{
|
|
118
123
|
kind: "agent" | "user" | "org";
|
package/dist/inbox.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export interface DecisionRef {
|
|
|
65
65
|
export interface AccessAsk {
|
|
66
66
|
/** Explicit use consent, in addition to the readers' access. */
|
|
67
67
|
contributionTo?: import('./execution').ContributionTarget;
|
|
68
|
+
releaseSourceKind?: import('./execution').ContributionSource['kind'];
|
|
68
69
|
/**
|
|
69
70
|
* A reply grant includes reading and writing in this one conversation.
|
|
70
71
|
* `list` (ZIG-2170) is asked of a person scope: which rooms they are in,
|
package/package.json
CHANGED