@fedify/fedify 1.9.0-pr.428.1588 → 1.9.0-pr.431.1597

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 (153) hide show
  1. package/dist/actor-CHOM_AN3.d.cts +128 -0
  2. package/dist/actor-CfaqWvJb.cjs +37783 -0
  3. package/dist/{actor-CdM_sJLC.js → actor-Detmisdi.js} +190 -190
  4. package/dist/{actor-ByOSf9n9.js → actor-Dw7av4Zk.js} +1 -1
  5. package/dist/{authdocloader-VVd0U8Qg.js → authdocloader-5UJ5Gme-.js} +6 -6
  6. package/dist/authdocloader-BVYv0Ct8.cjs +58 -0
  7. package/dist/{authdocloader-CfP6lfxM.js → authdocloader-ZlLoXSxM.js} +3 -3
  8. package/dist/{builder-mfXmda-W.js → builder-BbKfqPmR.js} +4 -4
  9. package/dist/chunk-DqRYRqnO.cjs +34 -0
  10. package/dist/{client-DB8N2RwI.js → client-DgRjF0ha.js} +1 -1
  11. package/dist/client-DjT_tegg.d.cts +294 -0
  12. package/dist/compat/mod.cjs +10 -0
  13. package/dist/compat/mod.d.cts +13 -0
  14. package/dist/compat/mod.js +5 -5
  15. package/dist/compat/transformers.test.js +16 -16
  16. package/dist/compat-DmDDELst.cjs +4 -0
  17. package/dist/compat-nxUqe4Z-.js +4 -0
  18. package/dist/context-KXVF2AhH.d.cts +2261 -0
  19. package/dist/{docloader-XJzCMWY-.js → docloader-BKf9RWX4.js} +4 -4
  20. package/dist/docloader-D-MrRyHl.d.cts +219 -0
  21. package/dist/docloader-eqgyMp7h.cjs +4682 -0
  22. package/dist/{esm-BVYQVacR.js → esm-B_ZjJ1sB.js} +1 -1
  23. package/dist/federation/builder.test.js +5 -5
  24. package/dist/federation/collection.test.js +3 -3
  25. package/dist/federation/handler.test.js +17 -17
  26. package/dist/federation/inbox.test.js +4 -4
  27. package/dist/federation/keycache.test.js +4 -4
  28. package/dist/federation/kv.test.js +3 -3
  29. package/dist/federation/middleware.test.js +18 -18
  30. package/dist/federation/mod.cjs +29 -0
  31. package/dist/federation/mod.d.cts +13 -0
  32. package/dist/federation/mod.js +15 -15
  33. package/dist/federation/mq.test.js +3 -3
  34. package/dist/federation/retry.test.js +3 -3
  35. package/dist/federation/router.test.js +3 -3
  36. package/dist/federation/send.test.js +10 -10
  37. package/dist/{federation-CMX7WzeL.js → federation-D1U8YY9t.js} +3 -3
  38. package/dist/federation-H2_En3j5.cjs +244 -0
  39. package/dist/http-B_zBcsai.d.cts +253 -0
  40. package/dist/{http-B_bBrm6N.js → http-C5XLveZw.js} +2 -2
  41. package/dist/{http-DYB4M8Pr.js → http-CwlUFNG4.js} +6 -6
  42. package/dist/http-_vjuGcXn.cjs +826 -0
  43. package/dist/{inbox-B4k2JQpE.js → inbox-sVXiVBbT.js} +1 -1
  44. package/dist/key-19P2dWvf.cjs +290 -0
  45. package/dist/{key-BdBFUTr5.js → key-BCWvPOkD.js} +5 -5
  46. package/dist/key-CsQ7J8-m.js +10 -0
  47. package/dist/key-Dt7qJaQT.cjs +10 -0
  48. package/dist/{key-feGm-IP3.js → key-Jrnr66vx.js} +2 -2
  49. package/dist/{key-BcVEPl--.js → key-lpATOAE4.js} +3 -3
  50. package/dist/{keycache-b7FYgzB9.js → keycache-ogQInQck.js} +1 -1
  51. package/dist/{keys-B7uX1KoX.js → keys-DcGsKtHW.js} +1 -1
  52. package/dist/kv-63Cil1MD.d.cts +81 -0
  53. package/dist/{ld-DJCemZO2.js → ld-BSE4jnyK.js} +2 -2
  54. package/dist/lookup-D96ipStp.cjs +137 -0
  55. package/dist/{lookup-CIsbr_Qi.js → lookup-D_-F1hLw.js} +4 -4
  56. package/dist/{lookup-CXaZBmuy.js → lookup-DdxOle8f.js} +1 -1
  57. package/dist/middleware-B0f850Ei.cjs +17 -0
  58. package/dist/middleware-B2DFqtJ-.cjs +4240 -0
  59. package/dist/middleware-COHAbwGs.js +17 -0
  60. package/dist/{middleware-D5JRdsEc.js → middleware-CuTcPjfP.js} +13 -13
  61. package/dist/middleware-Dt7C7qpw.js +26 -0
  62. package/dist/{middleware-e_Gw7sQy.js → middleware-T_y4Bnvw.js} +14 -14
  63. package/dist/mod-C2tOeRkN.d.cts +1 -0
  64. package/dist/mod-C3CGxYoF.d.cts +102 -0
  65. package/dist/mod-COw_caPC.d.cts +266 -0
  66. package/dist/mod-FZd39qVq.d.cts +1 -0
  67. package/dist/mod-NKH_G-IY.d.cts +289 -0
  68. package/dist/mod-YfAcrVbP.d.cts +80 -0
  69. package/dist/mod-jQ4OODsl.d.cts +113 -0
  70. package/dist/mod.cjs +152 -0
  71. package/dist/mod.d.cts +17 -0
  72. package/dist/mod.js +20 -20
  73. package/dist/mq-B7R1Q-M5.d.cts +140 -0
  74. package/dist/nodeinfo/client.test.js +5 -5
  75. package/dist/nodeinfo/handler.test.js +16 -16
  76. package/dist/nodeinfo/mod.cjs +13 -0
  77. package/dist/nodeinfo/mod.d.cts +5 -0
  78. package/dist/nodeinfo/mod.js +6 -6
  79. package/dist/nodeinfo/semver.test.js +3 -3
  80. package/dist/nodeinfo/types.test.js +3 -3
  81. package/dist/nodeinfo-Co9lJrWl.cjs +4 -0
  82. package/dist/nodeinfo-DfycQ8Wf.js +4 -0
  83. package/dist/owner-C9Ry0TOI.d.cts +67 -0
  84. package/dist/{owner-i9FkgZwa.js → owner-DJtc8evi.js} +2 -2
  85. package/dist/{proof-Bvtdd-Ul.js → proof-9OMp0o4n.js} +2 -2
  86. package/dist/{proof-DKGUTtBt.js → proof-BuPk23Er.js} +6 -6
  87. package/dist/proof-CRHppbRk.cjs +673 -0
  88. package/dist/runtime/authdocloader.test.js +9 -9
  89. package/dist/runtime/docloader.test.js +4 -4
  90. package/dist/runtime/key.test.js +5 -5
  91. package/dist/runtime/langstr.test.js +3 -3
  92. package/dist/runtime/mod.cjs +25 -0
  93. package/dist/runtime/mod.d.cts +6 -0
  94. package/dist/runtime/mod.js +10 -10
  95. package/dist/runtime/multibase/multibase.test.js +3 -3
  96. package/dist/runtime/url.test.js +3 -3
  97. package/dist/runtime-C58AJWSv.cjs +4 -0
  98. package/dist/runtime-DPYEDf-o.js +4 -0
  99. package/dist/{send-Cuw-wTCx.js → send-cXerEJm9.js} +2 -2
  100. package/dist/sig/http.test.js +8 -8
  101. package/dist/sig/key.test.js +6 -6
  102. package/dist/sig/ld.test.js +7 -7
  103. package/dist/sig/mod.cjs +30 -0
  104. package/dist/sig/mod.d.cts +8 -0
  105. package/dist/sig/mod.js +10 -10
  106. package/dist/sig/owner.test.js +7 -7
  107. package/dist/sig/proof.test.js +7 -7
  108. package/dist/sig-ByHXzqUi.cjs +4 -0
  109. package/dist/sig-Cj3tk-ig.js +4 -0
  110. package/dist/testing/docloader.test.js +3 -3
  111. package/dist/testing/mod.js +3 -3
  112. package/dist/{testing-DUFWSgSt.js → testing-BX6IA3LR.js} +2 -2
  113. package/dist/{transformers-Dna8Fg7k.js → transformers-BFT6d7J5.js} +3 -3
  114. package/dist/transformers-CoBS-oFG.cjs +116 -0
  115. package/dist/{type-DDwsy8fI.js → type-DF9yoIpt.js} +186 -186
  116. package/dist/types-DcKQIzdO.cjs +488 -0
  117. package/dist/{types-CuvNqe2X.js → types-Q17QxOOC.js} +4 -4
  118. package/dist/vocab/actor.test.js +5 -5
  119. package/dist/vocab/lookup.test.js +4 -4
  120. package/dist/vocab/mod.cjs +87 -0
  121. package/dist/vocab/mod.d.cts +6 -0
  122. package/dist/vocab/mod.js +7 -7
  123. package/dist/vocab/type.test.js +3 -3
  124. package/dist/vocab/vocab.test.js +4 -4
  125. package/dist/{vocab-CEXwobaS.js → vocab-BUc_4ZsW.js} +6 -6
  126. package/dist/vocab-BzGg7ltX.d.cts +14629 -0
  127. package/dist/vocab-Du8FV6H1.cjs +282 -0
  128. package/dist/webfinger/handler.test.js +16 -16
  129. package/dist/webfinger/lookup.test.js +4 -4
  130. package/dist/webfinger/mod.cjs +9 -0
  131. package/dist/webfinger/mod.d.cts +4 -0
  132. package/dist/webfinger/mod.js +6 -6
  133. package/dist/webfinger-BjOEdFPs.cjs +4 -0
  134. package/dist/webfinger-De_bU0iE.js +4 -0
  135. package/dist/x/cfworkers.cjs +100 -0
  136. package/dist/x/cfworkers.d.cts +59 -0
  137. package/dist/x/cfworkers.js +3 -3
  138. package/dist/x/cfworkers.test.js +3 -3
  139. package/dist/x/hono.cjs +61 -0
  140. package/dist/x/hono.d.cts +54 -0
  141. package/dist/x/hono.js +3 -3
  142. package/dist/x/sveltekit.cjs +69 -0
  143. package/dist/x/sveltekit.d.cts +46 -0
  144. package/dist/x/sveltekit.js +3 -3
  145. package/package.json +68 -12
  146. package/dist/compat-Bb5myD13.js +0 -4
  147. package/dist/key-0hFXQUQz.js +0 -10
  148. package/dist/middleware-BhQdOVAF.js +0 -17
  149. package/dist/middleware-DVy3ms0C.js +0 -26
  150. package/dist/nodeinfo-CyEbLjHs.js +0 -4
  151. package/dist/runtime-BSkOVUWM.js +0 -4
  152. package/dist/sig-BXJO--F9.js +0 -4
  153. package/dist/webfinger-C3GIyXIg.js +0 -4
