@fedify/fedify 0.7.0-dev.132 → 0.7.0-dev.133

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @fedify/fedify might be problematic. Click here for more details.

@@ -2,7 +2,7 @@
2
2
  /// <reference types="node" />
3
3
  import type { DocumentLoader } from "../runtime/docloader.js";
4
4
  import { Activity, type Link, type Object } from "../vocab/vocab.js";
5
- import type { ActorDispatcher, AuthorizePredicate, CollectionCounter, CollectionCursor, CollectionDispatcher, InboxErrorHandler, InboxListener } from "./callback.js";
5
+ import type { ActorDispatcher, AuthorizePredicate, CollectionCounter, CollectionCursor, CollectionDispatcher, InboxErrorHandler, InboxListener, ObjectAuthorizePredicate, ObjectDispatcher } from "./callback.js";
6
6
  import type { RequestContext } from "./context.js";
7
7
  import type { KvKey, KvStore } from "./kv.js";
8
8
  export declare function acceptsJsonLd(request: Request): boolean;
@@ -16,6 +16,16 @@ export interface ActorHandlerParameters<TContextData> {
16
16
  onNotAcceptable(request: Request): Response | Promise<Response>;
17
17
  }
18
18
  export declare function handleActor<TContextData>(request: Request, { handle, context, actorDispatcher, authorizePredicate, onNotFound, onNotAcceptable, onUnauthorized, }: ActorHandlerParameters<TContextData>): Promise<Response>;
19
+ export interface ObjectHandlerParameters<TContextData> {
20
+ values: Record<string, string>;
21
+ context: RequestContext<TContextData>;
22
+ objectDispatcher?: ObjectDispatcher<TContextData, Object, string>;
23
+ authorizePredicate?: ObjectAuthorizePredicate<TContextData, string>;
24
+ onUnauthorized(request: Request): Response | Promise<Response>;
25
+ onNotFound(request: Request): Response | Promise<Response>;
26
+ onNotAcceptable(request: Request): Response | Promise<Response>;
27
+ }
28
+ export declare function handleObject<TContextData>(request: Request, { values, context, objectDispatcher, authorizePredicate, onNotFound, onNotAcceptable, onUnauthorized, }: ObjectHandlerParameters<TContextData>): Promise<Response>;
19
29
  /**
20
30
  * Callbacks for handling a collection.
21
31
  */
@@ -1 +1 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../src/federation/handler.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AAe,EACf,cAAc,EACd,iBAAiB,EACjB,UAAU,GACX,EAAE,sBAAsB,CAAC,YAAY,CAAC,GACtC,OAAO,CAAC,QAAQ,CAAC,CA6HnB;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,cAAc,EAAE,cAAc,CAAC;CAChC;AAED;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,QAAQ,CAAC,CAOnB;AAED;;;;;;;;GAQG;AACH,wBAAsB,6BAA6B,CACjD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAK1B"}
@@ -4,8 +4,8 @@ import * as dntShim from "../_dnt.shims.js";
4
4
  import { Temporal } from "@js-temporal/polyfill";
5
5
  import { type AuthenticatedDocumentLoaderFactory, type DocumentLoader } from "../runtime/docloader.js";
6
6
  import type { Actor } from "../vocab/actor.js";
7
- import { Activity } from "../vocab/mod.js";
8
- import type { ActorDispatcher, ActorKeyPairDispatcher, AuthorizePredicate, CollectionCounter, CollectionCursor, CollectionDispatcher, InboxErrorHandler, InboxListener, NodeInfoDispatcher, OutboxErrorHandler } from "./callback.js";
7
+ import { Activity, type Object } from "../vocab/mod.js";
8
+ import type { ActorDispatcher, ActorKeyPairDispatcher, AuthorizePredicate, CollectionCounter, CollectionCursor, CollectionDispatcher, InboxErrorHandler, InboxListener, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectDispatcher, OutboxErrorHandler } from "./callback.js";
9
9
  import type { Context, RequestContext, SendActivityOptions } from "./context.js";
10
10
  import type { KvKey, KvStore } from "./kv.js";
11
11
  import type { MessageQueue } from "./mq.js";
