Loading packages/fedify/src/federation/builder.ts +0 −69 Original line number Diff line number Diff line Loading @@ -1206,29 +1206,6 @@ export class FederationBuilderImpl<TContextData> return setters; } setCollectionDispatcher< TObject extends Object, TParam extends string, >( name: string | symbol, // deno-lint-ignore no-explicit-any itemType: (new (...args: any[]) => TObject) & { typeId: URL }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}`, dispatcher: CustomCollectionDispatcher< TObject, TParam, RequestContext<TContextData>, TContextData >, ): CustomCollectionCallbackSetters< TParam, RequestContext<TContextData>, TContextData >; setCollectionDispatcher< TObject extends Object, TParam extends string, Loading Loading @@ -1349,52 +1326,6 @@ export class FederationBuilderImpl<TContextData> ); } setOrderedCollectionDispatcher< TObject extends Object, TParam extends string, >( name: string | symbol, // deno-lint-ignore no-explicit-any itemType: (new (...args: any[]) => TObject) & { typeId: URL }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher< TObject, TParam, RequestContext<TContextData>, TContextData >, ): CustomCollectionCallbackSetters< TParam, RequestContext<TContextData>, TContextData >; setOrderedCollectionDispatcher< TObject extends Object, TParam extends string, >( name: string | symbol, // deno-lint-ignore no-explicit-any itemType: (new (...args: any[]) => TObject) & { typeId: URL }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}`, dispatcher: CustomCollectionDispatcher< TObject, TParam, RequestContext<TContextData>, TContextData >, ): CustomCollectionCallbackSetters< TParam, RequestContext<TContextData>, TContextData >; setOrderedCollectionDispatcher< TObject extends Object, TParam extends string, Loading packages/fedify/src/federation/federation.ts +75 −149 Original line number Diff line number Diff line Loading @@ -458,79 +458,81 @@ export interface Federatable<TContextData> { sharedInboxPath?: string, ): InboxListenerSetters<TContextData>; /** * Registers a collection of objects dispatcher. * * @template TContextData The context data to pass to the {@link Context}. * @template TObject The type of objects to dispatch. * @template TParam The parameter names of the requested URL. * @param name A unique name for the collection dispatcher. * @param itemType The Activity Vocabulary class of the object to dispatch. * @param path The URI path pattern for the collection dispatcher. * The syntax is based on URI Template * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). * The path must have one or more variables. * @param dispatcher A collection dispatcher callback to register. */ setCollectionDispatcher<TObject extends Object, TParam extends string>( name: string | symbol, // deno-lint-ignore no-explicit-any itemType: (new (...args: any[]) => TObject) & { typeId: URL }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}`, dispatcher: CustomCollectionDispatcher< TObject, TParam, RequestContext<TContextData>, TContextData >, ): CustomCollectionCallbackSetters< TParam, RequestContext<TContextData>, TContextData >; /** * Registers a collection of objects dispatcher. * * @template TContextData The context data to pass to the {@link Context}. * @template TObject The type of objects to dispatch. * @template TParam The parameter names of the requested URL. * @param name A unique name for the collection dispatcher. * @param itemType The Activity Vocabulary class of the object to dispatch. * @param path The URI path pattern for the collection dispatcher. * The syntax is based on URI Template * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). * The path must have one or more variables. * @param dispatcher A collection dispatcher callback to register. */ setCollectionDispatcher<TObject extends Object, TParam extends string>( name: string | symbol, // deno-lint-ignore no-explicit-any itemType: (new (...args: any[]) => TObject) & { typeId: URL }, path: `${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression< TParam >}${string}`, dispatcher: CustomCollectionDispatcher< TObject, TParam, RequestContext<TContextData>, TContextData >, ): CustomCollectionCallbackSetters< TParam, RequestContext<TContextData>, TContextData >; // /** // * Registers a collection of objects dispatcher. // * // * @template TContextData The context data to pass to the {@link Context}. // * @template TObject The type of objects to dispatch. // * @template TParam The parameter names of the requested URL. // * @param name A unique name for the collection dispatcher. // * @param itemType The Activity Vocabulary class of the object to dispatch. // * @param path The URI path pattern for the collection dispatcher. // * The syntax is based on URI Template // * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). // * The path must have one or more variables. // * @param dispatcher A collection dispatcher callback to register. // */ // setCollectionDispatcher<TObject extends Object, TParam extends string>( // name: string | symbol, // // deno-lint-ignore no-explicit-any // itemType: (new (...args: any[]) => TObject) & { typeId: URL }, // path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< // TParam // >}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< // TParam // >}${string}${Rfc6570Expression< // TParam // >}${string}`, // dispatcher: CustomCollectionDispatcher< // TObject, // TParam, // RequestContext<TContextData>, // TContextData // >, // ): CustomCollectionCallbackSetters< // TParam, // RequestContext<TContextData>, // TContextData // >; // /** // * Registers a collection of objects dispatcher. // * // * @template TContextData The context data to pass to the {@link Context}. // * @template TObject The type of objects to dispatch. // * @template TParam The parameter names of the requested URL. // * @param name A unique name for the collection dispatcher. // * @param itemType The Activity Vocabulary class of the object to dispatch. // * @param path The URI path pattern for the collection dispatcher. // * The syntax is based on URI Template // * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). // * The path must have one or more variables. // * @param dispatcher A collection dispatcher callback to register. // */ // setCollectionDispatcher<TObject extends Object, TParam extends string>( // name: string | symbol, // // deno-lint-ignore no-explicit-any // itemType: (new (...args: any[]) => TObject) & { typeId: URL }, // path: `${string}${Rfc6570Expression< // TParam // >}${string}${Rfc6570Expression< // TParam // >}${string}${Rfc6570Expression< // TParam // >}${string}${Rfc6570Expression< // TParam // >}${string}`, // dispatcher: CustomCollectionDispatcher< // TObject, // TParam, // RequestContext<TContextData>, // TContextData // >, // ): CustomCollectionCallbackSetters< // TParam, // RequestContext<TContextData>, // TContextData // >; /** * Registers a collection of objects dispatcher. Loading Loading @@ -633,82 +635,6 @@ export interface Federatable<TContextData> { TContextData >; /** * Registers an ordered collection of objects dispatcher. * * @template TContextData The context data to pass to the {@link Context}. * @template TObject The type of objects to dispatch. * @template TParam The parameter names of the requested URL. * @param name A unique name for the collection dispatcher. * @param itemType The Activity Vocabulary class of the object to dispatch. * @param path The URI path pattern for the collection dispatcher. * The syntax is based on URI Template * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). * The path must have one or more variables. * @param dispatcher A collection dispatcher callback to register. */ setOrderedCollectionDispatcher< TObject extends Object, TParam extends string, >( name: string | symbol, // deno-lint-ignore no-explicit-any itemType: (new (...args: any[]) => TObject) & { typeId: URL }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher< TObject, TParam, RequestContext<TContextData>, TContextData >, ): CustomCollectionCallbackSetters< TParam, RequestContext<TContextData>, TContextData >; /** * Registers an ordered collection of objects dispatcher. * * @template TContextData The context data to pass to the {@link Context}. * @template TObject The type of objects to dispatch. * @template TParam The parameter names of the requested URL. * @param name A unique name for the collection dispatcher. * @param itemType The Activity Vocabulary class of the object to dispatch. * @param path The URI path pattern for the collection dispatcher. * The syntax is based on URI Template * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). * The path must have one or more variables. * @param dispatcher A collection dispatcher callback to register. */ setOrderedCollectionDispatcher< TObject extends Object, TParam extends string, >( name: string | symbol, // deno-lint-ignore no-explicit-any itemType: (new (...args: any[]) => TObject) & { typeId: URL }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}`, dispatcher: CustomCollectionDispatcher< TObject, TParam, RequestContext<TContextData>, TContextData >, ): CustomCollectionCallbackSetters< TParam, RequestContext<TContextData>, TContextData >; /** * Registers an ordered collection of objects dispatcher. * Loading Loading
packages/fedify/src/federation/builder.ts +0 −69 Original line number Diff line number Diff line Loading @@ -1206,29 +1206,6 @@ export class FederationBuilderImpl<TContextData> return setters; } setCollectionDispatcher< TObject extends Object, TParam extends string, >( name: string | symbol, // deno-lint-ignore no-explicit-any itemType: (new (...args: any[]) => TObject) & { typeId: URL }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}`, dispatcher: CustomCollectionDispatcher< TObject, TParam, RequestContext<TContextData>, TContextData >, ): CustomCollectionCallbackSetters< TParam, RequestContext<TContextData>, TContextData >; setCollectionDispatcher< TObject extends Object, TParam extends string, Loading Loading @@ -1349,52 +1326,6 @@ export class FederationBuilderImpl<TContextData> ); } setOrderedCollectionDispatcher< TObject extends Object, TParam extends string, >( name: string | symbol, // deno-lint-ignore no-explicit-any itemType: (new (...args: any[]) => TObject) & { typeId: URL }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher< TObject, TParam, RequestContext<TContextData>, TContextData >, ): CustomCollectionCallbackSetters< TParam, RequestContext<TContextData>, TContextData >; setOrderedCollectionDispatcher< TObject extends Object, TParam extends string, >( name: string | symbol, // deno-lint-ignore no-explicit-any itemType: (new (...args: any[]) => TObject) & { typeId: URL }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}`, dispatcher: CustomCollectionDispatcher< TObject, TParam, RequestContext<TContextData>, TContextData >, ): CustomCollectionCallbackSetters< TParam, RequestContext<TContextData>, TContextData >; setOrderedCollectionDispatcher< TObject extends Object, TParam extends string, Loading
packages/fedify/src/federation/federation.ts +75 −149 Original line number Diff line number Diff line Loading @@ -458,79 +458,81 @@ export interface Federatable<TContextData> { sharedInboxPath?: string, ): InboxListenerSetters<TContextData>; /** * Registers a collection of objects dispatcher. * * @template TContextData The context data to pass to the {@link Context}. * @template TObject The type of objects to dispatch. * @template TParam The parameter names of the requested URL. * @param name A unique name for the collection dispatcher. * @param itemType The Activity Vocabulary class of the object to dispatch. * @param path The URI path pattern for the collection dispatcher. * The syntax is based on URI Template * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). * The path must have one or more variables. * @param dispatcher A collection dispatcher callback to register. */ setCollectionDispatcher<TObject extends Object, TParam extends string>( name: string | symbol, // deno-lint-ignore no-explicit-any itemType: (new (...args: any[]) => TObject) & { typeId: URL }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}`, dispatcher: CustomCollectionDispatcher< TObject, TParam, RequestContext<TContextData>, TContextData >, ): CustomCollectionCallbackSetters< TParam, RequestContext<TContextData>, TContextData >; /** * Registers a collection of objects dispatcher. * * @template TContextData The context data to pass to the {@link Context}. * @template TObject The type of objects to dispatch. * @template TParam The parameter names of the requested URL. * @param name A unique name for the collection dispatcher. * @param itemType The Activity Vocabulary class of the object to dispatch. * @param path The URI path pattern for the collection dispatcher. * The syntax is based on URI Template * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). * The path must have one or more variables. * @param dispatcher A collection dispatcher callback to register. */ setCollectionDispatcher<TObject extends Object, TParam extends string>( name: string | symbol, // deno-lint-ignore no-explicit-any itemType: (new (...args: any[]) => TObject) & { typeId: URL }, path: `${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression< TParam >}${string}`, dispatcher: CustomCollectionDispatcher< TObject, TParam, RequestContext<TContextData>, TContextData >, ): CustomCollectionCallbackSetters< TParam, RequestContext<TContextData>, TContextData >; // /** // * Registers a collection of objects dispatcher. // * // * @template TContextData The context data to pass to the {@link Context}. // * @template TObject The type of objects to dispatch. // * @template TParam The parameter names of the requested URL. // * @param name A unique name for the collection dispatcher. // * @param itemType The Activity Vocabulary class of the object to dispatch. // * @param path The URI path pattern for the collection dispatcher. // * The syntax is based on URI Template // * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). // * The path must have one or more variables. // * @param dispatcher A collection dispatcher callback to register. // */ // setCollectionDispatcher<TObject extends Object, TParam extends string>( // name: string | symbol, // // deno-lint-ignore no-explicit-any // itemType: (new (...args: any[]) => TObject) & { typeId: URL }, // path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< // TParam // >}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< // TParam // >}${string}${Rfc6570Expression< // TParam // >}${string}`, // dispatcher: CustomCollectionDispatcher< // TObject, // TParam, // RequestContext<TContextData>, // TContextData // >, // ): CustomCollectionCallbackSetters< // TParam, // RequestContext<TContextData>, // TContextData // >; // /** // * Registers a collection of objects dispatcher. // * // * @template TContextData The context data to pass to the {@link Context}. // * @template TObject The type of objects to dispatch. // * @template TParam The parameter names of the requested URL. // * @param name A unique name for the collection dispatcher. // * @param itemType The Activity Vocabulary class of the object to dispatch. // * @param path The URI path pattern for the collection dispatcher. // * The syntax is based on URI Template // * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). // * The path must have one or more variables. // * @param dispatcher A collection dispatcher callback to register. // */ // setCollectionDispatcher<TObject extends Object, TParam extends string>( // name: string | symbol, // // deno-lint-ignore no-explicit-any // itemType: (new (...args: any[]) => TObject) & { typeId: URL }, // path: `${string}${Rfc6570Expression< // TParam // >}${string}${Rfc6570Expression< // TParam // >}${string}${Rfc6570Expression< // TParam // >}${string}${Rfc6570Expression< // TParam // >}${string}`, // dispatcher: CustomCollectionDispatcher< // TObject, // TParam, // RequestContext<TContextData>, // TContextData // >, // ): CustomCollectionCallbackSetters< // TParam, // RequestContext<TContextData>, // TContextData // >; /** * Registers a collection of objects dispatcher. Loading Loading @@ -633,82 +635,6 @@ export interface Federatable<TContextData> { TContextData >; /** * Registers an ordered collection of objects dispatcher. * * @template TContextData The context data to pass to the {@link Context}. * @template TObject The type of objects to dispatch. * @template TParam The parameter names of the requested URL. * @param name A unique name for the collection dispatcher. * @param itemType The Activity Vocabulary class of the object to dispatch. * @param path The URI path pattern for the collection dispatcher. * The syntax is based on URI Template * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). * The path must have one or more variables. * @param dispatcher A collection dispatcher callback to register. */ setOrderedCollectionDispatcher< TObject extends Object, TParam extends string, >( name: string | symbol, // deno-lint-ignore no-explicit-any itemType: (new (...args: any[]) => TObject) & { typeId: URL }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher< TObject, TParam, RequestContext<TContextData>, TContextData >, ): CustomCollectionCallbackSetters< TParam, RequestContext<TContextData>, TContextData >; /** * Registers an ordered collection of objects dispatcher. * * @template TContextData The context data to pass to the {@link Context}. * @template TObject The type of objects to dispatch. * @template TParam The parameter names of the requested URL. * @param name A unique name for the collection dispatcher. * @param itemType The Activity Vocabulary class of the object to dispatch. * @param path The URI path pattern for the collection dispatcher. * The syntax is based on URI Template * ([RFC 6570](https://tools.ietf.org/html/rfc6570)). * The path must have one or more variables. * @param dispatcher A collection dispatcher callback to register. */ setOrderedCollectionDispatcher< TObject extends Object, TParam extends string, >( name: string | symbol, // deno-lint-ignore no-explicit-any itemType: (new (...args: any[]) => TObject) & { typeId: URL }, path: `${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}${Rfc6570Expression<TParam>}${string}${Rfc6570Expression< TParam >}${string}`, dispatcher: CustomCollectionDispatcher< TObject, TParam, RequestContext<TContextData>, TContextData >, ): CustomCollectionCallbackSetters< TParam, RequestContext<TContextData>, TContextData >; /** * Registers an ordered collection of objects dispatcher. * Loading