repoburg 1.0.67 → 1.0.68

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 (2040) hide show
  1. package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/backend/node_modules/@types/node/LICENSE +21 -0
  3. package/backend/node_modules/@types/node/README.md +15 -0
  4. package/backend/node_modules/@types/node/assert/strict.d.ts +8 -0
  5. package/backend/node_modules/@types/node/assert.d.ts +1044 -0
  6. package/backend/node_modules/@types/node/async_hooks.d.ts +605 -0
  7. package/backend/node_modules/@types/node/buffer.buffer.d.ts +462 -0
  8. package/backend/node_modules/@types/node/buffer.d.ts +1932 -0
  9. package/backend/node_modules/@types/node/child_process.d.ts +1452 -0
  10. package/backend/node_modules/@types/node/cluster.d.ts +578 -0
  11. package/backend/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  12. package/backend/node_modules/@types/node/compatibility/index.d.ts +9 -0
  13. package/backend/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  14. package/backend/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  15. package/backend/node_modules/@types/node/console.d.ts +452 -0
  16. package/backend/node_modules/@types/node/constants.d.ts +21 -0
  17. package/backend/node_modules/@types/node/crypto.d.ts +4570 -0
  18. package/backend/node_modules/@types/node/dgram.d.ts +596 -0
  19. package/backend/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
  20. package/backend/node_modules/@types/node/dns/promises.d.ts +479 -0
  21. package/backend/node_modules/@types/node/dns.d.ts +871 -0
  22. package/backend/node_modules/@types/node/domain.d.ts +170 -0
  23. package/backend/node_modules/@types/node/events.d.ts +931 -0
  24. package/backend/node_modules/@types/node/fs/promises.d.ts +1248 -0
  25. package/backend/node_modules/@types/node/fs.d.ts +4362 -0
  26. package/backend/node_modules/@types/node/globals.d.ts +170 -0
  27. package/backend/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  28. package/backend/node_modules/@types/node/http.d.ts +2031 -0
  29. package/backend/node_modules/@types/node/http2.d.ts +2623 -0
  30. package/backend/node_modules/@types/node/https.d.ts +549 -0
  31. package/backend/node_modules/@types/node/index.d.ts +93 -0
  32. package/backend/node_modules/@types/node/inspector.generated.d.ts +3966 -0
  33. package/backend/node_modules/@types/node/module.d.ts +539 -0
  34. package/backend/node_modules/@types/node/net.d.ts +1011 -0
  35. package/backend/node_modules/@types/node/os.d.ts +495 -0
  36. package/backend/node_modules/@types/node/package.json +140 -0
  37. package/backend/node_modules/@types/node/path.d.ts +200 -0
  38. package/backend/node_modules/@types/node/perf_hooks.d.ts +963 -0
  39. package/backend/node_modules/@types/node/process.d.ts +1956 -0
  40. package/backend/node_modules/@types/node/punycode.d.ts +117 -0
  41. package/backend/node_modules/@types/node/querystring.d.ts +152 -0
  42. package/backend/node_modules/@types/node/readline/promises.d.ts +162 -0
  43. package/backend/node_modules/@types/node/readline.d.ts +589 -0
  44. package/backend/node_modules/@types/node/repl.d.ts +430 -0
  45. package/backend/node_modules/@types/node/sea.d.ts +153 -0
  46. package/backend/node_modules/@types/node/stream/consumers.d.ts +38 -0
  47. package/backend/node_modules/@types/node/stream/promises.d.ts +90 -0
  48. package/backend/node_modules/@types/node/stream/web.d.ts +533 -0
  49. package/backend/node_modules/@types/node/stream.d.ts +1668 -0
  50. package/backend/node_modules/@types/node/string_decoder.d.ts +67 -0
  51. package/backend/node_modules/@types/node/test.d.ts +1807 -0
  52. package/backend/node_modules/@types/node/timers/promises.d.ts +108 -0
  53. package/backend/node_modules/@types/node/timers.d.ts +286 -0
  54. package/backend/node_modules/@types/node/tls.d.ts +1231 -0
  55. package/backend/node_modules/@types/node/trace_events.d.ts +197 -0
  56. package/backend/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +460 -0
  57. package/backend/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  58. package/backend/node_modules/@types/node/ts5.6/index.d.ts +93 -0
  59. package/backend/node_modules/@types/node/tty.d.ts +208 -0
  60. package/backend/node_modules/@types/node/url.d.ts +964 -0
  61. package/backend/node_modules/@types/node/util.d.ts +2331 -0
  62. package/backend/node_modules/@types/node/v8.d.ts +808 -0
  63. package/backend/node_modules/@types/node/vm.d.ts +1030 -0
  64. package/backend/node_modules/@types/node/wasi.d.ts +181 -0
  65. package/backend/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  66. package/backend/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  67. package/backend/node_modules/@types/node/web-globals/events.d.ts +94 -0
  68. package/backend/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
  69. package/backend/node_modules/@types/node/worker_threads.d.ts +743 -0
  70. package/backend/node_modules/@types/node/zlib.d.ts +539 -0
  71. package/backend/package.json +1 -6
  72. package/daemon/node_modules/@types/node/LICENSE +21 -0
  73. package/daemon/node_modules/@types/node/README.md +15 -0
  74. package/daemon/node_modules/@types/node/assert/strict.d.ts +8 -0
  75. package/daemon/node_modules/@types/node/assert.d.ts +1044 -0
  76. package/daemon/node_modules/@types/node/async_hooks.d.ts +605 -0
  77. package/daemon/node_modules/@types/node/buffer.buffer.d.ts +462 -0
  78. package/daemon/node_modules/@types/node/buffer.d.ts +1932 -0
  79. package/daemon/node_modules/@types/node/child_process.d.ts +1452 -0
  80. package/daemon/node_modules/@types/node/cluster.d.ts +578 -0
  81. package/daemon/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  82. package/daemon/node_modules/@types/node/compatibility/index.d.ts +9 -0
  83. package/daemon/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  84. package/daemon/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  85. package/daemon/node_modules/@types/node/console.d.ts +452 -0
  86. package/daemon/node_modules/@types/node/constants.d.ts +21 -0
  87. package/daemon/node_modules/@types/node/crypto.d.ts +4570 -0
  88. package/daemon/node_modules/@types/node/dgram.d.ts +596 -0
  89. package/daemon/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
  90. package/daemon/node_modules/@types/node/dns/promises.d.ts +479 -0
  91. package/daemon/node_modules/@types/node/dns.d.ts +871 -0
  92. package/daemon/node_modules/@types/node/domain.d.ts +170 -0
  93. package/daemon/node_modules/@types/node/events.d.ts +931 -0
  94. package/daemon/node_modules/@types/node/fs/promises.d.ts +1248 -0
  95. package/daemon/node_modules/@types/node/fs.d.ts +4362 -0
  96. package/daemon/node_modules/@types/node/globals.d.ts +170 -0
  97. package/daemon/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  98. package/daemon/node_modules/@types/node/http.d.ts +2031 -0
  99. package/daemon/node_modules/@types/node/http2.d.ts +2623 -0
  100. package/daemon/node_modules/@types/node/https.d.ts +549 -0
  101. package/daemon/node_modules/@types/node/index.d.ts +93 -0
  102. package/daemon/node_modules/@types/node/inspector.generated.d.ts +3966 -0
  103. package/daemon/node_modules/@types/node/module.d.ts +539 -0
  104. package/daemon/node_modules/@types/node/net.d.ts +1011 -0
  105. package/daemon/node_modules/@types/node/os.d.ts +495 -0
  106. package/daemon/node_modules/@types/node/package.json +140 -0
  107. package/daemon/node_modules/@types/node/path.d.ts +200 -0
  108. package/daemon/node_modules/@types/node/perf_hooks.d.ts +963 -0
  109. package/daemon/node_modules/@types/node/process.d.ts +1956 -0
  110. package/daemon/node_modules/@types/node/punycode.d.ts +117 -0
  111. package/daemon/node_modules/@types/node/querystring.d.ts +152 -0
  112. package/daemon/node_modules/@types/node/readline/promises.d.ts +162 -0
  113. package/daemon/node_modules/@types/node/readline.d.ts +589 -0
  114. package/daemon/node_modules/@types/node/repl.d.ts +430 -0
  115. package/daemon/node_modules/@types/node/sea.d.ts +153 -0
  116. package/daemon/node_modules/@types/node/stream/consumers.d.ts +38 -0
  117. package/daemon/node_modules/@types/node/stream/promises.d.ts +90 -0
  118. package/daemon/node_modules/@types/node/stream/web.d.ts +533 -0
  119. package/daemon/node_modules/@types/node/stream.d.ts +1668 -0
  120. package/daemon/node_modules/@types/node/string_decoder.d.ts +67 -0
  121. package/daemon/node_modules/@types/node/test.d.ts +1807 -0
  122. package/daemon/node_modules/@types/node/timers/promises.d.ts +108 -0
  123. package/daemon/node_modules/@types/node/timers.d.ts +286 -0
  124. package/daemon/node_modules/@types/node/tls.d.ts +1231 -0
  125. package/daemon/node_modules/@types/node/trace_events.d.ts +197 -0
  126. package/daemon/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +460 -0
  127. package/daemon/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  128. package/daemon/node_modules/@types/node/ts5.6/index.d.ts +93 -0
  129. package/daemon/node_modules/@types/node/tty.d.ts +208 -0
  130. package/daemon/node_modules/@types/node/url.d.ts +964 -0
  131. package/daemon/node_modules/@types/node/util.d.ts +2331 -0
  132. package/daemon/node_modules/@types/node/v8.d.ts +808 -0
  133. package/daemon/node_modules/@types/node/vm.d.ts +1030 -0
  134. package/daemon/node_modules/@types/node/wasi.d.ts +181 -0
  135. package/daemon/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  136. package/daemon/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  137. package/daemon/node_modules/@types/node/web-globals/events.d.ts +94 -0
  138. package/daemon/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
  139. package/daemon/node_modules/@types/node/worker_threads.d.ts +743 -0
  140. package/daemon/node_modules/@types/node/zlib.d.ts +539 -0
  141. package/package.json +7 -2
  142. package/backend/node_modules/@eslint/eslintrc/LICENSE +0 -19
  143. package/backend/node_modules/@eslint/eslintrc/README.md +0 -115
  144. package/backend/node_modules/@eslint/eslintrc/conf/config-schema.js +0 -79
  145. package/backend/node_modules/@eslint/eslintrc/conf/environments.js +0 -215
  146. package/backend/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +0 -1104
  147. package/backend/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +0 -1
  148. package/backend/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +0 -4344
  149. package/backend/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +0 -1
  150. package/backend/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +0 -532
  151. package/backend/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +0 -523
  152. package/backend/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +0 -124
  153. package/backend/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +0 -145
  154. package/backend/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +0 -238
  155. package/backend/node_modules/@eslint/eslintrc/lib/config-array/index.js +0 -19
  156. package/backend/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +0 -225
  157. package/backend/node_modules/@eslint/eslintrc/lib/config-array-factory.js +0 -1151
  158. package/backend/node_modules/@eslint/eslintrc/lib/flat-compat.js +0 -318
  159. package/backend/node_modules/@eslint/eslintrc/lib/index-universal.js +0 -29
  160. package/backend/node_modules/@eslint/eslintrc/lib/index.js +0 -56
  161. package/backend/node_modules/@eslint/eslintrc/lib/shared/ajv.js +0 -191
  162. package/backend/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +0 -135
  163. package/backend/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +0 -325
  164. package/backend/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +0 -63
  165. package/backend/node_modules/@eslint/eslintrc/lib/shared/naming.js +0 -96
  166. package/backend/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +0 -42
  167. package/backend/node_modules/@eslint/eslintrc/lib/shared/types.js +0 -149
  168. package/backend/node_modules/@eslint/eslintrc/package.json +0 -82
  169. package/backend/node_modules/@eslint/eslintrc/universal.js +0 -9
  170. package/backend/node_modules/@typescript-eslint/eslint-plugin/LICENSE +0 -21
  171. package/backend/node_modules/@typescript-eslint/eslint-plugin/README.md +0 -12
  172. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js +0 -156
  173. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map +0 -1
  174. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js +0 -13
  175. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js.map +0 -1
  176. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js +0 -64
  177. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js.map +0 -1
  178. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js +0 -31
  179. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map +0 -1
  180. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js +0 -54
  181. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js.map +0 -1
  182. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js +0 -33
  183. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js.map +0 -1
  184. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js +0 -79
  185. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js.map +0 -1
  186. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js +0 -43
  187. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map +0 -1
  188. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js +0 -35
  189. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js.map +0 -1
  190. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js +0 -29
  191. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js.map +0 -1
  192. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/index.js +0 -39
  193. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map +0 -1
  194. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +0 -140
  195. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map +0 -1
  196. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +0 -222
  197. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map +0 -1
  198. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js +0 -76
  199. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map +0 -1
  200. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +0 -156
  201. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map +0 -1
  202. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js +0 -56
  203. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map +0 -1
  204. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js +0 -240
  205. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map +0 -1
  206. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js +0 -140
  207. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js.map +0 -1
  208. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js +0 -99
  209. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js.map +0 -1
  210. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js +0 -123
  211. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map +0 -1
  212. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js +0 -211
  213. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js.map +0 -1
  214. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js +0 -166
  215. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js.map +0 -1
  216. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js +0 -152
  217. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map +0 -1
  218. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +0 -109
  219. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map +0 -1
  220. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js +0 -128
  221. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js.map +0 -1
  222. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +0 -222
  223. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map +0 -1
  224. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js +0 -98
  225. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map +0 -1
  226. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js +0 -245
  227. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map +0 -1
  228. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +0 -635
  229. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map +0 -1
  230. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js +0 -63
  231. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js.map +0 -1
  232. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js +0 -120
  233. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map +0 -1
  234. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js +0 -112
  235. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map +0 -1
  236. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +0 -164
  237. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map +0 -1
  238. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js +0 -283
  239. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map +0 -1
  240. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js +0 -366
  241. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map +0 -1
  242. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js +0 -147
  243. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js.map +0 -1
  244. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js +0 -415
  245. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js.map +0 -1
  246. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +0 -288
  247. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map +0 -1
  248. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js +0 -48
  249. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map +0 -1
  250. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js +0 -322
  251. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map +0 -1
  252. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js +0 -95
  253. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js.map +0 -1
  254. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js +0 -357
  255. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js.map +0 -1
  256. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js +0 -57
  257. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js.map +0 -1
  258. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js +0 -67
  259. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js.map +0 -1
  260. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js +0 -258
  261. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js.map +0 -1
  262. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +0 -747
  263. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map +0 -1
  264. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +0 -181
  265. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map +0 -1
  266. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +0 -101
  267. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map +0 -1
  268. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js +0 -91
  269. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js.map +0 -1
  270. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js +0 -12
  271. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js.map +0 -1
  272. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js +0 -75
  273. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js.map +0 -1
  274. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +0 -291
  275. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map +0 -1
  276. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js +0 -18
  277. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js.map +0 -1
  278. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js +0 -3
  279. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js.map +0 -1
  280. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js +0 -351
  281. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map +0 -1
  282. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +0 -488
  283. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map +0 -1
  284. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js +0 -53
  285. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map +0 -1
  286. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js +0 -83
  287. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js.map +0 -1
  288. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +0 -164
  289. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map +0 -1
  290. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js +0 -78
  291. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map +0 -1
  292. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +0 -293
  293. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map +0 -1
  294. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js +0 -51
  295. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map +0 -1
  296. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js +0 -62
  297. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js.map +0 -1
  298. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +0 -139
  299. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map +0 -1
  300. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js +0 -95
  301. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map +0 -1
  302. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js +0 -132
  303. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map +0 -1
  304. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +0 -94
  305. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map +0 -1
  306. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +0 -170
  307. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map +0 -1
  308. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js +0 -36
  309. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map +0 -1
  310. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js +0 -297
  311. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js.map +0 -1
  312. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js +0 -43
  313. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js.map +0 -1
  314. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js +0 -112
  315. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map +0 -1
  316. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +0 -342
  317. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map +0 -1
  318. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js +0 -60
  319. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map +0 -1
  320. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +0 -160
  321. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map +0 -1
  322. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +0 -56
  323. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map +0 -1
  324. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +0 -185
  325. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map +0 -1
  326. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js +0 -76
  327. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map +0 -1
  328. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js +0 -182
  329. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map +0 -1
  330. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js +0 -169
  331. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map +0 -1
  332. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +0 -39
  333. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map +0 -1
  334. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js +0 -213
  335. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map +0 -1
  336. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js +0 -96
  337. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map +0 -1
  338. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js +0 -82
  339. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map +0 -1
  340. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +0 -523
  341. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map +0 -1
  342. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +0 -193
  343. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map +0 -1
  344. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js +0 -63
  345. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map +0 -1
  346. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +0 -76
  347. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map +0 -1
  348. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js +0 -66
  349. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map +0 -1
  350. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js +0 -104
  351. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map +0 -1
  352. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js +0 -201
  353. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map +0 -1
  354. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +0 -372
  355. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map +0 -1
  356. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js +0 -90
  357. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map +0 -1
  358. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js +0 -237
  359. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js.map +0 -1
  360. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +0 -482
  361. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map +0 -1
  362. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js +0 -65
  363. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map +0 -1
  364. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js +0 -96
  365. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js.map +0 -1
  366. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js +0 -260
  367. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map +0 -1
  368. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +0 -234
  369. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map +0 -1
  370. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +0 -540
  371. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map +0 -1
  372. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +0 -149
  373. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map +0 -1
  374. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js +0 -150
  375. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map +0 -1
  376. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +0 -252
  377. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map +0 -1
  378. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js +0 -112
  379. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map +0 -1
  380. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +0 -226
  381. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map +0 -1
  382. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js +0 -282
  383. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map +0 -1
  384. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js +0 -83
  385. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map +0 -1
  386. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js +0 -56
  387. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js.map +0 -1
  388. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js +0 -168
  389. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map +0 -1
  390. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js +0 -123
  391. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map +0 -1
  392. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js +0 -161
  393. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map +0 -1
  394. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js +0 -68
  395. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js.map +0 -1
  396. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js +0 -58
  397. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map +0 -1
  398. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +0 -490
  399. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map +0 -1
  400. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +0 -297
  401. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map +0 -1
  402. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js +0 -59
  403. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map +0 -1
  404. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js +0 -72
  405. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js.map +0 -1
  406. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-template-literals.js +0 -138
  407. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-template-literals.js.map +0 -1
  408. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js +0 -67
  409. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map +0 -1
  410. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js +0 -125
  411. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map +0 -1
  412. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js +0 -226
  413. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js.map +0 -1
  414. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js +0 -634
  415. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js.map +0 -1
  416. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js +0 -171
  417. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js.map +0 -1
  418. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js +0 -73
  419. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map +0 -1
  420. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js +0 -200
  421. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js.map +0 -1
  422. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js +0 -65
  423. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map +0 -1
  424. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js +0 -235
  425. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js.map +0 -1
  426. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +0 -156
  427. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map +0 -1
  428. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +0 -186
  429. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map +0 -1
  430. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +0 -231
  431. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map +0 -1
  432. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js +0 -72
  433. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map +0 -1
  434. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js +0 -46
  435. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map +0 -1
  436. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +0 -348
  437. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map +0 -1
  438. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js +0 -3
  439. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js.map +0 -1
  440. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js +0 -417
  441. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map +0 -1
  442. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js +0 -318
  443. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js.map +0 -1
  444. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js +0 -279
  445. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map +0 -1
  446. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +0 -175
  447. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map +0 -1
  448. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js +0 -107
  449. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js.map +0 -1
  450. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js +0 -82
  451. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map +0 -1
  452. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +0 -315
  453. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map +0 -1
  454. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js +0 -74
  455. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map +0 -1
  456. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +0 -159
  457. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map +0 -1
  458. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js +0 -137
  459. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map +0 -1
  460. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +0 -508
  461. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map +0 -1
  462. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js +0 -62
  463. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map +0 -1
  464. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +0 -182
  465. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map +0 -1
  466. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js +0 -63
  467. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js.map +0 -1
  468. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +0 -62
  469. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map +0 -1
  470. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js +0 -212
  471. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map +0 -1
  472. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js +0 -211
  473. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map +0 -1
  474. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +0 -145
  475. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map +0 -1
  476. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js +0 -268
  477. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map +0 -1
  478. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js +0 -64
  479. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js.map +0 -1
  480. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +0 -228
  481. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map +0 -1
  482. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js +0 -80
  483. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js.map +0 -1
  484. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js +0 -143
  485. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map +0 -1
  486. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-infix-ops.js +0 -133
  487. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-infix-ops.js.map +0 -1
  488. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +0 -800
  489. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map +0 -1
  490. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +0 -242
  491. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map +0 -1
  492. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +0 -110
  493. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map +0 -1
  494. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js +0 -228
  495. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js.map +0 -1
  496. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js +0 -200
  497. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map +0 -1
  498. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +0 -245
  499. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map +0 -1
  500. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js +0 -398
  501. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map +0 -1
  502. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js +0 -89
  503. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map +0 -1
  504. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js +0 -562
  505. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map +0 -1
  506. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js +0 -6
  507. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map +0 -1
  508. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js +0 -16
  509. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js.map +0 -1
  510. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js +0 -241
  511. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map +0 -1
  512. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js +0 -45
  513. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map +0 -1
  514. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js +0 -163
  515. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js.map +0 -1
  516. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js +0 -418
  517. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js.map +0 -1
  518. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js +0 -46
  519. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js.map +0 -1
  520. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +0 -20
  521. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map +0 -1
  522. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js +0 -26
  523. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js.map +0 -1
  524. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js +0 -8
  525. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js.map +0 -1
  526. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +0 -155
  527. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map +0 -1
  528. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +0 -42
  529. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map +0 -1
  530. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js +0 -27
  531. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js.map +0 -1
  532. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js +0 -9
  533. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map +0 -1
  534. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js +0 -9
  535. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js.map +0 -1
  536. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +0 -189
  537. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map +0 -1
  538. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js +0 -27
  539. package/backend/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js.map +0 -1
  540. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md +0 -60
  541. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/TEMPLATE.md +0 -30
  542. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/adjacent-overload-signatures.md +0 -99
  543. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.md +0 -111
  544. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.md +0 -42
  545. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.md +0 -151
  546. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.md +0 -39
  547. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md +0 -132
  548. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md +0 -10
  549. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md +0 -10
  550. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/camelcase.md +0 -13
  551. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.md +0 -105
  552. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-methods-use-this.md +0 -96
  553. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md +0 -20
  554. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md +0 -10
  555. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-generic-constructors.md +0 -76
  556. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.md +0 -80
  557. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.md +0 -113
  558. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.md +0 -81
  559. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.md +0 -105
  560. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md +0 -108
  561. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.md +0 -58
  562. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.md +0 -82
  563. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md +0 -320
  564. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.md +0 -344
  565. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.md +0 -249
  566. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md +0 -10
  567. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md +0 -18
  568. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.md +0 -10
  569. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md +0 -10
  570. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md +0 -10
  571. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md +0 -25
  572. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md +0 -55
  573. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/max-params.md +0 -10
  574. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-delimiter-style.md +0 -164
  575. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md +0 -1438
  576. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.md +0 -113
  577. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md +0 -721
  578. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.md +0 -29
  579. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-delete.md +0 -40
  580. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.md +0 -88
  581. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md +0 -56
  582. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.md +0 -116
  583. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.md +0 -14
  584. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-enum-values.md +0 -58
  585. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-imports.md +0 -13
  586. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.md +0 -66
  587. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dynamic-delete.md +0 -53
  588. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.md +0 -92
  589. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.md +0 -59
  590. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.md +0 -168
  591. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-non-null-assertion.md +0 -54
  592. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md +0 -10
  593. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md +0 -12
  594. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.md +0 -295
  595. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.md +0 -124
  596. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-for-in-array.md +0 -61
  597. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.md +0 -102
  598. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.md +0 -74
  599. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.md +0 -103
  600. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.md +0 -14
  601. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.md +0 -112
  602. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.md +0 -10
  603. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.md +0 -10
  604. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.md +0 -119
  605. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-meaningless-void-operator.md +0 -53
  606. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-new.md +0 -47
  607. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-promises.md +0 -246
  608. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.md +0 -88
  609. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.md +0 -131
  610. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.md +0 -54
  611. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md +0 -40
  612. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md +0 -42
  613. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-parameter-properties.md +0 -12
  614. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.md +0 -75
  615. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redundant-type-constituents.md +0 -92
  616. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-require-imports.md +0 -60
  617. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.md +0 -71
  618. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md +0 -105
  619. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.md +0 -108
  620. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-throw-literal.md +0 -109
  621. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.md +0 -623
  622. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md +0 -133
  623. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.md +0 -119
  624. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-qualifier.md +0 -51
  625. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-arguments.md +0 -79
  626. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md +0 -77
  627. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-constraint.md +0 -55
  628. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-argument.md +0 -93
  629. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.md +0 -96
  630. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.md +0 -68
  631. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-declaration-merging.md +0 -59
  632. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-enum-comparison.md +0 -82
  633. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.md +0 -74
  634. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.md +0 -113
  635. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-unary-minus.md +0 -52
  636. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.md +0 -10
  637. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.md +0 -27
  638. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.md +0 -87
  639. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.md +0 -19
  640. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-empty-export.md +0 -47
  641. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-template-literals.md +0 -57
  642. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-var-requires.md +0 -60
  643. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/non-nullable-type-assertion-style.md +0 -41
  644. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md +0 -10
  645. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md +0 -33
  646. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/parameter-properties.md +0 -488
  647. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.md +0 -47
  648. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-destructuring.md +0 -91
  649. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.md +0 -62
  650. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-find.md +0 -39
  651. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-for-of.md +0 -44
  652. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md +0 -92
  653. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-includes.md +0 -75
  654. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.md +0 -103
  655. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-namespace-keyword.md +0 -47
  656. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.md +0 -187
  657. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.md +0 -263
  658. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-promise-reject-errors.md +0 -50
  659. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md +0 -389
  660. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.md +0 -102
  661. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.md +0 -60
  662. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-regexp-exec.md +0 -46
  663. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-return-this-type.md +0 -87
  664. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-string-starts-ends-with.md +0 -58
  665. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.md +0 -70
  666. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.md +0 -132
  667. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md +0 -10
  668. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.md +0 -78
  669. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.md +0 -22
  670. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-plus-operands.md +0 -208
  671. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md +0 -121
  672. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.md +0 -216
  673. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md +0 -12
  674. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-constituents.md +0 -163
  675. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md +0 -43
  676. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md +0 -10
  677. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-infix-ops.md +0 -16
  678. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md +0 -190
  679. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.md +0 -225
  680. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/triple-slash-reference.md +0 -110
  681. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md +0 -317
  682. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.md +0 -320
  683. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unbound-method.md +0 -105
  684. package/backend/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.md +0 -77
  685. package/backend/node_modules/@typescript-eslint/eslint-plugin/index.d.ts +0 -9
  686. package/backend/node_modules/@typescript-eslint/eslint-plugin/package.json +0 -106
  687. package/backend/node_modules/@typescript-eslint/eslint-plugin/rules.d.ts +0 -45
  688. package/backend/node_modules/@typescript-eslint/parser/LICENSE +0 -22
  689. package/backend/node_modules/@typescript-eslint/parser/README.md +0 -12
  690. package/backend/node_modules/@typescript-eslint/parser/dist/index.d.ts +0 -8
  691. package/backend/node_modules/@typescript-eslint/parser/dist/index.d.ts.map +0 -1
  692. package/backend/node_modules/@typescript-eslint/parser/dist/index.js +0 -17
  693. package/backend/node_modules/@typescript-eslint/parser/dist/index.js.map +0 -1
  694. package/backend/node_modules/@typescript-eslint/parser/dist/parser.d.ts +0 -20
  695. package/backend/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map +0 -1
  696. package/backend/node_modules/@typescript-eslint/parser/dist/parser.js +0 -130
  697. package/backend/node_modules/@typescript-eslint/parser/dist/parser.js.map +0 -1
  698. package/backend/node_modules/@typescript-eslint/parser/package.json +0 -85
  699. package/backend/node_modules/@typescript-eslint/scope-manager/LICENSE +0 -21
  700. package/backend/node_modules/@typescript-eslint/scope-manager/README.md +0 -10
  701. package/backend/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts +0 -4
  702. package/backend/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map +0 -1
  703. package/backend/node_modules/@typescript-eslint/scope-manager/dist/ID.js +0 -21
  704. package/backend/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map +0 -1
  705. package/backend/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts +0 -72
  706. package/backend/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map +0 -1
  707. package/backend/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +0 -183
  708. package/backend/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +0 -1
  709. package/backend/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts +0 -56
  710. package/backend/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map +0 -1
  711. package/backend/node_modules/@typescript-eslint/scope-manager/dist/analyze.js +0 -42
  712. package/backend/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map +0 -1
  713. package/backend/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts +0 -3
  714. package/backend/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map +0 -1
  715. package/backend/node_modules/@typescript-eslint/scope-manager/dist/assert.js +0 -11
  716. package/backend/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map +0 -1
  717. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts +0 -10
  718. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map +0 -1
  719. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js +0 -14
  720. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map +0 -1
  721. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts +0 -10
  722. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map +0 -1
  723. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js +0 -14
  724. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map +0 -1
  725. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts +0 -14
  726. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map +0 -1
  727. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js +0 -3
  728. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map +0 -1
  729. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts +0 -39
  730. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map +0 -1
  731. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js +0 -19
  732. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map +0 -1
  733. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts +0 -15
  734. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map +0 -1
  735. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js +0 -18
  736. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map +0 -1
  737. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts +0 -10
  738. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map +0 -1
  739. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js +0 -14
  740. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map +0 -1
  741. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts +0 -10
  742. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map +0 -1
  743. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js +0 -14
  744. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map +0 -1
  745. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts +0 -11
  746. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map +0 -1
  747. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js +0 -14
  748. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map +0 -1
  749. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts +0 -14
  750. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map +0 -1
  751. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js +0 -15
  752. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map +0 -1
  753. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts +0 -10
  754. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map +0 -1
  755. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js +0 -14
  756. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map +0 -1
  757. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts +0 -10
  758. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map +0 -1
  759. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js +0 -14
  760. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map +0 -1
  761. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts +0 -10
  762. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map +0 -1
  763. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js +0 -14
  764. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map +0 -1
  765. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts +0 -10
  766. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map +0 -1
  767. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js +0 -14
  768. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map +0 -1
  769. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts +0 -10
  770. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map +0 -1
  771. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js +0 -14
  772. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map +0 -1
  773. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts +0 -14
  774. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map +0 -1
  775. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js +0 -30
  776. package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map +0 -1
  777. package/backend/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts +0 -9
  778. package/backend/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map +0 -1
  779. package/backend/node_modules/@typescript-eslint/scope-manager/dist/index.js +0 -31
  780. package/backend/node_modules/@typescript-eslint/scope-manager/dist/index.js.map +0 -1
  781. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts +0 -16
  782. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map +0 -1
  783. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js +0 -23
  784. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map +0 -1
  785. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts +0 -3
  786. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map +0 -1
  787. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +0 -23
  788. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map +0 -1
  789. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts +0 -3
  790. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map +0 -1
  791. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +0 -15
  792. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map +0 -1
  793. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts +0 -3
  794. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +0 -1
  795. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts +0 -3
  796. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +0 -1
  797. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +0 -75
  798. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +0 -1
  799. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +0 -1436
  800. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +0 -1
  801. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts +0 -3
  802. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map +0 -1
  803. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js +0 -21
  804. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map +0 -1
  805. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts +0 -3
  806. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map +0 -1
  807. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js +0 -23
  808. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map +0 -1
  809. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts +0 -3
  810. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map +0 -1
  811. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts +0 -3
  812. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map +0 -1
  813. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js +0 -16
  814. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map +0 -1
  815. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts +0 -3
  816. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map +0 -1
  817. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js +0 -55
  818. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map +0 -1
  819. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js +0 -30
  820. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map +0 -1
  821. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts +0 -3
  822. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map +0 -1
  823. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js +0 -12
  824. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map +0 -1
  825. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts +0 -3
  826. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map +0 -1
  827. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js +0 -13
  828. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map +0 -1
  829. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts +0 -3
  830. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map +0 -1
  831. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js +0 -12
  832. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map +0 -1
  833. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts +0 -3
  834. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map +0 -1
  835. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js +0 -12
  836. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map +0 -1
  837. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts +0 -3
  838. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map +0 -1
  839. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +0 -46
  840. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map +0 -1
  841. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts +0 -3
  842. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map +0 -1
  843. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js +0 -22
  844. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map +0 -1
  845. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts +0 -3
  846. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map +0 -1
  847. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts +0 -3
  848. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map +0 -1
  849. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js +0 -20
  850. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map +0 -1
  851. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js +0 -14
  852. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map +0 -1
  853. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts +0 -3
  854. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map +0 -1
  855. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts +0 -3
  856. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map +0 -1
  857. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js +0 -12
  858. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map +0 -1
  859. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts +0 -3
  860. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map +0 -1
  861. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js +0 -20
  862. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map +0 -1
  863. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts +0 -3
  864. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map +0 -1
  865. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js +0 -12
  866. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map +0 -1
  867. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js +0 -24
  868. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map +0 -1
  869. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts +0 -3
  870. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map +0 -1
  871. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js +0 -12
  872. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map +0 -1
  873. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts +0 -3
  874. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map +0 -1
  875. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js +0 -19
  876. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map +0 -1
  877. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts +0 -3
  878. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map +0 -1
  879. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js +0 -12
  880. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map +0 -1
  881. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts +0 -3
  882. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map +0 -1
  883. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js +0 -20
  884. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map +0 -1
  885. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts +0 -3
  886. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map +0 -1
  887. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js +0 -16
  888. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map +0 -1
  889. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts +0 -3
  890. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map +0 -1
  891. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js +0 -19
  892. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map +0 -1
  893. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts +0 -3
  894. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map +0 -1
  895. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts +0 -3
  896. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map +0 -1
  897. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js +0 -20
  898. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map +0 -1
  899. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts +0 -3
  900. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map +0 -1
  901. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js +0 -12
  902. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map +0 -1
  903. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js +0 -22
  904. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map +0 -1
  905. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts +0 -3
  906. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map +0 -1
  907. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js +0 -12
  908. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map +0 -1
  909. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts +0 -3
  910. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map +0 -1
  911. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js +0 -14
  912. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map +0 -1
  913. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts +0 -3
  914. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map +0 -1
  915. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js +0 -14
  916. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map +0 -1
  917. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts +0 -3
  918. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map +0 -1
  919. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts +0 -3
  920. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map +0 -1
  921. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js +0 -20
  922. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map +0 -1
  923. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts +0 -3
  924. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map +0 -1
  925. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +0 -12
  926. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map +0 -1
  927. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +0 -22
  928. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map +0 -1
  929. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts +0 -3
  930. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map +0 -1
  931. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js +0 -14
  932. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map +0 -1
  933. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts +0 -3
  934. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map +0 -1
  935. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js +0 -12
  936. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map +0 -1
  937. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts +0 -3
  938. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map +0 -1
  939. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js +0 -12
  940. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map +0 -1
  941. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts +0 -3
  942. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map +0 -1
  943. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js +0 -22
  944. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map +0 -1
  945. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts +0 -3
  946. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map +0 -1
  947. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts +0 -3
  948. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map +0 -1
  949. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js +0 -14
  950. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map +0 -1
  951. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts +0 -3
  952. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map +0 -1
  953. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js +0 -20
  954. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map +0 -1
  955. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts +0 -3
  956. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map +0 -1
  957. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js +0 -14
  958. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map +0 -1
  959. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js +0 -28
  960. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map +0 -1
  961. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts +0 -3
  962. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map +0 -1
  963. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js +0 -14
  964. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map +0 -1
  965. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts +0 -3
  966. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map +0 -1
  967. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js +0 -15
  968. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map +0 -1
  969. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts +0 -3
  970. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map +0 -1
  971. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js +0 -12
  972. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map +0 -1
  973. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts +0 -3
  974. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map +0 -1
  975. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js +0 -14
  976. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map +0 -1
  977. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts +0 -3
  978. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map +0 -1
  979. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js +0 -17
  980. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map +0 -1
  981. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts +0 -3
  982. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map +0 -1
  983. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts +0 -3
  984. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map +0 -1
  985. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js +0 -20
  986. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map +0 -1
  987. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts +0 -3
  988. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map +0 -1
  989. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js +0 -12
  990. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map +0 -1
  991. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js +0 -20
  992. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map +0 -1
  993. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts +0 -3
  994. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map +0 -1
  995. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js +0 -14
  996. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map +0 -1
  997. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts +0 -3
  998. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map +0 -1
  999. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js +0 -12
  1000. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map +0 -1
  1001. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts +0 -3
  1002. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map +0 -1
  1003. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js +0 -15
  1004. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map +0 -1
  1005. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts +0 -3
  1006. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map +0 -1
  1007. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js +0 -24
  1008. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map +0 -1
  1009. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts +0 -3
  1010. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +0 -1
  1011. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts +0 -3
  1012. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map +0 -1
  1013. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js +0 -21
  1014. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map +0 -1
  1015. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts +0 -3
  1016. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map +0 -1
  1017. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js +0 -20
  1018. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map +0 -1
  1019. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts +0 -3
  1020. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map +0 -1
  1021. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js +0 -12
  1022. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map +0 -1
  1023. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +0 -26
  1024. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +0 -1
  1025. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts +0 -3
  1026. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map +0 -1
  1027. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js +0 -12
  1028. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map +0 -1
  1029. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts +0 -3
  1030. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map +0 -1
  1031. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +0 -15
  1032. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map +0 -1
  1033. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts +0 -3
  1034. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts.map +0 -1
  1035. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js +0 -12
  1036. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js.map +0 -1
  1037. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts +0 -3
  1038. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map +0 -1
  1039. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js +0 -12
  1040. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map +0 -1
  1041. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts +0 -3
  1042. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map +0 -1
  1043. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +0 -24
  1044. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map +0 -1
  1045. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts +0 -3
  1046. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map +0 -1
  1047. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js +0 -12
  1048. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map +0 -1
  1049. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts +0 -3
  1050. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map +0 -1
  1051. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts +0 -3
  1052. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map +0 -1
  1053. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +0 -20
  1054. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map +0 -1
  1055. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +0 -16
  1056. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map +0 -1
  1057. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts +0 -3
  1058. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map +0 -1
  1059. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +0 -117
  1060. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +0 -1
  1061. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts +0 -3
  1062. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map +0 -1
  1063. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js +0 -30
  1064. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map +0 -1
  1065. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts +0 -3
  1066. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map +0 -1
  1067. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js +0 -14
  1068. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map +0 -1
  1069. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts +0 -3
  1070. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map +0 -1
  1071. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js +0 -24
  1072. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map +0 -1
  1073. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts +0 -3
  1074. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map +0 -1
  1075. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js +0 -19
  1076. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map +0 -1
  1077. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts +0 -3
  1078. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map +0 -1
  1079. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js +0 -22
  1080. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map +0 -1
  1081. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts +0 -3
  1082. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map +0 -1
  1083. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js +0 -12
  1084. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map +0 -1
  1085. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts +0 -3
  1086. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map +0 -1
  1087. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts +0 -3
  1088. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map +0 -1
  1089. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js +0 -17
  1090. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map +0 -1
  1091. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts +0 -3
  1092. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map +0 -1
  1093. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js +0 -22
  1094. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map +0 -1
  1095. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts +0 -3
  1096. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map +0 -1
  1097. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js +0 -20
  1098. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map +0 -1
  1099. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts +0 -3
  1100. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map +0 -1
  1101. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js +0 -12
  1102. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map +0 -1
  1103. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +0 -18
  1104. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map +0 -1
  1105. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts +0 -3
  1106. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map +0 -1
  1107. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js +0 -14
  1108. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map +0 -1
  1109. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts +0 -3
  1110. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map +0 -1
  1111. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js +0 -12
  1112. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map +0 -1
  1113. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts +0 -3
  1114. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map +0 -1
  1115. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js +0 -12
  1116. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map +0 -1
  1117. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts +0 -3
  1118. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map +0 -1
  1119. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js +0 -15
  1120. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map +0 -1
  1121. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +0 -93
  1122. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map +0 -1
  1123. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +0 -189
  1124. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +0 -1
  1125. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts +0 -3
  1126. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map +0 -1
  1127. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js +0 -18
  1128. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map +0 -1
  1129. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts +0 -3
  1130. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map +0 -1
  1131. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js +0 -24
  1132. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map +0 -1
  1133. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts +0 -3
  1134. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map +0 -1
  1135. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts +0 -3
  1136. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map +0 -1
  1137. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js +0 -9
  1138. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map +0 -1
  1139. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts +0 -3
  1140. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map +0 -1
  1141. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +0 -34
  1142. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map +0 -1
  1143. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +0 -589
  1144. package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +0 -1
  1145. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +0 -29
  1146. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +0 -1
  1147. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +0 -311
  1148. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +0 -1
  1149. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts +0 -15
  1150. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map +0 -1
  1151. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js +0 -84
  1152. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map +0 -1
  1153. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts +0 -14
  1154. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map +0 -1
  1155. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js +0 -50
  1156. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map +0 -1
  1157. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts +0 -29
  1158. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +0 -1
  1159. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +0 -108
  1160. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +0 -1
  1161. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts +0 -89
  1162. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map +0 -1
  1163. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +0 -107
  1164. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +0 -1
  1165. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +0 -87
  1166. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +0 -1
  1167. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +0 -548
  1168. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +0 -1
  1169. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts +0 -33
  1170. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map +0 -1
  1171. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js +0 -230
  1172. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map +0 -1
  1173. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts +0 -13
  1174. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map +0 -1
  1175. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js +0 -41
  1176. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map +0 -1
  1177. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts +0 -22
  1178. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map +0 -1
  1179. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js +0 -80
  1180. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map +0 -1
  1181. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts +0 -2
  1182. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map +0 -1
  1183. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js +0 -6
  1184. package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map +0 -1
  1185. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts +0 -10
  1186. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map +0 -1
  1187. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js +0 -12
  1188. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map +0 -1
  1189. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts +0 -10
  1190. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map +0 -1
  1191. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js +0 -12
  1192. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map +0 -1
  1193. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts +0 -10
  1194. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map +0 -1
  1195. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js +0 -12
  1196. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map +0 -1
  1197. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts +0 -10
  1198. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map +0 -1
  1199. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js +0 -12
  1200. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map +0 -1
  1201. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts +0 -10
  1202. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map +0 -1
  1203. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js +0 -12
  1204. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map +0 -1
  1205. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts +0 -10
  1206. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map +0 -1
  1207. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js +0 -12
  1208. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map +0 -1
  1209. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts +0 -10
  1210. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map +0 -1
  1211. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js +0 -12
  1212. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map +0 -1
  1213. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts +0 -11
  1214. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map +0 -1
  1215. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js +0 -17
  1216. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map +0 -1
  1217. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts +0 -13
  1218. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map +0 -1
  1219. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +0 -36
  1220. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map +0 -1
  1221. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts +0 -10
  1222. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map +0 -1
  1223. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js +0 -12
  1224. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map +0 -1
  1225. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts +0 -18
  1226. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map +0 -1
  1227. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js +0 -39
  1228. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map +0 -1
  1229. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts +0 -10
  1230. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map +0 -1
  1231. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js +0 -12
  1232. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map +0 -1
  1233. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts +0 -10
  1234. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map +0 -1
  1235. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js +0 -12
  1236. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map +0 -1
  1237. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +0 -21
  1238. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map +0 -1
  1239. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js +0 -3
  1240. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map +0 -1
  1241. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts +0 -107
  1242. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map +0 -1
  1243. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js +0 -351
  1244. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +0 -1
  1245. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts +0 -22
  1246. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map +0 -1
  1247. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js +0 -25
  1248. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map +0 -1
  1249. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts +0 -10
  1250. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map +0 -1
  1251. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js +0 -12
  1252. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map +0 -1
  1253. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts +0 -10
  1254. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map +0 -1
  1255. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js +0 -12
  1256. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map +0 -1
  1257. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts +0 -10
  1258. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map +0 -1
  1259. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js +0 -12
  1260. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map +0 -1
  1261. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts +0 -10
  1262. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map +0 -1
  1263. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js +0 -12
  1264. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map +0 -1
  1265. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts +0 -11
  1266. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map +0 -1
  1267. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js +0 -22
  1268. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map +0 -1
  1269. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts +0 -20
  1270. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map +0 -1
  1271. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +0 -36
  1272. package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map +0 -1
  1273. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts +0 -34
  1274. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map +0 -1
  1275. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js +0 -12
  1276. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map +0 -1
  1277. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts +0 -25
  1278. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map +0 -1
  1279. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js +0 -19
  1280. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map +0 -1
  1281. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts +0 -18
  1282. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map +0 -1
  1283. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js +0 -33
  1284. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map +0 -1
  1285. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts +0 -44
  1286. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map +0 -1
  1287. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js +0 -39
  1288. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map +0 -1
  1289. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts +0 -4
  1290. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map +0 -1
  1291. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js +0 -10
  1292. package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map +0 -1
  1293. package/backend/node_modules/@typescript-eslint/scope-manager/package.json +0 -71
  1294. package/backend/node_modules/@typescript-eslint/type-utils/LICENSE +0 -21
  1295. package/backend/node_modules/@typescript-eslint/type-utils/README.md +0 -14
  1296. package/backend/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts +0 -21
  1297. package/backend/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts.map +0 -1
  1298. package/backend/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js +0 -188
  1299. package/backend/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js.map +0 -1
  1300. package/backend/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts +0 -39
  1301. package/backend/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts.map +0 -1
  1302. package/backend/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js +0 -130
  1303. package/backend/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js.map +0 -1
  1304. package/backend/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts +0 -10
  1305. package/backend/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map +0 -1
  1306. package/backend/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +0 -61
  1307. package/backend/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map +0 -1
  1308. package/backend/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts +0 -7
  1309. package/backend/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts.map +0 -1
  1310. package/backend/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js +0 -15
  1311. package/backend/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js.map +0 -1
  1312. package/backend/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts +0 -8
  1313. package/backend/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts.map +0 -1
  1314. package/backend/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js +0 -66
  1315. package/backend/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map +0 -1
  1316. package/backend/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts +0 -7
  1317. package/backend/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts.map +0 -1
  1318. package/backend/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js +0 -16
  1319. package/backend/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js.map +0 -1
  1320. package/backend/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts +0 -6
  1321. package/backend/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts.map +0 -1
  1322. package/backend/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js +0 -38
  1323. package/backend/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map +0 -1
  1324. package/backend/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.d.ts +0 -3
  1325. package/backend/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.d.ts.map +0 -1
  1326. package/backend/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.js +0 -51
  1327. package/backend/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.js.map +0 -1
  1328. package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.d.ts +0 -6
  1329. package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.d.ts.map +0 -1
  1330. package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.js +0 -16
  1331. package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.js.map +0 -1
  1332. package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts +0 -8
  1333. package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts.map +0 -1
  1334. package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js +0 -74
  1335. package/backend/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map +0 -1
  1336. package/backend/node_modules/@typescript-eslint/type-utils/dist/index.d.ts +0 -19
  1337. package/backend/node_modules/@typescript-eslint/type-utils/dist/index.d.ts.map +0 -1
  1338. package/backend/node_modules/@typescript-eslint/type-utils/dist/index.js +0 -39
  1339. package/backend/node_modules/@typescript-eslint/type-utils/dist/index.js.map +0 -1
  1340. package/backend/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts +0 -3
  1341. package/backend/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts.map +0 -1
  1342. package/backend/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js +0 -18
  1343. package/backend/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js.map +0 -1
  1344. package/backend/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts +0 -27
  1345. package/backend/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map +0 -1
  1346. package/backend/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +0 -226
  1347. package/backend/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +0 -1
  1348. package/backend/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts +0 -17
  1349. package/backend/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts.map +0 -1
  1350. package/backend/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js +0 -106
  1351. package/backend/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map +0 -1
  1352. package/backend/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts +0 -58
  1353. package/backend/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map +0 -1
  1354. package/backend/node_modules/@typescript-eslint/type-utils/dist/predicates.js +0 -169
  1355. package/backend/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map +0 -1
  1356. package/backend/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts +0 -4
  1357. package/backend/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts.map +0 -1
  1358. package/backend/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js +0 -37
  1359. package/backend/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js.map +0 -1
  1360. package/backend/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts +0 -4
  1361. package/backend/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts.map +0 -1
  1362. package/backend/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js +0 -43
  1363. package/backend/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map +0 -1
  1364. package/backend/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts +0 -16
  1365. package/backend/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map +0 -1
  1366. package/backend/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +0 -59
  1367. package/backend/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map +0 -1
  1368. package/backend/node_modules/@typescript-eslint/type-utils/package.json +0 -81
  1369. package/backend/node_modules/@typescript-eslint/utils/LICENSE +0 -21
  1370. package/backend/node_modules/@typescript-eslint/utils/README.md +0 -12
  1371. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +0 -48
  1372. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map +0 -1
  1373. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +0 -36
  1374. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map +0 -1
  1375. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +0 -76
  1376. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map +0 -1
  1377. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js +0 -40
  1378. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map +0 -1
  1379. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts +0 -76
  1380. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map +0 -1
  1381. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +0 -99
  1382. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map +0 -1
  1383. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts +0 -6
  1384. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map +0 -1
  1385. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js +0 -22
  1386. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map +0 -1
  1387. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts +0 -32
  1388. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map +0 -1
  1389. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +0 -72
  1390. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map +0 -1
  1391. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +0 -18
  1392. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map +0 -1
  1393. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js +0 -44
  1394. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map +0 -1
  1395. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts +0 -1231
  1396. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map +0 -1
  1397. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js +0 -22
  1398. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map +0 -1
  1399. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts +0 -5
  1400. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map +0 -1
  1401. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js +0 -21
  1402. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map +0 -1
  1403. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts +0 -8
  1404. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map +0 -1
  1405. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js +0 -13
  1406. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map +0 -1
  1407. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts +0 -70
  1408. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map +0 -1
  1409. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js +0 -135
  1410. package/backend/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map +0 -1
  1411. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts +0 -11
  1412. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map +0 -1
  1413. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js +0 -3
  1414. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js.map +0 -1
  1415. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts +0 -35
  1416. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map +0 -1
  1417. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js +0 -45
  1418. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map +0 -1
  1419. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts +0 -10
  1420. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map +0 -1
  1421. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +0 -34
  1422. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map +0 -1
  1423. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/context.d.ts +0 -10
  1424. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/context.d.ts.map +0 -1
  1425. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/context.js +0 -32
  1426. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/context.js.map +0 -1
  1427. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts +0 -17
  1428. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map +0 -1
  1429. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js +0 -48
  1430. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js.map +0 -1
  1431. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts +0 -24
  1432. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts.map +0 -1
  1433. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js +0 -46
  1434. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js.map +0 -1
  1435. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts +0 -8
  1436. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map +0 -1
  1437. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js +0 -24
  1438. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map +0 -1
  1439. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts +0 -14
  1440. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map +0 -1
  1441. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js +0 -28
  1442. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map +0 -1
  1443. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserPathSeemsToBeTSESLint.d.ts +0 -2
  1444. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserPathSeemsToBeTSESLint.d.ts.map +0 -1
  1445. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserPathSeemsToBeTSESLint.js +0 -8
  1446. package/backend/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserPathSeemsToBeTSESLint.js.map +0 -1
  1447. package/backend/node_modules/@typescript-eslint/utils/dist/index.d.ts +0 -8
  1448. package/backend/node_modules/@typescript-eslint/utils/dist/index.d.ts.map +0 -1
  1449. package/backend/node_modules/@typescript-eslint/utils/dist/index.js +0 -41
  1450. package/backend/node_modules/@typescript-eslint/utils/dist/index.js.map +0 -1
  1451. package/backend/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts +0 -388
  1452. package/backend/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts.map +0 -1
  1453. package/backend/node_modules/@typescript-eslint/utils/dist/json-schema.js +0 -9
  1454. package/backend/node_modules/@typescript-eslint/utils/dist/json-schema.js.map +0 -1
  1455. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts +0 -9
  1456. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts.map +0 -1
  1457. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js +0 -4
  1458. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js.map +0 -1
  1459. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.d.ts +0 -131
  1460. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.d.ts.map +0 -1
  1461. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.js +0 -18
  1462. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.js.map +0 -1
  1463. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts +0 -260
  1464. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts.map +0 -1
  1465. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js +0 -4
  1466. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js.map +0 -1
  1467. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts +0 -374
  1468. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map +0 -1
  1469. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js +0 -24
  1470. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map +0 -1
  1471. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts +0 -247
  1472. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map +0 -1
  1473. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js +0 -14
  1474. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js.map +0 -1
  1475. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts +0 -89
  1476. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts.map +0 -1
  1477. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js +0 -4
  1478. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js.map +0 -1
  1479. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts +0 -2
  1480. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts.map +0 -1
  1481. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js +0 -3
  1482. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js.map +0 -1
  1483. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts +0 -37
  1484. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts.map +0 -1
  1485. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js +0 -4
  1486. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js.map +0 -1
  1487. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +0 -514
  1488. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map +0 -1
  1489. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js +0 -3
  1490. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js.map +0 -1
  1491. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts +0 -162
  1492. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map +0 -1
  1493. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js +0 -8
  1494. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map +0 -1
  1495. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts +0 -44
  1496. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts.map +0 -1
  1497. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js +0 -34
  1498. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map +0 -1
  1499. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts +0 -362
  1500. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map +0 -1
  1501. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js +0 -9
  1502. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map +0 -1
  1503. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts +0 -13
  1504. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map +0 -1
  1505. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js +0 -29
  1506. package/backend/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map +0 -1
  1507. package/backend/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts +0 -3
  1508. package/backend/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts.map +0 -1
  1509. package/backend/node_modules/@typescript-eslint/utils/dist/ts-estree.js +0 -10
  1510. package/backend/node_modules/@typescript-eslint/utils/dist/ts-estree.js.map +0 -1
  1511. package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts +0 -2
  1512. package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts.map +0 -1
  1513. package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js +0 -18
  1514. package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js.map +0 -1
  1515. package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts +0 -2
  1516. package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts.map +0 -1
  1517. package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js +0 -9
  1518. package/backend/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js.map +0 -1
  1519. package/backend/node_modules/@typescript-eslint/utils/package.json +0 -98
  1520. package/backend/node_modules/@typescript-eslint/visitor-keys/LICENSE +0 -21
  1521. package/backend/node_modules/@typescript-eslint/visitor-keys/README.md +0 -10
  1522. package/backend/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts +0 -4
  1523. package/backend/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map +0 -1
  1524. package/backend/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js +0 -7
  1525. package/backend/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map +0 -1
  1526. package/backend/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts +0 -3
  1527. package/backend/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map +0 -1
  1528. package/backend/node_modules/@typescript-eslint/visitor-keys/dist/index.js +0 -8
  1529. package/backend/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map +0 -1
  1530. package/backend/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts +0 -4
  1531. package/backend/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map +0 -1
  1532. package/backend/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +0 -190
  1533. package/backend/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +0 -1
  1534. package/backend/node_modules/@typescript-eslint/visitor-keys/package.json +0 -70
  1535. package/backend/node_modules/ansi-styles/index.d.ts +0 -345
  1536. package/backend/node_modules/ansi-styles/index.js +0 -163
  1537. package/backend/node_modules/ansi-styles/license +0 -9
  1538. package/backend/node_modules/ansi-styles/package.json +0 -56
  1539. package/backend/node_modules/ansi-styles/readme.md +0 -152
  1540. package/backend/node_modules/chalk/index.d.ts +0 -415
  1541. package/backend/node_modules/chalk/license +0 -9
  1542. package/backend/node_modules/chalk/package.json +0 -68
  1543. package/backend/node_modules/chalk/readme.md +0 -341
  1544. package/backend/node_modules/chalk/source/index.js +0 -229
  1545. package/backend/node_modules/chalk/source/templates.js +0 -134
  1546. package/backend/node_modules/chalk/source/util.js +0 -39
  1547. package/backend/node_modules/eslint/LICENSE +0 -19
  1548. package/backend/node_modules/eslint/README.md +0 -304
  1549. package/backend/node_modules/eslint/bin/eslint.js +0 -173
  1550. package/backend/node_modules/eslint/conf/config-schema.js +0 -93
  1551. package/backend/node_modules/eslint/conf/default-cli-options.js +0 -32
  1552. package/backend/node_modules/eslint/conf/globals.js +0 -154
  1553. package/backend/node_modules/eslint/conf/replacements.json +0 -22
  1554. package/backend/node_modules/eslint/conf/rule-type-list.json +0 -28
  1555. package/backend/node_modules/eslint/lib/api.js +0 -54
  1556. package/backend/node_modules/eslint/lib/cli-engine/cli-engine.js +0 -1078
  1557. package/backend/node_modules/eslint/lib/cli-engine/file-enumerator.js +0 -547
  1558. package/backend/node_modules/eslint/lib/cli-engine/formatters/checkstyle.js +0 -60
  1559. package/backend/node_modules/eslint/lib/cli-engine/formatters/compact.js +0 -60
  1560. package/backend/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json +0 -46
  1561. package/backend/node_modules/eslint/lib/cli-engine/formatters/html.js +0 -351
  1562. package/backend/node_modules/eslint/lib/cli-engine/formatters/jslint-xml.js +0 -41
  1563. package/backend/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js +0 -16
  1564. package/backend/node_modules/eslint/lib/cli-engine/formatters/json.js +0 -13
  1565. package/backend/node_modules/eslint/lib/cli-engine/formatters/junit.js +0 -82
  1566. package/backend/node_modules/eslint/lib/cli-engine/formatters/stylish.js +0 -101
  1567. package/backend/node_modules/eslint/lib/cli-engine/formatters/tap.js +0 -95
  1568. package/backend/node_modules/eslint/lib/cli-engine/formatters/unix.js +0 -58
  1569. package/backend/node_modules/eslint/lib/cli-engine/formatters/visualstudio.js +0 -63
  1570. package/backend/node_modules/eslint/lib/cli-engine/hash.js +0 -35
  1571. package/backend/node_modules/eslint/lib/cli-engine/index.js +0 -7
  1572. package/backend/node_modules/eslint/lib/cli-engine/lint-result-cache.js +0 -203
  1573. package/backend/node_modules/eslint/lib/cli-engine/load-rules.js +0 -46
  1574. package/backend/node_modules/eslint/lib/cli-engine/xml-escape.js +0 -34
  1575. package/backend/node_modules/eslint/lib/cli.js +0 -471
  1576. package/backend/node_modules/eslint/lib/config/default-config.js +0 -67
  1577. package/backend/node_modules/eslint/lib/config/flat-config-array.js +0 -380
  1578. package/backend/node_modules/eslint/lib/config/flat-config-helpers.js +0 -111
  1579. package/backend/node_modules/eslint/lib/config/flat-config-schema.js +0 -598
  1580. package/backend/node_modules/eslint/lib/config/rule-validator.js +0 -158
  1581. package/backend/node_modules/eslint/lib/eslint/eslint-helpers.js +0 -932
  1582. package/backend/node_modules/eslint/lib/eslint/eslint.js +0 -707
  1583. package/backend/node_modules/eslint/lib/eslint/flat-eslint.js +0 -1159
  1584. package/backend/node_modules/eslint/lib/eslint/index.js +0 -9
  1585. package/backend/node_modules/eslint/lib/linter/apply-disable-directives.js +0 -465
  1586. package/backend/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +0 -852
  1587. package/backend/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js +0 -263
  1588. package/backend/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js +0 -2348
  1589. package/backend/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +0 -342
  1590. package/backend/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +0 -203
  1591. package/backend/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +0 -349
  1592. package/backend/node_modules/eslint/lib/linter/code-path-analysis/id-generator.js +0 -45
  1593. package/backend/node_modules/eslint/lib/linter/config-comment-parser.js +0 -185
  1594. package/backend/node_modules/eslint/lib/linter/index.js +0 -13
  1595. package/backend/node_modules/eslint/lib/linter/interpolate.js +0 -28
  1596. package/backend/node_modules/eslint/lib/linter/linter.js +0 -2119
  1597. package/backend/node_modules/eslint/lib/linter/node-event-generator.js +0 -354
  1598. package/backend/node_modules/eslint/lib/linter/report-translator.js +0 -369
  1599. package/backend/node_modules/eslint/lib/linter/rule-fixer.js +0 -140
  1600. package/backend/node_modules/eslint/lib/linter/rules.js +0 -80
  1601. package/backend/node_modules/eslint/lib/linter/safe-emitter.js +0 -52
  1602. package/backend/node_modules/eslint/lib/linter/source-code-fixer.js +0 -152
  1603. package/backend/node_modules/eslint/lib/linter/timing.js +0 -161
  1604. package/backend/node_modules/eslint/lib/options.js +0 -398
  1605. package/backend/node_modules/eslint/lib/rule-tester/flat-rule-tester.js +0 -1131
  1606. package/backend/node_modules/eslint/lib/rule-tester/index.js +0 -5
  1607. package/backend/node_modules/eslint/lib/rule-tester/rule-tester.js +0 -1206
  1608. package/backend/node_modules/eslint/lib/rules/accessor-pairs.js +0 -346
  1609. package/backend/node_modules/eslint/lib/rules/array-bracket-newline.js +0 -261
  1610. package/backend/node_modules/eslint/lib/rules/array-bracket-spacing.js +0 -244
  1611. package/backend/node_modules/eslint/lib/rules/array-callback-return.js +0 -446
  1612. package/backend/node_modules/eslint/lib/rules/array-element-newline.js +0 -311
  1613. package/backend/node_modules/eslint/lib/rules/arrow-body-style.js +0 -296
  1614. package/backend/node_modules/eslint/lib/rules/arrow-parens.js +0 -186
  1615. package/backend/node_modules/eslint/lib/rules/arrow-spacing.js +0 -164
  1616. package/backend/node_modules/eslint/lib/rules/block-scoped-var.js +0 -135
  1617. package/backend/node_modules/eslint/lib/rules/block-spacing.js +0 -174
  1618. package/backend/node_modules/eslint/lib/rules/brace-style.js +0 -197
  1619. package/backend/node_modules/eslint/lib/rules/callback-return.js +0 -187
  1620. package/backend/node_modules/eslint/lib/rules/camelcase.js +0 -399
  1621. package/backend/node_modules/eslint/lib/rules/capitalized-comments.js +0 -300
  1622. package/backend/node_modules/eslint/lib/rules/class-methods-use-this.js +0 -187
  1623. package/backend/node_modules/eslint/lib/rules/comma-dangle.js +0 -373
  1624. package/backend/node_modules/eslint/lib/rules/comma-spacing.js +0 -192
  1625. package/backend/node_modules/eslint/lib/rules/comma-style.js +0 -314
  1626. package/backend/node_modules/eslint/lib/rules/complexity.js +0 -165
  1627. package/backend/node_modules/eslint/lib/rules/computed-property-spacing.js +0 -208
  1628. package/backend/node_modules/eslint/lib/rules/consistent-return.js +0 -210
  1629. package/backend/node_modules/eslint/lib/rules/consistent-this.js +0 -153
  1630. package/backend/node_modules/eslint/lib/rules/constructor-super.js +0 -446
  1631. package/backend/node_modules/eslint/lib/rules/curly.js +0 -486
  1632. package/backend/node_modules/eslint/lib/rules/default-case-last.js +0 -44
  1633. package/backend/node_modules/eslint/lib/rules/default-case.js +0 -97
  1634. package/backend/node_modules/eslint/lib/rules/default-param-last.js +0 -62
  1635. package/backend/node_modules/eslint/lib/rules/dot-location.js +0 -108
  1636. package/backend/node_modules/eslint/lib/rules/dot-notation.js +0 -176
  1637. package/backend/node_modules/eslint/lib/rules/eol-last.js +0 -115
  1638. package/backend/node_modules/eslint/lib/rules/eqeqeq.js +0 -174
  1639. package/backend/node_modules/eslint/lib/rules/for-direction.js +0 -140
  1640. package/backend/node_modules/eslint/lib/rules/func-call-spacing.js +0 -233
  1641. package/backend/node_modules/eslint/lib/rules/func-name-matching.js +0 -253
  1642. package/backend/node_modules/eslint/lib/rules/func-names.js +0 -191
  1643. package/backend/node_modules/eslint/lib/rules/func-style.js +0 -98
  1644. package/backend/node_modules/eslint/lib/rules/function-call-argument-newline.js +0 -125
  1645. package/backend/node_modules/eslint/lib/rules/function-paren-newline.js +0 -292
  1646. package/backend/node_modules/eslint/lib/rules/generator-star-spacing.js +0 -209
  1647. package/backend/node_modules/eslint/lib/rules/getter-return.js +0 -204
  1648. package/backend/node_modules/eslint/lib/rules/global-require.js +0 -90
  1649. package/backend/node_modules/eslint/lib/rules/grouped-accessor-pairs.js +0 -215
  1650. package/backend/node_modules/eslint/lib/rules/guard-for-in.js +0 -76
  1651. package/backend/node_modules/eslint/lib/rules/handle-callback-err.js +0 -101
  1652. package/backend/node_modules/eslint/lib/rules/id-blacklist.js +0 -246
  1653. package/backend/node_modules/eslint/lib/rules/id-denylist.js +0 -228
  1654. package/backend/node_modules/eslint/lib/rules/id-length.js +0 -177
  1655. package/backend/node_modules/eslint/lib/rules/id-match.js +0 -299
  1656. package/backend/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js +0 -84
  1657. package/backend/node_modules/eslint/lib/rules/indent-legacy.js +0 -1126
  1658. package/backend/node_modules/eslint/lib/rules/indent.js +0 -1803
  1659. package/backend/node_modules/eslint/lib/rules/index.js +0 -306
  1660. package/backend/node_modules/eslint/lib/rules/init-declarations.js +0 -139
  1661. package/backend/node_modules/eslint/lib/rules/jsx-quotes.js +0 -98
  1662. package/backend/node_modules/eslint/lib/rules/key-spacing.js +0 -687
  1663. package/backend/node_modules/eslint/lib/rules/keyword-spacing.js +0 -640
  1664. package/backend/node_modules/eslint/lib/rules/line-comment-position.js +0 -122
  1665. package/backend/node_modules/eslint/lib/rules/linebreak-style.js +0 -108
  1666. package/backend/node_modules/eslint/lib/rules/lines-around-comment.js +0 -471
  1667. package/backend/node_modules/eslint/lib/rules/lines-around-directive.js +0 -201
  1668. package/backend/node_modules/eslint/lib/rules/lines-between-class-members.js +0 -269
  1669. package/backend/node_modules/eslint/lib/rules/logical-assignment-operators.js +0 -504
  1670. package/backend/node_modules/eslint/lib/rules/max-classes-per-file.js +0 -89
  1671. package/backend/node_modules/eslint/lib/rules/max-depth.js +0 -156
  1672. package/backend/node_modules/eslint/lib/rules/max-len.js +0 -440
  1673. package/backend/node_modules/eslint/lib/rules/max-lines-per-function.js +0 -213
  1674. package/backend/node_modules/eslint/lib/rules/max-lines.js +0 -193
  1675. package/backend/node_modules/eslint/lib/rules/max-nested-callbacks.js +0 -117
  1676. package/backend/node_modules/eslint/lib/rules/max-params.js +0 -102
  1677. package/backend/node_modules/eslint/lib/rules/max-statements-per-line.js +0 -199
  1678. package/backend/node_modules/eslint/lib/rules/max-statements.js +0 -184
  1679. package/backend/node_modules/eslint/lib/rules/multiline-comment-style.js +0 -474
  1680. package/backend/node_modules/eslint/lib/rules/multiline-ternary.js +0 -174
  1681. package/backend/node_modules/eslint/lib/rules/new-cap.js +0 -276
  1682. package/backend/node_modules/eslint/lib/rules/new-parens.js +0 -93
  1683. package/backend/node_modules/eslint/lib/rules/newline-after-var.js +0 -253
  1684. package/backend/node_modules/eslint/lib/rules/newline-before-return.js +0 -217
  1685. package/backend/node_modules/eslint/lib/rules/newline-per-chained-call.js +0 -126
  1686. package/backend/node_modules/eslint/lib/rules/no-alert.js +0 -138
  1687. package/backend/node_modules/eslint/lib/rules/no-array-constructor.js +0 -133
  1688. package/backend/node_modules/eslint/lib/rules/no-async-promise-executor.js +0 -39
  1689. package/backend/node_modules/eslint/lib/rules/no-await-in-loop.js +0 -106
  1690. package/backend/node_modules/eslint/lib/rules/no-bitwise.js +0 -119
  1691. package/backend/node_modules/eslint/lib/rules/no-buffer-constructor.js +0 -50
  1692. package/backend/node_modules/eslint/lib/rules/no-caller.js +0 -46
  1693. package/backend/node_modules/eslint/lib/rules/no-case-declarations.js +0 -64
  1694. package/backend/node_modules/eslint/lib/rules/no-catch-shadow.js +0 -82
  1695. package/backend/node_modules/eslint/lib/rules/no-class-assign.js +0 -63
  1696. package/backend/node_modules/eslint/lib/rules/no-compare-neg-zero.js +0 -60
  1697. package/backend/node_modules/eslint/lib/rules/no-cond-assign.js +0 -159
  1698. package/backend/node_modules/eslint/lib/rules/no-confusing-arrow.js +0 -92
  1699. package/backend/node_modules/eslint/lib/rules/no-console.js +0 -207
  1700. package/backend/node_modules/eslint/lib/rules/no-const-assign.js +0 -56
  1701. package/backend/node_modules/eslint/lib/rules/no-constant-binary-expression.js +0 -509
  1702. package/backend/node_modules/eslint/lib/rules/no-constant-condition.js +0 -150
  1703. package/backend/node_modules/eslint/lib/rules/no-constructor-return.js +0 -62
  1704. package/backend/node_modules/eslint/lib/rules/no-continue.js +0 -39
  1705. package/backend/node_modules/eslint/lib/rules/no-control-regex.js +0 -138
  1706. package/backend/node_modules/eslint/lib/rules/no-debugger.js +0 -43
  1707. package/backend/node_modules/eslint/lib/rules/no-delete-var.js +0 -42
  1708. package/backend/node_modules/eslint/lib/rules/no-div-regex.js +0 -53
  1709. package/backend/node_modules/eslint/lib/rules/no-dupe-args.js +0 -82
  1710. package/backend/node_modules/eslint/lib/rules/no-dupe-class-members.js +0 -104
  1711. package/backend/node_modules/eslint/lib/rules/no-dupe-else-if.js +0 -122
  1712. package/backend/node_modules/eslint/lib/rules/no-dupe-keys.js +0 -142
  1713. package/backend/node_modules/eslint/lib/rules/no-duplicate-case.js +0 -71
  1714. package/backend/node_modules/eslint/lib/rules/no-duplicate-imports.js +0 -290
  1715. package/backend/node_modules/eslint/lib/rules/no-else-return.js +0 -405
  1716. package/backend/node_modules/eslint/lib/rules/no-empty-character-class.js +0 -76
  1717. package/backend/node_modules/eslint/lib/rules/no-empty-function.js +0 -167
  1718. package/backend/node_modules/eslint/lib/rules/no-empty-pattern.js +0 -78
  1719. package/backend/node_modules/eslint/lib/rules/no-empty-static-block.js +0 -47
  1720. package/backend/node_modules/eslint/lib/rules/no-empty.js +0 -103
  1721. package/backend/node_modules/eslint/lib/rules/no-eq-null.js +0 -46
  1722. package/backend/node_modules/eslint/lib/rules/no-eval.js +0 -286
  1723. package/backend/node_modules/eslint/lib/rules/no-ex-assign.js +0 -54
  1724. package/backend/node_modules/eslint/lib/rules/no-extend-native.js +0 -179
  1725. package/backend/node_modules/eslint/lib/rules/no-extra-bind.js +0 -213
  1726. package/backend/node_modules/eslint/lib/rules/no-extra-boolean-cast.js +0 -317
  1727. package/backend/node_modules/eslint/lib/rules/no-extra-label.js +0 -149
  1728. package/backend/node_modules/eslint/lib/rules/no-extra-parens.js +0 -1322
  1729. package/backend/node_modules/eslint/lib/rules/no-extra-semi.js +0 -147
  1730. package/backend/node_modules/eslint/lib/rules/no-fallthrough.js +0 -196
  1731. package/backend/node_modules/eslint/lib/rules/no-floating-decimal.js +0 -73
  1732. package/backend/node_modules/eslint/lib/rules/no-func-assign.js +0 -78
  1733. package/backend/node_modules/eslint/lib/rules/no-global-assign.js +0 -95
  1734. package/backend/node_modules/eslint/lib/rules/no-implicit-coercion.js +0 -380
  1735. package/backend/node_modules/eslint/lib/rules/no-implicit-globals.js +0 -146
  1736. package/backend/node_modules/eslint/lib/rules/no-implied-eval.js +0 -132
  1737. package/backend/node_modules/eslint/lib/rules/no-import-assign.js +0 -241
  1738. package/backend/node_modules/eslint/lib/rules/no-inline-comments.js +0 -110
  1739. package/backend/node_modules/eslint/lib/rules/no-inner-declarations.js +0 -110
  1740. package/backend/node_modules/eslint/lib/rules/no-invalid-regexp.js +0 -194
  1741. package/backend/node_modules/eslint/lib/rules/no-invalid-this.js +0 -150
  1742. package/backend/node_modules/eslint/lib/rules/no-irregular-whitespace.js +0 -276
  1743. package/backend/node_modules/eslint/lib/rules/no-iterator.js +0 -52
  1744. package/backend/node_modules/eslint/lib/rules/no-label-var.js +0 -80
  1745. package/backend/node_modules/eslint/lib/rules/no-labels.js +0 -149
  1746. package/backend/node_modules/eslint/lib/rules/no-lone-blocks.js +0 -136
  1747. package/backend/node_modules/eslint/lib/rules/no-lonely-if.js +0 -88
  1748. package/backend/node_modules/eslint/lib/rules/no-loop-func.js +0 -206
  1749. package/backend/node_modules/eslint/lib/rules/no-loss-of-precision.js +0 -214
  1750. package/backend/node_modules/eslint/lib/rules/no-magic-numbers.js +0 -243
  1751. package/backend/node_modules/eslint/lib/rules/no-misleading-character-class.js +0 -300
  1752. package/backend/node_modules/eslint/lib/rules/no-mixed-operators.js +0 -229
  1753. package/backend/node_modules/eslint/lib/rules/no-mixed-requires.js +0 -238
  1754. package/backend/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +0 -116
  1755. package/backend/node_modules/eslint/lib/rules/no-multi-assign.js +0 -67
  1756. package/backend/node_modules/eslint/lib/rules/no-multi-spaces.js +0 -141
  1757. package/backend/node_modules/eslint/lib/rules/no-multi-str.js +0 -65
  1758. package/backend/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +0 -154
  1759. package/backend/node_modules/eslint/lib/rules/no-native-reassign.js +0 -98
  1760. package/backend/node_modules/eslint/lib/rules/no-negated-condition.js +0 -95
  1761. package/backend/node_modules/eslint/lib/rules/no-negated-in-lhs.js +0 -46
  1762. package/backend/node_modules/eslint/lib/rules/no-nested-ternary.js +0 -44
  1763. package/backend/node_modules/eslint/lib/rules/no-new-func.js +0 -87
  1764. package/backend/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js +0 -66
  1765. package/backend/node_modules/eslint/lib/rules/no-new-object.js +0 -67
  1766. package/backend/node_modules/eslint/lib/rules/no-new-require.js +0 -50
  1767. package/backend/node_modules/eslint/lib/rules/no-new-symbol.js +0 -56
  1768. package/backend/node_modules/eslint/lib/rules/no-new-wrappers.js +0 -60
  1769. package/backend/node_modules/eslint/lib/rules/no-new.js +0 -43
  1770. package/backend/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js +0 -148
  1771. package/backend/node_modules/eslint/lib/rules/no-obj-calls.js +0 -86
  1772. package/backend/node_modules/eslint/lib/rules/no-object-constructor.js +0 -117
  1773. package/backend/node_modules/eslint/lib/rules/no-octal-escape.js +0 -56
  1774. package/backend/node_modules/eslint/lib/rules/no-octal.js +0 -45
  1775. package/backend/node_modules/eslint/lib/rules/no-param-reassign.js +0 -230
  1776. package/backend/node_modules/eslint/lib/rules/no-path-concat.js +0 -64
  1777. package/backend/node_modules/eslint/lib/rules/no-plusplus.js +0 -105
  1778. package/backend/node_modules/eslint/lib/rules/no-process-env.js +0 -51
  1779. package/backend/node_modules/eslint/lib/rules/no-process-exit.js +0 -47
  1780. package/backend/node_modules/eslint/lib/rules/no-promise-executor-return.js +0 -263
  1781. package/backend/node_modules/eslint/lib/rules/no-proto.js +0 -48
  1782. package/backend/node_modules/eslint/lib/rules/no-prototype-builtins.js +0 -159
  1783. package/backend/node_modules/eslint/lib/rules/no-redeclare.js +0 -174
  1784. package/backend/node_modules/eslint/lib/rules/no-regex-spaces.js +0 -197
  1785. package/backend/node_modules/eslint/lib/rules/no-restricted-exports.js +0 -193
  1786. package/backend/node_modules/eslint/lib/rules/no-restricted-globals.js +0 -124
  1787. package/backend/node_modules/eslint/lib/rules/no-restricted-imports.js +0 -410
  1788. package/backend/node_modules/eslint/lib/rules/no-restricted-modules.js +0 -213
  1789. package/backend/node_modules/eslint/lib/rules/no-restricted-properties.js +0 -168
  1790. package/backend/node_modules/eslint/lib/rules/no-restricted-syntax.js +0 -70
  1791. package/backend/node_modules/eslint/lib/rules/no-return-assign.js +0 -80
  1792. package/backend/node_modules/eslint/lib/rules/no-return-await.js +0 -135
  1793. package/backend/node_modules/eslint/lib/rules/no-script-url.js +0 -61
  1794. package/backend/node_modules/eslint/lib/rules/no-self-assign.js +0 -183
  1795. package/backend/node_modules/eslint/lib/rules/no-self-compare.js +0 -60
  1796. package/backend/node_modules/eslint/lib/rules/no-sequences.js +0 -138
  1797. package/backend/node_modules/eslint/lib/rules/no-setter-return.js +0 -226
  1798. package/backend/node_modules/eslint/lib/rules/no-shadow-restricted-names.js +0 -65
  1799. package/backend/node_modules/eslint/lib/rules/no-shadow.js +0 -336
  1800. package/backend/node_modules/eslint/lib/rules/no-spaced-func.js +0 -83
  1801. package/backend/node_modules/eslint/lib/rules/no-sparse-arrays.js +0 -50
  1802. package/backend/node_modules/eslint/lib/rules/no-sync.js +0 -64
  1803. package/backend/node_modules/eslint/lib/rules/no-tabs.js +0 -81
  1804. package/backend/node_modules/eslint/lib/rules/no-template-curly-in-string.js +0 -44
  1805. package/backend/node_modules/eslint/lib/rules/no-ternary.js +0 -41
  1806. package/backend/node_modules/eslint/lib/rules/no-this-before-super.js +0 -331
  1807. package/backend/node_modules/eslint/lib/rules/no-throw-literal.js +0 -51
  1808. package/backend/node_modules/eslint/lib/rules/no-trailing-spaces.js +0 -193
  1809. package/backend/node_modules/eslint/lib/rules/no-undef-init.js +0 -75
  1810. package/backend/node_modules/eslint/lib/rules/no-undef.js +0 -79
  1811. package/backend/node_modules/eslint/lib/rules/no-undefined.js +0 -86
  1812. package/backend/node_modules/eslint/lib/rules/no-underscore-dangle.js +0 -335
  1813. package/backend/node_modules/eslint/lib/rules/no-unexpected-multiline.js +0 -120
  1814. package/backend/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js +0 -360
  1815. package/backend/node_modules/eslint/lib/rules/no-unneeded-ternary.js +0 -166
  1816. package/backend/node_modules/eslint/lib/rules/no-unreachable-loop.js +0 -185
  1817. package/backend/node_modules/eslint/lib/rules/no-unreachable.js +0 -293
  1818. package/backend/node_modules/eslint/lib/rules/no-unsafe-finally.js +0 -111
  1819. package/backend/node_modules/eslint/lib/rules/no-unsafe-negation.js +0 -128
  1820. package/backend/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +0 -205
  1821. package/backend/node_modules/eslint/lib/rules/no-unused-expressions.js +0 -186
  1822. package/backend/node_modules/eslint/lib/rules/no-unused-labels.js +0 -143
  1823. package/backend/node_modules/eslint/lib/rules/no-unused-private-class-members.js +0 -195
  1824. package/backend/node_modules/eslint/lib/rules/no-unused-vars.js +0 -718
  1825. package/backend/node_modules/eslint/lib/rules/no-use-before-define.js +0 -348
  1826. package/backend/node_modules/eslint/lib/rules/no-useless-backreference.js +0 -194
  1827. package/backend/node_modules/eslint/lib/rules/no-useless-call.js +0 -90
  1828. package/backend/node_modules/eslint/lib/rules/no-useless-catch.js +0 -57
  1829. package/backend/node_modules/eslint/lib/rules/no-useless-computed-key.js +0 -168
  1830. package/backend/node_modules/eslint/lib/rules/no-useless-concat.js +0 -115
  1831. package/backend/node_modules/eslint/lib/rules/no-useless-constructor.js +0 -189
  1832. package/backend/node_modules/eslint/lib/rules/no-useless-escape.js +0 -333
  1833. package/backend/node_modules/eslint/lib/rules/no-useless-rename.js +0 -172
  1834. package/backend/node_modules/eslint/lib/rules/no-useless-return.js +0 -364
  1835. package/backend/node_modules/eslint/lib/rules/no-var.js +0 -334
  1836. package/backend/node_modules/eslint/lib/rules/no-void.js +0 -64
  1837. package/backend/node_modules/eslint/lib/rules/no-warning-comments.js +0 -201
  1838. package/backend/node_modules/eslint/lib/rules/no-whitespace-before-property.js +0 -116
  1839. package/backend/node_modules/eslint/lib/rules/no-with.js +0 -39
  1840. package/backend/node_modules/eslint/lib/rules/nonblock-statement-body-position.js +0 -127
  1841. package/backend/node_modules/eslint/lib/rules/object-curly-newline.js +0 -324
  1842. package/backend/node_modules/eslint/lib/rules/object-curly-spacing.js +0 -311
  1843. package/backend/node_modules/eslint/lib/rules/object-property-newline.js +0 -102
  1844. package/backend/node_modules/eslint/lib/rules/object-shorthand.js +0 -520
  1845. package/backend/node_modules/eslint/lib/rules/one-var-declaration-per-line.js +0 -95
  1846. package/backend/node_modules/eslint/lib/rules/one-var.js +0 -567
  1847. package/backend/node_modules/eslint/lib/rules/operator-assignment.js +0 -209
  1848. package/backend/node_modules/eslint/lib/rules/operator-linebreak.js +0 -253
  1849. package/backend/node_modules/eslint/lib/rules/padded-blocks.js +0 -310
  1850. package/backend/node_modules/eslint/lib/rules/padding-line-between-statements.js +0 -590
  1851. package/backend/node_modules/eslint/lib/rules/prefer-arrow-callback.js +0 -381
  1852. package/backend/node_modules/eslint/lib/rules/prefer-const.js +0 -501
  1853. package/backend/node_modules/eslint/lib/rules/prefer-destructuring.js +0 -301
  1854. package/backend/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js +0 -191
  1855. package/backend/node_modules/eslint/lib/rules/prefer-named-capture-group.js +0 -178
  1856. package/backend/node_modules/eslint/lib/rules/prefer-numeric-literals.js +0 -148
  1857. package/backend/node_modules/eslint/lib/rules/prefer-object-has-own.js +0 -114
  1858. package/backend/node_modules/eslint/lib/rules/prefer-object-spread.js +0 -298
  1859. package/backend/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js +0 -132
  1860. package/backend/node_modules/eslint/lib/rules/prefer-reflect.js +0 -127
  1861. package/backend/node_modules/eslint/lib/rules/prefer-regex-literals.js +0 -507
  1862. package/backend/node_modules/eslint/lib/rules/prefer-rest-params.js +0 -118
  1863. package/backend/node_modules/eslint/lib/rules/prefer-spread.js +0 -87
  1864. package/backend/node_modules/eslint/lib/rules/prefer-template.js +0 -275
  1865. package/backend/node_modules/eslint/lib/rules/quote-props.js +0 -310
  1866. package/backend/node_modules/eslint/lib/rules/quotes.js +0 -350
  1867. package/backend/node_modules/eslint/lib/rules/radix.js +0 -198
  1868. package/backend/node_modules/eslint/lib/rules/require-atomic-updates.js +0 -331
  1869. package/backend/node_modules/eslint/lib/rules/require-await.js +0 -113
  1870. package/backend/node_modules/eslint/lib/rules/require-jsdoc.js +0 -122
  1871. package/backend/node_modules/eslint/lib/rules/require-unicode-regexp.js +0 -129
  1872. package/backend/node_modules/eslint/lib/rules/require-yield.js +0 -77
  1873. package/backend/node_modules/eslint/lib/rules/rest-spread-spacing.js +0 -123
  1874. package/backend/node_modules/eslint/lib/rules/semi-spacing.js +0 -248
  1875. package/backend/node_modules/eslint/lib/rules/semi-style.js +0 -158
  1876. package/backend/node_modules/eslint/lib/rules/semi.js +0 -438
  1877. package/backend/node_modules/eslint/lib/rules/sort-imports.js +0 -241
  1878. package/backend/node_modules/eslint/lib/rules/sort-keys.js +0 -230
  1879. package/backend/node_modules/eslint/lib/rules/sort-vars.js +0 -104
  1880. package/backend/node_modules/eslint/lib/rules/space-before-blocks.js +0 -204
  1881. package/backend/node_modules/eslint/lib/rules/space-before-function-paren.js +0 -167
  1882. package/backend/node_modules/eslint/lib/rules/space-in-parens.js +0 -285
  1883. package/backend/node_modules/eslint/lib/rules/space-infix-ops.js +0 -198
  1884. package/backend/node_modules/eslint/lib/rules/space-unary-ops.js +0 -324
  1885. package/backend/node_modules/eslint/lib/rules/spaced-comment.js +0 -385
  1886. package/backend/node_modules/eslint/lib/rules/strict.js +0 -277
  1887. package/backend/node_modules/eslint/lib/rules/switch-colon-spacing.js +0 -132
  1888. package/backend/node_modules/eslint/lib/rules/symbol-description.js +0 -73
  1889. package/backend/node_modules/eslint/lib/rules/template-curly-spacing.js +0 -144
  1890. package/backend/node_modules/eslint/lib/rules/template-tag-spacing.js +0 -93
  1891. package/backend/node_modules/eslint/lib/rules/unicode-bom.js +0 -73
  1892. package/backend/node_modules/eslint/lib/rules/use-isnan.js +0 -141
  1893. package/backend/node_modules/eslint/lib/rules/utils/ast-utils.js +0 -2282
  1894. package/backend/node_modules/eslint/lib/rules/utils/fix-tracker.js +0 -114
  1895. package/backend/node_modules/eslint/lib/rules/utils/keywords.js +0 -67
  1896. package/backend/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +0 -115
  1897. package/backend/node_modules/eslint/lib/rules/utils/patterns/letters.js +0 -36
  1898. package/backend/node_modules/eslint/lib/rules/utils/regular-expressions.js +0 -42
  1899. package/backend/node_modules/eslint/lib/rules/utils/unicode/index.js +0 -11
  1900. package/backend/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js +0 -13
  1901. package/backend/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js +0 -13
  1902. package/backend/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js +0 -13
  1903. package/backend/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js +0 -14
  1904. package/backend/node_modules/eslint/lib/rules/valid-jsdoc.js +0 -516
  1905. package/backend/node_modules/eslint/lib/rules/valid-typeof.js +0 -127
  1906. package/backend/node_modules/eslint/lib/rules/vars-on-top.js +0 -157
  1907. package/backend/node_modules/eslint/lib/rules/wrap-iife.js +0 -207
  1908. package/backend/node_modules/eslint/lib/rules/wrap-regex.js +0 -61
  1909. package/backend/node_modules/eslint/lib/rules/yield-star-spacing.js +0 -130
  1910. package/backend/node_modules/eslint/lib/rules/yoda.js +0 -353
  1911. package/backend/node_modules/eslint/lib/shared/ajv.js +0 -34
  1912. package/backend/node_modules/eslint/lib/shared/ast-utils.js +0 -29
  1913. package/backend/node_modules/eslint/lib/shared/config-validator.js +0 -347
  1914. package/backend/node_modules/eslint/lib/shared/deprecation-warnings.js +0 -58
  1915. package/backend/node_modules/eslint/lib/shared/directives.js +0 -15
  1916. package/backend/node_modules/eslint/lib/shared/logging.js +0 -30
  1917. package/backend/node_modules/eslint/lib/shared/relative-module-resolver.js +0 -50
  1918. package/backend/node_modules/eslint/lib/shared/runtime-info.js +0 -167
  1919. package/backend/node_modules/eslint/lib/shared/severity.js +0 -49
  1920. package/backend/node_modules/eslint/lib/shared/string-utils.js +0 -60
  1921. package/backend/node_modules/eslint/lib/shared/traverser.js +0 -195
  1922. package/backend/node_modules/eslint/lib/shared/types.js +0 -216
  1923. package/backend/node_modules/eslint/lib/source-code/index.js +0 -5
  1924. package/backend/node_modules/eslint/lib/source-code/source-code.js +0 -1055
  1925. package/backend/node_modules/eslint/lib/source-code/token-store/backward-token-comment-cursor.js +0 -57
  1926. package/backend/node_modules/eslint/lib/source-code/token-store/backward-token-cursor.js +0 -58
  1927. package/backend/node_modules/eslint/lib/source-code/token-store/cursor.js +0 -76
  1928. package/backend/node_modules/eslint/lib/source-code/token-store/cursors.js +0 -90
  1929. package/backend/node_modules/eslint/lib/source-code/token-store/decorative-cursor.js +0 -39
  1930. package/backend/node_modules/eslint/lib/source-code/token-store/filter-cursor.js +0 -43
  1931. package/backend/node_modules/eslint/lib/source-code/token-store/forward-token-comment-cursor.js +0 -57
  1932. package/backend/node_modules/eslint/lib/source-code/token-store/forward-token-cursor.js +0 -63
  1933. package/backend/node_modules/eslint/lib/source-code/token-store/index.js +0 -627
  1934. package/backend/node_modules/eslint/lib/source-code/token-store/limit-cursor.js +0 -40
  1935. package/backend/node_modules/eslint/lib/source-code/token-store/padded-token-cursor.js +0 -38
  1936. package/backend/node_modules/eslint/lib/source-code/token-store/skip-cursor.js +0 -42
  1937. package/backend/node_modules/eslint/lib/source-code/token-store/utils.js +0 -107
  1938. package/backend/node_modules/eslint/lib/unsupported-api.js +0 -30
  1939. package/backend/node_modules/eslint/messages/all-files-ignored.js +0 -16
  1940. package/backend/node_modules/eslint/messages/eslintrc-incompat.js +0 -98
  1941. package/backend/node_modules/eslint/messages/eslintrc-plugins.js +0 -24
  1942. package/backend/node_modules/eslint/messages/extend-config-missing.js +0 -13
  1943. package/backend/node_modules/eslint/messages/failed-to-read-json.js +0 -11
  1944. package/backend/node_modules/eslint/messages/file-not-found.js +0 -10
  1945. package/backend/node_modules/eslint/messages/invalid-rule-options.js +0 -17
  1946. package/backend/node_modules/eslint/messages/invalid-rule-severity.js +0 -13
  1947. package/backend/node_modules/eslint/messages/no-config-found.js +0 -15
  1948. package/backend/node_modules/eslint/messages/plugin-conflict.js +0 -22
  1949. package/backend/node_modules/eslint/messages/plugin-invalid.js +0 -16
  1950. package/backend/node_modules/eslint/messages/plugin-missing.js +0 -19
  1951. package/backend/node_modules/eslint/messages/print-config-with-directory-path.js +0 -8
  1952. package/backend/node_modules/eslint/messages/shared.js +0 -18
  1953. package/backend/node_modules/eslint/messages/whitespace-found.js +0 -11
  1954. package/backend/node_modules/eslint/package.json +0 -181
  1955. package/backend/node_modules/supports-color/browser.js +0 -5
  1956. package/backend/node_modules/supports-color/index.js +0 -135
  1957. package/backend/node_modules/supports-color/license +0 -9
  1958. package/backend/node_modules/supports-color/package.json +0 -53
  1959. package/backend/node_modules/supports-color/readme.md +0 -76
  1960. package/backend/node_modules/ts-api-utils/LICENSE.md +0 -20
  1961. package/backend/node_modules/ts-api-utils/README.md +0 -83
  1962. package/backend/node_modules/ts-api-utils/lib/index.cjs +0 -2307
  1963. package/backend/node_modules/ts-api-utils/lib/index.d.cts +0 -3063
  1964. package/backend/node_modules/ts-api-utils/lib/index.d.ts +0 -3063
  1965. package/backend/node_modules/ts-api-utils/lib/index.js +0 -2106
  1966. package/backend/node_modules/ts-api-utils/package.json +0 -107
  1967. package/backend/node_modules/tsconfig-paths/CHANGELOG.md +0 -407
  1968. package/backend/node_modules/tsconfig-paths/LICENSE +0 -21
  1969. package/backend/node_modules/tsconfig-paths/README.md +0 -269
  1970. package/backend/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.d.ts +0 -1
  1971. package/backend/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js +0 -87
  1972. package/backend/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js.map +0 -1
  1973. package/backend/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.d.ts +0 -17
  1974. package/backend/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js +0 -216
  1975. package/backend/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js.map +0 -1
  1976. package/backend/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.d.ts +0 -1
  1977. package/backend/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js +0 -56
  1978. package/backend/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js.map +0 -1
  1979. package/backend/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.d.ts +0 -1
  1980. package/backend/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js +0 -39
  1981. package/backend/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js.map +0 -1
  1982. package/backend/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.d.ts +0 -1
  1983. package/backend/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js +0 -18
  1984. package/backend/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js.map +0 -1
  1985. package/backend/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.d.ts +0 -1
  1986. package/backend/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js +0 -14
  1987. package/backend/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js.map +0 -1
  1988. package/backend/node_modules/tsconfig-paths/lib/__tests__/try-path.test.d.ts +0 -1
  1989. package/backend/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js +0 -124
  1990. package/backend/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js.map +0 -1
  1991. package/backend/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.d.ts +0 -1
  1992. package/backend/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js +0 -328
  1993. package/backend/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js.map +0 -1
  1994. package/backend/node_modules/tsconfig-paths/lib/config-loader.d.ts +0 -33
  1995. package/backend/node_modules/tsconfig-paths/lib/config-loader.js +0 -48
  1996. package/backend/node_modules/tsconfig-paths/lib/config-loader.js.map +0 -1
  1997. package/backend/node_modules/tsconfig-paths/lib/filesystem.d.ts +0 -34
  1998. package/backend/node_modules/tsconfig-paths/lib/filesystem.js +0 -61
  1999. package/backend/node_modules/tsconfig-paths/lib/filesystem.js.map +0 -1
  2000. package/backend/node_modules/tsconfig-paths/lib/index.d.ts +0 -5
  2001. package/backend/node_modules/tsconfig-paths/lib/index.js +0 -15
  2002. package/backend/node_modules/tsconfig-paths/lib/index.js.map +0 -1
  2003. package/backend/node_modules/tsconfig-paths/lib/mapping-entry.d.ts +0 -18
  2004. package/backend/node_modules/tsconfig-paths/lib/mapping-entry.js +0 -54
  2005. package/backend/node_modules/tsconfig-paths/lib/mapping-entry.js.map +0 -1
  2006. package/backend/node_modules/tsconfig-paths/lib/match-path-async.d.ts +0 -21
  2007. package/backend/node_modules/tsconfig-paths/lib/match-path-async.js +0 -116
  2008. package/backend/node_modules/tsconfig-paths/lib/match-path-async.js.map +0 -1
  2009. package/backend/node_modules/tsconfig-paths/lib/match-path-sync.d.ts +0 -32
  2010. package/backend/node_modules/tsconfig-paths/lib/match-path-sync.js +0 -91
  2011. package/backend/node_modules/tsconfig-paths/lib/match-path-sync.js.map +0 -1
  2012. package/backend/node_modules/tsconfig-paths/lib/register.d.ts +0 -12
  2013. package/backend/node_modules/tsconfig-paths/lib/register.js +0 -112
  2014. package/backend/node_modules/tsconfig-paths/lib/register.js.map +0 -1
  2015. package/backend/node_modules/tsconfig-paths/lib/try-path.d.ts +0 -15
  2016. package/backend/node_modules/tsconfig-paths/lib/try-path.js +0 -91
  2017. package/backend/node_modules/tsconfig-paths/lib/try-path.js.map +0 -1
  2018. package/backend/node_modules/tsconfig-paths/lib/tsconfig-loader.d.ts +0 -28
  2019. package/backend/node_modules/tsconfig-paths/lib/tsconfig-loader.js +0 -148
  2020. package/backend/node_modules/tsconfig-paths/lib/tsconfig-loader.js.map +0 -1
  2021. package/backend/node_modules/tsconfig-paths/package.json +0 -74
  2022. package/backend/node_modules/tsconfig-paths/register.js +0 -1
  2023. package/backend/node_modules/tsconfig-paths/src/__tests__/config-loader.test.ts +0 -101
  2024. package/backend/node_modules/tsconfig-paths/src/__tests__/data/match-path-data.ts +0 -230
  2025. package/backend/node_modules/tsconfig-paths/src/__tests__/filesystem.test.ts +0 -57
  2026. package/backend/node_modules/tsconfig-paths/src/__tests__/mapping-entry.test.ts +0 -43
  2027. package/backend/node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts +0 -26
  2028. package/backend/node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts +0 -22
  2029. package/backend/node_modules/tsconfig-paths/src/__tests__/try-path.test.ts +0 -141
  2030. package/backend/node_modules/tsconfig-paths/src/__tests__/tsconfig-loader.test.ts +0 -428
  2031. package/backend/node_modules/tsconfig-paths/src/__tests__/tsconfig-named.json +0 -10
  2032. package/backend/node_modules/tsconfig-paths/src/config-loader.ts +0 -89
  2033. package/backend/node_modules/tsconfig-paths/src/filesystem.ts +0 -93
  2034. package/backend/node_modules/tsconfig-paths/src/index.ts +0 -24
  2035. package/backend/node_modules/tsconfig-paths/src/mapping-entry.ts +0 -65
  2036. package/backend/node_modules/tsconfig-paths/src/match-path-async.ts +0 -223
  2037. package/backend/node_modules/tsconfig-paths/src/match-path-sync.ts +0 -146
  2038. package/backend/node_modules/tsconfig-paths/src/register.ts +0 -123
  2039. package/backend/node_modules/tsconfig-paths/src/try-path.ts +0 -103
  2040. package/backend/node_modules/tsconfig-paths/src/tsconfig-loader.ts +0 -229
