keri-ts 0.11.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (820) hide show
  1. package/README.md +32 -2
  2. package/esm/keri/npm/src/_dnt.polyfills.js +36 -0
  3. package/esm/keri/npm/src/acdc/chaining.js +213 -0
  4. package/esm/keri/npm/src/acdc/dhking.js +716 -0
  5. package/esm/keri/npm/src/acdc/messaging.js +2 -0
  6. package/esm/keri/npm/src/acdc/observing.js +47 -40
  7. package/esm/keri/npm/src/acdc/regbasing.js +22 -22
  8. package/esm/keri/npm/src/acdc/regengine.js +88 -119
  9. package/esm/keri/npm/src/acdc/regeventing.js +163 -44
  10. package/esm/keri/npm/src/acdc/registering.js +99 -23
  11. package/esm/keri/npm/src/acdc/registraring.js +82 -46
  12. package/esm/keri/npm/src/acdc/relating.js +59 -0
  13. package/esm/keri/npm/src/acdc/salting.js +720 -0
  14. package/esm/keri/npm/src/acdc/scheming.js +103 -105
  15. package/esm/keri/npm/src/acdc/unblinding.js +1042 -0
  16. package/esm/keri/npm/src/app/{authenticating.js → bootstrap/authenticating.js} +40 -39
  17. package/esm/keri/npm/src/app/bootstrap/bootstrapping.js +109 -0
  18. package/esm/keri/npm/src/app/bootstrap/oobi-replies.js +113 -0
  19. package/esm/keri/npm/src/app/{oobiery.js → bootstrap/oobiery.js} +211 -267
  20. package/esm/keri/npm/src/app/credentials/credential-importing.js +201 -0
  21. package/esm/keri/npm/src/app/credentials/credential-proposals.js +120 -0
  22. package/esm/keri/npm/src/app/credentials/credential-revoking.js +165 -0
  23. package/esm/keri/npm/src/app/credentials/credential-workflows.js +365 -0
  24. package/esm/keri/npm/src/app/credentials/tel-publishing.js +27 -0
  25. package/esm/keri/npm/src/app/{verifying.js → credentials/verifying.js} +50 -45
  26. package/esm/keri/npm/src/app/delivery/forwarding.js +600 -0
  27. package/esm/keri/npm/src/app/delivery/introducing.js +68 -0
  28. package/esm/keri/npm/src/app/delivery/reply-streams.js +230 -0
  29. package/esm/keri/npm/src/app/delivery/respondant.js +159 -0
  30. package/esm/keri/npm/src/app/delivery/stored-replies.js +53 -0
  31. package/esm/keri/npm/src/app/exchanges/essr.js +111 -0
  32. package/esm/keri/npm/src/app/exchanges/exchange-messaging.js +66 -0
  33. package/esm/keri/npm/src/app/exchanges/exchanging.js +1354 -0
  34. package/esm/keri/npm/src/app/{challenging.js → identity/challenging.js} +13 -8
  35. package/esm/keri/npm/src/app/{configing.js → identity/configing.js} +4 -4
  36. package/esm/keri/npm/src/app/{delegating.js → identity/delegating.js} +118 -40
  37. package/esm/keri/npm/src/app/{endpoint-roleing.js → identity/endpoint-roleing.js} +43 -39
  38. package/esm/keri/npm/src/app/{habbing.js → identity/habbing.js} +258 -226
  39. package/esm/keri/npm/src/app/{keeping.js → identity/keeping.js} +60 -56
  40. package/esm/keri/npm/src/app/{organizing.js → identity/organizing.js} +47 -21
  41. package/esm/keri/npm/src/app/{ipex-building.js → ipex/ipex-building.js} +53 -55
  42. package/esm/keri/npm/src/app/ipex/ipex-credentialing.js +359 -0
  43. package/esm/keri/npm/src/app/{ipex-graph.js → ipex/ipex-graph.js} +70 -124
  44. package/esm/keri/npm/src/app/ipex/ipex-grouping.js +664 -0
  45. package/esm/keri/npm/src/app/ipex/ipex-node-authentication.js +185 -0
  46. package/esm/keri/npm/src/app/ipex/ipex-v2.js +692 -0
  47. package/esm/keri/npm/src/app/{ipexing.js → ipex/ipexing.js} +59 -10
  48. package/esm/keri/npm/src/app/mailbox/forward-handler.js +228 -0
  49. package/esm/keri/npm/src/app/{mailbox-director.js → mailbox/mailbox-director.js} +146 -139
  50. package/esm/keri/npm/src/app/mailbox/mailbox-poller.js +305 -0
  51. package/esm/keri/npm/src/app/mailbox/mailbox-sse.js +254 -0
  52. package/esm/keri/npm/src/app/{mailboxing.js → mailbox/mailboxing.js} +117 -70
  53. package/esm/keri/npm/src/app/mailbox/topic-routing.js +54 -0
  54. package/esm/keri/npm/src/app/multisig/group-members.js +173 -0
  55. package/esm/keri/npm/src/app/multisig/grouping.js +932 -0
  56. package/esm/keri/npm/src/app/multisig/multisig-messaging.js +164 -0
  57. package/esm/keri/npm/src/app/multisig/multisig-workflows.js +821 -0
  58. package/esm/keri/npm/src/app/{notifying.js → notifications/notifying.js} +23 -50
  59. package/esm/keri/npm/src/app/notifications/signaling.js +177 -0
  60. package/esm/keri/npm/src/app/{parsering.js → protocol/parsering.js} +123 -53
  61. package/esm/keri/npm/src/app/protocol/protocol-processing.js +245 -0
  62. package/esm/keri/npm/src/app/protocol/reactor.js +55 -0
  63. package/esm/keri/npm/src/app/queries/query-replies.js +151 -0
  64. package/esm/keri/npm/src/app/queries/querying.js +306 -0
  65. package/esm/keri/npm/src/app/queries/witness-inquisitor.js +415 -0
  66. package/esm/keri/npm/src/app/runtime/abortable.js +103 -0
  67. package/esm/keri/npm/src/app/runtime/agent-runtime.js +633 -0
  68. package/esm/keri/npm/src/app/runtime/cue-runtime.js +61 -0
  69. package/esm/keri/npm/src/app/runtime/runtime-clock.js +6 -0
  70. package/esm/keri/npm/src/app/{byte-source.js → transport/byte-source.js} +43 -21
  71. package/esm/keri/npm/src/app/transport/cesr-egress.js +317 -0
  72. package/esm/keri/npm/src/app/{cesr-http.js → transport/cesr-http.js} +28 -78
  73. package/esm/keri/npm/src/app/transport/http-client.js +172 -0
  74. package/esm/keri/npm/src/app/transport/http-messenger.js +52 -0
  75. package/esm/keri/npm/src/app/transport/http-stream-messenger.js +60 -0
  76. package/esm/keri/npm/src/app/transport/httping.js +57 -0
  77. package/esm/keri/npm/src/app/transport/message-source.js +77 -0
  78. package/esm/keri/npm/src/app/transport/messengering.js +68 -0
  79. package/esm/keri/npm/src/app/{socket-source.js → transport/socket-source.js} +41 -5
  80. package/esm/keri/npm/src/app/transport/tcp-egress.js +377 -0
  81. package/esm/keri/npm/src/app/transport/tcp-messenger.js +162 -0
  82. package/esm/keri/npm/src/app/transport/tcp-stream-messenger.js +40 -0
  83. package/esm/keri/npm/src/app/transport/transport-error.js +14 -0
  84. package/esm/keri/npm/src/app/witness/http-endpoints.js +185 -0
  85. package/esm/keri/npm/src/app/witness/ingress.js +148 -0
  86. package/esm/keri/npm/src/app/witness/receipt-client.js +248 -0
  87. package/esm/keri/npm/src/app/witness/receipt-messages.js +29 -0
  88. package/esm/keri/npm/src/app/witness/receipting.js +323 -0
  89. package/esm/keri/npm/src/app/witness/registration.js +50 -0
  90. package/esm/keri/npm/src/cli/common/bootstrap.js +12 -0
  91. package/esm/keri/npm/src/{app/cli → cli}/common/context.js +47 -9
  92. package/esm/keri/npm/src/{app/cli → cli}/common/existing.js +9 -29
  93. package/esm/keri/npm/src/cli/common/parsing.js +279 -0
  94. package/esm/keri/npm/src/cli/common/passcode.js +66 -0
  95. package/esm/keri/npm/src/cli/common/tel-completion.js +24 -0
  96. package/esm/keri/npm/src/{app/cli → cli}/common/witness-auth.js +2 -2
  97. package/esm/keri/npm/src/cli/credentials/ipex.js +702 -0
  98. package/esm/keri/npm/src/cli/credentials/vc.js +399 -0
  99. package/esm/keri/npm/src/{app/cli → cli/endpoints}/did.js +71 -53
  100. package/esm/keri/npm/src/{app/cli → cli/endpoints}/ends.js +34 -31
  101. package/esm/keri/npm/src/{app/cli → cli/endpoints}/loc.js +22 -20
  102. package/esm/keri/npm/src/cli/endpoints/oobi-clean.js +134 -0
  103. package/esm/keri/npm/src/{app/cli → cli/endpoints}/oobi.js +37 -36
  104. package/esm/keri/npm/src/{app/cli → cli/identity}/aid.js +8 -7
  105. package/esm/keri/npm/src/cli/identity/challenge.js +181 -0
  106. package/esm/keri/npm/src/{app/cli → cli/identity}/delegate.js +88 -73
  107. package/esm/keri/npm/src/{app/cli → cli/identity}/export.js +9 -8
  108. package/esm/keri/npm/src/cli/identity/incept.js +181 -0
  109. package/esm/keri/npm/src/cli/identity/init.js +153 -0
  110. package/esm/keri/npm/src/cli/identity/interact.js +84 -0
  111. package/esm/keri/npm/src/{app/cli → cli/identity}/list.js +7 -6
  112. package/esm/keri/npm/src/cli/identity/rotate.js +172 -0
  113. package/esm/keri/npm/src/cli/index.js +38 -0
  114. package/esm/keri/npm/src/{app/cli → cli/messaging}/exchange.js +24 -24
  115. package/esm/keri/npm/src/cli/messaging/multisig.js +569 -0
  116. package/esm/keri/npm/src/{app/cli → cli/messaging}/notifications.js +26 -22
  117. package/esm/keri/npm/src/{app/cli → cli}/output.js +1 -1
  118. package/esm/keri/npm/src/cli/tools/annotate.js +25 -0
  119. package/esm/keri/npm/src/{app/cli → cli/tools}/benchmark.js +18 -9
  120. package/esm/keri/npm/src/{app/cli → cli/tools}/db-dump.js +14 -27
  121. package/esm/keri/npm/src/{app/cli → cli/tools}/saidify.js +3 -2
  122. package/esm/keri/npm/src/{app/cli → cli/tools}/sign.js +16 -10
  123. package/esm/keri/npm/src/{app/cli → cli/tools}/verify.js +10 -10
  124. package/esm/keri/npm/src/core/attachment-countering.js +31 -1
  125. package/esm/keri/npm/src/core/deck.js +5 -44
  126. package/esm/keri/npm/src/core/dispatch.js +10 -2
  127. package/esm/keri/npm/src/core/errors.js +5 -10
  128. package/esm/keri/npm/src/core/{exchange-proofing.js → exchange/exchange-proofing.js} +32 -2
  129. package/esm/keri/npm/src/core/{protocol-exchanging.js → exchange/protocol-exchanging.js} +47 -4
  130. package/esm/keri/npm/src/core/genus-framing.js +44 -0
  131. package/esm/keri/npm/src/core/{eventing.js → kel/eventing.js} +209 -390
  132. package/esm/keri/npm/src/core/kel/kever-decisions.js +70 -0
  133. package/esm/keri/npm/src/core/{kever.js → kel/kever.js} +84 -167
  134. package/esm/keri/npm/src/core/logger.js +3 -3
  135. package/esm/keri/npm/src/core/{kram-policy.js → mailbox/kram-policy.js} +14 -4
  136. package/esm/keri/npm/src/core/{kram-pruning.js → mailbox/kram-pruning.js} +5 -15
  137. package/esm/keri/npm/src/core/{kram-signatures.js → mailbox/kram-signatures.js} +1 -1
  138. package/esm/keri/npm/src/core/mailbox/kram-staging.js +149 -0
  139. package/esm/keri/npm/src/core/{kram-time.js → mailbox/kram-time.js} +9 -15
  140. package/esm/keri/npm/src/core/mailbox/kraming.js +78 -0
  141. package/esm/keri/npm/src/core/protocol-eventing.js +6 -1
  142. package/esm/keri/npm/src/core/protocol-serialization.js +9 -34
  143. package/esm/keri/npm/src/core/protocol-vdr-eventing.js +10 -11
  144. package/esm/keri/npm/src/core/records.js +0 -19
  145. package/esm/keri/npm/src/core/routing.js +187 -199
  146. package/esm/keri/npm/src/db/baser-defaults.js +11 -0
  147. package/esm/keri/npm/src/db/basing.js +224 -401
  148. package/esm/keri/npm/src/db/core/keys.js +2 -2
  149. package/esm/keri/npm/src/db/core/lmdber.js +123 -149
  150. package/esm/keri/npm/src/db/core/path-manager.js +2 -4
  151. package/esm/keri/npm/src/db/escrowing.js +82 -200
  152. package/esm/keri/npm/src/db/exchange/exchange-nests.js +54 -0
  153. package/esm/keri/npm/src/db/exchange/exchange-records.js +7 -0
  154. package/esm/keri/npm/src/db/index.js +5 -6
  155. package/esm/keri/npm/src/db/keeping.js +123 -6
  156. package/esm/keri/npm/src/db/{kram-factors.js → mailbox/kram-factors.js} +17 -50
  157. package/esm/keri/npm/src/db/{mailboxing.js → mailbox/mailboxing.js} +5 -8
  158. package/esm/keri/npm/src/db/reger.js +48 -69
  159. package/esm/keri/npm/src/db/{kel-replay.js → replay/kel-replay.js} +12 -24
  160. package/esm/keri/npm/src/db/{tel-replay.js → replay/tel-replay.js} +38 -36
  161. package/esm/keri/npm/src/db/{witness-replay.js → replay/witness-replay.js} +8 -14
  162. package/esm/keri/npm/src/db/subing.js +2 -11
  163. package/esm/keri/npm/src/did/keri/resolving.js +4 -18
  164. package/esm/keri/npm/src/did/webs/artifacts.js +21 -24
  165. package/esm/keri/npm/src/did/webs/designated-aliases.js +18 -48
  166. package/esm/keri/npm/src/did/webs/documenting.js +8 -8
  167. package/esm/keri/npm/src/did/webs/resolving.js +73 -74
  168. package/esm/keri/npm/src/library/index.js +1 -1
  169. package/esm/keri/npm/src/npm/cli.js +1 -1
  170. package/esm/keri/npm/src/npm/index.js +1 -1
  171. package/esm/keri/npm/src/runtime/index.js +105 -74
  172. package/esm/keri/npm/src/vdr/backer-state.js +55 -0
  173. package/esm/keri/npm/src/vdr/credential-tsn-record.js +59 -0
  174. package/esm/keri/npm/src/vdr/credentialing.js +84 -109
  175. package/esm/keri/npm/src/vdr/eventing.js +633 -251
  176. package/esm/keri/npm/src/vdr/registry-tsn-record.js +55 -0
  177. package/esm/keri/npm/src/vdr/revoking.js +90 -0
  178. package/esm/keri/npm/src/vdr/tel-anchor.js +29 -0
  179. package/esm/keri/npm/src/vdr/tel-publication.js +178 -0
  180. package/esm/keri/npm/src/vdr/tsn-query.js +15 -10
  181. package/esm/keri/npm/src/{app/version.js → version.js} +2 -2
  182. package/package.json +7 -21
  183. package/types/_dnt.polyfills.d.ts +55 -0
  184. package/types/_dnt.polyfills.d.ts.map +1 -1
  185. package/types/acdc/chaining.d.ts +35 -0
  186. package/types/acdc/chaining.d.ts.map +1 -0
  187. package/types/acdc/dhking.d.ts +136 -0
  188. package/types/acdc/dhking.d.ts.map +1 -0
  189. package/types/acdc/messaging.d.ts.map +1 -1
  190. package/types/acdc/observing.d.ts +19 -15
  191. package/types/acdc/observing.d.ts.map +1 -1
  192. package/types/acdc/regbasing.d.ts +8 -9
  193. package/types/acdc/regbasing.d.ts.map +1 -1
  194. package/types/acdc/regengine.d.ts +14 -28
  195. package/types/acdc/regengine.d.ts.map +1 -1
  196. package/types/acdc/regeventing.d.ts +24 -7
  197. package/types/acdc/regeventing.d.ts.map +1 -1
  198. package/types/acdc/registering.d.ts +27 -11
  199. package/types/acdc/registering.d.ts.map +1 -1
  200. package/types/acdc/registraring.d.ts +22 -22
  201. package/types/acdc/registraring.d.ts.map +1 -1
  202. package/types/acdc/relating.d.ts +21 -0
  203. package/types/acdc/relating.d.ts.map +1 -0
  204. package/types/acdc/salting.d.ts +241 -0
  205. package/types/acdc/salting.d.ts.map +1 -0
  206. package/types/acdc/scheming.d.ts +3 -2
  207. package/types/acdc/scheming.d.ts.map +1 -1
  208. package/types/acdc/unblinding.d.ts +150 -0
  209. package/types/acdc/unblinding.d.ts.map +1 -0
  210. package/types/app/bootstrap/authenticating.d.ts +54 -0
  211. package/types/app/bootstrap/authenticating.d.ts.map +1 -0
  212. package/types/app/bootstrap/bootstrapping.d.ts +45 -0
  213. package/types/app/bootstrap/bootstrapping.d.ts.map +1 -0
  214. package/types/app/bootstrap/oobi-replies.d.ts +8 -0
  215. package/types/app/bootstrap/oobi-replies.d.ts.map +1 -0
  216. package/types/app/{oobiery.d.ts → bootstrap/oobiery.d.ts} +98 -27
  217. package/types/app/bootstrap/oobiery.d.ts.map +1 -0
  218. package/types/app/credentials/credential-importing.d.ts +29 -0
  219. package/types/app/credentials/credential-importing.d.ts.map +1 -0
  220. package/types/app/credentials/credential-proposals.d.ts +27 -0
  221. package/types/app/credentials/credential-proposals.d.ts.map +1 -0
  222. package/types/app/credentials/credential-revoking.d.ts +44 -0
  223. package/types/app/credentials/credential-revoking.d.ts.map +1 -0
  224. package/types/app/credentials/credential-workflows.d.ts +149 -0
  225. package/types/app/credentials/credential-workflows.d.ts.map +1 -0
  226. package/types/app/{schema-resolving.d.ts → credentials/schema-resolving.d.ts} +2 -2
  227. package/types/app/credentials/schema-resolving.d.ts.map +1 -0
  228. package/types/app/credentials/tel-publishing.d.ts +16 -0
  229. package/types/app/credentials/tel-publishing.d.ts.map +1 -0
  230. package/types/app/{verifying.d.ts → credentials/verifying.d.ts} +20 -9
  231. package/types/app/credentials/verifying.d.ts.map +1 -0
  232. package/types/app/delivery/forwarding.d.ts +227 -0
  233. package/types/app/delivery/forwarding.d.ts.map +1 -0
  234. package/types/app/delivery/introducing.d.ts +21 -0
  235. package/types/app/delivery/introducing.d.ts.map +1 -0
  236. package/types/app/delivery/reply-streams.d.ts +49 -0
  237. package/types/app/delivery/reply-streams.d.ts.map +1 -0
  238. package/types/app/delivery/respondant.d.ts +52 -0
  239. package/types/app/delivery/respondant.d.ts.map +1 -0
  240. package/types/app/delivery/stored-replies.d.ts +11 -0
  241. package/types/app/delivery/stored-replies.d.ts.map +1 -0
  242. package/types/app/exchanges/essr.d.ts +53 -0
  243. package/types/app/exchanges/essr.d.ts.map +1 -0
  244. package/types/app/exchanges/exchange-messaging.d.ts +73 -0
  245. package/types/app/exchanges/exchange-messaging.d.ts.map +1 -0
  246. package/types/app/exchanges/exchanging.d.ts +379 -0
  247. package/types/app/exchanges/exchanging.d.ts.map +1 -0
  248. package/types/app/{challenging.d.ts → identity/challenging.d.ts} +9 -3
  249. package/types/app/identity/challenging.d.ts.map +1 -0
  250. package/types/app/{configing.d.ts → identity/configing.d.ts} +1 -1
  251. package/types/app/identity/configing.d.ts.map +1 -0
  252. package/types/app/{delegating.d.ts → identity/delegating.d.ts} +59 -17
  253. package/types/app/identity/delegating.d.ts.map +1 -0
  254. package/types/app/identity/endpoint-roleing.d.ts +54 -0
  255. package/types/app/identity/endpoint-roleing.d.ts.map +1 -0
  256. package/types/app/{habbing.d.ts → identity/habbing.d.ts} +86 -54
  257. package/types/app/identity/habbing.d.ts.map +1 -0
  258. package/types/app/{keeping.d.ts → identity/keeping.d.ts} +19 -5
  259. package/types/app/identity/keeping.d.ts.map +1 -0
  260. package/types/app/{organizing.d.ts → identity/organizing.d.ts} +19 -4
  261. package/types/app/identity/organizing.d.ts.map +1 -0
  262. package/types/app/{ipex-building.d.ts → ipex/ipex-building.d.ts} +5 -5
  263. package/types/app/ipex/ipex-building.d.ts.map +1 -0
  264. package/types/app/{ipex-credentialing.d.ts → ipex/ipex-credentialing.d.ts} +42 -10
  265. package/types/app/ipex/ipex-credentialing.d.ts.map +1 -0
  266. package/types/app/ipex/ipex-graph.d.ts +28 -0
  267. package/types/app/ipex/ipex-graph.d.ts.map +1 -0
  268. package/types/app/ipex/ipex-grouping.d.ts +112 -0
  269. package/types/app/ipex/ipex-grouping.d.ts.map +1 -0
  270. package/types/app/ipex/ipex-node-authentication.d.ts +32 -0
  271. package/types/app/ipex/ipex-node-authentication.d.ts.map +1 -0
  272. package/types/app/ipex/ipex-v2.d.ts +71 -0
  273. package/types/app/ipex/ipex-v2.d.ts.map +1 -0
  274. package/types/app/{ipexing.d.ts → ipex/ipexing.d.ts} +21 -8
  275. package/types/app/ipex/ipexing.d.ts.map +1 -0
  276. package/types/app/mailbox/forward-handler.d.ts +68 -0
  277. package/types/app/mailbox/forward-handler.d.ts.map +1 -0
  278. package/types/app/mailbox/mailbox-director.d.ts +252 -0
  279. package/types/app/mailbox/mailbox-director.d.ts.map +1 -0
  280. package/types/app/mailbox/mailbox-poller.d.ts +149 -0
  281. package/types/app/mailbox/mailbox-poller.d.ts.map +1 -0
  282. package/types/app/mailbox/mailbox-sse.d.ts +63 -0
  283. package/types/app/mailbox/mailbox-sse.d.ts.map +1 -0
  284. package/types/app/{mailboxing.d.ts → mailbox/mailboxing.d.ts} +92 -43
  285. package/types/app/mailbox/mailboxing.d.ts.map +1 -0
  286. package/types/app/mailbox/topic-routing.d.ts +18 -0
  287. package/types/app/mailbox/topic-routing.d.ts.map +1 -0
  288. package/types/app/multisig/group-members.d.ts +60 -0
  289. package/types/app/multisig/group-members.d.ts.map +1 -0
  290. package/types/app/multisig/grouping.d.ts +317 -0
  291. package/types/app/multisig/grouping.d.ts.map +1 -0
  292. package/types/app/multisig/multisig-messaging.d.ts +97 -0
  293. package/types/app/multisig/multisig-messaging.d.ts.map +1 -0
  294. package/types/app/multisig/multisig-workflows.d.ts +85 -0
  295. package/types/app/multisig/multisig-workflows.d.ts.map +1 -0
  296. package/types/app/{notifying.d.ts → notifications/notifying.d.ts} +5 -6
  297. package/types/app/notifications/notifying.d.ts.map +1 -0
  298. package/types/app/notifications/signaling.d.ts +68 -0
  299. package/types/app/notifications/signaling.d.ts.map +1 -0
  300. package/types/app/protocol/parsering.d.ts +128 -0
  301. package/types/app/protocol/parsering.d.ts.map +1 -0
  302. package/types/app/{protocol-host-policy.d.ts → protocol/protocol-host-policy.d.ts} +1 -10
  303. package/types/app/protocol/protocol-host-policy.d.ts.map +1 -0
  304. package/types/app/protocol/protocol-processing.d.ts +140 -0
  305. package/types/app/protocol/protocol-processing.d.ts.map +1 -0
  306. package/types/app/protocol/reactor.d.ts +43 -0
  307. package/types/app/protocol/reactor.d.ts.map +1 -0
  308. package/types/app/queries/query-replies.d.ts +78 -0
  309. package/types/app/queries/query-replies.d.ts.map +1 -0
  310. package/types/app/queries/querying.d.ts +155 -0
  311. package/types/app/queries/querying.d.ts.map +1 -0
  312. package/types/app/queries/witness-inquisitor.d.ts +150 -0
  313. package/types/app/queries/witness-inquisitor.d.ts.map +1 -0
  314. package/types/app/runtime/abortable.d.ts +39 -0
  315. package/types/app/runtime/abortable.d.ts.map +1 -0
  316. package/types/app/runtime/agent-runtime.d.ts +348 -0
  317. package/types/app/runtime/agent-runtime.d.ts.map +1 -0
  318. package/types/app/runtime/cue-runtime.d.ts +33 -0
  319. package/types/app/runtime/cue-runtime.d.ts.map +1 -0
  320. package/types/app/runtime/runtime-clock.d.ts +28 -0
  321. package/types/app/runtime/runtime-clock.d.ts.map +1 -0
  322. package/types/app/runtime/runtime-turn.d.ts.map +1 -0
  323. package/types/app/transport/byte-source.d.ts +41 -0
  324. package/types/app/transport/byte-source.d.ts.map +1 -0
  325. package/types/app/transport/cesr-egress.d.ts +117 -0
  326. package/types/app/transport/cesr-egress.d.ts.map +1 -0
  327. package/types/app/{cesr-http.d.ts → transport/cesr-http.d.ts} +9 -33
  328. package/types/app/transport/cesr-http.d.ts.map +1 -0
  329. package/types/app/transport/http-client.d.ts +99 -0
  330. package/types/app/transport/http-client.d.ts.map +1 -0
  331. package/types/app/transport/http-messenger.d.ts +37 -0
  332. package/types/app/transport/http-messenger.d.ts.map +1 -0
  333. package/types/app/transport/http-stream-messenger.d.ts +30 -0
  334. package/types/app/transport/http-stream-messenger.d.ts.map +1 -0
  335. package/types/app/transport/httping.d.ts +19 -0
  336. package/types/app/transport/httping.d.ts.map +1 -0
  337. package/types/app/transport/message-source.d.ts +22 -0
  338. package/types/app/transport/message-source.d.ts.map +1 -0
  339. package/types/app/transport/messengering.d.ts +41 -0
  340. package/types/app/transport/messengering.d.ts.map +1 -0
  341. package/types/app/{socket-source.d.ts → transport/socket-source.d.ts} +10 -3
  342. package/types/app/transport/socket-source.d.ts.map +1 -0
  343. package/types/app/transport/tcp-egress.d.ts +118 -0
  344. package/types/app/transport/tcp-egress.d.ts.map +1 -0
  345. package/types/app/transport/tcp-messenger.d.ts +69 -0
  346. package/types/app/transport/tcp-messenger.d.ts.map +1 -0
  347. package/types/app/transport/tcp-stream-messenger.d.ts +25 -0
  348. package/types/app/transport/tcp-stream-messenger.d.ts.map +1 -0
  349. package/types/app/transport/transport-error.d.ts +12 -0
  350. package/types/app/transport/transport-error.d.ts.map +1 -0
  351. package/types/app/witness/http-endpoints.d.ts +77 -0
  352. package/types/app/witness/http-endpoints.d.ts.map +1 -0
  353. package/types/app/witness/ingress.d.ts +65 -0
  354. package/types/app/witness/ingress.d.ts.map +1 -0
  355. package/types/app/witness/receipt-client.d.ts +82 -0
  356. package/types/app/witness/receipt-client.d.ts.map +1 -0
  357. package/types/app/witness/receipt-messages.d.ts +21 -0
  358. package/types/app/witness/receipt-messages.d.ts.map +1 -0
  359. package/types/app/witness/receipting.d.ts +117 -0
  360. package/types/app/witness/receipting.d.ts.map +1 -0
  361. package/types/app/witness/registration.d.ts +27 -0
  362. package/types/app/witness/registration.d.ts.map +1 -0
  363. package/types/cli/common/bootstrap.d.ts +5 -0
  364. package/types/cli/common/bootstrap.d.ts.map +1 -0
  365. package/types/{app/cli → cli}/common/context.d.ts +10 -9
  366. package/types/cli/common/context.d.ts.map +1 -0
  367. package/types/{app/cli → cli}/common/existing.d.ts +2 -8
  368. package/types/cli/common/existing.d.ts.map +1 -0
  369. package/types/{app/cli → cli}/common/parsing.d.ts +26 -15
  370. package/types/cli/common/parsing.d.ts.map +1 -0
  371. package/types/cli/common/passcode.d.ts +9 -0
  372. package/types/cli/common/passcode.d.ts.map +1 -0
  373. package/types/cli/common/rendering.d.ts.map +1 -0
  374. package/types/cli/common/tel-completion.d.ts +8 -0
  375. package/types/cli/common/tel-completion.d.ts.map +1 -0
  376. package/types/{app/cli → cli}/common/witness-auth.d.ts +1 -1
  377. package/types/cli/common/witness-auth.d.ts.map +1 -0
  378. package/types/cli/credentials/ipex.d.ts +110 -0
  379. package/types/cli/credentials/ipex.d.ts.map +1 -0
  380. package/types/cli/credentials/vc.d.ts +42 -0
  381. package/types/cli/credentials/vc.d.ts.map +1 -0
  382. package/types/{app/cli → cli/endpoints}/did.d.ts +5 -1
  383. package/types/cli/endpoints/did.d.ts.map +1 -0
  384. package/types/{app/cli → cli/endpoints}/ends.d.ts +9 -1
  385. package/types/cli/endpoints/ends.d.ts.map +1 -0
  386. package/types/cli/endpoints/loc.d.ts.map +1 -0
  387. package/types/cli/endpoints/oobi-clean.d.ts +8 -0
  388. package/types/cli/endpoints/oobi-clean.d.ts.map +1 -0
  389. package/types/{app/cli → cli/endpoints}/oobi.d.ts +3 -1
  390. package/types/cli/endpoints/oobi.d.ts.map +1 -0
  391. package/types/cli/identity/aid.d.ts.map +1 -0
  392. package/types/{app/cli → cli/identity}/challenge.d.ts +5 -1
  393. package/types/cli/identity/challenge.d.ts.map +1 -0
  394. package/types/cli/identity/delegate.d.ts +4 -0
  395. package/types/cli/identity/delegate.d.ts.map +1 -0
  396. package/types/cli/identity/export.d.ts.map +1 -0
  397. package/types/{app/cli → cli/identity}/incept.d.ts +2 -0
  398. package/types/cli/identity/incept.d.ts.map +1 -0
  399. package/types/{app/cli → cli/identity}/init.d.ts +2 -0
  400. package/types/cli/identity/init.d.ts.map +1 -0
  401. package/types/{app/cli → cli/identity}/interact.d.ts +2 -0
  402. package/types/cli/identity/interact.d.ts.map +1 -0
  403. package/types/cli/identity/list.d.ts.map +1 -0
  404. package/types/{app/cli → cli/identity}/rotate.d.ts +9 -2
  405. package/types/cli/identity/rotate.d.ts.map +1 -0
  406. package/types/cli/index.d.ts +39 -0
  407. package/types/cli/index.d.ts.map +1 -0
  408. package/types/{app/cli → cli/messaging}/exchange.d.ts +3 -1
  409. package/types/cli/messaging/exchange.d.ts.map +1 -0
  410. package/types/cli/messaging/multisig.d.ts +29 -0
  411. package/types/cli/messaging/multisig.d.ts.map +1 -0
  412. package/types/cli/messaging/notifications.d.ts.map +1 -0
  413. package/types/cli/output.d.ts.map +1 -0
  414. package/types/cli/tools/annotate-color.d.ts.map +1 -0
  415. package/types/cli/tools/annotate.d.ts.map +1 -0
  416. package/types/cli/tools/benchmark.d.ts.map +1 -0
  417. package/types/{app/cli → cli/tools}/db-dump.d.ts +0 -2
  418. package/types/cli/tools/db-dump.d.ts.map +1 -0
  419. package/types/cli/tools/saidify.d.ts.map +1 -0
  420. package/types/{app/cli → cli/tools}/sign.d.ts +2 -0
  421. package/types/cli/tools/sign.d.ts.map +1 -0
  422. package/types/cli/tools/verify.d.ts.map +1 -0
  423. package/types/core/attachment-countering.d.ts +10 -1
  424. package/types/core/attachment-countering.d.ts.map +1 -1
  425. package/types/core/cues.d.ts +146 -57
  426. package/types/core/cues.d.ts.map +1 -1
  427. package/types/core/deck.d.ts +2 -12
  428. package/types/core/deck.d.ts.map +1 -1
  429. package/types/core/dispatch.d.ts +7 -3
  430. package/types/core/dispatch.d.ts.map +1 -1
  431. package/types/core/errors.d.ts +4 -4
  432. package/types/core/errors.d.ts.map +1 -1
  433. package/types/core/{exchange-proofing.d.ts → exchange/exchange-proofing.d.ts} +9 -2
  434. package/types/core/exchange/exchange-proofing.d.ts.map +1 -0
  435. package/types/core/{protocol-exchanging.d.ts → exchange/protocol-exchanging.d.ts} +18 -2
  436. package/types/core/exchange/protocol-exchanging.d.ts.map +1 -0
  437. package/types/core/genus-framing.d.ts +12 -0
  438. package/types/core/genus-framing.d.ts.map +1 -0
  439. package/types/core/{eventing.d.ts → kel/eventing.d.ts} +37 -48
  440. package/types/core/kel/eventing.d.ts.map +1 -0
  441. package/types/core/{kever-decisions.d.ts → kel/kever-decisions.d.ts} +36 -22
  442. package/types/core/kel/kever-decisions.d.ts.map +1 -0
  443. package/types/core/{kever.d.ts → kel/kever.d.ts} +13 -47
  444. package/types/core/kel/kever.d.ts.map +1 -0
  445. package/types/core/kel/witnesses.d.ts.map +1 -0
  446. package/types/core/logger.d.ts +1 -1
  447. package/types/core/logger.d.ts.map +1 -1
  448. package/types/core/{kram-auth.d.ts → mailbox/kram-auth.d.ts} +2 -2
  449. package/types/core/mailbox/kram-auth.d.ts.map +1 -0
  450. package/types/core/{kram-policy.d.ts → mailbox/kram-policy.d.ts} +2 -2
  451. package/types/core/mailbox/kram-policy.d.ts.map +1 -0
  452. package/types/core/{kram-pruning.d.ts → mailbox/kram-pruning.d.ts} +3 -3
  453. package/types/core/{kram-pruning.d.ts.map → mailbox/kram-pruning.d.ts.map} +1 -1
  454. package/types/core/{kram-signatures.d.ts → mailbox/kram-signatures.d.ts} +3 -3
  455. package/types/core/mailbox/kram-signatures.d.ts.map +1 -0
  456. package/types/core/mailbox/kram-staging.d.ts +30 -0
  457. package/types/core/mailbox/kram-staging.d.ts.map +1 -0
  458. package/types/core/{kram-time.d.ts → mailbox/kram-time.d.ts} +5 -11
  459. package/types/core/mailbox/kram-time.d.ts.map +1 -0
  460. package/types/core/mailbox/kraming.d.ts +42 -0
  461. package/types/core/mailbox/kraming.d.ts.map +1 -0
  462. package/types/core/mailbox/mailbox-topics.d.ts.map +1 -0
  463. package/types/core/protocol-eventing.d.ts +5 -0
  464. package/types/core/protocol-eventing.d.ts.map +1 -1
  465. package/types/core/protocol-serialization.d.ts +1 -1
  466. package/types/core/protocol-serialization.d.ts.map +1 -1
  467. package/types/core/protocol-vdr-eventing.d.ts +7 -5
  468. package/types/core/protocol-vdr-eventing.d.ts.map +1 -1
  469. package/types/core/records.d.ts +15 -50
  470. package/types/core/records.d.ts.map +1 -1
  471. package/types/core/routing.d.ts +76 -46
  472. package/types/core/routing.d.ts.map +1 -1
  473. package/types/db/baser-defaults.d.ts +5 -0
  474. package/types/db/baser-defaults.d.ts.map +1 -0
  475. package/types/db/basing.d.ts +70 -75
  476. package/types/db/basing.d.ts.map +1 -1
  477. package/types/db/core/keys.d.ts.map +1 -1
  478. package/types/db/core/lmdber.d.ts +21 -23
  479. package/types/db/core/lmdber.d.ts.map +1 -1
  480. package/types/db/core/path-manager.d.ts.map +1 -1
  481. package/types/db/escrowing.d.ts +12 -49
  482. package/types/db/escrowing.d.ts.map +1 -1
  483. package/types/db/exchange/exchange-nests.d.ts +12 -0
  484. package/types/db/exchange/exchange-nests.d.ts.map +1 -0
  485. package/types/db/exchange/exchange-records.d.ts +38 -0
  486. package/types/db/exchange/exchange-records.d.ts.map +1 -0
  487. package/types/db/index.d.ts +5 -6
  488. package/types/db/index.d.ts.map +1 -1
  489. package/types/db/keeping.d.ts +19 -1
  490. package/types/db/keeping.d.ts.map +1 -1
  491. package/types/db/koming.d.ts +1 -1
  492. package/types/db/koming.d.ts.map +1 -1
  493. package/types/db/{kram-factors.d.ts → mailbox/kram-factors.d.ts} +3 -5
  494. package/types/db/mailbox/kram-factors.d.ts.map +1 -0
  495. package/types/db/{mailboxing.d.ts → mailbox/mailboxing.d.ts} +3 -4
  496. package/types/db/mailbox/mailboxing.d.ts.map +1 -0
  497. package/types/db/reger.d.ts +10 -12
  498. package/types/db/reger.d.ts.map +1 -1
  499. package/types/db/{kel-replay.d.ts → replay/kel-replay.d.ts} +2 -6
  500. package/types/db/replay/kel-replay.d.ts.map +1 -0
  501. package/types/db/{tel-replay.d.ts → replay/tel-replay.d.ts} +13 -8
  502. package/types/db/replay/tel-replay.d.ts.map +1 -0
  503. package/types/db/{witness-replay.d.ts → replay/witness-replay.d.ts} +2 -3
  504. package/types/db/replay/witness-replay.d.ts.map +1 -0
  505. package/types/db/subing.d.ts +1 -5
  506. package/types/db/subing.d.ts.map +1 -1
  507. package/types/did/keri/resolving.d.ts +5 -10
  508. package/types/did/keri/resolving.d.ts.map +1 -1
  509. package/types/did/webs/artifacts.d.ts +5 -5
  510. package/types/did/webs/artifacts.d.ts.map +1 -1
  511. package/types/did/webs/designated-aliases.d.ts +6 -5
  512. package/types/did/webs/designated-aliases.d.ts.map +1 -1
  513. package/types/did/webs/documenting.d.ts +6 -5
  514. package/types/did/webs/documenting.d.ts.map +1 -1
  515. package/types/did/webs/resolving.d.ts +13 -3
  516. package/types/did/webs/resolving.d.ts.map +1 -1
  517. package/types/library/index.d.ts +1 -1
  518. package/types/library/index.d.ts.map +1 -1
  519. package/types/npm/cli.d.ts +1 -1
  520. package/types/npm/cli.d.ts.map +1 -1
  521. package/types/npm/index.d.ts +1 -1
  522. package/types/npm/index.d.ts.map +1 -1
  523. package/types/runtime/index.d.ts +109 -76
  524. package/types/runtime/index.d.ts.map +1 -1
  525. package/types/vdr/backer-state.d.ts +22 -0
  526. package/types/vdr/backer-state.d.ts.map +1 -0
  527. package/types/vdr/credential-tsn-record.d.ts +13 -0
  528. package/types/vdr/credential-tsn-record.d.ts.map +1 -0
  529. package/types/vdr/credentialing.d.ts +16 -27
  530. package/types/vdr/credentialing.d.ts.map +1 -1
  531. package/types/vdr/eventing.d.ts +66 -23
  532. package/types/vdr/eventing.d.ts.map +1 -1
  533. package/types/vdr/registry-tsn-record.d.ts +6 -0
  534. package/types/vdr/registry-tsn-record.d.ts.map +1 -0
  535. package/types/vdr/revoking.d.ts +18 -0
  536. package/types/vdr/revoking.d.ts.map +1 -0
  537. package/types/vdr/tel-anchor.d.ts +10 -0
  538. package/types/vdr/tel-anchor.d.ts.map +1 -0
  539. package/types/vdr/tel-publication.d.ts +49 -0
  540. package/types/vdr/tel-publication.d.ts.map +1 -0
  541. package/types/vdr/tsn-query.d.ts +9 -4
  542. package/types/vdr/tsn-query.d.ts.map +1 -1
  543. package/types/{app/version.d.ts → version.d.ts} +2 -2
  544. package/types/version.d.ts.map +1 -0
  545. package/esm/keri/npm/src/app/abortable.js +0 -27
  546. package/esm/keri/npm/src/app/agent-runtime.js +0 -638
  547. package/esm/keri/npm/src/app/cesr-egress.js +0 -308
  548. package/esm/keri/npm/src/app/cesr-output.js +0 -12
  549. package/esm/keri/npm/src/app/cli/annotate.js +0 -24
  550. package/esm/keri/npm/src/app/cli/challenge.js +0 -168
  551. package/esm/keri/npm/src/app/cli/common/displaying.js +0 -43
  552. package/esm/keri/npm/src/app/cli/common/parsing.js +0 -215
  553. package/esm/keri/npm/src/app/cli/incept.js +0 -187
  554. package/esm/keri/npm/src/app/cli/index.js +0 -36
  555. package/esm/keri/npm/src/app/cli/init.js +0 -155
  556. package/esm/keri/npm/src/app/cli/interact.js +0 -72
  557. package/esm/keri/npm/src/app/cli/ipex.js +0 -453
  558. package/esm/keri/npm/src/app/cli/multisig.js +0 -474
  559. package/esm/keri/npm/src/app/cli/query.js +0 -143
  560. package/esm/keri/npm/src/app/cli/rotate.js +0 -171
  561. package/esm/keri/npm/src/app/cli/vc.js +0 -284
  562. package/esm/keri/npm/src/app/cli/verifier.js +0 -96
  563. package/esm/keri/npm/src/app/credential-workflows.js +0 -431
  564. package/esm/keri/npm/src/app/cue-delivery.js +0 -171
  565. package/esm/keri/npm/src/app/cue-preparation.js +0 -124
  566. package/esm/keri/npm/src/app/cue-route.js +0 -64
  567. package/esm/keri/npm/src/app/cue-runtime.js +0 -104
  568. package/esm/keri/npm/src/app/direct-reply-delivery.js +0 -282
  569. package/esm/keri/npm/src/app/essr.js +0 -235
  570. package/esm/keri/npm/src/app/exchanging.js +0 -1219
  571. package/esm/keri/npm/src/app/forwarding.js +0 -1346
  572. package/esm/keri/npm/src/app/group-members.js +0 -37
  573. package/esm/keri/npm/src/app/grouping.js +0 -534
  574. package/esm/keri/npm/src/app/httping.js +0 -130
  575. package/esm/keri/npm/src/app/ipex-credentialing.js +0 -245
  576. package/esm/keri/npm/src/app/ipex-grouping.js +0 -317
  577. package/esm/keri/npm/src/app/ipex-v2.js +0 -542
  578. package/esm/keri/npm/src/app/mailbox-sse.js +0 -257
  579. package/esm/keri/npm/src/app/multisig-workflows.js +0 -537
  580. package/esm/keri/npm/src/app/oobi-replies.js +0 -194
  581. package/esm/keri/npm/src/app/query-replies.js +0 -181
  582. package/esm/keri/npm/src/app/querying.js +0 -1040
  583. package/esm/keri/npm/src/app/reactor.js +0 -517
  584. package/esm/keri/npm/src/app/reply-streams.js +0 -304
  585. package/esm/keri/npm/src/app/respondant.js +0 -173
  586. package/esm/keri/npm/src/app/runtime-deliveries.js +0 -510
  587. package/esm/keri/npm/src/app/runtime-services.js +0 -25
  588. package/esm/keri/npm/src/app/signaling.js +0 -388
  589. package/esm/keri/npm/src/app/stored-replies.js +0 -85
  590. package/esm/keri/npm/src/app/tcp-egress.js +0 -334
  591. package/esm/keri/npm/src/app/verifier-agent.js +0 -461
  592. package/esm/keri/npm/src/app/witnessing.js +0 -956
  593. package/esm/keri/npm/src/core/cue-admission.js +0 -419
  594. package/esm/keri/npm/src/core/index.js +0 -23
  595. package/esm/keri/npm/src/core/kever-decisions.js +0 -63
  596. package/esm/keri/npm/src/core/kram-handoff.js +0 -148
  597. package/esm/keri/npm/src/core/kram-staging.js +0 -211
  598. package/esm/keri/npm/src/core/kraming.js +0 -99
  599. package/esm/keri/npm/src/db/exchange-nests.js +0 -175
  600. package/esm/keri/npm/src/db/exchange-records.js +0 -7
  601. package/esm/keri/npm/src/db/kram-snapshots.js +0 -216
  602. package/esm/keri/npm/src/db/mailbox-inbox.js +0 -206
  603. package/esm/keri/npm/src/db/outboxing.js +0 -371
  604. package/esm/keri/npm/src/db/payload-archive.js +0 -402
  605. package/esm/keri/npm/src/db/payload-store.js +0 -416
  606. package/esm/keri/npm/src/db/payload-view.js +0 -23
  607. package/esm/keri/npm/src/db/verifier-cueing.js +0 -132
  608. package/esm/keri/npm/src/vdr/credential-tsn.js +0 -218
  609. package/esm/keri/npm/src/vdr/registry-tsn.js +0 -218
  610. package/types/app/abortable.d.ts +0 -11
  611. package/types/app/abortable.d.ts.map +0 -1
  612. package/types/app/agent-runtime.d.ts +0 -284
  613. package/types/app/agent-runtime.d.ts.map +0 -1
  614. package/types/app/authenticating.d.ts +0 -36
  615. package/types/app/authenticating.d.ts.map +0 -1
  616. package/types/app/byte-source.d.ts +0 -16
  617. package/types/app/byte-source.d.ts.map +0 -1
  618. package/types/app/cesr-egress.d.ts +0 -48
  619. package/types/app/cesr-egress.d.ts.map +0 -1
  620. package/types/app/cesr-http.d.ts.map +0 -1
  621. package/types/app/cesr-output.d.ts +0 -5
  622. package/types/app/cesr-output.d.ts.map +0 -1
  623. package/types/app/challenging.d.ts.map +0 -1
  624. package/types/app/cli/aid.d.ts.map +0 -1
  625. package/types/app/cli/annotate-color.d.ts.map +0 -1
  626. package/types/app/cli/annotate.d.ts.map +0 -1
  627. package/types/app/cli/benchmark.d.ts.map +0 -1
  628. package/types/app/cli/challenge.d.ts.map +0 -1
  629. package/types/app/cli/common/context.d.ts.map +0 -1
  630. package/types/app/cli/common/displaying.d.ts +0 -12
  631. package/types/app/cli/common/displaying.d.ts.map +0 -1
  632. package/types/app/cli/common/existing.d.ts.map +0 -1
  633. package/types/app/cli/common/parsing.d.ts.map +0 -1
  634. package/types/app/cli/common/rendering.d.ts.map +0 -1
  635. package/types/app/cli/common/witness-auth.d.ts.map +0 -1
  636. package/types/app/cli/db-dump.d.ts.map +0 -1
  637. package/types/app/cli/delegate.d.ts +0 -26
  638. package/types/app/cli/delegate.d.ts.map +0 -1
  639. package/types/app/cli/did.d.ts.map +0 -1
  640. package/types/app/cli/ends.d.ts.map +0 -1
  641. package/types/app/cli/exchange.d.ts.map +0 -1
  642. package/types/app/cli/export.d.ts.map +0 -1
  643. package/types/app/cli/incept.d.ts.map +0 -1
  644. package/types/app/cli/index.d.ts +0 -37
  645. package/types/app/cli/index.d.ts.map +0 -1
  646. package/types/app/cli/init.d.ts.map +0 -1
  647. package/types/app/cli/interact.d.ts.map +0 -1
  648. package/types/app/cli/ipex.d.ts +0 -20
  649. package/types/app/cli/ipex.d.ts.map +0 -1
  650. package/types/app/cli/list.d.ts.map +0 -1
  651. package/types/app/cli/loc.d.ts.map +0 -1
  652. package/types/app/cli/multisig.d.ts +0 -12
  653. package/types/app/cli/multisig.d.ts.map +0 -1
  654. package/types/app/cli/notifications.d.ts.map +0 -1
  655. package/types/app/cli/oobi.d.ts.map +0 -1
  656. package/types/app/cli/output.d.ts.map +0 -1
  657. package/types/app/cli/query.d.ts +0 -12
  658. package/types/app/cli/query.d.ts.map +0 -1
  659. package/types/app/cli/rotate.d.ts.map +0 -1
  660. package/types/app/cli/saidify.d.ts.map +0 -1
  661. package/types/app/cli/sign.d.ts.map +0 -1
  662. package/types/app/cli/vc.d.ts +0 -20
  663. package/types/app/cli/vc.d.ts.map +0 -1
  664. package/types/app/cli/verifier.d.ts +0 -3
  665. package/types/app/cli/verifier.d.ts.map +0 -1
  666. package/types/app/cli/verify.d.ts.map +0 -1
  667. package/types/app/configing.d.ts.map +0 -1
  668. package/types/app/credential-workflows.d.ts +0 -118
  669. package/types/app/credential-workflows.d.ts.map +0 -1
  670. package/types/app/cue-delivery.d.ts +0 -30
  671. package/types/app/cue-delivery.d.ts.map +0 -1
  672. package/types/app/cue-preparation.d.ts +0 -25
  673. package/types/app/cue-preparation.d.ts.map +0 -1
  674. package/types/app/cue-route.d.ts +0 -19
  675. package/types/app/cue-route.d.ts.map +0 -1
  676. package/types/app/cue-runtime.d.ts +0 -46
  677. package/types/app/cue-runtime.d.ts.map +0 -1
  678. package/types/app/delegating.d.ts.map +0 -1
  679. package/types/app/direct-reply-delivery.d.ts +0 -38
  680. package/types/app/direct-reply-delivery.d.ts.map +0 -1
  681. package/types/app/endpoint-roleing.d.ts +0 -41
  682. package/types/app/endpoint-roleing.d.ts.map +0 -1
  683. package/types/app/essr.d.ts +0 -72
  684. package/types/app/essr.d.ts.map +0 -1
  685. package/types/app/exchanging.d.ts +0 -245
  686. package/types/app/exchanging.d.ts.map +0 -1
  687. package/types/app/forwarding.d.ts +0 -411
  688. package/types/app/forwarding.d.ts.map +0 -1
  689. package/types/app/group-members.d.ts +0 -12
  690. package/types/app/group-members.d.ts.map +0 -1
  691. package/types/app/grouping.d.ts +0 -150
  692. package/types/app/grouping.d.ts.map +0 -1
  693. package/types/app/habbing.d.ts.map +0 -1
  694. package/types/app/httping.d.ts +0 -42
  695. package/types/app/httping.d.ts.map +0 -1
  696. package/types/app/ipex-building.d.ts.map +0 -1
  697. package/types/app/ipex-credentialing.d.ts.map +0 -1
  698. package/types/app/ipex-graph.d.ts +0 -30
  699. package/types/app/ipex-graph.d.ts.map +0 -1
  700. package/types/app/ipex-grouping.d.ts +0 -51
  701. package/types/app/ipex-grouping.d.ts.map +0 -1
  702. package/types/app/ipex-v2.d.ts +0 -51
  703. package/types/app/ipex-v2.d.ts.map +0 -1
  704. package/types/app/ipexing.d.ts.map +0 -1
  705. package/types/app/keeping.d.ts.map +0 -1
  706. package/types/app/mailbox-director.d.ts +0 -159
  707. package/types/app/mailbox-director.d.ts.map +0 -1
  708. package/types/app/mailbox-sse.d.ts +0 -38
  709. package/types/app/mailbox-sse.d.ts.map +0 -1
  710. package/types/app/mailboxing.d.ts.map +0 -1
  711. package/types/app/multisig-workflows.d.ts +0 -59
  712. package/types/app/multisig-workflows.d.ts.map +0 -1
  713. package/types/app/notifying.d.ts.map +0 -1
  714. package/types/app/oobi-replies.d.ts +0 -18
  715. package/types/app/oobi-replies.d.ts.map +0 -1
  716. package/types/app/oobiery.d.ts.map +0 -1
  717. package/types/app/organizing.d.ts.map +0 -1
  718. package/types/app/parsering.d.ts +0 -106
  719. package/types/app/parsering.d.ts.map +0 -1
  720. package/types/app/protocol-host-policy.d.ts.map +0 -1
  721. package/types/app/query-replies.d.ts +0 -45
  722. package/types/app/query-replies.d.ts.map +0 -1
  723. package/types/app/querying.d.ts +0 -294
  724. package/types/app/querying.d.ts.map +0 -1
  725. package/types/app/reactor.d.ts +0 -171
  726. package/types/app/reactor.d.ts.map +0 -1
  727. package/types/app/reply-streams.d.ts +0 -51
  728. package/types/app/reply-streams.d.ts.map +0 -1
  729. package/types/app/respondant.d.ts +0 -48
  730. package/types/app/respondant.d.ts.map +0 -1
  731. package/types/app/runtime-deliveries.d.ts +0 -67
  732. package/types/app/runtime-deliveries.d.ts.map +0 -1
  733. package/types/app/runtime-services.d.ts +0 -29
  734. package/types/app/runtime-services.d.ts.map +0 -1
  735. package/types/app/runtime-turn.d.ts.map +0 -1
  736. package/types/app/schema-resolving.d.ts.map +0 -1
  737. package/types/app/signaling.d.ts +0 -96
  738. package/types/app/signaling.d.ts.map +0 -1
  739. package/types/app/socket-source.d.ts.map +0 -1
  740. package/types/app/stored-replies.d.ts +0 -18
  741. package/types/app/stored-replies.d.ts.map +0 -1
  742. package/types/app/tcp-egress.d.ts +0 -87
  743. package/types/app/tcp-egress.d.ts.map +0 -1
  744. package/types/app/verifier-agent.d.ts +0 -91
  745. package/types/app/verifier-agent.d.ts.map +0 -1
  746. package/types/app/verifying.d.ts.map +0 -1
  747. package/types/app/version.d.ts.map +0 -1
  748. package/types/app/witnessing.d.ts +0 -227
  749. package/types/app/witnessing.d.ts.map +0 -1
  750. package/types/core/cue-admission.d.ts +0 -74
  751. package/types/core/cue-admission.d.ts.map +0 -1
  752. package/types/core/eventing.d.ts.map +0 -1
  753. package/types/core/exchange-proofing.d.ts.map +0 -1
  754. package/types/core/index.d.ts +0 -24
  755. package/types/core/index.d.ts.map +0 -1
  756. package/types/core/kever-decisions.d.ts.map +0 -1
  757. package/types/core/kever.d.ts.map +0 -1
  758. package/types/core/kram-auth.d.ts.map +0 -1
  759. package/types/core/kram-handoff.d.ts +0 -45
  760. package/types/core/kram-handoff.d.ts.map +0 -1
  761. package/types/core/kram-policy.d.ts.map +0 -1
  762. package/types/core/kram-signatures.d.ts.map +0 -1
  763. package/types/core/kram-staging.d.ts +0 -36
  764. package/types/core/kram-staging.d.ts.map +0 -1
  765. package/types/core/kram-time.d.ts.map +0 -1
  766. package/types/core/kraming.d.ts +0 -46
  767. package/types/core/kraming.d.ts.map +0 -1
  768. package/types/core/mailbox-topics.d.ts.map +0 -1
  769. package/types/core/protocol-exchanging.d.ts.map +0 -1
  770. package/types/core/witnesses.d.ts.map +0 -1
  771. package/types/db/exchange-nests.d.ts +0 -39
  772. package/types/db/exchange-nests.d.ts.map +0 -1
  773. package/types/db/exchange-records.d.ts +0 -35
  774. package/types/db/exchange-records.d.ts.map +0 -1
  775. package/types/db/kel-replay.d.ts.map +0 -1
  776. package/types/db/kram-factors.d.ts.map +0 -1
  777. package/types/db/kram-snapshots.d.ts +0 -23
  778. package/types/db/kram-snapshots.d.ts.map +0 -1
  779. package/types/db/mailbox-inbox.d.ts +0 -72
  780. package/types/db/mailbox-inbox.d.ts.map +0 -1
  781. package/types/db/mailboxing.d.ts.map +0 -1
  782. package/types/db/outboxing.d.ts +0 -182
  783. package/types/db/outboxing.d.ts.map +0 -1
  784. package/types/db/payload-archive.d.ts +0 -70
  785. package/types/db/payload-archive.d.ts.map +0 -1
  786. package/types/db/payload-store.d.ts +0 -40
  787. package/types/db/payload-store.d.ts.map +0 -1
  788. package/types/db/payload-view.d.ts +0 -4
  789. package/types/db/payload-view.d.ts.map +0 -1
  790. package/types/db/tel-replay.d.ts.map +0 -1
  791. package/types/db/verifier-cueing.d.ts +0 -46
  792. package/types/db/verifier-cueing.d.ts.map +0 -1
  793. package/types/db/witness-replay.d.ts.map +0 -1
  794. package/types/vdr/credential-tsn.d.ts +0 -18
  795. package/types/vdr/credential-tsn.d.ts.map +0 -1
  796. package/types/vdr/registry-tsn.d.ts +0 -23
  797. package/types/vdr/registry-tsn.d.ts.map +0 -1
  798. /package/esm/keri/npm/src/app/{schema-resolving.js → credentials/schema-resolving.js} +0 -0
  799. /package/esm/keri/npm/src/app/{protocol-host-policy.js → protocol/protocol-host-policy.js} +0 -0
  800. /package/esm/keri/npm/src/app/{runtime-turn.js → runtime/runtime-turn.js} +0 -0
  801. /package/esm/keri/npm/src/{app/cli → cli}/common/rendering.js +0 -0
  802. /package/esm/keri/npm/src/{app/cli → cli/tools}/annotate-color.js +0 -0
  803. /package/esm/keri/npm/src/core/{witnesses.js → kel/witnesses.js} +0 -0
  804. /package/esm/keri/npm/src/core/{kram-auth.js → mailbox/kram-auth.js} +0 -0
  805. /package/esm/keri/npm/src/core/{mailbox-topics.js → mailbox/mailbox-topics.js} +0 -0
  806. /package/types/app/{runtime-turn.d.ts → runtime/runtime-turn.d.ts} +0 -0
  807. /package/types/{app/cli → cli}/common/rendering.d.ts +0 -0
  808. /package/types/{app/cli → cli/endpoints}/loc.d.ts +0 -0
  809. /package/types/{app/cli → cli/identity}/aid.d.ts +0 -0
  810. /package/types/{app/cli → cli/identity}/export.d.ts +0 -0
  811. /package/types/{app/cli → cli/identity}/list.d.ts +0 -0
  812. /package/types/{app/cli → cli/messaging}/notifications.d.ts +0 -0
  813. /package/types/{app/cli → cli}/output.d.ts +0 -0
  814. /package/types/{app/cli → cli/tools}/annotate-color.d.ts +0 -0
  815. /package/types/{app/cli → cli/tools}/annotate.d.ts +0 -0
  816. /package/types/{app/cli → cli/tools}/benchmark.d.ts +0 -0
  817. /package/types/{app/cli → cli/tools}/saidify.d.ts +0 -0
  818. /package/types/{app/cli → cli/tools}/verify.d.ts +0 -0
  819. /package/types/core/{witnesses.d.ts → kel/witnesses.d.ts} +0 -0
  820. /package/types/core/{mailbox-topics.d.ts → mailbox/mailbox-topics.d.ts} +0 -0
