@fedify/fedify 2.5.0-dev.2446 → 2.5.0-dev.2448
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.
- package/dist/{activity-listener-C-BSbKI7.mjs → activity-listener-CELFAodc.mjs} +8 -4
- package/dist/{builder-Da8b9O6v.mjs → builder-DbC8bn6k.mjs} +5 -5
- package/dist/compat/mod.d.cts +1 -1
- package/dist/compat/mod.d.ts +1 -1
- package/dist/compat/transformers.test.mjs +1 -1
- package/dist/{compound-proof-D1djO5fa.mjs → compound-proof-heeXW2_A.mjs} +2 -2
- package/dist/{context-CQ9H8vNW.d.cts → context-BazwQrHn.d.cts} +304 -4
- package/dist/{context-8Tu9kea0.mjs → context-COHd1Rsh.mjs} +2 -0
- package/dist/{context-BdB54V-A.d.ts → context-GlHrzdSP.d.ts} +304 -4
- package/dist/{deno-eNpfj4oR.mjs → deno-Dpewt_jJ.mjs} +1 -1
- package/dist/{docloader-B-0nqOB1.mjs → docloader-CpsDyqVN.mjs} +2 -2
- package/dist/federation/builder.test.mjs +1 -1
- package/dist/federation/compound-fanout.test.mjs +3 -3
- package/dist/federation/handler-compound-proof.test.mjs +5 -5
- package/dist/federation/handler.test.mjs +21 -6
- package/dist/federation/hashlink-media.test.mjs +2 -2
- package/dist/federation/idempotency.test.mjs +2 -2
- package/dist/federation/inbox-actorless.test.d.mts +2 -0
- package/dist/federation/inbox-actorless.test.mjs +487 -0
- package/dist/federation/inbox-authentication.test.d.mts +2 -0
- package/dist/federation/inbox-authentication.test.mjs +116 -0
- package/dist/federation/inbox-report.test.mjs +5 -5
- package/dist/federation/inbox-view.test.d.mts +2 -0
- package/dist/federation/inbox-view.test.mjs +369 -0
- package/dist/federation/inbox.test.mjs +22 -12
- package/dist/federation/metrics.test.mjs +1 -1
- package/dist/federation/middleware.test.mjs +9 -9
- package/dist/federation/mod.cjs +2 -1
- package/dist/federation/mod.d.cts +3 -3
- package/dist/federation/mod.d.ts +3 -3
- package/dist/federation/mod.js +8 -2
- package/dist/federation/mq.test.mjs +36 -1
- package/dist/federation/outgoing-proof.test.mjs +4 -4
- package/dist/federation/portable-actor.test.mjs +3 -3
- package/dist/federation/portable-chain.test.mjs +3 -3
- package/dist/federation/portable-collection.test.mjs +4 -4
- package/dist/federation/portable-delivery.test.mjs +2 -2
- package/dist/federation/portable-gateway-keys.test.mjs +6 -6
- package/dist/federation/portable-inbox.test.mjs +4 -4
- package/dist/federation/portable-parse-uri.test.mjs +1 -1
- package/dist/federation/portable-route-activity.test.mjs +2 -2
- package/dist/federation/portable.test.mjs +3 -3
- package/dist/federation/send.test.mjs +3 -3
- package/dist/federation/tasks/enqueue.test.mjs +3 -3
- package/dist/federation/tasks/tasks.test.mjs +4 -4
- package/dist/federation/temporal.test.mjs +1 -1
- package/dist/federation/webfinger.test.mjs +2 -2
- package/dist/{federation-BVH7drJA.cjs → federation-D8YexkP1.cjs} +1172 -131
- package/dist/{http-DlNxxW_5.js → http-BBr-VLil.js} +143 -16
- package/dist/{http-BUJ5SFh6.mjs → http-BZkyQIkb.mjs} +4 -4
- package/dist/{http-BfW3wyQ4.cjs → http-CAl7Num5.cjs} +161 -16
- package/dist/inbox-authentication-DflPYlLL.mjs +171 -0
- package/dist/inbox-view-NE9wXdLo.mjs +385 -0
- package/dist/inbox-wDuMKaFW.mjs +312 -0
- package/dist/{kv-cache-D_m3A241.mjs → kv-cache-CTQSfkmp.mjs} +1 -1
- package/dist/{kv-cache-kkBB0vbI.cjs → kv-cache-CjgCOz3i.cjs} +1 -1
- package/dist/{kv-cache-7015lbrx.js → kv-cache-U7uz5nx4.js} +1 -1
- package/dist/{ld-CD2CsPxq.mjs → ld-CQFuiah9.mjs} +52 -9
- package/dist/ld-CcuZ4NZa.d.ts +250 -0
- package/dist/ld-Cel1RRZ5.d.cts +250 -0
- package/dist/{metrics-D3LHk6Z4.mjs → metrics-B-QxRSSR.mjs} +1 -1
- package/dist/{middleware-CCDXvXOG.mjs → middleware-BdlNa8BD.mjs} +1 -1
- package/dist/{middleware-CzoWvrdZ.mjs → middleware-CuVa0UuS.mjs} +459 -98
- package/dist/{middleware-N9eM16XE.js → middleware-P-AZEQMn.js} +1169 -141
- package/dist/mod-B2783_3v.d.cts +154 -0
- package/dist/mod-BHQE-7WQ.d.ts +154 -0
- package/dist/{mod-D0bxB8jS.d.ts → mod-DjZfJj9R.d.ts} +1 -1
- package/dist/{mod-B0dGgQsg.d.cts → mod-DvWOv2Ho.d.cts} +1 -1
- package/dist/mod.cjs +5 -4
- package/dist/mod.d.cts +6 -6
- package/dist/mod.d.ts +6 -6
- package/dist/mod.js +5 -5
- package/dist/{mq-Dm1Wmtm-.mjs → mq-eF96QxUT.mjs} +6 -0
- package/dist/nodeinfo/handler.test.mjs +2 -2
- package/dist/{owner-C5-FVX6t.mjs → owner-ccKkQOAf.mjs} +3 -3
- package/dist/{portable-collection-Cony3_LC.mjs → portable-collection-CndnpXfo.mjs} +2 -2
- package/dist/{portable-collection-CC2zNAje.js → portable-collection-DUlQ3s2M.js} +1 -1
- package/dist/{portable-collection-C-Z1SKDy.cjs → portable-collection-TC-kvkVI.cjs} +1 -1
- package/dist/{portable-key-DNc_flH-.mjs → portable-key-D5tFOoV-.mjs} +1 -1
- package/dist/{proof-Cryb1c70.mjs → proof-DPoF06nz.mjs} +98 -10
- package/dist/{send-AF25pWaJ.mjs → send-CF44O1Df.mjs} +3 -3
- package/dist/sig/compound-proof-discovery.test.mjs +1 -1
- package/dist/sig/compound-proof-producer.test.mjs +1 -1
- package/dist/sig/compound-proof-verification.test.mjs +2 -2
- package/dist/sig/compound-proof.test.mjs +2 -2
- package/dist/sig/http.test.mjs +2 -2
- package/dist/sig/key.test.mjs +1 -1
- package/dist/sig/ld.test.mjs +1 -1
- package/dist/sig/mitra-receive-interop.test.mjs +4 -4
- package/dist/sig/mitra-send-interop.test.mjs +3 -3
- package/dist/sig/mod.cjs +2 -2
- package/dist/sig/mod.d.cts +2 -2
- package/dist/sig/mod.d.ts +2 -2
- package/dist/sig/mod.js +2 -2
- package/dist/sig/owner.test.mjs +1 -1
- package/dist/sig/portable-collection.test.mjs +1 -1
- package/dist/sig/portable-interop.test.mjs +3 -3
- package/dist/sig/portable-key.test.mjs +5 -5
- package/dist/sig/proof.test.mjs +44 -4
- package/dist/sig/tootik-request-interop.test.mjs +4 -4
- package/dist/sig/tootik-send-interop.test.mjs +3 -3
- package/dist/sig/verification.test.mjs +3 -3
- package/dist/{temporal-BsAeuUJj.mjs → temporal-XlZ4Wb94.mjs} +1 -1
- package/dist/testing/kv.test.mjs +1 -1
- package/dist/testing/mod.d.mts +262 -2
- package/dist/testing/mod.mjs +2 -2
- package/dist/{testing-t8xDeJZ5.mjs → testing-Dbr21vZk.mjs} +1 -1
- package/dist/utils/docloader.test.mjs +2 -2
- package/dist/utils/kv-cache.test.mjs +1 -1
- package/dist/utils/mod.cjs +1 -1
- package/dist/utils/mod.js +1 -1
- package/package.json +7 -7
- package/dist/inbox-CHvMaIFX.mjs +0 -188
- package/dist/mod-BRpER-B0.d.ts +0 -320
- package/dist/mod-xAfaLS4T.d.cts +0 -320
- package/dist/owner-BF0L9cMt.d.cts +0 -78
- package/dist/owner-BSzr5-I8.d.ts +0 -78
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { Activity, Actor, CryptographicKey } from "@fedify/vocab";
|
|
3
|
-
import { DocumentLoader } from "@fedify/vocab-runtime";
|
|
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
|
-
*
|
|
30
|
-
* Ownership is never taken from what the activity or the key say about
|
|
31
|
-
* themselves, as both are written by whoever sent the activity. It is
|
|
32
|
-
* established from a document that the owner itself serves: either the key's
|
|
33
|
-
* claimed owner links back to the key, or the actor the activity claims lists
|
|
34
|
-
* the key as its own.
|
|
35
|
-
*
|
|
36
|
-
* @param activity The activity to check.
|
|
37
|
-
* @param key The public key to check.
|
|
38
|
-
* @param options Options for checking the key ownership.
|
|
39
|
-
* @returns Whether the actor is the owner of the key.
|
|
40
|
-
*/
|
|
41
|
-
declare function doesActorOwnKey(activity: Activity, key: CryptographicKey, options: DoesActorOwnKeyOptions): Promise<boolean>;
|
|
42
|
-
/**
|
|
43
|
-
* Options for {@link getKeyOwner}.
|
|
44
|
-
* @since 0.8.0
|
|
45
|
-
*/
|
|
46
|
-
interface GetKeyOwnerOptions {
|
|
47
|
-
/**
|
|
48
|
-
* The document loader to use for fetching the key and its owner.
|
|
49
|
-
*/
|
|
50
|
-
documentLoader?: DocumentLoader;
|
|
51
|
-
/**
|
|
52
|
-
* The context loader to use for JSON-LD context retrieval.
|
|
53
|
-
*/
|
|
54
|
-
contextLoader?: DocumentLoader;
|
|
55
|
-
/**
|
|
56
|
-
* The OpenTelemetry tracer provider to use for tracing. If omitted,
|
|
57
|
-
* the global tracer provider is used.
|
|
58
|
-
* @since 1.3.0
|
|
59
|
-
*/
|
|
60
|
-
tracerProvider?: TracerProvider;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Gets the actor that owns the specified key. Returns `null` if the key has no
|
|
64
|
-
* known owner.
|
|
65
|
-
*
|
|
66
|
-
* The owner is only returned when the key and the owner link to each other:
|
|
67
|
-
* a document that merely claims to own a key is not enough, as the claim and
|
|
68
|
-
* the key can come from the same host.
|
|
69
|
-
*
|
|
70
|
-
* @param keyId The ID of the key to check, or the key itself.
|
|
71
|
-
* @param options Options for getting the key owner.
|
|
72
|
-
* @returns The actor that owns the key, or `null` if the key has no known
|
|
73
|
-
* owner.
|
|
74
|
-
* @since 0.7.0
|
|
75
|
-
*/
|
|
76
|
-
declare function getKeyOwner(keyId: URL | CryptographicKey, options: GetKeyOwnerOptions): Promise<Actor | null>;
|
|
77
|
-
//#endregion
|
|
78
|
-
export { getKeyOwner as i, GetKeyOwnerOptions as n, doesActorOwnKey as r, DoesActorOwnKeyOptions as t };
|
package/dist/owner-BSzr5-I8.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { Activity, Actor, CryptographicKey } from "@fedify/vocab";
|
|
3
|
-
import { TracerProvider } from "@opentelemetry/api";
|
|
4
|
-
import { DocumentLoader } from "@fedify/vocab-runtime";
|
|
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
|
-
*
|
|
30
|
-
* Ownership is never taken from what the activity or the key say about
|
|
31
|
-
* themselves, as both are written by whoever sent the activity. It is
|
|
32
|
-
* established from a document that the owner itself serves: either the key's
|
|
33
|
-
* claimed owner links back to the key, or the actor the activity claims lists
|
|
34
|
-
* the key as its own.
|
|
35
|
-
*
|
|
36
|
-
* @param activity The activity to check.
|
|
37
|
-
* @param key The public key to check.
|
|
38
|
-
* @param options Options for checking the key ownership.
|
|
39
|
-
* @returns Whether the actor is the owner of the key.
|
|
40
|
-
*/
|
|
41
|
-
declare function doesActorOwnKey(activity: Activity, key: CryptographicKey, options: DoesActorOwnKeyOptions): Promise<boolean>;
|
|
42
|
-
/**
|
|
43
|
-
* Options for {@link getKeyOwner}.
|
|
44
|
-
* @since 0.8.0
|
|
45
|
-
*/
|
|
46
|
-
interface GetKeyOwnerOptions {
|
|
47
|
-
/**
|
|
48
|
-
* The document loader to use for fetching the key and its owner.
|
|
49
|
-
*/
|
|
50
|
-
documentLoader?: DocumentLoader;
|
|
51
|
-
/**
|
|
52
|
-
* The context loader to use for JSON-LD context retrieval.
|
|
53
|
-
*/
|
|
54
|
-
contextLoader?: DocumentLoader;
|
|
55
|
-
/**
|
|
56
|
-
* The OpenTelemetry tracer provider to use for tracing. If omitted,
|
|
57
|
-
* the global tracer provider is used.
|
|
58
|
-
* @since 1.3.0
|
|
59
|
-
*/
|
|
60
|
-
tracerProvider?: TracerProvider;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Gets the actor that owns the specified key. Returns `null` if the key has no
|
|
64
|
-
* known owner.
|
|
65
|
-
*
|
|
66
|
-
* The owner is only returned when the key and the owner link to each other:
|
|
67
|
-
* a document that merely claims to own a key is not enough, as the claim and
|
|
68
|
-
* the key can come from the same host.
|
|
69
|
-
*
|
|
70
|
-
* @param keyId The ID of the key to check, or the key itself.
|
|
71
|
-
* @param options Options for getting the key owner.
|
|
72
|
-
* @returns The actor that owns the key, or `null` if the key has no known
|
|
73
|
-
* owner.
|
|
74
|
-
* @since 0.7.0
|
|
75
|
-
*/
|
|
76
|
-
declare function getKeyOwner(keyId: URL | CryptographicKey, options: GetKeyOwnerOptions): Promise<Actor | null>;
|
|
77
|
-
//#endregion
|
|
78
|
-
export { getKeyOwner as i, GetKeyOwnerOptions as n, doesActorOwnKey as r, DoesActorOwnKeyOptions as t };
|