@ziggs-ai/contracts 0.34.0 → 0.42.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/README.md CHANGED
@@ -7,7 +7,7 @@ Types plus the closed vocabularies they are built from. No network, no
7
7
  environment reads, no dependencies, so any runtime can import it.
8
8
 
9
9
  ```ts
10
- import type { ChatListResponse, AttentionFeed } from '@ziggs-ai/contracts';
10
+ import type { PrincipalPresentation, AttentionFeed } from '@ziggs-ai/contracts';
11
11
  import { SERVER_EVENTS, isApiErrorBody } from '@ziggs-ai/contracts';
12
12
  ```
13
13
 
@@ -15,7 +15,8 @@ import { SERVER_EVENTS, isApiErrorBody } from '@ziggs-ai/contracts';
15
15
 
16
16
  | Module | Carries |
17
17
  | --- | --- |
18
- | `chat` | `GET /chats`, `GET /chats/:chatId/messages`, the message write paths |
18
+ | `chat` | Principal and persona presentation |
19
+ | `message-command` | Canonical message commands, reads, and requested answers |
19
20
  | `inbox` | Agent request triage, `GET /inbox/attention`, `POST /inbox/seen` |
20
21
  | `error` | the one error body every handler answers in |
21
22
  | `socket` | frame names and payloads, both directions |
@@ -0,0 +1,63 @@
1
+ /** An exact domain identity. It grants no authority and owns no duplicate lifecycle. */
2
+ export type ActionRef = {
3
+ kind: 'task' | 'agreement' | 'permission-request' | 'request';
4
+ id: string;
5
+ } | {
6
+ kind: 'message';
7
+ id: string;
8
+ slot: 'answer';
9
+ requestId: string;
10
+ };
11
+ /** Message slots must remain distinct even when the same principal owns two. */
12
+ export declare function actionKey(action: ActionRef): string;
13
+ /** Canonical action identity for the Step 2/3 cutover. Current owner-only
14
+ * ActionRef consumers are inventoried; no runtime format fallback is provided.
15
+ * The slot belongs to its domain; a receipt, lease or attempt never identifies it. */
16
+ export type ActionSlotRef = {
17
+ kind: 'task';
18
+ id: string;
19
+ slot: 'process';
20
+ } | {
21
+ kind: 'task';
22
+ id: string;
23
+ slot: 'plan-approval';
24
+ revision: number;
25
+ principalId: string;
26
+ } | {
27
+ kind: 'message';
28
+ id: string;
29
+ slot: 'answer';
30
+ requestId: string;
31
+ } | {
32
+ kind: 'permission-request' | 'agreement';
33
+ id: string;
34
+ slot: 'decision';
35
+ decisionId: string;
36
+ principalId: string;
37
+ };
38
+ /** Stable across retries and executor replacement; intentionally excludes owner
39
+ * revision for processing, but identifies a specific proposed plan/decision. */
40
+ export declare function actionSlotKey(action: ActionSlotRef): string;
41
+ /** Readiness is a projection of the owner's state, not another lifecycle table. */
42
+ export interface ActionAvailability {
43
+ action: ActionSlotRef;
44
+ ownerRevision: string;
45
+ readiness: {
46
+ state: 'ready';
47
+ } | {
48
+ state: 'blocked';
49
+ reason: string;
50
+ } | {
51
+ state: 'terminal';
52
+ };
53
+ eligibleExecutorIds: string[];
54
+ concurrency: 'exclusive';
55
+ }
56
+ /** Specification for Step 3: never infer authority from a nullable agreementId. */
57
+ export type TaskAuthority = {
58
+ kind: 'personal';
59
+ ownerPrincipalId: string;
60
+ } | {
61
+ kind: 'agreement';
62
+ agreementId: string;
63
+ };
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.actionKey = actionKey;
4
+ exports.actionSlotKey = actionSlotKey;
5
+ /** Message slots must remain distinct even when the same principal owns two. */
6
+ function actionKey(action) {
7
+ return action.kind === 'message'
8
+ ? actionSlotKey(action)
9
+ : JSON.stringify([action.kind, action.id]);
10
+ }
11
+ /** Stable across retries and executor replacement; intentionally excludes owner
12
+ * revision for processing, but identifies a specific proposed plan/decision. */
13
+ function actionSlotKey(action) {
14
+ if (!action.id?.trim())
15
+ throw new Error('Action owner id is required');
16
+ switch (action.slot) {
17
+ case 'process':
18
+ if (action.kind !== 'task')
19
+ throw new Error('Processing belongs to Task');
20
+ return JSON.stringify([action.kind, action.id, action.slot]);
21
+ case 'plan-approval':
22
+ if (action.kind !== 'task' ||
23
+ !Number.isSafeInteger(action.revision) ||
24
+ action.revision < 1 ||
25
+ !action.principalId?.trim())
26
+ throw new Error('Exact plan revision and approver are required');
27
+ return JSON.stringify([
28
+ action.kind,
29
+ action.id,
30
+ action.slot,
31
+ action.revision,
32
+ action.principalId,
33
+ ]);
34
+ case 'answer':
35
+ if (action.kind !== 'message' || !action.requestId?.trim())
36
+ throw new Error('Exact answer request is required');
37
+ return JSON.stringify([
38
+ action.kind,
39
+ action.id,
40
+ action.slot,
41
+ action.requestId,
42
+ ]);
43
+ case 'decision':
44
+ if (!['permission-request', 'agreement'].includes(action.kind) ||
45
+ !action.decisionId?.trim() ||
46
+ !action.principalId?.trim())
47
+ throw new Error('Exact domain decision and principal are required');
48
+ return JSON.stringify([
49
+ action.kind,
50
+ action.id,
51
+ action.slot,
52
+ action.decisionId,
53
+ action.principalId,
54
+ ]);
55
+ default:
56
+ throw new Error('Unknown domain action slot');
57
+ }
58
+ }
package/dist/chat.d.ts CHANGED
@@ -1,11 +1,4 @@
1
- /**
2
- * Chat wire contracts: what `GET /chats`, `GET /chats/:chatId/messages` and
3
- * the message write paths carry.
4
- *
5
- * Every shape here is what the server actually sends. A client that needs less
6
- * narrows locally rather than redeclaring the shape.
7
- */
8
- import type { ChatAddressKind, GrantAccessKind, MessageSenderType, PartyRole } from './vocabulary';
1
+ /** Principal presentation contracts shared by work and messaging surfaces. */
9
2
  /** A persona's face, as any surface renders it. */
