@zuplo/cli 7.6.9 → 7.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/node_modules/@inquirer/checkbox/package.json +3 -3
  2. package/node_modules/@inquirer/confirm/dist/index.js +1 -1
  3. package/node_modules/@inquirer/confirm/package.json +3 -3
  4. package/node_modules/@inquirer/core/dist/lib/create-prompt.js +66 -47
  5. package/node_modules/@inquirer/core/package.json +2 -2
  6. package/node_modules/@inquirer/editor/package.json +3 -3
  7. package/node_modules/@inquirer/expand/package.json +3 -3
  8. package/node_modules/@inquirer/input/package.json +3 -3
  9. package/node_modules/@inquirer/number/package.json +3 -3
  10. package/node_modules/@inquirer/password/package.json +3 -3
  11. package/node_modules/@inquirer/rawlist/package.json +3 -3
  12. package/node_modules/@inquirer/search/package.json +3 -3
  13. package/node_modules/@inquirer/select/package.json +3 -3
  14. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/index.d.ts +1 -2
  15. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +7 -11
  16. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +13 -16
  17. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +7 -11
  18. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +16 -19
  19. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +10 -16
  20. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +18 -21
  21. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwk/embedded.d.ts +3 -1
  22. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwk/thumbprint.d.ts +4 -6
  23. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwks/local.d.ts +5 -4
  24. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwks/remote.d.ts +20 -21
  25. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/compact/sign.d.ts +4 -4
  26. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/compact/verify.d.ts +8 -11
  27. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -5
  28. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/flattened/verify.d.ts +8 -11
  29. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/general/sign.d.ts +10 -14
  30. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jws/general/verify.d.ts +11 -17
  31. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/decrypt.d.ts +14 -11
  32. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/encrypt.d.ts +24 -22
  33. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/sign.d.ts +3 -7
  34. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -6
  35. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/verify.d.ts +13 -6
  36. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/export.d.ts +6 -6
  37. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/generate_key_pair.d.ts +9 -14
  38. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/generate_secret.d.ts +10 -10
  39. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/key/import.d.ts +19 -18
  40. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/types.d.ts +152 -247
  41. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/base64url.d.ts +7 -7
  42. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/decode_jwt.d.ts +6 -1
  43. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/decode_protected_header.d.ts +4 -3
  44. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/util/errors.d.ts +29 -40
  45. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +1 -2
  46. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +9 -26
  47. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +3 -3
  48. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +11 -30
  49. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/general/decrypt.js +6 -6
  50. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/general/encrypt.js +33 -57
  51. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwk/embedded.js +3 -4
  52. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwk/thumbprint.js +3 -6
  53. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/local.js +16 -10
  54. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/remote.js +2 -2
  55. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/compact/sign.js +2 -4
  56. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/compact/verify.js +2 -2
  57. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/flattened/sign.js +8 -15
  58. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/flattened/verify.js +4 -14
  59. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/general/sign.js +4 -11
  60. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/general/verify.js +5 -7
  61. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/decrypt.js +2 -3
  62. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/encrypt.js +11 -25
  63. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/sign.js +1 -1
  64. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/unsecured.js +1 -2
  65. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/verify.js +4 -4
  66. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/key/export.js +12 -16
  67. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/key/generate_key_pair.js +4 -13
  68. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/key/generate_secret.js +1 -1
  69. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/key/import.js +5 -9
  70. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/asn1.js +2 -4
  71. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/buffer_utils.js +35 -0
  72. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/content_encryption.js +21 -29
  73. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/deflate.js +9 -19
  74. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +0 -4
  75. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +21 -54
  76. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +26 -59
  77. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jws_sign.js +29 -43
  78. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jws_verify.js +37 -45
  79. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +1 -1
  80. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key.js +119 -59
  81. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key_management.js +45 -80
  82. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/{options.js → validate.js} +64 -3
  83. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/base64url.js +5 -19
  84. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/decode_jwt.js +1 -1
  85. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/util/decode_protected_header.js +1 -1
  86. package/node_modules/@modelcontextprotocol/client/node_modules/jose/package.json +1 -1
  87. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/index.d.ts +1 -2
  88. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +7 -11
  89. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +13 -16
  90. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +7 -11
  91. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +16 -19
  92. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +10 -16
  93. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +18 -21
  94. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwk/embedded.d.ts +3 -1
  95. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwk/thumbprint.d.ts +4 -6
  96. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwks/local.d.ts +5 -4
  97. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwks/remote.d.ts +20 -21
  98. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/compact/sign.d.ts +4 -4
  99. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/compact/verify.d.ts +8 -11
  100. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -5
  101. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/flattened/verify.d.ts +8 -11
  102. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/general/sign.d.ts +10 -14
  103. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jws/general/verify.d.ts +11 -17
  104. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/decrypt.d.ts +14 -11
  105. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/encrypt.d.ts +24 -22
  106. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/sign.d.ts +3 -7
  107. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -6
  108. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/verify.d.ts +13 -6
  109. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/export.d.ts +6 -6
  110. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/generate_key_pair.d.ts +9 -14
  111. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/generate_secret.d.ts +10 -10
  112. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/key/import.d.ts +19 -18
  113. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/types.d.ts +152 -247
  114. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/base64url.d.ts +7 -7
  115. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/decode_jwt.d.ts +6 -1
  116. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/decode_protected_header.d.ts +4 -3
  117. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/util/errors.d.ts +29 -40
  118. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +1 -2
  119. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +9 -26
  120. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +3 -3
  121. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +11 -30
  122. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/general/decrypt.js +6 -6
  123. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/general/encrypt.js +33 -57
  124. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwk/embedded.js +3 -4
  125. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwk/thumbprint.js +3 -6
  126. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/local.js +16 -10
  127. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/remote.js +2 -2
  128. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/compact/sign.js +2 -4
  129. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/compact/verify.js +2 -2
  130. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/flattened/sign.js +8 -15
  131. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/flattened/verify.js +4 -14
  132. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/general/sign.js +4 -11
  133. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/general/verify.js +5 -7
  134. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/decrypt.js +2 -3
  135. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/encrypt.js +11 -25
  136. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/sign.js +1 -1
  137. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/unsecured.js +1 -2
  138. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/verify.js +4 -4
  139. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/key/export.js +12 -16
  140. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/key/generate_key_pair.js +4 -13
  141. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/key/generate_secret.js +1 -1
  142. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/key/import.js +5 -9
  143. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/asn1.js +2 -4
  144. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/buffer_utils.js +35 -0
  145. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/content_encryption.js +21 -29
  146. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/deflate.js +9 -19
  147. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +0 -4
  148. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +21 -54
  149. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +26 -59
  150. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jws_sign.js +29 -43
  151. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jws_verify.js +37 -45
  152. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +1 -1
  153. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key.js +119 -59
  154. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key_management.js +45 -80
  155. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/{options.js → validate.js} +64 -3
  156. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/util/base64url.js +5 -19
  157. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/util/decode_jwt.js +1 -1
  158. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/util/decode_protected_header.js +1 -1
  159. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/package.json +1 -1
  160. package/node_modules/@posthog/core/dist/posthog-core.d.ts +14 -0
  161. package/node_modules/@posthog/core/dist/posthog-core.d.ts.map +1 -1
  162. package/node_modules/@posthog/core/dist/types.d.ts +1 -0
  163. package/node_modules/@posthog/core/dist/types.d.ts.map +1 -1
  164. package/node_modules/@posthog/core/dist/utils/index.d.ts +1 -0
  165. package/node_modules/@posthog/core/dist/utils/index.d.ts.map +1 -1
  166. package/node_modules/@posthog/core/dist/utils/index.js +26 -0
  167. package/node_modules/@posthog/core/dist/utils/index.mjs +1 -0
  168. package/node_modules/@posthog/core/dist/utils/webview-app-utils.d.ts +12 -0
  169. package/node_modules/@posthog/core/dist/utils/webview-app-utils.d.ts.map +1 -0
  170. package/node_modules/@posthog/core/dist/utils/webview-app-utils.js +132 -0
  171. package/node_modules/@posthog/core/dist/utils/webview-app-utils.mjs +94 -0
  172. package/node_modules/@posthog/core/package.json +2 -2
  173. package/node_modules/@posthog/core/src/featureFlagLocalEvaluation.ts +1 -1
  174. package/node_modules/@posthog/core/src/posthog-core.ts +14 -0
  175. package/node_modules/@posthog/core/src/types.ts +1 -0
  176. package/node_modules/@posthog/core/src/utils/index.ts +1 -0
  177. package/node_modules/@posthog/core/src/utils/otlp-any-value.spec.ts +1 -1
  178. package/node_modules/@posthog/core/src/utils/type-utils.ts +4 -4
  179. package/node_modules/@posthog/core/src/utils/webview-app-utils.spec.ts +118 -0
  180. package/node_modules/@posthog/core/src/utils/webview-app-utils.ts +49 -0
  181. package/node_modules/@posthog/types/dist/feature-flags.d.ts +1 -1
  182. package/node_modules/@posthog/types/dist/feature-flags.d.ts.map +1 -1
  183. package/node_modules/@posthog/types/dist/posthog-config.d.ts +7 -1
  184. package/node_modules/@posthog/types/dist/posthog-config.d.ts.map +1 -1
  185. package/node_modules/@posthog/types/package.json +1 -1
  186. package/node_modules/@posthog/types/src/feature-flags.ts +1 -1
  187. package/node_modules/@posthog/types/src/posthog-config.ts +7 -1
  188. package/node_modules/@posthog/types/src/tree-shakeable.ts +1 -1
  189. package/node_modules/@zuplo/core/package.json +1 -1
  190. package/node_modules/@zuplo/graphql/package.json +1 -1
  191. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  192. package/node_modules/@zuplo/otel/package.json +1 -1
  193. package/node_modules/@zuplo/runtime/out/esm/{chunk-Z3IKCP3N.js → chunk-R4PTES5B.js} +93 -93
  194. package/node_modules/@zuplo/runtime/out/esm/chunk-R4PTES5B.js.map +1 -0
  195. package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
  196. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
  197. package/node_modules/@zuplo/runtime/package.json +1 -1
  198. package/package.json +11 -11
  199. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/base64.js +0 -20
  200. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -27
  201. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/helpers.js +0 -45
  202. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -12
  203. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -19
  204. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwk_metadata.js +0 -19
  205. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -10
  206. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key_options.js +0 -8
  207. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/signing.js +0 -22
  208. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/type_checks.js +0 -30
  209. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/base64.js +0 -20
  210. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -27
  211. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/helpers.js +0 -45
  212. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -12
  213. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -19
  214. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwk_metadata.js +0 -19
  215. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -10
  216. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key_options.js +0 -8
  217. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/signing.js +0 -22
  218. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/type_checks.js +0 -30
  219. package/node_modules/@zuplo/runtime/out/esm/chunk-Z3IKCP3N.js.map +0 -1
  220. /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.4",
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.2",
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": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
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.1",
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.2",
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": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
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
- // The close event triggers immediately when the user press ctrl+c. SignalExit on the other hand
77
- // triggers after the process is done (which happens after timeouts are done triggering.)
78
- // We triggers the hooks cleanup phase on rl `close` so active timeouts can be cleared.
79
- const hooksCleanup = AsyncResource.bind(() => effectScheduler.clearAll());
80
- rl.on('close', hooksCleanup);
81
- cleanups.add(() => rl.removeListener('close', hooksCleanup));
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
- const checkCursorPos = () => screen.checkCursorPos();
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
- resolve(value);
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
- reject(error);
154
+ rejectPrompt(error);
121
155
  }
