keri-ts 1.0.0 → 2.0.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 (742) hide show
  1. package/README.md +23 -0
  2. package/esm/keri/npm/src/acdc/chaining.js +213 -0
  3. package/esm/keri/npm/src/acdc/dhking.js +716 -0
  4. package/esm/keri/npm/src/acdc/messaging.js +2 -0
  5. package/esm/keri/npm/src/acdc/observing.js +40 -7
  6. package/esm/keri/npm/src/acdc/regbasing.js +13 -2
  7. package/esm/keri/npm/src/acdc/regengine.js +71 -23
  8. package/esm/keri/npm/src/acdc/regeventing.js +163 -44
  9. package/esm/keri/npm/src/acdc/registering.js +93 -14
  10. package/esm/keri/npm/src/acdc/relating.js +59 -0
  11. package/esm/keri/npm/src/acdc/salting.js +720 -0
  12. package/esm/keri/npm/src/acdc/scheming.js +94 -39
  13. package/esm/keri/npm/src/acdc/unblinding.js +1042 -0
  14. package/esm/keri/npm/src/app/{authenticating.js → bootstrap/authenticating.js} +39 -18
  15. package/esm/keri/npm/src/app/bootstrap/bootstrapping.js +109 -0
  16. package/esm/keri/npm/src/app/{oobi-replies.js → bootstrap/oobi-replies.js} +8 -6
  17. package/esm/keri/npm/src/app/{oobiery.js → bootstrap/oobiery.js} +161 -75
  18. package/esm/keri/npm/src/app/credentials/credential-importing.js +201 -0
  19. package/esm/keri/npm/src/app/credentials/credential-proposals.js +120 -0
  20. package/esm/keri/npm/src/app/credentials/credential-revoking.js +165 -0
  21. package/esm/keri/npm/src/app/credentials/credential-workflows.js +365 -0
  22. package/esm/keri/npm/src/app/credentials/tel-publishing.js +27 -0
  23. package/esm/keri/npm/src/app/{verifying.js → credentials/verifying.js} +50 -6
  24. package/esm/keri/npm/src/app/delivery/forwarding.js +600 -0
  25. package/esm/keri/npm/src/app/delivery/introducing.js +68 -0
  26. package/esm/keri/npm/src/app/{reply-streams.js → delivery/reply-streams.js} +52 -7
  27. package/esm/keri/npm/src/app/delivery/respondant.js +159 -0
  28. package/esm/keri/npm/src/app/{stored-replies.js → delivery/stored-replies.js} +4 -4
  29. package/esm/keri/npm/src/app/exchanges/essr.js +111 -0
  30. package/esm/keri/npm/src/app/exchanges/exchange-messaging.js +66 -0
  31. package/esm/keri/npm/src/app/exchanges/exchanging.js +1354 -0
  32. package/esm/keri/npm/src/app/{configing.js → identity/configing.js} +4 -4
  33. package/esm/keri/npm/src/app/{delegating.js → identity/delegating.js} +99 -29
  34. package/esm/keri/npm/src/app/{endpoint-roleing.js → identity/endpoint-roleing.js} +36 -36
  35. package/esm/keri/npm/src/app/{habbing.js → identity/habbing.js} +232 -150
  36. package/esm/keri/npm/src/app/{keeping.js → identity/keeping.js} +60 -56
  37. package/esm/keri/npm/src/app/{organizing.js → identity/organizing.js} +47 -21
  38. package/esm/keri/npm/src/app/ipex/ipex-building.js +162 -0
  39. package/esm/keri/npm/src/app/{ipex-credentialing.js → ipex/ipex-credentialing.js} +142 -31
  40. package/esm/keri/npm/src/app/ipex/ipex-graph.js +243 -0
  41. package/esm/keri/npm/src/app/ipex/ipex-grouping.js +664 -0
  42. package/esm/keri/npm/src/app/{ipex-node-authentication.js → ipex/ipex-node-authentication.js} +83 -6
  43. package/esm/keri/npm/src/app/ipex/ipex-v2.js +692 -0
  44. package/esm/keri/npm/src/app/{ipexing.js → ipex/ipexing.js} +58 -1
  45. package/esm/keri/npm/src/app/mailbox/forward-handler.js +228 -0
  46. package/esm/keri/npm/src/app/{mailbox-director.js → mailbox/mailbox-director.js} +120 -15
  47. package/esm/keri/npm/src/app/mailbox/mailbox-poller.js +305 -0
  48. package/esm/keri/npm/src/app/mailbox/mailbox-sse.js +254 -0
  49. package/esm/keri/npm/src/app/{mailboxing.js → mailbox/mailboxing.js} +118 -67
  50. package/esm/keri/npm/src/app/mailbox/topic-routing.js +54 -0
  51. package/esm/keri/npm/src/app/multisig/group-members.js +173 -0
  52. package/esm/keri/npm/src/app/{grouping.js → multisig/grouping.js} +384 -70
  53. package/esm/keri/npm/src/app/multisig/multisig-messaging.js +164 -0
  54. package/esm/keri/npm/src/app/multisig/multisig-workflows.js +821 -0
  55. package/esm/keri/npm/src/app/{notifying.js → notifications/notifying.js} +8 -14
  56. package/esm/keri/npm/src/app/{signaling.js → notifications/signaling.js} +1 -1
  57. package/esm/keri/npm/src/app/{parsering.js → protocol/parsering.js} +86 -18
  58. package/esm/keri/npm/src/app/protocol/protocol-processing.js +245 -0
  59. package/esm/keri/npm/src/app/protocol/reactor.js +55 -0
  60. package/esm/keri/npm/src/app/{query-replies.js → queries/query-replies.js} +57 -6
  61. package/esm/keri/npm/src/app/queries/querying.js +306 -0
  62. package/esm/keri/npm/src/app/queries/witness-inquisitor.js +415 -0
  63. package/esm/keri/npm/src/app/{abortable.js → runtime/abortable.js} +43 -4
  64. package/esm/keri/npm/src/app/runtime/agent-runtime.js +633 -0
  65. package/esm/keri/npm/src/app/runtime/cue-runtime.js +61 -0
  66. package/esm/keri/npm/src/app/runtime/runtime-clock.js +6 -0
  67. package/esm/keri/npm/src/app/{byte-source.js → transport/byte-source.js} +36 -6
  68. package/esm/keri/npm/src/app/transport/cesr-egress.js +317 -0
  69. package/esm/keri/npm/src/app/{cesr-http.js → transport/cesr-http.js} +20 -55
  70. package/esm/keri/npm/src/app/transport/http-client.js +172 -0
  71. package/esm/keri/npm/src/app/transport/http-messenger.js +52 -0
  72. package/esm/keri/npm/src/app/transport/http-stream-messenger.js +60 -0
  73. package/esm/keri/npm/src/app/transport/httping.js +57 -0
  74. package/esm/keri/npm/src/app/transport/message-source.js +77 -0
  75. package/esm/keri/npm/src/app/transport/messengering.js +68 -0
  76. package/esm/keri/npm/src/app/{socket-source.js → transport/socket-source.js} +39 -2
  77. package/esm/keri/npm/src/app/transport/tcp-egress.js +377 -0
  78. package/esm/keri/npm/src/app/transport/tcp-messenger.js +162 -0
  79. package/esm/keri/npm/src/app/transport/tcp-stream-messenger.js +40 -0
  80. package/esm/keri/npm/src/app/transport/transport-error.js +14 -0
  81. package/esm/keri/npm/src/app/witness/http-endpoints.js +185 -0
  82. package/esm/keri/npm/src/app/witness/ingress.js +148 -0
  83. package/esm/keri/npm/src/app/witness/receipt-client.js +248 -0
  84. package/esm/keri/npm/src/app/witness/receipt-messages.js +29 -0
  85. package/esm/keri/npm/src/app/witness/receipting.js +323 -0
  86. package/esm/keri/npm/src/app/witness/registration.js +50 -0
  87. package/esm/keri/npm/src/cli/common/bootstrap.js +12 -0
  88. package/esm/keri/npm/src/{app/cli → cli}/common/context.js +47 -6
  89. package/esm/keri/npm/src/{app/cli → cli}/common/existing.js +9 -11
  90. package/esm/keri/npm/src/cli/common/parsing.js +279 -0
  91. package/esm/keri/npm/src/cli/common/passcode.js +66 -0
  92. package/esm/keri/npm/src/cli/common/tel-completion.js +24 -0
  93. package/esm/keri/npm/src/{app/cli → cli}/common/witness-auth.js +2 -2
  94. package/esm/keri/npm/src/cli/credentials/ipex.js +702 -0
  95. package/esm/keri/npm/src/cli/credentials/vc.js +399 -0
  96. package/esm/keri/npm/src/{app/cli → cli/endpoints}/did.js +63 -36
  97. package/esm/keri/npm/src/{app/cli → cli/endpoints}/ends.js +33 -28
  98. package/esm/keri/npm/src/{app/cli → cli/endpoints}/loc.js +16 -11
  99. package/esm/keri/npm/src/cli/endpoints/oobi-clean.js +134 -0
  100. package/esm/keri/npm/src/{app/cli → cli/endpoints}/oobi.js +35 -32
  101. package/esm/keri/npm/src/{app/cli → cli/identity}/aid.js +8 -7
  102. package/esm/keri/npm/src/{app/cli → cli/identity}/challenge.js +60 -49
  103. package/esm/keri/npm/src/{app/cli → cli/identity}/delegate.js +61 -26
  104. package/esm/keri/npm/src/{app/cli → cli/identity}/export.js +9 -8
  105. package/esm/keri/npm/src/cli/identity/incept.js +181 -0
  106. package/esm/keri/npm/src/cli/identity/init.js +153 -0
  107. package/esm/keri/npm/src/cli/identity/interact.js +84 -0
  108. package/esm/keri/npm/src/{app/cli → cli/identity}/list.js +7 -6
  109. package/esm/keri/npm/src/{app/cli → cli/identity}/rotate.js +60 -57
  110. package/esm/keri/npm/src/cli/index.js +38 -0
  111. package/esm/keri/npm/src/{app/cli → cli/messaging}/exchange.js +24 -22
  112. package/esm/keri/npm/src/{app/cli → cli/messaging}/multisig.js +165 -156
  113. package/esm/keri/npm/src/{app/cli → cli/messaging}/notifications.js +26 -22
  114. package/esm/keri/npm/src/{app/cli → cli}/output.js +1 -1
  115. package/esm/keri/npm/src/{app/cli → cli/tools}/annotate.js +10 -4
  116. package/esm/keri/npm/src/{app/cli → cli/tools}/benchmark.js +15 -4
  117. package/esm/keri/npm/src/{app/cli → cli/tools}/db-dump.js +11 -10
  118. package/esm/keri/npm/src/{app/cli → cli/tools}/saidify.js +3 -2
  119. package/esm/keri/npm/src/{app/cli → cli/tools}/sign.js +16 -10
  120. package/esm/keri/npm/src/{app/cli → cli/tools}/verify.js +10 -10
  121. package/esm/keri/npm/src/core/attachment-countering.js +31 -1
  122. package/esm/keri/npm/src/core/{exchange-proofing.js → exchange/exchange-proofing.js} +32 -2
  123. package/esm/keri/npm/src/core/{protocol-exchanging.js → exchange/protocol-exchanging.js} +26 -4
  124. package/esm/keri/npm/src/core/genus-framing.js +44 -0
  125. package/esm/keri/npm/src/core/{eventing.js → kel/eventing.js} +57 -25
  126. package/esm/keri/npm/src/core/{kever-decisions.js → kel/kever-decisions.js} +24 -12
  127. package/esm/keri/npm/src/core/{kever.js → kel/kever.js} +4 -4
  128. package/esm/keri/npm/src/core/logger.js +3 -3
  129. package/esm/keri/npm/src/core/{kram-policy.js → mailbox/kram-policy.js} +14 -4
  130. package/esm/keri/npm/src/core/{kram-pruning.js → mailbox/kram-pruning.js} +3 -3
  131. package/esm/keri/npm/src/core/{kram-signatures.js → mailbox/kram-signatures.js} +1 -1
  132. package/esm/keri/npm/src/core/{kram-staging.js → mailbox/kram-staging.js} +6 -6
  133. package/esm/keri/npm/src/core/{kram-time.js → mailbox/kram-time.js} +4 -3
  134. package/esm/keri/npm/src/core/{kraming.js → mailbox/kraming.js} +2 -2
  135. package/esm/keri/npm/src/core/protocol-eventing.js +1 -1
  136. package/esm/keri/npm/src/core/protocol-serialization.js +9 -34
  137. package/esm/keri/npm/src/core/routing.js +52 -17
  138. package/esm/keri/npm/src/db/baser-defaults.js +11 -0
  139. package/esm/keri/npm/src/db/basing.js +89 -232
  140. package/esm/keri/npm/src/db/core/lmdber.js +102 -63
  141. package/esm/keri/npm/src/db/escrowing.js +73 -49
  142. package/esm/keri/npm/src/db/exchange/exchange-nests.js +54 -0
  143. package/esm/keri/npm/src/db/exchange/exchange-records.js +7 -0
  144. package/esm/keri/npm/src/db/index.js +5 -4
  145. package/esm/keri/npm/src/db/keeping.js +122 -3
  146. package/esm/keri/npm/src/db/{kram-factors.js → mailbox/kram-factors.js} +1 -1
  147. package/esm/keri/npm/src/db/{mailboxing.js → mailbox/mailboxing.js} +3 -3
  148. package/esm/keri/npm/src/db/reger.js +38 -29
  149. package/esm/keri/npm/src/db/{kel-replay.js → replay/kel-replay.js} +11 -4
  150. package/esm/keri/npm/src/db/{tel-replay.js → replay/tel-replay.js} +34 -0
  151. package/esm/keri/npm/src/db/{witness-replay.js → replay/witness-replay.js} +2 -2
  152. package/esm/keri/npm/src/db/subing.js +2 -3
  153. package/esm/keri/npm/src/did/webs/artifacts.js +15 -18
  154. package/esm/keri/npm/src/did/webs/designated-aliases.js +5 -7
  155. package/esm/keri/npm/src/did/webs/resolving.js +73 -56
  156. package/esm/keri/npm/src/library/index.js +1 -1
  157. package/esm/keri/npm/src/npm/cli.js +1 -1
  158. package/esm/keri/npm/src/npm/index.js +1 -1
  159. package/esm/keri/npm/src/runtime/index.js +79 -47
  160. package/esm/keri/npm/src/vdr/backer-state.js +55 -0
  161. package/esm/keri/npm/src/vdr/credential-tsn-record.js +59 -0
  162. package/esm/keri/npm/src/vdr/credentialing.js +84 -82
  163. package/esm/keri/npm/src/vdr/eventing.js +592 -204
  164. package/esm/keri/npm/src/vdr/registry-tsn-record.js +55 -0
  165. package/esm/keri/npm/src/vdr/revoking.js +90 -0
  166. package/esm/keri/npm/src/vdr/tel-anchor.js +29 -0
  167. package/esm/keri/npm/src/vdr/tel-publication.js +178 -0
  168. package/esm/keri/npm/src/{app/version.js → version.js} +2 -2
  169. package/package.json +5 -3
  170. package/types/_dnt.polyfills.d.ts +6 -0
  171. package/types/_dnt.polyfills.d.ts.map +1 -1
  172. package/types/acdc/chaining.d.ts +35 -0
  173. package/types/acdc/chaining.d.ts.map +1 -0
  174. package/types/acdc/dhking.d.ts +136 -0
  175. package/types/acdc/dhking.d.ts.map +1 -0
  176. package/types/acdc/messaging.d.ts.map +1 -1
  177. package/types/acdc/observing.d.ts +18 -7
  178. package/types/acdc/observing.d.ts.map +1 -1
  179. package/types/acdc/regbasing.d.ts +3 -1
  180. package/types/acdc/regbasing.d.ts.map +1 -1
  181. package/types/acdc/regengine.d.ts +9 -4
  182. package/types/acdc/regengine.d.ts.map +1 -1
  183. package/types/acdc/regeventing.d.ts +24 -7
  184. package/types/acdc/regeventing.d.ts.map +1 -1
  185. package/types/acdc/registering.d.ts +22 -6
  186. package/types/acdc/registering.d.ts.map +1 -1
  187. package/types/acdc/registraring.d.ts +1 -1
  188. package/types/acdc/registraring.d.ts.map +1 -1
  189. package/types/acdc/relating.d.ts +21 -0
  190. package/types/acdc/relating.d.ts.map +1 -0
  191. package/types/acdc/salting.d.ts +241 -0
  192. package/types/acdc/salting.d.ts.map +1 -0
  193. package/types/acdc/scheming.d.ts +1 -1
  194. package/types/acdc/scheming.d.ts.map +1 -1
  195. package/types/acdc/unblinding.d.ts +150 -0
  196. package/types/acdc/unblinding.d.ts.map +1 -0
  197. package/types/app/bootstrap/authenticating.d.ts +54 -0
  198. package/types/app/bootstrap/authenticating.d.ts.map +1 -0
  199. package/types/app/bootstrap/bootstrapping.d.ts +45 -0
  200. package/types/app/bootstrap/bootstrapping.d.ts.map +1 -0
  201. package/types/app/{oobi-replies.d.ts → bootstrap/oobi-replies.d.ts} +1 -1
  202. package/types/app/bootstrap/oobi-replies.d.ts.map +1 -0
  203. package/types/app/{oobiery.d.ts → bootstrap/oobiery.d.ts} +98 -25
  204. package/types/app/bootstrap/oobiery.d.ts.map +1 -0
  205. package/types/app/credentials/credential-importing.d.ts +29 -0
  206. package/types/app/credentials/credential-importing.d.ts.map +1 -0
  207. package/types/app/credentials/credential-proposals.d.ts +27 -0
  208. package/types/app/credentials/credential-proposals.d.ts.map +1 -0
  209. package/types/app/credentials/credential-revoking.d.ts +44 -0
  210. package/types/app/credentials/credential-revoking.d.ts.map +1 -0
  211. package/types/app/credentials/credential-workflows.d.ts +149 -0
  212. package/types/app/credentials/credential-workflows.d.ts.map +1 -0
  213. package/types/app/{schema-resolving.d.ts → credentials/schema-resolving.d.ts} +2 -2
  214. package/types/app/credentials/schema-resolving.d.ts.map +1 -0
  215. package/types/app/credentials/tel-publishing.d.ts +16 -0
  216. package/types/app/credentials/tel-publishing.d.ts.map +1 -0
  217. package/types/app/{verifying.d.ts → credentials/verifying.d.ts} +19 -7
  218. package/types/app/credentials/verifying.d.ts.map +1 -0
  219. package/types/app/delivery/forwarding.d.ts +227 -0
  220. package/types/app/delivery/forwarding.d.ts.map +1 -0
  221. package/types/app/delivery/introducing.d.ts +21 -0
  222. package/types/app/delivery/introducing.d.ts.map +1 -0
  223. package/types/app/delivery/reply-streams.d.ts +49 -0
  224. package/types/app/delivery/reply-streams.d.ts.map +1 -0
  225. package/types/app/delivery/respondant.d.ts +52 -0
  226. package/types/app/delivery/respondant.d.ts.map +1 -0
  227. package/types/app/{stored-replies.d.ts → delivery/stored-replies.d.ts} +1 -1
  228. package/types/app/delivery/stored-replies.d.ts.map +1 -0
  229. package/types/app/exchanges/essr.d.ts +53 -0
  230. package/types/app/exchanges/essr.d.ts.map +1 -0
  231. package/types/app/exchanges/exchange-messaging.d.ts +73 -0
  232. package/types/app/exchanges/exchange-messaging.d.ts.map +1 -0
  233. package/types/app/exchanges/exchanging.d.ts +379 -0
  234. package/types/app/exchanges/exchanging.d.ts.map +1 -0
  235. package/types/app/{challenging.d.ts → identity/challenging.d.ts} +3 -3
  236. package/types/app/identity/challenging.d.ts.map +1 -0
  237. package/types/app/{configing.d.ts → identity/configing.d.ts} +1 -1
  238. package/types/app/identity/configing.d.ts.map +1 -0
  239. package/types/app/{delegating.d.ts → identity/delegating.d.ts} +52 -15
  240. package/types/app/identity/delegating.d.ts.map +1 -0
  241. package/types/app/{endpoint-roleing.d.ts → identity/endpoint-roleing.d.ts} +24 -13
  242. package/types/app/identity/endpoint-roleing.d.ts.map +1 -0
  243. package/types/app/{habbing.d.ts → identity/habbing.d.ts} +73 -32
  244. package/types/app/identity/habbing.d.ts.map +1 -0
  245. package/types/app/{keeping.d.ts → identity/keeping.d.ts} +19 -5
  246. package/types/app/identity/keeping.d.ts.map +1 -0
  247. package/types/app/{organizing.d.ts → identity/organizing.d.ts} +19 -4
  248. package/types/app/identity/organizing.d.ts.map +1 -0
  249. package/types/app/ipex/ipex-building.d.ts +30 -0
  250. package/types/app/ipex/ipex-building.d.ts.map +1 -0
  251. package/types/app/{ipex-credentialing.d.ts → ipex/ipex-credentialing.d.ts} +33 -6
  252. package/types/app/ipex/ipex-credentialing.d.ts.map +1 -0
  253. package/types/app/ipex/ipex-graph.d.ts +28 -0
  254. package/types/app/ipex/ipex-graph.d.ts.map +1 -0
  255. package/types/app/ipex/ipex-grouping.d.ts +112 -0
  256. package/types/app/ipex/ipex-grouping.d.ts.map +1 -0
  257. package/types/app/{ipex-node-authentication.d.ts → ipex/ipex-node-authentication.d.ts} +10 -5
  258. package/types/app/ipex/ipex-node-authentication.d.ts.map +1 -0
  259. package/types/app/ipex/ipex-v2.d.ts +71 -0
  260. package/types/app/ipex/ipex-v2.d.ts.map +1 -0
  261. package/types/app/{ipexing.d.ts → ipex/ipexing.d.ts} +21 -6
  262. package/types/app/ipex/ipexing.d.ts.map +1 -0
  263. package/types/app/mailbox/forward-handler.d.ts +68 -0
  264. package/types/app/mailbox/forward-handler.d.ts.map +1 -0
  265. package/types/app/mailbox/mailbox-director.d.ts +252 -0
  266. package/types/app/mailbox/mailbox-director.d.ts.map +1 -0
  267. package/types/app/mailbox/mailbox-poller.d.ts +149 -0
  268. package/types/app/mailbox/mailbox-poller.d.ts.map +1 -0
  269. package/types/app/mailbox/mailbox-sse.d.ts +63 -0
  270. package/types/app/mailbox/mailbox-sse.d.ts.map +1 -0
  271. package/types/app/{mailboxing.d.ts → mailbox/mailboxing.d.ts} +92 -40
  272. package/types/app/mailbox/mailboxing.d.ts.map +1 -0
  273. package/types/app/mailbox/topic-routing.d.ts +18 -0
  274. package/types/app/mailbox/topic-routing.d.ts.map +1 -0
  275. package/types/app/multisig/group-members.d.ts +60 -0
  276. package/types/app/multisig/group-members.d.ts.map +1 -0
  277. package/types/app/{grouping.d.ts → multisig/grouping.d.ts} +142 -19
  278. package/types/app/multisig/grouping.d.ts.map +1 -0
  279. package/types/app/multisig/multisig-messaging.d.ts +97 -0
  280. package/types/app/multisig/multisig-messaging.d.ts.map +1 -0
  281. package/types/app/multisig/multisig-workflows.d.ts +85 -0
  282. package/types/app/multisig/multisig-workflows.d.ts.map +1 -0
  283. package/types/app/{notifying.d.ts → notifications/notifying.d.ts} +4 -5
  284. package/types/app/notifications/notifying.d.ts.map +1 -0
  285. package/types/app/notifications/signaling.d.ts.map +1 -0
  286. package/types/app/{parsering.d.ts → protocol/parsering.d.ts} +40 -11
  287. package/types/app/protocol/parsering.d.ts.map +1 -0
  288. package/types/app/{protocol-host-policy.d.ts → protocol/protocol-host-policy.d.ts} +1 -10
  289. package/types/app/protocol/protocol-host-policy.d.ts.map +1 -0
  290. package/types/app/protocol/protocol-processing.d.ts +140 -0
  291. package/types/app/protocol/protocol-processing.d.ts.map +1 -0
  292. package/types/app/protocol/reactor.d.ts +43 -0
  293. package/types/app/protocol/reactor.d.ts.map +1 -0
  294. package/types/app/queries/query-replies.d.ts +78 -0
  295. package/types/app/queries/query-replies.d.ts.map +1 -0
  296. package/types/app/queries/querying.d.ts +155 -0
  297. package/types/app/queries/querying.d.ts.map +1 -0
  298. package/types/app/queries/witness-inquisitor.d.ts +150 -0
  299. package/types/app/queries/witness-inquisitor.d.ts.map +1 -0
  300. package/types/app/runtime/abortable.d.ts +39 -0
  301. package/types/app/runtime/abortable.d.ts.map +1 -0
  302. package/types/app/runtime/agent-runtime.d.ts +348 -0
  303. package/types/app/runtime/agent-runtime.d.ts.map +1 -0
  304. package/types/app/runtime/cue-runtime.d.ts +33 -0
  305. package/types/app/runtime/cue-runtime.d.ts.map +1 -0
  306. package/types/app/runtime/runtime-clock.d.ts +28 -0
  307. package/types/app/runtime/runtime-clock.d.ts.map +1 -0
  308. package/types/app/runtime/runtime-turn.d.ts.map +1 -0
  309. package/types/app/transport/byte-source.d.ts +41 -0
  310. package/types/app/transport/byte-source.d.ts.map +1 -0
  311. package/types/app/transport/cesr-egress.d.ts +117 -0
  312. package/types/app/transport/cesr-egress.d.ts.map +1 -0
  313. package/types/app/{cesr-http.d.ts → transport/cesr-http.d.ts} +4 -27
  314. package/types/app/transport/cesr-http.d.ts.map +1 -0
  315. package/types/app/transport/http-client.d.ts +99 -0
  316. package/types/app/transport/http-client.d.ts.map +1 -0
  317. package/types/app/transport/http-messenger.d.ts +37 -0
  318. package/types/app/transport/http-messenger.d.ts.map +1 -0
  319. package/types/app/transport/http-stream-messenger.d.ts +30 -0
  320. package/types/app/transport/http-stream-messenger.d.ts.map +1 -0
  321. package/types/app/transport/httping.d.ts +19 -0
  322. package/types/app/transport/httping.d.ts.map +1 -0
  323. package/types/app/transport/message-source.d.ts +22 -0
  324. package/types/app/transport/message-source.d.ts.map +1 -0
  325. package/types/app/transport/messengering.d.ts +41 -0
  326. package/types/app/transport/messengering.d.ts.map +1 -0
  327. package/types/app/{socket-source.d.ts → transport/socket-source.d.ts} +8 -0
  328. package/types/app/transport/socket-source.d.ts.map +1 -0
  329. package/types/app/transport/tcp-egress.d.ts +118 -0
  330. package/types/app/transport/tcp-egress.d.ts.map +1 -0
  331. package/types/app/transport/tcp-messenger.d.ts +69 -0
  332. package/types/app/transport/tcp-messenger.d.ts.map +1 -0
  333. package/types/app/transport/tcp-stream-messenger.d.ts +25 -0
  334. package/types/app/transport/tcp-stream-messenger.d.ts.map +1 -0
  335. package/types/app/transport/transport-error.d.ts +12 -0
  336. package/types/app/transport/transport-error.d.ts.map +1 -0
  337. package/types/app/witness/http-endpoints.d.ts +77 -0
  338. package/types/app/witness/http-endpoints.d.ts.map +1 -0
  339. package/types/app/witness/ingress.d.ts +65 -0
  340. package/types/app/witness/ingress.d.ts.map +1 -0
  341. package/types/app/witness/receipt-client.d.ts +82 -0
  342. package/types/app/witness/receipt-client.d.ts.map +1 -0
  343. package/types/app/witness/receipt-messages.d.ts +21 -0
  344. package/types/app/witness/receipt-messages.d.ts.map +1 -0
  345. package/types/app/witness/receipting.d.ts +117 -0
  346. package/types/app/witness/receipting.d.ts.map +1 -0
  347. package/types/app/witness/registration.d.ts +27 -0
  348. package/types/app/witness/registration.d.ts.map +1 -0
  349. package/types/cli/common/bootstrap.d.ts +5 -0
  350. package/types/cli/common/bootstrap.d.ts.map +1 -0
  351. package/types/{app/cli → cli}/common/context.d.ts +10 -5
  352. package/types/cli/common/context.d.ts.map +1 -0
  353. package/types/{app/cli → cli}/common/existing.d.ts +2 -4
  354. package/types/cli/common/existing.d.ts.map +1 -0
  355. package/types/{app/cli → cli}/common/parsing.d.ts +26 -15
  356. package/types/cli/common/parsing.d.ts.map +1 -0
  357. package/types/cli/common/passcode.d.ts +9 -0
  358. package/types/cli/common/passcode.d.ts.map +1 -0
  359. package/types/cli/common/rendering.d.ts.map +1 -0
  360. package/types/cli/common/tel-completion.d.ts +8 -0
  361. package/types/cli/common/tel-completion.d.ts.map +1 -0
  362. package/types/{app/cli → cli}/common/witness-auth.d.ts +1 -1
  363. package/types/cli/common/witness-auth.d.ts.map +1 -0
  364. package/types/cli/credentials/ipex.d.ts +110 -0
  365. package/types/cli/credentials/ipex.d.ts.map +1 -0
  366. package/types/cli/credentials/vc.d.ts +42 -0
  367. package/types/cli/credentials/vc.d.ts.map +1 -0
  368. package/types/{app/cli → cli/endpoints}/did.d.ts +5 -1
  369. package/types/cli/endpoints/did.d.ts.map +1 -0
  370. package/types/{app/cli → cli/endpoints}/ends.d.ts +9 -1
  371. package/types/cli/endpoints/ends.d.ts.map +1 -0
  372. package/types/cli/endpoints/loc.d.ts.map +1 -0
  373. package/types/cli/endpoints/oobi-clean.d.ts +8 -0
  374. package/types/cli/endpoints/oobi-clean.d.ts.map +1 -0
  375. package/types/{app/cli → cli/endpoints}/oobi.d.ts +2 -0
  376. package/types/cli/endpoints/oobi.d.ts.map +1 -0
  377. package/types/cli/identity/aid.d.ts.map +1 -0
  378. package/types/{app/cli → cli/identity}/challenge.d.ts +5 -1
  379. package/types/cli/identity/challenge.d.ts.map +1 -0
  380. package/types/cli/identity/delegate.d.ts.map +1 -0
  381. package/types/cli/identity/export.d.ts.map +1 -0
  382. package/types/{app/cli → cli/identity}/incept.d.ts +2 -0
  383. package/types/cli/identity/incept.d.ts.map +1 -0
  384. package/types/{app/cli → cli/identity}/init.d.ts +2 -0
  385. package/types/cli/identity/init.d.ts.map +1 -0
  386. package/types/{app/cli → cli/identity}/interact.d.ts +2 -0
  387. package/types/cli/identity/interact.d.ts.map +1 -0
  388. package/types/cli/identity/list.d.ts.map +1 -0
  389. package/types/{app/cli → cli/identity}/rotate.d.ts +9 -2
  390. package/types/cli/identity/rotate.d.ts.map +1 -0
  391. package/types/cli/index.d.ts +39 -0
  392. package/types/cli/index.d.ts.map +1 -0
  393. package/types/{app/cli → cli/messaging}/exchange.d.ts +3 -1
  394. package/types/cli/messaging/exchange.d.ts.map +1 -0
  395. package/types/cli/messaging/multisig.d.ts +29 -0
  396. package/types/cli/messaging/multisig.d.ts.map +1 -0
  397. package/types/cli/messaging/notifications.d.ts.map +1 -0
  398. package/types/cli/output.d.ts.map +1 -0
  399. package/types/cli/tools/annotate-color.d.ts.map +1 -0
  400. package/types/cli/tools/annotate.d.ts.map +1 -0
  401. package/types/cli/tools/benchmark.d.ts.map +1 -0
  402. package/types/cli/tools/db-dump.d.ts.map +1 -0
  403. package/types/cli/tools/saidify.d.ts.map +1 -0
  404. package/types/{app/cli → cli/tools}/sign.d.ts +2 -0
  405. package/types/cli/tools/sign.d.ts.map +1 -0
  406. package/types/cli/tools/verify.d.ts.map +1 -0
  407. package/types/core/attachment-countering.d.ts +10 -1
  408. package/types/core/attachment-countering.d.ts.map +1 -1
  409. package/types/core/cues.d.ts +78 -21
  410. package/types/core/cues.d.ts.map +1 -1
  411. package/types/core/{exchange-proofing.d.ts → exchange/exchange-proofing.d.ts} +9 -2
  412. package/types/core/exchange/exchange-proofing.d.ts.map +1 -0
  413. package/types/core/{protocol-exchanging.d.ts → exchange/protocol-exchanging.d.ts} +10 -2
  414. package/types/core/exchange/protocol-exchanging.d.ts.map +1 -0
  415. package/types/core/genus-framing.d.ts +12 -0
  416. package/types/core/genus-framing.d.ts.map +1 -0
  417. package/types/core/{eventing.d.ts → kel/eventing.d.ts} +22 -10
  418. package/types/core/kel/eventing.d.ts.map +1 -0
  419. package/types/core/{kever-decisions.d.ts → kel/kever-decisions.d.ts} +21 -8
  420. package/types/core/kel/kever-decisions.d.ts.map +1 -0
  421. package/types/core/{kever.d.ts → kel/kever.d.ts} +2 -2
  422. package/types/core/kel/kever.d.ts.map +1 -0
  423. package/types/core/kel/witnesses.d.ts.map +1 -0
  424. package/types/core/logger.d.ts +1 -1
  425. package/types/core/logger.d.ts.map +1 -1
  426. package/types/core/{kram-auth.d.ts → mailbox/kram-auth.d.ts} +2 -2
  427. package/types/core/mailbox/kram-auth.d.ts.map +1 -0
  428. package/types/core/{kram-policy.d.ts → mailbox/kram-policy.d.ts} +2 -2
  429. package/types/core/mailbox/kram-policy.d.ts.map +1 -0
  430. package/types/core/{kram-pruning.d.ts → mailbox/kram-pruning.d.ts} +1 -1
  431. package/types/core/mailbox/kram-pruning.d.ts.map +1 -0
  432. package/types/core/{kram-signatures.d.ts → mailbox/kram-signatures.d.ts} +3 -3
  433. package/types/core/mailbox/kram-signatures.d.ts.map +1 -0
  434. package/types/core/{kram-staging.d.ts → mailbox/kram-staging.d.ts} +2 -2
  435. package/types/core/mailbox/kram-staging.d.ts.map +1 -0
  436. package/types/core/{kram-time.d.ts → mailbox/kram-time.d.ts} +2 -2
  437. package/types/core/mailbox/kram-time.d.ts.map +1 -0
  438. package/types/core/{kraming.d.ts → mailbox/kraming.d.ts} +5 -5
  439. package/types/core/mailbox/kraming.d.ts.map +1 -0
  440. package/types/core/mailbox/mailbox-topics.d.ts.map +1 -0
  441. package/types/core/protocol-eventing.d.ts.map +1 -1
  442. package/types/core/protocol-serialization.d.ts +1 -1
  443. package/types/core/protocol-serialization.d.ts.map +1 -1
  444. package/types/core/records.d.ts +1 -1
  445. package/types/core/records.d.ts.map +1 -1
  446. package/types/core/routing.d.ts +24 -4
  447. package/types/core/routing.d.ts.map +1 -1
  448. package/types/db/baser-defaults.d.ts +5 -0
  449. package/types/db/baser-defaults.d.ts.map +1 -0
  450. package/types/db/basing.d.ts +32 -44
  451. package/types/db/basing.d.ts.map +1 -1
  452. package/types/db/core/lmdber.d.ts +18 -13
  453. package/types/db/core/lmdber.d.ts.map +1 -1
  454. package/types/db/escrowing.d.ts +3 -1
  455. package/types/db/escrowing.d.ts.map +1 -1
  456. package/types/db/exchange/exchange-nests.d.ts +12 -0
  457. package/types/db/exchange/exchange-nests.d.ts.map +1 -0
  458. package/types/db/exchange/exchange-records.d.ts +38 -0
  459. package/types/db/exchange/exchange-records.d.ts.map +1 -0
  460. package/types/db/index.d.ts +5 -4
  461. package/types/db/index.d.ts.map +1 -1
  462. package/types/db/keeping.d.ts +19 -1
  463. package/types/db/keeping.d.ts.map +1 -1
  464. package/types/db/{kram-factors.d.ts → mailbox/kram-factors.d.ts} +2 -2
  465. package/types/db/mailbox/kram-factors.d.ts.map +1 -0
  466. package/types/db/{mailboxing.d.ts → mailbox/mailboxing.d.ts} +2 -2
  467. package/types/db/mailbox/mailboxing.d.ts.map +1 -0
  468. package/types/db/reger.d.ts +7 -6
  469. package/types/db/reger.d.ts.map +1 -1
  470. package/types/db/{kel-replay.d.ts → replay/kel-replay.d.ts} +1 -2
  471. package/types/db/replay/kel-replay.d.ts.map +1 -0
  472. package/types/db/{tel-replay.d.ts → replay/tel-replay.d.ts} +11 -1
  473. package/types/db/replay/tel-replay.d.ts.map +1 -0
  474. package/types/db/{witness-replay.d.ts → replay/witness-replay.d.ts} +1 -1
  475. package/types/db/replay/witness-replay.d.ts.map +1 -0
  476. package/types/db/subing.d.ts.map +1 -1
  477. package/types/did/keri/resolving.d.ts +1 -1
  478. package/types/did/keri/resolving.d.ts.map +1 -1
  479. package/types/did/webs/artifacts.d.ts +5 -5
  480. package/types/did/webs/artifacts.d.ts.map +1 -1
  481. package/types/did/webs/designated-aliases.d.ts +1 -2
  482. package/types/did/webs/designated-aliases.d.ts.map +1 -1
  483. package/types/did/webs/documenting.d.ts +1 -1
  484. package/types/did/webs/documenting.d.ts.map +1 -1
  485. package/types/did/webs/resolving.d.ts +13 -9
  486. package/types/did/webs/resolving.d.ts.map +1 -1
  487. package/types/library/index.d.ts +1 -1
  488. package/types/library/index.d.ts.map +1 -1
  489. package/types/npm/cli.d.ts +1 -1
  490. package/types/npm/cli.d.ts.map +1 -1
  491. package/types/npm/index.d.ts +1 -1
  492. package/types/npm/index.d.ts.map +1 -1
  493. package/types/runtime/index.d.ts +86 -51
  494. package/types/runtime/index.d.ts.map +1 -1
  495. package/types/vdr/backer-state.d.ts +22 -0
  496. package/types/vdr/backer-state.d.ts.map +1 -0
  497. package/types/vdr/credential-tsn-record.d.ts +13 -0
  498. package/types/vdr/credential-tsn-record.d.ts.map +1 -0
  499. package/types/vdr/credentialing.d.ts +16 -17
  500. package/types/vdr/credentialing.d.ts.map +1 -1
  501. package/types/vdr/eventing.d.ts +60 -18
  502. package/types/vdr/eventing.d.ts.map +1 -1
  503. package/types/vdr/registry-tsn-record.d.ts +6 -0
  504. package/types/vdr/registry-tsn-record.d.ts.map +1 -0
  505. package/types/vdr/revoking.d.ts +18 -0
  506. package/types/vdr/revoking.d.ts.map +1 -0
  507. package/types/vdr/tel-anchor.d.ts +10 -0
  508. package/types/vdr/tel-anchor.d.ts.map +1 -0
  509. package/types/vdr/tel-publication.d.ts +49 -0
  510. package/types/vdr/tel-publication.d.ts.map +1 -0
  511. package/types/vdr/tsn-query.d.ts +1 -1
  512. package/types/vdr/tsn-query.d.ts.map +1 -1
  513. package/types/{app/version.d.ts → version.d.ts} +2 -2
  514. package/types/version.d.ts.map +1 -0
  515. package/esm/keri/npm/src/app/agent-runtime.js +0 -544
  516. package/esm/keri/npm/src/app/cesr-egress.js +0 -294
  517. package/esm/keri/npm/src/app/cli/common/displaying.js +0 -43
  518. package/esm/keri/npm/src/app/cli/common/parsing.js +0 -215
  519. package/esm/keri/npm/src/app/cli/incept.js +0 -185
  520. package/esm/keri/npm/src/app/cli/index.js +0 -36
  521. package/esm/keri/npm/src/app/cli/init.js +0 -149
  522. package/esm/keri/npm/src/app/cli/interact.js +0 -72
  523. package/esm/keri/npm/src/app/cli/ipex.js +0 -519
  524. package/esm/keri/npm/src/app/cli/query.js +0 -142
  525. package/esm/keri/npm/src/app/cli/vc.js +0 -283
  526. package/esm/keri/npm/src/app/cli/verifier.js +0 -92
  527. package/esm/keri/npm/src/app/credential-workflows.js +0 -409
  528. package/esm/keri/npm/src/app/cue-runtime.js +0 -38
  529. package/esm/keri/npm/src/app/essr.js +0 -170
  530. package/esm/keri/npm/src/app/exchanging.js +0 -1001
  531. package/esm/keri/npm/src/app/forwarding.js +0 -936
  532. package/esm/keri/npm/src/app/group-members.js +0 -37
  533. package/esm/keri/npm/src/app/httping.js +0 -162
  534. package/esm/keri/npm/src/app/ipex-graph.js +0 -407
  535. package/esm/keri/npm/src/app/ipex-grouping.js +0 -276
  536. package/esm/keri/npm/src/app/ipex-v2.js +0 -438
  537. package/esm/keri/npm/src/app/mailbox-sse.js +0 -240
  538. package/esm/keri/npm/src/app/multisig-workflows.js +0 -457
  539. package/esm/keri/npm/src/app/querying.js +0 -775
  540. package/esm/keri/npm/src/app/reactor.js +0 -394
  541. package/esm/keri/npm/src/app/respondant.js +0 -358
  542. package/esm/keri/npm/src/app/runtime-services.js +0 -22
  543. package/esm/keri/npm/src/app/tcp-conversation.js +0 -85
  544. package/esm/keri/npm/src/app/tcp-egress.js +0 -251
  545. package/esm/keri/npm/src/app/verifier-agent.js +0 -443
  546. package/esm/keri/npm/src/app/witnessing.js +0 -914
  547. package/esm/keri/npm/src/core/index.js +0 -23
  548. package/esm/keri/npm/src/db/exchange-nests.js +0 -80
  549. package/esm/keri/npm/src/db/exchange-records.js +0 -7
  550. package/esm/keri/npm/src/db/payload-archive.js +0 -402
  551. package/esm/keri/npm/src/db/payload-store.js +0 -406
  552. package/esm/keri/npm/src/db/payload-view.js +0 -23
  553. package/esm/keri/npm/src/db/verifier-cueing.js +0 -132
  554. package/esm/keri/npm/src/vdr/credential-tsn.js +0 -230
  555. package/esm/keri/npm/src/vdr/registry-tsn.js +0 -217
  556. package/types/app/abortable.d.ts +0 -13
  557. package/types/app/abortable.d.ts.map +0 -1
  558. package/types/app/agent-runtime.d.ts +0 -221
  559. package/types/app/agent-runtime.d.ts.map +0 -1
  560. package/types/app/authenticating.d.ts +0 -36
  561. package/types/app/authenticating.d.ts.map +0 -1
  562. package/types/app/byte-source.d.ts +0 -16
  563. package/types/app/byte-source.d.ts.map +0 -1
  564. package/types/app/cesr-egress.d.ts +0 -45
  565. package/types/app/cesr-egress.d.ts.map +0 -1
  566. package/types/app/cesr-http.d.ts.map +0 -1
  567. package/types/app/challenging.d.ts.map +0 -1
  568. package/types/app/cli/aid.d.ts.map +0 -1
  569. package/types/app/cli/annotate-color.d.ts.map +0 -1
  570. package/types/app/cli/annotate.d.ts.map +0 -1
  571. package/types/app/cli/benchmark.d.ts.map +0 -1
  572. package/types/app/cli/challenge.d.ts.map +0 -1
  573. package/types/app/cli/common/context.d.ts.map +0 -1
  574. package/types/app/cli/common/displaying.d.ts +0 -12
  575. package/types/app/cli/common/displaying.d.ts.map +0 -1
  576. package/types/app/cli/common/existing.d.ts.map +0 -1
  577. package/types/app/cli/common/parsing.d.ts.map +0 -1
  578. package/types/app/cli/common/rendering.d.ts.map +0 -1
  579. package/types/app/cli/common/witness-auth.d.ts.map +0 -1
  580. package/types/app/cli/db-dump.d.ts.map +0 -1
  581. package/types/app/cli/delegate.d.ts.map +0 -1
  582. package/types/app/cli/did.d.ts.map +0 -1
  583. package/types/app/cli/ends.d.ts.map +0 -1
  584. package/types/app/cli/exchange.d.ts.map +0 -1
  585. package/types/app/cli/export.d.ts.map +0 -1
  586. package/types/app/cli/incept.d.ts.map +0 -1
  587. package/types/app/cli/index.d.ts +0 -37
  588. package/types/app/cli/index.d.ts.map +0 -1
  589. package/types/app/cli/init.d.ts.map +0 -1
  590. package/types/app/cli/interact.d.ts.map +0 -1
  591. package/types/app/cli/ipex.d.ts +0 -20
  592. package/types/app/cli/ipex.d.ts.map +0 -1
  593. package/types/app/cli/list.d.ts.map +0 -1
  594. package/types/app/cli/loc.d.ts.map +0 -1
  595. package/types/app/cli/multisig.d.ts +0 -12
  596. package/types/app/cli/multisig.d.ts.map +0 -1
  597. package/types/app/cli/notifications.d.ts.map +0 -1
  598. package/types/app/cli/oobi.d.ts.map +0 -1
  599. package/types/app/cli/output.d.ts.map +0 -1
  600. package/types/app/cli/query.d.ts +0 -12
  601. package/types/app/cli/query.d.ts.map +0 -1
  602. package/types/app/cli/rotate.d.ts.map +0 -1
  603. package/types/app/cli/saidify.d.ts.map +0 -1
  604. package/types/app/cli/sign.d.ts.map +0 -1
  605. package/types/app/cli/vc.d.ts +0 -20
  606. package/types/app/cli/vc.d.ts.map +0 -1
  607. package/types/app/cli/verifier.d.ts +0 -3
  608. package/types/app/cli/verifier.d.ts.map +0 -1
  609. package/types/app/cli/verify.d.ts.map +0 -1
  610. package/types/app/configing.d.ts.map +0 -1
  611. package/types/app/credential-workflows.d.ts +0 -113
  612. package/types/app/credential-workflows.d.ts.map +0 -1
  613. package/types/app/cue-runtime.d.ts +0 -12
  614. package/types/app/cue-runtime.d.ts.map +0 -1
  615. package/types/app/delegating.d.ts.map +0 -1
  616. package/types/app/endpoint-roleing.d.ts.map +0 -1
  617. package/types/app/essr.d.ts +0 -58
  618. package/types/app/essr.d.ts.map +0 -1
  619. package/types/app/exchanging.d.ts +0 -233
  620. package/types/app/exchanging.d.ts.map +0 -1
  621. package/types/app/forwarding.d.ts +0 -352
  622. package/types/app/forwarding.d.ts.map +0 -1
  623. package/types/app/group-members.d.ts +0 -12
  624. package/types/app/group-members.d.ts.map +0 -1
  625. package/types/app/grouping.d.ts.map +0 -1
  626. package/types/app/habbing.d.ts.map +0 -1
  627. package/types/app/httping.d.ts +0 -49
  628. package/types/app/httping.d.ts.map +0 -1
  629. package/types/app/ipex-credentialing.d.ts.map +0 -1
  630. package/types/app/ipex-graph.d.ts +0 -49
  631. package/types/app/ipex-graph.d.ts.map +0 -1
  632. package/types/app/ipex-grouping.d.ts +0 -43
  633. package/types/app/ipex-grouping.d.ts.map +0 -1
  634. package/types/app/ipex-node-authentication.d.ts.map +0 -1
  635. package/types/app/ipex-v2.d.ts +0 -46
  636. package/types/app/ipex-v2.d.ts.map +0 -1
  637. package/types/app/ipexing.d.ts.map +0 -1
  638. package/types/app/keeping.d.ts.map +0 -1
  639. package/types/app/mailbox-director.d.ts +0 -140
  640. package/types/app/mailbox-director.d.ts.map +0 -1
  641. package/types/app/mailbox-sse.d.ts +0 -32
  642. package/types/app/mailbox-sse.d.ts.map +0 -1
  643. package/types/app/mailboxing.d.ts.map +0 -1
  644. package/types/app/multisig-workflows.d.ts +0 -47
  645. package/types/app/multisig-workflows.d.ts.map +0 -1
  646. package/types/app/notifying.d.ts.map +0 -1
  647. package/types/app/oobi-replies.d.ts.map +0 -1
  648. package/types/app/oobiery.d.ts.map +0 -1
  649. package/types/app/organizing.d.ts.map +0 -1
  650. package/types/app/parsering.d.ts.map +0 -1
  651. package/types/app/protocol-host-policy.d.ts.map +0 -1
  652. package/types/app/query-replies.d.ts +0 -40
  653. package/types/app/query-replies.d.ts.map +0 -1
  654. package/types/app/querying.d.ts +0 -221
  655. package/types/app/querying.d.ts.map +0 -1
  656. package/types/app/reactor.d.ts +0 -138
  657. package/types/app/reactor.d.ts.map +0 -1
  658. package/types/app/reply-streams.d.ts +0 -20
  659. package/types/app/reply-streams.d.ts.map +0 -1
  660. package/types/app/respondant.d.ts +0 -63
  661. package/types/app/respondant.d.ts.map +0 -1
  662. package/types/app/runtime-services.d.ts +0 -26
  663. package/types/app/runtime-services.d.ts.map +0 -1
  664. package/types/app/runtime-turn.d.ts.map +0 -1
  665. package/types/app/schema-resolving.d.ts.map +0 -1
  666. package/types/app/signaling.d.ts.map +0 -1
  667. package/types/app/socket-source.d.ts.map +0 -1
  668. package/types/app/stored-replies.d.ts.map +0 -1
  669. package/types/app/tcp-conversation.d.ts +0 -27
  670. package/types/app/tcp-conversation.d.ts.map +0 -1
  671. package/types/app/tcp-egress.d.ts +0 -49
  672. package/types/app/tcp-egress.d.ts.map +0 -1
  673. package/types/app/verifier-agent.d.ts +0 -92
  674. package/types/app/verifier-agent.d.ts.map +0 -1
  675. package/types/app/verifying.d.ts.map +0 -1
  676. package/types/app/version.d.ts.map +0 -1
  677. package/types/app/witnessing.d.ts +0 -223
  678. package/types/app/witnessing.d.ts.map +0 -1
  679. package/types/core/eventing.d.ts.map +0 -1
  680. package/types/core/exchange-proofing.d.ts.map +0 -1
  681. package/types/core/index.d.ts +0 -24
  682. package/types/core/index.d.ts.map +0 -1
  683. package/types/core/kever-decisions.d.ts.map +0 -1
  684. package/types/core/kever.d.ts.map +0 -1
  685. package/types/core/kram-auth.d.ts.map +0 -1
  686. package/types/core/kram-policy.d.ts.map +0 -1
  687. package/types/core/kram-pruning.d.ts.map +0 -1
  688. package/types/core/kram-signatures.d.ts.map +0 -1
  689. package/types/core/kram-staging.d.ts.map +0 -1
  690. package/types/core/kram-time.d.ts.map +0 -1
  691. package/types/core/kraming.d.ts.map +0 -1
  692. package/types/core/mailbox-topics.d.ts.map +0 -1
  693. package/types/core/protocol-exchanging.d.ts.map +0 -1
  694. package/types/core/witnesses.d.ts.map +0 -1
  695. package/types/db/exchange-nests.d.ts +0 -15
  696. package/types/db/exchange-nests.d.ts.map +0 -1
  697. package/types/db/exchange-records.d.ts +0 -33
  698. package/types/db/exchange-records.d.ts.map +0 -1
  699. package/types/db/kel-replay.d.ts.map +0 -1
  700. package/types/db/kram-factors.d.ts.map +0 -1
  701. package/types/db/mailboxing.d.ts.map +0 -1
  702. package/types/db/payload-archive.d.ts +0 -70
  703. package/types/db/payload-archive.d.ts.map +0 -1
  704. package/types/db/payload-store.d.ts +0 -40
  705. package/types/db/payload-store.d.ts.map +0 -1
  706. package/types/db/payload-view.d.ts +0 -4
  707. package/types/db/payload-view.d.ts.map +0 -1
  708. package/types/db/tel-replay.d.ts.map +0 -1
  709. package/types/db/verifier-cueing.d.ts +0 -46
  710. package/types/db/verifier-cueing.d.ts.map +0 -1
  711. package/types/db/witness-replay.d.ts.map +0 -1
  712. package/types/vdr/credential-tsn.d.ts +0 -23
  713. package/types/vdr/credential-tsn.d.ts.map +0 -1
  714. package/types/vdr/registry-tsn.d.ts +0 -28
  715. package/types/vdr/registry-tsn.d.ts.map +0 -1
  716. /package/esm/keri/npm/src/app/{schema-resolving.js → credentials/schema-resolving.js} +0 -0
  717. /package/esm/keri/npm/src/app/{challenging.js → identity/challenging.js} +0 -0
  718. /package/esm/keri/npm/src/app/{protocol-host-policy.js → protocol/protocol-host-policy.js} +0 -0
  719. /package/esm/keri/npm/src/app/{runtime-turn.js → runtime/runtime-turn.js} +0 -0
  720. /package/esm/keri/npm/src/{app/cli → cli}/common/rendering.js +0 -0
  721. /package/esm/keri/npm/src/{app/cli → cli/tools}/annotate-color.js +0 -0
  722. /package/esm/keri/npm/src/core/{witnesses.js → kel/witnesses.js} +0 -0
  723. /package/esm/keri/npm/src/core/{kram-auth.js → mailbox/kram-auth.js} +0 -0
  724. /package/esm/keri/npm/src/core/{mailbox-topics.js → mailbox/mailbox-topics.js} +0 -0
  725. /package/types/app/{signaling.d.ts → notifications/signaling.d.ts} +0 -0
  726. /package/types/app/{runtime-turn.d.ts → runtime/runtime-turn.d.ts} +0 -0
  727. /package/types/{app/cli → cli}/common/rendering.d.ts +0 -0
  728. /package/types/{app/cli → cli/endpoints}/loc.d.ts +0 -0
  729. /package/types/{app/cli → cli/identity}/aid.d.ts +0 -0
  730. /package/types/{app/cli → cli/identity}/delegate.d.ts +0 -0
  731. /package/types/{app/cli → cli/identity}/export.d.ts +0 -0
  732. /package/types/{app/cli → cli/identity}/list.d.ts +0 -0
  733. /package/types/{app/cli → cli/messaging}/notifications.d.ts +0 -0
  734. /package/types/{app/cli → cli}/output.d.ts +0 -0
  735. /package/types/{app/cli → cli/tools}/annotate-color.d.ts +0 -0
  736. /package/types/{app/cli → cli/tools}/annotate.d.ts +0 -0
  737. /package/types/{app/cli → cli/tools}/benchmark.d.ts +0 -0
  738. /package/types/{app/cli → cli/tools}/db-dump.d.ts +0 -0
  739. /package/types/{app/cli → cli/tools}/saidify.d.ts +0 -0
  740. /package/types/{app/cli → cli/tools}/verify.d.ts +0 -0
  741. /package/types/core/{witnesses.d.ts → kel/witnesses.d.ts} +0 -0
  742. /package/types/core/{mailbox-topics.d.ts → mailbox/mailbox-topics.d.ts} +0 -0
