@brightbeamai/chap-coordinator 0.2.8
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/LICENSE +201 -0
- package/README.md +271 -0
- package/dist/api-C3nkEk-B.d.cts +260 -0
- package/dist/api-CmSvlIqO.d.ts +260 -0
- package/dist/api.cjs +125 -0
- package/dist/api.cjs.map +1 -0
- package/dist/api.d.cts +4 -0
- package/dist/api.d.ts +4 -0
- package/dist/api.js +98 -0
- package/dist/api.js.map +1 -0
- package/dist/index.cjs +2804 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +175 -0
- package/dist/index.d.ts +175 -0
- package/dist/index.js +2762 -0
- package/dist/index.js.map +1 -0
- package/dist/jsonrpc.cjs +103 -0
- package/dist/jsonrpc.cjs.map +1 -0
- package/dist/jsonrpc.d.cts +65 -0
- package/dist/jsonrpc.d.ts +65 -0
- package/dist/jsonrpc.js +76 -0
- package/dist/jsonrpc.js.map +1 -0
- package/dist/methods.cjs +19 -0
- package/dist/methods.cjs.map +1 -0
- package/dist/methods.d.cts +455 -0
- package/dist/methods.d.ts +455 -0
- package/dist/methods.js +1 -0
- package/dist/methods.js.map +1 -0
- package/dist/patch.cjs +277 -0
- package/dist/patch.cjs.map +1 -0
- package/dist/patch.d.cts +29 -0
- package/dist/patch.d.ts +29 -0
- package/dist/patch.js +250 -0
- package/dist/patch.js.map +1 -0
- package/dist/storage/sqlite.cjs +94 -0
- package/dist/storage/sqlite.cjs.map +1 -0
- package/dist/storage/sqlite.d.cts +67 -0
- package/dist/storage/sqlite.d.ts +67 -0
- package/dist/storage/sqlite.js +76 -0
- package/dist/storage/sqlite.js.map +1 -0
- package/dist/storage/store.cjs +45 -0
- package/dist/storage/store.cjs.map +1 -0
- package/dist/storage/store.d.cts +53 -0
- package/dist/storage/store.d.ts +53 -0
- package/dist/storage/store.js +20 -0
- package/dist/storage/store.js.map +1 -0
- package/dist/types.cjs +34 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +287 -0
- package/dist/types.d.ts +287 -0
- package/dist/types.js +9 -0
- package/dist/types.js.map +1 -0
- package/package.json +52 -0
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
import { WorkspaceId, Workspace, ParticipantUri, TaskId, JsonPatchOp, ArtefactId } from './types.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Typed method definitions.
|
|
5
|
+
*
|
|
6
|
+
* Every CHAP method that ships in either reference implementation
|
|
7
|
+
* gets a typed `Params` and `Result` shape here. The Coordinator's
|
|
8
|
+
* typed facade (`coord.workspace.create`, `coord.task.complete`, …)
|
|
9
|
+
* uses these types so callers get autocomplete and compile-time
|
|
10
|
+
* checking without having to remember field names.
|
|
11
|
+
*
|
|
12
|
+
* These types are hand-maintained against the canonical JSON Schemas
|
|
13
|
+
* under `schemas/`. A future revision will generate this file from
|
|
14
|
+
* the schemas automatically; for now the source of truth remains
|
|
15
|
+
* the running tests under `tests/`.
|
|
16
|
+
*
|
|
17
|
+
* Scope: 39 method handlers shipped by both v0.2 reference
|
|
18
|
+
* implementations (Core + every shipped profile). Spec-only methods
|
|
19
|
+
* are excluded - they would mislead callers into thinking the local
|
|
20
|
+
* Coordinator can dispatch them.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
interface WorkspaceParam {
|
|
24
|
+
workspace: WorkspaceId;
|
|
25
|
+
}
|
|
26
|
+
interface ActorParam {
|
|
27
|
+
from: ParticipantUri;
|
|
28
|
+
}
|
|
29
|
+
interface TaskParam {
|
|
30
|
+
task_id: TaskId;
|
|
31
|
+
}
|
|
32
|
+
interface OkResult {
|
|
33
|
+
ok: true;
|
|
34
|
+
}
|
|
35
|
+
interface WorkspaceCreateParams extends Partial<WorkspaceParam> {
|
|
36
|
+
profiles?: string[];
|
|
37
|
+
routing_policy_uri?: string;
|
|
38
|
+
mode?: "shadow" | "trial" | "production";
|
|
39
|
+
mode_ceiling?: "shadow" | "trial" | "production";
|
|
40
|
+
}
|
|
41
|
+
interface WorkspaceCreateResult {
|
|
42
|
+
workspace: WorkspaceId;
|
|
43
|
+
}
|
|
44
|
+
interface WorkspaceDescribeParams extends WorkspaceParam {
|
|
45
|
+
}
|
|
46
|
+
interface WorkspaceDescribeResult {
|
|
47
|
+
workspace: Workspace;
|
|
48
|
+
}
|
|
49
|
+
interface WorkspaceSetProfilesParams extends WorkspaceParam, ActorParam {
|
|
50
|
+
profiles: string[];
|
|
51
|
+
}
|
|
52
|
+
type WorkspaceSetProfilesResult = OkResult;
|
|
53
|
+
interface ParticipantJoinParams extends WorkspaceParam, ActorParam {
|
|
54
|
+
type: "human" | "agent" | "service" | "group" | "workspace";
|
|
55
|
+
role?: string;
|
|
56
|
+
scopes?: string[];
|
|
57
|
+
capabilities?: Record<string, unknown>;
|
|
58
|
+
oidc_token?: unknown;
|
|
59
|
+
vc?: unknown;
|
|
60
|
+
pubkey?: unknown;
|
|
61
|
+
}
|
|
62
|
+
type ParticipantJoinResult = OkResult;
|
|
63
|
+
interface ParticipantLeaveParams extends WorkspaceParam, ActorParam {
|
|
64
|
+
reason?: string;
|
|
65
|
+
}
|
|
66
|
+
type ParticipantLeaveResult = OkResult;
|
|
67
|
+
interface ParticipantRotateKeyParams extends WorkspaceParam, ActorParam {
|
|
68
|
+
pubkey: unknown;
|
|
69
|
+
reason?: string;
|
|
70
|
+
}
|
|
71
|
+
type ParticipantRotateKeyResult = OkResult;
|
|
72
|
+
interface ParticipantRevokeKeyParams extends WorkspaceParam, ActorParam {
|
|
73
|
+
kid: string;
|
|
74
|
+
reason?: string;
|
|
75
|
+
}
|
|
76
|
+
type ParticipantRevokeKeyResult = OkResult;
|
|
77
|
+
interface TaskCreateParams extends WorkspaceParam, ActorParam {
|
|
78
|
+
kind: string;
|
|
79
|
+
input: unknown;
|
|
80
|
+
assignee?: ParticipantUri;
|
|
81
|
+
to?: ParticipantUri;
|
|
82
|
+
routing_hints?: Record<string, unknown>;
|
|
83
|
+
deadline?: string;
|
|
84
|
+
}
|
|
85
|
+
interface TaskCreateResult {
|
|
86
|
+
task_id: TaskId;
|
|
87
|
+
}
|
|
88
|
+
interface TaskUpdateParams extends WorkspaceParam, ActorParam, TaskParam {
|
|
89
|
+
state?: string;
|
|
90
|
+
output?: unknown;
|
|
91
|
+
progress?: Record<string, unknown>;
|
|
92
|
+
}
|
|
93
|
+
type TaskUpdateResult = OkResult;
|
|
94
|
+
interface TaskCompleteParams extends WorkspaceParam, ActorParam, TaskParam {
|
|
95
|
+
output?: unknown;
|
|
96
|
+
confidence?: number | string;
|
|
97
|
+
}
|
|
98
|
+
type TaskCompleteResult = OkResult;
|
|
99
|
+
interface ReviewRequestParams extends WorkspaceParam, ActorParam, TaskParam {
|
|
100
|
+
artefact: unknown;
|
|
101
|
+
to: ParticipantUri | ParticipantUri[];
|
|
102
|
+
rule?: string;
|
|
103
|
+
deadline?: string;
|
|
104
|
+
}
|
|
105
|
+
interface ReviewRequestResult {
|
|
106
|
+
state: string;
|
|
107
|
+
review_id: TaskId;
|
|
108
|
+
}
|
|
109
|
+
interface DecideApproveParams extends WorkspaceParam, ActorParam, TaskParam {
|
|
110
|
+
rationale?: string;
|
|
111
|
+
}
|
|
112
|
+
type DecideApproveResult = OkResult;
|
|
113
|
+
interface DecideRejectParams extends WorkspaceParam, ActorParam, TaskParam {
|
|
114
|
+
rationale: string;
|
|
115
|
+
category?: string;
|
|
116
|
+
}
|
|
117
|
+
type DecideRejectResult = OkResult;
|
|
118
|
+
interface DecideOverrideParams extends WorkspaceParam, ActorParam, TaskParam {
|
|
119
|
+
diff: JsonPatchOp[];
|
|
120
|
+
rationale: string;
|
|
121
|
+
tags?: string[];
|
|
122
|
+
policy_refs?: string[];
|
|
123
|
+
logical_id?: string;
|
|
124
|
+
instance_id?: string;
|
|
125
|
+
intent_preserved?: boolean;
|
|
126
|
+
based_on_artefact?: unknown;
|
|
127
|
+
}
|
|
128
|
+
interface DecideOverrideResult {
|
|
129
|
+
state: "completed";
|
|
130
|
+
override_artefact_id: ArtefactId;
|
|
131
|
+
applied: unknown;
|
|
132
|
+
}
|
|
133
|
+
interface AbstainDeclareParams extends WorkspaceParam, ActorParam, TaskParam {
|
|
134
|
+
category: string;
|
|
135
|
+
rationale?: string;
|
|
136
|
+
}
|
|
137
|
+
type AbstainDeclareResult = OkResult;
|
|
138
|
+
interface EscalateRaiseParams extends WorkspaceParam, ActorParam, TaskParam {
|
|
139
|
+
to?: ParticipantUri;
|
|
140
|
+
rationale?: string;
|
|
141
|
+
}
|
|
142
|
+
interface EscalateRaiseResult {
|
|
143
|
+
ok: true;
|
|
144
|
+
to?: ParticipantUri;
|
|
145
|
+
}
|
|
146
|
+
interface WhisperAskParams extends WorkspaceParam, ActorParam, TaskParam {
|
|
147
|
+
to: ParticipantUri;
|
|
148
|
+
question: string;
|
|
149
|
+
options?: string[];
|
|
150
|
+
default_on_lapse?: string;
|
|
151
|
+
lapse_ms?: number;
|
|
152
|
+
}
|
|
153
|
+
interface WhisperAskResult {
|
|
154
|
+
whisper_id: string;
|
|
155
|
+
}
|
|
156
|
+
interface WhisperAnswerParams extends WorkspaceParam, ActorParam {
|
|
157
|
+
whisper_id: string;
|
|
158
|
+
answer: string;
|
|
159
|
+
}
|
|
160
|
+
type WhisperAnswerResult = OkResult;
|
|
161
|
+
interface DeliberateOpenParams extends WorkspaceParam, ActorParam, TaskParam {
|
|
162
|
+
rule: Record<string, unknown>;
|
|
163
|
+
proposition: unknown;
|
|
164
|
+
voters: ParticipantUri[];
|
|
165
|
+
}
|
|
166
|
+
interface DeliberateOpenResult {
|
|
167
|
+
deliberation_id: string;
|
|
168
|
+
}
|
|
169
|
+
interface DeliberateCommentParams extends WorkspaceParam, ActorParam {
|
|
170
|
+
deliberation_id: string;
|
|
171
|
+
text: string;
|
|
172
|
+
}
|
|
173
|
+
type DeliberateCommentResult = OkResult;
|
|
174
|
+
interface DeliberateVoteParams extends WorkspaceParam, ActorParam {
|
|
175
|
+
deliberation_id: string;
|
|
176
|
+
vote: "yea" | "nay" | "abstain";
|
|
177
|
+
weight?: number;
|
|
178
|
+
rationale?: string;
|
|
179
|
+
}
|
|
180
|
+
type DeliberateVoteResult = OkResult;
|
|
181
|
+
interface DeliberateCloseParams extends WorkspaceParam, ActorParam {
|
|
182
|
+
deliberation_id: string;
|
|
183
|
+
}
|
|
184
|
+
interface DeliberateCloseResult {
|
|
185
|
+
outcome: "approved" | "rejected" | "no_quorum";
|
|
186
|
+
}
|
|
187
|
+
interface HandoffProposeParams extends WorkspaceParam, ActorParam {
|
|
188
|
+
to: ParticipantUri;
|
|
189
|
+
task_ids: TaskId[];
|
|
190
|
+
summary: string;
|
|
191
|
+
active_constraints?: Record<string, unknown>;
|
|
192
|
+
}
|
|
193
|
+
interface HandoffProposeResult {
|
|
194
|
+
handoff_id: string;
|
|
195
|
+
}
|
|
196
|
+
interface HandoffAcceptParams extends WorkspaceParam, ActorParam {
|
|
197
|
+
handoff_id: string;
|
|
198
|
+
}
|
|
199
|
+
type HandoffAcceptResult = OkResult;
|
|
200
|
+
interface HandoffDeclineParams extends WorkspaceParam, ActorParam {
|
|
201
|
+
handoff_id: string;
|
|
202
|
+
reason?: string;
|
|
203
|
+
}
|
|
204
|
+
type HandoffDeclineResult = OkResult;
|
|
205
|
+
interface ControlPauseParams extends WorkspaceParam, ActorParam {
|
|
206
|
+
reason?: string;
|
|
207
|
+
}
|
|
208
|
+
type ControlPauseResult = OkResult;
|
|
209
|
+
interface ControlResumeParams extends WorkspaceParam, ActorParam {
|
|
210
|
+
reason?: string;
|
|
211
|
+
}
|
|
212
|
+
type ControlResumeResult = OkResult;
|
|
213
|
+
interface ControlCancelParams extends WorkspaceParam, ActorParam, TaskParam {
|
|
214
|
+
reason?: string;
|
|
215
|
+
}
|
|
216
|
+
type ControlCancelResult = OkResult;
|
|
217
|
+
interface ControlSupersedeParams extends WorkspaceParam, ActorParam, TaskParam {
|
|
218
|
+
replacement: unknown;
|
|
219
|
+
logical_id?: string;
|
|
220
|
+
intent_preserved?: boolean;
|
|
221
|
+
reason?: string;
|
|
222
|
+
}
|
|
223
|
+
interface ControlSupersedeResult {
|
|
224
|
+
artefact_id: ArtefactId;
|
|
225
|
+
}
|
|
226
|
+
interface ControlSnapshotParams extends WorkspaceParam, ActorParam {
|
|
227
|
+
label?: string;
|
|
228
|
+
}
|
|
229
|
+
interface ControlSnapshotResult {
|
|
230
|
+
snapshot_id: string;
|
|
231
|
+
}
|
|
232
|
+
interface ControlRollbackParams extends WorkspaceParam, ActorParam {
|
|
233
|
+
snapshot_id: string;
|
|
234
|
+
reason?: string;
|
|
235
|
+
}
|
|
236
|
+
type ControlRollbackResult = OkResult;
|
|
237
|
+
interface ControlSetModeCeilingParams extends WorkspaceParam, ActorParam {
|
|
238
|
+
ceiling: "shadow" | "trial" | "production";
|
|
239
|
+
}
|
|
240
|
+
type ControlSetModeCeilingResult = OkResult;
|
|
241
|
+
interface TaskRouteParams extends WorkspaceParam, ActorParam, TaskParam {
|
|
242
|
+
candidates: ParticipantUri[];
|
|
243
|
+
}
|
|
244
|
+
interface TaskRouteResult {
|
|
245
|
+
selected: ParticipantUri;
|
|
246
|
+
rationale: Record<string, unknown>;
|
|
247
|
+
}
|
|
248
|
+
interface ReviewDepthParams extends WorkspaceParam, ActorParam, TaskParam {
|
|
249
|
+
artefact?: unknown;
|
|
250
|
+
hints?: Record<string, unknown>;
|
|
251
|
+
}
|
|
252
|
+
interface ReviewDepthResult {
|
|
253
|
+
depth: "skip" | "spot_check" | "full" | "escalated";
|
|
254
|
+
sampling_probability?: number;
|
|
255
|
+
rationale: Record<string, unknown>;
|
|
256
|
+
}
|
|
257
|
+
interface EscalateAutoParams extends WorkspaceParam, ActorParam, TaskParam {
|
|
258
|
+
hints?: Record<string, unknown>;
|
|
259
|
+
}
|
|
260
|
+
interface EscalateAutoResult {
|
|
261
|
+
escalated: boolean;
|
|
262
|
+
to?: ParticipantUri;
|
|
263
|
+
triggered_rule?: Record<string, unknown>;
|
|
264
|
+
}
|
|
265
|
+
interface AuditReadParams extends WorkspaceParam {
|
|
266
|
+
from_seq?: number;
|
|
267
|
+
limit?: number;
|
|
268
|
+
}
|
|
269
|
+
interface AuditReadResult {
|
|
270
|
+
entries: unknown[];
|
|
271
|
+
}
|
|
272
|
+
interface AuditSubmitToScittParams extends WorkspaceParam, ActorParam {
|
|
273
|
+
seq: number;
|
|
274
|
+
statement?: Record<string, unknown>;
|
|
275
|
+
}
|
|
276
|
+
interface AuditSubmitToScittResult {
|
|
277
|
+
receipt: Record<string, unknown>;
|
|
278
|
+
}
|
|
279
|
+
interface AuditVerifyReceiptParams extends WorkspaceParam {
|
|
280
|
+
receipt: Record<string, unknown>;
|
|
281
|
+
}
|
|
282
|
+
interface AuditVerifyReceiptResult {
|
|
283
|
+
valid: boolean;
|
|
284
|
+
}
|
|
285
|
+
interface AuditVerifyChainParams extends WorkspaceParam {
|
|
286
|
+
from_seq?: number;
|
|
287
|
+
to_seq?: number;
|
|
288
|
+
}
|
|
289
|
+
interface AuditVerifyChainResult {
|
|
290
|
+
valid: boolean;
|
|
291
|
+
breaks?: number[];
|
|
292
|
+
}
|
|
293
|
+
interface MethodTable {
|
|
294
|
+
"workspace.create": {
|
|
295
|
+
params: WorkspaceCreateParams;
|
|
296
|
+
result: WorkspaceCreateResult;
|
|
297
|
+
};
|
|
298
|
+
"workspace.describe": {
|
|
299
|
+
params: WorkspaceDescribeParams;
|
|
300
|
+
result: WorkspaceDescribeResult;
|
|
301
|
+
};
|
|
302
|
+
"workspace.set_profiles": {
|
|
303
|
+
params: WorkspaceSetProfilesParams;
|
|
304
|
+
result: WorkspaceSetProfilesResult;
|
|
305
|
+
};
|
|
306
|
+
"participant.join": {
|
|
307
|
+
params: ParticipantJoinParams;
|
|
308
|
+
result: ParticipantJoinResult;
|
|
309
|
+
};
|
|
310
|
+
"participant.leave": {
|
|
311
|
+
params: ParticipantLeaveParams;
|
|
312
|
+
result: ParticipantLeaveResult;
|
|
313
|
+
};
|
|
314
|
+
"participant.rotate_key": {
|
|
315
|
+
params: ParticipantRotateKeyParams;
|
|
316
|
+
result: ParticipantRotateKeyResult;
|
|
317
|
+
};
|
|
318
|
+
"participant.revoke_key": {
|
|
319
|
+
params: ParticipantRevokeKeyParams;
|
|
320
|
+
result: ParticipantRevokeKeyResult;
|
|
321
|
+
};
|
|
322
|
+
"task.create": {
|
|
323
|
+
params: TaskCreateParams;
|
|
324
|
+
result: TaskCreateResult;
|
|
325
|
+
};
|
|
326
|
+
"task.update": {
|
|
327
|
+
params: TaskUpdateParams;
|
|
328
|
+
result: TaskUpdateResult;
|
|
329
|
+
};
|
|
330
|
+
"task.complete": {
|
|
331
|
+
params: TaskCompleteParams;
|
|
332
|
+
result: TaskCompleteResult;
|
|
333
|
+
};
|
|
334
|
+
"review.request": {
|
|
335
|
+
params: ReviewRequestParams;
|
|
336
|
+
result: ReviewRequestResult;
|
|
337
|
+
};
|
|
338
|
+
"decide.approve": {
|
|
339
|
+
params: DecideApproveParams;
|
|
340
|
+
result: DecideApproveResult;
|
|
341
|
+
};
|
|
342
|
+
"decide.reject": {
|
|
343
|
+
params: DecideRejectParams;
|
|
344
|
+
result: DecideRejectResult;
|
|
345
|
+
};
|
|
346
|
+
"decide.override": {
|
|
347
|
+
params: DecideOverrideParams;
|
|
348
|
+
result: DecideOverrideResult;
|
|
349
|
+
};
|
|
350
|
+
"abstain.declare": {
|
|
351
|
+
params: AbstainDeclareParams;
|
|
352
|
+
result: AbstainDeclareResult;
|
|
353
|
+
};
|
|
354
|
+
"escalate.raise": {
|
|
355
|
+
params: EscalateRaiseParams;
|
|
356
|
+
result: EscalateRaiseResult;
|
|
357
|
+
};
|
|
358
|
+
"whisper.ask": {
|
|
359
|
+
params: WhisperAskParams;
|
|
360
|
+
result: WhisperAskResult;
|
|
361
|
+
};
|
|
362
|
+
"whisper.answer": {
|
|
363
|
+
params: WhisperAnswerParams;
|
|
364
|
+
result: WhisperAnswerResult;
|
|
365
|
+
};
|
|
366
|
+
"deliberate.open": {
|
|
367
|
+
params: DeliberateOpenParams;
|
|
368
|
+
result: DeliberateOpenResult;
|
|
369
|
+
};
|
|
370
|
+
"deliberate.comment": {
|
|
371
|
+
params: DeliberateCommentParams;
|
|
372
|
+
result: DeliberateCommentResult;
|
|
373
|
+
};
|
|
374
|
+
"deliberate.vote": {
|
|
375
|
+
params: DeliberateVoteParams;
|
|
376
|
+
result: DeliberateVoteResult;
|
|
377
|
+
};
|
|
378
|
+
"deliberate.close": {
|
|
379
|
+
params: DeliberateCloseParams;
|
|
380
|
+
result: DeliberateCloseResult;
|
|
381
|
+
};
|
|
382
|
+
"handoff.propose": {
|
|
383
|
+
params: HandoffProposeParams;
|
|
384
|
+
result: HandoffProposeResult;
|
|
385
|
+
};
|
|
386
|
+
"handoff.accept": {
|
|
387
|
+
params: HandoffAcceptParams;
|
|
388
|
+
result: HandoffAcceptResult;
|
|
389
|
+
};
|
|
390
|
+
"handoff.decline": {
|
|
391
|
+
params: HandoffDeclineParams;
|
|
392
|
+
result: HandoffDeclineResult;
|
|
393
|
+
};
|
|
394
|
+
"control.pause": {
|
|
395
|
+
params: ControlPauseParams;
|
|
396
|
+
result: ControlPauseResult;
|
|
397
|
+
};
|
|
398
|
+
"control.resume": {
|
|
399
|
+
params: ControlResumeParams;
|
|
400
|
+
result: ControlResumeResult;
|
|
401
|
+
};
|
|
402
|
+
"control.cancel": {
|
|
403
|
+
params: ControlCancelParams;
|
|
404
|
+
result: ControlCancelResult;
|
|
405
|
+
};
|
|
406
|
+
"control.supersede": {
|
|
407
|
+
params: ControlSupersedeParams;
|
|
408
|
+
result: ControlSupersedeResult;
|
|
409
|
+
};
|
|
410
|
+
"control.snapshot": {
|
|
411
|
+
params: ControlSnapshotParams;
|
|
412
|
+
result: ControlSnapshotResult;
|
|
413
|
+
};
|
|
414
|
+
"control.rollback": {
|
|
415
|
+
params: ControlRollbackParams;
|
|
416
|
+
result: ControlRollbackResult;
|
|
417
|
+
};
|
|
418
|
+
"control.set_mode_ceiling": {
|
|
419
|
+
params: ControlSetModeCeilingParams;
|
|
420
|
+
result: ControlSetModeCeilingResult;
|
|
421
|
+
};
|
|
422
|
+
"task.route": {
|
|
423
|
+
params: TaskRouteParams;
|
|
424
|
+
result: TaskRouteResult;
|
|
425
|
+
};
|
|
426
|
+
"review.depth": {
|
|
427
|
+
params: ReviewDepthParams;
|
|
428
|
+
result: ReviewDepthResult;
|
|
429
|
+
};
|
|
430
|
+
"escalate.auto": {
|
|
431
|
+
params: EscalateAutoParams;
|
|
432
|
+
result: EscalateAutoResult;
|
|
433
|
+
};
|
|
434
|
+
"audit.read": {
|
|
435
|
+
params: AuditReadParams;
|
|
436
|
+
result: AuditReadResult;
|
|
437
|
+
};
|
|
438
|
+
"audit.submit_to_scitt": {
|
|
439
|
+
params: AuditSubmitToScittParams;
|
|
440
|
+
result: AuditSubmitToScittResult;
|
|
441
|
+
};
|
|
442
|
+
"audit.verify_receipt": {
|
|
443
|
+
params: AuditVerifyReceiptParams;
|
|
444
|
+
result: AuditVerifyReceiptResult;
|
|
445
|
+
};
|
|
446
|
+
"audit.verify_chain": {
|
|
447
|
+
params: AuditVerifyChainParams;
|
|
448
|
+
result: AuditVerifyChainResult;
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
type MethodName = keyof MethodTable;
|
|
452
|
+
type MethodParams<M extends MethodName> = MethodTable[M]["params"];
|
|
453
|
+
type MethodResult<M extends MethodName> = MethodTable[M]["result"];
|
|
454
|
+
|
|
455
|
+
export type { AbstainDeclareParams, AbstainDeclareResult, ActorParam, AuditReadParams, AuditReadResult, AuditSubmitToScittParams, AuditSubmitToScittResult, AuditVerifyChainParams, AuditVerifyChainResult, AuditVerifyReceiptParams, AuditVerifyReceiptResult, ControlCancelParams, ControlCancelResult, ControlPauseParams, ControlPauseResult, ControlResumeParams, ControlResumeResult, ControlRollbackParams, ControlRollbackResult, ControlSetModeCeilingParams, ControlSetModeCeilingResult, ControlSnapshotParams, ControlSnapshotResult, ControlSupersedeParams, ControlSupersedeResult, DecideApproveParams, DecideApproveResult, DecideOverrideParams, DecideOverrideResult, DecideRejectParams, DecideRejectResult, DeliberateCloseParams, DeliberateCloseResult, DeliberateCommentParams, DeliberateCommentResult, DeliberateOpenParams, DeliberateOpenResult, DeliberateVoteParams, DeliberateVoteResult, EscalateAutoParams, EscalateAutoResult, EscalateRaiseParams, EscalateRaiseResult, HandoffAcceptParams, HandoffAcceptResult, HandoffDeclineParams, HandoffDeclineResult, HandoffProposeParams, HandoffProposeResult, MethodName, MethodParams, MethodResult, MethodTable, OkResult, ParticipantJoinParams, ParticipantJoinResult, ParticipantLeaveParams, ParticipantLeaveResult, ParticipantRevokeKeyParams, ParticipantRevokeKeyResult, ParticipantRotateKeyParams, ParticipantRotateKeyResult, ReviewDepthParams, ReviewDepthResult, ReviewRequestParams, ReviewRequestResult, TaskCompleteParams, TaskCompleteResult, TaskCreateParams, TaskCreateResult, TaskParam, TaskRouteParams, TaskRouteResult, TaskUpdateParams, TaskUpdateResult, WhisperAnswerParams, WhisperAnswerResult, WhisperAskParams, WhisperAskResult, WorkspaceCreateParams, WorkspaceCreateResult, WorkspaceDescribeParams, WorkspaceDescribeResult, WorkspaceParam, WorkspaceSetProfilesParams, WorkspaceSetProfilesResult };
|
package/dist/methods.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|