keri-ts 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/cesr/src/version.js +1 -1
- package/esm/keri/src/app/version.js +2 -2
- package/esm/keri/src/did/webs/artifacts.js +21 -3
- package/package.json +1 -1
- package/types/cesr/src/version.d.ts +1 -1
- package/types/keri/src/app/version.d.ts +2 -2
- package/types/keri/src/did/webs/artifacts.d.ts.map +1 -1
package/esm/cesr/src/version.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/** Package semantic version copied from the owning package manifest. */
|
|
9
9
|
export const PACKAGE_VERSION = "0.9.0";
|
|
10
10
|
/** Optional build metadata stamp injected by release/CI workflows. */
|
|
11
|
-
export const BUILD_METADATA = "build.
|
|
11
|
+
export const BUILD_METADATA = "build.15.488d4554e9b5462734e921e29385b9655b3c1e44";
|
|
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}`
|
|
@@ -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 = "0.9.
|
|
9
|
+
export const PACKAGE_VERSION = "0.9.1";
|
|
10
10
|
/** Optional build metadata stamp injected by release/CI workflows. */
|
|
11
|
-
export const BUILD_METADATA = "build.
|
|
11
|
+
export const BUILD_METADATA = "build.15.488d4554e9b5462734e921e29385b9655b3c1e44";
|
|
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}`
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* `did.json` is a hosted projection. `keri.cesr` is the replay stream a clean
|
|
5
5
|
* resolver needs to rebuild the same DID document from KERI/VDR state.
|
|
6
6
|
*/
|
|
7
|
-
import { concatBytes
|
|
7
|
+
import { concatBytes } from "../../../../cesr/mod.js";
|
|
8
8
|
import { ValidationError } from "../../core/errors.js";
|
|
9
9
|
import { Roles } from "../../core/roles.js";
|
|
10
10
|
import { Reger } from "../../db/reger.js";
|
|
@@ -54,8 +54,26 @@ export function generateDidWebsCesr(runtime, aid, options = {}) {
|
|
|
54
54
|
}
|
|
55
55
|
function endpointMessages(hab, aid) {
|
|
56
56
|
const messages = [];
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
const kever = hab.db.getKever(aid, { refresh: true });
|
|
58
|
+
for (const eid of kever?.wits ?? []) {
|
|
59
|
+
messages.push(hab.loadLocScheme(eid));
|
|
60
|
+
messages.push(hab.loadEndRole(eid, eid, Roles.controller));
|
|
61
|
+
}
|
|
62
|
+
messages.push(...storedEndpointMessages(hab, aid, Roles.agent));
|
|
63
|
+
messages.push(...storedEndpointMessages(hab, aid, Roles.mailbox));
|
|
64
|
+
return messages;
|
|
65
|
+
}
|
|
66
|
+
function storedEndpointMessages(hab, aid, role) {
|
|
67
|
+
const messages = [];
|
|
68
|
+
for (const [keys, end] of hab.db.ends.getTopItemIter([aid, role], {
|
|
69
|
+
topive: true,
|
|
70
|
+
})) {
|
|
71
|
+
const eid = keys[2];
|
|
72
|
+
if (!eid || !(end.allowed || end.enabled)) {
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
messages.push(hab.loadLocScheme(eid));
|
|
76
|
+
messages.push(hab.loadEndRole(aid, eid, role));
|
|
59
77
|
}
|
|
60
78
|
return messages;
|
|
61
79
|
}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/** Package semantic version copied from the owning package manifest. */
|
|
9
9
|
export declare const PACKAGE_VERSION = "0.9.0";
|
|
10
10
|
/** Optional build metadata stamp injected by release/CI workflows. */
|
|
11
|
-
export declare const BUILD_METADATA = "build.
|
|
11
|
+
export declare const BUILD_METADATA = "build.15.488d4554e9b5462734e921e29385b9655b3c1e44";
|
|
12
12
|
/** User-facing version string with build metadata appended when present. */
|
|
13
13
|
export declare const DISPLAY_VERSION: string;
|
|
14
14
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -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 declare const PACKAGE_VERSION = "0.9.
|
|
9
|
+
export declare const PACKAGE_VERSION = "0.9.1";
|
|
10
10
|
/** Optional build metadata stamp injected by release/CI workflows. */
|
|
11
|
-
export declare const BUILD_METADATA = "build.
|
|
11
|
+
export declare const BUILD_METADATA = "build.15.488d4554e9b5462734e921e29385b9655b3c1e44";
|
|
12
12
|
/** User-facing version string with build metadata appended when present. */
|
|
13
13
|
export declare const DISPLAY_VERSION: string;
|
|
14
14
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../../../../src/keri/src/did/webs/artifacts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../../../../src/keri/src/did/webs/artifacts.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAShD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC;CAC/B;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,wDAAwD;AACxD,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,+BAA+B,GACvC,gBAAgB,CAqBlB;AAED,yDAAyD;AACzD,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,YAAY,EACrB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG,CAAA;CAAO,GACnC,UAAU,CAiBZ"}
|