keri-ts 2.0.1 → 2.2.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 +30 -2
- package/esm/keri/npm/src/acdc/authoring.js +195 -0
- package/esm/keri/npm/src/acdc/chaining.js +223 -89
- package/esm/keri/npm/src/acdc/custody.js +164 -0
- package/esm/keri/npm/src/acdc/dhking.js +244 -32
- package/esm/keri/npm/src/acdc/observing.js +2 -2
- package/esm/keri/npm/src/acdc/regbasing.js +30 -29
- package/esm/keri/npm/src/acdc/regengine.js +4 -6
- package/esm/keri/npm/src/acdc/registering.js +13 -10
- package/esm/keri/npm/src/acdc/registraring.js +4 -9
- package/esm/keri/npm/src/acdc/salting.js +143 -26
- package/esm/keri/npm/src/acdc/scheming.js +93 -54
- package/esm/keri/npm/src/acdc/unblinding.js +120 -99
- package/esm/keri/npm/src/app/bootstrap/authenticating.js +4 -6
- package/esm/keri/npm/src/app/bootstrap/oobi-resolving.js +41 -0
- package/esm/keri/npm/src/app/bootstrap/oobiery.js +5 -7
- package/esm/keri/npm/src/app/credentials/credential-revoking.js +1 -0
- package/esm/keri/npm/src/app/credentials/credential-workflows.js +2 -0
- package/esm/keri/npm/src/app/credentials/registry-settling.js +44 -0
- package/esm/keri/npm/src/app/credentials/root-replicating.js +131 -0
- package/esm/keri/npm/src/app/credentials/root-replicator.js +198 -0
- package/esm/keri/npm/src/app/credentials/tel-completion.js +36 -0
- package/esm/keri/npm/src/app/credentials/verifying.js +12 -3
- package/esm/keri/npm/src/app/delivery/forwarding.js +64 -9
- package/esm/keri/npm/src/app/exchanges/exchanging.js +24 -15
- package/esm/keri/npm/src/app/identity/challenging.js +50 -0
- package/esm/keri/npm/src/app/identity/configing.js +17 -43
- package/esm/keri/npm/src/app/identity/delegating.js +77 -77
- package/esm/keri/npm/src/app/identity/delegation-approval.js +333 -0
- package/esm/keri/npm/src/app/identity/event-completion.js +154 -0
- package/esm/keri/npm/src/app/identity/habbing.js +183 -41
- package/esm/keri/npm/src/app/identity/keeping.js +78 -5
- package/esm/keri/npm/src/app/identity/lmdb-habery.js +12 -0
- package/esm/keri/npm/src/app/ipex/group-ipex.js +327 -0
- package/esm/keri/npm/src/app/ipex/group-issuance.js +902 -0
- package/esm/keri/npm/src/app/ipex/ipex-admitting.js +120 -0
- package/esm/keri/npm/src/app/ipex/ipex-conversation.js +197 -0
- package/esm/keri/npm/src/app/ipex/ipex-discloser.js +591 -0
- package/esm/keri/npm/src/app/ipex/ipex-granting.js +93 -0
- package/esm/keri/npm/src/app/ipex/ipex-graph.js +7 -70
- package/esm/keri/npm/src/app/ipex/ipex-grouping.js +42 -16
- package/esm/keri/npm/src/app/ipex/ipex-v2.js +21 -5
- package/esm/keri/npm/src/app/ipex/ipexing.js +1 -1
- package/esm/keri/npm/src/app/ipex/issuance.js +888 -0
- package/esm/keri/npm/src/app/ipex/pending-presentations.js +46 -0
- package/esm/keri/npm/src/app/ipex/presentation-files.js +200 -0
- package/esm/keri/npm/src/app/ipex/presenting.js +401 -0
- package/esm/keri/npm/src/app/ipex/receive-issuance.js +86 -0
- package/esm/keri/npm/src/app/ipex/unblinding-workflow.js +660 -0
- package/esm/keri/npm/src/app/mailbox/ipex-arrival.js +103 -0
- package/esm/keri/npm/src/app/mailbox/kel-publisher.js +322 -0
- package/esm/keri/npm/src/app/mailbox/kel-publishing.js +65 -0
- package/esm/keri/npm/src/app/mailbox/kel-submission.js +24 -0
- package/esm/keri/npm/src/app/mailbox/mailbox-admin.js +208 -0
- package/esm/keri/npm/src/app/mailbox/mailbox-poller.js +212 -47
- package/esm/keri/npm/src/app/mailbox/mailboxing.js +15 -14
- package/esm/keri/npm/src/app/multisig/counseling.js +482 -0
- package/esm/keri/npm/src/app/multisig/group-members.js +32 -0
- package/esm/keri/npm/src/app/multisig/grouping.js +4 -3
- package/esm/keri/npm/src/app/multisig/multisig-workflows.js +101 -141
- package/esm/keri/npm/src/app/multisig/proposals.js +281 -0
- package/esm/keri/npm/src/app/multisig/proposing.js +122 -0
- package/esm/keri/npm/src/app/notifications/notifying.js +5 -9
- package/esm/keri/npm/src/app/notifications/signaling.js +5 -5
- package/esm/keri/npm/src/app/protocol/parsering.js +26 -1
- package/esm/keri/npm/src/app/protocol/protocol-processing.js +44 -6
- package/esm/keri/npm/src/app/queries/query-workflows.js +98 -0
- package/esm/keri/npm/src/app/queries/witness-inquisitor.js +2 -2
- package/esm/keri/npm/src/app/runtime/agent-runtime.js +113 -65
- package/esm/keri/npm/src/app/runtime/cue-runtime.js +3 -6
- package/esm/keri/npm/src/app/runtime/delivery-outbox.js +87 -0
- package/esm/keri/npm/src/app/runtime/doing.js +17 -0
- package/esm/keri/npm/src/app/runtime/ipex-auxiliaries.js +207 -0
- package/esm/keri/npm/src/app/runtime/operation-owners.js +151 -0
- package/esm/keri/npm/src/app/runtime/retry-backoff.js +93 -0
- package/esm/keri/npm/src/app/runtime/workflow-contract.js +80 -0
- package/esm/keri/npm/src/app/transport/byte-source.js +6 -42
- package/esm/keri/npm/src/app/transport/cesr-egress.js +77 -13
- package/esm/keri/npm/src/app/transport/file-bytes.js +41 -0
- package/esm/keri/npm/src/app/transport/http-client.js +25 -6
- package/esm/keri/npm/src/app/transport/http-messenger.js +14 -9
- package/esm/keri/npm/src/app/transport/message-source.js +1 -1
- package/esm/keri/npm/src/app/transport/messengering.js +3 -4
- package/esm/keri/npm/src/app/transport/node-http-client.js +21 -0
- package/esm/keri/npm/src/app/transport/tcp-dialer.js +14 -0
- package/esm/keri/npm/src/app/witness/http-endpoints.js +4 -4
- package/esm/keri/npm/src/app/witness/receipt-client.js +2 -2
- package/esm/keri/npm/src/cli/common/context.js +2 -2
- package/esm/keri/npm/src/cli/common/event-completion.js +49 -0
- package/esm/keri/npm/src/cli/common/existing.js +3 -5
- package/esm/keri/npm/src/cli/common/runtime-workers.js +23 -0
- package/esm/keri/npm/src/cli/credentials/ipex.js +159 -191
- package/esm/keri/npm/src/cli/credentials/vc.js +53 -72
- package/esm/keri/npm/src/cli/endpoints/did.js +12 -3
- package/esm/keri/npm/src/cli/endpoints/oobi-clean.js +4 -3
- package/esm/keri/npm/src/cli/endpoints/oobi.js +12 -15
- package/esm/keri/npm/src/cli/identity/challenge.js +9 -35
- package/esm/keri/npm/src/cli/identity/delegate.js +81 -258
- package/esm/keri/npm/src/cli/identity/incept.js +17 -34
- package/esm/keri/npm/src/cli/identity/init.js +4 -3
- package/esm/keri/npm/src/cli/identity/interact.js +7 -19
- package/esm/keri/npm/src/cli/identity/rotate.js +10 -38
- package/esm/keri/npm/src/cli/index.js +3 -1
- package/esm/keri/npm/src/cli/messaging/exchange.js +2 -2
- package/esm/keri/npm/src/cli/messaging/group-join.js +79 -0
- package/esm/keri/npm/src/cli/messaging/group-wait.js +88 -0
- package/esm/keri/npm/src/cli/messaging/multisig.js +187 -250
- package/esm/keri/npm/src/cli/messaging/root-copy-lines.js +31 -0
- package/esm/keri/npm/src/cli/tools/annotate.js +2 -1
- package/esm/keri/npm/src/cli/tools/benchmark.js +2 -1
- package/esm/keri/npm/src/cli/tools/db-dump.js +1 -4
- package/esm/keri/npm/src/core/bytes.js +9 -0
- package/esm/keri/npm/src/core/kel/delegation-ancestry.js +92 -0
- package/esm/keri/npm/src/core/kel/eventing.js +67 -12
- package/esm/keri/npm/src/core/kel/kever.js +11 -9
- package/esm/keri/npm/src/core/mailbox/kram-policy.js +41 -9
- package/esm/keri/npm/src/core/mailbox/kram-pruning.js +15 -22
- package/esm/keri/npm/src/core/mailbox/kram-staging.js +2 -2
- package/esm/keri/npm/src/core/mailbox/kraming.js +2 -0
- package/esm/keri/npm/src/core/records.js +23 -0
- package/esm/keri/npm/src/core/routing.js +15 -2
- package/esm/keri/npm/src/db/basing.js +183 -205
- package/esm/keri/npm/src/db/core/dber.js +1062 -0
- package/esm/keri/npm/src/db/core/index.js +4 -2
- package/esm/keri/npm/src/db/core/indexeddb-persistence.js +221 -0
- package/esm/keri/npm/src/db/core/lmdb-opener.js +30 -0
- package/esm/keri/npm/src/db/core/lmdber.js +199 -1067
- package/esm/keri/npm/src/db/core/memstore.js +532 -0
- package/esm/keri/npm/src/db/core/path-manager.js +109 -223
- package/esm/keri/npm/src/db/core/store-owner.js +104 -0
- package/esm/keri/npm/src/db/core/webdber.js +252 -0
- package/esm/keri/npm/src/db/escrowing.js +2 -2
- package/esm/keri/npm/src/db/exchange/exchange-nests.js +3 -2
- package/esm/keri/npm/src/db/indexeddb.js +98 -0
- package/esm/keri/npm/src/db/keeping.js +38 -123
- package/esm/keri/npm/src/db/koming.js +1 -1
- package/esm/keri/npm/src/db/lmdb-stores.js +68 -0
- package/esm/keri/npm/src/db/lmdb.js +6 -0
- package/esm/keri/npm/src/db/mailbox/mailboxing.js +12 -65
- package/esm/keri/npm/src/db/noting.js +11 -55
- package/esm/keri/npm/src/db/reger.js +43 -105
- package/esm/keri/npm/src/db/replay/witness-replay.js +2 -20
- package/esm/keri/npm/src/db/store-lock.js +150 -0
- package/esm/keri/npm/src/db/subing.js +1 -1
- package/esm/keri/npm/src/npm/db-indexeddb.browser.js +2 -0
- package/esm/keri/npm/src/npm/db-indexeddb.js +3 -0
- package/esm/keri/npm/src/npm/db-lmdb.js +3 -0
- package/esm/keri/npm/src/npm/db.browser.js +2 -0
- package/esm/keri/npm/src/npm/index.browser.js +9 -0
- package/esm/keri/npm/src/npm/runtime-node.js +3 -0
- package/esm/keri/npm/src/npm/runtime-web.browser.js +2 -0
- package/esm/keri/npm/src/npm/runtime-web.js +3 -0
- package/esm/keri/npm/src/npm/runtime.browser.js +2 -0
- package/esm/keri/npm/src/runtime/index.js +58 -12
- package/esm/keri/npm/src/runtime/node.js +14 -0
- package/esm/keri/npm/src/runtime/web/output-barrier.js +47 -0
- package/esm/keri/npm/src/runtime/web/persistent-storage.js +37 -0
- package/esm/keri/npm/src/runtime/web.js +10 -0
- package/esm/keri/npm/src/vdr/eventing.js +1 -1
- package/esm/keri/npm/src/vdr/tel-publication.js +19 -3
- package/esm/keri/npm/src/version.js +2 -2
- package/package.json +24 -4
- package/types/acdc/authoring.d.ts +54 -0
- package/types/acdc/authoring.d.ts.map +1 -0
- package/types/acdc/chaining.d.ts +56 -6
- package/types/acdc/chaining.d.ts.map +1 -1
- package/types/acdc/custody.d.ts +77 -0
- package/types/acdc/custody.d.ts.map +1 -0
- package/types/acdc/dhking.d.ts +94 -3
- package/types/acdc/dhking.d.ts.map +1 -1
- package/types/acdc/regbasing.d.ts +11 -6
- package/types/acdc/regbasing.d.ts.map +1 -1
- package/types/acdc/regengine.d.ts.map +1 -1
- package/types/acdc/registering.d.ts +8 -4
- package/types/acdc/registering.d.ts.map +1 -1
- package/types/acdc/registraring.d.ts.map +1 -1
- package/types/acdc/salting.d.ts +59 -7
- package/types/acdc/salting.d.ts.map +1 -1
- package/types/acdc/scheming.d.ts +2 -0
- package/types/acdc/scheming.d.ts.map +1 -1
- package/types/acdc/unblinding.d.ts +58 -19
- package/types/acdc/unblinding.d.ts.map +1 -1
- package/types/app/bootstrap/authenticating.d.ts +3 -1
- package/types/app/bootstrap/authenticating.d.ts.map +1 -1
- package/types/app/bootstrap/oobi-resolving.d.ts +92 -0
- package/types/app/bootstrap/oobi-resolving.d.ts.map +1 -0
- package/types/app/bootstrap/oobiery.d.ts +3 -1
- package/types/app/bootstrap/oobiery.d.ts.map +1 -1
- package/types/app/credentials/credential-revoking.d.ts +3 -0
- package/types/app/credentials/credential-revoking.d.ts.map +1 -1
- package/types/app/credentials/credential-workflows.d.ts +5 -0
- package/types/app/credentials/credential-workflows.d.ts.map +1 -1
- package/types/app/credentials/registry-settling.d.ts +85 -0
- package/types/app/credentials/registry-settling.d.ts.map +1 -0
- package/types/app/credentials/root-replicating.d.ts +97 -0
- package/types/app/credentials/root-replicating.d.ts.map +1 -0
- package/types/app/credentials/root-replicator.d.ts +105 -0
- package/types/app/credentials/root-replicator.d.ts.map +1 -0
- package/types/app/credentials/tel-completion.d.ts +55 -0
- package/types/app/credentials/tel-completion.d.ts.map +1 -0
- package/types/app/credentials/verifying.d.ts +2 -1
- package/types/app/credentials/verifying.d.ts.map +1 -1
- package/types/app/delivery/forwarding.d.ts +16 -0
- package/types/app/delivery/forwarding.d.ts.map +1 -1
- package/types/app/exchanges/exchanging.d.ts +2 -0
- package/types/app/exchanges/exchanging.d.ts.map +1 -1
- package/types/app/identity/challenging.d.ts +54 -0
- package/types/app/identity/challenging.d.ts.map +1 -1
- package/types/app/identity/configing.d.ts +7 -5
- package/types/app/identity/configing.d.ts.map +1 -1
- package/types/app/identity/delegating.d.ts +21 -4
- package/types/app/identity/delegating.d.ts.map +1 -1
- package/types/app/identity/delegation-approval.d.ts +228 -0
- package/types/app/identity/delegation-approval.d.ts.map +1 -0
- package/types/app/identity/event-completion.d.ts +151 -0
- package/types/app/identity/event-completion.d.ts.map +1 -0
- package/types/app/identity/habbing.d.ts +90 -7
- package/types/app/identity/habbing.d.ts.map +1 -1
- package/types/app/identity/keeping.d.ts +50 -4
- package/types/app/identity/keeping.d.ts.map +1 -1
- package/types/app/identity/lmdb-habery.d.ts +6 -0
- package/types/app/identity/lmdb-habery.d.ts.map +1 -0
- package/types/app/ipex/group-ipex.d.ts +247 -0
- package/types/app/ipex/group-ipex.d.ts.map +1 -0
- package/types/app/ipex/group-issuance.d.ts +281 -0
- package/types/app/ipex/group-issuance.d.ts.map +1 -0
- package/types/app/ipex/ipex-admitting.d.ts +47 -0
- package/types/app/ipex/ipex-admitting.d.ts.map +1 -0
- package/types/app/ipex/ipex-conversation.d.ts +195 -0
- package/types/app/ipex/ipex-conversation.d.ts.map +1 -0
- package/types/app/ipex/ipex-discloser.d.ts +156 -0
- package/types/app/ipex/ipex-discloser.d.ts.map +1 -0
- package/types/app/ipex/ipex-granting.d.ts +145 -0
- package/types/app/ipex/ipex-granting.d.ts.map +1 -0
- package/types/app/ipex/ipex-graph.d.ts +4 -4
- package/types/app/ipex/ipex-graph.d.ts.map +1 -1
- package/types/app/ipex/ipex-grouping.d.ts +18 -0
- package/types/app/ipex/ipex-grouping.d.ts.map +1 -1
- package/types/app/ipex/ipex-v2.d.ts +11 -2
- package/types/app/ipex/ipex-v2.d.ts.map +1 -1
- package/types/app/ipex/ipexing.d.ts +3 -0
- package/types/app/ipex/ipexing.d.ts.map +1 -1
- package/types/app/ipex/issuance.d.ts +443 -0
- package/types/app/ipex/issuance.d.ts.map +1 -0
- package/types/app/ipex/pending-presentations.d.ts +25 -0
- package/types/app/ipex/pending-presentations.d.ts.map +1 -0
- package/types/app/ipex/presentation-files.d.ts +47 -0
- package/types/app/ipex/presentation-files.d.ts.map +1 -0
- package/types/app/ipex/presenting.d.ts +298 -0
- package/types/app/ipex/presenting.d.ts.map +1 -0
- package/types/app/ipex/receive-issuance.d.ts +99 -0
- package/types/app/ipex/receive-issuance.d.ts.map +1 -0
- package/types/app/ipex/unblinding-workflow.d.ts +255 -0
- package/types/app/ipex/unblinding-workflow.d.ts.map +1 -0
- package/types/app/mailbox/ipex-arrival.d.ts +104 -0
- package/types/app/mailbox/ipex-arrival.d.ts.map +1 -0
- package/types/app/mailbox/kel-publisher.d.ts +141 -0
- package/types/app/mailbox/kel-publisher.d.ts.map +1 -0
- package/types/app/mailbox/kel-publishing.d.ts +70 -0
- package/types/app/mailbox/kel-publishing.d.ts.map +1 -0
- package/types/app/mailbox/kel-submission.d.ts +18 -0
- package/types/app/mailbox/kel-submission.d.ts.map +1 -0
- package/types/app/mailbox/mailbox-admin.d.ts +113 -0
- package/types/app/mailbox/mailbox-admin.d.ts.map +1 -0
- package/types/app/mailbox/mailbox-poller.d.ts +92 -3
- package/types/app/mailbox/mailbox-poller.d.ts.map +1 -1
- package/types/app/mailbox/mailboxing.d.ts +4 -1
- package/types/app/mailbox/mailboxing.d.ts.map +1 -1
- package/types/app/multisig/counseling.d.ts +196 -0
- package/types/app/multisig/counseling.d.ts.map +1 -0
- package/types/app/multisig/group-members.d.ts +20 -0
- package/types/app/multisig/group-members.d.ts.map +1 -1
- package/types/app/multisig/grouping.d.ts +39 -20
- package/types/app/multisig/grouping.d.ts.map +1 -1
- package/types/app/multisig/multisig-workflows.d.ts +93 -23
- package/types/app/multisig/multisig-workflows.d.ts.map +1 -1
- package/types/app/multisig/proposals.d.ts +129 -0
- package/types/app/multisig/proposals.d.ts.map +1 -0
- package/types/app/multisig/proposing.d.ts +125 -0
- package/types/app/multisig/proposing.d.ts.map +1 -0
- package/types/app/notifications/notifying.d.ts +1 -1
- package/types/app/notifications/notifying.d.ts.map +1 -1
- package/types/app/notifications/signaling.d.ts +3 -1
- package/types/app/notifications/signaling.d.ts.map +1 -1
- package/types/app/protocol/parsering.d.ts +16 -1
- package/types/app/protocol/parsering.d.ts.map +1 -1
- package/types/app/protocol/protocol-processing.d.ts +9 -1
- package/types/app/protocol/protocol-processing.d.ts.map +1 -1
- package/types/app/queries/query-workflows.d.ts +98 -0
- package/types/app/queries/query-workflows.d.ts.map +1 -0
- package/types/app/runtime/agent-runtime.d.ts +79 -25
- package/types/app/runtime/agent-runtime.d.ts.map +1 -1
- package/types/app/runtime/cue-runtime.d.ts +2 -1
- package/types/app/runtime/cue-runtime.d.ts.map +1 -1
- package/types/app/runtime/delivery-outbox.d.ts +68 -0
- package/types/app/runtime/delivery-outbox.d.ts.map +1 -0
- package/types/app/runtime/doing.d.ts +27 -0
- package/types/app/runtime/doing.d.ts.map +1 -0
- package/types/app/runtime/ipex-auxiliaries.d.ts +74 -0
- package/types/app/runtime/ipex-auxiliaries.d.ts.map +1 -0
- package/types/app/runtime/operation-owners.d.ts +137 -0
- package/types/app/runtime/operation-owners.d.ts.map +1 -0
- package/types/app/runtime/retry-backoff.d.ts +49 -0
- package/types/app/runtime/retry-backoff.d.ts.map +1 -0
- package/types/app/runtime/workflow-contract.d.ts +79 -0
- package/types/app/runtime/workflow-contract.d.ts.map +1 -0
- package/types/app/transport/byte-source.d.ts +13 -10
- package/types/app/transport/byte-source.d.ts.map +1 -1
- package/types/app/transport/cesr-egress.d.ts +21 -7
- package/types/app/transport/cesr-egress.d.ts.map +1 -1
- package/types/app/transport/file-bytes.d.ts +11 -0
- package/types/app/transport/file-bytes.d.ts.map +1 -0
- package/types/app/transport/http-client.d.ts +3 -0
- package/types/app/transport/http-client.d.ts.map +1 -1
- package/types/app/transport/http-messenger.d.ts +15 -10
- package/types/app/transport/http-messenger.d.ts.map +1 -1
- package/types/app/transport/message-source.d.ts +1 -1
- package/types/app/transport/messengering.d.ts +2 -2
- package/types/app/transport/messengering.d.ts.map +1 -1
- package/types/app/transport/node-http-client.d.ts +10 -0
- package/types/app/transport/node-http-client.d.ts.map +1 -0
- package/types/app/transport/tcp-dialer.d.ts +21 -0
- package/types/app/transport/tcp-dialer.d.ts.map +1 -0
- package/types/cli/common/event-completion.d.ts +26 -0
- package/types/cli/common/event-completion.d.ts.map +1 -0
- package/types/cli/common/existing.d.ts.map +1 -1
- package/types/cli/common/runtime-workers.d.ts +23 -0
- package/types/cli/common/runtime-workers.d.ts.map +1 -0
- package/types/cli/credentials/ipex.d.ts.map +1 -1
- package/types/cli/credentials/vc.d.ts +1 -1
- package/types/cli/credentials/vc.d.ts.map +1 -1
- package/types/cli/endpoints/did.d.ts.map +1 -1
- package/types/cli/endpoints/oobi-clean.d.ts.map +1 -1
- package/types/cli/endpoints/oobi.d.ts +3 -1
- package/types/cli/endpoints/oobi.d.ts.map +1 -1
- package/types/cli/identity/challenge.d.ts +1 -1
- package/types/cli/identity/challenge.d.ts.map +1 -1
- package/types/cli/identity/delegate.d.ts +14 -1
- package/types/cli/identity/delegate.d.ts.map +1 -1
- package/types/cli/identity/incept.d.ts.map +1 -1
- package/types/cli/identity/init.d.ts.map +1 -1
- package/types/cli/identity/interact.d.ts.map +1 -1
- package/types/cli/identity/rotate.d.ts.map +1 -1
- package/types/cli/index.d.ts +4 -2
- package/types/cli/index.d.ts.map +1 -1
- package/types/cli/messaging/group-join.d.ts +53 -0
- package/types/cli/messaging/group-join.d.ts.map +1 -0
- package/types/cli/messaging/group-wait.d.ts +34 -0
- package/types/cli/messaging/group-wait.d.ts.map +1 -0
- package/types/cli/messaging/multisig.d.ts +36 -4
- package/types/cli/messaging/multisig.d.ts.map +1 -1
- package/types/cli/messaging/root-copy-lines.d.ts +39 -0
- package/types/cli/messaging/root-copy-lines.d.ts.map +1 -0
- package/types/cli/tools/annotate.d.ts.map +1 -1
- package/types/cli/tools/benchmark.d.ts.map +1 -1
- package/types/cli/tools/db-dump.d.ts.map +1 -1
- package/types/core/bytes.d.ts +2 -0
- package/types/core/bytes.d.ts.map +1 -1
- package/types/core/cues.d.ts +11 -0
- package/types/core/cues.d.ts.map +1 -1
- package/types/core/kel/delegation-ancestry.d.ts +41 -0
- package/types/core/kel/delegation-ancestry.d.ts.map +1 -0
- package/types/core/kel/eventing.d.ts.map +1 -1
- package/types/core/kel/kever.d.ts +5 -4
- package/types/core/kel/kever.d.ts.map +1 -1
- package/types/core/mailbox/kram-policy.d.ts +14 -0
- package/types/core/mailbox/kram-policy.d.ts.map +1 -1
- package/types/core/mailbox/kram-pruning.d.ts +1 -3
- package/types/core/mailbox/kram-pruning.d.ts.map +1 -1
- package/types/core/mailbox/kraming.d.ts +1 -1
- package/types/core/mailbox/kraming.d.ts.map +1 -1
- package/types/core/records.d.ts +61 -0
- package/types/core/records.d.ts.map +1 -1
- package/types/core/routing.d.ts +6 -0
- package/types/core/routing.d.ts.map +1 -1
- package/types/db/basing.d.ts +22 -25
- package/types/db/basing.d.ts.map +1 -1
- package/types/db/core/dber.d.ts +505 -0
- package/types/db/core/dber.d.ts.map +1 -0
- package/types/db/core/index.d.ts +4 -2
- package/types/db/core/index.d.ts.map +1 -1
- package/types/db/core/indexeddb-persistence.d.ts +59 -0
- package/types/db/core/indexeddb-persistence.d.ts.map +1 -0
- package/types/db/core/lmdb-opener.d.ts +17 -0
- package/types/db/core/lmdb-opener.d.ts.map +1 -0
- package/types/db/core/lmdber.d.ts +60 -383
- package/types/db/core/lmdber.d.ts.map +1 -1
- package/types/db/core/memstore.d.ts +129 -0
- package/types/db/core/memstore.d.ts.map +1 -0
- package/types/db/core/path-manager.d.ts +22 -45
- package/types/db/core/path-manager.d.ts.map +1 -1
- package/types/db/core/store-owner.d.ts +59 -0
- package/types/db/core/store-owner.d.ts.map +1 -0
- package/types/db/core/webdber.d.ts +127 -0
- package/types/db/core/webdber.d.ts.map +1 -0
- package/types/db/escrowing.d.ts +3 -3
- package/types/db/escrowing.d.ts.map +1 -1
- package/types/db/exchange/exchange-nests.d.ts.map +1 -1
- package/types/db/indexeddb.d.ts +37 -0
- package/types/db/indexeddb.d.ts.map +1 -0
- package/types/db/keeping.d.ts +14 -25
- package/types/db/keeping.d.ts.map +1 -1
- package/types/db/koming.d.ts +7 -8
- package/types/db/koming.d.ts.map +1 -1
- package/types/db/lmdb-stores.d.ts +45 -0
- package/types/db/lmdb-stores.d.ts.map +1 -0
- package/types/db/lmdb.d.ts +7 -0
- package/types/db/lmdb.d.ts.map +1 -0
- package/types/db/mailbox/mailboxing.d.ts +7 -21
- package/types/db/mailbox/mailboxing.d.ts.map +1 -1
- package/types/db/noting.d.ts +7 -12
- package/types/db/noting.d.ts.map +1 -1
- package/types/db/reger.d.ts +7 -11
- package/types/db/reger.d.ts.map +1 -1
- package/types/db/replay/witness-replay.d.ts +0 -2
- package/types/db/replay/witness-replay.d.ts.map +1 -1
- package/types/db/store-lock.d.ts +72 -0
- package/types/db/store-lock.d.ts.map +1 -0
- package/types/db/subing.d.ts +24 -25
- package/types/db/subing.d.ts.map +1 -1
- package/types/npm/db-indexeddb.d.ts +4 -0
- package/types/npm/db-indexeddb.d.ts.map +1 -0
- package/types/npm/db-lmdb.d.ts +4 -0
- package/types/npm/db-lmdb.d.ts.map +1 -0
- package/types/npm/runtime-node.d.ts +4 -0
- package/types/npm/runtime-node.d.ts.map +1 -0
- package/types/npm/runtime-web.d.ts +4 -0
- package/types/npm/runtime-web.d.ts.map +1 -0
- package/types/runtime/index.d.ts +48 -14
- package/types/runtime/index.d.ts.map +1 -1
- package/types/runtime/node.d.ts +15 -0
- package/types/runtime/node.d.ts.map +1 -0
- package/types/runtime/web/output-barrier.d.ts +30 -0
- package/types/runtime/web/output-barrier.d.ts.map +1 -0
- package/types/runtime/web/persistent-storage.d.ts +36 -0
- package/types/runtime/web/persistent-storage.d.ts.map +1 -0
- package/types/runtime/web.d.ts +11 -0
- package/types/runtime/web.d.ts.map +1 -0
- package/types/vdr/tel-publication.d.ts +6 -0
- package/types/vdr/tel-publication.d.ts.map +1 -1
- package/types/version.d.ts +2 -2
- package/esm/keri/npm/src/acdc/relating.js +0 -59
- package/esm/keri/npm/src/cli/common/tel-completion.js +0 -24
- package/esm/keri/npm/src/db/baser-defaults.js +0 -11
- package/types/acdc/relating.d.ts +0 -21
- package/types/acdc/relating.d.ts.map +0 -1
- package/types/cli/common/tel-completion.d.ts +0 -8
- package/types/cli/common/tel-completion.d.ts.map +0 -1
- package/types/db/baser-defaults.d.ts +0 -5
- package/types/db/baser-defaults.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oobiery.d.ts","sourceRoot":"","sources":["../../../src/app/bootstrap/oobiery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,EAAkB,UAAU,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAQ,KAAK,SAAS,EAAoB,MAAM,WAAW,CAAC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAmB,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAmB,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,KAAK,IAAI,EAAS,MAAM,qBAAqB,CAAC;AACvD,OAAO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I,EAAE,MAAM,GACX,UAAU,CAQZ;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CA+BjE;AAED,wEAAwE;AACxE,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAIvD;AAgCD,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -4,6 +4,7 @@ import type { Operation } from "effection";
|
|
|
4
4
|
import type { Regery } from "../../vdr/credentialing.js";
|
|
5
5
|
import type { TelProcessDecision } from "../../vdr/eventing.js";
|
|
6
6
|
import type { Poster } from "../delivery/forwarding.js";
|
|
7
|
+
import type { GroupEventRef } from "../multisig/counseling.js";
|
|
7
8
|
import { MULTISIG_REV_ROUTE } from "../multisig/grouping.js";
|
|
8
9
|
import type { GroupSendResult } from "../multisig/multisig-messaging.js";
|
|
9
10
|
import type { Reactor } from "../protocol/reactor.js";
|
|
@@ -21,8 +22,10 @@ export interface CredentialRevokeResult {
|
|
|
21
22
|
publicationComplete: boolean;
|
|
22
23
|
/** Actual external transport destinations, populated by a completed delivery operation. */
|
|
23
24
|
deliveries: string[];
|
|
25
|
+
/** Group coordination; `event` is the group anchor that seals the revocation. */
|
|
24
26
|
group?: GroupSendResult & {
|
|
25
27
|
route: typeof MULTISIG_REV_ROUTE;
|
|
28
|
+
event: GroupEventRef;
|
|
26
29
|
};
|
|
27
30
|
}
|
|
28
31
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-revoking.d.ts","sourceRoot":"","sources":["../../../src/app/credentials/credential-revoking.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,OAAO,EAAe,KAAK,UAAU,EAAqC,MAAM,SAAS,CAAC;AAC1F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAK3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC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,aAAa,CAAA;KAAE,CAAC;CACtF;AAED;;;;;GAKG;AACH,wBAAiB,gBAAgB,CAC/B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,uBAAuB,GAC/B,SAAS,CAAC,sBAAsB,CAAC,CAqDnC;AAED;;;;;GAKG;AACH,wBAAiB,2BAA2B,CAC1C,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,SAAS,MAAM,EAAE,GAC5B,SAAS,CAAC,MAAM,EAAE,CAAC,CAsCrB;AAED,0FAA0F;AAC1F,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,aAAa,EAAE,OAAO,GACrB,MAAM,EAAE,CAGV"}
|
|
@@ -12,6 +12,7 @@ import { Regery } from "../../vdr/credentialing.js";
|
|
|
12
12
|
import { type TelProcessDecision } from "../../vdr/eventing.js";
|
|
13
13
|
import type { Poster } from "../delivery/forwarding.js";
|
|
14
14
|
import type { Hab, Habery } from "../identity/habbing.js";
|
|
15
|
+
import type { GroupEventRef } from "../multisig/counseling.js";
|
|
15
16
|
import { MULTISIG_ISS_ROUTE, MULTISIG_VCP_ROUTE, type MultisigVdrProposal } from "../multisig/grouping.js";
|
|
16
17
|
import type { Reactor } from "../protocol/reactor.js";
|
|
17
18
|
import type { VerifierDecision } from "./verifying.js";
|
|
@@ -58,6 +59,8 @@ export interface RegistryResult {
|
|
|
58
59
|
/** Present for group coordination, with acceptance assessed separately from sending. */
|
|
59
60
|
group?: GroupSendResult & {
|
|
60
61
|
route: typeof MULTISIG_VCP_ROUTE;
|
|
62
|
+
/** The group anchor that seals the registry inception. */
|
|
63
|
+
event: GroupEventRef;
|
|
61
64
|
status: TelProcessDecision["kind"];
|
|
62
65
|
accepted: boolean;
|
|
63
66
|
};
|
|
@@ -80,6 +83,8 @@ export interface IssueResult {
|
|
|
80
83
|
status: VerifierDecision["kind"];
|
|
81
84
|
group?: GroupSendResult & {
|
|
82
85
|
route: typeof MULTISIG_ISS_ROUTE;
|
|
86
|
+
/** The group anchor that seals the issuance. */
|
|
87
|
+
event: GroupEventRef;
|
|
83
88
|
/** Registry event processor decision, independent of the credential verifier decision. */
|
|
84
89
|
telStatus: TelProcessDecision["kind"];
|
|
85
90
|
/** Whether the credential is actually saved; sending a proposal does not make it so. */
|
|
@@ -1 +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;
|
|
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;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;AAED,iGAAiG;AACjG,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,qDAIpG;AA8ID;;;;;;;;;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"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Library home for settling one ACDC v2 registry event (`rip` or `bup`) that a
|
|
3
|
+
* group sealed in a KEL anchor. Written once so every host (CLI, tufa, wallet,
|
|
4
|
+
* service) shares one definition of "the registry event is done".
|
|
5
|
+
*
|
|
6
|
+
* The TEL event is accepted only after the group's anchor is accepted in the
|
|
7
|
+
* group KEL and fully witnessed, then the registry escrows are reprocessed:
|
|
8
|
+
* - `registryEventStatus` is a pure read of durable state.
|
|
9
|
+
* - `settleRegistryEvent` is the local step: it reprocesses the escrows once.
|
|
10
|
+
* Idempotent; it signs, sends and receipts nothing, because
|
|
11
|
+
* witness receipting needs host choices (authorization codes, endpoint mode).
|
|
12
|
+
* - `waitForRegistryEvent` only observes and starts no worker.
|
|
13
|
+
*
|
|
14
|
+
* The anchor facts come from the KEL itself, the same facts the Counselor derives
|
|
15
|
+
* for a group event, because a one-shot host such as the CLI does not run the
|
|
16
|
+
* Counselor loop. Dependencies are declared collaborators, not an AgentRuntime.
|
|
17
|
+
*/
|
|
18
|
+
import type { SerderACDC } from "cesr-ts";
|
|
19
|
+
import type { Operation } from "effection";
|
|
20
|
+
import type { RegistryStore } from "../../acdc/registering.js";
|
|
21
|
+
import type { Baser } from "../../db/basing.js";
|
|
22
|
+
import type { GroupEventRef } from "../multisig/counseling.js";
|
|
23
|
+
import type { ProtocolProcessor } from "../protocol/protocol-processing.js";
|
|
24
|
+
import { type RuntimeClock } from "../runtime/runtime-clock.js";
|
|
25
|
+
import { type WaitResult } from "../runtime/workflow-contract.js";
|
|
26
|
+
/** Elapsed milliseconds between reads of a registry wait. */
|
|
27
|
+
export declare const REGISTRY_WAIT_POLL_MS = 50;
|
|
28
|
+
/** Exact registry event and the group anchor that seals it. */
|
|
29
|
+
export interface RegistryEventRef {
|
|
30
|
+
/** Registry identifier. */
|
|
31
|
+
readonly regid: string;
|
|
32
|
+
/** Sequence number of the TEL event. */
|
|
33
|
+
readonly sn: number;
|
|
34
|
+
/** SAID of the TEL event. */
|
|
35
|
+
readonly said: string;
|
|
36
|
+
/** Group KEL event that carries the seal. */
|
|
37
|
+
readonly anchor: GroupEventRef;
|
|
38
|
+
}
|
|
39
|
+
/** Collaborators for the pure read. */
|
|
40
|
+
export interface RegistryEventReadDeps {
|
|
41
|
+
readonly db: Baser;
|
|
42
|
+
readonly store: Pick<RegistryStore, "seqEvent">;
|
|
43
|
+
}
|
|
44
|
+
/** Collaborators for {@link settleRegistryEvent}. */
|
|
45
|
+
export interface RegistrySettleDeps extends RegistryEventReadDeps {
|
|
46
|
+
readonly protocol: Pick<ProtocolProcessor, "processEscrowsOnce">;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Durable state of one registry event:
|
|
50
|
+
* - `awaiting-anchor`: the group KEL has not accepted the anchor.
|
|
51
|
+
* - `awaiting-receipts`: the anchor is accepted but lacks its witness receipts.
|
|
52
|
+
* - `awaiting-tel`: the anchor is complete; the registry escrows have not accepted the event.
|
|
53
|
+
* - `accepted`: the TEL event is accepted at its sequence number.
|
|
54
|
+
*/
|
|
55
|
+
export type RegistryEventStatus = {
|
|
56
|
+
state: "awaiting-anchor";
|
|
57
|
+
} | {
|
|
58
|
+
state: "awaiting-receipts";
|
|
59
|
+
} | {
|
|
60
|
+
state: "awaiting-tel";
|
|
61
|
+
} | {
|
|
62
|
+
state: "accepted";
|
|
63
|
+
};
|
|
64
|
+
/** Outcome of a wait; `timed-out` carries the status read at the deadline. */
|
|
65
|
+
export type RegistryWaitResult = WaitResult<RegistryEventStatus, {
|
|
66
|
+
deadline: number;
|
|
67
|
+
}>;
|
|
68
|
+
/** Wait choices; the deadline is an epoch-millisecond instant. */
|
|
69
|
+
export interface RegistryWaitOptions {
|
|
70
|
+
deadline: number;
|
|
71
|
+
clock?: Pick<RuntimeClock, "now">;
|
|
72
|
+
}
|
|
73
|
+
/** Reference for a TEL event sealed by a known anchor. */
|
|
74
|
+
export declare function registryEventRef(tel: SerderACDC, anchor: GroupEventRef): RegistryEventRef;
|
|
75
|
+
/** Read the status of one registry event; mutates nothing. */
|
|
76
|
+
export declare function registryEventStatus(deps: RegistryEventReadDeps, ref: RegistryEventRef): RegistryEventStatus;
|
|
77
|
+
/**
|
|
78
|
+
* Local settle step: reprocess the escrows once. That accepts the anchor when
|
|
79
|
+
* the last member signature has arrived and, once the anchor is complete, the
|
|
80
|
+
* sealed TEL event. Does nothing for an event already accepted.
|
|
81
|
+
*/
|
|
82
|
+
export declare function settleRegistryEvent(deps: RegistrySettleDeps, ref: RegistryEventRef): Operation<RegistryEventStatus>;
|
|
83
|
+
/** Observe the event until `accepted` or the deadline passes. Starts no worker; the host settles. */
|
|
84
|
+
export declare function waitForRegistryEvent(deps: RegistryEventReadDeps, ref: RegistryEventRef, { deadline, clock }: RegistryWaitOptions): Operation<RegistryWaitResult>;
|
|
85
|
+
//# sourceMappingURL=registry-settling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry-settling.d.ts","sourceRoot":"","sources":["../../../src/app/credentials/registry-settling.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;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AE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEvF,kEAAkE;AAClE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;CACnC;AAED,0DAA0D;AAC1D,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,GAAG,gBAAgB,CAOzF;AAED,8DAA8D;AAC9D,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,qBAAqB,EAAE,GAAG,EAAE,gBAAgB,GAAG,mBAAmB,CAM3G;AAED;;;;GAIG;AACH,wBAAiB,mBAAmB,CAAC,IAAI,EAAE,kBAAkB,EAAE,GAAG,EAAE,gBAAgB,GAAG,SAAS,CAAC,mBAAmB,CAAC,CAIpH;AAED,qGAAqG;AACrG,wBAAiB,oBAAoB,CACnC,IAAI,EAAE,qBAAqB,EAC3B,GAAG,EAAE,gBAAgB,EACrB,EAAE,QAAQ,EAAE,KAAmB,EAAE,EAAE,mBAAmB,GACrD,SAAS,CAAC,kBAAkB,CAAC,CAQ/B"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { type Operation } from "effection";
|
|
2
|
+
import { type RegistryRoot } from "../../acdc/salting.js";
|
|
3
|
+
import { AppError } from "../../core/errors.js";
|
|
4
|
+
import type { Poster } from "../delivery/forwarding.js";
|
|
5
|
+
import type { Hab } from "../identity/habbing.js";
|
|
6
|
+
import type { RuntimeClock } from "../runtime/runtime-clock.js";
|
|
7
|
+
/** One signed ESSR copy already authorized and prepared by `RegistryRoot.prepare`. */
|
|
8
|
+
export interface RootCopy {
|
|
9
|
+
recipient: string;
|
|
10
|
+
wire: Uint8Array;
|
|
11
|
+
}
|
|
12
|
+
/** Local Poster attempt result for one copy; `sent` means transmitted, not received or retained. */
|
|
13
|
+
export type RootDelivery<C extends RootCopy = RootCopy> = {
|
|
14
|
+
kin: "sent";
|
|
15
|
+
copy: C;
|
|
16
|
+
deliveries: string[];
|
|
17
|
+
} | {
|
|
18
|
+
kin: "failed";
|
|
19
|
+
copy: C;
|
|
20
|
+
error: unknown;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Send each copy from `sender` to its recipient's `credential` mailbox, in
|
|
24
|
+
* order, and return one outcome per copy. A failed copy does not stop later
|
|
25
|
+
* copies. The caller runs `postman.deliverDo` for the duration; Poster wait
|
|
26
|
+
* misuse or closure still throws.
|
|
27
|
+
*/
|
|
28
|
+
export declare function deliverRegistryRoots<C extends RootCopy>(postman: Poster, sender: string, copies: readonly C[]): Operation<RootDelivery<C>[]>;
|
|
29
|
+
/** How one copy attempt ended: `deferred` and `failed` may succeed later; `refused` never will. */
|
|
30
|
+
export type RootCopyKin = "sent" | "deferred" | "refused" | "failed";
|
|
31
|
+
/**
|
|
32
|
+
* The typed outcome of one copy attempt, whatever drove it (`RootReplicator`, the
|
|
33
|
+
* `replicateRootCopies` and `resealRootCopies` loops).
|
|
34
|
+
*
|
|
35
|
+
* `kin` says whether to try again: `sent` means handed to the mailbox, not received
|
|
36
|
+
* (`deliveries` names where, as `RootDelivery`); `deferred` means local evidence
|
|
37
|
+
* (the BUP, key state, a hint) is not yet present; `refused` means the copy is not
|
|
38
|
+
* authorized; `failed` means the budget ended or the Poster could not send it.
|
|
39
|
+
* Unless `sent`, `error` is the error itself. `exchange` is the prepared copy's SAID
|
|
40
|
+
* once one was prepared.
|
|
41
|
+
*/
|
|
42
|
+
export interface RootCopyResult {
|
|
43
|
+
kin: RootCopyKin;
|
|
44
|
+
group: string;
|
|
45
|
+
registry: string;
|
|
46
|
+
sender: string;
|
|
47
|
+
recipient: string;
|
|
48
|
+
exchange?: string;
|
|
49
|
+
deliveries?: string[];
|
|
50
|
+
error?: unknown;
|
|
51
|
+
}
|
|
52
|
+
/** An accepted rotation whose re-seal recipients could not be selected at all. */
|
|
53
|
+
export interface RootExamination {
|
|
54
|
+
group: string;
|
|
55
|
+
rotation: string;
|
|
56
|
+
error: AppError;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Prepare and deliver one `/registry/root` copy for `gid` from its local member to
|
|
60
|
+
* `recipient`, before `deadline` (epoch ms of `clock`).
|
|
61
|
+
*
|
|
62
|
+
* The copy is sealed with `RegistryRoot.prepare` and a per-registry derived hint
|
|
63
|
+
* (`hinted`, so a copy that could never verify is reported, not sent). Any
|
|
64
|
+
* `AppError` ends in the result; any other exception is an invariant failure and
|
|
65
|
+
* escapes. The caller runs `postman.deliverDo` for the duration.
|
|
66
|
+
*/
|
|
67
|
+
export declare function replicateRootCopy(root: RegistryRoot, postman: Poster, clock: RuntimeClock, gid: string, registry: string, recipient: string, deadline: number): Operation<RootCopyResult>;
|
|
68
|
+
/**
|
|
69
|
+
* Send one copy of each of `registries`' held roots for group `ghab` to each
|
|
70
|
+
* recipient, signed by `ghab`'s local member, and return one result per copy.
|
|
71
|
+
*
|
|
72
|
+
* `recipients` defaults to every other current signing member. `timeoutMs` is this
|
|
73
|
+
* replication's own budget: a copy reached after it ends, or still sending when it
|
|
74
|
+
* ends, is `failed`. Nothing is retried or recorded and an `AppError` never
|
|
75
|
+
* escapes. The caller runs `postman.deliverDo` for the duration.
|
|
76
|
+
*/
|
|
77
|
+
export declare function replicateRootCopies(root: RegistryRoot, postman: Poster, clock: RuntimeClock, ghab: Hab, registries: readonly string[], { recipients, timeoutMs }: {
|
|
78
|
+
recipients?: readonly string[];
|
|
79
|
+
timeoutMs: number;
|
|
80
|
+
}): Operation<RootCopyResult[]>;
|
|
81
|
+
/** Budget for re-seal copies from a command without its own `--timeout`, as KERIpy `rootreplicating.Budget`. */
|
|
82
|
+
export declare const RootResealBudgetMs = 30000;
|
|
83
|
+
/**
|
|
84
|
+
* After an accepted group rotation, send held roots to new or rekeyed members.
|
|
85
|
+
*
|
|
86
|
+
* Only a signer of the rotation that held a prior key sends (`RegistryRoot.resealed`),
|
|
87
|
+
* every such signer sends with no election, and a member holding no root for the
|
|
88
|
+
* group sends nothing. `examination` is set when the recipients could not be
|
|
89
|
+
* selected, and then nothing is sent. Fire and forget like `replicateRootCopies`.
|
|
90
|
+
*/
|
|
91
|
+
export declare function resealRootCopies(root: RegistryRoot, postman: Poster, clock: RuntimeClock, ghab: Hab, rotation: string, { timeoutMs }?: {
|
|
92
|
+
timeoutMs?: number;
|
|
93
|
+
}): Operation<{
|
|
94
|
+
examination: RootExamination | null;
|
|
95
|
+
copies: RootCopyResult[];
|
|
96
|
+
}>;
|
|
97
|
+
//# sourceMappingURL=root-replicating.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-replicating.d.ts","sourceRoot":"","sources":["../../../src/app/credentials/root-replicating.ts"],"names":[],"mappings":"AAUA,OAAO,EAAU,KAAK,SAAS,EAAQ,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAEjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,sFAAsF;AACtF,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,oGAAoG;AACpG,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAClD;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,CAAC,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE,GAC9C;IAAE,GAAG,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC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AC,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAC/E,SAAS,CAAC,cAAc,EAAE,CAAC,CAU7B;AAED,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,QAAS,CAAC;AAEzC;;;;;;;GAOG;AACH,wBAAiB,gBAAgB,CAC/B,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,GAAG,EACT,QAAQ,EAAE,MAAM,EAChB,EAAE,SAA8B,EAAE,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAC9D,SAAS,CAAC;IAAE,WAAW,EAAE,eAAe,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,cAAc,EAAE,CAAA;CAAE,CAAC,CAY9E"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Root replication as a runtime reaction: `/registry/root` copies a group member owes
|
|
3
|
+
* are worked out from state and sent without any command asking.
|
|
4
|
+
*
|
|
5
|
+
* A group's registry root is retained by one custodian, so every other current
|
|
6
|
+
* member must be sent a sealed copy (KERIpy `replicate` cue, Locksmith
|
|
7
|
+
* `root_replicating`). Nothing is queued durably. A pass derives what is owed: for each
|
|
8
|
+
* local group, each registry whose root this member holds, and each other current signing
|
|
9
|
+
* member, a copy is owed unless `Baser.rrsn` shows one sent to the key the member
|
|
10
|
+
* currently contributes to the group. A new member has no row and a rekeyed member's row
|
|
11
|
+
* holds its old key, so both are owed a (re-sealed) copy after an accepted rotation. The
|
|
12
|
+
* marker is written when the Poster reports a copy sent, and holds the recipient's public
|
|
13
|
+
* key, never a root. A crash between send and marker costs one harmless resend, since
|
|
14
|
+
* receiving is idempotent.
|
|
15
|
+
*
|
|
16
|
+
* A pass runs for a group on the replicator's first pass, after its latest establishment
|
|
17
|
+
* changes (an accepted rotation), and when the Dhke completion cue prompts it, so a cue
|
|
18
|
+
* lost in a crash is recovered by the next start. Sending a root a member already holds to
|
|
19
|
+
* the group's current members is not a new consent, so nothing here asks anyone.
|
|
20
|
+
*
|
|
21
|
+
* A copy that cannot be prepared or delivered stays owed and is retried with a
|
|
22
|
+
* process-local backoff; `status` reports it until it goes.
|
|
23
|
+
*/
|
|
24
|
+
import type { Operation } from "effection";
|
|
25
|
+
import type { DhkeReplicate } from "../../acdc/dhking.js";
|
|
26
|
+
import type { RegistryRoot } from "../../acdc/salting.js";
|
|
27
|
+
import type { Poster } from "../delivery/forwarding.js";
|
|
28
|
+
import type { Hab } from "../identity/habbing.js";
|
|
29
|
+
import type { RuntimeClock } from "../runtime/runtime-clock.js";
|
|
30
|
+
import type { ChangeSink } from "../runtime/workflow-contract.js";
|
|
31
|
+
import { type RootCopyResult } from "./root-replicating.js";
|
|
32
|
+
/** Most copies one `processOnce` attempts, so a first pass over a large store cannot stall the runtime. */
|
|
33
|
+
export declare const RootSendsPerPass = 4;
|
|
34
|
+
/** Process-local retry delay after a copy's first failed attempt; doubles per attempt up to {@link RootRetryMaxMs}. */
|
|
35
|
+
export declare const RootRetryBaseMs = 1000;
|
|
36
|
+
export declare const RootRetryMaxMs = 300000;
|
|
37
|
+
/** A copy still owed and the error of its last attempt (null before the first attempt). */
|
|
38
|
+
export interface OwedCopyStatus {
|
|
39
|
+
group: string;
|
|
40
|
+
registry: string;
|
|
41
|
+
recipient: string;
|
|
42
|
+
attempts: number;
|
|
43
|
+
lastFailure: unknown;
|
|
44
|
+
}
|
|
45
|
+
export interface RootReplicatorStatus {
|
|
46
|
+
owed: OwedCopyStatus[];
|
|
47
|
+
}
|
|
48
|
+
/** The declared collaborators; no runtime bundle. `postman.deliverDo` is run by the host. */
|
|
49
|
+
export interface RootReplicatorDeps {
|
|
50
|
+
root: RegistryRoot;
|
|
51
|
+
postman: Poster;
|
|
52
|
+
clock: RuntimeClock;
|
|
53
|
+
changes?: ChangeSink;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Derives, sends and records registry root copies for a wallet's local groups.
|
|
57
|
+
*
|
|
58
|
+
* Holds no durable state of its own beyond `Baser.rrsn`; what is pending and the
|
|
59
|
+
* backoff are process-local and rebuilt from state. A host calls `prompt` (or
|
|
60
|
+
* `replicate`) for each Dhke cue and `processOnce` on its loop; both are safe to repeat,
|
|
61
|
+
* and overlapping `processOnce` calls never send one copy twice.
|
|
62
|
+
*/
|
|
63
|
+
export declare class RootReplicator {
|
|
64
|
+
#private;
|
|
65
|
+
constructor(deps: RootReplicatorDeps);
|
|
66
|
+
/** Re-derive `group`'s owed copies on the next pass and retry its failed copies at once. */
|
|
67
|
+
prompt(group: string): void;
|
|
68
|
+
/** The Dhke completion cue: a prompt to run the pass now, not the source of truth. */
|
|
69
|
+
replicate(cue: Pick<DhkeReplicate, "gid" | "registries">): void;
|
|
70
|
+
/**
|
|
71
|
+
* Derive what is owed, then send up to {@link RootSendsPerPass} due copies within
|
|
72
|
+
* `timeoutMs`. A copy is recorded when sent and kept for retry otherwise. Never throws
|
|
73
|
+
* on a remote failure; every attempt is returned. The host runs `postman.deliverDo`.
|
|
74
|
+
*/
|
|
75
|
+
processOnce({ timeoutMs }?: {
|
|
76
|
+
timeoutMs?: number;
|
|
77
|
+
}): Operation<RootCopyResult[]>;
|
|
78
|
+
/**
|
|
79
|
+
* The fixed-tock pass: re-derive only the groups that were prompted, then send up to {@link RootSendsPerPass}
|
|
80
|
+
* due copies. A rotation nobody prompted for waits for {@link RootReplicator.sweep}.
|
|
81
|
+
*/
|
|
82
|
+
processDue({ timeoutMs }?: {
|
|
83
|
+
timeoutMs?: number;
|
|
84
|
+
}): Operation<RootCopyResult[]>;
|
|
85
|
+
/**
|
|
86
|
+
* Send each registry's root to each recipient now, whatever was sent before, as an
|
|
87
|
+
* explicit command does; a sent copy is recorded like any other. `recipients` defaults
|
|
88
|
+
* to every other current signing member.
|
|
89
|
+
*/
|
|
90
|
+
send(ghab: Hab, registries: readonly string[], { recipients, timeoutMs }: {
|
|
91
|
+
recipients?: readonly string[];
|
|
92
|
+
timeoutMs: number;
|
|
93
|
+
}): Operation<RootCopyResult[]>;
|
|
94
|
+
/** Whether a copy is owed or a group is waiting to be re-derived; in memory, reads no store. */
|
|
95
|
+
pending(): boolean;
|
|
96
|
+
/** Pure read: what is owed and why it has not gone yet. */
|
|
97
|
+
status(): RootReplicatorStatus;
|
|
98
|
+
/**
|
|
99
|
+
* The full check: drop markers of groups that are gone (once) and re-derive each local group that is new or
|
|
100
|
+
* whose establishment event changed. One keyed read per local identifier, so a host runs it every
|
|
101
|
+
* many tocks, not every tock.
|
|
102
|
+
*/
|
|
103
|
+
sweep(): void;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=root-replicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-replicator.d.ts","sourceRoot":"","sources":["../../../src/app/credentials/root-replicator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAqB,KAAK,cAAc,EAAsB,MAAM,uBAAuB,CAAC;AAEnG,2GAA2G;AAC3G,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAClC,uHAAuH;AACvH,eAAO,MAAM,eAAe,OAAQ,CAAC;AACrC,eAAO,MAAM,cAAc,SAAU,CAAC;AAEtC,2FAA2F;AAC3F,MAAM,WAA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MAAM,IAAI,oBAAoB;IAqC9B;;;;OAIG;IACH,KAAK,IAAI,IAAI;CA0Cd"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Library status and wait for v1 TEL publication, owned here so that every host
|
|
3
|
+
* (CLI, wallet, service) observes one definition of "the TEL event is done".
|
|
4
|
+
*
|
|
5
|
+
* A TEL event is complete when the issuer's KEL holds the anchoring event, that
|
|
6
|
+
* event has its witness receipts, and the local publication owner finished
|
|
7
|
+
* disseminating it (`TelPublication`'s `ctel.`). Issuing a credential also needs
|
|
8
|
+
* the saved credential evidence: publication alone is not verifier acceptance.
|
|
9
|
+
*
|
|
10
|
+
* `telEventStatus` is a pure read of durable state. `waitForTelEvent` only
|
|
11
|
+
* observes: it starts no runtime workers, so the host must already run the
|
|
12
|
+
* publication owner (a wallet's runtime, or the CLI's `withRuntimeWorkers`), and
|
|
13
|
+
* an expired deadline is a returned `timed-out` value. See
|
|
14
|
+
* `app/runtime/workflow-contract.ts`.
|
|
15
|
+
*/
|
|
16
|
+
import type { Operation } from "effection";
|
|
17
|
+
import type { TelPublication } from "../../vdr/tel-publication.js";
|
|
18
|
+
import { type RuntimeClock } from "../runtime/runtime-clock.js";
|
|
19
|
+
import { type WaitResult } from "../runtime/workflow-contract.js";
|
|
20
|
+
/** Elapsed milliseconds between reads of a TEL wait. */
|
|
21
|
+
export declare const TEL_WAIT_POLL_MS = 50;
|
|
22
|
+
/** Collaborator for status and waits: the publication owner's durable facts. */
|
|
23
|
+
export interface TelCompletionDeps {
|
|
24
|
+
readonly publication: Pick<TelPublication, "progress" | "reger">;
|
|
25
|
+
}
|
|
26
|
+
/** Steps a tracked TEL event can be waiting on. */
|
|
27
|
+
export type TelPhase = "awaitingAnchor" | "awaitingReceipts" | "awaitingPublication" | "awaitingCredentialSave";
|
|
28
|
+
/** Durable status of one TEL event; `unknown` means publication does not track it. */
|
|
29
|
+
export type TelEventStatus = {
|
|
30
|
+
state: "active";
|
|
31
|
+
phase: TelPhase;
|
|
32
|
+
} | {
|
|
33
|
+
state: "complete";
|
|
34
|
+
} | {
|
|
35
|
+
state: "unknown";
|
|
36
|
+
reason: "not-tracked";
|
|
37
|
+
};
|
|
38
|
+
/** Outcome of a wait; `timed-out` carries the status read at the deadline. */
|
|
39
|
+
export type TelWaitResult = WaitResult<TelEventStatus, {
|
|
40
|
+
deadline: number;
|
|
41
|
+
}>;
|
|
42
|
+
/** Wait choices; the deadline is an epoch-millisecond instant so callers can start it before authoring. */
|
|
43
|
+
export interface TelWaitOptions {
|
|
44
|
+
deadline: number;
|
|
45
|
+
clock?: Pick<RuntimeClock, "now">;
|
|
46
|
+
}
|
|
47
|
+
/** Read the status of the TEL event `pre` at `sn`; mutates nothing. */
|
|
48
|
+
export declare function telEventStatus(deps: TelCompletionDeps, pre: string, sn?: number): TelEventStatus;
|
|
49
|
+
/** Status of an issued credential: its TEL issuance event plus saved credential evidence. */
|
|
50
|
+
export declare function issuedCredentialStatus(deps: TelCompletionDeps, said: string): TelEventStatus;
|
|
51
|
+
/** Observe one exact TEL coordinate until complete or the deadline passes. Starts no worker. */
|
|
52
|
+
export declare function waitForTelEvent(deps: TelCompletionDeps, pre: string, sn: number, options: TelWaitOptions): Operation<TelWaitResult>;
|
|
53
|
+
/** Observe an issuance until its TEL event is complete and the credential is saved. Starts no worker. */
|
|
54
|
+
export declare function waitForIssuedCredential(deps: TelCompletionDeps, said: string, options: TelWaitOptions): Operation<TelWaitResult>;
|
|
55
|
+
//# sourceMappingURL=tel-completion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tel-completion.d.ts","sourceRoot":"","sources":["../../../src/app/credentials/tel-completion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,KAAK,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AAE,cAAc,GACtB,SAAS,CAAC,aAAa,CAAC,CAE1B;AAED,yGAAyG;AACzG,wBAAiB,uBAAuB,CACtC,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,cAAc,GACtB,SAAS,CAAC,aAAa,CAAC,CAE1B"}
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
*
|
|
8
8
|
* TypeScript divergence:
|
|
9
9
|
* - ordinary outcomes are explicit decisions instead of exception-only control
|
|
10
|
-
* flow; durable corruption and unsupported `DI2I` still
|
|
10
|
+
* flow; durable corruption and unsupported delegated `DI2I`/`DI1I` still
|
|
11
|
+
* fail explicitly
|
|
11
12
|
*/
|
|
12
13
|
import { Diger, NumberPrimitive, Prefixer, SerderACDC } from "cesr-ts";
|
|
13
14
|
import type { AgentCue } from "../../core/cues.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifying.d.ts","sourceRoot":"","sources":["../../../src/app/credentials/verifying.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"verifying.d.ts","sourceRoot":"","sources":["../../../src/app/credentials/verifying.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;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,G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O;IAKX,gFAAgF;IAChF,cAAc,IAAI,IAAI;IAMtB,uEAAuE;IACvE,cAAc,CAAC,IAAI,EAAE;QACnB,MAAM,EAAE,UAAU,CAAC;QACnB,QAAQ,EAAE,QAAQ,CAAC;QACnB,MAAM,EAAE,eAAe,CAAC;QACxB,MAAM,EAAE,KAAK,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;IAwChG;;;;;;;;;OASG;IACH,OAAO,CAAC,aAAa;IA6CrB,OAAO,CAAC,sBAAsB;CAO/B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Operation } from "effection";
|
|
2
2
|
import { Deck } from "../../core/deck.js";
|
|
3
|
+
import { ValidationError } from "../../core/errors.js";
|
|
3
4
|
import type { Mailboxer } from "../../db/mailbox/mailboxing.js";
|
|
4
5
|
import type { Habery } from "../identity/habbing.js";
|
|
5
6
|
import type { ProtocolProcessor } from "../protocol/protocol-processing.js";
|
|
@@ -56,6 +57,14 @@ export type PosterOutcome = {
|
|
|
56
57
|
/** Observed failure with original status/cause, including any aggregated target failures. */
|
|
57
58
|
error: unknown;
|
|
58
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* A v2 message refused for a peer this node must treat as v1.
|
|
62
|
+
*
|
|
63
|
+
* A v1 parser treats a v2 version string as an extraction failure and discards the rest of
|
|
64
|
+
* its stream, so sending would lose more than this one message.
|
|
65
|
+
*/
|
|
66
|
+
export declare class PeerVersionError extends ValidationError {
|
|
67
|
+
}
|
|
59
68
|
/**
|
|
60
69
|
* Deliver queued signed messages using KERIpy's ordinary Poster role traversal.
|
|
61
70
|
*
|
|
@@ -202,6 +211,12 @@ export declare class Poster {
|
|
|
202
211
|
* @returns Ordered role groups; no eligible role returns an empty array.
|
|
203
212
|
*/
|
|
204
213
|
private findBytesRoutes;
|
|
214
|
+
/**
|
|
215
|
+
* Whether `src` has any eligible role (controller, agent, mailbox or witness) from which to reach `dest`, as
|
|
216
|
+
* delivery would find it now. A pure read of accepted endpoint state: it says nothing about whether the
|
|
217
|
+
* endpoint answers. A proposer uses it to refuse before it creates anything it could not publish.
|
|
218
|
+
*/
|
|
219
|
+
canReach(src: string, dest: string, topic?: string): boolean;
|
|
205
220
|
/**
|
|
206
221
|
* Prepare a target using the supplied wire and selected endpoint.
|
|
207
222
|
*
|
|
@@ -210,6 +225,7 @@ export declare class Poster {
|
|
|
210
225
|
* @param endpoint One selected endpoint AID and URL from the route.
|
|
211
226
|
* @param evt Original signed source and concrete ordinary/stream operation.
|
|
212
227
|
* @returns A prepared remote target, or stored after authorized local mailbox publication.
|
|
228
|
+
* @throws PeerVersionError when the wire needs a v2 reader that this peer is known not to be.
|
|
213
229
|
*/
|
|
214
230
|
private prepareBytesTarget;
|
|
215
231
|
/**
|
|
@@ -1 +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;
|
|
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;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,KAAK,EAAO,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAI1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;A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AK;IASb;;;;;OAKG;IACH,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,IAAI;IAWxC;;;;;;;;OAQG;IACF,IAAI,CAAC,GAAG,EAAE,WAAW,GAAG,SAAS,CAAC,aAAa,CAAC;IAqBjD;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAWnB,yFAAyF;IACxF,SAAS,IAAI,SAAS,CAAC,IAAI,CAAC;IAO7B,sFAAsF;IACtF,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,iFAAiF;IACjF,UAAU,IAAI,IAAI;IAIlB,0FAA0F;IACzF,KAAK,IAAI,SAAS,CAAC,IAAI,CAAC;IAUzB,mGAAmG;IACnG,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC;IAyC1B;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAUtB;;;;;;;;;;OAUG;IACH,OAAO,CAAE,YAAY;IAgErB,mGAAmG;IACnG,OAAO,CAAE,kBAAkB;IAwC3B;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,eAAe;IA2BvB;;;;OAIG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,SAAa,GAAG,OAAO;IAKhE;;;;;;;;;OASG;IACH,OAAO,CAAE,kBAAkB;IAoB3B;;;;;;;;;OASG;IACH,OAAO,CAAE,sBAAsB;CAoDhC"}
|
|
@@ -193,6 +193,8 @@ export declare class Exchanger {
|
|
|
193
193
|
addHandler(handler: ExchangeRouteHandler): void;
|
|
194
194
|
/** Resolve the configured body-version route owner without dispatching or changing evidence. */
|
|
195
195
|
handlerFor(serder: SerderKERI): ExchangeRouteHandler | undefined;
|
|
196
|
+
/** Resolve the owner one route and protocol major would dispatch to, without a message body. */
|
|
197
|
+
routeHandler(route: string, major: number): ExchangeRouteHandler | undefined;
|
|
196
198
|
/**
|
|
197
199
|
* Verify, persist, and dispatch one inbound `exn`.
|
|
198
200
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exchanging.d.ts","sourceRoot":"","sources":["../../../src/app/exchanges/exchanging.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,EAQL,QAAQ,EAER,KAAK,SAAS,EACd,KAAK,UAAU,EAEf,KAAK,UAAU,EAGf,KAAK,MAAM,EAEX,KAAK,UAAU,EAChB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE1G,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAE1B,MAAM,0CAA0C,CAAC;AAMlD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAExF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"exchanging.d.ts","sourceRoot":"","sources":["../../../src/app/exchanges/exchanging.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,EAQL,QAAQ,EAER,KAAK,SAAS,EACd,KAAK,UAAU,EAEf,KAAK,UAAU,EAGf,KAAK,MAAM,EAEX,KAAK,UAAU,EAChB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,C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