@fedify/fedify 0.12.0-dev.263 → 0.12.0-dev.266
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +35 -0
- package/esm/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/concat.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/copy.js +2 -2
- package/esm/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/ends_with.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/equals.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/includes_needle.js +2 -2
- package/esm/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/index_of_needle.js +2 -2
- package/esm/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/last_index_of_needle.js +2 -2
- package/esm/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/repeat.js +2 -2
- package/esm/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/starts_with.js +1 -1
- package/esm/federation/handler.js +41 -21
- package/esm/federation/inbox.js +34 -0
- package/esm/federation/middleware.js +151 -34
- package/esm/federation/mod.js +1 -0
- package/esm/federation/mq.js +1 -1
- package/esm/federation/retry.js +34 -0
- package/esm/runtime/key.js +1 -1
- package/esm/sig/http.js +1 -1
- package/package.json +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/concat.d.ts +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/concat.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/copy.d.ts +2 -2
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/ends_with.d.ts +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/ends_with.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/equals.d.ts +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/equals.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/includes_needle.d.ts +2 -2
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/includes_needle.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/index_of_needle.d.ts +2 -2
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/index_of_needle.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/last_index_of_needle.d.ts +2 -2
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/last_index_of_needle.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/mod.d.ts +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/repeat.d.ts +2 -2
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/repeat.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/starts_with.d.ts +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.0 → 1.0.1}/starts_with.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/internal/{1.0.0 → 1.0.1}/build_message.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/internal/{1.0.0 → 1.0.1}/diff.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/internal/{1.0.0 → 1.0.1}/diff_str.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/internal/{1.0.0 → 1.0.1}/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/internal/{1.0.0 → 1.0.1}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/internal/{1.0.0 → 1.0.1}/styles.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/internal/{1.0.0 → 1.0.1}/types.d.ts.map +1 -1
- package/types/federation/callback.d.ts +4 -4
- package/types/federation/callback.d.ts.map +1 -1
- package/types/federation/handler.d.ts +7 -4
- package/types/federation/handler.d.ts.map +1 -1
- package/types/federation/inbox.d.ts +9 -0
- package/types/federation/inbox.d.ts.map +1 -0
- package/types/federation/inbox.test.d.ts.map +1 -0
- package/types/federation/middleware.d.ts +21 -5
- package/types/federation/middleware.d.ts.map +1 -1
- package/types/federation/mod.d.ts +1 -0
- package/types/federation/mod.d.ts.map +1 -1
- package/types/federation/mq.d.ts +2 -0
- package/types/federation/mq.d.ts.map +1 -1
- package/types/federation/queue.d.ts +11 -1
- package/types/federation/queue.d.ts.map +1 -1
- package/types/federation/retry.d.ts +64 -0
- package/types/federation/retry.d.ts.map +1 -0
- package/types/federation/retry.test.d.ts.map +1 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
/**
|
2
|
+
* The context passed to a {@link RetryPolicy} callback.
|
3
|
+
* @since 0.12.0
|
4
|
+
*/
|
5
|
+
import * as dntShim from "../_dnt.shims.js";
|
6
|
+
/**
|
7
|
+
* Creates an exponential backoff retry policy. The delay between retries
|
8
|
+
* starts at the `initialDelay` and is multiplied by the `factor` for each
|
9
|
+
* subsequent retry, up to the `maxDelay`. The policy will give up after
|
10
|
+
* `maxAttempts` attempts. The actual delay is randomized to avoid
|
11
|
+
* synchronization (jitter).
|
12
|
+
* @param options The options for the policy.
|
13
|
+
* @returns The retry policy.
|
14
|
+
* @since 0.12.0
|
15
|
+
*/
|
16
|
+
export function createExponentialBackoffPolicy(options = {}) {
|
17
|
+
const initialDelay = dntShim.Temporal.Duration.from(options.initialDelay ?? { seconds: 1 });
|
18
|
+
const maxDelay = dntShim.Temporal.Duration.from(options.maxDelay ?? { hours: 12 });
|
19
|
+
const maxAttempts = options.maxAttempts ?? 10;
|
20
|
+
const factor = options.factor ?? 2;
|
21
|
+
const jitter = options.jitter ?? true;
|
22
|
+
return ({ attempts }) => {
|
23
|
+
if (attempts >= maxAttempts)
|
24
|
+
return null;
|
25
|
+
let milliseconds = initialDelay.total("millisecond");
|
26
|
+
milliseconds *= factor ** attempts;
|
27
|
+
if (jitter) {
|
28
|
+
milliseconds *= 1 + Math.random();
|
29
|
+
milliseconds = Math.round(milliseconds);
|
30
|
+
}
|
31
|
+
const delay = dntShim.Temporal.Duration.from({ milliseconds });
|
32
|
+
return dntShim.Temporal.Duration.compare(delay, maxDelay) > 0 ? maxDelay : delay;
|
33
|
+
};
|
34
|
+
}
|
package/esm/runtime/key.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { createPublicKey } from "node:crypto";
|
3
|
-
import { concat } from "../deps/jsr.io/@std/bytes/1.0.
|
3
|
+
import { concat } from "../deps/jsr.io/@std/bytes/1.0.1/concat.js";
|
4
4
|
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/0.224.3/base64.js";
|
5
5
|
import { decodeBase64Url } from "../deps/jsr.io/@std/encoding/0.224.3/base64url.js";
|
6
6
|
import { decodeHex } from "../deps/jsr.io/@std/encoding/0.224.3/hex.js";
|
package/esm/sig/http.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { getLogger } from "@logtape/logtape";
|
3
|
-
import { equals } from "../deps/jsr.io/@std/bytes/1.0.
|
3
|
+
import { equals } from "../deps/jsr.io/@std/bytes/1.0.1/mod.js";
|
4
4
|
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/0.224.3/base64.js";
|
5
5
|
import { CryptographicKey } from "../vocab/vocab.js";
|
6
6
|
import { fetchKey, validateCryptoKey } from "./key.js";
|
package/package.json
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
* @example Basic usage
|
8
8
|
* ```ts
|
9
9
|
* import { concat } from "@std/bytes/concat";
|
10
|
-
* import { assertEquals } from "@std/assert
|
10
|
+
* import { assertEquals } from "@std/assert";
|
11
11
|
*
|
12
12
|
* const a = new Uint8Array([0, 1, 2]);
|
13
13
|
* const b = new Uint8Array([3, 4, 5]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/concat.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,UAAU,CAaxD"}
|
@@ -14,7 +14,7 @@
|
|
14
14
|
* @example Basic usage
|
15
15
|
* ```ts
|
16
16
|
* import { copy } from "@std/bytes/copy";
|
17
|
-
* import { assertEquals } from "@std/assert
|
17
|
+
* import { assertEquals } from "@std/assert";
|
18
18
|
*
|
19
19
|
* const src = new Uint8Array([9, 8, 7]);
|
20
20
|
* const dst = new Uint8Array([0, 1, 2, 3, 4, 5]);
|
@@ -26,7 +26,7 @@
|
|
26
26
|
* @example Copy with offset
|
27
27
|
* ```ts
|
28
28
|
* import { copy } from "@std/bytes/copy";
|
29
|
-
* import { assertEquals } from "@std/assert
|
29
|
+
* import { assertEquals } from "@std/assert";
|
30
30
|
*
|
31
31
|
* const src = new Uint8Array([1, 1, 1, 1]);
|
32
32
|
* const dst = new Uint8Array([0, 0, 0, 0]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/copy.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,SAAI,GAAG,MAAM,CAQzE"}
|
@@ -12,7 +12,7 @@
|
|
12
12
|
* @example Basic usage
|
13
13
|
* ```ts
|
14
14
|
* import { endsWith } from "@std/bytes/ends-with";
|
15
|
-
* import { assertEquals } from "@std/assert
|
15
|
+
* import { assertEquals } from "@std/assert";
|
16
16
|
*
|
17
17
|
* const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
|
18
18
|
* const suffix = new Uint8Array([1, 2, 3]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ends_with.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"ends_with.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/ends_with.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAWxE"}
|
@@ -8,7 +8,7 @@
|
|
8
8
|
* @example Basic usage
|
9
9
|
* ```ts
|
10
10
|
* import { equals } from "@std/bytes/equals";
|
11
|
-
* import { assertEquals } from "@std/assert
|
11
|
+
* import { assertEquals } from "@std/assert";
|
12
12
|
*
|
13
13
|
* const a = new Uint8Array([1, 2, 3]);
|
14
14
|
* const b = new Uint8Array([1, 2, 3]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/equals.ts"],"names":[],"mappings":"AA6DA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,OAAO,CAQ5D"}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
* @example Basic usage
|
14
14
|
* ```ts
|
15
15
|
* import { includesNeedle } from "@std/bytes/includes-needle";
|
16
|
-
* import { assertEquals } from "@std/assert
|
16
|
+
* import { assertEquals } from "@std/assert";
|
17
17
|
*
|
18
18
|
* const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
|
19
19
|
* const needle = new Uint8Array([1, 2]);
|
@@ -24,7 +24,7 @@
|
|
24
24
|
* @example Start index
|
25
25
|
* ```ts
|
26
26
|
* import { includesNeedle } from "@std/bytes/includes-needle";
|
27
|
-
* import { assertEquals } from "@std/assert
|
27
|
+
* import { assertEquals } from "@std/assert";
|
28
28
|
*
|
29
29
|
* const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
|
30
30
|
* const needle = new Uint8Array([1, 2]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"includes_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"includes_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/includes_needle.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,KAAK,SAAI,GACR,OAAO,CAET"}
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* @example Basic usage
|
18
18
|
* ```ts
|
19
19
|
* import { indexOfNeedle } from "@std/bytes/index-of-needle";
|
20
|
-
* import { assertEquals } from "@std/assert
|
20
|
+
* import { assertEquals } from "@std/assert";
|
21
21
|
*
|
22
22
|
* const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
|
23
23
|
* const needle = new Uint8Array([1, 2]);
|
@@ -30,7 +30,7 @@
|
|
30
30
|
* @example Start index
|
31
31
|
* ```ts
|
32
32
|
* import { indexOfNeedle } from "@std/bytes/index-of-needle";
|
33
|
-
* import { assertEquals } from "@std/assert
|
33
|
+
* import { assertEquals } from "@std/assert";
|
34
34
|
*
|
35
35
|
* const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
|
36
36
|
* const needle = new Uint8Array([1, 2]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index_of_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"index_of_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/index_of_needle.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,KAAK,SAAI,GACR,MAAM,CAqBR"}
|
@@ -14,7 +14,7 @@
|
|
14
14
|
* @example Basic usage
|
15
15
|
* ```ts
|
16
16
|
* import { lastIndexOfNeedle } from "@std/bytes/last-index-of-needle";
|
17
|
-
* import { assertEquals } from "@std/assert
|
17
|
+
* import { assertEquals } from "@std/assert";
|
18
18
|
*
|
19
19
|
* const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
|
20
20
|
* const needle = new Uint8Array([1, 2]);
|
@@ -27,7 +27,7 @@
|
|
27
27
|
* @example Start index
|
28
28
|
* ```ts
|
29
29
|
* import { lastIndexOfNeedle } from "@std/bytes/last-index-of-needle";
|
30
|
-
* import { assertEquals } from "@std/assert
|
30
|
+
* import { assertEquals } from "@std/assert";
|
31
31
|
*
|
32
32
|
* const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
|
33
33
|
* const needle = new Uint8Array([1, 2]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"last_index_of_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"last_index_of_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/last_index_of_needle.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,KAAK,GAAE,MAA0B,GAChC,MAAM,CAuBR"}
|
@@ -5,7 +5,7 @@
|
|
5
5
|
*
|
6
6
|
* ```ts
|
7
7
|
* import { concat, indexOfNeedle, endsWith } from "@std/bytes";
|
8
|
-
* import { assertEquals } from "@std/assert
|
8
|
+
* import { assertEquals } from "@std/assert";
|
9
9
|
*
|
10
10
|
* const a = new Uint8Array([0, 1, 2]);
|
11
11
|
* const b = new Uint8Array([3, 4, 5]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/mod.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
|
@@ -10,7 +10,7 @@
|
|
10
10
|
* @example Basic usage
|
11
11
|
* ```ts
|
12
12
|
* import { repeat } from "@std/bytes/repeat";
|
13
|
-
* import { assertEquals } from "@std/assert
|
13
|
+
* import { assertEquals } from "@std/assert";
|
14
14
|
*
|
15
15
|
* const source = new Uint8Array([0, 1, 2]);
|
16
16
|
*
|
@@ -20,7 +20,7 @@
|
|
20
20
|
* @example Zero count
|
21
21
|
* ```ts
|
22
22
|
* import { repeat } from "@std/bytes/repeat";
|
23
|
-
* import { assertEquals } from "@std/assert
|
23
|
+
* import { assertEquals } from "@std/assert";
|
24
24
|
*
|
25
25
|
* const source = new Uint8Array([0, 1, 2]);
|
26
26
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"repeat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"repeat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/repeat.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAapE"}
|
@@ -12,7 +12,7 @@
|
|
12
12
|
* @example Basic usage
|
13
13
|
* ```ts
|
14
14
|
* import { startsWith } from "@std/bytes/starts-with";
|
15
|
-
* import { assertEquals } from "@std/assert
|
15
|
+
* import { assertEquals } from "@std/assert";
|
16
16
|
*
|
17
17
|
* const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
|
18
18
|
* const prefix = new Uint8Array([0, 1, 2]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"starts_with.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"starts_with.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/starts_with.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAS1E"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"build_message.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
1
|
+
{"version":3,"file":"build_message.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.1/build_message.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,QAAQ;AAClB;;;GAGG;AACH,UAAU,UAAQ,GACjB,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CASvB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CASrD;AAED,4CAA4C;AAC5C,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAC7C,OAAO,GAAE,mBAAwB,GAChC,MAAM,EAAE,CAsBV"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
1
|
+
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.1/diff.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEvD,2DAA2D;AAC3D,MAAM,WAAW,aAAa;IAC5B,qCAAqC;IACrC,CAAC,EAAE,MAAM,CAAC;IACV,2BAA2B;IAC3B,EAAE,EAAE,MAAM,CAAC;CACZ;AAMD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAanD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,aAAa,CASvE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,SAAS,CAAC,CAAC,EACzB,CAAC,EAAE,CAAC,EAAE,EACN,CAAC,EAAE,CAAC,EAAE,EACN,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,WAAW,EACnB,kBAAkB,EAAE,MAAM,GACzB,KAAK,CAAC;IACP,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,CAAC,CAAC;CACV,CAAC,CAgCD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,QAAQ,CACtB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,EAAE,WAAW,EACnB,kBAAkB,EAAE,MAAM,EAC1B,GAAG,EAAE,MAAM,EACX,KAAK,CAAC,EAAE,aAAa,EACrB,IAAI,CAAC,EAAE,aAAa,GACnB,aAAa,CAsBf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,CAwEvD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"diff_str.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
1
|
+
{"version":3,"file":"diff_str.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.1/diff_str.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAW/C;AAID;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,MAAM,EAAE,CAiBnE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,EACxB,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,GAC3B,UAAU,CAAC,MAAM,CAAC,EAAE,CAetB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,EAAE,CAkDlE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.1/format.ts"],"names":[],"mappings":"AAuBA,wBAAgB,MAAM,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAezC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.1/mod.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.1/styles.ts"],"names":[],"mappings":"AAqCA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEvC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3C;AAWD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.1/types.ts"],"names":[],"mappings":"AAEA,kDAAkD;AAClD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,4BAA4B;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,6BAA6B;IAC7B,KAAK,EAAE,CAAC,CAAC;IACT,+BAA+B;IAC/B,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;CAC3B"}
|
@@ -73,25 +73,25 @@ export type CollectionCursor<TContextData, TFilter> = (context: RequestContext<T
|
|
73
73
|
* @typeParam TContextData The context data to pass to the {@link Context}.
|
74
74
|
* @typeParam TActivity The type of activity to listen for.
|
75
75
|
*/
|
76
|
-
export type InboxListener<TContextData, TActivity extends Activity> = (context:
|
76
|
+
export type InboxListener<TContextData, TActivity extends Activity> = (context: Context<TContextData>, activity: TActivity) => void | Promise<void>;
|
77
77
|
/**
|
78
78
|
* A callback that handles errors in an inbox.
|
79
79
|
*
|
80
80
|
* @typeParam TContextData The context data to pass to the {@link Context}.
|
81
81
|
*/
|
82
|
-
export type InboxErrorHandler<TContextData> = (context:
|
82
|
+
export type InboxErrorHandler<TContextData> = (context: Context<TContextData>, error: Error) => void | Promise<void>;
|
83
83
|
/**
|
84
84
|
* A callback that dispatches the key pair for the authenticated document loader
|
85
85
|
* of the {@link Context} passed to the shared inbox listener.
|
86
86
|
*
|
87
87
|
* @typeParam TContextData The context data to pass to the {@link Context}.
|
88
|
-
* @param context The
|
88
|
+
* @param context The context.
|
89
89
|
* @returns The handle of the actor or the key pair for the authenticated
|
90
90
|
* document loader of the {@link Context} passed to the shared inbox
|
91
91
|
* listener. If `null` is returned, the request is not authorized.
|
92
92
|
* @since 0.11.0
|
93
93
|
*/
|
94
|
-
export type SharedInboxKeyDispatcher<TContextData> = (context:
|
94
|
+
export type SharedInboxKeyDispatcher<TContextData> = (context: Context<TContextData>) => SenderKeyPair | {
|
95
95
|
handle: string;
|
96
96
|
} | null | Promise<SenderKeyPair | {
|
97
97
|
handle: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["../../src/federation/callback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAAC,YAAY,IAAI,CAC7C,OAAO,EAAE,cAAc,CAAC,YAAY,CAAC,KAClC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAElC;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,CAAC,YAAY,IAAI,CAC1C,OAAO,EAAE,cAAc,CAAC,YAAY,CAAC,EACrC,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,gBAAgB,GAAG,IAAI,KACzB,KAAK,GAAG,IAAI,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;AAE1C;;;;;;;;GAQG;AACH,MAAM,MAAM,uBAAuB,CAAC,YAAY,IAAI,CACl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AAC,YAAY,CAAC,EACrC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,gBAAgB,GAAG,IAAI,EAClC,cAAc,EAAE,KAAK,GAAG,IAAI,KACzB,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAEhC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,wBAAwB,CAAC,YAAY,EAAE,MAAM,SAAS,MAAM,IAAI,CAC1E,OAAO,EAAE,cAAc,CAAC,YAAY,CAAC,EACrC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,SAAS,EAAE,gBAAgB,GAAG,IAAI,EAClC,cAAc,EAAE,KAAK,GAAG,IAAI,KACzB,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC"}
|
@@ -3,10 +3,12 @@
|
|
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 {
|
7
|
-
import type { ActorDispatcher, AuthorizePredicate, CollectionCounter, CollectionCursor, CollectionDispatcher, InboxErrorHandler,
|
6
|
+
import { Link, Object } from "../vocab/vocab.js";
|
7
|
+
import type { ActorDispatcher, AuthorizePredicate, CollectionCounter, CollectionCursor, CollectionDispatcher, InboxErrorHandler, ObjectAuthorizePredicate, ObjectDispatcher } from "./callback.js";
|
8
8
|
import type { RequestContext } from "./context.js";
|
9
|
+
import type { InboxListenerSet } from "./inbox.js";
|
9
10
|
import type { KvKey, KvStore } from "./kv.js";
|
11
|
+
import type { MessageQueue } from "./mq.js";
|
10
12
|
export declare function acceptsJsonLd(request: Request): boolean;
|
11
13
|
export interface ActorHandlerParameters<TContextData> {
|
12
14
|
handle: string;
|
@@ -70,13 +72,14 @@ export interface InboxHandlerParameters<TContextData> {
|
|
70
72
|
context: RequestContext<TContextData>;
|
71
73
|
kv: KvStore;
|
72
74
|
kvPrefix: KvKey;
|
75
|
+
queue?: MessageQueue;
|
73
76
|
actorDispatcher?: ActorDispatcher<TContextData>;
|
74
|
-
inboxListeners
|
77
|
+
inboxListeners?: InboxListenerSet<TContextData>;
|
75
78
|
inboxErrorHandler?: InboxErrorHandler<TContextData>;
|
76
79
|
onNotFound(request: Request): Response | Promise<Response>;
|
77
80
|
signatureTimeWindow: dntShim.Temporal.DurationLike;
|
78
81
|
}
|
79
|
-
export declare function handleInbox<TContextData>(request: Request, { handle, context, kv, kvPrefix, actorDispatcher, inboxListeners, inboxErrorHandler, onNotFound, signatureTimeWindow, }: InboxHandlerParameters<TContextData>): Promise<Response>;
|
82
|
+
export declare function handleInbox<TContextData>(request: Request, { handle, context, kv, kvPrefix, queue, actorDispatcher, inboxListeners, inboxErrorHandler, onNotFound, signatureTimeWindow, }: InboxHandlerParameters<TContextData>): Promise<Response>;
|
80
83
|
/**
|
81
84
|
* Options for the {@link respondWithObject} and
|
82
85
|
* {@link respondWithObjectIfAcceptable} functions.
|
@@ -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,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,
|
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,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAGL,IAAI,EACJ,MAAM,EAGP,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,g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C,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAC;IACpD,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3D,mBAAmB,EAAE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC;CACpD;AAED,wBAAsB,WAAW,CAAC,YAAY,EAC5C,OAAO,EAAE,OAAO,EAChB,EACE,MAAM,EACN,OAAO,EACP,EAAE,EACF,QAAQ,EACR,KAAK,EACL,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,mBAAmB,GACpB,EAAE,sBAAsB,CAAC,YAAY,CAAC,GACtC,OAAO,CAAC,QAAQ,CAAC,CAuKnB;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,aAAa,EAAE,cAAc,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,QAAQ,CAAC,CAOnB;AAED;;;;;;;;GAQG;AACH,wBAAsB,6BAA6B,CACjD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAK1B"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Activity } from "../vocab/vocab.js";
|
2
|
+
import type { InboxListener } from "./callback.js";
|
3
|
+
export declare class InboxListenerSet<TContextData> {
|
4
|
+
#private;
|
5
|
+
constructor();
|
6
|
+
add<TActivity extends Activity>(type: new (...args: any[]) => TActivity, listener: InboxListener<TContextData, TActivity>): void;
|
7
|
+
dispatch<TActivity extends Activity>(activity: TActivity): InboxListener<TContextData, TActivity> | null;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=inbox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../../src/federation/inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,qBAAa,gBAAgB,CAAC,YAAY;;;IAUxC,GAAG,CAAC,SAAS,SAAS,QAAQ,EAE5B,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,SAAS,EACvC,QAAQ,EAAE,aAAa,CAAC,YAAY,EAAE,SAAS,CAAC,GAC/C,IAAI;IAUP,QAAQ,CAAC,SAAS,SAAS,QAAQ,EACjC,QAAQ,EAAE,SAAS,GAClB,aAAa,CAAC,YAAY,EAAE,SAAS,CAAC,GAAG,IAAI;CAiBjD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"inbox.test.d.ts","sourceRoot":"","sources":["../../src/federation/inbox.test.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
@@ -8,6 +8,7 @@ import type { ActorDispatcher, ActorKeyPairDispatcher, ActorKeyPairsDispatcher,
|
|
8
8
|
import type { Context, RequestContext, SendActivityOptions } from "./context.js";
|
9
9
|
import type { KvKey, KvStore } from "./kv.js";
|
10
10
|
import type { MessageQueue } from "./mq.js";
|
11
|
+
import { type RetryPolicy } from "./retry.js";
|
11
12
|
import { type SenderKeyPair } from "./send.js";
|
12
13
|
/**
|
13
14
|
* Options for {@link createFederation} function.
|
@@ -60,12 +61,26 @@ export interface CreateFederationOptions {
|
|
60
61
|
* the window is a minute.
|
61
62
|
*/
|
62
63
|
signatureTimeWindow?: dntShim.Temporal.DurationLike;
|
64
|
+
/**
|
65
|
+
* The retry policy for sending activities to recipients' inboxes.
|
66
|
+
* By default, this uses an exponential backoff strategy with a maximum of
|
67
|
+
* 10 attempts and a maximum delay of 12 hours.
|
68
|
+
* @since 0.12.0
|
69
|
+
*/
|
70
|
+
outboxRetryPolicy?: RetryPolicy;
|
71
|
+
/**
|
72
|
+
* The retry policy for processing incoming activities. By default, this
|
73
|
+
* uses an exponential backoff strategy with a maximum of 10 attempts and a
|
74
|
+
* maximum delay of 12 hours.
|
75
|
+
* @since 0.12.0
|
76
|
+
*/
|
77
|
+
inboxRetryPolicy?: RetryPolicy;
|
63
78
|
}
|
64
79
|
/**
|
65
80
|
* Parameters for initializing a {@link Federation} instance.
|
66
81
|
* @deprecated
|
67
82
|
*/
|
68
|
-
export interface FederationParameters extends CreateFederationOptions {
|
83
|
+
export interface FederationParameters extends Omit<CreateFederationOptions, "outboxRetryPolicy" | "inboxRetryPolicy"> {
|
69
84
|
/**
|
70
85
|
* The message queue for sending activities to recipients' inboxes.
|
71
86
|
* If not provided, activities will not be queued and will be sent
|
@@ -118,7 +133,6 @@ export interface FederationParameters extends CreateFederationOptions {
|
|
118
133
|
* @deprecated
|
119
134
|
*/
|
120
135
|
treatHttps?: boolean;
|
121
|
-
backoffSchedule?: dntShim.Temporal.Duration[];
|
122
136
|
}
|
123
137
|
/**
|
124
138
|
* Prefixes for namespacing keys in the Deno KV store.
|
@@ -156,7 +170,7 @@ export declare class Federation<TContextData> {
|
|
156
170
|
* @param parameters Parameters for initializing the instance.
|
157
171
|
* @deprecated Use {@link createFederation} method instead.
|
158
172
|
*/
|
159
|
-
constructor(
|
173
|
+
constructor(parameters: FederationParameters);
|
160
174
|
/**
|
161
175
|
* Create a new context.
|
162
176
|
* @param baseUrl The base URL of the server. The `pathname` remains root,
|
@@ -451,8 +465,9 @@ export declare class Federation<TContextData> {
|
|
451
465
|
* @param activity The activity to send.
|
452
466
|
* @param options Options for sending the activity.
|
453
467
|
* @throws {TypeError} If the activity to send does not have an actor.
|
468
|
+
* @deprecated Use {@link Context.sendActivity} instead.
|
454
469
|
*/
|
455
|
-
sendActivity(keys: SenderKeyPair[], recipients: Recipient | Recipient[], activity: Activity,
|
470
|
+
sendActivity(keys: SenderKeyPair[], recipients: Recipient | Recipient[], activity: Activity, options: SendActivityInternalOptions<TContextData>): Promise<void>;
|
456
471
|
/**
|
457
472
|
* Handles a request related to federation. If a request is not related to
|
458
473
|
* federation, the `onNotFound` or `onNotAcceptable` callback is called.
|
@@ -615,8 +630,9 @@ export interface InboxListenerSetters<TContextData> {
|
|
615
630
|
*/
|
616
631
|
setSharedKeyDispatcher(dispatcher: SharedInboxKeyDispatcher<TContextData>): InboxListenerSetters<TContextData>;
|
617
632
|
}
|
618
|
-
interface SendActivityInternalOptions extends SendActivityOptions {
|
633
|
+
interface SendActivityInternalOptions<TContextData> extends SendActivityOptions {
|
619
634
|
collectionSync?: string;
|
635
|
+
contextData: TContextData;
|
620
636
|
}
|
621
637
|
export {};
|
622
638
|
//# sourceMappingURL=middleware.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/federation/middleware.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,cAAc,EAIpB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EACL,QAAQ,EAER,KAAK,OAAO,EACZ,KAAK,IAAI,EAET,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,wBAAwB,EACxB,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAEV,OAAO,EAEP,cAAc,EACd,mBAAmB,EACpB,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/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{ respondWithObject, respondWithObjectIfAcceptable, type RespondWithObjec
|
|
10
10
|
export * from "./kv.js";
|
11
11
|
export * from "./middleware.js";
|
12
12
|
export * from "./mq.js";
|
13
|
+
export * from "./retry.js";
|
13
14
|
export * from "./router.js";
|
14
15
|
export { type SenderKeyPair } from "./send.js";
|
15
16
|
//# sourceMappingURL=mod.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/federation/mod.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,iBAAiB,EACjB,6BAA6B,EAC7B,KAAK,wBAAwB,GAC9B,MAAM,cAAc,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC"}
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/federation/mod.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,iBAAiB,EACjB,6BAA6B,EAC7B,KAAK,wBAAwB,GAC9B,MAAM,cAAc,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC"}
|
package/types/federation/mq.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mq.d.ts","sourceRoot":"","sources":["../../src/federation/mq.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAE5C,MAAM,WAAW,0BAA0B;IACzC
|
1
|
+
{"version":3,"file":"mq.d.ts","sourceRoot":"","sources":["../../src/federation/mq.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAE5C,MAAM,WAAW,0BAA0B;IACzC;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;CACnC;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3E;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;CAC/D;AAED;;;;;GAKG;AACH,qBAAa,qBAAsB,YAAW,YAAY;;IAGxD;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC;IAU1E;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI;CAG9D"}
|