@@ -0,0 +1,41 @@
1
+ /** Transport readers. Each operation owns its reader and joins cancellation. */
2
+ export interface SourceOptions {
3
+ /** Abort reads and release the transport when its operation stops. */
4
+ signal?: AbortSignal;
5
+ /** Buffer size used when chunking resident bytes or reading a local file. */
6
+ maxChunkBytes?: number;
7
+ }
8
+ /**
9
+ * Adapt an already resident finite value into independent bounded parser chunks.
10
+ *
11
+ * @param bytes Borrowed resident input; each yielded chunk is a copy independent of subsequent producer mutation.
12
+ * @param options Optional signal and positive integer chunk size in bytes; defaults to 65536.
13
+ * @yields Copied byte chunks in input order; this does not parse message boundaries.
14
+ */
15
+ export declare function chunkBytes(bytes: Uint8Array, { signal, maxChunkBytes }?: SourceOptions): AsyncGenerator<Uint8Array>;
16
+ /**
17
+ * Read a Fetch stream on demand and cancel its reader when parsing stops.
18
+ *
19
+ * @param stream Borrowed Web stream to read exclusively; null yields no bytes.
20
+ * @param options Optional signal that cancels the pending read.
21
+ * @yields Nonempty chunks supplied by the underlying stream.
22
+ * @throws Read/cancel/unlock failures, combined when distinct failures occur.
23
+ */
24
+ export declare function streamBytes(stream: ReadableStream<Uint8Array> | null, { signal }?: Pick<SourceOptions, "signal">): AsyncGenerator<Uint8Array>;
25
+ /**
26
+ * Stream a local file with fixed-size owned buffers and close it on break or abort.
27
+ *
28
+ * @param path Local filesystem path opened read-only for this iteration.
29
+ * @param options Optional cancellation and positive read buffer size in bytes; defaults to 65536.
30
+ * @yields Owned buffers up to the selected chunk size until file EOF.
31
+ * @throws Open/read failures or cancellation; the file closes on EOF, break or failure.
32
+ */
33
+ export declare function fileBytes(path: string, { signal, maxChunkBytes }?: SourceOptions): AsyncGenerator<Uint8Array>;
34
+ /**
35
+ * Collect an explicitly finite operation; bulk ingress should consume its source directly.
36
+ *
37
+ * @param source Finite byte source whose iteration errors propagate; do not pass an unbounded mailbox stream.
38
+ * @returns A contiguous owned array containing all chunks in order.
39
+ */
40
+ export declare function collectBytes(source: AsyncIterable<Uint8Array>): Promise<Uint8Array<ArrayBuffer>>;
41
+ //# sourceMappingURL=byte-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"byte-source.d.ts","sourceRoot":"","sources":["../../../src/app/transport/byte-source.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAKhF,MAAM,WAAW,aAAa;IAC5B,sEAAsE;IACtE,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;GAMG;AACH,wBAAuB,UAAU,CAC/B,KAAK,EAAE,UAAU,EACjB,EAAE,MAAM,EAAE,aAAyB,EAAE,GAAE,aAAkB,GACxD,cAAc,CAAC,UAAU,CAAC,CAQ5B;AAED;;;;;;;GAOG;AACH,wBAAuB,WAAW,CAChC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EACzC,EAAE,MAAM,EAAE,GAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAM,GAC7C,cAAc,CAAC,UAAU,CAAC,CA4C5B;AAED;;;;;;;GAOG;AACH,wBAAuB,SAAS,CAC9B,IAAI,EAAE,MAAM,EACZ,EAAE,MAAM,EAAE,aAAyB,EAAE,GAAE,aAAkB,GACxD,cAAc,CAAC,UAAU,CAAC,CA0B5B;AAED;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAetG"}
@@ -0,0 +1,117 @@
1
+ /**
2
+ * CESR framing and bounded media negotiation over explicitly owned HTTP attempts.
3
+ * Ordinary send helpers finish response EOF/cleanup and return delivery facts.
4
+ * requestFrame instead lends a live response from an Effection resource: its
5
+ * caller consumes that body before leaving the enclosing scope. Neither path
6
+ * implicitly feeds successful response bytes into protocol processing.
7
+ *
8
+ * Match KERIpy's detached-attachment POST contract while retaining the exact
9
+ * signed body. Only the known pre-intake Falcon media refusal permits a second
10
+ * request; authentication/application failures and network errors are not retries.
11
+ */
12
+ import { type CesrFrame } from "cesr-ts";
13
+ import { type Operation } from "effection";
14
+ import { ValidationError } from "../../core/errors.js";
15
+ import type { HttpClient, HttpRequestInit, HttpStreamResponse } from "./http-client.js";
16
+ /** Positive remote HTTP refusal, distinct from source, transport, storage and cleanup failure. */
17
+ export declare class CesrHttpRefusal extends ValidationError {
18
+ readonly status: number;
19
+ /**
20
+ * Describe a completed HTTP refusal without classifying it as a network failure.
21
+ *
22
+ * @param message Endpoint/status detail for the observed peer refusal.
23
+ * @param status Actual non-success HTTP status returned by the peer.
24
+ */
25
+ constructor(message: string, status: number);
26
+ }
27
+ /** Expected remote HTTP refusal; infrastructure and cleanup failures still throw. */
28
+ export type CesrPostResult = {
29
+ /** Complete means response EOF and cleanup finished; refuse is an observed non-success status. */
30
+ kind: "complete";
31
+ } | {
32
+ /** Complete means response EOF and cleanup finished; refuse is an observed non-success status. */
33
+ kind: "refuse";
34
+ /** Completed peer refusal, retaining its HTTP status and decoded detail. */
35
+ error: CesrHttpRefusal;
36
+ };
37
+ /** Transport choices for one CESR frame. */
38
+ export interface EgressOptions {
39
+ /** Additional transport headers, such as witness Authorization; CESR framing is set by the sender. */
40
+ headers?: HeadersInit;
41
+ /** Optional endpoint AID carried in CESR-DESTINATION. */
42
+ destination?: string;
43
+ /** Upstream cancellation joins the same request lifetime as Effection cancellation. */
44
+ signal?: AbortSignal;
45
+ }
46
+ /**
47
+ * Drain successful response bytes; retain refusal text for reporting and media negotiation.
48
+ *
49
+ * @param response Borrowed response; this function consumes its body once to EOF.
50
+ * @param signal Cancels the pending body read through its HTTP owner.
51
+ * @returns Decoded refusal text, or an empty string after draining a successful body.
52
+ * @throws Body-read or cancellation errors propagate; an HTTP status alone does not throw.
53
+ */
54
+ export declare function readResponseDetail(response: HttpStreamResponse, signal: AbortSignal): Promise<string>;
55
+ /**
56
+ * Open one frame response for a caller that needs to consume its bytes.
57
+ * The caller must keep its scope alive while reading; returning this handle from
58
+ * a closing scope does not transfer response ownership. Media fallback closes the
59
+ * rejected attempt before opening the legacy header-media attempt.
60
+ * The handle travels directly as this generator's return value: yield* requestFrame
61
+ * resumes with HttpStreamResponse while its resource remains provided to the
62
+ * enclosing scope. This is borrowing, not a detached response or a consume callback.
63
+ *
64
+ * @param url HTTP(S) endpoint to receive the framed POST; redirect handling is manual.
65
+ * @param frame Parsed signed body and attachments; framing preserves the signed body bytes.
66
+ * @param http Borrowed HTTP implementation supplied by composition; owns native request/body I/O.
67
+ * @param options Destination, extra headers and optional cancellation for ordinary signed-message POSTs.
68
+ * @returns A successful response borrowed until the enclosing Effection scope ends.
69
+ * @throws CesrHttpRefusal for a completed refusal; request, transport and cleanup failures propagate.
70
+ */
71
+ export declare function requestFrame(url: string, frame: CesrFrame, http: HttpClient, options?: EgressOptions): Operation<HttpStreamResponse>;
72
+ /**
73
+ * Recognize KERIpy v1's exact preprocessing media refusal, before protocol intake.
74
+ * Attachment framing and the current media type are required. Authentication,
75
+ * KRAM and application refusals cannot trigger a second submission merely by
76
+ * mentioning content type in their diagnostic text.
77
+ *
78
+ * @param request Exact prepared request whose response is being classified.
79
+ * @param status Observed peer HTTP status.
80
+ * @param detail Fully consumed refusal body decoded as text.
81
+ * @returns True only for the pinned Falcon content-type error representation.
82
+ */
83
+ export declare function isLegacyCesrMediaRejection(request: HttpRequestInit, status: number, detail: string): boolean;
84
+ /**
85
+ * Send a CESR source and throw on a completed peer refusal.
86
+ * One parsed frame becomes one POST, and its request scope closes before the next
87
+ * source pull. A refusal stops the sequence; prior frames may already be delivered.
88
+ * Cancellation aborts active work, joins any pending source pull and returns the
89
+ * parser iterator before leaving. There is no automatic retry beyond media fallback.
90
+ * A pending asynchronous source pull can finish after cancellation is requested;
91
+ * abort it first, then join that pull and return the iterator. Genuine late
92
+ * cleanup failures are retained alongside the primary failure rather than
93
+ * misreported as harmless cancellation.
94
+ *
95
+ * @param url HTTP(S) endpoint to receive the framed POST; redirect handling is manual.
96
+ * @param source Creates the CESR byte source for this invocation; it must observe the supplied abort signal.
97
+ * @param http Borrowed HTTP implementation supplied by composition; owns native request/body I/O.
98
+ * @param options Destination, extra headers and optional cancellation for ordinary signed-message POSTs.
99
+ * @throws Source/parser, transport and cleanup failures propagate without becoming peer refusals. A completed refusal throws CesrHttpRefusal.
100
+ */
101
+ export declare function postCesr(url: string, source: (signal: AbortSignal) => AsyncIterable<Uint8Array>, http: HttpClient, options?: EgressOptions): Operation<void>;
102
+ /**
103
+ * Send frames sequentially and return a completed peer refusal as data.
104
+ * One parsed frame becomes one POST, and its request scope closes before the next
105
+ * source pull. A refusal stops the sequence; prior frames may already be delivered.
106
+ * Cancellation aborts active work, joins any pending source pull and returns the
107
+ * parser iterator before leaving. There is no automatic retry beyond media fallback.
108
+ *
109
+ * @param url HTTP(S) endpoint to receive the framed POST; redirect handling is manual.
110
+ * @param source Creates the CESR byte source for this invocation; it must observe the supplied abort signal.
111
+ * @param http Borrowed HTTP implementation supplied by composition; owns native request/body I/O.
112
+ * @param options Destination, extra headers and optional cancellation for ordinary signed-message POSTs.
113
+ * @returns The attempt result after all frames or the first refusal, with source/request cleanup joined.
114
+ * @throws Source/parser, transport and cleanup failures propagate without becoming peer refusals.
115
+ */
116
+ export declare function attemptPostCesr(url: string, source: (signal: AbortSignal) => AsyncIterable<Uint8Array>, http: HttpClient, options?: EgressOptions): Operation<CesrPostResult>;
117
+ //# sourceMappingURL=cesr-egress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cesr-egress.d.ts","sourceRoot":"","sources":["../../../src/app/transport/cesr-egress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAGL,KAAK,SAAS,EAGf,MAAM,SAAS,CAAC;AACjB,OAAO,EAAgB,KAAK,SAAS,EAA0B,MAAM,WAAW,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAQvD,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAExF,kGAAkG;AAClG,qBAAa,eAAgB,SAAQ,eAAe;IAOrB,QAAQ,CAAC,MAAM,EAAE,MAAM;IANpD;;;;;OAKG;gBACS,OAAO,EAAE,MAAM,EAAW,MAAM,EAAE,MAAM;CAGrD;AAED,qFAAqF;AACrF,MAAM,MAAM,cAAc,GAAG;IAC3B,kGAAkG;IAClG,IAAI,EAAE,UAAU,CAAC;CAClB,GAAG;IACF,kGAAkG;IAClG,IAAI,EAAE,QAAQ,CAAC;IACf,4EAA4E;IAC5E,KAAK,EAAE,eAAe,CAAC;CACxB,CAAC;AAgBF,4CAA4C;AAC5C,MAAM,WAAW,aAAa;IAC5B,sGAAsG;IACtG,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uFAAuF;IACvF,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,kBAAkB,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAQ3G;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAiB,YAAY,CAC3B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,UAAU,EAChB,OAAO,GAAE,aAAkB,GAC1B,SAAS,CAAC,kBAAkB,CAAC,CAI/B;AAiFD;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAc5G;AAqCD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAiB,QAAQ,CACvB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,aAAa,CAAC,UAAU,CAAC,EAC1D,IAAI,EAAE,UAAU,EAChB,OAAO,GAAE,aAAkB,GAC1B,SAAS,CAAC,IAAI,CAAC,CAGjB;AACD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,aAAa,CAAC,UAAU,CAAC,EAC1D,IAAI,EAAE,UAAU,EAChB,OAAO,GAAE,aAAkB,GAC1B,SAAS,CAAC,cAAc,CAAC,CAoE3B"}
@@ -6,18 +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
- import { type SourceOptions } from "./byte-source.js";
17
- /** Mailbox HTTP framing modes supported by `keri-ts`. */
18
- export type CesrBodyMode = "header" | "body";
19
- /** Default interop mode matching KERIpy mailbox behavior. */
20
- export declare const DEFAULT_CESR_BODY_MODE: CesrBodyMode;
21
11
  /** CESR HTTP content type used by mailbox and exchange endpoints. */
