@zuplo/cli 7.12.3 → 7.12.5
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/dist/index.js +4 -0
- package/node_modules/@inquirer/checkbox/package.json +3 -3
- package/node_modules/@inquirer/confirm/package.json +3 -3
- package/node_modules/@inquirer/core/dist/lib/create-prompt.js +3 -1
- 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/dist/index.js +1 -1
- 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/README.md +2 -2
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +5 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +4 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +5 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +5 -5
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +5 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +5 -5
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/compact/sign.d.ts +5 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/compact/verify.d.ts +5 -5
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/flattened/verify.d.ts +6 -5
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/general/sign.d.ts +9 -6
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/general/verify.d.ts +7 -5
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/decrypt.d.ts +7 -6
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/encrypt.d.ts +1 -1
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/sign.d.ts +1 -1
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/unsecured.d.ts +1 -1
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/verify.d.ts +3 -5
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/export.d.ts +1 -1
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/generate_secret.d.ts +1 -1
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/import.d.ts +2 -2
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/types.d.ts +165 -107
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/decode_jwt.d.ts +2 -2
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/errors.d.ts +1 -1
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/general/encrypt.js +3 -3
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwk/thumbprint.js +8 -8
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/local.js +2 -1
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/remote.js +4 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/general/sign.js +3 -3
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/general/verify.js +3 -3
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/encrypt.js +2 -2
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/sign.js +2 -2
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/unsecured.js +3 -3
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/key/generate_secret.js +4 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/asn1.js +2 -2
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/buffer_utils.js +4 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/content_encryption.js +8 -8
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +14 -14
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +3 -3
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jws_algorithms.js +2 -2
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jws_sign.js +11 -11
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jws_verify.js +19 -16
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +44 -43
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key.js +4 -4
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key_management.js +17 -17
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/validate.js +10 -10
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/decode_jwt.js +12 -12
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/decode_protected_header.js +5 -5
- package/node_modules/@modelcontextprotocol/client/node_modules/jose/package.json +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/README.md +2 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +5 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +4 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +5 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +5 -5
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +5 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +5 -5
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/compact/sign.d.ts +5 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/compact/verify.d.ts +5 -5
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/flattened/verify.d.ts +6 -5
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/general/sign.d.ts +9 -6
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/general/verify.d.ts +7 -5
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/decrypt.d.ts +7 -6
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/encrypt.d.ts +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/sign.d.ts +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/unsecured.d.ts +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/verify.d.ts +3 -5
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/export.d.ts +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/generate_secret.d.ts +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/import.d.ts +2 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/types.d.ts +165 -107
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/decode_jwt.d.ts +2 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/errors.d.ts +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/general/encrypt.js +3 -3
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwk/thumbprint.js +8 -8
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/local.js +2 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/remote.js +4 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/general/sign.js +3 -3
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/general/verify.js +3 -3
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/encrypt.js +2 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/sign.js +2 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/unsecured.js +3 -3
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/key/generate_secret.js +4 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/asn1.js +2 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/buffer_utils.js +4 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/content_encryption.js +8 -8
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +14 -14
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +3 -3
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jws_algorithms.js +2 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jws_sign.js +11 -11
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jws_verify.js +19 -16
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +44 -43
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key.js +4 -4
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key_management.js +17 -17
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/validate.js +10 -10
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/util/decode_jwt.js +12 -12
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/util/decode_protected_header.js +5 -5
- package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/package.json +1 -1
- package/node_modules/@zuplo/core/customer.cli.minified.js +269 -269
- package/node_modules/@zuplo/core/index.minified.js +275 -275
- 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-3UPXKWR6.js → chunk-RH345HSZ.js} +3 -3
- package/node_modules/@zuplo/runtime/out/esm/chunk-RH345HSZ.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-WIQFTAJL.js +26 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-WIQFTAJL.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/{chunk-JBEZQ336.js → chunk-WTWRZT3M.js} +112 -111
- package/node_modules/@zuplo/runtime/out/esm/chunk-WTWRZT3M.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/internal/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +140 -16
- package/node_modules/@zuplo/runtime/out/types/internal/index.d.ts +93 -16
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/fast-uri/.github/workflows/release.yml +35 -0
- package/node_modules/fast-uri/README.md +8 -0
- package/node_modules/fast-uri/index.js +98 -18
- package/node_modules/fast-uri/lib/utils.js +52 -0
- package/node_modules/fast-uri/package.json +1 -1
- package/node_modules/fast-uri/test/host-delimiter-security.test.js +94 -0
- package/node_modules/fast-uri/test/relative-normalization-security.test.js +156 -0
- package/node_modules/fast-uri/test/reserved-path-normalization.test.js +32 -4
- package/node_modules/fast-uri/test/scheme-validation.test.js +53 -14
- package/package.json +11 -11
- package/node_modules/@zuplo/runtime/out/esm/chunk-3UPXKWR6.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-GQMNFQTN.js +0 -26
- package/node_modules/@zuplo/runtime/out/esm/chunk-GQMNFQTN.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-JBEZQ336.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-3UPXKWR6.js.LEGAL.txt → chunk-RH345HSZ.js.LEGAL.txt} +0 -0
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-JBEZQ336.js.LEGAL.txt → chunk-WTWRZT3M.js.LEGAL.txt} +0 -0
|
@@ -86,9 +86,13 @@ export default createPrompt((config, done) => {
|
|
|
86
86
|
const [active, setActive] = useState(bounds.first);
|
|
87
87
|
const [errorMsg, setError] = useState();
|
|
88
88
|
useKeypress(async (key) => {
|
|
89
|
+
if (status !== 'idle')
|
|
90
|
+
return;
|
|
89
91
|
if (isEnterKey(key)) {
|
|
92
|
+
setStatus('loading');
|
|
90
93
|
const selection = items.filter(isChecked);
|
|
91
94
|
const isValid = await validate([...selection]);
|
|
95
|
+
setStatus('idle');
|
|
92
96
|
if (required && !selection.length) {
|
|
93
97
|
setError('At least one choice must be selected');
|
|
94
98
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/checkbox",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.7",
|
|
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.9",
|
|
71
|
-
"@inquirer/core": "^12.0.
|
|
71
|
+
"@inquirer/core": "^12.0.5",
|
|
72
72
|
"@inquirer/figures": "^2.0.9",
|
|
73
73
|
"@inquirer/type": "4.2.0"
|
|
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": "ea3130ebc609a6a3910b5397244044de7eda3d05"
|
|
93
93
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/confirm",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.4",
|
|
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.5",
|
|
71
71
|
"@inquirer/type": "4.2.0"
|
|
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": "ea3130ebc609a6a3910b5397244044de7eda3d05"
|
|
91
91
|
}
|
|
@@ -10,6 +10,7 @@ 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
|
+
const nativeClearImmediate = globalThis.clearImmediate;
|
|
13
14
|
/**
|
|
14
15
|
* Register an event listener and return its disposer, so registrations collapse
|
|
15
16
|
* into a single statement: `cleanups.add(listenTo(rl, 'close', handler))`.
|
|
@@ -173,7 +174,8 @@ export function createPrompt(view) {
|
|
|
173
174
|
//
|
|
174
175
|
// @see https://github.com/SBoudrias/Inquirer.js/issues/1303
|
|
175
176
|
if ('readableFlowing' in input) {
|
|
176
|
-
nativeSetImmediate(startCycle);
|
|
177
|
+
const immediate = nativeSetImmediate(startCycle);
|
|
178
|
+
cleanups.add(() => nativeClearImmediate(immediate));
|
|
177
179
|
}
|
|
178
180
|
else {
|
|
179
181
|
startCycle();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/core",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.5",
|
|
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": "ea3130ebc609a6a3910b5397244044de7eda3d05"
|
|
98
98
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/editor",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.5",
|
|
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.5",
|
|
71
71
|
"@inquirer/external-editor": "^3.0.6",
|
|
72
72
|
"@inquirer/type": "4.2.0"
|
|
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": "ea3130ebc609a6a3910b5397244044de7eda3d05"
|
|
92
92
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/expand",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.7",
|
|
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.5",
|
|
71
71
|
"@inquirer/type": "4.2.0"
|
|
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": "ea3130ebc609a6a3910b5397244044de7eda3d05"
|
|
91
91
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/input",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.8",
|
|
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.5",
|
|
71
71
|
"@inquirer/type": "4.2.0"
|
|
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": "ea3130ebc609a6a3910b5397244044de7eda3d05"
|
|
91
91
|
}
|
|
@@ -30,7 +30,7 @@ export default createPrompt((config, done) => {
|
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
32
|
if (isEnterKey(key)) {
|
|
33
|
-
const input = value || defaultValue;
|
|
33
|
+
const input = value.trim() || defaultValue;
|
|
34
34
|
const answer = input === '' ? undefined : Number(input);
|
|
35
35
|
setStatus('loading');
|
|
36
36
|
let isValid = true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/number",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.5",
|
|
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.5",
|
|
71
71
|
"@inquirer/type": "4.2.0"
|
|
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": "ea3130ebc609a6a3910b5397244044de7eda3d05"
|
|
91
91
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/password",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.4",
|
|
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.9",
|
|
71
|
-
"@inquirer/core": "^12.0.
|
|
71
|
+
"@inquirer/core": "^12.0.5",
|
|
72
72
|
"@inquirer/type": "4.2.0"
|
|
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": "ea3130ebc609a6a3910b5397244044de7eda3d05"
|
|
92
92
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/rawlist",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.7",
|
|
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.5",
|
|
71
71
|
"@inquirer/type": "4.2.0"
|
|
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": "ea3130ebc609a6a3910b5397244044de7eda3d05"
|
|
91
91
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/search",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.5",
|
|
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.5",
|
|
71
71
|
"@inquirer/figures": "^2.0.9",
|
|
72
72
|
"@inquirer/type": "4.2.0"
|
|
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": "ea3130ebc609a6a3910b5397244044de7eda3d05"
|
|
92
92
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/select",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.7",
|
|
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.9",
|
|
71
|
-
"@inquirer/core": "^12.0.
|
|
71
|
+
"@inquirer/core": "^12.0.5",
|
|
72
72
|
"@inquirer/figures": "^2.0.9",
|
|
73
73
|
"@inquirer/type": "4.2.0"
|
|
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": "ea3130ebc609a6a3910b5397244044de7eda3d05"
|
|
93
93
|
}
|
|
@@ -70,7 +70,7 @@ The `jose` module supports importing, exporting, and generating keys and secrets
|
|
|
70
70
|
|
|
71
71
|
### JSON Web Signature (JWS)
|
|
72
72
|
|
|
73
|
-
The `jose` module supports
|
|
73
|
+
The `jose` module supports digital signature and MAC computation and validation over arbitrary JWS Payloads using the JWS Compact Serialization and the flattened and general JWS JSON Serialization syntaxes ([RFC 7515, Section 7](https://www.rfc-editor.org/info/rfc7515/#section-7)).
|
|
74
74
|
|
|
75
75
|
- Signing - [Compact](docs/jws/compact/sign/classes/CompactSign.md), [Flattened JSON](docs/jws/flattened/sign/classes/FlattenedSign.md), [General JSON](docs/jws/general/sign/classes/GeneralSign.md)
|
|
76
76
|
- Verification - [Compact](docs/jws/compact/verify/functions/compactVerify.md), [Flattened JSON](docs/jws/flattened/verify/functions/flattenedVerify.md), [General JSON](docs/jws/general/verify/functions/generalVerify.md)
|
|
@@ -81,7 +81,7 @@ The `jose` module supports signing and verification of JWS messages with arbitra
|
|
|
81
81
|
|
|
82
82
|
### JSON Web Encryption (JWE)
|
|
83
83
|
|
|
84
|
-
The `jose` module supports encryption and decryption of
|
|
84
|
+
The `jose` module supports encryption and authenticated decryption of arbitrary plaintext using the JWE Compact Serialization and the flattened and general JWE JSON Serialization syntaxes ([RFC 7516, Section 7](https://www.rfc-editor.org/info/rfc7516/#section-7)).
|
|
85
85
|
|
|
86
86
|
- Encryption - [Compact](docs/jwe/compact/encrypt/classes/CompactEncrypt.md), [Flattened JSON](docs/jwe/flattened/encrypt/classes/FlattenedEncrypt.md), [General JSON](docs/jwe/general/encrypt/classes/GeneralEncrypt.md)
|
|
87
87
|
- Decryption - [Compact](docs/jwe/compact/decrypt/functions/compactDecrypt.md), [Flattened JSON](docs/jwe/flattened/decrypt/functions/flattenedDecrypt.md), [General JSON](docs/jwe/general/decrypt/functions/generalDecrypt.md)
|
|
@@ -3,21 +3,22 @@ import type * as t from '../../types.d.ts';
|
|
|
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
|
+
* Authenticates and decrypts a JWE Compact Serialization.
|
|
7
7
|
*
|
|
8
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
|
-
*
|
|
13
|
+
* Authenticates and decrypts a JWE Compact Serialization with a dynamically resolved key, included
|
|
14
|
+
* in the result.
|
|
14
15
|
*
|
|
15
16
|
* @param getKey Resolves a private key or shared secret from unverified token data.
|
|
16
17
|
*/
|
|
17
18
|
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>>;
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
-
* is used.
|
|
20
|
+
* Authenticates and decrypts a JWE Compact Serialization with a key or key resolver. The result
|
|
21
|
+
* includes `key` only when a resolver is used.
|
|
21
22
|
*
|
|
22
23
|
* @param key Private key or shared secret, or a function resolving one.
|
|
23
24
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as t from '../../types.d.ts';
|
|
2
|
-
/**
|
|
2
|
+
/** Produces JWE Compact Serialization using authenticated encryption. */
|
|
3
3
|
export declare class CompactEncrypt {
|
|
4
4
|
#private;
|
|
5
5
|
/**
|
|
6
|
-
* Creates
|
|
6
|
+
* Creates an encryptor for JWE Compact Serialization.
|
|
7
7
|
*
|
|
8
8
|
* @param plaintext Binary representation of the plaintext to encrypt.
|
|
9
9
|
*/
|
|
@@ -26,12 +26,12 @@ export declare class CompactEncrypt {
|
|
|
26
26
|
setProtectedHeader(protectedHeader: t.CompactJWEHeaderParameters): this;
|
|
27
27
|
/**
|
|
28
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
|
|
29
|
+
* of header setters; the resulting parameters are added to the JOSE Header. May only be called
|
|
30
30
|
* once.
|
|
31
31
|
*/
|
|
32
32
|
setKeyManagementParameters(parameters: t.JWEKeyManagementHeaderParameters): this;
|
|
33
33
|
/**
|
|
34
|
-
* Encrypts the plaintext
|
|
34
|
+
* Encrypts the plaintext and returns the JWE Compact Serialization.
|
|
35
35
|
*
|
|
36
36
|
* @param key Public key or shared secret. See
|
|
37
37
|
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
@@ -3,21 +3,22 @@ import type * as t from '../../types.d.ts';
|
|
|
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
|
+
* Authenticates and decrypts a flattened JWE JSON Serialization.
|
|
7
7
|
*
|
|
8
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
|
-
*
|
|
13
|
+
* Authenticates and decrypts a flattened JWE JSON Serialization with a dynamically resolved key,
|
|
14
|
+
* included in the result.
|
|
14
15
|
*
|
|
15
16
|
* @param getKey Resolves a private key or shared secret from unverified token data.
|
|
16
17
|
*/
|
|
17
18
|
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>>;
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
-
* resolver is used.
|
|
20
|
+
* Authenticates and decrypts a flattened JWE JSON Serialization with a key or key resolver. The
|
|
21
|
+
* result includes `key` only when a resolver is used.
|
|
21
22
|
*
|
|
22
23
|
* @param key Private key or shared secret, or a function resolving one.
|
|
23
24
|
*/
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type * as t from '../../types.d.ts';
|
|
2
|
-
/**
|
|
2
|
+
/** Produces flattened JWE JSON Serialization using authenticated encryption. */
|
|
3
3
|
export declare class FlattenedEncrypt {
|
|
4
4
|
#private;
|
|
5
5
|
/**
|
|
6
|
-
* Creates
|
|
6
|
+
* Creates an encryptor for flattened JWE JSON Serialization.
|
|
7
7
|
*
|
|
8
8
|
* @param plaintext Binary representation of the plaintext to encrypt.
|
|
9
9
|
*/
|
|
10
10
|
constructor(plaintext: Uint8Array);
|
|
11
11
|
/**
|
|
12
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
|
|
13
|
+
* of header setters; the resulting parameters are added to the JOSE Header. May only be called
|
|
14
14
|
* once.
|
|
15
15
|
*/
|
|
16
16
|
setKeyManagementParameters(parameters: t.JWEKeyManagementHeaderParameters): this;
|
|
@@ -20,7 +20,7 @@ export declare class FlattenedEncrypt {
|
|
|
20
20
|
setSharedUnprotectedHeader(sharedUnprotectedHeader: t.JWEHeaderParameters): this;
|
|
21
21
|
/** Sets the JWE Per-Recipient Unprotected Header. May only be called once. */
|
|
22
22
|
setUnprotectedHeader(unprotectedHeader: t.JWEHeaderParameters): this;
|
|
23
|
-
/** Sets
|
|
23
|
+
/** Sets the JWE AAD, which is integrity protected but not encrypted. */
|
|
24
24
|
setAdditionalAuthenticatedData(aad: Uint8Array): this;
|
|
25
25
|
/**
|
|
26
26
|
* Sets a content encryption key instead of generating a random one for the JWE "enc" algorithm.
|
|
@@ -37,7 +37,7 @@ export declare class FlattenedEncrypt {
|
|
|
37
37
|
*/
|
|
38
38
|
setInitializationVector(iv: Uint8Array): this;
|
|
39
39
|
/**
|
|
40
|
-
* Encrypts the plaintext
|
|
40
|
+
* Encrypts the plaintext and returns the flattened JWE JSON Serialization.
|
|
41
41
|
*
|
|
42
42
|
* @param key Public key or shared secret. See
|
|
43
43
|
* {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
|
|
@@ -3,7 +3,7 @@ import type * as t from '../../types.d.ts';
|
|
|
3
3
|
export interface GeneralDecryptGetKey<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
|
+
* Authenticates and decrypts a general JWE JSON Serialization.
|
|
7
7
|
*
|
|
8
8
|
* > Note: Returns plaintext and headers from the first recipient that decrypts successfully. Other
|
|
9
9
|
* > recipients may be inspected to enforce serialization rules, but their headers are not included in
|
|
@@ -14,14 +14,15 @@ export interface GeneralDecryptGetKey<KeyType extends t.CryptoKey | Uint8Array =
|
|
|
14
14
|
*/
|
|
15
15
|
export declare function generalDecrypt(jwe: t.GeneralJWE, key: t.KeyInput, options?: t.DecryptOptions): Promise<t.GeneralDecryptResult>;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Authenticates and decrypts a general JWE JSON Serialization with a dynamically resolved key,
|
|
18
|
+
* included in the result.
|
|
18
19
|
*
|
|
19
20
|
* @param getKey Resolves a private key or shared secret from unverified token data.
|
|
20
21
|
*/
|
|
21
22
|
export declare function generalDecrypt<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array>(jwe: t.GeneralJWE, getKey: GeneralDecryptGetKey<KeyType>, options?: t.DecryptOptions): Promise<t.GeneralDecryptResult & t.ResolvedKey<KeyType>>;
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
-
* is used.
|
|
24
|
+
* Authenticates and decrypts a general JWE JSON Serialization with a key or key resolver. The
|
|
25
|
+
* result includes `key` only when a resolver is used.
|
|
25
26
|
*
|
|
26
27
|
* @param key Private key or shared secret, or a function resolving one.
|
|
27
28
|
*/
|
|
@@ -5,7 +5,7 @@ export interface Recipient {
|
|
|
5
5
|
setUnprotectedHeader(unprotectedHeader: t.JWEHeaderParameters): Recipient;
|
|
6
6
|
/**
|
|
7
7
|
* Sets key management inputs such as ECDH-ES "apu"/"apv" or PBES2 "p2c". Use this method instead
|
|
8
|
-
* of header setters; the resulting parameters are added to the JOSE
|
|
8
|
+
* of header setters; the resulting parameters are added to the JOSE Header. May only be called
|
|
9
9
|
* once.
|
|
10
10
|
*/
|
|
11
11
|
setKeyManagementParameters(parameters: t.JWEKeyManagementHeaderParameters): Recipient;
|
|
@@ -24,11 +24,11 @@ export interface Recipient {
|
|
|
24
24
|
/** Returns the enclosing {@link GeneralEncrypt} instance. */
|
|
25
25
|
done(): GeneralEncrypt;
|
|
26
26
|
}
|
|
27
|
-
/**
|
|
27
|
+
/** Produces general JWE JSON Serialization using authenticated encryption. */
|
|
28
28
|
export declare class GeneralEncrypt {
|
|
29
29
|
#private;
|
|
30
30
|
/**
|
|
31
|
-
* Creates
|
|
31
|
+
* Creates an encryptor for general JWE JSON Serialization.
|
|
32
32
|
*
|
|
33
33
|
* @param plaintext Binary representation of the plaintext to encrypt.
|
|
34
34
|
*/
|
|
@@ -44,8 +44,8 @@ export declare class GeneralEncrypt {
|
|
|
44
44
|
setProtectedHeader(protectedHeader: t.JWEHeaderParameters): this;
|
|
45
45
|
/** Sets the JWE Shared Unprotected Header. May only be called once. */
|
|
46
46
|
setSharedUnprotectedHeader(sharedUnprotectedHeader: t.JWEHeaderParameters): this;
|
|
47
|
-
/** Sets
|
|
47
|
+
/** Sets the JWE AAD, which is integrity protected but not encrypted. */
|
|
48
48
|
setAdditionalAuthenticatedData(aad: Uint8Array): this;
|
|
49
|
-
/** Encrypts the plaintext
|
|
49
|
+
/** Encrypts the plaintext and returns the general JWE JSON Serialization. */
|
|
50
50
|
encrypt(): Promise<t.GeneralJWE>;
|
|
51
51
|
}
|
package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/compact/sign.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type * as t from '../../types.d.ts';
|
|
2
|
-
/**
|
|
2
|
+
/** Produces JWS Compact Serialization using a digital signature or MAC. */
|
|
3
3
|
export declare class CompactSign {
|
|
4
4
|
#private;
|
|
5
5
|
/**
|
|
6
|
-
* Creates a
|
|
6
|
+
* Creates a signer for JWS Compact Serialization.
|
|
7
7
|
*
|
|
8
|
-
* @param payload
|
|
8
|
+
* @param payload JWS Payload bytes to sign or MAC.
|
|
9
9
|
*/
|
|
10
10
|
constructor(payload: Uint8Array);
|
|
11
11
|
/** Sets the JWS Protected Header. May only be called once. */
|
|
12
12
|
setProtectedHeader(protectedHeader: t.CompactJWSHeaderParameters): this;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Computes the JWS Signature (digital signature or MAC) and returns the JWS Compact
|
|
15
|
+
* Serialization.
|
|
15
16
|
*
|
|
16
17
|
* @param key Private key or shared secret. See
|
|
17
18
|
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
@@ -3,22 +3,22 @@ import type * as t from '../../types.d.ts';
|
|
|
3
3
|
export interface CompactVerifyGetKey<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array> extends t.GetKeyFunction<t.CompactJWSHeaderParameters, t.FlattenedJWSInput, KeyType | t.KeyObject | t.JWK> {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Validates a JWS Compact Serialization (digital signature or MAC) and decodes its JWS Payload.
|
|
7
7
|
*
|
|
8
8
|
* @param key Public key or shared secret. See
|
|
9
9
|
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
10
10
|
*/
|
|
11
11
|
export declare function compactVerify(jws: string | Uint8Array, key: t.KeyInput, options?: t.VerifyOptions): Promise<t.CompactVerifyResult>;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* included in the result.
|
|
13
|
+
* Validates a JWS Compact Serialization (digital signature or MAC) and decodes its JWS Payload with
|
|
14
|
+
* a dynamically resolved key, included in the result.
|
|
15
15
|
*
|
|
16
16
|
* @param getKey Resolves a public key or shared secret from unverified token data.
|
|
17
17
|
*/
|
|
18
18
|
export declare function compactVerify<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array>(jws: string | Uint8Array, getKey: CompactVerifyGetKey<KeyType>, options?: t.VerifyOptions): Promise<t.CompactVerifyResult & t.ResolvedKey<KeyType>>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
* `key` only when a resolver is used.
|
|
20
|
+
* Validates a JWS Compact Serialization (digital signature or MAC) and decodes its JWS Payload
|
|
21
|
+
* using a key or key resolver. The result includes `key` only when a resolver is used.
|
|
22
22
|
*
|
|
23
23
|
* @param key Public key or shared secret, or a function resolving one.
|
|
24
24
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type * as t from '../../types.d.ts';
|
|
2
|
-
/**
|
|
2
|
+
/** Produces flattened JWS JSON Serialization using a digital signature or MAC. */
|
|
3
3
|
export declare class FlattenedSign {
|
|
4
4
|
#private;
|
|
5
5
|
/**
|
|
6
|
-
* Creates a
|
|
6
|
+
* Creates a signer for flattened JWS JSON Serialization.
|
|
7
7
|
*
|
|
8
|
-
* @param payload
|
|
8
|
+
* @param payload JWS Payload bytes to sign or MAC.
|
|
9
9
|
*/
|
|
10
10
|
constructor(payload: Uint8Array);
|
|
11
11
|
/** Sets the JWS Protected Header. May only be called once. */
|
|
@@ -13,7 +13,8 @@ export declare class FlattenedSign {
|
|
|
13
13
|
/** Sets the JWS Unprotected Header. May only be called once. */
|
|
14
14
|
setUnprotectedHeader(unprotectedHeader: t.JWSHeaderParameters): this;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Computes the JWS Signature (digital signature or MAC) and returns the flattened JWS JSON
|
|
17
|
+
* Serialization.
|
|
17
18
|
*
|
|
18
19
|
* @param key Private key or shared secret. See
|
|
19
20
|
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
@@ -3,22 +3,23 @@ import type * as t from '../../types.d.ts';
|
|
|
3
3
|
export interface FlattenedVerifyGetKey<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array> extends t.GetKeyFunction<t.JWSHeaderParameters, t.FlattenedJWSInput, KeyType | t.KeyObject | t.JWK> {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Validates a flattened JWS JSON Serialization (digital signature or MAC) and decodes its JWS
|
|
7
|
+
* Payload.
|
|
7
8
|
*
|
|
8
9
|
* @param key Public key or shared secret. See
|
|
9
10
|
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
|
|
10
11
|
*/
|
|
11
12
|
export declare function flattenedVerify(jws: t.FlattenedJWSInput, key: t.KeyInput, options?: t.VerifyOptions): Promise<t.FlattenedVerifyResult>;
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
-
* included in the result.
|
|
14
|
+
* Validates a flattened JWS JSON Serialization (digital signature or MAC) and decodes its JWS
|
|
15
|
+
* Payload with a dynamically resolved key, included in the result.
|
|
15
16
|
*
|
|
16
17
|
* @param getKey Resolves a public key or shared secret from unverified token data.
|
|
17
18
|
*/
|
|
18
19
|
export declare function flattenedVerify<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array>(jws: t.FlattenedJWSInput, getKey: FlattenedVerifyGetKey<KeyType>, options?: t.VerifyOptions): Promise<t.FlattenedVerifyResult & t.ResolvedKey<KeyType>>;
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
-
* `key` only when a resolver is used.
|
|
21
|
+
* Validates a flattened JWS JSON Serialization (digital signature or MAC) and decodes its JWS
|
|
22
|
+
* Payload using a key or key resolver. The result includes `key` only when a resolver is used.
|
|
22
23
|
*
|
|
23
24
|
* @param key Public key or shared secret, or a function resolving one.
|
|
24
25
|
*/
|