10
3
  export interface PersonaDisplay {
11
4
  id: string;
@@ -29,276 +22,3 @@ export interface PrincipalPresentation {
29
22
  type: 'user' | 'agent';
30
23
  };
31
24
  }
32
- /**
33
- * Why a principal appears on the derived chat roster.
34
- *
35
- * There is no `member` arm: taking part is `grant`. The other kind is an
36
- * overlay row that explains why someone is visible without putting them in the
37
- * room, so a client branching on it must not treat `agreement` as absence.
38
- */
39
- export type ChatRosterVia = {
40
- kind: 'agreement';
41
- /**
42
- * Present on authority-derived rows. Dropped on persona-masked
43
- * presentation so a masked member id cannot be correlated through the
44
- * agreement.
45
- */
46
- agreementId?: string;
47
- role: PartyRole;
48
- } | {
49
- kind: 'grant';
50
- };
51
- /** One row of the complete display roster for a room. */
52
- export interface ChatRosterRow {
53
- id: string;
54
- type: 'user' | 'agent' | 'service' | 'org';
55
- via: ChatRosterVia[];
56
- /**
57
- * What this holder's grant on the room lets them do, declared rather than
58
- * guessed. Absent on overlay rows (an agreement party or a service): those
59
- * are on the roster without holding anything, which is precisely the
60
- * difference a reader needs. `write` or `admit` means they take part;
61
- * `read` means they watch.
62
- */
63
- access?: GrantAccessKind;
64
- }
65
- /** One principal who takes part in the room. */
66
- export interface ChatParticipantRow {
67
- id: string;
68
- type: 'user' | 'agent' | 'org';
69
- via: Array<Extract<ChatRosterVia, {
70
- kind: 'grant';
71
- }>>;
72
- /** Always present here: a participant is a holder of `write` or stronger. */
73
- access?: GrantAccessKind;
74
- }
75
- /**
76
- * Flat projection of the participant list.
77
- *
78
- * An agent participates in its own name, so it appears as both ids: an agent's
79
- * owner is not automatically in the room with it.
80
- */
81
- export interface ChatMemberView {
82
- principalId: string;
83
- agentId: string | null;
84
- /**
85
- * Present when the room shows this member through a persona. The ids above
86
- * are then the exposed ones, not the underlying principal.
87
- */
88
- presentation?: PrincipalPresentation;
89
- }
90
- /** Max characters of a last-message snippet. */
91
- export declare const CHAT_SNIPPET_CAP = 280;
92
- /** Newest message in a room, enough to tell entries apart at a glance. */
93
- export interface ChatLastMessage {
94
- /** Sender id (user, agent, service, or system). */
95
- sender: string;
96
- /** ISO timestamp of the message. */
97
- at: string;
98
- /** Message text truncated to {@link CHAT_SNIPPET_CAP}. */
99
- snippet: string;
100
- }
101
- /** One room as an external read returns it. Never a raw stored document. */
102
- export interface ChatReadDto {
103
- chatId: string;
104
- /** Flat projection of `participantSummary`, for clients that read it. */
105
- members: ChatMemberView[];
106
- /**
107
- * Complete display roster derived from members, agreement links, grants,
108
- * spaces, and services. It is never an authorization input.
109
- */
110
- rosterSummary: ChatRosterRow[];
111
- /** Same canonical participant answer used by server-side delivery. */
112
- participantSummary: ChatParticipantRow[];
113
- /** Next grant-expiry transition for `participantSummary`, if any. */
114
- participantsRefreshAt: string | null;
115
- /**
116
- * What kind of name this room is reached by, when it has one. The kind only:
117
- * a `pair` key names both principals, and principal ids are what the persona
118
- * border masks.
119
- */
120
- addressKind: ChatAddressKind | null;
121
- /** Human-readable name so entries can be told apart at a glance. */
122
- name: string;
123
- /**
124
- * A name the room was given. Null when the room is named from who is in it.
125
- * When set, `name` is this title. Pair rooms and team channels stay null.
126
- */
127
- title: string | null;
128
- /** Recency for sorting and triage. Null when the chat has no messages. */
129
- updatedAt: string | null;
130
- /** Newest-message snippet. Absent when the chat has no messages. */
131
- lastMessage?: ChatLastMessage;
132
- /**
133
- * The room's first message, so a room named after its opening line can be
134
- * named before it is opened. Sent by the app's chat list, and absent from
135
- * reads that do not resolve it. Null when the room has no messages, or when
136
- * the reader's grant starts after it (a from-now grant never shows a later
137
- * message in its place).
138
- */
139
- openingMessage?: ChatLastMessage | null;
140
- /**
141
- * Unread messages for the reader, capped at 99 so a badge can render "99+".
142
- * Attached by the list read; absent on reads that do not resolve it.
143
- */
144
- unreadCount?: number;
145
- /**
146
- * Shared files the files panel would list for this reader. Zero is a room
147
- * with nothing shared. On the chat list only.
148
- */
149
- sharedFileCount?: number;
150
- /** Newest link among those files. Null when there are none. */
151
- sharedFilesChangedAt?: string | null;
152
- /**
153
- * Newest join or leave on this room. Null when nobody has held it.
154
- * The agreement's own `updatedAt` is the work side of the same comparison.
155
- */
156
- peopleChangedAt?: string | null;
157
- /** When this reader last opened each header panel. Null until they do. */
158
- filesOpenedAt?: string | null;
159
- peopleOpenedAt?: string | null;
160
- workOpenedAt?: string | null;
161
- }
162
- /**
163
- * The sender of a message as the wire carries it.
164
- *
165
- * The own-side fields are deliberately absent across an org boundary — read
166
- * them as "not disclosed here", never as "no value".
167
- */
168
- export interface MessageSenderWire {
169
- id: string;
170
- type: MessageSenderType;
171
- /** Own-side/audit only. Deliberately absent across the org boundary. */
172
- underAgreementId?: string | null;
173
- /** Own-side/audit only. Deliberately absent across the org boundary. */
174
- presentedAs?: string | null;
175
- /** Own-side/audit only. Deliberately absent across the org boundary. */
176
- actedBy?: string | null;
177
- persona?: {
178
- id: string;
179
- name: string;
180
- image: string | null;
181
- } | null;
182
- /** Canonical presentation contract. Subject/actor exist only own-side. */
183
- presentation?: {
184
- ref: string;
185
- personaId: string;
186
- revision: number;
187
- name: string;
188
- image: string | null;
189
- badge: 'persona';
190
- mode: 'persona' | 'chain';
191
- /**
192
- * Own-side only. `organization` is a company face; a client shows `via`
193
- * for that face alone. Absent on older rows and across an org boundary.
194
- */
195
- contextKind?: 'direct' | 'agreement' | 'organization';
196
- subject?: {
197
- id: string;
198
- type: MessageSenderType;
199
- };
200
- actor?: {
201
- id: string;
202
- type: string;
203
- mode: string;
204
- };
205
- } | null;
206
- }
207
- /**
208
- * Structured payload written alongside a message (task snapshots, service
209
- * results, agreement-lifecycle stamps). Stored content, passed through as-is.
210
- */
211
- export interface MessageServicePayload {
212
- /** Governing service agreement resolved by server admission. */
213
- conversationAgreementId?: string;
214
- task?: unknown;
215
- id?: string;
216
- name?: string;
217
- operation?: string;
218
- result?: unknown;
219
- error?: string;
220
- /**
221
- * Agreement-lifecycle notifications persist the acting agreement here so a
222
- * reader can resolve the lifecycle transition without a second read.
223
- */
224
- agreement?: unknown;
225
- agreementId?: string;
226
- }
227
- /**
228
- * One message as the wire carries it.
229
- *
230
- * Timestamps are ISO strings here. A server-side read model may hold them as
231
- * dates; nothing outside the server ever sees that.
232
- */
233
- /**
234
- * ZIG-2182 — the channel that carried a message, written only by the rail
235
- * that carried it. Absent means it was written in Ziggs.
236
- */
237
- export type MessageVia = 'email' | 'slack';
238
- export interface MessageWireDto {
239
- messageId: string | null;
240
- chatId: string;
241
- text: string;
242
- sender: MessageSenderWire;
243
- receiver: {
244
- id: string;
245
- type: MessageSenderType;
246
- };
247
- entryType: string;
248
- contentType: string;
249
- timestamp: string;
250
- sentTimestamp?: string;
251
- service?: MessageServicePayload;
252
- /** ZIG-2182 — present only when a rail carried it in or out. */
253
- via?: MessageVia;
254
- /**
255
- * ZIG-2181 — written in Ziggs to a person not on Ziggs yet, and no channel
256
- * could carry it to them.
257
- */
258
- notDelivered?: true;
259
- }
260
- /**
261
- * `GET /chats?withMessages=true`.
262
- *
263
- * `messages` is flat across rooms — the last page per room — and `hasMore` and
264
- * `nextCursor` are keyed by chat id. Without the flag the response still has
265
- * this shape, with `messages: []` and empty maps.
266
- */
267
- export interface ChatListResponse {
268
- chats: ChatReadDto[];
269
- messages: MessageWireDto[];
270
- hasMore: Record<string, boolean>;
271
- /** Where a backward read continues from, per chat. */
272
- nextCursor: Record<string, string | null>;
273
- }
274
- /**
275
- * `GET /chats/:chatId/messages`.
276
- *
277
- * One backward page, oldest-to-newest within the page; `nextCursor` reads
278
- * older.
279
- */
280
- export interface MessagesPage {
281
- messages: MessageWireDto[];
282
- hasMore: boolean;
283
- nextCursor: string | null;
284
- }
285
- /** `POST /chats/:chatId/messages`. */
286
- export interface SendChatMessageBody {
287
- /**
288
- * Client-generated idempotency key. The server dedupes on
289
- * `(chatId, messageId)`, so a retry that re-sends the same key collapses to
290
- * a single stored row.
291
- */
292
- messageId: string;
293
- text: string;
294
- entryType: 'message';
295
- contentType: 'text';
296
- }
297
- /**
298
- * `POST /chats/:chatId/read` — advance the person's read watermark.
299
- *
300
- * An empty body marks to the latest message.
301
- */
302
- export interface MarkChatReadBody {
303
- messageId?: string;
304
- }
package/dist/chat.js CHANGED
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
+ /** Principal presentation contracts shared by work and messaging surfaces. */
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CHAT_SNIPPET_CAP = void 0;
4
- /** Max characters of a last-message snippet. */
5
- exports.CHAT_SNIPPET_CAP = 280;
@@ -1,21 +1,23 @@
1
1
  /** Server-issued work boundary. This reference never grants authority. */
