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.
- package/README.md +23 -0
- package/esm/keri/npm/src/acdc/chaining.js +213 -0
- package/esm/keri/npm/src/acdc/dhking.js +716 -0
- package/esm/keri/npm/src/acdc/messaging.js +2 -0
- package/esm/keri/npm/src/acdc/observing.js +40 -7
- package/esm/keri/npm/src/acdc/regbasing.js +13 -2
- package/esm/keri/npm/src/acdc/regengine.js +71 -23
- package/esm/keri/npm/src/acdc/regeventing.js +163 -44
- package/esm/keri/npm/src/acdc/registering.js +93 -14
- package/esm/keri/npm/src/acdc/relating.js +59 -0
- package/esm/keri/npm/src/acdc/salting.js +720 -0
- package/esm/keri/npm/src/acdc/scheming.js +94 -39
- package/esm/keri/npm/src/acdc/unblinding.js +1042 -0
- package/esm/keri/npm/src/app/{authenticating.js → bootstrap/authenticating.js} +39 -18
- package/esm/keri/npm/src/app/bootstrap/bootstrapping.js +109 -0
- package/esm/keri/npm/src/app/{oobi-replies.js → bootstrap/oobi-replies.js} +8 -6
- package/esm/keri/npm/src/app/{oobiery.js → bootstrap/oobiery.js} +161 -75
- package/esm/keri/npm/src/app/credentials/credential-importing.js +201 -0
- package/esm/keri/npm/src/app/credentials/credential-proposals.js +120 -0
- package/esm/keri/npm/src/app/credentials/credential-revoking.js +165 -0
- package/esm/keri/npm/src/app/credentials/credential-workflows.js +365 -0
- package/esm/keri/npm/src/app/credentials/tel-publishing.js +27 -0
- package/esm/keri/npm/src/app/{verifying.js → credentials/verifying.js} +50 -6
- package/esm/keri/npm/src/app/delivery/forwarding.js +600 -0
- package/esm/keri/npm/src/app/delivery/introducing.js +68 -0
- package/esm/keri/npm/src/app/{reply-streams.js → delivery/reply-streams.js} +52 -7
- package/esm/keri/npm/src/app/delivery/respondant.js +159 -0
- package/esm/keri/npm/src/app/{stored-replies.js → delivery/stored-replies.js} +4 -4
- package/esm/keri/npm/src/app/exchanges/essr.js +111 -0
- package/esm/keri/npm/src/app/exchanges/exchange-messaging.js +66 -0
- package/esm/keri/npm/src/app/exchanges/exchanging.js +1354 -0
- package/esm/keri/npm/src/app/{configing.js → identity/configing.js} +4 -4
- package/esm/keri/npm/src/app/{delegating.js → identity/delegating.js} +99 -29
- package/esm/keri/npm/src/app/{endpoint-roleing.js → identity/endpoint-roleing.js} +36 -36
- package/esm/keri/npm/src/app/{habbing.js → identity/habbing.js} +232 -150
- package/esm/keri/npm/src/app/{keeping.js → identity/keeping.js} +60 -56
- package/esm/keri/npm/src/app/{organizing.js → identity/organizing.js} +47 -21
- package/esm/keri/npm/src/app/ipex/ipex-building.js +162 -0
- package/esm/keri/npm/src/app/{ipex-credentialing.js → ipex/ipex-credentialing.js} +142 -31
- package/esm/keri/npm/src/app/ipex/ipex-graph.js +243 -0
- package/esm/keri/npm/src/app/ipex/ipex-grouping.js +664 -0
- package/esm/keri/npm/src/app/{ipex-node-authentication.js → ipex/ipex-node-authentication.js} +83 -6
- package/esm/keri/npm/src/app/ipex/ipex-v2.js +692 -0
- package/esm/keri/npm/src/app/{ipexing.js → ipex/ipexing.js} +58 -1
- package/esm/keri/npm/src/app/mailbox/forward-handler.js +228 -0
- package/esm/keri/npm/src/app/{mailbox-director.js → mailbox/mailbox-director.js} +120 -15
- package/esm/keri/npm/src/app/mailbox/mailbox-poller.js +305 -0
- package/esm/keri/npm/src/app/mailbox/mailbox-sse.js +254 -0
- package/esm/keri/npm/src/app/{mailboxing.js → mailbox/mailboxing.js} +118 -67
- package/esm/keri/npm/src/app/mailbox/topic-routing.js +54 -0
- package/esm/keri/npm/src/app/multisig/group-members.js +173 -0
- package/esm/keri/npm/src/app/{grouping.js → multisig/grouping.js} +384 -70
- package/esm/keri/npm/src/app/multisig/multisig-messaging.js +164 -0
- package/esm/keri/npm/src/app/multisig/multisig-workflows.js +821 -0
- package/esm/keri/npm/src/app/{notifying.js → notifications/notifying.js} +8 -14
- package/esm/keri/npm/src/app/{signaling.js → notifications/signaling.js} +1 -1
- package/esm/keri/npm/src/app/{parsering.js → protocol/parsering.js} +86 -18
- package/esm/keri/npm/src/app/protocol/protocol-processing.js +245 -0
- package/esm/keri/npm/src/app/protocol/reactor.js +55 -0
- package/esm/keri/npm/src/app/{query-replies.js → queries/query-replies.js} +57 -6
- package/esm/keri/npm/src/app/queries/querying.js +306 -0
- package/esm/keri/npm/src/app/queries/witness-inquisitor.js +415 -0
- package/esm/keri/npm/src/app/{abortable.js → runtime/abortable.js} +43 -4
- package/esm/keri/npm/src/app/runtime/agent-runtime.js +633 -0
- package/esm/keri/npm/src/app/runtime/cue-runtime.js +61 -0
- package/esm/keri/npm/src/app/runtime/runtime-clock.js +6 -0
- package/esm/keri/npm/src/app/{byte-source.js → transport/byte-source.js} +36 -6
- package/esm/keri/npm/src/app/transport/cesr-egress.js +317 -0
- package/esm/keri/npm/src/app/{cesr-http.js → transport/cesr-http.js} +20 -55
- package/esm/keri/npm/src/app/transport/http-client.js +172 -0
- package/esm/keri/npm/src/app/transport/http-messenger.js +52 -0
- package/esm/keri/npm/src/app/transport/http-stream-messenger.js +60 -0
- package/esm/keri/npm/src/app/transport/httping.js +57 -0
- package/esm/keri/npm/src/app/transport/message-source.js +77 -0
- package/esm/keri/npm/src/app/transport/messengering.js +68 -0
- package/esm/keri/npm/src/app/{socket-source.js → transport/socket-source.js} +39 -2
- package/esm/keri/npm/src/app/transport/tcp-egress.js +377 -0
- package/esm/keri/npm/src/app/transport/tcp-messenger.js +162 -0
- package/esm/keri/npm/src/app/transport/tcp-stream-messenger.js +40 -0
- package/esm/keri/npm/src/app/transport/transport-error.js +14 -0
- package/esm/keri/npm/src/app/witness/http-endpoints.js +185 -0
- package/esm/keri/npm/src/app/witness/ingress.js +148 -0
- package/esm/keri/npm/src/app/witness/receipt-client.js +248 -0
- package/esm/keri/npm/src/app/witness/receipt-messages.js +29 -0
- package/esm/keri/npm/src/app/witness/receipting.js +323 -0
- package/esm/keri/npm/src/app/witness/registration.js +50 -0
- package/esm/keri/npm/src/cli/common/bootstrap.js +12 -0
- package/esm/keri/npm/src/{app/cli → cli}/common/context.js +47 -6
- package/esm/keri/npm/src/{app/cli → cli}/common/existing.js +9 -11
- package/esm/keri/npm/src/cli/common/parsing.js +279 -0
- package/esm/keri/npm/src/cli/common/passcode.js +66 -0
- package/esm/keri/npm/src/cli/common/tel-completion.js +24 -0
- package/esm/keri/npm/src/{app/cli → cli}/common/witness-auth.js +2 -2
- package/esm/keri/npm/src/cli/credentials/ipex.js +702 -0
- package/esm/keri/npm/src/cli/credentials/vc.js +399 -0
- package/esm/keri/npm/src/{app/cli → cli/endpoints}/did.js +63 -36
- package/esm/keri/npm/src/{app/cli → cli/endpoints}/ends.js +33 -28
- package/esm/keri/npm/src/{app/cli → cli/endpoints}/loc.js +16 -11
- package/esm/keri/npm/src/cli/endpoints/oobi-clean.js +134 -0
- package/esm/keri/npm/src/{app/cli → cli/endpoints}/oobi.js +35 -32
- package/esm/keri/npm/src/{app/cli → cli/identity}/aid.js +8 -7
- package/esm/keri/npm/src/{app/cli → cli/identity}/challenge.js +60 -49
- package/esm/keri/npm/src/{app/cli → cli/identity}/delegate.js +61 -26
- package/esm/keri/npm/src/{app/cli → cli/identity}/export.js +9 -8
- package/esm/keri/npm/src/cli/identity/incept.js +181 -0
- package/esm/keri/npm/src/cli/identity/init.js +153 -0
- package/esm/keri/npm/src/cli/identity/interact.js +84 -0
- package/esm/keri/npm/src/{app/cli → cli/identity}/list.js +7 -6
- package/esm/keri/npm/src/{app/cli → cli/identity}/rotate.js +60 -57
- package/esm/keri/npm/src/cli/index.js +38 -0
- package/esm/keri/npm/src/{app/cli → cli/messaging}/exchange.js +24 -22
- package/esm/keri/npm/src/{app/cli → cli/messaging}/multisig.js +165 -156
- package/esm/keri/npm/src/{app/cli → cli/messaging}/notifications.js +26 -22
- package/esm/keri/npm/src/{app/cli → cli}/output.js +1 -1
- package/esm/keri/npm/src/{app/cli → cli/tools}/annotate.js +10 -4
- package/esm/keri/npm/src/{app/cli → cli/tools}/benchmark.js +15 -4
- package/esm/keri/npm/src/{app/cli → cli/tools}/db-dump.js +11 -10
- package/esm/keri/npm/src/{app/cli → cli/tools}/saidify.js +3 -2
- package/esm/keri/npm/src/{app/cli → cli/tools}/sign.js +16 -10
- package/esm/keri/npm/src/{app/cli → cli/tools}/verify.js +10 -10
- package/esm/keri/npm/src/core/attachment-countering.js +31 -1
- package/esm/keri/npm/src/core/{exchange-proofing.js → exchange/exchange-proofing.js} +32 -2
- package/esm/keri/npm/src/core/{protocol-exchanging.js → exchange/protocol-exchanging.js} +26 -4
- package/esm/keri/npm/src/core/genus-framing.js +44 -0
- package/esm/keri/npm/src/core/{eventing.js → kel/eventing.js} +57 -25
- package/esm/keri/npm/src/core/{kever-decisions.js → kel/kever-decisions.js} +24 -12
- package/esm/keri/npm/src/core/{kever.js → kel/kever.js} +4 -4
- package/esm/keri/npm/src/core/logger.js +3 -3
- package/esm/keri/npm/src/core/{kram-policy.js → mailbox/kram-policy.js} +14 -4
- package/esm/keri/npm/src/core/{kram-pruning.js → mailbox/kram-pruning.js} +3 -3
- package/esm/keri/npm/src/core/{kram-signatures.js → mailbox/kram-signatures.js} +1 -1
- package/esm/keri/npm/src/core/{kram-staging.js → mailbox/kram-staging.js} +6 -6
- package/esm/keri/npm/src/core/{kram-time.js → mailbox/kram-time.js} +4 -3
- package/esm/keri/npm/src/core/{kraming.js → mailbox/kraming.js} +2 -2
- package/esm/keri/npm/src/core/protocol-eventing.js +1 -1
- package/esm/keri/npm/src/core/protocol-serialization.js +9 -34
- package/esm/keri/npm/src/core/routing.js +52 -17
- package/esm/keri/npm/src/db/baser-defaults.js +11 -0
- package/esm/keri/npm/src/db/basing.js +89 -232
- package/esm/keri/npm/src/db/core/lmdber.js +102 -63
- package/esm/keri/npm/src/db/escrowing.js +73 -49
- package/esm/keri/npm/src/db/exchange/exchange-nests.js +54 -0
- package/esm/keri/npm/src/db/exchange/exchange-records.js +7 -0
- package/esm/keri/npm/src/db/index.js +5 -4
- package/esm/keri/npm/src/db/keeping.js +122 -3
- package/esm/keri/npm/src/db/{kram-factors.js → mailbox/kram-factors.js} +1 -1
- package/esm/keri/npm/src/db/{mailboxing.js → mailbox/mailboxing.js} +3 -3
- package/esm/keri/npm/src/db/reger.js +38 -29
- package/esm/keri/npm/src/db/{kel-replay.js → replay/kel-replay.js} +11 -4
- package/esm/keri/npm/src/db/{tel-replay.js → replay/tel-replay.js} +34 -0
- package/esm/keri/npm/src/db/{witness-replay.js → replay/witness-replay.js} +2 -2
- package/esm/keri/npm/src/db/subing.js +2 -3
- package/esm/keri/npm/src/did/webs/artifacts.js +15 -18
- package/esm/keri/npm/src/did/webs/designated-aliases.js +5 -7
- package/esm/keri/npm/src/did/webs/resolving.js +73 -56
- package/esm/keri/npm/src/library/index.js +1 -1
- package/esm/keri/npm/src/npm/cli.js +1 -1
- package/esm/keri/npm/src/npm/index.js +1 -1
- package/esm/keri/npm/src/runtime/index.js +79 -47
- package/esm/keri/npm/src/vdr/backer-state.js +55 -0
- package/esm/keri/npm/src/vdr/credential-tsn-record.js +59 -0
- package/esm/keri/npm/src/vdr/credentialing.js +84 -82
- package/esm/keri/npm/src/vdr/eventing.js +592 -204
- package/esm/keri/npm/src/vdr/registry-tsn-record.js +55 -0
- package/esm/keri/npm/src/vdr/revoking.js +90 -0
- package/esm/keri/npm/src/vdr/tel-anchor.js +29 -0
- package/esm/keri/npm/src/vdr/tel-publication.js +178 -0
- package/esm/keri/npm/src/{app/version.js → version.js} +2 -2
- package/package.json +5 -3
- package/types/_dnt.polyfills.d.ts +6 -0
- package/types/_dnt.polyfills.d.ts.map +1 -1
- package/types/acdc/chaining.d.ts +35 -0
- package/types/acdc/chaining.d.ts.map +1 -0
- package/types/acdc/dhking.d.ts +136 -0
- package/types/acdc/dhking.d.ts.map +1 -0
- package/types/acdc/messaging.d.ts.map +1 -1
- package/types/acdc/observing.d.ts +18 -7
- package/types/acdc/observing.d.ts.map +1 -1
- package/types/acdc/regbasing.d.ts +3 -1
- package/types/acdc/regbasing.d.ts.map +1 -1
- package/types/acdc/regengine.d.ts +9 -4
- package/types/acdc/regengine.d.ts.map +1 -1
- package/types/acdc/regeventing.d.ts +24 -7
- package/types/acdc/regeventing.d.ts.map +1 -1
- package/types/acdc/registering.d.ts +22 -6
- package/types/acdc/registering.d.ts.map +1 -1
- package/types/acdc/registraring.d.ts +1 -1
- package/types/acdc/registraring.d.ts.map +1 -1
- package/types/acdc/relating.d.ts +21 -0
- package/types/acdc/relating.d.ts.map +1 -0
- package/types/acdc/salting.d.ts +241 -0
- package/types/acdc/salting.d.ts.map +1 -0
- package/types/acdc/scheming.d.ts +1 -1
- package/types/acdc/scheming.d.ts.map +1 -1
- package/types/acdc/unblinding.d.ts +150 -0
- package/types/acdc/unblinding.d.ts.map +1 -0
- package/types/app/bootstrap/authenticating.d.ts +54 -0
- package/types/app/bootstrap/authenticating.d.ts.map +1 -0
- package/types/app/bootstrap/bootstrapping.d.ts +45 -0
- package/types/app/bootstrap/bootstrapping.d.ts.map +1 -0
- package/types/app/{oobi-replies.d.ts → bootstrap/oobi-replies.d.ts} +1 -1
- package/types/app/bootstrap/oobi-replies.d.ts.map +1 -0
- package/types/app/{oobiery.d.ts → bootstrap/oobiery.d.ts} +98 -25
- package/types/app/bootstrap/oobiery.d.ts.map +1 -0
- package/types/app/credentials/credential-importing.d.ts +29 -0
- package/types/app/credentials/credential-importing.d.ts.map +1 -0
- package/types/app/credentials/credential-proposals.d.ts +27 -0
- package/types/app/credentials/credential-proposals.d.ts.map +1 -0
- package/types/app/credentials/credential-revoking.d.ts +44 -0
- package/types/app/credentials/credential-revoking.d.ts.map +1 -0
- package/types/app/credentials/credential-workflows.d.ts +149 -0
- package/types/app/credentials/credential-workflows.d.ts.map +1 -0
- package/types/app/{schema-resolving.d.ts → credentials/schema-resolving.d.ts} +2 -2
- package/types/app/credentials/schema-resolving.d.ts.map +1 -0
- package/types/app/credentials/tel-publishing.d.ts +16 -0
- package/types/app/credentials/tel-publishing.d.ts.map +1 -0
- package/types/app/{verifying.d.ts → credentials/verifying.d.ts} +19 -7
- package/types/app/credentials/verifying.d.ts.map +1 -0
- package/types/app/delivery/forwarding.d.ts +227 -0
- package/types/app/delivery/forwarding.d.ts.map +1 -0
- package/types/app/delivery/introducing.d.ts +21 -0
- package/types/app/delivery/introducing.d.ts.map +1 -0
- package/types/app/delivery/reply-streams.d.ts +49 -0
- package/types/app/delivery/reply-streams.d.ts.map +1 -0
- package/types/app/delivery/respondant.d.ts +52 -0
- package/types/app/delivery/respondant.d.ts.map +1 -0
- package/types/app/{stored-replies.d.ts → delivery/stored-replies.d.ts} +1 -1
- package/types/app/delivery/stored-replies.d.ts.map +1 -0
- package/types/app/exchanges/essr.d.ts +53 -0
- package/types/app/exchanges/essr.d.ts.map +1 -0
- package/types/app/exchanges/exchange-messaging.d.ts +73 -0
- package/types/app/exchanges/exchange-messaging.d.ts.map +1 -0
- package/types/app/exchanges/exchanging.d.ts +379 -0
- package/types/app/exchanges/exchanging.d.ts.map +1 -0
- package/types/app/{challenging.d.ts → identity/challenging.d.ts} +3 -3
- package/types/app/identity/challenging.d.ts.map +1 -0
- package/types/app/{configing.d.ts → identity/configing.d.ts} +1 -1
- package/types/app/identity/configing.d.ts.map +1 -0
- package/types/app/{delegating.d.ts → identity/delegating.d.ts} +52 -15
- package/types/app/identity/delegating.d.ts.map +1 -0
- package/types/app/{endpoint-roleing.d.ts → identity/endpoint-roleing.d.ts} +24 -13
- package/types/app/identity/endpoint-roleing.d.ts.map +1 -0
- package/types/app/{habbing.d.ts → identity/habbing.d.ts} +73 -32
- package/types/app/identity/habbing.d.ts.map +1 -0
- package/types/app/{keeping.d.ts → identity/keeping.d.ts} +19 -5
- package/types/app/identity/keeping.d.ts.map +1 -0
- package/types/app/{organizing.d.ts → identity/organizing.d.ts} +19 -4
- package/types/app/identity/organizing.d.ts.map +1 -0
- package/types/app/ipex/ipex-building.d.ts +30 -0
- package/types/app/ipex/ipex-building.d.ts.map +1 -0
- package/types/app/{ipex-credentialing.d.ts → ipex/ipex-credentialing.d.ts} +33 -6
- package/types/app/ipex/ipex-credentialing.d.ts.map +1 -0
- package/types/app/ipex/ipex-graph.d.ts +28 -0
- package/types/app/ipex/ipex-graph.d.ts.map +1 -0
- package/types/app/ipex/ipex-grouping.d.ts +112 -0
- package/types/app/ipex/ipex-grouping.d.ts.map +1 -0
- package/types/app/{ipex-node-authentication.d.ts → ipex/ipex-node-authentication.d.ts} +10 -5
- package/types/app/ipex/ipex-node-authentication.d.ts.map +1 -0
- package/types/app/ipex/ipex-v2.d.ts +71 -0
- package/types/app/ipex/ipex-v2.d.ts.map +1 -0
- package/types/app/{ipexing.d.ts → ipex/ipexing.d.ts} +21 -6
- package/types/app/ipex/ipexing.d.ts.map +1 -0
- package/types/app/mailbox/forward-handler.d.ts +68 -0
- package/types/app/mailbox/forward-handler.d.ts.map +1 -0
- package/types/app/mailbox/mailbox-director.d.ts +252 -0
- package/types/app/mailbox/mailbox-director.d.ts.map +1 -0
- package/types/app/mailbox/mailbox-poller.d.ts +149 -0
- package/types/app/mailbox/mailbox-poller.d.ts.map +1 -0
- package/types/app/mailbox/mailbox-sse.d.ts +63 -0
- package/types/app/mailbox/mailbox-sse.d.ts.map +1 -0
- package/types/app/{mailboxing.d.ts → mailbox/mailboxing.d.ts} +92 -40
- package/types/app/mailbox/mailboxing.d.ts.map +1 -0
- package/types/app/mailbox/topic-routing.d.ts +18 -0
- package/types/app/mailbox/topic-routing.d.ts.map +1 -0
- package/types/app/multisig/group-members.d.ts +60 -0
- package/types/app/multisig/group-members.d.ts.map +1 -0
- package/types/app/{grouping.d.ts → multisig/grouping.d.ts} +142 -19
- package/types/app/multisig/grouping.d.ts.map +1 -0
- package/types/app/multisig/multisig-messaging.d.ts +97 -0
- package/types/app/multisig/multisig-messaging.d.ts.map +1 -0
- package/types/app/multisig/multisig-workflows.d.ts +85 -0
- package/types/app/multisig/multisig-workflows.d.ts.map +1 -0
- package/types/app/{notifying.d.ts → notifications/notifying.d.ts} +4 -5
- package/types/app/notifications/notifying.d.ts.map +1 -0
- package/types/app/notifications/signaling.d.ts.map +1 -0
- package/types/app/{parsering.d.ts → protocol/parsering.d.ts} +40 -11
- package/types/app/protocol/parsering.d.ts.map +1 -0
- package/types/app/{protocol-host-policy.d.ts → protocol/protocol-host-policy.d.ts} +1 -10
- package/types/app/protocol/protocol-host-policy.d.ts.map +1 -0
- package/types/app/protocol/protocol-processing.d.ts +140 -0
- package/types/app/protocol/protocol-processing.d.ts.map +1 -0
- package/types/app/protocol/reactor.d.ts +43 -0
- package/types/app/protocol/reactor.d.ts.map +1 -0
- package/types/app/queries/query-replies.d.ts +78 -0
- package/types/app/queries/query-replies.d.ts.map +1 -0
- package/types/app/queries/querying.d.ts +155 -0
- package/types/app/queries/querying.d.ts.map +1 -0
- package/types/app/queries/witness-inquisitor.d.ts +150 -0
- package/types/app/queries/witness-inquisitor.d.ts.map +1 -0
- package/types/app/runtime/abortable.d.ts +39 -0
- package/types/app/runtime/abortable.d.ts.map +1 -0
- package/types/app/runtime/agent-runtime.d.ts +348 -0
- package/types/app/runtime/agent-runtime.d.ts.map +1 -0
- package/types/app/runtime/cue-runtime.d.ts +33 -0
- package/types/app/runtime/cue-runtime.d.ts.map +1 -0
- package/types/app/runtime/runtime-clock.d.ts +28 -0
- package/types/app/runtime/runtime-clock.d.ts.map +1 -0
- package/types/app/runtime/runtime-turn.d.ts.map +1 -0
- package/types/app/transport/byte-source.d.ts +41 -0
- package/types/app/transport/byte-source.d.ts.map +1 -0
- package/types/app/transport/cesr-egress.d.ts +117 -0
- package/types/app/transport/cesr-egress.d.ts.map +1 -0
- package/types/app/{cesr-http.d.ts → transport/cesr-http.d.ts} +4 -27
- package/types/app/transport/cesr-http.d.ts.map +1 -0
- package/types/app/transport/http-client.d.ts +99 -0
- package/types/app/transport/http-client.d.ts.map +1 -0
- package/types/app/transport/http-messenger.d.ts +37 -0
- package/types/app/transport/http-messenger.d.ts.map +1 -0
- package/types/app/transport/http-stream-messenger.d.ts +30 -0
- package/types/app/transport/http-stream-messenger.d.ts.map +1 -0
- package/types/app/transport/httping.d.ts +19 -0
- package/types/app/transport/httping.d.ts.map +1 -0
- package/types/app/transport/message-source.d.ts +22 -0
- package/types/app/transport/message-source.d.ts.map +1 -0
- package/types/app/transport/messengering.d.ts +41 -0
- package/types/app/transport/messengering.d.ts.map +1 -0
- package/types/app/{socket-source.d.ts → transport/socket-source.d.ts} +8 -0
- package/types/app/transport/socket-source.d.ts.map +1 -0
- package/types/app/transport/tcp-egress.d.ts +118 -0
- package/types/app/transport/tcp-egress.d.ts.map +1 -0
- package/types/app/transport/tcp-messenger.d.ts +69 -0
- package/types/app/transport/tcp-messenger.d.ts.map +1 -0
- package/types/app/transport/tcp-stream-messenger.d.ts +25 -0
- package/types/app/transport/tcp-stream-messenger.d.ts.map +1 -0
- package/types/app/transport/transport-error.d.ts +12 -0
- package/types/app/transport/transport-error.d.ts.map +1 -0
- package/types/app/witness/http-endpoints.d.ts +77 -0
- package/types/app/witness/http-endpoints.d.ts.map +1 -0
- package/types/app/witness/ingress.d.ts +65 -0
- package/types/app/witness/ingress.d.ts.map +1 -0
- package/types/app/witness/receipt-client.d.ts +82 -0
- package/types/app/witness/receipt-client.d.ts.map +1 -0
- package/types/app/witness/receipt-messages.d.ts +21 -0
- package/types/app/witness/receipt-messages.d.ts.map +1 -0
- package/types/app/witness/receipting.d.ts +117 -0
- package/types/app/witness/receipting.d.ts.map +1 -0
- package/types/app/witness/registration.d.ts +27 -0
- package/types/app/witness/registration.d.ts.map +1 -0
- package/types/cli/common/bootstrap.d.ts +5 -0
- package/types/cli/common/bootstrap.d.ts.map +1 -0
- package/types/{app/cli → cli}/common/context.d.ts +10 -5
- package/types/cli/common/context.d.ts.map +1 -0
- package/types/{app/cli → cli}/common/existing.d.ts +2 -4
- package/types/cli/common/existing.d.ts.map +1 -0
- package/types/{app/cli → cli}/common/parsing.d.ts +26 -15
- package/types/cli/common/parsing.d.ts.map +1 -0
- package/types/cli/common/passcode.d.ts +9 -0
- package/types/cli/common/passcode.d.ts.map +1 -0
- package/types/cli/common/rendering.d.ts.map +1 -0
- package/types/cli/common/tel-completion.d.ts +8 -0
- package/types/cli/common/tel-completion.d.ts.map +1 -0
- package/types/{app/cli → cli}/common/witness-auth.d.ts +1 -1
- package/types/cli/common/witness-auth.d.ts.map +1 -0
- package/types/cli/credentials/ipex.d.ts +110 -0
- package/types/cli/credentials/ipex.d.ts.map +1 -0
- package/types/cli/credentials/vc.d.ts +42 -0
- package/types/cli/credentials/vc.d.ts.map +1 -0
- package/types/{app/cli → cli/endpoints}/did.d.ts +5 -1
- package/types/cli/endpoints/did.d.ts.map +1 -0
- package/types/{app/cli → cli/endpoints}/ends.d.ts +9 -1
- package/types/cli/endpoints/ends.d.ts.map +1 -0
- package/types/cli/endpoints/loc.d.ts.map +1 -0
- package/types/cli/endpoints/oobi-clean.d.ts +8 -0
- package/types/cli/endpoints/oobi-clean.d.ts.map +1 -0
- package/types/{app/cli → cli/endpoints}/oobi.d.ts +2 -0
- package/types/cli/endpoints/oobi.d.ts.map +1 -0
- package/types/cli/identity/aid.d.ts.map +1 -0
- package/types/{app/cli → cli/identity}/challenge.d.ts +5 -1
- package/types/cli/identity/challenge.d.ts.map +1 -0
- package/types/cli/identity/delegate.d.ts.map +1 -0
- package/types/cli/identity/export.d.ts.map +1 -0
- package/types/{app/cli → cli/identity}/incept.d.ts +2 -0
- package/types/cli/identity/incept.d.ts.map +1 -0
- package/types/{app/cli → cli/identity}/init.d.ts +2 -0
- package/types/cli/identity/init.d.ts.map +1 -0
- package/types/{app/cli → cli/identity}/interact.d.ts +2 -0
- package/types/cli/identity/interact.d.ts.map +1 -0
- package/types/cli/identity/list.d.ts.map +1 -0
- package/types/{app/cli → cli/identity}/rotate.d.ts +9 -2
- package/types/cli/identity/rotate.d.ts.map +1 -0
- package/types/cli/index.d.ts +39 -0
- package/types/cli/index.d.ts.map +1 -0
- package/types/{app/cli → cli/messaging}/exchange.d.ts +3 -1
- package/types/cli/messaging/exchange.d.ts.map +1 -0
- package/types/cli/messaging/multisig.d.ts +29 -0
- package/types/cli/messaging/multisig.d.ts.map +1 -0
- package/types/cli/messaging/notifications.d.ts.map +1 -0
- package/types/cli/output.d.ts.map +1 -0
- package/types/cli/tools/annotate-color.d.ts.map +1 -0
- package/types/cli/tools/annotate.d.ts.map +1 -0
- package/types/cli/tools/benchmark.d.ts.map +1 -0
- package/types/cli/tools/db-dump.d.ts.map +1 -0
- package/types/cli/tools/saidify.d.ts.map +1 -0
- package/types/{app/cli → cli/tools}/sign.d.ts +2 -0
- package/types/cli/tools/sign.d.ts.map +1 -0
- package/types/cli/tools/verify.d.ts.map +1 -0
- package/types/core/attachment-countering.d.ts +10 -1
- package/types/core/attachment-countering.d.ts.map +1 -1
- package/types/core/cues.d.ts +78 -21
- package/types/core/cues.d.ts.map +1 -1
- package/types/core/{exchange-proofing.d.ts → exchange/exchange-proofing.d.ts} +9 -2
- package/types/core/exchange/exchange-proofing.d.ts.map +1 -0
- package/types/core/{protocol-exchanging.d.ts → exchange/protocol-exchanging.d.ts} +10 -2
- package/types/core/exchange/protocol-exchanging.d.ts.map +1 -0
- package/types/core/genus-framing.d.ts +12 -0
- package/types/core/genus-framing.d.ts.map +1 -0
- package/types/core/{eventing.d.ts → kel/eventing.d.ts} +22 -10
- package/types/core/kel/eventing.d.ts.map +1 -0
- package/types/core/{kever-decisions.d.ts → kel/kever-decisions.d.ts} +21 -8
- package/types/core/kel/kever-decisions.d.ts.map +1 -0
- package/types/core/{kever.d.ts → kel/kever.d.ts} +2 -2
- package/types/core/kel/kever.d.ts.map +1 -0
- package/types/core/kel/witnesses.d.ts.map +1 -0
- package/types/core/logger.d.ts +1 -1
- package/types/core/logger.d.ts.map +1 -1
- package/types/core/{kram-auth.d.ts → mailbox/kram-auth.d.ts} +2 -2
- package/types/core/mailbox/kram-auth.d.ts.map +1 -0
- package/types/core/{kram-policy.d.ts → mailbox/kram-policy.d.ts} +2 -2
- package/types/core/mailbox/kram-policy.d.ts.map +1 -0
- package/types/core/{kram-pruning.d.ts → mailbox/kram-pruning.d.ts} +1 -1
- package/types/core/mailbox/kram-pruning.d.ts.map +1 -0
- package/types/core/{kram-signatures.d.ts → mailbox/kram-signatures.d.ts} +3 -3
- package/types/core/mailbox/kram-signatures.d.ts.map +1 -0
- package/types/core/{kram-staging.d.ts → mailbox/kram-staging.d.ts} +2 -2
- package/types/core/mailbox/kram-staging.d.ts.map +1 -0
- package/types/core/{kram-time.d.ts → mailbox/kram-time.d.ts} +2 -2
- package/types/core/mailbox/kram-time.d.ts.map +1 -0
- package/types/core/{kraming.d.ts → mailbox/kraming.d.ts} +5 -5
- package/types/core/mailbox/kraming.d.ts.map +1 -0
- package/types/core/mailbox/mailbox-topics.d.ts.map +1 -0
- package/types/core/protocol-eventing.d.ts.map +1 -1
- package/types/core/protocol-serialization.d.ts +1 -1
- package/types/core/protocol-serialization.d.ts.map +1 -1
- package/types/core/records.d.ts +1 -1
- package/types/core/records.d.ts.map +1 -1
- package/types/core/routing.d.ts +24 -4
- package/types/core/routing.d.ts.map +1 -1
- package/types/db/baser-defaults.d.ts +5 -0
- package/types/db/baser-defaults.d.ts.map +1 -0
- package/types/db/basing.d.ts +32 -44
- package/types/db/basing.d.ts.map +1 -1
- package/types/db/core/lmdber.d.ts +18 -13
- package/types/db/core/lmdber.d.ts.map +1 -1
- package/types/db/escrowing.d.ts +3 -1
- package/types/db/escrowing.d.ts.map +1 -1
- package/types/db/exchange/exchange-nests.d.ts +12 -0
- package/types/db/exchange/exchange-nests.d.ts.map +1 -0
- package/types/db/exchange/exchange-records.d.ts +38 -0
- package/types/db/exchange/exchange-records.d.ts.map +1 -0
- package/types/db/index.d.ts +5 -4
- package/types/db/index.d.ts.map +1 -1
- package/types/db/keeping.d.ts +19 -1
- package/types/db/keeping.d.ts.map +1 -1
- package/types/db/{kram-factors.d.ts → mailbox/kram-factors.d.ts} +2 -2
- package/types/db/mailbox/kram-factors.d.ts.map +1 -0
- package/types/db/{mailboxing.d.ts → mailbox/mailboxing.d.ts} +2 -2
- package/types/db/mailbox/mailboxing.d.ts.map +1 -0
- package/types/db/reger.d.ts +7 -6
- package/types/db/reger.d.ts.map +1 -1
- package/types/db/{kel-replay.d.ts → replay/kel-replay.d.ts} +1 -2
- package/types/db/replay/kel-replay.d.ts.map +1 -0
- package/types/db/{tel-replay.d.ts → replay/tel-replay.d.ts} +11 -1
- package/types/db/replay/tel-replay.d.ts.map +1 -0
- package/types/db/{witness-replay.d.ts → replay/witness-replay.d.ts} +1 -1
- package/types/db/replay/witness-replay.d.ts.map +1 -0
- package/types/db/subing.d.ts.map +1 -1
- package/types/did/keri/resolving.d.ts +1 -1
- package/types/did/keri/resolving.d.ts.map +1 -1
- package/types/did/webs/artifacts.d.ts +5 -5
- package/types/did/webs/artifacts.d.ts.map +1 -1
- package/types/did/webs/designated-aliases.d.ts +1 -2
- package/types/did/webs/designated-aliases.d.ts.map +1 -1
- package/types/did/webs/documenting.d.ts +1 -1
- package/types/did/webs/documenting.d.ts.map +1 -1
- package/types/did/webs/resolving.d.ts +13 -9
- package/types/did/webs/resolving.d.ts.map +1 -1
- package/types/library/index.d.ts +1 -1
- package/types/library/index.d.ts.map +1 -1
- package/types/npm/cli.d.ts +1 -1
- package/types/npm/cli.d.ts.map +1 -1
- package/types/npm/index.d.ts +1 -1
- package/types/npm/index.d.ts.map +1 -1
- package/types/runtime/index.d.ts +86 -51
- package/types/runtime/index.d.ts.map +1 -1
- package/types/vdr/backer-state.d.ts +22 -0
- package/types/vdr/backer-state.d.ts.map +1 -0
- package/types/vdr/credential-tsn-record.d.ts +13 -0
- package/types/vdr/credential-tsn-record.d.ts.map +1 -0
- package/types/vdr/credentialing.d.ts +16 -17
- package/types/vdr/credentialing.d.ts.map +1 -1
- package/types/vdr/eventing.d.ts +60 -18
- package/types/vdr/eventing.d.ts.map +1 -1
- package/types/vdr/registry-tsn-record.d.ts +6 -0
- package/types/vdr/registry-tsn-record.d.ts.map +1 -0
- package/types/vdr/revoking.d.ts +18 -0
- package/types/vdr/revoking.d.ts.map +1 -0
- package/types/vdr/tel-anchor.d.ts +10 -0
- package/types/vdr/tel-anchor.d.ts.map +1 -0
- package/types/vdr/tel-publication.d.ts +49 -0
- package/types/vdr/tel-publication.d.ts.map +1 -0
- package/types/vdr/tsn-query.d.ts +1 -1
- package/types/vdr/tsn-query.d.ts.map +1 -1
- package/types/{app/version.d.ts → version.d.ts} +2 -2
- package/types/version.d.ts.map +1 -0
- package/esm/keri/npm/src/app/agent-runtime.js +0 -544
- package/esm/keri/npm/src/app/cesr-egress.js +0 -294
- package/esm/keri/npm/src/app/cli/common/displaying.js +0 -43
- package/esm/keri/npm/src/app/cli/common/parsing.js +0 -215
- package/esm/keri/npm/src/app/cli/incept.js +0 -185
- package/esm/keri/npm/src/app/cli/index.js +0 -36
- package/esm/keri/npm/src/app/cli/init.js +0 -149
- package/esm/keri/npm/src/app/cli/interact.js +0 -72
- package/esm/keri/npm/src/app/cli/ipex.js +0 -519
- package/esm/keri/npm/src/app/cli/query.js +0 -142
- package/esm/keri/npm/src/app/cli/vc.js +0 -283
- package/esm/keri/npm/src/app/cli/verifier.js +0 -92
- package/esm/keri/npm/src/app/credential-workflows.js +0 -409
- package/esm/keri/npm/src/app/cue-runtime.js +0 -38
- package/esm/keri/npm/src/app/essr.js +0 -170
- package/esm/keri/npm/src/app/exchanging.js +0 -1001
- package/esm/keri/npm/src/app/forwarding.js +0 -936
- package/esm/keri/npm/src/app/group-members.js +0 -37
- package/esm/keri/npm/src/app/httping.js +0 -162
- package/esm/keri/npm/src/app/ipex-graph.js +0 -407
- package/esm/keri/npm/src/app/ipex-grouping.js +0 -276
- package/esm/keri/npm/src/app/ipex-v2.js +0 -438
- package/esm/keri/npm/src/app/mailbox-sse.js +0 -240
- package/esm/keri/npm/src/app/multisig-workflows.js +0 -457
- package/esm/keri/npm/src/app/querying.js +0 -775
- package/esm/keri/npm/src/app/reactor.js +0 -394
- package/esm/keri/npm/src/app/respondant.js +0 -358
- package/esm/keri/npm/src/app/runtime-services.js +0 -22
- package/esm/keri/npm/src/app/tcp-conversation.js +0 -85
- package/esm/keri/npm/src/app/tcp-egress.js +0 -251
- package/esm/keri/npm/src/app/verifier-agent.js +0 -443
- package/esm/keri/npm/src/app/witnessing.js +0 -914
- package/esm/keri/npm/src/core/index.js +0 -23
- package/esm/keri/npm/src/db/exchange-nests.js +0 -80
- package/esm/keri/npm/src/db/exchange-records.js +0 -7
- package/esm/keri/npm/src/db/payload-archive.js +0 -402
- package/esm/keri/npm/src/db/payload-store.js +0 -406
- package/esm/keri/npm/src/db/payload-view.js +0 -23
- package/esm/keri/npm/src/db/verifier-cueing.js +0 -132
- package/esm/keri/npm/src/vdr/credential-tsn.js +0 -230
- package/esm/keri/npm/src/vdr/registry-tsn.js +0 -217
- package/types/app/abortable.d.ts +0 -13
- package/types/app/abortable.d.ts.map +0 -1
- package/types/app/agent-runtime.d.ts +0 -221
- package/types/app/agent-runtime.d.ts.map +0 -1
- package/types/app/authenticating.d.ts +0 -36
- package/types/app/authenticating.d.ts.map +0 -1
- package/types/app/byte-source.d.ts +0 -16
- package/types/app/byte-source.d.ts.map +0 -1
- package/types/app/cesr-egress.d.ts +0 -45
- package/types/app/cesr-egress.d.ts.map +0 -1
- package/types/app/cesr-http.d.ts.map +0 -1
- package/types/app/challenging.d.ts.map +0 -1
- package/types/app/cli/aid.d.ts.map +0 -1
- package/types/app/cli/annotate-color.d.ts.map +0 -1
- package/types/app/cli/annotate.d.ts.map +0 -1
- package/types/app/cli/benchmark.d.ts.map +0 -1
- package/types/app/cli/challenge.d.ts.map +0 -1
- package/types/app/cli/common/context.d.ts.map +0 -1
- package/types/app/cli/common/displaying.d.ts +0 -12
- package/types/app/cli/common/displaying.d.ts.map +0 -1
- package/types/app/cli/common/existing.d.ts.map +0 -1
- package/types/app/cli/common/parsing.d.ts.map +0 -1
- package/types/app/cli/common/rendering.d.ts.map +0 -1
- package/types/app/cli/common/witness-auth.d.ts.map +0 -1
- package/types/app/cli/db-dump.d.ts.map +0 -1
- package/types/app/cli/delegate.d.ts.map +0 -1
- package/types/app/cli/did.d.ts.map +0 -1
- package/types/app/cli/ends.d.ts.map +0 -1
- package/types/app/cli/exchange.d.ts.map +0 -1
- package/types/app/cli/export.d.ts.map +0 -1
- package/types/app/cli/incept.d.ts.map +0 -1
- package/types/app/cli/index.d.ts +0 -37
- package/types/app/cli/index.d.ts.map +0 -1
- package/types/app/cli/init.d.ts.map +0 -1
- package/types/app/cli/interact.d.ts.map +0 -1
- package/types/app/cli/ipex.d.ts +0 -20
- package/types/app/cli/ipex.d.ts.map +0 -1
- package/types/app/cli/list.d.ts.map +0 -1
- package/types/app/cli/loc.d.ts.map +0 -1
- package/types/app/cli/multisig.d.ts +0 -12
- package/types/app/cli/multisig.d.ts.map +0 -1
- package/types/app/cli/notifications.d.ts.map +0 -1
- package/types/app/cli/oobi.d.ts.map +0 -1
- package/types/app/cli/output.d.ts.map +0 -1
- package/types/app/cli/query.d.ts +0 -12
- package/types/app/cli/query.d.ts.map +0 -1
- package/types/app/cli/rotate.d.ts.map +0 -1
- package/types/app/cli/saidify.d.ts.map +0 -1
- package/types/app/cli/sign.d.ts.map +0 -1
- package/types/app/cli/vc.d.ts +0 -20
- package/types/app/cli/vc.d.ts.map +0 -1
- package/types/app/cli/verifier.d.ts +0 -3
- package/types/app/cli/verifier.d.ts.map +0 -1
- package/types/app/cli/verify.d.ts.map +0 -1
- package/types/app/configing.d.ts.map +0 -1
- package/types/app/credential-workflows.d.ts +0 -113
- package/types/app/credential-workflows.d.ts.map +0 -1
- package/types/app/cue-runtime.d.ts +0 -12
- package/types/app/cue-runtime.d.ts.map +0 -1
- package/types/app/delegating.d.ts.map +0 -1
- package/types/app/endpoint-roleing.d.ts.map +0 -1
- package/types/app/essr.d.ts +0 -58
- package/types/app/essr.d.ts.map +0 -1
- package/types/app/exchanging.d.ts +0 -233
- package/types/app/exchanging.d.ts.map +0 -1
- package/types/app/forwarding.d.ts +0 -352
- package/types/app/forwarding.d.ts.map +0 -1
- package/types/app/group-members.d.ts +0 -12
- package/types/app/group-members.d.ts.map +0 -1
- package/types/app/grouping.d.ts.map +0 -1
- package/types/app/habbing.d.ts.map +0 -1
- package/types/app/httping.d.ts +0 -49
- package/types/app/httping.d.ts.map +0 -1
- package/types/app/ipex-credentialing.d.ts.map +0 -1
- package/types/app/ipex-graph.d.ts +0 -49
- package/types/app/ipex-graph.d.ts.map +0 -1
- package/types/app/ipex-grouping.d.ts +0 -43
- package/types/app/ipex-grouping.d.ts.map +0 -1
- package/types/app/ipex-node-authentication.d.ts.map +0 -1
- package/types/app/ipex-v2.d.ts +0 -46
- package/types/app/ipex-v2.d.ts.map +0 -1
- package/types/app/ipexing.d.ts.map +0 -1
- package/types/app/keeping.d.ts.map +0 -1
- package/types/app/mailbox-director.d.ts +0 -140
- package/types/app/mailbox-director.d.ts.map +0 -1
- package/types/app/mailbox-sse.d.ts +0 -32
- package/types/app/mailbox-sse.d.ts.map +0 -1
- package/types/app/mailboxing.d.ts.map +0 -1
- package/types/app/multisig-workflows.d.ts +0 -47
- package/types/app/multisig-workflows.d.ts.map +0 -1
- package/types/app/notifying.d.ts.map +0 -1
- package/types/app/oobi-replies.d.ts.map +0 -1
- package/types/app/oobiery.d.ts.map +0 -1
- package/types/app/organizing.d.ts.map +0 -1
- package/types/app/parsering.d.ts.map +0 -1
- package/types/app/protocol-host-policy.d.ts.map +0 -1
- package/types/app/query-replies.d.ts +0 -40
- package/types/app/query-replies.d.ts.map +0 -1
- package/types/app/querying.d.ts +0 -221
- package/types/app/querying.d.ts.map +0 -1
- package/types/app/reactor.d.ts +0 -138
- package/types/app/reactor.d.ts.map +0 -1
- package/types/app/reply-streams.d.ts +0 -20
- package/types/app/reply-streams.d.ts.map +0 -1
- package/types/app/respondant.d.ts +0 -63
- package/types/app/respondant.d.ts.map +0 -1
- package/types/app/runtime-services.d.ts +0 -26
- package/types/app/runtime-services.d.ts.map +0 -1
- package/types/app/runtime-turn.d.ts.map +0 -1
- package/types/app/schema-resolving.d.ts.map +0 -1
- package/types/app/signaling.d.ts.map +0 -1
- package/types/app/socket-source.d.ts.map +0 -1
- package/types/app/stored-replies.d.ts.map +0 -1
- package/types/app/tcp-conversation.d.ts +0 -27
- package/types/app/tcp-conversation.d.ts.map +0 -1
- package/types/app/tcp-egress.d.ts +0 -49
- package/types/app/tcp-egress.d.ts.map +0 -1
- package/types/app/verifier-agent.d.ts +0 -92
- package/types/app/verifier-agent.d.ts.map +0 -1
- package/types/app/verifying.d.ts.map +0 -1
- package/types/app/version.d.ts.map +0 -1
- package/types/app/witnessing.d.ts +0 -223
- package/types/app/witnessing.d.ts.map +0 -1
- package/types/core/eventing.d.ts.map +0 -1
- package/types/core/exchange-proofing.d.ts.map +0 -1
- package/types/core/index.d.ts +0 -24
- package/types/core/index.d.ts.map +0 -1
- package/types/core/kever-decisions.d.ts.map +0 -1
- package/types/core/kever.d.ts.map +0 -1
- package/types/core/kram-auth.d.ts.map +0 -1
- package/types/core/kram-policy.d.ts.map +0 -1
- package/types/core/kram-pruning.d.ts.map +0 -1
- package/types/core/kram-signatures.d.ts.map +0 -1
- package/types/core/kram-staging.d.ts.map +0 -1
- package/types/core/kram-time.d.ts.map +0 -1
- package/types/core/kraming.d.ts.map +0 -1
- package/types/core/mailbox-topics.d.ts.map +0 -1
- package/types/core/protocol-exchanging.d.ts.map +0 -1
- package/types/core/witnesses.d.ts.map +0 -1
- package/types/db/exchange-nests.d.ts +0 -15
- package/types/db/exchange-nests.d.ts.map +0 -1
- package/types/db/exchange-records.d.ts +0 -33
- package/types/db/exchange-records.d.ts.map +0 -1
- package/types/db/kel-replay.d.ts.map +0 -1
- package/types/db/kram-factors.d.ts.map +0 -1
- package/types/db/mailboxing.d.ts.map +0 -1
- package/types/db/payload-archive.d.ts +0 -70
- package/types/db/payload-archive.d.ts.map +0 -1
- package/types/db/payload-store.d.ts +0 -40
- package/types/db/payload-store.d.ts.map +0 -1
- package/types/db/payload-view.d.ts +0 -4
- package/types/db/payload-view.d.ts.map +0 -1
- package/types/db/tel-replay.d.ts.map +0 -1
- package/types/db/verifier-cueing.d.ts +0 -46
- package/types/db/verifier-cueing.d.ts.map +0 -1
- package/types/db/witness-replay.d.ts.map +0 -1
- package/types/vdr/credential-tsn.d.ts +0 -23
- package/types/vdr/credential-tsn.d.ts.map +0 -1
- package/types/vdr/registry-tsn.d.ts +0 -28
- package/types/vdr/registry-tsn.d.ts.map +0 -1
- /package/esm/keri/npm/src/app/{schema-resolving.js → credentials/schema-resolving.js} +0 -0
- /package/esm/keri/npm/src/app/{challenging.js → identity/challenging.js} +0 -0
- /package/esm/keri/npm/src/app/{protocol-host-policy.js → protocol/protocol-host-policy.js} +0 -0
- /package/esm/keri/npm/src/app/{runtime-turn.js → runtime/runtime-turn.js} +0 -0
- /package/esm/keri/npm/src/{app/cli → cli}/common/rendering.js +0 -0
- /package/esm/keri/npm/src/{app/cli → cli/tools}/annotate-color.js +0 -0
- /package/esm/keri/npm/src/core/{witnesses.js → kel/witnesses.js} +0 -0
- /package/esm/keri/npm/src/core/{kram-auth.js → mailbox/kram-auth.js} +0 -0
- /package/esm/keri/npm/src/core/{mailbox-topics.js → mailbox/mailbox-topics.js} +0 -0
- /package/types/app/{signaling.d.ts → notifications/signaling.d.ts} +0 -0
- /package/types/app/{runtime-turn.d.ts → runtime/runtime-turn.d.ts} +0 -0
- /package/types/{app/cli → cli}/common/rendering.d.ts +0 -0
- /package/types/{app/cli → cli/endpoints}/loc.d.ts +0 -0
- /package/types/{app/cli → cli/identity}/aid.d.ts +0 -0
- /package/types/{app/cli → cli/identity}/delegate.d.ts +0 -0
- /package/types/{app/cli → cli/identity}/export.d.ts +0 -0
- /package/types/{app/cli → cli/identity}/list.d.ts +0 -0
- /package/types/{app/cli → cli/messaging}/notifications.d.ts +0 -0
- /package/types/{app/cli → cli}/output.d.ts +0 -0
- /package/types/{app/cli → cli/tools}/annotate-color.d.ts +0 -0
- /package/types/{app/cli → cli/tools}/annotate.d.ts +0 -0
- /package/types/{app/cli → cli/tools}/benchmark.d.ts +0 -0
- /package/types/{app/cli → cli/tools}/db-dump.d.ts +0 -0
- /package/types/{app/cli → cli/tools}/saidify.d.ts +0 -0
- /package/types/{app/cli → cli/tools}/verify.d.ts +0 -0
- /package/types/core/{witnesses.d.ts → kel/witnesses.d.ts} +0 -0
- /package/types/core/{mailbox-topics.d.ts → mailbox/mailbox-topics.d.ts} +0 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Credential registry and lifecycle workflow orchestration.
|
|
3
|
+
*
|
|
4
|
+
* CLI adapters parse inputs and render outputs. This module owns registry state,
|
|
5
|
+
* credential issuance/import/export,
|
|
6
|
+
* and multisig VC proposal coordination.
|
|
7
|
+
*/
|
|
8
|
+
import { SerderACDC, type SerderKERI } from "cesr-ts";
|
|
9
|
+
import { type Operation } from "effection";
|
|
10
|
+
import { Reger } from "../../db/reger.js";
|
|
11
|
+
import { Regery } from "../../vdr/credentialing.js";
|
|
12
|
+
import { type TelProcessDecision } from "../../vdr/eventing.js";
|
|
13
|
+
import type { Poster } from "../delivery/forwarding.js";
|
|
14
|
+
import type { Hab, Habery } from "../identity/habbing.js";
|
|
15
|
+
import { MULTISIG_ISS_ROUTE, MULTISIG_VCP_ROUTE, type MultisigVdrProposal } from "../multisig/grouping.js";
|
|
16
|
+
import type { Reactor } from "../protocol/reactor.js";
|
|
17
|
+
import type { VerifierDecision } from "./verifying.js";
|
|
18
|
+
import { type GroupSendResult } from "../multisig/multisig-messaging.js";
|
|
19
|
+
export interface CredentialRegistryInceptOptions {
|
|
20
|
+
registryName: string;
|
|
21
|
+
estOnly?: boolean;
|
|
22
|
+
usage?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface CredentialCreateOptions {
|
|
25
|
+
registryName: string;
|
|
26
|
+
schema: string;
|
|
27
|
+
recipient?: string;
|
|
28
|
+
data: Record<string, unknown> | string;
|
|
29
|
+
edges?: Record<string, unknown> | Record<string, unknown>[];
|
|
30
|
+
rules?: Record<string, unknown> | Record<string, unknown>[];
|
|
31
|
+
}
|
|
32
|
+
export interface CredentialListOptions {
|
|
33
|
+
issued?: boolean;
|
|
34
|
+
aid?: string;
|
|
35
|
+
schema?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface CredentialListItem {
|
|
38
|
+
said: string;
|
|
39
|
+
issuer: string | null;
|
|
40
|
+
issuee: string | null;
|
|
41
|
+
schema: string | null;
|
|
42
|
+
status: string | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Registry creation/proposal facts for one operation. The same result shape
|
|
46
|
+
* covers single-author and group paths; group adds coordination facts without
|
|
47
|
+
* changing registry identity into a different variant. Consumers must distinguish
|
|
48
|
+
* successful member delivery from accepted registry state.
|
|
49
|
+
*/
|
|
50
|
+
export interface RegistryResult {
|
|
51
|
+
/** Completed local witness collection and TEL publication; never remote acknowledgement. */
|
|
52
|
+
publicationComplete: boolean;
|
|
53
|
+
name: string;
|
|
54
|
+
/** Registry identifier when constructed; null if this operation has none to report. */
|
|
55
|
+
registry: string | null;
|
|
56
|
+
/** Registry controller AID; may identify a group rather than the signing member. */
|
|
57
|
+
issuer: string;
|
|
58
|
+
/** Present for group coordination, with acceptance assessed separately from sending. */
|
|
59
|
+
group?: GroupSendResult & {
|
|
60
|
+
route: typeof MULTISIG_VCP_ROUTE;
|
|
61
|
+
status: TelProcessDecision["kind"];
|
|
62
|
+
accepted: boolean;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Credential issuance facts, leaving JSON projection to the command adapter.
|
|
67
|
+
* A constructed ACDC and successful transport do not establish accepted TEL or
|
|
68
|
+
* saved verifier state. Those results are reported independently below.
|
|
69
|
+
*/
|
|
70
|
+
export interface IssueResult {
|
|
71
|
+
/** TEL publication is independent of credential saving and member transport outcomes. */
|
|
72
|
+
publicationComplete: boolean;
|
|
73
|
+
/** Constructed credential; ordinary Serder data remains usable after store closure. */
|
|
74
|
+
creder: SerderACDC;
|
|
75
|
+
/** Resolved issuee retained for later export/delivery, not a transport endpoint. */
|
|
76
|
+
recipient: string;
|
|
77
|
+
/** Issuance TEL event SAID, when available. */
|
|
78
|
+
tel: string | null;
|
|
79
|
+
/** Credential verifier decision for this issuance attempt. */
|
|
80
|
+
status: VerifierDecision["kind"];
|
|
81
|
+
group?: GroupSendResult & {
|
|
82
|
+
route: typeof MULTISIG_ISS_ROUTE;
|
|
83
|
+
/** Registry event processor decision, independent of the credential verifier decision. */
|
|
84
|
+
telStatus: TelProcessDecision["kind"];
|
|
85
|
+
/** Whether the credential is actually saved; sending a proposal does not make it so. */
|
|
86
|
+
saved: boolean;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export interface CredentialExportResult {
|
|
90
|
+
creder: SerderACDC;
|
|
91
|
+
recipient: string;
|
|
92
|
+
bytes: Uint8Array;
|
|
93
|
+
}
|
|
94
|
+
/** Pin a JSON schema body into the local schema table. */
|
|
95
|
+
export declare function pinSchemaBytes(hby: Habery, raw: Uint8Array): string;
|
|
96
|
+
/**
|
|
97
|
+
* Create a single-sig registry or propose a group registry inception.
|
|
98
|
+
*
|
|
99
|
+
* @param rgy Borrowed legacy registry/credential owner.
|
|
100
|
+
* @param input Borrowed byte intake; commits each exact local wrapper before peer delivery.
|
|
101
|
+
* @param postman Borrowed Poster; its delivery worker must run while this operation awaits outcomes.
|
|
102
|
+
* @param hab Local signing habitat; its state/store lifetime remains with the caller.
|
|
103
|
+
* @param options Registry name/configuration and optional group proposal usage.
|
|
104
|
+
* @returns Registry/proposal state and actual deliveries, with acceptance reported separately.
|
|
105
|
+
*/
|
|
106
|
+
export declare function inceptCredentialRegistry(rgy: Regery, input: Reactor, postman: Poster, hab: Hab, options: CredentialRegistryInceptOptions): Operation<RegistryResult>;
|
|
107
|
+
/** Return locally known credential registry records. */
|
|
108
|
+
export declare function credentialRegistryRecords(reger: Reger): Array<{
|
|
109
|
+
name: string | undefined;
|
|
110
|
+
registry: string;
|
|
111
|
+
issuer: string;
|
|
112
|
+
}>;
|
|
113
|
+
/** Return current TEL status for one local registry name. */
|
|
114
|
+
export declare function credentialRegistryStatus(rgy: Regery, registryName: string): {
|
|
115
|
+
name: string;
|
|
116
|
+
registry: string;
|
|
117
|
+
issuer: string;
|
|
118
|
+
state: Required<import("../../core/records.js").RegStateRecord> | null;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Create and issue one registry-backed credential.
|
|
122
|
+
*
|
|
123
|
+
* @param rgy Borrowed registry/TEL/credential owner.
|
|
124
|
+
* @param input Borrowed byte intake; commits each exact local wrapper before peer delivery.
|
|
125
|
+
* @param postman Borrowed Poster; its delivery worker must run while this operation awaits outcomes.
|
|
126
|
+
* @param options Issuer registry, credential data/schema, and optional delivery/export choices.
|
|
127
|
+
* @returns Credential/TEL result with saved/accepted state distinct from delivered URLs.
|
|
128
|
+
*/
|
|
129
|
+
export declare function createCredential(rgy: Regery, input: Reactor, postman: Poster, options: CredentialCreateOptions): Operation<IssueResult>;
|
|
130
|
+
/** List locally saved credentials through wallet indexes. */
|
|
131
|
+
export declare function listCredentials(rgy: Regery, options: CredentialListOptions): CredentialListItem[];
|
|
132
|
+
/** Build a KERIpy-compatible credential export stream. */
|
|
133
|
+
export declare function exportCredentialStream(hby: Habery, reger: Reger, credentialSaid: string, recipient?: string): CredentialExportResult;
|
|
134
|
+
/** Build a KERIpy-compatible credential stream for an already loaded credential. */
|
|
135
|
+
export declare function credentialStreamBytes(hby: Habery, reger: Reger, creder: SerderACDC, recipient: string): Uint8Array;
|
|
136
|
+
/** Author the required group anchor after all available business evidence has been validated. */
|
|
137
|
+
export declare function anchorGroupCredentialEvent(hby: Habery, hab: Hab, event: SerderKERI, estOnly: boolean): import("../identity/habbing.js").GroupHabRotation;
|
|
138
|
+
/**
|
|
139
|
+
* Send one signed proposal per remote signing member and await each delivery.
|
|
140
|
+
* Local members are skipped; a failed outcome throws before reporting success.
|
|
141
|
+
*
|
|
142
|
+
* @param hby Borrowed local identities and accepted-state stores.
|
|
143
|
+
* @param postman Borrowed Poster; its delivery worker must run while this operation awaits outcomes.
|
|
144
|
+
* @param groupHab Group issuer habitat whose remote signing members receive the proposal.
|
|
145
|
+
* @param proposal Registry, issuance or revocation route with its required named evidence.
|
|
146
|
+
* @returns Stable proposal/wrapper identities and successful target URLs after concrete Poster completion.
|
|
147
|
+
*/
|
|
148
|
+
export declare function publishGroupVcProposal(hby: Habery, input: Reactor, postman: Poster, groupHab: Hab, proposal: MultisigVdrProposal): Operation<GroupSendResult>;
|
|
149
|
+
//# sourceMappingURL=credential-workflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-workflows.d.ts","sourceRoot":"","sources":["../../../src/app/credentials/credential-workflows.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAML,UAAU,EACV,KAAK,UAAU,EAEhB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAK3C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAkC,MAAM,EAAiC,MAAM,4BAA4B,CAAC;AACnH,OAAO,EAAE,KAAK,kBAAkB,EAA6B,MAAM,uBAAuB,CAAC;AAC3F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAG1D,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,KAAK,mBAAmB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAKtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,E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AM,EAAE,MAAM,CAAA;CAAE,CAAC,CAUvE;AAED,6DAA6D;AAC7D,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM;;;;;EAYzE;AAED;;;;;;;;GAQG;AACH,wBAAiB,gBAAgB,CAC/B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,uBAAuB,GAC/B,SAAS,CAAC,WAAW,CAAC,CA6BxB;AAED,6DAA6D;AAC7D,wBAAgB,eAAe,CAC7B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,qBAAqB,GAC7B,kBAAkB,EAAE,CAetB;AAED,0DAA0D;AAC1D,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,MAAM,EACtB,SAAS,CAAC,EAAE,MAAM,GACjB,sBAAsB,CAQxB;AAED,oFAAoF;AACpF,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,MAAM,GAChB,UAAU,CAEZ;AAED,iGAAiG;AACjG,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,qDAIpG;AA4ID;;;;;;;;;GASG;AACH,wBAAiB,sBAAsB,CACrC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,GAAG,EACb,QAAQ,EAAE,mBAAmB,GAC5B,SAAS,CAAC,eAAe,CAAC,CAS5B"}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*
|
|
9
9
|
* DID URL dereferencing is intentionally represented but not implemented yet.
|
|
10
10
|
*/
|
|
11
|
-
import type { Schemer } from "
|
|
12
|
-
import type { Habery } from "
|
|
11
|
+
import type { Schemer } from "../../core/scheming.js";
|
|
12
|
+
import type { Habery } from "../identity/habbing.js";
|
|
13
13
|
export type SchemaReference = {
|
|
14
14
|
kind: "bare";
|
|
15
15
|
said: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-resolving.d.ts","sourceRoot":"","sources":["../../../src/app/credentials/schema-resolving.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC7B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjC,uEAAuE;AACvE,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe,CAevE;AAED,mEAAmE;AACnE,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,GAChB,OAAO,GAAG,IAAI,CAShB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Finite legacy TEL receipt collection and witness publication; no delivery acknowledgement is inferred. */
|
|
2
|
+
import type { Operation } from "effection";
|
|
3
|
+
import type { TelPublication } from "../../vdr/tel-publication.js";
|
|
4
|
+
import type { Habery } from "../identity/habbing.js";
|
|
5
|
+
import type { RuntimeClock } from "../runtime/runtime-clock.js";
|
|
6
|
+
import type { HttpClient } from "../transport/http-client.js";
|
|
7
|
+
import { type Receiptor } from "../witness/receipting.js";
|
|
8
|
+
/**
|
|
9
|
+
* Advance one captured set of protocol escrows. Receipt collection includes
|
|
10
|
+
* fanout; a crash before its commit repeats that ordinary finite operation.
|
|
11
|
+
* Dissemination replays accepted TEL evidence to the anchor's historical witness
|
|
12
|
+
* cohort and commits ctel only after every local transmission finished. Failure
|
|
13
|
+
* retains the corresponding escrow for explicit resume, without an outbox.
|
|
14
|
+
*/
|
|
15
|
+
export declare function publishPendingTel(hby: Habery, publication: TelPublication, receiptor: Receiptor, http: HttpClient, clock: RuntimeClock): Operation<void>;
|
|
16
|
+
//# sourceMappingURL=tel-publishing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tel-publishing.d.ts","sourceRoot":"","sources":["../../../src/app/credentials/tel-publishing.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1D;;;;;;GAMG;AACH,wBAAiB,iBAAiB,CAChC,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,cAAc,EAC3B,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,YAAY,GAClB,SAAS,CAAC,IAAI,CAAC,CAgBjB"}
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
* flow; durable corruption and unsupported `DI2I` still fail explicitly
|
|
11
11
|
*/
|
|
12
12
|
import { Diger, NumberPrimitive, Prefixer, SerderACDC } from "cesr-ts";
|
|
13
|
-
import type { AgentCue } from "
|
|
14
|
-
import { Deck } from "
|
|
15
|
-
import type { VcStateRecordShape } from "
|
|
16
|
-
import type { Reger } from "
|
|
17
|
-
import type { Habery } from "
|
|
18
|
-
import type { AcdcDispatchArgs } from "
|
|
13
|
+
import type { AgentCue } from "../../core/cues.js";
|
|
14
|
+
import { Deck } from "../../core/deck.js";
|
|
15
|
+
import type { VcStateRecordShape } from "../../core/records.js";
|
|
16
|
+
import type { Reger } from "../../db/reger.js";
|
|
17
|
+
import type { Habery } from "../identity/habbing.js";
|
|
18
|
+
import type { AcdcDispatchArgs } from "../protocol/parsering.js";
|
|
19
19
|
export type VerifierEscrowReason = "missingRegistry" | "missingSchema" | "missingChain";
|
|
20
20
|
export type VerifierRejectReason = "missingAnchor" | "invalidCredential" | "invalidSchema" | "invalidEdge" | "revokedChain" | "unsupportedChainOperator";
|
|
21
21
|
export type VerifierDecision = {
|
|
@@ -30,6 +30,8 @@ export type VerifierDecision = {
|
|
|
30
30
|
reason: VerifierRejectReason;
|
|
31
31
|
said: string;
|
|
32
32
|
detail?: string;
|
|
33
|
+
/** Original validation failure, retained for owner diagnostics without changing the decision. */
|
|
34
|
+
cause?: unknown;
|
|
33
35
|
};
|
|
34
36
|
export type VerifierCue = Extract<AgentCue, {
|
|
35
37
|
kin: "telquery" | "query" | "proof" | "saved";
|
|
@@ -45,7 +47,7 @@ export interface VerifierOptions {
|
|
|
45
47
|
missingIssuerTimeoutMs?: number;
|
|
46
48
|
}
|
|
47
49
|
/**
|
|
48
|
-
* Concrete credential verifier supplied
|
|
50
|
+
* Concrete credential verifier supplied to the shared `ProtocolProcessor`.
|
|
49
51
|
*
|
|
50
52
|
* The verifier owns only credential validation/indexing and its own VDR escrows.
|
|
51
53
|
* TEL processing remains delegated to `Tevery`, and webhook/application policy
|
|
@@ -109,6 +111,16 @@ export declare class Verifier {
|
|
|
109
111
|
}): void;
|
|
110
112
|
/** Verify the credential at the far end of an edge. */
|
|
111
113
|
verifyChain(nodeSaid: string, op: string | undefined, issuer: string): VcStateRecordShape | null;
|
|
114
|
+
/**
|
|
115
|
+
* Retry one dependency family and report terminal removals after they succeed.
|
|
116
|
+
*
|
|
117
|
+
* Acceptance and migration to another family are ordinary progress, not ejection.
|
|
118
|
+
* Storage failures propagate with the original evidence still owned by its escrow.
|
|
119
|
+
*
|
|
120
|
+
* @param db Pending credential identities and their original admission timestamps.
|
|
121
|
+
* @param expectedReason Dependency family whose membership this pass owns.
|
|
122
|
+
* @param timeoutMs Maximum pending age in milliseconds; equality remains eligible.
|
|
123
|
+
*/
|
|
112
124
|
private processEscrow;
|
|
113
125
|
private isCredentialStateStale;
|
|
114
126
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifying.d.ts","sourceRoot":"","sources":["../../../src/app/credentials/verifying.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAEL,KAAK,EAEL,eAAe,EACf,QAAQ,EAER,UAAU,EACX,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAGjE,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG,eAAe,GAAG,cAAc,CAAC;AACxF,MAAM,MAAM,oBAAoB,GAC5B,eAAe,GACf,mBAAmB,GACnB,eAAe,GACf,aAAa,GACb,cAAc,GACd,0BAA0B,CAAC;AAE/B,MAAM,MAAM,gBAAgB,GACxB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,E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K,CAAC;KACf,GAAG,IAAI;IAmBR,uDAAuD;IACvD,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI;IAkChG;;;;;;;;;OASG;IACH,OAAO,CAAC,aAAa;IA6CrB,OAAO,CAAC,sBAAsB;CAO/B"}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { type Operation } from "effection";
|
|
2
|
+
import { Deck } from "../../core/deck.js";
|
|
3
|
+
import type { Mailboxer } from "../../db/mailbox/mailboxing.js";
|
|
4
|
+
import type { Habery } from "../identity/habbing.js";
|
|
5
|
+
import type { ProtocolProcessor } from "../protocol/protocol-processing.js";
|
|
6
|
+
import type { RuntimeClock } from "../runtime/runtime-clock.js";
|
|
7
|
+
import type { HttpClient } from "../transport/http-client.js";
|
|
8
|
+
/** Prepared signed source; Poster copies its bytes before publishing an ordinary admission. */
|
|
9
|
+
export interface PosterMsg {
|
|
10
|
+
/**
|
|
11
|
+
* Local sender AID used to resolve the signing habitat on each attempt.
|
|
12
|
+
*/
|
|
13
|
+
readonly src: string;
|
|
14
|
+
/**
|
|
15
|
+
* Final recipient AID; this is not necessarily the intermediary endpoint.
|
|
16
|
+
*/
|
|
17
|
+
readonly dest: string;
|
|
18
|
+
/**
|
|
19
|
+
* Mailbox routing topic; required when using indirect delivery.
|
|
20
|
+
*/
|
|
21
|
+
readonly topic: string;
|
|
22
|
+
/**
|
|
23
|
+
* Original signed message copied at admission; caller mutation cannot change queued work.
|
|
24
|
+
*/
|
|
25
|
+
readonly msg: Uint8Array;
|
|
26
|
+
/**
|
|
27
|
+
* Request same-socket TCP reply processing; requires a protocol processor.
|
|
28
|
+
*/
|
|
29
|
+
readonly replies?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/** One finite stream whose endpoint selection is shared by every constituent message. */
|
|
32
|
+
export interface PosterStream extends Omit<PosterMsg, "msg"> {
|
|
33
|
+
/** Complete signed source messages, copied into one finite stream before publication. */
|
|
34
|
+
readonly msgs: readonly Uint8Array[];
|
|
35
|
+
}
|
|
36
|
+
/** Concrete queued operation identity, shared by execution and its optional completion waiter. */
|
|
37
|
+
export interface PosterEvent extends PosterMsg {
|
|
38
|
+
/** Ordinary traversal or first-present-role stream delivery, selected by the producer operation. */
|
|
39
|
+
readonly kin: "msg" | "stream";
|
|
40
|
+
}
|
|
41
|
+
/** Optional terminal observation of one concrete delivery attempt, not remote acceptance. */
|
|
42
|
+
export type PosterOutcome = {
|
|
43
|
+
/** Terminal local attempt result; neither variant proves remote protocol acceptance. */
|
|
44
|
+
kin: "sent";
|
|
45
|
+
/** Exact admitted event identity matched by wait(evt), including repeated same-SAID sends. */
|
|
46
|
+
evt: PosterEvent;
|
|
47
|
+
/** Successful network URLs or local-mailbox:<eid> publications, including partial success. */
|
|
48
|
+
deliveries: string[];
|
|
49
|
+
} | {
|
|
50
|
+
/** Terminal local attempt result; neither variant proves remote protocol acceptance. */
|
|
51
|
+
kin: "failed";
|
|
52
|
+
/** Exact admitted event identity matched by wait(evt), including repeated same-SAID sends. */
|
|
53
|
+
evt: PosterEvent;
|
|
54
|
+
/** Successful network URLs or local-mailbox:<eid> publications, including partial success. */
|
|
55
|
+
deliveries: string[];
|
|
56
|
+
/** Observed failure with original status/cause, including any aggregated target failures. */
|
|
57
|
+
error: unknown;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Deliver queued signed messages using KERIpy's ordinary Poster role traversal.
|
|
61
|
+
*
|
|
62
|
+
* Send to every controller and agent endpoint, then one mailbox (or provider-local
|
|
63
|
+
* storage). Only recipients without those roles use one witness. Transport
|
|
64
|
+
* completion and opt-in outcomes do not prove remote protocol acceptance. Finite
|
|
65
|
+
* stream admissions use the first present role through the same execution owner.
|
|
66
|
+
*/
|
|
67
|
+
export declare class Poster {
|
|
68
|
+
/** Borrowed habitat collection and backing accepted protocol state. */
|
|
69
|
+
readonly hby: Habery;
|
|
70
|
+
/** Borrowed mailbox store (mbx); null means this host provides no local mailbox. */
|
|
71
|
+
readonly mbx: Mailboxer | null;
|
|
72
|
+
/** Borrowed HTTP client selected explicitly by composition. */
|
|
73
|
+
readonly http: HttpClient;
|
|
74
|
+
/** Borrowed clock for this owner's actual network deadlines. */
|
|
75
|
+
readonly clock: RuntimeClock;
|
|
76
|
+
/** Runnable signed messages in admission order; the delivery worker is the sole consumer. */
|
|
77
|
+
readonly evts: Deck<PosterEvent>;
|
|
78
|
+
/** Opt-in terminal outcomes, matched by concrete admitted event identity. */
|
|
79
|
+
readonly cues: Deck<PosterOutcome>;
|
|
80
|
+
/** Events whose callers requested one terminal observation. */
|
|
81
|
+
private readonly notifications;
|
|
82
|
+
/** Enforce one active completion observer per event. */
|
|
83
|
+
private readonly waiters;
|
|
84
|
+
/** Prevent overlapping drains of the runnable queue. */
|
|
85
|
+
private processing;
|
|
86
|
+
/** Terminal admission state; closing a Poster cannot be reversed. */
|
|
87
|
+
private closed;
|
|
88
|
+
/** Cancels the current delivery pass before store teardown. */
|
|
89
|
+
private active?;
|
|
90
|
+
/** Resolves after active delivery and its owned cleanup have joined. */
|
|
91
|
+
private joined?;
|
|
92
|
+
/** Borrowed same-socket protocol receiver; null explicitly selects send-only capability. */
|
|
93
|
+
private readonly protocol;
|
|
94
|
+
/**
|
|
95
|
+
* Bind actual collaborators; Poster owns queue/I/O lifetimes and borrows their stores.
|
|
96
|
+
*
|
|
97
|
+
* @param hby Borrowed local habitat collection and accepted-state database.
|
|
98
|
+
* @param mbx Borrowed provider mailbox store, or null when local storage is unavailable.
|
|
99
|
+
* @param protocol Borrowed same-database processor for TCP replies; null permits send-only work.
|
|
100
|
+
* @param http Borrowed HTTP implementation selected by composition.
|
|
101
|
+
* @param clock Borrowed clock for transport deadlines; times are milliseconds.
|
|
102
|
+
* @throws RangeError if protocol state belongs to a different database.
|
|
103
|
+
*/
|
|
104
|
+
constructor(hby: Habery, mbx: Mailboxer | null, protocol: ProtocolProcessor | null, http: HttpClient, clock: RuntimeClock);
|
|
105
|
+
/**
|
|
106
|
+
* Admit signed source bytes; callers must observe an outcome before reporting transmission.
|
|
107
|
+
*
|
|
108
|
+
* @param evt Concrete source-message record; completion/failure lookup uses object identity, not message SAID.
|
|
109
|
+
* @param options Set notify to retain one terminal outcome for this admission; default false.
|
|
110
|
+
* @returns A fresh admitted record with copied msg bytes; admission is not transmission.
|
|
111
|
+
* @throws Closed owner or unsupported reply capability rejects before queue publication.
|
|
112
|
+
*/
|
|
113
|
+
send(evt: PosterMsg, { notify }?: {
|
|
114
|
+
notify?: boolean;
|
|
115
|
+
}): PosterEvent;
|
|
116
|
+
/**
|
|
117
|
+
* Admit a complete finite stream using KERIpy StreamPoster's first-present-role selection.
|
|
118
|
+
* All messages share one selected direct-endpoint set or one relay for the attempt.
|
|
119
|
+
*
|
|
120
|
+
* @param stream Signed source messages in production order; no iterator survives admission.
|
|
121
|
+
* @param options Set notify to request the same concrete-event completion contract as send.
|
|
122
|
+
* @returns Copied queued stream identity; admission does not establish delivery.
|
|
123
|
+
*/
|
|
124
|
+
sendStream({ msgs, ...evt }: PosterStream, { notify }?: {
|
|
125
|
+
notify?: boolean;
|
|
126
|
+
}): PosterEvent;
|
|
127
|
+
/**
|
|
128
|
+
* Copy one source and atomically publish its concrete operation.
|
|
129
|
+
* @param evt Resolved producer record; source bytes remain caller-owned until copied.
|
|
130
|
+
* @param kin Real ordinary or finite-stream operation, not a user routing preference.
|
|
131
|
+
* @param notify Whether this admission needs one terminal observation.
|
|
132
|
+
* @returns New identity owned by the runnable queue.
|
|
133
|
+
*/
|
|
134
|
+
private admit;
|
|
135
|
+
/**
|
|
136
|
+
* Construct all source records before atomically publishing a complete cue or reply pair.
|
|
137
|
+
*
|
|
138
|
+
* @param evts Finite iterable for one cue/pair; every record is checked and copied before atomic queue publication.
|
|
139
|
+
* @throws Any construction/capability failure leaves the runnable queue unchanged.
|
|
140
|
+
*/
|
|
141
|
+
sendAll(evts: Iterable<PosterMsg>): void;
|
|
142
|
+
/**
|
|
143
|
+
* Wait for one admission without owning its delivery.
|
|
144
|
+
* The delivery worker must run independently. Cancellation removes the observer and
|
|
145
|
+
* its notification; it does not withdraw queued work or abort the attempt.
|
|
146
|
+
*
|
|
147
|
+
* @param evt Exact record returned by send with notify enabled.
|
|
148
|
+
* @returns This admission's sent or failed outcome, consuming its notification.
|
|
149
|
+
* @throws Missing notification, duplicate waiter or closure before an outcome is available.
|
|
150
|
+
*/
|
|
151
|
+
wait(evt: PosterEvent): Operation<PosterOutcome>;
|
|
152
|
+
/**
|
|
153
|
+
* Consume only this event's outcome while preserving other observers' queue order.
|
|
154
|
+
*
|
|
155
|
+
* @param evt Concrete source-message record; completion/failure lookup uses object identity, not message SAID.
|
|
156
|
+
* @returns Matching outcome, or undefined; other outcome order is preserved.
|
|
157
|
+
*/
|
|
158
|
+
private takeOutcome;
|
|
159
|
+
/** Run queued delivery independently of query response intake and producer lifetimes. */
|
|
160
|
+
deliverDo(): Operation<void>;
|
|
161
|
+
/** Runnable and active work determine convergence; consumable observations do not. */
|
|
162
|
+
get hasPending(): boolean;
|
|
163
|
+
/** Reject new production before a closed output owner can consume its source. */
|
|
164
|
+
ensureOpen(): void;
|
|
165
|
+
/** Abort/join active I/O, report unconsumed failures, then release process-local work. */
|
|
166
|
+
close(): Operation<void>;
|
|
167
|
+
/** Deliver the current FIFO contents; recognized refusals publish failure and allow later work. */
|
|
168
|
+
process(): Operation<void>;
|
|
169
|
+
/**
|
|
170
|
+
* Publish an opted-in terminal outcome or report an unobserved failure once.
|
|
171
|
+
* This owner retains no recovery history. Cancellation and close return abandoned
|
|
172
|
+
* observations here after removing their notification, so failed work stays visible.
|
|
173
|
+
*
|
|
174
|
+
* @param outcome Completed attempt, including source identity, original cause and partial delivery.
|
|
175
|
+
*/
|
|
176
|
+
private publishOutcome;
|
|
177
|
+
/**
|
|
178
|
+
* Resolve and execute one event using sequential current endpoints.
|
|
179
|
+
* Observed HTTP refusal and TransportError permit remaining targets to run.
|
|
180
|
+
* Unexpected construction/parser/storage/cleanup errors propagate so process can
|
|
181
|
+
* publish or report the failed outcome before exposing the error.
|
|
182
|
+
*
|
|
183
|
+
* @param evt Concrete source-message record; completion/failure lookup uses object identity, not message SAID.
|
|
184
|
+
* @param deliveries Mutable accumulator of successfully delivered target URLs, retained even if a later target throws.
|
|
185
|
+
* @param signal Active Poster pass cancellation; forwarded into each messenger attempt.
|
|
186
|
+
* @returns Sent if every target completes; otherwise a failure with partial successes.
|
|
187
|
+
*/
|
|
188
|
+
private deliverEvent;
|
|
189
|
+
/** Execute one prepared target, adapting completed HTTP refusal to this owner's fanout outcome. */
|
|
190
|
+
private sendPreparedTarget;
|
|
191
|
+
/**
|
|
192
|
+
* Snapshot ordinary Poster's current role traversal without network execution.
|
|
193
|
+
*
|
|
194
|
+
* Controller and agent roles each retain all endpoints. An indirect role picks
|
|
195
|
+
* one random provider, unless an explicitly composed store owns an eligible local
|
|
196
|
+
* AID. Empty location maps retain role selection and become execution failures.
|
|
197
|
+
*
|
|
198
|
+
* @param hab Local signing habitat borrowing accepted role/location state.
|
|
199
|
+
* @param recipient Resolved final recipient AID.
|
|
200
|
+
* @param topic Recipient mailbox topic; indirect routes require a nonempty topic.
|
|
201
|
+
* @param kin Ordinary messages traverse all primary roles; streams retain the first present role.
|
|
202
|
+
* @returns Ordered role groups; no eligible role returns an empty array.
|
|
203
|
+
*/
|
|
204
|
+
private findBytesRoutes;
|
|
205
|
+
/**
|
|
206
|
+
* Prepare a target using the supplied wire and selected endpoint.
|
|
207
|
+
*
|
|
208
|
+
* @param hab Local habitat used to construct/sign this output; stores remain borrowed.
|
|
209
|
+
* @param route Selected direct or forwarded endpoint group.
|
|
210
|
+
* @param endpoint One selected endpoint AID and URL from the route.
|
|
211
|
+
* @param evt Original signed source and concrete ordinary/stream operation.
|
|
212
|
+
* @returns A prepared remote target, or stored after authorized local mailbox publication.
|
|
213
|
+
*/
|
|
214
|
+
private prepareBytesTarget;
|
|
215
|
+
/**
|
|
216
|
+
* Prepare complete signed wire and its introduction before opening transport.
|
|
217
|
+
*
|
|
218
|
+
* @param hab Local habitat used to construct/sign this output; stores remain borrowed.
|
|
219
|
+
* @param recipient Final recipient AID, distinct from the intermediary endpoint.
|
|
220
|
+
* @param topic Recipient mailbox topic used by the forwarding envelope.
|
|
221
|
+
* @param evt Original signed source and operation; outer envelopes may be rebuilt.
|
|
222
|
+
* @param endpoint Mailbox/witness endpoint selected for this attempt.
|
|
223
|
+
* @returns Stored for a local endpoint, or signed forwarding wire with its introduction.
|
|
224
|
+
*/
|
|
225
|
+
private prepareForwardedTarget;
|
|
226
|
+
}
|
|
227
|
+
//# sourceMappingURL=forwarding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forwarding.d.ts","sourceRoot":"","sources":["../../../src/app/delivery/forwarding.ts"],"names":[],"mappings":"AAWA,OAAO,EAAQ,KAAK,SAAS,EAAY,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAI1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,KAAK,EAAO,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAG1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAGhE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAM9D,+FAA+F;AAC/F,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC;IACzB;;OAEG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AAI,SAAS,CAAC,IAAI,CAAC;IAyC1B;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAUtB;;;;;;;;;;OAUG;IACH,OAAO,CAAE,YAAY;IAyDrB,mGAAmG;IACnG,OAAO,CAAE,kBAAkB;IAwC3B;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,eAAe;IA2BvB;;;;;;;;OAQG;IACH,OAAO,CAAE,kBAAkB;IAY3B;;;;;;;;;OASG;IACH,OAAO,CAAE,sBAAsB;CA2ChC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Hab } from "../identity/habbing.js";
|
|
2
|
+
/**
|
|
3
|
+
* Borrow a Hab/store for lazy introduction output, preserving target KEL, oldest
|
|
4
|
+
* delegator first, then endpoint/location replies. Capture begins on iteration.
|
|
5
|
+
* No source is opened when a witness/receipt already makes introduction unnecessary.
|
|
6
|
+
* V2 proof/key copies and the large-history transport caller remain separately qualified.
|
|
7
|
+
*
|
|
8
|
+
* @param hab Local signing habitat; its state/store lifetime remains with the caller.
|
|
9
|
+
* @param remote Remote endpoint AID whose receipt history determines whether introduction is needed.
|
|
10
|
+
* @returns Reopenable introduction iterable.
|
|
11
|
+
*/
|
|
12
|
+
export declare function introductionMessages(hab: Hab, remote: string): Iterable<Uint8Array>;
|
|
13
|
+
/**
|
|
14
|
+
* Collect the introduction required by the existing finite query/forwarding path.
|
|
15
|
+
*
|
|
16
|
+
* @param hab Local signing habitat; its state/store lifetime remains with the caller.
|
|
17
|
+
* @param remote Remote endpoint AID whose receipt history determines whether introduction is needed.
|
|
18
|
+
* @returns Collected introduction bytes, possibly empty.
|
|
19
|
+
*/
|
|
20
|
+
export declare function introduce(hab: Hab, remote: string): Uint8Array;
|
|
21
|
+
//# sourceMappingURL=introducing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"introducing.d.ts","sourceRoot":"","sources":["../../../src/app/delivery/introducing.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAElD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,GACb,QAAQ,CAAC,UAAU,CAAC,CAkBtB;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,GAAG,UAAU,CAE9D"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/** Own lazy HTTP replay readers until EOF, transport cancellation, or runtime shutdown. */
|
|
2
|
+
export declare class ReplyStreams {
|
|
3
|
+
/** Closing readers do not retain their replay source or its current event. */
|
|
4
|
+
private readonly readers;
|
|
5
|
+
/** Shutdown permanently closes this runtime's response creation. */
|
|
6
|
+
private closed;
|
|
7
|
+
/**
|
|
8
|
+
* Acquire one source iterator without advancing until HTTP requests bytes.
|
|
9
|
+
* Transfer the optional disposer through source closure, including acquisition failure.
|
|
10
|
+
*
|
|
11
|
+
* @param messages Synchronous wire-message iterable; its iterator remains owned by the response until EOF/cancel/close.
|
|
12
|
+
* @param dispose Cleanup callback retained through iterator closure; invoked once even if acquisition fails.
|
|
13
|
+
* @returns Request-owned Web stream.
|
|
14
|
+
* @throws Source or disposer failures propagate; independent cleanup failures are retained.
|
|
15
|
+
*/
|
|
16
|
+
open(messages: Iterable<Uint8Array>, dispose?: () => void): ReadableStream<Uint8Array>;
|
|
17
|
+
/**
|
|
18
|
+
* Prime one message; empty output closes ownership for a caller's 404 decision.
|
|
19
|
+
*
|
|
20
|
+
* @param messages Synchronous wire-message iterable; its iterator remains owned by the response until EOF/cancel/close.
|
|
21
|
+
* @param dispose Cleanup callback retained through iterator closure; invoked once even if acquisition fails.
|
|
22
|
+
* @returns Request-owned Web stream, or null after empty-source cleanup.
|
|
23
|
+
* @throws Source or disposer failures propagate; independent cleanup failures are retained.
|
|
24
|
+
*/
|
|
25
|
+
openNonEmpty(messages: Iterable<Uint8Array>, dispose?: () => void): ReadableStream<Uint8Array> | null;
|
|
26
|
+
/**
|
|
27
|
+
* Optional priming shares the same response owner/disposer; ordinary open always returns a stream.
|
|
28
|
+
*
|
|
29
|
+
* @param messages Synchronous wire-message iterable; its iterator remains owned by the response until EOF/cancel/close.
|
|
30
|
+
* @param dispose Cleanup callback retained through iterator closure; invoked once even if acquisition fails.
|
|
31
|
+
* @param requireContent Prime one nonempty message before publishing; empty sources close and return null.
|
|
32
|
+
* @returns Request-owned Web stream, or null after empty-source cleanup.
|
|
33
|
+
* @throws Source or disposer failures propagate; independent cleanup failures are retained.
|
|
34
|
+
*/
|
|
35
|
+
private openChecked;
|
|
36
|
+
/**
|
|
37
|
+
* Keep the optional disposer through iterator cleanup, including cancellation before the first pull.
|
|
38
|
+
*
|
|
39
|
+
* @param messages Synchronous wire-message iterable; its iterator remains owned by the response until EOF/cancel/close.
|
|
40
|
+
* @param release Cleanup callback retained through iterator closure; invoked once even if acquisition fails.
|
|
41
|
+
* @param requireContent Prime one nonempty message before publishing; empty sources close and return null.
|
|
42
|
+
* @returns Request-owned Web stream, or null after empty-source cleanup.
|
|
43
|
+
* @throws Source or disposer failures propagate; independent cleanup failures are retained.
|
|
44
|
+
*/
|
|
45
|
+
private openOwned;
|
|
46
|
+
/** Abort all response readers before their underlying runtime/database owners close. */
|
|
47
|
+
close(): void;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=reply-streams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reply-streams.d.ts","sourceRoot":"","sources":["../../../src/app/delivery/reply-streams.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,qBAAa,YAAY;IACvB,8EAA8E;IAC9E,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyC;IACjE,oEAAoE;IACpE,OAAO,CAAC,MAAM,CAAS;IACvB;;;;;;;;OAQG;IACH,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,IAAI,GAAG,cAAc,CAAC,UAAU,CAAC;IAItF;;;;;;;OAOG;IACH,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,IAAI,GAAG,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI;IAIrG;;;;;;;;OAQG;IACH,OAAO,CAAC,WAAW;IAuBnB;;;;;;;;OAQG;IACH,OAAO,CAAC,SAAS;IA0HjB,wFAAwF;IACxF,KAAK,IAAI,IAAI;CAad"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { AgentCue } from "../../core/cues.js";
|
|
2
|
+
import { Deck } from "../../core/deck.js";
|
|
3
|
+
import type { Hab, Habery } from "../identity/habbing.js";
|
|
4
|
+
import type { Poster } from "./forwarding.js";
|
|
5
|
+
/**
|
|
6
|
+
* Shared host-side responder for indirect and witness runtimes.
|
|
7
|
+
*
|
|
8
|
+
* KERIpy correspondence:
|
|
9
|
+
* - this is the local analogue of `Respondant` for reply/replay/receipt-style
|
|
10
|
+
* cues
|
|
11
|
+
* - `BaseHab.processCuesIter()` interprets the cue; `Poster` delivers the
|
|
12
|
+
* resulting bytes
|
|
13
|
+
* - mailbox-query `stream` cues stay with mailbox storage/query coordination
|
|
14
|
+
*
|
|
15
|
+
* Boundary rule:
|
|
16
|
+
* - this class constructs signed non-`stream` output and admits it to Poster
|
|
17
|
+
* - `MailboxDirector` owns provider publication and `stream` cue correlation,
|
|
18
|
+
* using its separately owned Mailboxer for actual storage
|
|
19
|
+
* - ordinary query replies follow this output path rather than returning from
|
|
20
|
+
* the HTTP query POST; direct TCP correlation claims its own reply cues first
|
|
21
|
+
*
|
|
22
|
+
* Source cue removal proves complete output admission, not delivery. Poster runs
|
|
23
|
+
* independently and owns routing, transport attempts and failure outcomes. Keep
|
|
24
|
+
* mailbox provider writes in that routing path, not in responder cue interpretation.
|
|
25
|
+
*/
|
|
26
|
+
export declare class Respondant {
|
|
27
|
+
/** Borrowed local signer and accepted-state collection. */
|
|
28
|
+
private readonly hby;
|
|
29
|
+
/** Delivery owner; source cues are consumed only after its admission succeeds. */
|
|
30
|
+
private readonly postman;
|
|
31
|
+
/** Bind borrowed identity and delivery owners without acquiring stores or network lifetimes. */
|
|
32
|
+
constructor(hby: Habery, postman: Poster);
|
|
33
|
+
/**
|
|
34
|
+
* Produce a whole cue before publishing or removing it; construction failure leaves the source visible.
|
|
35
|
+
*
|
|
36
|
+
* @param hab Local habitat used to construct/sign this output; stores remain borrowed.
|
|
37
|
+
* @param cues Source Deck; only its current head is interpreted, and removed after full publication.
|
|
38
|
+
* @param hint Optional local sender hint used when cue provenance does not resolve a habitat.
|
|
39
|
+
* @returns True after complete admission/removal; false if the head has no routable responder output.
|
|
40
|
+
* @throws Construction/admission failures leave the source cue present.
|
|
41
|
+
*/
|
|
42
|
+
enqueueCue(hab: Hab, cues: Deck<AgentCue>, hint?: Hab | null): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Admit already produced witness messages without signing them again.
|
|
45
|
+
*
|
|
46
|
+
* @param hab Local habitat used to construct/sign this output; stores remain borrowed.
|
|
47
|
+
* @param cue Routing/provenance cue for the already-signed output.
|
|
48
|
+
* @param msgs Complete signed messages; Poster copies them during atomic admission.
|
|
49
|
+
*/
|
|
50
|
+
enqueueMsgs(hab: Hab, cue: AgentCue, msgs: readonly Uint8Array[]): void;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=respondant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"respondant.d.ts","sourceRoot":"","sources":["../../../src/app/delivery/respondant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,UAAU;IACrB,2DAA2D;IAC3D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;IAC7B,kFAAkF;IAClF,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,gGAAgG;gBACpF,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAKxC;;;;;;;;OAQG;IACH,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,GAAG,OAAO;IAatE;;;;;;OAMG;IACH,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,UAAU,EAAE,GAAG,IAAI;CAMxE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Finite stored endpoint-reply reconstruction; current proof rows are borrowed only during this synchronous call. */
|
|
2
2
|
import { type Versionage } from "cesr-ts";
|
|
3
|
-
import type { Baser } from "
|
|
3
|
+
import type { Baser } from "../../db/basing.js";
|
|
4
4
|
/**
|
|
5
5
|
* Rebuild one persisted reply with all stored groups and exactly one optional cigar.
|
|
6
6
|
*
|