@real-life/trust-protocol 0.1.0 → 0.2.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 (44) hide show
  1. package/README.md +19 -10
  2. package/dist/carrier-identity.d.ts +20 -0
  3. package/dist/carrier-identity.d.ts.map +1 -0
  4. package/dist/carrier-identity.js +115 -0
  5. package/dist/carrier-identity.js.map +1 -0
  6. package/dist/carrier.d.ts +157 -0
  7. package/dist/carrier.d.ts.map +1 -0
  8. package/dist/carrier.js +577 -0
  9. package/dist/carrier.js.map +1 -0
  10. package/dist/holder.d.ts +42 -0
  11. package/dist/holder.d.ts.map +1 -0
  12. package/dist/holder.js +92 -0
  13. package/dist/holder.js.map +1 -0
  14. package/dist/index.d.ts +4 -0
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +18 -7
  17. package/dist/index.js.map +1 -1
  18. package/dist/probe/acks.d.ts +27 -0
  19. package/dist/probe/acks.d.ts.map +1 -0
  20. package/dist/probe/acks.js +119 -0
  21. package/dist/probe/acks.js.map +1 -0
  22. package/dist/probe/continuity.d.ts +3 -82
  23. package/dist/probe/continuity.d.ts.map +1 -1
  24. package/dist/probe/continuity.js +627 -147
  25. package/dist/probe/continuity.js.map +1 -1
  26. package/dist/probe/trust.d.ts +114 -74
  27. package/dist/probe/trust.d.ts.map +1 -1
  28. package/dist/probe/trust.js +1090 -232
  29. package/dist/probe/trust.js.map +1 -1
  30. package/dist/probe.d.ts +1 -2
  31. package/dist/probe.d.ts.map +1 -1
  32. package/dist/probe.js +6 -8
  33. package/dist/probe.js.map +1 -1
  34. package/dist/schemas.js +22 -22
  35. package/dist/schemas.js.map +1 -1
  36. package/dist/visibility.d.ts +6 -0
  37. package/dist/visibility.d.ts.map +1 -0
  38. package/dist/visibility.js +30 -0
  39. package/dist/visibility.js.map +1 -0
  40. package/dist/wire.d.ts +575 -0
  41. package/dist/wire.d.ts.map +1 -0
  42. package/dist/wire.js +2 -0
  43. package/dist/wire.js.map +1 -0
  44. package/package.json +8 -3
@@ -4,96 +4,17 @@ export declare const snapshotPriors: (p: Person) => {
4
4
  own: any[];
5
5
  counterpart: string[];
6
6
  };
7
- export declare function buildProbe(p: Person, newKey: string, ent?: any): Promise<{
7
+ export declare function buildProbe(p: Person, newKey: string, when: number, ent?: any): Promise<{
8
8
  to: any;
9
9
  kind: string;
10
10
  env: C.Envelope;
11
11
  }[] | null>;
12
- export declare function receiveContinuity(p: Person, env: any, when: number, ent?: any): Promise<{
13
- handled: boolean;
14
- partial: boolean;
15
- error?: undefined;
16
- matches?: undefined;
17
- chained?: undefined;
18
- name?: undefined;
19
- outbound?: undefined;
20
- outboundError?: undefined;
21
- } | {
22
- handled: boolean;
23
- matches: number;
24
- error?: undefined;
25
- partial?: undefined;
26
- chained?: undefined;
27
- name?: undefined;
28
- outbound?: undefined;
29
- outboundError?: undefined;
30
- } | {
31
- handled: boolean;
32
- matches: number;
33
- chained: boolean;
34
- name: any;
35
- outbound: {
36
- to: any;
37
- kind: string;
38
- env: C.Envelope;
39
- }[];
40
- outboundError: string | undefined;
41
- error?: undefined;
42
- partial?: undefined;
43
- } | {
44
- handled: boolean;
45
- error: string;
46
- chained?: undefined;
47
- name?: undefined;
48
- outbound?: undefined;
49
- outboundError?: undefined;
50
- } | {
51
- handled: boolean;
52
- chained: boolean;
53
- name: any;
54
- outbound: {
55
- to: any;
56
- kind: string;
57
- env: C.Envelope;
58
- }[];
59
- outboundError: string;
60
- error?: undefined;
61
- } | {
62
- handled: boolean;
63
- chained: boolean;
64
- name: any;
65
- outbound: {
66
- to: any;
67
- kind: string;
68
- env: C.Envelope;
69
- }[];
70
- error?: undefined;
71
- outboundError?: undefined;
72
- } | {
73
- handled: boolean;
74
- doc: any;
75
- } | {
76
- handled: boolean;
77
- duplicate: boolean;
78
- } | {
79
- handled: boolean;
80
- duplicate?: undefined;
81
- }>;
12
+ export declare function receiveContinuity(p: Person, env: any, when: number, ent?: any): Promise<any>;
82
13
  /**
83
14
  * The host's producing call for a mapping the receiver still owes
84
15
  * (review 6, B-3): a transient seal failure during probe/mapping
85
16
  * handling persists the obligation in contMappingDue; this call — not a
86
17
  * redelivery, which the freshness rule forbids — builds and returns it.
87
18
  */
88
- export declare function flushContinuity(p: Person, newKey: string, when: number, ent?: any): Promise<{
89
- outbound: never[];
90
- pending: boolean;
91
- } | {
92
- outbound: {
93
- to: any;
94
- kind: string;
95
- env: C.Envelope;
96
- }[];
97
- pending?: undefined;
98
- }>;
19
+ export declare function flushContinuity(p: Person, newKey: string, when: number, ent?: any): Promise<any>;
99
20
  //# sourceMappingURL=continuity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"continuity.d.ts","sourceRoot":"","sources":["../../src/probe/continuity.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAiBvC,eAAO,MAAM,cAAc,GAAI,GAAG,MAAM;;;CAGtC,CAAA;AAGF,wBAAsB,UAAU,CAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAE,GAAQ;;;;YAkBzE;AAgDD,wBAAsB,iBAAiB,CAAE,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,GAAE,GAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOxF;AAsGD;;;;;GAKG;AACH,wBAAsB,eAAe,CAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,GAAE,GAAQ;;;;;;;;;;GAkB5F"}
1
+ {"version":3,"file":"continuity.d.ts","sourceRoot":"","sources":["../../src/probe/continuity.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,CAAC,MAAM,WAAW,CAA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