@zuplo/cli 7.13.2 → 7.13.3

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 (43) hide show
  1. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/decrypt.d.ts +3 -0
  2. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -0
  3. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/verify.d.ts +3 -0
  4. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/types.d.ts +8 -0
  5. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/decode_jwt.d.ts +1 -0
  6. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
  7. package/node_modules/@modelcontextprotocol/client/node_modules/jose/package.json +1 -1
  8. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/decrypt.d.ts +3 -0
  9. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -0
  10. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/verify.d.ts +3 -0
  11. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/types.d.ts +8 -0
  12. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/decode_jwt.d.ts +1 -0
  13. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
  14. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/package.json +1 -1
  15. package/node_modules/@zuplo/core/customer.cli.minified.js +868 -290
  16. package/node_modules/@zuplo/core/index.minified.js +875 -297
  17. package/node_modules/@zuplo/core/package.json +1 -1
  18. package/node_modules/@zuplo/graphql/package.json +1 -1
  19. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  20. package/node_modules/@zuplo/otel/package.json +1 -1
  21. package/node_modules/@zuplo/runtime/out/esm/{chunk-5VRGV7FV.js → chunk-DVFQRFED.js} +66 -66
  22. package/node_modules/@zuplo/runtime/out/esm/{chunk-5VRGV7FV.js.map → chunk-DVFQRFED.js.map} +1 -1
  23. package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
  24. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
  25. package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
  26. package/node_modules/@zuplo/runtime/package.json +1 -1
  27. package/node_modules/ansi-regex/index.js +13 -4
  28. package/node_modules/ansi-regex/package.json +30 -13
  29. package/node_modules/encodeurl/README.md +14 -0
  30. package/node_modules/encodeurl/index.js +5 -10
  31. package/node_modules/encodeurl/package.json +10 -6
  32. package/node_modules/express-rate-limit/dist/index.cjs +6 -2
  33. package/node_modules/express-rate-limit/dist/index.mjs +6 -2
  34. package/node_modules/express-rate-limit/package.json +10 -10
  35. package/node_modules/qs/CHANGELOG.md +42 -0
  36. package/node_modules/qs/README.md +38 -10
  37. package/node_modules/qs/dist/qs.js +18 -18
  38. package/node_modules/qs/lib/parse.js +16 -4
  39. package/node_modules/qs/lib/utils.js +13 -2
  40. package/node_modules/qs/package.json +1 -1
  41. package/node_modules/qs/test/parse.js +69 -0
  42. package/package.json +11 -11
  43. /package/node_modules/@zuplo/runtime/out/esm/{chunk-5VRGV7FV.js.LEGAL.txt → chunk-DVFQRFED.js.LEGAL.txt} +0 -0
@@ -8,6 +8,9 @@ export interface JWTDecryptOptions extends t.DecryptOptions, t.JWTClaimVerificat
8
8
  */
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
+ export declare function jwtDecrypt<PayloadType, KeyType extends t.KeyInput, InferredPayloadType>(jwt: string | Uint8Array, key: KeyType, options?: JWTDecryptOptions): Promise<t.InferredJWTResult<t.JWTDecryptResult<unknown>, InferredPayloadType & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never)>>;
12
+ export declare function jwtDecrypt<PayloadType, KeyType extends t.CryptoKey | Uint8Array, InferredPayloadType>(jwt: string | Uint8Array, getKey: JWTDecryptGetKey<KeyType>, options?: JWTDecryptOptions): Promise<t.InferredJWTResult<t.JWTDecryptResult<unknown>, InferredPayloadType & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never)> & t.ResolvedKey<KeyType>>;
13
+ export declare function jwtDecrypt<PayloadType, KeyType extends t.KeyInput | JWTDecryptGetKey, InferredPayloadType>(jwt: string | Uint8Array, key: KeyType, options?: JWTDecryptOptions): Promise<t.InferredJWTResult<t.JWTDecryptResult<unknown>, InferredPayloadType & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never)> & Partial<t.ResolvedKey>>;
11
14
  /**
12
15
  * Authenticates and decrypts a JWT in JWE Compact Serialization and validates its JWT Claims Set.
13
16
  *
@@ -14,6 +14,8 @@ export declare class UnsecuredJWT extends UnsecuredJWT_base {
14
14
  /** Encodes the Unsecured JWT. */
15
15
  encode(): string;
16
16
  /** Decodes an unsecured JWT and validates its claims without authenticating the token. */
