@osstack/protocol 0.15.0 → 0.22.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.
Files changed (73) hide show
  1. package/dist/attention.d.ts +863 -0
  2. package/dist/attention.d.ts.map +1 -0
  3. package/dist/attention.js +112 -0
  4. package/dist/attention.js.map +1 -0
  5. package/dist/autonomy.d.ts +14 -14
  6. package/dist/delivery-contract.d.ts +734 -0
  7. package/dist/delivery-contract.d.ts.map +1 -0
  8. package/dist/delivery-contract.js +111 -0
  9. package/dist/delivery-contract.js.map +1 -0
  10. package/dist/envelope.d.ts +42 -42
  11. package/dist/event.d.ts +4 -4
  12. package/dist/follow-up-delivery.d.ts +1831 -0
  13. package/dist/follow-up-delivery.d.ts.map +1 -0
  14. package/dist/follow-up-delivery.js +174 -0
  15. package/dist/follow-up-delivery.js.map +1 -0
  16. package/dist/follow-up.d.ts +1100 -0
  17. package/dist/follow-up.d.ts.map +1 -0
  18. package/dist/follow-up.js +28 -0
  19. package/dist/follow-up.js.map +1 -0
  20. package/dist/generate.d.ts +1 -0
  21. package/dist/generate.d.ts.map +1 -1
  22. package/dist/generate.js +61 -1
  23. package/dist/generate.js.map +1 -1
  24. package/dist/graph-checkpoint.d.ts +409 -0
  25. package/dist/graph-checkpoint.d.ts.map +1 -0
  26. package/dist/graph-checkpoint.js +91 -0
  27. package/dist/graph-checkpoint.js.map +1 -0
  28. package/dist/graph-worker.d.ts +1663 -0
  29. package/dist/graph-worker.d.ts.map +1 -0
  30. package/dist/graph-worker.js +152 -0
  31. package/dist/graph-worker.js.map +1 -0
  32. package/dist/graph.d.ts +13169 -0
  33. package/dist/graph.d.ts.map +1 -0
  34. package/dist/graph.js +427 -0
  35. package/dist/graph.js.map +1 -0
  36. package/dist/index.d.ts +11 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +11 -2
  39. package/dist/index.js.map +1 -1
  40. package/dist/policy.d.ts +10 -10
  41. package/dist/run.d.ts +4 -4
  42. package/dist/session-continuation-grant.d.ts +414 -0
  43. package/dist/session-continuation-grant.d.ts.map +1 -0
  44. package/dist/session-continuation-grant.js +59 -0
  45. package/dist/session-continuation-grant.js.map +1 -0
  46. package/dist/session-continuation.d.ts +129 -0
  47. package/dist/session-continuation.d.ts.map +1 -0
  48. package/dist/session-continuation.js +30 -0
  49. package/dist/session-continuation.js.map +1 -0
  50. package/dist/task.d.ts +2 -2
  51. package/package.json +11 -10
  52. package/schemas/attention-inbox.schema.json +271 -0
  53. package/schemas/attention-status.schema.json +434 -0
  54. package/schemas/continuation-grant-body.schema.json +189 -0
  55. package/schemas/continuation-output-check.schema.json +65 -0
  56. package/schemas/delivery-contract-v2.schema.json +238 -0
  57. package/schemas/delivery-verification-receipt-v2.schema.json +223 -0
  58. package/schemas/follow-up-create-params.schema.json +78 -0
  59. package/schemas/follow-up-draft-params.schema.json +39 -0
  60. package/schemas/follow-up-list-params.schema.json +42 -0
  61. package/schemas/follow-up-list-result.schema.json +241 -0
  62. package/schemas/follow-up-mutation-result.schema.json +361 -0
  63. package/schemas/follow-up-obligation.schema.json +343 -0
  64. package/schemas/follow-up-resolve-params.schema.json +53 -0
  65. package/schemas/frozen-delivery-contract-v2.schema.json +258 -0
  66. package/schemas/graph-checkpoint-request.schema.json +222 -0
  67. package/schemas/graph-checkpoint-response.schema.json +258 -0
  68. package/schemas/graph-worker.schema.json +546 -0
  69. package/schemas/graph.schema.json +1798 -0
  70. package/schemas/session-continuation-request.schema.json +62 -0
  71. package/schemas/session-decision.schema.json +107 -0
  72. package/schemas/signed-continuation-grant.schema.json +209 -0
  73. package/LICENSE +0 -21
