@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
package/dist/mod.js CHANGED
@@ -1,23 +1,23 @@
1
1
 
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-Dna8Fg7k.js";
6
- import "./compat-Bb5myD13.js";
7
- import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-XJzCMWY-.js";
8
- 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, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-CdM_sJLC.js";
9
- import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-e_Gw7sQy.js";
10
- import { lookupWebFinger } from "./lookup-CIsbr_Qi.js";
11
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-BdBFUTr5.js";
12
- import { signRequest, verifyRequest } from "./http-DYB4M8Pr.js";
13
- import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-DKGUTtBt.js";
14
- import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-CMX7WzeL.js";
15
- import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-CuvNqe2X.js";
16
- import { getAuthenticatedDocumentLoader } from "./authdocloader-VVd0U8Qg.js";
17
- import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-CEXwobaS.js";
18
- import "./nodeinfo-CyEbLjHs.js";
19
- import "./runtime-BSkOVUWM.js";
20
- import "./sig-BXJO--F9.js";
21
- import "./webfinger-C3GIyXIg.js";
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+
5
+ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-BFT6d7J5.js";
6
+ import "./compat-nxUqe4Z-.js";
7
+ import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-BKf9RWX4.js";
8
+ 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, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-Detmisdi.js";
9
+ import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-T_y4Bnvw.js";
10
+ import { lookupWebFinger } from "./lookup-D_-F1hLw.js";
11
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-BCWvPOkD.js";
12
+ import { signRequest, verifyRequest } from "./http-CwlUFNG4.js";
13
+ import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-BuPk23Er.js";
14
+ import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-D1U8YY9t.js";
15
+ import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-Q17QxOOC.js";
16
+ import { getAuthenticatedDocumentLoader } from "./authdocloader-5UJ5Gme-.js";
17
+ import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-BUc_4ZsW.js";
18
+ import "./nodeinfo-DfycQ8Wf.js";
19
+ import "./runtime-DPYEDf-o.js";
20
+ import "./sig-Cj3tk-ig.js";
21
+ import "./webfinger-De_bU0iE.js";
22
22
 
23
23
  export { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, FetchError, Flag, Follow, Group, Hashtag, Ignore, Image, InProcessMessageQueue, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, MemoryKvStore, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, ParallelMessageQueue, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Router, RouterError, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, 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 };
