@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
|
@@ -1,37 +1,25 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
* verified at the time of this function call.
|
|
5
|
-
*/
|
|
6
|
-
export interface FlattenedVerifyGetKey<KeyType extends types.CryptoKey | Uint8Array = types.CryptoKey | Uint8Array> extends types.GetKeyFunction<types.JWSHeaderParameters, types.FlattenedJWSInput, KeyType | types.KeyObject | types.JWK> {
|
|
1
|
+
import type * as t from '../../types.d.ts';
|
|
2
|
+
/** Resolves a key for Flattened JWS verification from unverified headers and token data. */
|
|
3
|
+
export interface FlattenedVerifyGetKey<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array> extends t.GetKeyFunction<t.JWSHeaderParameters, t.FlattenedJWSInput, KeyType | t.KeyObject | t.JWK> {
|
|
7
4
|
}
|
|
8
5
|
/**
|
|
9
|
-
* Verifies
|
|
6
|
+
* Verifies a Flattened JWS signature and decodes its payload.
|
|
10
7
|
*
|
|
11
|
-
* @param
|
|
12
|
-
* @param key Key to verify the JWS with. See
|
|
8
|
+
* @param key Public key or shared secret. See
|
|
13
9
|
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
14
|
-
* @param options JWS Verify options.
|
|
15
10
|
*/
|
|
16
|
-
export declare function flattenedVerify(jws:
|
|
11
|
+
export declare function flattenedVerify(jws: t.FlattenedJWSInput, key: t.KeyInput, options?: t.VerifyOptions): Promise<t.FlattenedVerifyResult>;
|
|
17
12
|
/**
|
|
18
|
-
* Verifies
|
|
19
|
-
*
|
|
13
|
+
* Verifies a Flattened JWS signature and decodes its payload with a dynamically resolved key,
|
|
14
|
+
* included in the result.
|
|
20
15
|
*
|
|
21
|
-
* @param
|
|
22
|
-
* @param getKey Function resolving a key to verify the JWS with. See
|
|
23
|
-
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
24
|
-
* @param options JWS Verify options.
|
|
16
|
+
* @param getKey Resolves a public key or shared secret from unverified token data.
|
|
25
17
|
*/
|
|
26
|
-
export declare function flattenedVerify<KeyType extends
|
|
18
|
+
export declare function flattenedVerify<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array>(jws: t.FlattenedJWSInput, getKey: FlattenedVerifyGetKey<KeyType>, options?: t.VerifyOptions): Promise<t.FlattenedVerifyResult & t.ResolvedKey<KeyType>>;
|
|
27
19
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* function was used.
|
|
20
|
+
* Verifies a Flattened JWS and decodes its payload using a key or key resolver. The result includes
|
|
21
|
+
* `key` only when a resolver is used.
|
|
31
22
|
*
|
|
32
|
-
* @param
|
|
33
|
-
* @param key Key, or function resolving a key, to verify the JWS with. See
|
|
34
|
-
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
35
|
-
* @param options JWS Verify options.
|
|
23
|
+
* @param key Public key or shared secret, or a function resolving one.
|
|
36
24
|
*/
|
|
37
|
-
export declare function flattenedVerify(jws:
|
|
25
|
+
export declare function flattenedVerify(jws: t.FlattenedJWSInput, key: t.KeyInput | FlattenedVerifyGetKey, options?: t.VerifyOptions): Promise<t.FlattenedVerifyResult & Partial<t.ResolvedKey>>;
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/general/sign.d.ts
CHANGED
|
@@ -1,52 +1,38 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
/**
|
|
1
|
+
import type * as t from '../../types.d.ts';
|
|
2
|
+
/** Configures an individual signature in a General JWS. */
|
|
3
3
|
export interface Signature {
|
|
4
|
+
/** Sets the JWS Protected Header. May only be called once. */
|
|
5
|
+
setProtectedHeader(protectedHeader: t.JWSHeaderParameters): Signature;
|
|
6
|
+
/** Sets the JWS Unprotected Header. May only be called once. */
|
|
7
|
+
setUnprotectedHeader(unprotectedHeader: t.JWSHeaderParameters): Signature;
|
|
4
8
|
/**
|
|
5
|
-
*
|
|
9
|
+
* Adds another signature to the enclosing {@link GeneralSign} and returns its configuration.
|
|
6
10
|
*
|
|
7
|
-
* @param
|
|
8
|
-
*/
|
|
9
|
-
setProtectedHeader(protectedHeader: types.JWSHeaderParameters): Signature;
|
|
10
|
-
/**
|
|
11
|
-
* Sets the JWS Unprotected Header on the Signature object.
|
|
12
|
-
*
|
|
13
|
-
* @param unprotectedHeader JWS Unprotected Header.
|
|
14
|
-
*/
|
|
15
|
-
setUnprotectedHeader(unprotectedHeader: types.JWSHeaderParameters): Signature;
|
|
16
|
-
/**
|
|
17
|
-
* A shorthand for calling {@link GeneralSign.addSignature addSignature()} on the enclosing
|
|
18
|
-
* {@link GeneralSign} instance.
|
|
19
|
-
*
|
|
20
|
-
* @param key Private Key or Secret to sign the individual JWS signature with. See
|
|
11
|
+
* @param key Private key or shared secret. See
|
|
21
12
|
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
22
|
-
* @param options JWS Sign options.
|
|
23
|
-
*/
|
|
24
|
-
addSignature(key: types.KeyInput, options?: types.SignOptions): Signature;
|
|
25
|
-
/**
|
|
26
|
-
* A shorthand for calling {@link GeneralSign.sign sign()} on the enclosing {@link GeneralSign}
|
|
27
|
-
* instance. Takes no arguments — each signature's key is supplied to {@link addSignature}.
|
|
28
13
|
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
14
|
+
addSignature(key: t.KeyInput, options?: t.SignOptions): Signature;
|
|
15
|
+
/** Creates all signatures on the enclosing {@link GeneralSign}, using their configured keys. */
|
|
16
|
+
sign(): Promise<t.GeneralJWS>;
|
|
17
|
+
/** Returns the enclosing {@link GeneralSign} instance. */
|
|
31
18
|
done(): GeneralSign;
|
|
32
19
|
}
|
|
33
|
-
/**
|
|
20
|
+
/** Builds and signs General JWS objects. */
|
|
34
21
|
export declare class GeneralSign {
|
|
35
22
|
#private;
|
|
36
23
|
/**
|
|
37
|
-
*
|
|
24
|
+
* Creates a General JWS signer.
|
|
38
25
|
*
|
|
39
26
|
* @param payload Binary representation of the payload to sign.
|
|
40
27
|
*/
|
|
41
28
|
constructor(payload: Uint8Array);
|
|
42
29
|
/**
|
|
43
|
-
* Adds
|
|
30
|
+
* Adds a signature and returns its configuration.
|
|
44
31
|
*
|
|
45
|
-
* @param key Private
|
|
32
|
+
* @param key Private key or shared secret. See
|
|
46
33
|
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
47
|
-
* @param options JWS Sign options.
|
|
48
34
|
*/
|
|
49
|
-
addSignature(key:
|
|
50
|
-
/** Signs
|
|
51
|
-
sign(): Promise<
|
|
35
|
+
addSignature(key: t.KeyInput, options?: t.SignOptions): Signature;
|
|
36
|
+
/** Signs the payload as a General JWS. */
|
|
37
|
+
sign(): Promise<t.GeneralJWS>;
|
|
52
38
|
}
|
|
@@ -1,44 +1,29 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
* verified at the time of this function call.
|
|
5
|
-
*/
|
|
6
|
-
export interface GeneralVerifyGetKey<KeyType extends types.CryptoKey | Uint8Array = types.CryptoKey | Uint8Array> extends types.GetKeyFunction<types.JWSHeaderParameters, types.FlattenedJWSInput, KeyType | types.KeyObject | types.JWK> {
|
|
1
|
+
import type * as t from '../../types.d.ts';
|
|
2
|
+
/** Resolves a key for General JWS verification from unverified headers and token data. */
|
|
3
|
+
export interface GeneralVerifyGetKey<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array> extends t.GetKeyFunction<t.JWSHeaderParameters, t.FlattenedJWSInput, KeyType | t.KeyObject | t.JWK> {
|
|
7
4
|
}
|
|
8
5
|
/**
|
|
9
|
-
* Verifies
|
|
6
|
+
* Verifies a General JWS signature and decodes its payload.
|
|
10
7
|
*
|
|
11
|
-
* > Note:
|
|
12
|
-
* >
|
|
13
|
-
* >
|
|
14
|
-
* > entry. Other signature entries' headers may be inspected solely to reject inconsistent use of the
|
|
15
|
-
* > JWS Unencoded Payload Option, and their headers are not included in the returned result.
|
|
16
|
-
* > Recipients of a General JWS should only rely on the returned (verified) data.
|
|
8
|
+
* > Note: Returns payload and headers from the first signature that verifies successfully. Other entries'
|
|
9
|
+
* > headers may be inspected to reject inconsistent use of the JWS Unencoded Payload Option, but are
|
|
10
|
+
* > not included in the result. Rely only on the returned data.
|
|
17
11
|
*
|
|
18
|
-
* @param
|
|
19
|
-
* @param key Key to verify the JWS with. See
|
|
12
|
+
* @param key Public key or shared secret. See
|
|
20
13
|
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
21
|
-
* @param options JWS Verify options.
|
|
22
14
|
*/
|
|
23
|
-
export declare function generalVerify(jws:
|
|
15
|
+
export declare function generalVerify(jws: t.GeneralJWSInput, key: t.KeyInput, options?: t.VerifyOptions): Promise<t.GeneralVerifyResult>;
|
|
24
16
|
/**
|
|
25
|
-
* Verifies
|
|
26
|
-
*
|
|
17
|
+
* Verifies a General JWS signature and decodes its payload with a dynamically resolved key,
|
|
18
|
+
* included in the result.
|
|
27
19
|
*
|
|
28
|
-
* @param
|
|
29
|
-
* @param getKey Function resolving a key to verify the JWS with. See
|
|
30
|
-
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
31
|
-
* @param options JWS Verify options.
|
|
20
|
+
* @param getKey Resolves a public key or shared secret from unverified token data.
|
|
32
21
|
*/
|
|
33
|
-
export declare function generalVerify<KeyType extends
|
|
22
|
+
export declare function generalVerify<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array>(jws: t.GeneralJWSInput, getKey: GeneralVerifyGetKey<KeyType>, options?: t.VerifyOptions): Promise<t.GeneralVerifyResult & t.ResolvedKey<KeyType>>;
|
|
34
23
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* function was used.
|
|
24
|
+
* Verifies a General JWS and decodes its payload using a key or key resolver. The result includes
|
|
25
|
+
* `key` only when a resolver is used.
|
|
38
26
|
*
|
|
39
|
-
* @param
|
|
40
|
-
* @param key Key, or function resolving a key, to verify the JWS with. See
|
|
41
|
-
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
42
|
-
* @param options JWS Verify options.
|
|
27
|
+
* @param key Public key or shared secret, or a function resolving one.
|
|
43
28
|
*/
|
|
44
|
-
export declare function generalVerify(jws:
|
|
29
|
+
export declare function generalVerify(jws: t.GeneralJWSInput, key: t.KeyInput | GeneralVerifyGetKey, options?: t.VerifyOptions): Promise<t.GeneralVerifyResult & Partial<t.ResolvedKey>>;
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/decrypt.d.ts
CHANGED
|
@@ -1,41 +1,34 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
/**
|
|
3
|
-
export interface JWTDecryptOptions extends
|
|
1
|
+
import type * as t from '../types.d.ts';
|
|
2
|
+
/** JWE decryption and JWT Claims Set validation options. */
|
|
3
|
+
export interface JWTDecryptOptions extends t.DecryptOptions, t.JWTClaimVerificationOptions {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* Resolves a JWT decryption key. No token components have been authenticated when this function is
|
|
7
|
+
* called.
|
|
8
8
|
*/
|
|
9
|
-
export interface JWTDecryptGetKey<KeyType extends
|
|
9
|
+
export interface JWTDecryptGetKey<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array> extends t.GetKeyFunction<t.CompactJWEHeaderParameters, t.FlattenedJWE, KeyType | t.KeyObject | t.JWK> {
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* Claims Set.
|
|
12
|
+
* Decrypts a Compact JWE-formatted JWT and validates its Claims Set.
|
|
14
13
|
*
|
|
15
|
-
* @param
|
|
16
|
-
* @param key Private Key or Secret to decrypt and verify the JWT with. See
|
|
14
|
+
* @param key Private key or shared secret to decrypt and verify the JWT with. See
|
|
17
15
|
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
18
|
-
* @param options JWT Decryption and JWT Claims Set validation options.
|
|
19
16
|
*/
|
|
20
|
-
export declare function jwtDecrypt<PayloadType =
|
|
17
|
+
export declare function jwtDecrypt<PayloadType = t.JWTPayload>(jwt: string | Uint8Array, key: t.KeyInput, options?: JWTDecryptOptions): Promise<t.JWTDecryptResult<PayloadType>>;
|
|
21
18
|
/**
|
|
22
|
-
* Decrypts a JWT and validates its
|
|
23
|
-
*
|
|
19
|
+
* Decrypts a JWT and validates its claims, returning the dynamically
|
|
20
|
+
* {@link t.ResolvedKey.key resolved key}.
|
|
24
21
|
*
|
|
25
|
-
* @param
|
|
26
|
-
* @
|
|
27
|
-
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
28
|
-
* @param options JWT Decryption and JWT Claims Set validation options.
|
|
22
|
+
* @param getKey Function resolving a private key or shared secret to decrypt and verify the JWT
|
|
23
|
+
* with. See {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
29
24
|
*/
|
|
30
|
-
export declare function jwtDecrypt<PayloadType =
|
|
25
|
+
export declare function jwtDecrypt<PayloadType = t.JWTPayload, KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array>(jwt: string | Uint8Array, getKey: JWTDecryptGetKey<KeyType>, options?: JWTDecryptOptions): Promise<t.JWTDecryptResult<PayloadType> & t.ResolvedKey<KeyType>>;
|
|
31
26
|
/**
|
|
32
|
-
* Accepts
|
|
33
|
-
*
|
|
34
|
-
* function was used.
|
|
27
|
+
* Accepts a key or key resolver. Use this overload when forwarding either form; the result includes
|
|
28
|
+
* `key` only when a resolver was used.
|
|
35
29
|
*
|
|
36
|
-
* @param
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* @param options JWT Decryption and JWT Claims Set validation options.
|
|
30
|
+
* @param key Private key or shared secret, or a function resolving one, to decrypt and verify the
|
|
31
|
+
* JWT with. See
|
|
32
|
+
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
40
33
|
*/
|
|
41
|
-
export declare function jwtDecrypt<PayloadType =
|
|
34
|
+
export declare function jwtDecrypt<PayloadType = t.JWTPayload>(jwt: string | Uint8Array, key: t.KeyInput | JWTDecryptGetKey, options?: JWTDecryptOptions): Promise<t.JWTDecryptResult<PayloadType> & Partial<t.ResolvedKey>>;
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/encrypt.d.ts
CHANGED
|
@@ -1,62 +1,57 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* @param payload The JWT Claims Set object. Defaults to an empty object.
|
|
6
|
-
*/
|
|
7
|
-
declare const EncryptJWT_base: new (payload?: types.JWTPayload) => types.ProduceJWT;
|
|
8
|
-
/** The EncryptJWT class is used to build and encrypt Compact JWE formatted JSON Web Tokens. */
|
|
1
|
+
import type * as t from '../types.d.ts';
|
|
2
|
+
/** @param payload Initial JWT Claims Set. Defaults to an empty object. */
|
|
3
|
+
declare const EncryptJWT_base: new (payload?: t.JWTPayload) => t.ProduceJWT;
|
|
4
|
+
/** Builds and encrypts Compact JWE-formatted JSON Web Tokens. */
|
|
9
5
|
export declare class EncryptJWT extends EncryptJWT_base {
|
|
10
6
|
#private;
|
|
11
7
|
/**
|
|
12
|
-
* Sets the JWE Protected Header
|
|
8
|
+
* Sets the JWE Protected Header. May only be called once.
|
|
13
9
|
*
|
|
14
10
|
* @param protectedHeader JWE Protected Header. Must contain an "alg" (JWE Algorithm) and "enc"
|
|
15
11
|
* (JWE Encryption Algorithm) properties.
|
|
16
12
|
*/
|
|
17
|
-
setProtectedHeader(protectedHeader:
|
|
13
|
+
setProtectedHeader(protectedHeader: t.CompactJWEHeaderParameters): this;
|
|
18
14
|
/**
|
|
19
|
-
* Sets
|
|
20
|
-
* the
|
|
21
|
-
*
|
|
22
|
-
* appropriate JOSE Header.
|
|
23
|
-
*
|
|
24
|
-
* @param parameters JWE Key Management parameters.
|
|
15
|
+
* Sets JWE Key Management parameters, such as ECDH-ES "apu" and "apv" or PBES2 "p2c", and adds
|
|
16
|
+
* them to the appropriate JOSE Header. Use this instead of the header setters for algorithm
|
|
17
|
+
* inputs. May only be called once.
|
|
25
18
|
*/
|
|
26
|
-
setKeyManagementParameters(parameters:
|
|
19
|
+
setKeyManagementParameters(parameters: t.JWEKeyManagementHeaderParameters): this;
|
|
27
20
|
/**
|
|
28
|
-
* Sets
|
|
29
|
-
* "enc" (Encryption Algorithm)
|
|
30
|
-
*
|
|
31
|
-
* @deprecated You should not use this method. It is only really intended for test and vector
|
|
32
|
-
* validation purposes.
|
|
21
|
+
* Sets the content encryption key. By default, a suitable random key is generated for the JWE
|
|
22
|
+
* "enc" (Encryption Algorithm). May only be called once.
|
|
33
23
|
*
|
|
34
|
-
* @
|
|
24
|
+
* @deprecated For testing and vector validation only; allow random generation in production.
|
|
35
25
|
*/
|
|
36
26
|
setContentEncryptionKey(cek: Uint8Array): this;
|
|
37
27
|
/**
|
|
38
|
-
* Sets the
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* @deprecated You should not use this method. It is only really intended for test and vector
|
|
42
|
-
* validation purposes.
|
|
28
|
+
* Sets the Initialization Vector for content encryption. By default, a suitable random IV is
|
|
29
|
+
* generated for the JWE "enc" (Encryption Algorithm). May only be called once.
|
|
43
30
|
*
|
|
44
|
-
* @
|
|
31
|
+
* @deprecated For testing and vector validation only; allow random generation in production.
|
|
45
32
|
*/
|
|
46
33
|
setInitializationVector(iv: Uint8Array): this;
|
|
47
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Replicates the "iss" (Issuer) Claim in the JWE Protected Header, exposing it without
|
|
36
|
+
* decryption.
|
|
37
|
+
*/
|
|
48
38
|
replicateIssuerAsHeader(): this;
|
|
49
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Replicates the "sub" (Subject) Claim in the JWE Protected Header, exposing it without
|
|
41
|
+
* decryption.
|
|
42
|
+
*/
|
|
50
43
|
replicateSubjectAsHeader(): this;
|
|
51
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Replicates the "aud" (Audience) Claim in the JWE Protected Header, exposing it without
|
|
46
|
+
* decryption.
|
|
47
|
+
*/
|
|
52
48
|
replicateAudienceAsHeader(): this;
|
|
53
49
|
/**
|
|
54
50
|
* Encrypts and returns the JWT.
|
|
55
51
|
*
|
|
56
|
-
* @param key Public
|
|
52
|
+
* @param key Public key or shared secret to encrypt the JWT with. See
|
|
57
53
|
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
58
|
-
* @param options JWE Encryption options.
|
|
59
54
|
*/
|
|
60
|
-
encrypt(key:
|
|
55
|
+
encrypt(key: t.KeyInput, options?: t.EncryptOptions): Promise<string>;
|
|
61
56
|
}
|
|
62
57
|
export {};
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/sign.d.ts
CHANGED
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* @param payload The JWT Claims Set object. Defaults to an empty object.
|
|
6
|
-
*/
|
|
7
|
-
declare const SignJWT_base: new (payload?: types.JWTPayload) => types.ProduceJWT;
|
|
8
|
-
/** The SignJWT class is used to build and sign Compact JWS formatted JSON Web Tokens. */
|
|
1
|
+
import type * as t from '../types.d.ts';
|
|
2
|
+
/** @param payload Initial JWT Claims Set. Defaults to an empty object. */
|
|
3
|
+
declare const SignJWT_base: new (payload?: t.JWTPayload) => t.ProduceJWT;
|
|
4
|
+
/** Builds and signs Compact JWS-formatted JSON Web Tokens. */
|
|
9
5
|
export declare class SignJWT extends SignJWT_base {
|
|
10
6
|
#private;
|
|
11
7
|
/**
|
|
12
|
-
* Sets the JWS Protected Header
|
|
8
|
+
* Sets the JWS Protected Header. May only be called once.
|
|
13
9
|
*
|
|
14
10
|
* @param protectedHeader JWS Protected Header. Must contain an "alg" (JWS Algorithm) property.
|
|
15
11
|
*/
|
|
16
|
-
setProtectedHeader(protectedHeader:
|
|
12
|
+
setProtectedHeader(protectedHeader: t.JWTHeaderParameters): this;
|
|
17
13
|
/**
|
|
18
14
|
* Signs and returns the JWT.
|
|
19
15
|
*
|
|
20
|
-
* @param key Private
|
|
16
|
+
* @param key Private key or shared secret to sign the JWT with. See
|
|
21
17
|
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
22
|
-
* @param options JWT Sign options.
|
|
23
18
|
*/
|
|
24
|
-
sign(key:
|
|
19
|
+
sign(key: t.KeyInput, options?: t.SignOptions): Promise<string>;
|
|
25
20
|
}
|
|
26
21
|
export {};
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/unsecured.d.ts
CHANGED
|
@@ -1,28 +1,19 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
/**
|
|
3
|
-
export interface UnsecuredResult<PayloadType =
|
|
1
|
+
import type * as t from '../types.d.ts';
|
|
2
|
+
/** Decoded Unsecured JWT. */
|
|
3
|
+
export interface UnsecuredResult<PayloadType = t.JWTPayload> {
|
|
4
4
|
/** JWT Claims Set. */
|
|
5
|
-
payload: PayloadType &
|
|
5
|
+
payload: PayloadType & t.JWTPayload & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never);
|
|
6
6
|
/** The decoded JOSE Header; always `{ "alg": "none" }` for an Unsecured JWT. */
|
|
7
|
-
header:
|
|
7
|
+
header: t.JWSHeaderParameters;
|
|
8
8
|
}
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* @param payload The JWT Claims Set object. Defaults to an empty object.
|
|
13
|
-
*/
|
|
14
|
-
declare const UnsecuredJWT_base: new (payload?: types.JWTPayload) => types.ProduceJWT;
|
|
15
|
-
/** The UnsecuredJWT class is a utility for dealing with `{ "alg": "none" }` Unsecured JWTs. */
|
|
9
|
+
/** @param payload Initial JWT Claims Set. Defaults to an empty object. */
|
|
10
|
+
declare const UnsecuredJWT_base: new (payload?: t.JWTPayload) => t.ProduceJWT;
|
|
11
|
+
/** Encodes and decodes `{ "alg": "none" }` Unsecured JWTs. */
|
|
16
12
|
export declare class UnsecuredJWT extends UnsecuredJWT_base {
|
|
17
13
|
private jwt;
|
|
18
14
|
/** Encodes the Unsecured JWT. */
|
|
19
15
|
encode(): string;
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
*
|
|
23
|
-
* @param jwt Unsecured JWT to decode the payload of.
|
|
24
|
-
* @param options JWT Claims Set validation options.
|
|
25
|
-
*/
|
|
26
|
-
static decode<PayloadType = types.JWTPayload>(jwt: string, options?: types.JWTClaimVerificationOptions): UnsecuredResult<PayloadType>;
|
|
16
|
+
/** Decodes an unsecured JWT and validates its claims without authenticating the token. */
|
|
17
|
+
static decode<PayloadType = t.JWTPayload>(jwt: string, options?: t.JWTClaimVerificationOptions): UnsecuredResult<PayloadType>;
|
|
27
18
|
}
|
|
28
19
|
export {};
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/verify.d.ts
CHANGED
|
@@ -1,38 +1,35 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
/**
|
|
3
|
-
export interface JWTVerifyOptions extends
|
|
1
|
+
import type * as t from '../types.d.ts';
|
|
2
|
+
/** JWS verification and JWT Claims Set validation options. */
|
|
3
|
+
export interface JWTVerifyOptions extends t.VerifyOptions, t.JWTClaimVerificationOptions {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* Resolves a JWT verification key. No token components have been authenticated when this function
|
|
7
|
+
* is called.
|
|
8
8
|
*/
|
|
9
|
-
export interface JWTVerifyGetKey<KeyType extends
|
|
9
|
+
export interface JWTVerifyGetKey<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array> extends t.GetKeyFunction<t.CompactJWSHeaderParameters, t.FlattenedJWSInput, KeyType | t.KeyObject | t.JWK> {
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* Verifies
|
|
13
|
-
* JWT Claims Set.
|
|
12
|
+
* Verifies a Compact JWS-formatted JWT and validates its Claims Set.
|
|
14
13
|
*
|
|
15
|
-
* @param
|
|
16
|
-
* @param key Key to verify the JWT with. See
|
|
14
|
+
* @param key Public key or shared secret to verify the JWT with. See
|
|
17
15
|
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
18
|
-
* @param options JWT
|
|
16
|
+
* @param options JWT Verification and JWT Claims Set validation options.
|
|
19
17
|
*/
|
|
20
|
-
export declare function jwtVerify<PayloadType =
|
|
18
|
+
export declare function jwtVerify<PayloadType = t.JWTPayload>(jwt: string | Uint8Array, key: t.KeyInput, options?: JWTVerifyOptions): Promise<t.JWTVerifyResult<PayloadType>>;
|
|
21
19
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
20
|
+
* Verifies the JWT signature and claims, returning the resolved key.
|
|
21
|
+
*
|
|
22
|
+
* @param getKey Function resolving a public key or shared secret to verify the JWT with. See
|
|
24
23
|
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
25
|
-
* @param options JWT
|
|
24
|
+
* @param options JWT Verification and JWT Claims Set validation options.
|
|
26
25
|
*/
|
|
27
|
-
export declare function jwtVerify<PayloadType =
|
|
26
|
+
export declare function jwtVerify<PayloadType = t.JWTPayload, KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array>(jwt: string | Uint8Array, getKey: JWTVerifyGetKey<KeyType>, options?: JWTVerifyOptions): Promise<t.JWTVerifyResult<PayloadType> & t.ResolvedKey<KeyType>>;
|
|
28
27
|
/**
|
|
29
|
-
* Accepts
|
|
30
|
-
*
|
|
31
|
-
* function was used.
|
|
28
|
+
* Accepts a key or key resolver. Use this overload when forwarding either form; the result includes
|
|
29
|
+
* `key` only when a resolver was used.
|
|
32
30
|
*
|
|
33
|
-
* @param jwt JSON Web Token value (encoded as JWS).
|
|
34
31
|
* @param key Key, or function resolving a key, to verify the JWT with. See
|
|
35
32
|
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
36
|
-
* @param options JWT
|
|
33
|
+
* @param options JWT Verification and JWT Claims Set validation options.
|
|
37
34
|
*/
|
|
38
|
-
export declare function jwtVerify<PayloadType =
|
|
35
|
+
export declare function jwtVerify<PayloadType = t.JWTPayload>(jwt: string | Uint8Array, key: t.KeyInput | JWTVerifyGetKey, options?: JWTVerifyOptions): Promise<t.JWTVerifyResult<PayloadType> & Partial<t.ResolvedKey>>;
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/export.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type * as
|
|
1
|
+
import type * as t from '../types.d.ts';
|
|
2
2
|
/**
|
|
3
|
-
* Exports a public
|
|
3
|
+
* Exports a public key to PEM-encoded SPKI. CryptoKey inputs must be extractable.
|
|
4
4
|
*
|
|
5
|
-
* @param key Key to export
|
|
5
|
+
* @param key Key to export.
|
|
6
6
|
*/
|
|
7
|
-
export declare function exportSPKI(key:
|
|
7
|
+
export declare function exportSPKI(key: t.CryptoKey | t.KeyObject): Promise<string>;
|
|
8
8
|
/**
|
|
9
|
-
* Exports a private
|
|
9
|
+
* Exports a private key to PEM-encoded PKCS#8. CryptoKey inputs must be extractable.
|
|
10
10
|
*
|
|
11
|
-
* @param key Key to export
|
|
11
|
+
* @param key Key to export.
|
|
12
12
|
*/
|
|
13
|
-
export declare function exportPKCS8(key:
|
|
13
|
+
export declare function exportPKCS8(key: t.CryptoKey | t.KeyObject): Promise<string>;
|
|
14
14
|
/**
|
|
15
|
-
* Exports a
|
|
15
|
+
* Exports a key to JWK. CryptoKey inputs must be extractable.
|
|
16
16
|
*
|
|
17
|
-
* @param key Key to export
|
|
17
|
+
* @param key Key to export.
|
|
18
18
|
*/
|
|
19
|
-
export declare function exportJWK(key:
|
|
19
|
+
export declare function exportJWK(key: t.CryptoKey | t.KeyObject | Uint8Array): Promise<t.JWK>;
|
|
@@ -1,40 +1,33 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
/**
|
|
3
|
-
* JWA Algorithm Identifiers that {@link generateKeyPair} is able to generate a key pair for, subject
|
|
4
|
-
* to runtime support.
|
|
5
|
-
*/
|
|
1
|
+
import type * as t from '../types.d.ts';
|
|
2
|
+
/** Algorithms supported by {@link generateKeyPair}, subject to runtime support. */
|
|
6
3
|
export type GenerateKeyPairAlgorithm = 'PS256' | 'PS384' | 'PS512' | 'RS256' | 'RS384' | 'RS512' | 'RSA-OAEP' | 'RSA-OAEP-256' | 'RSA-OAEP-384' | 'RSA-OAEP-512' | 'ES256' | 'ES384' | 'ES512' | 'Ed25519' | 'EdDSA' | 'ML-DSA-44' | 'ML-DSA-65' | 'ML-DSA-87' | 'ECDH-ES' | 'ECDH-ES+A128KW' | 'ECDH-ES+A192KW' | 'ECDH-ES+A256KW' | (string & {});
|
|
7
|
-
/**
|
|
4
|
+
/** Generated asymmetric key pair. */
|
|
8
5
|
export interface GenerateKeyPairResult {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/** Public Key corresponding to the generated Private Key. */
|
|
12
|
-
publicKey: types.CryptoKey;
|
|
6
|
+
privateKey: t.CryptoKey;
|
|
7
|
+
publicKey: t.CryptoKey;
|
|
13
8
|
}
|
|
14
|
-
/** Asymmetric key pair generation
|
|
9
|
+
/** Asymmetric key pair generation options. */
|
|
15
10
|
export interface GenerateKeyPairOptions {
|
|
16
11
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
12
|
+
* EC curve or OKP key subtype. Must be supported by the algorithm and runtime. ECDH-ES defaults
|
|
13
|
+
* to P-256.
|
|
19
14
|
*/
|
|
20
15
|
crv?: string;
|
|
16
|
+
/** RSA modulus length in bits. Must be an integer of at least 2048; defaults to 2048. */
|
|
17
|
+
modulusLength?: number;
|
|
21
18
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
19
|
+
* Whether the private key is extractable. Defaults to false; the public key is always
|
|
20
|
+
* extractable.
|
|
24
21
|
*/
|
|
25
|
-
modulusLength?: number;
|
|
26
|
-
/** The value to use as {@link !SubtleCrypto.generateKey} `extractable` argument. Default is false. */
|
|
27
22
|
extractable?: boolean;
|
|
28
23
|
}
|
|
29
24
|
/**
|
|
30
|
-
* Generates
|
|
31
|
-
* asymmetric key pairs. For symmetric secrets use the `generateSecret` function.
|
|
25
|
+
* Generates an asymmetric key pair for a JWA algorithm identifier.
|
|
32
26
|
*
|
|
33
|
-
* > Note:
|
|
34
|
-
* >
|
|
27
|
+
* > Note: Private keys are not extractable by default. Set {@link GenerateKeyPairOptions.extractable} to
|
|
28
|
+
* > export them; public keys are always extractable.
|
|
35
29
|
*
|
|
36
30
|
* @param alg JWA Algorithm Identifier to be used with the generated key pair. See
|
|
37
31
|
* {@link https://github.com/panva/jose/issues/210 Algorithm Key Requirements}.
|
|
38
|
-
* @param options Additional options passed down to the key pair generation.
|
|
39
32
|
*/
|
|
40
33
|
export declare function generateKeyPair(alg: GenerateKeyPairAlgorithm, options?: GenerateKeyPairOptions): Promise<GenerateKeyPairResult>;
|