keri-ts 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/esm/keri/npm/src/_dnt.polyfills.js +1 -127
  2. package/esm/keri/npm/src/acdc/dhking.js +6 -1
  3. package/esm/keri/npm/src/acdc/salting.js +18 -0
  4. package/esm/keri/npm/src/acdc/scheming.js +31 -18
  5. package/esm/keri/npm/src/acdc/unblinding.js +112 -6
  6. package/esm/keri/npm/src/app/delivery/forwarding.js +9 -0
  7. package/esm/keri/npm/src/app/delivery/respondant.js +21 -0
  8. package/esm/keri/npm/src/app/identity/delegating.js +2 -5
  9. package/esm/keri/npm/src/app/identity/habbing.js +52 -6
  10. package/esm/keri/npm/src/app/identity/keeping.js +38 -1
  11. package/esm/keri/npm/src/app/ipex/group-issuance.js +9 -6
  12. package/esm/keri/npm/src/app/ipex/ipex-building.js +2 -1
  13. package/esm/keri/npm/src/app/ipex/ipex-discloser.js +32 -8
  14. package/esm/keri/npm/src/app/ipex/issuance.js +142 -43
  15. package/esm/keri/npm/src/app/ipex/pending-presentations.js +50 -0
  16. package/esm/keri/npm/src/app/ipex/presenting.js +36 -1
  17. package/esm/keri/npm/src/app/ipex/unblinding-workflow.js +150 -36
  18. package/esm/keri/npm/src/app/mailbox/mailbox-poller.js +37 -9
  19. package/esm/keri/npm/src/app/mailbox/mailboxing.js +9 -3
  20. package/esm/keri/npm/src/app/multisig/counseling.js +76 -3
  21. package/esm/keri/npm/src/app/multisig/event-forwarding.js +27 -0
  22. package/esm/keri/npm/src/app/multisig/group-members.js +22 -0
  23. package/esm/keri/npm/src/app/multisig/grouping.js +120 -1
  24. package/esm/keri/npm/src/app/multisig/proposals.js +1 -1
  25. package/esm/keri/npm/src/app/multisig/replace-member.js +34 -0
  26. package/esm/keri/npm/src/app/runtime/agent-runtime.js +43 -23
  27. package/esm/keri/npm/src/app/runtime/ipex-auxiliaries.js +59 -25
  28. package/esm/keri/npm/src/app/runtime/operation-owners.js +1 -0
  29. package/esm/keri/npm/src/app/runtime/signer-conditions.js +51 -0
  30. package/esm/keri/npm/src/app/transport/cesr-egress.js +6 -0
  31. package/esm/keri/npm/src/core/errors.js +91 -3
  32. package/esm/keri/npm/src/core/json-schema-meta.js +688 -0
  33. package/esm/keri/npm/src/core/json-schema.js +147 -0
  34. package/esm/keri/npm/src/core/kel/eventing.js +20 -2
  35. package/esm/keri/npm/src/core/scheming.js +27 -26
  36. package/esm/keri/npm/src/db/replay/tel-replay.js +6 -0
  37. package/esm/keri/npm/src/db/store-lock.js +12 -0
  38. package/esm/keri/npm/src/runtime/index.js +9 -7
  39. package/esm/keri/npm/src/runtime/web/output-barrier.js +9 -0
  40. package/esm/keri/npm/src/version.js +2 -2
  41. package/package.json +2 -2
  42. package/types/_dnt.polyfills.d.ts +0 -99
  43. package/types/_dnt.polyfills.d.ts.map +1 -1
  44. package/types/acdc/dhking.d.ts.map +1 -1
  45. package/types/acdc/salting.d.ts +2 -0
  46. package/types/acdc/salting.d.ts.map +1 -1
  47. package/types/acdc/scheming.d.ts +2 -0
  48. package/types/acdc/scheming.d.ts.map +1 -1
  49. package/types/acdc/unblinding.d.ts +16 -5
  50. package/types/acdc/unblinding.d.ts.map +1 -1
  51. package/types/app/delivery/forwarding.d.ts +1 -0
  52. package/types/app/delivery/forwarding.d.ts.map +1 -1
  53. package/types/app/delivery/respondant.d.ts +7 -0
  54. package/types/app/delivery/respondant.d.ts.map +1 -1
  55. package/types/app/identity/delegating.d.ts.map +1 -1
  56. package/types/app/identity/habbing.d.ts +21 -1
  57. package/types/app/identity/habbing.d.ts.map +1 -1
  58. package/types/app/identity/keeping.d.ts +18 -0
  59. package/types/app/identity/keeping.d.ts.map +1 -1
  60. package/types/app/ipex/group-issuance.d.ts.map +1 -1
  61. package/types/app/ipex/ipex-building.d.ts.map +1 -1
  62. package/types/app/ipex/ipex-discloser.d.ts +31 -19
  63. package/types/app/ipex/ipex-discloser.d.ts.map +1 -1
  64. package/types/app/ipex/issuance.d.ts +46 -10
  65. package/types/app/ipex/issuance.d.ts.map +1 -1
  66. package/types/app/ipex/pending-presentations.d.ts +62 -1
  67. package/types/app/ipex/pending-presentations.d.ts.map +1 -1
  68. package/types/app/ipex/presenting.d.ts +39 -4
  69. package/types/app/ipex/presenting.d.ts.map +1 -1
  70. package/types/app/ipex/unblinding-workflow.d.ts +51 -12
  71. package/types/app/ipex/unblinding-workflow.d.ts.map +1 -1
  72. package/types/app/mailbox/mailbox-poller.d.ts +11 -2
  73. package/types/app/mailbox/mailbox-poller.d.ts.map +1 -1
  74. package/types/app/mailbox/mailboxing.d.ts +4 -1
  75. package/types/app/mailbox/mailboxing.d.ts.map +1 -1
  76. package/types/app/multisig/counseling.d.ts +22 -1
  77. package/types/app/multisig/counseling.d.ts.map +1 -1
  78. package/types/app/multisig/event-forwarding.d.ts +6 -0
  79. package/types/app/multisig/event-forwarding.d.ts.map +1 -0
  80. package/types/app/multisig/group-members.d.ts +6 -0
  81. package/types/app/multisig/group-members.d.ts.map +1 -1
  82. package/types/app/multisig/grouping.d.ts +26 -0
  83. package/types/app/multisig/grouping.d.ts.map +1 -1
  84. package/types/app/multisig/proposals.d.ts +3 -2
  85. package/types/app/multisig/proposals.d.ts.map +1 -1
  86. package/types/app/multisig/proposing.d.ts +8 -1
  87. package/types/app/multisig/proposing.d.ts.map +1 -1
  88. package/types/app/multisig/replace-member.d.ts +30 -0
  89. package/types/app/multisig/replace-member.d.ts.map +1 -0
  90. package/types/app/runtime/agent-runtime.d.ts +3 -0
  91. package/types/app/runtime/agent-runtime.d.ts.map +1 -1
  92. package/types/app/runtime/ipex-auxiliaries.d.ts +8 -3
  93. package/types/app/runtime/ipex-auxiliaries.d.ts.map +1 -1
  94. package/types/app/runtime/operation-owners.d.ts.map +1 -1
  95. package/types/app/runtime/signer-conditions.d.ts +32 -0
  96. package/types/app/runtime/signer-conditions.d.ts.map +1 -0
  97. package/types/app/transport/cesr-egress.d.ts +1 -0
  98. package/types/app/transport/cesr-egress.d.ts.map +1 -1
  99. package/types/core/errors.d.ts +20 -1
  100. package/types/core/errors.d.ts.map +1 -1
  101. package/types/core/json-schema-meta.d.ts +19 -0
  102. package/types/core/json-schema-meta.d.ts.map +1 -0
  103. package/types/core/json-schema.d.ts +29 -0
  104. package/types/core/json-schema.d.ts.map +1 -0
  105. package/types/core/scheming.d.ts +1 -0
  106. package/types/core/scheming.d.ts.map +1 -1
  107. package/types/db/replay/tel-replay.d.ts +1 -0
  108. package/types/db/replay/tel-replay.d.ts.map +1 -1
  109. package/types/db/store-lock.d.ts +2 -0
  110. package/types/db/store-lock.d.ts.map +1 -1
  111. package/types/runtime/index.d.ts +11 -9
  112. package/types/runtime/index.d.ts.map +1 -1
  113. package/types/runtime/web/output-barrier.d.ts +1 -0
  114. package/types/runtime/web/output-barrier.d.ts.map +1 -1
  115. package/types/version.d.ts +2 -2
