@fedify/fedify 0.10.0-dev.194 → 0.10.0-dev.196
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +41 -1
- package/esm/deps/jsr.io/@std/encoding/0.224.3/base64url.js +83 -0
- package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/mod.js +1 -1
- package/esm/federation/handler.js +1 -1
- package/esm/federation/middleware.js +18 -1
- package/esm/nodeinfo/types.js +1 -1
- package/esm/runtime/key.js +82 -0
- package/esm/testing/fixtures/w3id.org/security/multikey/v1 +35 -0
- package/esm/testing/fixtures/www.w3.org/ns/did/v1 +58 -0
- package/esm/vocab/application.yaml +15 -1
- package/esm/vocab/group.yaml +15 -1
- package/esm/vocab/multikey.yaml +33 -0
- package/esm/vocab/organization.yaml +15 -1
- package/esm/vocab/person.yaml +15 -1
- package/esm/vocab/service.yaml +15 -1
- package/esm/vocab/vocab.js +986 -13
- package/package.json +4 -1
- package/types/codegen/type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/async/{0.224.1 → 0.224.2}/delay.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/encoding/0.224.3/base64url.d.ts +38 -0
- package/types/deps/jsr.io/@std/encoding/0.224.3/base64url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/http/{0.224.3 → 0.224.4}/_negotiation/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{0.224.3 → 0.224.4}/_negotiation/encoding.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{0.224.3 → 0.224.4}/_negotiation/language.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{0.224.3 → 0.224.4}/_negotiation/media_type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{0.224.3 → 0.224.4}/negotiation.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.1/_common/assert_path.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.0-rc.1/_common/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.0-rc.1/_common/constants.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.0-rc.1/_common/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.0-rc.1/_common/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.0-rc.1/_common/normalize_string.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.0-rc.1/_common/strip_trailing_separators.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.0-rc.1/posix/_util.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.0-rc.1/posix/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.0-rc.1/posix/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.0-rc.1/posix/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.0-rc.1/posix/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.0-rc.1/posix/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/0.224.3/_constants.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/_shared.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/_test_comparator_set.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/can_parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/compare.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/difference.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/equals.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/format_range.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/greater_or_equal.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/greater_than.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/greater_than_range.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/increment.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/is_range.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/is_semver.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/less_or_equal.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/less_than.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/less_than_range.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/max_satisfying.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/min_satisfying.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/mod.d.ts +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/not_equals.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/parse_range.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/range_intersects.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/range_max.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/range_min.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/satisfies.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/test_range.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/try_parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/try_parse_range.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/text/{0.224.2 → 0.224.3}/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/text/{0.224.2 → 0.224.3}/case.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/text/{0.224.2 → 0.224.3}/closest_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/text/{0.224.2 → 0.224.3}/compare_similarity.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/text/{0.224.2 → 0.224.3}/levenshtein_distance.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/text/0.224.3/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/text/{0.224.2 → 0.224.3}/word_similarity_sort.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/url/{0.224.0 → 0.224.1}/_strip.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/url/0.224.1/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/url/0.224.1/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/url/0.224.1/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/url/0.224.1/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/url/0.224.1/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/url/0.224.1/normalize.d.ts.map +1 -0
- package/types/federation/context.d.ts +6 -1
- package/types/federation/context.d.ts.map +1 -1
- package/types/federation/middleware.d.ts.map +1 -1
- package/types/nodeinfo/types.d.ts +1 -1
- package/types/runtime/key.d.ts +20 -0
- package/types/runtime/key.d.ts.map +1 -1
- package/types/vocab/vocab.d.ts +249 -0
- package/types/vocab/vocab.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/assert/0.226.0/assert.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/0.226.0/assertion_error.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.2/_constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/text/0.224.2/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/url/0.224.0/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/url/0.224.0/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/url/0.224.0/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/url/0.224.0/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/url/0.224.0/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/url/0.224.0/normalize.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/http/{0.224.3 → 0.224.4}/_negotiation/common.js +0 -0
- /package/esm/deps/jsr.io/@std/http/{0.224.3 → 0.224.4}/_negotiation/encoding.js +0 -0
- /package/esm/deps/jsr.io/@std/http/{0.224.3 → 0.224.4}/_negotiation/language.js +0 -0
- /package/esm/deps/jsr.io/@std/http/{0.224.3 → 0.224.4}/_negotiation/media_type.js +0 -0
- /package/esm/deps/jsr.io/@std/http/{0.224.3 → 0.224.4}/negotiation.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/_constants.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/_shared.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/_test_comparator_set.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/can_parse.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/compare.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/difference.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/equals.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/format.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/format_range.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/greater_or_equal.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/greater_than.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/greater_than_range.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/increment.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/is_range.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/is_semver.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/less_or_equal.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/less_than.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/less_than_range.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/max_satisfying.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/min_satisfying.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/not_equals.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/parse.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/parse_range.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/range_intersects.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/range_max.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/range_min.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/satisfies.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/test_range.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/try_parse.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/try_parse_range.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/types.js +0 -0
- /package/types/deps/jsr.io/@std/http/{0.224.3 → 0.224.4}/_negotiation/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{0.224.3 → 0.224.4}/_negotiation/encoding.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{0.224.3 → 0.224.4}/_negotiation/language.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{0.224.3 → 0.224.4}/_negotiation/media_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{0.224.3 → 0.224.4}/negotiation.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/_constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/_shared.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/_test_comparator_set.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/can_parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/compare.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/difference.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/equals.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/format_range.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/greater_or_equal.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/greater_than.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/greater_than_range.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/increment.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/is_range.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/is_semver.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/less_or_equal.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/less_than.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/less_than_range.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/max_satisfying.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/min_satisfying.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/not_equals.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/parse_range.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/range_intersects.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/range_max.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/range_min.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/satisfies.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/test_range.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/try_parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/try_parse_range.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.2 → 0.224.3}/types.d.ts +0 -0
package/types/runtime/key.d.ts
CHANGED
@@ -15,4 +15,24 @@ export declare function importSpki(pem: string): Promise<dntShim.CryptoKey>;
|
|
15
15
|
* @since 0.5.0
|
16
16
|
*/
|
17
17
|
export declare function exportSpki(key: dntShim.CryptoKey): Promise<string>;
|
18
|
+
/**
|
19
|
+
* Imports a [Multibase]-encoded public key.
|
20
|
+
*
|
21
|
+
* [Multibase]: https://www.w3.org/TR/vc-data-integrity/#multibase-0
|
22
|
+
* @param key The Multibase-encoded public key.
|
23
|
+
* @returns The imported public key.
|
24
|
+
* @throws {TypeError} If the key is invalid or unsupported.
|
25
|
+
* @since 0.10.0
|
26
|
+
*/
|
27
|
+
export declare function importMultibaseKey(key: string): Promise<dntShim.CryptoKey>;
|
28
|
+
/**
|
29
|
+
* Exports a public key in [Multibase] format.
|
30
|
+
*
|
31
|
+
* [Multibase]: https://www.w3.org/TR/vc-data-integrity/#multibase-0
|
32
|
+
* @param key The public key to export.
|
33
|
+
* @returns The exported public key in Multibase format.
|
34
|
+
* @throws {TypeError} If the key is invalid or unsupported.
|
35
|
+
* @since 0.10.0
|
36
|
+
*/
|
37
|
+
export declare function exportMultibaseKey(key: dntShim.CryptoKey): Promise<string>;
|
18
38
|
//# sourceMappingURL=key.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"key.d.ts","sourceRoot":"","sources":["../../src/runtime/key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"key.d.ts","sourceRoot":"","sources":["../../src/runtime/key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAuB5C;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAqBxE;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAMxE;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CA8BhF;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAqChF"}
|
package/types/vocab/vocab.d.ts
CHANGED
@@ -849,6 +849,85 @@ export declare class CryptographicKey {
|
|
849
849
|
}): Promise<CryptographicKey>;
|
850
850
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
851
851
|
}
|
852
|
+
/** Represents a key owned by an actor according to [FEP-521a: Representing
|
853
|
+
* actor's public keys.][1]
|
854
|
+
*
|
855
|
+
* [1]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
|
856
|
+
*/
|
857
|
+
export declare class Multikey {
|
858
|
+
#private;
|
859
|
+
readonly id: URL | null;
|
860
|
+
protected get _documentLoader(): DocumentLoader | undefined;
|
861
|
+
protected get _contextLoader(): DocumentLoader | undefined;
|
862
|
+
/**
|
863
|
+
* The type URI of {@link Multikey}: `https://w3id.org/security#Multikey`.
|
864
|
+
*/
|
865
|
+
static get typeId(): URL;
|
866
|
+
/**
|
867
|
+
* Constructs a new instance of Multikey with the given values.
|
868
|
+
* @param values The values to initialize the instance with.
|
869
|
+
* @param options The options to use for initialization.
|
870
|
+
*/
|
871
|
+
constructor(values: {
|
872
|
+
id?: URL | null;
|
873
|
+
controller?: Application | Group | Organization | Person | Service | URL | null;
|
874
|
+
publicKey?: dntShim.CryptoKey | null;
|
875
|
+
}, { documentLoader, contextLoader, }?: {
|
876
|
+
documentLoader?: DocumentLoader;
|
877
|
+
contextLoader?: DocumentLoader;
|
878
|
+
});
|
879
|
+
/**
|
880
|
+
* Clones this instance, optionally updating it with the given values.
|
881
|
+
* @param values The values to update the clone with.
|
882
|
+
* @options The options to use for cloning.
|
883
|
+
* @returns The cloned instance.
|
884
|
+
*/
|
885
|
+
clone(values?: {
|
886
|
+
id?: URL | null;
|
887
|
+
controller?: Application | Group | Organization | Person | Service | URL | null;
|
888
|
+
publicKey?: dntShim.CryptoKey | null;
|
889
|
+
}, options?: {
|
890
|
+
documentLoader?: DocumentLoader;
|
891
|
+
contextLoader?: DocumentLoader;
|
892
|
+
}): Multikey;
|
893
|
+
/**
|
894
|
+
* Similar to
|
895
|
+
* {@link Multikey.getController},
|
896
|
+
* but returns its `@id` URL instead of the object itself.
|
897
|
+
*/
|
898
|
+
get controllerId(): URL | null;
|
899
|
+
/** An actor who owns this key.
|
900
|
+
*/
|
901
|
+
getController(options?: {
|
902
|
+
documentLoader?: DocumentLoader;
|
903
|
+
contextLoader?: DocumentLoader;
|
904
|
+
}): Promise<Application | Group | Organization | Person | Service | null>;
|
905
|
+
/** A [Multibase]-encoded value of a [Multicodec] prefix and the key.
|
906
|
+
*
|
907
|
+
* [Multibase]: https://www.w3.org/TR/vc-data-integrity/#multibase-0
|
908
|
+
* [Multicodec]: https://github.com/multiformats/multicodec/
|
909
|
+
*/
|
910
|
+
get publicKey(): dntShim.CryptoKey | null;
|
911
|
+
/**
|
912
|
+
* Converts this object to a JSON-LD structure.
|
913
|
+
* @returns The JSON-LD representation of this object.
|
914
|
+
*/
|
915
|
+
toJsonLd(options?: {
|
916
|
+
expand?: boolean;
|
917
|
+
contextLoader?: DocumentLoader;
|
918
|
+
}): Promise<unknown>;
|
919
|
+
/**
|
920
|
+
* Converts a JSON-LD structure to an object of this type.
|
921
|
+
* @param json The JSON-LD structure to convert.
|
922
|
+
* @returns The object of this type.
|
923
|
+
* @throws {TypeError} If the given `json` is invalid.
|
924
|
+
*/
|
925
|
+
static fromJsonLd(json: unknown, options?: {
|
926
|
+
documentLoader?: DocumentLoader;
|
927
|
+
contextLoader?: DocumentLoader;
|
928
|
+
}): Promise<Multikey>;
|
929
|
+
protected _getCustomInspectProxy(): Record<string, unknown>;
|
930
|
+
}
|
852
931
|
/** An Activity is a subtype of {@link Object} that describes some form of action
|
853
932
|
* that may happen, is currently happening, or has already happened.
|
854
933
|
* The {@link Activity} type itself serves as an abstract base type for all types
|
@@ -1546,6 +1625,8 @@ export declare class Application extends Object {
|
|
1546
1625
|
preferredUsernames?: (string | LanguageString)[];
|
1547
1626
|
publicKey?: CryptographicKey | URL | null;
|
1548
1627
|
publicKeys?: (CryptographicKey | URL)[];
|
1628
|
+
assertionMethod?: Multikey | URL | null;
|
1629
|
+
assertionMethods?: (Multikey | URL)[];
|
1549
1630
|
manuallyApprovesFollowers?: boolean | null;
|
1550
1631
|
inbox?: OrderedCollection | URL | null;
|
1551
1632
|
outbox?: OrderedCollection | URL | null;
|
@@ -1616,6 +1697,8 @@ export declare class Application extends Object {
|
|
1616
1697
|
preferredUsernames?: (string | LanguageString)[];
|
1617
1698
|
publicKey?: CryptographicKey | URL | null;
|
1618
1699
|
publicKeys?: (CryptographicKey | URL)[];
|
1700
|
+
assertionMethod?: Multikey | URL | null;
|
1701
|
+
assertionMethods?: (Multikey | URL)[];
|
1619
1702
|
manuallyApprovesFollowers?: boolean | null;
|
1620
1703
|
inbox?: OrderedCollection | URL | null;
|
1621
1704
|
outbox?: OrderedCollection | URL | null;
|
@@ -1664,6 +1747,36 @@ export declare class Application extends Object {
|
|
1664
1747
|
documentLoader?: DocumentLoader;
|
1665
1748
|
contextLoader?: DocumentLoader;
|
1666
1749
|
}): AsyncIterable<CryptographicKey>;
|
1750
|
+
/**
|
1751
|
+
* Similar to
|
1752
|
+
* {@link Application.getAssertionMethod},
|
1753
|
+
* but returns its `@id` URL instead of the object itself.
|
1754
|
+
*/
|
1755
|
+
get assertionMethodId(): URL | null;
|
1756
|
+
/** Represents this actor's public keys. It serves as equivalent to
|
1757
|
+
* the `publicKeys` property, but is used for [FEP-521a] compliance.
|
1758
|
+
*
|
1759
|
+
* [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
|
1760
|
+
*/
|
1761
|
+
getAssertionMethod(options?: {
|
1762
|
+
documentLoader?: DocumentLoader;
|
1763
|
+
contextLoader?: DocumentLoader;
|
1764
|
+
}): Promise<Multikey | null>;
|
1765
|
+
/**
|
1766
|
+
* Similar to
|
1767
|
+
* {@link Application.getAssertionMethods},
|
1768
|
+
* but returns their `@id`s instead of the objects themselves.
|
1769
|
+
*/
|
1770
|
+
get assertionMethodIds(): URL[];
|
1771
|
+
/** Represents this actor's public keys. It serves as equivalent to
|
1772
|
+
* the `publicKeys` property, but is used for [FEP-521a] compliance.
|
1773
|
+
*
|
1774
|
+
* [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
|
1775
|
+
*/
|
1776
|
+
getAssertionMethods(options?: {
|
1777
|
+
documentLoader?: DocumentLoader;
|
1778
|
+
contextLoader?: DocumentLoader;
|
1779
|
+
}): AsyncIterable<Multikey>;
|
1667
1780
|
/** When `true`, conveys that for this actor, follow requests are not usually
|
1668
1781
|
* automatically approved, but instead are examined by a person who may accept
|
1669
1782
|
* or reject the request, at some time in the future. Setting of `false`
|
@@ -3944,6 +4057,8 @@ export declare class Group extends Object {
|
|
3944
4057
|
preferredUsernames?: (string | LanguageString)[];
|
3945
4058
|
publicKey?: CryptographicKey | URL | null;
|
3946
4059
|
publicKeys?: (CryptographicKey | URL)[];
|
4060
|
+
assertionMethod?: Multikey | URL | null;
|
4061
|
+
assertionMethods?: (Multikey | URL)[];
|
3947
4062
|
manuallyApprovesFollowers?: boolean | null;
|
3948
4063
|
inbox?: OrderedCollection | URL | null;
|
3949
4064
|
outbox?: OrderedCollection | URL | null;
|
@@ -4014,6 +4129,8 @@ export declare class Group extends Object {
|
|
4014
4129
|
preferredUsernames?: (string | LanguageString)[];
|
4015
4130
|
publicKey?: CryptographicKey | URL | null;
|
4016
4131
|
publicKeys?: (CryptographicKey | URL)[];
|
4132
|
+
assertionMethod?: Multikey | URL | null;
|
4133
|
+
assertionMethods?: (Multikey | URL)[];
|
4017
4134
|
manuallyApprovesFollowers?: boolean | null;
|
4018
4135
|
inbox?: OrderedCollection | URL | null;
|
4019
4136
|
outbox?: OrderedCollection | URL | null;
|
@@ -4062,6 +4179,36 @@ export declare class Group extends Object {
|
|
4062
4179
|
documentLoader?: DocumentLoader;
|
4063
4180
|
contextLoader?: DocumentLoader;
|
4064
4181
|
}): AsyncIterable<CryptographicKey>;
|
4182
|
+
/**
|
4183
|
+
* Similar to
|
4184
|
+
* {@link Group.getAssertionMethod},
|
4185
|
+
* but returns its `@id` URL instead of the object itself.
|
4186
|
+
*/
|
4187
|
+
get assertionMethodId(): URL | null;
|
4188
|
+
/** Represents this actor's public keys. It serves as equivalent to
|
4189
|
+
* the `publicKeys` property, but is used for [FEP-521a] compliance.
|
4190
|
+
*
|
4191
|
+
* [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
|
4192
|
+
*/
|
4193
|
+
getAssertionMethod(options?: {
|
4194
|
+
documentLoader?: DocumentLoader;
|
4195
|
+
contextLoader?: DocumentLoader;
|
4196
|
+
}): Promise<Multikey | null>;
|
4197
|
+
/**
|
4198
|
+
* Similar to
|
4199
|
+
* {@link Group.getAssertionMethods},
|
4200
|
+
* but returns their `@id`s instead of the objects themselves.
|
4201
|
+
*/
|
4202
|
+
get assertionMethodIds(): URL[];
|
4203
|
+
/** Represents this actor's public keys. It serves as equivalent to
|
4204
|
+
* the `publicKeys` property, but is used for [FEP-521a] compliance.
|
4205
|
+
*
|
4206
|
+
* [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
|
4207
|
+
*/
|
4208
|
+
getAssertionMethods(options?: {
|
4209
|
+
documentLoader?: DocumentLoader;
|
4210
|
+
contextLoader?: DocumentLoader;
|
4211
|
+
}): AsyncIterable<Multikey>;
|
4065
4212
|
/** When `true`, conveys that for this actor, follow requests are not usually
|
4066
4213
|
* automatically approved, but instead are examined by a person who may accept
|
4067
4214
|
* or reject the request, at some time in the future. Setting of `false`
|
@@ -5426,6 +5573,8 @@ export declare class Organization extends Object {
|
|
5426
5573
|
preferredUsernames?: (string | LanguageString)[];
|
5427
5574
|
publicKey?: CryptographicKey | URL | null;
|
5428
5575
|
publicKeys?: (CryptographicKey | URL)[];
|
5576
|
+
assertionMethod?: Multikey | URL | null;
|
5577
|
+
assertionMethods?: (Multikey | URL)[];
|
5429
5578
|
manuallyApprovesFollowers?: boolean | null;
|
5430
5579
|
inbox?: OrderedCollection | URL | null;
|
5431
5580
|
outbox?: OrderedCollection | URL | null;
|
@@ -5496,6 +5645,8 @@ export declare class Organization extends Object {
|
|
5496
5645
|
preferredUsernames?: (string | LanguageString)[];
|
5497
5646
|
publicKey?: CryptographicKey | URL | null;
|
5498
5647
|
publicKeys?: (CryptographicKey | URL)[];
|
5648
|
+
assertionMethod?: Multikey | URL | null;
|
5649
|
+
assertionMethods?: (Multikey | URL)[];
|
5499
5650
|
manuallyApprovesFollowers?: boolean | null;
|
5500
5651
|
inbox?: OrderedCollection | URL | null;
|
5501
5652
|
outbox?: OrderedCollection | URL | null;
|
@@ -5544,6 +5695,36 @@ export declare class Organization extends Object {
|
|
5544
5695
|
documentLoader?: DocumentLoader;
|
5545
5696
|
contextLoader?: DocumentLoader;
|
5546
5697
|
}): AsyncIterable<CryptographicKey>;
|
5698
|
+
/**
|
5699
|
+
* Similar to
|
5700
|
+
* {@link Organization.getAssertionMethod},
|
5701
|
+
* but returns its `@id` URL instead of the object itself.
|
5702
|
+
*/
|
5703
|
+
get assertionMethodId(): URL | null;
|
5704
|
+
/** Represents this actor's public keys. It serves as equivalent to
|
5705
|
+
* the `publicKeys` property, but is used for [FEP-521a] compliance.
|
5706
|
+
*
|
5707
|
+
* [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
|
5708
|
+
*/
|
5709
|
+
getAssertionMethod(options?: {
|
5710
|
+
documentLoader?: DocumentLoader;
|
5711
|
+
contextLoader?: DocumentLoader;
|
5712
|
+
}): Promise<Multikey | null>;
|
5713
|
+
/**
|
5714
|
+
* Similar to
|
5715
|
+
* {@link Organization.getAssertionMethods},
|
5716
|
+
* but returns their `@id`s instead of the objects themselves.
|
5717
|
+
*/
|
5718
|
+
get assertionMethodIds(): URL[];
|
5719
|
+
/** Represents this actor's public keys. It serves as equivalent to
|
5720
|
+
* the `publicKeys` property, but is used for [FEP-521a] compliance.
|
5721
|
+
*
|
5722
|
+
* [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
|
5723
|
+
*/
|
5724
|
+
getAssertionMethods(options?: {
|
5725
|
+
documentLoader?: DocumentLoader;
|
5726
|
+
contextLoader?: DocumentLoader;
|
5727
|
+
}): AsyncIterable<Multikey>;
|
5547
5728
|
/** When `true`, conveys that for this actor, follow requests are not usually
|
5548
5729
|
* automatically approved, but instead are examined by a person who may accept
|
5549
5730
|
* or reject the request, at some time in the future. Setting of `false`
|
@@ -5902,6 +6083,8 @@ export declare class Person extends Object {
|
|
5902
6083
|
preferredUsernames?: (string | LanguageString)[];
|
5903
6084
|
publicKey?: CryptographicKey | URL | null;
|
5904
6085
|
publicKeys?: (CryptographicKey | URL)[];
|
6086
|
+
assertionMethod?: Multikey | URL | null;
|
6087
|
+
assertionMethods?: (Multikey | URL)[];
|
5905
6088
|
manuallyApprovesFollowers?: boolean | null;
|
5906
6089
|
inbox?: OrderedCollection | URL | null;
|
5907
6090
|
outbox?: OrderedCollection | URL | null;
|
@@ -5972,6 +6155,8 @@ export declare class Person extends Object {
|
|
5972
6155
|
preferredUsernames?: (string | LanguageString)[];
|
5973
6156
|
publicKey?: CryptographicKey | URL | null;
|
5974
6157
|
publicKeys?: (CryptographicKey | URL)[];
|
6158
|
+
assertionMethod?: Multikey | URL | null;
|
6159
|
+
assertionMethods?: (Multikey | URL)[];
|
5975
6160
|
manuallyApprovesFollowers?: boolean | null;
|
5976
6161
|
inbox?: OrderedCollection | URL | null;
|
5977
6162
|
outbox?: OrderedCollection | URL | null;
|
@@ -6020,6 +6205,36 @@ export declare class Person extends Object {
|
|
6020
6205
|
documentLoader?: DocumentLoader;
|
6021
6206
|
contextLoader?: DocumentLoader;
|
6022
6207
|
}): AsyncIterable<CryptographicKey>;
|
6208
|
+
/**
|
6209
|
+
* Similar to
|
6210
|
+
* {@link Person.getAssertionMethod},
|
6211
|
+
* but returns its `@id` URL instead of the object itself.
|
6212
|
+
*/
|
6213
|
+
get assertionMethodId(): URL | null;
|
6214
|
+
/** Represents this actor's public keys. It serves as equivalent to
|
6215
|
+
* the `publicKeys` property, but is used for [FEP-521a] compliance.
|
6216
|
+
*
|
6217
|
+
* [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
|
6218
|
+
*/
|
6219
|
+
getAssertionMethod(options?: {
|
6220
|
+
documentLoader?: DocumentLoader;
|
6221
|
+
contextLoader?: DocumentLoader;
|
6222
|
+
}): Promise<Multikey | null>;
|
6223
|
+
/**
|
6224
|
+
* Similar to
|
6225
|
+
* {@link Person.getAssertionMethods},
|
6226
|
+
* but returns their `@id`s instead of the objects themselves.
|
6227
|
+
*/
|
6228
|
+
get assertionMethodIds(): URL[];
|
6229
|
+
/** Represents this actor's public keys. It serves as equivalent to
|
6230
|
+
* the `publicKeys` property, but is used for [FEP-521a] compliance.
|
6231
|
+
*
|
6232
|
+
* [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
|
6233
|
+
*/
|
6234
|
+
getAssertionMethods(options?: {
|
6235
|
+
documentLoader?: DocumentLoader;
|
6236
|
+
contextLoader?: DocumentLoader;
|
6237
|
+
}): AsyncIterable<Multikey>;
|
6023
6238
|
/** When `true`, conveys that for this actor, follow requests are not usually
|
6024
6239
|
* automatically approved, but instead are examined by a person who may accept
|
6025
6240
|
* or reject the request, at some time in the future. Setting of `false`
|
@@ -7073,6 +7288,8 @@ export declare class Service extends Object {
|
|
7073
7288
|
preferredUsernames?: (string | LanguageString)[];
|
7074
7289
|
publicKey?: CryptographicKey | URL | null;
|
7075
7290
|
publicKeys?: (CryptographicKey | URL)[];
|
7291
|
+
assertionMethod?: Multikey | URL | null;
|
7292
|
+
assertionMethods?: (Multikey | URL)[];
|
7076
7293
|
manuallyApprovesFollowers?: boolean | null;
|
7077
7294
|
inbox?: OrderedCollection | URL | null;
|
7078
7295
|
outbox?: OrderedCollection | URL | null;
|
@@ -7143,6 +7360,8 @@ export declare class Service extends Object {
|
|
7143
7360
|
preferredUsernames?: (string | LanguageString)[];
|
7144
7361
|
publicKey?: CryptographicKey | URL | null;
|
7145
7362
|
publicKeys?: (CryptographicKey | URL)[];
|
7363
|
+
assertionMethod?: Multikey | URL | null;
|
7364
|
+
assertionMethods?: (Multikey | URL)[];
|
7146
7365
|
manuallyApprovesFollowers?: boolean | null;
|
7147
7366
|
inbox?: OrderedCollection | URL | null;
|
7148
7367
|
outbox?: OrderedCollection | URL | null;
|
@@ -7191,6 +7410,36 @@ export declare class Service extends Object {
|
|
7191
7410
|
documentLoader?: DocumentLoader;
|
7192
7411
|
contextLoader?: DocumentLoader;
|
7193
7412
|
}): AsyncIterable<CryptographicKey>;
|
7413
|
+
/**
|
7414
|
+
* Similar to
|
7415
|
+
* {@link Service.getAssertionMethod},
|
7416
|
+
* but returns its `@id` URL instead of the object itself.
|
7417
|
+
*/
|
7418
|
+
get assertionMethodId(): URL | null;
|
7419
|
+
/** Represents this actor's public keys. It serves as equivalent to
|
7420
|
+
* the `publicKeys` property, but is used for [FEP-521a] compliance.
|
7421
|
+
*
|
7422
|
+
* [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
|
7423
|
+
*/
|
7424
|
+
getAssertionMethod(options?: {
|
7425
|
+
documentLoader?: DocumentLoader;
|
7426
|
+
contextLoader?: DocumentLoader;
|
7427
|
+
}): Promise<Multikey | null>;
|
7428
|
+
/**
|
7429
|
+
* Similar to
|
7430
|
+
* {@link Service.getAssertionMethods},
|
7431
|
+
* but returns their `@id`s instead of the objects themselves.
|
7432
|
+
*/
|
7433
|
+
get assertionMethodIds(): URL[];
|
7434
|
+
/** Represents this actor's public keys. It serves as equivalent to
|
7435
|
+
* the `publicKeys` property, but is used for [FEP-521a] compliance.
|
7436
|
+
*
|
7437
|
+
* [FEP-521a]: https://codeberg.org/fediverse/fep/src/branch/main/fep/521a/fep-521a.md
|
7438
|
+
*/
|
7439
|
+
getAssertionMethods(options?: {
|
7440
|
+
documentLoader?: DocumentLoader;
|
7441
|
+
contextLoader?: DocumentLoader;
|
7442
|
+
}): AsyncIterable<Multikey>;
|
7194
7443
|
/** When `true`, conveys that for this actor, follow requests are not usually
|
7195
7444
|
* automatically approved, but instead are examined by a person who may accept
|
7196
7445
|
* or reject the request, at some time in the future. Setting of `false`
|