@fedify/fedify 2.5.0-dev.2440 → 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.
Files changed (117) hide show
  1. package/dist/{activity-listener-C-BSbKI7.mjs → activity-listener-CELFAodc.mjs} +8 -4
  2. package/dist/{builder-CTasaZgj.mjs → builder-DbC8bn6k.mjs} +5 -5
  3. package/dist/compat/mod.d.cts +1 -1
  4. package/dist/compat/mod.d.ts +1 -1
  5. package/dist/compat/transformers.test.mjs +1 -1
  6. package/dist/{compound-proof-D5r-dQMr.mjs → compound-proof-heeXW2_A.mjs} +2 -2
  7. package/dist/{context-DPocjp1l.d.cts → context-BazwQrHn.d.cts} +307 -5
  8. package/dist/{context-8Tu9kea0.mjs → context-COHd1Rsh.mjs} +2 -0
  9. package/dist/{context-2wLkQrjb.d.ts → context-GlHrzdSP.d.ts} +307 -5
  10. package/dist/{deno-DR1uYWpm.mjs → deno-Dpewt_jJ.mjs} +1 -1
  11. package/dist/{docloader-BpCJ2dHm.mjs → docloader-CpsDyqVN.mjs} +2 -2
  12. package/dist/federation/builder.test.mjs +1 -1
  13. package/dist/federation/compound-fanout.test.mjs +3 -3
  14. package/dist/federation/handler-compound-proof.test.mjs +5 -5
  15. package/dist/federation/handler.test.mjs +21 -6
  16. package/dist/federation/hashlink-media.test.mjs +2 -2
  17. package/dist/federation/idempotency.test.mjs +2 -2
  18. package/dist/federation/inbox-actorless.test.d.mts +2 -0
  19. package/dist/federation/inbox-actorless.test.mjs +487 -0
  20. package/dist/federation/inbox-authentication.test.d.mts +2 -0
  21. package/dist/federation/inbox-authentication.test.mjs +116 -0
  22. package/dist/federation/inbox-report.test.mjs +5 -5
  23. package/dist/federation/inbox-view.test.d.mts +2 -0
  24. package/dist/federation/inbox-view.test.mjs +369 -0
  25. package/dist/federation/inbox.test.mjs +22 -12
  26. package/dist/federation/metrics.test.mjs +1 -1
  27. package/dist/federation/middleware.test.mjs +24 -9
  28. package/dist/federation/mod.cjs +2 -1
  29. package/dist/federation/mod.d.cts +3 -3
  30. package/dist/federation/mod.d.ts +3 -3
  31. package/dist/federation/mod.js +8 -2
  32. package/dist/federation/mq.test.mjs +36 -1
  33. package/dist/federation/outgoing-proof.test.mjs +4 -4
  34. package/dist/federation/portable-actor.test.mjs +3 -3
  35. package/dist/federation/portable-chain.test.mjs +3 -3
  36. package/dist/federation/portable-collection.test.mjs +4 -4
  37. package/dist/federation/portable-delivery.test.mjs +2 -2
  38. package/dist/federation/portable-gateway-keys.test.mjs +6 -6
  39. package/dist/federation/portable-inbox.test.mjs +4 -4
  40. package/dist/federation/portable-parse-uri.test.mjs +1 -1
  41. package/dist/federation/portable-route-activity.test.mjs +2 -2
  42. package/dist/federation/portable.test.mjs +3 -3
  43. package/dist/federation/send.test.mjs +3 -3
  44. package/dist/federation/tasks/enqueue.test.mjs +3 -3
  45. package/dist/federation/tasks/tasks.test.mjs +4 -4
  46. package/dist/federation/temporal.test.mjs +1 -1
  47. package/dist/federation/webfinger.test.mjs +2 -2
  48. package/dist/{federation-eYRUxkUW.cjs → federation-D8YexkP1.cjs} +1174 -132
  49. package/dist/{http-CgaoFGXV.js → http-BBr-VLil.js} +143 -16
  50. package/dist/{http-CRrg14tX.mjs → http-BZkyQIkb.mjs} +4 -4
  51. package/dist/{http-CmFHJm6o.cjs → http-CAl7Num5.cjs} +161 -16
  52. package/dist/inbox-authentication-DflPYlLL.mjs +171 -0
  53. package/dist/inbox-view-NE9wXdLo.mjs +385 -0
  54. package/dist/inbox-wDuMKaFW.mjs +312 -0
  55. package/dist/{kv-cache-MxJrD9gD.mjs → kv-cache-CTQSfkmp.mjs} +1 -1
  56. package/dist/{kv-cache-DvVRGOMw.cjs → kv-cache-CjgCOz3i.cjs} +1 -1
  57. package/dist/{kv-cache-DeagaIIB.js → kv-cache-U7uz5nx4.js} +1 -1
  58. package/dist/{ld-CUM16-EE.mjs → ld-CQFuiah9.mjs} +52 -9
  59. package/dist/ld-CcuZ4NZa.d.ts +250 -0
  60. package/dist/ld-Cel1RRZ5.d.cts +250 -0
  61. package/dist/{metrics-DIM8ZCKq.mjs → metrics-B-QxRSSR.mjs} +1 -1
  62. package/dist/{middleware-Bx_QxJ0s.mjs → middleware-BdlNa8BD.mjs} +1 -1
  63. package/dist/{middleware-CDdFG6xf.mjs → middleware-CuVa0UuS.mjs} +461 -99
  64. package/dist/{middleware-CGfFooYv.js → middleware-P-AZEQMn.js} +1171 -142
  65. package/dist/mod-B2783_3v.d.cts +154 -0
  66. package/dist/mod-BHQE-7WQ.d.ts +154 -0
  67. package/dist/{mod-Dm-7RdhR.d.ts → mod-DjZfJj9R.d.ts} +1 -1
  68. package/dist/{mod-DKGoPoQC.d.cts → mod-DvWOv2Ho.d.cts} +1 -1
  69. package/dist/mod.cjs +5 -4
  70. package/dist/mod.d.cts +6 -6
  71. package/dist/mod.d.ts +6 -6
  72. package/dist/mod.js +5 -5
  73. package/dist/{mq-Dm1Wmtm-.mjs → mq-eF96QxUT.mjs} +6 -0
  74. package/dist/nodeinfo/handler.test.mjs +2 -2
  75. package/dist/{owner-DoQDS_g0.mjs → owner-ccKkQOAf.mjs} +3 -3
  76. package/dist/{portable-collection-DiBqtGSM.mjs → portable-collection-CndnpXfo.mjs} +2 -2
  77. package/dist/{portable-collection-BVKSWfBe.js → portable-collection-DUlQ3s2M.js} +1 -1
  78. package/dist/{portable-collection-C-etRRF0.cjs → portable-collection-TC-kvkVI.cjs} +1 -1
  79. package/dist/{portable-key-DSRuCUpF.mjs → portable-key-D5tFOoV-.mjs} +1 -1
  80. package/dist/{proof-DWpruPWs.mjs → proof-DPoF06nz.mjs} +98 -10
  81. package/dist/{send-H0z9Ey5l.mjs → send-CF44O1Df.mjs} +3 -3
  82. package/dist/sig/compound-proof-discovery.test.mjs +1 -1
  83. package/dist/sig/compound-proof-producer.test.mjs +1 -1
  84. package/dist/sig/compound-proof-verification.test.mjs +2 -2
  85. package/dist/sig/compound-proof.test.mjs +2 -2
  86. package/dist/sig/http.test.mjs +2 -2
  87. package/dist/sig/key.test.mjs +1 -1
  88. package/dist/sig/ld.test.mjs +1 -1
  89. package/dist/sig/mitra-receive-interop.test.mjs +4 -4
  90. package/dist/sig/mitra-send-interop.test.mjs +3 -3
  91. package/dist/sig/mod.cjs +2 -2
  92. package/dist/sig/mod.d.cts +2 -2
  93. package/dist/sig/mod.d.ts +2 -2
  94. package/dist/sig/mod.js +2 -2
  95. package/dist/sig/owner.test.mjs +1 -1
  96. package/dist/sig/portable-collection.test.mjs +1 -1
  97. package/dist/sig/portable-interop.test.mjs +3 -3
  98. package/dist/sig/portable-key.test.mjs +5 -5
  99. package/dist/sig/proof.test.mjs +44 -4
  100. package/dist/sig/tootik-request-interop.test.mjs +4 -4
  101. package/dist/sig/tootik-send-interop.test.mjs +3 -3
  102. package/dist/sig/verification.test.mjs +3 -3
  103. package/dist/{temporal-BiSBCImA.mjs → temporal-XlZ4Wb94.mjs} +1 -1
  104. package/dist/testing/kv.test.mjs +1 -1
  105. package/dist/testing/mod.d.mts +265 -3
  106. package/dist/testing/mod.mjs +2 -2
  107. package/dist/{testing-t8xDeJZ5.mjs → testing-Dbr21vZk.mjs} +1 -1
  108. package/dist/utils/docloader.test.mjs +2 -2
  109. package/dist/utils/kv-cache.test.mjs +1 -1
  110. package/dist/utils/mod.cjs +1 -1
  111. package/dist/utils/mod.js +1 -1
  112. package/package.json +7 -7
  113. package/dist/inbox-BwPoSUEv.mjs +0 -188
  114. package/dist/mod-BRpER-B0.d.ts +0 -320
  115. package/dist/mod-xAfaLS4T.d.cts +0 -320
  116. package/dist/owner-BF0L9cMt.d.cts +0 -78
  117. 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 };
@@ -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 };