@@ -0,0 +1,289 @@
1
+ import { DocumentLoader, GetUserAgentOptions } from "./docloader-D-MrRyHl.cjs";
2
+ import { Collection, Link, Object as Object$1 } from "./vocab-BzGg7ltX.cjs";
3
+ import { TracerProvider } from "@opentelemetry/api";
4
+
5
+ //#region src/vocab/lookup.d.ts
6
+ /**
7
+ * Options for the {@link lookupObject} function.
8
+ *
9
+ * @since 0.2.0
10
+ */
11
+ interface LookupObjectOptions {
12
+ /**
13
+ * The document loader for loading remote JSON-LD documents.
14
+ */
15
+ documentLoader?: DocumentLoader;
16
+ /**
17
+ * The context loader for loading remote JSON-LD contexts.
18
+ * @since 0.8.0
19
+ */
20
+ contextLoader?: DocumentLoader;
21
+ /**
22
+ * The options for making `User-Agent` header.
23
+ * If a string is given, it is used as the `User-Agent` header value.
24
+ * If an object is given, it is passed to {@link getUserAgent} to generate
25
+ * the `User-Agent` header value.
26
+ * @since 1.3.0
27
+ */
28
+ userAgent?: GetUserAgentOptions | string;
29
+ /**
30
+ * The OpenTelemetry tracer provider. If omitted, the global tracer provider
31
+ * is used.
32
+ * @since 1.3.0
33
+ */
34
+ tracerProvider?: TracerProvider;
35
+ /**
36
+ * AbortSignal for cancelling the request.
37
+ * @since 1.8.0
38
+ */
39
+ signal?: AbortSignal;
40
+ }
41
+ /**
42
+ * Looks up an ActivityStreams object by its URI (including `acct:` URIs)
43
+ * or a fediverse handle (e.g., `@user@server` or `user@server`).
44
+ *
45
+ * @example
46
+ * ``` typescript
47
+ * // Look up an actor by its fediverse handle:
48
+ * await lookupObject("@hongminhee@fosstodon.org");
49
+ * // returning a `Person` object.
50
+ *
51
+ * // A fediverse handle can omit the leading '@':
52
+ * await lookupObject("hongminhee@fosstodon.org");
53
+ * // returning a `Person` object.
54
+ *
55
+ * // A `acct:` URI can be used as well:
56
+ * await lookupObject("acct:hongminhee@fosstodon.org");
57
+ * // returning a `Person` object.
58
+ *
59
+ * // Look up an object by its URI:
60
+ * await lookupObject("https://todon.eu/@hongminhee/112060633798771581");
61
+ * // returning a `Note` object.
62
+ *
63
+ * // It can be a `URL` object as well:
64
+ * await lookupObject(new URL("https://todon.eu/@hongminhee/112060633798771581"));
65
+ * // returning a `Note` object.
66
+ * ```
67
+ *
68
+ * @param identifier The URI or fediverse handle to look up.
69
+ * @param options Lookup options.
70
+ * @returns The object, or `null` if not found.
71
+ * @since 0.2.0
72
+ */
73
+ declare function lookupObject(identifier: string | URL, options?: LookupObjectOptions): Promise<Object$1 | null>;
74
+ /**
75
+ * Options for the {@link traverseCollection} function.
76
+ * @since 1.1.0
77
+ */
78
+ interface TraverseCollectionOptions {
79
+ /**
80
+ * The document loader for loading remote JSON-LD documents.
81
+ */
82
+ documentLoader?: DocumentLoader;
83
+ /**
84
+ * The context loader for loading remote JSON-LD contexts.
85
+ */
86
+ contextLoader?: DocumentLoader;
87
+ /**
88
+ * Whether to suppress errors when fetching pages. If `true`,
89
+ * errors will be logged but not thrown. Defaults to `false`.
90
+ */
91
+ suppressError?: boolean;
92
+ /**
93
+ * The interval to wait between fetching pages. Zero or negative
94
+ * values will disable the interval. Disabled by default.
95
+ *
96
+ * @default `{ seconds: 0 }`
97
+ */
98
+ interval?: Temporal.Duration | Temporal.DurationLike;
99
+ }
100
+ /**
101
+ * Traverses a collection, yielding each item in the collection.
102
+ * If the collection is paginated, it will fetch the next page
103
+ * automatically.
104
+ *
105
+ * @example
106
+ * ``` typescript
107
+ * const collection = await lookupObject(collectionUrl);
108
+ * if (collection instanceof Collection) {
109
+ * for await (const item of traverseCollection(collection)) {
110
+ * console.log(item.id?.href);
111
+ * }
112
+ * }
113
+ * ```
114
+ *
115
+ * @param collection The collection to traverse.
116
+ * @param options Options for traversing the collection.
117
+ * @returns An async iterable of each item in the collection.
118
+ * @since 1.1.0
119
+ */
120
+ declare function traverseCollection(collection: Collection, options?: TraverseCollectionOptions): AsyncIterable<Object$1 | Link>;
121
+ //#endregion
122
+ //#region src/vocab/constants.d.ts
123
+ /**
124
+ * The special public collection for [public addressing]. *Do not mutate this
125
+ * object.*
126
+ *
127
+ * [public addressing]: https://www.w3.org/TR/activitypub/#public-addressing
128
+ *
129
+ * @since 0.7.0
130
+ */
131
+ declare const PUBLIC_COLLECTION: URL;
132
+ //#endregion
133
+ //#region src/vocab/handle.d.ts
134
+ /**
135
+ * Represents a fediverse handle, which consists of a username and a host.
136
+ * The username can be alphanumeric and may include special characters,
137
+ * while the host is typically a domain name.
138
+ * @since 1.8.0
139
+ */
140
+ interface FediverseHandle {
141
+ /**
142
+ * The username part of the fediverse handle.
143
+ * It can include alphanumeric characters and some special characters.
144
+ */
145
+ readonly username: string;
146
+ /**
147
+ * The host part of the fediverse handle, typically a domain name.
148
+ * It is the part after the `@` symbol in the handle.
149
+ */
150
+ readonly host: string;
151
+ }
152
+ /**
153
+ * Parses a fediverse handle in the format `@user@server` or `user@server`.
154
+ * The `user` part can contain alphanumeric characters and some special
155
+ * characters except `@`. The `server` part is all characters after the `@`
156
+ * symbol in the middle.
157
+ *
158
+ * @example
159
+ * ```typescript
160
+ * const handle = parseFediverseHandle("@username@example.com");
161
+ * console.log(handle?.username); // "username"
162
+ * console.log(handle?.host); // "example.com"
163
+ * ```
164
+ *
165
+ * @param handle - The fediverse handle string to parse.
166
+ * @returns A {@link FediverseHandle} object with `username` and `host`
167
+ * if the input is valid; otherwise `null`.
168
+ * @since 1.8.0
169
+ */
170
+ declare function parseFediverseHandle(handle: string): FediverseHandle | null;
171
+ /**
172
+ * Checks if a string is a valid fediverse handle in the format `@user@server`
173
+ * or `user@server`. The `user` part can contain alphanumeric characters and
174
+ * some special characters except `@`. The `server` part is all characters
175
+ * after the `@` symbol in the middle.
176
+ *
177
+ * @example
178
+ * ```typescript
179
+ * console.log(isFediverseHandle("@username@example.com")); // true
180
+ * console.log(isFediverseHandle("username@example.com")); // true
181
+ * console.log(isFediverseHandle("@username@")); // false
182
+ * ```
183
+ *
184
+ * @param handle - The string to test as a fediverse handle.
185
+ * @returns `true` if the string matches the fediverse handle pattern;
186
+ * otherwise `false`.
187
+ * @since 1.8.0
188
+ */
189
+ declare function isFediverseHandle(handle: string): handle is `${string}@${string}`;
190
+ /**
191
+ * Converts a fediverse handle in the format `@user@server` or `user@server`
192
+ * to an `acct:` URI, which is a URL-like identifier for ActivityPub actors.
193
+ *
194
+ * @example
195
+ * ```typescript
196
+ * const identifier = toAcctUrl("@username@example.com");
197
+ * console.log(identifier?.href); // "acct:username@example.com"
198
+ * ```
199
+ *
200
+ * @param handle - The fediverse handle string to convert.
201
+ * @returns A `URL` object representing the `acct:` URI if conversion succeeds;
202
+ * otherwise `null`.
203
+ * @since 1.8.0
204
+ */
205
+ declare function toAcctUrl(handle: string): URL | null;
206
+ //#endregion
207
+ //#region src/vocab/type.d.ts
208
+ /**
209
+ * Returns the type URI of the given object.
210
+ *
211
+ * @example
212
+ * ``` typescript
213
+ * import { getTypeId, Person } from "@fedify/fedify";
214
+ *
215
+ * const obj = new Person({});
216
+ * console.log(getTypeId(obj));
217
+ * // => new URL("https://www.w3.org/ns/activitystreams#Person")
218
+ * ```
219
+ *
220
+ * @param object The Activity Vocabulary object.
221
+ * @returns The type URI of the object, e.g.,
222
+ * `new URL("https://www.w3.org/ns/activitystreams#Person")`.
223
+ * If the given `object` is `null` or `undefined`, returns `null` or
224
+ * `undefined`, respectively.
225
+ * @since 1.3.0
226
+ */
227
+ declare function getTypeId(object: Object$1 | Link): URL;
228
+ /**
229
+ * Returns the type URI of the given object.
230
+ *
231
+ * @example
232
+ * ``` typescript
233
+ * import { getTypeId, Person } from "@fedify/fedify";
234
+ *
235
+ * const obj = new Person({});
236
+ * console.log(getTypeId(obj));
237
+ * // => new URL("https://www.w3.org/ns/activitystreams#Person")
238
+ * ```
239
+ *
240
+ * @param object The Activity Vocabulary object.
241
+ * @returns The type URI of the object, e.g.,
242
+ * `new URL("https://www.w3.org/ns/activitystreams#Person")`.
243
+ * If the given `object` is `null` or `undefined`, returns `null` or
244
+ * `undefined`, respectively.
245
+ * @since 1.3.0
246
+ */
247
+ declare function getTypeId(object: Object$1 | Link | undefined): URL | undefined;
248
+ /**
249
+ * Returns the type URI of the given object.
250
+ *
251
+ * @example
252
+ * ``` typescript
253
+ * import { getTypeId, Person } from "@fedify/fedify";
254
+ *
255
+ * const obj = new Person({});
256
+ * console.log(getTypeId(obj));
257
+ * // => new URL("https://www.w3.org/ns/activitystreams#Person")
258
+ * ```
259
+ *
260
+ * @param object The Activity Vocabulary object.
261
+ * @returns The type URI of the object, e.g.,
262
+ * `new URL("https://www.w3.org/ns/activitystreams#Person")`.
263
+ * If the given `object` is `null` or `undefined`, returns `null` or
264
+ * `undefined`, respectively.
265
+ * @since 1.3.0
266
+ */
267
+ declare function getTypeId(object: Object$1 | Link | null): URL | null;
268
+ /**
269
+ * Returns the type URI of the given object.
270
+ *
271
+ * @example
272
+ * ``` typescript
273
+ * import { getTypeId, Person } from "@fedify/fedify";
274
+ *
275
+ * const obj = new Person({});
276
+ * console.log(getTypeId(obj));
277
+ * // => new URL("https://www.w3.org/ns/activitystreams#Person")
278
+ * ```
279
+ *
280
+ * @param object The Activity Vocabulary object.
281
+ * @returns The type URI of the object, e.g.,
282
+ * `new URL("https://www.w3.org/ns/activitystreams#Person")`.
283
+ * If the given `object` is `null` or `undefined`, returns `null` or
284
+ * `undefined`, respectively.
285
+ * @since 1.3.0
286
+ */
287
+ declare function getTypeId(object: Object$1 | Link | null | undefined): URL | null | undefined;
288
+ //#endregion
289
+ export { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection };
@@ -0,0 +1,80 @@
1
+ import { Activity } from "./vocab-BzGg7ltX.cjs";
2
+ import { ActivityTransformer, Context } from "./context-KXVF2AhH.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,113 @@
1
+ import { GetUserAgentOptions } from "./docloader-D-MrRyHl.cjs";
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 };
package/dist/mod.cjs ADDED
@@ -0,0 +1,152 @@
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_docloader = require('./docloader-eqgyMp7h.cjs');
8
+ const require_actor = require('./actor-CfaqWvJb.cjs');
9
+ const require_middleware = require('./middleware-B2DFqtJ-.cjs');
10
+ const require_lookup = require('./lookup-D96ipStp.cjs');
11
+ const require_key = require('./key-19P2dWvf.cjs');
12
+ const require_http = require('./http-_vjuGcXn.cjs');
13
+ const require_proof = require('./proof-CRHppbRk.cjs');
14
+ const require_federation = require('./federation-H2_En3j5.cjs');
15
+ const require_types = require('./types-DcKQIzdO.cjs');
16
+ const require_authdocloader = require('./authdocloader-BVYv0Ct8.cjs');
17
+ const require_vocab = require('./vocab-Du8FV6H1.cjs');
18
+ require('./nodeinfo-Co9lJrWl.cjs');
19
+ require('./runtime-C58AJWSv.cjs');
20
+ require('./sig-ByHXzqUi.cjs');
21
+ require('./webfinger-BjOEdFPs.cjs');
22
+
23
+ exports.Accept = require_actor.Accept;
24
+ exports.Activity = require_actor.Activity;
25
+ exports.Add = require_actor.Add;
26
+ exports.Announce = require_actor.Announce;
27
+ exports.Application = require_actor.Application;
28
+ exports.Arrive = require_actor.Arrive;
29
+ exports.Article = require_actor.Article;
30
+ exports.Audio = require_actor.Audio;
31
+ exports.Block = require_actor.Block;
32
+ exports.ChatMessage = require_actor.ChatMessage;
33
+ exports.Collection = require_actor.Collection;
34
+ exports.CollectionPage = require_actor.CollectionPage;
35
+ exports.Create = require_actor.Create;
36
+ exports.CryptographicKey = require_actor.CryptographicKey;
37
+ exports.DataIntegrityProof = require_actor.DataIntegrityProof;
38
+ exports.Delete = require_actor.Delete;
39
+ exports.DidService = require_actor.DidService;
40
+ exports.Dislike = require_actor.Dislike;
41
+ exports.Document = require_actor.Document;
42
+ exports.Emoji = require_actor.Emoji;
43
+ exports.EmojiReact = require_actor.EmojiReact;
44
+ exports.Endpoints = require_actor.Endpoints;
45
+ exports.Event = require_actor.Event;
46
+ exports.Export = require_actor.Export;
47
+ exports.FetchError = require_docloader.FetchError;
48
+ exports.Flag = require_actor.Flag;
49
+ exports.Follow = require_actor.Follow;
50
+ exports.Group = require_actor.Group;
51
+ exports.Hashtag = require_actor.Hashtag;
52
+ exports.Ignore = require_actor.Ignore;
53
+ exports.Image = require_actor.Image;
54
+ exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
55
+ exports.IntransitiveActivity = require_actor.IntransitiveActivity;
56
+ exports.Invite = require_actor.Invite;
57
+ exports.Join = require_actor.Join;
58
+ exports.LanguageString = require_actor.LanguageString;
59
+ exports.Leave = require_actor.Leave;
60
+ exports.Like = require_actor.Like;
61
+ exports.Link = require_actor.Link;
62
+ exports.Listen = require_actor.Listen;
63
+ exports.MemoryKvStore = require_federation.MemoryKvStore;
64
+ exports.Mention = require_actor.Mention;
65
+ exports.Move = require_actor.Move;
66
+ exports.Multikey = require_actor.Multikey;
67
+ exports.Note = require_actor.Note;
68
+ exports.Object = require_actor.Object$1;
69
+ exports.Offer = require_actor.Offer;
70
+ exports.OrderedCollection = require_actor.OrderedCollection;
71
+ exports.OrderedCollectionPage = require_actor.OrderedCollectionPage;
72
+ exports.Organization = require_actor.Organization;
73
+ exports.PUBLIC_COLLECTION = require_vocab.PUBLIC_COLLECTION;
74
+ exports.Page = require_actor.Page;
75
+ exports.ParallelMessageQueue = require_federation.ParallelMessageQueue;
76
+ exports.Person = require_actor.Person;
77
+ exports.Place = require_actor.Place;
78
+ exports.Profile = require_actor.Profile;
79
+ exports.PropertyValue = require_actor.PropertyValue;
80
+ exports.Question = require_actor.Question;
81
+ exports.Read = require_actor.Read;
82
+ exports.Reject = require_actor.Reject;
83
+ exports.Relationship = require_actor.Relationship;
84
+ exports.Remove = require_actor.Remove;
85
+ exports.Router = require_middleware.Router;
86
+ exports.RouterError = require_middleware.RouterError;
87
+ exports.Service = require_actor.Service;
88
+ exports.Source = require_actor.Source;
89
+ exports.TentativeAccept = require_actor.TentativeAccept;
90
+ exports.TentativeReject = require_actor.TentativeReject;
91
+ exports.Tombstone = require_actor.Tombstone;
92
+ exports.Travel = require_actor.Travel;
93
+ exports.Undo = require_actor.Undo;
94
+ exports.Update = require_actor.Update;
95
+ exports.Video = require_actor.Video;
96
+ exports.View = require_actor.View;
97
+ exports.actorDehydrator = require_transformers.actorDehydrator;
98
+ exports.attachSignature = require_proof.attachSignature;
99
+ exports.autoIdAssigner = require_transformers.autoIdAssigner;
100
+ exports.buildCollectionSynchronizationHeader = require_middleware.buildCollectionSynchronizationHeader;
101
+ exports.createExponentialBackoffPolicy = require_middleware.createExponentialBackoffPolicy;
102
+ exports.createFederation = require_middleware.createFederation;
103
+ exports.createFederationBuilder = require_middleware.createFederationBuilder;
104
+ exports.createProof = require_proof.createProof;
105
+ exports.createSignature = require_proof.createSignature;
106
+ exports.detachSignature = require_proof.detachSignature;
107
+ exports.digest = require_middleware.digest;
108
+ exports.doesActorOwnKey = require_proof.doesActorOwnKey;
109
+ exports.exportJwk = require_key.exportJwk;
110
+ exports.exportMultibaseKey = require_actor.exportMultibaseKey;
111
+ exports.exportSpki = require_actor.exportSpki;
112
+ exports.fetchDocumentLoader = require_docloader.fetchDocumentLoader;
113
+ exports.fetchKey = require_key.fetchKey;
114
+ exports.formatSemVer = require_types.formatSemVer;
115
+ exports.generateCryptoKeyPair = require_key.generateCryptoKeyPair;
116
+ exports.getActorClassByTypeName = require_actor.getActorClassByTypeName;
117
+ exports.getActorHandle = require_actor.getActorHandle;
118
+ exports.getActorTypeName = require_actor.getActorTypeName;
119
+ exports.getAuthenticatedDocumentLoader = require_authdocloader.getAuthenticatedDocumentLoader;
120
+ exports.getDefaultActivityTransformers = require_transformers.getDefaultActivityTransformers;
121
+ exports.getDocumentLoader = require_docloader.getDocumentLoader;
122
+ exports.getKeyOwner = require_proof.getKeyOwner;
123
+ exports.getNodeInfo = require_types.getNodeInfo;
124
+ exports.getTypeId = require_actor.getTypeId;
125
+ exports.getUserAgent = require_docloader.getUserAgent;
126
+ exports.importJwk = require_key.importJwk;
127
+ exports.importMultibaseKey = require_actor.importMultibaseKey;
128
+ exports.importPem = require_actor.importPem;
129
+ exports.importPkcs1 = require_actor.importPkcs1;
130
+ exports.importSpki = require_actor.importSpki;
131
+ exports.isActor = require_actor.isActor;
132
+ exports.isFediverseHandle = require_vocab.isFediverseHandle;
133
+ exports.kvCache = require_docloader.kvCache;
134
+ exports.lookupObject = require_vocab.lookupObject;
135
+ exports.lookupWebFinger = require_lookup.lookupWebFinger;
136
+ exports.nodeInfoToJson = require_types.nodeInfoToJson;
137
+ exports.normalizeActorHandle = require_actor.normalizeActorHandle;
138
+ exports.parseFediverseHandle = require_vocab.parseFediverseHandle;
139
+ exports.parseNodeInfo = require_types.parseNodeInfo;
140
+ exports.parseSemVer = require_types.parseSemVer;
141
+ exports.respondWithObject = require_middleware.respondWithObject;
142
+ exports.respondWithObjectIfAcceptable = require_middleware.respondWithObjectIfAcceptable;
143
+ exports.signJsonLd = require_proof.signJsonLd;
144
+ exports.signObject = require_proof.signObject;
145
+ exports.signRequest = require_http.signRequest;
146
+ exports.toAcctUrl = require_vocab.toAcctUrl;
147
+ exports.traverseCollection = require_vocab.traverseCollection;
148
+ exports.verifyJsonLd = require_proof.verifyJsonLd;
149
+ exports.verifyObject = require_proof.verifyObject;
150
+ exports.verifyProof = require_proof.verifyProof;
151
+ exports.verifyRequest = require_http.verifyRequest;
152
+ exports.verifySignature = require_proof.verifySignature;
package/dist/mod.d.cts ADDED
@@ -0,0 +1,17 @@
1
+ import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-63Cil1MD.cjs";
2
+ import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-D-MrRyHl.cjs";
3
+ import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./client-DjT_tegg.cjs";
4
+ 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, LanguageString, 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-BzGg7ltX.cjs";
5
+ import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-CHOM_AN3.cjs";
6
+ import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-B_zBcsai.cjs";
7
+ import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-C9Ry0TOI.cjs";
8
+ import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-NKH_G-IY.cjs";
9
+ import { ResourceDescriptor, lookupWebFinger } from "./mod-jQ4OODsl.cjs";
10
+ 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, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-KXVF2AhH.cjs";
11
+ import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-B7R1Q-M5.cjs";
12
+ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-YfAcrVbP.cjs";
13
+ import "./mod-C2tOeRkN.cjs";
14
+ import "./mod-FZd39qVq.cjs";
15
+ import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-C3CGxYoF.cjs";
16
+ import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-COw_caPC.cjs";
17
+ export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthenticatedDocumentLoaderFactory, 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, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FediverseHandle, FetchError, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetAuthenticatedDocumentLoaderOptions, GetDocumentLoaderOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, GetUserAgentOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvCacheParameters, KvKey, KvStore, KvStoreSetOptions, LanguageString, 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, ParamsKeyPath, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, RemoteDocument, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SemVer, 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, exportMultibaseKey, exportSpki, fetchDocumentLoader, fetchKey, formatSemVer, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getDocumentLoader, getKeyOwner, getNodeInfo, getTypeId, getUserAgent, importJwk, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, isFediverseHandle, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, parseSemVer, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };