@zuplo/cli 7.6.9 → 7.7.0
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
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* JWS "alg" (Algorithm) Header Parameter values supported by this module. Availability of a given
|
|
3
|
-
* identifier additionally depends on the runtime.
|
|
4
|
-
*/
|
|
1
|
+
/** Supported JWS "alg" (Algorithm) Header Parameter values. Availability depends on the runtime. */
|
|
5
2
|
export type JWSAlgorithm =
|
|
6
3
|
| 'HS256'
|
|
7
4
|
| 'HS384'
|
|
@@ -22,10 +19,7 @@ export type JWSAlgorithm =
|
|
|
22
19
|
| 'ML-DSA-87'
|
|
23
20
|
| (string & {})
|
|
24
21
|
|
|
25
|
-
/**
|
|
26
|
-
* JWE "alg" (Algorithm) Header Parameter values supported by this module. Availability of a given
|
|
27
|
-
* identifier additionally depends on the runtime.
|
|
28
|
-
*/
|
|
22
|
+
/** Supported JWE "alg" (Algorithm) Header Parameter values. Availability depends on the runtime. */
|
|
29
23
|
export type JWEKeyManagementAlgorithm =
|
|
30
24
|
| 'dir'
|
|
31
25
|
| 'A128KW'
|
|
@@ -48,8 +42,8 @@ export type JWEKeyManagementAlgorithm =
|
|
|
48
42
|
| (string & {})
|
|
49
43
|
|
|
50
44
|
/**
|
|
51
|
-
* JWE "enc" (Encryption Algorithm) Header Parameter values
|
|
52
|
-
*
|
|
45
|
+
* Supported JWE "enc" (Encryption Algorithm) Header Parameter values. Availability depends on the
|
|
46
|
+
* runtime.
|
|
53
47
|
*/
|
|
54
48
|
export type JWEContentEncryptionAlgorithm =
|
|
55
49
|
| 'A128CBC-HS256'
|
|
@@ -74,35 +68,37 @@ export type JWKParameters = {
|
|
|
74
68
|
kty?: JWKKeyType
|
|
75
69
|
/** JWK "alg" (Algorithm) Parameter */
|
|
76
70
|
alg?: JWSAlgorithm | JWEKeyManagementAlgorithm | JWEContentEncryptionAlgorithm
|
|
77
|
-
/**
|
|
71
|
+
/** Permitted key operations. */
|
|
78
72
|
key_ops?: string[]
|
|
79
|
-
/**
|
|
73
|
+
/** Whether the key may be exported. */
|
|
80
74
|
ext?: boolean
|
|
75
|
+
|
|
81
76
|
/** JWK "use" (Public Key Use) Parameter */
|
|
82
77
|
use?: 'sig' | 'enc' | (string & {})
|
|
83
|
-
/**
|
|
78
|
+
/** X.509 certificate chain. */
|
|
84
79
|
x5c?: string[]
|
|
85
|
-
/**
|
|
80
|
+
/** X.509 certificate SHA-1 thumbprint. */
|
|
86
81
|
x5t?: string
|
|
87
|
-
/**
|
|
82
|
+
/** X.509 certificate SHA-256 thumbprint. */
|
|
88
83
|
'x5t#S256'?: string
|
|
89
|
-
/**
|
|
84
|
+
/** X.509 certificate URL. */
|
|
90
85
|
x5u?: string
|
|
86
|
+
|
|
91
87
|
/** JWK "kid" (Key ID) Parameter */
|
|
92
88
|
kid?: string
|
|
93
89
|
}
|
|
94
90
|
|
|
95
91
|
/** Convenience interface for public OKP JSON Web Keys. */
|
|
96
92
|
export interface JWK_OKP_Public extends JWKParameters {
|
|
97
|
-
/**
|
|
93
|
+
/** Key pair subtype. */
|
|
98
94
|
crv: string
|
|
99
|
-
/**
|
|
95
|
+
/** Public key. */
|
|
100
96
|
x: string
|
|
101
97
|
}
|
|
102
98
|
|
|
103
99
|
/** Convenience interface for private OKP JSON Web Keys. */
|
|
104
100
|
export interface JWK_OKP_Private extends JWK_OKP_Public {
|
|
105
|
-
/**
|
|
101
|
+
/** Private key. */
|
|
106
102
|
d: string
|
|
107
103
|
}
|
|
108
104
|
|
|
@@ -110,6 +106,7 @@ export interface JWK_OKP_Private extends JWK_OKP_Public {
|
|
|
110
106
|
export interface JWK_AKP_Public extends JWKParameters {
|
|
111
107
|
/** JWK "alg" (Algorithm) Parameter */
|
|
112
108
|
alg: string
|
|
109
|
+
|
|
113
110
|
/** AKP JWK "pub" (The Public key) Parameter */
|
|
114
111
|
pub: string
|
|
115
112
|
}
|
|
@@ -122,47 +119,47 @@ export interface JWK_AKP_Private extends JWK_AKP_Public {
|
|
|
122
119
|
|
|
123
120
|
/** Convenience interface for public EC JSON Web Keys. */
|
|
124
121
|
export interface JWK_EC_Public extends JWKParameters {
|
|
125
|
-
/**
|
|
122
|
+
/** Curve. */
|
|
126
123
|
crv: string
|
|
127
|
-
/**
|
|
124
|
+
/** Public key X coordinate. */
|
|
128
125
|
x: string
|
|
129
|
-
/**
|
|
126
|
+
/** Public key Y coordinate. */
|
|
130
127
|
y: string
|
|
131
128
|
}
|
|
132
129
|
|
|
133
130
|
/** Convenience interface for private EC JSON Web Keys. */
|
|
134
131
|
export interface JWK_EC_Private extends JWK_EC_Public {
|
|
135
|
-
/**
|
|
132
|
+
/** Private key. */
|
|
136
133
|
d: string
|
|
137
134
|
}
|
|
138
135
|
|
|
139
136
|
/** Convenience interface for public RSA JSON Web Keys. */
|
|
140
137
|
export interface JWK_RSA_Public extends JWKParameters {
|
|
141
|
-
/**
|
|
138
|
+
/** Public exponent. */
|
|
142
139
|
e: string
|
|
143
|
-
/**
|
|
140
|
+
/** Modulus. */
|
|
144
141
|
n: string
|
|
145
142
|
}
|
|
146
143
|
|
|
147
144
|
/** Convenience interface for private RSA JSON Web Keys. */
|
|
148
145
|
export interface JWK_RSA_Private extends JWK_RSA_Public {
|
|
149
|
-
/**
|
|
146
|
+
/** Private exponent. */
|
|
150
147
|
d: string
|
|
151
|
-
/**
|
|
148
|
+
/** First factor CRT exponent. */
|
|
152
149
|
dp: string
|
|
153
|
-
/**
|
|
150
|
+
/** Second factor CRT exponent. */
|
|
154
151
|
dq: string
|
|
155
|
-
/**
|
|
152
|
+
/** First prime factor. */
|
|
156
153
|
p: string
|
|
157
|
-
/**
|
|
154
|
+
/** Second prime factor. */
|
|
158
155
|
q: string
|
|
159
|
-
/**
|
|
156
|
+
/** First CRT coefficient. */
|
|
160
157
|
qi: string
|
|
161
158
|
}
|
|
162
159
|
|
|
163
160
|
/** Convenience interface for "oct" JSON Web Keys. */
|
|
164
161
|
export interface JWK_oct extends JWKParameters {
|
|
165
|
-
/**
|
|
162
|
+
/** Symmetric key value. */
|
|
166
163
|
k: string
|
|
167
164
|
}
|
|
168
165
|
|
|
@@ -180,75 +177,67 @@ export type JWK = {
|
|
|
180
177
|
kty?: JWKKeyType
|
|
181
178
|
/** JWK "alg" (Algorithm) Parameter */
|
|
182
179
|
alg?: JWSAlgorithm | JWEKeyManagementAlgorithm | JWEContentEncryptionAlgorithm
|
|
183
|
-
/**
|
|
180
|
+
/** Permitted key operations. */
|
|
184
181
|
key_ops?: string[]
|
|
185
|
-
/**
|
|
182
|
+
/** Whether the key may be exported. */
|
|
186
183
|
ext?: boolean
|
|
184
|
+
|
|
187
185
|
/** JWK "use" (Public Key Use) Parameter */
|
|
188
186
|
use?: 'sig' | 'enc' | (string & {})
|
|
189
|
-
/**
|
|
187
|
+
/** X.509 certificate chain. */
|
|
190
188
|
x5c?: string[]
|
|
191
|
-
/**
|
|
189
|
+
/** X.509 certificate SHA-1 thumbprint. */
|
|
192
190
|
x5t?: string
|
|
193
|
-
/**
|
|
191
|
+
/** X.509 certificate SHA-256 thumbprint. */
|
|
194
192
|
'x5t#S256'?: string
|
|
195
|
-
/**
|
|
193
|
+
/** X.509 certificate URL. */
|
|
196
194
|
x5u?: string
|
|
195
|
+
|
|
197
196
|
/** JWK "kid" (Key ID) Parameter */
|
|
198
197
|
kid?: string
|
|
199
|
-
/**
|
|
200
|
-
* - EC JWK "crv" (Curve) Parameter
|
|
201
|
-
* - OKP JWK "crv" (The Subtype of Key Pair) Parameter
|
|
202
|
-
*/
|
|
198
|
+
/** EC curve or OKP key pair subtype. */
|
|
203
199
|
crv?: string
|
|
204
|
-
/**
|
|
205
|
-
* - Private RSA JWK "d" (Private Exponent) Parameter
|
|
206
|
-
* - Private EC JWK "d" (ECC Private Key) Parameter
|
|
207
|
-
* - Private OKP JWK "d" (The Private Key) Parameter
|
|
208
|
-
*/
|
|
200
|
+
/** Private RSA exponent, EC key, or OKP key. */
|
|
209
201
|
d?: string
|
|
210
|
-
/**
|
|
202
|
+
/** RSA first factor CRT exponent. */
|
|
211
203
|
dp?: string
|
|
212
|
-
/**
|
|
204
|
+
/** RSA second factor CRT exponent. */
|
|
213
205
|
dq?: string
|
|
214
|
-
/** RSA
|
|
206
|
+
/** RSA public exponent. */
|
|
215
207
|
e?: string
|
|
216
|
-
/**
|
|
208
|
+
/** Symmetric key value. */
|
|
217
209
|
k?: string
|
|
218
|
-
/** RSA
|
|
210
|
+
/** RSA modulus. */
|
|
219
211
|
n?: string
|
|
220
|
-
/**
|
|
212
|
+
/** RSA first prime factor. */
|
|
221
213
|
p?: string
|
|
222
|
-
/**
|
|
214
|
+
/** RSA second prime factor. */
|
|
223
215
|
q?: string
|
|
224
|
-
/**
|
|
216
|
+
/** RSA first CRT coefficient. */
|
|
225
217
|
qi?: string
|
|
226
|
-
/**
|
|
227
|
-
* - EC JWK "x" (X Coordinate) Parameter
|
|
228
|
-
* - OKP JWK "x" (The public key) Parameter
|
|
229
|
-
*/
|
|
218
|
+
/** EC public key X coordinate or OKP public key. */
|
|
230
219
|
x?: string
|
|
231
|
-
/** EC
|
|
220
|
+
/** EC public key Y coordinate. */
|
|
232
221
|
y?: string
|
|
222
|
+
|
|
233
223
|
/** AKP JWK "pub" (Public Key) Parameter */
|
|
234
224
|
pub?: string
|
|
225
|
+
|
|
235
226
|
/** AKP JWK "priv" (Private key) Parameter */
|
|
236
227
|
priv?: string
|
|
237
|
-
/** RSA
|
|
228
|
+
/** Additional RSA prime factors. */
|
|
238
229
|
oth?: Array<{
|
|
239
|
-
/**
|
|
230
|
+
/** Factor CRT exponent. */
|
|
240
231
|
d?: string
|
|
241
|
-
/**
|
|
232
|
+
/** Prime factor. */
|
|
242
233
|
r?: string
|
|
243
|
-
/**
|
|
234
|
+
/** Factor CRT coefficient. */
|
|
244
235
|
t?: string
|
|
245
236
|
}>
|
|
246
237
|
}
|
|
247
238
|
|
|
248
|
-
/** Discriminated union of
|
|
249
|
-
//
|
|
250
|
-
// union - `X & (A | B)` means the same thing, but typedoc renders it without the parentheses, which
|
|
251
|
-
// reads as though the second arm carried no "kty" at all.
|
|
239
|
+
/** Discriminated union of supported JSON Web Key shapes, narrowed by the "kty" (Key Type) Parameter. */
|
|
240
|
+
// Intersect "kty" into each member separately: typedoc omits the parentheses in `X & (A | B)`.
|
|
252
241
|
export type AnyJWK =
|
|
253
242
|
| (JWK_EC_Private & { kty: 'EC' })
|
|
254
243
|
| (JWK_EC_Public & { kty: 'EC' })
|
|
@@ -266,48 +255,31 @@ export type KeyInput = CryptoKey | KeyObject | JWK | Uint8Array
|
|
|
266
255
|
/** Dynamic key resolver for consuming operations. */
|
|
267
256
|
export interface GetKeyFunction<IProtectedHeader, IToken, KeyTypes extends KeyInput = KeyInput> {
|
|
268
257
|
/**
|
|
269
|
-
*
|
|
270
|
-
* function call. If a suitable key for the token cannot be matched, throw an error instead.
|
|
258
|
+
* Resolves a key for an unverified token. Throw if no suitable key can be resolved.
|
|
271
259
|
*
|
|
272
|
-
* @param token The consumed JWE or JWS token.
|
|
260
|
+
* @param token The consumed JWE or JWS token; none of its components have been verified.
|
|
273
261
|
*/
|
|
274
262
|
(protectedHeader: IProtectedHeader, token: IToken): Promise<KeyTypes> | KeyTypes
|
|
275
263
|
}
|
|
276
264
|
|
|
277
265
|
/** Flattened JWS verification input. */
|
|
278
266
|
export interface FlattenedJWSInput {
|
|
279
|
-
/**
|
|
280
|
-
* The "header" member MUST be present and contain the value JWS Unprotected Header when the JWS
|
|
281
|
-
* Unprotected Header value is non- empty; otherwise, it MUST be absent. This value is represented
|
|
282
|
-
* as an unencoded JSON object, rather than as a string. These Header Parameter values are not
|
|
283
|
-
* integrity protected.
|
|
284
|
-
*/
|
|
267
|
+
/** JWS Unprotected Header as a JSON object. Not integrity protected; omit when empty. */
|
|
285
268
|
header?: JWSHeaderParameters
|
|
286
269
|
|
|
287
|
-
/**
|
|
288
|
-
* The "payload" member MUST be present and contain the value BASE64URL(JWS Payload). When RFC7797
|
|
289
|
-
* "b64": false is used the value passed may also be a {@link !Uint8Array}.
|
|
290
|
-
*/
|
|
270
|
+
/** Base64url-encoded payload; with `b64: false`, supply an unencoded string or Uint8Array. */
|
|
291
271
|
payload: string | Uint8Array
|
|
292
272
|
|
|
293
|
-
/**
|
|
294
|
-
* The "protected" member MUST be present and contain the value BASE64URL(UTF8(JWS Protected
|
|
295
|
-
* Header)) when the JWS Protected Header value is non-empty; otherwise, it MUST be absent. These
|
|
296
|
-
* Header Parameter values are integrity protected.
|
|
297
|
-
*/
|
|
273
|
+
/** Base64url-encoded UTF-8 JWS Protected Header. Integrity protected; omit when empty. */
|
|
298
274
|
protected?: string
|
|
299
275
|
|
|
300
|
-
/**
|
|
276
|
+
/** Base64url-encoded signature or MAC. */
|
|
301
277
|
signature: string
|
|
302
278
|
}
|
|
303
279
|
|
|
304
280
|
/** General JWS verification input. */
|
|
305
281
|
export interface GeneralJWSInput {
|
|
306
|
-
/**
|
|
307
|
-
* The "payload" member MUST be present and contain the value BASE64URL(JWS Payload). When when
|
|
308
|
-
* JWS Unencoded Payload ({@link https://www.rfc-editor.org/info/rfc7797/ RFC7797}) "b64": false is
|
|
309
|
-
* used the value passed may also be a {@link !Uint8Array}.
|
|
310
|
-
*/
|
|
282
|
+
/** Base64url-encoded payload; with `b64: false`, supply an unencoded string or Uint8Array. */
|
|
311
283
|
payload: string | Uint8Array
|
|
312
284
|
|
|
313
285
|
/**
|
|
@@ -317,13 +289,19 @@ export interface GeneralJWSInput {
|
|
|
317
289
|
signatures: Omit<FlattenedJWSInput, 'payload'>[]
|
|
318
290
|
}
|
|
319
291
|
|
|
320
|
-
/**
|
|
292
|
+
/**
|
|
293
|
+
* Flattened JWS JSON Serialization token. The payload is an empty string when the
|
|
294
|
+
* {@link https://www.rfc-editor.org/info/rfc7797/ unencoded payload option} is used.
|
|
295
|
+
*/
|
|
321
296
|
export interface FlattenedJWS extends Partial<FlattenedJWSInput> {
|
|
322
297
|
payload: string
|
|
323
298
|
signature: string
|
|
324
299
|
}
|
|
325
300
|
|
|
326
|
-
/**
|
|
301
|
+
/**
|
|
302
|
+
* General JWS JSON Serialization token. The payload is an empty string when the
|
|
303
|
+
* {@link https://www.rfc-editor.org/info/rfc7797/ unencoded payload option} is used.
|
|
304
|
+
*/
|
|
327
305
|
export interface GeneralJWS {
|
|
328
306
|
payload: string
|
|
329
307
|
signatures: Omit<FlattenedJWSInput, 'payload'>[]
|
|
@@ -334,28 +312,25 @@ export interface JoseHeaderParameters {
|
|
|
334
312
|
/** "kid" (Key ID) Header Parameter */
|
|
335
313
|
kid?: string
|
|
336
314
|
|
|
337
|
-
/**
|
|
315
|
+
/** X.509 certificate SHA-1 thumbprint. */
|
|
338
316
|
x5t?: string
|
|
339
317
|
|
|
340
|
-
/**
|
|
318
|
+
/** X.509 certificate chain. */
|
|
341
319
|
x5c?: string[]
|
|
342
320
|
|
|
343
|
-
/**
|
|
321
|
+
/** X.509 certificate URL. */
|
|
344
322
|
x5u?: string
|
|
345
323
|
|
|
346
|
-
/**
|
|
324
|
+
/** JWK Set URL. */
|
|
347
325
|
jku?: string
|
|
348
326
|
|
|
349
|
-
/**
|
|
350
|
-
* "jwk" (JSON Web Key) Header Parameter. This must be a public JSON Web Key; private and
|
|
351
|
-
* symmetric key parameters are not permitted.
|
|
352
|
-
*/
|
|
327
|
+
/** Public JWK only; private and symmetric key parameters are not permitted. */
|
|
353
328
|
jwk?: Omit<JWK, 'd' | 'dp' | 'dq' | 'k' | 'p' | 'q' | 'qi' | 'priv' | 'oth'>
|
|
354
329
|
|
|
355
330
|
/** "typ" (Type) Header Parameter */
|
|
356
331
|
typ?: string
|
|
357
332
|
|
|
358
|
-
/**
|
|
333
|
+
/** Content type. */
|
|
359
334
|
cty?: string
|
|
360
335
|
}
|
|
361
336
|
|
|
@@ -365,12 +340,13 @@ export interface JWSHeaderParameters extends JoseHeaderParameters {
|
|
|
365
340
|
alg?: JWSAlgorithm
|
|
366
341
|
|
|
367
342
|
/**
|
|
368
|
-
*
|
|
369
|
-
*
|
|
343
|
+
* Controls payload encoding and the JWS signing input as defined by
|
|
344
|
+
* {@link https://www.rfc-editor.org/info/rfc7797/ RFC7797}. Set to `false` and list `b64` in
|
|
345
|
+
* `crit` to use an unencoded payload.
|
|
370
346
|
*/
|
|
371
347
|
b64?: boolean
|
|
372
348
|
|
|
373
|
-
/**
|
|
349
|
+
/** Extension parameters that must be recognized. */
|
|
374
350
|
crit?: string[]
|
|
375
351
|
|
|
376
352
|
/** Any other JWS Header member. */
|
|
@@ -379,92 +355,53 @@ export interface JWSHeaderParameters extends JoseHeaderParameters {
|
|
|
379
355
|
|
|
380
356
|
/** Recognized JWE Key Management-related Header Parameters. */
|
|
381
357
|
export interface JWEKeyManagementHeaderParameters {
|
|
382
|
-
/**
|
|
383
|
-
* ECDH-ES "apu" (Agreement PartyUInfo). This will be used as a JOSE Header Parameter and will be
|
|
384
|
-
* used in ECDH's ConcatKDF.
|
|
385
|
-
*/
|
|
358
|
+
/** ECDH-ES Agreement PartyUInfo bytes, used in ConcatKDF and added to the JOSE header. */
|
|
386
359
|
apu?: Uint8Array
|
|
387
360
|
|
|
388
|
-
/**
|
|
389
|
-
* ECDH-ES "apv" (Agreement PartyVInfo). This will be used as a JOSE Header Parameter and will be
|
|
390
|
-
* used in ECDH's ConcatKDF.
|
|
391
|
-
*/
|
|
361
|
+
/** ECDH-ES Agreement PartyVInfo bytes, used in ConcatKDF and added to the JOSE header. */
|
|
392
362
|
apv?: Uint8Array
|
|
393
363
|
|
|
394
|
-
/**
|
|
395
|
-
* PBES2 "p2c" (PBES2 Count). This will be used as a JOSE Header Parameter and as the PBKDF2
|
|
396
|
-
* iteration count.
|
|
397
|
-
*/
|
|
364
|
+
/** PBES2 PBKDF2 iteration count, added to the JOSE header. */
|
|
398
365
|
p2c?: number
|
|
399
366
|
|
|
400
|
-
/**
|
|
401
|
-
* @deprecated You should not use this parameter. It is only intended for testing and vector
|
|
402
|
-
* validation purposes.
|
|
403
|
-
*/
|
|
367
|
+
/** @deprecated For testing and vector validation only. */
|
|
404
368
|
p2s?: Uint8Array
|
|
405
|
-
/**
|
|
406
|
-
* @deprecated You should not use this parameter. It is only intended for testing and vector
|
|
407
|
-
* validation purposes.
|
|
408
|
-
*/
|
|
369
|
+
/** @deprecated For testing and vector validation only. */
|
|
409
370
|
iv?: Uint8Array
|
|
410
|
-
/**
|
|
411
|
-
* @deprecated You should not use this parameter. It is only intended for testing and vector
|
|
412
|
-
* validation purposes.
|
|
413
|
-
*/
|
|
371
|
+
/** @deprecated For testing and vector validation only. */
|
|
414
372
|
epk?: CryptoKey | KeyObject
|
|
415
373
|
}
|
|
416
374
|
|
|
417
375
|
/** Flattened JWE JSON Serialization token. */
|
|
418
376
|
export interface FlattenedJWE {
|
|
419
377
|
/**
|
|
420
|
-
*
|
|
421
|
-
*
|
|
422
|
-
* base64url-encoded value to be integrity protected but not encrypted.
|
|
378
|
+
* Base64url-encoded additional authenticated data; integrity protected but not encrypted. Omit
|
|
379
|
+
* when empty.
|
|
423
380
|
*/
|
|
424
381
|
aad?: string
|
|
425
382
|
|
|
426
|
-
/**
|
|
383
|
+
/** Base64url-encoded ciphertext. */
|
|
427
384
|
ciphertext: string
|
|
428
385
|
|
|
429
|
-
/**
|
|
430
|
-
* The "encrypted_key" member MUST be present and contain the value BASE64URL(JWE Encrypted Key)
|
|
431
|
-
* when the JWE Encrypted Key value is non-empty; otherwise, it MUST be absent.
|
|
432
|
-
*/
|
|
386
|
+
/** Base64url-encoded encrypted key. Omit when empty. */
|
|
433
387
|
encrypted_key?: string
|
|
434
388
|
|
|
435
389
|
/**
|
|
436
|
-
*
|
|
437
|
-
*
|
|
438
|
-
* This value is represented as an unencoded JSON object, rather than as a string. These Header
|
|
439
|
-
* Parameter values are not integrity protected.
|
|
390
|
+
* JWE Per-Recipient Unprotected Header as a JSON object. Not integrity protected; omit when
|
|
391
|
+
* empty.
|
|
440
392
|
*/
|
|
441
393
|
header?: JWEHeaderParameters
|
|
442
394
|
|
|
443
|
-
/**
|
|
444
|
-
* The "iv" member MUST be present and contain the value BASE64URL(JWE Initialization Vector) when
|
|
445
|
-
* the JWE Initialization Vector value is non-empty; otherwise, it MUST be absent.
|
|
446
|
-
*/
|
|
395
|
+
/** Base64url-encoded initialization vector. Omit when empty. */
|
|
447
396
|
iv?: string
|
|
448
397
|
|
|
449
|
-
/**
|
|
450
|
-
* The "protected" member MUST be present and contain the value BASE64URL(UTF8(JWE Protected
|
|
451
|
-
* Header)) when the JWE Protected Header value is non-empty; otherwise, it MUST be absent. These
|
|
452
|
-
* Header Parameter values are integrity protected.
|
|
453
|
-
*/
|
|
398
|
+
/** Base64url-encoded UTF-8 JWE Protected Header. Integrity protected; omit when empty. */
|
|
454
399
|
protected?: string
|
|
455
400
|
|
|
456
|
-
/**
|
|
457
|
-
* The "tag" member MUST be present and contain the value BASE64URL(JWE Authentication Tag) when
|
|
458
|
-
* the JWE Authentication Tag value is non-empty; otherwise, it MUST be absent.
|
|
459
|
-
*/
|
|
401
|
+
/** Base64url-encoded authentication tag. Omit when empty. */
|
|
460
402
|
tag?: string
|
|
461
403
|
|
|
462
|
-
/**
|
|
463
|
-
* The "unprotected" member MUST be present and contain the value JWE Shared Unprotected Header
|
|
464
|
-
* when the JWE Shared Unprotected Header value is non-empty; otherwise, it MUST be absent. This
|
|
465
|
-
* value is represented as an unencoded JSON object, rather than as a string. These Header
|
|
466
|
-
* Parameter values are not integrity protected.
|
|
467
|
-
*/
|
|
404
|
+
/** JWE Shared Unprotected Header as a JSON object. Not integrity protected; omit when empty. */
|
|
468
405
|
unprotected?: JWEHeaderParameters
|
|
469
406
|
}
|
|
470
407
|
|
|
@@ -481,13 +418,12 @@ export interface JWEHeaderParameters extends JoseHeaderParameters {
|
|
|
481
418
|
/** JWE "enc" (Encryption Algorithm) Header Parameter */
|
|
482
419
|
enc?: JWEContentEncryptionAlgorithm
|
|
483
420
|
|
|
484
|
-
/**
|
|
421
|
+
/** Extension parameters that must be recognized. */
|
|
485
422
|
crit?: string[]
|
|
486
423
|
|
|
487
424
|
/**
|
|
488
|
-
* JWE "
|
|
489
|
-
*
|
|
490
|
-
* in the runtime.
|
|
425
|
+
* JWE compression algorithm. Only `"DEF"` (DEFLATE) is supported, requiring the runtime's
|
|
426
|
+
* `CompressionStream` / `DecompressionStream` APIs.
|
|
491
427
|
*/
|
|
492
428
|
zip?: 'DEF' | (string & {})
|
|
493
429
|
|
|
@@ -498,16 +434,13 @@ export interface JWEHeaderParameters extends JoseHeaderParameters {
|
|
|
498
434
|
/** Shared "crit" option for signing, verification, encryption, and decryption. */
|
|
499
435
|
export interface CritOption {
|
|
500
436
|
/**
|
|
501
|
-
*
|
|
502
|
-
*
|
|
503
|
-
*
|
|
504
|
-
* recognized and processed properly; no other registered Header Parameters currently receive this
|
|
505
|
-
* built-in treatment.
|
|
437
|
+
* Recognized "crit" (Critical) Header Parameter names. Set each value to `true` to require
|
|
438
|
+
* integrity protection, or `false` when protection is optional. The JWS `b64` extension is always
|
|
439
|
+
* recognized and processed.
|
|
506
440
|
*
|
|
507
|
-
* > Warning:
|
|
508
|
-
* >
|
|
509
|
-
* >
|
|
510
|
-
* > the profile's validation steps after the operation succeeds.
|
|
441
|
+
* > Warning: Other extensions are only checked for syntax and optional integrity protection. Their presence
|
|
442
|
+
* > is not required by this option. You must check their presence and process them according to the
|
|
443
|
+
* > profile's validation steps after the operation succeeds.
|
|
511
444
|
*/
|
|
512
445
|
crit?: {
|
|
513
446
|
[propName: string]: boolean
|
|
@@ -517,31 +450,27 @@ export interface CritOption {
|
|
|
517
450
|
/** JWE Decryption options. */
|
|
518
451
|
export interface DecryptOptions extends CritOption {
|
|
519
452
|
/**
|
|
520
|
-
*
|
|
521
|
-
*
|
|
522
|
-
* all PBES2 Key Management Algorithms, these need to be explicitly allowed using this option.
|
|
453
|
+
* Accepted JWE "alg" (Algorithm) Header Parameter values. Defaults to all algorithms applicable
|
|
454
|
+
* to the key or secret except PBES2, which must be explicitly allowed.
|
|
523
455
|
*/
|
|
524
456
|
keyManagementAlgorithms?: JWEKeyManagementAlgorithm[]
|
|
525
457
|
|
|
526
458
|
/**
|
|
527
|
-
*
|
|
528
|
-
*
|
|
459
|
+
* Accepted JWE "enc" (Encryption Algorithm) Header Parameter values. Defaults to all algorithms
|
|
460
|
+
* applicable to the key or secret.
|
|
529
461
|
*/
|
|
530
462
|
contentEncryptionAlgorithms?: JWEContentEncryptionAlgorithm[]
|
|
531
463
|
|
|
532
464
|
/**
|
|
533
|
-
*
|
|
534
|
-
*
|
|
535
|
-
*
|
|
536
|
-
* `Infinity` to disable the limit.
|
|
465
|
+
* Maximum "p2c" (PBES2 Count) Header Parameter value, limiting PBKDF2 iterations and their
|
|
466
|
+
* computational expense. Defaults to 10000; must be a positive safe integer or `Infinity` to
|
|
467
|
+
* disable the limit.
|
|
537
468
|
*/
|
|
538
469
|
maxPBES2Count?: number
|
|
539
470
|
|
|
540
471
|
/**
|
|
541
|
-
* Maximum
|
|
542
|
-
*
|
|
543
|
-
* value must be `0`, a positive safe integer, or `Infinity`. Set it to `0` to reject all
|
|
544
|
-
* compressed JWEs during decryption or to `Infinity` to disable the decompressed size limit.
|
|
472
|
+
* Maximum decompressed plaintext size in bytes. Defaults to 250000; `0` rejects compressed JWEs,
|
|
473
|
+
* and `Infinity` disables the limit. Other values must be positive safe integers.
|
|
545
474
|
*/
|
|
546
475
|
maxDecompressedLength?: number
|
|
547
476
|
}
|
|
@@ -551,55 +480,38 @@ export interface EncryptOptions extends CritOption {}
|
|
|
551
480
|
|
|
552
481
|
/** JWT Claims Set verification options. */
|
|
553
482
|
export interface JWTClaimVerificationOptions {
|
|
554
|
-
/**
|
|
555
|
-
* Expected JWT "aud" (Audience) Claim value(s). This option makes the JWT "aud" (Audience) Claim
|
|
556
|
-
* presence required.
|
|
557
|
-
*/
|
|
483
|
+
/** Expected JWT "aud" (Audience) Claim value(s). Requires the claim to be present. */
|
|
558
484
|
audience?: string | string[]
|
|
559
485
|
|
|
560
486
|
/**
|
|
561
|
-
* Clock skew tolerance in seconds
|
|
562
|
-
* (
|
|
563
|
-
*
|
|
564
|
-
* {@link maxTokenAge `maxTokenAge` option} is set.
|
|
487
|
+
* Clock skew tolerance in seconds or a duration string (e.g. "5 seconds"). Applies to the "nbf"
|
|
488
|
+
* (Not Before) and "exp" (Expiration Time) claims, and to "iat" (Issued At) when
|
|
489
|
+
* {@link maxTokenAge} is set.
|
|
565
490
|
*/
|
|
566
491
|
clockTolerance?: string | number
|
|
567
492
|
|
|
568
|
-
/**
|
|
569
|
-
* Expected JWT "iss" (Issuer) Claim value(s). This option makes the JWT "iss" (Issuer) Claim
|
|
570
|
-
* presence required.
|
|
571
|
-
*/
|
|
493
|
+
/** Expected JWT "iss" (Issuer) Claim value(s). Requires the claim to be present. */
|
|
572
494
|
issuer?: string | string[]
|
|
573
495
|
|
|
574
496
|
/**
|
|
575
|
-
* Maximum time
|
|
576
|
-
*
|
|
577
|
-
* option makes the JWT "iat" (Issued At) Claim presence required.
|
|
497
|
+
* Maximum time since the JWT "iat" (Issued At) Claim, in seconds or a duration string (e.g. "2
|
|
498
|
+
* hours"). Requires the claim to be present.
|
|
578
499
|
*/
|
|
579
500
|
maxTokenAge?: string | number
|
|
580
501
|
|
|
581
|
-
/**
|
|
582
|
-
* Expected JWT "sub" (Subject) Claim value. This option makes the JWT "sub" (Subject) Claim
|
|
583
|
-
* presence required.
|
|
584
|
-
*/
|
|
502
|
+
/** Expected JWT "sub" (Subject) Claim value. Requires the claim to be present. */
|
|
585
503
|
subject?: string
|
|
586
504
|
|
|
587
|
-
/**
|
|
588
|
-
* Expected JWT "typ" (Type) Header Parameter value. This option makes the JWT "typ" (Type) Header
|
|
589
|
-
* Parameter presence required.
|
|
590
|
-
*/
|
|
505
|
+
/** Expected JWT "typ" (Type) Header Parameter value. Requires the parameter to be present. */
|
|
591
506
|
typ?: string
|
|
592
507
|
|
|
593
|
-
/** Date
|
|
508
|
+
/** Date for NumericDate comparisons. Defaults to `new Date()`. */
|
|
594
509
|
currentDate?: Date
|
|
595
510
|
|
|
596
511
|
/**
|
|
597
|
-
*
|
|
598
|
-
*
|
|
599
|
-
*
|
|
600
|
-
* the {@link subject `subject` option} is set, then JWT "sub" (Subject) Claim must be present; if
|
|
601
|
-
* the {@link maxTokenAge `maxTokenAge` option} is set, then JWT "iat" (Issued At) Claim must be
|
|
602
|
-
* present.
|
|
512
|
+
* Additional claim names required in the JWT Claims Set. The {@link issuer}, {@link audience},
|
|
513
|
+
* {@link subject}, and {@link maxTokenAge} options independently require "iss", "aud", "sub", and
|
|
514
|
+
* "iat", respectively.
|
|
603
515
|
*/
|
|
604
516
|
requiredClaims?: string[]
|
|
605
517
|
}
|
|
@@ -607,10 +519,8 @@ export interface JWTClaimVerificationOptions {
|
|
|
607
519
|
/** JWS Verification options. */
|
|
608
520
|
export interface VerifyOptions extends CritOption {
|
|
609
521
|
/**
|
|
610
|
-
*
|
|
611
|
-
*
|
|
612
|
-
*
|
|
613
|
-
* > Note: Unsecured JWTs (`{ "alg": "none" }`) are never accepted by this API.
|
|
522
|
+
* Accepted JWS "alg" (Algorithm) Header Parameter values. Defaults to all algorithms applicable
|
|
523
|
+
* to the key or secret. Unsecured JWTs (`alg: "none"`) are never accepted.
|
|
614
524
|
*/
|
|
615
525
|
algorithms?: JWSAlgorithm[]
|
|
616
526
|
}
|
|
@@ -632,13 +542,13 @@ export interface JWTPayload {
|
|
|
632
542
|
/** JWT ID */
|
|
633
543
|
jti?: string
|
|
634
544
|
|
|
635
|
-
/**
|
|
545
|
+
/** Not valid before this Unix timestamp in seconds. */
|
|
636
546
|
nbf?: number
|
|
637
547
|
|
|
638
|
-
/**
|
|
548
|
+
/** Expiration Unix timestamp in seconds. */
|
|
639
549
|
exp?: number
|
|
640
550
|
|
|
641
|
-
/**
|
|
551
|
+
/** Issued-at Unix timestamp in seconds. */
|
|
642
552
|
iat?: number
|
|
643
553
|
|
|
644
554
|
/** Any other JWT Claim Set member. */
|
|
@@ -647,7 +557,7 @@ export interface JWTPayload {
|
|
|
647
557
|
|
|
648
558
|
/** Flattened JWE JSON Serialization decryption result. */
|
|
649
559
|
export interface FlattenedDecryptResult {
|
|
650
|
-
/** JWE
|
|
560
|
+
/** JWE Additional Authenticated Data, integrity protected but not encrypted. */
|
|
651
561
|
additionalAuthenticatedData?: Uint8Array
|
|
652
562
|
|
|
653
563
|
/** Plaintext. */
|
|
@@ -656,10 +566,10 @@ export interface FlattenedDecryptResult {
|
|
|
656
566
|
/** JWE Protected Header. */
|
|
657
567
|
protectedHeader?: JWEHeaderParameters
|
|
658
568
|
|
|
659
|
-
/** JWE Shared Unprotected Header. */
|
|
569
|
+
/** JWE Shared Unprotected Header. Not integrity protected. */
|
|
660
570
|
sharedUnprotectedHeader?: JWEHeaderParameters
|
|
661
571
|
|
|
662
|
-
/** JWE Per-Recipient Unprotected Header. */
|
|
572
|
+
/** JWE Per-Recipient Unprotected Header. Not integrity protected. */
|
|
663
573
|
unprotectedHeader?: JWEHeaderParameters
|
|
664
574
|
}
|
|
665
575
|
|
|
@@ -683,7 +593,7 @@ export interface FlattenedVerifyResult {
|
|
|
683
593
|
/** JWS Protected Header. */
|
|
684
594
|
protectedHeader?: JWSHeaderParameters
|
|
685
595
|
|
|
686
|
-
/** JWS Unprotected Header. */
|
|
596
|
+
/** JWS Unprotected Header. Not integrity protected. */
|
|
687
597
|
unprotectedHeader?: JWSHeaderParameters
|
|
688
598
|
}
|
|
689
599
|
|
|
@@ -723,7 +633,7 @@ export interface JWTDecryptResult<PayloadType = JWTPayload> {
|
|
|
723
633
|
|
|
724
634
|
/** Key resolver result metadata. */
|
|
725
635
|
export interface ResolvedKey<KeyType extends CryptoKey | Uint8Array = CryptoKey | Uint8Array> {
|
|
726
|
-
/**
|
|
636
|
+
/** The resolved key, present only when a key resolver is used. */
|
|
727
637
|
key: KeyType
|
|
728
638
|
}
|
|
729
639
|
|
|
@@ -753,14 +663,14 @@ export interface KeyObject {
|
|
|
753
663
|
type: string
|
|
754
664
|
}
|
|
755
665
|
|
|
756
|
-
/** Web
|
|
666
|
+
/** The runtime's Web Crypto {@link !CryptoKey} representation accepted as key input. */
|
|
757
667
|
export type CryptoKey = typeof globalThis extends {
|
|
758
668
|
crypto: { subtle: { generateKey(...args: any[]): Promise<infer R> } }
|
|
759
669
|
}
|
|
760
670
|
? Extract<R, { type: string }>
|
|
761
671
|
: CryptoKeyStructuralFallback
|
|
762
672
|
|
|
763
|
-
/** Structural fallback used when
|
|
673
|
+
/** Structural fallback used when the host {@link !CryptoKey} type cannot be inferred. */
|
|
764
674
|
export interface CryptoKeyStructuralFallback {
|
|
765
675
|
readonly algorithm: { name: string }
|
|
766
676
|
readonly extractable: boolean
|
|
@@ -799,33 +709,28 @@ export interface ProduceJWT {
|
|
|
799
709
|
setJti(jwtId: string): this
|
|
800
710
|
|
|
801
711
|
/**
|
|
802
|
-
* Set the "nbf" (Not Before) Claim.
|
|
803
|
-
*
|
|
804
|
-
*
|
|
805
|
-
* a year is 365.25 days. A leading `-` or trailing `"ago"` subtracts the time span.
|
|
712
|
+
* Set the "nbf" (Not Before) Claim. Numbers are Unix timestamps in seconds; Dates are converted
|
|
713
|
+
* to seconds. Strings are relative to now, using seconds, minutes, hours, days, weeks, or years
|
|
714
|
+
* (365.25 days; no months). Prefix `-` or suffix `ago` subtracts the duration.
|
|
806
715
|
*
|
|
807
|
-
* @param input "nbf" (Not Before) Claim value
|
|
716
|
+
* @param input "nbf" (Not Before) Claim value as a timestamp, Date, or relative duration.
|
|
808
717
|
*/
|
|
809
718
|
setNotBefore(input: number | string | Date): this
|
|
810
719
|
|
|
811
720
|
/**
|
|
812
|
-
* Set the "exp" (Expiration Time) Claim.
|
|
813
|
-
*
|
|
814
|
-
* String units may be seconds, minutes, hours, days, weeks, or years; months are unsupported and
|
|
815
|
-
* a year is 365.25 days. A leading `-` or trailing `"ago"` subtracts the time span.
|
|
721
|
+
* Set the "exp" (Expiration Time) Claim. Accepts a Unix timestamp in seconds, a Date, or a
|
|
722
|
+
* duration relative to now using the same formats as {@link setNotBefore}.
|
|
816
723
|
*
|
|
817
|
-
* @param input "exp" (Expiration Time) Claim value
|
|
724
|
+
* @param input "exp" (Expiration Time) Claim value as a timestamp, Date, or relative duration.
|
|
818
725
|
*/
|
|
819
726
|
setExpirationTime(input: number | string | Date): this
|
|
820
727
|
|
|
821
728
|
/**
|
|
822
|
-
* Set the "iat" (Issued At) Claim.
|
|
823
|
-
*
|
|
824
|
-
*
|
|
825
|
-
* hours, days, weeks, or years; months are unsupported and a year is 365.25 days. A leading `-`
|
|
826
|
-
* or trailing `"ago"` subtracts the time span.
|
|
729
|
+
* Set the "iat" (Issued At) Claim. Defaults to the current Unix timestamp in seconds. Accepts a
|
|
730
|
+
* Unix timestamp in seconds, a Date, or a duration relative to now using the same formats as
|
|
731
|
+
* {@link setNotBefore}.
|
|
827
732
|
*
|
|
828
|
-
* @param input "iat" (Issued At) Claim value
|
|
733
|
+
* @param input "iat" (Issued At) Claim value as a timestamp, Date, or relative duration.
|
|
829
734
|
*/
|
|
830
735
|
setIssuedAt(input?: number | string | Date): this
|
|
831
736
|
}
|