@@ -0,0 +1,140 @@
1
+ //#region src/federation/mq.d.ts
2
+ /**
3
+ * Additional options for enqueuing a message in a queue.
4
+ *
5
+ * @since 0.5.0
6
+ */
7
+ interface MessageQueueEnqueueOptions {
8
+ /**
9
+ * The delay before the message is enqueued. No delay by default.
10
+ *
11
+ * It must not be negative.
12
+ */
13
+ delay?: Temporal.Duration;
14
+ }
15
+ /**
16
+ * Additional options for listening to a message queue.
17
+ *
18
+ * @since 1.0.0
19
+ */
20
+ interface MessageQueueListenOptions {
21
+ /**
22
+ * The signal to abort listening to the message queue.
23
+ */
24
+ signal?: AbortSignal;
25
+ }
26
+ /**
27
+ * An abstract interface for a message queue.
28
+ *
29
+ * @since 0.5.0
30
+ */
31
+ interface MessageQueue {
32
+ /**
33
+ * Whether the message queue backend provides native retry mechanisms.
34
+ * When `true`, Fedify will skip its own retry logic and rely on the backend
35
+ * to handle retries. When `false` or omitted, Fedify will handle retries
36
+ * using its own retry policies.
37
+ *
38
+ * @default `false`
39
+ * @since 1.7.0
40
+ */
41
+ readonly nativeRetrial?: boolean;
42
+ /**
43
+ * Enqueues a message in the queue.
44
+ * @param message The message to enqueue.
45
+ * @param options Additional options for enqueuing the message.
46
+ */
47
+ enqueue(message: any, options?: MessageQueueEnqueueOptions): Promise<void>;
48
+ /**
49
+ * Enqueues multiple messages in the queue. This operation is optional,
50
+ * and may not be supported by all implementations. If not supported,
51
+ * Fedify will invoke {@link enqueue} for each message.
52
+ *
53
+ * @param messages The messages to enqueue.
54
+ * @param options Additional options for enqueuing the messages.
55
+ */
56
+ enqueueMany?: (messages: any[], options?: MessageQueueEnqueueOptions) => Promise<void>;
57
+ /**
58
+ * Listens for messages in the queue.
59
+ * @param handler The handler for messages in the queue.
60
+ * @param options Additional options for listening to the message queue.
61
+ * @returns A promise that resolves when the listening is done. It never
62
+ * rejects, and is resolved when the signal is aborted. If no
63
+ * signal is provided, it never resolves.
64
+ */
65
+ listen(handler: (message: any) => Promise<void> | void, options?: MessageQueueListenOptions): Promise<void>;
66
+ }
67
+ /**
68
+ * Additional options for {@link InProcessMessageQueue}.
69
+ * @since 1.0.0
70
+ */
71
+ interface InProcessMessageQueueOptions {
72
+ /**
73
+ * The interval to poll for messages in the queue. 5 seconds by default.
74
+ * @default `{ seconds: 5 }`
75
+ */
76
+ pollInterval?: Temporal.Duration | Temporal.DurationLike;
77
+ }
78
+ /**
79
+ * A message queue that processes messages in the same process.
80
+ * Do not use this in production as it does neither persist messages nor
81
+ * distribute them across multiple processes.
82
+ *
83
+ * @since 0.5.0
84
+ */
85
+ declare class InProcessMessageQueue implements MessageQueue {
86
+ #private;
87
+ /**
88
+ * In-process message queue does not provide native retry mechanisms.
89
+ * @since 1.7.0
90
+ */
91
+ readonly nativeRetrial = false;
92
+ /**
93
+ * Constructs a new {@link InProcessMessageQueue} with the given options.
94
+ * @param options Additional options for the in-process message queue.
95
+ */
96
+ constructor(options?: InProcessMessageQueueOptions);
97
+ enqueue(message: any, options?: MessageQueueEnqueueOptions): Promise<void>;
98
+ enqueueMany(messages: any[], options?: MessageQueueEnqueueOptions): Promise<void>;
99
+ listen(handler: (message: any) => Promise<void> | void, options?: MessageQueueListenOptions): Promise<void>;
100
+ }
101
+ /**
102
+ * A message queue that processes messages in parallel. It takes another
103
+ * {@link MessageQueue}, and processes messages in parallel up to a certain
104
+ * number of workers.
105
+ *
106
+ * Actually, it's rather a decorator than a queue itself.
107
+ *
108
+ * Note that the workers do not run in truly parallel, in the sense that they
109
+ * are not running in separate threads or processes. They are running in the
110
+ * same process, but are scheduled to run in parallel. Hence, this is useful
111
+ * for I/O-bound tasks, but not for CPU-bound tasks, which is okay for Fedify's
112
+ * workloads.
113
+ *
114
+ * @since 1.0.0
115
+ */
116
+ declare class ParallelMessageQueue implements MessageQueue {
117
+ #private;
118
+ readonly queue: MessageQueue;
119
+ readonly workers: number;
120
+ /**
121
+ * Inherits the native retry capability from the wrapped queue.
122
+ * @since 1.7.0
123
+ */
124
+ readonly nativeRetrial?: boolean;
125
+ /**
126
+ * Constructs a new {@link ParallelMessageQueue} with the given queue and
127
+ * number of workers.
128
+ * @param queue The message queue to use under the hood. Note that
129
+ * {@link ParallelMessageQueue} cannot be nested.
130
+ * @param workers The number of workers to process messages in parallel.
131
+ * @throws {TypeError} If the given queue is an instance of
132
+ * {@link ParallelMessageQueue}.
133
+ */
134
+ constructor(queue: MessageQueue, workers: number);
135
+ enqueue(message: any, options?: MessageQueueEnqueueOptions): Promise<void>;
136
+ enqueueMany(messages: any[], options?: MessageQueueEnqueueOptions): Promise<void>;
137
+ listen(handler: (message: any) => Promise<void> | void, options?: MessageQueueListenOptions): Promise<void>;
138
+ }
139
+ //#endregion
140
+ export { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue };
@@ -3,20 +3,20 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-DDwsy8fI.js";
6
+ import "../type-DF9yoIpt.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
10
  import "../semver-dArNLkR9.js";
11
- import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-DB8N2RwI.js";
12
- import "../lookup-CXaZBmuy.js";
13
- import { test } from "../testing-DUFWSgSt.js";
11
+ import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-DgRjF0ha.js";
12
+ import "../lookup-DdxOle8f.js";
13
+ import { test } from "../testing-BX6IA3LR.js";
14
14
  import "../std__assert-X-_kMxKM.js";
15
15
  import "../assert_rejects-DiIiJbZn.js";
16
16
  import "../assert_is_error-BPGph1Jx.js";
17
17
  import "../assert_not_equals-f3m3epl3.js";
18
18
  import "../assert_throws-BOO88avQ.js";
19
- import { esm_default } from "../esm-BVYQVacR.js";
19
+ import { esm_default } from "../esm-B_ZjJ1sB.js";
20
20
 
21
21
  //#region src/nodeinfo/client.test.ts