@@ -0,0 +1,863 @@
1
+ import { z } from "zod";
2
+ export declare const AttentionWait: z.ZodObject<{
3
+ reason: z.ZodString;
4
+ owner: z.ZodEnum<["human", "system", "unknown", "none"]>;
5
+ grant_id: z.ZodNullable<z.ZodString>;
6
+ message_id: z.ZodNullable<z.ZodString>;
7
+ }, "strict", z.ZodTypeAny, {
8
+ reason: string;
9
+ owner: "human" | "unknown" | "system" | "none";
10
+ grant_id: string | null;
11
+ message_id: string | null;
12
+ }, {
13
+ reason: string;
14
+ owner: "human" | "unknown" | "system" | "none";
15
+ grant_id: string | null;
16
+ message_id: string | null;
17
+ }>;
18
+ export declare const AttentionSessionFact: z.ZodObject<{
19
+ session_id: z.ZodString;
20
+ run_id: z.ZodString;
21
+ state: z.ZodString;
22
+ version: z.ZodNumber;
23
+ turn_id: z.ZodNullable<z.ZodString>;
24
+ turn_state: z.ZodNullable<z.ZodString>;
25
+ decision: z.ZodNullable<z.ZodObject<{
26
+ decision_id: z.ZodString;
27
+ question: z.ZodString;
28
+ choices: z.ZodEffects<z.ZodArray<z.ZodObject<{
29
+ choice_id: z.ZodString;
30
+ label: z.ZodString;
31
+ }, "strict", z.ZodTypeAny, {
32
+ choice_id: string;
33
+ label: string;
34
+ }, {
35
+ choice_id: string;
36
+ label: string;
37
+ }>, "many">, {
38
+ choice_id: string;
39
+ label: string;
40
+ }[], {
41
+ choice_id: string;
42
+ label: string;
43
+ }[]>;
44
+ continuation: z.ZodOptional<z.ZodObject<{
45
+ version: z.ZodLiteral<1>;
46
+ gate_kind: z.ZodEnum<["phase_continue", "task_authorization", "risk_approval", "external_input"]>;
47
+ phase: z.ZodString;
48
+ next_action: z.ZodString;
49
+ evidence_refs: z.ZodArray<z.ZodObject<{
50
+ evidence_id: z.ZodString;
51
+ sha256: z.ZodString;
52
+ }, "strict", z.ZodTypeAny, {
53
+ evidence_id: string;
54
+ sha256: string;
55
+ }, {
56
+ evidence_id: string;
57
+ sha256: string;
58
+ }>, "many">;
59
+ }, "strict", z.ZodTypeAny, {
60
+ version: 1;
61
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
62
+ phase: string;
63
+ next_action: string;
64
+ evidence_refs: {
65
+ evidence_id: string;
66
+ sha256: string;
67
+ }[];
68
+ }, {
69
+ version: 1;
70
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
71
+ phase: string;
72
+ next_action: string;
73
+ evidence_refs: {
74
+ evidence_id: string;
75
+ sha256: string;
76
+ }[];
77
+ }>>;
78
+ }, "strict", z.ZodTypeAny, {
79
+ decision_id: string;
80
+ question: string;
81
+ choices: {
82
+ choice_id: string;
83
+ label: string;
84
+ }[];
85
+ continuation?: {
86
+ version: 1;
87
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
88
+ phase: string;
89
+ next_action: string;
90
+ evidence_refs: {
91
+ evidence_id: string;
92
+ sha256: string;
93
+ }[];
94
+ } | undefined;
95
+ }, {
96
+ decision_id: string;
97
+ question: string;
98
+ choices: {
99
+ choice_id: string;
100
+ label: string;
101
+ }[];
102
+ continuation?: {
103
+ version: 1;
104
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
105
+ phase: string;
106
+ next_action: string;
107
+ evidence_refs: {
108
+ evidence_id: string;
109
+ sha256: string;
110
+ }[];
111
+ } | undefined;
112
+ }>>;
113
+ decision_hash: z.ZodNullable<z.ZodString>;
114
+ process_liveness: z.ZodLiteral<"unknown">;
115
+ wait: z.ZodObject<{
116
+ reason: z.ZodString;
117
+ owner: z.ZodEnum<["human", "system", "unknown", "none"]>;
118
+ grant_id: z.ZodNullable<z.ZodString>;
119
+ message_id: z.ZodNullable<z.ZodString>;
120
+ }, "strict", z.ZodTypeAny, {
121
+ reason: string;
122
+ owner: "human" | "unknown" | "system" | "none";
123
+ grant_id: string | null;
124
+ message_id: string | null;
125
+ }, {
126
+ reason: string;
127
+ owner: "human" | "unknown" | "system" | "none";
128
+ grant_id: string | null;
129
+ message_id: string | null;
130
+ }>;
131
+ updated_at: z.ZodNumber;
132
+ }, "strict", z.ZodTypeAny, {
133
+ run_id: string;
134
+ version: number;
135
+ session_id: string;
136
+ state: string;
137
+ turn_id: string | null;
138
+ turn_state: string | null;
139
+ decision: {
140
+ decision_id: string;
141
+ question: string;
142
+ choices: {
143
+ choice_id: string;
144
+ label: string;
145
+ }[];
146
+ continuation?: {
147
+ version: 1;
148
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
149
+ phase: string;
150
+ next_action: string;
151
+ evidence_refs: {
152
+ evidence_id: string;
153
+ sha256: string;
154
+ }[];
155
+ } | undefined;
156
+ } | null;
157
+ decision_hash: string | null;
158
+ process_liveness: "unknown";
159
+ wait: {
160
+ reason: string;
161
+ owner: "human" | "unknown" | "system" | "none";
162
+ grant_id: string | null;
163
+ message_id: string | null;
164
+ };
165
+ updated_at: number;
166
+ }, {
167
+ run_id: string;
168
+ version: number;
169
+ session_id: string;
170
+ state: string;
171
+ turn_id: string | null;
172
+ turn_state: string | null;
173
+ decision: {
174
+ decision_id: string;
175
+ question: string;
176
+ choices: {
177
+ choice_id: string;
178
+ label: string;
179
+ }[];
180
+ continuation?: {
181
+ version: 1;
182
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
183
+ phase: string;
184
+ next_action: string;
185
+ evidence_refs: {
186
+ evidence_id: string;
187
+ sha256: string;
188
+ }[];
189
+ } | undefined;
190
+ } | null;
191
+ decision_hash: string | null;
192
+ process_liveness: "unknown";
193
+ wait: {
194
+ reason: string;
195
+ owner: "human" | "unknown" | "system" | "none";
196
+ grant_id: string | null;
197
+ message_id: string | null;
198
+ };
199
+ updated_at: number;
200
+ }>;
201
+ export declare const AttentionStatus: z.ZodObject<{
202
+ schema_version: z.ZodLiteral<1>;
203
+ mode: z.ZodLiteral<"snapshot_only">;
204
+ scope: z.ZodObject<{
205
+ scope_id: z.ZodString;
206
+ task_id: z.ZodString;
207
+ tenant_id: z.ZodNull;
208
+ repo_path: z.ZodString;
209
+ }, "strict", z.ZodTypeAny, {
210
+ scope_id: string;
211
+ task_id: string;
212
+ tenant_id: null;
213
+ repo_path: string;
214
+ }, {
215
+ scope_id: string;
216
+ task_id: string;
217
+ tenant_id: null;
218
+ repo_path: string;
219
+ }>;
220
+ sampled_at_ms: z.ZodNumber;
221
+ coverage: z.ZodObject<{
222
+ state: z.ZodLiteral<"not_monitored">;
223
+ }, "strict", z.ZodTypeAny, {
224
+ state: "not_monitored";
225
+ }, {
226
+ state: "not_monitored";
227
+ }>;
228
+ runs: z.ZodArray<z.ZodObject<{
229
+ run_id: z.ZodString;
230
+ phase: z.ZodString;
231
+ outcome: z.ZodNullable<z.ZodString>;
232
+ repo_binding: z.ZodLiteral<"unverified">;
233
+ }, "strict", z.ZodTypeAny, {
234
+ run_id: string;
235
+ phase: string;
236
+ outcome: string | null;
237
+ repo_binding: "unverified";
238
+ }, {
239
+ run_id: string;
240
+ phase: string;
241
+ outcome: string | null;
242
+ repo_binding: "unverified";
243
+ }>, "many">;
244
+ sessions: z.ZodArray<z.ZodObject<{
245
+ session_id: z.ZodString;
246
+ run_id: z.ZodString;
247
+ state: z.ZodString;
248
+ version: z.ZodNumber;
249
+ turn_id: z.ZodNullable<z.ZodString>;
250
+ turn_state: z.ZodNullable<z.ZodString>;
251
+ decision: z.ZodNullable<z.ZodObject<{
252
+ decision_id: z.ZodString;
253
+ question: z.ZodString;
254
+ choices: z.ZodEffects<z.ZodArray<z.ZodObject<{
255
+ choice_id: z.ZodString;
256
+ label: z.ZodString;
257
+ }, "strict", z.ZodTypeAny, {
258
+ choice_id: string;
259
+ label: string;
260
+ }, {
261
+ choice_id: string;
262
+ label: string;
263
+ }>, "many">, {
264
+ choice_id: string;
265
+ label: string;
266
+ }[], {
267
+ choice_id: string;
268
+ label: string;
269
+ }[]>;
270
+ continuation: z.ZodOptional<z.ZodObject<{
271
+ version: z.ZodLiteral<1>;
272
+ gate_kind: z.ZodEnum<["phase_continue", "task_authorization", "risk_approval", "external_input"]>;
273
+ phase: z.ZodString;
274
+ next_action: z.ZodString;
275
+ evidence_refs: z.ZodArray<z.ZodObject<{
276
+ evidence_id: z.ZodString;
277
+ sha256: z.ZodString;
278
+ }, "strict", z.ZodTypeAny, {
279
+ evidence_id: string;
280
+ sha256: string;
281
+ }, {
282
+ evidence_id: string;
283
+ sha256: string;
284
+ }>, "many">;
285
+ }, "strict", z.ZodTypeAny, {
286
+ version: 1;
287
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
288
+ phase: string;
289
+ next_action: string;
290
+ evidence_refs: {
291
+ evidence_id: string;
292
+ sha256: string;
293
+ }[];
294
+ }, {
295
+ version: 1;
296
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
297
+ phase: string;
298
+ next_action: string;
299
+ evidence_refs: {
300
+ evidence_id: string;
301
+ sha256: string;
302
+ }[];
303
+ }>>;
304
+ }, "strict", z.ZodTypeAny, {
305
+ decision_id: string;
306
+ question: string;
307
+ choices: {
308
+ choice_id: string;
309
+ label: string;
310
+ }[];
311
+ continuation?: {
312
+ version: 1;
313
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
314
+ phase: string;
315
+ next_action: string;
316
+ evidence_refs: {
317
+ evidence_id: string;
318
+ sha256: string;
319
+ }[];
320
+ } | undefined;
321
+ }, {
322
+ decision_id: string;
323
+ question: string;
324
+ choices: {
325
+ choice_id: string;
326
+ label: string;
327
+ }[];
328
+ continuation?: {
329
+ version: 1;
330
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
331
+ phase: string;
332
+ next_action: string;
333
+ evidence_refs: {
334
+ evidence_id: string;
335
+ sha256: string;
336
+ }[];
337
+ } | undefined;
338
+ }>>;
339
+ decision_hash: z.ZodNullable<z.ZodString>;
340
+ process_liveness: z.ZodLiteral<"unknown">;
341
+ wait: z.ZodObject<{
342
+ reason: z.ZodString;
343
+ owner: z.ZodEnum<["human", "system", "unknown", "none"]>;
344
+ grant_id: z.ZodNullable<z.ZodString>;
345
+ message_id: z.ZodNullable<z.ZodString>;
346
+ }, "strict", z.ZodTypeAny, {
347
+ reason: string;
348
+ owner: "human" | "unknown" | "system" | "none";
349
+ grant_id: string | null;
350
+ message_id: string | null;
351
+ }, {
352
+ reason: string;
353
+ owner: "human" | "unknown" | "system" | "none";
354
+ grant_id: string | null;
355
+ message_id: string | null;
356
+ }>;
357
+ updated_at: z.ZodNumber;
358
+ }, "strict", z.ZodTypeAny, {
359
+ run_id: string;
360
+ version: number;
361
+ session_id: string;
362
+ state: string;
363
+ turn_id: string | null;
364
+ turn_state: string | null;
365
+ decision: {
366
+ decision_id: string;
367
+ question: string;
368
+ choices: {
369
+ choice_id: string;
370
+ label: string;
371
+ }[];
372
+ continuation?: {
373
+ version: 1;
374
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
375
+ phase: string;
376
+ next_action: string;
377
+ evidence_refs: {
378
+ evidence_id: string;
379
+ sha256: string;
380
+ }[];
381
+ } | undefined;
382
+ } | null;
383
+ decision_hash: string | null;
384
+ process_liveness: "unknown";
385
+ wait: {
386
+ reason: string;
387
+ owner: "human" | "unknown" | "system" | "none";
388
+ grant_id: string | null;
389
+ message_id: string | null;
390
+ };
391
+ updated_at: number;
392
+ }, {
393
+ run_id: string;
394
+ version: number;
395
+ session_id: string;
396
+ state: string;
397
+ turn_id: string | null;
398
+ turn_state: string | null;
399
+ decision: {
400
+ decision_id: string;
401
+ question: string;
402
+ choices: {
403
+ choice_id: string;
404
+ label: string;
405
+ }[];
406
+ continuation?: {
407
+ version: 1;
408
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
409
+ phase: string;
410
+ next_action: string;
411
+ evidence_refs: {
412
+ evidence_id: string;
413
+ sha256: string;
414
+ }[];
415
+ } | undefined;
416
+ } | null;
417
+ decision_hash: string | null;
418
+ process_liveness: "unknown";
419
+ wait: {
420
+ reason: string;
421
+ owner: "human" | "unknown" | "system" | "none";
422
+ grant_id: string | null;
423
+ message_id: string | null;
424
+ };
425
+ updated_at: number;
426
+ }>, "many">;
427
+ completeness: z.ZodObject<{
428
+ latest_turn_only: z.ZodLiteral<true>;
429
+ truncated: z.ZodBoolean;
430
+ omitted_binding_unknown: z.ZodNumber;
431
+ next_cursor: z.ZodNullable<z.ZodString>;
432
+ next_after: z.ZodObject<{
433
+ run: z.ZodNullable<z.ZodString>;
434
+ session: z.ZodNullable<z.ZodString>;
435
+ }, "strict", z.ZodTypeAny, {
436
+ run: string | null;
437
+ session: string | null;
438
+ }, {
439
+ run: string | null;
440
+ session: string | null;
441
+ }>;
442
+ }, "strict", z.ZodTypeAny, {
443
+ latest_turn_only: true;
444
+ truncated: boolean;
445
+ omitted_binding_unknown: number;
446
+ next_cursor: string | null;
447
+ next_after: {
448
+ run: string | null;
449
+ session: string | null;
450
+ };
451
+ }, {
452
+ latest_turn_only: true;
453
+ truncated: boolean;
454
+ omitted_binding_unknown: number;
455
+ next_cursor: string | null;
456
+ next_after: {
457
+ run: string | null;
458
+ session: string | null;
459
+ };
460
+ }>;
461
+ limitations: z.ZodArray<z.ZodString, "many">;
462
+ }, "strict", z.ZodTypeAny, {
463
+ schema_version: 1;
464
+ mode: "snapshot_only";
465
+ scope: {
466
+ scope_id: string;
467
+ task_id: string;
468
+ tenant_id: null;
469
+ repo_path: string;
470
+ };
471
+ sampled_at_ms: number;
472
+ coverage: {
473
+ state: "not_monitored";
474
+ };
475
+ runs: {
476
+ run_id: string;
477
+ phase: string;
478
+ outcome: string | null;
479
+ repo_binding: "unverified";
480
+ }[];
481
+ sessions: {
482
+ run_id: string;
483
+ version: number;
484
+ session_id: string;
485
+ state: string;
486
+ turn_id: string | null;
487
+ turn_state: string | null;
488
+ decision: {
489
+ decision_id: string;
490
+ question: string;
491
+ choices: {
492
+ choice_id: string;
493
+ label: string;
494
+ }[];
495
+ continuation?: {
496
+ version: 1;
497
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
498
+ phase: string;
499
+ next_action: string;
500
+ evidence_refs: {
501
+ evidence_id: string;
502
+ sha256: string;
503
+ }[];
504
+ } | undefined;
505
+ } | null;
506
+ decision_hash: string | null;
507
+ process_liveness: "unknown";
508
+ wait: {
509
+ reason: string;
510
+ owner: "human" | "unknown" | "system" | "none";
511
+ grant_id: string | null;
512
+ message_id: string | null;
513
+ };
514
+ updated_at: number;
515
+ }[];
516
+ completeness: {
517
+ latest_turn_only: true;
518
+ truncated: boolean;
519
+ omitted_binding_unknown: number;
520
+ next_cursor: string | null;
521
+ next_after: {
522
+ run: string | null;
523
+ session: string | null;
524
+ };
525
+ };
526
+ limitations: string[];
527
+ }, {
528
+ schema_version: 1;
529
+ mode: "snapshot_only";
530
+ scope: {
531
+ scope_id: string;
532
+ task_id: string;
533
+ tenant_id: null;
534
+ repo_path: string;
535
+ };
536
+ sampled_at_ms: number;
537
+ coverage: {
538
+ state: "not_monitored";
539
+ };
540
+ runs: {
541
+ run_id: string;
542
+ phase: string;
543
+ outcome: string | null;
544
+ repo_binding: "unverified";
545
+ }[];
546
+ sessions: {
547
+ run_id: string;
548
+ version: number;
549
+ session_id: string;
550
+ state: string;
551
+ turn_id: string | null;
552
+ turn_state: string | null;
553
+ decision: {
554
+ decision_id: string;
555
+ question: string;
556
+ choices: {
557
+ choice_id: string;
558
+ label: string;
559
+ }[];
560
+ continuation?: {
561
+ version: 1;
562
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
563
+ phase: string;
564
+ next_action: string;
565
+ evidence_refs: {
566
+ evidence_id: string;
567
+ sha256: string;
568
+ }[];
569
+ } | undefined;
570
+ } | null;
571
+ decision_hash: string | null;
572
+ process_liveness: "unknown";
573
+ wait: {
574
+ reason: string;
575
+ owner: "human" | "unknown" | "system" | "none";
576
+ grant_id: string | null;
577
+ message_id: string | null;
578
+ };
579
+ updated_at: number;
580
+ }[];
581
+ completeness: {
582
+ latest_turn_only: true;
583
+ truncated: boolean;
584
+ omitted_binding_unknown: number;
585
+ next_cursor: string | null;
586
+ next_after: {
587
+ run: string | null;
588
+ session: string | null;
589
+ };
590
+ };
591
+ limitations: string[];
592
+ }>;
593
+ export type AttentionStatus = z.infer<typeof AttentionStatus>;
594
+ export type AttentionSessionFact = z.infer<typeof AttentionSessionFact>;
595
+ export type AttentionWait = z.infer<typeof AttentionWait>;
596
+ /** Persistent inbox projection, not authority to execute or approve. */
597
+ export declare const AttentionInbox: z.ZodObject<{
598
+ schema_version: z.ZodLiteral<1>;
599
+ scope_id: z.ZodString;
600
+ coverage: z.ZodEnum<["covered", "degraded", "uncovered", "unknown"]>;
601
+ execution_takeover: z.ZodLiteral<false>;
602
+ counts: z.ZodArray<z.ZodObject<{
603
+ state: z.ZodString;
604
+ total: z.ZodNumber;
605
+ }, "strict", z.ZodTypeAny, {
606
+ state: string;
607
+ total: number;
608
+ }, {
609
+ state: string;
610
+ total: number;
611
+ }>, "many">;
612
+ next_after: z.ZodNullable<z.ZodString>;
613
+ items: z.ZodArray<z.ZodObject<{
614
+ item_id: z.ZodString;
615
+ scope_id: z.ZodString;
616
+ session_id: z.ZodString;
617
+ turn_id: z.ZodString;
618
+ decision_id: z.ZodString;
619
+ content_hash: z.ZodString;
620
+ decision: z.ZodObject<{
621
+ decision_id: z.ZodString;
622
+ question: z.ZodString;
623
+ choices: z.ZodEffects<z.ZodArray<z.ZodObject<{
624
+ choice_id: z.ZodString;
625
+ label: z.ZodString;
626
+ }, "strict", z.ZodTypeAny, {
627
+ choice_id: string;
628
+ label: string;
629
+ }, {
630
+ choice_id: string;
631
+ label: string;
632
+ }>, "many">, {
633
+ choice_id: string;
634
+ label: string;
635
+ }[], {
636
+ choice_id: string;
637
+ label: string;
638
+ }[]>;
639
+ continuation: z.ZodOptional<z.ZodObject<{
640
+ version: z.ZodLiteral<1>;
641
+ gate_kind: z.ZodEnum<["phase_continue", "task_authorization", "risk_approval", "external_input"]>;
642
+ phase: z.ZodString;
643
+ next_action: z.ZodString;
644
+ evidence_refs: z.ZodArray<z.ZodObject<{
645
+ evidence_id: z.ZodString;
646
+ sha256: z.ZodString;
647
+ }, "strict", z.ZodTypeAny, {
648
+ evidence_id: string;
649
+ sha256: string;
650
+ }, {
651
+ evidence_id: string;
652
+ sha256: string;
653
+ }>, "many">;
654
+ }, "strict", z.ZodTypeAny, {
655
+ version: 1;
656
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
657
+ phase: string;
658
+ next_action: string;
659
+ evidence_refs: {
660
+ evidence_id: string;
661
+ sha256: string;
662
+ }[];
663
+ }, {
664
+ version: 1;
665
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
666
+ phase: string;
667
+ next_action: string;
668
+ evidence_refs: {
669
+ evidence_id: string;
670
+ sha256: string;
671
+ }[];
672
+ }>>;
673
+ }, "strict", z.ZodTypeAny, {
674
+ decision_id: string;
675
+ question: string;
676
+ choices: {
677
+ choice_id: string;
678
+ label: string;
679
+ }[];
680
+ continuation?: {
681
+ version: 1;
682
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
683
+ phase: string;
684
+ next_action: string;
685
+ evidence_refs: {
686
+ evidence_id: string;
687
+ sha256: string;
688
+ }[];
689
+ } | undefined;
690
+ }, {
691
+ decision_id: string;
692
+ question: string;
693
+ choices: {
694
+ choice_id: string;
695
+ label: string;
696
+ }[];
697
+ continuation?: {
698
+ version: 1;
699
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
700
+ phase: string;
701
+ next_action: string;
702
+ evidence_refs: {
703
+ evidence_id: string;
704
+ sha256: string;
705
+ }[];
706
+ } | undefined;
707
+ }>;
708
+ source_version: z.ZodNumber;
709
+ revision: z.ZodNumber;
710
+ state: z.ZodEnum<["open", "source_missing", "source_closed", "continued_externally", "answer_reserved", "answer_uncertain", "answer_applied", "answer_abandoned"]>;
711
+ created_at: z.ZodNumber;
712
+ updated_at: z.ZodNumber;
713
+ external_message_id: z.ZodNullable<z.ZodString>;
714
+ }, "strict", z.ZodTypeAny, {
715
+ decision_id: string;
716
+ session_id: string;
717
+ state: "open" | "source_missing" | "source_closed" | "continued_externally" | "answer_reserved" | "answer_uncertain" | "answer_applied" | "answer_abandoned";
718
+ turn_id: string;
719
+ decision: {
720
+ decision_id: string;
721
+ question: string;
722
+ choices: {
723
+ choice_id: string;
724
+ label: string;
725
+ }[];
726
+ continuation?: {
727
+ version: 1;
728
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
729
+ phase: string;
730
+ next_action: string;
731
+ evidence_refs: {
732
+ evidence_id: string;
733
+ sha256: string;
734
+ }[];
735
+ } | undefined;
736
+ };
737
+ updated_at: number;
738
+ scope_id: string;
739
+ item_id: string;
740
+ content_hash: string;
741
+ source_version: number;
742
+ revision: number;
743
+ created_at: number;
744
+ external_message_id: string | null;
745
+ }, {
746
+ decision_id: string;
747
+ session_id: string;
748
+ state: "open" | "source_missing" | "source_closed" | "continued_externally" | "answer_reserved" | "answer_uncertain" | "answer_applied" | "answer_abandoned";
749
+ turn_id: string;
750
+ decision: {
751
+ decision_id: string;
752
+ question: string;
753
+ choices: {
754
+ choice_id: string;
755
+ label: string;
756
+ }[];
757
+ continuation?: {
758
+ version: 1;
759
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
760
+ phase: string;
761
+ next_action: string;
762
+ evidence_refs: {
763
+ evidence_id: string;
764
+ sha256: string;
765
+ }[];
766
+ } | undefined;
767
+ };
768
+ updated_at: number;
769
+ scope_id: string;
770
+ item_id: string;
771
+ content_hash: string;
772
+ source_version: number;
773
+ revision: number;
774
+ created_at: number;
775
+ external_message_id: string | null;
776
+ }>, "many">;
777
+ }, "strict", z.ZodTypeAny, {
778
+ schema_version: 1;
779
+ scope_id: string;
780
+ coverage: "unknown" | "covered" | "degraded" | "uncovered";
781
+ next_after: string | null;
782
+ execution_takeover: false;
783
+ counts: {
784
+ state: string;
785
+ total: number;
786
+ }[];
787
+ items: {
788
+ decision_id: string;
789
+ session_id: string;
790
+ state: "open" | "source_missing" | "source_closed" | "continued_externally" | "answer_reserved" | "answer_uncertain" | "answer_applied" | "answer_abandoned";
791
+ turn_id: string;
792
+ decision: {
793
+ decision_id: string;
794
+ question: string;
795
+ choices: {
796
+ choice_id: string;
797
+ label: string;
798
+ }[];
799
+ continuation?: {
800
+ version: 1;
801
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
802
+ phase: string;
803
+ next_action: string;
804
+ evidence_refs: {
805
+ evidence_id: string;
806
+ sha256: string;
807
+ }[];
808
+ } | undefined;
809
+ };
810
+ updated_at: number;
811
+ scope_id: string;
812
+ item_id: string;
813
+ content_hash: string;
814
+ source_version: number;
815
+ revision: number;
816
+ created_at: number;
817
+ external_message_id: string | null;
818
+ }[];
819
+ }, {
820
+ schema_version: 1;
821
+ scope_id: string;
822
+ coverage: "unknown" | "covered" | "degraded" | "uncovered";
823
+ next_after: string | null;
824
+ execution_takeover: false;
825
+ counts: {
826
+ state: string;
827
+ total: number;
828
+ }[];
829
+ items: {
830
+ decision_id: string;
831
+ session_id: string;
832
+ state: "open" | "source_missing" | "source_closed" | "continued_externally" | "answer_reserved" | "answer_uncertain" | "answer_applied" | "answer_abandoned";
833
+ turn_id: string;
834
+ decision: {
835
+ decision_id: string;
836
+ question: string;
837
+ choices: {
838
+ choice_id: string;
839
+ label: string;
840
+ }[];
841
+ continuation?: {
842
+ version: 1;
843
+ gate_kind: "phase_continue" | "task_authorization" | "risk_approval" | "external_input";
844
+ phase: string;
845
+ next_action: string;
846
+ evidence_refs: {
847
+ evidence_id: string;
848
+ sha256: string;
849
+ }[];
850
+ } | undefined;
851
+ };
852
+ updated_at: number;
853
+ scope_id: string;
854
+ item_id: string;
855
+ content_hash: string;
856
+ source_version: number;
857
+ revision: number;
858
+ created_at: number;
859
+ external_message_id: string | null;
860
+ }[];
861
+ }>;
862
+ export type AttentionInbox = z.infer<typeof AttentionInbox>;
863
+ //# sourceMappingURL=attention.d.ts.map