@zuplo/cli 7.12.4 → 7.12.6

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.
Files changed (119) hide show
  1. package/node_modules/@modelcontextprotocol/client/node_modules/jose/README.md +2 -2
  2. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +5 -4
  3. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +4 -4
  4. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +5 -4
  5. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +5 -5
  6. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +5 -4
  7. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +5 -5
  8. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/compact/sign.d.ts +5 -4
  9. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/compact/verify.d.ts +5 -5
  10. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -4
  11. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/flattened/verify.d.ts +6 -5
  12. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/general/sign.d.ts +9 -6
  13. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/general/verify.d.ts +7 -5
  14. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/decrypt.d.ts +7 -6
  15. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/encrypt.d.ts +1 -1
  16. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/sign.d.ts +1 -1
  17. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/unsecured.d.ts +1 -1
  18. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/verify.d.ts +3 -5
  19. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/export.d.ts +1 -1
  20. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/generate_secret.d.ts +1 -1
  21. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/import.d.ts +2 -2
  22. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/types.d.ts +165 -107
  23. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/decode_jwt.d.ts +2 -2
  24. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/errors.d.ts +1 -1
  25. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/general/encrypt.js +3 -3
  26. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwk/thumbprint.js +8 -8
  27. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/local.js +2 -1
  28. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/remote.js +4 -4
  29. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/general/sign.js +3 -3
  30. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/general/verify.js +3 -3
  31. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/encrypt.js +2 -2
  32. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/sign.js +2 -2
  33. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/unsecured.js +3 -3
  34. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/key/generate_secret.js +4 -4
  35. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/asn1.js +2 -2
  36. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/buffer_utils.js +4 -4
  37. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/content_encryption.js +8 -8
  38. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +14 -14
  39. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +3 -3
  40. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jws_algorithms.js +2 -2
  41. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jws_sign.js +11 -11
  42. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jws_verify.js +19 -16
  43. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +44 -43
  44. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key.js +4 -4
  45. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key_management.js +17 -17
  46. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/validate.js +10 -10
  47. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/decode_jwt.js +12 -12
  48. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/decode_protected_header.js +5 -5
  49. package/node_modules/@modelcontextprotocol/client/node_modules/jose/package.json +1 -1
  50. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/README.md +2 -2
  51. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +5 -4
  52. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +4 -4
  53. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +5 -4
  54. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +5 -5
  55. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +5 -4
  56. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +5 -5
  57. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/compact/sign.d.ts +5 -4
  58. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/compact/verify.d.ts +5 -5
  59. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -4
  60. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/flattened/verify.d.ts +6 -5
  61. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/general/sign.d.ts +9 -6
  62. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/general/verify.d.ts +7 -5
  63. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/decrypt.d.ts +7 -6
  64. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/encrypt.d.ts +1 -1
  65. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/sign.d.ts +1 -1
  66. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/unsecured.d.ts +1 -1
  67. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/verify.d.ts +3 -5
  68. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/export.d.ts +1 -1
  69. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/generate_secret.d.ts +1 -1
  70. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/import.d.ts +2 -2
  71. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/types.d.ts +165 -107
  72. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/decode_jwt.d.ts +2 -2
  73. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/errors.d.ts +1 -1
  74. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/general/encrypt.js +3 -3
  75. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwk/thumbprint.js +8 -8
  76. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/local.js +2 -1
  77. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/remote.js +4 -4
  78. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/general/sign.js +3 -3
  79. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/general/verify.js +3 -3
  80. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/encrypt.js +2 -2
  81. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/sign.js +2 -2
  82. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/unsecured.js +3 -3
  83. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/key/generate_secret.js +4 -4
  84. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/asn1.js +2 -2
  85. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/buffer_utils.js +4 -4
  86. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/content_encryption.js +8 -8
  87. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +14 -14
  88. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +3 -3
  89. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jws_algorithms.js +2 -2
  90. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jws_sign.js +11 -11
  91. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jws_verify.js +19 -16
  92. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +44 -43
  93. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key.js +4 -4
  94. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key_management.js +17 -17
  95. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/validate.js +10 -10
  96. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/util/decode_jwt.js +12 -12
  97. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/util/decode_protected_header.js +5 -5
  98. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/package.json +1 -1
  99. package/node_modules/@posthog/core/dist/featureFlagLocalEvaluation.d.ts.map +1 -1
  100. package/node_modules/@posthog/core/dist/featureFlagLocalEvaluation.js +11 -3
  101. package/node_modules/@posthog/core/dist/featureFlagLocalEvaluation.mjs +11 -3
  102. package/node_modules/@posthog/core/package.json +1 -1
  103. package/node_modules/@posthog/core/src/featureFlagLocalEvaluation.ts +17 -9
  104. package/node_modules/@zuplo/core/customer.cli.minified.js +231 -231
  105. package/node_modules/@zuplo/core/index.minified.js +254 -254
  106. package/node_modules/@zuplo/core/package.json +1 -1
  107. package/node_modules/@zuplo/graphql/package.json +1 -1
  108. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  109. package/node_modules/@zuplo/otel/package.json +1 -1
  110. package/node_modules/@zuplo/runtime/out/esm/{chunk-WTWRZT3M.js → chunk-N2ZQITZD.js} +96 -96
  111. package/node_modules/@zuplo/runtime/out/esm/chunk-N2ZQITZD.js.map +1 -0
  112. package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
  113. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
  114. package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
  115. package/node_modules/@zuplo/runtime/out/types/index.d.ts +10 -14
  116. package/node_modules/@zuplo/runtime/package.json +1 -1
  117. package/package.json +11 -11
  118. package/node_modules/@zuplo/runtime/out/esm/chunk-WTWRZT3M.js.map +0 -1
  119. /package/node_modules/@zuplo/runtime/out/esm/{chunk-WTWRZT3M.js.LEGAL.txt → chunk-N2ZQITZD.js.LEGAL.txt} +0 -0
