@fedify/fedify 1.6.1-dev.869 → 1.6.1-dev.873
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/{vocab/actor.js → actor-DhyIYEBl.js} +5 -4
- package/dist/{vocab/actor.d.ts → actor-lFlm8FYo.d.ts} +2 -2
- package/dist/actor-trV1ExpS.js +36173 -0
- package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert.js → assert-Dv75vaGI.js} +2 -1
- package/dist/assert_equals-ClvzlhZu.js +1020 -0
- package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_instance_of.js → assert_instance_of--9UCVKsi.js} +2 -1
- package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_is_error.js → assert_is_error-D162gXcM.js} +2 -2
- package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_not_equals.js → assert_not_equals-Cyf5m9Ke.js} +2 -2
- package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_rejects.js → assert_rejects-FOHCtlD2.js} +23 -3
- package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_throws.js → assert_throws-CRfQJvVx.js} +3 -2
- package/dist/authdocloader-4i4HAp9R.js +51 -0
- package/dist/{runtime/authdocloader.js → authdocloader-BXgFJugo.js} +5 -4
- package/dist/{federation/builder.js → builder-Bh56oIkr.js} +6 -5
- package/dist/{_virtual/rolldown_runtime.js → chunk-HsBuZ-b2.js} +1 -0
- package/dist/{nodeinfo/client.js → client-BoT1mhNh.js} +3 -2
- package/dist/client-Dw1pCSIt.d.ts +299 -0
- package/dist/{federation/collection.js → collection-QaGK9TVn.js} +1 -0
- package/dist/compat/mod.d.ts +12 -2
- package/dist/compat/mod.js +2 -1
- package/dist/compat/transformers.test.d.ts +2 -1
- package/dist/compat/transformers.test.js +32 -8
- package/dist/{testing/context.js → context-B2499YhO.js} +5 -4
- package/dist/context-CzJXjNR8.d.ts +2034 -0
- package/dist/{x/denokv.js → denokv-iB_ggPGm.js} +3 -1
- package/dist/{testing/docloader.js → docloader-09nVWLAZ.js} +1 -0
- package/dist/{runtime/contexts.js → docloader-CMlE_DQr.js} +420 -1
- package/dist/{runtime/docloader.d.ts → docloader-DTRsVZPo.d.ts} +1 -1
- package/dist/docloader-lJiW6zUk.js +4594 -0
- package/dist/esm-BxIKwi-M.js +1221 -0
- package/dist/federation/builder.test.d.ts +2 -1
- package/dist/federation/builder.test.js +21 -7
- package/dist/federation/collection.test.d.ts +2 -1
- package/dist/federation/collection.test.js +11 -3
- package/dist/federation/handler.test.d.ts +2 -1
- package/dist/federation/handler.test.js +40 -12
- package/dist/federation/inbox.test.d.ts +2 -1
- package/dist/federation/inbox.test.js +12 -5
- package/dist/federation/keycache.test.d.ts +2 -1
- package/dist/federation/keycache.test.js +12 -7
- package/dist/federation/kv.test.d.ts +2 -1
- package/dist/federation/kv.test.js +11 -3
- package/dist/federation/middleware.test.d.ts +2 -1
- package/dist/federation/middleware.test.js +107 -26
- package/dist/federation/mod.d.ts +13 -13
- package/dist/federation/mod.js +12 -8
- package/dist/federation/mq.test.d.ts +2 -1
- package/dist/federation/mq.test.js +153 -6
- package/dist/federation/retry.test.d.ts +2 -1
- package/dist/federation/retry.test.js +5 -5
- package/dist/federation/router.test.d.ts +2 -1
- package/dist/federation/router.test.js +11 -6
- package/dist/federation/send.test.d.ts +2 -1
- package/dist/federation/send.test.js +25 -13
- package/dist/{federation/mq.js → federation-Bmj7soSg.js} +47 -1
- package/dist/{node_modules/.pnpm/@jsr_hongminhee__deno-mock-fetch@0.3.2/node_modules/@jsr/hongminhee__deno-mock-fetch/router.js → hongminhee__deno-mock-fetch-DJKLj_H-.js} +96 -1
- package/dist/http-BImJcLfv.d.ts +258 -0
- package/dist/{sig/http.js → http-CFQSpmJT.js} +5 -4
- package/dist/http-DtHTiemN.js +720 -0
- package/dist/{federation/inbox.js → inbox-DkHjiHqX.js} +4 -3
- package/dist/key-B5Eb05gk.js +16 -0
- package/dist/key-BYBj-UD-.js +10 -0
- package/dist/key-CkoTQfVN.js +262 -0
- package/dist/{sig/key.js → key-a7_2L5_Z.js} +2 -4
- package/dist/{federation/keycache.js → keycache-D8j8RFWf.js} +2 -1
- package/dist/{testing/keys.js → keys-DxEMe-K1.js} +2 -2
- package/dist/{federation/kv.js → kv-DohFOP2C.js} +1 -0
- package/dist/{runtime/langstr.js → langstr-DbWheeIS.js} +1 -0
- package/dist/{sig/ld.js → ld-I1s-XiQ5.js} +6 -6
- package/dist/{vocab/lookup.js → lookup--9t_F8FE.js} +5 -5
- package/dist/lookup-BDLFt_tc.js +131 -0
- package/dist/{webfinger/lookup.js → lookup-BUFWWv5q.js} +1 -3
- package/dist/{webfinger/jrd.d.ts → lookup-DAfStZtI.d.ts} +41 -1
- package/dist/middleware-BPXHlM9G.js +17 -0
- package/dist/middleware-ByU_X6O9.js +33 -0
- package/dist/middleware-CNVKIPYL.js +3525 -0
- package/dist/{federation/middleware.js → middleware-ewowwb4s.js} +957 -105
- package/dist/mod-1pDWKvUL.d.ts +2 -0
- package/dist/{runtime/key.d.ts → mod-BxwG4X3V.d.ts} +52 -7
- package/dist/{compat/transformers.d.ts → mod-CeLnlsqE.d.ts} +3 -4
- package/dist/{vocab/lookup.d.ts → mod-DysVoXOu.d.ts} +98 -3
- package/dist/mod-GIh5OYxW.d.ts +2 -0
- package/dist/{sig/ld.d.ts → mod-XT0mRthe.d.ts} +126 -4
- package/dist/mod-g0xFzAP9.d.ts +2 -0
- package/dist/mod.d.ts +18 -34
- package/dist/mod.js +17 -27
- package/dist/multibase-DeCHcK8L.js +316 -0
- package/dist/nodeinfo/client.test.d.ts +2 -1
- package/dist/nodeinfo/client.test.js +15 -4
- package/dist/nodeinfo/handler.test.d.ts +2 -1
- package/dist/nodeinfo/handler.test.js +39 -7
- package/dist/nodeinfo/mod.d.ts +4 -3
- package/dist/nodeinfo/mod.js +3 -3
- package/dist/nodeinfo/semver.test.d.ts +2 -1
- package/dist/nodeinfo/semver.test.js +11 -4
- package/dist/nodeinfo/types.test.d.ts +2 -1
- package/dist/nodeinfo/types.test.js +12 -4
- package/dist/{sig/owner.js → owner-2Gouxs6Y.js} +4 -4
- package/dist/{sig/owner.d.ts → owner-BjpObx-L.d.ts} +4 -6
- package/dist/proof-BcNfBguh.js +595 -0
- package/dist/{sig/proof.js → proof-CJ291J94.js} +5 -4
- package/dist/{federation/retry.js → retry-BiIhZWgD.js} +1 -0
- package/dist/{federation/router.js → router-D_aVZZUc.js} +1 -0
- package/dist/runtime/authdocloader.test.d.ts +2 -1
- package/dist/runtime/authdocloader.test.js +24 -9
- package/dist/runtime/docloader.test.d.ts +2 -1
- package/dist/runtime/docloader.test.js +15 -11
- package/dist/runtime/key.test.d.ts +2 -1
- package/dist/runtime/key.test.js +19 -4
- package/dist/runtime/langstr.test.d.ts +2 -1
- package/dist/runtime/langstr.test.js +11 -3
- package/dist/runtime/mod.d.ts +5 -4
- package/dist/runtime/mod.js +7 -4
- package/dist/runtime/multibase/multibase.test.d.ts +2 -1
- package/dist/runtime/multibase/multibase.test.js +11 -5
- package/dist/runtime/url.test.d.ts +2 -1
- package/dist/runtime/url.test.js +7 -6
- package/dist/{nodeinfo/semver.js → semver-CbbIgUsa.js} +1 -0
- package/dist/{federation/send.js → send-BFMnzlj7.js} +3 -2
- package/dist/sig/http.test.d.ts +2 -1
- package/dist/sig/http.test.js +23 -12
- package/dist/sig/key.test.d.ts +2 -1
- package/dist/sig/key.test.js +21 -8
- package/dist/sig/ld.test.d.ts +2 -1
- package/dist/sig/ld.test.js +19 -11
- package/dist/sig/mod.d.ts +7 -5
- package/dist/sig/mod.js +7 -5
- package/dist/sig/owner.test.d.ts +2 -1
- package/dist/sig/owner.test.js +23 -9
- package/dist/sig/proof.test.d.ts +2 -1
- package/dist/sig/proof.test.js +22 -10
- package/dist/std__assert-CaBUULmX.js +151 -0
- package/dist/testing/docloader.test.d.ts +2 -1
- package/dist/testing/docloader.test.js +11 -3
- package/dist/testing/mod.d.ts +1 -0
- package/dist/testing/mod.js +2 -136
- package/dist/testing-jcGLO9Lp.js +143 -0
- package/dist/{compat/transformers.js → transformers-jxj-4o2K.js} +1 -1
- package/dist/{vocab/type.js → type-D2s5lmbZ.js} +1 -0
- package/dist/{nodeinfo/types.js → types-CqoqWDkp.js} +2 -1
- package/dist/types-Cx0IUMu0.js +457 -0
- package/dist/{runtime/url.js → url-kTAI6_KP.js} +1 -0
- package/dist/vocab/actor.test.d.ts +2 -1
- package/dist/vocab/actor.test.js +5853 -14
- package/dist/vocab/lookup.test.d.ts +2 -1
- package/dist/vocab/lookup.test.js +20 -7
- package/dist/vocab/mod.d.ts +5 -5
- package/dist/vocab/mod.js +4 -5
- package/dist/vocab/type.test.d.ts +2 -1
- package/dist/vocab/type.test.js +9 -4
- package/dist/vocab/vocab.test.d.ts +2 -1
- package/dist/vocab/vocab.test.js +2440 -15
- package/dist/{vocab/vocab.d.ts → vocab-CLWdoo7y.d.ts} +21 -9
- package/dist/{vocab/vocab.js → vocab-Dwop3xOF.js} +331 -182
- package/dist/vocab-uQObf7P6.js +172 -0
- package/dist/webfinger/handler.test.d.ts +2 -1
- package/dist/webfinger/handler.test.js +39 -7
- package/dist/webfinger/lookup.test.d.ts +2 -1
- package/dist/webfinger/lookup.test.js +14 -4
- package/dist/webfinger/mod.d.ts +4 -2
- package/dist/webfinger/mod.js +3 -1
- package/dist/x/cfworkers.d.ts +49 -0
- package/dist/x/cfworkers.js +73 -0
- package/dist/x/cfworkers.test.d.ts +3 -0
- package/dist/x/cfworkers.test.js +153 -0
- package/dist/x/hono.d.ts +11 -2
- package/dist/x/sveltekit.d.ts +11 -2
- package/package.json +6 -1
- package/dist/codegen/fs.js +0 -23
- package/dist/codegen/schema.js +0 -88
- package/dist/codegen/type.js +0 -392
- package/dist/compat/types.d.ts +0 -18
- package/dist/deno.js +0 -137
- package/dist/federation/builder.d.ts +0 -19
- package/dist/federation/callback.d.ts +0 -211
- package/dist/federation/collection.d.ts +0 -36
- package/dist/federation/context.d.ts +0 -757
- package/dist/federation/federation.d.ts +0 -689
- package/dist/federation/handler.d.ts +0 -44
- package/dist/federation/handler.js +0 -543
- package/dist/federation/middleware.d.ts +0 -101
- package/dist/federation/negotiation.js +0 -63
- package/dist/federation/retry.d.ts +0 -71
- package/dist/federation/router.d.ts +0 -92
- package/dist/federation/send.d.ts +0 -29
- package/dist/node_modules/.pnpm/@jsr_hongminhee__deno-mock-fetch@0.3.2/node_modules/@jsr/hongminhee__deno-mock-fetch/mod.js +0 -101
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_equals.js +0 -49
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_exists.js +0 -32
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_false.js +0 -26
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_greater.js +0 -34
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_greater_or_equal.js +0 -34
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_strict_equals.js +0 -53
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_string_includes.js +0 -32
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assertion_error.js +0 -33
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/equal.js +0 -79
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/mod.js +0 -19
- package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/assertion_state.js +0 -177
- package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/build_message.js +0 -101
- package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/diff.js +0 -274
- package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/diff_str.js +0 -148
- package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/format.js +0 -37
- package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/mod.js +0 -10
- package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/styles.js +0 -172
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/assert_path.js +0 -11
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/constants.js +0 -10
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/dirname.js +0 -14
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/from_file_url.js +0 -13
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/normalize.js +0 -14
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/normalize_string.js +0 -60
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/strip_trailing_separators.js +0 -15
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_os.js +0 -9
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/extname.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/format.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/from_file_url.js +0 -34
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/glob_to_regexp.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/is_absolute.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/join.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/join_globs.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/mod.js +0 -5
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/normalize.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/normalize_glob.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/parse.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/_util.js +0 -13
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/dirname.js +0 -54
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/from_file_url.js +0 -27
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/join.js +0 -47
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/normalize.js +0 -59
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/relative.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/resolve.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/to_file_url.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/to_namespaced_path.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/windows/from_file_url.js +0 -31
- package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/_strip.js +0 -17
- package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/dirname.js +0 -38
- package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/join.js +0 -36
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_chars.js +0 -47
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_dumper_state.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_loader_state.js +0 -884
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_schema.js +0 -120
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/binary.js +0 -92
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/bool.js +0 -41
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/float.js +0 -58
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/int.js +0 -118
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/map.js +0 -18
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/merge.js +0 -14
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/nil.js +0 -23
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/omap.js +0 -31
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/pairs.js +0 -22
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/regexp.js +0 -29
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/seq.js +0 -14
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/set.js +0 -17
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/str.js +0 -14
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/timestamp.js +0 -57
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/undefined.js +0 -24
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_utils.js +0 -17
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/mod.js +0 -5
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/parse.js +0 -54
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/stringify.js +0 -4
- package/dist/node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/dist/index.js +0 -68
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/AlwaysShrinkableArbitrary.js +0 -30
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ArrayArbitrary.js +0 -203
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ArrayInt64Arbitrary.js +0 -122
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/BigIntArbitrary.js +0 -63
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ConstantArbitrary.js +0 -58
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/FrequencyArbitrary.js +0 -136
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/IntegerArbitrary.js +0 -64
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/LazyArbitrary.js +0 -29
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/StringUnitArbitrary.js +0 -45
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/TupleArbitrary.js +0 -74
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/WithShrinkFromOtherArbitrary.js +0 -40
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/AnyArbitraryBuilder.js +0 -97
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/BoxedArbitraryBuilder.js +0 -13
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/CharacterArbitraryBuilder.js +0 -17
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/RestrictedIntegerArbitraryBuilder.js +0 -23
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/TypedIntArrayArbitraryBuilder.js +0 -32
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/data/GraphemeRanges.js +0 -990
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ArrayInt64.js +0 -98
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/BiasNumericRange.js +0 -53
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/BuildSlicedGenerator.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/CustomEqualSet.js +0 -27
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DepthContext.js +0 -24
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DoubleHelpers.js +0 -96
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DoubleOnlyHelpers.js +0 -25
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatHelpers.js +0 -57
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatOnlyHelpers.js +0 -26
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatingOnlyHelpers.js +0 -26
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/GraphemeRangesHelpers.js +0 -58
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/MaxLengthFromMinLength.js +0 -72
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/NoUndefinedAsContext.js +0 -16
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/QualifiedObjectConstraints.js +0 -58
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SameValueSet.js +0 -41
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SameValueZeroSet.js +0 -33
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ShrinkBigInt.js +0 -37
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ShrinkInteger.js +0 -41
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SlicesForStringBuilder.js +0 -74
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/StrictlyEqualSet.js +0 -38
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/TokenizeString.js +0 -47
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/implementations/NoopSlicedGenerator.js +0 -21
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/implementations/SlicedBasedGenerator.js +0 -53
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/ArrayToMap.js +0 -16
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/ArrayToSet.js +0 -16
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/CodePointsToString.js +0 -17
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToCharString.js +0 -20
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToMappedConstant.js +0 -69
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToPrintableIndex.js +0 -18
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/KeyValuePairsToObject.js +0 -42
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/PatternsToString.js +0 -32
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/TimeToDate.js +0 -30
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/UnboxedToBoxed.js +0 -22
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/anything.js +0 -14
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/array.js +0 -22
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/bigInt.js +0 -38
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/boolean.js +0 -24
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/constant.js +0 -13
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/constantFrom.js +0 -14
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/date.js +0 -30
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/dictionary.js +0 -27
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/double.js +0 -54
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float.js +0 -60
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float32Array.js +0 -22
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float64Array.js +0 -22
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/fullUnicode.js +0 -24
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/fullUnicodeString.js +0 -20
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int16Array.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int32Array.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int8Array.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/integer.js +0 -26
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/letrec.js +0 -28
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/mapToConstant.js +0 -26
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/maxSafeInteger.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/nat.js +0 -17
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/noBias.js +0 -11
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/oneof.js +0 -31
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/sparseArray.js +0 -68
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/string.js +0 -32
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/tuple.js +0 -13
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint16Array.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint32Array.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint8Array.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint8ClampedArray.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uniqueArray.js +0 -47
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/arbitrary/definition/Arbitrary.js +0 -184
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/arbitrary/definition/Value.js +0 -31
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js +0 -19
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/IRawProperty.js +0 -12
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/IgnoreEqualValuesProperty.js +0 -52
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/Property.generic.js +0 -77
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/Property.js +0 -22
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/SkipAfterProperty.js +0 -61
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/TimeoutProperty.js +0 -52
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/UnbiasedProperty.js +0 -29
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/DecorateProperty.js +0 -26
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/Runner.js +0 -61
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/RunnerIterator.js +0 -47
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/SourceValuesIterator.js +0 -35
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/Tosser.js +0 -33
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/GlobalParameters.js +0 -12
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/QualifiedParameters.js +0 -121
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/VerbosityLevel.js +0 -14
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/reporter/ExecutionStatus.js +0 -14
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/reporter/RunExecution.js +0 -116
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/utils/PathWalker.js +0 -24
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js +0 -135
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/symbols.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/random/generator/Random.js +0 -48
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/LazyIterableIterator.js +0 -24
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/Stream.js +0 -84
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/StreamHelpers.js +0 -50
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/apply.js +0 -28
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/globals.js +0 -309
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/stringify.js +0 -217
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/CallHistory.js +0 -94
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/FetchMock.js +0 -143
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/IsSubsetOf.js +0 -103
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Matchers.js +0 -195
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/RequestUtils.js +0 -83
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Route.js +0 -137
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Router.js +0 -181
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/StatusTextMap.js +0 -73
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/TypeDescriptor.js +0 -97
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/index.js +0 -11
- package/dist/node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js +0 -87
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformArrayIntDistribution.js +0 -20
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformBigIntDistribution.js +0 -20
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformIntDistribution.js +0 -20
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformArrayIntDistribution.js +0 -20
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformBigIntDistribution.js +0 -32
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformIntDistribution.js +0 -43
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/ArrayInt.js +0 -139
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/UnsafeUniformArrayIntDistributionInternal.js +0 -26
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/UnsafeUniformIntDistributionInternal.js +0 -14
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/LinearCongruential.js +0 -53
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/MersenneTwister.js +0 -114
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/RandomGenerator.js +0 -26
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/XorShift.js +0 -83
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/XoroShiro.js +0 -83
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/pure-rand-default.js +0 -44
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/pure-rand.js +0 -22
- package/dist/node_modules/.pnpm/regexparam@3.0.0/node_modules/regexparam/dist/index.js +0 -37
- package/dist/nodeinfo/client.d.ts +0 -96
- package/dist/nodeinfo/handler.js +0 -46
- package/dist/nodeinfo/semver.d.ts +0 -78
- package/dist/nodeinfo/types.d.ts +0 -140
- package/dist/runtime/authdocloader.d.ts +0 -56
- package/dist/runtime/docloader.js +0 -291
- package/dist/runtime/key.js +0 -156
- package/dist/runtime/langstr.d.ts +0 -24
- package/dist/runtime/multibase/base.js +0 -32
- package/dist/runtime/multibase/constants.js +0 -172
- package/dist/runtime/multibase/index.js +0 -57
- package/dist/runtime/multibase/rfc4648.js +0 -61
- package/dist/runtime/multibase/util.js +0 -21
- package/dist/sig/http.d.ts +0 -143
- package/dist/sig/key.d.ts +0 -125
- package/dist/sig/proof.d.ts +0 -134
- package/dist/testing/fixtures/example.com/person.js +0 -29
- package/dist/testing/fixtures/example.com/person2.js +0 -48
- package/dist/vocab/constants.d.ts +0 -24
- package/dist/vocab/constants.js +0 -17
- package/dist/vocab/type.d.ts +0 -107
- package/dist/webfinger/handler.js +0 -140
- package/dist/webfinger/lookup.d.ts +0 -47
- /package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_object_match.js → compat-Bb5myD13.js} +0 -0
- /package/dist/{testing/fixtures → fixtures}/activitypub.academy/users/brauca_darradiul.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/announce.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/collection.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/create.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/cross-origin-actor.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/hong-gildong.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/invite.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/key.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/key2.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/object.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/orderedcollectionpage.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/paged/a.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/paged/b.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/paged-collection.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/person.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/person2.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/test.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/users/handle.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/wrong-type.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/remote.domain/users/bob.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/server.example/users/alice.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/w3id.org/identity/v1.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/w3id.org/security/data-integrity/v1.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/w3id.org/security/multikey/v1.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/w3id.org/security/v1.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/wizard.casa/users/hongminhee.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/www.w3.org/ns/activitystreams.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/www.w3.org/ns/did/v1.json +0 -0
- /package/dist/{federation/kv.d.ts → kv-BmsWxOQ2.d.ts} +0 -0
- /package/dist/{federation/mq.d.ts → mq-Bue016Tz.d.ts} +0 -0
- /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/basename.js → nodeinfo-CyEbLjHs.js} +0 -0
- /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/common.js → runtime-BSkOVUWM.js} +0 -0
- /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/constants.js → sig-BXJO--F9.js} +0 -0
- /package/dist/{codegen → vocab}/schema.yaml +0 -0
- /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/dirname.js → webfinger-C3GIyXIg.js} +0 -0
@@ -1,32 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
import { encodeText } from "./util.js";
|
6
|
-
|
7
|
-
//#region runtime/multibase/base.ts
|
8
|
-
/**
|
9
|
-
* Class to encode/decode in the supported Bases
|
10
|
-
*/
|
11
|
-
var Base = class {
|
12
|
-
codeBuf;
|
13
|
-
codec;
|
14
|
-
constructor(name, code, factory, alphabet) {
|
15
|
-
this.name = name;
|
16
|
-
this.code = code;
|
17
|
-
this.alphabet = alphabet;
|
18
|
-
this.codeBuf = encodeText(this.code);
|
19
|
-
this.alphabet = alphabet;
|
20
|
-
this.codec = factory(alphabet);
|
21
|
-
}
|
22
|
-
encode(buf) {
|
23
|
-
return this.codec.encode(buf);
|
24
|
-
}
|
25
|
-
decode(string) {
|
26
|
-
for (const char of string) if (this.alphabet && this.alphabet.indexOf(char) < 0) throw new Error(`invalid character '${char}' in '${string}'`);
|
27
|
-
return this.codec.decode(string);
|
28
|
-
}
|
29
|
-
};
|
30
|
-
|
31
|
-
//#endregion
|
32
|
-
export { Base };
|
@@ -1,172 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
import { decodeText, encodeText } from "./util.js";
|
6
|
-
import { Base } from "./base.js";
|
7
|
-
import { rfc4648 } from "./rfc4648.js";
|
8
|
-
import baseX from "@multiformats/base-x";
|
9
|
-
|
10
|
-
//#region runtime/multibase/constants.ts
|
11
|
-
const identity = () => {
|
12
|
-
return {
|
13
|
-
encode: decodeText,
|
14
|
-
decode: encodeText
|
15
|
-
};
|
16
|
-
};
|
17
|
-
/**
|
18
|
-
* name, code, implementation, alphabet
|
19
|
-
*
|
20
|
-
* @type {Array<[BaseName, BaseCode, CodecFactory, string]>}
|
21
|
-
*/
|
22
|
-
const constants = [
|
23
|
-
[
|
24
|
-
"identity",
|
25
|
-
"\0",
|
26
|
-
identity,
|
27
|
-
""
|
28
|
-
],
|
29
|
-
[
|
30
|
-
"base2",
|
31
|
-
"0",
|
32
|
-
rfc4648(1),
|
33
|
-
"01"
|
34
|
-
],
|
35
|
-
[
|
36
|
-
"base8",
|
37
|
-
"7",
|
38
|
-
rfc4648(3),
|
39
|
-
"01234567"
|
40
|
-
],
|
41
|
-
[
|
42
|
-
"base10",
|
43
|
-
"9",
|
44
|
-
baseX,
|
45
|
-
"0123456789"
|
46
|
-
],
|
47
|
-
[
|
48
|
-
"base16",
|
49
|
-
"f",
|
50
|
-
rfc4648(4),
|
51
|
-
"0123456789abcdef"
|
52
|
-
],
|
53
|
-
[
|
54
|
-
"base16upper",
|
55
|
-
"F",
|
56
|
-
rfc4648(4),
|
57
|
-
"0123456789ABCDEF"
|
58
|
-
],
|
59
|
-
[
|
60
|
-
"base32hex",
|
61
|
-
"v",
|
62
|
-
rfc4648(5),
|
63
|
-
"0123456789abcdefghijklmnopqrstuv"
|
64
|
-
],
|
65
|
-
[
|
66
|
-
"base32hexupper",
|
67
|
-
"V",
|
68
|
-
rfc4648(5),
|
69
|
-
"0123456789ABCDEFGHIJKLMNOPQRSTUV"
|
70
|
-
],
|
71
|
-
[
|
72
|
-
"base32hexpad",
|
73
|
-
"t",
|
74
|
-
rfc4648(5),
|
75
|
-
"0123456789abcdefghijklmnopqrstuv="
|
76
|
-
],
|
77
|
-
[
|
78
|
-
"base32hexpadupper",
|
79
|
-
"T",
|
80
|
-
rfc4648(5),
|
81
|
-
"0123456789ABCDEFGHIJKLMNOPQRSTUV="
|
82
|
-
],
|
83
|
-
[
|
84
|
-
"base32",
|
85
|
-
"b",
|
86
|
-
rfc4648(5),
|
87
|
-
"abcdefghijklmnopqrstuvwxyz234567"
|
88
|
-
],
|
89
|
-
[
|
90
|
-
"base32upper",
|
91
|
-
"B",
|
92
|
-
rfc4648(5),
|
93
|
-
"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"
|
94
|
-
],
|
95
|
-
[
|
96
|
-
"base32pad",
|
97
|
-
"c",
|
98
|
-
rfc4648(5),
|
99
|
-
"abcdefghijklmnopqrstuvwxyz234567="
|
100
|
-
],
|
101
|
-
[
|
102
|
-
"base32padupper",
|
103
|
-
"C",
|
104
|
-
rfc4648(5),
|
105
|
-
"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="
|
106
|
-
],
|
107
|
-
[
|
108
|
-
"base32z",
|
109
|
-
"h",
|
110
|
-
rfc4648(5),
|
111
|
-
"ybndrfg8ejkmcpqxot1uwisza345h769"
|
112
|
-
],
|
113
|
-
[
|
114
|
-
"base36",
|
115
|
-
"k",
|
116
|
-
baseX,
|
117
|
-
"0123456789abcdefghijklmnopqrstuvwxyz"
|
118
|
-
],
|
119
|
-
[
|
120
|
-
"base36upper",
|
121
|
-
"K",
|
122
|
-
baseX,
|
123
|
-
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
124
|
-
],
|
125
|
-
[
|
126
|
-
"base58btc",
|
127
|
-
"z",
|
128
|
-
baseX,
|
129
|
-
"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
|
130
|
-
],
|
131
|
-
[
|
132
|
-
"base58flickr",
|
133
|
-
"Z",
|
134
|
-
baseX,
|
135
|
-
"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
|
136
|
-
],
|
137
|
-
[
|
138
|
-
"base64",
|
139
|
-
"m",
|
140
|
-
rfc4648(6),
|
141
|
-
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
|
142
|
-
],
|
143
|
-
[
|
144
|
-
"base64pad",
|
145
|
-
"M",
|
146
|
-
rfc4648(6),
|
147
|
-
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
148
|
-
],
|
149
|
-
[
|
150
|
-
"base64url",
|
151
|
-
"u",
|
152
|
-
rfc4648(6),
|
153
|
-
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
154
|
-
],
|
155
|
-
[
|
156
|
-
"base64urlpad",
|
157
|
-
"U",
|
158
|
-
rfc4648(6),
|
159
|
-
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="
|
160
|
-
]
|
161
|
-
];
|
162
|
-
const names = constants.reduce((prev, tupple) => {
|
163
|
-
prev[tupple[0]] = new Base(tupple[0], tupple[1], tupple[2], tupple[3]);
|
164
|
-
return prev;
|
165
|
-
}, {});
|
166
|
-
const codes = constants.reduce((prev, tupple) => {
|
167
|
-
prev[tupple[1]] = names[tupple[0]];
|
168
|
-
return prev;
|
169
|
-
}, {});
|
170
|
-
|
171
|
-
//#endregion
|
172
|
-
export { codes, names };
|
@@ -1,57 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
import { concat, decodeText, encodeText } from "./util.js";
|
6
|
-
import { codes, names } from "./constants.js";
|
7
|
-
|
8
|
-
//#region runtime/multibase/index.ts
|
9
|
-
/**
|
10
|
-
* Encode data with the specified base and add the multibase prefix.
|
11
|
-
*
|
12
|
-
* @throws {Error} Will throw if the encoding is not supported
|
13
|
-
*/
|
14
|
-
function encode(nameOrCode, buf) {
|
15
|
-
const enc = encoding(nameOrCode);
|
16
|
-
const data = encodeText(enc.encode(buf));
|
17
|
-
return concat([enc.codeBuf, data], enc.codeBuf.length + data.length);
|
18
|
-
}
|
19
|
-
/**
|
20
|
-
* Takes a Uint8Array or string encoded with multibase header, decodes it and
|
21
|
-
* returns the decoded buffer
|
22
|
-
*
|
23
|
-
* @throws {Error} Will throw if the encoding is not supported
|
24
|
-
*/
|
25
|
-
function decode(data) {
|
26
|
-
if (data instanceof Uint8Array) data = decodeText(data);
|
27
|
-
const prefix = data[0];
|
28
|
-
if ([
|
29
|
-
"f",
|
30
|
-
"F",
|
31
|
-
"v",
|
32
|
-
"V",
|
33
|
-
"t",
|
34
|
-
"T",
|
35
|
-
"b",
|
36
|
-
"B",
|
37
|
-
"c",
|
38
|
-
"C",
|
39
|
-
"h",
|
40
|
-
"k",
|
41
|
-
"K"
|
42
|
-
].includes(prefix)) data = data.toLowerCase();
|
43
|
-
const enc = encoding(data[0]);
|
44
|
-
return enc.decode(data.substring(1));
|
45
|
-
}
|
46
|
-
/**
|
47
|
-
* Get the encoding by name or code
|
48
|
-
* @throws {Error} Will throw if the encoding is not supported
|
49
|
-
*/
|
50
|
-
function encoding(nameOrCode) {
|
51
|
-
if (Object.prototype.hasOwnProperty.call(names, nameOrCode)) return names[nameOrCode];
|
52
|
-
else if (Object.prototype.hasOwnProperty.call(codes, nameOrCode)) return codes[nameOrCode];
|
53
|
-
else throw new Error(`Unsupported encoding: ${nameOrCode}`);
|
54
|
-
}
|
55
|
-
|
56
|
-
//#endregion
|
57
|
-
export { decode, encode };
|
@@ -1,61 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
//#region runtime/multibase/rfc4648.ts
|
6
|
-
const decode = (string, alphabet, bitsPerChar) => {
|
7
|
-
const codes = {};
|
8
|
-
for (let i = 0; i < alphabet.length; ++i) codes[alphabet[i]] = i;
|
9
|
-
let end = string.length;
|
10
|
-
while (string[end - 1] === "=") --end;
|
11
|
-
const out = new Uint8Array(end * bitsPerChar / 8 | 0);
|
12
|
-
let bits = 0;
|
13
|
-
let buffer = 0;
|
14
|
-
let written = 0;
|
15
|
-
for (let i = 0; i < end; ++i) {
|
16
|
-
const value = codes[string[i]];
|
17
|
-
if (value === void 0) throw new SyntaxError("Invalid character " + string[i]);
|
18
|
-
buffer = buffer << bitsPerChar | value;
|
19
|
-
bits += bitsPerChar;
|
20
|
-
if (bits >= 8) {
|
21
|
-
bits -= 8;
|
22
|
-
out[written++] = 255 & buffer >> bits;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
if (bits >= bitsPerChar || 255 & buffer << 8 - bits) throw new SyntaxError("Unexpected end of data");
|
26
|
-
return out;
|
27
|
-
};
|
28
|
-
const encode = (data, alphabet, bitsPerChar) => {
|
29
|
-
const pad = alphabet[alphabet.length - 1] === "=";
|
30
|
-
const mask = (1 << bitsPerChar) - 1;
|
31
|
-
let out = "";
|
32
|
-
let bits = 0;
|
33
|
-
let buffer = 0;
|
34
|
-
for (let i = 0; i < data.length; ++i) {
|
35
|
-
buffer = buffer << 8 | data[i];
|
36
|
-
bits += 8;
|
37
|
-
while (bits > bitsPerChar) {
|
38
|
-
bits -= bitsPerChar;
|
39
|
-
out += alphabet[mask & buffer >> bits];
|
40
|
-
}
|
41
|
-
}
|
42
|
-
if (bits) out += alphabet[mask & buffer << bitsPerChar - bits];
|
43
|
-
if (pad) while (out.length * bitsPerChar & 7) out += "=";
|
44
|
-
return out;
|
45
|
-
};
|
46
|
-
/**
|
47
|
-
* RFC4648 Factory
|
48
|
-
*/
|
49
|
-
const rfc4648 = (bitsPerChar) => (alphabet) => {
|
50
|
-
return {
|
51
|
-
encode(input) {
|
52
|
-
return encode(input, alphabet, bitsPerChar);
|
53
|
-
},
|
54
|
-
decode(input) {
|
55
|
-
return decode(input, alphabet, bitsPerChar);
|
56
|
-
}
|
57
|
-
};
|
58
|
-
};
|
59
|
-
|
60
|
-
//#endregion
|
61
|
-
export { rfc4648 };
|
@@ -1,21 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
//#region runtime/multibase/util.ts
|
6
|
-
const textDecoder = new TextDecoder();
|
7
|
-
const decodeText = (bytes) => textDecoder.decode(bytes);
|
8
|
-
const textEncoder = new TextEncoder();
|
9
|
-
const encodeText = (text) => textEncoder.encode(text);
|
10
|
-
function concat(arrs, length) {
|
11
|
-
const output = new Uint8Array(length);
|
12
|
-
let offset = 0;
|
13
|
-
for (const arr of arrs) {
|
14
|
-
output.set(arr, offset);
|
15
|
-
offset += arr.length;
|
16
|
-
}
|
17
|
-
return output;
|
18
|
-
}
|
19
|
-
|
20
|
-
//#endregion
|
21
|
-
export { concat, decodeText, encodeText };
|
package/dist/sig/http.d.ts
DELETED
@@ -1,143 +0,0 @@
|
|
1
|
-
import { Temporal } from "@js-temporal/polyfill";
|
2
|
-
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { DocumentLoader } from "../runtime/docloader.js";
|
4
|
-
import { CryptographicKey$1 as CryptographicKey } from "../vocab/vocab.js";
|
5
|
-
import { KeyCache } from "./key.js";
|
6
|
-
import { TracerProvider } from "@opentelemetry/api";
|
7
|
-
|
8
|
-
//#region sig/http.d.ts
|
9
|
-
/**
|
10
|
-
* The standard to use for signing and verifying HTTP signatures.
|
11
|
-
* @since 1.6.0
|
12
|
-
*/
|
13
|
-
/**
|
14
|
-
* The standard to use for signing and verifying HTTP signatures.
|
15
|
-
* @since 1.6.0
|
16
|
-
*/
|
17
|
-
type HttpMessageSignaturesSpec =
|
18
|
-
/**
|
19
|
-
* The Signing HTTP Messages (draft-cavage-http-signatures-12) specification,
|
20
|
-
* which is widely adopted and used in the fediverse (as of May 2025).
|
21
|
-
*/
|
22
|
-
"draft-cavage-http-signatures-12"
|
23
|
-
/**
|
24
|
-
* The HTTP Message Signatures (RFC 9421) specification, which is the
|
25
|
-
* finalized standard but not widely adopted yet (as of May 2025).
|
26
|
-
*/ | "rfc9421";
|
27
|
-
/**
|
28
|
-
* Options for {@link signRequest}.
|
29
|
-
* @since 1.3.0
|
30
|
-
*/
|
31
|
-
interface SignRequestOptions {
|
32
|
-
/**
|
33
|
-
* The HTTP message signatures specification to use for signing.
|
34
|
-
* @default `"draft-cavage-http-signatures-12"`
|
35
|
-
* @since 1.6.0
|
36
|
-
*/
|
37
|
-
spec?: HttpMessageSignaturesSpec;
|
38
|
-
/**
|
39
|
-
* The current time. If not specified, the current time is used. This is
|
40
|
-
* useful for testing.
|
41
|
-
* @since 1.6.0
|
42
|
-
*/
|
43
|
-
currentTime?: Temporal.Instant;
|
44
|
-
/**
|
45
|
-
* The OpenTelemetry tracer provider. If omitted, the global tracer provider
|
46
|
-
* is used.
|
47
|
-
*/
|
48
|
-
tracerProvider?: TracerProvider;
|
49
|
-
}
|
50
|
-
/**
|
51
|
-
* Signs a request using the given private key.
|
52
|
-
* @param request The request to sign.
|
53
|
-
* @param privateKey The private key to use for signing.
|
54
|
-
* @param keyId The key ID to use for the signature. It will be used by the
|
55
|
-
* verifier.
|
56
|
-
* @returns The signed request.
|
57
|
-
* @throws {TypeError} If the private key is invalid or unsupported.
|
58
|
-
*/
|
59
|
-
declare function signRequest(request: Request, privateKey: CryptoKey, keyId: URL, options?: SignRequestOptions): Promise<Request>;
|
60
|
-
/**
|
61
|
-
* Options for {@link verifyRequest}.
|
62
|
-
*/
|
63
|
-
interface VerifyRequestOptions {
|
64
|
-
/**
|
65
|
-
* The document loader to use for fetching the public key.
|
66
|
-
*/
|
67
|
-
documentLoader?: DocumentLoader;
|
68
|
-
/**
|
69
|
-
* The context loader to use for JSON-LD context retrieval.
|
70
|
-
*/
|
71
|
-
contextLoader?: DocumentLoader;
|
72
|
-
/**
|
73
|
-
* The time window to allow for the request date. The actual time window is
|
74
|
-
* twice the value of this option, with the current time as the center.
|
75
|
-
* Or if it is `false`, no time check is performed.
|
76
|
-
*
|
77
|
-
* An hour by default.
|
78
|
-
*/
|
79
|
-
timeWindow?: Temporal.Duration | Temporal.DurationLike | false;
|
80
|
-
/**
|
81
|
-
* The current time. If not specified, the current time is used. This is
|
82
|
-
* useful for testing.
|
83
|
-
*/
|
84
|
-
currentTime?: Temporal.Instant;
|
85
|
-
/**
|
86
|
-
* The key cache to use for caching public keys.
|
87
|
-
* @since 0.12.0
|
88
|
-
*/
|
89
|
-
keyCache?: KeyCache;
|
90
|
-
/**
|
91
|
-
* The HTTP message signatures specification to use for verifying.
|
92
|
-
* @default `"draft-cavage-http-signatures-12"`
|
93
|
-
* @since 1.6.0
|
94
|
-
*/
|
95
|
-
spec?: HttpMessageSignaturesSpec;
|
96
|
-
/**
|
97
|
-
* The OpenTelemetry tracer provider. If omitted, the global tracer provider
|
98
|
-
* is used.
|
99
|
-
* @since 1.3.0
|
100
|
-
*/
|
101
|
-
tracerProvider?: TracerProvider;
|
102
|
-
}
|
103
|
-
/**
|
104
|
-
* Verifies the signature of a request.
|
105
|
-
*
|
106
|
-
* Note that this function consumes the request body, so it should not be used
|
107
|
-
* if the request body is already consumed. Consuming the request body after
|
108
|
-
* calling this function is okay, since this function clones the request
|
109
|
-
* under the hood.
|
110
|
-
*
|
111
|
-
* @param request The request to verify.
|
112
|
-
* @param options Options for verifying the request.
|
113
|
-
* @returns The public key of the verified signature, or `null` if the signature
|
114
|
-
* could not be verified.
|
115
|
-
*/
|
116
|
-
declare function verifyRequest(request: Request, options?: VerifyRequestOptions): Promise<CryptographicKey | null>;
|
117
|
-
/**
|
118
|
-
* A spec determiner for HTTP Message Signatures.
|
119
|
-
* It determines the spec to use for signing requests.
|
120
|
-
* It is used for double-knocking
|
121
|
-
* (see <https://swicg.github.io/activitypub-http-signature/#how-to-upgrade-supported-versions>).
|
122
|
-
* @since 1.6.0
|
123
|
-
*/
|
124
|
-
interface HttpMessageSignaturesSpecDeterminer {
|
125
|
-
/**
|
126
|
-
* Determines the spec to use for signing requests.
|
127
|
-
* @param origin The origin of the URL to make the request to.
|
128
|
-
* @returns The spec to use for signing requests.
|
129
|
-
*/
|
130
|
-
determineSpec(origin: string): HttpMessageSignaturesSpec | Promise<HttpMessageSignaturesSpec>;
|
131
|
-
/**
|
132
|
-
* Remembers the successfully used spec for the given origin.
|
133
|
-
* @param origin The origin of the URL that was requested.
|
134
|
-
* @param spec The spec to remember.
|
135
|
-
*/
|
136
|
-
rememberSpec(origin: string, spec: HttpMessageSignaturesSpec): void | Promise<void>;
|
137
|
-
} //#endregion
|
138
|
-
|
139
|
-
/**
|
140
|
-
* The options for double-knock requests.
|
141
|
-
* @since 1.6.0
|
142
|
-
*/
|
143
|
-
export { HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, SignRequestOptions, VerifyRequestOptions, signRequest as signRequest$1, verifyRequest as verifyRequest$1 };
|
package/dist/sig/key.d.ts
DELETED
@@ -1,125 +0,0 @@
|
|
1
|
-
import { Temporal } from "@js-temporal/polyfill";
|
2
|
-
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { DocumentLoader } from "../runtime/docloader.js";
|
4
|
-
import { CryptographicKey$1 as CryptographicKey, Multikey$1 as Multikey } from "../vocab/vocab.js";
|
5
|
-
import { TracerProvider } from "@opentelemetry/api";
|
6
|
-
|
7
|
-
//#region sig/key.d.ts
|
8
|
-
/**
|
9
|
-
* Generates a key pair which is appropriate for Fedify.
|
10
|
-
* @param algorithm The algorithm to use. Currently only RSASSA-PKCS1-v1_5 and
|
11
|
-
* Ed25519 are supported.
|
12
|
-
* @returns The generated key pair.
|
13
|
-
* @throws {TypeError} If the algorithm is unsupported.
|
14
|
-
*/
|
15
|
-
|
16
|
-
/**
|
17
|
-
* Generates a key pair which is appropriate for Fedify.
|
18
|
-
* @param algorithm The algorithm to use. Currently only RSASSA-PKCS1-v1_5 and
|
19
|
-
* Ed25519 are supported.
|
20
|
-
* @returns The generated key pair.
|
21
|
-
* @throws {TypeError} If the algorithm is unsupported.
|
22
|
-
*/
|
23
|
-
declare function generateCryptoKeyPair(algorithm?: "RSASSA-PKCS1-v1_5" | "Ed25519"): Promise<CryptoKeyPair>;
|
24
|
-
/**
|
25
|
-
* Exports a key in JWK format.
|
26
|
-
* @param key The key to export. Either public or private key.
|
27
|
-
* @returns The exported key in JWK format. The key is suitable for
|
28
|
-
* serialization and storage.
|
29
|
-
* @throws {TypeError} If the key is invalid or unsupported.
|
30
|
-
*/
|
31
|
-
declare function exportJwk(key: CryptoKey): Promise<JsonWebKey>;
|
32
|
-
/**
|
33
|
-
* Imports a key from JWK format.
|
34
|
-
* @param jwk The key in JWK format.
|
35
|
-
* @param type Which type of key to import, either `"public"` or `"private"`.
|
36
|
-
* @returns The imported key.
|
37
|
-
* @throws {TypeError} If the key is invalid or unsupported.
|
38
|
-
*/
|
39
|
-
declare function importJwk(jwk: JsonWebKey, type: "public" | "private"): Promise<CryptoKey>;
|
40
|
-
/**
|
41
|
-
* Options for {@link fetchKey}.
|
42
|
-
* @since 1.3.0
|
43
|
-
*/
|
44
|
-
interface FetchKeyOptions {
|
45
|
-
/**
|
46
|
-
* The document loader for loading remote JSON-LD documents.
|
47
|
-
*/
|
48
|
-
documentLoader?: DocumentLoader;
|
49
|
-
/**
|
50
|
-
* The context loader for loading remote JSON-LD contexts.
|
51
|
-
*/
|
52
|
-
contextLoader?: DocumentLoader;
|
53
|
-
/**
|
54
|
-
* The key cache to use for caching public keys.
|
55
|
-
* @since 0.12.0
|
56
|
-
*/
|
57
|
-
keyCache?: KeyCache;
|
58
|
-
/**
|
59
|
-
* The OpenTelemetry tracer provider to use for tracing. If omitted,
|
60
|
-
* the global tracer provider is used.
|
61
|
-
* @since 1.3.0
|
62
|
-
*/
|
63
|
-
tracerProvider?: TracerProvider;
|
64
|
-
}
|
65
|
-
/**
|
66
|
-
* The result of {@link fetchKey}.
|
67
|
-
* @since 1.3.0
|
68
|
-
*/
|
69
|
-
interface FetchKeyResult<T extends CryptographicKey | Multikey> {
|
70
|
-
/**
|
71
|
-
* The fetched (or cached) key.
|
72
|
-
*/
|
73
|
-
readonly key: T & {
|
74
|
-
publicKey: CryptoKey;
|
75
|
-
} | null;
|
76
|
-
/**
|
77
|
-
* Whether the key is fetched from the cache.
|
78
|
-
*/
|
79
|
-
readonly cached: boolean;
|
80
|
-
}
|
81
|
-
/**
|
82
|
-
* Fetches a {@link CryptographicKey} or {@link Multikey} from the given URL.
|
83
|
-
* If the given URL contains an {@link Actor} object, it tries to find
|
84
|
-
* the corresponding key in the `publicKey` or `assertionMethod` property.
|
85
|
-
* @typeParam T The type of the key to fetch. Either {@link CryptographicKey}
|
86
|
-
* or {@link Multikey}.
|
87
|
-
* @param keyId The URL of the key.
|
88
|
-
* @param cls The class of the key to fetch. Either {@link CryptographicKey}
|
89
|
-
* or {@link Multikey}.
|
90
|
-
* @param options Options for fetching the key. See {@link FetchKeyOptions}.
|
91
|
-
* @returns The fetched key or `null` if the key is not found.
|
92
|
-
* @since 1.3.0
|
93
|
-
*/
|
94
|
-
declare function fetchKey<T extends CryptographicKey | Multikey>(keyId: URL | string, cls: (new (...args: any[]) => T) & {
|
95
|
-
fromJsonLd(jsonLd: unknown, options: {
|
96
|
-
documentLoader?: DocumentLoader;
|
97
|
-
contextLoader?: DocumentLoader;
|
98
|
-
tracerProvider?: TracerProvider;
|
99
|
-
}): Promise<T>;
|
100
|
-
}, options?: FetchKeyOptions): Promise<FetchKeyResult<T>>;
|
101
|
-
/**
|
102
|
-
* A cache for storing cryptographic keys.
|
103
|
-
* @since 0.12.0
|
104
|
-
*/
|
105
|
-
interface KeyCache {
|
106
|
-
/**
|
107
|
-
* Gets a key from the cache.
|
108
|
-
* @param keyId The key ID.
|
109
|
-
* @returns The key if found, `null` if the key is not available (e.g.,
|
110
|
-
* fetching the key was tried but failed), or `undefined`
|
111
|
-
* if the cache is not available.
|
112
|
-
*/
|
113
|
-
get(keyId: URL): Promise<CryptographicKey | Multikey | null | undefined>;
|
114
|
-
/**
|
115
|
-
* Sets a key to the cache.
|
116
|
-
*
|
117
|
-
* Note that this caches unavailable keys (i.e., `null`) as well,
|
118
|
-
* and it is recommended to make unavailable keys expire after a short period.
|
119
|
-
* @param keyId The key ID.
|
120
|
-
* @param key The key to cache. `null` means the key is not available
|
121
|
-
* (e.g., fetching the key was tried but failed).
|
122
|
-
*/
|
123
|
-
set(keyId: URL, key: CryptographicKey | Multikey | null): Promise<void>;
|
124
|
-
} //#endregion
|
125
|
-
export { FetchKeyOptions, FetchKeyResult, KeyCache, exportJwk as exportJwk$1, fetchKey as fetchKey$1, generateCryptoKeyPair as generateCryptoKeyPair$1, importJwk as importJwk$1 };
|