2
2
  export interface WorkExecutionContext {
3
3
  contextId: string;
4
+ /** Fenced attempt, distinct from retained context identity. */
5
+ attemptId?: string;
6
+ /** Direct communication is isolated by its addressed action, independently of the view. */
7
+ action?: import('./actions').ActionRef;
4
8
  actorId: string;
5
9
  principalId: string;
6
10
  agreementId: string | null;
7
11
  /** Task assignment isolates retained execution state, including recursive delegation. */
8
12
  taskId?: string | null;
9
13
  position: 'payer' | 'provider' | 'participant';
10
- /** Delivery destination. Its readers constrain execution; it grants no authority. */
11
- chatId: string | null;
12
14
  /** Explicit readers of this work, expanded by the server from its parties. */
13
15
  audienceIds: string[];
14
16
  audienceRevision: string;
15
17
  }
16
- /** Assigned mail is handled by responsibility id, never by the underlying resource. */
18
+ /** Acknowledgment settles exact receipts, never the underlying task or other domain action. */
17
19
  export declare function deliveryHandlingId(row: {
18
- responsibilityId?: string | null;
20
+ receiptId?: string | null;
19
21
  }): string;
20
22
  /** A pending assignment whose execution cannot currently be prepared. */
21
23
  export interface ExecutionBlock {
@@ -24,12 +26,12 @@ export interface ExecutionBlock {
24
26
  }
25
27
  /** Where an owner consents to use a contributed artifact. This is not read authority. */
26
28
  export interface ContributionTarget {
27
- kind: 'chat' | 'agreement';
29
+ kind: 'message' | 'agreement';
28
30
  id: string;
29
31
  }
30
32
  /** Authority over an input whose information may be released in one exact output. */
31
33
  export interface ContributionSource {
32
- kind: 'artifact' | 'agreement' | 'chat' | 'task' | 'connection-grant';
34
+ kind: 'message' | 'artifact' | 'agreement' | 'task' | 'connection-grant';
33
35
  id: string;
34
36
  }
35
37
  export interface ContextContribution {
@@ -53,14 +55,65 @@ export interface WorkPositionView {
53
55
  role: WorkExecutionContext['position'] | null;
54
56
  executionContextId: string | null;
55
57
  destination: {
56
- kind: 'chat';
58
+ kind: 'message' | 'agreement' | 'task';
57
59
  id: string;
58
60
  } | null;
61
+ /** The selected assignment, never inferred from a room or another open surface. */
62
+ assignment: {
63
+ taskId: string | null;
64
+ executionContextId: string | null;
65
+ };
66
+ /** Describes the checks on inputs, not an entitlement to every linked input. */
67
+ contributions: {
68
+ target: ContributionTarget | null;
69
+ policy: 'read_and_consent';
70
+ };
59
71
  audience: {
60
72
  state: 'resolved';
61
73
  refs: string[];
74
+ /** The same readers with the name each wears for this viewer. */
75
+ readers: ExecutionBoundaryParty[];
62
76
  unnamedReaders: number;
63
77
  } | {
64
78
  state: 'not_evaluated';
65
79
  };
66
80
  }
81
+ /** A person, agent or workspace as this viewer sees it. Presentation only. */
82
+ export interface ExecutionBoundaryParty {
83
+ ref: string;
84
+ name: string | null;
85
+ kind: 'person' | 'agent' | 'workspace' | null;
86
+ }
87
+ /** One input a run used. Ids and labels appear only when this viewer can read it now. */
88
+ export interface ExecutionBoundaryRead {
89
+ kind: 'message' | 'agreement' | 'task' | 'artifact' | 'connection';
90
+ id: string | null;
91
+ label: string | null;
92
+ }
93
+ /**
94
+ * A person's view of an agent run's boundary: who it worked for, who may read
95
+ * what it produces, and what it read. `origin` is frozen when an output was
96
+ * written; `run` is the retained run now. Grants nothing and authorizes nothing.
97
+ */
98
+ export interface ExecutionBoundaryView {
99
+ executionContextId: string;
100
+ source: 'origin' | 'run';
101
+ actor: ExecutionBoundaryParty | null;
102
+ accountable: ExecutionBoundaryParty | null;
103
+ /** Null unless this viewer can read the selected work. */
104
+ agreementId: string | null;
105
+ taskId: string | null;
106
+ audience: {
107
+ readers: ExecutionBoundaryParty[];
108
+ unnamedReaders: number;
109
+ };
110
+ reads: ExecutionBoundaryRead[];
111
+ /** Origin: what let the run read its inputs still holds. Run: the run is still valid. */
112
+ current: boolean;
113
+ /** Run only: an attempt is in progress now. */
114
+ running: boolean | null;
115
+ }
116
+ /** Null when a person wrote the output directly, outside any agent run. */
117
+ export interface OutputOriginView {
118
+ origin: ExecutionBoundaryView | null;
119
+ }
package/dist/execution.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deliveryHandlingId = deliveryHandlingId;
4
- /** Assigned mail is handled by responsibility id, never by the underlying resource. */
4
+ /** Acknowledgment settles exact receipts, never the underlying task or other domain action. */
5
5
  function deliveryHandlingId(row) {
6
- if (!row.responsibilityId)
7
- throw new Error('Assigned delivery is missing its responsibilityId');
8
- return row.responsibilityId;
6
+ if (!row.receiptId)
7
+ throw new Error('Assigned delivery is missing its receiptId');
8
+ return row.receiptId;
9
9
  }
@@ -114,10 +114,10 @@ export type AgreementRead = {
114
114
  primitive?: "context";
115
115
  kind?: "access-request" | "author-share";
116
116
  contributionTo?: {
117
- kind: "chat" | "agreement";
117
+ kind: "message" | "agreement";
118
118
  id: string;
119
119
  };
120
- releaseSourceKind?: "artifact" | "agreement" | "chat" | "task" | "connection-grant";
120
+ releaseSourceKind?: "artifact" | "agreement" | "message" | "task" | "connection-grant";
121
121
  holderId?: string;
122
122
  holders?: Array<{
123
123
  kind: "agent" | "user" | "org";
@@ -17,7 +17,6 @@ export type ArtifactSender = {
17
17
  presentation?: ArtifactSenderPresentation;
18
18
  };
19
19
  export type ArtifactLinks = {
20
- chatIds: Array<string>;
21
20
  agreementIds: Array<string>;
22
21
  taskIds: Array<string>;
23
22
  };
@@ -32,11 +31,11 @@ export type ReachableArtifactEntry = {
32
31
  sender: ArtifactSender;
33
32
  contentType: string;
34
33
  name?: string | null;
35
- visibility: "chat" | "agent-private";
34
+ visibility: "address" | "agent-private";
36
35
  timestamp: string;
37
36
  service?: unknown;
38
37
  linkRole?: "input" | "output";
39
- reach: Array<"authored" | "chat" | "agreement" | "task" | "grant">;
38
+ reach: Array<"authored" | "agreement" | "task" | "grant">;
40
39
  links: ArtifactLinks;
41
40
  filename?: string | null;
42
41
  mime?: string | null;
@@ -3,7 +3,7 @@
3
3
  * Family: grants. Regenerate: backend 'pnpm docs:generate' then this script.
4
4
  */
5
5
  export type GrantScopeView = {
6
- kind: "chat" | "agreement" | "org" | "artifact" | "task" | "person" | "connection" | "wallet" | "consent" | "inbox";
6
+ kind: "message" | "address" | "agreement" | "org" | "artifact" | "task" | "person" | "connection" | "wallet" | "consent" | "inbox";
7
7
  id: string;
8
8
  label?: string;
9
9
  };
@@ -12,7 +12,7 @@ export type GrantCaveatView = {
12
12
  value: unknown;
13
13
  };
14
14
  export type GrantBasis = {
15
- kind: "creation" | "publication" | "membership" | "acceptance" | "agreement" | "vouch";
15
+ kind: "creation" | "publication" | "membership" | "acceptance" | "agreement" | "vouch" | "owner";
16
16
  id: string | null;
17
17
  };
18
18
  export type GrantView = {