@rootintf/protocol-2phw 3.0.13-api.2 → 3.1.2-api.4

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 (29) hide show
  1. package/README.md +78 -35
  2. package/dist/twoPhW.cjs.js +233 -517
  3. package/dist/twoPhW.d.ts +62 -43
  4. package/dist/twoPhW.es.mjs +233 -511
  5. package/package.json +5 -6
  6. package/src/twoPhW.ts +283 -188
  7. package/dist/generated/iface-TwoPhW/index.d.mts +0 -25
  8. package/dist/generated/iface-TwoPhW/validate.d.cts +0 -76
  9. package/dist/generated/iface-TwoPhW/validate.d.mts +0 -75
  10. package/schema/schema_MsgOptions.json +0 -12
  11. package/schema/schema_Options_delay.json +0 -17
  12. package/src/generated/.gitattributes +0 -4
  13. package/src/generated/iface-TwoPhW/index.cjs +0 -26
  14. package/src/generated/iface-TwoPhW/index.d.cts +0 -25
  15. package/src/generated/iface-TwoPhW/index.d.mts +0 -25
  16. package/src/generated/iface-TwoPhW/index.d.ts +0 -25
  17. package/src/generated/iface-TwoPhW/index.mjs +0 -23
  18. package/src/generated/iface-TwoPhW/package.json +0 -36
  19. package/src/generated/iface-TwoPhW/schema/schema_TwoPhW.json +0 -131
  20. package/src/generated/iface-TwoPhW/validate.cjs +0 -1
  21. package/src/generated/iface-TwoPhW/validate.mjs +0 -1
  22. package/src/generated/iface-introspection/index.cjs +0 -13
  23. package/src/generated/iface-introspection/index.d.cts +0 -6
  24. package/src/generated/iface-introspection/index.d.mts +0 -6
  25. package/src/generated/iface-introspection/index.d.ts +0 -6
  26. package/src/generated/iface-introspection/index.mjs +0 -10
  27. package/src/generated/iface-introspection/package.json +0 -30
  28. package/src/schema-cache/.gitattributes +0 -4
  29. package/src/schema-cache/5fdbd096ad99962b7e3d77cde8bd355fe180c859f35a61cfd07ee36b96c6700a.json +0 -131
