@real-life/trust-protocol 0.5.0 → 0.6.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +119 -0
  2. package/README.md +97 -34
  3. package/dist/adapters/vti-mediator.d.ts +18 -5
  4. package/dist/adapters/vti-mediator.d.ts.map +1 -1
  5. package/dist/adapters/vti-mediator.js +143 -17
  6. package/dist/adapters/vti-mediator.js.map +1 -1
  7. package/dist/codec.d.ts +2 -9
  8. package/dist/codec.d.ts.map +1 -1
  9. package/dist/codec.js +61 -96
  10. package/dist/codec.js.map +1 -1
  11. package/dist/engine.d.ts +66 -2
  12. package/dist/engine.d.ts.map +1 -1
  13. package/dist/engine.js +393 -23
  14. package/dist/engine.js.map +1 -1
  15. package/dist/holder-api.d.ts +22 -2
  16. package/dist/holder-api.d.ts.map +1 -1
  17. package/dist/holder-api.js +43 -3
  18. package/dist/holder-api.js.map +1 -1
  19. package/dist/{holder-state-v2.d.ts → holder-state-v3.d.ts} +210 -207
  20. package/dist/holder-state-v3.d.ts.map +1 -0
  21. package/dist/holder-state-v3.js +2 -0
  22. package/dist/holder-state-v3.js.map +1 -0
  23. package/dist/index.d.ts +2 -2
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js.map +1 -1
  26. package/dist/internal.d.ts +1 -2
  27. package/dist/internal.d.ts.map +1 -1
  28. package/dist/internal.js.map +1 -1
  29. package/dist/results.d.ts +42 -3
  30. package/dist/results.d.ts.map +1 -1
  31. package/dist/results.js.map +1 -1
  32. package/dist/state.d.ts +22 -9
  33. package/dist/state.d.ts.map +1 -1
  34. package/dist/state.js.map +1 -1
  35. package/package.json +4 -6
  36. package/schemas/{holder-state-v2.schema.json → holder-state-v3.schema.json} +50 -5
  37. package/dist/holder-state-v1.d.ts +0 -801
  38. package/dist/holder-state-v1.d.ts.map +0 -1
  39. package/dist/holder-state-v1.js +0 -2
  40. package/dist/holder-state-v1.js.map +0 -1
  41. package/dist/holder-state-v2.d.ts.map +0 -1
  42. package/dist/holder-state-v2.js +0 -2
  43. package/dist/holder-state-v2.js.map +0 -1
  44. package/schemas/holder-state-v1.schema.json +0 -3880
