@fedify/fedify 2.0.0-dev.279 → 2.0.0-dev.335
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/{builder-B7WWCOdc.js → builder-RHW0dkbP.js} +8 -3
- package/dist/{chunk-DqRYRqnO.cjs → chunk-CGaQZ11T.cjs} +19 -0
- package/dist/chunk-DJNbSFdH.js +29 -0
- package/dist/compat/mod.cjs +1 -1
- package/dist/compat/mod.d.cts +6 -6
- package/dist/compat/mod.d.ts +6 -6
- package/dist/compat/mod.js +2 -2
- package/dist/compat/transformers.test.js +11 -11
- package/dist/{context-D7JEVvXJ.d.cts → context-Cf0-LmZC.d.cts} +96 -5
- package/dist/{context-BNNWbaZL.d.ts → context-liIe6DFH.d.ts} +96 -5
- package/dist/{deno-fe0u4LiE.js → deno-Dhe5E7NK.js} +4 -2
- package/dist/{docloader-C9Dmxf-K.js → docloader-D6VuU143.js} +2 -2
- package/dist/federation/builder.test.js +3 -3
- package/dist/federation/handler.test.js +11 -11
- package/dist/federation/idempotency.test.js +47 -11
- package/dist/federation/inbox.test.js +2 -2
- package/dist/federation/middleware.test.js +171 -11
- package/dist/federation/mod.cjs +8 -7
- package/dist/federation/mod.d.cts +7 -7
- package/dist/federation/mod.d.ts +7 -7
- package/dist/federation/mod.js +8 -8
- package/dist/federation/send.test.js +89 -6
- package/dist/federation/webfinger.test.js +11 -11
- package/dist/{federation-CE0CJ_0G.cjs → federation-Bp3HI26G.cjs} +1 -1
- package/dist/{http-oCBlFLKT.js → http-CSqVEUdE.js} +2 -2
- package/dist/{http-DMi5iyiI.cjs → http-ChlQCtql.cjs} +5 -3
- package/dist/{http-7r8B3dF_.js → http-DZrrJD77.js} +4 -2
- package/dist/{inbox-Dm1rfkdg.js → inbox-9F91oWJU.js} +1 -1
- package/dist/{key-BGzsKfpZ.js → key-DFPkYar3.js} +1 -1
- package/dist/{kv-cache-CETRZwoP.js → kv-cache-1TNWtgx7.js} +1 -1
- package/dist/{kv-cache-C0AvpI7U.cjs → kv-cache-DwcKE9EQ.cjs} +2 -2
- package/dist/{ld-BaO1-A5Y.js → ld-kAhyoO55.js} +2 -2
- package/dist/middleware-BgurYNZ4.js +12 -0
- package/dist/{middleware-C0Vj7vNo.cjs → middleware-CULfPNt-.cjs} +88 -9
- package/dist/middleware-ChlsNVu2.cjs +12 -0
- package/dist/{middleware-R0w-WauH.js → middleware-DQriD-Kq.js} +82 -9
- package/dist/{middleware-CnGBoMop.js → middleware-DebYvXJs.js} +11 -11
- package/dist/{middleware-BlOT9luD.js → middleware-zvH5O0zk.js} +45 -11
- package/dist/{mod-YpmzboJc.d.ts → mod-B9_l3te3.d.ts} +1 -1
- package/dist/mod-Bh8mqlYw.d.cts +9 -0
- package/dist/{mod-BrS8tiad.d.cts → mod-COO7VMcm.d.cts} +1 -1
- package/dist/{mod-DZmuPaKv.d.ts → mod-CvhyLrjX.d.ts} +2 -2
- package/dist/mod-D6HodEq7.d.ts +7 -0
- package/dist/{mod-BHXq4Q3x.d.cts → mod-DWaA45ef.d.cts} +2 -2
- package/dist/{mod-054TSUXs.d.cts → mod-Do_sZWAA.d.cts} +1 -1
- package/dist/{mod-BhDb3RBS.d.ts → mod-Dquroqiv.d.ts} +1 -1
- package/dist/{mod-C74sRHP8.d.cts → mod-H3ScYaOb.d.cts} +1 -1
- package/dist/{mod-jOa7W503.d.ts → mod-q2IR8UiH.d.ts} +1 -1
- package/dist/mod.cjs +59 -9
- package/dist/mod.d.cts +20 -11
- package/dist/mod.d.ts +21 -11
- package/dist/mod.js +61 -12
- package/dist/nodeinfo/handler.test.js +11 -11
- package/dist/nodeinfo/mod.cjs +1 -1
- package/dist/nodeinfo/mod.d.cts +2 -2
- package/dist/nodeinfo/mod.d.ts +2 -2
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/otel/mod.cjs +1 -1
- package/dist/otel/mod.d.cts +1 -1
- package/dist/otel/mod.d.ts +1 -1
- package/dist/{owner-BqIhDQWW.js → owner-DcyH0sQg.js} +1 -1
- package/dist/{proof-DoHt7qrS.js → proof-D7C8ouBO.js} +2 -2
- package/dist/{proof-Cg6AAAWI.js → proof-JtZEQaKw.js} +1 -1
- package/dist/{proof-vSvvLbTh.cjs → proof-_Rz8hNBt.cjs} +2 -2
- package/dist/runtime/mod.cjs +14 -0
- package/dist/runtime/mod.d.cts +2 -0
- package/dist/runtime/mod.d.ts +4 -0
- package/dist/runtime/mod.js +7 -0
- package/dist/runtime-c2Njxsry.cjs +17 -0
- package/dist/runtime-poamPCMb.js +13 -0
- package/dist/{send-CO2ZYT96.js → send-mAsnzegg.js} +38 -4
- package/dist/sig/http.test.js +3 -3
- package/dist/sig/key.test.js +2 -2
- package/dist/sig/ld.test.js +3 -3
- package/dist/sig/mod.cjs +3 -3
- package/dist/sig/mod.d.cts +3 -3
- package/dist/sig/mod.d.ts +3 -3
- package/dist/sig/mod.js +3 -3
- package/dist/sig/owner.test.js +3 -3
- package/dist/sig/proof.test.js +3 -3
- package/dist/testing/mod.d.ts +80 -0
- package/dist/{transformers-BjBg6Lag.cjs → transformers-3g8GZwkZ.cjs} +1 -1
- package/dist/{types-B6z6CqIz.cjs → types-Cd_hszr_.cjs} +1 -1
- package/dist/utils/docloader.test.js +4 -4
- package/dist/utils/mod.cjs +3 -3
- package/dist/utils/mod.d.cts +3 -3
- package/dist/utils/mod.d.ts +3 -3
- package/dist/utils/mod.js +3 -3
- package/dist/vocab/mod.cjs +13 -0
- package/dist/vocab/mod.d.cts +1 -0
- package/dist/vocab/mod.d.ts +3 -0
- package/dist/vocab/mod.js +5 -0
- package/package.json +25 -5
- package/dist/middleware-BDJNulB_.js +0 -12
- package/dist/middleware-DT3JkH-g.cjs +0 -12
- /package/dist/{client-by-PEGAJ.d.cts → client-CwkOPN13.d.cts} +0 -0
- /package/dist/{client-CUTUGgvJ.d.ts → client-a7NwzhA2.d.ts} +0 -0
- /package/dist/{compat-nxUqe4Z-.js → compat-Bb4NuTUO.js} +0 -0
- /package/dist/{federation-D6FVaeAR.js → federation-DaMfqRm4.js} +0 -0
- /package/dist/{http-ClB3pLcL.d.cts → http-CCEu-x1_.d.cts} +0 -0
- /package/dist/{http-DLBDPal9.d.ts → http-CODSJcKx.d.ts} +0 -0
- /package/dist/{kv-B4vFhIYL.d.cts → kv-g9jFc34-.d.cts} +0 -0
- /package/dist/{kv-CYySNrsn.d.ts → kv-jg_8SMc1.d.ts} +0 -0
- /package/dist/{mod-1E3W847c.d.ts → mod-AGjRfPjT.d.ts} +0 -0
- /package/dist/{mod-C81L6_lQ.d.cts → mod-gq_Xfdz8.d.cts} +0 -0
- /package/dist/{nodeinfo-BlLsRSiT.js → nodeinfo-DoESQxq5.js} +0 -0
- /package/dist/{owner-C-zfmVAD.d.cts → owner-9yZ5Ibsb.d.cts} +0 -0
- /package/dist/{owner-BgI8C-VY.d.ts → owner-DQYAbVmX.d.ts} +0 -0
- /package/dist/{sig-CwuONEzF.js → sig-BNhspNOf.js} +0 -0
- /package/dist/{sig-DeXX2xnj.cjs → sig-vX39WyWI.cjs} +0 -0
- /package/dist/{transformers-N_ip_y4P.js → transformers-C3FLHUd6.js} +0 -0
- /package/dist/{types-8l28uC8o.js → types-C93Ob9cU.js} +0 -0
- /package/dist/{utils-Db0ZmjcD.cjs → utils-BQ9KqEK9.cjs} +0 -0
- /package/dist/{utils-Wranxuoe.js → utils-Dn5OPdSW.js} +0 -0
package/dist/sig/mod.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
|
-
const require_http = require('../http-
|
|
6
|
-
const require_proof = require('../proof-
|
|
7
|
-
require('../sig-
|
|
5
|
+
const require_http = require('../http-ChlQCtql.cjs');
|
|
6
|
+
const require_proof = require('../proof-_Rz8hNBt.cjs');
|
|
7
|
+
require('../sig-vX39WyWI.cjs');
|
|
8
8
|
|
|
9
9
|
exports.attachSignature = require_proof.attachSignature;
|
|
10
10
|
exports.createProof = require_proof.createProof;
|
package/dist/sig/mod.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-
|
|
2
|
-
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "../owner-
|
|
3
|
-
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-
|
|
1
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-CCEu-x1_.cjs";
|
|
2
|
+
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "../owner-9yZ5Ibsb.cjs";
|
|
3
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-COO7VMcm.cjs";
|
|
4
4
|
export { CreateProofOptions, CreateSignatureOptions, DoesActorOwnKeyOptions, FetchKeyOptions, FetchKeyResult, GetKeyOwnerOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/sig/mod.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-
|
|
4
|
-
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "../owner-
|
|
5
|
-
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-
|
|
3
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-CODSJcKx.js";
|
|
4
|
+
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "../owner-DQYAbVmX.js";
|
|
5
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-q2IR8UiH.js";
|
|
6
6
|
export { CreateProofOptions, CreateSignatureOptions, DoesActorOwnKeyOptions, FetchKeyOptions, FetchKeyResult, GetKeyOwnerOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/sig/mod.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-
|
|
6
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-
|
|
7
|
-
import "../sig-
|
|
5
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-DZrrJD77.js";
|
|
6
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-JtZEQaKw.js";
|
|
7
|
+
import "../sig-BNhspNOf.js";
|
|
8
8
|
|
|
9
9
|
export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/sig/owner.test.js
CHANGED
|
@@ -7,9 +7,9 @@ import { createTestTracerProvider, mockDocumentLoader, test } from "../dist-B5f6
|
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import "../deno-
|
|
11
|
-
import "../key-
|
|
12
|
-
import { doesActorOwnKey, getKeyOwner } from "../owner-
|
|
10
|
+
import "../deno-Dhe5E7NK.js";
|
|
11
|
+
import "../key-DFPkYar3.js";
|
|
12
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-DcyH0sQg.js";
|
|
13
13
|
import "../std__assert-DWivtrGR.js";
|
|
14
14
|
import { assertFalse } from "../assert_rejects-Ce45JcFg.js";
|
|
15
15
|
import "../assert_throws-BNXdRGWP.js";
|
package/dist/sig/proof.test.js
CHANGED
|
@@ -7,9 +7,9 @@ import { mockDocumentLoader, test } from "../dist-B5f6a8Tt.js";
|
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import "../assert-MZs1qjMx.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import "../deno-
|
|
11
|
-
import "../key-
|
|
12
|
-
import { createProof, signObject, verifyObject, verifyProof } from "../proof-
|
|
10
|
+
import "../deno-Dhe5E7NK.js";
|
|
11
|
+
import "../key-DFPkYar3.js";
|
|
12
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-D7C8ouBO.js";
|
|
13
13
|
import "../std__assert-DWivtrGR.js";
|
|
14
14
|
import { assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
|
15
15
|
import "../assert_throws-BNXdRGWP.js";
|
package/dist/testing/mod.d.ts
CHANGED
|
@@ -253,6 +253,35 @@ interface SenderKeyPair {
|
|
|
253
253
|
/**
|
|
254
254
|
* Parameters for {@link sendActivity}.
|
|
255
255
|
*/
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* An error that is thrown when an activity fails to send to a remote inbox.
|
|
259
|
+
* It contains structured information about the failure, including the HTTP
|
|
260
|
+
* status code, the inbox URL, and the response body.
|
|
261
|
+
* @since 2.0.0
|
|
262
|
+
*/
|
|
263
|
+
declare class SendActivityError extends Error {
|
|
264
|
+
/**
|
|
265
|
+
* The inbox URL that the activity was being sent to.
|
|
266
|
+
*/
|
|
267
|
+
readonly inbox: URL;
|
|
268
|
+
/**
|
|
269
|
+
* The HTTP status code returned by the inbox.
|
|
270
|
+
*/
|
|
271
|
+
readonly statusCode: number;
|
|
272
|
+
/**
|
|
273
|
+
* The response body from the inbox, if any.
|
|
274
|
+
*/
|
|
275
|
+
readonly responseBody: string;
|
|
276
|
+
/**
|
|
277
|
+
* Creates a new {@link SendActivityError}.
|
|
278
|
+
* @param inbox The inbox URL.
|
|
279
|
+
* @param statusCode The HTTP status code.
|
|
280
|
+
* @param message The error message.
|
|
281
|
+
* @param responseBody The response body.
|
|
282
|
+
*/
|
|
283
|
+
constructor(inbox: URL, statusCode: number, message: string, responseBody: string);
|
|
284
|
+
}
|
|
256
285
|
//#endregion
|
|
257
286
|
//#region src/federation/callback.d.ts
|
|
258
287
|
/**
|
|
@@ -415,6 +444,40 @@ type SharedInboxKeyDispatcher<TContextData> = (context: Context<TContextData>) =
|
|
|
415
444
|
* @since 0.6.0
|
|
416
445
|
*/
|
|
417
446
|
|
|
447
|
+
/**
|
|
448
|
+
* A callback that handles permanent delivery failures when sending activities
|
|
449
|
+
* to remote inboxes.
|
|
450
|
+
*
|
|
451
|
+
* This handler is called when an inbox returns an HTTP status code that
|
|
452
|
+
* indicates permanent failure (such as `410 Gone` or `404 Not Found`),
|
|
453
|
+
* allowing the application to clean up followers that are no longer reachable.
|
|
454
|
+
*
|
|
455
|
+
* Unlike {@link OutboxErrorHandler}, which is called for every delivery failure
|
|
456
|
+
* (including retries), this handler is called only once for permanent failures,
|
|
457
|
+
* after which delivery is not retried.
|
|
458
|
+
*
|
|
459
|
+
* If any errors are thrown in this callback, they are caught, logged,
|
|
460
|
+
* and ignored.
|
|
461
|
+
*
|
|
462
|
+
* @template TContextData The context data to pass to the {@link Context}.
|
|
463
|
+
* @param context The context.
|
|
464
|
+
* @param values The delivery failure information.
|
|
465
|
+
* @since 2.0.0
|
|
466
|
+
*/
|
|
467
|
+
type OutboxPermanentFailureHandler<TContextData> = (context: Context<TContextData>, values: {
|
|
468
|
+
/** The inbox URL that failed. */
|
|
469
|
+
readonly inbox: URL;
|
|
470
|
+
/** The activity that failed to deliver. */
|
|
471
|
+
readonly activity: Activity;
|
|
472
|
+
/** The error that occurred. */
|
|
473
|
+
readonly error: SendActivityError;
|
|
474
|
+
/** The HTTP status code returned by the inbox. */
|
|
475
|
+
readonly statusCode: number;
|
|
476
|
+
/**
|
|
477
|
+
* The actor IDs that were supposed to receive the activity at this inbox.
|
|
478
|
+
*/
|
|
479
|
+
readonly actorIds: readonly URL[];
|
|
480
|
+
}) => void | Promise<void>;
|
|
418
481
|
/**
|
|
419
482
|
* A callback that determines if a request is authorized or not.
|
|
420
483
|
*
|
|
@@ -537,6 +600,7 @@ interface OutboxMessage {
|
|
|
537
600
|
readonly activityType: string;
|
|
538
601
|
readonly inbox: string;
|
|
539
602
|
readonly sharedInbox: boolean;
|
|
603
|
+
readonly actorIds?: readonly string[];
|
|
540
604
|
readonly started: string;
|
|
541
605
|
readonly attempt: number;
|
|
542
606
|
readonly headers: Readonly<Record<string, string>>;
|
|
@@ -918,6 +982,22 @@ interface Federatable<TContextData> {
|
|
|
918
982
|
* @param dispatcher A collection dispatcher callback to register.
|
|
919
983
|
*/
|
|
920
984
|
setOrderedCollectionDispatcher<TObject extends Object$1, TParam extends string>(name: string | symbol, itemType: ConstructorWithTypeId<TObject>, path: `${string}${Rfc6570Expression<TParam>}${string}`, dispatcher: CustomCollectionDispatcher<TObject, TParam, RequestContext<TContextData>, TContextData>): CustomCollectionCallbackSetters<TParam, RequestContext<TContextData>, TContextData>;
|
|
985
|
+
/**
|
|
986
|
+
* Registers a handler for permanent delivery failures.
|
|
987
|
+
*
|
|
988
|
+
* This handler is called when an inbox returns an HTTP status code
|
|
989
|
+
* that indicates permanent failure (`410 Gone`, `404 Not Found`, etc.),
|
|
990
|
+
* allowing the application to clean up followers that are no longer
|
|
991
|
+
* reachable.
|
|
992
|
+
*
|
|
993
|
+
* Unlike `onOutboxError`, which is called for every delivery failure
|
|
994
|
+
* (including retries), this handler is called only once for permanent
|
|
995
|
+
* failures, after which delivery is not retried.
|
|
996
|
+
*
|
|
997
|
+
* @param handler A callback to handle permanent failures.
|
|
998
|
+
* @since 2.0.0
|
|
999
|
+
*/
|
|
1000
|
+
setOutboxPermanentFailureHandler(handler: OutboxPermanentFailureHandler<TContextData>): void;
|
|
921
1001
|
}
|
|
922
1002
|
/**
|
|
923
1003
|
* An object that registers federation-related business logic and dispatches
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
|
-
const require_chunk = require('./chunk-
|
|
5
|
+
const require_chunk = require('./chunk-CGaQZ11T.cjs');
|
|
6
6
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
7
7
|
|
|
8
8
|
//#region src/compat/transformers.ts
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
|
-
const require_chunk = require('./chunk-
|
|
5
|
+
const require_chunk = require('./chunk-CGaQZ11T.cjs');
|
|
6
6
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
7
7
|
const __fedify_vocab_runtime = require_chunk.__toESM(require("@fedify/vocab-runtime"));
|
|
8
8
|
|
|
@@ -7,10 +7,10 @@ import { mockDocumentLoader, test } from "../dist-B5f6a8Tt.js";
|
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import "../deno-
|
|
11
|
-
import "../key-
|
|
12
|
-
import { verifyRequest } from "../http-
|
|
13
|
-
import { getAuthenticatedDocumentLoader } from "../docloader-
|
|
10
|
+
import "../deno-Dhe5E7NK.js";
|
|
11
|
+
import "../key-DFPkYar3.js";
|
|
12
|
+
import { verifyRequest } from "../http-CSqVEUdE.js";
|
|
13
|
+
import { getAuthenticatedDocumentLoader } from "../docloader-D6VuU143.js";
|
|
14
14
|
import "../std__assert-DWivtrGR.js";
|
|
15
15
|
import { assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
|
16
16
|
import "../assert_throws-BNXdRGWP.js";
|
package/dist/utils/mod.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
|
-
require('../http-
|
|
6
|
-
const require_kv_cache = require('../kv-cache-
|
|
7
|
-
require('../utils-
|
|
5
|
+
require('../http-ChlQCtql.cjs');
|
|
6
|
+
const require_kv_cache = require('../kv-cache-DwcKE9EQ.cjs');
|
|
7
|
+
require('../utils-BQ9KqEK9.cjs');
|
|
8
8
|
|
|
9
9
|
exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocumentLoader;
|
|
10
10
|
exports.kvCache = require_kv_cache.kvCache;
|
package/dist/utils/mod.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../http-
|
|
2
|
-
import "../kv-
|
|
3
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "../mod-
|
|
1
|
+
import "../http-CCEu-x1_.cjs";
|
|
2
|
+
import "../kv-g9jFc34-.cjs";
|
|
3
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "../mod-DWaA45ef.cjs";
|
|
4
4
|
export { getAuthenticatedDocumentLoader, kvCache };
|
package/dist/utils/mod.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import "../http-
|
|
4
|
-
import "../kv-
|
|
5
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "../mod-
|
|
3
|
+
import "../http-CODSJcKx.js";
|
|
4
|
+
import "../kv-jg_8SMc1.js";
|
|
5
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "../mod-CvhyLrjX.js";
|
|
6
6
|
export { getAuthenticatedDocumentLoader, kvCache };
|
package/dist/utils/mod.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import "../http-
|
|
6
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "../kv-cache-
|
|
7
|
-
import "../utils-
|
|
5
|
+
import "../http-DZrrJD77.js";
|
|
6
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "../kv-cache-1TNWtgx7.js";
|
|
7
|
+
import "../utils-Dn5OPdSW.js";
|
|
8
8
|
|
|
9
9
|
export { getAuthenticatedDocumentLoader, kvCache };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
|
+
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var __fedify_vocab = require("@fedify/vocab");
|
|
8
|
+
Object.keys(__fedify_vocab).forEach(function (k) {
|
|
9
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return __fedify_vocab[k]; }
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@fedify/vocab";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/fedify",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.335+6fe86704",
|
|
4
4
|
"description": "An ActivityPub server framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ActivityPub",
|
|
@@ -88,6 +88,16 @@
|
|
|
88
88
|
"require": "./dist/otel/mod.cjs",
|
|
89
89
|
"default": "./dist/otel/mod.js"
|
|
90
90
|
},
|
|
91
|
+
"./runtime": {
|
|
92
|
+
"types": {
|
|
93
|
+
"import": "./dist/runtime/mod.d.ts",
|
|
94
|
+
"require": "./dist/runtime/mod.d.cts",
|
|
95
|
+
"default": "./dist/runtime/mod.d.ts"
|
|
96
|
+
},
|
|
97
|
+
"import": "./dist/runtime/mod.js",
|
|
98
|
+
"require": "./dist/runtime/mod.cjs",
|
|
99
|
+
"default": "./dist/runtime/mod.js"
|
|
100
|
+
},
|
|
91
101
|
"./sig": {
|
|
92
102
|
"types": {
|
|
93
103
|
"import": "./dist/sig/mod.d.ts",
|
|
@@ -107,6 +117,16 @@
|
|
|
107
117
|
"import": "./dist/utils/mod.js",
|
|
108
118
|
"require": "./dist/utils/mod.cjs",
|
|
109
119
|
"default": "./dist/utils/mod.js"
|
|
120
|
+
},
|
|
121
|
+
"./vocab": {
|
|
122
|
+
"types": {
|
|
123
|
+
"import": "./dist/vocab/mod.d.ts",
|
|
124
|
+
"require": "./dist/vocab/mod.d.cts",
|
|
125
|
+
"default": "./dist/vocab/mod.d.ts"
|
|
126
|
+
},
|
|
127
|
+
"import": "./dist/vocab/mod.js",
|
|
128
|
+
"require": "./dist/vocab/mod.cjs",
|
|
129
|
+
"default": "./dist/vocab/mod.js"
|
|
110
130
|
}
|
|
111
131
|
},
|
|
112
132
|
"dependencies": {
|
|
@@ -125,9 +145,9 @@
|
|
|
125
145
|
"uri-template-router": "^1.0.0",
|
|
126
146
|
"url-template": "^3.1.1",
|
|
127
147
|
"urlpattern-polyfill": "^10.1.0",
|
|
128
|
-
"@fedify/
|
|
129
|
-
"@fedify/vocab": "2.0.0-dev.
|
|
130
|
-
"@fedify/
|
|
148
|
+
"@fedify/webfinger": "2.0.0-dev.335+6fe86704",
|
|
149
|
+
"@fedify/vocab-runtime": "2.0.0-dev.335+6fe86704",
|
|
150
|
+
"@fedify/vocab": "2.0.0-dev.335+6fe86704"
|
|
131
151
|
},
|
|
132
152
|
"devDependencies": {
|
|
133
153
|
"@std/assert": "npm:@jsr/std__assert@^0.226.0",
|
|
@@ -140,7 +160,7 @@
|
|
|
140
160
|
"typescript": "^5.9.3",
|
|
141
161
|
"wrangler": "^4.17.0",
|
|
142
162
|
"@fedify/fixture": "2.0.0",
|
|
143
|
-
"@fedify/vocab-tools": "^2.0.0-dev.
|
|
163
|
+
"@fedify/vocab-tools": "^2.0.0-dev.335+6fe86704"
|
|
144
164
|
},
|
|
145
165
|
"scripts": {
|
|
146
166
|
"build:self": "tsdown",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
-
|
|
5
|
-
import "./transformers-N_ip_y4P.js";
|
|
6
|
-
import "./http-7r8B3dF_.js";
|
|
7
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-R0w-WauH.js";
|
|
8
|
-
import "./proof-Cg6AAAWI.js";
|
|
9
|
-
import "./types-8l28uC8o.js";
|
|
10
|
-
import "./kv-cache-CETRZwoP.js";
|
|
11
|
-
|
|
12
|
-
export { FederationImpl };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
|
-
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
|
-
|
|
5
|
-
require('./transformers-BjBg6Lag.cjs');
|
|
6
|
-
require('./http-DMi5iyiI.cjs');
|
|
7
|
-
const require_middleware = require('./middleware-C0Vj7vNo.cjs');
|
|
8
|
-
require('./proof-vSvvLbTh.cjs');
|
|
9
|
-
require('./types-B6z6CqIz.cjs');
|
|
10
|
-
require('./kv-cache-C0AvpI7U.cjs');
|
|
11
|
-
|
|
12
|
-
exports.FederationImpl = require_middleware.FederationImpl;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|