@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/checkbox",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.5",
|
|
4
4
|
"description": "Inquirer checkbox prompt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@inquirer/ansi": "^2.0.8",
|
|
71
|
-
"@inquirer/core": "^12.0.
|
|
71
|
+
"@inquirer/core": "^12.0.3",
|
|
72
72
|
"@inquirer/figures": "^2.0.9",
|
|
73
73
|
"@inquirer/type": "4.1.1"
|
|
74
74
|
},
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
},
|
|
90
90
|
"main": "./dist/index.js",
|
|
91
91
|
"types": "./dist/index.d.ts",
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
|
|
93
93
|
}
|
|
@@ -33,7 +33,7 @@ export default createPrompt((config, done) => {
|
|
|
33
33
|
}
|
|
34
34
|
const { transformer = boolToString } = config;
|
|
35
35
|
function getBooleanValue(value, defaultValue) {
|
|
36
|
-
const v = value.toLowerCase();
|
|
36
|
+
const v = value.trim().toLowerCase();
|
|
37
37
|
if (v === '')
|
|
38
38
|
return defaultValue !== false;
|
|
39
39
|
if (yes.toLowerCase().startsWith(v))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/confirm",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.2",
|
|
4
4
|
"description": "Inquirer confirm prompt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tsc": "tsc"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@inquirer/core": "^12.0.
|
|
70
|
+
"@inquirer/core": "^12.0.3",
|
|
71
71
|
"@inquirer/type": "4.1.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
},
|
|
88
88
|
"main": "./dist/index.js",
|
|
89
89
|
"types": "./dist/index.d.ts",
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
|
|
91
91
|
}
|
|
@@ -10,6 +10,18 @@ import path from 'node:path';
|
|
|
10
10
|
// Capture the real setImmediate at module load time so it works even when test
|
|
11
11
|
// frameworks mock timers with vi.useFakeTimers() or similar.
|
|
12
12
|
const nativeSetImmediate = globalThis.setImmediate;
|
|
13
|
+
/**
|
|
14
|
+
* Register an event listener and return its disposer, so registrations collapse
|
|
15
|
+
* into a single statement: `cleanups.add(listenTo(rl, 'close', handler))`.
|
|
16
|
+
*/
|
|
17
|
+
function listenTo(target, event, listener) {
|
|
18
|
+
if ('on' in target) {
|
|
19
|
+
target.on(event, listener);
|
|
20
|
+
return () => target.removeListener(event, listener);
|
|
21
|
+
}
|
|
22
|
+
target.addEventListener(event, listener);
|
|
23
|
+
return () => target.removeEventListener(event, listener);
|
|
24
|
+
}
|
|
13
25
|
function getCallSites() {
|
|
14
26
|
// oxlint-disable-next-line typescript/unbound-method
|
|
15
27
|
const savedPrepareStackTrace = Error.prepareStackTrace;
|
|
@@ -53,41 +65,63 @@ export function createPrompt(view) {
|
|
|
53
65
|
output.mute();
|
|
54
66
|
const screen = new ScreenManager(rl);
|
|
55
67
|
const { promise, resolve, reject } = PromisePolyfill.withResolver();
|
|
56
|
-
const cancel = () => reject(new CancelPromptError());
|
|
57
|
-
if (signal) {
|
|
58
|
-
const abort = () => reject(new AbortPromptError({ cause: signal.reason }));
|
|
59
|
-
if (signal.aborted) {
|
|
60
|
-
abort();
|
|
61
|
-
return Object.assign(promise, { cancel });
|
|
62
|
-
}
|
|
63
|
-
signal.addEventListener('abort', abort);
|
|
64
|
-
cleanups.add(() => signal.removeEventListener('abort', abort));
|
|
65
|
-
}
|
|
66
|
-
cleanups.add(onSignalExit((code, signal) => {
|
|
67
|
-
reject(new ExitPromptError(`User force closed the prompt with ${code} ${signal}`));
|
|
68
|
-
}));
|
|
69
|
-
// SIGINT must be explicitly handled by the prompt so the ExitPromptError can be handled.
|
|
70
|
-
// Otherwise, the prompt will stop and in some scenarios never resolve.
|
|
71
|
-
// Ref issue #1741
|
|
72
|
-
const sigint = () => reject(new ExitPromptError(`User force closed the prompt with SIGINT`));
|
|
73
|
-
rl.on('SIGINT', sigint);
|
|
74
|
-
cleanups.add(() => rl.removeListener('SIGINT', sigint));
|
|
75
68
|
return withHooks(rl, (cycle) => {
|
|
76
|
-
//
|
|
77
|
-
//
|
|
78
|
-
//
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
69
|
+
// Clear hook effects synchronously before the prompt settles: readline
|
|
70
|
+
// emits keypresses synchronously within a single data event, so a
|
|
71
|
+
// microtask-deferred cleanup would let same-tick input keep driving a
|
|
72
|
+
// settled prompt.
|
|
73
|
+
const clearEffects = AsyncResource.bind(() => effectScheduler.clearAll());
|
|
74
|
+
// The promise resolvers and effectScheduler.clearAll() are both idempotent,
|
|
75
|
+
// so repeated settlement attempts are harmless no-ops. If a hook cleanup
|
|
76
|
+
// throws, the cleanup error supersedes the settlement: the answer (or
|
|
77
|
+
// settlement error, e.g. AbortPromptError) is dropped in favor of
|
|
78
|
+
// rejecting with the cleanup error.
|
|
79
|
+
const settlePrompt = (settle) => {
|
|
80
|
+
try {
|
|
81
|
+
clearEffects();
|
|
82
|
+
settle();
|
|
83
|
+
}
|
|
84
|
+
catch (error) {
|
|
85
|
+
reject(error);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const resolvePrompt = (value) => settlePrompt(() => resolve(value));
|
|
89
|
+
const rejectPrompt = (error) => settlePrompt(() => reject(error));
|
|
90
|
+
const promptPromise = Object.assign(promise
|
|
91
|
+
.finally(() => {
|
|
92
|
+
cleanups.forEach((cleanup) => cleanup());
|
|
93
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
|
94
|
+
output.end();
|
|
95
|
+
})
|
|
96
|
+
.then(() => promise), { cancel: () => rejectPrompt(new CancelPromptError()) });
|
|
97
|
+
if (signal) {
|
|
98
|
+
const abort = () => rejectPrompt(new AbortPromptError({ cause: signal.reason }));
|
|
99
|
+
if (signal.aborted) {
|
|
100
|
+
abort();
|
|
101
|
+
return promptPromise;
|
|
102
|
+
}
|
|
103
|
+
cleanups.add(listenTo(signal, 'abort', abort));
|
|
104
|
+
}
|
|
105
|
+
cleanups.add(onSignalExit((code, signal) => {
|
|
106
|
+
rejectPrompt(new ExitPromptError(`User force closed the prompt with ${code} ${signal}`));
|
|
107
|
+
}));
|
|
108
|
+
// SIGINT must be explicitly handled by the prompt so the ExitPromptError can be handled.
|
|
109
|
+
// Otherwise, the prompt will stop and in some scenarios never resolve.
|
|
110
|
+
// Ref issue #1741
|
|
111
|
+
cleanups.add(listenTo(rl, 'SIGINT', () => rejectPrompt(new ExitPromptError(`User force closed the prompt with SIGINT`))));
|
|
112
|
+
// Fallback for readline closing without the prompt settling (e.g. stdin
|
|
113
|
+
// EOF), so active effect timeouts still get cleared. Every settlement
|
|
114
|
+
// path already clears effects through settlePrompt; this event triggers
|
|
115
|
+
// immediately when the user presses ctrl+c, while signal-exit only
|
|
116
|
+
// triggers after the process is done (after timeouts finish triggering).
|
|
117
|
+
cleanups.add(listenTo(rl, 'close', clearEffects));
|
|
82
118
|
const startCycle = () => {
|
|
83
119
|
// Re-renders only happen when the state change; but the readline cursor could
|
|
84
120
|
// change position and that also requires a re-render (and a manual one because
|
|
85
121
|
// we mute the streams). We set the listener after the initial workLoop to avoid
|
|
86
122
|
// a double render if render triggered by a state change sets the cursor to the
|
|
87
123
|
// right position.
|
|
88
|
-
|
|
89
|
-
rl.input.on('keypress', checkCursorPos);
|
|
90
|
-
cleanups.add(() => rl.input.removeListener('keypress', checkCursorPos));
|
|
124
|
+
cleanups.add(listenTo(rl.input, 'keypress', () => screen.checkCursorPos()));
|
|
91
125
|
let pendingDone = null;
|
|
92
126
|
cycle(() => {
|
|
93
127
|
let effectsSettled = false;
|
|
@@ -97,7 +131,7 @@ export function createPrompt(view) {
|
|
|
97
131
|
// After the cycle completes (async validation path), the "done"
|
|
98
132
|
// render already flushed via setStatus → handleChange, so resolve
|
|
99
133
|
// immediately.
|
|
100
|
-
|
|
134
|
+
resolvePrompt(value);
|
|
101
135
|
}
|
|
102
136
|
else {
|
|
103
137
|
pendingDone = { value };
|
|
@@ -117,13 +151,13 @@ export function createPrompt(view) {
|
|
|
117
151
|
effectScheduler.run();
|
|
118
152
|
}
|
|
119
153
|
catch (error) {
|
|
120
|
-
|
|
154
|
+
rejectPrompt(error);
|
|
121
155
|
}
|
|
122
156
|
effectsSettled = true;
|
|
123
157
|
if (pendingDone !== null) {
|
|
124
158
|
const { value } = pendingDone;
|
|
125
159
|
pendingDone = null;
|
|
126
|
-
|
|
160
|
+
resolvePrompt(value);
|
|
127
161
|
}
|
|
128
162
|
});
|
|
129
163
|
};
|
|
@@ -143,22 +177,7 @@ export function createPrompt(view) {
|
|
|
143
177
|
else {
|
|
144
178
|
startCycle();
|
|
145
179
|
}
|
|
146
|
-
return
|
|
147
|
-
.then((answer) => {
|
|
148
|
-
effectScheduler.clearAll();
|
|
149
|
-
return answer;
|
|
150
|
-
}, (error) => {
|
|
151
|
-
effectScheduler.clearAll();
|
|
152
|
-
throw error;
|
|
153
|
-
})
|
|
154
|
-
// Wait for the promise to settle, then cleanup.
|
|
155
|
-
.finally(() => {
|
|
156
|
-
cleanups.forEach((cleanup) => cleanup());
|
|
157
|
-
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
|
158
|
-
output.end();
|
|
159
|
-
})
|
|
160
|
-
// Once cleanup is done, let the expose promise resolve/reject to the internal one.
|
|
161
|
-
.then(() => promise), { cancel });
|
|
180
|
+
return promptPromise;
|
|
162
181
|
});
|
|
163
182
|
};
|
|
164
183
|
return prompt;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/core",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.3",
|
|
4
4
|
"description": "Core Inquirer prompt API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
},
|
|
95
95
|
"main": "./dist/index.js",
|
|
96
96
|
"types": "./dist/index.d.ts",
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
|
|
98
98
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/editor",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.3",
|
|
4
4
|
"description": "Inquirer multiline editor prompt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tsc": "tsc"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@inquirer/core": "^12.0.
|
|
70
|
+
"@inquirer/core": "^12.0.3",
|
|
71
71
|
"@inquirer/external-editor": "^3.0.5",
|
|
72
72
|
"@inquirer/type": "4.1.1"
|
|
73
73
|
},
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
},
|
|
89
89
|
"main": "./dist/index.js",
|
|
90
90
|
"types": "./dist/index.d.ts",
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
|
|
92
92
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/expand",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.5",
|
|
4
4
|
"description": "Inquirer checkbox prompt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tsc": "tsc"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@inquirer/core": "^12.0.
|
|
70
|
+
"@inquirer/core": "^12.0.3",
|
|
71
71
|
"@inquirer/type": "4.1.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
},
|
|
88
88
|
"main": "./dist/index.js",
|
|
89
89
|
"types": "./dist/index.d.ts",
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
|
|
91
91
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/input",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.6",
|
|
4
4
|
"description": "Inquirer input text prompt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tsc": "tsc"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@inquirer/core": "^12.0.
|
|
70
|
+
"@inquirer/core": "^12.0.3",
|
|
71
71
|
"@inquirer/type": "4.1.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
},
|
|
88
88
|
"main": "./dist/index.js",
|
|
89
89
|
"types": "./dist/index.d.ts",
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
|
|
91
91
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/number",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3",
|
|
4
4
|
"description": "Inquirer number prompt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tsc": "tsc"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@inquirer/core": "^12.0.
|
|
70
|
+
"@inquirer/core": "^12.0.3",
|
|
71
71
|
"@inquirer/type": "4.1.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
},
|
|
88
88
|
"main": "./dist/index.js",
|
|
89
89
|
"types": "./dist/index.d.ts",
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
|
|
91
91
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/password",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.2",
|
|
4
4
|
"description": "Inquirer password prompt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@inquirer/ansi": "^2.0.8",
|
|
71
|
-
"@inquirer/core": "^12.0.
|
|
71
|
+
"@inquirer/core": "^12.0.3",
|
|
72
72
|
"@inquirer/type": "4.1.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
},
|
|
89
89
|
"main": "./dist/index.js",
|
|
90
90
|
"types": "./dist/index.d.ts",
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
|
|
92
92
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/rawlist",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.5",
|
|
4
4
|
"description": "Inquirer rawlist prompt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tsc": "tsc"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@inquirer/core": "^12.0.
|
|
70
|
+
"@inquirer/core": "^12.0.3",
|
|
71
71
|
"@inquirer/type": "4.1.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
},
|
|
88
88
|
"main": "./dist/index.js",
|
|
89
89
|
"types": "./dist/index.d.ts",
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
|
|
91
91
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/search",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.3",
|
|
4
4
|
"description": "Inquirer search prompt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tsc": "tsc"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@inquirer/core": "^12.0.
|
|
70
|
+
"@inquirer/core": "^12.0.3",
|
|
71
71
|
"@inquirer/figures": "^2.0.9",
|
|
72
72
|
"@inquirer/type": "4.1.1"
|
|
73
73
|
},
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
},
|
|
89
89
|
"main": "./dist/index.js",
|
|
90
90
|
"types": "./dist/index.d.ts",
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
|
|
92
92
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/select",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.5",
|
|
4
4
|
"description": "Inquirer select/list prompt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@inquirer/ansi": "^2.0.8",
|
|
71
|
-
"@inquirer/core": "^12.0.
|
|
71
|
+
"@inquirer/core": "^12.0.3",
|
|
72
72
|
"@inquirer/figures": "^2.0.9",
|
|
73
73
|
"@inquirer/type": "4.1.1"
|
|
74
74
|
},
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
},
|
|
90
90
|
"main": "./dist/index.js",
|
|
91
91
|
"types": "./dist/index.d.ts",
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
|
|
93
93
|
}
|
|
@@ -48,8 +48,7 @@ import * as base64url from './util/base64url.js';
|
|
|
48
48
|
export { base64url };
|
|
49
49
|
export type { AnyJWK, CompactDecryptResult, CompactJWEHeaderParameters, CompactJWSHeaderParameters, CompactVerifyResult, CritOption, CryptoKey, DecryptOptions, EncryptOptions, FlattenedDecryptResult, FlattenedJWE, FlattenedJWS, FlattenedJWSInput, FlattenedVerifyResult, GeneralDecryptResult, GeneralJWE, GeneralJWS, GeneralJWSInput, GeneralVerifyResult, GetKeyFunction, JoseHeaderParameters, JSONWebKeySet, JWEContentEncryptionAlgorithm, JWEHeaderParameters, JWEKeyManagementAlgorithm, JWEKeyManagementHeaderParameters, JWK_AKP_Private, JWK_AKP_Public, JWK_EC_Private, JWK_EC_Public, JWK_oct, JWK_OKP_Private, JWK_OKP_Public, JWK_RSA_Private, JWK_RSA_Public, JWK, JWKKeyType, JWKParameters, JWSAlgorithm, JWSHeaderParameters, JWTClaimVerificationOptions, JWTDecryptResult, JWTHeaderParameters, JWTPayload, JWTVerifyResult, KeyInput, KeyObject, ProduceJWT, ResolvedKey, SignOptions, VerifyOptions, } from './types.d.ts';
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
52
|
-
* to `"WebCryptoAPI"`
|
|
51
|
+
* Identified the loaded runtime-specific build in prior releases; now always `"WebCryptoAPI"`.
|
|
53
52
|
*
|
|
54
53
|
* @deprecated Remove any runtime branching on this value; it is always `"WebCryptoAPI"`.
|
|
55
54
|
*/
|
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
import type * as t from '../../types.d.ts';
|
|
2
|
-
/**
|
|
2
|
+
/** Resolves a key for Compact JWE decryption from unverified headers and token data. */
|
|
3
3
|
export interface CompactDecryptGetKey<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array> extends t.GetKeyFunction<t.CompactJWEHeaderParameters, t.FlattenedJWE, KeyType | t.KeyObject | t.JWK> {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* Decrypts a Compact JWE.
|
|
7
7
|
*
|
|
8
|
-
* @param key Private
|
|
8
|
+
* @param key Private key or shared secret. See
|
|
9
9
|
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
10
10
|
*/
|
|
11
11
|
export declare function compactDecrypt(jwe: string | Uint8Array, key: t.KeyInput, options?: t.DecryptOptions): Promise<t.CompactDecryptResult>;
|
|
12
12
|
/**
|
|
13
|
-
* Decrypts a Compact JWE
|
|
14
|
-
* {@link t.ResolvedKey.key resolved key}.
|
|
13
|
+
* Decrypts a Compact JWE with a dynamically resolved key, included in the result.
|
|
15
14
|
*
|
|
16
|
-
* @param getKey
|
|
17
|
-
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
15
|
+
* @param getKey Resolves a private key or shared secret from unverified token data.
|
|
18
16
|
*/
|
|
19
17
|
export declare function compactDecrypt<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array>(jwe: string | Uint8Array, getKey: CompactDecryptGetKey<KeyType>, options?: t.DecryptOptions): Promise<t.CompactDecryptResult & t.ResolvedKey<KeyType>>;
|
|
20
18
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* function was used.
|
|
19
|
+
* Decrypts a Compact JWE with a key or key resolver. The result includes `key` only when a resolver
|
|
20
|
+
* is used.
|
|
24
21
|
*
|
|
25
|
-
* @param key Private
|
|
26
|
-
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
22
|
+
* @param key Private key or shared secret, or a function resolving one.
|
|
27
23
|
*/
|
|
28
24
|
export declare function compactDecrypt(jwe: string | Uint8Array, key: t.KeyInput | CompactDecryptGetKey, options?: t.DecryptOptions): Promise<t.CompactDecryptResult & Partial<t.ResolvedKey>>;
|
|
@@ -3,40 +3,37 @@ import type * as t from '../../types.d.ts';
|
|
|
3
3
|
export declare class CompactEncrypt {
|
|
4
4
|
#private;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Creates a Compact JWE encryptor.
|
|
7
7
|
*
|
|
8
8
|
* @param plaintext Binary representation of the plaintext to encrypt.
|
|
9
9
|
*/
|
|
10
10
|
constructor(plaintext: Uint8Array);
|
|
11
11
|
/**
|
|
12
|
-
* Sets a content encryption key
|
|
13
|
-
*
|
|
12
|
+
* Sets a content encryption key instead of generating a random one for the JWE "enc" algorithm.
|
|
13
|
+
* May only be called once.
|
|
14
14
|
*
|
|
15
|
-
* @deprecated
|
|
16
|
-
* validation purposes.
|
|
15
|
+
* @deprecated Use only for testing and vector validation.
|
|
17
16
|
*/
|
|
18
17
|
setContentEncryptionKey(cek: Uint8Array): this;
|
|
19
18
|
/**
|
|
20
|
-
* Sets the
|
|
21
|
-
*
|
|
19
|
+
* Sets the content encryption IV instead of generating a random one for the JWE "enc" algorithm.
|
|
20
|
+
* May only be called once.
|
|
22
21
|
*
|
|
23
|
-
* @deprecated
|
|
24
|
-
* validation purposes.
|
|
22
|
+
* @deprecated Use only for testing and vector validation.
|
|
25
23
|
*/
|
|
26
24
|
setInitializationVector(iv: Uint8Array): this;
|
|
27
|
-
/** Sets the JWE Protected Header
|
|
25
|
+
/** Sets the JWE Protected Header. May only be called once. */
|
|
28
26
|
setProtectedHeader(protectedHeader: t.CompactJWEHeaderParameters): this;
|
|
29
27
|
/**
|
|
30
|
-
* Sets
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* appropriate JOSE Header.
|
|
28
|
+
* Sets key management inputs such as ECDH-ES "apu"/"apv" or PBES2 "p2c". Use this method instead
|
|
29
|
+
* of header setters; the resulting parameters are added to the JOSE header. May only be called
|
|
30
|
+
* once.
|
|
34
31
|
*/
|
|
35
32
|
setKeyManagementParameters(parameters: t.JWEKeyManagementHeaderParameters): this;
|
|
36
33
|
/**
|
|
37
|
-
* Encrypts
|
|
34
|
+
* Encrypts the plaintext as a Compact JWE.
|
|
38
35
|
*
|
|
39
|
-
* @param key Public
|
|
36
|
+
* @param key Public key or shared secret. See
|
|
40
37
|
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
41
38
|
*/
|
|
42
39
|
encrypt(key: t.KeyInput, options?: t.EncryptOptions): Promise<string>;
|
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
import type * as t from '../../types.d.ts';
|
|
2
|
-
/**
|
|
2
|
+
/** Resolves a key for Flattened JWE decryption from unverified headers and token data. */
|
|
3
3
|
export interface FlattenedDecryptGetKey<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array> extends t.GetKeyFunction<t.JWEHeaderParameters | undefined, t.FlattenedJWE, KeyType | t.KeyObject | t.JWK> {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* Decrypts a Flattened JWE.
|
|
7
7
|
*
|
|
8
|
-
* @param key Private
|
|
8
|
+
* @param key Private key or shared secret. See
|
|
9
9
|
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
10
10
|
*/
|
|
11
11
|
export declare function flattenedDecrypt(jwe: t.FlattenedJWE, key: t.KeyInput, options?: t.DecryptOptions): Promise<t.FlattenedDecryptResult>;
|
|
12
12
|
/**
|
|
13
|
-
* Decrypts a Flattened JWE
|
|
14
|
-
* {@link t.ResolvedKey.key resolved key}.
|
|
13
|
+
* Decrypts a Flattened JWE with a dynamically resolved key, included in the result.
|
|
15
14
|
*
|
|
16
|
-
* @param getKey
|
|
17
|
-
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
15
|
+
* @param getKey Resolves a private key or shared secret from unverified token data.
|
|
18
16
|
*/
|
|
19
17
|
export declare function flattenedDecrypt<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array>(jwe: t.FlattenedJWE, getKey: FlattenedDecryptGetKey<KeyType>, options?: t.DecryptOptions): Promise<t.FlattenedDecryptResult & t.ResolvedKey<KeyType>>;
|
|
20
18
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* function was used.
|
|
19
|
+
* Decrypts a Flattened JWE with a key or key resolver. The result includes `key` only when a
|
|
20
|
+
* resolver is used.
|
|
24
21
|
*
|
|
25
|
-
* @param key Private
|
|
26
|
-
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
22
|
+
* @param key Private key or shared secret, or a function resolving one.
|
|
27
23
|
*/
|
|
28
24
|
export declare function flattenedDecrypt(jwe: t.FlattenedJWE, key: t.KeyInput | FlattenedDecryptGetKey, options?: t.DecryptOptions): Promise<t.FlattenedDecryptResult & Partial<t.ResolvedKey>>;
|
|
@@ -3,46 +3,43 @@ import type * as t from '../../types.d.ts';
|
|
|
3
3
|
export declare class FlattenedEncrypt {
|
|
4
4
|
#private;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Creates a Flattened JWE encryptor.
|
|
7
7
|
*
|
|
8
8
|
* @param plaintext Binary representation of the plaintext to encrypt.
|
|
9
9
|
*/
|
|
10
10
|
constructor(plaintext: Uint8Array);
|
|
11
11
|
/**
|
|
12
|
-
* Sets
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* appropriate JOSE Header.
|
|
12
|
+
* Sets key management inputs such as ECDH-ES "apu"/"apv" or PBES2 "p2c". Use this method instead
|
|
13
|
+
* of header setters; the resulting parameters are added to the JOSE header. May only be called
|
|
14
|
+
* once.
|
|
16
15
|
*/
|
|
17
16
|
setKeyManagementParameters(parameters: t.JWEKeyManagementHeaderParameters): this;
|
|
18
|
-
/** Sets the JWE Protected Header
|
|
17
|
+
/** Sets the JWE Protected Header. May only be called once. */
|
|
19
18
|
setProtectedHeader(protectedHeader: t.JWEHeaderParameters): this;
|
|
20
|
-
/** Sets the JWE Shared Unprotected Header
|
|
19
|
+
/** Sets the JWE Shared Unprotected Header. May only be called once. */
|
|
21
20
|
setSharedUnprotectedHeader(sharedUnprotectedHeader: t.JWEHeaderParameters): this;
|
|
22
|
-
/** Sets the JWE Per-Recipient Unprotected Header
|
|
21
|
+
/** Sets the JWE Per-Recipient Unprotected Header. May only be called once. */
|
|
23
22
|
setUnprotectedHeader(unprotectedHeader: t.JWEHeaderParameters): this;
|
|
24
|
-
/** Sets
|
|
23
|
+
/** Sets additional data to authenticate without encrypting it. */
|
|
25
24
|
setAdditionalAuthenticatedData(aad: Uint8Array): this;
|
|
26
25
|
/**
|
|
27
|
-
* Sets a content encryption key
|
|
28
|
-
*
|
|
26
|
+
* Sets a content encryption key instead of generating a random one for the JWE "enc" algorithm.
|
|
27
|
+
* May only be called once.
|
|
29
28
|
*
|
|
30
|
-
* @deprecated
|
|
31
|
-
* validation purposes.
|
|
29
|
+
* @deprecated Use only for testing and vector validation.
|
|
32
30
|
*/
|
|
33
31
|
setContentEncryptionKey(cek: Uint8Array): this;
|
|
34
32
|
/**
|
|
35
|
-
* Sets the
|
|
36
|
-
*
|
|
33
|
+
* Sets the content encryption IV instead of generating a random one for the JWE "enc" algorithm.
|
|
34
|
+
* May only be called once.
|
|
37
35
|
*
|
|
38
|
-
* @deprecated
|
|
39
|
-
* validation purposes.
|
|
36
|
+
* @deprecated Use only for testing and vector validation.
|
|
40
37
|
*/
|
|
41
38
|
setInitializationVector(iv: Uint8Array): this;
|
|
42
39
|
/**
|
|
43
|
-
* Encrypts
|
|
40
|
+
* Encrypts the plaintext as a Flattened JWE.
|
|
44
41
|
*
|
|
45
|
-
* @param key Public
|
|
42
|
+
* @param key Public key or shared secret. See
|
|
46
43
|
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
47
44
|
*/
|
|
48
45
|
encrypt(key: t.KeyInput, options?: t.EncryptOptions): Promise<t.FlattenedJWE>;
|