@@ -1,801 +0,0 @@
1
- import type { Json } from './core.js';
2
- /** NON-NORMATIVE. The stored state of an @real-life/trust-protocol holder at codec 1 (lib/src/codec.ts): the library's storage format, not a protocol artifact. lib/src/holder-state-v1.ts is generated from it (scripts/build-holder-state-types.mjs). Not expressible here and checked by the codec alone: a record's id equals its key (contacts, relationships, groups, duties, rotations, prompts, acts, roster, invitations, records, introductions, offers, challenges), and an envelope's rkid equals its recipient's keyAgreement. */
3
- export type HolderStateV1 = {
4
- codec: 1;
5
- commitSeq: DecV1;
6
- lastWhen: MillisV1;
7
- register: {
8
- labels: string[];
9
- pairNonces: Record<string, string>;
10
- carriers: Record<string, {
11
- nonce: string;
12
- generation: DecV1;
13
- }[]>;
14
- devices: {
15
- names: string[];
16
- revoked: string[];
17
- };
18
- community: ({
19
- genesis: string;
20
- head: DecV1;
21
- }) | (null);
22
- lineage: {
23
- [k: string]: Json;
24
- }[];
25
- };
26
- addresses: {
27
- keys: Record<string, {
28
- label: string;
29
- lastShown: MillisV1;
30
- retiredAt?: MillisV1;
31
- }>;
32
- tombstones: string[];
33
- };
34
- contacts: Record<string, ContactV1>;
35
- relationships: Record<string, RelationshipV1>;
36
- entryOrder: {
37
- nextPos: DecV1;
38
- heads: string[];
39
- };
40
- groups: Record<string, GroupV1>;
41
- profile: {
42
- body: Json;
43
- revision: DecV1;
44
- };
45
- effects: Record<string, {
46
- ack: (StoredAckV1) | (null);
47
- expiresAt: MillisV1;
48
- }>;
49
- outbox: Record<string, OutboxItemV1>;
50
- duties: Record<string, DutyV1>;
51
- rotations: Record<string, RotationV1>;
52
- prompts: Record<string, PromptV1>;
53
- acts: Record<string, ActRecordV1>;
54
- encounter: {
55
- challenges: Record<string, {
56
- value: string;
57
- tCh: MillisV1;
58
- label: string;
59
- card: {
60
- [k: string]: Json;
61
- };
62
- }>;
63
- records: Record<string, EnactmentRecordV1>;
64
- introductions: Record<string, IntroActV1>;
65
- offers: Record<string, {
66
- id: string;
67
- mediatorContactId: string;
68
- pin: string;
69
- target: string;
70
- at: MillisV1;
71
- label?: string;
72
- }>;
73
- designators: Record<string, string>;
74
- declarations: Record<string, {
75
- issuer: string;
76
- role: string;
77
- revision: DecV1;
78
- constants: Record<string, string>;
79
- at: MillisV1;
80
- }>;
81
- };
82
- joining: {
83
- preludes: Record<string, {
84
- group: string;
85
- inviter: string;
86
- contactId: string;
87
- rkid: string;
88
- memberLabel: string;
89
- at: MillisV1;
90
- }>;
91
- invites: Record<string, {
92
- credDigest: string;
93
- group: string;
94
- name: string;
95
- contactId: string;
96
- rkid: string;
97
- memberLabel: string;
98
- invite: {
99
- [k: string]: Json;
100
- };
101
- promptId: string;
102
- validUntil: MillisV1;
103
- status: "open" | "accepted" | "declined" | "joined";
104
- at: MillisV1;
105
- acceptDigest?: string;
106
- }>;
107
- };
108
- };
109
- /** a counter as a canonical decimal string */
110
- export type DecV1 = string;
111
- /** milliseconds since the epoch, a safe non-negative integer */
112
- export type MillisV1 = number;
113
- export type SettingV1 = "default" | "on" | "off";
114
- export type TrustClassV1 = "star" | "groupStar" | "anchorMapping" | "sealedGroupStar" | "profile";
115
- export type RecipientV1 = {
116
- contactId: string;
117
- rkid: string;
118
- keyAgreement: string;
119
- anchor?: string;
120
- via?: string;
121
- };
122
- export type EnvelopeV1 = {
123
- rkid: string;
124
- epk: string;
125
- nonce: string;
126
- ciphertext: string;
127
- };
128
- export type AssemblyV1 = {
129
- salt: DecV1;
130
- chunks: {
131
- [k: string]: Json;
132
- };
133
- };
134
- export type StarPairV1 = {
135
- member: string;
136
- head: string;
137
- };
138
- export type GroupStarItemV1 = ({
139
- group: string;
140
- mode: "digest";
141
- }) | ({
142
- group: string;
143
- mode: "sealed";
144
- member: string;
145
- memberOp: string;
146
- });
147
- export type StarOutInflightV1 = {
148
- view: StarPairV1[];
149
- viewDigest: string;
150
- digests: string[];
151
- acked: string[];
152
- };
153
- /** the sender side of one reconciled sequence (5.4); snapshot and snapshotDigest are null together */
154
- export type StarOutV1 = {
155
- lastSalt: DecV1;
156
- exhausted: boolean;
157
- hwm: DecV1;
158
- snapshot: (StarPairV1[]) | (null);
159
- snapshotDigest: (string) | (null);
160
- inflight: Record<string, StarOutInflightV1>;
161
- };
162
- export type StarInV1 = {
163
- hwm: DecV1;
164
- lowerBound: DecV1;
165
- assembly: (AssemblyV1) | (null);
166
- accepted: ({
167
- salt: DecV1;
168
- blinded: string[];
169
- matches: string[];
170
- }) | (null);
171
- };
172
- export type GroupStarOutInflightV1 = {
173
- view: GroupStarItemV1[];
174
- viewDigest: string;
175
- digests: string[];
176
- acked: string[];
177
- };
178
- /** the sender side of one reconciled sequence (5.4); snapshot and snapshotDigest are null together */
179
- export type GroupStarOutV1 = {
180
- lastSalt: DecV1;
181
- exhausted: boolean;
182
- hwm: DecV1;
183
- snapshot: (GroupStarItemV1[]) | (null);
184
- snapshotDigest: (string) | (null);
185
- inflight: Record<string, GroupStarOutInflightV1>;
186
- };
187
- export type GroupStarInV1 = {
188
- hwm: DecV1;
189
- lowerBound: DecV1;
190
- assembly: (AssemblyV1) | (null);
191
- accepted: ({
192
- salt: DecV1;
193
- entries: {
194
- d: string;
195
- c: string;
196
- }[];
197
- groups: string[];
198
- }) | (null);
199
- };
200
- export type ContinuityDueV1 = ({
201
- kind: "choice";
202
- prior: string;
203
- alts: string[];
204
- }) | ({
205
- kind: "report" | "align";
206
- prior: string;
207
- });
208
- export type LogHeadV1 = ({
209
- genesis: string;
210
- empty: true;
211
- }) | ({
212
- genesis: string;
213
- entryId: string;
214
- gen: number;
215
- next: string;
216
- commit: string;
217
- });
218
- /** one enactment's tuple of a relationship (Trust 6.4) */
219
- export type TupleV1 = {
220
- ownPairLabel: string;
221
- counterpartAnchor: string;
222
- counterpartKeyAgreement: string;
223
- rkid: string;
224
- entryId: string;
225
- priorCandidates: {
226
- ownPairLabel: string;
227
- counterpartAnchor: string;
228
- replaces?: string[];
229
- }[];
230
- starOut: StarOutV1;
231
- starIn: StarInV1;
232
- groupStarOut: GroupStarOutV1;
233
- groupStarIn: GroupStarInV1;
234
- probeOut: {
235
- seq: DecV1;
236
- inflight: Record<string, {
237
- digests: string[];
238
- acked: string[];
239
- }>;
240
- done: boolean;
241
- };
242
- probeIn: {
243
- hwm: DecV1;
244
- lowerBound: DecV1;
245
- assembly: (AssemblyV1) | (null);
246
- };
247
- continuityOut: {
248
- rev: DecV1;
249
- body: Json;
250
- proof: Json;
251
- sent: string[];
252
- align: boolean;
253
- chosen: (string) | (null);
254
- reported: (string) | (null);
255
- aligned: boolean;
256
- due: (ContinuityDueV1) | (null);
257
- };
258
- continuityIn: {
259
- rev: DecV1;
260
- body: Json;
261
- recordPrior: (string) | (null);
262
- };
263
- mappingOut: {
264
- rev: DecV1;
265
- body: Json;
266
- underAnchor: (string) | (null);
267
- };
268
- mappingIn: {
269
- rev: DecV1;
270
- body: Json;
271
- self: (string) | (null);
272
- card: Json;
273
- };
274
- profileOut: {
275
- rev: DecV1;
276
- };
277
- profileIn: {
278
- rev: DecV1;
279
- body: Json;
280
- verifiedSeq: DecV1;
281
- };
282
- deactivated: boolean;
283
- };
284
- export type RelationshipV1 = {
285
- id: string;
286
- contactId: string;
287
- tuples: TupleV1[];
288
- activeHead: string;
289
- earliestAnchor: (string) | (null);
290
- links: {
291
- prev: string;
292
- next: string;
293
- }[];
294
- bindings: Record<string, string[]>;
295
- heldCounterpartHead: (string) | (null);
296
- memory: {
297
- [k: string]: Json;
298
- };
299
- provenance: {
300
- kind: "ceremony" | "introduced";
301
- at: MillisV1;
302
- via?: string;
303
- viaPin?: string;
304
- };
305
- chainedInto: (string) | (null);
306
- firstVerified: (DecV1) | (null);
307
- };
308
- /** one entry of the deliverable set (Trust 2120, 2140); its id equals its key */
309
- export type ContactV1 = {
310
- id: string;
311
- pos: (DecV1) | (null);
312
- status: "none" | "admitted" | "pending";
313
- aliases: string[];
314
- relIds: string[];
315
- anchorHead: (string) | (null);
316
- settings: {
317
- star: SettingV1;
318
- groupStar: SettingV1;
319
- anchorMapping: SettingV1;
320
- sealedGroupStar: SettingV1;
321
- profile: SettingV1;
322
- };
323
- groupSettings: Record<string, SettingV1>;
324
- };
325
- export type OutboxStepV1 = ({
326
- status: "submitted";
327
- at: MillisV1;
328
- attempt: number;
329
- }) | ({
330
- status: "awaiting-transport";
331
- at: MillisV1;
332
- reason: "offline" | "transport-unreachable" | "carrier-refused-retriable";
333
- }) | ({
334
- status: "accepted";
335
- at: MillisV1;
336
- }) | ({
337
- status: "delivered";
338
- at: MillisV1;
339
- late: boolean;
340
- }) | ({
341
- status: "failed";
342
- at: MillisV1;
343
- reason: "unroutable" | "oversize" | "expired-by-adapter-policy";
344
- }) | ({
345
- status: "failed";
346
- at: MillisV1;
347
- reason: "rejected-by-receiver";
348
- code: "malformedRequest" | "unsupportedType" | "proofRequired" | "proofInvalid" | "wrongRecipient" | "identityMismatch";
349
- });
350
- /** an issued document; its envelope's rkid equals recipient.keyAgreement (not expressible here, checked by the codec) */
351
- export type OutboxItemV1 = {
352
- type: string;
353
- threadId: string;
354
- recipient: RecipientV1;
355
- envelope: EnvelopeV1;
356
- attempt: number;
357
- history: OutboxStepV1[];
358
- nextAttemptAt?: MillisV1;
359
- };
360
- export type StoredAckV1 = {
361
- digest: string;
362
- envelope: EnvelopeV1;
363
- threadId: string;
364
- recipient: RecipientV1;
365
- at: MillisV1;
366
- attempt: number;
367
- sent: boolean;
368
- nextAttemptAt?: MillisV1;
369
- sentBy?: "report" | "horizon";
370
- };
371
- export type ReissueMappingDutyV1 = {
372
- kind: "reissue-mapping";
373
- v: 1;
374
- id: string;
375
- contactId: string;
376
- relId: string;
377
- awaitHead: (string) | (null);
378
- dueAt?: MillisV1;
379
- };
380
- export type ClassOnDutyV1 = {
381
- kind: "class-on";
382
- v: 1;
383
- id: string;
384
- contactId: string;
385
- relId: string;
386
- cls: TrustClassV1;
387
- dueAt?: MillisV1;
388
- };
389
- export type ProfileDutyV1 = {
390
- kind: "profile";
391
- v: 1;
392
- id: string;
393
- contactId: string;
394
- relId: string;
395
- rev: DecV1;
396
- dueAt?: MillisV1;
397
- };
398
- export type ContinuityDutyV1 = {
399
- kind: "continuity";
400
- v: 1;
401
- id: string;
402
- relId: string;
403
- tuple: string;
404
- step: "probe" | "mapping";
405
- dueAt?: MillisV1;
406
- attempt?: number;
407
- lastAt?: MillisV1;
408
- };
409
- export type MergeDutyV1 = {
410
- kind: "merge";
411
- v: 1;
412
- id: string;
413
- entryIds: string[];
414
- relId: string;
415
- witness: {
416
- heads: Record<string, string>;
417
- superseded: Record<string, string[]>;
418
- };
419
- dueAt?: MillisV1;
420
- };
421
- export type RotationDutyV1 = {
422
- kind: "rotation";
423
- v: 1;
424
- id: string;
425
- rotationId: string;
426
- dueAt?: MillisV1;
427
- attempt?: number;
428
- lastAt?: MillisV1;
429
- };
430
- export type IntroAckDutyV1 = {
431
- kind: "intro-ack";
432
- v: 1;
433
- id: string;
434
- act: string;
435
- dueAt?: MillisV1;
436
- };
437
- /** a duty of a kind or version this library does not handle: kept as it is */
438
- export type UnknownDutyV1 = {
439
- kind: string;
440
- v: number;
441
- id: string;
442
- [k: string]: Json;
443
- };
444
- export type DutyV1 = (ReissueMappingDutyV1) | (ClassOnDutyV1) | (ProfileDutyV1) | (ContinuityDutyV1) | (MergeDutyV1) | (RotationDutyV1) | (IntroAckDutyV1) | (UnknownDutyV1);
445
- /** a journaled event (events.ts) */
446
- export type EventV1 = ({
447
- type: "contact.added";
448
- eventId: string;
449
- commitSeq: DecV1;
450
- contactId: string;
451
- actId?: string;
452
- }) | ({
453
- type: "contact.verified";
454
- eventId: string;
455
- commitSeq: DecV1;
456
- contactId: string;
457
- relationshipId: string;
458
- actId?: string;
459
- }) | ({
460
- type: "contact.chained";
461
- eventId: string;
462
- commitSeq: DecV1;
463
- contactId: string;
464
- from: string;
465
- into: string;
466
- actId?: string;
467
- }) | ({
468
- type: "contact.merged";
469
- eventId: string;
470
- commitSeq: DecV1;
471
- contactId: string;
472
- merged: string[];
473
- actId?: string;
474
- }) | ({
475
- type: "contact.split";
476
- eventId: string;
477
- commitSeq: DecV1;
478
- contactId: string;
479
- leaver: string;
480
- relationshipId: string;
481
- actId?: string;
482
- }) | ({
483
- type: "contact.departed";
484
- eventId: string;
485
- commitSeq: DecV1;
486
- contactId: string;
487
- relationshipIds: string[];
488
- removed: boolean;
489
- actId?: string;
490
- }) | ({
491
- type: "trust.given";
492
- eventId: string;
493
- commitSeq: DecV1;
494
- contactId: string;
495
- actId?: string;
496
- }) | ({
497
- type: "trust.received";
498
- eventId: string;
499
- commitSeq: DecV1;
500
- contactId: string;
501
- actId?: string;
502
- }) | ({
503
- type: "trust.paused";
504
- eventId: string;
505
- commitSeq: DecV1;
506
- contactId: string;
507
- paused: boolean;
508
- actId?: string;
509
- }) | ({
510
- type: "group.joined";
511
- eventId: string;
512
- commitSeq: DecV1;
513
- groupId: string;
514
- actId?: string;
515
- }) | ({
516
- type: "prompt.opened";
517
- eventId: string;
518
- commitSeq: DecV1;
519
- promptId: string;
520
- kind: "encounter-confirm" | "group-invite" | "introduction";
521
- actId?: string;
522
- }) | ({
523
- type: "prompt.decided";
524
- eventId: string;
525
- commitSeq: DecV1;
526
- promptId: string;
527
- kind: "encounter-confirm" | "group-invite" | "introduction";
528
- choice: "accept" | "decline";
529
- actId?: string;
530
- }) | ({
531
- type: "delivery.status";
532
- eventId: string;
533
- commitSeq: DecV1;
534
- digest: string;
535
- threadId: string;
536
- status: "submitted" | "accepted" | "delivered" | "failed";
537
- actId?: string;
538
- late?: boolean;
539
- }) | ({
540
- type: "profile.updated";
541
- eventId: string;
542
- commitSeq: DecV1;
543
- contactId: (string) | (null);
544
- actId?: string;
545
- }) | ({
546
- type: "anchor.rotated";
547
- eventId: string;
548
- commitSeq: DecV1;
549
- generation: DecV1;
550
- actId?: string;
551
- }) | ({
552
- type: "device.added";
553
- eventId: string;
554
- commitSeq: DecV1;
555
- name: string;
556
- actId?: string;
557
- }) | ({
558
- type: "device.revoked";
559
- eventId: string;
560
- commitSeq: DecV1;
561
- name: string;
562
- actId?: string;
563
- }) | ({
564
- type: "duty.unsupported";
565
- eventId: string;
566
- commitSeq: DecV1;
567
- dutyId: string;
568
- kind: string;
569
- v: number;
570
- actId?: string;
571
- }) | ({
572
- type: "star.accepted";
573
- eventId: string;
574
- commitSeq: DecV1;
575
- contactId: string;
576
- relationshipId: string;
577
- salt: DecV1;
578
- actId?: string;
579
- }) | ({
580
- type: "groupStar.accepted";
581
- eventId: string;
582
- commitSeq: DecV1;
583
- contactId: string;
584
- relationshipId: string;
585
- salt: DecV1;
586
- actId?: string;
587
- }) | ({
588
- type: "encounter.shown";
589
- eventId: string;
590
- commitSeq: DecV1;
591
- challenge: string;
592
- card: {
593
- [k: string]: Json;
594
- };
595
- actId?: string;
596
- }) | ({
597
- type: "encounter.scanned";
598
- eventId: string;
599
- commitSeq: DecV1;
600
- contactId: string;
601
- card: {
602
- [k: string]: Json;
603
- };
604
- actId?: string;
605
- }) | ({
606
- type: "encounter.recorded";
607
- eventId: string;
608
- commitSeq: DecV1;
609
- contactId: string;
610
- relationshipId: string;
611
- role: "scanner" | "displayer";
612
- actId?: string;
613
- }) | ({
614
- type: "encounter.accepted";
615
- eventId: string;
616
- commitSeq: DecV1;
617
- contactId: string;
618
- relationshipId: string;
619
- mutual: boolean;
620
- actId?: string;
621
- }) | ({
622
- type: "group.founded";
623
- eventId: string;
624
- commitSeq: DecV1;
625
- groupId: string;
626
- actId?: string;
627
- }) | ({
628
- type: "group.admitted";
629
- eventId: string;
630
- commitSeq: DecV1;
631
- groupId: string;
632
- member: string;
633
- actId?: string;
634
- }) | ({
635
- type: "group.vouched";
636
- eventId: string;
637
- commitSeq: DecV1;
638
- groupId: string;
639
- member: string;
640
- actId?: string;
641
- });
642
- export type RosterEntryV1 = {
643
- anchor: string;
644
- op: string;
645
- keyAgreement: string;
646
- addedAt: MillisV1;
647
- name?: string;
648
- contactId?: string;
649
- rkid?: string;
650
- };
651
- export type OpenInvitationV1 = {
652
- invitee: string;
653
- keyAgreement: string;
654
- contactId: string;
655
- rkid: string;
656
- threadId: string;
657
- credDigest: string;
658
- invite: {
659
- [k: string]: Json;
660
- };
661
- validUntil: MillisV1;
662
- };
663
- export type EvidenceV1 = {
664
- invite: {
665
- [k: string]: Json;
666
- };
667
- accept: {
668
- [k: string]: Json;
669
- };
670
- vouches: {
671
- [k: string]: Json;
672
- }[];
673
- at: MillisV1;
674
- };
675
- /** a group the holder is in; a listed group carries memberAnchor and memberOp (Trust 5400) */
676
- export type GroupV1 = {
677
- id: string;
678
- name: string;
679
- memberLabel: string;
680
- rules: {
681
- vouchThreshold: DecV1;
682
- };
683
- listed: boolean;
684
- roster: Record<string, RosterEntryV1>;
685
- invitations: Record<string, OpenInvitationV1>;
686
- evidence: Record<string, EvidenceV1>;
687
- preludes: Record<string, {
688
- contactId: string;
689
- rkid: string;
690
- at: MillisV1;
691
- }>;
692
- did?: string;
693
- genesis?: {
694
- [k: string]: Json;
695
- };
696
- memberAnchor?: string;
697
- memberOp?: string;
698
- acceptDigest?: string;
699
- };
700
- export type HeldCredentialV1 = {
701
- digest: string;
702
- credential: {
703
- [k: string]: Json;
704
- };
705
- };
706
- export type EnactmentRecordV1 = {
707
- ceremony: string;
708
- own: string;
709
- tCh: MillisV1;
710
- peer: string;
711
- counterpart: string;
712
- card: {
713
- [k: string]: Json;
714
- };
715
- bind: string;
716
- at: MillisV1;
717
- label: string;
718
- relId: string;
719
- role: "scanner" | "displayer";
720
- out: (HeldCredentialV1) | (null);
721
- in: (HeldCredentialV1) | (null);
722
- thread: (string) | (null);
723
- bundleDigest: (string) | (null);
724
- threads: Record<string, string>;
725
- sentCard: ({
726
- [k: string]: Json;
727
- }) | (null);
728
- counterPending: boolean;
729
- };
730
- export type IntroActV1 = {
731
- key: string;
732
- act: string;
733
- role: "requester" | "mediator" | "target";
734
- status: "sent" | "acked" | "completed" | "failed" | "received" | "forwarded" | "consented" | "refused";
735
- issuedAt: MillisV1;
736
- request: {
737
- [k: string]: Json;
738
- };
739
- requestCard: {
740
- [k: string]: Json;
741
- };
742
- reply: ({
743
- [k: string]: Json;
744
- }) | (null);
745
- replyCard: ({
746
- [k: string]: Json;
747
- }) | (null);
748
- pins: {
749
- requester?: string;
750
- target?: string;
751
- mediator?: string;
752
- };
753
- threads: {
754
- request: string;
755
- forward?: string;
756
- };
757
- at: MillisV1;
758
- ackDelayMs: number;
759
- ownLabel: (string) | (null);
760
- ack: ({
761
- [k: string]: Json;
762
- }) | (null);
763
- replyForwarded: boolean;
764
- vouchersSent: boolean;
765
- pendingVoucher: ({
766
- [k: string]: Json;
767
- }) | (null);
768
- voucher: ({
769
- [k: string]: Json;
770
- }) | (null);
771
- vouched: boolean;
772
- promptId: (string) | (null);
773
- peerName?: string;
774
- };
775
- export type RotationV1 = {
776
- id: string;
777
- from: DecV1;
778
- to: DecV1;
779
- step: "register" | "log" | "duties";
780
- startedAt: MillisV1;
781
- entry: Json;
782
- overHead: LogHeadV1;
783
- awaitHead: Record<string, (string) | (null)>;
784
- };
785
- export type PromptV1 = {
786
- id: string;
787
- kind: "encounter-confirm" | "group-invite" | "introduction";
788
- openedAt: MillisV1;
789
- contactId?: string;
790
- groupId?: string;
791
- expiresAt?: MillisV1;
792
- };
793
- export type ActRecordV1 = {
794
- actId: string;
795
- inputHash: string;
796
- commitSeq: DecV1;
797
- outboundDigests: string[];
798
- events: EventV1[];
799
- at: MillisV1;
800
- };
801
- //# sourceMappingURL=holder-state-v1.d.ts.map