@@ -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
- * Verifies a Compact JWS signature and decodes its payload.
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
- * Verifies a Compact JWS signature and decodes its payload with a dynamically resolved key,
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
- * Verifies a Compact JWS and decodes its payload using a key or key resolver. The result includes
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
- /** Builds and signs Flattened JWS objects. */
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 Flattened JWS signer.
6
+ * Creates a signer for flattened JWS JSON Serialization.
7
7
  *
8
- * @param payload Binary representation of the payload to sign.
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
- * Signs the payload as a Flattened JWS.
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
- * Verifies a Flattened JWS signature and decodes its payload.
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
- * Verifies a Flattened JWS signature and decodes its payload with a dynamically resolved key,
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
- * Verifies a Flattened JWS and decodes its payload using a key or key resolver. The result includes
21
- * `key` only when a resolver is used.
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
  */
@@ -1,5 +1,5 @@
1
1
  import type * as t from '../../types.d.ts';
2
- /** Configures an individual signature in a General JWS. */
2
+ /** Configures an individual JWS Signature (digital signature or MAC) in a General JWS. */
3
3
  export interface Signature {
4
4
  /** Sets the JWS Protected Header. May only be called once. */
5
5
  setProtectedHeader(protectedHeader: t.JWSHeaderParameters): Signature;
@@ -12,18 +12,18 @@ export interface Signature {
12
12
  * {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
13
13
  */
14
14
  addSignature(key: t.KeyInput, options?: t.SignOptions): Signature;
15
- /** Creates all signatures on the enclosing {@link GeneralSign}, using their configured keys. */
15
+ /** Computes all JWS Signatures on the enclosing {@link GeneralSign}, using their configured keys. */
16
16
  sign(): Promise<t.GeneralJWS>;
17
17
  /** Returns the enclosing {@link GeneralSign} instance. */
18
18
  done(): GeneralSign;
19
19
  }
20
- /** Builds and signs General JWS objects. */
20
+ /** Produces general JWS JSON Serialization using digital signatures or MACs. */
21
21
  export declare class GeneralSign {
22
22
  #private;
23
23
  /**
24
- * Creates a General JWS signer.
24
+ * Creates a signer for general JWS JSON Serialization.
25
25
  *
26
- * @param payload Binary representation of the payload to sign.
26
+ * @param payload JWS Payload bytes to sign or MAC.
27
27
  */
28
28
  constructor(payload: Uint8Array);
29
29
  /**
@@ -33,6 +33,9 @@ export declare class GeneralSign {
33
33
  * {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
34
34
  */
35
35
  addSignature(key: t.KeyInput, options?: t.SignOptions): Signature;
36
- /** Signs the payload as a General JWS. */
36
+ /**
37
+ * Computes each JWS Signature (digital signature or MAC) and returns the general JWS JSON
38
+ * Serialization.
39
+ */
37
40
  sign(): Promise<t.GeneralJWS>;
38
41
  }
@@ -3,7 +3,8 @@ import type * as t from '../../types.d.ts';
3
3
  export interface GeneralVerifyGetKey<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
- * Verifies a General JWS signature and decodes its payload.
6
+ * Validates a JWS Signature (digital signature or MAC) from a general JWS JSON Serialization and
7
+ * decodes its JWS Payload.
7
8
  *
8
9
  * > Note: Returns payload and headers from the first signature that verifies successfully. Other entries'
9
10
  * > headers may be inspected to reject inconsistent use of the JWS Unencoded Payload Option, but are
@@ -14,15 +15,16 @@ export interface GeneralVerifyGetKey<KeyType extends t.CryptoKey | Uint8Array =
14
15
  */
15
16
  export declare function generalVerify(jws: t.GeneralJWSInput, key: t.KeyInput, options?: t.VerifyOptions): Promise<t.GeneralVerifyResult>;
16
17
  /**
17
- * Verifies a General JWS signature and decodes its payload with a dynamically resolved key,
18
- * included in the result.
18
+ * Validates a JWS Signature (digital signature or MAC) from a general JWS JSON Serialization and
19
+ * decodes its JWS Payload with a dynamically resolved key, included in the result.
19
20
  *
20
21
  * @param getKey Resolves a public key or shared secret from unverified token data.
21
22
  */
22
23
  export declare function generalVerify<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array>(jws: t.GeneralJWSInput, getKey: GeneralVerifyGetKey<KeyType>, options?: t.VerifyOptions): Promise<t.GeneralVerifyResult & t.ResolvedKey<KeyType>>;
23
24
  /**
24
- * Verifies a General JWS and decodes its payload using a key or key resolver. The result includes
25
- * `key` only when a resolver is used.
25
+ * Validates a JWS Signature (digital signature or MAC) from a general JWS JSON Serialization and
26
+ * decodes its JWS Payload using a key or key resolver. The result includes `key` only when a
27
+ * resolver is used.
26
28
  *
27
29
  * @param key Public key or shared secret, or a function resolving one.
28
30
  */
@@ -9,9 +9,9 @@ export interface JWTDecryptOptions extends t.DecryptOptions, t.JWTClaimVerificat
9
9
  export interface JWTDecryptGetKey<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array> extends t.GetKeyFunction<t.CompactJWEHeaderParameters, t.FlattenedJWE, KeyType | t.KeyObject | t.JWK> {
10
10
  }
11
11
  /**
12
- * Decrypts a Compact JWE-formatted JWT and validates its Claims Set.
12
+ * Authenticates and decrypts a JWT in JWE Compact Serialization and validates its JWT Claims Set.
13
13
  *
14
- * @param key Private key or shared secret to decrypt and verify the JWT with. See
14
+ * @param key Private key or shared secret to authenticate and decrypt the JWT with. See
15
15
  * {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
16
16
  */
17
17
  export declare function jwtDecrypt<PayloadType = t.JWTPayload>(jwt: string | Uint8Array, key: t.KeyInput, options?: JWTDecryptOptions): Promise<t.JWTDecryptResult<PayloadType>>;
@@ -19,16 +19,17 @@ export declare function jwtDecrypt<PayloadType = t.JWTPayload>(jwt: string | Uin
19
19
  * Decrypts a JWT and validates its claims, returning the dynamically
20
20
  * {@link t.ResolvedKey.key resolved key}.
21
21
  *
22
- * @param getKey Function resolving a private key or shared secret to decrypt and verify the JWT
23
- * with. See {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
22
+ * @param getKey Function resolving a private key or shared secret to authenticate and decrypt the
23
+ * JWT with. See
24
+ * {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
24
25
  */
25
26
  export declare function jwtDecrypt<PayloadType = t.JWTPayload, KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array>(jwt: string | Uint8Array, getKey: JWTDecryptGetKey<KeyType>, options?: JWTDecryptOptions): Promise<t.JWTDecryptResult<PayloadType> & t.ResolvedKey<KeyType>>;
26
27
  /**
27
28
  * Accepts a key or key resolver. Use this overload when forwarding either form; the result includes
28
29
  * `key` only when a resolver was used.
29
30
  *
30
- * @param key Private key or shared secret, or a function resolving one, to decrypt and verify the
31
- * JWT with. See
31
+ * @param key Private key or shared secret, or a function resolving one, to authenticate and decrypt
32
+ * the JWT with. See
32
33
  * {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
33
34
  */
34
35
  export declare function jwtDecrypt<PayloadType = t.JWTPayload>(jwt: string | Uint8Array, key: t.KeyInput | JWTDecryptGetKey, options?: JWTDecryptOptions): Promise<t.JWTDecryptResult<PayloadType> & Partial<t.ResolvedKey>>;
@@ -1,7 +1,7 @@
1
1
  import type * as t from '../types.d.ts';
2
2
  /** @param payload Initial JWT Claims Set. Defaults to an empty object. */
3
3
  declare const EncryptJWT_base: new (payload?: t.JWTPayload) => t.ProduceJWT;
4
- /** Builds and encrypts Compact JWE-formatted JSON Web Tokens. */
4
+ /** Produces encrypted JWTs in JWE Compact Serialization. */
5
5
  export declare class EncryptJWT extends EncryptJWT_base {
6
6
  #private;
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import type * as t from '../types.d.ts';
2
2
  /** @param payload Initial JWT Claims Set. Defaults to an empty object. */
3
3
  declare const SignJWT_base: new (payload?: t.JWTPayload) => t.ProduceJWT;
4
- /** Builds and signs Compact JWS-formatted JSON Web Tokens. */
4
+ /** Produces JWTs in JWS Compact Serialization using a digital signature or MAC. */
5
5
  export declare class SignJWT extends SignJWT_base {
6
6
  #private;
7
7
  /**
@@ -3,7 +3,7 @@ import type * as t from '../types.d.ts';
3
3
  export interface UnsecuredResult<PayloadType = t.JWTPayload> {
4
4
  /** JWT Claims Set. */
5
5
  payload: PayloadType & t.JWTPayload & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never);
6
- /** The decoded JOSE Header; always `{ "alg": "none" }` for an Unsecured JWT. */
6
+ /** The decoded JOSE Header; its "alg" (Algorithm) Header Parameter is "none". */
7
7
  header: t.JWSHeaderParameters;
8
8
  }
9
9
  /** @param payload Initial JWT Claims Set. Defaults to an empty object. */
@@ -9,19 +9,18 @@ export interface JWTVerifyOptions extends t.VerifyOptions, t.JWTClaimVerificatio
9
9
  export interface JWTVerifyGetKey<KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array> extends t.GetKeyFunction<t.CompactJWSHeaderParameters, t.FlattenedJWSInput, KeyType | t.KeyObject | t.JWK> {
10
10
  }
11
11
  /**
12
- * Verifies a Compact JWS-formatted JWT and validates its Claims Set.
12
+ * Validates a JWT in JWS Compact Serialization (digital signature or MAC) and its JWT Claims Set.
13
13
  *
14
14
  * @param key Public key or shared secret to verify the JWT with. See
15
15
  * {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
16
- * @param options JWT Verification and JWT Claims Set validation options.
17
16
  */
18
17
  export declare function jwtVerify<PayloadType = t.JWTPayload>(jwt: string | Uint8Array, key: t.KeyInput, options?: JWTVerifyOptions): Promise<t.JWTVerifyResult<PayloadType>>;
19
18
  /**
20
- * Verifies the JWT signature and claims, returning the resolved key.
19
+ * Validates the JWT's JWS Signature (digital signature or MAC) and JWT Claims Set, returning the
20
+ * resolved key.
21
21
  *
22
22
  * @param getKey Function resolving a public key or shared secret to verify the JWT with. See
23
23
  * {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
24
- * @param options JWT Verification and JWT Claims Set validation options.
25
24
  */
26
25
  export declare function jwtVerify<PayloadType = t.JWTPayload, KeyType extends t.CryptoKey | Uint8Array = t.CryptoKey | Uint8Array>(jwt: string | Uint8Array, getKey: JWTVerifyGetKey<KeyType>, options?: JWTVerifyOptions): Promise<t.JWTVerifyResult<PayloadType> & t.ResolvedKey<KeyType>>;
27
26
  /**
@@ -30,6 +29,5 @@ export declare function jwtVerify<PayloadType = t.JWTPayload, KeyType extends t.
30
29
  *
31
30
  * @param key Key, or function resolving a key, to verify the JWT with. See
32
31
  * {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
33
- * @param options JWT Verification and JWT Claims Set validation options.
34
32
  */
35
33
  export declare function jwtVerify<PayloadType = t.JWTPayload>(jwt: string | Uint8Array, key: t.KeyInput | JWTVerifyGetKey, options?: JWTVerifyOptions): Promise<t.JWTVerifyResult<PayloadType> & Partial<t.ResolvedKey>>;
@@ -6,7 +6,7 @@ import type * as t from '../types.d.ts';
6
6
  */
7
7
  export declare function exportSPKI(key: t.CryptoKey | t.KeyObject): Promise<string>;
8
8
  /**
9
- * Exports a private key to PEM-encoded PKCS#8. CryptoKey inputs must be extractable.
9
+ * Exports a private key to PEM-encoded PKCS #8. CryptoKey inputs must be extractable.
10
10
  *
11
11
  * @param key Key to export.
12
12
  */
@@ -2,7 +2,7 @@ import type * as t from '../types.d.ts';
2
2
  /** Algorithms supported by {@link generateSecret}, subject to runtime support. */
3
3
  export type GenerateSecretAlgorithm = 'HS256' | 'HS384' | 'HS512' | 'A128CBC-HS256' | 'A192CBC-HS384' | 'A256CBC-HS512' | 'A128KW' | 'A192KW' | 'A256KW' | 'A128GCMKW' | 'A192GCMKW' | 'A256GCMKW' | 'A128GCM' | 'A192GCM' | 'A256GCM' | (string & {});
4
4
  /**
5
- * Maps a JWA algorithm identifier to the value returned by {@link generateSecret}. AES-CBC-HMAC
5
+ * Maps a JWA algorithm identifier to the value returned by {@link generateSecret}. AES_CBC_HMAC_SHA2
6
6
  * algorithms return {@link !Uint8Array}; other supported algorithms return
7
7
  * {@link t.CryptoKey CryptoKey}. When the algorithm is not statically known, the result is their
8
8
  * union.
@@ -40,12 +40,12 @@ export declare function importSPKI(spki: string, alg: string, options?: KeyImpor
40
40
  */
41
41
  export declare function importX509(x509: string, alg: string, options?: KeyImportOptions): Promise<t.CryptoKey>;
42
42
  /**
43
- * Imports a PEM-encoded PKCS#8 string as a {@link !CryptoKey}.
43
+ * Imports a PEM-encoded PKCS #8 string as a {@link !CryptoKey}.
44
44
  *
45
45
  * > Note: For RSA keys, use the rsaEncryption OID (1.2.840.113549.1.1.1). The id-RSASSA-PSS OID
46
46
  * > (1.2.840.113549.1.1.10) is not supported by the Web Cryptography API.
47
47
  *
48
- * @param pkcs8 PEM-encoded PKCS#8 string
48
+ * @param pkcs8 PEM-encoded PKCS #8 string
49
49
  * @param alg JSON Web Algorithm identifier to be used with the imported key. See
50
50
  * {@link https://github.com/panva/jose/issues/210 Algorithm Key Requirements}.
51
51
  */