@fedify/fedify 2.0.0-pr.412.1559 → 2.0.0-pr.412.1794
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 +3 -0
- package/dist/{actor-Cc6B76eG.js → actor-BXHc5r-q.js} +1 -1
- package/dist/actor-Ba9Z1eNJ.cjs +42079 -0
- package/dist/{actor-C22bXuuC.d.ts → actor-DqFajh9s.d.ts} +2 -2
- package/dist/{actor-CTAuCsWy.js → actor-DzhunPC_.js} +7058 -2722
- package/dist/actor-f2NtjyCg.d.cts +128 -0
- package/dist/{assert_rejects-DiIiJbZn.js → assert_rejects-Ce45JcFg.js} +1 -1
- package/dist/{assert_is_error-BPGph1Jx.js → assert_throws-BNXdRGWP.js} +31 -1
- package/dist/{builder-BOEBObR8.js → builder-u7usRsT3.js} +13 -8
- package/dist/chunk-DqRYRqnO.cjs +34 -0
- package/dist/client-94iWEfQa.d.cts +222 -0
- package/dist/{client-DF8anIB5.d.ts → client-BsGzbnV-.d.ts} +3 -75
- package/dist/{client-De-z2UnN.js → client-pY7-3icS.js} +3 -22
- package/dist/compat/mod.cjs +10 -0
- package/dist/compat/mod.d.cts +12 -0
- package/dist/compat/mod.d.ts +11 -12
- package/dist/compat/mod.js +5 -5
- package/dist/compat/transformers.test.js +20 -20
- package/dist/compat-DmDDELst.cjs +4 -0
- package/dist/compat-nxUqe4Z-.js +4 -0
- package/dist/{context-9gCpIkiz.d.ts → context-DG0huGW-.d.ts} +184 -127
- package/dist/context-DJ8aSy2Q.d.cts +2312 -0
- package/dist/{authdocloader-CLgDGafZ.js → docloader-CrbAy9Oc.js} +17 -8
- package/dist/{esm-CHdxdkuH.js → esm-C-Qa1zEM.js} +11 -11
- package/dist/federation/builder.test.js +9 -12
- package/dist/federation/collection.test.js +7 -9
- package/dist/federation/handler.test.js +27 -148
- package/dist/federation/idempotency.test.js +201 -0
- package/dist/federation/inbox.test.js +4 -6
- package/dist/federation/keycache.test.js +3 -4
- package/dist/federation/kv.test.js +7 -8
- package/dist/federation/middleware.test.js +242 -64
- package/dist/federation/mod.cjs +27 -0
- package/dist/federation/mod.d.cts +12 -0
- package/dist/federation/mod.d.ts +12 -13
- package/dist/federation/mod.js +13 -15
- package/dist/federation/mq.test.js +8 -10
- package/dist/federation/negotiation.test.js +26 -0
- package/dist/federation/retry.test.js +4 -5
- package/dist/federation/router.test.js +6 -8
- package/dist/federation/send.test.js +13 -15
- package/dist/federation-CRpdnOMS.cjs +244 -0
- package/dist/{federation-CMX7WzeL.js → federation-jcR8-ZxP.js} +3 -3
- package/dist/fixtures/media.example.com/avatars/test-avatar.jpg.json +6 -0
- package/dist/{http-DqSNLFNY.d.ts → http-BbO0ejuk.d.ts} +2 -2
- package/dist/{http-l0TEupZK.js → http-CUVx-vzb.js} +260 -10
- package/dist/{http-CcdM1brU.js → http-D2kIm9la.js} +3 -3
- package/dist/http-Dofes42e.cjs +1106 -0
- package/dist/http-M8k5mKc0.d.cts +253 -0
- package/dist/{inbox-B6DZbGNf.js → inbox-HjG5peXY.js} +24 -7
- package/dist/{key-CzLv1phF.js → key-CxdLUFS6.js} +3 -2
- package/dist/{keycache-B8HdZJSt.js → keycache-bU7COwsh.js} +1 -1
- package/dist/{keys-zZwiKkfx.js → keys-DMHs8XNn.js} +2 -1
- package/dist/kv-Bxr0Q87_.d.cts +81 -0
- package/dist/kv-cache-CGXcDejL.js +122 -0
- package/dist/kv-cache-DN9pfMBe.js +94 -0
- package/dist/kv-cache-Dkvbn6rg.cjs +134 -0
- package/dist/{ld-CBcQdZ6N.js → ld-CIhvSCCr.js} +5 -4
- package/dist/lookup-CHkCVZTU.js +260 -0
- package/dist/lookup-CfFkONZD.cjs +272 -0
- package/dist/{type-SK-d7Tbw.js → lookup-DQRtjvb1.js} +7266 -7087
- package/dist/middleware-Bot7EEwV.js +26 -0
- package/dist/middleware-CFJgmUMW.cjs +15 -0
- package/dist/{middleware-BRgu1IH8.js → middleware-CJlj5Olw.js} +86 -181
- package/dist/middleware-CjHl2NHA.js +15 -0
- package/dist/middleware-D74TgW2E.cjs +4225 -0
- package/dist/{middleware-CxEkcFW0.js → middleware-DMk2Mdn9.js} +117 -127
- package/dist/mod-0noXw66R.d.cts +107 -0
- package/dist/mod-B-hUPT2N.d.cts +1 -0
- package/dist/{mod-Drmz72EK.d.ts → mod-B2iOw50L.d.ts} +3 -3
- package/dist/mod-B9M-8jm2.d.ts +109 -0
- package/dist/{mod-Cxt4Kpf6.d.ts → mod-BlVovdcy.d.ts} +20 -2
- package/dist/{mod-Bqxcp7eN.d.ts → mod-BoHnwOCs.d.ts} +2 -2
- package/dist/mod-BxRCHTz-.d.cts +307 -0
- package/dist/mod-C2tOeRkN.d.cts +1 -0
- package/dist/mod-C58MZ7Wx.d.cts +113 -0
- package/dist/mod-DJcZDvjA.d.cts +80 -0
- package/dist/mod-DgdBYYa0.d.cts +266 -0
- package/dist/{mod-DBzN0aCM.d.ts → mod-Ds0mpFZU.d.ts} +1 -1
- package/dist/mod.cjs +137 -0
- package/dist/mod.d.cts +16 -0
- package/dist/mod.d.ts +16 -17
- package/dist/mod.js +19 -21
- package/dist/mq-DcJPkXD5.d.cts +140 -0
- package/dist/negotiation-C4nFufNk.js +71 -0
- package/dist/nodeinfo/client.test.js +30 -111
- package/dist/nodeinfo/handler.test.js +25 -26
- package/dist/nodeinfo/mod.cjs +10 -0
- package/dist/nodeinfo/mod.d.cts +3 -0
- package/dist/nodeinfo/mod.d.ts +3 -5
- package/dist/nodeinfo/mod.js +6 -7
- package/dist/nodeinfo/types.test.js +8 -15
- package/dist/nodeinfo-BnthBobC.js +4 -0
- package/dist/nodeinfo-CdN0rEnZ.cjs +4 -0
- package/dist/owner-B4HbyP8s.d.cts +67 -0
- package/dist/{owner-VEIjmR8r.js → owner-Dvh7mBvr.js} +3 -2
- package/dist/{owner-CQPnQVtf.d.ts → owner-kQRGVXG1.d.ts} +3 -3
- package/dist/proof-D0uThUvD.cjs +674 -0
- package/dist/{proof-DoSQAGkE.js → proof-Dgy35fzc.js} +3 -3
- package/dist/{proof-tgUlT8hw.js → proof-fqzaMJ4g.js} +11 -10
- package/dist/{send-BzS7w-QF.js → send-Drp20VO9.js} +2 -2
- package/dist/sig/http.test.js +13 -14
- package/dist/sig/key.test.js +9 -11
- package/dist/sig/ld.test.js +8 -10
- package/dist/sig/mod.cjs +28 -0
- package/dist/sig/mod.d.cts +6 -0
- package/dist/sig/mod.d.ts +5 -7
- package/dist/sig/mod.js +8 -10
- package/dist/sig/owner.test.js +10 -12
- package/dist/sig/proof.test.js +13 -14
- package/dist/sig-C34-oHBl.js +4 -0
- package/dist/sig-YYj5tCnr.cjs +4 -0
- package/dist/testing/docloader.test.js +6 -8
- package/dist/testing/mod.d.ts +387 -224
- package/dist/testing/mod.js +2 -3
- package/dist/{testing-Z2omCvKy.js → testing-g4UC4liW.js} +1 -2
- package/dist/{transformers-Dna8Fg7k.js → transformers-BFT6d7J5.js} +3 -3
- package/dist/transformers-CoBS-oFG.cjs +116 -0
- package/dist/{types-DgPvoUWN.js → types-BtUjyi5y.js} +8 -169
- package/dist/{types-BIgY6c-l.js → types-C2XVl6gj.js} +1 -3
- package/dist/types-CWgzGaqk.cjs +315 -0
- package/dist/{runtime/authdocloader.test.js → utils/docloader.test.js} +14 -15
- package/dist/utils/kv-cache.test.js +209 -0
- package/dist/utils/mod.cjs +12 -0
- package/dist/utils/mod.d.cts +5 -0
- package/dist/utils/mod.d.ts +7 -0
- package/dist/utils/mod.js +11 -0
- package/dist/utils-D-Va7aXC.js +4 -0
- package/dist/utils-DyRU1gdZ.cjs +4 -0
- package/dist/vocab/actor.test.js +8 -10
- package/dist/vocab/lookup.test.js +257 -9
- package/dist/vocab/mod.cjs +86 -0
- package/dist/vocab/mod.d.cts +4 -0
- package/dist/vocab/mod.d.ts +3 -5
- package/dist/vocab/mod.js +6 -7
- package/dist/vocab/type.test.js +2 -3
- package/dist/vocab/vocab.test.js +438 -15
- package/dist/{vocab-SOE1ifCr.d.ts → vocab-BCWe1Ih5.d.ts} +292 -21
- package/dist/{vocab-CvD6Vbml.js → vocab-BnR3nIU9.js} +26 -17
- package/dist/vocab-CeDBzu-f.d.cts +14903 -0
- package/dist/{lookup-Bn_HEC_d.js → vocab-DFaWWYDn.cjs} +108 -139
- package/dist/webfinger/handler.test.js +24 -25
- package/dist/webfinger/lookup.test.js +7 -9
- package/dist/webfinger/mod.cjs +8 -0
- package/dist/webfinger/mod.d.cts +2 -0
- package/dist/webfinger/mod.d.ts +1 -3
- package/dist/webfinger/mod.js +5 -6
- package/dist/webfinger-C72Y8lrh.js +4 -0
- package/dist/webfinger-vAtLmxOF.cjs +4 -0
- package/dist/x/cfworkers.cjs +100 -0
- package/dist/x/cfworkers.d.cts +59 -0
- package/dist/x/cfworkers.d.ts +2 -2
- package/dist/x/cfworkers.js +3 -3
- package/dist/x/cfworkers.test.js +6 -8
- package/dist/x/hono.cjs +61 -0
- package/dist/x/hono.d.cts +53 -0
- package/dist/x/hono.d.ts +10 -11
- package/dist/x/hono.js +3 -3
- package/dist/x/sveltekit.cjs +69 -0
- package/dist/x/sveltekit.d.cts +45 -0
- package/dist/x/sveltekit.d.ts +10 -11
- package/dist/x/sveltekit.js +3 -3
- package/package.json +79 -23
- package/dist/assert_throws-BOO88avQ.js +0 -39
- package/dist/authdocloader-BFVqUbyo.js +0 -52
- package/dist/compat-Bb5myD13.js +0 -4
- package/dist/docloader-CxWcuWqQ.d.ts +0 -221
- package/dist/docloader-DEhniCVa.js +0 -4615
- package/dist/key-CUZQgVlf.js +0 -10
- package/dist/key-Deb0_wWL.js +0 -10
- package/dist/key-DxA6xRtZ.js +0 -260
- package/dist/lookup-dtdr2ftf.js +0 -131
- package/dist/middleware-BE_geSiJ.js +0 -17
- package/dist/middleware-BnU6hzVp.js +0 -26
- package/dist/mod-TFoH2Ql8.d.ts +0 -104
- package/dist/nodeinfo/semver.test.js +0 -143
- package/dist/nodeinfo-CyEbLjHs.js +0 -4
- package/dist/runtime/docloader.test.js +0 -522
- package/dist/runtime/key.test.js +0 -103
- package/dist/runtime/langstr.test.d.ts +0 -3
- package/dist/runtime/langstr.test.js +0 -39
- package/dist/runtime/mod.d.ts +0 -8
- package/dist/runtime/mod.js +0 -13
- package/dist/runtime/multibase/multibase.test.d.ts +0 -3
- package/dist/runtime/multibase/multibase.test.js +0 -358
- package/dist/runtime/url.test.d.ts +0 -3
- package/dist/runtime/url.test.js +0 -45
- package/dist/runtime-BSkOVUWM.js +0 -4
- package/dist/semver-dArNLkR9.js +0 -149
- package/dist/sig-BXJO--F9.js +0 -4
- package/dist/webfinger-C3GIyXIg.js +0 -4
- /package/dist/{assert_not_equals-f3m3epl3.js → assert_not_equals-C80BG-_5.js} +0 -0
- /package/dist/{collection-CSzG2j1P.js → collection-BzWsN9pB.js} +0 -0
- /package/dist/{denokv-Bv33Xxea.js → denokv-CCssOzMJ.js} +0 -0
- /package/dist/{nodeinfo/semver.test.d.ts → federation/idempotency.test.d.ts} +0 -0
- /package/dist/{runtime/authdocloader.test.d.ts → federation/negotiation.test.d.ts} +0 -0
- /package/dist/{kv-C7sopW2E.d.ts → kv-BKNZ-Tb-.d.ts} +0 -0
- /package/dist/{mod-1pDWKvUL.d.ts → mod-CVgZgliM.d.ts} +0 -0
- /package/dist/{mod-g0xFzAP9.d.ts → mod-xIj-IT58.d.ts} +0 -0
- /package/dist/{mq-CRGm1e_F.d.ts → mq-CUKlBw08.d.ts} +0 -0
- /package/dist/{retry-D4GJ670a.js → retry-CfF8Gn4d.js} +0 -0
- /package/dist/{std__assert-X-_kMxKM.js → std__assert-DWivtrGR.js} +0 -0
- /package/dist/{runtime → utils}/docloader.test.d.ts +0 -0
- /package/dist/{runtime/key.test.d.ts → utils/kv-cache.test.d.ts} +0 -0
@@ -0,0 +1,113 @@
|
|
1
|
+
import { GetUserAgentOptions } from "@fedify/vocab-runtime";
|
2
|
+
import { TracerProvider } from "@opentelemetry/api";
|
3
|
+
|
4
|
+
//#region src/webfinger/jrd.d.ts
|
5
|
+
/**
|
6
|
+
* Describes a resource. See also
|
7
|
+
* [RFC 7033 section 4.4](https://datatracker.ietf.org/doc/html/rfc7033#section-4.4).
|
8
|
+
*/
|
9
|
+
interface ResourceDescriptor {
|
10
|
+
/**
|
11
|
+
* A URI that identifies the entity that this descriptor describes.
|
12
|
+
*/
|
13
|
+
subject?: string;
|
14
|
+
/**
|
15
|
+
* URIs that identify the same entity as the `subject`.
|
16
|
+
*/
|
17
|
+
aliases?: string[];
|
18
|
+
/**
|
19
|
+
* Conveys additional information about the `subject` of this descriptor.
|
20
|
+
*/
|
21
|
+
properties?: Record<string, string>;
|
22
|
+
/**
|
23
|
+
* Links to other resources.
|
24
|
+
*/
|
25
|
+
links?: Link[];
|
26
|
+
}
|
27
|
+
/**
|
28
|
+
* Represents a link. See also
|
29
|
+
* [RFC 7033 section 4.4.4](https://datatracker.ietf.org/doc/html/rfc7033#section-4.4.4).
|
30
|
+
*/
|
31
|
+
interface Link {
|
32
|
+
/**
|
33
|
+
* The link's relation type, which is either a URI or a registered relation
|
34
|
+
* type (see [RFC 5988](https://datatracker.ietf.org/doc/html/rfc5988)).
|
35
|
+
*/
|
36
|
+
rel: string;
|
37
|
+
/**
|
38
|
+
* The media type of the target resource (see
|
39
|
+
* [RFC 6838](https://datatracker.ietf.org/doc/html/rfc6838)).
|
40
|
+
*/
|
41
|
+
type?: string;
|
42
|
+
/**
|
43
|
+
* A URI pointing to the target resource.
|
44
|
+
*/
|
45
|
+
href?: string;
|
46
|
+
/**
|
47
|
+
* Human-readable titles describing the link relation. If the language is
|
48
|
+
* unknown or unspecified, the key is `"und"`.
|
49
|
+
*/
|
50
|
+
titles?: Record<string, string>;
|
51
|
+
/**
|
52
|
+
* Conveys additional information about the link relation.
|
53
|
+
*/
|
54
|
+
properties?: Record<string, string>;
|
55
|
+
/**
|
56
|
+
* A URI Template (RFC 6570) that can be used to construct URIs by
|
57
|
+
* substituting variables. Used primarily for subscription endpoints
|
58
|
+
* where parameters like account URIs need to be dynamically inserted.
|
59
|
+
* @since 1.9.0
|
60
|
+
*/
|
61
|
+
template?: string;
|
62
|
+
}
|
63
|
+
//#endregion
|
64
|
+
//#region src/webfinger/lookup.d.ts
|
65
|
+
/**
|
66
|
+
* Options for {@link lookupWebFinger}.
|
67
|
+
* @since 1.3.0
|
68
|
+
*/
|
69
|
+
interface LookupWebFingerOptions {
|
70
|
+
/**
|
71
|
+
* The options for making `User-Agent` header.
|
72
|
+
* If a string is given, it is used as the `User-Agent` header value.
|
73
|
+
* If an object is given, it is passed to {@link getUserAgent} to generate
|
74
|
+
* the `User-Agent` header value.
|
75
|
+
*/
|
76
|
+
userAgent?: GetUserAgentOptions | string;
|
77
|
+
/**
|
78
|
+
* Whether to allow private IP addresses in the URL.
|
79
|
+
*
|
80
|
+
* Mostly useful for testing purposes. *Do not use this in production.*
|
81
|
+
*
|
82
|
+
* Turned off by default.
|
83
|
+
* @since 1.4.0
|
84
|
+
*/
|
85
|
+
allowPrivateAddress?: boolean;
|
86
|
+
/**
|
87
|
+
* The maximum number of redirections to follow.
|
88
|
+
* @default `5`
|
89
|
+
* @since 1.8.0
|
90
|
+
*/
|
91
|
+
maxRedirection?: number;
|
92
|
+
/**
|
93
|
+
* The OpenTelemetry tracer provider. If omitted, the global tracer provider
|
94
|
+
* is used.
|
95
|
+
*/
|
96
|
+
tracerProvider?: TracerProvider;
|
97
|
+
/**
|
98
|
+
* AbortSignal for cancelling the request.
|
99
|
+
* @since 1.8.0
|
100
|
+
* @
|
101
|
+
*/
|
102
|
+
signal?: AbortSignal;
|
103
|
+
}
|
104
|
+
/**
|
105
|
+
* Looks up a WebFinger resource.
|
106
|
+
* @param resource The resource URL to look up.
|
107
|
+
* @param options Extra options for looking up the resource.
|
108
|
+
* @returns The resource descriptor, or `null` if not found.
|
109
|
+
* @since 0.2.0
|
110
|
+
*/
|
111
|
+
declare function lookupWebFinger(resource: URL | string, options?: LookupWebFingerOptions): Promise<ResourceDescriptor | null>;
|
112
|
+
//#endregion
|
113
|
+
export { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger };
|
@@ -0,0 +1,80 @@
|
|
1
|
+
import { Activity } from "./vocab-CeDBzu-f.cjs";
|
2
|
+
import { ActivityTransformer, Context } from "./context-DJ8aSy2Q.cjs";
|
3
|
+
|
4
|
+
//#region src/compat/transformers.d.ts
|
5
|
+
|
6
|
+
/**
|
7
|
+
* An activity transformer that assigns a new random ID to an activity if it
|
8
|
+
* does not already have one. This is useful for ensuring that activities
|
9
|
+
* have an ID before they are sent to other servers.
|
10
|
+
*
|
11
|
+
* The generated ID is an origin URI with a fragment which contains an activity
|
12
|
+
* type name with a random UUID:
|
13
|
+
*
|
14
|
+
* ```
|
15
|
+
* https://example.com/#Follow/12345678-1234-5678-1234-567812345678
|
16
|
+
* ```
|
17
|
+
*
|
18
|
+
* @template TContextData The type of the context data.
|
19
|
+
* @param activity The activity to assign an ID to.
|
20
|
+
* @param context The context of the activity.
|
21
|
+
* @return The activity with an ID assigned.
|
22
|
+
* @since 1.4.0
|
23
|
+
*/
|
24
|
+
declare function autoIdAssigner<TContextData>(activity: Activity, context: Context<TContextData>): Activity;
|
25
|
+
/**
|
26
|
+
* An activity transformer that dehydrates the actor property of an activity
|
27
|
+
* so that it only contains the actor's URI. For example, suppose we have an
|
28
|
+
* activity like this:
|
29
|
+
*
|
30
|
+
* ```typescript
|
31
|
+
* import { Follow, Person } from "@fedify/fedify/vocab";
|
32
|
+
* const input = new Follow({
|
33
|
+
* id: new URL("http://example.com/activities/1"),
|
34
|
+
* actor: new Person({
|
35
|
+
* id: new URL("http://example.com/actors/1"),
|
36
|
+
* name: "Alice",
|
37
|
+
* preferredUsername: "alice",
|
38
|
+
* }),
|
39
|
+
* object: new Person({
|
40
|
+
* id: new URL("http://example.com/actors/2"),
|
41
|
+
* name: "Bob",
|
42
|
+
* preferredUsername: "bob",
|
43
|
+
* }),
|
44
|
+
* });
|
45
|
+
* ```
|
46
|
+
*
|
47
|
+
* The result of applying this transformer would be:
|
48
|
+
*
|
49
|
+
* ```typescript
|
50
|
+
* import { Follow, Person } from "@fedify/fedify/vocab";
|
51
|
+
* const output = new Follow({
|
52
|
+
* id: new URL("http://example.com/activities/1"),
|
53
|
+
* actor: new URL("http://example.com/actors/1"),
|
54
|
+
* object: new Person({
|
55
|
+
* id: new URL("http://example.com/actors/2"),
|
56
|
+
* name: "Bob",
|
57
|
+
* preferredUsername: "bob",
|
58
|
+
* }),
|
59
|
+
* });
|
60
|
+
* ```
|
61
|
+
*
|
62
|
+
* As some ActivityPub implementations like Threads fail to deal with inlined
|
63
|
+
* actor objects, this transformer can be used to work around this issue.
|
64
|
+
* @template TContextData The type of the context data.
|
65
|
+
* @param activity The activity to dehydrate the actor property of.
|
66
|
+
* @param context The context of the activity.
|
67
|
+
* @returns The dehydrated activity.
|
68
|
+
* @since 1.4.0
|
69
|
+
*/
|
70
|
+
declare function actorDehydrator<TContextData>(activity: Activity, _context: Context<TContextData>): Activity;
|
71
|
+
/**
|
72
|
+
* Gets the default activity transformers that are applied to all outgoing
|
73
|
+
* activities.
|
74
|
+
* @template TContextData The type of the context data.
|
75
|
+
* @returns The default activity transformers.
|
76
|
+
* @since 1.4.0
|
77
|
+
*/
|
78
|
+
declare function getDefaultActivityTransformers<TContextData>(): readonly ActivityTransformer<TContextData>[];
|
79
|
+
//#endregion
|
80
|
+
export { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
@@ -0,0 +1,266 @@
|
|
1
|
+
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-CeDBzu-f.cjs";
|
2
|
+
import { KeyCache } from "./http-M8k5mKc0.cjs";
|
3
|
+
import { DocumentLoader } from "@fedify/vocab-runtime";
|
4
|
+
import { TracerProvider } from "@opentelemetry/api";
|
5
|
+
|
6
|
+
//#region src/sig/ld.d.ts
|
7
|
+
/**
|
8
|
+
* A signature of a JSON-LD document.
|
9
|
+
* @since 1.0.0
|
10
|
+
*/
|
11
|
+
interface Signature {
|
12
|
+
"@context"?: "https://w3id.org/identity/v1";
|
13
|
+
type: "RsaSignature2017";
|
14
|
+
id?: string;
|
15
|
+
creator: string;
|
16
|
+
created: string;
|
17
|
+
signatureValue: string;
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* Attaches a LD signature to the given JSON-LD document.
|
21
|
+
* @param jsonLd The JSON-LD document to attach the signature to. It is not
|
22
|
+
* modified.
|
23
|
+
* @param signature The signature to attach.
|
24
|
+
* @returns The JSON-LD document with the attached signature.
|
25
|
+
* @throws {TypeError} If the input document is not a valid JSON-LD document.
|
26
|
+
* @since 1.0.0
|
27
|
+
*/
|
28
|
+
declare function attachSignature(jsonLd: unknown, signature: Signature): {
|
29
|
+
signature: Signature;
|
30
|
+
};
|
31
|
+
/**
|
32
|
+
* Options for creating Linked Data Signatures.
|
33
|
+
* @since 1.0.0
|
34
|
+
*/
|
35
|
+
interface CreateSignatureOptions {
|
36
|
+
/**
|
37
|
+
* The context loader for loading remote JSON-LD contexts.
|
38
|
+
*/
|
39
|
+
contextLoader?: DocumentLoader;
|
40
|
+
/**
|
41
|
+
* The time when the signature was created. If not specified, the current
|
42
|
+
* time will be used.
|
43
|
+
*/
|
44
|
+
created?: Temporal.Instant;
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* Creates a LD signature for the given JSON-LD document.
|
48
|
+
* @param jsonLd The JSON-LD document to sign.
|
49
|
+
* @param privateKey The private key to sign the document.
|
50
|
+
* @param keyId The ID of the public key that corresponds to the private key.
|
51
|
+
* @param options Additional options for creating the signature.
|
52
|
+
* See also {@link CreateSignatureOptions}.
|
53
|
+
* @return The created signature.
|
54
|
+
* @throws {TypeError} If the private key is invalid or unsupported.
|
55
|
+
* @since 1.0.0
|
56
|
+
*/
|
57
|
+
declare function createSignature(jsonLd: unknown, privateKey: CryptoKey, keyId: URL, {
|
58
|
+
contextLoader,
|
59
|
+
created
|
60
|
+
}?: CreateSignatureOptions): Promise<Signature>;
|
61
|
+
/**
|
62
|
+
* Options for signing JSON-LD documents.
|
63
|
+
* @since 1.0.0
|
64
|
+
*/
|
65
|
+
interface SignJsonLdOptions extends CreateSignatureOptions {
|
66
|
+
/**
|
67
|
+
* The OpenTelemetry tracer provider for tracing the signing process.
|
68
|
+
* If omitted, the global tracer provider is used.
|
69
|
+
* @since 1.3.0
|
70
|
+
*/
|
71
|
+
tracerProvider?: TracerProvider;
|
72
|
+
}
|
73
|
+
/**
|
74
|
+
* Signs the given JSON-LD document with the private key and returns the signed
|
75
|
+
* JSON-LD document.
|
76
|
+
* @param jsonLd The JSON-LD document to sign.
|
77
|
+
* @param privateKey The private key to sign the document.
|
78
|
+
* @param keyId The key ID to use in the signature. It will be used by the
|
79
|
+
* verifier to fetch the corresponding public key.
|
80
|
+
* @param options Additional options for signing the document.
|
81
|
+
* See also {@link SignJsonLdOptions}.
|
82
|
+
* @returns The signed JSON-LD document.
|
83
|
+
* @throws {TypeError} If the private key is invalid or unsupported.
|
84
|
+
* @since 1.0.0
|
85
|
+
*/
|
86
|
+
declare function signJsonLd(jsonLd: unknown, privateKey: CryptoKey, keyId: URL, options: SignJsonLdOptions): Promise<{
|
87
|
+
signature: Signature;
|
88
|
+
}>;
|
89
|
+
/**
|
90
|
+
* Detaches Linked Data Signatures from the given JSON-LD document.
|
91
|
+
* @param jsonLd The JSON-LD document to modify.
|
92
|
+
* @returns The modified JSON-LD document. If the input document does not
|
93
|
+
* contain a signature, the original document is returned.
|
94
|
+
* @since 1.0.0
|
95
|
+
*/
|
96
|
+
declare function detachSignature(jsonLd: unknown): unknown;
|
97
|
+
/**
|
98
|
+
* Options for verifying Linked Data Signatures.
|
99
|
+
* @since 1.0.0
|
100
|
+
*/
|
101
|
+
interface VerifySignatureOptions {
|
102
|
+
/**
|
103
|
+
* The document loader to use for fetching the public key.
|
104
|
+
*/
|
105
|
+
documentLoader?: DocumentLoader;
|
106
|
+
/**
|
107
|
+
* The context loader to use for JSON-LD context retrieval.
|
108
|
+
*/
|
109
|
+
contextLoader?: DocumentLoader;
|
110
|
+
/**
|
111
|
+
* The key cache to use for caching public keys.
|
112
|
+
*/
|
113
|
+
keyCache?: KeyCache;
|
114
|
+
/**
|
115
|
+
* The OpenTelemetry tracer provider for tracing the verification process.
|
116
|
+
* If omitted, the global tracer provider is used.
|
117
|
+
* @since 1.3.0
|
118
|
+
*/
|
119
|
+
tracerProvider?: TracerProvider;
|
120
|
+
}
|
121
|
+
/**
|
122
|
+
* Verifies Linked Data Signatures of the given JSON-LD document.
|
123
|
+
* @param jsonLd The JSON-LD document to verify.
|
124
|
+
* @param options Options for verifying the signature.
|
125
|
+
* @returns The public key that signed the document or `null` if the signature
|
126
|
+
* is invalid or the key is not found.
|
127
|
+
* @since 1.0.0
|
128
|
+
*/
|
129
|
+
declare function verifySignature(jsonLd: unknown, options?: VerifySignatureOptions): Promise<CryptographicKey | null>;
|
130
|
+
/**
|
131
|
+
* Options for verifying JSON-LD documents.
|
132
|
+
*/
|
133
|
+
interface VerifyJsonLdOptions extends VerifySignatureOptions {}
|
134
|
+
/**
|
135
|
+
* Verify the authenticity of the given JSON-LD document using Linked Data
|
136
|
+
* Signatures. If the document is signed, this function verifies the signature
|
137
|
+
* and checks if the document is attributed to the owner of the public key.
|
138
|
+
* If the document is not signed, this function returns `false`.
|
139
|
+
* @param jsonLd The JSON-LD document to verify.
|
140
|
+
* @param options Options for verifying the document.
|
141
|
+
* @returns `true` if the document is authentic; `false` otherwise.
|
142
|
+
*/
|
143
|
+
declare function verifyJsonLd(jsonLd: unknown, options?: VerifyJsonLdOptions): Promise<boolean>;
|
144
|
+
//#endregion
|
145
|
+
//#region src/sig/proof.d.ts
|
146
|
+
/**
|
147
|
+
* Options for {@link createProof}.
|
148
|
+
* @since 0.10.0
|
149
|
+
*/
|
150
|
+
interface CreateProofOptions {
|
151
|
+
/**
|
152
|
+
* The context loader for loading remote JSON-LD contexts.
|
153
|
+
*/
|
154
|
+
contextLoader?: DocumentLoader;
|
155
|
+
/**
|
156
|
+
* The JSON-LD context to use for serializing the object to sign.
|
157
|
+
*/
|
158
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
159
|
+
/**
|
160
|
+
* The time when the proof was created. If not specified, the current time
|
161
|
+
* will be used.
|
162
|
+
*/
|
163
|
+
created?: Temporal.Instant;
|
164
|
+
}
|
165
|
+
/**
|
166
|
+
* Creates a proof for the given object.
|
167
|
+
* @param object The object to create a proof for.
|
168
|
+
* @param privateKey The private key to sign the proof with.
|
169
|
+
* @param keyId The key ID to use in the proof. It will be used by the verifier.
|
170
|
+
* @param options Additional options. See also {@link CreateProofOptions}.
|
171
|
+
* @returns The created proof.
|
172
|
+
* @throws {TypeError} If the private key is invalid or unsupported.
|
173
|
+
* @since 0.10.0
|
174
|
+
*/
|
175
|
+
declare function createProof(object: Object$1, privateKey: CryptoKey, keyId: URL, {
|
176
|
+
contextLoader,
|
177
|
+
context,
|
178
|
+
created
|
179
|
+
}?: CreateProofOptions): Promise<DataIntegrityProof>;
|
180
|
+
/**
|
181
|
+
* Options for {@link signObject}.
|
182
|
+
* @since 0.10.0
|
183
|
+
*/
|
184
|
+
interface SignObjectOptions extends CreateProofOptions {
|
185
|
+
/**
|
186
|
+
* The document loader for loading remote JSON-LD documents.
|
187
|
+
*/
|
188
|
+
documentLoader?: DocumentLoader;
|
189
|
+
/**
|
190
|
+
* The OpenTelemetry tracer provider. If omitted, the global tracer provider
|
191
|
+
* is used.
|
192
|
+
* @since 1.3.0
|
193
|
+
*/
|
194
|
+
tracerProvider?: TracerProvider;
|
195
|
+
}
|
196
|
+
/**
|
197
|
+
* Signs the given object with the private key and returns the signed object.
|
198
|
+
* @param object The object to create a proof for.
|
199
|
+
* @param privateKey The private key to sign the proof with.
|
200
|
+
* @param keyId The key ID to use in the proof. It will be used by the verifier.
|
201
|
+
* @param options Additional options. See also {@link SignObjectOptions}.
|
202
|
+
* @returns The signed object.
|
203
|
+
* @throws {TypeError} If the private key is invalid or unsupported.
|
204
|
+
* @since 0.10.0
|
205
|
+
*/
|
206
|
+
declare function signObject<T extends Object$1>(object: T, privateKey: CryptoKey, keyId: URL, options?: SignObjectOptions): Promise<T>;
|
207
|
+
/**
|
208
|
+
* Options for {@link verifyProof}.
|
209
|
+
* @since 0.10.0
|
210
|
+
*/
|
211
|
+
interface VerifyProofOptions {
|
212
|
+
/**
|
213
|
+
* The context loader for loading remote JSON-LD contexts.
|
214
|
+
*/
|
215
|
+
contextLoader?: DocumentLoader;
|
216
|
+
/**
|
217
|
+
* The document loader for loading remote JSON-LD documents.
|
218
|
+
*/
|
219
|
+
documentLoader?: DocumentLoader;
|
220
|
+
/**
|
221
|
+
* The key cache to use for caching public keys.
|
222
|
+
* @since 0.12.0
|
223
|
+
*/
|
224
|
+
keyCache?: KeyCache;
|
225
|
+
/**
|
226
|
+
* The OpenTelemetry tracer provider. If omitted, the global tracer provider
|
227
|
+
* is used.
|
228
|
+
* @since 1.3.0
|
229
|
+
*/
|
230
|
+
tracerProvider?: TracerProvider;
|
231
|
+
}
|
232
|
+
/**
|
233
|
+
* Verifies the given proof for the object.
|
234
|
+
* @param jsonLd The JSON-LD object to verify the proof for. If it contains
|
235
|
+
* any proofs, they will be ignored.
|
236
|
+
* @param proof The proof to verify.
|
237
|
+
* @param options Additional options. See also {@link VerifyProofOptions}.
|
238
|
+
* @returns The public key that was used to sign the proof, or `null` if the
|
239
|
+
* proof is invalid.
|
240
|
+
* @since 0.10.0
|
241
|
+
*/
|
242
|
+
declare function verifyProof(jsonLd: unknown, proof: DataIntegrityProof, options?: VerifyProofOptions): Promise<Multikey | null>;
|
243
|
+
/**
|
244
|
+
* Options for {@link verifyObject}.
|
245
|
+
* @since 0.10.0
|
246
|
+
*/
|
247
|
+
interface VerifyObjectOptions extends VerifyProofOptions {}
|
248
|
+
/**
|
249
|
+
* Verifies the given object. It will verify all the proofs in the object,
|
250
|
+
* and succeed only if all the proofs are valid and all attributions and
|
251
|
+
* actors are authenticated by the proofs.
|
252
|
+
* @template T The type of the object to verify.
|
253
|
+
* @param cls The class of the object to verify. It must be a subclass of
|
254
|
+
* the {@link Object}.
|
255
|
+
* @param jsonLd The JSON-LD object to verify. It's assumed that the object
|
256
|
+
* is a compacted JSON-LD representation of a `T` with `@context`.
|
257
|
+
* @param options Additional options. See also {@link VerifyObjectOptions}.
|
258
|
+
* @returns The object if it's verified, or `null` if it's not.
|
259
|
+
* @throws {TypeError} If the object is invalid or unsupported.
|
260
|
+
* @since 0.10.0
|
261
|
+
*/
|
262
|
+
declare function verifyObject<T extends Object$1>(cls: (new (...args: any[]) => T) & {
|
263
|
+
fromJsonLd(jsonLd: unknown, options: VerifyObjectOptions): Promise<T>;
|
264
|
+
}, jsonLd: unknown, options?: VerifyObjectOptions): Promise<T | null>;
|
265
|
+
//#endregion
|
266
|
+
export { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature };
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { GetUserAgentOptions } from "./docloader-CxWcuWqQ.js";
|
4
3
|
import { TracerProvider } from "@opentelemetry/api";
|
4
|
+
import { GetUserAgentOptions } from "@fedify/vocab-runtime";
|
5
5
|
|
6
6
|
//#region src/webfinger/jrd.d.ts
|
7
7
|
/**
|
package/dist/mod.cjs
ADDED
@@ -0,0 +1,137 @@
|
|
1
|
+
|
2
|
+
const { Temporal } = require("@js-temporal/polyfill");
|
3
|
+
const { URLPattern } = require("urlpattern-polyfill");
|
4
|
+
|
5
|
+
const require_transformers = require('./transformers-CoBS-oFG.cjs');
|
6
|
+
require('./compat-DmDDELst.cjs');
|
7
|
+
const require_lookup = require('./lookup-CfFkONZD.cjs');
|
8
|
+
const require_actor = require('./actor-Ba9Z1eNJ.cjs');
|
9
|
+
const require_middleware = require('./middleware-D74TgW2E.cjs');
|
10
|
+
const require_http = require('./http-Dofes42e.cjs');
|
11
|
+
const require_proof = require('./proof-D0uThUvD.cjs');
|
12
|
+
const require_federation = require('./federation-CRpdnOMS.cjs');
|
13
|
+
const require_types = require('./types-CWgzGaqk.cjs');
|
14
|
+
const require_kv_cache = require('./kv-cache-Dkvbn6rg.cjs');
|
15
|
+
const require_vocab = require('./vocab-DFaWWYDn.cjs');
|
16
|
+
require('./nodeinfo-CdN0rEnZ.cjs');
|
17
|
+
require('./sig-YYj5tCnr.cjs');
|
18
|
+
require('./utils-DyRU1gdZ.cjs');
|
19
|
+
require('./webfinger-vAtLmxOF.cjs');
|
20
|
+
|
21
|
+
exports.Accept = require_actor.Accept;
|
22
|
+
exports.Activity = require_actor.Activity;
|
23
|
+
exports.Add = require_actor.Add;
|
24
|
+
exports.Announce = require_actor.Announce;
|
25
|
+
exports.Application = require_actor.Application;
|
26
|
+
exports.Arrive = require_actor.Arrive;
|
27
|
+
exports.Article = require_actor.Article;
|
28
|
+
exports.Audio = require_actor.Audio;
|
29
|
+
exports.Block = require_actor.Block;
|
30
|
+
exports.ChatMessage = require_actor.ChatMessage;
|
31
|
+
exports.Collection = require_actor.Collection;
|
32
|
+
exports.CollectionPage = require_actor.CollectionPage;
|
33
|
+
exports.Create = require_actor.Create;
|
34
|
+
exports.CryptographicKey = require_actor.CryptographicKey;
|
35
|
+
exports.DataIntegrityProof = require_actor.DataIntegrityProof;
|
36
|
+
exports.Delete = require_actor.Delete;
|
37
|
+
exports.DidService = require_actor.DidService;
|
38
|
+
exports.Dislike = require_actor.Dislike;
|
39
|
+
exports.Document = require_actor.Document;
|
40
|
+
exports.Emoji = require_actor.Emoji;
|
41
|
+
exports.EmojiReact = require_actor.EmojiReact;
|
42
|
+
exports.Endpoints = require_actor.Endpoints;
|
43
|
+
exports.Event = require_actor.Event;
|
44
|
+
exports.Export = require_actor.Export;
|
45
|
+
exports.Flag = require_actor.Flag;
|
46
|
+
exports.Follow = require_actor.Follow;
|
47
|
+
exports.Group = require_actor.Group;
|
48
|
+
exports.Hashtag = require_actor.Hashtag;
|
49
|
+
exports.Ignore = require_actor.Ignore;
|
50
|
+
exports.Image = require_actor.Image;
|
51
|
+
exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
|
52
|
+
exports.IntransitiveActivity = require_actor.IntransitiveActivity;
|
53
|
+
exports.Invite = require_actor.Invite;
|
54
|
+
exports.Join = require_actor.Join;
|
55
|
+
exports.Leave = require_actor.Leave;
|
56
|
+
exports.Like = require_actor.Like;
|
57
|
+
exports.Link = require_actor.Link;
|
58
|
+
exports.Listen = require_actor.Listen;
|
59
|
+
exports.MemoryKvStore = require_federation.MemoryKvStore;
|
60
|
+
exports.Mention = require_actor.Mention;
|
61
|
+
exports.Move = require_actor.Move;
|
62
|
+
exports.Multikey = require_actor.Multikey;
|
63
|
+
exports.Note = require_actor.Note;
|
64
|
+
exports.Object = require_actor.Object$1;
|
65
|
+
exports.Offer = require_actor.Offer;
|
66
|
+
exports.OrderedCollection = require_actor.OrderedCollection;
|
67
|
+
exports.OrderedCollectionPage = require_actor.OrderedCollectionPage;
|
68
|
+
exports.Organization = require_actor.Organization;
|
69
|
+
exports.PUBLIC_COLLECTION = require_vocab.PUBLIC_COLLECTION;
|
70
|
+
exports.Page = require_actor.Page;
|
71
|
+
exports.ParallelMessageQueue = require_federation.ParallelMessageQueue;
|
72
|
+
exports.Person = require_actor.Person;
|
73
|
+
exports.Place = require_actor.Place;
|
74
|
+
exports.Profile = require_actor.Profile;
|
75
|
+
exports.PropertyValue = require_actor.PropertyValue;
|
76
|
+
exports.Question = require_actor.Question;
|
77
|
+
exports.Read = require_actor.Read;
|
78
|
+
exports.Reject = require_actor.Reject;
|
79
|
+
exports.Relationship = require_actor.Relationship;
|
80
|
+
exports.Remove = require_actor.Remove;
|
81
|
+
exports.Router = require_middleware.Router;
|
82
|
+
exports.RouterError = require_middleware.RouterError;
|
83
|
+
exports.Service = require_actor.Service;
|
84
|
+
exports.Source = require_actor.Source;
|
85
|
+
exports.TentativeAccept = require_actor.TentativeAccept;
|
86
|
+
exports.TentativeReject = require_actor.TentativeReject;
|
87
|
+
exports.Tombstone = require_actor.Tombstone;
|
88
|
+
exports.Travel = require_actor.Travel;
|
89
|
+
exports.Undo = require_actor.Undo;
|
90
|
+
exports.Update = require_actor.Update;
|
91
|
+
exports.Video = require_actor.Video;
|
92
|
+
exports.View = require_actor.View;
|
93
|
+
exports.actorDehydrator = require_transformers.actorDehydrator;
|
94
|
+
exports.attachSignature = require_proof.attachSignature;
|
95
|
+
exports.autoIdAssigner = require_transformers.autoIdAssigner;
|
96
|
+
exports.buildCollectionSynchronizationHeader = require_middleware.buildCollectionSynchronizationHeader;
|
97
|
+
exports.createExponentialBackoffPolicy = require_middleware.createExponentialBackoffPolicy;
|
98
|
+
exports.createFederation = require_middleware.createFederation;
|
99
|
+
exports.createFederationBuilder = require_middleware.createFederationBuilder;
|
100
|
+
exports.createProof = require_proof.createProof;
|
101
|
+
exports.createSignature = require_proof.createSignature;
|
102
|
+
exports.detachSignature = require_proof.detachSignature;
|
103
|
+
exports.digest = require_middleware.digest;
|
104
|
+
exports.doesActorOwnKey = require_proof.doesActorOwnKey;
|
105
|
+
exports.exportJwk = require_http.exportJwk;
|
106
|
+
exports.fetchKey = require_http.fetchKey;
|
107
|
+
exports.generateCryptoKeyPair = require_http.generateCryptoKeyPair;
|
108
|
+
exports.getActorClassByTypeName = require_actor.getActorClassByTypeName;
|
109
|
+
exports.getActorHandle = require_actor.getActorHandle;
|
110
|
+
exports.getActorTypeName = require_actor.getActorTypeName;
|
111
|
+
exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocumentLoader;
|
112
|
+
exports.getDefaultActivityTransformers = require_transformers.getDefaultActivityTransformers;
|
113
|
+
exports.getKeyOwner = require_proof.getKeyOwner;
|
114
|
+
exports.getNodeInfo = require_types.getNodeInfo;
|
115
|
+
exports.getTypeId = require_actor.getTypeId;
|
116
|
+
exports.importJwk = require_http.importJwk;
|
117
|
+
exports.isActor = require_actor.isActor;
|
118
|
+
exports.isFediverseHandle = require_vocab.isFediverseHandle;
|
119
|
+
exports.kvCache = require_kv_cache.kvCache;
|
120
|
+
exports.lookupObject = require_vocab.lookupObject;
|
121
|
+
exports.lookupWebFinger = require_lookup.lookupWebFinger;
|
122
|
+
exports.nodeInfoToJson = require_types.nodeInfoToJson;
|
123
|
+
exports.normalizeActorHandle = require_actor.normalizeActorHandle;
|
124
|
+
exports.parseFediverseHandle = require_vocab.parseFediverseHandle;
|
125
|
+
exports.parseNodeInfo = require_types.parseNodeInfo;
|
126
|
+
exports.respondWithObject = require_middleware.respondWithObject;
|
127
|
+
exports.respondWithObjectIfAcceptable = require_middleware.respondWithObjectIfAcceptable;
|
128
|
+
exports.signJsonLd = require_proof.signJsonLd;
|
129
|
+
exports.signObject = require_proof.signObject;
|
130
|
+
exports.signRequest = require_http.signRequest;
|
131
|
+
exports.toAcctUrl = require_vocab.toAcctUrl;
|
132
|
+
exports.traverseCollection = require_vocab.traverseCollection;
|
133
|
+
exports.verifyJsonLd = require_proof.verifyJsonLd;
|
134
|
+
exports.verifyObject = require_proof.verifyObject;
|
135
|
+
exports.verifyProof = require_proof.verifyProof;
|
136
|
+
exports.verifyRequest = require_http.verifyRequest;
|
137
|
+
exports.verifySignature = require_proof.verifySignature;
|
package/dist/mod.d.cts
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./client-94iWEfQa.cjs";
|
2
|
+
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View } from "./vocab-CeDBzu-f.cjs";
|
3
|
+
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-f2NtjyCg.cjs";
|
4
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-M8k5mKc0.cjs";
|
5
|
+
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-B4HbyP8s.cjs";
|
6
|
+
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-BxRCHTz-.cjs";
|
7
|
+
import { ResourceDescriptor, lookupWebFinger } from "./mod-C58MZ7Wx.cjs";
|
8
|
+
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-DJ8aSy2Q.cjs";
|
9
|
+
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-Bxr0Q87_.cjs";
|
10
|
+
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-DcJPkXD5.cjs";
|
11
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-DJcZDvjA.cjs";
|
12
|
+
import "./mod-B-hUPT2N.cjs";
|
13
|
+
import "./mod-C2tOeRkN.cjs";
|
14
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-DgdBYYa0.cjs";
|
15
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./mod-0noXw66R.cjs";
|
16
|
+
export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthorizePredicate, Block, ChatMessage, Collection, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, CollectionPage, ConstructorWithTypeId, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DataIntegrityProof, Delete, DidService, Dislike, Document, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FediverseHandle, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvKey, KvStore, KvStoreSetOptions, Leave, Like, Link, Listen, LookupObjectOptions, MemoryKvStore, Mention, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, Move, Multikey, NodeInfo, NodeInfoDispatcher, NormalizeActorHandleOptions, Note, Object$1 as Object, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, Offer, OrderedCollection, OrderedCollectionPage, Organization, OutboundService, OutboxErrorHandler, PUBLIC_COLLECTION, Page, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Service, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, Video, View, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, getTypeId, importJwk, isActor, isFediverseHandle, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|