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.
- package/README.md +32 -2
- package/esm/keri/npm/src/_dnt.polyfills.js +36 -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 +47 -40
- package/esm/keri/npm/src/acdc/regbasing.js +22 -22
- package/esm/keri/npm/src/acdc/regengine.js +88 -119
- package/esm/keri/npm/src/acdc/regeventing.js +163 -44
- package/esm/keri/npm/src/acdc/registering.js +99 -23
- package/esm/keri/npm/src/acdc/registraring.js +82 -46
- 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 +103 -105
- package/esm/keri/npm/src/acdc/unblinding.js +1042 -0
- package/esm/keri/npm/src/app/{authenticating.js → bootstrap/authenticating.js} +40 -39
- package/esm/keri/npm/src/app/bootstrap/bootstrapping.js +109 -0
- package/esm/keri/npm/src/app/bootstrap/oobi-replies.js +113 -0
- package/esm/keri/npm/src/app/{oobiery.js → bootstrap/oobiery.js} +211 -267
- 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 -45
- 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/delivery/reply-streams.js +230 -0
- package/esm/keri/npm/src/app/delivery/respondant.js +159 -0
- package/esm/keri/npm/src/app/delivery/stored-replies.js +53 -0
- 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/{challenging.js → identity/challenging.js} +13 -8
- package/esm/keri/npm/src/app/{configing.js → identity/configing.js} +4 -4
- package/esm/keri/npm/src/app/{delegating.js → identity/delegating.js} +118 -40
- package/esm/keri/npm/src/app/{endpoint-roleing.js → identity/endpoint-roleing.js} +43 -39
- package/esm/keri/npm/src/app/{habbing.js → identity/habbing.js} +258 -226
- 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-building.js → ipex/ipex-building.js} +53 -55
- package/esm/keri/npm/src/app/ipex/ipex-credentialing.js +359 -0
- package/esm/keri/npm/src/app/{ipex-graph.js → ipex/ipex-graph.js} +70 -124
- package/esm/keri/npm/src/app/ipex/ipex-grouping.js +664 -0
- package/esm/keri/npm/src/app/ipex/ipex-node-authentication.js +185 -0
- package/esm/keri/npm/src/app/ipex/ipex-v2.js +692 -0
- package/esm/keri/npm/src/app/{ipexing.js → ipex/ipexing.js} +59 -10
- 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} +146 -139
- 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} +117 -70
- 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/multisig/grouping.js +932 -0
- 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} +23 -50
- package/esm/keri/npm/src/app/notifications/signaling.js +177 -0
- package/esm/keri/npm/src/app/{parsering.js → protocol/parsering.js} +123 -53
- 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/queries/query-replies.js +151 -0
- 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/runtime/abortable.js +103 -0
- 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} +43 -21
- 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} +28 -78
- 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} +41 -5
- 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 -9
- package/esm/keri/npm/src/{app/cli → cli}/common/existing.js +9 -29
- 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 +71 -53
- package/esm/keri/npm/src/{app/cli → cli/endpoints}/ends.js +34 -31
- package/esm/keri/npm/src/{app/cli → cli/endpoints}/loc.js +22 -20
- package/esm/keri/npm/src/cli/endpoints/oobi-clean.js +134 -0
- package/esm/keri/npm/src/{app/cli → cli/endpoints}/oobi.js +37 -36
- package/esm/keri/npm/src/{app/cli → cli/identity}/aid.js +8 -7
- package/esm/keri/npm/src/cli/identity/challenge.js +181 -0
- package/esm/keri/npm/src/{app/cli → cli/identity}/delegate.js +88 -73
- 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/cli/identity/rotate.js +172 -0
- package/esm/keri/npm/src/cli/index.js +38 -0
- package/esm/keri/npm/src/{app/cli → cli/messaging}/exchange.js +24 -24
- package/esm/keri/npm/src/cli/messaging/multisig.js +569 -0
- 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/cli/tools/annotate.js +25 -0
- package/esm/keri/npm/src/{app/cli → cli/tools}/benchmark.js +18 -9
- package/esm/keri/npm/src/{app/cli → cli/tools}/db-dump.js +14 -27
- 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/deck.js +5 -44
- package/esm/keri/npm/src/core/dispatch.js +10 -2
- package/esm/keri/npm/src/core/errors.js +5 -10
- 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} +47 -4
- package/esm/keri/npm/src/core/genus-framing.js +44 -0
- package/esm/keri/npm/src/core/{eventing.js → kel/eventing.js} +209 -390
- package/esm/keri/npm/src/core/kel/kever-decisions.js +70 -0
- package/esm/keri/npm/src/core/{kever.js → kel/kever.js} +84 -167
- 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} +5 -15
- package/esm/keri/npm/src/core/{kram-signatures.js → mailbox/kram-signatures.js} +1 -1
- package/esm/keri/npm/src/core/mailbox/kram-staging.js +149 -0
- package/esm/keri/npm/src/core/{kram-time.js → mailbox/kram-time.js} +9 -15
- package/esm/keri/npm/src/core/mailbox/kraming.js +78 -0
- package/esm/keri/npm/src/core/protocol-eventing.js +6 -1
- package/esm/keri/npm/src/core/protocol-serialization.js +9 -34
- package/esm/keri/npm/src/core/protocol-vdr-eventing.js +10 -11
- package/esm/keri/npm/src/core/records.js +0 -19
- package/esm/keri/npm/src/core/routing.js +187 -199
- package/esm/keri/npm/src/db/baser-defaults.js +11 -0
- package/esm/keri/npm/src/db/basing.js +224 -401
- package/esm/keri/npm/src/db/core/keys.js +2 -2
- package/esm/keri/npm/src/db/core/lmdber.js +123 -149
- package/esm/keri/npm/src/db/core/path-manager.js +2 -4
- package/esm/keri/npm/src/db/escrowing.js +82 -200
- 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 -6
- package/esm/keri/npm/src/db/keeping.js +123 -6
- package/esm/keri/npm/src/db/{kram-factors.js → mailbox/kram-factors.js} +17 -50
- package/esm/keri/npm/src/db/{mailboxing.js → mailbox/mailboxing.js} +5 -8
- package/esm/keri/npm/src/db/reger.js +48 -69
- package/esm/keri/npm/src/db/{kel-replay.js → replay/kel-replay.js} +12 -24
- package/esm/keri/npm/src/db/{tel-replay.js → replay/tel-replay.js} +38 -36
- package/esm/keri/npm/src/db/{witness-replay.js → replay/witness-replay.js} +8 -14
- package/esm/keri/npm/src/db/subing.js +2 -11
- package/esm/keri/npm/src/did/keri/resolving.js +4 -18
- package/esm/keri/npm/src/did/webs/artifacts.js +21 -24
- package/esm/keri/npm/src/did/webs/designated-aliases.js +18 -48
- package/esm/keri/npm/src/did/webs/documenting.js +8 -8
- package/esm/keri/npm/src/did/webs/resolving.js +73 -74
- 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 +105 -74
- 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 -109
- package/esm/keri/npm/src/vdr/eventing.js +633 -251
- 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/vdr/tsn-query.js +15 -10
- package/esm/keri/npm/src/{app/version.js → version.js} +2 -2
- package/package.json +7 -21
- package/types/_dnt.polyfills.d.ts +55 -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 +19 -15
- package/types/acdc/observing.d.ts.map +1 -1
- package/types/acdc/regbasing.d.ts +8 -9
- package/types/acdc/regbasing.d.ts.map +1 -1
- package/types/acdc/regengine.d.ts +14 -28
- 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 +27 -11
- package/types/acdc/registering.d.ts.map +1 -1
- package/types/acdc/registraring.d.ts +22 -22
- 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 +3 -2
- 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/bootstrap/oobi-replies.d.ts +8 -0
- package/types/app/bootstrap/oobi-replies.d.ts.map +1 -0
- package/types/app/{oobiery.d.ts → bootstrap/oobiery.d.ts} +98 -27
- 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} +20 -9
- 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/delivery/stored-replies.d.ts +11 -0
- 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} +9 -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} +59 -17
- package/types/app/identity/delegating.d.ts.map +1 -0
- package/types/app/identity/endpoint-roleing.d.ts +54 -0
- package/types/app/identity/endpoint-roleing.d.ts.map +1 -0
- package/types/app/{habbing.d.ts → identity/habbing.d.ts} +86 -54
- 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-building.d.ts → ipex/ipex-building.d.ts} +5 -5
- package/types/app/ipex/ipex-building.d.ts.map +1 -0
- package/types/app/{ipex-credentialing.d.ts → ipex/ipex-credentialing.d.ts} +42 -10
- 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/ipex-node-authentication.d.ts +32 -0
- 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 -8
- 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 -43
- 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/multisig/grouping.d.ts +317 -0
- 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} +5 -6
- package/types/app/notifications/notifying.d.ts.map +1 -0
- package/types/app/notifications/signaling.d.ts +68 -0
- package/types/app/notifications/signaling.d.ts.map +1 -0
- package/types/app/protocol/parsering.d.ts +128 -0
- 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} +9 -33
- 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} +10 -3
- 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 -9
- package/types/cli/common/context.d.ts.map +1 -0
- package/types/{app/cli → cli}/common/existing.d.ts +2 -8
- 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 +3 -1
- 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 +4 -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/{app/cli → cli/tools}/db-dump.d.ts +0 -2
- 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 +146 -57
- package/types/core/cues.d.ts.map +1 -1
- package/types/core/deck.d.ts +2 -12
- package/types/core/deck.d.ts.map +1 -1
- package/types/core/dispatch.d.ts +7 -3
- package/types/core/dispatch.d.ts.map +1 -1
- package/types/core/errors.d.ts +4 -4
- package/types/core/errors.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} +18 -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} +37 -48
- package/types/core/kel/eventing.d.ts.map +1 -0
- package/types/core/{kever-decisions.d.ts → kel/kever-decisions.d.ts} +36 -22
- package/types/core/kel/kever-decisions.d.ts.map +1 -0
- package/types/core/{kever.d.ts → kel/kever.d.ts} +13 -47
- 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} +3 -3
- package/types/core/{kram-pruning.d.ts.map → mailbox/kram-pruning.d.ts.map} +1 -1
- 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/mailbox/kram-staging.d.ts +30 -0
- package/types/core/mailbox/kram-staging.d.ts.map +1 -0
- package/types/core/{kram-time.d.ts → mailbox/kram-time.d.ts} +5 -11
- package/types/core/mailbox/kram-time.d.ts.map +1 -0
- package/types/core/mailbox/kraming.d.ts +42 -0
- 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 +5 -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/protocol-vdr-eventing.d.ts +7 -5
- package/types/core/protocol-vdr-eventing.d.ts.map +1 -1
- package/types/core/records.d.ts +15 -50
- package/types/core/records.d.ts.map +1 -1
- package/types/core/routing.d.ts +76 -46
- 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 +70 -75
- package/types/db/basing.d.ts.map +1 -1
- package/types/db/core/keys.d.ts.map +1 -1
- package/types/db/core/lmdber.d.ts +21 -23
- package/types/db/core/lmdber.d.ts.map +1 -1
- package/types/db/core/path-manager.d.ts.map +1 -1
- package/types/db/escrowing.d.ts +12 -49
- 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 -6
- 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/koming.d.ts +1 -1
- package/types/db/koming.d.ts.map +1 -1
- package/types/db/{kram-factors.d.ts → mailbox/kram-factors.d.ts} +3 -5
- package/types/db/mailbox/kram-factors.d.ts.map +1 -0
- package/types/db/{mailboxing.d.ts → mailbox/mailboxing.d.ts} +3 -4
- package/types/db/mailbox/mailboxing.d.ts.map +1 -0
- package/types/db/reger.d.ts +10 -12
- package/types/db/reger.d.ts.map +1 -1
- package/types/db/{kel-replay.d.ts → replay/kel-replay.d.ts} +2 -6
- package/types/db/replay/kel-replay.d.ts.map +1 -0
- package/types/db/{tel-replay.d.ts → replay/tel-replay.d.ts} +13 -8
- package/types/db/replay/tel-replay.d.ts.map +1 -0
- package/types/db/{witness-replay.d.ts → replay/witness-replay.d.ts} +2 -3
- package/types/db/replay/witness-replay.d.ts.map +1 -0
- package/types/db/subing.d.ts +1 -5
- package/types/db/subing.d.ts.map +1 -1
- package/types/did/keri/resolving.d.ts +5 -10
- 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 +6 -5
- package/types/did/webs/designated-aliases.d.ts.map +1 -1
- package/types/did/webs/documenting.d.ts +6 -5
- package/types/did/webs/documenting.d.ts.map +1 -1
- package/types/did/webs/resolving.d.ts +13 -3
- 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 +109 -76
- 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 -27
- package/types/vdr/credentialing.d.ts.map +1 -1
- package/types/vdr/eventing.d.ts +66 -23
- 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 +9 -4
- 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/abortable.js +0 -27
- package/esm/keri/npm/src/app/agent-runtime.js +0 -638
- package/esm/keri/npm/src/app/cesr-egress.js +0 -308
- package/esm/keri/npm/src/app/cesr-output.js +0 -12
- package/esm/keri/npm/src/app/cli/annotate.js +0 -24
- package/esm/keri/npm/src/app/cli/challenge.js +0 -168
- 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 -187
- package/esm/keri/npm/src/app/cli/index.js +0 -36
- package/esm/keri/npm/src/app/cli/init.js +0 -155
- package/esm/keri/npm/src/app/cli/interact.js +0 -72
- package/esm/keri/npm/src/app/cli/ipex.js +0 -453
- package/esm/keri/npm/src/app/cli/multisig.js +0 -474
- package/esm/keri/npm/src/app/cli/query.js +0 -143
- package/esm/keri/npm/src/app/cli/rotate.js +0 -171
- package/esm/keri/npm/src/app/cli/vc.js +0 -284
- package/esm/keri/npm/src/app/cli/verifier.js +0 -96
- package/esm/keri/npm/src/app/credential-workflows.js +0 -431
- package/esm/keri/npm/src/app/cue-delivery.js +0 -171
- package/esm/keri/npm/src/app/cue-preparation.js +0 -124
- package/esm/keri/npm/src/app/cue-route.js +0 -64
- package/esm/keri/npm/src/app/cue-runtime.js +0 -104
- package/esm/keri/npm/src/app/direct-reply-delivery.js +0 -282
- package/esm/keri/npm/src/app/essr.js +0 -235
- package/esm/keri/npm/src/app/exchanging.js +0 -1219
- package/esm/keri/npm/src/app/forwarding.js +0 -1346
- package/esm/keri/npm/src/app/group-members.js +0 -37
- package/esm/keri/npm/src/app/grouping.js +0 -534
- package/esm/keri/npm/src/app/httping.js +0 -130
- package/esm/keri/npm/src/app/ipex-credentialing.js +0 -245
- package/esm/keri/npm/src/app/ipex-grouping.js +0 -317
- package/esm/keri/npm/src/app/ipex-v2.js +0 -542
- package/esm/keri/npm/src/app/mailbox-sse.js +0 -257
- package/esm/keri/npm/src/app/multisig-workflows.js +0 -537
- package/esm/keri/npm/src/app/oobi-replies.js +0 -194
- package/esm/keri/npm/src/app/query-replies.js +0 -181
- package/esm/keri/npm/src/app/querying.js +0 -1040
- package/esm/keri/npm/src/app/reactor.js +0 -517
- package/esm/keri/npm/src/app/reply-streams.js +0 -304
- package/esm/keri/npm/src/app/respondant.js +0 -173
- package/esm/keri/npm/src/app/runtime-deliveries.js +0 -510
- package/esm/keri/npm/src/app/runtime-services.js +0 -25
- package/esm/keri/npm/src/app/signaling.js +0 -388
- package/esm/keri/npm/src/app/stored-replies.js +0 -85
- package/esm/keri/npm/src/app/tcp-egress.js +0 -334
- package/esm/keri/npm/src/app/verifier-agent.js +0 -461
- package/esm/keri/npm/src/app/witnessing.js +0 -956
- package/esm/keri/npm/src/core/cue-admission.js +0 -419
- package/esm/keri/npm/src/core/index.js +0 -23
- package/esm/keri/npm/src/core/kever-decisions.js +0 -63
- package/esm/keri/npm/src/core/kram-handoff.js +0 -148
- package/esm/keri/npm/src/core/kram-staging.js +0 -211
- package/esm/keri/npm/src/core/kraming.js +0 -99
- package/esm/keri/npm/src/db/exchange-nests.js +0 -175
- package/esm/keri/npm/src/db/exchange-records.js +0 -7
- package/esm/keri/npm/src/db/kram-snapshots.js +0 -216
- package/esm/keri/npm/src/db/mailbox-inbox.js +0 -206
- package/esm/keri/npm/src/db/outboxing.js +0 -371
- package/esm/keri/npm/src/db/payload-archive.js +0 -402
- package/esm/keri/npm/src/db/payload-store.js +0 -416
- 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 -218
- package/esm/keri/npm/src/vdr/registry-tsn.js +0 -218
- package/types/app/abortable.d.ts +0 -11
- package/types/app/abortable.d.ts.map +0 -1
- package/types/app/agent-runtime.d.ts +0 -284
- 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 -48
- package/types/app/cesr-egress.d.ts.map +0 -1
- package/types/app/cesr-http.d.ts.map +0 -1
- package/types/app/cesr-output.d.ts +0 -5
- package/types/app/cesr-output.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 +0 -26
- 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 -118
- package/types/app/credential-workflows.d.ts.map +0 -1
- package/types/app/cue-delivery.d.ts +0 -30
- package/types/app/cue-delivery.d.ts.map +0 -1
- package/types/app/cue-preparation.d.ts +0 -25
- package/types/app/cue-preparation.d.ts.map +0 -1
- package/types/app/cue-route.d.ts +0 -19
- package/types/app/cue-route.d.ts.map +0 -1
- package/types/app/cue-runtime.d.ts +0 -46
- package/types/app/cue-runtime.d.ts.map +0 -1
- package/types/app/delegating.d.ts.map +0 -1
- package/types/app/direct-reply-delivery.d.ts +0 -38
- package/types/app/direct-reply-delivery.d.ts.map +0 -1
- package/types/app/endpoint-roleing.d.ts +0 -41
- package/types/app/endpoint-roleing.d.ts.map +0 -1
- package/types/app/essr.d.ts +0 -72
- package/types/app/essr.d.ts.map +0 -1
- package/types/app/exchanging.d.ts +0 -245
- package/types/app/exchanging.d.ts.map +0 -1
- package/types/app/forwarding.d.ts +0 -411
- 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 +0 -150
- 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 -42
- package/types/app/httping.d.ts.map +0 -1
- package/types/app/ipex-building.d.ts.map +0 -1
- package/types/app/ipex-credentialing.d.ts.map +0 -1
- package/types/app/ipex-graph.d.ts +0 -30
- package/types/app/ipex-graph.d.ts.map +0 -1
- package/types/app/ipex-grouping.d.ts +0 -51
- package/types/app/ipex-grouping.d.ts.map +0 -1
- package/types/app/ipex-v2.d.ts +0 -51
- 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 -159
- package/types/app/mailbox-director.d.ts.map +0 -1
- package/types/app/mailbox-sse.d.ts +0 -38
- 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 -59
- 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 +0 -18
- 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 +0 -106
- 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 -45
- package/types/app/query-replies.d.ts.map +0 -1
- package/types/app/querying.d.ts +0 -294
- package/types/app/querying.d.ts.map +0 -1
- package/types/app/reactor.d.ts +0 -171
- package/types/app/reactor.d.ts.map +0 -1
- package/types/app/reply-streams.d.ts +0 -51
- package/types/app/reply-streams.d.ts.map +0 -1
- package/types/app/respondant.d.ts +0 -48
- package/types/app/respondant.d.ts.map +0 -1
- package/types/app/runtime-deliveries.d.ts +0 -67
- package/types/app/runtime-deliveries.d.ts.map +0 -1
- package/types/app/runtime-services.d.ts +0 -29
- 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 +0 -96
- 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 +0 -18
- package/types/app/stored-replies.d.ts.map +0 -1
- package/types/app/tcp-egress.d.ts +0 -87
- package/types/app/tcp-egress.d.ts.map +0 -1
- package/types/app/verifier-agent.d.ts +0 -91
- 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 -227
- package/types/app/witnessing.d.ts.map +0 -1
- package/types/core/cue-admission.d.ts +0 -74
- package/types/core/cue-admission.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-handoff.d.ts +0 -45
- package/types/core/kram-handoff.d.ts.map +0 -1
- package/types/core/kram-policy.d.ts.map +0 -1
- package/types/core/kram-signatures.d.ts.map +0 -1
- package/types/core/kram-staging.d.ts +0 -36
- 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 +0 -46
- 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 -39
- package/types/db/exchange-nests.d.ts.map +0 -1
- package/types/db/exchange-records.d.ts +0 -35
- 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/kram-snapshots.d.ts +0 -23
- package/types/db/kram-snapshots.d.ts.map +0 -1
- package/types/db/mailbox-inbox.d.ts +0 -72
- package/types/db/mailbox-inbox.d.ts.map +0 -1
- package/types/db/mailboxing.d.ts.map +0 -1
- package/types/db/outboxing.d.ts +0 -182
- package/types/db/outboxing.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 -18
- package/types/vdr/credential-tsn.d.ts.map +0 -1
- package/types/vdr/registry-tsn.d.ts +0 -23
- 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/{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/{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}/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}/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,70 @@
|
|
|
1
|
+
import { consoleLogger } from "../logger.js";
|
|
2
|
+
/** Builder for one successfully applied escrow row. */
|
|
3
|
+
export function acceptEscrow() {
|
|
4
|
+
return { kind: "accept" };
|
|
5
|
+
}
|
|
6
|
+
/** Builder for one recoverable miss that should remain escrowed. */
|
|
7
|
+
export function keepEscrow(reason, message) {
|
|
8
|
+
return { kind: "keep", reason, message };
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Describe a terminal outcome without removing its escrow row.
|
|
12
|
+
*
|
|
13
|
+
* @param reason Existing protocol or stored-artifact reason for removal.
|
|
14
|
+
* @param message Specific validation detail, when available.
|
|
15
|
+
* @param cause Original caught validation failure; omitted for ordinary decisions.
|
|
16
|
+
* @returns The decision for the owner to apply and report after removal.
|
|
17
|
+
*/
|
|
18
|
+
export function dropEscrow(reason, message, cause) {
|
|
19
|
+
return { kind: "drop", reason, message, ...(cause !== undefined ? { cause } : {}) };
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Report a terminal escrow removal after its owning write has succeeded.
|
|
23
|
+
*
|
|
24
|
+
* Accepted work and recoverable misses are silent. An original validation error
|
|
25
|
+
* remains available to the logger with its stack and cause.
|
|
26
|
+
*
|
|
27
|
+
* @param scope Owner, escrow family and identifying coordinates of the removed row.
|
|
28
|
+
* @param decision Replay outcome whose removal has already completed.
|
|
29
|
+
* @param logger Existing diagnostic sink; defaults to the process console logger.
|
|
30
|
+
*/
|
|
31
|
+
export function logEscrowDecision(scope, decision, logger = consoleLogger) {
|
|
32
|
+
if (decision.kind !== "drop") {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const detail = `${scope}: escrow removed (${decision.reason})${decision.message ? `: ${decision.message}` : ""}`;
|
|
36
|
+
if (decision.cause !== undefined)
|
|
37
|
+
logger.warn(detail, decision.cause);
|
|
38
|
+
else
|
|
39
|
+
logger.warn(detail);
|
|
40
|
+
}
|
|
41
|
+
/** Builder for live receipt material that was successfully applied. */
|
|
42
|
+
export function acceptReceipt() {
|
|
43
|
+
return { kind: "accept" };
|
|
44
|
+
}
|
|
45
|
+
/** Builder for one live receipt branch that should be ignored. */
|
|
46
|
+
export function ignoreReceipt() {
|
|
47
|
+
return { kind: "ignore" };
|
|
48
|
+
}
|
|
49
|
+
/** Builder for one live receipt branch that must be escrowed. */
|
|
50
|
+
export function escrowReceipt(reason) {
|
|
51
|
+
return { kind: "escrow", reason };
|
|
52
|
+
}
|
|
53
|
+
/** Builder for one terminal live receipt outcome that should be dropped. */
|
|
54
|
+
export function dropReceipt(reason) {
|
|
55
|
+
return { kind: "drop", reason };
|
|
56
|
+
}
|
|
57
|
+
/** Builder for one successfully handled live query. */
|
|
58
|
+
export function acceptQuery(cues) {
|
|
59
|
+
return cues && cues.length > 0
|
|
60
|
+
? { kind: "accept", cues }
|
|
61
|
+
: { kind: "accept" };
|
|
62
|
+
}
|
|
63
|
+
/** Builder for one live query that should be escrowed. */
|
|
64
|
+
export function escrowQuery(reason) {
|
|
65
|
+
return { kind: "escrow", reason };
|
|
66
|
+
}
|
|
67
|
+
/** Builder for one live query that should be dropped. */
|
|
68
|
+
export function dropQuery(reason) {
|
|
69
|
+
return { kind: "drop", reason };
|
|
70
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Dater, Diger, Ilks, NumberPrimitive, Prefixer, SealSource, Siger, Tholder, Verfer, } from "cesr-ts";
|
|
2
|
-
import { dgKey } from "
|
|
3
|
-
import { encodeDateTimeToDater, makeNowIso8601 } from "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { KeyStateRecord } from "./records.js";
|
|
2
|
+
import { dgKey } from "../../db/core/keys.js";
|
|
3
|
+
import { encodeDateTimeToDater, makeNowIso8601 } from "../../time/mod.js";
|
|
4
|
+
import { ValidationError } from "../errors.js";
|
|
5
|
+
import { KeyStateRecord } from "../records.js";
|
|
7
6
|
import { deriveRotatedWitnessSet } from "./witnesses.js";
|
|
8
7
|
/**
|
|
9
8
|
* Convert one integer into the Huge-number CESR family used for durable replay
|
|
@@ -76,6 +75,8 @@ const THOLDER_NUMERIC_CAPACITIES = [
|
|
|
76
75
|
* instead of using exceptions as regular control flow
|
|
77
76
|
* - exceptions remain for invariant failures, corrupt durable state, and misuse
|
|
78
77
|
* of accepted-state-only helpers
|
|
78
|
+
* - decisions describe follow-up cues; this state machine neither owns a queue
|
|
79
|
+
* nor admits, publishes, or retires runtime work
|
|
79
80
|
*/
|
|
80
81
|
export class Kever {
|
|
81
82
|
/**
|
|
@@ -85,19 +86,13 @@ export class Kever {
|
|
|
85
86
|
* and accepted-transition materialization do not have to fight over one
|
|
86
87
|
* constructor policy.
|
|
87
88
|
*/
|
|
88
|
-
constructor(db
|
|
89
|
+
constructor(db) {
|
|
89
90
|
Object.defineProperty(this, "db", {
|
|
90
91
|
enumerable: true,
|
|
91
92
|
configurable: true,
|
|
92
93
|
writable: true,
|
|
93
94
|
value: void 0
|
|
94
95
|
});
|
|
95
|
-
Object.defineProperty(this, "cues", {
|
|
96
|
-
enumerable: true,
|
|
97
|
-
configurable: true,
|
|
98
|
-
writable: true,
|
|
99
|
-
value: void 0
|
|
100
|
-
});
|
|
101
96
|
Object.defineProperty(this, "version", {
|
|
102
97
|
enumerable: true,
|
|
103
98
|
configurable: true,
|
|
@@ -219,22 +214,21 @@ export class Kever {
|
|
|
219
214
|
value: null
|
|
220
215
|
});
|
|
221
216
|
this.db = db;
|
|
222
|
-
this.cues = cues ?? new Deck();
|
|
223
217
|
}
|
|
224
218
|
/** Rebuild one live `Kever` from durable key-state content. */
|
|
225
219
|
static fromState(init) {
|
|
226
|
-
const kever = new Kever(init.db
|
|
220
|
+
const kever = new Kever(init.db);
|
|
227
221
|
kever.reload(init.state);
|
|
228
222
|
return kever;
|
|
229
223
|
}
|
|
230
224
|
/**
|
|
231
225
|
* Materialize one live `Kever` from an already accepted transition.
|
|
232
226
|
*
|
|
233
|
-
* This constructor bypasses durable-event reload because
|
|
227
|
+
* This constructor bypasses durable-event reload because Kevery
|
|
234
228
|
* may need a working `Kever` instance before the event state has been persisted.
|
|
235
229
|
*/
|
|
236
|
-
static fromTransition(transition, { db
|
|
237
|
-
const kever = new Kever(db
|
|
230
|
+
static fromTransition(transition, { db }) {
|
|
231
|
+
const kever = new Kever(db);
|
|
238
232
|
kever.loadState(transition.state, transition.log.serder);
|
|
239
233
|
return kever;
|
|
240
234
|
}
|
|
@@ -399,11 +393,10 @@ export class Kever {
|
|
|
399
393
|
state: provisionalState,
|
|
400
394
|
log: eventState,
|
|
401
395
|
};
|
|
402
|
-
const runtime = { db: init.db, cues: init.cues };
|
|
403
396
|
// Attachment validation needs a live kever-shaped view of the provisional
|
|
404
397
|
// state because local/remote witness and delegation rules are defined in
|
|
405
398
|
// terms of accepted-state helpers, not raw inception fields.
|
|
406
|
-
const scratch = Kever.fromTransition(icpTransition,
|
|
399
|
+
const scratch = Kever.fromTransition(icpTransition, { db: init.db });
|
|
407
400
|
// This is the TypeScript equivalent of KERIpy's controller-signature,
|
|
408
401
|
// witness-receipt, and delegation-validation pass, expressed as a typed
|
|
409
402
|
// attachment decision.
|
|
@@ -448,6 +441,7 @@ export class Kever {
|
|
|
448
441
|
},
|
|
449
442
|
},
|
|
450
443
|
cues: attachments.attachments.cues,
|
|
444
|
+
...(attachments.sourceSealRepairs ? { sourceSealRepairs: attachments.sourceSealRepairs } : {}),
|
|
451
445
|
};
|
|
452
446
|
}
|
|
453
447
|
/** Evaluate one non-inceptive event against the current accepted state. */
|
|
@@ -483,7 +477,9 @@ export class Kever {
|
|
|
483
477
|
* attachment decision.
|
|
484
478
|
*/
|
|
485
479
|
static validateAttachments(input) {
|
|
486
|
-
|
|
480
|
+
const repairs = [];
|
|
481
|
+
const decision = input.kever.validateAttachmentsInternal(input, repairs);
|
|
482
|
+
return repairs.length ? { ...decision, sourceSealRepairs: repairs } : decision;
|
|
487
483
|
}
|
|
488
484
|
/**
|
|
489
485
|
* Reload all live `Kever` state from one persisted `KeyStateRecord`.
|
|
@@ -533,84 +529,6 @@ export class Kever {
|
|
|
533
529
|
di: this.delpre ?? "",
|
|
534
530
|
});
|
|
535
531
|
}
|
|
536
|
-
/** Fix log metadata and clone cues before any accepted-event writes. */
|
|
537
|
-
prepareLogEvent(args) {
|
|
538
|
-
const pre = args.serder.pre;
|
|
539
|
-
if (!pre || !args.serder.said || args.serder.sn === null) {
|
|
540
|
-
throw new ValidationError("logEvent requires pre, said, and sn.");
|
|
541
|
-
}
|
|
542
|
-
const fn = args.first ? this.db.nextFelOrdinal(pre) : null;
|
|
543
|
-
const dater = args.frc?.dt ?? new Dater({ qb64: encodeDateTimeToDater(makeNowIso8601()) });
|
|
544
|
-
const cues = [];
|
|
545
|
-
if (fn !== null && args.frc && fn !== Number(args.frc.f.num)) {
|
|
546
|
-
cues.push({ kin: "noticeBadCloneFN", serder: args.serder, fn, firner: args.frc.f, dater: args.frc.dt });
|
|
547
|
-
}
|
|
548
|
-
return { fn, dater, cues };
|
|
549
|
-
}
|
|
550
|
-
/**
|
|
551
|
-
* Idempotently log one verified accepted event into the durable KEL surface.
|
|
552
|
-
*
|
|
553
|
-
* This is the shared logging seam used by fresh acceptance, late signatures,
|
|
554
|
-
* and future replay/recovery flows.
|
|
555
|
-
*
|
|
556
|
-
* Logging rules are intentionally split:
|
|
557
|
-
* - accepted-event material (`dtss.`, `sigs.`, `wigs.`, `wits.`, `evts.`) is
|
|
558
|
-
* always safe to write idempotently
|
|
559
|
-
* - delegator source seals are only persisted for accepted delegated
|
|
560
|
-
* non-`ixn` events so provisional or malicious source-seal attachments do
|
|
561
|
-
* not become accepted state
|
|
562
|
-
* - first-seen effects (`fels.`/`fons.`) use prepared metadata; Kevery
|
|
563
|
-
* admits and publishes replay-fn anomaly cues outside this write seam
|
|
564
|
-
*/
|
|
565
|
-
logEvent(args, prepared) {
|
|
566
|
-
const local = args.local ?? false;
|
|
567
|
-
const pre = args.serder.pre;
|
|
568
|
-
const said = args.serder.said;
|
|
569
|
-
const sn = args.serder.sn;
|
|
570
|
-
if (!pre || !said || sn === null) {
|
|
571
|
-
throw new ValidationError("logEvent requires pre, said, and sn.");
|
|
572
|
-
}
|
|
573
|
-
const first = args.first ?? false;
|
|
574
|
-
const { fn, dater: nowDater } = prepared;
|
|
575
|
-
if (fn !== (first ? this.db.nextFelOrdinal(pre) : null)) {
|
|
576
|
-
throw new Error("Prepared first-seen ordinal changed before logging");
|
|
577
|
-
}
|
|
578
|
-
const dgkey = dgKey(pre, said);
|
|
579
|
-
this.db.dtss.put(dgkey, nowDater);
|
|
580
|
-
if (args.sigers && args.sigers.length > 0) {
|
|
581
|
-
this.db.sigs.put(dgkey, [...args.sigers]);
|
|
582
|
-
}
|
|
583
|
-
if (args.wigers && args.wigers.length > 0) {
|
|
584
|
-
this.db.wigs.put(dgkey, [...args.wigers]);
|
|
585
|
-
}
|
|
586
|
-
if (args.wits && args.wits.length > 0) {
|
|
587
|
-
this.db.wits.put(dgkey, args.wits.map((wit) => new Prefixer({ qb64: wit })));
|
|
588
|
-
}
|
|
589
|
-
this.db.evts.put(dgkey, args.serder);
|
|
590
|
-
if (args.sourceSeal && this.delegated && args.serder.ilk !== Ilks.ixn) {
|
|
591
|
-
this.db.aess.pin(dgkey, [
|
|
592
|
-
normalizeOrdinal(sourceSealOrdinal(args.sourceSeal)),
|
|
593
|
-
sourceSealDigest(args.sourceSeal),
|
|
594
|
-
]);
|
|
595
|
-
}
|
|
596
|
-
const existingEsr = this.db.esrs.get(dgkey);
|
|
597
|
-
if (existingEsr) {
|
|
598
|
-
if (local && !existingEsr.local) {
|
|
599
|
-
existingEsr.local = true;
|
|
600
|
-
this.db.esrs.pin(dgkey, existingEsr);
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
else {
|
|
604
|
-
this.db.esrs.put(dgkey, { local });
|
|
605
|
-
}
|
|
606
|
-
if (first) {
|
|
607
|
-
if (this.db.appendFel(pre, said) !== fn)
|
|
608
|
-
throw new Error("First-seen append disagrees with preparation");
|
|
609
|
-
this.db.dtss.pin(dgkey, nowDater);
|
|
610
|
-
this.db.fons.pin(dgkey, encodeHugeOrdinal(fn));
|
|
611
|
-
}
|
|
612
|
-
this.db.kels.add(pre, sn, said);
|
|
613
|
-
}
|
|
614
532
|
/**
|
|
615
533
|
* Return the exposed prior-next digest indices satisfied by `sigers`.
|
|
616
534
|
*
|
|
@@ -675,19 +593,19 @@ export class Kever {
|
|
|
675
593
|
*
|
|
676
594
|
* This is the TypeScript equivalent of KERIpy's
|
|
677
595
|
* `fetchDelegatingEvent(... original=...)`. When an accepted delegated event
|
|
678
|
-
* is rediscovered via the KEL walk,
|
|
679
|
-
*
|
|
680
|
-
*
|
|
596
|
+
* is rediscovered via the KEL walk, return its `.aess` repair in the decision.
|
|
597
|
+
* Kevery persists repairs after queue admission under the processing writer;
|
|
598
|
+
* later lookups within this validation see the pending repair immediately.
|
|
681
599
|
*/
|
|
682
|
-
fetchDelegatingEvent(delpre, serder, { sourceSeal, original = false, eager = false,
|
|
600
|
+
fetchDelegatingEvent(delpre, serder, { sourceSeal, original = false, eager = false, repairs, }) {
|
|
683
601
|
if (original) {
|
|
684
|
-
const stored = this.acceptedSourceSealForEvent(serder);
|
|
602
|
+
const stored = this.acceptedSourceSealForEvent(serder, repairs);
|
|
685
603
|
if (stored) {
|
|
686
604
|
const exact = this.lookupAcceptedDelegatingEvent(delpre, stored, serder);
|
|
687
605
|
if (exact) {
|
|
688
606
|
return exact;
|
|
689
607
|
}
|
|
690
|
-
this.dropAcceptedSourceSeal(serder);
|
|
608
|
+
this.dropAcceptedSourceSeal(serder, repairs);
|
|
691
609
|
}
|
|
692
610
|
if (!eager) {
|
|
693
611
|
return null;
|
|
@@ -696,7 +614,7 @@ export class Kever {
|
|
|
696
614
|
original: true,
|
|
697
615
|
});
|
|
698
616
|
if (found) {
|
|
699
|
-
this.repairAcceptedSourceSeal(serder, found);
|
|
617
|
+
this.repairAcceptedSourceSeal(serder, found, repairs);
|
|
700
618
|
}
|
|
701
619
|
return found;
|
|
702
620
|
}
|
|
@@ -706,11 +624,11 @@ export class Kever {
|
|
|
706
624
|
return hinted;
|
|
707
625
|
}
|
|
708
626
|
}
|
|
709
|
-
const stored = this.acceptedSourceSealForEvent(serder);
|
|
627
|
+
const stored = this.acceptedSourceSealForEvent(serder, repairs);
|
|
710
628
|
if (stored) {
|
|
711
629
|
const authoritative = this.lookupAuthoritativeDelegatingEvent(delpre, stored, serder);
|
|
712
630
|
if (authoritative) {
|
|
713
|
-
this.repairAcceptedSourceSeal(serder, authoritative);
|
|
631
|
+
this.repairAcceptedSourceSeal(serder, authoritative, repairs);
|
|
714
632
|
return authoritative;
|
|
715
633
|
}
|
|
716
634
|
}
|
|
@@ -721,7 +639,7 @@ export class Kever {
|
|
|
721
639
|
original: false,
|
|
722
640
|
});
|
|
723
641
|
if (found) {
|
|
724
|
-
this.repairAcceptedSourceSeal(serder, found);
|
|
642
|
+
this.repairAcceptedSourceSeal(serder, found, repairs);
|
|
725
643
|
}
|
|
726
644
|
return found;
|
|
727
645
|
}
|
|
@@ -828,7 +746,8 @@ export class Kever {
|
|
|
828
746
|
if (!derived) {
|
|
829
747
|
return Kever.reject("invalidWitnessSet", `Rotation ${serder.said ?? "<unknown>"} carries invalid witness cuts/adds.`);
|
|
830
748
|
}
|
|
831
|
-
const attachments =
|
|
749
|
+
const attachments = Kever.validateAttachments({
|
|
750
|
+
kever: this,
|
|
832
751
|
serder,
|
|
833
752
|
sigers: init.sigers,
|
|
834
753
|
wigers: init.wigers ?? [],
|
|
@@ -894,6 +813,7 @@ export class Kever {
|
|
|
894
813
|
},
|
|
895
814
|
},
|
|
896
815
|
cues: attachments.attachments.cues,
|
|
816
|
+
...(attachments.sourceSealRepairs ? { sourceSealRepairs: attachments.sourceSealRepairs } : {}),
|
|
897
817
|
};
|
|
898
818
|
}
|
|
899
819
|
/**
|
|
@@ -918,7 +838,8 @@ export class Kever {
|
|
|
918
838
|
if (serder.prior !== this.said) {
|
|
919
839
|
return Kever.reject("invalidPriorDigest", `Interaction prior ${String(serder.prior)} does not match current SAID ${this.said}.`);
|
|
920
840
|
}
|
|
921
|
-
const attachments =
|
|
841
|
+
const attachments = Kever.validateAttachments({
|
|
842
|
+
kever: this,
|
|
922
843
|
serder,
|
|
923
844
|
sigers: init.sigers,
|
|
924
845
|
wigers: init.wigers ?? [],
|
|
@@ -980,6 +901,7 @@ export class Kever {
|
|
|
980
901
|
},
|
|
981
902
|
},
|
|
982
903
|
cues: attachments.attachments.cues,
|
|
904
|
+
...(attachments.sourceSealRepairs ? { sourceSealRepairs: attachments.sourceSealRepairs } : {}),
|
|
983
905
|
};
|
|
984
906
|
}
|
|
985
907
|
/**
|
|
@@ -999,7 +921,7 @@ export class Kever {
|
|
|
999
921
|
* `escrow`, or `reject` instead of raising the KERIpy family of normal
|
|
1000
922
|
* control-flow exceptions.
|
|
1001
923
|
*/
|
|
1002
|
-
validateAttachmentsInternal(input) {
|
|
924
|
+
validateAttachmentsInternal(input, repairs) {
|
|
1003
925
|
const remoteMemberedCues = [];
|
|
1004
926
|
const verfers = [...input.verfers];
|
|
1005
927
|
const sigers = [...input.sigers];
|
|
@@ -1087,11 +1009,11 @@ export class Kever {
|
|
|
1087
1009
|
...remoteMemberedCues,
|
|
1088
1010
|
{
|
|
1089
1011
|
kin: "query",
|
|
1012
|
+
route: "logs",
|
|
1090
1013
|
q: {
|
|
1091
|
-
|
|
1092
|
-
sn: input.serder.snh ?? undefined,
|
|
1014
|
+
s: input.serder.snh ?? undefined,
|
|
1093
1015
|
},
|
|
1094
|
-
pre
|
|
1016
|
+
pre,
|
|
1095
1017
|
},
|
|
1096
1018
|
]);
|
|
1097
1019
|
}
|
|
@@ -1103,7 +1025,7 @@ export class Kever {
|
|
|
1103
1025
|
...input,
|
|
1104
1026
|
delpre,
|
|
1105
1027
|
sourceSeal: input.sourceSeal ?? null,
|
|
1106
|
-
});
|
|
1028
|
+
}, repairs);
|
|
1107
1029
|
if (delegation.kind !== "verified") {
|
|
1108
1030
|
if (remoteMemberedCues.length > 0 && delegation.kind === "escrow") {
|
|
1109
1031
|
delegation.cues = [...(delegation.cues ?? []), ...remoteMemberedCues];
|
|
@@ -1146,7 +1068,7 @@ export class Kever {
|
|
|
1146
1068
|
* `ixn` at the same sequence number, and otherwise the comparison climbs
|
|
1147
1069
|
* recursively through the delegator's own delegation chain
|
|
1148
1070
|
*/
|
|
1149
|
-
validateDelegation(input) {
|
|
1071
|
+
validateDelegation(input, repairs) {
|
|
1150
1072
|
const delpre = input.delpre;
|
|
1151
1073
|
// Non-delegated events short-circuit here so the caller can keep one
|
|
1152
1074
|
// attachment pipeline for delegated and non-delegated events.
|
|
@@ -1202,8 +1124,9 @@ export class Kever {
|
|
|
1202
1124
|
if (!delegator) {
|
|
1203
1125
|
return this.makeAttachmentEscrowDecision("partialDels", input, `Missing delegator KEL for ${delpre} while validating ${input.serder.said ?? "<unknown>"}.`, [{
|
|
1204
1126
|
kin: "query",
|
|
1205
|
-
|
|
1206
|
-
|
|
1127
|
+
route: "logs",
|
|
1128
|
+
q: {},
|
|
1129
|
+
pre: delpre,
|
|
1207
1130
|
}]);
|
|
1208
1131
|
}
|
|
1209
1132
|
if (delegator.doNotDelegate) {
|
|
@@ -1216,20 +1139,16 @@ export class Kever {
|
|
|
1216
1139
|
sourceSeal: input.sourceSeal,
|
|
1217
1140
|
original: false,
|
|
1218
1141
|
eager: input.eager ?? false,
|
|
1142
|
+
repairs,
|
|
1219
1143
|
});
|
|
1220
1144
|
if (!delegatingEvent) {
|
|
1221
1145
|
return this.makeAttachmentEscrowDecision("partialDels", input, `No delegation seal found for ${input.serder.said ?? "<unknown>"}.`, [{
|
|
1222
1146
|
kin: "query",
|
|
1147
|
+
route: "logs",
|
|
1223
1148
|
q: {
|
|
1224
|
-
|
|
1225
|
-
sn: input.sourceSeal
|
|
1226
|
-
? ordinalHex(sourceSealOrdinal(input.sourceSeal))
|
|
1227
|
-
: undefined,
|
|
1228
|
-
dig: input.sourceSeal
|
|
1229
|
-
? sourceSealDigest(input.sourceSeal).qb64
|
|
1230
|
-
: undefined,
|
|
1149
|
+
s: input.sourceSeal ? ordinalHex(sourceSealOrdinal(input.sourceSeal)) : undefined,
|
|
1231
1150
|
},
|
|
1232
|
-
pre: delpre
|
|
1151
|
+
pre: delpre,
|
|
1233
1152
|
}]);
|
|
1234
1153
|
}
|
|
1235
1154
|
// The simple cases are the same as KERIpy: inception is never a recovery
|
|
@@ -1257,12 +1176,14 @@ export class Kever {
|
|
|
1257
1176
|
const originalDelegatingEvent = this.fetchDelegatingEvent(delpre, originalDelegatedEvent, {
|
|
1258
1177
|
original: true,
|
|
1259
1178
|
eager: input.eager ?? false,
|
|
1179
|
+
repairs,
|
|
1260
1180
|
});
|
|
1261
1181
|
if (!originalDelegatingEvent) {
|
|
1262
1182
|
return this.makeAttachmentEscrowDecision("partialDels", input, `No original delegation seal found for accepted recovery target ${originalDelegatedEvent.said ?? "<unknown>"}.`, [{
|
|
1263
1183
|
kin: "query",
|
|
1264
|
-
|
|
1265
|
-
|
|
1184
|
+
route: "logs",
|
|
1185
|
+
q: {},
|
|
1186
|
+
pre: delpre,
|
|
1266
1187
|
}]);
|
|
1267
1188
|
}
|
|
1268
1189
|
const recoveryDecision = this.validateDelegatedRecovery({
|
|
@@ -1272,7 +1193,7 @@ export class Kever {
|
|
|
1272
1193
|
candidateDelegation: delegatingEvent,
|
|
1273
1194
|
originalEvent: originalDelegatedEvent,
|
|
1274
1195
|
originalDelegation: originalDelegatingEvent,
|
|
1275
|
-
});
|
|
1196
|
+
}, repairs);
|
|
1276
1197
|
if (recoveryDecision) {
|
|
1277
1198
|
return recoveryDecision;
|
|
1278
1199
|
}
|
|
@@ -1294,7 +1215,7 @@ export class Kever {
|
|
|
1294
1215
|
* The comparison climbs one boss/original pair at a time until one of the
|
|
1295
1216
|
* KERIpy superseding rules succeeds or the undelegated root is reached.
|
|
1296
1217
|
*/
|
|
1297
|
-
validateDelegatedRecovery({ input, delpre, candidateEvent, candidateDelegation, originalEvent, originalDelegation, }) {
|
|
1218
|
+
validateDelegatedRecovery({ input, delpre, candidateEvent, candidateDelegation, originalEvent, originalDelegation, }, repairs) {
|
|
1298
1219
|
let currentDelpre = delpre;
|
|
1299
1220
|
let candidate = candidateEvent;
|
|
1300
1221
|
let candidateBoss = candidateDelegation;
|
|
@@ -1342,23 +1263,27 @@ export class Kever {
|
|
|
1342
1263
|
const nextCandidateBoss = this.fetchDelegatingEvent(currentDelpre, candidate, {
|
|
1343
1264
|
original: false,
|
|
1344
1265
|
eager: input.eager ?? false,
|
|
1266
|
+
repairs,
|
|
1345
1267
|
});
|
|
1346
1268
|
if (!nextCandidateBoss) {
|
|
1347
1269
|
return this.makeAttachmentEscrowDecision("partialDels", input, `No delegating recovery chain found for ${candidate.said ?? "<unknown>"} under ${currentDelpre}.`, [{
|
|
1348
1270
|
kin: "query",
|
|
1349
|
-
|
|
1350
|
-
|
|
1271
|
+
route: "logs",
|
|
1272
|
+
q: {},
|
|
1273
|
+
pre: currentDelpre,
|
|
1351
1274
|
}]);
|
|
1352
1275
|
}
|
|
1353
1276
|
const nextOriginalBoss = this.fetchDelegatingEvent(currentDelpre, original, {
|
|
1354
1277
|
original: true,
|
|
1355
1278
|
eager: input.eager ?? false,
|
|
1279
|
+
repairs,
|
|
1356
1280
|
});
|
|
1357
1281
|
if (!nextOriginalBoss) {
|
|
1358
1282
|
return this.makeAttachmentEscrowDecision("partialDels", input, `No original delegating recovery chain found for ${original.said ?? "<unknown>"} under ${currentDelpre}.`, [{
|
|
1359
1283
|
kin: "query",
|
|
1360
|
-
|
|
1361
|
-
|
|
1284
|
+
route: "logs",
|
|
1285
|
+
q: {},
|
|
1286
|
+
pre: currentDelpre,
|
|
1362
1287
|
}]);
|
|
1363
1288
|
}
|
|
1364
1289
|
candidateBoss = nextCandidateBoss;
|
|
@@ -1373,39 +1298,47 @@ export class Kever {
|
|
|
1373
1298
|
return this.db.getEvtSerder(this.pre, this.lastEst.d);
|
|
1374
1299
|
}
|
|
1375
1300
|
/** Read the stored accepted source-seal hint for one already accepted event. */
|
|
1376
|
-
acceptedSourceSealForEvent(serder) {
|
|
1301
|
+
acceptedSourceSealForEvent(serder, repairs) {
|
|
1377
1302
|
const pre = serder.pre;
|
|
1378
1303
|
const said = serder.said;
|
|
1379
1304
|
if (!pre || !said) {
|
|
1380
1305
|
return null;
|
|
1381
1306
|
}
|
|
1307
|
+
// Later lookups in this decision see earlier repairs without publishing them.
|
|
1308
|
+
const pending = repairs.findLast((repair) => repair.pre === pre && repair.said === said);
|
|
1309
|
+
if (pending)
|
|
1310
|
+
return pending.sourceSeal;
|
|
1382
1311
|
const seal = this.db.aess.get(dgKey(pre, said));
|
|
1383
1312
|
if (!seal) {
|
|
1384
1313
|
return null;
|
|
1385
1314
|
}
|
|
1386
1315
|
return SealSource.fromTuple(seal);
|
|
1387
1316
|
}
|
|
1388
|
-
/**
|
|
1389
|
-
dropAcceptedSourceSeal(serder) {
|
|
1317
|
+
/** Describe removal of one broken hint so a later eager pass can repair it. */
|
|
1318
|
+
dropAcceptedSourceSeal(serder, repairs) {
|
|
1390
1319
|
const pre = serder.pre;
|
|
1391
1320
|
const said = serder.said;
|
|
1392
1321
|
if (!pre || !said) {
|
|
1393
1322
|
return;
|
|
1394
1323
|
}
|
|
1395
|
-
|
|
1324
|
+
repairs.push({ pre, said, sourceSeal: null });
|
|
1396
1325
|
}
|
|
1397
|
-
/**
|
|
1398
|
-
repairAcceptedSourceSeal(serder, lookup) {
|
|
1326
|
+
/** Describe an accepted event hint repair after rediscovering the authorizing event. */
|
|
1327
|
+
repairAcceptedSourceSeal(serder, lookup, repairs) {
|
|
1399
1328
|
const pre = serder.pre;
|
|
1400
1329
|
const said = serder.said;
|
|
1401
1330
|
const dgkey = pre && said ? dgKey(pre, said) : null;
|
|
1402
1331
|
if (!dgkey || !this.db.fons.get(dgkey)) {
|
|
1403
1332
|
return;
|
|
1404
1333
|
}
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1334
|
+
repairs.push({
|
|
1335
|
+
pre: pre,
|
|
1336
|
+
said: said,
|
|
1337
|
+
sourceSeal: SealSource.fromTuple([
|
|
1338
|
+
normalizeOrdinal(sourceSealOrdinal(lookup.sourceSeal)),
|
|
1339
|
+
sourceSealDigest(lookup.sourceSeal),
|
|
1340
|
+
]),
|
|
1341
|
+
});
|
|
1409
1342
|
}
|
|
1410
1343
|
/** Resolve one stored source seal to the exact accepted delegating event it names. */
|
|
1411
1344
|
lookupAcceptedDelegatingEvent(delpre, sourceSeal, serder) {
|
|
@@ -1562,7 +1495,7 @@ export class Kever {
|
|
|
1562
1495
|
new Prefixer({ qb64: pre });
|
|
1563
1496
|
}
|
|
1564
1497
|
catch (error) {
|
|
1565
|
-
return Kever.reject("invalidPre", `Invalid prefix ${pre} for inception ${said ?? "<unknown>"}
|
|
1498
|
+
return Kever.reject("invalidPre", `Invalid prefix ${pre} for inception ${said ?? "<unknown>"}: ${error instanceof Error ? error.message : String(error)}`);
|
|
1566
1499
|
}
|
|
1567
1500
|
if (!said || sn === null) {
|
|
1568
1501
|
return Kever.reject("invalidSn", "Inception event must include said and sn.");
|
|
@@ -1689,24 +1622,8 @@ export class Kever {
|
|
|
1689
1622
|
}
|
|
1690
1623
|
/** Build one typed duplicate/escrow decision from an attachment decision. */
|
|
1691
1624
|
static fromAttachmentDecision(decision) {
|
|
1692
|
-
if (decision.kind
|
|
1693
|
-
return
|
|
1694
|
-
kind: "reject",
|
|
1695
|
-
code: decision.code,
|
|
1696
|
-
message: decision.message,
|
|
1697
|
-
context: decision.context,
|
|
1698
|
-
};
|
|
1699
|
-
}
|
|
1700
|
-
if (decision.kind === "escrow") {
|
|
1701
|
-
return {
|
|
1702
|
-
kind: "escrow",
|
|
1703
|
-
reason: decision.reason,
|
|
1704
|
-
message: decision.message,
|
|
1705
|
-
instruction: decision.instruction,
|
|
1706
|
-
cues: decision.cues,
|
|
1707
|
-
context: decision.context,
|
|
1708
|
-
};
|
|
1709
|
-
}
|
|
1625
|
+
if (decision.kind !== "verified")
|
|
1626
|
+
return decision;
|
|
1710
1627
|
return {
|
|
1711
1628
|
kind: "reject",
|
|
1712
1629
|
code: "unsupported",
|
|
@@ -1714,12 +1631,12 @@ export class Kever {
|
|
|
1714
1631
|
};
|
|
1715
1632
|
}
|
|
1716
1633
|
/** Helper to produce one reject decision. */
|
|
1717
|
-
static reject(code, message
|
|
1718
|
-
return { kind: "reject", code, message
|
|
1634
|
+
static reject(code, message) {
|
|
1635
|
+
return { kind: "reject", code, message };
|
|
1719
1636
|
}
|
|
1720
1637
|
/** Helper to produce one reject attachment decision. */
|
|
1721
|
-
static rejectAttachment(code, message
|
|
1722
|
-
return { kind: "reject", code, message
|
|
1638
|
+
static rejectAttachment(code, message) {
|
|
1639
|
+
return { kind: "reject", code, message };
|
|
1723
1640
|
}
|
|
1724
1641
|
/** Build one typed escrow decision for event-level routing. */
|
|
1725
1642
|
makeEscrowDecision(escrow, init, message, cues) {
|
|
@@ -18,16 +18,16 @@ export function setLogLevel(level) {
|
|
|
18
18
|
export function getLogLevel() {
|
|
19
19
|
return currentLogLevel;
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
21
|
+
/** Level-gated diagnostics on stderr; stdout belongs to command data. */
|
|
22
22
|
export const consoleLogger = {
|
|
23
23
|
debug: (message, ...meta) => {
|
|
24
24
|
if (shouldLog("debug")) {
|
|
25
|
-
console.
|
|
25
|
+
console.error(message, ...meta);
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
info: (message, ...meta) => {
|
|
29
29
|
if (shouldLog("info")) {
|
|
30
|
-
console.
|
|
30
|
+
console.error(message, ...meta);
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
warn: (message, ...meta) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** KRAM cache selection and safe, receiver-clocked configuration transitions. */
|
|
2
2
|
import { intToB64 } from "cesr-ts";
|
|
3
|
-
import { CacheTypeRecord } from "
|
|
3
|
+
import { CacheTypeRecord } from "../records.js";
|
|
4
4
|
/** Only this key owns the policy transition metadata in the existing settings table. */
|
|
5
5
|
const policyKey = "kram-policy";
|
|
6
6
|
/** Validate caller configuration before any durable policy mutation. */
|
|
@@ -79,6 +79,18 @@ function policyState(stored, db) {
|
|
|
79
79
|
throw new Error("Corrupt KRAM policy metadata", { cause });
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
+
/** OOBI endpoint replies rely on BADA acceptance rather than KRAM replay protection (KERIpy `OobiDenials`). */
|
|
83
|
+
const OOBI_EXEMPTIONS = [[[2, 0], "rpy", "/end/role"], [[2, 0], "rpy", "/loc/scheme"]];
|
|
84
|
+
/**
|
|
85
|
+
* Store-and-forward routes whose copy is correct whenever it arrives, so a late
|
|
86
|
+
* mailbox fetch must not fall outside a KRAM window (KERIpy
|
|
87
|
+
* `StoreForwardDenials`). Their own acceptance model replaces replay protection:
|
|
88
|
+
* the exchange store is keyed by SAID, the handler ignores a stored SAID that is
|
|
89
|
+
* escrowed or already retained, every copy is fully re-authorized against
|
|
90
|
+
* current KEL/TEL state and its root reproduced before automatic retention, and
|
|
91
|
+
* a retained root is immutable.
|
|
92
|
+
*/
|
|
93
|
+
const STORE_FORWARD_EXEMPTIONS = [[[2, 0], "exn", "/registry/root"]];
|
|
82
94
|
/**
|
|
83
95
|
* Own finite cache configuration and exemption policy, reusing Baser.ctyp.
|
|
84
96
|
* Persist staged acceptance expansions so restart cannot reopen an old window.
|
|
@@ -127,9 +139,7 @@ export class KramPolicy {
|
|
|
127
139
|
this.enabled = config.enabled ?? false;
|
|
128
140
|
const denials = [
|
|
129
141
|
...(config.denials ?? []),
|
|
130
|
-
...(this.enabled
|
|
131
|
-
? [[[2, 0], "rpy", "/end/role"], [[2, 0], "rpy", "/loc/scheme"]]
|
|
132
|
-
: []),
|
|
142
|
+
...(this.enabled ? [...OOBI_EXEMPTIONS, ...STORE_FORWARD_EXEMPTIONS] : []),
|
|
133
143
|
];
|
|
134
144
|
this.exemptions = denials.map(([version, type, route]) => {
|
|
135
145
|
if (version.length !== 2 || version.some((v) => !Number.isSafeInteger(v) || v < 0)
|