@fedify/fedify 0.11.0-dev.241 → 0.11.0-dev.243
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +52 -1
- package/esm/codegen/schema.yaml +3 -1
- package/esm/federation/handler.js +2 -2
- package/esm/vocab/activity.yaml +47 -0
- package/esm/vocab/collection.yaml +0 -4
- package/esm/vocab/collectionpage.yaml +0 -3
- package/esm/vocab/orderedcollection.yaml +10 -1
- package/esm/vocab/vocab.js +949 -363
- package/package.json +1 -1
- package/types/codegen/schema.d.ts.map +1 -1
- package/types/federation/handler.d.ts +2 -2
- package/types/federation/handler.d.ts.map +1 -1
- package/types/vocab/vocab.d.ts +512 -51
- package/types/vocab/vocab.d.ts.map +1 -1
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/codegen/schema.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,MAAM,OAAO,GACf,WAAW,MAAM,EAAE,GACnB,UAAU,MAAM,EAAE,GAClB,UAAU,MAAM,EAAE,CAAC;AAEvB;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,cAAc,EAAE,CAAC;IAE7B;;;OAGG;IACH,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MA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S,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAI3C;AAgCD;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CA4BrC"}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import * as dntShim from "../_dnt.shims.js";
|
4
4
|
import type { DocumentLoader } from "../runtime/docloader.js";
|
5
5
|
import type { Recipient } from "../vocab/actor.js";
|
6
|
-
import { Activity,
|
6
|
+
import { Activity, Object } from "../vocab/vocab.js";
|
7
7
|
import type { ActorDispatcher, AuthorizePredicate, CollectionCounter, CollectionCursor, CollectionDispatcher, InboxErrorHandler, InboxListener, ObjectAuthorizePredicate, ObjectDispatcher } from "./callback.js";
|
8
8
|
import type { RequestContext } from "./context.js";
|
9
9
|
import type { KvKey, KvStore } from "./kv.js";
|
@@ -64,7 +64,7 @@ export interface CollectionHandlerParameters<TItem, TContextData, TFilter> {
|
|
64
64
|
onNotFound(request: Request): Response | Promise<Response>;
|
65
65
|
onNotAcceptable(request: Request): Response | Promise<Response>;
|
66
66
|
}
|
67
|
-
export declare function handleCollection<TItem extends URL | Object |
|
67
|
+
export declare function handleCollection<TItem extends URL | Object | Recipient, TContextData, TFilter>(request: Request, { name, handle, filter, filterPredicate, context, collectionCallbacks, onUnauthorized, onNotFound, onNotAcceptable, }: CollectionHandlerParameters<TItem, TContextData, TFilter>): Promise<Response>;
|
68
68
|
export interface InboxHandlerParameters<TContextData> {
|
69
69
|
handle: string | null;
|
70
70
|
context: RequestContext<TContextData>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../src/federation/handler.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAG5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAI9D,OAAO,KAAK,EAAE,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