@zuplo/cli 7.6.8 → 7.6.9
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/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +7 -16
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +6 -17
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +7 -16
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +11 -34
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +7 -16
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +15 -35
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwk/embedded.d.ts +3 -8
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwk/thumbprint.d.ts +5 -5
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwks/local.d.ts +6 -10
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwks/remote.d.ts +13 -24
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/compact/sign.d.ts +5 -10
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/compact/verify.d.ts +9 -18
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/flattened/sign.d.ts +7 -16
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/flattened/verify.d.ts +9 -18
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/general/sign.d.ts +11 -21
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/general/verify.d.ts +9 -18
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/decrypt.d.ts +10 -20
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/encrypt.d.ts +6 -13
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/sign.d.ts +5 -6
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/unsecured.d.ts +9 -14
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/verify.d.ts +9 -19
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/export.d.ts +4 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/generate_key_pair.d.ts +6 -8
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/generate_secret.d.ts +4 -11
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/import.d.ts +10 -17
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/types.d.ts +44 -84
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/base64url.d.ts +2 -2
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/decode_jwt.d.ts +3 -10
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/decode_protected_header.d.ts +4 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/errors.d.ts +26 -53
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/index.js +70 -32
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +7 -8
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +42 -48
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +14 -14
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +53 -64
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/general/decrypt.js +38 -49
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/general/encrypt.js +121 -169
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwk/embedded.js +30 -32
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwk/thumbprint.js +54 -70
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/local.js +47 -64
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/remote.js +88 -136
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/compact/sign.js +21 -21
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/compact/verify.js +7 -8
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/flattened/sign.js +29 -31
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/flattened/verify.js +21 -24
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/general/sign.js +61 -72
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/general/verify.js +45 -69
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/decrypt.js +13 -20
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/encrypt.js +57 -70
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/sign.js +17 -16
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/unsecured.js +32 -40
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/verify.js +12 -14
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/key/export.js +32 -37
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/key/generate_key_pair.js +40 -48
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/key/generate_secret.js +35 -40
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/key/import.js +52 -56
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/asn1.js +130 -169
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/base64.js +18 -20
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/buffer_utils.js +34 -38
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/content_encryption.js +79 -115
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/crypto_key.js +24 -25
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/deflate.js +45 -47
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/helpers.js +40 -37
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/invalid_key_input.js +10 -24
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/is_key_like.js +17 -15
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +106 -93
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +207 -230
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +104 -138
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwk_metadata.js +17 -18
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwk_to_key.js +9 -16
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jws_algorithms.js +62 -61
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jws_sign.js +50 -75
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jws_verify.js +80 -125
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +123 -209
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key.js +84 -136
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key_algorithm.js +13 -8
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key_descriptor.js +8 -6
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key_management.js +200 -231
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key_options.js +7 -5
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/options.js +55 -68
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/signing.js +18 -22
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/type_checks.js +26 -29
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/base64url.js +26 -35
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -31
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/decode_protected_header.js +18 -23
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/errors.js +94 -84
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/package.json +17 -81
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +7 -16
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +6 -17
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +7 -16
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +11 -34
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +7 -16
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +15 -35
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwk/embedded.d.ts +3 -8
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwk/thumbprint.d.ts +5 -5
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwks/local.d.ts +6 -10
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwks/remote.d.ts +13 -24
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/compact/sign.d.ts +5 -10
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/compact/verify.d.ts +9 -18
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/flattened/sign.d.ts +7 -16
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/flattened/verify.d.ts +9 -18
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/general/sign.d.ts +11 -21
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/general/verify.d.ts +9 -18
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/decrypt.d.ts +10 -20
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/encrypt.d.ts +6 -13
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/sign.d.ts +5 -6
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/unsecured.d.ts +9 -14
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/verify.d.ts +9 -19
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/export.d.ts +4 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/generate_key_pair.d.ts +6 -8
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/generate_secret.d.ts +4 -11
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/import.d.ts +10 -17
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/types.d.ts +44 -84
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/base64url.d.ts +2 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/decode_jwt.d.ts +3 -10
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/decode_protected_header.d.ts +4 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/errors.d.ts +26 -53
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/index.js +70 -32
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +7 -8
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +42 -48
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +14 -14
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +53 -64
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/general/decrypt.js +38 -49
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/general/encrypt.js +121 -169
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwk/embedded.js +30 -32
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwk/thumbprint.js +54 -70
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/local.js +47 -64
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/remote.js +88 -136
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/compact/sign.js +21 -21
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/compact/verify.js +7 -8
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/flattened/sign.js +29 -31
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/flattened/verify.js +21 -24
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/general/sign.js +61 -72
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/general/verify.js +45 -69
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/decrypt.js +13 -20
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/encrypt.js +57 -70
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/sign.js +17 -16
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/unsecured.js +32 -40
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/verify.js +12 -14
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/key/export.js +32 -37
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/key/generate_key_pair.js +40 -48
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/key/generate_secret.js +35 -40
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/key/import.js +52 -56
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/asn1.js +130 -169
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/base64.js +18 -20
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/buffer_utils.js +34 -38
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/content_encryption.js +79 -115
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/crypto_key.js +24 -25
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/deflate.js +45 -47
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/helpers.js +40 -37
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/invalid_key_input.js +10 -24
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/is_key_like.js +17 -15
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +106 -93
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +207 -230
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +104 -138
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwk_metadata.js +17 -18
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwk_to_key.js +9 -16
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jws_algorithms.js +62 -61
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jws_sign.js +50 -75
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jws_verify.js +80 -125
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +123 -209
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key.js +84 -136
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key_algorithm.js +13 -8
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key_descriptor.js +8 -6
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key_management.js +200 -231
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key_options.js +7 -5
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/options.js +55 -68
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/signing.js +18 -22
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/type_checks.js +26 -29
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/util/base64url.js +26 -35
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -31
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/util/decode_protected_header.js +18 -23
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/util/errors.js +94 -84
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/package.json +17 -81
- package/node_modules/@posthog/core/dist/cookie.js +17 -13
- package/node_modules/@posthog/core/dist/error-tracking/chunk-ids.js +15 -11
- package/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.js +12 -8
- package/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.js +12 -8
- package/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.js +12 -9
- package/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs +0 -1
- package/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.js +12 -8
- package/node_modules/@posthog/core/dist/error-tracking/coercers/index.js +51 -63
- package/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.js +12 -8
- package/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.js +12 -8
- package/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.js +12 -8
- package/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.js +15 -11
- package/node_modules/@posthog/core/dist/error-tracking/coercers/utils.js +16 -12
- package/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.js +12 -8
- package/node_modules/@posthog/core/dist/error-tracking/exception-steps.js +18 -14
- package/node_modules/@posthog/core/dist/error-tracking/exception-steps.mjs +2 -2
- package/node_modules/@posthog/core/dist/error-tracking/index.js +41 -49
- package/node_modules/@posthog/core/dist/error-tracking/parsers/base.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/error-tracking/parsers/base.js +13 -9
- package/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs +1 -1
- package/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.js +12 -8
- package/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.js +12 -8
- package/node_modules/@posthog/core/dist/error-tracking/parsers/index.js +17 -13
- package/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs +4 -4
- package/node_modules/@posthog/core/dist/error-tracking/parsers/node.js +12 -8
- package/node_modules/@posthog/core/dist/error-tracking/parsers/opera.js +14 -10
- package/node_modules/@posthog/core/dist/error-tracking/parsers/safari.js +12 -8
- package/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.js +12 -8
- package/node_modules/@posthog/core/dist/error-tracking/release.js +15 -11
- package/node_modules/@posthog/core/dist/error-tracking/types.js +15 -11
- package/node_modules/@posthog/core/dist/error-tracking/utils.js +15 -11
- package/node_modules/@posthog/core/dist/eventemitter.js +15 -11
- package/node_modules/@posthog/core/dist/featureFlagLocalEvaluation.js +18 -14
- package/node_modules/@posthog/core/dist/featureFlagLocalEvaluation.mjs +1 -1
- package/node_modules/@posthog/core/dist/featureFlagUtils.js +30 -25
- package/node_modules/@posthog/core/dist/featureFlagUtils.mjs +2 -2
- package/node_modules/@posthog/core/dist/gzip.js +16 -12
- package/node_modules/@posthog/core/dist/index.js +302 -310
- package/node_modules/@posthog/core/dist/index.mjs +12 -12
- package/node_modules/@posthog/core/dist/logs/index.js +13 -9
- package/node_modules/@posthog/core/dist/logs/index.mjs +1 -1
- package/node_modules/@posthog/core/dist/logs/logs-utils.js +16 -12
- package/node_modules/@posthog/core/dist/logs/types.js +2 -2
- package/node_modules/@posthog/core/dist/logs/types.mjs +1 -0
- package/node_modules/@posthog/core/dist/metrics/config.js +15 -11
- package/node_modules/@posthog/core/dist/metrics/index.js +15 -11
- package/node_modules/@posthog/core/dist/metrics/index.mjs +2 -2
- package/node_modules/@posthog/core/dist/metrics/metrics-utils.js +14 -10
- package/node_modules/@posthog/core/dist/metrics/types.js +2 -2
- package/node_modules/@posthog/core/dist/metrics/types.mjs +1 -0
- package/node_modules/@posthog/core/dist/posthog-core-stateless.js +16 -12
- package/node_modules/@posthog/core/dist/posthog-core-stateless.mjs +1 -1
- package/node_modules/@posthog/core/dist/posthog-core.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/posthog-core.js +12 -8
- package/node_modules/@posthog/core/dist/surveys/activation.js +14 -10
- package/node_modules/@posthog/core/dist/surveys/events.js +14 -10
- package/node_modules/@posthog/core/dist/surveys/index.js +30 -26
- package/node_modules/@posthog/core/dist/surveys/index.mjs +6 -7
- package/node_modules/@posthog/core/dist/surveys/keys.js +16 -12
- package/node_modules/@posthog/core/dist/surveys/property-matching.js +19 -14
- package/node_modules/@posthog/core/dist/surveys/translations.js +16 -12
- package/node_modules/@posthog/core/dist/surveys/validation.js +13 -9
- package/node_modules/@posthog/core/dist/testing/PostHogCoreTestClient.d.ts +3 -3
- package/node_modules/@posthog/core/dist/testing/PostHogCoreTestClient.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/testing/PostHogCoreTestClient.js +15 -11
- package/node_modules/@posthog/core/dist/testing/PostHogCoreTestClient.mjs +3 -3
- package/node_modules/@posthog/core/dist/testing/index.js +21 -21
- package/node_modules/@posthog/core/dist/testing/test-utils.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/testing/test-utils.js +19 -18
- package/node_modules/@posthog/core/dist/testing/test-utils.mjs +7 -10
- package/node_modules/@posthog/core/dist/tracing-headers.js +12 -8
- package/node_modules/@posthog/core/dist/types.js +31 -26
- package/node_modules/@posthog/core/dist/types.mjs +1 -1
- package/node_modules/@posthog/core/dist/utils/bot-detection.js +16 -12
- package/node_modules/@posthog/core/dist/utils/browser-utils.js +12 -8
- package/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.js +14 -10
- package/node_modules/@posthog/core/dist/utils/index.js +181 -194
- package/node_modules/@posthog/core/dist/utils/index.mjs +3 -3
- package/node_modules/@posthog/core/dist/utils/json-utils.js +24 -19
- package/node_modules/@posthog/core/dist/utils/logger.js +17 -12
- package/node_modules/@posthog/core/dist/utils/number-utils.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/utils/number-utils.js +14 -10
- package/node_modules/@posthog/core/dist/utils/number-utils.mjs +1 -1
- package/node_modules/@posthog/core/dist/utils/otlp-any-value.js +15 -11
- package/node_modules/@posthog/core/dist/utils/otlp-any-value.mjs +1 -1
- package/node_modules/@posthog/core/dist/utils/otlp-resource.js +17 -13
- package/node_modules/@posthog/core/dist/utils/promise-queue.js +12 -8
- package/node_modules/@posthog/core/dist/utils/string-utils.js +21 -16
- package/node_modules/@posthog/core/dist/utils/type-utils.js +31 -27
- package/node_modules/@posthog/core/dist/utils/type-utils.mjs +2 -2
- package/node_modules/@posthog/core/dist/utils/user-agent-utils.js +16 -12
- package/node_modules/@posthog/core/dist/vendor/uuidv7.js +22 -17
- package/node_modules/@posthog/core/dist/vendor/uuidv7.mjs +1 -1
- package/node_modules/@posthog/core/package.json +8 -8
- package/node_modules/@posthog/core/src/error-tracking/coercers/promise-rejection-event.spec.ts +4 -4
- package/node_modules/@posthog/core/src/error-tracking/error-properties-builder.parse.spec.ts +1 -1
- package/node_modules/@posthog/core/src/error-tracking/parsers/base.spec.ts +21 -2
- package/node_modules/@posthog/core/src/error-tracking/parsers/base.ts +6 -2
- package/node_modules/@posthog/core/src/featureFlagUtils.ts +4 -4
- package/node_modules/@posthog/core/src/logs/index.spec.ts +89 -89
- package/node_modules/@posthog/core/src/metrics/index.spec.ts +24 -24
- package/node_modules/@posthog/core/src/posthog-core.ts +0 -1
- package/node_modules/@posthog/core/src/surveys/activation.spec.ts +1 -1
- package/node_modules/@posthog/core/src/surveys/events.spec.ts +1 -1
- package/node_modules/@posthog/core/src/surveys/keys.spec.ts +1 -1
- package/node_modules/@posthog/core/src/surveys/translations.spec.ts +8 -8
- package/node_modules/@posthog/core/src/testing/PostHogCoreTestClient.ts +6 -6
- package/node_modules/@posthog/core/src/testing/test-utils.ts +7 -12
- package/node_modules/@posthog/core/src/utils/bucketed-rate-limiter.spec.ts +13 -13
- package/node_modules/@posthog/core/src/utils/json-utils.spec.ts +5 -5
- package/node_modules/@posthog/core/src/utils/number-utils.spec.ts +20 -0
- package/node_modules/@posthog/core/src/utils/number-utils.ts +3 -1
- package/node_modules/@posthog/core/src/utils/otlp-any-value.spec.ts +3 -3
- package/node_modules/@posthog/core/src/utils/promise-queue.spec.ts +3 -3
- package/node_modules/@posthog/types/dist/capture-log.js +2 -2
- package/node_modules/@posthog/types/dist/capture-log.mjs +1 -0
- package/node_modules/@posthog/types/dist/capture-metric.js +15 -11
- package/node_modules/@posthog/types/dist/capture.js +2 -2
- package/node_modules/@posthog/types/dist/capture.mjs +1 -0
- package/node_modules/@posthog/types/dist/common.js +2 -2
- package/node_modules/@posthog/types/dist/common.mjs +1 -0
- package/node_modules/@posthog/types/dist/feature-flags.js +2 -2
- package/node_modules/@posthog/types/dist/feature-flags.mjs +1 -0
- package/node_modules/@posthog/types/dist/index.js +12 -8
- package/node_modules/@posthog/types/dist/index.mjs +1 -2
- package/node_modules/@posthog/types/dist/posthog-config.d.ts +8 -0
- package/node_modules/@posthog/types/dist/posthog-config.d.ts.map +1 -1
- package/node_modules/@posthog/types/dist/posthog-config.js +2 -2
- package/node_modules/@posthog/types/dist/posthog-config.mjs +1 -0
- package/node_modules/@posthog/types/dist/posthog.d.ts +2 -2
- package/node_modules/@posthog/types/dist/posthog.d.ts.map +1 -1
- package/node_modules/@posthog/types/dist/posthog.js +2 -2
- package/node_modules/@posthog/types/dist/posthog.mjs +1 -0
- package/node_modules/@posthog/types/dist/request.js +2 -2
- package/node_modules/@posthog/types/dist/request.mjs +1 -0
- package/node_modules/@posthog/types/dist/segment.js +2 -2
- package/node_modules/@posthog/types/dist/segment.mjs +1 -0
- package/node_modules/@posthog/types/dist/session-recording.js +2 -2
- package/node_modules/@posthog/types/dist/session-recording.mjs +1 -0
- package/node_modules/@posthog/types/dist/survey.js +2 -2
- package/node_modules/@posthog/types/dist/survey.mjs +1 -0
- package/node_modules/@posthog/types/dist/toolbar.js +2 -2
- package/node_modules/@posthog/types/dist/toolbar.mjs +1 -0
- package/node_modules/@posthog/types/dist/tree-shakeable.js +2 -2
- package/node_modules/@posthog/types/dist/tree-shakeable.mjs +1 -0
- package/node_modules/@posthog/types/package.json +4 -6
- package/node_modules/@posthog/types/src/posthog-config.ts +9 -0
- package/node_modules/@posthog/types/src/posthog.ts +2 -2
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-ZZCZZHOD.js → chunk-Z3IKCP3N.js} +93 -93
- package/node_modules/@zuplo/runtime/out/esm/chunk-Z3IKCP3N.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +59 -9
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/hono/dist/cjs/client/client.js +4 -4
- package/node_modules/hono/dist/cjs/hono-base.js +7 -6
- package/node_modules/hono/dist/cjs/jsx/base.js +18 -1
- package/node_modules/hono/dist/cjs/jsx/components.js +25 -26
- package/node_modules/hono/dist/cjs/jsx/context.js +5 -5
- package/node_modules/hono/dist/cjs/jsx/dom/server.js +5 -1
- package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +2 -2
- package/node_modules/hono/dist/cjs/jsx/streaming.js +4 -5
- package/node_modules/hono/dist/client/client.js +4 -4
- package/node_modules/hono/dist/hono-base.js +7 -6
- package/node_modules/hono/dist/jsx/base.js +15 -1
- package/node_modules/hono/dist/jsx/components.js +26 -27
- package/node_modules/hono/dist/jsx/context.js +6 -6
- package/node_modules/hono/dist/jsx/dom/server.js +5 -1
- package/node_modules/hono/dist/jsx/intrinsic-element/components.js +3 -3
- package/node_modules/hono/dist/jsx/streaming.js +5 -6
- package/node_modules/hono/dist/types/context.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/base.d.ts +3 -0
- package/node_modules/hono/package.json +2 -2
- package/package.json +11 -11
- package/node_modules/@zuplo/runtime/out/esm/chunk-ZZCZZHOD.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-ZZCZZHOD.js.LEGAL.txt → chunk-Z3IKCP3N.js.LEGAL.txt} +0 -0
|
@@ -92,7 +92,7 @@ export type JWKParameters = {
|
|
|
92
92
|
kid?: string
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
/** Convenience interface for
|
|
95
|
+
/** Convenience interface for public OKP JSON Web Keys. */
|
|
96
96
|
export interface JWK_OKP_Public extends JWKParameters {
|
|
97
97
|
/** OKP JWK "crv" (The Subtype of Key Pair) Parameter */
|
|
98
98
|
crv: string
|
|
@@ -100,13 +100,13 @@ export interface JWK_OKP_Public extends JWKParameters {
|
|
|
100
100
|
x: string
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
/** Convenience interface for
|
|
103
|
+
/** Convenience interface for private OKP JSON Web Keys. */
|
|
104
104
|
export interface JWK_OKP_Private extends JWK_OKP_Public {
|
|
105
105
|
/** OKP JWK "d" (The Private Key) Parameter */
|
|
106
106
|
d: string
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
/** Convenience interface for
|
|
109
|
+
/** Convenience interface for public AKP JSON Web Keys. */
|
|
110
110
|
export interface JWK_AKP_Public extends JWKParameters {
|
|
111
111
|
/** JWK "alg" (Algorithm) Parameter */
|
|
112
112
|
alg: string
|
|
@@ -114,13 +114,13 @@ export interface JWK_AKP_Public extends JWKParameters {
|
|
|
114
114
|
pub: string
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
/** Convenience interface for
|
|
117
|
+
/** Convenience interface for private AKP JSON Web Keys. */
|
|
118
118
|
export interface JWK_AKP_Private extends JWK_AKP_Public {
|
|
119
119
|
/** AKP JWK "priv" (The Private Key) Parameter */
|
|
120
120
|
priv: string
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
/** Convenience interface for
|
|
123
|
+
/** Convenience interface for public EC JSON Web Keys. */
|
|
124
124
|
export interface JWK_EC_Public extends JWKParameters {
|
|
125
125
|
/** EC JWK "crv" (Curve) Parameter */
|
|
126
126
|
crv: string
|
|
@@ -130,13 +130,13 @@ export interface JWK_EC_Public extends JWKParameters {
|
|
|
130
130
|
y: string
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
/** Convenience interface for
|
|
133
|
+
/** Convenience interface for private EC JSON Web Keys. */
|
|
134
134
|
export interface JWK_EC_Private extends JWK_EC_Public {
|
|
135
135
|
/** EC JWK "d" (ECC Private Key) Parameter */
|
|
136
136
|
d: string
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
/** Convenience interface for
|
|
139
|
+
/** Convenience interface for public RSA JSON Web Keys. */
|
|
140
140
|
export interface JWK_RSA_Public extends JWKParameters {
|
|
141
141
|
/** RSA JWK "e" (Exponent) Parameter */
|
|
142
142
|
e: string
|
|
@@ -144,7 +144,7 @@ export interface JWK_RSA_Public extends JWKParameters {
|
|
|
144
144
|
n: string
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
/** Convenience interface for
|
|
147
|
+
/** Convenience interface for private RSA JSON Web Keys. */
|
|
148
148
|
export interface JWK_RSA_Private extends JWK_RSA_Public {
|
|
149
149
|
/** RSA JWK "d" (Private Exponent) Parameter */
|
|
150
150
|
d: string
|
|
@@ -160,7 +160,7 @@ export interface JWK_RSA_Private extends JWK_RSA_Public {
|
|
|
160
160
|
qi: string
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
/** Convenience interface for oct JSON Web Keys */
|
|
163
|
+
/** Convenience interface for "oct" JSON Web Keys. */
|
|
164
164
|
export interface JWK_oct extends JWKParameters {
|
|
165
165
|
/** Oct JWK "k" (Key Value) Parameter */
|
|
166
166
|
k: string
|
|
@@ -234,11 +234,7 @@ export type JWK = {
|
|
|
234
234
|
pub?: string
|
|
235
235
|
/** AKP JWK "priv" (Private key) Parameter */
|
|
236
236
|
priv?: string
|
|
237
|
-
/**
|
|
238
|
-
* RSA JWK "oth" (Other Primes Info) Parameter
|
|
239
|
-
*
|
|
240
|
-
* > Note: Multi-prime RSA keys are not supported; importing a JWK with this parameter present throws.
|
|
241
|
-
*/
|
|
237
|
+
/** RSA JWK "oth" (Other Primes Info) Parameter */
|
|
242
238
|
oth?: Array<{
|
|
243
239
|
/** The Factor CRT Exponent */
|
|
244
240
|
d?: string
|
|
@@ -249,11 +245,7 @@ export type JWK = {
|
|
|
249
245
|
}>
|
|
250
246
|
}
|
|
251
247
|
|
|
252
|
-
/**
|
|
253
|
-
* Discriminated union of the JSON Web Key shapes supported by this module. Unlike {@link JWK}, each
|
|
254
|
-
* member requires and fixes the "kty" (Key Type) Parameter to its key type so that the union can be
|
|
255
|
-
* narrowed on it.
|
|
256
|
-
*/
|
|
248
|
+
/** Discriminated union of the supported JSON Web Key shapes. */
|
|
257
249
|
// The "kty" is intersected into each arm one at a time rather than distributed over a parenthesised
|
|
258
250
|
// union - `X & (A | B)` means the same thing, but typedoc renders it without the parentheses, which
|
|
259
251
|
// reads as though the second arm carried no "kty" at all.
|
|
@@ -271,28 +263,18 @@ export type AnyJWK =
|
|
|
271
263
|
/** Key or secret input accepted by all sign, verify, encrypt, and decrypt operations. */
|
|
272
264
|
export type KeyInput = CryptoKey | KeyObject | JWK | Uint8Array
|
|
273
265
|
|
|
274
|
-
|
|
266
|
+
/** Dynamic key resolver for consuming operations. */
|
|
267
|
+
export interface GetKeyFunction<IProtectedHeader, IToken, KeyTypes extends KeyInput = KeyInput> {
|
|
275
268
|
/**
|
|
276
269
|
* Dynamic key resolution function. No token components have been verified at the time of this
|
|
277
270
|
* function call. If a suitable key for the token cannot be matched, throw an error instead.
|
|
278
271
|
*
|
|
279
|
-
* @param protectedHeader JWE or JWS Protected Header.
|
|
280
272
|
* @param token The consumed JWE or JWS token.
|
|
281
273
|
*/
|
|
282
|
-
(protectedHeader: IProtectedHeader, token: IToken): Promise<
|
|
274
|
+
(protectedHeader: IProtectedHeader, token: IToken): Promise<KeyTypes> | KeyTypes
|
|
283
275
|
}
|
|
284
276
|
|
|
285
|
-
/**
|
|
286
|
-
export interface GetKeyFunction<
|
|
287
|
-
IProtectedHeader,
|
|
288
|
-
IToken,
|
|
289
|
-
KeyTypes extends KeyInput = KeyInput,
|
|
290
|
-
> extends GenericGetKeyFunction<IProtectedHeader, IToken, KeyTypes> {}
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* Flattened JWS definition for verify function inputs, allows payload as {@link !Uint8Array} for
|
|
294
|
-
* detached signature validation.
|
|
295
|
-
*/
|
|
277
|
+
/** Flattened JWS verification input. */
|
|
296
278
|
export interface FlattenedJWSInput {
|
|
297
279
|
/**
|
|
298
280
|
* The "header" member MUST be present and contain the value JWS Unprotected Header when the JWS
|
|
@@ -319,10 +301,7 @@ export interface FlattenedJWSInput {
|
|
|
319
301
|
signature: string
|
|
320
302
|
}
|
|
321
303
|
|
|
322
|
-
/**
|
|
323
|
-
* General JWS definition for verify function inputs, allows payload as {@link !Uint8Array} for
|
|
324
|
-
* detached signature validation.
|
|
325
|
-
*/
|
|
304
|
+
/** General JWS verification input. */
|
|
326
305
|
export interface GeneralJWSInput {
|
|
327
306
|
/**
|
|
328
307
|
* The "payload" member MUST be present and contain the value BASE64URL(JWS Payload). When when
|
|
@@ -338,25 +317,19 @@ export interface GeneralJWSInput {
|
|
|
338
317
|
signatures: Omit<FlattenedJWSInput, 'payload'>[]
|
|
339
318
|
}
|
|
340
319
|
|
|
341
|
-
/**
|
|
342
|
-
* Flattened JWS JSON Serialization Syntax token. Payload is returned as an empty string when JWS
|
|
343
|
-
* Unencoded Payload ({@link https://www.rfc-editor.org/info/rfc7797/ RFC7797}) is used.
|
|
344
|
-
*/
|
|
320
|
+
/** Flattened JWS JSON Serialization token. */
|
|
345
321
|
export interface FlattenedJWS extends Partial<FlattenedJWSInput> {
|
|
346
322
|
payload: string
|
|
347
323
|
signature: string
|
|
348
324
|
}
|
|
349
325
|
|
|
350
|
-
/**
|
|
351
|
-
* General JWS JSON Serialization Syntax token. Payload is returned as an empty string when JWS
|
|
352
|
-
* Unencoded Payload ({@link https://www.rfc-editor.org/info/rfc7797/ RFC7797}) is used.
|
|
353
|
-
*/
|
|
326
|
+
/** General JWS JSON Serialization token. */
|
|
354
327
|
export interface GeneralJWS {
|
|
355
328
|
payload: string
|
|
356
329
|
signatures: Omit<FlattenedJWSInput, 'payload'>[]
|
|
357
330
|
}
|
|
358
331
|
|
|
359
|
-
/** Header Parameters common to JWE and JWS */
|
|
332
|
+
/** Header Parameters common to JWE and JWS. */
|
|
360
333
|
export interface JoseHeaderParameters {
|
|
361
334
|
/** "kid" (Key ID) Header Parameter */
|
|
362
335
|
kid?: string
|
|
@@ -386,7 +359,7 @@ export interface JoseHeaderParameters {
|
|
|
386
359
|
cty?: string
|
|
387
360
|
}
|
|
388
361
|
|
|
389
|
-
/** Recognized JWS Header Parameters
|
|
362
|
+
/** Recognized JWS Header Parameters; additional members may also be present. */
|
|
390
363
|
export interface JWSHeaderParameters extends JoseHeaderParameters {
|
|
391
364
|
/** JWS "alg" (Algorithm) Header Parameter */
|
|
392
365
|
alg?: JWSAlgorithm
|
|
@@ -441,7 +414,7 @@ export interface JWEKeyManagementHeaderParameters {
|
|
|
441
414
|
epk?: CryptoKey | KeyObject
|
|
442
415
|
}
|
|
443
416
|
|
|
444
|
-
/** Flattened JWE JSON Serialization
|
|
417
|
+
/** Flattened JWE JSON Serialization token. */
|
|
445
418
|
export interface FlattenedJWE {
|
|
446
419
|
/**
|
|
447
420
|
* The "aad" member MUST be present and contain the value BASE64URL(JWE AAD)) when the JWE AAD
|
|
@@ -495,12 +468,12 @@ export interface FlattenedJWE {
|
|
|
495
468
|
unprotected?: JWEHeaderParameters
|
|
496
469
|
}
|
|
497
470
|
|
|
498
|
-
/** General JWE JSON Serialization
|
|
471
|
+
/** General JWE JSON Serialization token. */
|
|
499
472
|
export interface GeneralJWE extends Omit<FlattenedJWE, 'encrypted_key' | 'header'> {
|
|
500
473
|
recipients: Pick<FlattenedJWE, 'encrypted_key' | 'header'>[]
|
|
501
474
|
}
|
|
502
475
|
|
|
503
|
-
/** Recognized JWE Header Parameters
|
|
476
|
+
/** Recognized JWE Header Parameters; additional members may also be present. */
|
|
504
477
|
export interface JWEHeaderParameters extends JoseHeaderParameters {
|
|
505
478
|
/** JWE "alg" (Algorithm) Header Parameter */
|
|
506
479
|
alg?: JWEKeyManagementAlgorithm
|
|
@@ -522,7 +495,7 @@ export interface JWEHeaderParameters extends JoseHeaderParameters {
|
|
|
522
495
|
[propName: string]: unknown
|
|
523
496
|
}
|
|
524
497
|
|
|
525
|
-
/** Shared
|
|
498
|
+
/** Shared "crit" option for signing, verification, encryption, and decryption. */
|
|
526
499
|
export interface CritOption {
|
|
527
500
|
/**
|
|
528
501
|
* An object with keys representing recognized "crit" (Critical) Header Parameter names. The value
|
|
@@ -559,7 +532,8 @@ export interface DecryptOptions extends CritOption {
|
|
|
559
532
|
/**
|
|
560
533
|
* (PBES2 Key Management Algorithms only) Maximum allowed "p2c" (PBES2 Count) Header Parameter
|
|
561
534
|
* value. The PBKDF2 iteration count defines the algorithm's computational expense. By default
|
|
562
|
-
* this value is set to 10000.
|
|
535
|
+
* this value is set to 10000. The value must be a positive safe integer or `Infinity`. Set it to
|
|
536
|
+
* `Infinity` to disable the limit.
|
|
563
537
|
*/
|
|
564
538
|
maxPBES2Count?: number
|
|
565
539
|
|
|
@@ -644,7 +618,7 @@ export interface VerifyOptions extends CritOption {
|
|
|
644
618
|
/** JWS Signing options. */
|
|
645
619
|
export interface SignOptions extends CritOption {}
|
|
646
620
|
|
|
647
|
-
/** Recognized JWT Claims Set members
|
|
621
|
+
/** Recognized JWT Claims Set members; additional members may also be present. */
|
|
648
622
|
export interface JWTPayload {
|
|
649
623
|
/** JWT Issuer */
|
|
650
624
|
iss?: string
|
|
@@ -671,7 +645,7 @@ export interface JWTPayload {
|
|
|
671
645
|
[propName: string]: unknown
|
|
672
646
|
}
|
|
673
647
|
|
|
674
|
-
/** Flattened JWE JSON Serialization
|
|
648
|
+
/** Flattened JWE JSON Serialization decryption result. */
|
|
675
649
|
export interface FlattenedDecryptResult {
|
|
676
650
|
/** JWE AAD. */
|
|
677
651
|
additionalAuthenticatedData?: Uint8Array
|
|
@@ -689,10 +663,10 @@ export interface FlattenedDecryptResult {
|
|
|
689
663
|
unprotectedHeader?: JWEHeaderParameters
|
|
690
664
|
}
|
|
691
665
|
|
|
692
|
-
/** General JWE JSON Serialization
|
|
666
|
+
/** General JWE JSON Serialization decryption result. */
|
|
693
667
|
export interface GeneralDecryptResult extends FlattenedDecryptResult {}
|
|
694
668
|
|
|
695
|
-
/** Compact JWE decryption result */
|
|
669
|
+
/** Compact JWE decryption result. */
|
|
696
670
|
export interface CompactDecryptResult {
|
|
697
671
|
/** Plaintext. */
|
|
698
672
|
plaintext: Uint8Array
|
|
@@ -701,7 +675,7 @@ export interface CompactDecryptResult {
|
|
|
701
675
|
protectedHeader: CompactJWEHeaderParameters
|
|
702
676
|
}
|
|
703
677
|
|
|
704
|
-
/** Flattened JWS JSON Serialization
|
|
678
|
+
/** Flattened JWS JSON Serialization verification result. */
|
|
705
679
|
export interface FlattenedVerifyResult {
|
|
706
680
|
/** JWS Payload. */
|
|
707
681
|
payload: Uint8Array
|
|
@@ -713,10 +687,10 @@ export interface FlattenedVerifyResult {
|
|
|
713
687
|
unprotectedHeader?: JWSHeaderParameters
|
|
714
688
|
}
|
|
715
689
|
|
|
716
|
-
/** General JWS JSON Serialization
|
|
690
|
+
/** General JWS JSON Serialization verification result. */
|
|
717
691
|
export interface GeneralVerifyResult extends FlattenedVerifyResult {}
|
|
718
692
|
|
|
719
|
-
/** Compact JWS verification result */
|
|
693
|
+
/** Compact JWS verification result. */
|
|
720
694
|
export interface CompactVerifyResult {
|
|
721
695
|
/** JWS Payload. */
|
|
722
696
|
payload: Uint8Array
|
|
@@ -725,7 +699,7 @@ export interface CompactVerifyResult {
|
|
|
725
699
|
protectedHeader: CompactJWSHeaderParameters
|
|
726
700
|
}
|
|
727
701
|
|
|
728
|
-
/** Signed JSON Web Token (JWT) verification result */
|
|
702
|
+
/** Signed JSON Web Token (JWT) verification result. */
|
|
729
703
|
export interface JWTVerifyResult<PayloadType = JWTPayload> {
|
|
730
704
|
/** JWT Claims Set. */
|
|
731
705
|
payload: PayloadType &
|
|
@@ -736,7 +710,7 @@ export interface JWTVerifyResult<PayloadType = JWTPayload> {
|
|
|
736
710
|
protectedHeader: JWTHeaderParameters
|
|
737
711
|
}
|
|
738
712
|
|
|
739
|
-
/** Encrypted JSON Web Token (JWT) decryption result */
|
|
713
|
+
/** Encrypted JSON Web Token (JWT) decryption result. */
|
|
740
714
|
export interface JWTDecryptResult<PayloadType = JWTPayload> {
|
|
741
715
|
/** JWT Claims Set. */
|
|
742
716
|
payload: PayloadType &
|
|
@@ -747,60 +721,46 @@ export interface JWTDecryptResult<PayloadType = JWTPayload> {
|
|
|
747
721
|
protectedHeader: CompactJWEHeaderParameters
|
|
748
722
|
}
|
|
749
723
|
|
|
750
|
-
/**
|
|
724
|
+
/** Key resolver result metadata. */
|
|
751
725
|
export interface ResolvedKey<KeyType extends CryptoKey | Uint8Array = CryptoKey | Uint8Array> {
|
|
752
726
|
/** Key resolved from the key resolver function. */
|
|
753
727
|
key: KeyType
|
|
754
728
|
}
|
|
755
729
|
|
|
756
|
-
/** Recognized Compact JWS Header Parameters
|
|
730
|
+
/** Recognized Compact JWS Header Parameters; additional members may also be present. */
|
|
757
731
|
export interface CompactJWSHeaderParameters extends JWSHeaderParameters {
|
|
758
732
|
alg: JWSAlgorithm
|
|
759
733
|
}
|
|
760
734
|
|
|
761
|
-
/** Recognized
|
|
735
|
+
/** Recognized signed JWT Header Parameters; additional members may also be present. */
|
|
762
736
|
export interface JWTHeaderParameters extends CompactJWSHeaderParameters {
|
|
763
737
|
b64?: boolean
|
|
764
738
|
}
|
|
765
739
|
|
|
766
|
-
/** Recognized Compact JWE Header Parameters
|
|
740
|
+
/** Recognized Compact JWE Header Parameters; additional members may also be present. */
|
|
767
741
|
export interface CompactJWEHeaderParameters extends JWEHeaderParameters {
|
|
768
742
|
alg: JWEKeyManagementAlgorithm
|
|
769
743
|
enc: JWEContentEncryptionAlgorithm
|
|
770
744
|
}
|
|
771
745
|
|
|
772
|
-
/** JSON Web Key Set */
|
|
746
|
+
/** JSON Web Key Set. */
|
|
773
747
|
export interface JSONWebKeySet {
|
|
774
748
|
keys: JWK[]
|
|
775
749
|
}
|
|
776
750
|
|
|
777
|
-
/**
|
|
778
|
-
* {@link !KeyObject} is a representation of a key/secret available in the Node.js runtime. You may
|
|
779
|
-
* use the Node.js runtime APIs {@link !createPublicKey}, {@link !createPrivateKey}, and
|
|
780
|
-
* {@link !createSecretKey} to obtain a {@link !KeyObject} from your existing key material.
|
|
781
|
-
*/
|
|
751
|
+
/** Node.js {@link !KeyObject} representation accepted as key input. */
|
|
782
752
|
export interface KeyObject {
|
|
783
753
|
type: string
|
|
784
754
|
}
|
|
785
755
|
|
|
786
|
-
/**
|
|
787
|
-
* {@link !CryptoKey} is a representation of a key/secret available in all supported runtimes. In
|
|
788
|
-
* addition to the {@link key/import Key Import Functions} you may use the
|
|
789
|
-
* {@link !SubtleCrypto.importKey} API to obtain a {@link !CryptoKey} from your existing key
|
|
790
|
-
* material.
|
|
791
|
-
*/
|
|
756
|
+
/** Web Cryptography API {@link !CryptoKey} representation accepted as key input. */
|
|
792
757
|
export type CryptoKey = typeof globalThis extends {
|
|
793
758
|
crypto: { subtle: { generateKey(...args: any[]): Promise<infer R> } }
|
|
794
759
|
}
|
|
795
760
|
? Extract<R, { type: string }>
|
|
796
761
|
: CryptoKeyStructuralFallback
|
|
797
762
|
|
|
798
|
-
/**
|
|
799
|
-
* Used as {@link CryptoKey} when the host runtime's `crypto` global is not exposed on `typeof
|
|
800
|
-
* globalThis`, including when it is absent from ambient types or declared with `const` or `let`. It
|
|
801
|
-
* remains structurally compatible with host {@link !CryptoKey} declarations so values flow freely to
|
|
802
|
-
* and from {@link !SubtleCrypto} APIs.
|
|
803
|
-
*/
|
|
763
|
+
/** Structural fallback used when a host {@link !CryptoKey} type cannot be inferred. */
|
|
804
764
|
export interface CryptoKeyStructuralFallback {
|
|
805
765
|
readonly algorithm: { name: string }
|
|
806
766
|
readonly extractable: boolean
|
|
@@ -808,7 +768,7 @@ export interface CryptoKeyStructuralFallback {
|
|
|
808
768
|
readonly usages: string[]
|
|
809
769
|
}
|
|
810
770
|
|
|
811
|
-
/**
|
|
771
|
+
/** Shared fluent API for JWT-producing classes. */
|
|
812
772
|
export interface ProduceJWT {
|
|
813
773
|
/**
|
|
814
774
|
* Set the "iss" (Issuer) Claim.
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/base64url.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Decodes a
|
|
2
|
+
* Decodes a base64url-encoded input.
|
|
3
3
|
*
|
|
4
4
|
* @param input Base64URL encoded input, as a string or its UTF-8 bytes.
|
|
5
5
|
* @returns The decoded bytes.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export declare function decode(input: Uint8Array | string): Uint8Array;
|
|
10
10
|
/**
|
|
11
|
-
* Encodes
|
|
11
|
+
* Encodes input using unpadded base64url.
|
|
12
12
|
*
|
|
13
13
|
* @param input Input to encode, as a string or as bytes. Strings are encoded as UTF-8 first.
|
|
14
14
|
* @returns The Base64URL encoded, unpadded, representation of the input.
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/decode_jwt.d.ts
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
* values. This does not validate the JWS Signature. For a proper Signed JWT Claims Set validation
|
|
5
|
-
* and JWS signature verification use `jose.jwtVerify()`. For an encrypted JWT Claims Set validation
|
|
6
|
-
* and JWE decryption use `jose.jwtDecrypt()`.
|
|
7
|
-
*
|
|
8
|
-
* @param jwt JWT token in compact JWS serialization.
|
|
9
|
-
*/
|
|
10
|
-
export declare function decodeJwt<PayloadType = types.JWTPayload>(jwt: string): PayloadType & types.JWTPayload & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never);
|
|
1
|
+
import type * as t from '../types.d.ts';
|
|
2
|
+
/** Decodes the Claims Set of a JWS-formatted JSON Web Token without verifying the signature. */
|
|
3
|
+
export declare function decodeJwt<PayloadType = t.JWTPayload>(jwt: string): PayloadType & t.JWTPayload & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
/** JWE and JWS Header Parameters */
|
|
3
|
-
export type ProtectedHeaderParameters =
|
|
1
|
+
import type * as t from '../types.d.ts';
|
|
2
|
+
/** JWE and JWS Header Parameters. */
|
|
3
|
+
export type ProtectedHeaderParameters = t.JWSHeaderParameters & t.JWEHeaderParameters;
|
|
4
4
|
/**
|
|
5
|
-
* Decodes the Protected Header of a JWE
|
|
5
|
+
* Decodes the Protected Header of a JWE, JWS, or JWT in any JOSE serialization.
|
|
6
6
|
*
|
|
7
7
|
* @param token JWE/JWS/JWT token in any JOSE serialization.
|
|
8
8
|
*/
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/errors.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
/**
|
|
3
|
-
* Every stable error code used by this module. {@link AnyJOSEError} pairs each subclass with the one
|
|
4
|
-
* it is thrown with, making that union a discriminated one.
|
|
5
|
-
*/
|
|
1
|
+
import type * as t from '../types.d.ts';
|
|
2
|
+
/** Stable error codes used by this module. */
|
|
6
3
|
export type JOSEErrorCode = 'ERR_JOSE_ALG_NOT_ALLOWED' | 'ERR_JOSE_GENERIC' | 'ERR_JOSE_NOT_SUPPORTED' | 'ERR_JWE_DECRYPTION_FAILED' | 'ERR_JWE_INVALID' | 'ERR_JWK_INVALID' | 'ERR_JWKS_INVALID' | 'ERR_JWKS_MULTIPLE_MATCHING_KEYS' | 'ERR_JWKS_NO_MATCHING_KEY' | 'ERR_JWKS_TIMEOUT' | 'ERR_JWS_INVALID' | 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED' | 'ERR_JWT_CLAIM_VALIDATION_FAILED' | 'ERR_JWT_EXPIRED' | 'ERR_JWT_INVALID';
|
|
7
4
|
/**
|
|
8
|
-
*
|
|
5
|
+
* Shared properties of JWT Claims Set validation errors.
|
|
9
6
|
*
|
|
10
7
|
* > Note: {@link JWTExpired} does not extend {@link JWTClaimValidationFailed}, so `instanceof
|
|
11
8
|
* > JWTClaimValidationFailed` is `false` for an expired JWT. Use {@link JWTClaimValidationError} or
|
|
@@ -17,11 +14,11 @@ export interface JWTClaimValidationFailure {
|
|
|
17
14
|
/** Reason code for the validation failure. */
|
|
18
15
|
reason: JWTClaimValidationReason;
|
|
19
16
|
/** The parsed JWT Claims Set (aka payload). */
|
|
20
|
-
payload:
|
|
17
|
+
payload: t.JWTPayload;
|
|
21
18
|
}
|
|
22
19
|
/** Reason codes produced by JWT Claims Set validation. */
|
|
23
20
|
export type JWTClaimValidationReason = 'check_failed' | 'invalid' | 'mismatch' | 'missing' | 'unspecified' | (string & {});
|
|
24
|
-
/**
|
|
21
|
+
/** Base class for JOSE errors. */
|
|
25
22
|
export declare class JOSEError extends Error {
|
|
26
23
|
/** A unique error code for the particular error subclass. */
|
|
27
24
|
static code: JOSEErrorCode | (string & {});
|
|
@@ -34,10 +31,9 @@ export declare class JOSEError extends Error {
|
|
|
34
31
|
cause?: unknown;
|
|
35
32
|
});
|
|
36
33
|
}
|
|
37
|
-
/**
|
|
34
|
+
/** Thrown when JWT Claims Set validation fails. */
|
|
38
35
|
export declare class JWTClaimValidationFailed extends JOSEError implements JWTClaimValidationFailure {
|
|
39
36
|
static code: JOSEErrorCode | (string & {});
|
|
40
|
-
/** A unique error code for {@link JWTClaimValidationFailed}. */
|
|
41
37
|
code: JOSEErrorCode | (string & {});
|
|
42
38
|
/** The {@link JWTClaimValidationFailure} carried by every instance of this error. */
|
|
43
39
|
cause: JWTClaimValidationFailure;
|
|
@@ -51,13 +47,12 @@ export declare class JWTClaimValidationFailed extends JOSEError implements JWTCl
|
|
|
51
47
|
* has however been verified. Claims Set verification happens after the JWS Signature or JWE
|
|
52
48
|
* Decryption processes.
|
|
53
49
|
*/
|
|
54
|
-
payload:
|
|
55
|
-
constructor(message: string, payload:
|
|
50
|
+
payload: t.JWTPayload;
|
|
51
|
+
constructor(message: string, payload: t.JWTPayload, claim?: string, reason?: JWTClaimValidationReason);
|
|
56
52
|
}
|
|
57
|
-
/**
|
|
53
|
+
/** Thrown when a JWT is expired. */
|
|
58
54
|
export declare class JWTExpired extends JOSEError implements JWTClaimValidationFailure {
|
|
59
55
|
static code: JOSEErrorCode | (string & {});
|
|
60
|
-
/** A unique error code for {@link JWTExpired}. */
|
|
61
56
|
code: JOSEErrorCode | (string & {});
|
|
62
57
|
/** The {@link JWTClaimValidationFailure} carried by every instance of this error. */
|
|
63
58
|
cause: JWTClaimValidationFailure;
|
|
@@ -71,73 +66,61 @@ export declare class JWTExpired extends JOSEError implements JWTClaimValidationF
|
|
|
71
66
|
* has however been verified. Claims Set verification happens after the JWS Signature or JWE
|
|
72
67
|
* Decryption processes.
|
|
73
68
|
*/
|
|
74
|
-
payload:
|
|
75
|
-
constructor(message: string, payload:
|
|
69
|
+
payload: t.JWTPayload;
|
|
70
|
+
constructor(message: string, payload: t.JWTPayload, claim?: string, reason?: JWTClaimValidationReason);
|
|
76
71
|
}
|
|
77
|
-
/**
|
|
72
|
+
/** Thrown when an algorithm is disallowed by configuration. */
|
|
78
73
|
export declare class JOSEAlgNotAllowed extends JOSEError {
|
|
79
74
|
static code: JOSEErrorCode | (string & {});
|
|
80
|
-
/** A unique error code for {@link JOSEAlgNotAllowed}. */
|
|
81
75
|
code: JOSEErrorCode | (string & {});
|
|
82
76
|
}
|
|
83
|
-
/**
|
|
84
|
-
* An error subclass thrown when a particular feature or algorithm is not supported by this
|
|
85
|
-
* implementation or JOSE in general.
|
|
86
|
-
*/
|
|
77
|
+
/** Thrown when a feature or algorithm is unsupported. */
|
|
87
78
|
export declare class JOSENotSupported extends JOSEError {
|
|
88
79
|
static code: JOSEErrorCode | (string & {});
|
|
89
|
-
/** A unique error code for {@link JOSENotSupported}. */
|
|
90
80
|
code: JOSEErrorCode | (string & {});
|
|
91
81
|
}
|
|
92
|
-
/**
|
|
82
|
+
/** Thrown when JWE ciphertext decryption fails. */
|
|
93
83
|
export declare class JWEDecryptionFailed extends JOSEError {
|
|
94
84
|
static code: JOSEErrorCode | (string & {});
|
|
95
|
-
/** A unique error code for {@link JWEDecryptionFailed}. */
|
|
96
85
|
code: JOSEErrorCode | (string & {});
|
|
97
86
|
constructor(message?: string, options?: {
|
|
98
87
|
cause?: unknown;
|
|
99
88
|
});
|
|
100
89
|
}
|
|
101
|
-
/**
|
|
90
|
+
/** Thrown when a JWE is invalid. */
|
|
102
91
|
export declare class JWEInvalid extends JOSEError {
|
|
103
92
|
static code: JOSEErrorCode | (string & {});
|
|
104
|
-
/** A unique error code for {@link JWEInvalid}. */
|
|
105
93
|
code: JOSEErrorCode | (string & {});
|
|
106
94
|
}
|
|
107
|
-
/**
|
|
95
|
+
/** Thrown when a JWS is invalid. */
|
|
108
96
|
export declare class JWSInvalid extends JOSEError {
|
|
109
97
|
static code: JOSEErrorCode | (string & {});
|
|
110
|
-
/** A unique error code for {@link JWSInvalid}. */
|
|
111
98
|
code: JOSEErrorCode | (string & {});
|
|
112
99
|
}
|
|
113
|
-
/**
|
|
100
|
+
/** Thrown when a JWT is invalid. */
|
|
114
101
|
export declare class JWTInvalid extends JOSEError {
|
|
115
102
|
static code: JOSEErrorCode | (string & {});
|
|
116
|
-
/** A unique error code for {@link JWTInvalid}. */
|
|
117
103
|
code: JOSEErrorCode | (string & {});
|
|
118
104
|
}
|
|
119
|
-
/**
|
|
105
|
+
/** Thrown when a JWK is invalid. */
|
|
120
106
|
export declare class JWKInvalid extends JOSEError {
|
|
121
107
|
static code: JOSEErrorCode | (string & {});
|
|
122
|
-
/** A unique error code for {@link JWKInvalid}. */
|
|
123
108
|
code: JOSEErrorCode | (string & {});
|
|
124
109
|
}
|
|
125
|
-
/**
|
|
110
|
+
/** Thrown when a JWKS is invalid. */
|
|
126
111
|
export declare class JWKSInvalid extends JOSEError {
|
|
127
112
|
static code: JOSEErrorCode | (string & {});
|
|
128
|
-
/** A unique error code for {@link JWKSInvalid}. */
|
|
129
113
|
code: JOSEErrorCode | (string & {});
|
|
130
114
|
}
|
|
131
|
-
/**
|
|
115
|
+
/** Thrown when no keys match in a JWKS. */
|
|
132
116
|
export declare class JWKSNoMatchingKey extends JOSEError {
|
|
133
117
|
static code: JOSEErrorCode | (string & {});
|
|
134
|
-
/** A unique error code for {@link JWKSNoMatchingKey}. */
|
|
135
118
|
code: JOSEErrorCode | (string & {});
|
|
136
119
|
constructor(message?: string, options?: {
|
|
137
120
|
cause?: unknown;
|
|
138
121
|
});
|
|
139
122
|
}
|
|
140
|
-
/**
|
|
123
|
+
/** Thrown when multiple keys match in a JWKS. */
|
|
141
124
|
export declare class JWKSMultipleMatchingKeys extends JOSEError {
|
|
142
125
|
/**
|
|
143
126
|
* Iterates the public keys that matched the JWS JOSE Header, so that verification can be
|
|
@@ -146,43 +129,33 @@ export declare class JWKSMultipleMatchingKeys extends JOSEError {
|
|
|
146
129
|
* module always iterate the matched keys; an instance constructed by other code iterates
|
|
147
130
|
* nothing.
|
|
148
131
|
*/
|
|
149
|
-
[Symbol.asyncIterator]: () => AsyncIterableIterator<
|
|
132
|
+
[Symbol.asyncIterator]: () => AsyncIterableIterator<t.CryptoKey>;
|
|
150
133
|
static code: JOSEErrorCode | (string & {});
|
|
151
|
-
/** A unique error code for {@link JWKSMultipleMatchingKeys}. */
|
|
152
134
|
code: JOSEErrorCode | (string & {});
|
|
153
135
|
constructor(message?: string, options?: {
|
|
154
136
|
cause?: unknown;
|
|
155
137
|
});
|
|
156
138
|
}
|
|
157
|
-
/**
|
|
139
|
+
/** Thrown when fetching a remote JWKS times out. */
|
|
158
140
|
export declare class JWKSTimeout extends JOSEError {
|
|
159
141
|
static code: JOSEErrorCode | (string & {});
|
|
160
|
-
/** A unique error code for {@link JWKSTimeout}. */
|
|
161
142
|
code: JOSEErrorCode | (string & {});
|
|
162
143
|
constructor(message?: string, options?: {
|
|
163
144
|
cause?: unknown;
|
|
164
145
|
});
|
|
165
146
|
}
|
|
166
|
-
/**
|
|
147
|
+
/** Thrown when JWS signature verification fails. */
|
|
167
148
|
export declare class JWSSignatureVerificationFailed extends JOSEError {
|
|
168
149
|
static code: JOSEErrorCode | (string & {});
|
|
169
|
-
/** A unique error code for {@link JWSSignatureVerificationFailed}. */
|
|
170
150
|
code: JOSEErrorCode | (string & {});
|
|
171
151
|
constructor(message?: string, options?: {
|
|
172
152
|
cause?: unknown;
|
|
173
153
|
});
|
|
174
154
|
}
|
|
175
|
-
/**
|
|
176
|
-
* Union of the errors thrown during JWT Claims Set validation. {@link JWTExpired} does not extend
|
|
177
|
-
* {@link JWTClaimValidationFailed}, so a single `instanceof` check cannot cover both. Use this type
|
|
178
|
-
* — together with the {@link JOSEError.code code} discriminant — when handling either.
|
|
179
|
-
*/
|
|
155
|
+
/** Errors thrown during JWT Claims Set validation. */
|
|
180
156
|
export type JWTClaimValidationError = JWTClaimValidationFailed | JWTExpired;
|
|
181
157
|
/**
|
|
182
|
-
*
|
|
183
|
-
* {@link JOSEErrorCode} it is thrown with. That pairing lives here rather than on the classes, so
|
|
184
|
-
* that `code` stays assignable, writable, and overridable on them exactly as before, while a value
|
|
185
|
-
* of this type can still be switched over as a discriminated union.
|
|
158
|
+
* Discriminated union of the specific {@link JOSEError} subclasses.
|
|
186
159
|
*
|
|
187
160
|
* > Note: The base {@link JOSEError} is deliberately not a member — its `code` spans every value, which
|
|
188
161
|
* > would defeat the discriminant. A small number of JSON Web Key Set HTTP failures are thrown as the
|