@@ -0,0 +1,4570 @@
1
+ /**
2
+ * The `node:crypto` module provides cryptographic functionality that includes a
3
+ * set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify
4
+ * functions.
5
+ *
6
+ * ```js
7
+ * const { createHmac } = await import('node:crypto');
8
+ *
9
+ * const secret = 'abcdefg';
10
+ * const hash = createHmac('sha256', secret)
11
+ * .update('I love cupcakes')
12
+ * .digest('hex');
13
+ * console.log(hash);
14
+ * // Prints:
15
+ * // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e
16
+ * ```
17
+ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/crypto.js)
18
+ */
19
+ declare module "crypto" {
20
+ import * as stream from "node:stream";
21
+ import { PeerCertificate } from "node:tls";
22
+ /**
23
+ * SPKAC is a Certificate Signing Request mechanism originally implemented by
24
+ * Netscape and was specified formally as part of HTML5's `keygen` element.
25
+ *
26
+ * `<keygen>` is deprecated since [HTML 5.2](https://www.w3.org/TR/html52/changes.html#features-removed) and new projects
27
+ * should not use this element anymore.
28
+ *
29
+ * The `node:crypto` module provides the `Certificate` class for working with SPKAC
30
+ * data. The most common usage is handling output generated by the HTML5 `<keygen>` element. Node.js uses [OpenSSL's SPKAC
31
+ * implementation](https://www.openssl.org/docs/man3.0/man1/openssl-spkac.html) internally.
32
+ * @since v0.11.8
33
+ */
34
+ class Certificate {
35
+ /**
36
+ * ```js
37
+ * const { Certificate } = await import('node:crypto');
38
+ * const spkac = getSpkacSomehow();
39
+ * const challenge = Certificate.exportChallenge(spkac);
40
+ * console.log(challenge.toString('utf8'));
41
+ * // Prints: the challenge as a UTF8 string
42
+ * ```
43
+ * @since v9.0.0
44
+ * @param encoding The `encoding` of the `spkac` string.
45
+ * @return The challenge component of the `spkac` data structure, which includes a public key and a challenge.
46
+ */
47
+ static exportChallenge(spkac: BinaryLike): Buffer;
48
+ /**
49
+ * ```js
50
+ * const { Certificate } = await import('node:crypto');
51
+ * const spkac = getSpkacSomehow();
52
+ * const publicKey = Certificate.exportPublicKey(spkac);
53
+ * console.log(publicKey);
54
+ * // Prints: the public key as <Buffer ...>
55
+ * ```
56
+ * @since v9.0.0
57
+ * @param encoding The `encoding` of the `spkac` string.
58
+ * @return The public key component of the `spkac` data structure, which includes a public key and a challenge.
59
+ */
60
+ static exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
61
+ /**
62
+ * ```js
63
+ * import { Buffer } from 'node:buffer';
64
+ * const { Certificate } = await import('node:crypto');
65
+ *
66
+ * const spkac = getSpkacSomehow();
67
+ * console.log(Certificate.verifySpkac(Buffer.from(spkac)));
68
+ * // Prints: true or false
69
+ * ```
70
+ * @since v9.0.0
71
+ * @param encoding The `encoding` of the `spkac` string.
72
+ * @return `true` if the given `spkac` data structure is valid, `false` otherwise.
73
+ */
74
+ static verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
75
+ /**
76
+ * @deprecated
77
+ * @param spkac
78
+ * @returns The challenge component of the `spkac` data structure,
79
+ * which includes a public key and a challenge.
80
+ */
81
+ exportChallenge(spkac: BinaryLike): Buffer;
82
+ /**
83
+ * @deprecated
84
+ * @param spkac
85
+ * @param encoding The encoding of the spkac string.
86
+ * @returns The public key component of the `spkac` data structure,
87
+ * which includes a public key and a challenge.
88
+ */
89
+ exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
90
+ /**
91
+ * @deprecated
92
+ * @param spkac
93
+ * @returns `true` if the given `spkac` data structure is valid,
94
+ * `false` otherwise.
95
+ */
96
+ verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
97
+ }
98
+ namespace constants {
99
+ // https://nodejs.org/dist/latest-v20.x/docs/api/crypto.html#crypto-constants
100
+ const OPENSSL_VERSION_NUMBER: number;
101
+ /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */
102
+ const SSL_OP_ALL: number;
103
+ /** Instructs OpenSSL to allow a non-[EC]DHE-based key exchange mode for TLS v1.3 */
104
+ const SSL_OP_ALLOW_NO_DHE_KEX: number;
105
+ /** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
106
+ const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
107
+ /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
108
+ const SSL_OP_CIPHER_SERVER_PREFERENCE: number;
109
+ /** Instructs OpenSSL to use Cisco's version identifier of DTLS_BAD_VER. */
110
+ const SSL_OP_CISCO_ANYCONNECT: number;
111
+ /** Instructs OpenSSL to turn on cookie exchange. */
112
+ const SSL_OP_COOKIE_EXCHANGE: number;
113
+ /** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */
114
+ const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number;
115
+ /** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */
116
+ const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number;
117
+ /** Allows initial connection to servers that do not support RI. */
118
+ const SSL_OP_LEGACY_SERVER_CONNECT: number;
119
+ /** Instructs OpenSSL to disable support for SSL/TLS compression. */
120
+ const SSL_OP_NO_COMPRESSION: number;
121
+ /** Instructs OpenSSL to disable encrypt-then-MAC. */
122
+ const SSL_OP_NO_ENCRYPT_THEN_MAC: number;
123
+ const SSL_OP_NO_QUERY_MTU: number;
124
+ /** Instructs OpenSSL to disable renegotiation. */
125
+ const SSL_OP_NO_RENEGOTIATION: number;
126
+ /** Instructs OpenSSL to always start a new session when performing renegotiation. */
127
+ const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number;
128
+ /** Instructs OpenSSL to turn off SSL v2 */
129
+ const SSL_OP_NO_SSLv2: number;
130
+ /** Instructs OpenSSL to turn off SSL v3 */
131
+ const SSL_OP_NO_SSLv3: number;
132
+ /** Instructs OpenSSL to disable use of RFC4507bis tickets. */
133
+ const SSL_OP_NO_TICKET: number;
134
+ /** Instructs OpenSSL to turn off TLS v1 */
135
+ const SSL_OP_NO_TLSv1: number;
136
+ /** Instructs OpenSSL to turn off TLS v1.1 */
137
+ const SSL_OP_NO_TLSv1_1: number;
138
+ /** Instructs OpenSSL to turn off TLS v1.2 */
139
+ const SSL_OP_NO_TLSv1_2: number;
140
+ /** Instructs OpenSSL to turn off TLS v1.3 */
141
+ const SSL_OP_NO_TLSv1_3: number;
142
+ /** Instructs OpenSSL server to prioritize ChaCha20-Poly1305 when the client does. This option has no effect if `SSL_OP_CIPHER_SERVER_PREFERENCE` is not enabled. */
143
+ const SSL_OP_PRIORITIZE_CHACHA: number;
144
+ /** Instructs OpenSSL to disable version rollback attack detection. */
145
+ const SSL_OP_TLS_ROLLBACK_BUG: number;
146
+ const ENGINE_METHOD_RSA: number;
147
+ const ENGINE_METHOD_DSA: number;
148
+ const ENGINE_METHOD_DH: number;
149
+ const ENGINE_METHOD_RAND: number;
150
+ const ENGINE_METHOD_EC: number;
151
+ const ENGINE_METHOD_CIPHERS: number;
152
+ const ENGINE_METHOD_DIGESTS: number;
153
+ const ENGINE_METHOD_PKEY_METHS: number;
154
+ const ENGINE_METHOD_PKEY_ASN1_METHS: number;
155
+ const ENGINE_METHOD_ALL: number;
156
+ const ENGINE_METHOD_NONE: number;
157
+ const DH_CHECK_P_NOT_SAFE_PRIME: number;
158
+ const DH_CHECK_P_NOT_PRIME: number;
159
+ const DH_UNABLE_TO_CHECK_GENERATOR: number;
160
+ const DH_NOT_SUITABLE_GENERATOR: number;
161
+ const RSA_PKCS1_PADDING: number;
162
+ const RSA_SSLV23_PADDING: number;
163
+ const RSA_NO_PADDING: number;
164
+ const RSA_PKCS1_OAEP_PADDING: number;
165
+ const RSA_X931_PADDING: number;
166
+ const RSA_PKCS1_PSS_PADDING: number;
167
+ /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */
168
+ const RSA_PSS_SALTLEN_DIGEST: number;
169
+ /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */
170
+ const RSA_PSS_SALTLEN_MAX_SIGN: number;
171
+ /** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */
172
+ const RSA_PSS_SALTLEN_AUTO: number;
173
+ const POINT_CONVERSION_COMPRESSED: number;
174
+ const POINT_CONVERSION_UNCOMPRESSED: number;
175
+ const POINT_CONVERSION_HYBRID: number;
176
+ /** Specifies the built-in default cipher list used by Node.js (colon-separated values). */
177
+ const defaultCoreCipherList: string;
178
+ /** Specifies the active default cipher list used by the current Node.js process (colon-separated values). */
179
+ const defaultCipherList: string;
180
+ }
181
+ interface HashOptions extends stream.TransformOptions {
182
+ /**
183
+ * For XOF hash functions such as `shake256`, the
184
+ * outputLength option can be used to specify the desired output length in bytes.
185
+ */
186
+ outputLength?: number | undefined;
187
+ }
188
+ /** @deprecated since v10.0.0 */
189
+ const fips: boolean;
190
+ /**
191
+ * Creates and returns a `Hash` object that can be used to generate hash digests
192
+ * using the given `algorithm`. Optional `options` argument controls stream
193
+ * behavior. For XOF hash functions such as `'shake256'`, the `outputLength` option
194
+ * can be used to specify the desired output length in bytes.
195
+ *
196
+ * The `algorithm` is dependent on the available algorithms supported by the
197
+ * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
198
+ * On recent releases of OpenSSL, `openssl list -digest-algorithms` will
199
+ * display the available digest algorithms.
200
+ *
201
+ * Example: generating the sha256 sum of a file
202
+ *
203
+ * ```js
204
+ * import {
205
+ * createReadStream,
206
+ * } from 'node:fs';
207
+ * import { argv } from 'node:process';
208
+ * const {
209
+ * createHash,
210
+ * } = await import('node:crypto');
211
+ *
212
+ * const filename = argv[2];
213
+ *
214
+ * const hash = createHash('sha256');
215
+ *
216
+ * const input = createReadStream(filename);
217
+ * input.on('readable', () => {
218
+ * // Only one element is going to be produced by the
219
+ * // hash stream.
220
+ * const data = input.read();
221
+ * if (data)
222
+ * hash.update(data);
223
+ * else {
224
+ * console.log(`${hash.digest('hex')} ${filename}`);
225
+ * }
226
+ * });
227
+ * ```
228
+ * @since v0.1.92
229
+ * @param options `stream.transform` options
230
+ */
231
+ function createHash(algorithm: string, options?: HashOptions): Hash;
232
+ /**
233
+ * Creates and returns an `Hmac` object that uses the given `algorithm` and `key`.
234
+ * Optional `options` argument controls stream behavior.
235
+ *
236
+ * The `algorithm` is dependent on the available algorithms supported by the
237
+ * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
238
+ * On recent releases of OpenSSL, `openssl list -digest-algorithms` will
239
+ * display the available digest algorithms.
240
+ *
241
+ * The `key` is the HMAC key used to generate the cryptographic HMAC hash. If it is
242
+ * a `KeyObject`, its type must be `secret`. If it is a string, please consider `caveats when using strings as inputs to cryptographic APIs`. If it was
243
+ * obtained from a cryptographically secure source of entropy, such as {@link randomBytes} or {@link generateKey}, its length should not
244
+ * exceed the block size of `algorithm` (e.g., 512 bits for SHA-256).
245
+ *
246
+ * Example: generating the sha256 HMAC of a file
247
+ *
248
+ * ```js
249
+ * import {
250
+ * createReadStream,
251
+ * } from 'node:fs';
252
+ * import { argv } from 'node:process';
253
+ * const {
254
+ * createHmac,
255
+ * } = await import('node:crypto');
256
+ *
257
+ * const filename = argv[2];
258
+ *
259
+ * const hmac = createHmac('sha256', 'a secret');
260
+ *
261
+ * const input = createReadStream(filename);
262
+ * input.on('readable', () => {
263
+ * // Only one element is going to be produced by the
264
+ * // hash stream.
265
+ * const data = input.read();
266
+ * if (data)
267
+ * hmac.update(data);
268
+ * else {
269
+ * console.log(`${hmac.digest('hex')} ${filename}`);
270
+ * }
271
+ * });
272
+ * ```
273
+ * @since v0.1.94
274
+ * @param options `stream.transform` options
275
+ */
276
+ function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
277
+ // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
278
+ type BinaryToTextEncoding = "base64" | "base64url" | "hex" | "binary";
279
+ type CharacterEncoding = "utf8" | "utf-8" | "utf16le" | "utf-16le" | "latin1";
280
+ type LegacyCharacterEncoding = "ascii" | "binary" | "ucs2" | "ucs-2";
281
+ type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
282
+ type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid";
283
+ /**
284
+ * The `Hash` class is a utility for creating hash digests of data. It can be
285
+ * used in one of two ways:
286
+ *
287
+ * * As a `stream` that is both readable and writable, where data is written
288
+ * to produce a computed hash digest on the readable side, or
289
+ * * Using the `hash.update()` and `hash.digest()` methods to produce the
290
+ * computed hash.
291
+ *
292
+ * The {@link createHash} method is used to create `Hash` instances. `Hash`objects are not to be created directly using the `new` keyword.
293
+ *
294
+ * Example: Using `Hash` objects as streams:
295
+ *
296
+ * ```js
297
+ * const {
298
+ * createHash,
299
+ * } = await import('node:crypto');
300
+ *
301
+ * const hash = createHash('sha256');
302
+ *
303
+ * hash.on('readable', () => {
304
+ * // Only one element is going to be produced by the
305
+ * // hash stream.
306
+ * const data = hash.read();
307
+ * if (data) {
308
+ * console.log(data.toString('hex'));
309
+ * // Prints:
310
+ * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50
311
+ * }
312
+ * });
313
+ *
314
+ * hash.write('some data to hash');
315
+ * hash.end();
316
+ * ```
317
+ *
318
+ * Example: Using `Hash` and piped streams:
319
+ *
320
+ * ```js
321
+ * import { createReadStream } from 'node:fs';
322
+ * import { stdout } from 'node:process';
323
+ * const { createHash } = await import('node:crypto');
324
+ *
325
+ * const hash = createHash('sha256');
326
+ *
327
+ * const input = createReadStream('test.js');
328
+ * input.pipe(hash).setEncoding('hex').pipe(stdout);
329
+ * ```
330
+ *
331
+ * Example: Using the `hash.update()` and `hash.digest()` methods:
332
+ *
333
+ * ```js
334
+ * const {
335
+ * createHash,
336
+ * } = await import('node:crypto');
337
+ *
338
+ * const hash = createHash('sha256');
339
+ *
340
+ * hash.update('some data to hash');
341
+ * console.log(hash.digest('hex'));
342
+ * // Prints:
343
+ * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50
344
+ * ```
345
+ * @since v0.1.92
346
+ */
347
+ class Hash extends stream.Transform {
348
+ private constructor();
349
+ /**
350
+ * Creates a new `Hash` object that contains a deep copy of the internal state
351
+ * of the current `Hash` object.
352
+ *
353
+ * The optional `options` argument controls stream behavior. For XOF hash
354
+ * functions such as `'shake256'`, the `outputLength` option can be used to
355
+ * specify the desired output length in bytes.
356
+ *
357
+ * An error is thrown when an attempt is made to copy the `Hash` object after
358
+ * its `hash.digest()` method has been called.
359
+ *
360
+ * ```js
361
+ * // Calculate a rolling hash.
362
+ * const {
363
+ * createHash,
364
+ * } = await import('node:crypto');
365
+ *
366
+ * const hash = createHash('sha256');
367
+ *
368
+ * hash.update('one');
369
+ * console.log(hash.copy().digest('hex'));
370
+ *
371
+ * hash.update('two');
372
+ * console.log(hash.copy().digest('hex'));
373
+ *
374
+ * hash.update('three');
375
+ * console.log(hash.copy().digest('hex'));
376
+ *
377
+ * // Etc.
378
+ * ```
379
+ * @since v13.1.0
380
+ * @param options `stream.transform` options
381
+ */
382
+ copy(options?: HashOptions): Hash;
383
+ /**
384
+ * Updates the hash content with the given `data`, the encoding of which
385
+ * is given in `inputEncoding`.
386
+ * If `encoding` is not provided, and the `data` is a string, an
387
+ * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
388
+ *
389
+ * This can be called many times with new data as it is streamed.
390
+ * @since v0.1.92
391
+ * @param inputEncoding The `encoding` of the `data` string.
392
+ */
393
+ update(data: BinaryLike): Hash;
394
+ update(data: string, inputEncoding: Encoding): Hash;
395
+ /**
396
+ * Calculates the digest of all of the data passed to be hashed (using the `hash.update()` method).
397
+ * If `encoding` is provided a string will be returned; otherwise
398
+ * a `Buffer` is returned.
399
+ *
400
+ * The `Hash` object can not be used again after `hash.digest()` method has been
401
+ * called. Multiple calls will cause an error to be thrown.
402
+ * @since v0.1.92
403
+ * @param encoding The `encoding` of the return value.
404
+ */
405
+ digest(): Buffer;
406
+ digest(encoding: BinaryToTextEncoding): string;
407
+ }
408
+ /**
409
+ * The `Hmac` class is a utility for creating cryptographic HMAC digests. It can
410
+ * be used in one of two ways:
411
+ *
412
+ * * As a `stream` that is both readable and writable, where data is written
413
+ * to produce a computed HMAC digest on the readable side, or
414
+ * * Using the `hmac.update()` and `hmac.digest()` methods to produce the
415
+ * computed HMAC digest.
416
+ *
417
+ * The {@link createHmac} method is used to create `Hmac` instances. `Hmac`objects are not to be created directly using the `new` keyword.
418
+ *
419
+ * Example: Using `Hmac` objects as streams:
420
+ *
421
+ * ```js
422
+ * const {
423
+ * createHmac,
424
+ * } = await import('node:crypto');
425
+ *
426
+ * const hmac = createHmac('sha256', 'a secret');
427
+ *
428
+ * hmac.on('readable', () => {
429
+ * // Only one element is going to be produced by the
430
+ * // hash stream.
431
+ * const data = hmac.read();
432
+ * if (data) {
433
+ * console.log(data.toString('hex'));
434
+ * // Prints:
435
+ * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
436
+ * }
437
+ * });
438
+ *
439
+ * hmac.write('some data to hash');
440
+ * hmac.end();
441
+ * ```
442
+ *
443
+ * Example: Using `Hmac` and piped streams:
444
+ *
445
+ * ```js
446
+ * import { createReadStream } from 'node:fs';
447
+ * import { stdout } from 'node:process';
448
+ * const {
449
+ * createHmac,
450
+ * } = await import('node:crypto');
451
+ *
452
+ * const hmac = createHmac('sha256', 'a secret');
453
+ *
454
+ * const input = createReadStream('test.js');
455
+ * input.pipe(hmac).pipe(stdout);
456
+ * ```
457
+ *
458
+ * Example: Using the `hmac.update()` and `hmac.digest()` methods:
459
+ *
460
+ * ```js
461
+ * const {
462
+ * createHmac,
463
+ * } = await import('node:crypto');
464
+ *
465
+ * const hmac = createHmac('sha256', 'a secret');
466
+ *
467
+ * hmac.update('some data to hash');
468
+ * console.log(hmac.digest('hex'));
469
+ * // Prints:
470
+ * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
471
+ * ```
472
+ * @since v0.1.94
473
+ * @deprecated Since v20.13.0 Calling `Hmac` class directly with `Hmac()` or `new Hmac()` is deprecated due to being internals, not intended for public use. Please use the {@link createHmac} method to create Hmac instances.
474
+ */
475
+ class Hmac extends stream.Transform {
476
+ private constructor();
477
+ /**
478
+ * Updates the `Hmac` content with the given `data`, the encoding of which
479
+ * is given in `inputEncoding`.
480
+ * If `encoding` is not provided, and the `data` is a string, an
481
+ * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
482
+ *
483
+ * This can be called many times with new data as it is streamed.
484
+ * @since v0.1.94
485
+ * @param inputEncoding The `encoding` of the `data` string.
486
+ */
487
+ update(data: BinaryLike): Hmac;
488
+ update(data: string, inputEncoding: Encoding): Hmac;
489
+ /**
490
+ * Calculates the HMAC digest of all of the data passed using `hmac.update()`.
491
+ * If `encoding` is
492
+ * provided a string is returned; otherwise a `Buffer` is returned;
493
+ *
494
+ * The `Hmac` object can not be used again after `hmac.digest()` has been
495
+ * called. Multiple calls to `hmac.digest()` will result in an error being thrown.
496
+ * @since v0.1.94
497
+ * @param encoding The `encoding` of the return value.
498
+ */
499
+ digest(): Buffer;
500
+ digest(encoding: BinaryToTextEncoding): string;
501
+ }
502
+ type KeyObjectType = "secret" | "public" | "private";
503
+ interface KeyExportOptions<T extends KeyFormat> {
504
+ type: "pkcs1" | "spki" | "pkcs8" | "sec1";
505
+ format: T;
506
+ cipher?: string | undefined;
507
+ passphrase?: string | Buffer | undefined;
508
+ }
509
+ interface JwkKeyExportOptions {
510
+ format: "jwk";
511
+ }
512
+ interface JsonWebKey {
513
+ crv?: string | undefined;
514
+ d?: string | undefined;
515
+ dp?: string | undefined;
516
+ dq?: string | undefined;
517
+ e?: string | undefined;
518
+ k?: string | undefined;
519
+ kty?: string | undefined;
520
+ n?: string | undefined;
521
+ p?: string | undefined;
522
+ q?: string | undefined;
523
+ qi?: string | undefined;
524
+ x?: string | undefined;
525
+ y?: string | undefined;
526
+ [key: string]: unknown;
527
+ }
528
+ interface AsymmetricKeyDetails {
529
+ /**
530
+ * Key size in bits (RSA, DSA).
531
+ */
532
+ modulusLength?: number | undefined;
533
+ /**
534
+ * Public exponent (RSA).
535
+ */
536
+ publicExponent?: bigint | undefined;
537
+ /**
538
+ * Name of the message digest (RSA-PSS).
539
+ */
540
+ hashAlgorithm?: string | undefined;
541
+ /**
542
+ * Name of the message digest used by MGF1 (RSA-PSS).
543
+ */
544
+ mgf1HashAlgorithm?: string | undefined;
545
+ /**
546
+ * Minimal salt length in bytes (RSA-PSS).
547
+ */
548
+ saltLength?: number | undefined;
549
+ /**
550
+ * Size of q in bits (DSA).
551
+ */
552
+ divisorLength?: number | undefined;
553
+ /**
554
+ * Name of the curve (EC).
555
+ */
556
+ namedCurve?: string | undefined;
557
+ }
558
+ /**
559
+ * Node.js uses a `KeyObject` class to represent a symmetric or asymmetric key,
560
+ * and each kind of key exposes different functions. The {@link createSecretKey}, {@link createPublicKey} and {@link createPrivateKey} methods are used to create `KeyObject`instances. `KeyObject`
561
+ * objects are not to be created directly using the `new`keyword.
562
+ *
563
+ * Most applications should consider using the new `KeyObject` API instead of
564
+ * passing keys as strings or `Buffer`s due to improved security features.
565
+ *
566
+ * `KeyObject` instances can be passed to other threads via `postMessage()`.
567
+ * The receiver obtains a cloned `KeyObject`, and the `KeyObject` does not need to
568
+ * be listed in the `transferList` argument.
569
+ * @since v11.6.0
570
+ */
571
+ class KeyObject {
572
+ private constructor();
573
+ /**
574
+ * Example: Converting a `CryptoKey` instance to a `KeyObject`:
575
+ *
576
+ * ```js
577
+ * const { KeyObject } = await import('node:crypto');
578
+ * const { subtle } = globalThis.crypto;
579
+ *
580
+ * const key = await subtle.generateKey({
581
+ * name: 'HMAC',
582
+ * hash: 'SHA-256',
583
+ * length: 256,
584
+ * }, true, ['sign', 'verify']);
585
+ *
586
+ * const keyObject = KeyObject.from(key);
587
+ * console.log(keyObject.symmetricKeySize);
588
+ * // Prints: 32 (symmetric key size in bytes)
589
+ * ```
590
+ * @since v15.0.0
591
+ */
592
+ static from(key: webcrypto.CryptoKey): KeyObject;
593
+ /**
594
+ * For asymmetric keys, this property represents the type of the key. Supported key
595
+ * types are:
596
+ *
597
+ * * `'rsa'` (OID 1.2.840.113549.1.1.1)
598
+ * * `'rsa-pss'` (OID 1.2.840.113549.1.1.10)
599
+ * * `'dsa'` (OID 1.2.840.10040.4.1)
600
+ * * `'ec'` (OID 1.2.840.10045.2.1)
601
+ * * `'x25519'` (OID 1.3.101.110)
602
+ * * `'x448'` (OID 1.3.101.111)
603
+ * * `'ed25519'` (OID 1.3.101.112)
604
+ * * `'ed448'` (OID 1.3.101.113)
605
+ * * `'dh'` (OID 1.2.840.113549.1.3.1)
606
+ *
607
+ * This property is `undefined` for unrecognized `KeyObject` types and symmetric
608
+ * keys.
609
+ * @since v11.6.0
610
+ */
611
+ asymmetricKeyType?: KeyType | undefined;
612
+ /**
613
+ * This property exists only on asymmetric keys. Depending on the type of the key,
614
+ * this object contains information about the key. None of the information obtained
615
+ * through this property can be used to uniquely identify a key or to compromise
616
+ * the security of the key.
617
+ *
618
+ * For RSA-PSS keys, if the key material contains a `RSASSA-PSS-params` sequence,
619
+ * the `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` properties will be
620
+ * set.
621
+ *
622
+ * Other key details might be exposed via this API using additional attributes.
623
+ * @since v15.7.0
624
+ */
625
+ asymmetricKeyDetails?: AsymmetricKeyDetails | undefined;
626
+ /**
627
+ * For symmetric keys, the following encoding options can be used:
628
+ *
629
+ * For public keys, the following encoding options can be used:
630
+ *
631
+ * For private keys, the following encoding options can be used:
632
+ *
633
+ * The result type depends on the selected encoding format, when PEM the
634
+ * result is a string, when DER it will be a buffer containing the data
635
+ * encoded as DER, when [JWK](https://tools.ietf.org/html/rfc7517) it will be an object.
636
+ *
637
+ * When [JWK](https://tools.ietf.org/html/rfc7517) encoding format was selected, all other encoding options are
638
+ * ignored.
639
+ *
640
+ * PKCS#1, SEC1, and PKCS#8 type keys can be encrypted by using a combination of
641
+ * the `cipher` and `format` options. The PKCS#8 `type` can be used with any`format` to encrypt any key algorithm (RSA, EC, or DH) by specifying a`cipher`. PKCS#1 and SEC1 can only be
642
+ * encrypted by specifying a `cipher`when the PEM `format` is used. For maximum compatibility, use PKCS#8 for
643
+ * encrypted private keys. Since PKCS#8 defines its own
644
+ * encryption mechanism, PEM-level encryption is not supported when encrypting
645
+ * a PKCS#8 key. See [RFC 5208](https://www.rfc-editor.org/rfc/rfc5208.txt) for PKCS#8 encryption and [RFC 1421](https://www.rfc-editor.org/rfc/rfc1421.txt) for
646
+ * PKCS#1 and SEC1 encryption.
647
+ * @since v11.6.0
648
+ */
649
+ export(options: KeyExportOptions<"pem">): string | Buffer;
650
+ export(options?: KeyExportOptions<"der">): Buffer;
651
+ export(options?: JwkKeyExportOptions): JsonWebKey;
652
+ /**
653
+ * Returns `true` or `false` depending on whether the keys have exactly the same
654
+ * type, value, and parameters. This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack).
655
+ * @since v17.7.0, v16.15.0
656
+ * @param otherKeyObject A `KeyObject` with which to compare `keyObject`.
657
+ */
658
+ equals(otherKeyObject: KeyObject): boolean;
659
+ /**
660
+ * For secret keys, this property represents the size of the key in bytes. This
661
+ * property is `undefined` for asymmetric keys.
662
+ * @since v11.6.0
663
+ */
664
+ symmetricKeySize?: number | undefined;
665
+ /**
666
+ * Depending on the type of this `KeyObject`, this property is either`'secret'` for secret (symmetric) keys, `'public'` for public (asymmetric) keys
667
+ * or `'private'` for private (asymmetric) keys.
668
+ * @since v11.6.0
669
+ */
670
+ type: KeyObjectType;
671
+ }
672
+ type CipherCCMTypes = "aes-128-ccm" | "aes-192-ccm" | "aes-256-ccm";
673
+ type CipherGCMTypes = "aes-128-gcm" | "aes-192-gcm" | "aes-256-gcm";
674
+ type CipherOCBTypes = "aes-128-ocb" | "aes-192-ocb" | "aes-256-ocb";
675
+ type CipherChaCha20Poly1305Types = "chacha20-poly1305";
676
+ type BinaryLike = string | NodeJS.ArrayBufferView;
677
+ type CipherKey = BinaryLike | KeyObject;
678
+ interface CipherCCMOptions extends stream.TransformOptions {
679
+ authTagLength: number;
680
+ }
681
+ interface CipherGCMOptions extends stream.TransformOptions {
682
+ authTagLength?: number | undefined;
683
+ }
684
+ interface CipherOCBOptions extends stream.TransformOptions {
685
+ authTagLength: number;
686
+ }
687
+ interface CipherChaCha20Poly1305Options extends stream.TransformOptions {
688
+ /** @default 16 */
689
+ authTagLength?: number | undefined;
690
+ }
691
+ /**
692
+ * Creates and returns a `Cipher` object that uses the given `algorithm` and `password`.
693
+ *
694
+ * The `options` argument controls stream behavior and is optional except when a
695
+ * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
696
+ * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication
697
+ * tag that will be returned by `getAuthTag()` and defaults to 16 bytes.
698
+ * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
699
+ *
700
+ * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
701
+ * recent OpenSSL releases, `openssl list -cipher-algorithms` will
702
+ * display the available cipher algorithms.
703
+ *
704
+ * The `password` is used to derive the cipher key and initialization vector (IV).
705
+ * The value must be either a `'latin1'` encoded string, a `Buffer`, a`TypedArray`, or a `DataView`.
706
+ *
707
+ * **This function is semantically insecure for all**
708
+ * **supported ciphers and fatally flawed for ciphers in counter mode (such as CTR,**
709
+ * **GCM, or CCM).**
710
+ *
711
+ * The implementation of `crypto.createCipher()` derives keys using the OpenSSL
712
+ * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) with the digest algorithm set to MD5, one
713
+ * iteration, and no salt. The lack of salt allows dictionary attacks as the same
714
+ * password always creates the same key. The low iteration count and
715
+ * non-cryptographically secure hash algorithm allow passwords to be tested very
716
+ * rapidly.
717
+ *
718
+ * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) it is recommended that
719
+ * developers derive a key and IV on
720
+ * their own using {@link scrypt} and to use {@link createCipheriv} to create the `Cipher` object. Users should not use ciphers with counter mode
721
+ * (e.g. CTR, GCM, or CCM) in `crypto.createCipher()`. A warning is emitted when
722
+ * they are used in order to avoid the risk of IV reuse that causes
723
+ * vulnerabilities. For the case when IV is reused in GCM, see [Nonce-Disrespecting Adversaries](https://github.com/nonce-disrespect/nonce-disrespect) for details.
724
+ * @since v0.1.94
725
+ * @deprecated Since v10.0.0 - Use {@link createCipheriv} instead.
726
+ * @param options `stream.transform` options
727
+ */
728
+ function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM;
729
+ /** @deprecated since v10.0.0 use `createCipheriv()` */
730
+ function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM;
731
+ /** @deprecated since v10.0.0 use `createCipheriv()` */
732
+ function createCipher(algorithm: CipherOCBTypes, password: BinaryLike, options: CipherOCBOptions): CipherOCB;
733
+ /** @deprecated since v10.0.0 use `createCipheriv()` */
734
+ function createCipher(
735
+ algorithm: CipherChaCha20Poly1305Types,
736
+ password: BinaryLike,
737
+ options?: CipherChaCha20Poly1305Options,
738
+ ): CipherChaCha20Poly1305;
739
+ /** @deprecated since v10.0.0 use `createCipheriv()` */
740
+ function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher;
741
+ /**
742
+ * Creates and returns a `Cipher` object, with the given `algorithm`, `key` and
743
+ * initialization vector (`iv`).
744
+ *
745
+ * The `options` argument controls stream behavior and is optional except when a
746
+ * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
747
+ * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication
748
+ * tag that will be returned by `getAuthTag()` and defaults to 16 bytes.
749
+ * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
750
+ *
751
+ * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
752
+ * recent OpenSSL releases, `openssl list -cipher-algorithms` will
753
+ * display the available cipher algorithms.
754
+ *
755
+ * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded
756
+ * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
757
+ * a `KeyObject` of type `secret`. If the cipher does not need
758
+ * an initialization vector, `iv` may be `null`.
759
+ *
760
+ * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`.
761
+ *
762
+ * Initialization vectors should be unpredictable and unique; ideally, they will be
763
+ * cryptographically random. They do not have to be secret: IVs are typically just
764
+ * added to ciphertext messages unencrypted. It may sound contradictory that
765
+ * something has to be unpredictable and unique, but does not have to be secret;
766
+ * remember that an attacker must not be able to predict ahead of time what a
767
+ * given IV will be.
768
+ * @since v0.1.94
769
+ * @param options `stream.transform` options
770
+ */
771
+ function createCipheriv(
772
+ algorithm: CipherCCMTypes,
773
+ key: CipherKey,
774
+ iv: BinaryLike,
775
+ options: CipherCCMOptions,
776
+ ): CipherCCM;
777
+ function createCipheriv(
778
+ algorithm: CipherOCBTypes,
779
+ key: CipherKey,
780
+ iv: BinaryLike,
781
+ options: CipherOCBOptions,
782
+ ): CipherOCB;
783
+ function createCipheriv(
784
+ algorithm: CipherGCMTypes,
785
+ key: CipherKey,
786
+ iv: BinaryLike,
787
+ options?: CipherGCMOptions,
788
+ ): CipherGCM;
789
+ function createCipheriv(
790
+ algorithm: CipherChaCha20Poly1305Types,
791
+ key: CipherKey,
792
+ iv: BinaryLike,
793
+ options?: CipherChaCha20Poly1305Options,
794
+ ): CipherChaCha20Poly1305;
795
+ function createCipheriv(
796
+ algorithm: string,
797
+ key: CipherKey,
798
+ iv: BinaryLike | null,
799
+ options?: stream.TransformOptions,
800
+ ): Cipher;
801
+ /**
802
+ * Instances of the `Cipher` class are used to encrypt data. The class can be
803
+ * used in one of two ways:
804
+ *
805
+ * * As a `stream` that is both readable and writable, where plain unencrypted
806
+ * data is written to produce encrypted data on the readable side, or
807
+ * * Using the `cipher.update()` and `cipher.final()` methods to produce
808
+ * the encrypted data.
809
+ *
810
+ * The {@link createCipher} or {@link createCipheriv} methods are
811
+ * used to create `Cipher` instances. `Cipher` objects are not to be created
812
+ * directly using the `new` keyword.
813
+ *
814
+ * Example: Using `Cipher` objects as streams:
815
+ *
816
+ * ```js
817
+ * const {
818
+ * scrypt,
819
+ * randomFill,
820
+ * createCipheriv,
821
+ * } = await import('node:crypto');
822
+ *
823
+ * const algorithm = 'aes-192-cbc';
824
+ * const password = 'Password used to generate key';
825
+ *
826
+ * // First, we'll generate the key. The key length is dependent on the algorithm.
827
+ * // In this case for aes192, it is 24 bytes (192 bits).
828
+ * scrypt(password, 'salt', 24, (err, key) => {
829
+ * if (err) throw err;
830
+ * // Then, we'll generate a random initialization vector
831
+ * randomFill(new Uint8Array(16), (err, iv) => {
832
+ * if (err) throw err;
833
+ *
834
+ * // Once we have the key and iv, we can create and use the cipher...
835
+ * const cipher = createCipheriv(algorithm, key, iv);
836
+ *
837
+ * let encrypted = '';
838
+ * cipher.setEncoding('hex');
839
+ *
840
+ * cipher.on('data', (chunk) => encrypted += chunk);
841
+ * cipher.on('end', () => console.log(encrypted));
842
+ *
843
+ * cipher.write('some clear text data');
844
+ * cipher.end();
845
+ * });
846
+ * });
847
+ * ```
848
+ *
849
+ * Example: Using `Cipher` and piped streams:
850
+ *
851
+ * ```js
852
+ * import {
853
+ * createReadStream,
854
+ * createWriteStream,
855
+ * } from 'node:fs';
856
+ *
857
+ * import {
858
+ * pipeline,
859
+ * } from 'node:stream';
860
+ *
861
+ * const {
862
+ * scrypt,
863
+ * randomFill,
864
+ * createCipheriv,
865
+ * } = await import('node:crypto');
866
+ *
867
+ * const algorithm = 'aes-192-cbc';
868
+ * const password = 'Password used to generate key';
869
+ *
870
+ * // First, we'll generate the key. The key length is dependent on the algorithm.
871
+ * // In this case for aes192, it is 24 bytes (192 bits).
872
+ * scrypt(password, 'salt', 24, (err, key) => {
873
+ * if (err) throw err;
874
+ * // Then, we'll generate a random initialization vector
875
+ * randomFill(new Uint8Array(16), (err, iv) => {
876
+ * if (err) throw err;
877
+ *
878
+ * const cipher = createCipheriv(algorithm, key, iv);
879
+ *
880
+ * const input = createReadStream('test.js');
881
+ * const output = createWriteStream('test.enc');
882
+ *
883
+ * pipeline(input, cipher, output, (err) => {
884
+ * if (err) throw err;
885
+ * });
886
+ * });
887
+ * });
888
+ * ```
889
+ *
890
+ * Example: Using the `cipher.update()` and `cipher.final()` methods:
891
+ *
892
+ * ```js
893
+ * const {
894
+ * scrypt,
895
+ * randomFill,
896
+ * createCipheriv,
897
+ * } = await import('node:crypto');
898
+ *
899
+ * const algorithm = 'aes-192-cbc';
900
+ * const password = 'Password used to generate key';
901
+ *
902
+ * // First, we'll generate the key. The key length is dependent on the algorithm.
903
+ * // In this case for aes192, it is 24 bytes (192 bits).
904
+ * scrypt(password, 'salt', 24, (err, key) => {
905
+ * if (err) throw err;
906
+ * // Then, we'll generate a random initialization vector
907
+ * randomFill(new Uint8Array(16), (err, iv) => {
908
+ * if (err) throw err;
909
+ *
910
+ * const cipher = createCipheriv(algorithm, key, iv);
911
+ *
912
+ * let encrypted = cipher.update('some clear text data', 'utf8', 'hex');
913
+ * encrypted += cipher.final('hex');
914
+ * console.log(encrypted);
915
+ * });
916
+ * });
917
+ * ```
918
+ * @since v0.1.94
919
+ */
920
+ class Cipher extends stream.Transform {
921
+ private constructor();
922
+ /**
923
+ * Updates the cipher with `data`. If the `inputEncoding` argument is given,
924
+ * the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`, `TypedArray`, or `DataView`. If `data` is a `Buffer`,
925
+ * `TypedArray`, or `DataView`, then `inputEncoding` is ignored.
926
+ *
927
+ * The `outputEncoding` specifies the output format of the enciphered
928
+ * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned.
929
+ *
930
+ * The `cipher.update()` method can be called multiple times with new data until `cipher.final()` is called. Calling `cipher.update()` after `cipher.final()` will result in an error being
931
+ * thrown.
932
+ * @since v0.1.94
933
+ * @param inputEncoding The `encoding` of the data.
934
+ * @param outputEncoding The `encoding` of the return value.
935
+ */
936
+ update(data: BinaryLike): Buffer;
937
+ update(data: string, inputEncoding: Encoding): Buffer;
938
+ update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string;
939
+ update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string;
940
+ /**
941
+ * Once the `cipher.final()` method has been called, the `Cipher` object can no
942
+ * longer be used to encrypt data. Attempts to call `cipher.final()` more than
943
+ * once will result in an error being thrown.
944
+ * @since v0.1.94
945
+ * @param outputEncoding The `encoding` of the return value.
946
+ * @return Any remaining enciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned.
947
+ */
948
+ final(): Buffer;
949
+ final(outputEncoding: BufferEncoding): string;
950
+ /**
951
+ * When using block encryption algorithms, the `Cipher` class will automatically
952
+ * add padding to the input data to the appropriate block size. To disable the
953
+ * default padding call `cipher.setAutoPadding(false)`.
954
+ *
955
+ * When `autoPadding` is `false`, the length of the entire input data must be a
956
+ * multiple of the cipher's block size or `cipher.final()` will throw an error.
957
+ * Disabling automatic padding is useful for non-standard padding, for instance
958
+ * using `0x0` instead of PKCS padding.
959
+ *
960
+ * The `cipher.setAutoPadding()` method must be called before `cipher.final()`.
961
+ * @since v0.7.1
962
+ * @param [autoPadding=true]
963
+ * @return for method chaining.
964
+ */
965
+ setAutoPadding(autoPadding?: boolean): this;
966
+ }
967
+ interface CipherCCM extends Cipher {
968
+ setAAD(
969
+ buffer: NodeJS.ArrayBufferView,
970
+ options: {
971
+ plaintextLength: number;
972
+ },
973
+ ): this;
974
+ getAuthTag(): Buffer;
975
+ }
976
+ interface CipherGCM extends Cipher {
977
+ setAAD(
978
+ buffer: NodeJS.ArrayBufferView,
979
+ options?: {
980
+ plaintextLength: number;
981
+ },
982
+ ): this;
983
+ getAuthTag(): Buffer;
984
+ }
985
+ interface CipherOCB extends Cipher {
986
+ setAAD(
987
+ buffer: NodeJS.ArrayBufferView,
988
+ options?: {
989
+ plaintextLength: number;
990
+ },
991
+ ): this;
992
+ getAuthTag(): Buffer;
993
+ }
994
+ interface CipherChaCha20Poly1305 extends Cipher {
995
+ setAAD(
996
+ buffer: NodeJS.ArrayBufferView,
997
+ options: {
998
+ plaintextLength: number;
999
+ },
1000
+ ): this;
1001
+ getAuthTag(): Buffer;
1002
+ }
1003
+ /**
1004
+ * Creates and returns a `Decipher` object that uses the given `algorithm` and `password` (key).
1005
+ *
1006
+ * The `options` argument controls stream behavior and is optional except when a
1007
+ * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the
1008
+ * authentication tag in bytes, see `CCM mode`.
1009
+ * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
1010
+ *
1011
+ * **This function is semantically insecure for all**
1012
+ * **supported ciphers and fatally flawed for ciphers in counter mode (such as CTR,**
1013
+ * **GCM, or CCM).**
1014
+ *
1015
+ * The implementation of `crypto.createDecipher()` derives keys using the OpenSSL
1016
+ * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) with the digest algorithm set to MD5, one
1017
+ * iteration, and no salt. The lack of salt allows dictionary attacks as the same
1018
+ * password always creates the same key. The low iteration count and
1019
+ * non-cryptographically secure hash algorithm allow passwords to be tested very
1020
+ * rapidly.
1021
+ *
1022
+ * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) it is recommended that
1023
+ * developers derive a key and IV on
1024
+ * their own using {@link scrypt} and to use {@link createDecipheriv} to create the `Decipher` object.
1025
+ * @since v0.1.94
1026
+ * @deprecated Since v10.0.0 - Use {@link createDecipheriv} instead.
1027
+ * @param options `stream.transform` options
1028
+ */
1029
+ function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
1030
+ /** @deprecated since v10.0.0 use `createDecipheriv()` */
1031
+ function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
1032
+ /** @deprecated since v10.0.0 use `createDecipheriv()` */
1033
+ function createDecipher(algorithm: CipherOCBTypes, password: BinaryLike, options: CipherOCBOptions): DecipherOCB;
1034
+ /** @deprecated since v10.0.0 use `createDecipheriv()` */
1035
+ function createDecipher(
1036
+ algorithm: CipherChaCha20Poly1305Types,
1037
+ password: BinaryLike,
1038
+ options?: CipherChaCha20Poly1305Options,
1039
+ ): DecipherChaCha20Poly1305;
1040
+ /** @deprecated since v10.0.0 use `createDecipheriv()` */
1041
+ function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher;
1042
+ /**
1043
+ * Creates and returns a `Decipher` object that uses the given `algorithm`, `key` and initialization vector (`iv`).
1044
+ *
1045
+ * The `options` argument controls stream behavior and is optional except when a
1046
+ * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the
1047
+ * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength` option is not required but can be used to restrict accepted authentication tags
1048
+ * to those with the specified length.
1049
+ * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
1050
+ *
1051
+ * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
1052
+ * recent OpenSSL releases, `openssl list -cipher-algorithms` will
1053
+ * display the available cipher algorithms.
1054
+ *
1055
+ * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded
1056
+ * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
1057
+ * a `KeyObject` of type `secret`. If the cipher does not need
1058
+ * an initialization vector, `iv` may be `null`.
1059
+ *
1060
+ * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`.
1061
+ *
1062
+ * Initialization vectors should be unpredictable and unique; ideally, they will be
1063
+ * cryptographically random. They do not have to be secret: IVs are typically just
1064
+ * added to ciphertext messages unencrypted. It may sound contradictory that
1065
+ * something has to be unpredictable and unique, but does not have to be secret;
1066
+ * remember that an attacker must not be able to predict ahead of time what a given
1067
+ * IV will be.
1068
+ * @since v0.1.94
1069
+ * @param options `stream.transform` options
1070
+ */
1071
+ function createDecipheriv(
1072
+ algorithm: CipherCCMTypes,
1073
+ key: CipherKey,
1074
+ iv: BinaryLike,
1075
+ options: CipherCCMOptions,
1076
+ ): DecipherCCM;
1077
+ function createDecipheriv(
1078
+ algorithm: CipherOCBTypes,
1079
+ key: CipherKey,
1080
+ iv: BinaryLike,
1081
+ options: CipherOCBOptions,
1082
+ ): DecipherOCB;
1083
+ function createDecipheriv(
1084
+ algorithm: CipherGCMTypes,
1085
+ key: CipherKey,
1086
+ iv: BinaryLike,
1087
+ options?: CipherGCMOptions,
1088
+ ): DecipherGCM;
1089
+ function createDecipheriv(
1090
+ algorithm: CipherChaCha20Poly1305Types,
1091
+ key: CipherKey,
1092
+ iv: BinaryLike,
1093
+ options?: CipherChaCha20Poly1305Options,
1094
+ ): DecipherChaCha20Poly1305;
1095
+ function createDecipheriv(
1096
+ algorithm: string,
1097
+ key: CipherKey,
1098
+ iv: BinaryLike | null,
1099
+ options?: stream.TransformOptions,
1100
+ ): Decipher;
1101
+ /**
1102
+ * Instances of the `Decipher` class are used to decrypt data. The class can be
1103
+ * used in one of two ways:
1104
+ *
1105
+ * * As a `stream` that is both readable and writable, where plain encrypted
1106
+ * data is written to produce unencrypted data on the readable side, or
1107
+ * * Using the `decipher.update()` and `decipher.final()` methods to
1108
+ * produce the unencrypted data.
1109
+ *
1110
+ * The {@link createDecipher} or {@link createDecipheriv} methods are
1111
+ * used to create `Decipher` instances. `Decipher` objects are not to be created
1112
+ * directly using the `new` keyword.
1113
+ *
1114
+ * Example: Using `Decipher` objects as streams:
1115
+ *
1116
+ * ```js
1117
+ * import { Buffer } from 'node:buffer';
1118
+ * const {
1119
+ * scryptSync,
1120
+ * createDecipheriv,
1121
+ * } = await import('node:crypto');
1122
+ *
1123
+ * const algorithm = 'aes-192-cbc';
1124
+ * const password = 'Password used to generate key';
1125
+ * // Key length is dependent on the algorithm. In this case for aes192, it is
1126
+ * // 24 bytes (192 bits).
1127
+ * // Use the async `crypto.scrypt()` instead.
1128
+ * const key = scryptSync(password, 'salt', 24);
1129
+ * // The IV is usually passed along with the ciphertext.
1130
+ * const iv = Buffer.alloc(16, 0); // Initialization vector.
1131
+ *
1132
+ * const decipher = createDecipheriv(algorithm, key, iv);
1133
+ *
1134
+ * let decrypted = '';
1135
+ * decipher.on('readable', () => {
1136
+ * let chunk;
1137
+ * while (null !== (chunk = decipher.read())) {
1138
+ * decrypted += chunk.toString('utf8');
1139
+ * }
1140
+ * });
1141
+ * decipher.on('end', () => {
1142
+ * console.log(decrypted);
1143
+ * // Prints: some clear text data
1144
+ * });
1145
+ *
1146
+ * // Encrypted with same algorithm, key and iv.
1147
+ * const encrypted =
1148
+ * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa';
1149
+ * decipher.write(encrypted, 'hex');
1150
+ * decipher.end();
1151
+ * ```
1152
+ *
1153
+ * Example: Using `Decipher` and piped streams:
1154
+ *
1155
+ * ```js
1156
+ * import {
1157
+ * createReadStream,
1158
+ * createWriteStream,
1159
+ * } from 'node:fs';
1160
+ * import { Buffer } from 'node:buffer';
1161
+ * const {
1162
+ * scryptSync,
1163
+ * createDecipheriv,
1164
+ * } = await import('node:crypto');
1165
+ *
1166
+ * const algorithm = 'aes-192-cbc';
1167
+ * const password = 'Password used to generate key';
1168
+ * // Use the async `crypto.scrypt()` instead.
1169
+ * const key = scryptSync(password, 'salt', 24);
1170
+ * // The IV is usually passed along with the ciphertext.
1171
+ * const iv = Buffer.alloc(16, 0); // Initialization vector.
1172
+ *
1173
+ * const decipher = createDecipheriv(algorithm, key, iv);
1174
+ *
1175
+ * const input = createReadStream('test.enc');
1176
+ * const output = createWriteStream('test.js');
1177
+ *
1178
+ * input.pipe(decipher).pipe(output);
1179
+ * ```
1180
+ *
1181
+ * Example: Using the `decipher.update()` and `decipher.final()` methods:
1182
+ *
1183
+ * ```js
1184
+ * import { Buffer } from 'node:buffer';
1185
+ * const {
1186
+ * scryptSync,
1187
+ * createDecipheriv,
1188
+ * } = await import('node:crypto');
1189
+ *
1190
+ * const algorithm = 'aes-192-cbc';
1191
+ * const password = 'Password used to generate key';
1192
+ * // Use the async `crypto.scrypt()` instead.
1193
+ * const key = scryptSync(password, 'salt', 24);
1194
+ * // The IV is usually passed along with the ciphertext.
1195
+ * const iv = Buffer.alloc(16, 0); // Initialization vector.
1196
+ *
1197
+ * const decipher = createDecipheriv(algorithm, key, iv);
1198
+ *
1199
+ * // Encrypted using same algorithm, key and iv.
1200
+ * const encrypted =
1201
+ * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa';
1202
+ * let decrypted = decipher.update(encrypted, 'hex', 'utf8');
1203
+ * decrypted += decipher.final('utf8');
1204
+ * console.log(decrypted);
1205
+ * // Prints: some clear text data
1206
+ * ```
1207
+ * @since v0.1.94
1208
+ */
1209
+ class Decipher extends stream.Transform {
1210
+ private constructor();
1211
+ /**
1212
+ * Updates the decipher with `data`. If the `inputEncoding` argument is given,
1213
+ * the `data` argument is a string using the specified encoding. If the `inputEncoding` argument is not given, `data` must be a `Buffer`. If `data` is a `Buffer` then `inputEncoding` is
1214
+ * ignored.
1215
+ *
1216
+ * The `outputEncoding` specifies the output format of the enciphered
1217
+ * data. If the `outputEncoding` is specified, a string using the specified encoding is returned. If no `outputEncoding` is provided, a `Buffer` is returned.
1218
+ *
1219
+ * The `decipher.update()` method can be called multiple times with new data until `decipher.final()` is called. Calling `decipher.update()` after `decipher.final()` will result in an error
1220
+ * being thrown.
1221
+ * @since v0.1.94
1222
+ * @param inputEncoding The `encoding` of the `data` string.
1223
+ * @param outputEncoding The `encoding` of the return value.
1224
+ */
1225
+ update(data: NodeJS.ArrayBufferView): Buffer;
1226
+ update(data: string, inputEncoding: Encoding): Buffer;
1227
+ update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string;
1228
+ update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string;
1229
+ /**
1230
+ * Once the `decipher.final()` method has been called, the `Decipher` object can
1231
+ * no longer be used to decrypt data. Attempts to call `decipher.final()` more
1232
+ * than once will result in an error being thrown.
1233
+ * @since v0.1.94
1234
+ * @param outputEncoding The `encoding` of the return value.
1235
+ * @return Any remaining deciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned.
1236
+ */
1237
+ final(): Buffer;
1238
+ final(outputEncoding: BufferEncoding): string;
1239
+ /**
1240
+ * When data has been encrypted without standard block padding, calling `decipher.setAutoPadding(false)` will disable automatic padding to prevent `decipher.final()` from checking for and
1241
+ * removing padding.
1242
+ *
1243
+ * Turning auto padding off will only work if the input data's length is a
1244
+ * multiple of the ciphers block size.
1245
+ *
1246
+ * The `decipher.setAutoPadding()` method must be called before `decipher.final()`.
1247
+ * @since v0.7.1
1248
+ * @param [autoPadding=true]
1249
+ * @return for method chaining.
1250
+ */
1251
+ setAutoPadding(auto_padding?: boolean): this;
1252
+ }
1253
+ interface DecipherCCM extends Decipher {
1254
+ setAuthTag(buffer: NodeJS.ArrayBufferView): this;
1255
+ setAAD(
1256
+ buffer: NodeJS.ArrayBufferView,
1257
+ options: {
1258
+ plaintextLength: number;
1259
+ },
1260
+ ): this;
1261
+ }
1262
+ interface DecipherGCM extends Decipher {
1263
+ setAuthTag(buffer: NodeJS.ArrayBufferView): this;
1264
+ setAAD(
1265
+ buffer: NodeJS.ArrayBufferView,
1266
+ options?: {
1267
+ plaintextLength: number;
1268
+ },
1269
+ ): this;
1270
+ }
1271
+ interface DecipherOCB extends Decipher {
1272
+ setAuthTag(buffer: NodeJS.ArrayBufferView): this;
1273
+ setAAD(
1274
+ buffer: NodeJS.ArrayBufferView,
1275
+ options?: {
1276
+ plaintextLength: number;
1277
+ },
1278
+ ): this;
1279
+ }
1280
+ interface DecipherChaCha20Poly1305 extends Decipher {
1281
+ setAuthTag(buffer: NodeJS.ArrayBufferView): this;
1282
+ setAAD(
1283
+ buffer: NodeJS.ArrayBufferView,
1284
+ options: {
1285
+ plaintextLength: number;
1286
+ },
1287
+ ): this;
1288
+ }
1289
+ interface PrivateKeyInput {
1290
+ key: string | Buffer;
1291
+ format?: KeyFormat | undefined;
1292
+ type?: "pkcs1" | "pkcs8" | "sec1" | undefined;
1293
+ passphrase?: string | Buffer | undefined;
1294
+ encoding?: string | undefined;
1295
+ }
1296
+ interface PublicKeyInput {
1297
+ key: string | Buffer;
1298
+ format?: KeyFormat | undefined;
1299
+ type?: "pkcs1" | "spki" | undefined;
1300
+ encoding?: string | undefined;
1301
+ }
1302
+ /**
1303
+ * Asynchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`.
1304
+ *
1305
+ * ```js
1306
+ * const {
1307
+ * generateKey,
1308
+ * } = await import('node:crypto');
1309
+ *
1310
+ * generateKey('hmac', { length: 512 }, (err, key) => {
1311
+ * if (err) throw err;
1312
+ * console.log(key.export().toString('hex')); // 46e..........620
1313
+ * });
1314
+ * ```
1315
+ *
1316
+ * The size of a generated HMAC key should not exceed the block size of the
1317
+ * underlying hash function. See {@link createHmac} for more information.
1318
+ * @since v15.0.0
1319
+ * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`.
1320
+ */
1321
+ function generateKey(
1322
+ type: "hmac" | "aes",
1323
+ options: {
1324
+ length: number;
1325
+ },
1326
+ callback: (err: Error | null, key: KeyObject) => void,
1327
+ ): void;
1328
+ /**
1329
+ * Synchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`.
1330
+ *
1331
+ * ```js
1332
+ * const {
1333
+ * generateKeySync,
1334
+ * } = await import('node:crypto');
1335
+ *
1336
+ * const key = generateKeySync('hmac', { length: 512 });
1337
+ * console.log(key.export().toString('hex')); // e89..........41e
1338
+ * ```
1339
+ *
1340
+ * The size of a generated HMAC key should not exceed the block size of the
1341
+ * underlying hash function. See {@link createHmac} for more information.
1342
+ * @since v15.0.0
1343
+ * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`.
1344
+ */
1345
+ function generateKeySync(
1346
+ type: "hmac" | "aes",
1347
+ options: {
1348
+ length: number;
1349
+ },
1350
+ ): KeyObject;
1351
+ interface JsonWebKeyInput {
1352
+ key: JsonWebKey;
1353
+ format: "jwk";
1354
+ }
1355
+ /**
1356
+ * Creates and returns a new key object containing a private key. If `key` is a
1357
+ * string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key` must be an object with the properties described above.
1358
+ *
1359
+ * If the private key is encrypted, a `passphrase` must be specified. The length
1360
+ * of the passphrase is limited to 1024 bytes.
1361
+ * @since v11.6.0
1362
+ */
1363
+ function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject;
1364
+ /**
1365
+ * Creates and returns a new key object containing a public key. If `key` is a
1366
+ * string or `Buffer`, `format` is assumed to be `'pem'`; if `key` is a `KeyObject` with type `'private'`, the public key is derived from the given private key;
1367
+ * otherwise, `key` must be an object with the properties described above.
1368
+ *
1369
+ * If the format is `'pem'`, the `'key'` may also be an X.509 certificate.
1370
+ *
1371
+ * Because public keys can be derived from private keys, a private key may be
1372
+ * passed instead of a public key. In that case, this function behaves as if {@link createPrivateKey} had been called, except that the type of the
1373
+ * returned `KeyObject` will be `'public'` and that the private key cannot be
1374
+ * extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type `'private'` is given, a new `KeyObject` with type `'public'` will be returned
1375
+ * and it will be impossible to extract the private key from the returned object.
1376
+ * @since v11.6.0
1377
+ */
1378
+ function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject | JsonWebKeyInput): KeyObject;
1379
+ /**
1380
+ * Creates and returns a new key object containing a secret key for symmetric
1381
+ * encryption or `Hmac`.
1382
+ * @since v11.6.0
1383
+ * @param encoding The string encoding when `key` is a string.
1384
+ */
1385
+ function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject;
1386
+ function createSecretKey(key: string, encoding: BufferEncoding): KeyObject;
1387
+ /**
1388
+ * Creates and returns a `Sign` object that uses the given `algorithm`. Use {@link getHashes} to obtain the names of the available digest algorithms.
1389
+ * Optional `options` argument controls the `stream.Writable` behavior.
1390
+ *
1391
+ * In some cases, a `Sign` instance can be created using the name of a signature
1392
+ * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
1393
+ * the corresponding digest algorithm. This does not work for all signature
1394
+ * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest
1395
+ * algorithm names.
1396
+ * @since v0.1.92
1397
+ * @param options `stream.Writable` options
1398
+ */
1399
+ function createSign(algorithm: string, options?: stream.WritableOptions): Sign;
1400
+ type DSAEncoding = "der" | "ieee-p1363";
1401
+ interface SigningOptions {
1402
+ /**
1403
+ * @see crypto.constants.RSA_PKCS1_PADDING
1404
+ */
1405
+ padding?: number | undefined;
1406
+ saltLength?: number | undefined;
1407
+ dsaEncoding?: DSAEncoding | undefined;
1408
+ }
1409
+ interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {}
1410
+ interface SignKeyObjectInput extends SigningOptions {
1411
+ key: KeyObject;
1412
+ }
1413
+ interface SignJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
1414
+ interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {}
1415
+ interface VerifyKeyObjectInput extends SigningOptions {
1416
+ key: KeyObject;
1417
+ }
1418
+ interface VerifyJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
1419
+ type KeyLike = string | Buffer | KeyObject;
1420
+ /**
1421
+ * The `Sign` class is a utility for generating signatures. It can be used in one
1422
+ * of two ways:
1423
+ *
1424
+ * * As a writable `stream`, where data to be signed is written and the `sign.sign()` method is used to generate and return the signature, or
1425
+ * * Using the `sign.update()` and `sign.sign()` methods to produce the
1426
+ * signature.
1427
+ *
1428
+ * The {@link createSign} method is used to create `Sign` instances. The
1429
+ * argument is the string name of the hash function to use. `Sign` objects are not
1430
+ * to be created directly using the `new` keyword.
1431
+ *
1432
+ * Example: Using `Sign` and `Verify` objects as streams:
1433
+ *
1434
+ * ```js
1435
+ * const {
1436
+ * generateKeyPairSync,
1437
+ * createSign,
1438
+ * createVerify,
1439
+ * } = await import('node:crypto');
1440
+ *
1441
+ * const { privateKey, publicKey } = generateKeyPairSync('ec', {
1442
+ * namedCurve: 'sect239k1',
1443
+ * });
1444
+ *
1445
+ * const sign = createSign('SHA256');
1446
+ * sign.write('some data to sign');
1447
+ * sign.end();
1448
+ * const signature = sign.sign(privateKey, 'hex');
1449
+ *
1450
+ * const verify = createVerify('SHA256');
1451
+ * verify.write('some data to sign');
1452
+ * verify.end();
1453
+ * console.log(verify.verify(publicKey, signature, 'hex'));
1454
+ * // Prints: true
1455
+ * ```
1456
+ *
1457
+ * Example: Using the `sign.update()` and `verify.update()` methods:
1458
+ *
1459
+ * ```js
1460
+ * const {
1461
+ * generateKeyPairSync,
1462
+ * createSign,
1463
+ * createVerify,
1464
+ * } = await import('node:crypto');
1465
+ *
1466
+ * const { privateKey, publicKey } = generateKeyPairSync('rsa', {
1467
+ * modulusLength: 2048,
1468
+ * });
1469
+ *
1470
+ * const sign = createSign('SHA256');
1471
+ * sign.update('some data to sign');
1472
+ * sign.end();
1473
+ * const signature = sign.sign(privateKey);
1474
+ *
1475
+ * const verify = createVerify('SHA256');
1476
+ * verify.update('some data to sign');
1477
+ * verify.end();
1478
+ * console.log(verify.verify(publicKey, signature));
1479
+ * // Prints: true
1480
+ * ```
1481
+ * @since v0.1.92
1482
+ */
1483
+ class Sign extends stream.Writable {
1484
+ private constructor();
1485
+ /**
1486
+ * Updates the `Sign` content with the given `data`, the encoding of which
1487
+ * is given in `inputEncoding`.
1488
+ * If `encoding` is not provided, and the `data` is a string, an
1489
+ * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
1490
+ *
1491
+ * This can be called many times with new data as it is streamed.
1492
+ * @since v0.1.92
1493
+ * @param inputEncoding The `encoding` of the `data` string.
1494
+ */
1495
+ update(data: BinaryLike): this;
1496
+ update(data: string, inputEncoding: Encoding): this;
1497
+ /**
1498
+ * Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`.
1499
+ *
1500
+ * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
1501
+ * object, the following additional properties can be passed:
1502
+ *
1503
+ * If `outputEncoding` is provided a string is returned; otherwise a `Buffer` is returned.
1504
+ *
1505
+ * The `Sign` object can not be again used after `sign.sign()` method has been
1506
+ * called. Multiple calls to `sign.sign()` will result in an error being thrown.
1507
+ * @since v0.1.92
1508
+ */
1509
+ sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput): Buffer;
1510
+ sign(
1511
+ privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
1512
+ outputFormat: BinaryToTextEncoding,
1513
+ ): string;
1514
+ }
1515
+ /**
1516
+ * Creates and returns a `Verify` object that uses the given algorithm.
1517
+ * Use {@link getHashes} to obtain an array of names of the available
1518
+ * signing algorithms. Optional `options` argument controls the `stream.Writable` behavior.
1519
+ *
1520
+ * In some cases, a `Verify` instance can be created using the name of a signature
1521
+ * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
1522
+ * the corresponding digest algorithm. This does not work for all signature
1523
+ * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest
1524
+ * algorithm names.
1525
+ * @since v0.1.92
1526
+ * @param options `stream.Writable` options
1527
+ */
1528
+ function createVerify(algorithm: string, options?: stream.WritableOptions): Verify;
1529
+ /**
1530
+ * The `Verify` class is a utility for verifying signatures. It can be used in one
1531
+ * of two ways:
1532
+ *
1533
+ * * As a writable `stream` where written data is used to validate against the
1534
+ * supplied signature, or
1535
+ * * Using the `verify.update()` and `verify.verify()` methods to verify
1536
+ * the signature.
1537
+ *
1538
+ * The {@link createVerify} method is used to create `Verify` instances. `Verify` objects are not to be created directly using the `new` keyword.
1539
+ *
1540
+ * See `Sign` for examples.
1541
+ * @since v0.1.92
1542
+ */
1543
+ class Verify extends stream.Writable {
1544
+ private constructor();
1545
+ /**
1546
+ * Updates the `Verify` content with the given `data`, the encoding of which
1547
+ * is given in `inputEncoding`.
1548
+ * If `inputEncoding` is not provided, and the `data` is a string, an
1549
+ * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or `DataView`, then `inputEncoding` is ignored.
1550
+ *
1551
+ * This can be called many times with new data as it is streamed.
1552
+ * @since v0.1.92
1553
+ * @param inputEncoding The `encoding` of the `data` string.
1554
+ */
1555
+ update(data: BinaryLike): Verify;
1556
+ update(data: string, inputEncoding: Encoding): Verify;
1557
+ /**
1558
+ * Verifies the provided data using the given `object` and `signature`.
1559
+ *
1560
+ * If `object` is not a `KeyObject`, this function behaves as if `object` had been passed to {@link createPublicKey}. If it is an
1561
+ * object, the following additional properties can be passed:
1562
+ *
1563
+ * The `signature` argument is the previously calculated signature for the data, in
1564
+ * the `signatureEncoding`.
1565
+ * If a `signatureEncoding` is specified, the `signature` is expected to be a
1566
+ * string; otherwise `signature` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
1567
+ *
1568
+ * The `verify` object can not be used again after `verify.verify()` has been
1569
+ * called. Multiple calls to `verify.verify()` will result in an error being
1570
+ * thrown.
1571
+ *
1572
+ * Because public keys can be derived from private keys, a private key may
1573
+ * be passed instead of a public key.
1574
+ * @since v0.1.92
1575
+ */
1576
+ verify(
1577
+ object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
1578
+ signature: NodeJS.ArrayBufferView,
1579
+ ): boolean;
1580
+ verify(
1581
+ object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
1582
+ signature: string,
1583
+ signature_format?: BinaryToTextEncoding,
1584
+ ): boolean;
1585
+ }
1586
+ /**
1587
+ * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an
1588
+ * optional specific `generator`.
1589
+ *
1590
+ * The `generator` argument can be a number, string, or `Buffer`. If `generator` is not specified, the value `2` is used.
1591
+ *
1592
+ * If `primeEncoding` is specified, `prime` is expected to be a string; otherwise
1593
+ * a `Buffer`, `TypedArray`, or `DataView` is expected.
1594
+ *
1595
+ * If `generatorEncoding` is specified, `generator` is expected to be a string;
1596
+ * otherwise a number, `Buffer`, `TypedArray`, or `DataView` is expected.
1597
+ * @since v0.11.12
1598
+ * @param primeEncoding The `encoding` of the `prime` string.
1599
+ * @param [generator=2]
1600
+ * @param generatorEncoding The `encoding` of the `generator` string.
1601
+ */
1602
+ function createDiffieHellman(primeLength: number, generator?: number): DiffieHellman;
1603
+ function createDiffieHellman(
1604
+ prime: ArrayBuffer | NodeJS.ArrayBufferView,
1605
+ generator?: number | ArrayBuffer | NodeJS.ArrayBufferView,
1606
+ ): DiffieHellman;
1607
+ function createDiffieHellman(
1608
+ prime: ArrayBuffer | NodeJS.ArrayBufferView,
1609
+ generator: string,
1610
+ generatorEncoding: BinaryToTextEncoding,
1611
+ ): DiffieHellman;
1612
+ function createDiffieHellman(
1613
+ prime: string,
1614
+ primeEncoding: BinaryToTextEncoding,
1615
+ generator?: number | ArrayBuffer | NodeJS.ArrayBufferView,
1616
+ ): DiffieHellman;
1617
+ function createDiffieHellman(
1618
+ prime: string,
1619
+ primeEncoding: BinaryToTextEncoding,
1620
+ generator: string,
1621
+ generatorEncoding: BinaryToTextEncoding,
1622
+ ): DiffieHellman;
1623
+ /**
1624
+ * The `DiffieHellman` class is a utility for creating Diffie-Hellman key
1625
+ * exchanges.
1626
+ *
1627
+ * Instances of the `DiffieHellman` class can be created using the {@link createDiffieHellman} function.
1628
+ *
1629
+ * ```js
1630
+ * import assert from 'node:assert';
1631
+ *
1632
+ * const {
1633
+ * createDiffieHellman,
1634
+ * } = await import('node:crypto');
1635
+ *
1636
+ * // Generate Alice's keys...
1637
+ * const alice = createDiffieHellman(2048);
1638
+ * const aliceKey = alice.generateKeys();
1639
+ *
1640
+ * // Generate Bob's keys...
1641
+ * const bob = createDiffieHellman(alice.getPrime(), alice.getGenerator());
1642
+ * const bobKey = bob.generateKeys();
1643
+ *
1644
+ * // Exchange and generate the secret...
1645
+ * const aliceSecret = alice.computeSecret(bobKey);
1646
+ * const bobSecret = bob.computeSecret(aliceKey);
1647
+ *
1648
+ * // OK
1649
+ * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex'));
1650
+ * ```
1651
+ * @since v0.5.0
1652
+ */
1653
+ class DiffieHellman {
1654
+ private constructor();
1655
+ /**
1656
+ * Generates private and public Diffie-Hellman key values unless they have been
1657
+ * generated or computed already, and returns
1658
+ * the public key in the specified `encoding`. This key should be
1659
+ * transferred to the other party.
1660
+ * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
1661
+ *
1662
+ * This function is a thin wrapper around [`DH_generate_key()`](https://www.openssl.org/docs/man3.0/man3/DH_generate_key.html). In particular,
1663
+ * once a private key has been generated or set, calling this function only updates
1664
+ * the public key but does not generate a new private key.
1665
+ * @since v0.5.0
1666
+ * @param encoding The `encoding` of the return value.
1667
+ */
1668
+ generateKeys(): Buffer;
1669
+ generateKeys(encoding: BinaryToTextEncoding): string;
1670
+ /**
1671
+ * Computes the shared secret using `otherPublicKey` as the other
1672
+ * party's public key and returns the computed shared secret. The supplied
1673
+ * key is interpreted using the specified `inputEncoding`, and secret is
1674
+ * encoded using specified `outputEncoding`.
1675
+ * If the `inputEncoding` is not
1676
+ * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
1677
+ *
1678
+ * If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned.
1679
+ * @since v0.5.0
1680
+ * @param inputEncoding The `encoding` of an `otherPublicKey` string.
1681
+ * @param outputEncoding The `encoding` of the return value.
1682
+ */
1683
+ computeSecret(otherPublicKey: NodeJS.ArrayBufferView, inputEncoding?: null, outputEncoding?: null): Buffer;
1684
+ computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding?: null): Buffer;
1685
+ computeSecret(
1686
+ otherPublicKey: NodeJS.ArrayBufferView,
1687
+ inputEncoding: null,
1688
+ outputEncoding: BinaryToTextEncoding,
1689
+ ): string;
1690
+ computeSecret(
1691
+ otherPublicKey: string,
1692
+ inputEncoding: BinaryToTextEncoding,
1693
+ outputEncoding: BinaryToTextEncoding,
1694
+ ): string;
1695
+ /**
1696
+ * Returns the Diffie-Hellman prime in the specified `encoding`.
1697
+ * If `encoding` is provided a string is
1698
+ * returned; otherwise a `Buffer` is returned.
1699
+ * @since v0.5.0
1700
+ * @param encoding The `encoding` of the return value.
1701
+ */
1702
+ getPrime(): Buffer;
1703
+ getPrime(encoding: BinaryToTextEncoding): string;
1704
+ /**
1705
+ * Returns the Diffie-Hellman generator in the specified `encoding`.
1706
+ * If `encoding` is provided a string is
1707
+ * returned; otherwise a `Buffer` is returned.
1708
+ * @since v0.5.0
1709
+ * @param encoding The `encoding` of the return value.
1710
+ */
1711
+ getGenerator(): Buffer;
1712
+ getGenerator(encoding: BinaryToTextEncoding): string;
1713
+ /**
1714
+ * Returns the Diffie-Hellman public key in the specified `encoding`.
1715
+ * If `encoding` is provided a
1716
+ * string is returned; otherwise a `Buffer` is returned.
1717
+ * @since v0.5.0
1718
+ * @param encoding The `encoding` of the return value.
1719
+ */
1720
+ getPublicKey(): Buffer;
1721
+ getPublicKey(encoding: BinaryToTextEncoding): string;
1722
+ /**
1723
+ * Returns the Diffie-Hellman private key in the specified `encoding`.
1724
+ * If `encoding` is provided a
1725
+ * string is returned; otherwise a `Buffer` is returned.
1726
+ * @since v0.5.0
1727
+ * @param encoding The `encoding` of the return value.
1728
+ */
1729
+ getPrivateKey(): Buffer;
1730
+ getPrivateKey(encoding: BinaryToTextEncoding): string;
1731
+ /**
1732
+ * Sets the Diffie-Hellman public key. If the `encoding` argument is provided, `publicKey` is expected
1733
+ * to be a string. If no `encoding` is provided, `publicKey` is expected
1734
+ * to be a `Buffer`, `TypedArray`, or `DataView`.
1735
+ * @since v0.5.0
1736
+ * @param encoding The `encoding` of the `publicKey` string.
1737
+ */
1738
+ setPublicKey(publicKey: NodeJS.ArrayBufferView): void;
1739
+ setPublicKey(publicKey: string, encoding: BufferEncoding): void;
1740
+ /**
1741
+ * Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected
1742
+ * to be a string. If no `encoding` is provided, `privateKey` is expected
1743
+ * to be a `Buffer`, `TypedArray`, or `DataView`.
1744
+ *
1745
+ * This function does not automatically compute the associated public key. Either `diffieHellman.setPublicKey()` or `diffieHellman.generateKeys()` can be
1746
+ * used to manually provide the public key or to automatically derive it.
1747
+ * @since v0.5.0
1748
+ * @param encoding The `encoding` of the `privateKey` string.
1749
+ */
1750
+ setPrivateKey(privateKey: NodeJS.ArrayBufferView): void;
1751
+ setPrivateKey(privateKey: string, encoding: BufferEncoding): void;
1752
+ /**
1753
+ * A bit field containing any warnings and/or errors resulting from a check
1754
+ * performed during initialization of the `DiffieHellman` object.
1755
+ *
1756
+ * The following values are valid for this property (as defined in `node:constants` module):
1757
+ *
1758
+ * * `DH_CHECK_P_NOT_SAFE_PRIME`
1759
+ * * `DH_CHECK_P_NOT_PRIME`
1760
+ * * `DH_UNABLE_TO_CHECK_GENERATOR`
1761
+ * * `DH_NOT_SUITABLE_GENERATOR`
1762
+ * @since v0.11.12
1763
+ */
1764
+ verifyError: number;
1765
+ }
1766
+ /**
1767
+ * The `DiffieHellmanGroup` class takes a well-known modp group as its argument.
1768
+ * It works the same as `DiffieHellman`, except that it does not allow changing its keys after creation.
1769
+ * In other words, it does not implement `setPublicKey()` or `setPrivateKey()` methods.
1770
+ *
1771
+ * ```js
1772
+ * const { createDiffieHellmanGroup } = await import('node:crypto');
1773
+ * const dh = createDiffieHellmanGroup('modp1');
1774
+ * ```
1775
+ * The name (e.g. `'modp1'`) is taken from [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt) (modp1 and 2) and [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt):
1776
+ * ```bash
1777
+ * $ perl -ne 'print "$1\n" if /"(modp\d+)"/' src/node_crypto_groups.h
1778
+ * modp1 # 768 bits
1779
+ * modp2 # 1024 bits
1780
+ * modp5 # 1536 bits
1781
+ * modp14 # 2048 bits
1782
+ * modp15 # etc.
1783
+ * modp16
1784
+ * modp17
1785
+ * modp18
1786
+ * ```
1787
+ * @since v0.7.5
1788
+ */
1789
+ const DiffieHellmanGroup: DiffieHellmanGroupConstructor;
1790
+ interface DiffieHellmanGroupConstructor {
1791
+ new(name: string): DiffieHellmanGroup;
1792
+ (name: string): DiffieHellmanGroup;
1793
+ readonly prototype: DiffieHellmanGroup;
1794
+ }
1795
+ type DiffieHellmanGroup = Omit<DiffieHellman, "setPublicKey" | "setPrivateKey">;
1796
+ /**
1797
+ * Creates a predefined `DiffieHellmanGroup` key exchange object. The
1798
+ * supported groups are listed in the documentation for `DiffieHellmanGroup`.
1799
+ *
1800
+ * The returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing
1801
+ * the keys (with `diffieHellman.setPublicKey()`, for example). The
1802
+ * advantage of using this method is that the parties do not have to
1803
+ * generate nor exchange a group modulus beforehand, saving both processor
1804
+ * and communication time.
1805
+ *
1806
+ * Example (obtaining a shared secret):
1807
+ *
1808
+ * ```js
1809
+ * const {
1810
+ * getDiffieHellman,
1811
+ * } = await import('node:crypto');
1812
+ * const alice = getDiffieHellman('modp14');
1813
+ * const bob = getDiffieHellman('modp14');
1814
+ *
1815
+ * alice.generateKeys();
1816
+ * bob.generateKeys();
1817
+ *
1818
+ * const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex');
1819
+ * const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex');
1820
+ *
1821
+ * // aliceSecret and bobSecret should be the same
1822
+ * console.log(aliceSecret === bobSecret);
1823
+ * ```
1824
+ * @since v0.7.5
1825
+ */
1826
+ function getDiffieHellman(groupName: string): DiffieHellmanGroup;
1827
+ /**
1828
+ * An alias for {@link getDiffieHellman}
1829
+ * @since v0.9.3
1830
+ */
1831
+ function createDiffieHellmanGroup(name: string): DiffieHellmanGroup;
1832
+ /**
1833
+ * Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2)
1834
+ * implementation. A selected HMAC digest algorithm specified by `digest` is
1835
+ * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`.
1836
+ *
1837
+ * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an error occurs while deriving the key, `err` will be set;
1838
+ * otherwise `err` will be `null`. By default, the successfully generated `derivedKey` will be passed to the callback as a `Buffer`. An error will be
1839
+ * thrown if any of the input arguments specify invalid values or types.
1840
+ *
1841
+ * The `iterations` argument must be a number set as high as possible. The
1842
+ * higher the number of iterations, the more secure the derived key will be,
1843
+ * but will take a longer amount of time to complete.
1844
+ *
1845
+ * The `salt` should be as unique as possible. It is recommended that a salt is
1846
+ * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
1847
+ *
1848
+ * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
1849
+ *
1850
+ * ```js
1851
+ * const {
1852
+ * pbkdf2,
1853
+ * } = await import('node:crypto');
1854
+ *
1855
+ * pbkdf2('secret', 'salt', 100000, 64, 'sha512', (err, derivedKey) => {
1856
+ * if (err) throw err;
1857
+ * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae'
1858
+ * });
1859
+ * ```
1860
+ *
1861
+ * An array of supported digest functions can be retrieved using {@link getHashes}.
1862
+ *
1863
+ * This API uses libuv's threadpool, which can have surprising and
1864
+ * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
1865
+ * @since v0.5.5
1866
+ */
1867
+ function pbkdf2(
1868
+ password: BinaryLike,
1869
+ salt: BinaryLike,
1870
+ iterations: number,
1871
+ keylen: number,
1872
+ digest: string,
1873
+ callback: (err: Error | null, derivedKey: Buffer) => void,
1874
+ ): void;
1875
+ /**
1876
+ * Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2)
1877
+ * implementation. A selected HMAC digest algorithm specified by `digest` is
1878
+ * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`.
1879
+ *
1880
+ * If an error occurs an `Error` will be thrown, otherwise the derived key will be
1881
+ * returned as a `Buffer`.
1882
+ *
1883
+ * The `iterations` argument must be a number set as high as possible. The
1884
+ * higher the number of iterations, the more secure the derived key will be,
1885
+ * but will take a longer amount of time to complete.
1886
+ *
1887
+ * The `salt` should be as unique as possible. It is recommended that a salt is
1888
+ * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
1889
+ *
1890
+ * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
1891
+ *
1892
+ * ```js
1893
+ * const {
1894
+ * pbkdf2Sync,
1895
+ * } = await import('node:crypto');
1896
+ *
1897
+ * const key = pbkdf2Sync('secret', 'salt', 100000, 64, 'sha512');
1898
+ * console.log(key.toString('hex')); // '3745e48...08d59ae'
1899
+ * ```
1900
+ *
1901
+ * An array of supported digest functions can be retrieved using {@link getHashes}.
1902
+ * @since v0.9.3
1903
+ */
1904
+ function pbkdf2Sync(
1905
+ password: BinaryLike,
1906
+ salt: BinaryLike,
1907
+ iterations: number,
1908
+ keylen: number,
1909
+ digest: string,
1910
+ ): Buffer;
1911
+ /**
1912
+ * Generates cryptographically strong pseudorandom data. The `size` argument
1913
+ * is a number indicating the number of bytes to generate.
1914
+ *
1915
+ * If a `callback` function is provided, the bytes are generated asynchronously
1916
+ * and the `callback` function is invoked with two arguments: `err` and `buf`.
1917
+ * If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The `buf` argument is a `Buffer` containing the generated bytes.
1918
+ *
1919
+ * ```js
1920
+ * // Asynchronous
1921
+ * const {
1922
+ * randomBytes,
1923
+ * } = await import('node:crypto');
1924
+ *
1925
+ * randomBytes(256, (err, buf) => {
1926
+ * if (err) throw err;
1927
+ * console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`);
1928
+ * });
1929
+ * ```
1930
+ *
1931
+ * If the `callback` function is not provided, the random bytes are generated
1932
+ * synchronously and returned as a `Buffer`. An error will be thrown if
1933
+ * there is a problem generating the bytes.
1934
+ *
1935
+ * ```js
1936
+ * // Synchronous
1937
+ * const {
1938
+ * randomBytes,
1939
+ * } = await import('node:crypto');
1940
+ *
1941
+ * const buf = randomBytes(256);
1942
+ * console.log(
1943
+ * `${buf.length} bytes of random data: ${buf.toString('hex')}`);
1944
+ * ```
1945
+ *
1946
+ * The `crypto.randomBytes()` method will not complete until there is
1947
+ * sufficient entropy available.
1948
+ * This should normally never take longer than a few milliseconds. The only time
1949
+ * when generating the random bytes may conceivably block for a longer period of
1950
+ * time is right after boot, when the whole system is still low on entropy.
1951
+ *
1952
+ * This API uses libuv's threadpool, which can have surprising and
1953
+ * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
1954
+ *
1955
+ * The asynchronous version of `crypto.randomBytes()` is carried out in a single
1956
+ * threadpool request. To minimize threadpool task length variation, partition
1957
+ * large `randomBytes` requests when doing so as part of fulfilling a client
1958
+ * request.
1959
+ * @since v0.5.8
1960
+ * @param size The number of bytes to generate. The `size` must not be larger than `2**31 - 1`.
1961
+ * @return if the `callback` function is not provided.
1962
+ */
1963
+ function randomBytes(size: number): Buffer;
1964
+ function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
1965
+ function pseudoRandomBytes(size: number): Buffer;
1966
+ function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
1967
+ /**
1968
+ * Return a random integer `n` such that `min <= n < max`. This
1969
+ * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias).
1970
+ *
1971
+ * The range (`max - min`) must be less than 2**48. `min` and `max` must
1972
+ * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger).
1973
+ *
1974
+ * If the `callback` function is not provided, the random integer is
1975
+ * generated synchronously.
1976
+ *
1977
+ * ```js
1978
+ * // Asynchronous
1979
+ * const {
1980
+ * randomInt,
1981
+ * } = await import('node:crypto');
1982
+ *
1983
+ * randomInt(3, (err, n) => {
1984
+ * if (err) throw err;
1985
+ * console.log(`Random number chosen from (0, 1, 2): ${n}`);
1986
+ * });
1987
+ * ```
1988
+ *
1989
+ * ```js
1990
+ * // Synchronous
1991
+ * const {
1992
+ * randomInt,
1993
+ * } = await import('node:crypto');
1994
+ *
1995
+ * const n = randomInt(3);
1996
+ * console.log(`Random number chosen from (0, 1, 2): ${n}`);
1997
+ * ```
1998
+ *
1999
+ * ```js
2000
+ * // With `min` argument
2001
+ * const {
2002
+ * randomInt,
2003
+ * } = await import('node:crypto');
2004
+ *
2005
+ * const n = randomInt(1, 7);
2006
+ * console.log(`The dice rolled: ${n}`);
2007
+ * ```
2008
+ * @since v14.10.0, v12.19.0
2009
+ * @param [min=0] Start of random range (inclusive).
2010
+ * @param max End of random range (exclusive).
2011
+ * @param callback `function(err, n) {}`.
2012
+ */
2013
+ function randomInt(max: number): number;
2014
+ function randomInt(min: number, max: number): number;
2015
+ function randomInt(max: number, callback: (err: Error | null, value: number) => void): void;
2016
+ function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void;
2017
+ /**
2018
+ * Synchronous version of {@link randomFill}.
2019
+ *
2020
+ * ```js
2021
+ * import { Buffer } from 'node:buffer';
2022
+ * const { randomFillSync } = await import('node:crypto');
2023
+ *
2024
+ * const buf = Buffer.alloc(10);
2025
+ * console.log(randomFillSync(buf).toString('hex'));
2026
+ *
2027
+ * randomFillSync(buf, 5);
2028
+ * console.log(buf.toString('hex'));
2029
+ *
2030
+ * // The above is equivalent to the following:
2031
+ * randomFillSync(buf, 5, 5);
2032
+ * console.log(buf.toString('hex'));
2033
+ * ```
2034
+ *
2035
+ * Any `ArrayBuffer`, `TypedArray` or `DataView` instance may be passed as`buffer`.
2036
+ *
2037
+ * ```js
2038
+ * import { Buffer } from 'node:buffer';
2039
+ * const { randomFillSync } = await import('node:crypto');
2040
+ *
2041
+ * const a = new Uint32Array(10);
2042
+ * console.log(Buffer.from(randomFillSync(a).buffer,
2043
+ * a.byteOffset, a.byteLength).toString('hex'));
2044
+ *
2045
+ * const b = new DataView(new ArrayBuffer(10));
2046
+ * console.log(Buffer.from(randomFillSync(b).buffer,
2047
+ * b.byteOffset, b.byteLength).toString('hex'));
2048
+ *
2049
+ * const c = new ArrayBuffer(10);
2050
+ * console.log(Buffer.from(randomFillSync(c)).toString('hex'));
2051
+ * ```
2052
+ * @since v7.10.0, v6.13.0
2053
+ * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`.
2054
+ * @param [offset=0]
2055
+ * @param [size=buffer.length - offset]
2056
+ * @return The object passed as `buffer` argument.
2057
+ */
2058
+ function randomFillSync<T extends NodeJS.ArrayBufferView>(buffer: T, offset?: number, size?: number): T;
2059
+ /**
2060
+ * This function is similar to {@link randomBytes} but requires the first
2061
+ * argument to be a `Buffer` that will be filled. It also
2062
+ * requires that a callback is passed in.
2063
+ *
2064
+ * If the `callback` function is not provided, an error will be thrown.
2065
+ *
2066
+ * ```js
2067
+ * import { Buffer } from 'node:buffer';
2068
+ * const { randomFill } = await import('node:crypto');
2069
+ *
2070
+ * const buf = Buffer.alloc(10);
2071
+ * randomFill(buf, (err, buf) => {
2072
+ * if (err) throw err;
2073
+ * console.log(buf.toString('hex'));
2074
+ * });
2075
+ *
2076
+ * randomFill(buf, 5, (err, buf) => {
2077
+ * if (err) throw err;
2078
+ * console.log(buf.toString('hex'));
2079
+ * });
2080
+ *
2081
+ * // The above is equivalent to the following:
2082
+ * randomFill(buf, 5, 5, (err, buf) => {
2083
+ * if (err) throw err;
2084
+ * console.log(buf.toString('hex'));
2085
+ * });
2086
+ * ```
2087
+ *
2088
+ * Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as `buffer`.
2089
+ *
2090
+ * While this includes instances of `Float32Array` and `Float64Array`, this
2091
+ * function should not be used to generate random floating-point numbers. The
2092
+ * result may contain `+Infinity`, `-Infinity`, and `NaN`, and even if the array
2093
+ * contains finite numbers only, they are not drawn from a uniform random
2094
+ * distribution and have no meaningful lower or upper bounds.
2095
+ *
2096
+ * ```js
2097
+ * import { Buffer } from 'node:buffer';
2098
+ * const { randomFill } = await import('node:crypto');
2099
+ *
2100
+ * const a = new Uint32Array(10);
2101
+ * randomFill(a, (err, buf) => {
2102
+ * if (err) throw err;
2103
+ * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)
2104
+ * .toString('hex'));
2105
+ * });
2106
+ *
2107
+ * const b = new DataView(new ArrayBuffer(10));
2108
+ * randomFill(b, (err, buf) => {
2109
+ * if (err) throw err;
2110
+ * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)
2111
+ * .toString('hex'));
2112
+ * });
2113
+ *
2114
+ * const c = new ArrayBuffer(10);
2115
+ * randomFill(c, (err, buf) => {
2116
+ * if (err) throw err;
2117
+ * console.log(Buffer.from(buf).toString('hex'));
2118
+ * });
2119
+ * ```
2120
+ *
2121
+ * This API uses libuv's threadpool, which can have surprising and
2122
+ * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
2123
+ *
2124
+ * The asynchronous version of `crypto.randomFill()` is carried out in a single
2125
+ * threadpool request. To minimize threadpool task length variation, partition
2126
+ * large `randomFill` requests when doing so as part of fulfilling a client
2127
+ * request.
2128
+ * @since v7.10.0, v6.13.0
2129
+ * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`.
2130
+ * @param [offset=0]
2131
+ * @param [size=buffer.length - offset]
2132
+ * @param callback `function(err, buf) {}`.
2133
+ */
2134
+ function randomFill<T extends NodeJS.ArrayBufferView>(
2135
+ buffer: T,
2136
+ callback: (err: Error | null, buf: T) => void,
2137
+ ): void;
2138
+ function randomFill<T extends NodeJS.ArrayBufferView>(
2139
+ buffer: T,
2140
+ offset: number,
2141
+ callback: (err: Error | null, buf: T) => void,
2142
+ ): void;
2143
+ function randomFill<T extends NodeJS.ArrayBufferView>(
2144
+ buffer: T,
2145
+ offset: number,
2146
+ size: number,
2147
+ callback: (err: Error | null, buf: T) => void,
2148
+ ): void;
2149
+ interface ScryptOptions {
2150
+ cost?: number | undefined;
2151
+ blockSize?: number | undefined;
2152
+ parallelization?: number | undefined;
2153
+ N?: number | undefined;
2154
+ r?: number | undefined;
2155
+ p?: number | undefined;
2156
+ maxmem?: number | undefined;
2157
+ }
2158
+ /**
2159
+ * Provides an asynchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based
2160
+ * key derivation function that is designed to be expensive computationally and
2161
+ * memory-wise in order to make brute-force attacks unrewarding.
2162
+ *
2163
+ * The `salt` should be as unique as possible. It is recommended that a salt is
2164
+ * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
2165
+ *
2166
+ * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
2167
+ *
2168
+ * The `callback` function is called with two arguments: `err` and `derivedKey`. `err` is an exception object when key derivation fails, otherwise `err` is `null`. `derivedKey` is passed to the
2169
+ * callback as a `Buffer`.
2170
+ *
2171
+ * An exception is thrown when any of the input arguments specify invalid values
2172
+ * or types.
2173
+ *
2174
+ * ```js
2175
+ * const {
2176
+ * scrypt,
2177
+ * } = await import('node:crypto');
2178
+ *
2179
+ * // Using the factory defaults.
2180
+ * scrypt('password', 'salt', 64, (err, derivedKey) => {
2181
+ * if (err) throw err;
2182
+ * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae'
2183
+ * });
2184
+ * // Using a custom N parameter. Must be a power of two.
2185
+ * scrypt('password', 'salt', 64, { N: 1024 }, (err, derivedKey) => {
2186
+ * if (err) throw err;
2187
+ * console.log(derivedKey.toString('hex')); // '3745e48...aa39b34'
2188
+ * });
2189
+ * ```
2190
+ * @since v10.5.0
2191
+ */
2192
+ function scrypt(
2193
+ password: BinaryLike,
2194
+ salt: BinaryLike,
2195
+ keylen: number,
2196
+ callback: (err: Error | null, derivedKey: Buffer) => void,
2197
+ ): void;
2198
+ function scrypt(
2199
+ password: BinaryLike,
2200
+ salt: BinaryLike,
2201
+ keylen: number,
2202
+ options: ScryptOptions,
2203
+ callback: (err: Error | null, derivedKey: Buffer) => void,
2204
+ ): void;
2205
+ /**
2206
+ * Provides a synchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based
2207
+ * key derivation function that is designed to be expensive computationally and
2208
+ * memory-wise in order to make brute-force attacks unrewarding.
2209
+ *
2210
+ * The `salt` should be as unique as possible. It is recommended that a salt is
2211
+ * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
2212
+ *
2213
+ * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
2214
+ *
2215
+ * An exception is thrown when key derivation fails, otherwise the derived key is
2216
+ * returned as a `Buffer`.
2217
+ *
2218
+ * An exception is thrown when any of the input arguments specify invalid values
2219
+ * or types.
2220
+ *
2221
+ * ```js
2222
+ * const {
2223
+ * scryptSync,
2224
+ * } = await import('node:crypto');
2225
+ * // Using the factory defaults.
2226
+ *
2227
+ * const key1 = scryptSync('password', 'salt', 64);
2228
+ * console.log(key1.toString('hex')); // '3745e48...08d59ae'
2229
+ * // Using a custom N parameter. Must be a power of two.
2230
+ * const key2 = scryptSync('password', 'salt', 64, { N: 1024 });
2231
+ * console.log(key2.toString('hex')); // '3745e48...aa39b34'
2232
+ * ```
2233
+ * @since v10.5.0
2234
+ */
2235
+ function scryptSync(password: BinaryLike, salt: BinaryLike, keylen: number, options?: ScryptOptions): Buffer;
2236
+ interface RsaPublicKey {
2237
+ key: KeyLike;
2238
+ padding?: number | undefined;
2239
+ }
2240
+ interface RsaPrivateKey {
2241
+ key: KeyLike;
2242
+ passphrase?: string | undefined;
2243
+ /**
2244
+ * @default 'sha1'
2245
+ */
2246
+ oaepHash?: string | undefined;
2247
+ oaepLabel?: NodeJS.TypedArray | undefined;
2248
+ padding?: number | undefined;
2249
+ }
2250
+ /**
2251
+ * Encrypts the content of `buffer` with `key` and returns a new `Buffer` with encrypted content. The returned data can be decrypted using
2252
+ * the corresponding private key, for example using {@link privateDecrypt}.
2253
+ *
2254
+ * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an
2255
+ * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`.
2256
+ *
2257
+ * Because RSA public keys can be derived from private keys, a private key may
2258
+ * be passed instead of a public key.
2259
+ * @since v0.11.14
2260
+ */
2261
+ function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2262
+ /**
2263
+ * Decrypts `buffer` with `key`.`buffer` was previously encrypted using
2264
+ * the corresponding private key, for example using {@link privateEncrypt}.
2265
+ *
2266
+ * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an
2267
+ * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`.
2268
+ *
2269
+ * Because RSA public keys can be derived from private keys, a private key may
2270
+ * be passed instead of a public key.
2271
+ * @since v1.1.0
2272
+ */
2273
+ function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2274
+ /**
2275
+ * Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using
2276
+ * the corresponding public key, for example using {@link publicEncrypt}.
2277
+ *
2278
+ * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
2279
+ * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`.
2280
+ * @since v0.11.14
2281
+ */
2282
+ function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2283
+ /**
2284
+ * Encrypts `buffer` with `privateKey`. The returned data can be decrypted using
2285
+ * the corresponding public key, for example using {@link publicDecrypt}.
2286
+ *
2287
+ * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
2288
+ * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`.
2289
+ * @since v1.1.0
2290
+ */
2291
+ function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2292
+ /**
2293
+ * ```js
2294
+ * const {
2295
+ * getCiphers,
2296
+ * } = await import('node:crypto');
2297
+ *
2298
+ * console.log(getCiphers()); // ['aes-128-cbc', 'aes-128-ccm', ...]
2299
+ * ```
2300
+ * @since v0.9.3
2301
+ * @return An array with the names of the supported cipher algorithms.
2302
+ */
2303
+ function getCiphers(): string[];
2304
+ /**
2305
+ * ```js
2306
+ * const {
2307
+ * getCurves,
2308
+ * } = await import('node:crypto');
2309
+ *
2310
+ * console.log(getCurves()); // ['Oakley-EC2N-3', 'Oakley-EC2N-4', ...]
2311
+ * ```
2312
+ * @since v2.3.0
2313
+ * @return An array with the names of the supported elliptic curves.
2314
+ */
2315
+ function getCurves(): string[];
2316
+ /**
2317
+ * @since v10.0.0
2318
+ * @return `1` if and only if a FIPS compliant crypto provider is currently in use, `0` otherwise. A future semver-major release may change the return type of this API to a {boolean}.
2319
+ */
2320
+ function getFips(): 1 | 0;
2321
+ /**
2322
+ * Enables the FIPS compliant crypto provider in a FIPS-enabled Node.js build.
2323
+ * Throws an error if FIPS mode is not available.
2324
+ * @since v10.0.0
2325
+ * @param bool `true` to enable FIPS mode.
2326
+ */
2327
+ function setFips(bool: boolean): void;
2328
+ /**
2329
+ * ```js
2330
+ * const {
2331
+ * getHashes,
2332
+ * } = await import('node:crypto');
2333
+ *
2334
+ * console.log(getHashes()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...]
2335
+ * ```
2336
+ * @since v0.9.3
2337
+ * @return An array of the names of the supported hash algorithms, such as `'RSA-SHA256'`. Hash algorithms are also called "digest" algorithms.
2338
+ */
2339
+ function getHashes(): string[];
2340
+ /**
2341
+ * The `ECDH` class is a utility for creating Elliptic Curve Diffie-Hellman (ECDH)
2342
+ * key exchanges.
2343
+ *
2344
+ * Instances of the `ECDH` class can be created using the {@link createECDH} function.
2345
+ *
2346
+ * ```js
2347
+ * import assert from 'node:assert';
2348
+ *
2349
+ * const {
2350
+ * createECDH,
2351
+ * } = await import('node:crypto');
2352
+ *
2353
+ * // Generate Alice's keys...
2354
+ * const alice = createECDH('secp521r1');
2355
+ * const aliceKey = alice.generateKeys();
2356
+ *
2357
+ * // Generate Bob's keys...
2358
+ * const bob = createECDH('secp521r1');
2359
+ * const bobKey = bob.generateKeys();
2360
+ *
2361
+ * // Exchange and generate the secret...
2362
+ * const aliceSecret = alice.computeSecret(bobKey);
2363
+ * const bobSecret = bob.computeSecret(aliceKey);
2364
+ *
2365
+ * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex'));
2366
+ * // OK
2367
+ * ```
2368
+ * @since v0.11.14
2369
+ */
2370
+ class ECDH {
2371
+ private constructor();
2372
+ /**
2373
+ * Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the
2374
+ * format specified by `format`. The `format` argument specifies point encoding
2375
+ * and can be `'compressed'`, `'uncompressed'` or `'hybrid'`. The supplied key is
2376
+ * interpreted using the specified `inputEncoding`, and the returned key is encoded
2377
+ * using the specified `outputEncoding`.
2378
+ *
2379
+ * Use {@link getCurves} to obtain a list of available curve names.
2380
+ * On recent OpenSSL releases, `openssl ecparam -list_curves` will also display
2381
+ * the name and description of each available elliptic curve.
2382
+ *
2383
+ * If `format` is not specified the point will be returned in `'uncompressed'` format.
2384
+ *
2385
+ * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
2386
+ *
2387
+ * Example (uncompressing a key):
2388
+ *
2389
+ * ```js
2390
+ * const {
2391
+ * createECDH,
2392
+ * ECDH,
2393
+ * } = await import('node:crypto');
2394
+ *
2395
+ * const ecdh = createECDH('secp256k1');
2396
+ * ecdh.generateKeys();
2397
+ *
2398
+ * const compressedKey = ecdh.getPublicKey('hex', 'compressed');
2399
+ *
2400
+ * const uncompressedKey = ECDH.convertKey(compressedKey,
2401
+ * 'secp256k1',
2402
+ * 'hex',
2403
+ * 'hex',
2404
+ * 'uncompressed');
2405
+ *
2406
+ * // The converted key and the uncompressed public key should be the same
2407
+ * console.log(uncompressedKey === ecdh.getPublicKey('hex'));
2408
+ * ```
2409
+ * @since v10.0.0
2410
+ * @param inputEncoding The `encoding` of the `key` string.
2411
+ * @param outputEncoding The `encoding` of the return value.
2412
+ * @param [format='uncompressed']
2413
+ */
2414
+ static convertKey(
2415
+ key: BinaryLike,
2416
+ curve: string,
2417
+ inputEncoding?: BinaryToTextEncoding,
2418
+ outputEncoding?: "latin1" | "hex" | "base64" | "base64url",
2419
+ format?: "uncompressed" | "compressed" | "hybrid",
2420
+ ): Buffer | string;
2421
+ /**
2422
+ * Generates private and public EC Diffie-Hellman key values, and returns
2423
+ * the public key in the specified `format` and `encoding`. This key should be
2424
+ * transferred to the other party.
2425
+ *
2426
+ * The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified, the point will be returned in`'uncompressed'` format.
2427
+ *
2428
+ * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
2429
+ * @since v0.11.14
2430
+ * @param encoding The `encoding` of the return value.
2431
+ * @param [format='uncompressed']
2432
+ */
2433
+ generateKeys(): Buffer;
2434
+ generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
2435
+ /**
2436
+ * Computes the shared secret using `otherPublicKey` as the other
2437
+ * party's public key and returns the computed shared secret. The supplied
2438
+ * key is interpreted using specified `inputEncoding`, and the returned secret
2439
+ * is encoded using the specified `outputEncoding`.
2440
+ * If the `inputEncoding` is not
2441
+ * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
2442
+ *
2443
+ * If `outputEncoding` is given a string will be returned; otherwise a `Buffer` is returned.
2444
+ *
2445
+ * `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey` lies outside of the elliptic curve. Since `otherPublicKey` is
2446
+ * usually supplied from a remote user over an insecure network,
2447
+ * be sure to handle this exception accordingly.
2448
+ * @since v0.11.14
2449
+ * @param inputEncoding The `encoding` of the `otherPublicKey` string.
2450
+ * @param outputEncoding The `encoding` of the return value.
2451
+ */
2452
+ computeSecret(otherPublicKey: NodeJS.ArrayBufferView): Buffer;
2453
+ computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer;
2454
+ computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string;
2455
+ computeSecret(
2456
+ otherPublicKey: string,
2457
+ inputEncoding: BinaryToTextEncoding,
2458
+ outputEncoding: BinaryToTextEncoding,
2459
+ ): string;
2460
+ /**
2461
+ * If `encoding` is specified, a string is returned; otherwise a `Buffer` is
2462
+ * returned.
2463
+ * @since v0.11.14
2464
+ * @param encoding The `encoding` of the return value.
2465
+ * @return The EC Diffie-Hellman in the specified `encoding`.
2466
+ */
2467
+ getPrivateKey(): Buffer;
2468
+ getPrivateKey(encoding: BinaryToTextEncoding): string;
2469
+ /**
2470
+ * The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified the point will be returned in`'uncompressed'` format.
2471
+ *
2472
+ * If `encoding` is specified, a string is returned; otherwise a `Buffer` is
2473
+ * returned.
2474
+ * @since v0.11.14
2475
+ * @param encoding The `encoding` of the return value.
2476
+ * @param [format='uncompressed']
2477
+ * @return The EC Diffie-Hellman public key in the specified `encoding` and `format`.
2478
+ */
2479
+ getPublicKey(encoding?: null, format?: ECDHKeyFormat): Buffer;
2480
+ getPublicKey(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
2481
+ /**
2482
+ * Sets the EC Diffie-Hellman private key.
2483
+ * If `encoding` is provided, `privateKey` is expected
2484
+ * to be a string; otherwise `privateKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
2485
+ *
2486
+ * If `privateKey` is not valid for the curve specified when the `ECDH` object was
2487
+ * created, an error is thrown. Upon setting the private key, the associated
2488
+ * public point (key) is also generated and set in the `ECDH` object.
2489
+ * @since v0.11.14
2490
+ * @param encoding The `encoding` of the `privateKey` string.
2491
+ */
2492
+ setPrivateKey(privateKey: NodeJS.ArrayBufferView): void;
2493
+ setPrivateKey(privateKey: string, encoding: BinaryToTextEncoding): void;
2494
+ }
2495
+ /**
2496
+ * Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a
2497
+ * predefined curve specified by the `curveName` string. Use {@link getCurves} to obtain a list of available curve names. On recent
2498
+ * OpenSSL releases, `openssl ecparam -list_curves` will also display the name
2499
+ * and description of each available elliptic curve.
2500
+ * @since v0.11.14
2501
+ */
2502
+ function createECDH(curveName: string): ECDH;
2503
+ /**
2504
+ * This function compares the underlying bytes that represent the given `ArrayBuffer`, `TypedArray`, or `DataView` instances using a constant-time
2505
+ * algorithm.
2506
+ *
2507
+ * This function does not leak timing information that
2508
+ * would allow an attacker to guess one of the values. This is suitable for
2509
+ * comparing HMAC digests or secret values like authentication cookies or [capability urls](https://www.w3.org/TR/capability-urls/).
2510
+ *
2511
+ * `a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they
2512
+ * must have the same byte length. An error is thrown if `a` and `b` have
2513
+ * different byte lengths.
2514
+ *
2515
+ * If at least one of `a` and `b` is a `TypedArray` with more than one byte per
2516
+ * entry, such as `Uint16Array`, the result will be computed using the platform
2517
+ * byte order.
2518
+ *
2519
+ * **When both of the inputs are `Float32Array`s or `Float64Array`s, this function might return unexpected results due to IEEE 754**
2520
+ * **encoding of floating-point numbers. In particular, neither `x === y` nor `Object.is(x, y)` implies that the byte representations of two floating-point**
2521
+ * **numbers `x` and `y` are equal.**
2522
+ *
2523
+ * Use of `crypto.timingSafeEqual` does not guarantee that the _surrounding_ code
2524
+ * is timing-safe. Care should be taken to ensure that the surrounding code does
2525
+ * not introduce timing vulnerabilities.
2526
+ * @since v6.6.0
2527
+ */
2528
+ function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean;
2529
+ type KeyType = "rsa" | "rsa-pss" | "dsa" | "ec" | "ed25519" | "ed448" | "x25519" | "x448";
2530
+ type KeyFormat = "pem" | "der" | "jwk";
2531
+ interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
2532
+ format: T;
2533
+ cipher?: string | undefined;
2534
+ passphrase?: string | undefined;
2535
+ }
2536
+ interface KeyPairKeyObjectResult {
2537
+ publicKey: KeyObject;
2538
+ privateKey: KeyObject;
2539
+ }
2540
+ interface ED25519KeyPairKeyObjectOptions {}
2541
+ interface ED448KeyPairKeyObjectOptions {}
2542
+ interface X25519KeyPairKeyObjectOptions {}
2543
+ interface X448KeyPairKeyObjectOptions {}
2544
+ interface ECKeyPairKeyObjectOptions {
2545
+ /**
2546
+ * Name of the curve to use
2547
+ */
2548
+ namedCurve: string;
2549
+ /**
2550
+ * Must be `'named'` or `'explicit'`. Default: `'named'`.
2551
+ */
2552
+ paramEncoding?: "explicit" | "named" | undefined;
2553
+ }
2554
+ interface RSAKeyPairKeyObjectOptions {
2555
+ /**
2556
+ * Key size in bits
2557
+ */
2558
+ modulusLength: number;
2559
+ /**
2560
+ * Public exponent
2561
+ * @default 0x10001
2562
+ */
2563
+ publicExponent?: number | undefined;
2564
+ }
2565
+ interface RSAPSSKeyPairKeyObjectOptions {
2566
+ /**
2567
+ * Key size in bits
2568
+ */
2569
+ modulusLength: number;
2570
+ /**
2571
+ * Public exponent
2572
+ * @default 0x10001
2573
+ */
2574
+ publicExponent?: number | undefined;
2575
+ /**
2576
+ * Name of the message digest
2577
+ */
2578
+ hashAlgorithm?: string;
2579
+ /**
2580
+ * Name of the message digest used by MGF1
2581
+ */
2582
+ mgf1HashAlgorithm?: string;
2583
+ /**
2584
+ * Minimal salt length in bytes
2585
+ */
2586
+ saltLength?: string;
2587
+ }
2588
+ interface DSAKeyPairKeyObjectOptions {
2589
+ /**
2590
+ * Key size in bits
2591
+ */
2592
+ modulusLength: number;
2593
+ /**
2594
+ * Size of q in bits
2595
+ */
2596
+ divisorLength: number;
2597
+ }
2598
+ interface RSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2599
+ /**
2600
+ * Key size in bits
2601
+ */
2602
+ modulusLength: number;
2603
+ /**
2604
+ * Public exponent
2605
+ * @default 0x10001
2606
+ */
2607
+ publicExponent?: number | undefined;
2608
+ publicKeyEncoding: {
2609
+ type: "pkcs1" | "spki";
2610
+ format: PubF;
2611
+ };
2612
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2613
+ type: "pkcs1" | "pkcs8";
2614
+ };
2615
+ }
2616
+ interface RSAPSSKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2617
+ /**
2618
+ * Key size in bits
2619
+ */
2620
+ modulusLength: number;
2621
+ /**
2622
+ * Public exponent
2623
+ * @default 0x10001
2624
+ */
2625
+ publicExponent?: number | undefined;
2626
+ /**
2627
+ * Name of the message digest
2628
+ */
2629
+ hashAlgorithm?: string;
2630
+ /**
2631
+ * Name of the message digest used by MGF1
2632
+ */
2633
+ mgf1HashAlgorithm?: string;
2634
+ /**
2635
+ * Minimal salt length in bytes
2636
+ */
2637
+ saltLength?: string;
2638
+ publicKeyEncoding: {
2639
+ type: "spki";
2640
+ format: PubF;
2641
+ };
2642
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2643
+ type: "pkcs8";
2644
+ };
2645
+ }
2646
+ interface DSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2647
+ /**
2648
+ * Key size in bits
2649
+ */
2650
+ modulusLength: number;
2651
+ /**
2652
+ * Size of q in bits
2653
+ */
2654
+ divisorLength: number;
2655
+ publicKeyEncoding: {
2656
+ type: "spki";
2657
+ format: PubF;
2658
+ };
2659
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2660
+ type: "pkcs8";
2661
+ };
2662
+ }
2663
+ interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> extends ECKeyPairKeyObjectOptions {
2664
+ publicKeyEncoding: {
2665
+ type: "pkcs1" | "spki";
2666
+ format: PubF;
2667
+ };
2668
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2669
+ type: "sec1" | "pkcs8";
2670
+ };
2671
+ }
2672
+ interface ED25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2673
+ publicKeyEncoding: {
2674
+ type: "spki";
2675
+ format: PubF;
2676
+ };
2677
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2678
+ type: "pkcs8";
2679
+ };
2680
+ }
2681
+ interface ED448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2682
+ publicKeyEncoding: {
2683
+ type: "spki";
2684
+ format: PubF;
2685
+ };
2686
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2687
+ type: "pkcs8";
2688
+ };
2689
+ }
2690
+ interface X25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2691
+ publicKeyEncoding: {
2692
+ type: "spki";
2693
+ format: PubF;
2694
+ };
2695
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2696
+ type: "pkcs8";
2697
+ };
2698
+ }
2699
+ interface X448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2700
+ publicKeyEncoding: {
2701
+ type: "spki";
2702
+ format: PubF;
2703
+ };
2704
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2705
+ type: "pkcs8";
2706
+ };
2707
+ }
2708
+ interface KeyPairSyncResult<T1 extends string | Buffer, T2 extends string | Buffer> {
2709
+ publicKey: T1;
2710
+ privateKey: T2;
2711
+ }
2712
+ /**
2713
+ * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
2714
+ * Ed25519, Ed448, X25519, X448, and DH are currently supported.
2715
+ *
2716
+ * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
2717
+ * behaves as if `keyObject.export()` had been called on its result. Otherwise,
2718
+ * the respective part of the key is returned as a `KeyObject`.
2719
+ *
2720
+ * When encoding public keys, it is recommended to use `'spki'`. When encoding
2721
+ * private keys, it is recommended to use `'pkcs8'` with a strong passphrase,
2722
+ * and to keep the passphrase confidential.
2723
+ *
2724
+ * ```js
2725
+ * const {
2726
+ * generateKeyPairSync,
2727
+ * } = await import('node:crypto');
2728
+ *
2729
+ * const {
2730
+ * publicKey,
2731
+ * privateKey,
2732
+ * } = generateKeyPairSync('rsa', {
2733
+ * modulusLength: 4096,
2734
+ * publicKeyEncoding: {
2735
+ * type: 'spki',
2736
+ * format: 'pem',
2737
+ * },
2738
+ * privateKeyEncoding: {
2739
+ * type: 'pkcs8',
2740
+ * format: 'pem',
2741
+ * cipher: 'aes-256-cbc',
2742
+ * passphrase: 'top secret',
2743
+ * },
2744
+ * });
2745
+ * ```
2746
+ *
2747
+ * The return value `{ publicKey, privateKey }` represents the generated key pair.
2748
+ * When PEM encoding was selected, the respective key will be a string, otherwise
2749
+ * it will be a buffer containing the data encoded as DER.
2750
+ * @since v10.12.0
2751
+ * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
2752
+ */
2753
+ function generateKeyPairSync(
2754
+ type: "rsa",
2755
+ options: RSAKeyPairOptions<"pem", "pem">,
2756
+ ): KeyPairSyncResult<string, string>;
2757
+ function generateKeyPairSync(
2758
+ type: "rsa",
2759
+ options: RSAKeyPairOptions<"pem", "der">,
2760
+ ): KeyPairSyncResult<string, Buffer>;
2761
+ function generateKeyPairSync(
2762
+ type: "rsa",
2763
+ options: RSAKeyPairOptions<"der", "pem">,
2764
+ ): KeyPairSyncResult<Buffer, string>;
2765
+ function generateKeyPairSync(
2766
+ type: "rsa",
2767
+ options: RSAKeyPairOptions<"der", "der">,
2768
+ ): KeyPairSyncResult<Buffer, Buffer>;
2769
+ function generateKeyPairSync(type: "rsa", options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2770
+ function generateKeyPairSync(
2771
+ type: "rsa-pss",
2772
+ options: RSAPSSKeyPairOptions<"pem", "pem">,
2773
+ ): KeyPairSyncResult<string, string>;
2774
+ function generateKeyPairSync(
2775
+ type: "rsa-pss",
2776
+ options: RSAPSSKeyPairOptions<"pem", "der">,
2777
+ ): KeyPairSyncResult<string, Buffer>;
2778
+ function generateKeyPairSync(
2779
+ type: "rsa-pss",
2780
+ options: RSAPSSKeyPairOptions<"der", "pem">,
2781
+ ): KeyPairSyncResult<Buffer, string>;
2782
+ function generateKeyPairSync(
2783
+ type: "rsa-pss",
2784
+ options: RSAPSSKeyPairOptions<"der", "der">,
2785
+ ): KeyPairSyncResult<Buffer, Buffer>;
2786
+ function generateKeyPairSync(type: "rsa-pss", options: RSAPSSKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2787
+ function generateKeyPairSync(
2788
+ type: "dsa",
2789
+ options: DSAKeyPairOptions<"pem", "pem">,
2790
+ ): KeyPairSyncResult<string, string>;
2791
+ function generateKeyPairSync(
2792
+ type: "dsa",
2793
+ options: DSAKeyPairOptions<"pem", "der">,
2794
+ ): KeyPairSyncResult<string, Buffer>;
2795
+ function generateKeyPairSync(
2796
+ type: "dsa",
2797
+ options: DSAKeyPairOptions<"der", "pem">,
2798
+ ): KeyPairSyncResult<Buffer, string>;
2799
+ function generateKeyPairSync(
2800
+ type: "dsa",
2801
+ options: DSAKeyPairOptions<"der", "der">,
2802
+ ): KeyPairSyncResult<Buffer, Buffer>;
2803
+ function generateKeyPairSync(type: "dsa", options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2804
+ function generateKeyPairSync(
2805
+ type: "ec",
2806
+ options: ECKeyPairOptions<"pem", "pem">,
2807
+ ): KeyPairSyncResult<string, string>;
2808
+ function generateKeyPairSync(
2809
+ type: "ec",
2810
+ options: ECKeyPairOptions<"pem", "der">,
2811
+ ): KeyPairSyncResult<string, Buffer>;
2812
+ function generateKeyPairSync(
2813
+ type: "ec",
2814
+ options: ECKeyPairOptions<"der", "pem">,
2815
+ ): KeyPairSyncResult<Buffer, string>;
2816
+ function generateKeyPairSync(
2817
+ type: "ec",
2818
+ options: ECKeyPairOptions<"der", "der">,
2819
+ ): KeyPairSyncResult<Buffer, Buffer>;
2820
+ function generateKeyPairSync(type: "ec", options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2821
+ function generateKeyPairSync(
2822
+ type: "ed25519",
2823
+ options: ED25519KeyPairOptions<"pem", "pem">,
2824
+ ): KeyPairSyncResult<string, string>;
2825
+ function generateKeyPairSync(
2826
+ type: "ed25519",
2827
+ options: ED25519KeyPairOptions<"pem", "der">,
2828
+ ): KeyPairSyncResult<string, Buffer>;
2829
+ function generateKeyPairSync(
2830
+ type: "ed25519",
2831
+ options: ED25519KeyPairOptions<"der", "pem">,
2832
+ ): KeyPairSyncResult<Buffer, string>;
2833
+ function generateKeyPairSync(
2834
+ type: "ed25519",
2835
+ options: ED25519KeyPairOptions<"der", "der">,
2836
+ ): KeyPairSyncResult<Buffer, Buffer>;
2837
+ function generateKeyPairSync(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2838
+ function generateKeyPairSync(
2839
+ type: "ed448",
2840
+ options: ED448KeyPairOptions<"pem", "pem">,
2841
+ ): KeyPairSyncResult<string, string>;
2842
+ function generateKeyPairSync(
2843
+ type: "ed448",
2844
+ options: ED448KeyPairOptions<"pem", "der">,
2845
+ ): KeyPairSyncResult<string, Buffer>;
2846
+ function generateKeyPairSync(
2847
+ type: "ed448",
2848
+ options: ED448KeyPairOptions<"der", "pem">,
2849
+ ): KeyPairSyncResult<Buffer, string>;
2850
+ function generateKeyPairSync(
2851
+ type: "ed448",
2852
+ options: ED448KeyPairOptions<"der", "der">,
2853
+ ): KeyPairSyncResult<Buffer, Buffer>;
2854
+ function generateKeyPairSync(type: "ed448", options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2855
+ function generateKeyPairSync(
2856
+ type: "x25519",
2857
+ options: X25519KeyPairOptions<"pem", "pem">,
2858
+ ): KeyPairSyncResult<string, string>;
2859
+ function generateKeyPairSync(
2860
+ type: "x25519",
2861
+ options: X25519KeyPairOptions<"pem", "der">,
2862
+ ): KeyPairSyncResult<string, Buffer>;
2863
+ function generateKeyPairSync(
2864
+ type: "x25519",
2865
+ options: X25519KeyPairOptions<"der", "pem">,
2866
+ ): KeyPairSyncResult<Buffer, string>;
2867
+ function generateKeyPairSync(
2868
+ type: "x25519",
2869
+ options: X25519KeyPairOptions<"der", "der">,
2870
+ ): KeyPairSyncResult<Buffer, Buffer>;
2871
+ function generateKeyPairSync(type: "x25519", options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2872
+ function generateKeyPairSync(
2873
+ type: "x448",
2874
+ options: X448KeyPairOptions<"pem", "pem">,
2875
+ ): KeyPairSyncResult<string, string>;
2876
+ function generateKeyPairSync(
2877
+ type: "x448",
2878
+ options: X448KeyPairOptions<"pem", "der">,
2879
+ ): KeyPairSyncResult<string, Buffer>;
2880
+ function generateKeyPairSync(
2881
+ type: "x448",
2882
+ options: X448KeyPairOptions<"der", "pem">,
2883
+ ): KeyPairSyncResult<Buffer, string>;
2884
+ function generateKeyPairSync(
2885
+ type: "x448",
2886
+ options: X448KeyPairOptions<"der", "der">,
2887
+ ): KeyPairSyncResult<Buffer, Buffer>;
2888
+ function generateKeyPairSync(type: "x448", options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2889
+ /**
2890
+ * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
2891
+ * Ed25519, Ed448, X25519, X448, and DH are currently supported.
2892
+ *
2893
+ * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
2894
+ * behaves as if `keyObject.export()` had been called on its result. Otherwise,
2895
+ * the respective part of the key is returned as a `KeyObject`.
2896
+ *
2897
+ * It is recommended to encode public keys as `'spki'` and private keys as `'pkcs8'` with encryption for long-term storage:
2898
+ *
2899
+ * ```js
2900
+ * const {
2901
+ * generateKeyPair,
2902
+ * } = await import('node:crypto');
2903
+ *
2904
+ * generateKeyPair('rsa', {
2905
+ * modulusLength: 4096,
2906
+ * publicKeyEncoding: {
2907
+ * type: 'spki',
2908
+ * format: 'pem',
2909
+ * },
2910
+ * privateKeyEncoding: {
2911
+ * type: 'pkcs8',
2912
+ * format: 'pem',
2913
+ * cipher: 'aes-256-cbc',
2914
+ * passphrase: 'top secret',
2915
+ * },
2916
+ * }, (err, publicKey, privateKey) => {
2917
+ * // Handle errors and use the generated key pair.
2918
+ * });
2919
+ * ```
2920
+ *
2921
+ * On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair.
2922
+ *
2923
+ * If this method is invoked as its `util.promisify()` ed version, it returns
2924
+ * a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
2925
+ * @since v10.12.0
2926
+ * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
2927
+ */
2928
+ function generateKeyPair(
2929
+ type: "rsa",
2930
+ options: RSAKeyPairOptions<"pem", "pem">,
2931
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2932
+ ): void;
2933
+ function generateKeyPair(
2934
+ type: "rsa",
2935
+ options: RSAKeyPairOptions<"pem", "der">,
2936
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2937
+ ): void;
2938
+ function generateKeyPair(
2939
+ type: "rsa",
2940
+ options: RSAKeyPairOptions<"der", "pem">,
2941
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2942
+ ): void;
2943
+ function generateKeyPair(
2944
+ type: "rsa",
2945
+ options: RSAKeyPairOptions<"der", "der">,
2946
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2947
+ ): void;
2948
+ function generateKeyPair(
2949
+ type: "rsa",
2950
+ options: RSAKeyPairKeyObjectOptions,
2951
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2952
+ ): void;
2953
+ function generateKeyPair(
2954
+ type: "rsa-pss",
2955
+ options: RSAPSSKeyPairOptions<"pem", "pem">,
2956
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2957
+ ): void;
2958
+ function generateKeyPair(
2959
+ type: "rsa-pss",
2960
+ options: RSAPSSKeyPairOptions<"pem", "der">,
2961
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2962
+ ): void;
2963
+ function generateKeyPair(
2964
+ type: "rsa-pss",
2965
+ options: RSAPSSKeyPairOptions<"der", "pem">,
2966
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2967
+ ): void;
2968
+ function generateKeyPair(
2969
+ type: "rsa-pss",
2970
+ options: RSAPSSKeyPairOptions<"der", "der">,
2971
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2972
+ ): void;
2973
+ function generateKeyPair(
2974
+ type: "rsa-pss",
2975
+ options: RSAPSSKeyPairKeyObjectOptions,
2976
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2977
+ ): void;
2978
+ function generateKeyPair(
2979
+ type: "dsa",
2980
+ options: DSAKeyPairOptions<"pem", "pem">,
2981
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2982
+ ): void;
2983
+ function generateKeyPair(
2984
+ type: "dsa",
2985
+ options: DSAKeyPairOptions<"pem", "der">,
2986
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2987
+ ): void;
2988
+ function generateKeyPair(
2989
+ type: "dsa",
2990
+ options: DSAKeyPairOptions<"der", "pem">,
2991
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2992
+ ): void;
2993
+ function generateKeyPair(
2994
+ type: "dsa",
2995
+ options: DSAKeyPairOptions<"der", "der">,
2996
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2997
+ ): void;
2998
+ function generateKeyPair(
2999
+ type: "dsa",
3000
+ options: DSAKeyPairKeyObjectOptions,
3001
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
3002
+ ): void;
3003
+ function generateKeyPair(
3004
+ type: "ec",
3005
+ options: ECKeyPairOptions<"pem", "pem">,
3006
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
3007
+ ): void;
3008
+ function generateKeyPair(
3009
+ type: "ec",
3010
+ options: ECKeyPairOptions<"pem", "der">,
3011
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
3012
+ ): void;
3013
+ function generateKeyPair(
3014
+ type: "ec",
3015
+ options: ECKeyPairOptions<"der", "pem">,
3016
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
3017
+ ): void;
3018
+ function generateKeyPair(
3019
+ type: "ec",
3020
+ options: ECKeyPairOptions<"der", "der">,
3021
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
3022
+ ): void;
3023
+ function generateKeyPair(
3024
+ type: "ec",
3025
+ options: ECKeyPairKeyObjectOptions,
3026
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
3027
+ ): void;
3028
+ function generateKeyPair(
3029
+ type: "ed25519",
3030
+ options: ED25519KeyPairOptions<"pem", "pem">,
3031
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
3032
+ ): void;
3033
+ function generateKeyPair(
3034
+ type: "ed25519",
3035
+ options: ED25519KeyPairOptions<"pem", "der">,
3036
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
3037
+ ): void;
3038
+ function generateKeyPair(
3039
+ type: "ed25519",
3040
+ options: ED25519KeyPairOptions<"der", "pem">,
3041
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
3042
+ ): void;
3043
+ function generateKeyPair(
3044
+ type: "ed25519",
3045
+ options: ED25519KeyPairOptions<"der", "der">,
3046
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
3047
+ ): void;
3048
+ function generateKeyPair(
3049
+ type: "ed25519",
3050
+ options: ED25519KeyPairKeyObjectOptions | undefined,
3051
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
3052
+ ): void;
3053
+ function generateKeyPair(
3054
+ type: "ed448",
3055
+ options: ED448KeyPairOptions<"pem", "pem">,
3056
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
3057
+ ): void;
3058
+ function generateKeyPair(
3059
+ type: "ed448",
3060
+ options: ED448KeyPairOptions<"pem", "der">,
3061
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
3062
+ ): void;
3063
+ function generateKeyPair(
3064
+ type: "ed448",
3065
+ options: ED448KeyPairOptions<"der", "pem">,
3066
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
3067
+ ): void;
3068
+ function generateKeyPair(
3069
+ type: "ed448",
3070
+ options: ED448KeyPairOptions<"der", "der">,
3071
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
3072
+ ): void;
3073
+ function generateKeyPair(
3074
+ type: "ed448",
3075
+ options: ED448KeyPairKeyObjectOptions | undefined,
3076
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
3077
+ ): void;
3078
+ function generateKeyPair(
3079
+ type: "x25519",
3080
+ options: X25519KeyPairOptions<"pem", "pem">,
3081
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
3082
+ ): void;
3083
+ function generateKeyPair(
3084
+ type: "x25519",
3085
+ options: X25519KeyPairOptions<"pem", "der">,
3086
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
3087
+ ): void;
3088
+ function generateKeyPair(
3089
+ type: "x25519",
3090
+ options: X25519KeyPairOptions<"der", "pem">,
3091
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
3092
+ ): void;
3093
+ function generateKeyPair(
3094
+ type: "x25519",
3095
+ options: X25519KeyPairOptions<"der", "der">,
3096
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
3097
+ ): void;
3098
+ function generateKeyPair(
3099
+ type: "x25519",
3100
+ options: X25519KeyPairKeyObjectOptions | undefined,
3101
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
3102
+ ): void;
3103
+ function generateKeyPair(
3104
+ type: "x448",
3105
+ options: X448KeyPairOptions<"pem", "pem">,
3106
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
3107
+ ): void;
3108
+ function generateKeyPair(
3109
+ type: "x448",
3110
+ options: X448KeyPairOptions<"pem", "der">,
3111
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
3112
+ ): void;
3113
+ function generateKeyPair(
3114
+ type: "x448",
3115
+ options: X448KeyPairOptions<"der", "pem">,
3116
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
3117
+ ): void;
3118
+ function generateKeyPair(
3119
+ type: "x448",
3120
+ options: X448KeyPairOptions<"der", "der">,
3121
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
3122
+ ): void;
3123
+ function generateKeyPair(
3124
+ type: "x448",
3125
+ options: X448KeyPairKeyObjectOptions | undefined,
3126
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
3127
+ ): void;
3128
+ namespace generateKeyPair {
3129
+ function __promisify__(
3130
+ type: "rsa",
3131
+ options: RSAKeyPairOptions<"pem", "pem">,
3132
+ ): Promise<{
3133
+ publicKey: string;
3134
+ privateKey: string;
3135
+ }>;
3136
+ function __promisify__(
3137
+ type: "rsa",
3138
+ options: RSAKeyPairOptions<"pem", "der">,
3139
+ ): Promise<{
3140
+ publicKey: string;
3141
+ privateKey: Buffer;
3142
+ }>;
3143
+ function __promisify__(
3144
+ type: "rsa",
3145
+ options: RSAKeyPairOptions<"der", "pem">,
3146
+ ): Promise<{
3147
+ publicKey: Buffer;
3148
+ privateKey: string;
3149
+ }>;
3150
+ function __promisify__(
3151
+ type: "rsa",
3152
+ options: RSAKeyPairOptions<"der", "der">,
3153
+ ): Promise<{
3154
+ publicKey: Buffer;
3155
+ privateKey: Buffer;
3156
+ }>;
3157
+ function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
3158
+ function __promisify__(
3159
+ type: "rsa-pss",
3160
+ options: RSAPSSKeyPairOptions<"pem", "pem">,
3161
+ ): Promise<{
3162
+ publicKey: string;
3163
+ privateKey: string;
3164
+ }>;
3165
+ function __promisify__(
3166
+ type: "rsa-pss",
3167
+ options: RSAPSSKeyPairOptions<"pem", "der">,
3168
+ ): Promise<{
3169
+ publicKey: string;
3170
+ privateKey: Buffer;
3171
+ }>;
3172
+ function __promisify__(
3173
+ type: "rsa-pss",
3174
+ options: RSAPSSKeyPairOptions<"der", "pem">,
3175
+ ): Promise<{
3176
+ publicKey: Buffer;
3177
+ privateKey: string;
3178
+ }>;
3179
+ function __promisify__(
3180
+ type: "rsa-pss",
3181
+ options: RSAPSSKeyPairOptions<"der", "der">,
3182
+ ): Promise<{
3183
+ publicKey: Buffer;
3184
+ privateKey: Buffer;
3185
+ }>;
3186
+ function __promisify__(
3187
+ type: "rsa-pss",
3188
+ options: RSAPSSKeyPairKeyObjectOptions,
3189
+ ): Promise<KeyPairKeyObjectResult>;
3190
+ function __promisify__(
3191
+ type: "dsa",
3192
+ options: DSAKeyPairOptions<"pem", "pem">,
3193
+ ): Promise<{
3194
+ publicKey: string;
3195
+ privateKey: string;
3196
+ }>;
3197
+ function __promisify__(
3198
+ type: "dsa",
3199
+ options: DSAKeyPairOptions<"pem", "der">,
3200
+ ): Promise<{
3201
+ publicKey: string;
3202
+ privateKey: Buffer;
3203
+ }>;
3204
+ function __promisify__(
3205
+ type: "dsa",
3206
+ options: DSAKeyPairOptions<"der", "pem">,
3207
+ ): Promise<{
3208
+ publicKey: Buffer;
3209
+ privateKey: string;
3210
+ }>;
3211
+ function __promisify__(
3212
+ type: "dsa",
3213
+ options: DSAKeyPairOptions<"der", "der">,
3214
+ ): Promise<{
3215
+ publicKey: Buffer;
3216
+ privateKey: Buffer;
3217
+ }>;
3218
+ function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
3219
+ function __promisify__(
3220
+ type: "ec",
3221
+ options: ECKeyPairOptions<"pem", "pem">,
3222
+ ): Promise<{
3223
+ publicKey: string;
3224
+ privateKey: string;
3225
+ }>;
3226
+ function __promisify__(
3227
+ type: "ec",
3228
+ options: ECKeyPairOptions<"pem", "der">,
3229
+ ): Promise<{
3230
+ publicKey: string;
3231
+ privateKey: Buffer;
3232
+ }>;
3233
+ function __promisify__(
3234
+ type: "ec",
3235
+ options: ECKeyPairOptions<"der", "pem">,
3236
+ ): Promise<{
3237
+ publicKey: Buffer;
3238
+ privateKey: string;
3239
+ }>;
3240
+ function __promisify__(
3241
+ type: "ec",
3242
+ options: ECKeyPairOptions<"der", "der">,
3243
+ ): Promise<{
3244
+ publicKey: Buffer;
3245
+ privateKey: Buffer;
3246
+ }>;
3247
+ function __promisify__(type: "ec", options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
3248
+ function __promisify__(
3249
+ type: "ed25519",
3250
+ options: ED25519KeyPairOptions<"pem", "pem">,
3251
+ ): Promise<{
3252
+ publicKey: string;
3253
+ privateKey: string;
3254
+ }>;
3255
+ function __promisify__(
3256
+ type: "ed25519",
3257
+ options: ED25519KeyPairOptions<"pem", "der">,
3258
+ ): Promise<{
3259
+ publicKey: string;
3260
+ privateKey: Buffer;
3261
+ }>;
3262
+ function __promisify__(
3263
+ type: "ed25519",
3264
+ options: ED25519KeyPairOptions<"der", "pem">,
3265
+ ): Promise<{
3266
+ publicKey: Buffer;
3267
+ privateKey: string;
3268
+ }>;
3269
+ function __promisify__(
3270
+ type: "ed25519",
3271
+ options: ED25519KeyPairOptions<"der", "der">,
3272
+ ): Promise<{
3273
+ publicKey: Buffer;
3274
+ privateKey: Buffer;
3275
+ }>;
3276
+ function __promisify__(
3277
+ type: "ed25519",
3278
+ options?: ED25519KeyPairKeyObjectOptions,
3279
+ ): Promise<KeyPairKeyObjectResult>;
3280
+ function __promisify__(
3281
+ type: "ed448",
3282
+ options: ED448KeyPairOptions<"pem", "pem">,
3283
+ ): Promise<{
3284
+ publicKey: string;
3285
+ privateKey: string;
3286
+ }>;
3287
+ function __promisify__(
3288
+ type: "ed448",
3289
+ options: ED448KeyPairOptions<"pem", "der">,
3290
+ ): Promise<{
3291
+ publicKey: string;
3292
+ privateKey: Buffer;
3293
+ }>;
3294
+ function __promisify__(
3295
+ type: "ed448",
3296
+ options: ED448KeyPairOptions<"der", "pem">,
3297
+ ): Promise<{
3298
+ publicKey: Buffer;
3299
+ privateKey: string;
3300
+ }>;
3301
+ function __promisify__(
3302
+ type: "ed448",
3303
+ options: ED448KeyPairOptions<"der", "der">,
3304
+ ): Promise<{
3305
+ publicKey: Buffer;
3306
+ privateKey: Buffer;
3307
+ }>;
3308
+ function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
3309
+ function __promisify__(
3310
+ type: "x25519",
3311
+ options: X25519KeyPairOptions<"pem", "pem">,
3312
+ ): Promise<{
3313
+ publicKey: string;
3314
+ privateKey: string;
3315
+ }>;
3316
+ function __promisify__(
3317
+ type: "x25519",
3318
+ options: X25519KeyPairOptions<"pem", "der">,
3319
+ ): Promise<{
3320
+ publicKey: string;
3321
+ privateKey: Buffer;
3322
+ }>;
3323
+ function __promisify__(
3324
+ type: "x25519",
3325
+ options: X25519KeyPairOptions<"der", "pem">,
3326
+ ): Promise<{
3327
+ publicKey: Buffer;
3328
+ privateKey: string;
3329
+ }>;
3330
+ function __promisify__(
3331
+ type: "x25519",
3332
+ options: X25519KeyPairOptions<"der", "der">,
3333
+ ): Promise<{
3334
+ publicKey: Buffer;
3335
+ privateKey: Buffer;
3336
+ }>;
3337
+ function __promisify__(
3338
+ type: "x25519",
3339
+ options?: X25519KeyPairKeyObjectOptions,
3340
+ ): Promise<KeyPairKeyObjectResult>;
3341
+ function __promisify__(
3342
+ type: "x448",
3343
+ options: X448KeyPairOptions<"pem", "pem">,
3344
+ ): Promise<{
3345
+ publicKey: string;
3346
+ privateKey: string;
3347
+ }>;
3348
+ function __promisify__(
3349
+ type: "x448",
3350
+ options: X448KeyPairOptions<"pem", "der">,
3351
+ ): Promise<{
3352
+ publicKey: string;
3353
+ privateKey: Buffer;
3354
+ }>;
3355
+ function __promisify__(
3356
+ type: "x448",
3357
+ options: X448KeyPairOptions<"der", "pem">,
3358
+ ): Promise<{
3359
+ publicKey: Buffer;
3360
+ privateKey: string;
3361
+ }>;
3362
+ function __promisify__(
3363
+ type: "x448",
3364
+ options: X448KeyPairOptions<"der", "der">,
3365
+ ): Promise<{
3366
+ publicKey: Buffer;
3367
+ privateKey: Buffer;
3368
+ }>;
3369
+ function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
3370
+ }
3371
+ /**
3372
+ * Calculates and returns the signature for `data` using the given private key and
3373
+ * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is
3374
+ * dependent upon the key type (especially Ed25519 and Ed448).
3375
+ *
3376
+ * If `key` is not a `KeyObject`, this function behaves as if `key` had been
3377
+ * passed to {@link createPrivateKey}. If it is an object, the following
3378
+ * additional properties can be passed:
3379
+ *
3380
+ * If the `callback` function is provided this function uses libuv's threadpool.
3381
+ * @since v12.0.0
3382
+ */
3383
+ function sign(
3384
+ algorithm: string | null | undefined,
3385
+ data: NodeJS.ArrayBufferView,
3386
+ key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
3387
+ ): Buffer;
3388
+ function sign(
3389
+ algorithm: string | null | undefined,
3390
+ data: NodeJS.ArrayBufferView,
3391
+ key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
3392
+ callback: (error: Error | null, data: Buffer) => void,
3393
+ ): void;
3394
+ /**
3395
+ * Verifies the given signature for `data` using the given key and algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is dependent upon the
3396
+ * key type (especially Ed25519 and Ed448).
3397
+ *
3398
+ * If `key` is not a `KeyObject`, this function behaves as if `key` had been
3399
+ * passed to {@link createPublicKey}. If it is an object, the following
3400
+ * additional properties can be passed:
3401
+ *
3402
+ * The `signature` argument is the previously calculated signature for the `data`.
3403
+ *
3404
+ * Because public keys can be derived from private keys, a private key or a public
3405
+ * key may be passed for `key`.
3406
+ *
3407
+ * If the `callback` function is provided this function uses libuv's threadpool.
3408
+ * @since v12.0.0
3409
+ */
3410
+ function verify(
3411
+ algorithm: string | null | undefined,
3412
+ data: NodeJS.ArrayBufferView,
3413
+ key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
3414
+ signature: NodeJS.ArrayBufferView,
3415
+ ): boolean;
3416
+ function verify(
3417
+ algorithm: string | null | undefined,
3418
+ data: NodeJS.ArrayBufferView,
3419
+ key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
3420
+ signature: NodeJS.ArrayBufferView,
3421
+ callback: (error: Error | null, result: boolean) => void,
3422
+ ): void;
3423
+ /**
3424
+ * Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`.
3425
+ * Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'` (for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES).
3426
+ * @since v13.9.0, v12.17.0
3427
+ */
3428
+ function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer;
3429
+ /**
3430
+ * A utility for creating one-shot hash digests of data. It can be faster than the object-based `crypto.createHash()` when hashing a smaller amount of data
3431
+ * (<= 5MB) that's readily available. If the data can be big or if it is streamed, it's still recommended to use `crypto.createHash()` instead. The `algorithm`
3432
+ * is dependent on the available algorithms supported by the version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. On recent releases
3433
+ * of OpenSSL, `openssl list -digest-algorithms` will display the available digest algorithms.
3434
+ *
3435
+ * Example:
3436
+ *
3437
+ * ```js
3438
+ * import crypto from 'node:crypto';
3439
+ * import { Buffer } from 'node:buffer';
3440
+ *
3441
+ * // Hashing a string and return the result as a hex-encoded string.
3442
+ * const string = 'Node.js';
3443
+ * // 10b3493287f831e81a438811a1ffba01f8cec4b7
3444
+ * console.log(crypto.hash('sha1', string));
3445
+ *
3446
+ * // Encode a base64-encoded string into a Buffer, hash it and return
3447
+ * // the result as a buffer.
3448
+ * const base64 = 'Tm9kZS5qcw==';
3449
+ * // <Buffer 10 b3 49 32 87 f8 31 e8 1a 43 88 11 a1 ff ba 01 f8 ce c4 b7>
3450
+ * console.log(crypto.hash('sha1', Buffer.from(base64, 'base64'), 'buffer'));
3451
+ * ```
3452
+ * @since v21.7.0, v20.12.0
3453
+ * @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different input encoding is desired for a string input, user
3454
+ * could encode the string into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing the encoded `TypedArray` into this API instead.
3455
+ * @param [outputEncoding='hex'] [Encoding](https://nodejs.org/docs/latest-v20.x/api/buffer.html#buffers-and-character-encodings) used to encode the returned digest.
3456
+ */
3457
+ function hash(algorithm: string, data: BinaryLike, outputEncoding?: BinaryToTextEncoding): string;
3458
+ function hash(algorithm: string, data: BinaryLike, outputEncoding: "buffer"): Buffer;
3459
+ function hash(
3460
+ algorithm: string,
3461
+ data: BinaryLike,
3462
+ outputEncoding?: BinaryToTextEncoding | "buffer",
3463
+ ): string | Buffer;
3464
+ type CipherMode = "cbc" | "ccm" | "cfb" | "ctr" | "ecb" | "gcm" | "ocb" | "ofb" | "stream" | "wrap" | "xts";
3465
+ interface CipherInfoOptions {
3466
+ /**
3467
+ * A test key length.
3468
+ */
3469
+ keyLength?: number | undefined;
3470
+ /**
3471
+ * A test IV length.
3472
+ */
3473
+ ivLength?: number | undefined;
3474
+ }
3475
+ interface CipherInfo {
3476
+ /**
3477
+ * The name of the cipher.
3478
+ */
3479
+ name: string;
3480
+ /**
3481
+ * The nid of the cipher.
3482
+ */
3483
+ nid: number;
3484
+ /**
3485
+ * The block size of the cipher in bytes.
3486
+ * This property is omitted when mode is 'stream'.
3487
+ */
3488
+ blockSize?: number | undefined;
3489
+ /**
3490
+ * The expected or default initialization vector length in bytes.
3491
+ * This property is omitted if the cipher does not use an initialization vector.
3492
+ */
3493
+ ivLength?: number | undefined;
3494
+ /**
3495
+ * The expected or default key length in bytes.
3496
+ */
3497
+ keyLength: number;
3498
+ /**
3499
+ * The cipher mode.
3500
+ */
3501
+ mode: CipherMode;
3502
+ }
3503
+ /**
3504
+ * Returns information about a given cipher.
3505
+ *
3506
+ * Some ciphers accept variable length keys and initialization vectors. By default,
3507
+ * the `crypto.getCipherInfo()` method will return the default values for these
3508
+ * ciphers. To test if a given key length or iv length is acceptable for given
3509
+ * cipher, use the `keyLength` and `ivLength` options. If the given values are
3510
+ * unacceptable, `undefined` will be returned.
3511
+ * @since v15.0.0
3512
+ * @param nameOrNid The name or nid of the cipher to query.
3513
+ */
3514
+ function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined;
3515
+ /**
3516
+ * HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
3517
+ *
3518
+ * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an errors occurs while deriving the key, `err` will be set;
3519
+ * otherwise `err` will be `null`. The successfully generated `derivedKey` will
3520
+ * be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any
3521
+ * of the input arguments specify invalid values or types.
3522
+ *
3523
+ * ```js
3524
+ * import { Buffer } from 'node:buffer';
3525
+ * const {
3526
+ * hkdf,
3527
+ * } = await import('node:crypto');
3528
+ *
3529
+ * hkdf('sha512', 'key', 'salt', 'info', 64, (err, derivedKey) => {
3530
+ * if (err) throw err;
3531
+ * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653'
3532
+ * });
3533
+ * ```
3534
+ * @since v15.0.0
3535
+ * @param digest The digest algorithm to use.
3536
+ * @param ikm The input keying material. Must be provided but can be zero-length.
3537
+ * @param salt The salt value. Must be provided but can be zero-length.
3538
+ * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes.
3539
+ * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512`
3540
+ * generates 64-byte hashes, making the maximum HKDF output 16320 bytes).
3541
+ */
3542
+ function hkdf(
3543
+ digest: string,
3544
+ irm: BinaryLike | KeyObject,
3545
+ salt: BinaryLike,
3546
+ info: BinaryLike,
3547
+ keylen: number,
3548
+ callback: (err: Error | null, derivedKey: ArrayBuffer) => void,
3549
+ ): void;
3550
+ /**
3551
+ * Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The
3552
+ * given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
3553
+ *
3554
+ * The successfully generated `derivedKey` will be returned as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer).
3555
+ *
3556
+ * An error will be thrown if any of the input arguments specify invalid values or
3557
+ * types, or if the derived key cannot be generated.
3558
+ *
3559
+ * ```js
3560
+ * import { Buffer } from 'node:buffer';
3561
+ * const {
3562
+ * hkdfSync,
3563
+ * } = await import('node:crypto');
3564
+ *
3565
+ * const derivedKey = hkdfSync('sha512', 'key', 'salt', 'info', 64);
3566
+ * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653'
3567
+ * ```
3568
+ * @since v15.0.0
3569
+ * @param digest The digest algorithm to use.
3570
+ * @param ikm The input keying material. Must be provided but can be zero-length.
3571
+ * @param salt The salt value. Must be provided but can be zero-length.
3572
+ * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes.
3573
+ * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512`
3574
+ * generates 64-byte hashes, making the maximum HKDF output 16320 bytes).
3575
+ */
3576
+ function hkdfSync(
3577
+ digest: string,
3578
+ ikm: BinaryLike | KeyObject,
3579
+ salt: BinaryLike,
3580
+ info: BinaryLike,
3581
+ keylen: number,
3582
+ ): ArrayBuffer;
3583
+ interface SecureHeapUsage {
3584
+ /**
3585
+ * The total allocated secure heap size as specified using the `--secure-heap=n` command-line flag.
3586
+ */
3587
+ total: number;
3588
+ /**
3589
+ * The minimum allocation from the secure heap as specified using the `--secure-heap-min` command-line flag.
3590
+ */
3591
+ min: number;
3592
+ /**
3593
+ * The total number of bytes currently allocated from the secure heap.
3594
+ */
3595
+ used: number;
3596
+ /**
3597
+ * The calculated ratio of `used` to `total` allocated bytes.
3598
+ */
3599
+ utilization: number;
3600
+ }
3601
+ /**
3602
+ * @since v15.6.0
3603
+ */
3604
+ function secureHeapUsed(): SecureHeapUsage;
3605
+ interface RandomUUIDOptions {
3606
+ /**
3607
+ * By default, to improve performance,
3608
+ * Node.js will pre-emptively generate and persistently cache enough
3609
+ * random data to generate up to 128 random UUIDs. To generate a UUID
3610
+ * without using the cache, set `disableEntropyCache` to `true`.
3611
+ *
3612
+ * @default `false`
3613
+ */
3614
+ disableEntropyCache?: boolean | undefined;
3615
+ }
3616
+ type UUID = `${string}-${string}-${string}-${string}-${string}`;
3617
+ /**
3618
+ * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
3619
+ * cryptographic pseudorandom number generator.
3620
+ * @since v15.6.0, v14.17.0
3621
+ */
3622
+ function randomUUID(options?: RandomUUIDOptions): UUID;
3623
+ interface X509CheckOptions {
3624
+ /**
3625
+ * @default 'always'
3626
+ */
3627
+ subject?: "always" | "default" | "never";
3628
+ /**
3629
+ * @default true
3630
+ */
3631
+ wildcards?: boolean;
3632
+ /**
3633
+ * @default true
3634
+ */
3635
+ partialWildcards?: boolean;
3636
+ /**
3637
+ * @default false
3638
+ */
3639
+ multiLabelWildcards?: boolean;
3640
+ /**
3641
+ * @default false
3642
+ */
3643
+ singleLabelSubdomains?: boolean;
3644
+ }
3645
+ /**
3646
+ * Encapsulates an X509 certificate and provides read-only access to
3647
+ * its information.
3648
+ *
3649
+ * ```js
3650
+ * const { X509Certificate } = await import('node:crypto');
3651
+ *
3652
+ * const x509 = new X509Certificate('{... pem encoded cert ...}');
3653
+ *
3654
+ * console.log(x509.subject);
3655
+ * ```
3656
+ * @since v15.6.0
3657
+ */
3658
+ class X509Certificate {
3659
+ /**
3660
+ * Will be \`true\` if this is a Certificate Authority (CA) certificate.
3661
+ * @since v15.6.0
3662
+ */
3663
+ readonly ca: boolean;
3664
+ /**
3665
+ * The SHA-1 fingerprint of this certificate.
3666
+ *
3667
+ * Because SHA-1 is cryptographically broken and because the security of SHA-1 is
3668
+ * significantly worse than that of algorithms that are commonly used to sign
3669
+ * certificates, consider using `x509.fingerprint256` instead.
3670
+ * @since v15.6.0
3671
+ */
3672
+ readonly fingerprint: string;
3673
+ /**
3674
+ * The SHA-256 fingerprint of this certificate.
3675
+ * @since v15.6.0
3676
+ */
3677
+ readonly fingerprint256: string;
3678
+ /**
3679
+ * The SHA-512 fingerprint of this certificate.
3680
+ *
3681
+ * Because computing the SHA-256 fingerprint is usually faster and because it is
3682
+ * only half the size of the SHA-512 fingerprint, `x509.fingerprint256` may be
3683
+ * a better choice. While SHA-512 presumably provides a higher level of security in
3684
+ * general, the security of SHA-256 matches that of most algorithms that are
3685
+ * commonly used to sign certificates.
3686
+ * @since v17.2.0, v16.14.0
3687
+ */
3688
+ readonly fingerprint512: string;
3689
+ /**
3690
+ * The complete subject of this certificate.
3691
+ * @since v15.6.0
3692
+ */
3693
+ readonly subject: string;
3694
+ /**
3695
+ * The subject alternative name specified for this certificate.
3696
+ *
3697
+ * This is a comma-separated list of subject alternative names. Each entry begins
3698
+ * with a string identifying the kind of the subject alternative name followed by
3699
+ * a colon and the value associated with the entry.
3700
+ *
3701
+ * Earlier versions of Node.js incorrectly assumed that it is safe to split this
3702
+ * property at the two-character sequence `', '` (see [CVE-2021-44532](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44532)). However,
3703
+ * both malicious and legitimate certificates can contain subject alternative names
3704
+ * that include this sequence when represented as a string.
3705
+ *
3706
+ * After the prefix denoting the type of the entry, the remainder of each entry
3707
+ * might be enclosed in quotes to indicate that the value is a JSON string literal.
3708
+ * For backward compatibility, Node.js only uses JSON string literals within this
3709
+ * property when necessary to avoid ambiguity. Third-party code should be prepared
3710
+ * to handle both possible entry formats.
3711
+ * @since v15.6.0
3712
+ */
3713
+ readonly subjectAltName: string | undefined;
3714
+ /**
3715
+ * A textual representation of the certificate's authority information access
3716
+ * extension.
3717
+ *
3718
+ * This is a line feed separated list of access descriptions. Each line begins with
3719
+ * the access method and the kind of the access location, followed by a colon and
3720
+ * the value associated with the access location.
3721
+ *
3722
+ * After the prefix denoting the access method and the kind of the access location,
3723
+ * the remainder of each line might be enclosed in quotes to indicate that the
3724
+ * value is a JSON string literal. For backward compatibility, Node.js only uses
3725
+ * JSON string literals within this property when necessary to avoid ambiguity.
3726
+ * Third-party code should be prepared to handle both possible entry formats.
3727
+ * @since v15.6.0
3728
+ */
3729
+ readonly infoAccess: string | undefined;
3730
+ /**
3731
+ * An array detailing the key usages for this certificate.
3732
+ * @since v15.6.0
3733
+ */
3734
+ readonly keyUsage: string[];
3735
+ /**
3736
+ * The issuer identification included in this certificate.
3737
+ * @since v15.6.0
3738
+ */
3739
+ readonly issuer: string;
3740
+ /**
3741
+ * The issuer certificate or `undefined` if the issuer certificate is not
3742
+ * available.
3743
+ * @since v15.9.0
3744
+ */
3745
+ readonly issuerCertificate?: X509Certificate | undefined;
3746
+ /**
3747
+ * The public key `KeyObject` for this certificate.
3748
+ * @since v15.6.0
3749
+ */
3750
+ readonly publicKey: KeyObject;
3751
+ /**
3752
+ * A `Buffer` containing the DER encoding of this certificate.
3753
+ * @since v15.6.0
3754
+ */
3755
+ readonly raw: Buffer;
3756
+ /**
3757
+ * The serial number of this certificate.
3758
+ *
3759
+ * Serial numbers are assigned by certificate authorities and do not uniquely
3760
+ * identify certificates. Consider using `x509.fingerprint256` as a unique
3761
+ * identifier instead.
3762
+ * @since v15.6.0
3763
+ */
3764
+ readonly serialNumber: string;
3765
+ /**
3766
+ * The date/time from which this certificate is considered valid.
3767
+ * @since v15.6.0
3768
+ */
3769
+ readonly validFrom: string;
3770
+ /**
3771
+ * The date/time until which this certificate is considered valid.
3772
+ * @since v15.6.0
3773
+ */
3774
+ readonly validTo: string;
3775
+ constructor(buffer: BinaryLike);
3776
+ /**
3777
+ * Checks whether the certificate matches the given email address.
3778
+ *
3779
+ * If the `'subject'` option is undefined or set to `'default'`, the certificate
3780
+ * subject is only considered if the subject alternative name extension either does
3781
+ * not exist or does not contain any email addresses.
3782
+ *
3783
+ * If the `'subject'` option is set to `'always'` and if the subject alternative
3784
+ * name extension either does not exist or does not contain a matching email
3785
+ * address, the certificate subject is considered.
3786
+ *
3787
+ * If the `'subject'` option is set to `'never'`, the certificate subject is never
3788
+ * considered, even if the certificate contains no subject alternative names.
3789
+ * @since v15.6.0
3790
+ * @return Returns `email` if the certificate matches, `undefined` if it does not.
3791
+ */
3792
+ checkEmail(email: string, options?: Pick<X509CheckOptions, "subject">): string | undefined;
3793
+ /**
3794
+ * Checks whether the certificate matches the given host name.
3795
+ *
3796
+ * If the certificate matches the given host name, the matching subject name is
3797
+ * returned. The returned name might be an exact match (e.g., `foo.example.com`)
3798
+ * or it might contain wildcards (e.g., `*.example.com`). Because host name
3799
+ * comparisons are case-insensitive, the returned subject name might also differ
3800
+ * from the given `name` in capitalization.
3801
+ *
3802
+ * If the `'subject'` option is undefined or set to `'default'`, the certificate
3803
+ * subject is only considered if the subject alternative name extension either does
3804
+ * not exist or does not contain any DNS names. This behavior is consistent with [RFC 2818](https://www.rfc-editor.org/rfc/rfc2818.txt) ("HTTP Over TLS").
3805
+ *
3806
+ * If the `'subject'` option is set to `'always'` and if the subject alternative
3807
+ * name extension either does not exist or does not contain a matching DNS name,
3808
+ * the certificate subject is considered.
3809
+ *
3810
+ * If the `'subject'` option is set to `'never'`, the certificate subject is never
3811
+ * considered, even if the certificate contains no subject alternative names.
3812
+ * @since v15.6.0
3813
+ * @return Returns a subject name that matches `name`, or `undefined` if no subject name matches `name`.
3814
+ */
3815
+ checkHost(name: string, options?: X509CheckOptions): string | undefined;
3816
+ /**
3817
+ * Checks whether the certificate matches the given IP address (IPv4 or IPv6).
3818
+ *
3819
+ * Only [RFC 5280](https://www.rfc-editor.org/rfc/rfc5280.txt) `iPAddress` subject alternative names are considered, and they
3820
+ * must match the given `ip` address exactly. Other subject alternative names as
3821
+ * well as the subject field of the certificate are ignored.
3822
+ * @since v15.6.0
3823
+ * @return Returns `ip` if the certificate matches, `undefined` if it does not.
3824
+ */
3825
+ checkIP(ip: string): string | undefined;
3826
+ /**
3827
+ * Checks whether this certificate was issued by the given `otherCert`.
3828
+ * @since v15.6.0
3829
+ */
3830
+ checkIssued(otherCert: X509Certificate): boolean;
3831
+ /**
3832
+ * Checks whether the public key for this certificate is consistent with
3833
+ * the given private key.
3834
+ * @since v15.6.0
3835
+ * @param privateKey A private key.
3836
+ */
3837
+ checkPrivateKey(privateKey: KeyObject): boolean;
3838
+ /**
3839
+ * There is no standard JSON encoding for X509 certificates. The`toJSON()` method returns a string containing the PEM encoded
3840
+ * certificate.
3841
+ * @since v15.6.0
3842
+ */
3843
+ toJSON(): string;
3844
+ /**
3845
+ * Returns information about this certificate using the legacy `certificate object` encoding.
3846
+ * @since v15.6.0
3847
+ */
3848
+ toLegacyObject(): PeerCertificate;
3849
+ /**
3850
+ * Returns the PEM-encoded certificate.
3851
+ * @since v15.6.0
3852
+ */
3853
+ toString(): string;
3854
+ /**
3855
+ * Verifies that this certificate was signed by the given public key.
3856
+ * Does not perform any other validation checks on the certificate.
3857
+ * @since v15.6.0
3858
+ * @param publicKey A public key.
3859
+ */
3860
+ verify(publicKey: KeyObject): boolean;
3861
+ }
3862
+ type LargeNumberLike = NodeJS.ArrayBufferView | SharedArrayBuffer | ArrayBuffer | bigint;
3863
+ interface GeneratePrimeOptions {
3864
+ add?: LargeNumberLike | undefined;
3865
+ rem?: LargeNumberLike | undefined;
3866
+ /**
3867
+ * @default false
3868
+ */
3869
+ safe?: boolean | undefined;
3870
+ bigint?: boolean | undefined;
3871
+ }
3872
+ interface GeneratePrimeOptionsBigInt extends GeneratePrimeOptions {
3873
+ bigint: true;
3874
+ }
3875
+ interface GeneratePrimeOptionsArrayBuffer extends GeneratePrimeOptions {
3876
+ bigint?: false | undefined;
3877
+ }
3878
+ /**
3879
+ * Generates a pseudorandom prime of `size` bits.
3880
+ *
3881
+ * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime.
3882
+ *
3883
+ * The `options.add` and `options.rem` parameters can be used to enforce additional
3884
+ * requirements, e.g., for Diffie-Hellman:
3885
+ *
3886
+ * * If `options.add` and `options.rem` are both set, the prime will satisfy the
3887
+ * condition that `prime % add = rem`.
3888
+ * * If only `options.add` is set and `options.safe` is not `true`, the prime will
3889
+ * satisfy the condition that `prime % add = 1`.
3890
+ * * If only `options.add` is set and `options.safe` is set to `true`, the prime
3891
+ * will instead satisfy the condition that `prime % add = 3`. This is necessary
3892
+ * because `prime % add = 1` for `options.add > 2` would contradict the condition
3893
+ * enforced by `options.safe`.
3894
+ * * `options.rem` is ignored if `options.add` is not given.
3895
+ *
3896
+ * Both `options.add` and `options.rem` must be encoded as big-endian sequences
3897
+ * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`.
3898
+ *
3899
+ * By default, the prime is encoded as a big-endian sequence of octets
3900
+ * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
3901
+ * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided.
3902
+ * @since v15.8.0
3903
+ * @param size The size (in bits) of the prime to generate.
3904
+ */
3905
+ function generatePrime(size: number, callback: (err: Error | null, prime: ArrayBuffer) => void): void;
3906
+ function generatePrime(
3907
+ size: number,
3908
+ options: GeneratePrimeOptionsBigInt,
3909
+ callback: (err: Error | null, prime: bigint) => void,
3910
+ ): void;
3911
+ function generatePrime(
3912
+ size: number,
3913
+ options: GeneratePrimeOptionsArrayBuffer,
3914
+ callback: (err: Error | null, prime: ArrayBuffer) => void,
3915
+ ): void;
3916
+ function generatePrime(
3917
+ size: number,
3918
+ options: GeneratePrimeOptions,
3919
+ callback: (err: Error | null, prime: ArrayBuffer | bigint) => void,
3920
+ ): void;
3921
+ /**
3922
+ * Generates a pseudorandom prime of `size` bits.
3923
+ *
3924
+ * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime.
3925
+ *
3926
+ * The `options.add` and `options.rem` parameters can be used to enforce additional
3927
+ * requirements, e.g., for Diffie-Hellman:
3928
+ *
3929
+ * * If `options.add` and `options.rem` are both set, the prime will satisfy the
3930
+ * condition that `prime % add = rem`.
3931
+ * * If only `options.add` is set and `options.safe` is not `true`, the prime will
3932
+ * satisfy the condition that `prime % add = 1`.
3933
+ * * If only `options.add` is set and `options.safe` is set to `true`, the prime
3934
+ * will instead satisfy the condition that `prime % add = 3`. This is necessary
3935
+ * because `prime % add = 1` for `options.add > 2` would contradict the condition
3936
+ * enforced by `options.safe`.
3937
+ * * `options.rem` is ignored if `options.add` is not given.
3938
+ *
3939
+ * Both `options.add` and `options.rem` must be encoded as big-endian sequences
3940
+ * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`.
3941
+ *
3942
+ * By default, the prime is encoded as a big-endian sequence of octets
3943
+ * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
3944
+ * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided.
3945
+ * @since v15.8.0
3946
+ * @param size The size (in bits) of the prime to generate.
3947
+ */
3948
+ function generatePrimeSync(size: number): ArrayBuffer;
3949
+ function generatePrimeSync(size: number, options: GeneratePrimeOptionsBigInt): bigint;
3950
+ function generatePrimeSync(size: number, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer;
3951
+ function generatePrimeSync(size: number, options: GeneratePrimeOptions): ArrayBuffer | bigint;
3952
+ interface CheckPrimeOptions {
3953
+ /**
3954
+ * The number of Miller-Rabin probabilistic primality iterations to perform.
3955
+ * When the value is 0 (zero), a number of checks is used that yields a false positive rate of at most `2**-64` for random input.
3956
+ * Care must be used when selecting a number of checks.
3957
+ * Refer to the OpenSSL documentation for the BN_is_prime_ex function nchecks options for more details.
3958
+ *
3959
+ * @default 0
3960
+ */
3961
+ checks?: number | undefined;
3962
+ }
3963
+ /**
3964
+ * Checks the primality of the `candidate`.
3965
+ * @since v15.8.0
3966
+ * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length.
3967
+ */
3968
+ function checkPrime(value: LargeNumberLike, callback: (err: Error | null, result: boolean) => void): void;
3969
+ function checkPrime(
3970
+ value: LargeNumberLike,
3971
+ options: CheckPrimeOptions,
3972
+ callback: (err: Error | null, result: boolean) => void,
3973
+ ): void;
3974
+ /**
3975
+ * Checks the primality of the `candidate`.
3976
+ * @since v15.8.0
3977
+ * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length.
3978
+ * @return `true` if the candidate is a prime with an error probability less than `0.25 ** options.checks`.
3979
+ */
3980
+ function checkPrimeSync(candidate: LargeNumberLike, options?: CheckPrimeOptions): boolean;
3981
+ /**
3982
+ * Load and set the `engine` for some or all OpenSSL functions (selected by flags).
3983
+ *
3984
+ * `engine` could be either an id or a path to the engine's shared library.
3985
+ *
3986
+ * The optional `flags` argument uses `ENGINE_METHOD_ALL` by default. The `flags` is a bit field taking one of or a mix of the following flags (defined in `crypto.constants`):
3987
+ *
3988
+ * * `crypto.constants.ENGINE_METHOD_RSA`
3989
+ * * `crypto.constants.ENGINE_METHOD_DSA`
3990
+ * * `crypto.constants.ENGINE_METHOD_DH`
3991
+ * * `crypto.constants.ENGINE_METHOD_RAND`
3992
+ * * `crypto.constants.ENGINE_METHOD_EC`
3993
+ * * `crypto.constants.ENGINE_METHOD_CIPHERS`
3994
+ * * `crypto.constants.ENGINE_METHOD_DIGESTS`
3995
+ * * `crypto.constants.ENGINE_METHOD_PKEY_METHS`
3996
+ * * `crypto.constants.ENGINE_METHOD_PKEY_ASN1_METHS`
3997
+ * * `crypto.constants.ENGINE_METHOD_ALL`
3998
+ * * `crypto.constants.ENGINE_METHOD_NONE`
3999
+ * @since v0.11.11
4000
+ * @param flags
4001
+ */
4002
+ function setEngine(engine: string, flags?: number): void;
4003
+ /**
4004
+ * A convenient alias for {@link webcrypto.getRandomValues}. This
4005
+ * implementation is not compliant with the Web Crypto spec, to write
4006
+ * web-compatible code use {@link webcrypto.getRandomValues} instead.
4007
+ * @since v17.4.0
4008
+ * @return Returns `typedArray`.
4009
+ */
4010
+ function getRandomValues<T extends webcrypto.BufferSource>(typedArray: T): T;
4011
+ /**
4012
+ * A convenient alias for `crypto.webcrypto.subtle`.
4013
+ * @since v17.4.0
4014
+ */
4015
+ const subtle: webcrypto.SubtleCrypto;
4016
+ /**
4017
+ * An implementation of the Web Crypto API standard.
4018
+ *
4019
+ * See the {@link https://nodejs.org/docs/latest/api/webcrypto.html Web Crypto API documentation} for details.
4020
+ * @since v15.0.0
4021
+ */
4022
+ const webcrypto: webcrypto.Crypto;
4023
+ namespace webcrypto {
4024
+ type BufferSource = ArrayBufferView | ArrayBuffer;
4025
+ type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
4026
+ type KeyType = "private" | "public" | "secret";
4027
+ type KeyUsage =
4028
+ | "decrypt"
4029
+ | "deriveBits"
4030
+ | "deriveKey"
4031
+ | "encrypt"
4032
+ | "sign"
4033
+ | "unwrapKey"
4034
+ | "verify"
4035
+ | "wrapKey";
4036
+ type AlgorithmIdentifier = Algorithm | string;
4037
+ type HashAlgorithmIdentifier = AlgorithmIdentifier;
4038
+ type NamedCurve = string;
4039
+ type BigInteger = Uint8Array;
4040
+ interface AesCbcParams extends Algorithm {
4041
+ iv: BufferSource;
4042
+ }
4043
+ interface AesCtrParams extends Algorithm {
4044
+ counter: BufferSource;
4045
+ length: number;
4046
+ }
4047
+ interface AesDerivedKeyParams extends Algorithm {
4048
+ length: number;
4049
+ }
4050
+ interface AesGcmParams extends Algorithm {
4051
+ additionalData?: BufferSource;
4052
+ iv: BufferSource;
4053
+ tagLength?: number;
4054
+ }
4055
+ interface AesKeyAlgorithm extends KeyAlgorithm {
4056
+ length: number;
4057
+ }
4058
+ interface AesKeyGenParams extends Algorithm {
4059
+ length: number;
4060
+ }
4061
+ interface Algorithm {
4062
+ name: string;
4063
+ }
4064
+ interface EcKeyAlgorithm extends KeyAlgorithm {
4065
+ namedCurve: NamedCurve;
4066
+ }
4067
+ interface EcKeyGenParams extends Algorithm {
4068
+ namedCurve: NamedCurve;
4069
+ }
4070
+ interface EcKeyImportParams extends Algorithm {
4071
+ namedCurve: NamedCurve;
4072
+ }
4073
+ interface EcdhKeyDeriveParams extends Algorithm {
4074
+ public: CryptoKey;
4075
+ }
4076
+ interface EcdsaParams extends Algorithm {
4077
+ hash: HashAlgorithmIdentifier;
4078
+ }
4079
+ interface Ed448Params extends Algorithm {
4080
+ context?: BufferSource;
4081
+ }
4082
+ interface HkdfParams extends Algorithm {
4083
+ hash: HashAlgorithmIdentifier;
4084
+ info: BufferSource;
4085
+ salt: BufferSource;
4086
+ }
4087
+ interface HmacImportParams extends Algorithm {
4088
+ hash: HashAlgorithmIdentifier;
4089
+ length?: number;
4090
+ }
4091
+ interface HmacKeyAlgorithm extends KeyAlgorithm {
4092
+ hash: KeyAlgorithm;
4093
+ length: number;
4094
+ }
4095
+ interface HmacKeyGenParams extends Algorithm {
4096
+ hash: HashAlgorithmIdentifier;
4097
+ length?: number;
4098
+ }
4099
+ interface JsonWebKey {
4100
+ alg?: string;
4101
+ crv?: string;
4102
+ d?: string;
4103
+ dp?: string;
4104
+ dq?: string;
4105
+ e?: string;
4106
+ ext?: boolean;
4107
+ k?: string;
4108
+ key_ops?: string[];
4109
+ kty?: string;
4110
+ n?: string;
4111
+ oth?: RsaOtherPrimesInfo[];
4112
+ p?: string;
4113
+ q?: string;
4114
+ qi?: string;
4115
+ use?: string;
4116
+ x?: string;
4117
+ y?: string;
4118
+ }
4119
+ interface KeyAlgorithm {
4120
+ name: string;
4121
+ }
4122
+ interface Pbkdf2Params extends Algorithm {
4123
+ hash: HashAlgorithmIdentifier;
4124
+ iterations: number;
4125
+ salt: BufferSource;
4126
+ }
4127
+ interface RsaHashedImportParams extends Algorithm {
4128
+ hash: HashAlgorithmIdentifier;
4129
+ }
4130
+ interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
4131
+ hash: KeyAlgorithm;
4132
+ }
4133
+ interface RsaHashedKeyGenParams extends RsaKeyGenParams {
4134
+ hash: HashAlgorithmIdentifier;
4135
+ }
4136
+ interface RsaKeyAlgorithm extends KeyAlgorithm {
4137
+ modulusLength: number;
4138
+ publicExponent: BigInteger;
4139
+ }
4140
+ interface RsaKeyGenParams extends Algorithm {
4141
+ modulusLength: number;
4142
+ publicExponent: BigInteger;
4143
+ }
4144
+ interface RsaOaepParams extends Algorithm {
4145
+ label?: BufferSource;
4146
+ }
4147
+ interface RsaOtherPrimesInfo {
4148
+ d?: string;
4149
+ r?: string;
4150
+ t?: string;
4151
+ }
4152
+ interface RsaPssParams extends Algorithm {
4153
+ saltLength: number;
4154
+ }
4155
+ /**
4156
+ * Importing the `webcrypto` object (`import { webcrypto } from 'node:crypto'`) gives an instance of the `Crypto` class.
4157
+ * `Crypto` is a singleton that provides access to the remainder of the crypto API.
4158
+ * @since v15.0.0
4159
+ */
4160
+ interface Crypto {
4161
+ /**
4162
+ * Provides access to the `SubtleCrypto` API.
4163
+ * @since v15.0.0
4164
+ */
4165
+ readonly subtle: SubtleCrypto;
4166
+ /**
4167
+ * Generates cryptographically strong random values.
4168
+ * The given `typedArray` is filled with random values, and a reference to `typedArray` is returned.
4169
+ *
4170
+ * The given `typedArray` must be an integer-based instance of {@link NodeJS.TypedArray}, i.e. `Float32Array` and `Float64Array` are not accepted.
4171
+ *
4172
+ * An error will be thrown if the given `typedArray` is larger than 65,536 bytes.
4173
+ * @since v15.0.0
4174
+ */
4175
+ getRandomValues<T extends Exclude<NodeJS.TypedArray, Float32Array | Float64Array>>(typedArray: T): T;
4176
+ /**
4177
+ * Generates a random {@link https://www.rfc-editor.org/rfc/rfc4122.txt RFC 4122} version 4 UUID.
4178
+ * The UUID is generated using a cryptographic pseudorandom number generator.
4179
+ * @since v16.7.0
4180
+ */
4181
+ randomUUID(): UUID;
4182
+ CryptoKey: CryptoKeyConstructor;
4183
+ }
4184
+ // This constructor throws ILLEGAL_CONSTRUCTOR so it should not be newable.
4185
+ interface CryptoKeyConstructor {
4186
+ /** Illegal constructor */
4187
+ (_: { readonly _: unique symbol }): never; // Allows instanceof to work but not be callable by the user.
4188
+ readonly length: 0;
4189
+ readonly name: "CryptoKey";
4190
+ readonly prototype: CryptoKey;
4191
+ }
4192
+ /**
4193
+ * @since v15.0.0
4194
+ */
4195
+ interface CryptoKey {
4196
+ /**
4197
+ * An object detailing the algorithm for which the key can be used along with additional algorithm-specific parameters.
4198
+ * @since v15.0.0
4199
+ */
4200
+ readonly algorithm: KeyAlgorithm;
4201
+ /**
4202
+ * When `true`, the {@link CryptoKey} can be extracted using either `subtleCrypto.exportKey()` or `subtleCrypto.wrapKey()`.
4203
+ * @since v15.0.0
4204
+ */
4205
+ readonly extractable: boolean;
4206
+ /**
4207
+ * A string identifying whether the key is a symmetric (`'secret'`) or asymmetric (`'private'` or `'public'`) key.
4208
+ * @since v15.0.0
4209
+ */
4210
+ readonly type: KeyType;
4211
+ /**
4212
+ * An array of strings identifying the operations for which the key may be used.
4213
+ *
4214
+ * The possible usages are:
4215
+ * - `'encrypt'` - The key may be used to encrypt data.
4216
+ * - `'decrypt'` - The key may be used to decrypt data.
4217
+ * - `'sign'` - The key may be used to generate digital signatures.
4218
+ * - `'verify'` - The key may be used to verify digital signatures.
4219
+ * - `'deriveKey'` - The key may be used to derive a new key.
4220
+ * - `'deriveBits'` - The key may be used to derive bits.
4221
+ * - `'wrapKey'` - The key may be used to wrap another key.
4222
+ * - `'unwrapKey'` - The key may be used to unwrap another key.
4223
+ *
4224
+ * Valid key usages depend on the key algorithm (identified by `cryptokey.algorithm.name`).
4225
+ * @since v15.0.0
4226
+ */
4227
+ readonly usages: KeyUsage[];
4228
+ }
4229
+ /**
4230
+ * The `CryptoKeyPair` is a simple dictionary object with `publicKey` and `privateKey` properties, representing an asymmetric key pair.
4231
+ * @since v15.0.0
4232
+ */
4233
+ interface CryptoKeyPair {
4234
+ /**
4235
+ * A {@link CryptoKey} whose type will be `'private'`.
4236
+ * @since v15.0.0
4237
+ */
4238
+ privateKey: CryptoKey;
4239
+ /**
4240
+ * A {@link CryptoKey} whose type will be `'public'`.
4241
+ * @since v15.0.0
4242
+ */
4243
+ publicKey: CryptoKey;
4244
+ }
4245
+ /**
4246
+ * @since v15.0.0
4247
+ */
4248
+ interface SubtleCrypto {
4249
+ /**
4250
+ * Using the method and parameters specified in `algorithm` and the keying material provided by `key`,
4251
+ * `subtle.decrypt()` attempts to decipher the provided `data`. If successful,
4252
+ * the returned promise will be resolved with an `<ArrayBuffer>` containing the plaintext result.
4253
+ *
4254
+ * The algorithms currently supported include:
4255
+ *
4256
+ * - `'RSA-OAEP'`
4257
+ * - `'AES-CTR'`
4258
+ * - `'AES-CBC'`
4259
+ * - `'AES-GCM'`
4260
+ * @since v15.0.0
4261
+ */
4262
+ decrypt(
4263
+ algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
4264
+ key: CryptoKey,
4265
+ data: BufferSource,
4266
+ ): Promise<ArrayBuffer>;
4267
+ /**
4268
+ * Using the method and parameters specified in `algorithm` and the keying material provided by `baseKey`,
4269
+ * `subtle.deriveBits()` attempts to generate `length` bits.
4270
+ * The Node.js implementation requires that when `length` is a number it must be multiple of `8`.
4271
+ * When `length` is `null` the maximum number of bits for a given algorithm is generated. This is allowed
4272
+ * for the `'ECDH'`, `'X25519'`, and `'X448'` algorithms.
4273
+ * If successful, the returned promise will be resolved with an `<ArrayBuffer>` containing the generated data.
4274
+ *
4275
+ * The algorithms currently supported include:
4276
+ *
4277
+ * - `'ECDH'`
4278
+ * - `'X25519'`
4279
+ * - `'X448'`
4280
+ * - `'HKDF'`
4281
+ * - `'PBKDF2'`
4282
+ * @since v15.0.0
4283
+ */
4284
+ deriveBits(algorithm: EcdhKeyDeriveParams, baseKey: CryptoKey, length: number | null): Promise<ArrayBuffer>;
4285
+ deriveBits(
4286
+ algorithm: AlgorithmIdentifier | HkdfParams | Pbkdf2Params,
4287
+ baseKey: CryptoKey,
4288
+ length: number,
4289
+ ): Promise<ArrayBuffer>;
4290
+ /**
4291
+ * Using the method and parameters specified in `algorithm`, and the keying material provided by `baseKey`,
4292
+ * `subtle.deriveKey()` attempts to generate a new <CryptoKey>` based on the method and parameters in `derivedKeyAlgorithm`.
4293
+ *
4294
+ * Calling `subtle.deriveKey()` is equivalent to calling `subtle.deriveBits()` to generate raw keying material,
4295
+ * then passing the result into the `subtle.importKey()` method using the `deriveKeyAlgorithm`, `extractable`, and `keyUsages` parameters as input.
4296
+ *
4297
+ * The algorithms currently supported include:
4298
+ *
4299
+ * - `'ECDH'`
4300
+ * - `'X25519'`
4301
+ * - `'X448'`
4302
+ * - `'HKDF'`
4303
+ * - `'PBKDF2'`
4304
+ * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
4305
+ * @since v15.0.0
4306
+ */
4307
+ deriveKey(
4308
+ algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params,
4309
+ baseKey: CryptoKey,
4310
+ derivedKeyAlgorithm:
4311
+ | AlgorithmIdentifier
4312
+ | AesDerivedKeyParams
4313
+ | HmacImportParams
4314
+ | HkdfParams
4315
+ | Pbkdf2Params,
4316
+ extractable: boolean,
4317
+ keyUsages: readonly KeyUsage[],
4318
+ ): Promise<CryptoKey>;
4319
+ /**
4320
+ * Using the method identified by `algorithm`, `subtle.digest()` attempts to generate a digest of `data`.
4321
+ * If successful, the returned promise is resolved with an `<ArrayBuffer>` containing the computed digest.
4322
+ *
4323
+ * If `algorithm` is provided as a `<string>`, it must be one of:
4324
+ *
4325
+ * - `'SHA-1'`
4326
+ * - `'SHA-256'`
4327
+ * - `'SHA-384'`
4328
+ * - `'SHA-512'`
4329
+ *
4330
+ * If `algorithm` is provided as an `<Object>`, it must have a `name` property whose value is one of the above.
4331
+ * @since v15.0.0
4332
+ */
4333
+ digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
4334
+ /**
4335
+ * Using the method and parameters specified by `algorithm` and the keying material provided by `key`,
4336
+ * `subtle.encrypt()` attempts to encipher `data`. If successful,
4337
+ * the returned promise is resolved with an `<ArrayBuffer>` containing the encrypted result.
4338
+ *
4339
+ * The algorithms currently supported include:
4340
+ *
4341
+ * - `'RSA-OAEP'`
4342
+ * - `'AES-CTR'`
4343
+ * - `'AES-CBC'`
4344
+ * - `'AES-GCM'`
4345
+ * @since v15.0.0
4346
+ */
4347
+ encrypt(
4348
+ algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
4349
+ key: CryptoKey,
4350
+ data: BufferSource,
4351
+ ): Promise<ArrayBuffer>;
4352
+ /**
4353
+ * Exports the given key into the specified format, if supported.
4354
+ *
4355
+ * If the `<CryptoKey>` is not extractable, the returned promise will reject.
4356
+ *
4357
+ * When `format` is either `'pkcs8'` or `'spki'` and the export is successful,
4358
+ * the returned promise will be resolved with an `<ArrayBuffer>` containing the exported key data.
4359
+ *
4360
+ * When `format` is `'jwk'` and the export is successful, the returned promise will be resolved with a
4361
+ * JavaScript object conforming to the {@link https://tools.ietf.org/html/rfc7517 JSON Web Key} specification.
4362
+ * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
4363
+ * @returns `<Promise>` containing `<ArrayBuffer>`.
4364
+ * @since v15.0.0
4365
+ */
4366
+ exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
4367
+ exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
4368
+ /**
4369
+ * Using the method and parameters provided in `algorithm`,
4370
+ * `subtle.generateKey()` attempts to generate new keying material.
4371
+ * Depending the method used, the method may generate either a single `<CryptoKey>` or a `<CryptoKeyPair>`.
4372
+ *
4373
+ * The `<CryptoKeyPair>` (public and private key) generating algorithms supported include:
4374
+ *
4375
+ * - `'RSASSA-PKCS1-v1_5'`
4376
+ * - `'RSA-PSS'`
4377
+ * - `'RSA-OAEP'`
4378
+ * - `'ECDSA'`
4379
+ * - `'Ed25519'`
4380
+ * - `'Ed448'`
4381
+ * - `'ECDH'`
4382
+ * - `'X25519'`
4383
+ * - `'X448'`
4384
+ * The `<CryptoKey>` (secret key) generating algorithms supported include:
4385
+ *
4386
+ * - `'HMAC'`
4387
+ * - `'AES-CTR'`
4388
+ * - `'AES-CBC'`
4389
+ * - `'AES-GCM'`
4390
+ * - `'AES-KW'`
4391
+ * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
4392
+ * @since v15.0.0
4393
+ */
4394
+ generateKey(
4395
+ algorithm: RsaHashedKeyGenParams | EcKeyGenParams,
4396
+ extractable: boolean,
4397
+ keyUsages: readonly KeyUsage[],
4398
+ ): Promise<CryptoKeyPair>;
4399
+ generateKey(
4400
+ algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params,
4401
+ extractable: boolean,
4402
+ keyUsages: readonly KeyUsage[],
4403
+ ): Promise<CryptoKey>;
4404
+ generateKey(
4405
+ algorithm: AlgorithmIdentifier,
4406
+ extractable: boolean,
4407
+ keyUsages: KeyUsage[],
4408
+ ): Promise<CryptoKeyPair | CryptoKey>;
4409
+ /**
4410
+ * The `subtle.importKey()` method attempts to interpret the provided `keyData` as the given `format`
4411
+ * to create a `<CryptoKey>` instance using the provided `algorithm`, `extractable`, and `keyUsages` arguments.
4412
+ * If the import is successful, the returned promise will be resolved with the created `<CryptoKey>`.
4413
+ *
4414
+ * If importing a `'PBKDF2'` key, `extractable` must be `false`.
4415
+ * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
4416
+ * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
4417
+ * @since v15.0.0
4418
+ */
4419
+ importKey(
4420
+ format: "jwk",
4421
+ keyData: JsonWebKey,
4422
+ algorithm:
4423
+ | AlgorithmIdentifier
4424
+ | RsaHashedImportParams
4425
+ | EcKeyImportParams
4426
+ | HmacImportParams
4427
+ | AesKeyAlgorithm,
4428
+ extractable: boolean,
4429
+ keyUsages: readonly KeyUsage[],
4430
+ ): Promise<CryptoKey>;
4431
+ importKey(
4432
+ format: Exclude<KeyFormat, "jwk">,
4433
+ keyData: BufferSource,
4434
+ algorithm:
4435
+ | AlgorithmIdentifier
4436
+ | RsaHashedImportParams
4437
+ | EcKeyImportParams
4438
+ | HmacImportParams
4439
+ | AesKeyAlgorithm,
4440
+ extractable: boolean,
4441
+ keyUsages: KeyUsage[],
4442
+ ): Promise<CryptoKey>;
4443
+ /**
4444
+ * Using the method and parameters given by `algorithm` and the keying material provided by `key`,
4445
+ * `subtle.sign()` attempts to generate a cryptographic signature of `data`. If successful,
4446
+ * the returned promise is resolved with an `<ArrayBuffer>` containing the generated signature.
4447
+ *
4448
+ * The algorithms currently supported include:
4449
+ *
4450
+ * - `'RSASSA-PKCS1-v1_5'`
4451
+ * - `'RSA-PSS'`
4452
+ * - `'ECDSA'`
4453
+ * - `'Ed25519'`
4454
+ * - `'Ed448'`
4455
+ * - `'HMAC'`
4456
+ * @since v15.0.0
4457
+ */
4458
+ sign(
4459
+ algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params,
4460
+ key: CryptoKey,
4461
+ data: BufferSource,
4462
+ ): Promise<ArrayBuffer>;
4463
+ /**
4464
+ * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material.
4465
+ * The `subtle.unwrapKey()` method attempts to decrypt a wrapped key and create a `<CryptoKey>` instance.
4466
+ * It is equivalent to calling `subtle.decrypt()` first on the encrypted key data (using the `wrappedKey`, `unwrapAlgo`, and `unwrappingKey` arguments as input)
4467
+ * then passing the results in to the `subtle.importKey()` method using the `unwrappedKeyAlgo`, `extractable`, and `keyUsages` arguments as inputs.
4468
+ * If successful, the returned promise is resolved with a `<CryptoKey>` object.
4469
+ *
4470
+ * The wrapping algorithms currently supported include:
4471
+ *
4472
+ * - `'RSA-OAEP'`
4473
+ * - `'AES-CTR'`
4474
+ * - `'AES-CBC'`
4475
+ * - `'AES-GCM'`
4476
+ * - `'AES-KW'`
4477
+ *
4478
+ * The unwrapped key algorithms supported include:
4479
+ *
4480
+ * - `'RSASSA-PKCS1-v1_5'`
4481
+ * - `'RSA-PSS'`
4482
+ * - `'RSA-OAEP'`
4483
+ * - `'ECDSA'`
4484
+ * - `'Ed25519'`
4485
+ * - `'Ed448'`
4486
+ * - `'ECDH'`
4487
+ * - `'X25519'`
4488
+ * - `'X448'`
4489
+ * - `'HMAC'`
4490
+ * - `'AES-CTR'`
4491
+ * - `'AES-CBC'`
4492
+ * - `'AES-GCM'`
4493
+ * - `'AES-KW'`
4494
+ * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
4495
+ * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
4496
+ * @since v15.0.0
4497
+ */
4498
+ unwrapKey(
4499
+ format: KeyFormat,
4500
+ wrappedKey: BufferSource,
4501
+ unwrappingKey: CryptoKey,
4502
+ unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
4503
+ unwrappedKeyAlgorithm:
4504
+ | AlgorithmIdentifier
4505
+ | RsaHashedImportParams
4506
+ | EcKeyImportParams
4507
+ | HmacImportParams
4508
+ | AesKeyAlgorithm,
4509
+ extractable: boolean,
4510
+ keyUsages: KeyUsage[],
4511
+ ): Promise<CryptoKey>;
4512
+ /**
4513
+ * Using the method and parameters given in `algorithm` and the keying material provided by `key`,
4514
+ * `subtle.verify()` attempts to verify that `signature` is a valid cryptographic signature of `data`.
4515
+ * The returned promise is resolved with either `true` or `false`.
4516
+ *
4517
+ * The algorithms currently supported include:
4518
+ *
4519
+ * - `'RSASSA-PKCS1-v1_5'`
4520
+ * - `'RSA-PSS'`
4521
+ * - `'ECDSA'`
4522
+ * - `'Ed25519'`
4523
+ * - `'Ed448'`
4524
+ * - `'HMAC'`
4525
+ * @since v15.0.0
4526
+ */
4527
+ verify(
4528
+ algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params,
4529
+ key: CryptoKey,
4530
+ signature: BufferSource,
4531
+ data: BufferSource,
4532
+ ): Promise<boolean>;
4533
+ /**
4534
+ * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material.
4535
+ * The `subtle.wrapKey()` method exports the keying material into the format identified by `format`,
4536
+ * then encrypts it using the method and parameters specified by `wrapAlgo` and the keying material provided by `wrappingKey`.
4537
+ * It is the equivalent to calling `subtle.exportKey()` using `format` and `key` as the arguments,
4538
+ * then passing the result to the `subtle.encrypt()` method using `wrappingKey` and `wrapAlgo` as inputs.
4539
+ * If successful, the returned promise will be resolved with an `<ArrayBuffer>` containing the encrypted key data.
4540
+ *
4541
+ * The wrapping algorithms currently supported include:
4542
+ *
4543
+ * - `'RSA-OAEP'`
4544
+ * - `'AES-CTR'`
4545
+ * - `'AES-CBC'`
4546
+ * - `'AES-GCM'`
4547
+ * - `'AES-KW'`
4548
+ * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
4549
+ * @since v15.0.0
4550
+ */
4551
+ wrapKey(
4552
+ format: KeyFormat,
4553
+ key: CryptoKey,
4554
+ wrappingKey: CryptoKey,
4555
+ wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
4556
+ ): Promise<ArrayBuffer>;
4557
+ }
4558
+ }
4559
+
4560
+ global {
4561
+ var crypto: typeof globalThis extends {
4562
+ crypto: infer T;
4563
+ onmessage: any;
4564
+ } ? T
4565
+ : webcrypto.Crypto;
4566
+ }
4567
+ }
4568
+ declare module "node:crypto" {
4569
+ export * from "crypto";
4570
+ }