@zuplo/cli 7.6.8 → 7.6.10
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/@inquirer/checkbox/package.json +3 -3
- package/node_modules/@inquirer/confirm/dist/index.js +1 -1
- package/node_modules/@inquirer/confirm/package.json +3 -3
- package/node_modules/@inquirer/core/dist/lib/create-prompt.js +66 -47
- package/node_modules/@inquirer/core/package.json +2 -2
- package/node_modules/@inquirer/editor/package.json +3 -3
- package/node_modules/@inquirer/expand/package.json +3 -3
- package/node_modules/@inquirer/input/package.json +3 -3
- package/node_modules/@inquirer/number/package.json +3 -3
- package/node_modules/@inquirer/password/package.json +3 -3
- package/node_modules/@inquirer/rawlist/package.json +3 -3
- package/node_modules/@inquirer/search/package.json +3 -3
- package/node_modules/@inquirer/select/package.json +3 -3
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/index.d.ts +1 -2
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +12 -25
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +18 -32
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +12 -25
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +24 -50
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +15 -30
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +29 -52
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwk/embedded.d.ts +5 -8
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwk/thumbprint.d.ts +7 -9
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwks/local.d.ts +10 -13
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwks/remote.d.ts +29 -41
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/compact/sign.d.ts +8 -13
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/compact/verify.d.ts +14 -26
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/flattened/sign.d.ts +10 -19
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/flattened/verify.d.ts +14 -26
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/general/sign.d.ts +19 -33
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/general/verify.d.ts +17 -32
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/decrypt.d.ts +20 -27
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/encrypt.d.ts +30 -35
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/sign.d.ts +8 -13
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/unsecured.d.ts +10 -19
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/verify.d.ts +19 -22
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/export.d.ts +10 -10
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/generate_key_pair.d.ts +15 -22
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/generate_secret.d.ts +12 -19
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/import.d.ts +25 -31
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/types.d.ts +184 -319
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/base64url.d.ts +7 -7
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/decode_jwt.d.ts +5 -7
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/decode_protected_header.d.ts +6 -5
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/errors.d.ts +50 -88
- 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 +6 -8
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +25 -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 +34 -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 +100 -172
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwk/embedded.js +29 -32
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwk/thumbprint.js +51 -70
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/local.js +53 -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 +19 -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 +22 -31
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/flattened/verify.js +11 -24
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/general/sign.js +55 -73
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/general/verify.js +43 -69
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/decrypt.js +12 -20
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/encrypt.js +43 -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 +31 -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 -41
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/key/generate_key_pair.js +32 -49
- 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 +48 -56
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/asn1.js +128 -169
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/buffer_utils.js +72 -41
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/content_encryption.js +75 -119
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/deflate.js +35 -47
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +102 -93
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +178 -234
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +71 -138
- 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 +43 -82
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jws_verify.js +78 -131
- 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 +147 -139
- 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 +169 -235
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/validate.js +122 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/base64url.js +14 -37
- 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/index.d.ts +1 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +12 -25
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +18 -32
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +12 -25
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +24 -50
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +15 -30
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +29 -52
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwk/embedded.d.ts +5 -8
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwk/thumbprint.d.ts +7 -9
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwks/local.d.ts +10 -13
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwks/remote.d.ts +29 -41
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/compact/sign.d.ts +8 -13
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/compact/verify.d.ts +14 -26
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/flattened/sign.d.ts +10 -19
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/flattened/verify.d.ts +14 -26
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/general/sign.d.ts +19 -33
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/general/verify.d.ts +17 -32
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/decrypt.d.ts +20 -27
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/encrypt.d.ts +30 -35
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/sign.d.ts +8 -13
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/unsecured.d.ts +10 -19
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/verify.d.ts +19 -22
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/export.d.ts +10 -10
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/generate_key_pair.d.ts +15 -22
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/generate_secret.d.ts +12 -19
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/import.d.ts +25 -31
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/types.d.ts +184 -319
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/base64url.d.ts +7 -7
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/decode_jwt.d.ts +5 -7
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/decode_protected_header.d.ts +6 -5
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/errors.d.ts +50 -88
- 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 +6 -8
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +25 -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 +34 -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 +100 -172
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwk/embedded.js +29 -32
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwk/thumbprint.js +51 -70
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/local.js +53 -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 +19 -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 +22 -31
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/flattened/verify.js +11 -24
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/general/sign.js +55 -73
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/general/verify.js +43 -69
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/decrypt.js +12 -20
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/encrypt.js +43 -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 +31 -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 -41
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/key/generate_key_pair.js +32 -49
- 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 +48 -56
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/asn1.js +128 -169
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/buffer_utils.js +72 -41
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/content_encryption.js +75 -119
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/deflate.js +35 -47
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +102 -93
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +178 -234
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +71 -138
- 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 +43 -82
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jws_verify.js +78 -131
- 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 +147 -139
- 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 +169 -235
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/validate.js +122 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/util/base64url.js +14 -37
- 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 +14 -0
- 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.d.ts +1 -0
- package/node_modules/@posthog/core/dist/types.d.ts.map +1 -1
- 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.d.ts +1 -0
- package/node_modules/@posthog/core/dist/utils/index.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/utils/index.js +205 -192
- package/node_modules/@posthog/core/dist/utils/index.mjs +4 -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/utils/webview-app-utils.d.ts +12 -0
- package/node_modules/@posthog/core/dist/utils/webview-app-utils.d.ts.map +1 -0
- package/node_modules/@posthog/core/dist/utils/webview-app-utils.js +132 -0
- package/node_modules/@posthog/core/dist/utils/webview-app-utils.mjs +94 -0
- 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/featureFlagLocalEvaluation.ts +1 -1
- 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 +14 -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/types.ts +1 -0
- package/node_modules/@posthog/core/src/utils/bucketed-rate-limiter.spec.ts +13 -13
- package/node_modules/@posthog/core/src/utils/index.ts +1 -0
- 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 +4 -4
- package/node_modules/@posthog/core/src/utils/promise-queue.spec.ts +3 -3
- package/node_modules/@posthog/core/src/utils/type-utils.ts +4 -4
- package/node_modules/@posthog/core/src/utils/webview-app-utils.spec.ts +118 -0
- package/node_modules/@posthog/core/src/utils/webview-app-utils.ts +49 -0
- 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.d.ts +1 -1
- package/node_modules/@posthog/types/dist/feature-flags.d.ts.map +1 -1
- 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 +15 -1
- 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/feature-flags.ts +1 -1
- package/node_modules/@posthog/types/src/posthog-config.ts +16 -1
- package/node_modules/@posthog/types/src/posthog.ts +2 -2
- package/node_modules/@posthog/types/src/tree-shakeable.ts +1 -1
- 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-R4PTES5B.js} +104 -104
- package/node_modules/@zuplo/runtime/out/esm/chunk-R4PTES5B.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/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/base64.js +0 -22
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -28
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/helpers.js +0 -42
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -26
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -17
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwk_metadata.js +0 -20
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -17
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key_options.js +0 -6
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/options.js +0 -74
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/signing.js +0 -26
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/type_checks.js +0 -33
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/base64.js +0 -22
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -28
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/helpers.js +0 -42
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -26
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -17
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwk_metadata.js +0 -20
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -17
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key_options.js +0 -6
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/options.js +0 -74
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/signing.js +0 -26
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/type_checks.js +0 -33
- 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-R4PTES5B.js.LEGAL.txt} +0 -0
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/decode_jwt.js
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { decode as b64u } from
|
|
2
|
-
import { strictDecoder } from
|
|
3
|
-
import { isObject } from
|
|
4
|
-
import { JWTInvalid } from
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
throw new JWTInvalid('Invalid JWT Claims Set');
|
|
31
|
-
return result;
|
|
1
|
+
import { decode as b64u } from "./base64url.js";
|
|
2
|
+
import { strictDecoder } from "../lib/buffer_utils.js";
|
|
3
|
+
import { isObject } from "../lib/validate.js";
|
|
4
|
+
import { JWTInvalid } from "./errors.js";
|
|
5
|
+
function decodeJwt(jwt) {
|
|
6
|
+
if (typeof jwt != "string")
|
|
7
|
+
throw new JWTInvalid("JWTs must use Compact JWS serialization, JWT must be a string");
|
|
8
|
+
const { 1: payload, length } = jwt.split(".");
|
|
9
|
+
if (length === 5)
|
|
10
|
+
throw new JWTInvalid("Only JWTs using Compact JWS serialization can be decoded");
|
|
11
|
+
if (length !== 3)
|
|
12
|
+
throw new JWTInvalid("Invalid JWT");
|
|
13
|
+
if (!payload)
|
|
14
|
+
throw new JWTInvalid("JWTs must contain a payload");
|
|
15
|
+
let decoded;
|
|
16
|
+
try {
|
|
17
|
+
decoded = b64u(payload);
|
|
18
|
+
} catch {
|
|
19
|
+
throw new JWTInvalid("Failed to base64url decode the payload");
|
|
20
|
+
}
|
|
21
|
+
let result;
|
|
22
|
+
try {
|
|
23
|
+
result = JSON.parse(strictDecoder.decode(decoded));
|
|
24
|
+
} catch {
|
|
25
|
+
throw new JWTInvalid("Failed to parse the decoded payload as JSON");
|
|
26
|
+
}
|
|
27
|
+
if (!isObject(result))
|
|
28
|
+
throw new JWTInvalid("Invalid JWT Claims Set");
|
|
29
|
+
return result;
|
|
32
30
|
}
|
|
31
|
+
export {
|
|
32
|
+
decodeJwt
|
|
33
|
+
};
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
import { parseJoseHeader } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
throw new TypeError('Token does not contain a Protected Header');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
const invalid = 'Invalid Token or Protected Header formatting';
|
|
20
|
-
if (typeof protectedB64u !== 'string' || !protectedB64u) {
|
|
21
|
-
throw new TypeError(invalid);
|
|
22
|
-
}
|
|
23
|
-
return parseJoseHeader(protectedB64u, TypeError, invalid);
|
|
1
|
+
import { parseJoseHeader } from "../lib/validate.js";
|
|
2
|
+
function decodeProtectedHeader(token) {
|
|
3
|
+
let protectedB64u;
|
|
4
|
+
if (typeof token == "string") {
|
|
5
|
+
const parts = token.split(".");
|
|
6
|
+
(parts.length === 3 || parts.length === 5) && ([protectedB64u] = parts);
|
|
7
|
+
} else if (typeof token == "object" && token)
|
|
8
|
+
if ("protected" in token)
|
|
9
|
+
protectedB64u = token.protected;
|
|
10
|
+
else
|
|
11
|
+
throw new TypeError("Token does not contain a Protected Header");
|
|
12
|
+
const invalid = "Invalid Token or Protected Header formatting";
|
|
13
|
+
if (typeof protectedB64u != "string" || !protectedB64u)
|
|
14
|
+
throw new TypeError(invalid);
|
|
15
|
+
return parseJoseHeader(protectedB64u, TypeError, invalid);
|
|
24
16
|
}
|
|
17
|
+
export {
|
|
18
|
+
decodeProtectedHeader
|
|
19
|
+
};
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/errors.js
CHANGED
|
@@ -1,99 +1,109 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Error.captureStackTrace?.(this, this.constructor);
|
|
8
|
-
}
|
|
1
|
+
class JOSEError extends Error {
|
|
2
|
+
static code = "ERR_JOSE_GENERIC";
|
|
3
|
+
code = "ERR_JOSE_GENERIC";
|
|
4
|
+
constructor(message, options) {
|
|
5
|
+
super(message, options), this.name = this.constructor.name, Error.captureStackTrace?.(this, this.constructor);
|
|
6
|
+
}
|
|
9
7
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
this.reason = reason;
|
|
20
|
-
this.payload = payload;
|
|
21
|
-
}
|
|
8
|
+
class JWTClaimValidationFailed extends JOSEError {
|
|
9
|
+
static code = "ERR_JWT_CLAIM_VALIDATION_FAILED";
|
|
10
|
+
code = "ERR_JWT_CLAIM_VALIDATION_FAILED";
|
|
11
|
+
claim;
|
|
12
|
+
reason;
|
|
13
|
+
payload;
|
|
14
|
+
constructor(message, payload, claim = "unspecified", reason = "unspecified") {
|
|
15
|
+
super(message, { cause: { claim, reason, payload } }), this.claim = claim, this.reason = reason, this.payload = payload;
|
|
16
|
+
}
|
|
22
17
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
this.reason = reason;
|
|
33
|
-
this.payload = payload;
|
|
34
|
-
}
|
|
18
|
+
class JWTExpired extends JOSEError {
|
|
19
|
+
static code = "ERR_JWT_EXPIRED";
|
|
20
|
+
code = "ERR_JWT_EXPIRED";
|
|
21
|
+
claim;
|
|
22
|
+
reason;
|
|
23
|
+
payload;
|
|
24
|
+
constructor(message, payload, claim = "unspecified", reason = "unspecified") {
|
|
25
|
+
super(message, { cause: { claim, reason, payload } }), this.claim = claim, this.reason = reason, this.payload = payload;
|
|
26
|
+
}
|
|
35
27
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
class JOSEAlgNotAllowed extends JOSEError {
|
|
29
|
+
static code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
30
|
+
code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
39
31
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
class JOSENotSupported extends JOSEError {
|
|
33
|
+
static code = "ERR_JOSE_NOT_SUPPORTED";
|
|
34
|
+
code = "ERR_JOSE_NOT_SUPPORTED";
|
|
43
35
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
36
|
+
class JWEDecryptionFailed extends JOSEError {
|
|
37
|
+
static code = "ERR_JWE_DECRYPTION_FAILED";
|
|
38
|
+
code = "ERR_JWE_DECRYPTION_FAILED";
|
|
39
|
+
constructor(message = "decryption operation failed", options) {
|
|
40
|
+
super(message, options);
|
|
41
|
+
}
|
|
50
42
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
class JWEInvalid extends JOSEError {
|
|
44
|
+
static code = "ERR_JWE_INVALID";
|
|
45
|
+
code = "ERR_JWE_INVALID";
|
|
54
46
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
class JWSInvalid extends JOSEError {
|
|
48
|
+
static code = "ERR_JWS_INVALID";
|
|
49
|
+
code = "ERR_JWS_INVALID";
|
|
58
50
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
class JWTInvalid extends JOSEError {
|
|
52
|
+
static code = "ERR_JWT_INVALID";
|
|
53
|
+
code = "ERR_JWT_INVALID";
|
|
62
54
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
55
|
+
class JWKInvalid extends JOSEError {
|
|
56
|
+
static code = "ERR_JWK_INVALID";
|
|
57
|
+
code = "ERR_JWK_INVALID";
|
|
66
58
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
59
|
+
class JWKSInvalid extends JOSEError {
|
|
60
|
+
static code = "ERR_JWKS_INVALID";
|
|
61
|
+
code = "ERR_JWKS_INVALID";
|
|
70
62
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
63
|
+
class JWKSNoMatchingKey extends JOSEError {
|
|
64
|
+
static code = "ERR_JWKS_NO_MATCHING_KEY";
|
|
65
|
+
code = "ERR_JWKS_NO_MATCHING_KEY";
|
|
66
|
+
constructor(message = "no applicable key found in the JSON Web Key Set", options) {
|
|
67
|
+
super(message, options);
|
|
68
|
+
}
|
|
77
69
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
70
|
+
class JWKSMultipleMatchingKeys extends JOSEError {
|
|
71
|
+
[Symbol.asyncIterator] = async function* () {
|
|
72
|
+
};
|
|
73
|
+
static code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
|
|
74
|
+
code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
|
|
75
|
+
constructor(message = "multiple matching keys found in the JSON Web Key Set", options) {
|
|
76
|
+
super(message, options);
|
|
77
|
+
}
|
|
85
78
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
79
|
+
class JWKSTimeout extends JOSEError {
|
|
80
|
+
static code = "ERR_JWKS_TIMEOUT";
|
|
81
|
+
code = "ERR_JWKS_TIMEOUT";
|
|
82
|
+
constructor(message = "request timed out", options) {
|
|
83
|
+
super(message, options);
|
|
84
|
+
}
|
|
92
85
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
86
|
+
class JWSSignatureVerificationFailed extends JOSEError {
|
|
87
|
+
static code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
|
88
|
+
code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
|
89
|
+
constructor(message = "signature verification failed", options) {
|
|
90
|
+
super(message, options);
|
|
91
|
+
}
|
|
99
92
|
}
|
|
93
|
+
export {
|
|
94
|
+
JOSEAlgNotAllowed,
|
|
95
|
+
JOSEError,
|
|
96
|
+
JOSENotSupported,
|
|
97
|
+
JWEDecryptionFailed,
|
|
98
|
+
JWEInvalid,
|
|
99
|
+
JWKInvalid,
|
|
100
|
+
JWKSInvalid,
|
|
101
|
+
JWKSMultipleMatchingKeys,
|
|
102
|
+
JWKSNoMatchingKey,
|
|
103
|
+
JWKSTimeout,
|
|
104
|
+
JWSInvalid,
|
|
105
|
+
JWSSignatureVerificationFailed,
|
|
106
|
+
JWTClaimValidationFailed,
|
|
107
|
+
JWTExpired,
|
|
108
|
+
JWTInvalid
|
|
109
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jose",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.12",
|
|
4
4
|
"description": "JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"akp",
|
|
@@ -67,13 +67,9 @@
|
|
|
67
67
|
"types": "./dist/types/index.d.ts",
|
|
68
68
|
"default": "./dist/webapi/index.js"
|
|
69
69
|
},
|
|
70
|
-
"./jwk
|
|
71
|
-
"types": "./dist/types/jwk
|
|
72
|
-
"default": "./dist/webapi/jwk
|
|
73
|
-
},
|
|
74
|
-
"./jwk/thumbprint": {
|
|
75
|
-
"types": "./dist/types/jwk/thumbprint.d.ts",
|
|
76
|
-
"default": "./dist/webapi/jwk/thumbprint.js"
|
|
70
|
+
"./jwk/*": {
|
|
71
|
+
"types": "./dist/types/jwk/*.d.ts",
|
|
72
|
+
"default": "./dist/webapi/jwk/*.js"
|
|
77
73
|
},
|
|
78
74
|
"./key/import": {
|
|
79
75
|
"types": "./dist/types/key/import.d.ts",
|
|
@@ -91,89 +87,29 @@
|
|
|
91
87
|
"types": "./dist/types/key/generate_secret.d.ts",
|
|
92
88
|
"default": "./dist/webapi/key/generate_secret.js"
|
|
93
89
|
},
|
|
94
|
-
"./jwks
|
|
95
|
-
"types": "./dist/types/jwks
|
|
96
|
-
"default": "./dist/webapi/jwks
|
|
97
|
-
},
|
|
98
|
-
"./jwks/local": {
|
|
99
|
-
"types": "./dist/types/jwks/local.d.ts",
|
|
100
|
-
"default": "./dist/webapi/jwks/local.js"
|
|
101
|
-
},
|
|
102
|
-
"./jwt/sign": {
|
|
103
|
-
"types": "./dist/types/jwt/sign.d.ts",
|
|
104
|
-
"default": "./dist/webapi/jwt/sign.js"
|
|
105
|
-
},
|
|
106
|
-
"./jwt/verify": {
|
|
107
|
-
"types": "./dist/types/jwt/verify.d.ts",
|
|
108
|
-
"default": "./dist/webapi/jwt/verify.js"
|
|
109
|
-
},
|
|
110
|
-
"./jwt/encrypt": {
|
|
111
|
-
"types": "./dist/types/jwt/encrypt.d.ts",
|
|
112
|
-
"default": "./dist/webapi/jwt/encrypt.js"
|
|
113
|
-
},
|
|
114
|
-
"./jwt/decrypt": {
|
|
115
|
-
"types": "./dist/types/jwt/decrypt.d.ts",
|
|
116
|
-
"default": "./dist/webapi/jwt/decrypt.js"
|
|
117
|
-
},
|
|
118
|
-
"./jwt/unsecured": {
|
|
119
|
-
"types": "./dist/types/jwt/unsecured.d.ts",
|
|
120
|
-
"default": "./dist/webapi/jwt/unsecured.js"
|
|
90
|
+
"./jwks/*": {
|
|
91
|
+
"types": "./dist/types/jwks/*.d.ts",
|
|
92
|
+
"default": "./dist/webapi/jwks/*.js"
|
|
121
93
|
},
|
|
122
94
|
"./jwt/decode": {
|
|
123
95
|
"types": "./dist/types/util/decode_jwt.d.ts",
|
|
124
96
|
"default": "./dist/webapi/util/decode_jwt.js"
|
|
125
97
|
},
|
|
98
|
+
"./jwt/*": {
|
|
99
|
+
"types": "./dist/types/jwt/*.d.ts",
|
|
100
|
+
"default": "./dist/webapi/jwt/*.js"
|
|
101
|
+
},
|
|
126
102
|
"./decode/protected_header": {
|
|
127
103
|
"types": "./dist/types/util/decode_protected_header.d.ts",
|
|
128
104
|
"default": "./dist/webapi/util/decode_protected_header.js"
|
|
129
105
|
},
|
|
130
|
-
"./jws
|
|
131
|
-
"types": "./dist/types/jws
|
|
132
|
-
"default": "./dist/webapi/jws
|
|
133
|
-
},
|
|
134
|
-
"./jws/compact/verify": {
|
|
135
|
-
"types": "./dist/types/jws/compact/verify.d.ts",
|
|
136
|
-
"default": "./dist/webapi/jws/compact/verify.js"
|
|
137
|
-
},
|
|
138
|
-
"./jws/flattened/sign": {
|
|
139
|
-
"types": "./dist/types/jws/flattened/sign.d.ts",
|
|
140
|
-
"default": "./dist/webapi/jws/flattened/sign.js"
|
|
141
|
-
},
|
|
142
|
-
"./jws/flattened/verify": {
|
|
143
|
-
"types": "./dist/types/jws/flattened/verify.d.ts",
|
|
144
|
-
"default": "./dist/webapi/jws/flattened/verify.js"
|
|
145
|
-
},
|
|
146
|
-
"./jws/general/sign": {
|
|
147
|
-
"types": "./dist/types/jws/general/sign.d.ts",
|
|
148
|
-
"default": "./dist/webapi/jws/general/sign.js"
|
|
149
|
-
},
|
|
150
|
-
"./jws/general/verify": {
|
|
151
|
-
"types": "./dist/types/jws/general/verify.d.ts",
|
|
152
|
-
"default": "./dist/webapi/jws/general/verify.js"
|
|
153
|
-
},
|
|
154
|
-
"./jwe/compact/encrypt": {
|
|
155
|
-
"types": "./dist/types/jwe/compact/encrypt.d.ts",
|
|
156
|
-
"default": "./dist/webapi/jwe/compact/encrypt.js"
|
|
157
|
-
},
|
|
158
|
-
"./jwe/compact/decrypt": {
|
|
159
|
-
"types": "./dist/types/jwe/compact/decrypt.d.ts",
|
|
160
|
-
"default": "./dist/webapi/jwe/compact/decrypt.js"
|
|
161
|
-
},
|
|
162
|
-
"./jwe/flattened/encrypt": {
|
|
163
|
-
"types": "./dist/types/jwe/flattened/encrypt.d.ts",
|
|
164
|
-
"default": "./dist/webapi/jwe/flattened/encrypt.js"
|
|
165
|
-
},
|
|
166
|
-
"./jwe/flattened/decrypt": {
|
|
167
|
-
"types": "./dist/types/jwe/flattened/decrypt.d.ts",
|
|
168
|
-
"default": "./dist/webapi/jwe/flattened/decrypt.js"
|
|
169
|
-
},
|
|
170
|
-
"./jwe/general/encrypt": {
|
|
171
|
-
"types": "./dist/types/jwe/general/encrypt.d.ts",
|
|
172
|
-
"default": "./dist/webapi/jwe/general/encrypt.js"
|
|
106
|
+
"./jws/*": {
|
|
107
|
+
"types": "./dist/types/jws/*.d.ts",
|
|
108
|
+
"default": "./dist/webapi/jws/*.js"
|
|
173
109
|
},
|
|
174
|
-
"./jwe
|
|
175
|
-
"types": "./dist/types/jwe
|
|
176
|
-
"default": "./dist/webapi/jwe
|
|
110
|
+
"./jwe/*": {
|
|
111
|
+
"types": "./dist/types/jwe/*.d.ts",
|
|
112
|
+
"default": "./dist/webapi/jwe/*.js"
|
|
177
113
|
},
|
|
178
114
|
"./errors": {
|
|
179
115
|
"types": "./dist/types/util/errors.d.ts",
|
|
@@ -48,8 +48,7 @@ import * as base64url from './util/base64url.js';
|
|
|
48
48
|
export { base64url };
|
|
49
49
|
export type { AnyJWK, CompactDecryptResult, CompactJWEHeaderParameters, CompactJWSHeaderParameters, CompactVerifyResult, CritOption, CryptoKey, DecryptOptions, EncryptOptions, FlattenedDecryptResult, FlattenedJWE, FlattenedJWS, FlattenedJWSInput, FlattenedVerifyResult, GeneralDecryptResult, GeneralJWE, GeneralJWS, GeneralJWSInput, GeneralVerifyResult, GetKeyFunction, JoseHeaderParameters, JSONWebKeySet, JWEContentEncryptionAlgorithm, JWEHeaderParameters, JWEKeyManagementAlgorithm, JWEKeyManagementHeaderParameters, JWK_AKP_Private, JWK_AKP_Public, JWK_EC_Private, JWK_EC_Public, JWK_oct, JWK_OKP_Private, JWK_OKP_Public, JWK_RSA_Private, JWK_RSA_Public, JWK, JWKKeyType, JWKParameters, JWSAlgorithm, JWSHeaderParameters, JWTClaimVerificationOptions, JWTDecryptResult, JWTHeaderParameters, JWTPayload, JWTVerifyResult, KeyInput, KeyObject, ProduceJWT, ResolvedKey, SignOptions, VerifyOptions, } from './types.d.ts';
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
52
|
-
* to `"WebCryptoAPI"`
|
|
51
|
+
* Identified the loaded runtime-specific build in prior releases; now always `"WebCryptoAPI"`.
|
|
53
52
|
*
|
|
54
53
|
* @deprecated Remove any runtime branching on this value; it is always `"WebCryptoAPI"`.
|
|
55
54
|
*/
|
package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts
CHANGED
|
@@ -1,37 +1,24 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
* verified at the time of this function call.
|
|
5
|
-
*/
|
|
6
|
-
export interface CompactDecryptGetKey<KeyType extends types.CryptoKey | Uint8Array = types.CryptoKey | Uint8Array> extends types.GetKeyFunction<types.CompactJWEHeaderParameters, types.FlattenedJWE, KeyType | types.KeyObject | types.JWK> {
|
|
1
|
+
import type * as t from '../../types.d.ts';
|
|
2
|
+
/** Resolves a key for Compact JWE decryption from unverified headers and token data. */
|
|
3
|
+
export interface CompactDecryptGetKey<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array> extends t.GetKeyFunction<t.CompactJWEHeaderParameters, t.FlattenedJWE, KeyType | t.KeyObject | t.JWK> {
|
|
7
4
|
}
|
|
8
5
|
/**
|
|
9
6
|
* Decrypts a Compact JWE.
|
|
10
7
|
*
|
|
11
|
-
* @param
|
|
12
|
-
* @param key Private Key or Secret to decrypt the JWE with. See
|
|
8
|
+
* @param key Private key or shared secret. See
|
|
13
9
|
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
14
|
-
* @param options JWE Decryption options.
|
|
15
10
|
*/
|
|
16
|
-
export declare function compactDecrypt(jwe: string | Uint8Array, key:
|
|
11
|
+
export declare function compactDecrypt(jwe: string | Uint8Array, key: t.KeyInput, options?: t.DecryptOptions): Promise<t.CompactDecryptResult>;
|
|
17
12
|
/**
|
|
18
|
-
* Decrypts a Compact JWE
|
|
19
|
-
* {@link types.ResolvedKey.key resolved key}.
|
|
13
|
+
* Decrypts a Compact JWE with a dynamically resolved key, included in the result.
|
|
20
14
|
*
|
|
21
|
-
* @param
|
|
22
|
-
* @param getKey Function resolving Private Key or Secret to decrypt the JWE with. See
|
|
23
|
-
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
24
|
-
* @param options JWE Decryption options.
|
|
15
|
+
* @param getKey Resolves a private key or shared secret from unverified token data.
|
|
25
16
|
*/
|
|
26
|
-
export declare function compactDecrypt<KeyType extends
|
|
17
|
+
export declare function compactDecrypt<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array>(jwe: string | Uint8Array, getKey: CompactDecryptGetKey<KeyType>, options?: t.DecryptOptions): Promise<t.CompactDecryptResult & t.ResolvedKey<KeyType>>;
|
|
27
18
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* function was used.
|
|
19
|
+
* Decrypts a Compact JWE with a key or key resolver. The result includes `key` only when a resolver
|
|
20
|
+
* is used.
|
|
31
21
|
*
|
|
32
|
-
* @param
|
|
33
|
-
* @param key Private Key or Secret, or a function resolving one, to decrypt the JWE with. See
|
|
34
|
-
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
35
|
-
* @param options JWE Decryption options.
|
|
22
|
+
* @param key Private key or shared secret, or a function resolving one.
|
|
36
23
|
*/
|
|
37
|
-
export declare function compactDecrypt(jwe: string | Uint8Array, key:
|
|
24
|
+
export declare function compactDecrypt(jwe: string | Uint8Array, key: t.KeyInput | CompactDecryptGetKey, options?: t.DecryptOptions): Promise<t.CompactDecryptResult & Partial<t.ResolvedKey>>;
|
package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts
CHANGED
|
@@ -1,54 +1,40 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
/**
|
|
1
|
+
import type * as t from '../../types.d.ts';
|
|
2
|
+
/** Builds and encrypts Compact JWE strings. */
|
|
3
3
|
export declare class CompactEncrypt {
|
|
4
4
|
#private;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Creates a Compact JWE encryptor.
|
|
7
7
|
*
|
|
8
8
|
* @param plaintext Binary representation of the plaintext to encrypt.
|
|
9
9
|
*/
|
|
10
10
|
constructor(plaintext: Uint8Array);
|
|
11
11
|
/**
|
|
12
|
-
* Sets a content encryption key
|
|
13
|
-
*
|
|
12
|
+
* Sets a content encryption key instead of generating a random one for the JWE "enc" algorithm.
|
|
13
|
+
* May only be called once.
|
|
14
14
|
*
|
|
15
|
-
* @deprecated
|
|
16
|
-
* validation purposes.
|
|
17
|
-
*
|
|
18
|
-
* @param cek JWE Content Encryption Key.
|
|
15
|
+
* @deprecated Use only for testing and vector validation.
|
|
19
16
|
*/
|
|
20
17
|
setContentEncryptionKey(cek: Uint8Array): this;
|
|
21
18
|
/**
|
|
22
|
-
* Sets the
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* @deprecated You should not use this method. It is only really intended for test and vector
|
|
26
|
-
* validation purposes.
|
|
19
|
+
* Sets the content encryption IV instead of generating a random one for the JWE "enc" algorithm.
|
|
20
|
+
* May only be called once.
|
|
27
21
|
*
|
|
28
|
-
* @
|
|
22
|
+
* @deprecated Use only for testing and vector validation.
|
|
29
23
|
*/
|
|
30
24
|
setInitializationVector(iv: Uint8Array): this;
|
|
25
|
+
/** Sets the JWE Protected Header. May only be called once. */
|
|
26
|
+
setProtectedHeader(protectedHeader: t.CompactJWEHeaderParameters): this;
|
|
31
27
|
/**
|
|
32
|
-
* Sets
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
setProtectedHeader(protectedHeader: types.CompactJWEHeaderParameters): this;
|
|
37
|
-
/**
|
|
38
|
-
* Sets the JWE Key Management parameters to be used when encrypting. Use this method instead of
|
|
39
|
-
* the header setters to configure algorithm inputs such as ECDH-ES "apu" (Agreement PartyUInfo)
|
|
40
|
-
* and "apv" (Agreement PartyVInfo), or PBES2 "p2c" (PBES2 Count). The parameters are added to the
|
|
41
|
-
* appropriate JOSE Header.
|
|
42
|
-
*
|
|
43
|
-
* @param parameters JWE Key Management parameters.
|
|
28
|
+
* Sets key management inputs such as ECDH-ES "apu"/"apv" or PBES2 "p2c". Use this method instead
|
|
29
|
+
* of header setters; the resulting parameters are added to the JOSE header. May only be called
|
|
30
|
+
* once.
|
|
44
31
|
*/
|
|
45
|
-
setKeyManagementParameters(parameters:
|
|
32
|
+
setKeyManagementParameters(parameters: t.JWEKeyManagementHeaderParameters): this;
|
|
46
33
|
/**
|
|
47
|
-
* Encrypts
|
|
34
|
+
* Encrypts the plaintext as a Compact JWE.
|
|
48
35
|
*
|
|
49
|
-
* @param key Public
|
|
36
|
+
* @param key Public key or shared secret. See
|
|
50
37
|
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
51
|
-
* @param options JWE Encryption options.
|
|
52
38
|
*/
|
|
53
|
-
encrypt(key:
|
|
39
|
+
encrypt(key: t.KeyInput, options?: t.EncryptOptions): Promise<string>;
|
|
54
40
|
}
|
|
@@ -1,37 +1,24 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
* verified at the time of this function call.
|
|
5
|
-
*/
|
|
6
|
-
export interface FlattenedDecryptGetKey<KeyType extends types.CryptoKey | Uint8Array = types.CryptoKey | Uint8Array> extends types.GetKeyFunction<types.JWEHeaderParameters | undefined, types.FlattenedJWE, KeyType | types.KeyObject | types.JWK> {
|
|
1
|
+
import type * as t from '../../types.d.ts';
|
|
2
|
+
/** Resolves a key for Flattened JWE decryption from unverified headers and token data. */
|
|
3
|
+
export interface FlattenedDecryptGetKey<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array> extends t.GetKeyFunction<t.JWEHeaderParameters | undefined, t.FlattenedJWE, KeyType | t.KeyObject | t.JWK> {
|
|
7
4
|
}
|
|
8
5
|
/**
|
|
9
6
|
* Decrypts a Flattened JWE.
|
|
10
7
|
*
|
|
11
|
-
* @param
|
|
12
|
-
* @param key Private Key or Secret to decrypt the JWE with. See
|
|
8
|
+
* @param key Private key or shared secret. See
|
|
13
9
|
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
14
|
-
* @param options JWE Decryption options.
|
|
15
10
|
*/
|
|
16
|
-
export declare function flattenedDecrypt(jwe:
|
|
11
|
+
export declare function flattenedDecrypt(jwe: t.FlattenedJWE, key: t.KeyInput, options?: t.DecryptOptions): Promise<t.FlattenedDecryptResult>;
|
|
17
12
|
/**
|
|
18
|
-
* Decrypts a Flattened JWE
|
|
19
|
-
* {@link types.ResolvedKey.key resolved key}.
|
|
13
|
+
* Decrypts a Flattened JWE with a dynamically resolved key, included in the result.
|
|
20
14
|
*
|
|
21
|
-
* @param
|
|
22
|
-
* @param getKey Function resolving Private Key or Secret to decrypt the JWE with. See
|
|
23
|
-
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
24
|
-
* @param options JWE Decryption options.
|
|
15
|
+
* @param getKey Resolves a private key or shared secret from unverified token data.
|
|
25
16
|
*/
|
|
26
|
-
export declare function flattenedDecrypt<KeyType extends
|
|
17
|
+
export declare function flattenedDecrypt<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array>(jwe: t.FlattenedJWE, getKey: FlattenedDecryptGetKey<KeyType>, options?: t.DecryptOptions): Promise<t.FlattenedDecryptResult & t.ResolvedKey<KeyType>>;
|
|
27
18
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* function was used.
|
|
19
|
+
* Decrypts a Flattened JWE with a key or key resolver. The result includes `key` only when a
|
|
20
|
+
* resolver is used.
|
|
31
21
|
*
|
|
32
|
-
* @param
|
|
33
|
-
* @param key Private Key or Secret, or a function resolving one, to decrypt the JWE with. See
|
|
34
|
-
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
35
|
-
* @param options JWE Decryption options.
|
|
22
|
+
* @param key Private key or shared secret, or a function resolving one.
|
|
36
23
|
*/
|
|
37
|
-
export declare function flattenedDecrypt(jwe:
|
|
24
|
+
export declare function flattenedDecrypt(jwe: t.FlattenedJWE, key: t.KeyInput | FlattenedDecryptGetKey, options?: t.DecryptOptions): Promise<t.FlattenedDecryptResult & Partial<t.ResolvedKey>>;
|