@@ -140,7 +140,109 @@ export declare class Federation<TContextData> {
140
140
  * @returns An object with methods to set other actor dispatcher callbacks.
141
141
  * @throws {RouterError} Thrown if the path pattern is invalid.
142
142
  */
143
- setActorDispatcher(path: string, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
143
+ setActorDispatcher(path: `${string}{handle}${string}`, dispatcher: ActorDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
144
+ /**
145
+ * Registers an object dispatcher.
146
+ *
147
+ * @typeParam TContextData The context data to pass to the {@link Context}.
148
+ * @typeParam TObject The type of object to dispatch.
149
+ * @typeParam TParam The parameter names of the requested URL.
150
+ * @param cls The Activity Vocabulary class of the object to dispatch.
151
+ * @param path The URI path pattern for the object dispatcher. The syntax is
152
+ * based on URI Template
153
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
154
+ * must have one or more variables.
155
+ * @param dispatcher An object dispatcher callback to register.
156
+ * @since 0.7.0
157
+ */
158
+ setObjectDispatcher<TObject extends Object, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
159
+ typeId: URL;
160
+ }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
161
+ /**
162
+ * Registers an object dispatcher.
163
+ *
164
+ * @typeParam TContextData The context data to pass to the {@link Context}.
165
+ * @typeParam TObject The type of object to dispatch.
166
+ * @typeParam TParam The parameter names of the requested URL.
167
+ * @param cls The Activity Vocabulary class of the object to dispatch.
168
+ * @param path The URI path pattern for the object dispatcher. The syntax is
169
+ * based on URI Template
170
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
171
+ * must have one or more variables.
172
+ * @param dispatcher An object dispatcher callback to register.
173
+ * @since 0.7.0
174
+ */
175
+ setObjectDispatcher<TObject extends Object, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
176
+ typeId: URL;
177
+ }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
178
+ /**
179
+ * Registers an object dispatcher.
180
+ *
181
+ * @typeParam TContextData The context data to pass to the {@link Context}.
182
+ * @typeParam TObject The type of object to dispatch.
183
+ * @typeParam TParam The parameter names of the requested URL.
184
+ * @param cls The Activity Vocabulary class of the object to dispatch.
185
+ * @param path The URI path pattern for the object dispatcher. The syntax is
186
+ * based on URI Template
187
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
188
+ * must have one or more variables.
189
+ * @param dispatcher An object dispatcher callback to register.
190
+ * @since 0.7.0
191
+ */
192
+ setObjectDispatcher<TObject extends Object, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
193
+ typeId: URL;
194
+ }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
195
+ /**
196
+ * Registers an object dispatcher.
197
+ *
198
+ * @typeParam TContextData The context data to pass to the {@link Context}.
199
+ * @typeParam TObject The type of object to dispatch.
200
+ * @typeParam TParam The parameter names of the requested URL.
201
+ * @param cls The Activity Vocabulary class of the object to dispatch.
202
+ * @param path The URI path pattern for the object dispatcher. The syntax is
203
+ * based on URI Template
204
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
205
+ * must have one or more variables.
206
+ * @param dispatcher An object dispatcher callback to register.
207
+ * @since 0.7.0
208
+ */
209
+ setObjectDispatcher<TObject extends Object, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
210
+ typeId: URL;
211
+ }, path: `${string}{${TParam}}${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
212
+ /**
213
+ * Registers an object dispatcher.
214
+ *
215
+ * @typeParam TContextData The context data to pass to the {@link Context}.
216
+ * @typeParam TObject The type of object to dispatch.
217
+ * @typeParam TParam The parameter names of the requested URL.
218
+ * @param cls The Activity Vocabulary class of the object to dispatch.
219
+ * @param path The URI path pattern for the object dispatcher. The syntax is
220
+ * based on URI Template
221
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
222
+ * must have one or more variables.
223
+ * @param dispatcher An object dispatcher callback to register.
224
+ * @since 0.7.0
225
+ */
226
+ setObjectDispatcher<TObject extends Object, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
227
+ typeId: URL;
228
+ }, path: `${string}{${TParam}}${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
229
+ /**
230
+ * Registers an object dispatcher.
231
+ *
232
+ * @typeParam TContextData The context data to pass to the {@link Context}.
233
+ * @typeParam TObject The type of object to dispatch.
234
+ * @typeParam TParam The parameter names of the requested URL.
235
+ * @param cls The Activity Vocabulary class of the object to dispatch.
236
+ * @param path The URI path pattern for the object dispatcher. The syntax is
237
+ * based on URI Template
238
+ * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). The path
239
+ * must have one or more variables.
240
+ * @param dispatcher An object dispatcher callback to register.
241
+ * @since 0.7.0
242
+ */
243
+ setObjectDispatcher<TObject extends Object, TParam extends string>(cls: (new (...args: any[]) => TObject) & {
244
+ typeId: URL;
245
+ }, path: `${string}{${TParam}}${string}`, dispatcher: ObjectDispatcher<TContextData, TObject, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
144
246
  /**
145
247
  * Registers an outbox dispatcher.
146
248
  *
@@ -164,7 +266,7 @@ export declare class Federation<TContextData> {
164
266
  * @param dispatcher An outbox dispatcher callback to register.
165
267
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
166
268
  */
167
- setOutboxDispatcher(path: string, dispatcher: CollectionDispatcher<Activity, TContextData>): CollectionCallbackSetters<TContextData>;
269
+ setOutboxDispatcher(path: `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Activity, TContextData>): CollectionCallbackSetters<TContextData>;
168
270
  /**
169
271
  * Registers a following collection dispatcher.
170
272
  * @param path The URI path pattern for the following collection. The syntax
@@ -176,7 +278,7 @@ export declare class Federation<TContextData> {
176
278
  * callbacks.
177
279
  * @throws {RouterError} Thrown if the path pattern is invalid.
178
280
  */
179
- setFollowingDispatcher(path: string, dispatcher: CollectionDispatcher<Actor | URL, TContextData>): CollectionCallbackSetters<TContextData>;
281
+ setFollowingDispatcher(path: `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Actor | URL, TContextData>): CollectionCallbackSetters<TContextData>;
180
282
  /**
181
283
  * Registers a followers collection dispatcher.
182
284
  * @param path The URI path pattern for the followers collection. The syntax
@@ -188,7 +290,7 @@ export declare class Federation<TContextData> {
188
290
  * callbacks.
189
291
  * @throws {@link RouterError} Thrown if the path pattern is invalid.
190
292
  */
191
- setFollowersDispatcher(path: string, dispatcher: CollectionDispatcher<Actor | URL, TContextData>): CollectionCallbackSetters<TContextData>;
293
+ setFollowersDispatcher(path: `${string}{handle}${string}`, dispatcher: CollectionDispatcher<Actor | URL, TContextData>): CollectionCallbackSetters<TContextData>;
192
294
  /**
193
295
  * Assigns the URL path for the inbox and starts setting inbox listeners.
194
296
  *
@@ -218,7 +320,7 @@ export declare class Federation<TContextData> {
218
320
  * @returns An object to register inbox listeners.
219
321
  * @throws {RouteError} Thrown if the path pattern is invalid.
220
322
  */
221
- setInboxListeners(inboxPath: string, sharedInboxPath?: string): InboxListenerSetter<TContextData>;
323
+ setInboxListeners(inboxPath: `${string}{handle}${string}`, sharedInboxPath?: string): InboxListenerSetter<TContextData>;
222
324
  /**
223
325
  * Sends an activity to recipients' inboxes. You would typically use
224
326
  * {@link Context.sendActivity} instead of this method.
@@ -322,6 +424,18 @@ export interface ActorCallbackSetters<TContextData> {
322
424
  */
323
425
  authorize(predicate: AuthorizePredicate<TContextData>): ActorCallbackSetters<TContextData>;
324
426
  }
427
+ /**
428
+ * Additional settings for an object dispatcher.
429
+ */
430
+ export interface ObjectCallbackSetters<TContextData, TObject extends Object, TParam extends string> {
431
+ /**
432
+ * Specifies the conditions under which requests are authorized.
433
+ * @param predicate A callback that returns whether a request is authorized.
434
+ * @returns The setters object so that settings can be chained.
435
+ * @since 0.7.0
436
+ */
437
+ authorize(predicate: ObjectAuthorizePredicate<TContextData, TParam>): ObjectCallbackSetters<TContextData, TObject, TParam>;
438
+ }
325
439
  /**
326
440
  * Additional settings for a collection dispatcher.
327
441
  */
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/federation/middleware.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAKjD,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,cAAc,EAIpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAoB,MAAM,iBAAiB,CAAC;AAE7D,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAK5C;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,OAAO,CAAC;IAEZ;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAE3C;;;;OAIG;IACH,KA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