17
+ static decode<PayloadType, InferredPayloadType>(jwt: string, options?: t.JWTClaimVerificationOptions): t.InferredJWTResult<UnsecuredResult<unknown>, InferredPayloadType & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never)>;
18
+ /** Decodes an unsecured JWT and validates its claims without authenticating the token. */
17
19
  static decode<PayloadType = t.JWTPayload>(jwt: string, options?: t.JWTClaimVerificationOptions): UnsecuredResult<PayloadType>;
18
20
  }
19
21
  export {};
@@ -8,6 +8,9 @@ export interface JWTVerifyOptions extends t.VerifyOptions, t.JWTClaimVerificatio
8
8
  */
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
+ export declare function jwtVerify<PayloadType, KeyType extends t.KeyInput, InferredPayloadType>(jwt: string | Uint8Array, key: KeyType, options?: JWTVerifyOptions): Promise<t.InferredJWTResult<t.JWTVerifyResult<unknown>, InferredPayloadType & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never)>>;
12
+ export declare function jwtVerify<PayloadType, KeyType extends t.CryptoKey | Uint8Array, InferredPayloadType>(jwt: string | Uint8Array, getKey: JWTVerifyGetKey<KeyType>, options?: JWTVerifyOptions): Promise<t.InferredJWTResult<t.JWTVerifyResult<unknown>, InferredPayloadType & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never)> & t.ResolvedKey<KeyType>>;
13
+ export declare function jwtVerify<PayloadType, KeyType extends t.KeyInput | JWTVerifyGetKey, InferredPayloadType>(jwt: string | Uint8Array, key: KeyType, options?: JWTVerifyOptions): Promise<t.InferredJWTResult<t.JWTVerifyResult<unknown>, InferredPayloadType & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never)> & Partial<t.ResolvedKey>>;
11
14
  /**
12
15
  * Validates a JWT in JWS Compact Serialization (digital signature or MAC) and its JWT Claims Set.
13
16
  *
@@ -665,6 +665,14 @@ export interface CompactVerifyResult {
665
665
  protectedHeader: CompactJWSHeaderParameters
666
666
  }
667
667
 
668
+ /**
669
+ * Infers the payload separately from its object check while preserving the result metadata. The
670
+ * guarded payload must be passed inline; moving the check here changes contextual inference.
671
+ */
672
+ export type InferredJWTResult<Result, Payload> = Omit<Result, 'payload'> & {
673
+ payload: Payload & JWTPayload
674
+ }
675
+
668
676
  /** Signed or MACed JSON Web Token (JWT) verification result. */
669
677
  export interface JWTVerifyResult<PayloadType = JWTPayload> {
670
678
  /** JWT Claims Set. */
@@ -1,4 +1,5 @@
1
1
  import type * as t from '../types.d.ts';
2
+ export declare function decodeJwt<PayloadType, InferredPayloadType>(jwt: string): InferredPayloadType & t.JWTPayload & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never);
2
3
  /**
3
4
  * Decodes the Claims Set of a JWT in JWS Compact Serialization without validating its JWS Signature
4
5
  * (digital signature or MAC) or claim types and values.
@@ -5,7 +5,7 @@ function isCloudflareWorkers() {
5
5
  return typeof WebSocketPair < "u" || typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers" || typeof EdgeRuntime < "u" && EdgeRuntime === "vercel";
6
6
  }
7
7
  let USER_AGENT;
8
- (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.13");
8
+ (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.14");
9
9
  const customFetch = /* @__PURE__ */ Symbol();
10
10
  async function fetchJwks(url, headers, signal, fetchImpl = fetch) {
11
11
  const response = await fetchImpl(url, {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jose",
3
- "version": "6.2.13",
3
+ "version": "6.2.14",
4
4
  "description": "JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes",
5
5
  "keywords": [
6
6
  "akp",
@@ -8,6 +8,9 @@ export interface JWTDecryptOptions extends t.DecryptOptions, t.JWTClaimVerificat
8
8
  */
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
+ export declare function jwtDecrypt<PayloadType, KeyType extends t.KeyInput, InferredPayloadType>(jwt: string | Uint8Array, key: KeyType, options?: JWTDecryptOptions): Promise<t.InferredJWTResult<t.JWTDecryptResult<unknown>, InferredPayloadType & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never)>>;
12
+ export declare function jwtDecrypt<PayloadType, KeyType extends t.CryptoKey | Uint8Array, InferredPayloadType>(jwt: string | Uint8Array, getKey: JWTDecryptGetKey<KeyType>, options?: JWTDecryptOptions): Promise<t.InferredJWTResult<t.JWTDecryptResult<unknown>, InferredPayloadType & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never)> & t.ResolvedKey<KeyType>>;
13
+ export declare function jwtDecrypt<PayloadType, KeyType extends t.KeyInput | JWTDecryptGetKey, InferredPayloadType>(jwt: string | Uint8Array, key: KeyType, options?: JWTDecryptOptions): Promise<t.InferredJWTResult<t.JWTDecryptResult<unknown>, InferredPayloadType & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never)> & Partial<t.ResolvedKey>>;
11
14
  /**
12
15
  * Authenticates and decrypts a JWT in JWE Compact Serialization and validates its JWT Claims Set.
13
16
  *
@@ -14,6 +14,8 @@ export declare class UnsecuredJWT extends UnsecuredJWT_base {
14
14
  /** Encodes the Unsecured JWT. */
15
15
  encode(): string;
16
16
  /** Decodes an unsecured JWT and validates its claims without authenticating the token. */
17
+ static decode<PayloadType, InferredPayloadType>(jwt: string, options?: t.JWTClaimVerificationOptions): t.InferredJWTResult<UnsecuredResult<unknown>, InferredPayloadType & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never)>;
18
+ /** Decodes an unsecured JWT and validates its claims without authenticating the token. */
17
19
  static decode<PayloadType = t.JWTPayload>(jwt: string, options?: t.JWTClaimVerificationOptions): UnsecuredResult<PayloadType>;
