@zuplo/cli 7.6.9 → 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 +7 -11
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +13 -16
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +7 -11
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +16 -19
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +10 -16
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +18 -21
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwk/embedded.d.ts +3 -1
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwk/thumbprint.d.ts +4 -6
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwks/local.d.ts +5 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwks/remote.d.ts +20 -21
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/compact/sign.d.ts +4 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/compact/verify.d.ts +8 -11
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -5
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/flattened/verify.d.ts +8 -11
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/general/sign.d.ts +10 -14
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/general/verify.d.ts +11 -17
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/decrypt.d.ts +14 -11
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/encrypt.d.ts +24 -22
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/sign.d.ts +3 -7
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -6
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/verify.d.ts +13 -6
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/export.d.ts +6 -6
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/generate_key_pair.d.ts +9 -14
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/generate_secret.d.ts +10 -10
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/import.d.ts +19 -18
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/types.d.ts +152 -247
- 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 +6 -1
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/decode_protected_header.d.ts +4 -3
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/errors.d.ts +29 -40
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +1 -2
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +9 -26
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +3 -3
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +11 -30
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/general/decrypt.js +6 -6
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/general/encrypt.js +33 -57
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwk/embedded.js +3 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwk/thumbprint.js +3 -6
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/local.js +16 -10
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/remote.js +2 -2
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/compact/sign.js +2 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/compact/verify.js +2 -2
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/flattened/sign.js +8 -15
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/flattened/verify.js +4 -14
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/general/sign.js +4 -11
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/general/verify.js +5 -7
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/decrypt.js +2 -3
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/encrypt.js +11 -25
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/sign.js +1 -1
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/unsecured.js +1 -2
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/verify.js +4 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/key/export.js +12 -16
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/key/generate_key_pair.js +4 -13
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/key/generate_secret.js +1 -1
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/key/import.js +5 -9
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/asn1.js +2 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/buffer_utils.js +35 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/content_encryption.js +21 -29
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/deflate.js +9 -19
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +0 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +21 -54
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +26 -59
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jws_sign.js +29 -43
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jws_verify.js +37 -45
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +1 -1
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key.js +119 -59
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key_management.js +45 -80
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/{options.js → validate.js} +64 -3
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/base64url.js +5 -19
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/decode_jwt.js +1 -1
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/decode_protected_header.js +1 -1
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/package.json +1 -1
- 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 +7 -11
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +13 -16
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +7 -11
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +16 -19
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +10 -16
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +18 -21
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwk/embedded.d.ts +3 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwk/thumbprint.d.ts +4 -6
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwks/local.d.ts +5 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwks/remote.d.ts +20 -21
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/compact/sign.d.ts +4 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/compact/verify.d.ts +8 -11
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -5
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/flattened/verify.d.ts +8 -11
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/general/sign.d.ts +10 -14
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/general/verify.d.ts +11 -17
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/decrypt.d.ts +14 -11
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/encrypt.d.ts +24 -22
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/sign.d.ts +3 -7
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -6
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/verify.d.ts +13 -6
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/export.d.ts +6 -6
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/generate_key_pair.d.ts +9 -14
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/generate_secret.d.ts +10 -10
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/import.d.ts +19 -18
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/types.d.ts +152 -247
- 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 +6 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/decode_protected_header.d.ts +4 -3
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/errors.d.ts +29 -40
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +1 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +9 -26
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +3 -3
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +11 -30
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/general/decrypt.js +6 -6
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/general/encrypt.js +33 -57
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwk/embedded.js +3 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwk/thumbprint.js +3 -6
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/local.js +16 -10
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/remote.js +2 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/compact/sign.js +2 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/compact/verify.js +2 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/flattened/sign.js +8 -15
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/flattened/verify.js +4 -14
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/general/sign.js +4 -11
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/general/verify.js +5 -7
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/decrypt.js +2 -3
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/encrypt.js +11 -25
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/sign.js +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/unsecured.js +1 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/verify.js +4 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/key/export.js +12 -16
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/key/generate_key_pair.js +4 -13
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/key/generate_secret.js +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/key/import.js +5 -9
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/asn1.js +2 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/buffer_utils.js +35 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/content_encryption.js +21 -29
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/deflate.js +9 -19
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +0 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +21 -54
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +26 -59
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jws_sign.js +29 -43
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jws_verify.js +37 -45
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key.js +119 -59
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key_management.js +45 -80
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/{options.js → validate.js} +64 -3
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/util/base64url.js +5 -19
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/util/decode_jwt.js +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/util/decode_protected_header.js +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/package.json +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/types.d.ts +1 -0
- package/node_modules/@posthog/core/dist/types.d.ts.map +1 -1
- 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 +26 -0
- package/node_modules/@posthog/core/dist/utils/index.mjs +1 -0
- 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/package.json +2 -2
- package/node_modules/@posthog/core/src/featureFlagLocalEvaluation.ts +1 -1
- package/node_modules/@posthog/core/src/posthog-core.ts +14 -0
- package/node_modules/@posthog/core/src/types.ts +1 -0
- package/node_modules/@posthog/core/src/utils/index.ts +1 -0
- package/node_modules/@posthog/core/src/utils/otlp-any-value.spec.ts +1 -1
- 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/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/posthog-config.d.ts +7 -1
- package/node_modules/@posthog/types/dist/posthog-config.d.ts.map +1 -1
- package/node_modules/@posthog/types/package.json +1 -1
- package/node_modules/@posthog/types/src/feature-flags.ts +1 -1
- package/node_modules/@posthog/types/src/posthog-config.ts +7 -1
- 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-Z3IKCP3N.js → chunk-R4PTES5B.js} +93 -93
- 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/package.json +1 -1
- package/package.json +11 -11
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/base64.js +0 -20
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -27
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/helpers.js +0 -45
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -12
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -19
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwk_metadata.js +0 -19
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -10
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key_options.js +0 -8
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/signing.js +0 -22
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/type_checks.js +0 -30
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/base64.js +0 -20
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -27
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/helpers.js +0 -45
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -12
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -19
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwk_metadata.js +0 -19
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -10
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key_options.js +0 -8
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/signing.js +0 -22
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/type_checks.js +0 -30
- package/node_modules/@zuplo/runtime/out/esm/chunk-Z3IKCP3N.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-Z3IKCP3N.js.LEGAL.txt → chunk-R4PTES5B.js.LEGAL.txt} +0 -0
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/encrypt.d.ts
CHANGED
|
@@ -1,53 +1,55 @@
|
|
|
1
1
|
import type * as t from '../types.d.ts';
|
|
2
|
-
/**
|
|
3
|
-
* EncryptJWT constructor
|
|
4
|
-
*
|
|
5
|
-
* @param payload The JWT Claims Set object. Defaults to an empty object.
|
|
6
|
-
*/
|
|
2
|
+
/** @param payload Initial JWT Claims Set. Defaults to an empty object. */
|
|
7
3
|
declare const EncryptJWT_base: new (payload?: t.JWTPayload) => t.ProduceJWT;
|
|
8
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
13
|
setProtectedHeader(protectedHeader: t.CompactJWEHeaderParameters): this;
|
|
18
14
|
/**
|
|
19
|
-
* Sets
|
|
20
|
-
* the
|
|
21
|
-
*
|
|
22
|
-
* appropriate JOSE Header.
|
|
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.
|
|
23
18
|
*/
|
|
24
19
|
setKeyManagementParameters(parameters: t.JWEKeyManagementHeaderParameters): this;
|
|
25
20
|
/**
|
|
26
|
-
* Sets
|
|
27
|
-
* "enc" (Encryption Algorithm)
|
|
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.
|
|
28
23
|
*
|
|
29
|
-
* @deprecated
|
|
30
|
-
* validation purposes.
|
|
24
|
+
* @deprecated For testing and vector validation only; allow random generation in production.
|
|
31
25
|
*/
|
|
32
26
|
setContentEncryptionKey(cek: Uint8Array): this;
|
|
33
27
|
/**
|
|
34
|
-
* Sets the
|
|
35
|
-
*
|
|
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.
|
|
36
30
|
*
|
|
37
|
-
* @deprecated
|
|
38
|
-
* validation purposes.
|
|
31
|
+
* @deprecated For testing and vector validation only; allow random generation in production.
|
|
39
32
|
*/
|
|
40
33
|
setInitializationVector(iv: Uint8Array): this;
|
|
41
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Replicates the "iss" (Issuer) Claim in the JWE Protected Header, exposing it without
|
|
36
|
+
* decryption.
|
|
37
|
+
*/
|
|
42
38
|
replicateIssuerAsHeader(): this;
|
|
43
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Replicates the "sub" (Subject) Claim in the JWE Protected Header, exposing it without
|
|
41
|
+
* decryption.
|
|
42
|
+
*/
|
|
44
43
|
replicateSubjectAsHeader(): this;
|
|
45
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Replicates the "aud" (Audience) Claim in the JWE Protected Header, exposing it without
|
|
46
|
+
* decryption.
|
|
47
|
+
*/
|
|
46
48
|
replicateAudienceAsHeader(): this;
|
|
47
49
|
/**
|
|
48
50
|
* Encrypts and returns the JWT.
|
|
49
51
|
*
|
|
50
|
-
* @param key Public
|
|
52
|
+
* @param key Public key or shared secret to encrypt the JWT with. See
|
|
51
53
|
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
52
54
|
*/
|
|
53
55
|
encrypt(key: t.KeyInput, options?: t.EncryptOptions): Promise<string>;
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/sign.d.ts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import type * as t from '../types.d.ts';
|
|
2
|
-
/**
|
|
3
|
-
* SignJWT constructor
|
|
4
|
-
*
|
|
5
|
-
* @param payload The JWT Claims Set object. Defaults to an empty object.
|
|
6
|
-
*/
|
|
2
|
+
/** @param payload Initial JWT Claims Set. Defaults to an empty object. */
|
|
7
3
|
declare const SignJWT_base: new (payload?: t.JWTPayload) => t.ProduceJWT;
|
|
8
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
|
*/
|
|
@@ -17,7 +13,7 @@ export declare class SignJWT extends SignJWT_base {
|
|
|
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
18
|
*/
|
|
23
19
|
sign(key: t.KeyInput, options?: t.SignOptions): Promise<string>;
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/unsecured.d.ts
CHANGED
|
@@ -6,18 +6,14 @@ export interface UnsecuredResult<PayloadType = t.JWTPayload> {
|
|
|
6
6
|
/** The decoded JOSE Header; always `{ "alg": "none" }` for an Unsecured JWT. */
|
|
7
7
|
header: t.JWSHeaderParameters;
|
|
8
8
|
}
|
|
9
|
-
/**
|
|
10
|
-
* UnsecuredJWT constructor
|
|
11
|
-
*
|
|
12
|
-
* @param payload The JWT Claims Set object. Defaults to an empty object.
|
|
13
|
-
*/
|
|
9
|
+
/** @param payload Initial JWT Claims Set. Defaults to an empty object. */
|
|
14
10
|
declare const UnsecuredJWT_base: new (payload?: t.JWTPayload) => t.ProduceJWT;
|
|
15
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
|
-
/** Decodes an unsecured JWT. */
|
|
16
|
+
/** Decodes an unsecured JWT and validates its claims without authenticating the token. */
|
|
21
17
|
static decode<PayloadType = t.JWTPayload>(jwt: string, options?: t.JWTClaimVerificationOptions): UnsecuredResult<PayloadType>;
|
|
22
18
|
}
|
|
23
19
|
export {};
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/verify.d.ts
CHANGED
|
@@ -2,27 +2,34 @@ import type * as t from '../types.d.ts';
|
|
|
2
2
|
/** JWS verification and JWT Claims Set validation options. */
|
|
3
3
|
export interface JWTVerifyOptions extends t.VerifyOptions, t.JWTClaimVerificationOptions {
|
|
4
4
|
}
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Resolves a JWT verification key. No token components have been authenticated when this function
|
|
7
|
+
* is called.
|
|
8
|
+
*/
|
|
6
9
|
export interface JWTVerifyGetKey<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array> extends t.GetKeyFunction<t.CompactJWSHeaderParameters, t.FlattenedJWSInput, KeyType | t.KeyObject | t.JWK> {
|
|
7
10
|
}
|
|
8
11
|
/**
|
|
9
12
|
* Verifies a Compact JWS-formatted JWT and validates its Claims Set.
|
|
10
13
|
*
|
|
11
|
-
* @param key
|
|
14
|
+
* @param key Public key or shared secret to verify the JWT with. See
|
|
12
15
|
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
16
|
+
* @param options JWT Verification and JWT Claims Set validation options.
|
|
13
17
|
*/
|
|
14
18
|
export declare function jwtVerify<PayloadType = t.JWTPayload>(jwt: string | Uint8Array, key: t.KeyInput, options?: JWTVerifyOptions): Promise<t.JWTVerifyResult<PayloadType>>;
|
|
15
19
|
/**
|
|
16
|
-
*
|
|
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
|
|
17
23
|
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
24
|
+
* @param options JWT Verification and JWT Claims Set validation options.
|
|
18
25
|
*/
|
|
19
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>>;
|
|
20
27
|
/**
|
|
21
|
-
* Accepts
|
|
22
|
-
*
|
|
23
|
-
* 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.
|
|
24
30
|
*
|
|
25
31
|
* @param key Key, or function resolving a key, to verify the JWT with. See
|
|
26
32
|
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
33
|
+
* @param options JWT Verification and JWT Claims Set validation options.
|
|
27
34
|
*/
|
|
28
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
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
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
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
19
|
export declare function exportJWK(key: t.CryptoKey | t.KeyObject | Uint8Array): Promise<t.JWK>;
|
|
@@ -1,36 +1,31 @@
|
|
|
1
1
|
import type * as t from '../types.d.ts';
|
|
2
|
-
/**
|
|
3
|
-
* JWA Algorithm Identifiers that {@link generateKeyPair} is able to generate a key pair for, subject
|
|
4
|
-
* to runtime support.
|
|
5
|
-
*/
|
|
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
|
-
/** The generated Private Key. */
|
|
10
6
|
privateKey: t.CryptoKey;
|
|
11
|
-
/** Public Key corresponding to the generated Private Key. */
|
|
12
7
|
publicKey: t.CryptoKey;
|
|
13
8
|
}
|
|
14
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
25
|
* Generates an asymmetric key pair for a JWA algorithm identifier.
|
|
31
26
|
*
|
|
32
|
-
* > Note:
|
|
33
|
-
* >
|
|
27
|
+
* > Note: Private keys are not extractable by default. Set {@link GenerateKeyPairOptions.extractable} to
|
|
28
|
+
* > export them; public keys are always extractable.
|
|
34
29
|
*
|
|
35
30
|
* @param alg JWA Algorithm Identifier to be used with the generated key pair. See
|
|
36
31
|
* {@link https://github.com/panva/jose/issues/210 Algorithm Key Requirements}.
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type * as t from '../types.d.ts';
|
|
2
|
+
/** Algorithms supported by {@link generateSecret}, subject to runtime support. */
|
|
3
|
+
export type GenerateSecretAlgorithm = 'HS256' | 'HS384' | 'HS512' | 'A128CBC-HS256' | 'A192CBC-HS384' | 'A256CBC-HS512' | 'A128KW' | 'A192KW' | 'A256KW' | 'A128GCMKW' | 'A192GCMKW' | 'A256GCMKW' | 'A128GCM' | 'A192GCM' | 'A256GCM' | (string & {});
|
|
2
4
|
/**
|
|
3
|
-
* JWA
|
|
4
|
-
*
|
|
5
|
+
* Maps a JWA algorithm identifier to the value returned by {@link generateSecret}. AES-CBC-HMAC
|
|
6
|
+
* algorithms return {@link !Uint8Array}; other supported algorithms return
|
|
7
|
+
* {@link t.CryptoKey CryptoKey}. When the algorithm is not statically known, the result is their
|
|
8
|
+
* union.
|
|
5
9
|
*/
|
|
6
|
-
export type GenerateSecretAlgorithm = 'HS256' | 'HS384' | 'HS512' | 'A128CBC-HS256' | 'A192CBC-HS384' | 'A256CBC-HS512' | 'A128KW' | 'A192KW' | 'A256KW' | 'A128GCMKW' | 'A192GCMKW' | 'A256GCMKW' | 'A128GCM' | 'A192GCM' | 'A256GCM' | (string & {});
|
|
7
|
-
/** Maps a JWA algorithm identifier to the value returned by {@link generateSecret}. */
|
|
8
10
|
export type GeneratedSecret<Alg extends string> = Alg extends 'A128CBC-HS256' | 'A192CBC-HS384' | 'A256CBC-HS512' ? Uint8Array : string extends Alg ? t.CryptoKey | Uint8Array : t.CryptoKey;
|
|
9
11
|
/** Secret generation options. */
|
|
10
12
|
export interface GenerateSecretOptions {
|
|
11
13
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* > Note: Because A128CBC-HS256, A192CBC-HS384, and A256CBC-HS512 secrets cannot be represented as
|
|
15
|
-
* > {@link !CryptoKey} this option has no effect for them.
|
|
14
|
+
* Whether the generated CryptoKey is extractable. Defaults to false; has no effect for
|
|
15
|
+
* A128CBC-HS256, A192CBC-HS384, and A256CBC-HS512, which return raw bytes.
|
|
16
16
|
*/
|
|
17
17
|
extractable?: boolean;
|
|
18
18
|
}
|
|
@@ -21,8 +21,8 @@ export interface GenerateSecretOptions {
|
|
|
21
21
|
*
|
|
22
22
|
* > Note: The secret key is generated with `extractable` set to `false` by default.
|
|
23
23
|
*
|
|
24
|
-
* > Note:
|
|
25
|
-
* >
|
|
24
|
+
* > Note: A128CBC-HS256, A192CBC-HS384, and A256CBC-HS512 return {@link !Uint8Array} because these secrets
|
|
25
|
+
* > have no CryptoKey representation.
|
|
26
26
|
*
|
|
27
27
|
* @param alg JWA Algorithm Identifier to be used with the generated secret. See
|
|
28
28
|
* {@link https://github.com/panva/jose/issues/210 Algorithm Key Requirements}.
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/import.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type * as t from '../types.d.ts';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Maps a JWK key type to the value returned by {@link importJWK}. An "oct" JWK returns
|
|
4
|
+
* {@link !Uint8Array}; other supported key types return {@link t.CryptoKey CryptoKey}. A JWK
|
|
5
|
+
* whose "kty" is not statically known resolves to their union.
|
|
6
|
+
*/
|
|
3
7
|
export type ImportedJWK<JWKType extends t.JWK> = JWKType extends {
|
|
4
8
|
kty: 'oct';
|
|
5
9
|
} ? Uint8Array : JWKType extends {
|
|
@@ -8,17 +12,16 @@ export type ImportedJWK<JWKType extends t.JWK> = JWKType extends {
|
|
|
8
12
|
/** Key import options. */
|
|
9
13
|
export interface KeyImportOptions {
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
12
|
-
* private keys, true otherwise.
|
|
15
|
+
* Whether the imported CryptoKey is extractable. Overrides JWK "ext" when set. Without either,
|
|
16
|
+
* defaults to false for private keys, true otherwise.
|
|
13
17
|
*/
|
|
14
18
|
extractable?: boolean;
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
17
21
|
* Imports a PEM-encoded SPKI string as a {@link !CryptoKey}.
|
|
18
22
|
*
|
|
19
|
-
* > Note:
|
|
20
|
-
* >
|
|
21
|
-
* > (1.2.840.113549.1.1.1) instead for all RSA algorithms.
|
|
23
|
+
* > Note: For RSA keys, use the rsaEncryption OID (1.2.840.113549.1.1.1). The id-RSASSA-PSS OID
|
|
24
|
+
* > (1.2.840.113549.1.1.10) is not supported by the Web Cryptography API.
|
|
22
25
|
*
|
|
23
26
|
* @param spki PEM-encoded SPKI string
|
|
24
27
|
* @param alg JSON Web Algorithm identifier to be used with the imported key. See
|
|
@@ -26,11 +29,10 @@ export interface KeyImportOptions {
|
|
|
26
29
|
*/
|
|
27
30
|
export declare function importSPKI(spki: string, alg: string, options?: KeyImportOptions): Promise<t.CryptoKey>;
|
|
28
31
|
/**
|
|
29
|
-
* Imports
|
|
32
|
+
* Imports a PEM-encoded X.509 certificate's public key as a {@link !CryptoKey}.
|
|
30
33
|
*
|
|
31
|
-
* > Note:
|
|
32
|
-
* >
|
|
33
|
-
* > (1.2.840.113549.1.1.1) instead for all RSA algorithms.
|
|
34
|
+
* > Note: For RSA keys, use the rsaEncryption OID (1.2.840.113549.1.1.1). The id-RSASSA-PSS OID
|
|
35
|
+
* > (1.2.840.113549.1.1.10) is not supported by the Web Cryptography API.
|
|
34
36
|
*
|
|
35
37
|
* @param x509 X.509 certificate string
|
|
36
38
|
* @param alg JSON Web Algorithm identifier to be used with the imported key. See
|
|
@@ -40,9 +42,8 @@ export declare function importX509(x509: string, alg: string, options?: KeyImpor
|
|
|
40
42
|
/**
|
|
41
43
|
* Imports a PEM-encoded PKCS#8 string as a {@link !CryptoKey}.
|
|
42
44
|
*
|
|
43
|
-
* > Note:
|
|
44
|
-
* >
|
|
45
|
-
* > (1.2.840.113549.1.1.1) instead for all RSA algorithms.
|
|
45
|
+
* > Note: For RSA keys, use the rsaEncryption OID (1.2.840.113549.1.1.1). The id-RSASSA-PSS OID
|
|
46
|
+
* > (1.2.840.113549.1.1.10) is not supported by the Web Cryptography API.
|
|
46
47
|
*
|
|
47
48
|
* @param pkcs8 PEM-encoded PKCS#8 string
|
|
48
49
|
* @param alg JSON Web Algorithm identifier to be used with the imported key. See
|
|
@@ -50,13 +51,13 @@ export declare function importX509(x509: string, alg: string, options?: KeyImpor
|
|
|
50
51
|
*/
|
|
51
52
|
export declare function importPKCS8(pkcs8: string, alg: string, options?: KeyImportOptions): Promise<t.CryptoKey>;
|
|
52
53
|
/**
|
|
53
|
-
* Imports a JWK as a {@link !CryptoKey} or {@link !Uint8Array}.
|
|
54
|
+
* Imports a JWK as a {@link !CryptoKey} or {@link !Uint8Array}. Asymmetric imports require either the
|
|
55
|
+
* "alg" argument or JWK "alg" parameter. For AKP keys, the JWK "alg" parameter is required and must
|
|
56
|
+
* match the argument when provided.
|
|
54
57
|
*
|
|
55
|
-
* > Note:
|
|
56
|
-
* > process.
|
|
58
|
+
* > Note: CryptoKey imports honor the JWK "key_ops" and "ext" parameters.
|
|
57
59
|
*
|
|
58
|
-
* > Note: Symmetric
|
|
59
|
-
* > {@link !CryptoKey}.
|
|
60
|
+
* > Note: Symmetric JWKs (`kty: "oct"`) return {@link !Uint8Array} instead of CryptoKey.
|
|
60
61
|
*
|
|
61
62
|
* @param jwk JSON Web Key.
|
|
62
63
|
* @param alg JSON Web Algorithm identifier to be used with the imported key. Default is the "alg"
|