22
22
  test("getNodeInfo()", async (t) => {
@@ -3,30 +3,30 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-DDwsy8fI.js";
6
+ import "../type-DF9yoIpt.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
10
  import { MemoryKvStore } from "../kv-CRZrzyXm.js";
11
- import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-D5JRdsEc.js";
11
+ import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-CuTcPjfP.js";
12
12
  import { parseSemVer } from "../semver-dArNLkR9.js";
13
- import "../client-DB8N2RwI.js";
14
- import "../lookup-CXaZBmuy.js";
13
+ import "../client-DgRjF0ha.js";
14
+ import "../lookup-DdxOle8f.js";
15
15
  import "../types-BIgY6c-l.js";
16
- import "../actor-ByOSf9n9.js";
17
- import "../key-feGm-IP3.js";
18
- import "../http-B_bBrm6N.js";
19
- import "../authdocloader-CfP6lfxM.js";
20
- import "../ld-DJCemZO2.js";
21
- import "../owner-i9FkgZwa.js";
22
- import "../proof-Bvtdd-Ul.js";
23
- import "../inbox-B4k2JQpE.js";
24
- import "../builder-mfXmda-W.js";
16
+ import "../actor-Dw7av4Zk.js";
17
+ import "../key-Jrnr66vx.js";
18
+ import "../http-C5XLveZw.js";
19
+ import "../authdocloader-ZlLoXSxM.js";
20
+ import "../ld-BSE4jnyK.js";
21
+ import "../owner-DJtc8evi.js";
22
+ import "../proof-9OMp0o4n.js";
23
+ import "../inbox-sVXiVBbT.js";
24
+ import "../builder-BbKfqPmR.js";
25
25
  import "../collection-CSzG2j1P.js";
26
- import "../keycache-b7FYgzB9.js";
26
+ import "../keycache-ogQInQck.js";
27
27
  import "../retry-D4GJ670a.js";
28
- import "../send-Cuw-wTCx.js";
29
- import { createRequestContext, test } from "../testing-DUFWSgSt.js";
28
+ import "../send-cXerEJm9.js";
29
+ import { createRequestContext, test } from "../testing-BX6IA3LR.js";
30
30
  import "../std__assert-X-_kMxKM.js";
31
31
  import "../assert_rejects-DiIiJbZn.js";
32
32
  import "../assert_is_error-BPGph1Jx.js";
@@ -0,0 +1,13 @@
1
+
2
+ const { Temporal } = require("@js-temporal/polyfill");
3
+ const { URLPattern } = require("urlpattern-polyfill");
4
+
5
+ require('../docloader-eqgyMp7h.cjs');
6
+ const require_types = require('../types-DcKQIzdO.cjs');
7
+ require('../nodeinfo-Co9lJrWl.cjs');
8
+
9
+ exports.formatSemVer = require_types.formatSemVer;
10
+ exports.getNodeInfo = require_types.getNodeInfo;
11
+ exports.nodeInfoToJson = require_types.nodeInfoToJson;
12
+ exports.parseNodeInfo = require_types.parseNodeInfo;
13
+ exports.parseSemVer = require_types.parseSemVer;
@@ -0,0 +1,5 @@
1
+ import "../kv-63Cil1MD.cjs";
2
+ import "../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 "../mod-FZd39qVq.cjs";
5
+ export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
@@ -1,9 +1,9 @@
1
1
 
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- import "../docloader-XJzCMWY-.js";
6
- import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-CuvNqe2X.js";
7
- import "../nodeinfo-CyEbLjHs.js";
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+
5
+ import "../docloader-BKf9RWX4.js";
6
+ import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-Q17QxOOC.js";
7
+ import "../nodeinfo-DfycQ8Wf.js";
8
8
 
9
9
  export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
@@ -3,13 +3,13 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-DDwsy8fI.js";
6
+ import "../type-DF9yoIpt.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
10
  import { formatSemVer, parseSemVer } from "../semver-dArNLkR9.js";
11
- import "../lookup-CXaZBmuy.js";
12
- import { test } from "../testing-DUFWSgSt.js";
11
+ import "../lookup-DdxOle8f.js";
12
+ import { test } from "../testing-BX6IA3LR.js";
13
13
  import "../std__assert-X-_kMxKM.js";
14
14
  import "../assert_rejects-DiIiJbZn.js";
15
15
  import "../assert_is_error-BPGph1Jx.js";
@@ -3,14 +3,14 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-DDwsy8fI.js";
6
+ import "../type-DF9yoIpt.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
10
  import "../semver-dArNLkR9.js";
11
- import "../lookup-CXaZBmuy.js";
11
+ import "../lookup-DdxOle8f.js";
12
12
  import { nodeInfoToJson } from "../types-BIgY6c-l.js";
13
- import { test } from "../testing-DUFWSgSt.js";
13
+ import { test } from "../testing-BX6IA3LR.js";
14
14
  import "../std__assert-X-_kMxKM.js";
15
15
  import "../assert_rejects-DiIiJbZn.js";
16
16
  import "../assert_is_error-BPGph1Jx.js";
@@ -0,0 +1,4 @@
1
+
2
+ const { Temporal } = require("@js-temporal/polyfill");
3
+ const { URLPattern } = require("urlpattern-polyfill");
4
+
@@ -0,0 +1,4 @@
1
+
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+
@@ -0,0 +1,67 @@
1
+ import { DocumentLoader } from "./docloader-D-MrRyHl.cjs";
2
+ import { Activity, CryptographicKey } from "./vocab-BzGg7ltX.cjs";
3
+ import { Actor } from "./actor-CHOM_AN3.cjs";
4
+ import { TracerProvider } from "@opentelemetry/api";
5
+
6
+ //#region src/sig/owner.d.ts
7
+ /**
8
+ * Options for {@link doesActorOwnKey}.
9
+ * @since 0.8.0
10
+ */
11
+ interface DoesActorOwnKeyOptions {
12
+ /**
13
+ * The document loader to use for fetching the actor.
14
+ */
15
+ documentLoader?: DocumentLoader;
16
+ /**
17
+ * The context loader to use for JSON-LD context retrieval.
18
+ */
19
+ contextLoader?: DocumentLoader;
20
+ /**
21
+ * The OpenTelemetry tracer provider to use for tracing. If omitted,
22
+ * the global tracer provider is used.
23
+ * @since 1.3.0
24
+ */
25
+ tracerProvider?: TracerProvider;
26
+ }
27
+ /**
28
+ * Checks if the actor of the given activity owns the specified key.
29
+ * @param activity The activity to check.
30
+ * @param key The public key to check.
31
+ * @param options Options for checking the key ownership.
32
+ * @returns Whether the actor is the owner of the key.
33
+ */
34
+ declare function doesActorOwnKey(activity: Activity, key: CryptographicKey, options: DoesActorOwnKeyOptions): Promise<boolean>;
35
+ /**
36
+ * Options for {@link getKeyOwner}.
37
+ * @since 0.8.0
38
+ */
39
+ interface GetKeyOwnerOptions {
40
+ /**
41
+ * The document loader to use for fetching the key and its owner.
42
+ */
43
+ documentLoader?: DocumentLoader;
44
+ /**
45
+ * The context loader to use for JSON-LD context retrieval.
46
+ */
47
+ contextLoader?: DocumentLoader;
48
+ /**
49
+ * The OpenTelemetry tracer provider to use for tracing. If omitted,
50
+ * the global tracer provider is used.
51
+ * @since 1.3.0
52
+ */
53
+ tracerProvider?: TracerProvider;
54
+ }
55
+ /**
56
+ * Gets the actor that owns the specified key. Returns `null` if the key has no
57
+ * known owner.
58
+ *
59
+ * @param keyId The ID of the key to check, or the key itself.
60
+ * @param options Options for getting the key owner.
61
+ * @returns The actor that owns the key, or `null` if the key has no known
62
+ * owner.
63
+ * @since 0.7.0
64
+ */
65
+ declare function getKeyOwner(keyId: URL | CryptographicKey, options: GetKeyOwnerOptions): Promise<Actor | null>;
66
+ //#endregion
67
+ export { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner };
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Object as Object$1, getDocumentLoader } from "./type-DDwsy8fI.js";
7
- import { isActor } from "./actor-ByOSf9n9.js";
6
+ import { CryptographicKey, Object as Object$1, getDocumentLoader } from "./type-DF9yoIpt.js";
7
+ import { isActor } from "./actor-Dw7av4Zk.js";
8
8
  import { trace } from "@opentelemetry/api";
9
9
 
10
10
  //#region src/sig/owner.ts
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./type-DDwsy8fI.js";
7
- import { fetchKey, validateCryptoKey } from "./key-feGm-IP3.js";
6
+ import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./type-DF9yoIpt.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-Jrnr66vx.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { encodeHex } from "byte-encodings/hex";
@@ -1,10 +1,10 @@
1
1
 
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- import { deno_default, getDocumentLoader } from "./docloader-XJzCMWY-.js";
6
- import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-CdM_sJLC.js";
7
- import { fetchKey, validateCryptoKey } from "./key-BdBFUTr5.js";
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+
5
+ import { deno_default, getDocumentLoader } from "./docloader-BKf9RWX4.js";
6
+ import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-Detmisdi.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-BCWvPOkD.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import jsonld from "jsonld";