18
20
  }
19
21
  export {};
@@ -8,6 +8,9 @@ export interface JWTVerifyOptions extends t.VerifyOptions, t.JWTClaimVerificatio
8
8
  */
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
+ export declare function jwtVerify<PayloadType, KeyType extends t.KeyInput, InferredPayloadType>(jwt: string | Uint8Array, key: KeyType, options?: JWTVerifyOptions): Promise<t.InferredJWTResult<t.JWTVerifyResult<unknown>, InferredPayloadType & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never)>>;
12
+ export declare function jwtVerify<PayloadType, KeyType extends t.CryptoKey | Uint8Array, InferredPayloadType>(jwt: string | Uint8Array, getKey: JWTVerifyGetKey<KeyType>, options?: JWTVerifyOptions): Promise<t.InferredJWTResult<t.JWTVerifyResult<unknown>, InferredPayloadType & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never)> & t.ResolvedKey<KeyType>>;
13
+ export declare function jwtVerify<PayloadType, KeyType extends t.KeyInput | JWTVerifyGetKey, InferredPayloadType>(jwt: string | Uint8Array, key: KeyType, options?: JWTVerifyOptions): Promise<t.InferredJWTResult<t.JWTVerifyResult<unknown>, InferredPayloadType & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never)> & Partial<t.ResolvedKey>>;
11
14
  /**
12
15
  * Validates a JWT in JWS Compact Serialization (digital signature or MAC) and its JWT Claims Set.
13
16
  *
@@ -665,6 +665,14 @@ export interface CompactVerifyResult {
665
665
  protectedHeader: CompactJWSHeaderParameters
666
666
  }
667
667
 
668
+ /**
669
+ * Infers the payload separately from its object check while preserving the result metadata. The
670
+ * guarded payload must be passed inline; moving the check here changes contextual inference.
671
+ */
672
+ export type InferredJWTResult<Result, Payload> = Omit<Result, 'payload'> & {
673
+ payload: Payload & JWTPayload
674
+ }
675
+
668
676
  /** Signed or MACed JSON Web Token (JWT) verification result. */
669
677
  export interface JWTVerifyResult<PayloadType = JWTPayload> {
670
678
  /** JWT Claims Set. */
@@ -1,4 +1,5 @@
1
1
  import type * as t from '../types.d.ts';
2
+ export declare function decodeJwt<PayloadType, InferredPayloadType>(jwt: string): InferredPayloadType & t.JWTPayload & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never);
2
3
  /**
3
4
  * Decodes the Claims Set of a JWT in JWS Compact Serialization without validating its JWS Signature
4
5
  * (digital signature or MAC) or claim types and values.
@@ -5,7 +5,7 @@ function isCloudflareWorkers() {
5
5
  return typeof WebSocketPair < "u" || typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers" || typeof EdgeRuntime < "u" && EdgeRuntime === "vercel";
6
6
  }
7
7
  let USER_AGENT;
8
- (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.13");
8
+ (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.14");
9
9
  const customFetch = /* @__PURE__ */ Symbol();
10
10
  async function fetchJwks(url, headers, signal, fetchImpl = fetch) {
11
11
  const response = await fetchImpl(url, {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jose",
3
- "version": "6.2.13",
3
+ "version": "6.2.14",
4
4
  "description": "JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes",
5
5
  "keywords": [
6
6
  "akp",