122
156
  effectsSettled = true;
123
157
  if (pendingDone !== null) {
124
158
  const { value } = pendingDone;
125
159
  pendingDone = null;
126
- resolve(value);
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 Object.assign(promise
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.2",
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": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
97
+ "gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
98
98
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/editor",
3
- "version": "5.3.2",
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.2",
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": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
91
+ "gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
92
92
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/expand",
3
- "version": "5.1.4",
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.2",
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": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
90
+ "gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
91
91
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/input",
3
- "version": "5.1.5",
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.2",
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": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
90
+ "gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
91
91
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/number",
3
- "version": "4.2.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.2",
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": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
90
+ "gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
91
91
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/password",
3
- "version": "5.2.1",
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.2",
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": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
91
+ "gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
92
92
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/rawlist",
3
- "version": "5.3.4",
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.2",
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": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
90
+ "gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
91
91
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/search",
3
- "version": "4.3.2",
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.2",
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": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
91
+ "gitHead": "cbdb34bfc6c245941d80ef88493c50b3d6dbfce6"
92
92
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/select",
3
- "version": "5.2.4",
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.2",
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": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
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
- * In prior releases this indicated whether a Node.js-specific build was loaded, this is now fixed
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
- /** Dynamic key resolver for Compact JWE decryption. */
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 Key or Secret to decrypt the JWE with. See
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, resolving the key dynamically. The result additionally carries the
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 Function resolving Private Key or Secret to decrypt the JWE with. See
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
- * Accepts either form of the `key` argument. Use this overload when forwarding a value that may be
22
- * either a key or a key resolution function; `key` is present on the result only when a resolution
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 Key or Secret, or a function resolving one, to decrypt the JWE with. See
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
- * {@link CompactEncrypt} constructor
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 to use, by default a random suitable one is generated for the JWE
13
- * "enc" (Encryption Algorithm) Header Parameter.
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 You should not use this method. It is only really intended for test and vector
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 JWE Initialization Vector to use for content encryption, by default a random suitable
21
- * one is generated for the JWE "enc" (Encryption Algorithm) Header Parameter.
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 You should not use this method. It is only really intended for test and vector
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 on the CompactEncrypt object. */
25
+ /** Sets the JWE Protected Header. May only be called once. */
28
26
  setProtectedHeader(protectedHeader: t.CompactJWEHeaderParameters): this;
29
27
  /**
30
- * Sets the JWE Key Management parameters to be used when encrypting. Use this method instead of
31
- * the header setters to configure algorithm inputs such as ECDH-ES "apu" (Agreement PartyUInfo)
32
- * and "apv" (Agreement PartyVInfo), or PBES2 "p2c" (PBES2 Count). The parameters are added to the
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 and resolves the value of the Compact JWE string.
34
+ * Encrypts the plaintext as a Compact JWE.
38
35
  *
39
- * @param key Public Key or Secret to encrypt the JWE with. See
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
- /** Dynamic key resolver for Flattened JWE decryption. */
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 Key or Secret to decrypt the JWE with. See
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, resolving the key dynamically. The result additionally carries the
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 Function resolving Private Key or Secret to decrypt the JWE with. See
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
- * Accepts either form of the `key` argument. Use this overload when forwarding a value that may be
22
- * either a key or a key resolution function; `key` is present on the result only when a resolution
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 Key or Secret, or a function resolving one, to decrypt the JWE with. See
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
- * {@link FlattenedEncrypt} constructor
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 the JWE Key Management parameters to be used when encrypting. Use this method instead of
13
- * the header setters to configure algorithm inputs such as ECDH-ES "apu" (Agreement PartyUInfo)
14
- * and "apv" (Agreement PartyVInfo), or PBES2 "p2c" (PBES2 Count). The parameters are added to the
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 on the FlattenedEncrypt object. */
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 on the FlattenedEncrypt object. */
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 on the FlattenedEncrypt object. */
21
+ /** Sets the JWE Per-Recipient Unprotected Header. May only be called once. */
23
22
  setUnprotectedHeader(unprotectedHeader: t.JWEHeaderParameters): this;
24
- /** Sets the Additional Authenticated Data on the FlattenedEncrypt object. */
23
+ /** Sets additional data to authenticate without encrypting it. */
25
24
  setAdditionalAuthenticatedData(aad: Uint8Array): this;
26
25
  /**
27
- * Sets a content encryption key to use, by default a random suitable one is generated for the JWE
28
- * "enc" (Encryption Algorithm) Header Parameter.
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 You should not use this method. It is only really intended for test and vector
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 JWE Initialization Vector to use for content encryption, by default a random suitable
36
- * one is generated for the JWE "enc" (Encryption Algorithm) Header Parameter.
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 You should not use this method. It is only really intended for test and vector
39
- * validation purposes.
36
+ * @deprecated Use only for testing and vector validation.
40
37
  */
41
38
  setInitializationVector(iv: Uint8Array): this;
42
39
  /**
43
- * Encrypts and resolves the value of the Flattened JWE object.
40
+ * Encrypts the plaintext as a Flattened JWE.
44
41
  *
45
- * @param key Public Key or Secret to encrypt the JWE with. See
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>;