@@ -1,30 +0,0 @@
1
- {
2
- "name": "@rootintf/iface-introspection",
3
- "version": "3.1.29",
4
- "description": "IPSME interface introspection — generated from ifacegenconfig.json (friendly interface name -> schema sha256)",
5
- "type": "module",
6
- "main": "index.cjs",
7
- "module": "index.mjs",
8
- "types": "index.d.cts",
9
- "exports": {
10
- ".": {
11
- "import": {
12
- "types": "./index.d.mts",
13
- "default": "./index.mjs"
14
- },
15
- "require": {
16
- "types": "./index.d.cts",
17
- "default": "./index.cjs"
18
- }
19
- }
20
- },
21
- "files": [
22
- "index.mjs",
23
- "index.cjs",
24
- "index.d.ts",
25
- "index.d.cts",
26
- "index.d.mts"
27
- ],
28
- "sideEffects": false,
29
- "license": "ISC"
30
- }
@@ -1,4 +0,0 @@
1
- # generated by iface-gen: byte-stability pin -- everything in this gen-managed dir is
2
- # written LF (content-addressed cache blobs, embedded schema bytes, generated sources).
3
- # eol=lf stops a core.autocrlf=true checkout from smudging it to CRLF (hash breaks / churn).
4
- * text eol=lf
@@ -1,131 +0,0 @@
1
- {
2
- "$id": "https://root-interface.se/protocols/TwoPhW",
3
- "$schema": "https://json-schema.org/draft/2019-09/schema",
4
- "schemas": {
5
- "https://root-interface.se/protocols/TwoPhW/definitions": {
6
- "$id": "https://root-interface.se/protocols/TwoPhW/definitions",
7
- "$schema": "https://json-schema.org/draft/2019-09/schema",
8
- "definitions": {
9
- "_v": {
10
- "const": "2"
11
- }
12
- }
13
- },
14
- "https://root-interface.se/protocols/TwoPhW/JSON_MsgWarp": {
15
- "$id": "https://root-interface.se/protocols/TwoPhW/JSON_MsgWarp",
16
- "$schema": "https://json-schema.org/draft/2019-09/schema",
17
- "$comment": "phase 1, sender -> receiver: the request to warp `user` to `hyperport`. `id` names the whole exchange (every later message reaches it through its _cause chain). `ttl_msec` is measured from this message's own dt. `instantaneous` = single phase: the AckWarp concludes the exchange, no Engage follows.",
18
- "type": "object",
19
- "required": [
20
- "warp",
21
- "2PhW"
22
- ],
23
- "properties": {
24
- "warp": {
25
- "type": "object",
26
- "required": [
27
- "id",
28
- "user",
29
- "hyperport",
30
- "ttl_msec"
31
- ],
32
- "properties": {
33
- "id": {
34
- "type": "string"
35
- },
36
- "ttl_msec": {
37
- "type": "integer",
38
- "exclusiveMinimum": 0
39
- },
40
- "instantaneous": {
41
- "type": "boolean"
42
- }
43
- }
44
- },
45
- "2PhW": {
46
- "$ref": "definitions#/definitions/_v"
47
- }
48
- },
49
- "x-base": "JSON_Msg"
50
- },
51
- "https://root-interface.se/protocols/TwoPhW/JSON_AckWarp": {
52
- "$id": "https://root-interface.se/protocols/TwoPhW/JSON_AckWarp",
53
- "$schema": "https://json-schema.org/draft/2019-09/schema",
54
- "$comment": "phase 1, receiver -> sender: the verdict on a JSON_MsgWarp, which rides in the base JSON_Ack's _cause. The base's ok flag IS the verdict; ok:false ends the exchange.",
55
- "type": "object",
56
- "required": [
57
- "ack",
58
- "2PhW"
59
- ],
60
- "properties": {
61
- "_cause": {
62
- "$ref": "JSON_MsgWarp"
63
- },
64
- "ack": {
65
- "type": "object"
66
- },
67
- "2PhW": {
68
- "$ref": "definitions#/definitions/_v"
69
- }
70
- },
71
- "x-base": "JSON_Ack"
72
- },
73
- "https://root-interface.se/protocols/TwoPhW/JSON_EffEngage": {
74
- "$id": "https://root-interface.se/protocols/TwoPhW/JSON_EffEngage",
75
- "$schema": "https://json-schema.org/draft/2019-09/schema",
76
- "$comment": "phase 2, sender -> receiver: commit the warp. _cause is the JSON_MsgWarp itself (not its ack). `rtt_msec` is the round trip the sender measured, from the warp's dt to the creation of this engage; it extends the window in which the JSON_AckEngage is accepted. It is capped at 2 * ttl_msec; a schema cannot relate two fields, so the cap is enforced by the protocol (an engage that claims more is refused).",
77
- "type": "object",
78
- "required": [
79
- "engage",
80
- "2PhW"
81
- ],
82
- "properties": {
83
- "_cause": {
84
- "$ref": "JSON_MsgWarp"
85
- },
86
- "engage": {
87
- "type": "object",
88
- "required": [
89
- "ok",
90
- "rtt_msec"
91
- ],
92
- "properties": {
93
- "ok": {
94
- "type": "boolean"
95
- },
96
- "rtt_msec": {
97
- "type": "integer",
98
- "minimum": 0
99
- }
100
- }
101
- },
102
- "2PhW": {
103
- "$ref": "definitions#/definitions/_v"
104
- }
105
- },
106
- "x-base": "JSON_Eff"
107
- },
108
- "https://root-interface.se/protocols/TwoPhW/JSON_AckEngage": {
109
- "$id": "https://root-interface.se/protocols/TwoPhW/JSON_AckEngage",
110
- "$schema": "https://json-schema.org/draft/2019-09/schema",
111
- "$comment": "phase 2, receiver -> sender: the verdict on a JSON_EffEngage, which rides in the base JSON_Ack's _cause (its own _cause is the JSON_MsgWarp). Concludes the exchange.",
112
- "type": "object",
113
- "required": [
114
- "ack",
115
- "2PhW"
116
- ],
117
- "properties": {
118
- "_cause": {
119
- "$ref": "JSON_EffEngage"
120
- },
121
- "ack": {
122
- "type": "object"
123
- },
124
- "2PhW": {
125
- "$ref": "definitions#/definitions/_v"
126
- }
127
- },
128
- "x-base": "JSON_Ack"
129
- }
130
- }
131
- }