@@ -6,17 +6,8 @@
6
6
  * KERIpy correspondence:
7
7
  * - default behavior is one CESR message per HTTP request with the message body
8
8
  * in the request body and attachments in `CESR-ATTACHMENT`
9
- *
10
- * Current `keri-ts` difference:
11
- * - `keri-ts` supports an optional `"body"` mode for mailbox operations where the
12
- * full CESR payload is sent in the body instead of splitting attachments into
13
- * the header
14
9
  */
15
10
  import { SerderKERI } from "cesr-ts";
16
- /** Mailbox HTTP framing modes supported by `keri-ts`. */
17
- export type CesrBodyMode = "header" | "body";
18
- /** Default interop mode matching KERIpy mailbox behavior. */
19
- export declare const DEFAULT_CESR_BODY_MODE: CesrBodyMode;
20
11
  /** CESR HTTP content type used by mailbox and exchange endpoints. */
21
12
  export declare const CESR_CONTENT_TYPE = "application/cesr";
22
13
  /** KERIpy's legacy-but-authoritative CESR HTTP media type. */
@@ -41,22 +32,8 @@ export interface CesrStreamInspection {
41
32
  readonly messages: readonly SerderKERI[];
42
33
  readonly terminal: SerderKERI | null;
43
34
  }
44
- /** Normalize CLI or config input into one supported CESR body mode. */
45
- export declare function normalizeCesrBodyMode(value: unknown, fallback?: CesrBodyMode): CesrBodyMode;
46
- /** Normalize a global config string into one supported CESR body mode. */
47
- export declare function cesrBodyModeFromGlobal(value: string | null | undefined): CesrBodyMode;
48
- /**
49
- * Build one HTTP request payload for a CESR message.
50
- *
51
- * Header mode:
52
- * - HTTP body carries the message body only
53
- * - `CESR-ATTACHMENT` carries the detached attachments
54
- *
55
- * Body mode:
56
- * - the full payload is sent in the HTTP body
57
- */
58
- export declare function buildCesrRequest(message: Uint8Array, { bodyMode, contentType, destination }?: {
59
- bodyMode?: CesrBodyMode;
35
+ /** Build ordinary signed-message POST framing, preserving the signed body bytes. */
36
+ export declare function buildCesrRequest(message: Uint8Array, { contentType, destination }?: {
60
37
  contentType?: string;
61
38
  destination?: string;
62
39
  }): {
@@ -78,8 +55,8 @@ export declare function buildCesrStreamRequest(bytes: Uint8Array, { destination
78
55
  /**
79
56
  * Reconstruct one logical CESR payload from an incoming HTTP request.
80
57
  *
81
- * In header mode this reattaches `CESR-ATTACHMENT` bytes to the parsed message
82
- * body so downstream parsing always sees the canonical CESR byte stream.
58
+ * Header mode restores the declared `CESR-Genus` before the unchanged body and
59
+ * appends `CESR-ATTACHMENT`; body protocol version does not select that context.
83
60
  */
84
61
  export declare function requestBytes(req: Request, options?: {
85
62
  signal?: AbortSignal;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cesr-http.d.ts","sourceRoot":"","sources":["../../../src/app/transport/cesr-http.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAsD,UAAU,EAAS,MAAM,SAAS,CAAC;AAIhG,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AACpD,8DAA8D;AAC9D,eAAO,MAAM,6BAA6B,0BAA0B,CAAC;AACrE,4EAA4E;AAC5E,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAC5D,oEAAoE;AACpE,eAAO,MAAM,sBAAsB,oBAAoB,CAAC;AACxD,qEAAqE;AACrE,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAK1D,yEAAyE;AACzE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAI3E;AAED,yEAAyE;AACzE,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC/B,OAAO,CAET;AAED,4EAA4E;AAC5E,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,oBAAoB,CAAC;CAC3C;AAED,+EAA+E;AAC/E,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,SAAS,UAAU,EAAE,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,UAAU,GAAG,IAAI,CAAC;CACtC;AAED,oFAAoF;AACpF,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,UAAU,EACnB,EAAE,WAA+B,EAAE,WAAW,EAAE,GAAE;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACjB,GACL;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,IAAI,EAAE,WAAW,CAAA;CAAE,CAOxD;AACD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,WAAW,EAAE,GAAE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,IAAI,EAAE,WAAW,CAAA;CAAE,CAW9D;AACD;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,GAAG,EAAE,OAAO,EACZ,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAA;CAAO,GACrC,aAAa,CAAC,UAAU,CAAC,CAqB3B;AAED,mGAAmG;AACnG,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAoB5E;AAED;;;;;;;GAOG;AACH,wBAAsB,4BAA4B,CAChD,GAAG,EAAE,OAAO,GACX,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAK5B;AAED;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,OAAO,GACX,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CA0BrC;AAED,mEAAmE;AACnE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,CAOvE;AAED,mEAAmE;AACnE,wBAAsB,0BAA0B,CAC9C,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAE5B;AACD,iFAAiF;AACjF,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAWxF"}
@@ -0,0 +1,99 @@
1
+ /** Native HTTP request construction, byte I/O and joined attempt cleanup. */
2
+ import { type Operation } from "effection";
3
+ /** Existing HTTP request choices; protocol framing and retry policy belong to callers. */
4
+ export interface HttpRequestInit {
5
+ /** HTTP method, validated by Request before any network execution. */
6
+ method?: string;
7
+ /** Actual request headers, including protocol framing and optional Authorization. */
8
+ headers?: HeadersInit;
9
+ /** Prepared request content; producers finish serialization before network execution. */
10
+ body?: string | Uint8Array | ArrayBuffer | null;
11
+ /** Caller-selected redirect behavior; the HTTP owner adds no retry policy. */
12
+ redirect?: RequestRedirect;
13
+ /** Caller cancellation/deadline, forwarded into the request and its body. */
14
+ signal?: AbortSignal | null;
15
+ }
16
+ /** Completed finite response; its bytes remain usable after the request has closed. */
17
+ export interface HttpResponse {
18
+ /** HTTP status, interpreted by the application or protocol owner. */
19
+ readonly status: number;
20
+ /** Whether the status is successful; full body consumption has already completed. */
21
+ readonly ok: boolean;
22
+ /** Received protocol metadata. */
23
+ readonly headers: Headers;
24
+ /** Complete resident response bytes. */
25
+ readonly body: Uint8Array;
26
+ }
27
+ /** Response metadata and one request-owned byte source, valid only inside its request scope. */
28
+ export interface HttpStreamResponse {
29
+ /** HTTP status; non-success statuses remain application/protocol decisions. */
30
+ readonly status: number;
31
+ /** Success derived from the HTTP status, independent of body/protocol acceptance. */
32
+ readonly ok: boolean;
33
+ /** Received headers; consumers interpret their protocol meaning. */
34
+ readonly headers: Headers;
35
+ /**
36
+ * Borrow the response body for one consumer.
37
+ * Finish iteration or return it before leaving the enclosing open scope. Metadata
38
+ * success does not imply that this stream will reach EOF successfully.
39
+ *
40
+ * @param signal Optional consumer cancellation that interrupts the owned request/body read.
41
+ * @returns The single borrowed body source; chunks are available only within the open request scope.
42
+ */
43
+ body(signal?: AbortSignal): AsyncIterable<Uint8Array>;
44
+ }
45
+ /** A scoped HTTP implementation supplied by composition, with an explicit transport-error contract. */
46
+ export interface HttpClient {
47
+ /**
48
+ * Return finite response bytes after the owned request scope has closed.
49
+ *
50
+ * @param url Absolute HTTP(S) URL; invalid URL/request construction fails before fetch.
51
+ * @param init Prepared method, headers, finite body and cancellation; omitted values use native Request defaults.
52
+ * @returns Status, headers and complete owned bytes after request cleanup.
53
+ * @throws Validation/construction errors remain caller errors; native fetch/body failures are TransportError with cause. Cancellation and cleanup failures remain visible.
54
+ */
55
+ request(url: string, init?: HttpRequestInit): Operation<HttpResponse>;
56
+ /**
57
+ * Acquire response headers and retain native I/O in the enclosing scope.
58
+ * HTTP non-success status remains a response for the protocol caller to interpret.
59
+ * Scope exit aborts unread or pending I/O, joins it, and releases the reader.
60
+ * The consumer must not retain the response for use after that scope closes.
61
+ *
62
+ * @param url Absolute HTTP(S) URL without embedded credentials.
63
+ * @param init Prepared request choices and optional upstream signal; no asynchronous upload producer.
64
+ * @returns Response metadata and one body reader borrowed until the enclosing scope closes.
65
+ * @throws Request validation errors precede network classification. Native fetch/read failures become TransportError; consumer and genuine cleanup failures propagate.
66
+ */
67
+ open(url: string, init?: HttpRequestInit): Operation<HttpStreamResponse>;
68
+ }
69
+ /**
70
+ * Own the native Request, fetch and response reader for one attempt.
71
+ * Construction errors remain outside network classification. Native fetch/read
72
+ * errors retain their causes as TransportError. Consumer execution remains outside
73
+ * those catches; scope exit aborts and joins I/O before releasing its reader.
74
+ * Protocol consumers never receive the native Response.
75
+ */
76
+ export declare class FetchHttpClient implements HttpClient {
77
+ /**
78
+ * Consume finite bytes and finish the request scope before returning a completed response.
79
+ *
80
+ * @param url Absolute HTTP(S) URL; invalid URL/request construction fails before fetch.
81
+ * @param init Prepared method, headers, finite body and cancellation; omitted values use native Request defaults.
82
+ * @returns Status, headers and complete owned bytes after request cleanup.
83
+ * @throws Validation/construction errors remain caller errors; native fetch/body failures are TransportError with cause. Cancellation and cleanup failures remain visible.
84
+ */
85
+ request(url: string, init?: HttpRequestInit): Operation<HttpResponse>;
86
+ /**
87
+ * Acquire headers and lend response bytes until the enclosing Effection scope ends.
88
+ * Validate Request before fetch; scope exit aborts unread I/O, joins pending
89
+ * fetch/read work and releases the reader. Consumer failures stay outside the
90
+ * transport catches. The response must not escape this scope.
91
+ *
92
+ * @param url Absolute HTTP(S) endpoint without embedded credentials.
93
+ * @param init Prepared method, headers, finite body and optional upstream cancellation; native Request defaults apply.
94
+ * @returns Metadata and one borrowed body source; status success does not prove body completion.
95
+ * @throws Validation errors precede network execution. Native fetch/read failures retain their cause in TransportError; cancellation and distinct cleanup failures propagate.
96
+ */
97
+ open(url: string, init?: HttpRequestInit): Operation<HttpStreamResponse>;
98
+ }
99
+ //# sourceMappingURL=http-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../../src/app/transport/http-client.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,EAAQ,KAAK,SAAS,EAAoB,MAAM,WAAW,CAAC;AAMnE,0FAA0F;AAC1F,MAAM,WAAW,eAAe;IAC9B,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qFAAqF;IACrF,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,yFAAyF;IACzF,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,IAAI,CAAC;IAChD,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,6EAA6E;IAC7E,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CAC7B;AAED,uFAAuF;AACvF,MAAM,WAAW,YAAY;IAC3B,qEAAqE;IACrE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,kCAAkC;IAClC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,wCAAwC;IACxC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;CAC3B;AAED,gGAAgG;AAChG,MAAM,WAAW,kBAAkB;IACjC,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,oEAAoE;IACpE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B;;;;;;;OAOG;IACH,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC;CACvD;AAED,uGAAuG;AACvG,MAAM,WAAW,UAAU;IACzB;;;;;;;OAOG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;IACtE;;;;;;;;;;OAUG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC,kBAAkB,CAAC,CAAC;CAC1E;AAED;;;;;;GAMG;AACH,qBAAa,eAAgB,YAAW,UAAU;IAChD;;;;;;;OAOG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,eAAoB,GAAG,SAAS,CAAC,YAAY,CAAC;IASzE;;;;;;;;;;OAUG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,eAAoB,GAAG,SAAS,CAAC,kBAAkB,CAAC;CAsH7E"}
@@ -0,0 +1,37 @@
1
+ /** Ordinary signed-message POST delivery, independent of query receive processing. */
2
+ import type { Operation } from "effection";
3
+ import { type CesrPostResult, type EgressOptions } from "./cesr-egress.js";
4
+ import type { HttpClient } from "./http-client.js";
5
+ /** Fixed request metadata; transport construction does not select a framing preference. */
6
+ export type HTTPMessengerOptions = Pick<EgressOptions, "destination" | "headers">;
7
+ /**
8
+ * Send ordinary signed messages as ordered HTTP POSTs and finish response cleanup.
9
+ * Producers own preparation and Poster owns queued work. This component needs no
10
+ * Habery, protocol processor, parser state, timer or response history.
11
+ *
12
+ * Corresponds to the ordinary POST role of KERIpy HTTPMessenger. Complete CESR
13
+ * frames become separate POSTs: original signed body in the request body, text
14
+ * attachments in CESR-ATTACHMENT. Only the recognized pre-intake media refusal
15
+ * permits a second attempt with legacy media metadata. Successful response bytes
16
+ * are drained and discarded; protocol receiving belongs to independent intake.
17
+ */
18
+ export declare class HTTPMessenger {
19
+ readonly url: string;
20
+ private readonly http;
21
+ private readonly options;
22
+ /** Bind one endpoint and request metadata; construction performs no I/O. */
23
+ constructor(url: string, http: HttpClient, options?: HTTPMessengerOptions);
24
+ /**
25
+ * Send resident signed bytes through the same parser/request path as sendSource.
26
+ * Keep the input unchanged until completion. A complete result proves transport
27
+ * completion, not remote verification, storage, approval or a processed reply.
28
+ */
29
+ send(msg: Uint8Array, options?: Pick<EgressOptions, "signal">): Operation<CesrPostResult>;
30
+ /**
31
+ * Iterate ordinary messages into POSTs; this is not whole-stream PUT delivery.
32
+ * A later malformed message cannot prevent an earlier valid POST. Parser,
33
+ * transport, source and cleanup failures propagate; HTTP refusal is typed data.
34
+ */
35
+ sendSource(source: (signal: AbortSignal) => AsyncIterable<Uint8Array>, options?: Pick<EgressOptions, "signal">): Operation<CesrPostResult>;
36
+ }
37
+ //# sourceMappingURL=http-messenger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-messenger.d.ts","sourceRoot":"","sources":["../../../src/app/transport/http-messenger.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC5F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,2FAA2F;AAC3F,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC,CAAC;AAElF;;;;;;;;;;GAUG;AACH,qBAAa,aAAa;IAGtB,QAAQ,CAAC,GAAG,EAAE,MAAM;IACpB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJ1B,4EAA4E;gBAEjE,GAAG,EAAE,MAAM,EACH,IAAI,EAAE,UAAU,EAChB,OAAO,GAAE,oBAAyB;IAGrD;;;;OAIG;IACH,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,OAAO,GAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAM,GAAG,SAAS,CAAC,cAAc,CAAC;IAI7F;;;;OAIG;IACH,UAAU,CACR,MAAM,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,aAAa,CAAC,UAAU,CAAC,EAC1D,OAAO,GAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAM,GAC1C,SAAS,CAAC,cAAc,CAAC;CAG7B"}
@@ -0,0 +1,30 @@
1
+ /** One finite, opaque HTTP PUT following KERIpy HTTPStreamMessenger. */
2
+ import type { Operation } from "effection";
3
+ import type { HttpClient, HttpResponse } from "./http-client.js";
4
+ import type { HTTPMessengerOptions } from "./http-messenger.js";
5
+ /**
6
+ * Bind one complete prepared payload to KERIpy-style HTTPStreamMessenger PUT.
7
+ * This component does not inspect CESR frames or own a producer queue. The
8
+ * producer prepares introductions, genus transitions and any sealing before
9
+ * construction; send owns only the actual request and joined response cleanup.
10
+ */
11
+ export declare class HTTPStreamMessenger {
12
+ readonly url: string;
13
+ private readonly http;
14
+ private readonly payload;
15
+ private readonly options;
16
+ /** Construction borrows a finite payload; its producer must not mutate it during delivery. */
17
+ constructor(url: string, http: HttpClient, payload: Uint8Array, options?: HTTPMessengerOptions);
18
+ /**
19
+ * Send exactly one PUT without parsing, re-encoding or fallback to POST.
20
+ * Return ordinary owned response bytes after request cleanup; HTTP success
21
+ * alone does not establish protocol acceptance. Cancellation/failures propagate.
22
+ * Non-success status is returned to the caller as HttpResponse for interpretation.
23
+ * The complete payload is the body with explicit length; CESR-ATTACHMENT is
24
+ * removed because this is not ordinary detached-attachment POST framing.
25
+ */
26
+ send(options?: {
27
+ signal?: AbortSignal;
28
+ }): Operation<HttpResponse>;
29
+ }
30
+ //# sourceMappingURL=http-stream-messenger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-stream-messenger.d.ts","sourceRoot":"","sources":["../../../src/app/transport/http-stream-messenger.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE;;;;;GAKG;AACH,qBAAa,mBAAmB;IAG5B,QAAQ,CAAC,GAAG,EAAE,MAAM;IACpB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAL1B,8FAA8F;gBAEnF,GAAG,EAAE,MAAM,EACH,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,UAAU,EACnB,OAAO,GAAE,oBAAyB;IAGrD;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,GAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAA;KAAO,GAAG,SAAS,CAAC,YAAY,CAAC;CAetE"}
@@ -0,0 +1,19 @@
1
+ /** HTTP caller policies; the composed client owns native requests, readers and cleanup. */
2
+ import { type Operation } from "effection";
3
+ import type { RuntimeClock } from "../runtime/runtime-clock.js";
4
+ import type { HttpClient, HttpRequestInit, HttpStreamResponse } from "./http-client.js";
5
+ /**
6
+ * Acquire headers under the mailbox's existing timeout-as-no-response policy.
7
+ * The timer ends at headers, while the client resource remains live in this
8
+ * caller scope for body consumption. Only this timer's exact abort becomes null;
9
+ * external abort, native I/O and cleanup failures remain visible.
10
+ *
11
+ * @param http Borrowed HTTP implementation selected by composition.
12
+ * @param clock Borrowed clock with epoch-millisecond now and millisecond timer delays.
13
+ * @param url Absolute HTTP(S) endpoint.
14
+ * @param init Prepared request fields and optional upstream cancellation.
15
+ * @param timeoutMs Header-acquisition window in milliseconds; body consumption has its own caller policy.
16
+ * @returns Scoped response after headers, or null only for this owner's header timeout.
17
+ */
18
+ export declare function requestWithHeaderTimeout(http: HttpClient, clock: RuntimeClock, url: string, init: HttpRequestInit, timeoutMs: number): Operation<HttpStreamResponse | null>;
19
+ //# sourceMappingURL=httping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httping.d.ts","sourceRoot":"","sources":["../../../src/app/transport/httping.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,OAAO,EAAQ,KAAK,SAAS,EAAY,MAAM,WAAW,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAgB,MAAM,6BAA6B,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAExF;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,YAAY,EACnB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,MAAM,GAChB,SAAS,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAqCtC"}
@@ -0,0 +1,22 @@
1
+ import { type Operation } from "effection";
2
+ import type { Kevery } from "../../core/kel/eventing.js";
3
+ import type { DispatchOptions, ProtocolProcessor } from "../protocol/protocol-processing.js";
4
+ /** Protocol choices plus cancellation of this concrete source/parser lifetime. */
5
+ export interface IngressOptions extends DispatchOptions {
6
+ /** Stops source reads and dispatch waiting, joining active cleanup before return. */
7
+ signal?: AbortSignal;
8
+ }
9
+ /**
10
+ * Consume complete frames through the supplied input-owned Kevery and shared protocol owner.
11
+ * A pending read is joined before iterator return; cancellation cannot resume the
12
+ * caller after disposal. The owning input operation borrows processors and acquires
13
+ * no stores, queues, transport services or background workers here.
14
+ *
15
+ * @param source Creates the input byte source with this operation's abort signal; each source must honor cancellation.
16
+ * @param protocol Borrowed dispatcher over synchronous domain commits and correlated cue publication.
17
+ * @param kvy Input-owned KEL processor bound to the same store, reply verifier and cue flow.
18
+ * @param options Dispatch policy and optional upstream cancellation; defaults follow the shared processor.
19
+ * @throws Parsing, dispatch and cleanup failures propagate after the pending pull and iterator cleanup join.
20
+ */
21
+ export declare function processMessages(source: (signal: AbortSignal) => AsyncIterable<Uint8Array>, protocol: ProtocolProcessor, kvy: Kevery, options?: IngressOptions): Operation<void>;
22
+ //# sourceMappingURL=message-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-source.d.ts","sourceRoot":"","sources":["../../../src/app/transport/message-source.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAQ,MAAM,WAAW,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAG7F,kFAAkF;AAClF,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,qFAAqF;IACrF,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;;;;;;GAWG;AACH,wBAAiB,eAAe,CAC9B,MAAM,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,aAAa,CAAC,UAAU,CAAC,EAC1D,QAAQ,EAAE,iBAAiB,EAC3B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,cAAmB,GAC3B,SAAS,CAAC,IAAI,CAAC,CAqDjB"}
@@ -0,0 +1,41 @@
1
+ import type { RuntimeClock } from "../runtime/runtime-clock.js";
2
+ import type { HttpClient } from "./http-client.js";
3
+ import { HTTPMessenger } from "./http-messenger.js";
4
+ import { HTTPStreamMessenger } from "./http-stream-messenger.js";
5
+ import { TCPMessenger } from "./tcp-messenger.js";
6
+ import { TCPStreamMessenger } from "./tcp-stream-messenger.js";
7
+ /** Resolved transport URLs; identity/role discovery belongs to the caller. */
8
+ export interface MessengerUrls {
9
+ https?: string;
10
+ http?: string;
11
+ tcp?: string;
12
+ }
13
+ /**
14
+ * Bind ordinary signed-message delivery to the first present HTTPS/HTTP/TCP URL.
15
+ * A malformed higher-priority URL fails rather than falling through to another
16
+ * transport. There is no network retry or endpoint discovery at this boundary.
17
+ *
18
+ * @param destination Remote AID carried in the HTTP CESR-DESTINATION header.
19
+ * @param urls Already resolved endpoints, keyed by their actual scheme.
20
+ * @param http Borrowed HTTP implementation, used only for an HTTP(S) selection.
21
+ * @param clock Borrowed deadline clock, used only for a TCP selection.
22
+ * @param headers Additional HTTP headers, such as Authorization; ignored by TCP.
23
+ * @returns A transmit-only messenger; caller runs send and owns its lifetime.
24
+ */
25
+ export declare function messengerFrom(destination: string, urls: MessengerUrls, http: HttpClient, clock: RuntimeClock, headers?: HeadersInit): HTTPMessenger | TCPMessenger;
26
+ /**
27
+ * Bind one prepared opaque payload to HTTP PUT or raw TCP delivery.
28
+ * No parser, re-signing or fallback to ordinary POST is introduced. This follows
29
+ * KERIpy's separate stream factory; "stream" describes the transport operation,
30
+ * while this API borrows finite resident bytes.
31
+ *
32
+ * @param destination Remote AID carried in HTTP framing; not a receipt/acceptance claim.
33
+ * @param urls Resolved endpoints, with the same fail-fast preference as messengerFrom.
34
+ * @param payload Complete prepared wire; caller must keep it unchanged until send finishes.
35
+ * @param http Borrowed HTTP service for a possible PUT.
36
+ * @param clock Borrowed clock for possible TCP connection/drain deadlines.
37
+ * @param headers Additional HTTP headers; ignored by TCP.
38
+ * @returns An unstarted messenger with no receive loop or scheduling ownership.
39
+ */
40
+ export declare function streamMessengerFrom(destination: string, urls: MessengerUrls, payload: Uint8Array, http: HttpClient, clock: RuntimeClock, headers?: HeadersInit): HTTPStreamMessenger | TCPStreamMessenger;
41
+ //# sourceMappingURL=messengering.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messengering.d.ts","sourceRoot":"","sources":["../../../src/app/transport/messengering.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,8EAA8E;AAC9E,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAmBD;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAC3B,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,aAAa,EACnB,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,WAAW,GACpB,aAAa,GAAG,YAAY,CAI9B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,WAAW,GACpB,mBAAmB,GAAG,kBAAkB,CAI1C"}
@@ -3,6 +3,9 @@ import type { Socket } from "node:net";
3
3
  import type { SourceOptions } from "./byte-source.js";
4
4
  /** Cancellation is mandatory so a stalled read can be interrupted before iterator cleanup joins. */
5
5
  export interface SocketSourceOptions extends SourceOptions {
6
+ /**
7
+ * Required owner cancellation; abort interrupts stalled reads before iterator cleanup can join.
8
+ */
6
9
  signal: AbortSignal;
7
10
  }
8
11
  /**
@@ -11,6 +14,11 @@ export interface SocketSourceOptions extends SourceOptions {
11
14
  * Socket/OS buffers and a returned native view can have larger backing; copied output is independent.
12
15
  * Abort, failure or early return destroys and joins the socket. Genuine receive EOF leaves its writable
13
16
  * half intact; the caller must own later socket errors, output drain and final close (allowHalfOpen).
17
+ *
18
+ * @param socket Borrowed binary socket with no competing readable/data consumer; receive ownership is acquired on first pull.
19
+ * @param options Required abort signal and optional positive chunk size in bytes; default 65536.
20
+ * @returns An exclusive iterator allowing one pending next call; each chunk owns its backing buffer.
21
+ * @throws Competing readers, text/object-mode sockets, invalid chunk sizes, I/O and cleanup failures.
14
22
  */
15
23
  export declare function socketBytes(socket: Socket, { signal, maxChunkBytes }: SocketSourceOptions): AsyncIterableIterator<Uint8Array>;
16
24
  //# sourceMappingURL=socket-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"socket-source.d.ts","sourceRoot":"","sources":["../../../src/app/transport/socket-source.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAItD,oGAAoG;AACpG,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC;CACrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,EAAE,MAAM,EAAE,aAAyB,EAAE,EAAE,mBAAmB,GACzD,qBAAqB,CAAC,UAAU,CAAC,CA6KnC"}
@@ -0,0 +1,118 @@
1
+ /** Concrete TCP connections and pull-driven writers; applications compose receive work. */
2
+ import { type CesrFrame } from "cesr-ts";
3
+ import { type Socket } from "node:net";
4
+ import { type Operation } from "effection";
5
+ import { type RuntimeClock } from "../runtime/runtime-clock.js";
6
+ /** Actual connection/write choices, without a parser or receive callback. */
7
+ export interface TcpSendOptions {
8
+ /** Serializer chunk size; default 64 KiB. */
9
+ maxChunkBytes?: number;
10
+ /** Connection acquisition deadline; default 30 seconds. */
11
+ connectTimeoutMs?: number;
12
+ /** Absolute local-drain deadline from output EOF, also covering peer close for duplex; default 30 seconds. */
13
+ drainTimeoutMs?: number;
14
+ /**
15
+ * Optional upstream cancellation; abort stops source/output and joins the owned connection.
16
+ */
17
+ signal?: AbortSignal;
18
+ }
19
+ /** Producer observes abort and joins cleanup on return. */
20
+ export type TcpSourceFactory = (signal: AbortSignal) => AsyncIterable<Uint8Array> | Promise<AsyncIterable<Uint8Array>>;
21
+ /** A borrowed real connection. Its owner joins close after application children stop. */
22
+ export interface TcpConnection {
23
+ /**
24
+ * Paused binary socket with allowHalfOpen; borrower supplies any receive processing.
25
+ */
26
+ readonly socket: Socket;
27
+ /**
28
+ * Settles on native socket close; does not itself imply successful transmission.
29
+ */
30
+ readonly closed: Promise<void>;
31
+ /**
32
+ * Combined caller/connection cancellation, including the originating connection failure.
33
+ */
34
+ readonly signal: AbortSignal;
35
+ /**
36
+ * Stop both directions immediately, retaining the originating failure.
37
+ *
38
+ * @param reason Optional failure/cancellation reason retained by the connection signal.
39
+ */
40
+ close(reason?: unknown): void;
41
+ }
42
+ /**
43
+ * Open a socket and lend it to application-owned receive/transmit operations.
44
+ * This resource does not parse incoming data. Its scope destroys the socket and
45
+ * joins native close after child operations stop. Receive EOF can leave output
46
+ * open; the borrower must complete or cancel both directions before releasing it.
47
+ *
48
+ * @param url TCP endpoint with an explicit port in the range 1–65535.
49
+ * @param clock Borrowed clock for connection/drain deadlines and scheduler yields; durations are milliseconds.
50
+ * @param options Connection timeout in milliseconds and optional upstream cancellation; default timeout is 30000.
51
+ * @returns A paused half-open-capable connection borrowed until the enclosing scope ends.
52
+ * @throws URL/option validation failures precede connection acquisition; connection errors retain their causes as TransportError.
53
+ */
54
+ export declare function openTcpConnection(url: string, clock: RuntimeClock, options?: Pick<TcpSendOptions, "connectTimeoutMs" | "signal">): Operation<TcpConnection>;
55
+ /**
56
+ * Send a resident value over the same concrete connection/source owner as streaming output.
57
+ *
58
+ * @param url TCP endpoint with an explicit port in the range 1–65535.
59
+ * @param bytes Resident signed wire bytes; chunking copies each outgoing segment.
60
+ * @param clock Borrowed clock for connection/drain deadlines and scheduler yields; durations are milliseconds.
61
+ * @param options Chunk size, connection/drain deadlines and optional cancellation; defaults are 64 KiB and 30-second deadlines.
62
+ * @returns Local output completion after owned socket cleanup joins; no receive-EOF or protocol-acceptance guarantee.
63
+ * @throws Source/serialization, transport, cancellation and cleanup errors propagate.
64
+ */
65
+ export declare function sendCesrTcp(url: string, bytes: Uint8Array, clock: RuntimeClock, options?: TcpSendOptions): Operation<void>;
66
+ /**
67
+ * Transmit-only flow completes local drain, then its connection owner joins close without awaiting peer EOF.
68
+ *
69
+ * @param url TCP endpoint with an explicit port in the range 1–65535.
70
+ * @param source Creates a finite binary source with the owner's cancellation signal; must interrupt reads and finish cleanup when aborted.
71
+ * @param clock Borrowed clock for connection/drain deadlines and scheduler yields; durations are milliseconds.
72
+ * @param options Chunk size, connection/drain deadlines and optional cancellation; defaults are 64 KiB and 30-second deadlines.
73
+ * @returns Local output completion after owned socket cleanup joins; no receive-EOF or protocol-acceptance guarantee.
74
+ * @throws Source/serialization, transport, cancellation and cleanup errors propagate.
75
+ */
76
+ export declare function streamCesrTcp(url: string, source: TcpSourceFactory, clock: RuntimeClock, options?: TcpSendOptions): Operation<void>;
77
+ /**
78
+ * Borrow an already hydrated frame through serializer completion, without reparsing.
79
+ *
80
+ * @param url TCP endpoint with an explicit port in the range 1–65535.
81
+ * @param frame Borrowed parsed frame; serialization preserves its body and attachments without reparsing.
82
+ * @param clock Borrowed clock for connection/drain deadlines and scheduler yields; durations are milliseconds.
83
+ * @param options Chunk size, connection/drain deadlines and optional cancellation; defaults are 64 KiB and 30-second deadlines.
84
+ * @returns Local output completion after owned socket cleanup joins; no receive-EOF or protocol-acceptance guarantee.
85
+ * @throws Source/serialization, transport, cancellation and cleanup errors propagate.
86
+ */
87
+ export declare function sendCesrTcpFrame(url: string, frame: CesrFrame, clock: RuntimeClock, options?: TcpSendOptions): Operation<void>;
88
+ /** Write options for a caller-owned socket; this operation never ends its writable half. */
89
+ export interface TcpSocketWriteOptions {
90
+ /**
91
+ * Optional caller cancellation; abort destroys this socket but its caller owns joining close.
92
+ */
93
+ signal?: AbortSignal;
94
+ }
95
+ /**
96
+ * Pull/write/drain one chunk at a time and join source cleanup before returning.
97
+ *
98
+ * @param socket Borrowed writable socket; this operation never calls end on successful completion.
99
+ * @param factory Creates a finite binary source with the owner's cancellation signal; must interrupt reads and finish cleanup when aborted.
100
+ * @param clock Borrowed clock for connection/drain deadlines and scheduler yields; durations are milliseconds.
101
+ * @param options Optional cancellation for this write/source lifetime.
102
+ * @returns Local output completion after source cleanup; caller still owns final socket close.
103
+ * @throws Source and write errors propagate; abort destroys the socket to interrupt pending output.
104
+ */
105
+ export declare function writeCesrTcpSocket(socket: Socket, factory: TcpSourceFactory, clock: RuntimeClock, { signal }?: TcpSocketWriteOptions): Operation<void>;
106
+ /**
107
+ * Finish output on a duplex connection and wait for native connection close.
108
+ * The receiver must run concurrently and consume the peer's readable half. The
109
+ * messenger separately joins receive processing before reporting duplex success.
110
+ *
111
+ * @param connection Borrowed connection with an application-owned concurrent receive operation.
112
+ * @param factory Creates a finite binary source with the owner's cancellation signal; must interrupt reads and finish cleanup when aborted.
113
+ * @param clock Borrowed clock for connection/drain deadlines and scheduler yields; durations are milliseconds.
114
+ * @param options Absolute drain timeout starting at source EOF; default 30000 milliseconds.
115
+ * @returns Completion after local end and peer close, within the same drain deadline.
116
+ */
117
+ export declare function sendCesrTcpSocket(connection: TcpConnection, factory: TcpSourceFactory, clock: RuntimeClock, options?: Pick<TcpSendOptions, "drainTimeoutMs">): Operation<void>;
118
+ //# sourceMappingURL=tcp-egress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tcp-egress.d.ts","sourceRoot":"","sources":["../../../src/app/transport/tcp-egress.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,OAAO,EAAE,KAAK,SAAS,EAAgB,MAAM,SAAS,CAAC;AACvD,OAAO,EAAoB,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAQ,KAAK,SAAS,EAAY,MAAM,WAAW,CAAC;AAG3D,OAAO,EAAE,KAAK,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAInF,6EAA6E;AAC7E,MAAM,WAAW,cAAc;IAC7B,6CAA6C;IAC7C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8GAA8G;IAC9G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,2DAA2D;AAC3D,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,WAAW,KAAK,aAAa,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;AAEvH,yFAAyF;AACzF,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC/B;AAeD;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,YAAY,EACnB,OAAO,GAAE,IAAI,CAAC,cAAc,EAAE,kBAAkB,GAAG,QAAQ,CAAM,GAChE,SAAS,CAAC,aAAa,CAAC,CAwD1B;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,YAAY,EACnB,OAAO,GAAE,cAAmB,GAC3B,SAAS,CAAC,IAAI,CAAC,CAGjB;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,gBAAgB,EACxB,KAAK,EAAE,YAAY,EACnB,OAAO,GAAE,cAAmB,GAC3B,SAAS,CAAC,IAAI,CAAC,CAMjB;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,YAAY,EACnB,OAAO,GAAE,cAAmB,GAC3B,SAAS,CAAC,IAAI,CAAC,CAYjB;AAED,4FAA4F;AAC5F,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAE,YAAY,EACnB,EAAE,MAAM,EAAE,GAAE,qBAA0B,GACrC,SAAS,CAAC,IAAI,CAAC,CAWjB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,aAAa,EACzB,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAE,YAAY,EACnB,OAAO,GAAE,IAAI,CAAC,cAAc,EAAE,gBAAgB,CAAM,GACnD,SAAS,CAAC,IAAI,CAAC,CAEjB"}
@@ -0,0 +1,69 @@
1
+ import { type Operation } from "effection";
2
+ import type { Kevery } from "../../core/kel/eventing.js";
3
+ import type { ProtocolProcessor } from "../protocol/protocol-processing.js";
4
+ import type { RuntimeClock } from "../runtime/runtime-clock.js";
5
+ import { type TcpSendOptions, type TcpSourceFactory } from "./tcp-egress.js";
6
+ /** Per-attempt choices; collaborators are required constructor dependencies. */
7
+ export interface TCPMessengerOptions extends TcpSendOptions {
8
+ /** Process same-socket replies through receive EOF; omitted completes local TX only. */
9
+ replies?: boolean;
10
+ /** Locally received witness/controller semantics for parsed protocol frames. */
11
+ local?: boolean;
12
+ }
13
+ /**
14
+ * Own one TCP delivery attempt and its parser/Kevery, following KERIpy TCPMessenger.
15
+ *
16
+ * Poster or WitnessInquisitor owns queued source work and delivery policy. This messenger runs
17
+ * directly in that owner's scope, keeps no message queue or sent history, and joins
18
+ * TX, optional RX, parser/source cleanup and connection close before returning.
19
+ * Finite bytes and pull sources share the same socket implementation.
20
+ *
21
+ * Transmit-only is the default. Reply mode starts RX before TX so the peer may
22
+ * answer during upload, then waits for receive EOF and dispatch completion.
23
+ * Those are socket/protocol-processing facts, not the calling workflow's
24
+ * accepted-state predicate or an application acknowledgement from the peer.
25
+ */
26
+ export declare class TCPMessenger {
27
+ readonly url: string;
28
+ private readonly clock;
29
+ private readonly protocol;
30
+ /** Input-owned Kevery (kvy); null when no protocol receive capability was supplied. */
31
+ readonly kvy: Kevery | null;
32
+ /**
33
+ * Bind the actual receiver and clock without opening a socket or acquiring stores.
34
+ *
35
+ * @param url TCP endpoint bound to this messenger.
36
+ * @param clock Borrowed clock for connection/drain deadlines and scheduler yields; durations are milliseconds.
37
+ * @param protocol Optional borrowed receiver; omitted means transmit-only.
38
+ */
39
+ constructor(url: string, clock: RuntimeClock, protocol?: ProtocolProcessor | null);
40
+ /**
41
+ * Adapt resident signed wire to the same pull-source lifetime as streamed output.
42
+ *
43
+ * @param msg Resident signed CESR bytes; copied into chunks as transmitted.
44
+ * @param options Chunk size, connection/drain deadlines and optional cancellation; defaults are 64 KiB and 30-second deadlines. Set replies to process same-socket input through EOF; local controls KEL intake policy.
45
+ * @returns Completion after local output; reply mode also joins receive EOF and protocol processing.
46
+ * @throws Reply mode requires a protocol processor. Source/parser, dispatch, transport and cleanup failures propagate.
47
+ */
48
+ send(msg: Uint8Array, options?: TCPMessengerOptions): Operation<void>;
49
+ /**
50
+ * Send one source; duplex processing is explicit and never changes the local-only success contract.
51
+ *
52
+ * @param source Creates a finite binary source with the owner's cancellation signal; must interrupt reads and finish cleanup when aborted.
53
+ * @param options Chunk size, connection/drain deadlines and optional cancellation; defaults are 64 KiB and 30-second deadlines. Set replies to process same-socket input through EOF; local controls KEL intake policy.
54
+ * @returns Completion after local output; reply mode also joins receive EOF and protocol processing.
55
+ * @throws Reply mode requires a protocol processor. Source/parser, dispatch, transport and cleanup failures propagate.
56
+ */
57
+ sendSource(source: TcpSourceFactory, options?: TCPMessengerOptions): Operation<void>;
58
+ /**
59
+ * Send while processing replies, corresponding to KERIpy TCPMessenger.receiptDo/msgDo.
60
+ * Cancel and join concurrent RX/TX children before releasing the borrowed socket.
61
+ *
62
+ * @param source Creates a finite binary source with the owner's cancellation signal; must interrupt reads and finish cleanup when aborted.
63
+ * @param options Chunk size, connection/drain deadlines and optional cancellation; defaults are 64 KiB and 30-second deadlines. Set replies to process same-socket input through EOF; local controls KEL intake policy.
64
+ * @returns Completion after output, processed receive EOF and joined connection cleanup.
65
+ * @throws Missing receive capability, source/parser, dispatch, transport and cleanup failures propagate.
66
+ */
67
+ private receiptDo;
68
+ }
69
+ //# sourceMappingURL=tcp-messenger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tcp-messenger.d.ts","sourceRoot":"","sources":["../../../src/app/transport/tcp-messenger.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAe,MAAM,WAAW,CAAC;AAC1E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAGhE,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,gFAAgF;AAChF,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,wFAAwF;IACxF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gFAAgF;IAChF,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,YAAY;IAYrB,QAAQ,CAAC,GAAG,EAAE,MAAM;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAb3B,uFAAuF;IACvF,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;;;;;OAMG;gBAEQ,GAAG,EAAE,MAAM,EACH,KAAK,EAAE,YAAY,EACnB,QAAQ,GAAE,iBAAiB,GAAG,IAAW;IAK5D;;;;;;;OAOG;IACH,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,OAAO,GAAE,mBAAwB,GAAG,SAAS,CAAC,IAAI,CAAC;IAIzE;;;;;;;OAOG;IACH,UAAU,CAAC,MAAM,EAAE,gBAAgB,EAAE,OAAO,GAAE,mBAAwB,GAAG,SAAS,CAAC,IAAI,CAAC;IAKxF;;;;;;;;OAQG;IACH,OAAO,CAAC,SAAS;CAqElB"}
@@ -0,0 +1,25 @@
1
+ /** Finite raw TCP stream delivery using the existing socket owner. */
2
+ import type { Operation } from "effection";
3
+ import type { RuntimeClock } from "../runtime/runtime-clock.js";
4
+ import { type TcpSendOptions } from "./tcp-egress.js";
5
+ /**
6
+ * KERIpy-style TCPStreamMessenger over one already prepared opaque payload.
7
+ * Borrow bytes until send finishes, with no CESR parsing, receive processor or
8
+ * private queue. Reuse the ordinary socket owner for connection, local drain and
9
+ * joined cancellation; producers retain preparation and any delivery policy.
10
+ */
11
+ export declare class TCPStreamMessenger {
12
+ readonly url: string;
13
+ private readonly clock;
14
+ private readonly payload;
15
+ /** Construction borrows prepared bytes and opens no connection. */
16
+ constructor(url: string, clock: RuntimeClock, payload: Uint8Array);
17
+ /**
18
+ * Send all bytes and join local drain/cleanup without awaiting remote EOF.
19
+ * Completion does not prove the peer parsed, accepted or durably stored them.
20
+ * Connection/drain deadlines use the borrowed clock; source, transport and
21
+ * genuine cleanup failures propagate to this operation's caller.
22
+ */
23
+ send(options?: TcpSendOptions): Operation<void>;
24
+ }
25
+ //# sourceMappingURL=tcp-stream-messenger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tcp-stream-messenger.d.ts","sourceRoot":"","sources":["../../../src/app/transport/tcp-stream-messenger.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAErE;;;;;GAKG;AACH,qBAAa,kBAAkB;IAG3B,QAAQ,CAAC,GAAG,EAAE,MAAM;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJ1B,mEAAmE;gBAExD,GAAG,EAAE,MAAM,EACH,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,UAAU;IAGtC;;;;;OAKG;IACH,IAAI,CAAC,OAAO,GAAE,cAAmB,GAAG,SAAS,CAAC,IAAI,CAAC;CAQpD"}
@@ -0,0 +1,12 @@
1
+ /** A failure observed at a concrete network I/O boundary, retaining its original cause. */
2
+ export declare class TransportError extends Error {
3
+ /**
4
+ * Preserve a concrete I/O failure for transport owners to classify.
5
+ * Protocol refusals and arbitrary parser/storage failures must not be wrapped here.
6
+ *
7
+ * @param message Description of the actual failing network boundary.
8
+ * @param options Native Error options, normally containing the original I/O cause.
9
+ */
10
+ constructor(message: string, options?: ErrorOptions);
11
+ }
12
+ //# sourceMappingURL=transport-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transport-error.d.ts","sourceRoot":"","sources":["../../../src/app/transport/transport-error.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,qBAAa,cAAe,SAAQ,KAAK;IACvC;;;;;;OAMG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD"}