22
12
  export declare const CESR_CONTENT_TYPE = "application/cesr";
23
13
  /** KERIpy's legacy-but-authoritative CESR HTTP media type. */
@@ -42,22 +32,8 @@ export interface CesrStreamInspection {
42
32
  readonly messages: readonly SerderKERI[];
43
33
  readonly terminal: SerderKERI | null;
44
34
  }
45
- /** Normalize CLI or config input into one supported CESR body mode. */
46
- export declare function normalizeCesrBodyMode(value: unknown, fallback?: CesrBodyMode): CesrBodyMode;
47
- /** Normalize a global config string into one supported CESR body mode. */
48
- export declare function cesrBodyModeFromGlobal(value: string | null | undefined): CesrBodyMode;
49
- /**
50
- * Build one HTTP request payload for a CESR message.
51
- *
52
- * Header mode:
53
- * - HTTP body carries the message body only
54
- * - `CESR-ATTACHMENT` carries the detached attachments
55
- *
56
- * Body mode:
57
- * - the full payload is sent in the HTTP body
58
- */
59
- export declare function buildCesrRequest(message: Uint8Array, { bodyMode, contentType, destination, }?: {
60
- bodyMode?: CesrBodyMode;
35
+ /** Build ordinary signed-message POST framing, preserving the signed body bytes. */
36
+ export declare function buildCesrRequest(message: Uint8Array, { contentType, destination }?: {
61
37
  contentType?: string;
62
38
  destination?: string;
63
39
  }): {
@@ -70,7 +46,7 @@ export declare function buildCesrRequest(message: Uint8Array, { bodyMode, conten
70
46
  * This is the right helper for endpoints that accept an already assembled CESR
71
47
  * payload or a multi-message CESR stream in the body.
72
48
  */
73
- export declare function buildCesrStreamRequest(bytes: Uint8Array, { destination, }?: {
49
+ export declare function buildCesrStreamRequest(bytes: Uint8Array, { destination }?: {
74
50
  destination?: string;
75
51
  }): {
76
52
  headers: Record<string, string>;
@@ -79,14 +55,14 @@ export declare function buildCesrStreamRequest(bytes: Uint8Array, { destination,
79
55
  /**
80
56
  * Reconstruct one logical CESR payload from an incoming HTTP request.
81
57
  *
82
- * In header mode this reattaches `CESR-ATTACHMENT` bytes to the parsed message
83
- * 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.
84
60
  */
85
- export declare function requestBytes(req: Request, { maxHeaderBytes, ...options }?: SourceOptions & {
86
- maxHeaderBytes?: number;
61
+ export declare function requestBytes(req: Request, options?: {
62
+ signal?: AbortSignal;
87
63
  }): AsyncIterable<Uint8Array>;
88
- /** Collect a bounded administrative/receipt request; generic ingress uses requestBytes directly. */
89
- export declare function readCesrRequestBytes(req: Request, limit?: number): Promise<Uint8Array>;
64
+ /** Collect a finite administrative/receipt request; generic ingress uses requestBytes directly. */
65
+ export declare function readCesrRequestBytes(req: Request): Promise<Uint8Array>;
90
66
  /**
91
67
  * Read one direct signed-KERI ingress request.
92
68
  *
@@ -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,15 +3,22 @@ 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
  /**
9
12
  * Borrow exclusive binary readable ownership on first pull; yield independent finite backing buffers.
10
- * The caller admits connection and two maxChunkBytes materialized read/copy allowances before pulling.
11
- * A returned view can pin larger native/pool backing; the host accounts for that and socket/OS buffers
12
- * separately. Neither twice the chunk ceiling nor readableHighWaterMark is a full native/RSS bound.
13
+ * Read size controls each materialized chunk, without claiming a native/RSS memory bound.
14
+ * Socket/OS buffers and a returned native view can have larger backing; copied output is independent.
13
15
  * Abort, failure or early return destroys and joins the socket. Genuine receive EOF leaves its writable
14
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.
15
22
  */
16
23
  export declare function socketBytes(socket: Socket, { signal, maxChunkBytes }: SocketSourceOptions): AsyncIterableIterator<Uint8Array>;
17
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"}