@@ -0,0 +1,147 @@
1
+ /**
2
+ * JSON Schema validation that generates no code.
3
+ *
4
+ * Ajv compiles each schema to JavaScript with `new Function`, which a page under a strict Content-Security-Policy
5
+ * (`script-src 'self'`, no `'unsafe-eval'`) refuses, so no schema could be pinned or validated there. This module
6
+ * interprets schemas with `@cfworker/json-schema` instead, in every environment: one path, not a browser fallback.
7
+ *
8
+ * It matches the behaviour KERIpy and the Ajv setup it replaces had, not the validator's defaults:
9
+ * - `format` never rejects (neither KERIpy's validator nor Ajv without a format checker has one), so `format` is
10
+ * removed from a schema before it is prepared;
11
+ * - a schema document is checked against its dialect's meta-schema, and every `pattern` and `patternProperties` key
12
+ * must be a regular expression the engine accepts, since a bad one would otherwise surface at validation time;
13
+ * - unknown keywords are annotations, except `$dynamicRef`, which the engine cannot interpret and so refuses.
14
+ */
15
+ import { Validator } from "@cfworker/json-schema";
16
+ import { ValidationError } from "./errors.js";
17
+ import { META_2020_12, META_DRAFT_07 } from "./json-schema-meta.js";
18
+ const ROOT_2020_12 = "https://json-schema.org/draft/2020-12/schema";
19
+ /** Keyword positions that hold a subschema, a map of subschemas, or a list of them (the rest is data). */
20
+ const SINGLES = [
21
+ "items",
22
+ "contains",
23
+ "additionalProperties",
24
+ "unevaluatedProperties",
25
+ "propertyNames",
26
+ "not",
27
+ "if",
28
+ "then",
29
+ "else",
30
+ "contentSchema",
31
+ "unevaluatedItems",
32
+ "additionalItems",
33
+ ];
34
+ const MAPS = ["$defs", "definitions", "properties", "patternProperties", "dependentSchemas", "dependencies"];
35
+ const LISTS = ["prefixItems", "allOf", "anyOf", "oneOf", "items"];
36
+ function object(value) {
37
+ return value !== null && typeof value === "object" && !Array.isArray(value);
38
+ }
39
+ /** Visit every subschema of `schema` (itself included), by keyword position, never entering data keywords. */
40
+ function visit(schema, each) {
41
+ if (!object(schema))
42
+ return;
43
+ each(schema);
44
+ for (const key of SINGLES)
45
+ visit(schema[key], each);
46
+ for (const key of MAPS) {
47
+ const map = schema[key];
48
+ if (object(map))
49
+ for (const value of Object.values(map))
50
+ visit(value, each);
51
+ }
52
+ for (const key of LISTS) {
53
+ const list = schema[key];
54
+ if (Array.isArray(list))
55
+ for (const value of list)
56
+ visit(value, each);
57
+ }
58
+ }
59
+ /** A deep copy of `schema` with every `format` keyword removed; a property named `format` is data and stays. */
60
+ export function withoutFormats(schema) {
61
+ const copy = structuredClone(schema);
62
+ visit(copy, (each) => {
63
+ if (typeof each.format === "string")
64
+ delete each.format;
65
+ });
66
+ return copy;
67
+ }
68
+ /** Throw the `SyntaxError` of the first `pattern` or `patternProperties` key that is not a valid regular expression. */
69
+ function assertRegularExpressions(schema) {
70
+ visit(schema, (each) => {
71
+ if (typeof each.pattern === "string")
72
+ new RegExp(each.pattern, "u");
73
+ if (object(each.patternProperties)) {
74
+ for (const pattern of Object.keys(each.patternProperties))
75
+ new RegExp(pattern, "u");
76
+ }
77
+ });
78
+ }
79
+ const meta = {};
80
+ /** The meta-schema validator of a dialect, built once. */
81
+ function metaValidator(dialect) {
82
+ const known = meta[dialect];
83
+ if (known)
84
+ return known;
85
+ let built;
86
+ if (dialect === "7")
87
+ built = new Validator(META_DRAFT_07, "7", false);
88
+ else {
89
+ built = new Validator(META_2020_12[0], "2020-12", false);
90
+ for (const vocabulary of META_2020_12.slice(1))
91
+ built.addSchema(vocabulary);
92
+ }
93
+ return meta[dialect] = built;
94
+ }
95
+ /** The dialect a schema document selects through `$schema`. */
96
+ export function dialectOf(schema) {
97
+ return typeof schema.$schema === "string" && schema.$schema.includes("2020-12") ? "2020-12" : "7";
98
+ }
99
+ /**
100
+ * Throw unless `schema` is a valid schema document of `dialect`, that is valid against the dialect's meta-schema. The
101
+ * error says what failed. A regular expression the engine would refuse is not checked here: it surfaces when the
102
+ * schema is prepared, as it did with Ajv.
103
+ */
104
+ export function checkSchemaDocument(schema, dialect) {
105
+ if (!object(schema) && typeof schema !== "boolean") {
106
+ throw new Error("A schema document must be an object or a boolean");
107
+ }
108
+ // Ajv resolves a document's own `$schema` and refuses one whose meta-schema it does not know.
109
+ const named = object(schema) && typeof schema.$schema === "string" ? schema.$schema.replace(/#$/, "") : undefined;
110
+ const known = dialect === "2020-12" ? ROOT_2020_12 : "http://json-schema.org/draft-07/schema";
111
+ if (named !== undefined && named !== known) {
112
+ throw new Error(`No meta-schema ${named} for a ${dialect} schema document`);
113
+ }
114
+ const result = metaValidator(dialect).validate(schema);
115
+ if (!result.valid) {
116
+ throw new Error(`Schema does not conform to the ${dialect} meta-schema: ${describe(result.errors)}`);
117
+ }
118
+ }
119
+ /** Readable line per failed keyword, such as `data/credential/a: must be a string`. */
120
+ function describe(errors) {
121
+ return errors.map(({ instanceLocation, error }) => `data${instanceLocation.replace(/^#/, "")}: ${error}`).join("; ");
122
+ }
123
+ /**
124
+ * Prepare `schemas` for validation against `schemas[0]`: the first is the root, the rest are resources its `$ref`s
125
+ * may reach by `$id`. Formats are ignored. A regular expression the engine does not accept throws its `SyntaxError`,
126
+ * here, not at validation time.
127
+ */
128
+ export function prepareSchemas(schemas, dialect) {
129
+ const [root, ...rest] = schemas.map(withoutFormats);
130
+ for (const schema of [root, ...rest]) {
131
+ assertRegularExpressions(schema);
132
+ // The engine ignores `$dynamicRef`, which would silently weaken validation: refuse it instead.
133
+ visit(schema, (each) => {
134
+ if ("$dynamicRef" in each)
135
+ throw new ValidationError("A schema using $dynamicRef cannot be validated here");
136
+ });
137
+ }
138
+ const validator = new Validator(root, dialect, true);
139
+ for (const schema of rest)
140
+ validator.addSchema(schema);
141
+ return {
142
+ validate(data) {
143
+ const result = validator.validate(data);
144
+ return { valid: result.valid, errors: result.valid ? "" : describe(result.errors) };
145
+ },
146
+ };
147
+ }
@@ -2379,7 +2379,10 @@ function queryRequester(envelope) {
2379
2379
  * unless the sender used ESSR, so this check is the read protection. KERIpy hosts are open: they do no read
2380
2380
  * authorization of `mbx` queries, so a poll KERIpy accepts can be refused here.
2381
2381
  *
2382
- * Two refusals are by design. The host must hold the member's KEL: the keri-ts poller and `KelPublisher` submit it
2382
+ * A non-transferable member needs nothing but the group's KEL on the host: its key is its identifier, so a valid
2383
+ * signature by a key in the group's current list proves it (see {@link provesNonTransferableMember}).
2384
+ *
2385
+ * Two refusals are by design. The host must hold a transferable member's KEL: the keri-ts poller and `KelPublisher` submit it
2383
2386
  * (see `collectKelSubmission`), but a KERIpy member's poller does not, so its KEL has to reach the host by OOBI or
2384
2387
  * a mailbox add, and until then its poll is refused as unauthorized. And a rotation-only member (named in the
2385
2388
  * group's `rmids` but not its `smids`) holds no current group key, so it is refused until a rotation makes it a
@@ -2392,8 +2395,9 @@ function authenticatesMailboxQuery(envelope, recipient, db) {
2392
2395
  && cigar.verfer.verify(cigar.raw, envelope.serder.raw));
2393
2396
  }
2394
2397
  const requester = envelope.source?.qb64;
2398
+ // A non-transferable member signs with a non-indexed signature (a cigar) and has no source seal.
2395
2399
  if (!requester)
2396
- return false;
2400
+ return provesNonTransferableMember(envelope, recipient);
2397
2401
  if (requester === recipient.pre)
2398
2402
  return satisfiesThreshold(envelope, recipient);
2399
2403
  // A group's poll is signed by one of its local members (the poller cannot sign for the group alone). Accept a
@@ -2404,6 +2408,20 @@ function authenticatesMailboxQuery(envelope, recipient, db) {
2404
2408
  return false;
2405
2409
  return provesGroupKeyControl(envelope, member, recipient, db);
2406
2410
  }
2411
+ /**
2412
+ * Whether a non-transferable member is reading its group's mailbox: some cigar on the poll is a valid signature
2413
+ * over it by a non-transferable key (the key is the member's whole identifier, so its prefix is the public key
2414
+ * and the host needs no KEL for it), and that same key is in the group's current key list. The signature is the
2415
+ * proof of control; merely naming the key, or signing with a different one while claiming the member's prefix,
2416
+ * proves nothing and is refused, as is a member whose key has left the group's current list.
2417
+ */
2418
+ function provesNonTransferableMember(envelope, group) {
2419
+ const groupKeys = new Set(group.verfers.map((verfer) => verfer.qb64));
2420
+ return (envelope.cigars ?? []).some((cigar) => !!cigar.verfer
2421
+ && !cigar.verfer.transferable
2422
+ && groupKeys.has(cigar.verfer.qb64)
2423
+ && cigar.verfer.verify(cigar.raw, envelope.serder.raw));
2424
+ }
2407
2425
  /**
2408
2426
  * Whether `member` provably controlled a key in `group`'s current key list, by either of two proofs.
2409
2427
  *
@@ -1,3 +1,15 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
6
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7
+ if (kind === "m") throw new TypeError("Private method is not writable");
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
10
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
+ };
12
+ var _Schemer_prepared;
1
13
  /**
2
14
  * JSON Schema SAD support for schema data OOBIs.
3
15
  *
@@ -7,9 +19,8 @@
7
19
  * - raw schema bytes remain the stored value in `schema.`
8
20
  */
9
21
  import { DigDex, dumps, Saider } from "cesr-ts";
10
- import Ajv from "ajv";
11
- import Ajv2020 from "ajv/dist/2020.js";
12
22
  import { ValidationError } from "./errors.js";
23
+ import { checkSchemaDocument, dialectOf, prepareSchemas } from "./json-schema.js";
13
24
  /**
14
25
  * Verified JSON schema SAD wrapper.
15
26
  *
@@ -45,6 +56,8 @@ export class Schemer {
45
56
  writable: true,
46
57
  value: void 0
47
58
  });
59
+ /** Built by the first `verify`; the schema never changes, so it is prepared once. */
60
+ _Schemer_prepared.set(this, void 0);
48
61
  const { raw, sed, kind = "JSON", code = DigDex.Blake3_256, verify = true, } = init;
49
62
  if (raw !== undefined) {
50
63
  const bytes = typeof raw === "string" ? new TextEncoder().encode(raw) : raw;
@@ -71,8 +84,13 @@ export class Schemer {
71
84
  else {
72
85
  throw new ValidationError("Schemer requires raw bytes or schema data.");
73
86
  }
74
- if (verify && !isValidJsonSchema(this.sed)) {
75
- throw new ValidationError("Invalid JSON Schema document.");
87
+ if (verify) {
88
+ try {
89
+ checkSchemaDocument(this.sed, dialectOf(this.sed));
90
+ }
91
+ catch (cause) {
92
+ throw new ValidationError("Invalid JSON Schema document.", { cause });
93
+ }
76
94
  }
77
95
  }
78
96
  /** Schema SAID encoded in `$id`. */
@@ -86,11 +104,10 @@ export class Schemer {
86
104
  /** Validate one credential body against this schema. */
87
105
  verify(raw) {
88
106
  const data = parseSchemaData(raw);
89
- const validator = schemaValidatorFor(this.sed);
90
- const validate = validator.compile(this.sed);
91
- if (!validate(data)) {
92
- throw new ValidationError(`Credential failed schema validation: ${validator.errorsText(validate.errors)}`);
93
- }
107
+ const prepared = __classPrivateFieldSet(this, _Schemer_prepared, __classPrivateFieldGet(this, _Schemer_prepared, "f") ?? prepareSchemas([this.sed], dialectOf(this.sed)), "f");
108
+ const outcome = prepared.validate(data);
109
+ if (!outcome.valid)
110
+ throw new ValidationError(`Credential failed schema validation: ${outcome.errors}`);
94
111
  return true;
95
112
  }
96
113
  /** Detect likely JSON Schema bytes using KERIpy's `$schema` heuristic. */
@@ -98,6 +115,7 @@ export class Schemer {
98
115
  return new TextDecoder().decode(raw).includes("\"$schema\"");
99
116
  }
100
117
  }
118
+ _Schemer_prepared = new WeakMap();
101
119
  function parseSchemaJson(raw) {
102
120
  let parsed;
103
121
  try {
@@ -136,23 +154,6 @@ function verifySchemaSaid(sed, kind) {
136
154
  }
137
155
  return saider;
138
156
  }
139
- function isValidJsonSchema(schema) {
140
- try {
141
- return schemaValidatorFor(schema).validateSchema(schema);
142
- }
143
- catch {
144
- return false;
145
- }
146
- }
147
- function schemaValidatorFor(schema) {
148
- const dialect = typeof schema.$schema === "string" ? schema.$schema : "";
149
- if (dialect.includes("2020-12")) {
150
- const Ctor = Ajv2020;
151
- return new Ctor({ strict: false });
152
- }
153
- const Ctor = Ajv;
154
- return new Ctor({ strict: false });
155
- }
156
157
  function isJsonObject(value) {
157
158
  return typeof value === "object" && value !== null && !Array.isArray(value);
158
159
  }
@@ -28,6 +28,12 @@ export class UnsupportedTelReplayError extends ValidationError {
28
28
  writable: true,
29
29
  value: said
30
30
  });
31
+ Object.defineProperty(this, "name", {
32
+ enumerable: true,
33
+ configurable: true,
34
+ writable: true,
35
+ value: "UnsupportedTelReplayError"
36
+ });
31
37
  Object.defineProperty(this, "requested", {
32
38
  enumerable: true,
33
39
  configurable: true,
@@ -36,12 +36,24 @@ export class StoreLockHeldError extends AppError {
36
36
  writable: true,
37
37
  value: storeBase
38
38
  });
39
+ Object.defineProperty(this, "name", {
40
+ enumerable: true,
41
+ configurable: true,
42
+ writable: true,
43
+ value: "StoreLockHeldError"
44
+ });
39
45
  }
40
46
  }
41
47
  /** `navigator.locks` is absent (insecure context or old engine), so single-writer cannot be enforced. */
42
48
  export class StoreLockUnsupportedError extends AppError {
43
49
  constructor() {
44
50
  super("Web Locks API unavailable; refusing to open the store without a single-writer lock");
51
+ Object.defineProperty(this, "name", {
52
+ enumerable: true,
53
+ configurable: true,
54
+ writable: true,
55
+ value: "StoreLockUnsupportedError"
56
+ });
45
57
  }
46
58
  }
47
59
  /**
@@ -41,12 +41,12 @@ export { Anchorer, } from "../app/identity/delegating.js";
41
41
  export { endpointRoleAccepted, loadAcceptedEndpointRole, proposeGroupEndpointRole, } from "../app/identity/endpoint-roleing.js";
42
42
  export { beginDelegation, completeEvent, DELEGATION_WAIT_TIMEOUT_MS, delegationStatus, eventStatus, receiptEvent, waitForDelegation, } from "../app/identity/event-completion.js";
43
43
  export { acceptedEventReplayMessage, Hab, Habery, openHabery, } from "../app/identity/habbing.js";
44
- export { Algos, Manager, } from "../app/identity/keeping.js";
44
+ export { Algos, Manager, SignerNotHeldError, } from "../app/identity/keeping.js";
45
45
  export { Organizer, } from "../app/identity/organizing.js";
46
46
  export { IpexAdmitter } from "../app/ipex/ipex-admitting.js";
47
47
  export { ipexExnBody, prepareIpexExn } from "../app/ipex/ipex-building.js";
48
48
  export { credentialPresentationArtifacts, credentialSaidFromGrant, ipexCredentialAdmit, ipexCredentialGrant, processCredentialPresentationArtifacts, storedGrantArtifacts, } from "../app/ipex/ipex-credentialing.js";
49
- export { anchorExchange as anchorIpexExchange, exchangeWire, IpexDiscloser, } from "../app/ipex/ipex-discloser.js";
49
+ export { anchorExchange as anchorIpexExchange, exchangeWire, IpexDiscloser, storedExchangeWire, } from "../app/ipex/ipex-discloser.js";
50
50
  export { walkIpexGraph } from "../app/ipex/ipex-graph.js";
51
51
  export { approveStoredMultisigIpexWrappers, prepareAcdcV2GroupIpex, publishInitialGroupIpex, requireAcdcV2GroupUse, sendCompletedGroupIpex, } from "../app/ipex/ipex-grouping.js";
52
52
  export { acceptedRegistryEvidence, authenticateIpexNode, issuedNodeVerdict, } from "../app/ipex/ipex-node-authentication.js";
@@ -65,8 +65,10 @@ export { signGroupMessage } from "../app/multisig/multisig-messaging.js";
65
65
  export { approveAcdcV2Registry, publishAcdcV2Registry } from "../app/multisig/multisig-workflows.js";
66
66
  export { approveGroupProposal, dismissGroupProposal, findGroupProposal, listGroupProposals, } from "../app/multisig/proposals.js";
67
67
  export { proposeCredentialIssue, proposeCredentialRegistry, proposeCredentialRevocation, proposeGroupInception, proposeGroupInteraction, proposeGroupRotation, proposeRegistryEvent, settleProposedRotation, } from "../app/multisig/proposing.js";
68
+ export { replaceGroupMember, } from "../app/multisig/replace-member.js";
68
69
  export { Notifier, } from "../app/notifications/notifying.js";
69
70
  export { Signal, Signaler, } from "../app/notifications/signaling.js";
71
+ export { SignerConditions } from "../app/runtime/signer-conditions.js";
70
72
  export { RawRecord } from "../core/records.js";
71
73
  export { Verifier, } from "../app/credentials/verifying.js";
72
74
  export { witnessKeyStateGet, witnessQueryGet, witnessReceiptGet, witnessReceiptPost, } from "../app/witness/http-endpoints.js";
@@ -85,7 +87,7 @@ export { deliverRegistryRoots, replicateRootCopies, replicateRootCopy, resealRoo
85
87
  export { RootReplicator, } from "../app/credentials/root-replicator.js";
86
88
  export { publishPendingTel } from "../app/credentials/tel-publishing.js";
87
89
  export { Deck } from "../core/deck.js";
88
- export { AppError, DatabaseError, DatabaseKeyError, DatabaseNotOpenError, DatabaseOperationError, InvalidPathNameError, PathError, ValidationError, } from "../core/errors.js";
90
+ export { AppError, DatabaseError, DatabaseKeyError, DatabaseNotOpenError, DatabaseOperationError, InvalidPathNameError, PathError, PresentationClosedError, ValidationError, } from "../core/errors.js";
89
91
  export { verifyExchangeProofs } from "../core/exchange/exchange-proofing.js";
90
92
  export { exchange } from "../core/exchange/protocol-exchanging.js";
91
93
  export { Kevery, } from "../core/kel/eventing.js";
@@ -130,16 +132,16 @@ export { RETRY_BASE_MS, RETRY_MAX_MS, RetryBackoff } from "../app/runtime/retry-
130
132
  // Runtime-owned group DH issuance: consent calls for the custodian and the members, election read, proof export.
131
133
  export { approveGroupIssuance, approveGroupIssuanceExchange, followGroupIssuanceProof, groupIssuanceElection, groupIssuanceProof, groupIssuanceProposals, prepareGroupIssuance, proposeGroupIssuance, } from "../app/ipex/group-issuance.js";
132
134
  // Runtime-owned DH issuance operations, single-signature and group (begin, process, status, wait, abandon).
133
- export { abandonIssuance, admitIssuance, approveIssuanceExchange, beginIssuance, deliverIssuanceAdmit, ISSUANCE_RETRY_BOUND_MS, ISSUANCE_SWEEP_MS, IssuanceOperations, issuanceStatus, pendingGroupGrants, pendingIssuanceGrants, posterDelivery, prepareIssuanceGrant, proposeIssuance, rebuildIssuanceAdmit, waitForIssuance, } from "../app/ipex/issuance.js";
135
+ export { abandonIssuance, admitIssuance, approveIssuanceExchange, beginIssuance, deliverIssuanceAdmit, ISSUANCE_RETRY_BOUND_MS, ISSUANCE_SWEEP_MS, IssuanceOperations, issuanceStatus, partyComplete, partyKey, pendingGroupGrants, pendingIssuanceGrants, posterDelivery, prepareIssuanceGrant, proposeIssuance, rebuildIssuanceAdmit, waitForIssuance, } from "../app/ipex/issuance.js";
134
136
  export { ADMIT_DELIVERY_TIMEOUT_MS, admitAndDeliver, receiveIssuance, } from "../app/ipex/receive-issuance.js";
135
137
  // Runtime-owned single-signature IPEX presentation operations (present, process, status, wait, abandon).
136
- export { abandonPresentation, deliverPreparedGrant, preparePresentation, present, PRESENTATION_RETRY_BOUND_MS, PresentationOperations, presentationStatus, proposeGroupPresentation, resendPresentation, waitForPresentation, } from "../app/ipex/presenting.js";
137
- export { pendingPresentations } from "../app/ipex/pending-presentations.js";
138
+ export { abandonPresentation, deliverPreparedGrant, preparePresentation, present, PRESENTATION_RETRY_BOUND_MS, PresentationOperations, presentationStatus, proposeGroupNegotiation, proposeGroupPresentation, resendPresentation, waitForPresentation, } from "../app/ipex/presenting.js";
139
+ export { agreeFor, exchangeAnswer, pendingApplies, pendingPresentations, } from "../app/ipex/pending-presentations.js";
138
140
  // Exact public Grant files for a group presentation (prepare, resume), and the delivery outbox with retry.
139
141
  export { preparePresentationFile, resumePresentationFile, } from "../app/ipex/presentation-files.js";
140
142
  export { DeliveryOutbox, } from "../app/runtime/delivery-outbox.js";
141
143
  // Runtime-owned single-signature IPEX Unblind operations (request, approve, process, status, wait, abandon).
142
- export { abandonUnblinding, answerUnblind, requestUnblind, UnblindingOperations, unblindingStatus, waitForUnblinding, } from "../app/ipex/unblinding-workflow.js";
144
+ export { abandonUnblinding, answerUnblind, requestUnblind, unblindingKey, UnblindingOperations, unblindingStatus, waitForUnblinding, } from "../app/ipex/unblinding-workflow.js";
143
145
  // Fixed-tock doers.
144
146
  export { doEvery } from "../app/runtime/doing.js";
145
147
  // Operations owners composed by the runtime.
@@ -10,6 +10,15 @@ import { call } from "effection";
10
10
  import { AppError } from "../../core/errors.js";
11
11
  /** The persistence queue failed, so the request was not sent. The queue's failure is the cause. */
12
12
  export class OutputBarrierError extends AppError {
13
+ constructor() {
14
+ super(...arguments);
15
+ Object.defineProperty(this, "name", {
16
+ enumerable: true,
17
+ configurable: true,
18
+ writable: true,
19
+ value: "OutputBarrierError"
20
+ });
21
+ }
13
22
  }
14
23
  /**
15
24
  * Wrap `inner` so no request, finite or streaming, reaches it before `flushed` resolves.
@@ -6,9 +6,9 @@
6
6
  * `src/version.ts` files by hand; edit this template instead.
7
7
  */
8
8
  /** Package semantic version copied from the owning package manifest. */
9
- export const PACKAGE_VERSION = "2.2.1";
9
+ export const PACKAGE_VERSION = "2.2.3";
10
10
  /** Optional build metadata stamp injected by release/CI workflows. */
11
- export const BUILD_METADATA = "build.31.49e175e15c5b49580bbdc22ea7baa4c2f9295c3d";
11
+ export const BUILD_METADATA = "build.38.4ec2b511daca3ac4616e57ca4c2049ff4c48b792";
12
12
  /** User-facing version string with build metadata appended when present. */
13
13
  export const DISPLAY_VERSION = BUILD_METADATA
14
14
  ? `${PACKAGE_VERSION}+${BUILD_METADATA}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keri-ts",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "KERI TypeScript protocol and runtime library",
5
5
  "homepage": "https://github.com/kentbull/keri-ts",
6
6
  "repository": {
@@ -72,10 +72,10 @@
72
72
  "node": ">=20.3"
73
73
  },
74
74
  "dependencies": {
75
+ "@cfworker/json-schema": "4.1.6",
75
76
  "@deno/shim-deno": "0.18.2",
76
77
  "@inquirer/password": "3.0.1",
77
78
  "@noble/hashes": "1.8.0",
78
- "ajv": "8.18.0",
79
79
  "cesr-ts": ">=2.2.0 <2.3.0",
80
80
  "effection": "^3.6.0",
81
81
  "lmdb": "3.5.3",
@@ -1,102 +1,3 @@
1
- /**
2
- * Based on [import-meta-ponyfill](https://github.com/gaubee/import-meta-ponyfill),
3
- * but instead of using npm to install additional dependencies,
4
- * this approach manually consolidates cjs/mjs/d.ts into a single file.
5
- *
6
- * Note that this code might be imported multiple times
7
- * (for example, both dnt.test.polyfills.ts and dnt.polyfills.ts contain this code;
8
- * or Node.js might dynamically clear the cache and then force a require).
9
- * Therefore, it's important to avoid redundant writes to global objects.
10
- * Additionally, consider that commonjs is used alongside esm,
11
- * so the two ponyfill functions are stored independently in two separate global objects.
12
- */
13
- import { createRequire } from "node:module";
14
- import { type URL } from "node:url";
15
- declare global {
16
- interface ImportMeta {
17
- /** A string representation of the fully qualified module URL. When the
18
- * module is loaded locally, the value will be a file URL (e.g.
19
- * `file:///path/module.ts`).
20
- *
21
- * You can also parse the string as a URL to determine more information about
22
- * how the current module was loaded. For example to determine if a module was
23
- * local or not:
24
- *
25
- * ```ts
26
- * const url = new URL(import.meta.url);
27
- * if (url.protocol === "file:") {
28
- * console.log("this module was loaded locally");
29
- * }
30
- * ```
31
- */
32
- url: string;
33
- /**
34
- * A function that returns resolved specifier as if it would be imported
35
- * using `import(specifier)`.
36
- *
37
- * ```ts
38
- * console.log(import.meta.resolve("./foo.js"));
39
- * // file:///dev/foo.js
40
- * ```
41
- *
42
- * @param specifier The module specifier to resolve relative to `parent`.
43
- * @param parent The absolute parent module URL to resolve from.
44
- * @returns The absolute (`file:`) URL string for the resolved module.
45
- */
46
- resolve(specifier: string, parent?: string | URL | undefined): string;
47
- /** A flag that indicates if the current module is the main module that was
48
- * called when starting the program under Deno.
49
- *
50
- * ```ts
51
- * if (import.meta.main) {
52
- * // this was loaded as the main module, maybe do some bootstrapping
53
- * }
54
- * ```
55
- */
56
- main: boolean;
57
- /** The absolute path of the current module.
58
- *
59
- * This property is only provided for local modules (ie. using `file://` URLs).
60
- *
61
- * Example:
62
- * ```
63
- * // Unix
64
- * console.log(import.meta.filename); // /home/alice/my_module.ts
65
- *
66
- * // Windows
67
- * console.log(import.meta.filename); // C:\alice\my_module.ts
68
- * ```
69
- */
70
- filename: string;
71
- /** The absolute path of the directory containing the current module.
72
- *
73
- * This property is only provided for local modules (ie. using `file://` URLs).
74
- *
75
- * * Example:
76
- * ```
77
- * // Unix
78
- * console.log(import.meta.dirname); // /home/alice
79
- *
80
- * // Windows
81
- * console.log(import.meta.dirname); // C:\alice
82
- * ```
83
- */
84
- dirname: string;
85
- }
86
- }
87
- type NodeRequest = ReturnType<typeof createRequire>;
88
- type NodeModule = NonNullable<NodeRequest["main"]>;
89
- interface ImportMetaPonyfillCommonjs {
90
- (require: NodeRequest, module: NodeModule): ImportMeta;
91
- }
92
- interface ImportMetaPonyfillEsmodule {
93
- (importMeta: ImportMeta): ImportMeta;
94
- }
95
- interface ImportMetaPonyfill extends ImportMetaPonyfillCommonjs, ImportMetaPonyfillEsmodule {
96
- }
97
- export declare let import_meta_ponyfill_commonjs: ImportMetaPonyfillCommonjs;
98
- export declare let import_meta_ponyfill_esmodule: ImportMetaPonyfillEsmodule;
99
- export declare let import_meta_ponyfill: ImportMetaPonyfill;
100
1
  declare global {
101
2
  interface Error {
102
3
  cause?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EA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AAC,WAAW;IAUnB,+GAA+G;IAC/G,OAAO,CAAC,QAAQ;IAahB,OAAO,CAAC,QAAQ;IAIhB,8FAA8F;IAC9F,OAAO,CAAC,WAAW;IAmBnB,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,OAAO;IAkBf,OAAO,CAAC,IAAI;IAWZ,OAAO,CAAC,KAAK;IAcb,kGAAkG;IAClG,OAAO,CAAC,UAAU;IAalB,OAAO,CAAC,SAAS;IAsBjB,OAAO,CAAC,QAAQ;IAYhB,OAAO,CAAC,MAAM;IAkBd,OAAO,CAAC,MAAM;IAgBd,OAAO,CAAC,YAAY;IAKpB,oGAAoG;IACpG,OAAO,CAAC,OAAO;CAqBhB"}
@@ -30,9 +30,11 @@ import { type RegistryDisclosure } from "./regeventing.js";
30
30
  import type { Regery } from "./registraring.js";
31
31
  /** A stored registry-root copy that can never be retained as received. */
32
32
  export declare class RootRefused extends ValidationError {
33
+ readonly name: string;
33
34
  }
34
35
  /** A stored registry-root copy whose root cannot yet be verified locally. */
35
36
  export declare class RootUnverified extends ValidationError {
37
+ readonly name: string;
36
38
  }
37
39
  /** A registry-root copy whose authorization needs KEL, TEL or group state not yet local. */
38
40
  export declare class RootDeferred extends RootUnverified {
@@ -1 +1 @@
1
- {"version":3,"file":"salting.d.ts","sourceRoot":"","sources":["../../src/acdc/salting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAgBL,MAAM,EACN,KAAK,UAAU,EACf,KAAK,UAAU,EACf,MAAM,EAKP,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAA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AAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,kBAAkB,CAAA;KAAO,GAAG,OAAO;IAUzG,OAAO,CAAC,UAAU;IAWlB,6EAA6E;IAC7E,OAAO,IAAI,eAAe,EAAE;CAkB7B"}
@@ -16,10 +16,12 @@ export type SchemaValidation = {
16
16
  /** Local issuance caller must supply this dependency before a disclosure can be derived. */
17
17
  export declare class MissingSchemaError extends ValidationError {
18
18
  readonly schema: string;
19
+ readonly name: string;
19
20
  constructor(schema: string);
20
21
  }
21
22
  /** Invalid schema or credential content cannot be staged as an issuance commitment. */
22
23
  export declare class FailedSchemaValidationError extends ValidationError {
24
+ readonly name: string;
23
25
  }
24
26
  type Schema = Record<string, unknown>;
25
27
  /** How many schema closures this process has compiled; a diagnostic for tests of the cache. */
@@ -1 +1 @@
1
- {"version":3,"file":"scheming.d.ts","sourceRoot":"","sources":["../../src/acdc/scheming.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,OAAO,EAA6B,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAE7C,6FAA6F;AAC7F,MAAM,MAAM,gBAAgB,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IACrF,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,QAAQ,GAAG,YAAY,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AACF,4FAA4F;AAC5F,qBAAa,kBAAmB,SAAQ,eAAe;IACzC,QAAQ,CAAC,MAAM,EAAE,MAAM;gBAAd,MAAM,EAAE,MAAM;CAGpC;AACD,uFAAuF;AACvF,qBAAa,2BAA4B,SAAQ,eAAe;CAAG;AAGnE,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