agent-skill-manager 1.22.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2115) hide show
  1. package/README.md +23 -42
  2. package/data/skill-index/Affitor_affiliate-skills.json +62 -2
  3. package/data/skill-index/Eronred_aso-skills.json +1 -1
  4. package/data/skill-index/GPTomics_bioSkills.json +173 -17
  5. package/data/skill-index/Galaxy-Dawn_claude-scholar.json +14 -2
  6. package/data/skill-index/Imbad0202_academic-research-skills.json +19 -19
  7. package/data/skill-index/K-Dense-AI_claude-scientific-skills.json +39 -555
  8. package/data/skill-index/Leonxlnx_taste-skill.json +14 -2
  9. package/data/skill-index/Master-cai_Research-Paper-Writing-Skills.json +1 -1
  10. package/data/skill-index/MiniMax-AI_skills.json +103 -7
  11. package/data/skill-index/affaan-m_everything-claude-code.json +4045 -733
  12. package/data/skill-index/alirezarezvani_claude-skills.json +686 -2
  13. package/data/skill-index/anthropics_skills.json +2 -2
  14. package/data/skill-index/bytedance_deer-flow.json +62 -2
  15. package/data/skill-index/coreyhaines31_marketingskills.json +44 -8
  16. package/data/skill-index/github_awesome-copilot.json +3142 -898
  17. package/data/skill-index/heygen-com_hyperframes.json +69 -0
  18. package/data/skill-index/himself65_finance-skills.json +175 -19
  19. package/data/skill-index/kemiljk_fluid-design.json +1 -1
  20. package/data/skill-index/kepano_obsidian-skills.json +2 -2
  21. package/data/skill-index/luongnv89_skills.json +47 -35
  22. package/data/skill-index/mattpocock_skills.json +70 -34
  23. package/data/skill-index/nextlevelbuilder_ui-ux-pro-max-skill.json +1 -1
  24. package/data/skill-index/obra_superpowers.json +1 -1
  25. package/data/skill-index/sickn33_antigravity-awesome-skills.json +42937 -5491
  26. package/data/skill-index/slavingia_skills.json +1 -1
  27. package/data/skill-index-resources.json +10 -1
  28. package/dist/agent-skill-manager.js +385 -405
  29. package/dist/{chunk-2bvch8gs.js → chunk-6mbpytcj.js} +1 -1
  30. package/dist/{chunk-thr0x97h.js → chunk-x537ndd4.js} +1 -1
  31. package/package.json +1 -5
  32. package/node_modules/@balena/dockerignore/LICENSE.md +0 -206
  33. package/node_modules/@balena/dockerignore/README.md +0 -261
  34. package/node_modules/@balena/dockerignore/ignore.js +0 -363
  35. package/node_modules/@balena/dockerignore/index.d.ts +0 -45
  36. package/node_modules/@balena/dockerignore/package.json +0 -49
  37. package/node_modules/@grpc/grpc-js/LICENSE +0 -201
  38. package/node_modules/@grpc/grpc-js/README.md +0 -84
  39. package/node_modules/@grpc/grpc-js/build/src/admin.d.ts +0 -11
  40. package/node_modules/@grpc/grpc-js/build/src/admin.js +0 -30
  41. package/node_modules/@grpc/grpc-js/build/src/admin.js.map +0 -1
  42. package/node_modules/@grpc/grpc-js/build/src/auth-context.d.ts +0 -5
  43. package/node_modules/@grpc/grpc-js/build/src/auth-context.js +0 -19
  44. package/node_modules/@grpc/grpc-js/build/src/auth-context.js.map +0 -1
  45. package/node_modules/@grpc/grpc-js/build/src/backoff-timeout.d.ts +0 -94
  46. package/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js +0 -191
  47. package/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js.map +0 -1
  48. package/node_modules/@grpc/grpc-js/build/src/call-credentials.d.ts +0 -57
  49. package/node_modules/@grpc/grpc-js/build/src/call-credentials.js +0 -153
  50. package/node_modules/@grpc/grpc-js/build/src/call-credentials.js.map +0 -1
  51. package/node_modules/@grpc/grpc-js/build/src/call-interface.d.ts +0 -101
  52. package/node_modules/@grpc/grpc-js/build/src/call-interface.js +0 -100
  53. package/node_modules/@grpc/grpc-js/build/src/call-interface.js.map +0 -1
  54. package/node_modules/@grpc/grpc-js/build/src/call-number.d.ts +0 -1
  55. package/node_modules/@grpc/grpc-js/build/src/call-number.js +0 -24
  56. package/node_modules/@grpc/grpc-js/build/src/call-number.js.map +0 -1
  57. package/node_modules/@grpc/grpc-js/build/src/call.d.ts +0 -86
  58. package/node_modules/@grpc/grpc-js/build/src/call.js +0 -152
  59. package/node_modules/@grpc/grpc-js/build/src/call.js.map +0 -1
  60. package/node_modules/@grpc/grpc-js/build/src/certificate-provider.d.ts +0 -43
  61. package/node_modules/@grpc/grpc-js/build/src/certificate-provider.js +0 -141
  62. package/node_modules/@grpc/grpc-js/build/src/certificate-provider.js.map +0 -1
  63. package/node_modules/@grpc/grpc-js/build/src/channel-credentials.d.ts +0 -119
  64. package/node_modules/@grpc/grpc-js/build/src/channel-credentials.js +0 -430
  65. package/node_modules/@grpc/grpc-js/build/src/channel-credentials.js.map +0 -1
  66. package/node_modules/@grpc/grpc-js/build/src/channel-options.d.ts +0 -81
  67. package/node_modules/@grpc/grpc-js/build/src/channel-options.js +0 -73
  68. package/node_modules/@grpc/grpc-js/build/src/channel-options.js.map +0 -1
  69. package/node_modules/@grpc/grpc-js/build/src/channel.d.ts +0 -76
  70. package/node_modules/@grpc/grpc-js/build/src/channel.js +0 -68
  71. package/node_modules/@grpc/grpc-js/build/src/channel.js.map +0 -1
  72. package/node_modules/@grpc/grpc-js/build/src/channelz.d.ts +0 -158
  73. package/node_modules/@grpc/grpc-js/build/src/channelz.js +0 -598
  74. package/node_modules/@grpc/grpc-js/build/src/channelz.js.map +0 -1
  75. package/node_modules/@grpc/grpc-js/build/src/client-interceptors.d.ts +0 -123
  76. package/node_modules/@grpc/grpc-js/build/src/client-interceptors.js +0 -434
  77. package/node_modules/@grpc/grpc-js/build/src/client-interceptors.js.map +0 -1
  78. package/node_modules/@grpc/grpc-js/build/src/client.d.ts +0 -74
  79. package/node_modules/@grpc/grpc-js/build/src/client.js +0 -433
  80. package/node_modules/@grpc/grpc-js/build/src/client.js.map +0 -1
  81. package/node_modules/@grpc/grpc-js/build/src/compression-algorithms.d.ts +0 -5
  82. package/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js +0 -26
  83. package/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js.map +0 -1
  84. package/node_modules/@grpc/grpc-js/build/src/compression-filter.d.ts +0 -28
  85. package/node_modules/@grpc/grpc-js/build/src/compression-filter.js +0 -295
  86. package/node_modules/@grpc/grpc-js/build/src/compression-filter.js.map +0 -1
  87. package/node_modules/@grpc/grpc-js/build/src/connectivity-state.d.ts +0 -7
  88. package/node_modules/@grpc/grpc-js/build/src/connectivity-state.js +0 -28
  89. package/node_modules/@grpc/grpc-js/build/src/connectivity-state.js.map +0 -1
  90. package/node_modules/@grpc/grpc-js/build/src/constants.d.ts +0 -38
  91. package/node_modules/@grpc/grpc-js/build/src/constants.js +0 -64
  92. package/node_modules/@grpc/grpc-js/build/src/constants.js.map +0 -1
  93. package/node_modules/@grpc/grpc-js/build/src/control-plane-status.d.ts +0 -5
  94. package/node_modules/@grpc/grpc-js/build/src/control-plane-status.js +0 -42
  95. package/node_modules/@grpc/grpc-js/build/src/control-plane-status.js.map +0 -1
  96. package/node_modules/@grpc/grpc-js/build/src/deadline.d.ts +0 -22
  97. package/node_modules/@grpc/grpc-js/build/src/deadline.js +0 -108
  98. package/node_modules/@grpc/grpc-js/build/src/deadline.js.map +0 -1
  99. package/node_modules/@grpc/grpc-js/build/src/duration.d.ts +0 -15
  100. package/node_modules/@grpc/grpc-js/build/src/duration.js +0 -74
  101. package/node_modules/@grpc/grpc-js/build/src/duration.js.map +0 -1
  102. package/node_modules/@grpc/grpc-js/build/src/environment.d.ts +0 -1
  103. package/node_modules/@grpc/grpc-js/build/src/environment.js +0 -22
  104. package/node_modules/@grpc/grpc-js/build/src/environment.js.map +0 -1
  105. package/node_modules/@grpc/grpc-js/build/src/error.d.ts +0 -2
  106. package/node_modules/@grpc/grpc-js/build/src/error.js +0 -40
  107. package/node_modules/@grpc/grpc-js/build/src/error.js.map +0 -1
  108. package/node_modules/@grpc/grpc-js/build/src/events.d.ts +0 -9
  109. package/node_modules/@grpc/grpc-js/build/src/events.js +0 -19
  110. package/node_modules/@grpc/grpc-js/build/src/events.js.map +0 -1
  111. package/node_modules/@grpc/grpc-js/build/src/experimental.d.ts +0 -20
  112. package/node_modules/@grpc/grpc-js/build/src/experimental.js +0 -58
  113. package/node_modules/@grpc/grpc-js/build/src/experimental.js.map +0 -1
  114. package/node_modules/@grpc/grpc-js/build/src/filter-stack.d.ts +0 -21
  115. package/node_modules/@grpc/grpc-js/build/src/filter-stack.js +0 -82
  116. package/node_modules/@grpc/grpc-js/build/src/filter-stack.js.map +0 -1
  117. package/node_modules/@grpc/grpc-js/build/src/filter.d.ts +0 -25
  118. package/node_modules/@grpc/grpc-js/build/src/filter.js +0 -38
  119. package/node_modules/@grpc/grpc-js/build/src/filter.js.map +0 -1
  120. package/node_modules/@grpc/grpc-js/build/src/generated/channelz.d.ts +0 -118
  121. package/node_modules/@grpc/grpc-js/build/src/generated/channelz.js +0 -3
  122. package/node_modules/@grpc/grpc-js/build/src/generated/channelz.js.map +0 -1
  123. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.d.ts +0 -9
  124. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.js +0 -4
  125. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.js.map +0 -1
  126. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.d.ts +0 -6
  127. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.js +0 -4
  128. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.js.map +0 -1
  129. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.d.ts +0 -6
  130. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.js +0 -4
  131. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.js.map +0 -1
  132. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DescriptorProto.d.ts +0 -51
  133. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DescriptorProto.js +0 -4
  134. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DescriptorProto.js.map +0 -1
  135. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.d.ts +0 -6
  136. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.js +0 -4
  137. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.js.map +0 -1
  138. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.d.ts +0 -9
  139. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.js +0 -4
  140. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.js.map +0 -1
  141. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Edition.d.ts +0 -16
  142. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Edition.js +0 -19
  143. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Edition.js.map +0 -1
  144. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumDescriptorProto.d.ts +0 -27
  145. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumDescriptorProto.js +0 -4
  146. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumDescriptorProto.js.map +0 -1
  147. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumOptions.d.ts +0 -22
  148. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumOptions.js +0 -4
  149. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumOptions.js.map +0 -1
  150. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueDescriptorProto.d.ts +0 -11
  151. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueDescriptorProto.js +0 -4
  152. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueDescriptorProto.js.map +0 -1
  153. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueOptions.d.ts +0 -17
  154. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueOptions.js +0 -4
  155. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueOptions.js.map +0 -1
  156. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ExtensionRangeOptions.d.ts +0 -34
  157. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ExtensionRangeOptions.js +0 -10
  158. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ExtensionRangeOptions.js.map +0 -1
  159. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSet.d.ts +0 -83
  160. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSet.js +0 -56
  161. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSet.js.map +0 -1
  162. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSetDefaults.d.ts +0 -22
  163. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSetDefaults.js +0 -4
  164. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSetDefaults.js.map +0 -1
  165. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldDescriptorProto.d.ts +0 -56
  166. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldDescriptorProto.js +0 -32
  167. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldDescriptorProto.js.map +0 -1
  168. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldOptions.d.ts +0 -99
  169. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldOptions.js +0 -36
  170. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldOptions.js.map +0 -1
  171. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorProto.d.ts +0 -39
  172. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorProto.js +0 -4
  173. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorProto.js.map +0 -1
  174. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorSet.d.ts +0 -7
  175. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorSet.js +0 -4
  176. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorSet.js.map +0 -1
  177. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileOptions.d.ts +0 -61
  178. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileOptions.js +0 -11
  179. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileOptions.js.map +0 -1
  180. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.d.ts +0 -6
  181. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.js +0 -4
  182. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.js.map +0 -1
  183. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/GeneratedCodeInfo.d.ts +0 -27
  184. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/GeneratedCodeInfo.js +0 -11
  185. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/GeneratedCodeInfo.js.map +0 -1
  186. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.d.ts +0 -6
  187. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.js +0 -4
  188. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.js.map +0 -1
  189. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.d.ts +0 -7
  190. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.js +0 -4
  191. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.js.map +0 -1
  192. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MessageOptions.d.ts +0 -28
  193. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MessageOptions.js +0 -4
  194. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MessageOptions.js.map +0 -1
  195. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodDescriptorProto.d.ts +0 -17
  196. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodDescriptorProto.js +0 -4
  197. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodDescriptorProto.js.map +0 -1
  198. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodOptions.d.ts +0 -21
  199. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodOptions.js +0 -11
  200. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodOptions.js.map +0 -1
  201. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofDescriptorProto.d.ts +0 -9
  202. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofDescriptorProto.js +0 -4
  203. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofDescriptorProto.js.map +0 -1
  204. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofOptions.d.ts +0 -12
  205. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofOptions.js +0 -4
  206. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofOptions.js.map +0 -1
  207. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceDescriptorProto.d.ts +0 -12
  208. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceDescriptorProto.js +0 -4
  209. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceDescriptorProto.js.map +0 -1
  210. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceOptions.d.ts +0 -12
  211. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceOptions.js +0 -4
  212. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceOptions.js.map +0 -1
  213. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SourceCodeInfo.d.ts +0 -20
  214. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SourceCodeInfo.js +0 -4
  215. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SourceCodeInfo.js.map +0 -1
  216. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.d.ts +0 -6
  217. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.js +0 -4
  218. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.js.map +0 -1
  219. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SymbolVisibility.d.ts +0 -7
  220. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SymbolVisibility.js +0 -10
  221. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SymbolVisibility.js.map +0 -1
  222. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.d.ts +0 -9
  223. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.js +0 -4
  224. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.js.map +0 -1
  225. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.d.ts +0 -6
  226. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.js +0 -4
  227. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.js.map +0 -1
  228. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.d.ts +0 -7
  229. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.js +0 -4
  230. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.js.map +0 -1
  231. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UninterpretedOption.d.ts +0 -27
  232. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UninterpretedOption.js +0 -4
  233. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UninterpretedOption.js.map +0 -1
  234. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.d.ts +0 -79
  235. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.js +0 -4
  236. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.js.map +0 -1
  237. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.d.ts +0 -64
  238. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.js +0 -4
  239. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.js.map +0 -1
  240. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.d.ts +0 -24
  241. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.js +0 -14
  242. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.js.map +0 -1
  243. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.d.ts +0 -72
  244. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.js +0 -4
  245. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.js.map +0 -1
  246. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.d.ts +0 -27
  247. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.js +0 -4
  248. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.js.map +0 -1
  249. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.d.ts +0 -41
  250. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.js +0 -4
  251. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.js.map +0 -1
  252. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.d.ts +0 -74
  253. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.js +0 -15
  254. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.js.map +0 -1
  255. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.d.ts +0 -159
  256. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.js +0 -4
  257. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.js.map +0 -1
  258. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.d.ts +0 -13
  259. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.js +0 -4
  260. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.js.map +0 -1
  261. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.d.ts +0 -15
  262. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.js +0 -4
  263. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.js.map +0 -1
  264. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.d.ts +0 -13
  265. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.js +0 -4
  266. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.js.map +0 -1
  267. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.d.ts +0 -15
  268. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.js +0 -4
  269. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.js.map +0 -1
  270. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.d.ts +0 -35
  271. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.js +0 -4
  272. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.js.map +0 -1
  273. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.d.ts +0 -29
  274. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.js +0 -4
  275. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.js.map +0 -1
  276. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.d.ts +0 -33
  277. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.js +0 -4
  278. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.js.map +0 -1
  279. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.d.ts +0 -29
  280. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.js +0 -4
  281. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.js.map +0 -1
  282. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.d.ts +0 -25
  283. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.js +0 -4
  284. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.js.map +0 -1
  285. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.d.ts +0 -15
  286. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.js +0 -4
  287. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.js.map +0 -1
  288. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.d.ts +0 -13
  289. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.js +0 -4
  290. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.js.map +0 -1
  291. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.d.ts +0 -15
  292. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.js +0 -4
  293. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.js.map +0 -1
  294. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.d.ts +0 -33
  295. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.js +0 -4
  296. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.js.map +0 -1
  297. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.d.ts +0 -29
  298. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.js +0 -4
  299. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.js.map +0 -1
  300. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.d.ts +0 -79
  301. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.js +0 -4
  302. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.js.map +0 -1
  303. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.d.ts +0 -41
  304. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.js +0 -4
  305. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.js.map +0 -1
  306. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.d.ts +0 -53
  307. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.js +0 -4
  308. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.js.map +0 -1
  309. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.d.ts +0 -27
  310. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.js +0 -4
  311. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.js.map +0 -1
  312. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.d.ts +0 -66
  313. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.js +0 -4
  314. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.js.map +0 -1
  315. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.d.ts +0 -146
  316. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.js +0 -4
  317. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.js.map +0 -1
  318. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.d.ts +0 -43
  319. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.js +0 -4
  320. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.js.map +0 -1
  321. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.d.ts +0 -29
  322. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.js +0 -4
  323. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.js.map +0 -1
  324. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.d.ts +0 -70
  325. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.js +0 -4
  326. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.js.map +0 -1
  327. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.d.ts +0 -15
  328. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.js +0 -4
  329. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.js.map +0 -1
  330. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.d.ts +0 -27
  331. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.js +0 -4
  332. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.js.map +0 -1
  333. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.d.ts +0 -66
  334. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.js +0 -4
  335. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.js.map +0 -1
  336. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.d.ts +0 -27
  337. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.js +0 -4
  338. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.js.map +0 -1
  339. package/node_modules/@grpc/grpc-js/build/src/generated/orca.d.ts +0 -145
  340. package/node_modules/@grpc/grpc-js/build/src/generated/orca.js +0 -3
  341. package/node_modules/@grpc/grpc-js/build/src/generated/orca.js.map +0 -1
  342. package/node_modules/@grpc/grpc-js/build/src/generated/validate/AnyRules.d.ts +0 -40
  343. package/node_modules/@grpc/grpc-js/build/src/generated/validate/AnyRules.js +0 -4
  344. package/node_modules/@grpc/grpc-js/build/src/generated/validate/AnyRules.js.map +0 -1
  345. package/node_modules/@grpc/grpc-js/build/src/generated/validate/BoolRules.d.ts +0 -18
  346. package/node_modules/@grpc/grpc-js/build/src/generated/validate/BoolRules.js +0 -4
  347. package/node_modules/@grpc/grpc-js/build/src/generated/validate/BoolRules.js.map +0 -1
  348. package/node_modules/@grpc/grpc-js/build/src/generated/validate/BytesRules.d.ts +0 -149
  349. package/node_modules/@grpc/grpc-js/build/src/generated/validate/BytesRules.js +0 -4
  350. package/node_modules/@grpc/grpc-js/build/src/generated/validate/BytesRules.js.map +0 -1
  351. package/node_modules/@grpc/grpc-js/build/src/generated/validate/DoubleRules.d.ts +0 -82
  352. package/node_modules/@grpc/grpc-js/build/src/generated/validate/DoubleRules.js +0 -4
  353. package/node_modules/@grpc/grpc-js/build/src/generated/validate/DoubleRules.js.map +0 -1
  354. package/node_modules/@grpc/grpc-js/build/src/generated/validate/DurationRules.d.ts +0 -89
  355. package/node_modules/@grpc/grpc-js/build/src/generated/validate/DurationRules.js +0 -4
  356. package/node_modules/@grpc/grpc-js/build/src/generated/validate/DurationRules.js.map +0 -1
  357. package/node_modules/@grpc/grpc-js/build/src/generated/validate/EnumRules.d.ts +0 -48
  358. package/node_modules/@grpc/grpc-js/build/src/generated/validate/EnumRules.js +0 -4
  359. package/node_modules/@grpc/grpc-js/build/src/generated/validate/EnumRules.js.map +0 -1
  360. package/node_modules/@grpc/grpc-js/build/src/generated/validate/FieldRules.d.ts +0 -98
  361. package/node_modules/@grpc/grpc-js/build/src/generated/validate/FieldRules.js +0 -4
  362. package/node_modules/@grpc/grpc-js/build/src/generated/validate/FieldRules.js.map +0 -1
  363. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed32Rules.d.ts +0 -82
  364. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed32Rules.js +0 -4
  365. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed32Rules.js.map +0 -1
  366. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed64Rules.d.ts +0 -83
  367. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed64Rules.js +0 -4
  368. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed64Rules.js.map +0 -1
  369. package/node_modules/@grpc/grpc-js/build/src/generated/validate/FloatRules.d.ts +0 -82
  370. package/node_modules/@grpc/grpc-js/build/src/generated/validate/FloatRules.js +0 -4
  371. package/node_modules/@grpc/grpc-js/build/src/generated/validate/FloatRules.js.map +0 -1
  372. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int32Rules.d.ts +0 -82
  373. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int32Rules.js +0 -4
  374. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int32Rules.js.map +0 -1
  375. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int64Rules.d.ts +0 -83
  376. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int64Rules.js +0 -4
  377. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int64Rules.js.map +0 -1
  378. package/node_modules/@grpc/grpc-js/build/src/generated/validate/KnownRegex.d.ts +0 -30
  379. package/node_modules/@grpc/grpc-js/build/src/generated/validate/KnownRegex.js +0 -19
  380. package/node_modules/@grpc/grpc-js/build/src/generated/validate/KnownRegex.js.map +0 -1
  381. package/node_modules/@grpc/grpc-js/build/src/generated/validate/MapRules.d.ts +0 -62
  382. package/node_modules/@grpc/grpc-js/build/src/generated/validate/MapRules.js +0 -4
  383. package/node_modules/@grpc/grpc-js/build/src/generated/validate/MapRules.js.map +0 -1
  384. package/node_modules/@grpc/grpc-js/build/src/generated/validate/MessageRules.d.ts +0 -30
  385. package/node_modules/@grpc/grpc-js/build/src/generated/validate/MessageRules.js +0 -4
  386. package/node_modules/@grpc/grpc-js/build/src/generated/validate/MessageRules.js.map +0 -1
  387. package/node_modules/@grpc/grpc-js/build/src/generated/validate/RepeatedRules.d.ts +0 -56
  388. package/node_modules/@grpc/grpc-js/build/src/generated/validate/RepeatedRules.js +0 -4
  389. package/node_modules/@grpc/grpc-js/build/src/generated/validate/RepeatedRules.js.map +0 -1
  390. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed32Rules.d.ts +0 -82
  391. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed32Rules.js +0 -4
  392. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed32Rules.js.map +0 -1
  393. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed64Rules.d.ts +0 -83
  394. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed64Rules.js +0 -4
  395. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed64Rules.js.map +0 -1
  396. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt32Rules.d.ts +0 -82
  397. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt32Rules.js +0 -4
  398. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt32Rules.js.map +0 -1
  399. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt64Rules.d.ts +0 -83
  400. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt64Rules.js +0 -4
  401. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt64Rules.js.map +0 -1
  402. package/node_modules/@grpc/grpc-js/build/src/generated/validate/StringRules.d.ts +0 -284
  403. package/node_modules/@grpc/grpc-js/build/src/generated/validate/StringRules.js +0 -4
  404. package/node_modules/@grpc/grpc-js/build/src/generated/validate/StringRules.js.map +0 -1
  405. package/node_modules/@grpc/grpc-js/build/src/generated/validate/TimestampRules.d.ts +0 -102
  406. package/node_modules/@grpc/grpc-js/build/src/generated/validate/TimestampRules.js +0 -4
  407. package/node_modules/@grpc/grpc-js/build/src/generated/validate/TimestampRules.js.map +0 -1
  408. package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt32Rules.d.ts +0 -82
  409. package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt32Rules.js +0 -4
  410. package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt32Rules.js.map +0 -1
  411. package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt64Rules.d.ts +0 -83
  412. package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt64Rules.js +0 -4
  413. package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt64Rules.js.map +0 -1
  414. package/node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/OrcaLoadReport.d.ts +0 -121
  415. package/node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/OrcaLoadReport.js +0 -4
  416. package/node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/OrcaLoadReport.js.map +0 -1
  417. package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OpenRcaService.d.ts +0 -36
  418. package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OpenRcaService.js +0 -4
  419. package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OpenRcaService.js.map +0 -1
  420. package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OrcaLoadReportRequest.d.ts +0 -25
  421. package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OrcaLoadReportRequest.js +0 -4
  422. package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OrcaLoadReportRequest.js.map +0 -1
  423. package/node_modules/@grpc/grpc-js/build/src/http_proxy.d.ts +0 -16
  424. package/node_modules/@grpc/grpc-js/build/src/http_proxy.js +0 -274
  425. package/node_modules/@grpc/grpc-js/build/src/http_proxy.js.map +0 -1
  426. package/node_modules/@grpc/grpc-js/build/src/index.d.ts +0 -79
  427. package/node_modules/@grpc/grpc-js/build/src/index.js +0 -148
  428. package/node_modules/@grpc/grpc-js/build/src/index.js.map +0 -1
  429. package/node_modules/@grpc/grpc-js/build/src/internal-channel.d.ts +0 -124
  430. package/node_modules/@grpc/grpc-js/build/src/internal-channel.js +0 -605
  431. package/node_modules/@grpc/grpc-js/build/src/internal-channel.js.map +0 -1
  432. package/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.d.ts +0 -24
  433. package/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js +0 -151
  434. package/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js.map +0 -1
  435. package/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.d.ts +0 -71
  436. package/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js +0 -571
  437. package/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js.map +0 -1
  438. package/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.d.ts +0 -134
  439. package/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js +0 -514
  440. package/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js.map +0 -1
  441. package/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.d.ts +0 -24
  442. package/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js +0 -204
  443. package/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js.map +0 -1
  444. package/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.d.ts +0 -20
  445. package/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.js +0 -392
  446. package/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.js.map +0 -1
  447. package/node_modules/@grpc/grpc-js/build/src/load-balancer.d.ts +0 -101
  448. package/node_modules/@grpc/grpc-js/build/src/load-balancer.js +0 -116
  449. package/node_modules/@grpc/grpc-js/build/src/load-balancer.js.map +0 -1
  450. package/node_modules/@grpc/grpc-js/build/src/load-balancing-call.d.ts +0 -49
  451. package/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js +0 -302
  452. package/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js.map +0 -1
  453. package/node_modules/@grpc/grpc-js/build/src/logging.d.ts +0 -7
  454. package/node_modules/@grpc/grpc-js/build/src/logging.js +0 -122
  455. package/node_modules/@grpc/grpc-js/build/src/logging.js.map +0 -1
  456. package/node_modules/@grpc/grpc-js/build/src/make-client.d.ts +0 -71
  457. package/node_modules/@grpc/grpc-js/build/src/make-client.js +0 -143
  458. package/node_modules/@grpc/grpc-js/build/src/make-client.js.map +0 -1
  459. package/node_modules/@grpc/grpc-js/build/src/metadata.d.ts +0 -100
  460. package/node_modules/@grpc/grpc-js/build/src/metadata.js +0 -272
  461. package/node_modules/@grpc/grpc-js/build/src/metadata.js.map +0 -1
  462. package/node_modules/@grpc/grpc-js/build/src/object-stream.d.ts +0 -27
  463. package/node_modules/@grpc/grpc-js/build/src/object-stream.js +0 -19
  464. package/node_modules/@grpc/grpc-js/build/src/object-stream.js.map +0 -1
  465. package/node_modules/@grpc/grpc-js/build/src/orca.d.ts +0 -89
  466. package/node_modules/@grpc/grpc-js/build/src/orca.js +0 -323
  467. package/node_modules/@grpc/grpc-js/build/src/orca.js.map +0 -1
  468. package/node_modules/@grpc/grpc-js/build/src/picker.d.ts +0 -95
  469. package/node_modules/@grpc/grpc-js/build/src/picker.js +0 -86
  470. package/node_modules/@grpc/grpc-js/build/src/picker.js.map +0 -1
  471. package/node_modules/@grpc/grpc-js/build/src/priority-queue.d.ts +0 -50
  472. package/node_modules/@grpc/grpc-js/build/src/priority-queue.js +0 -120
  473. package/node_modules/@grpc/grpc-js/build/src/priority-queue.js.map +0 -1
  474. package/node_modules/@grpc/grpc-js/build/src/resolver-dns.d.ts +0 -13
  475. package/node_modules/@grpc/grpc-js/build/src/resolver-dns.js +0 -363
  476. package/node_modules/@grpc/grpc-js/build/src/resolver-dns.js.map +0 -1
  477. package/node_modules/@grpc/grpc-js/build/src/resolver-ip.d.ts +0 -1
  478. package/node_modules/@grpc/grpc-js/build/src/resolver-ip.js +0 -106
  479. package/node_modules/@grpc/grpc-js/build/src/resolver-ip.js.map +0 -1
  480. package/node_modules/@grpc/grpc-js/build/src/resolver-uds.d.ts +0 -1
  481. package/node_modules/@grpc/grpc-js/build/src/resolver-uds.js +0 -51
  482. package/node_modules/@grpc/grpc-js/build/src/resolver-uds.js.map +0 -1
  483. package/node_modules/@grpc/grpc-js/build/src/resolver.d.ts +0 -102
  484. package/node_modules/@grpc/grpc-js/build/src/resolver.js +0 -89
  485. package/node_modules/@grpc/grpc-js/build/src/resolver.js.map +0 -1
  486. package/node_modules/@grpc/grpc-js/build/src/resolving-call.d.ts +0 -54
  487. package/node_modules/@grpc/grpc-js/build/src/resolving-call.js +0 -319
  488. package/node_modules/@grpc/grpc-js/build/src/resolving-call.js.map +0 -1
  489. package/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.d.ts +0 -70
  490. package/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js +0 -304
  491. package/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js.map +0 -1
  492. package/node_modules/@grpc/grpc-js/build/src/retrying-call.d.ts +0 -100
  493. package/node_modules/@grpc/grpc-js/build/src/retrying-call.js +0 -724
  494. package/node_modules/@grpc/grpc-js/build/src/retrying-call.js.map +0 -1
  495. package/node_modules/@grpc/grpc-js/build/src/server-call.d.ts +0 -141
  496. package/node_modules/@grpc/grpc-js/build/src/server-call.js +0 -226
  497. package/node_modules/@grpc/grpc-js/build/src/server-call.js.map +0 -1
  498. package/node_modules/@grpc/grpc-js/build/src/server-credentials.d.ts +0 -48
  499. package/node_modules/@grpc/grpc-js/build/src/server-credentials.js +0 -314
  500. package/node_modules/@grpc/grpc-js/build/src/server-credentials.js.map +0 -1
  501. package/node_modules/@grpc/grpc-js/build/src/server-interceptors.d.ts +0 -216
  502. package/node_modules/@grpc/grpc-js/build/src/server-interceptors.js +0 -817
  503. package/node_modules/@grpc/grpc-js/build/src/server-interceptors.js.map +0 -1
  504. package/node_modules/@grpc/grpc-js/build/src/server.d.ts +0 -140
  505. package/node_modules/@grpc/grpc-js/build/src/server.js +0 -1608
  506. package/node_modules/@grpc/grpc-js/build/src/server.js.map +0 -1
  507. package/node_modules/@grpc/grpc-js/build/src/service-config.d.ts +0 -58
  508. package/node_modules/@grpc/grpc-js/build/src/service-config.js +0 -430
  509. package/node_modules/@grpc/grpc-js/build/src/service-config.js.map +0 -1
  510. package/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.d.ts +0 -25
  511. package/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.js +0 -245
  512. package/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.js.map +0 -1
  513. package/node_modules/@grpc/grpc-js/build/src/status-builder.d.ts +0 -28
  514. package/node_modules/@grpc/grpc-js/build/src/status-builder.js +0 -68
  515. package/node_modules/@grpc/grpc-js/build/src/status-builder.js.map +0 -1
  516. package/node_modules/@grpc/grpc-js/build/src/stream-decoder.d.ts +0 -12
  517. package/node_modules/@grpc/grpc-js/build/src/stream-decoder.js +0 -100
  518. package/node_modules/@grpc/grpc-js/build/src/stream-decoder.js.map +0 -1
  519. package/node_modules/@grpc/grpc-js/build/src/subchannel-address.d.ts +0 -42
  520. package/node_modules/@grpc/grpc-js/build/src/subchannel-address.js +0 -202
  521. package/node_modules/@grpc/grpc-js/build/src/subchannel-address.js.map +0 -1
  522. package/node_modules/@grpc/grpc-js/build/src/subchannel-call.d.ts +0 -68
  523. package/node_modules/@grpc/grpc-js/build/src/subchannel-call.js +0 -545
  524. package/node_modules/@grpc/grpc-js/build/src/subchannel-call.js.map +0 -1
  525. package/node_modules/@grpc/grpc-js/build/src/subchannel-interface.d.ts +0 -82
  526. package/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js +0 -114
  527. package/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js.map +0 -1
  528. package/node_modules/@grpc/grpc-js/build/src/subchannel-pool.d.ts +0 -40
  529. package/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js +0 -137
  530. package/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js.map +0 -1
  531. package/node_modules/@grpc/grpc-js/build/src/subchannel.d.ts +0 -135
  532. package/node_modules/@grpc/grpc-js/build/src/subchannel.js +0 -397
  533. package/node_modules/@grpc/grpc-js/build/src/subchannel.js.map +0 -1
  534. package/node_modules/@grpc/grpc-js/build/src/tls-helpers.d.ts +0 -2
  535. package/node_modules/@grpc/grpc-js/build/src/tls-helpers.js +0 -34
  536. package/node_modules/@grpc/grpc-js/build/src/tls-helpers.js.map +0 -1
  537. package/node_modules/@grpc/grpc-js/build/src/transport.d.ts +0 -135
  538. package/node_modules/@grpc/grpc-js/build/src/transport.js +0 -640
  539. package/node_modules/@grpc/grpc-js/build/src/transport.js.map +0 -1
  540. package/node_modules/@grpc/grpc-js/build/src/uri-parser.d.ts +0 -13
  541. package/node_modules/@grpc/grpc-js/build/src/uri-parser.js +0 -125
  542. package/node_modules/@grpc/grpc-js/build/src/uri-parser.js.map +0 -1
  543. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/LICENSE +0 -201
  544. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/README.md +0 -140
  545. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/bin/proto-loader-gen-types.js +0 -915
  546. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/bin/proto-loader-gen-types.js.map +0 -1
  547. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/index.d.ts +0 -162
  548. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/index.js +0 -246
  549. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/index.js.map +0 -1
  550. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/util.d.ts +0 -27
  551. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/util.js +0 -89
  552. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/util.js.map +0 -1
  553. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/package.json +0 -69
  554. package/node_modules/@grpc/grpc-js/package.json +0 -89
  555. package/node_modules/@grpc/grpc-js/proto/channelz.proto +0 -564
  556. package/node_modules/@grpc/grpc-js/proto/protoc-gen-validate/LICENSE +0 -202
  557. package/node_modules/@grpc/grpc-js/proto/protoc-gen-validate/validate/validate.proto +0 -797
  558. package/node_modules/@grpc/grpc-js/proto/xds/LICENSE +0 -201
  559. package/node_modules/@grpc/grpc-js/proto/xds/xds/data/orca/v3/orca_load_report.proto +0 -58
  560. package/node_modules/@grpc/grpc-js/proto/xds/xds/service/orca/v3/orca.proto +0 -36
  561. package/node_modules/@grpc/grpc-js/src/admin.ts +0 -45
  562. package/node_modules/@grpc/grpc-js/src/auth-context.ts +0 -23
  563. package/node_modules/@grpc/grpc-js/src/backoff-timeout.ts +0 -222
  564. package/node_modules/@grpc/grpc-js/src/call-credentials.ts +0 -227
  565. package/node_modules/@grpc/grpc-js/src/call-interface.ts +0 -208
  566. package/node_modules/@grpc/grpc-js/src/call-number.ts +0 -22
  567. package/node_modules/@grpc/grpc-js/src/call.ts +0 -218
  568. package/node_modules/@grpc/grpc-js/src/certificate-provider.ts +0 -176
  569. package/node_modules/@grpc/grpc-js/src/channel-credentials.ts +0 -523
  570. package/node_modules/@grpc/grpc-js/src/channel-options.ts +0 -128
  571. package/node_modules/@grpc/grpc-js/src/channel.ts +0 -174
  572. package/node_modules/@grpc/grpc-js/src/channelz.ts +0 -909
  573. package/node_modules/@grpc/grpc-js/src/client-interceptors.ts +0 -585
  574. package/node_modules/@grpc/grpc-js/src/client.ts +0 -716
  575. package/node_modules/@grpc/grpc-js/src/compression-algorithms.ts +0 -22
  576. package/node_modules/@grpc/grpc-js/src/compression-filter.ts +0 -358
  577. package/node_modules/@grpc/grpc-js/src/connectivity-state.ts +0 -24
  578. package/node_modules/@grpc/grpc-js/src/constants.ts +0 -66
  579. package/node_modules/@grpc/grpc-js/src/control-plane-status.ts +0 -43
  580. package/node_modules/@grpc/grpc-js/src/deadline.ts +0 -106
  581. package/node_modules/@grpc/grpc-js/src/duration.ts +0 -79
  582. package/node_modules/@grpc/grpc-js/src/environment.ts +0 -19
  583. package/node_modules/@grpc/grpc-js/src/error.ts +0 -37
  584. package/node_modules/@grpc/grpc-js/src/events.ts +0 -26
  585. package/node_modules/@grpc/grpc-js/src/experimental.ts +0 -73
  586. package/node_modules/@grpc/grpc-js/src/filter-stack.ts +0 -100
  587. package/node_modules/@grpc/grpc-js/src/filter.ts +0 -63
  588. package/node_modules/@grpc/grpc-js/src/generated/channelz.ts +0 -119
  589. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Any.ts +0 -13
  590. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/BoolValue.ts +0 -10
  591. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/BytesValue.ts +0 -10
  592. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/DescriptorProto.ts +0 -59
  593. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/DoubleValue.ts +0 -10
  594. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Duration.ts +0 -13
  595. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Edition.ts +0 -44
  596. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/EnumDescriptorProto.ts +0 -33
  597. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/EnumOptions.ts +0 -26
  598. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/EnumValueDescriptorProto.ts +0 -15
  599. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/EnumValueOptions.ts +0 -21
  600. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/ExtensionRangeOptions.ts +0 -49
  601. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FeatureSet.ts +0 -183
  602. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FeatureSetDefaults.ts +0 -28
  603. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FieldDescriptorProto.ts +0 -112
  604. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FieldOptions.ts +0 -165
  605. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FileDescriptorProto.ts +0 -43
  606. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FileDescriptorSet.ts +0 -11
  607. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FileOptions.ts +0 -76
  608. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FloatValue.ts +0 -10
  609. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/GeneratedCodeInfo.ts +0 -44
  610. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Int32Value.ts +0 -10
  611. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Int64Value.ts +0 -11
  612. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/MessageOptions.ts +0 -32
  613. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/MethodDescriptorProto.ts +0 -21
  614. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/MethodOptions.ts +0 -36
  615. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/OneofDescriptorProto.ts +0 -13
  616. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/OneofOptions.ts +0 -16
  617. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/ServiceDescriptorProto.ts +0 -16
  618. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/ServiceOptions.ts +0 -16
  619. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/SourceCodeInfo.ts +0 -26
  620. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/StringValue.ts +0 -10
  621. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/SymbolVisibility.ts +0 -17
  622. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Timestamp.ts +0 -13
  623. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/UInt32Value.ts +0 -10
  624. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/UInt64Value.ts +0 -11
  625. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/UninterpretedOption.ts +0 -33
  626. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Address.ts +0 -89
  627. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Channel.ts +0 -68
  628. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ChannelConnectivityState.ts +0 -45
  629. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ChannelData.ts +0 -76
  630. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ChannelRef.ts +0 -31
  631. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ChannelTrace.ts +0 -45
  632. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ChannelTraceEvent.ts +0 -91
  633. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Channelz.ts +0 -178
  634. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetChannelRequest.ts +0 -17
  635. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetChannelResponse.ts +0 -19
  636. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServerRequest.ts +0 -17
  637. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServerResponse.ts +0 -19
  638. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServerSocketsRequest.ts +0 -39
  639. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServerSocketsResponse.ts +0 -33
  640. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServersRequest.ts +0 -37
  641. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServersResponse.ts +0 -33
  642. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetSocketRequest.ts +0 -29
  643. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetSocketResponse.ts +0 -19
  644. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetSubchannelRequest.ts +0 -17
  645. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetSubchannelResponse.ts +0 -19
  646. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetTopChannelsRequest.ts +0 -37
  647. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetTopChannelsResponse.ts +0 -33
  648. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Security.ts +0 -87
  649. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Server.ts +0 -45
  650. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ServerData.ts +0 -57
  651. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ServerRef.ts +0 -31
  652. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Socket.ts +0 -70
  653. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketData.ts +0 -150
  654. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketOption.ts +0 -47
  655. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketOptionLinger.ts +0 -33
  656. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.ts +0 -74
  657. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketOptionTimeout.ts +0 -19
  658. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketRef.ts +0 -31
  659. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Subchannel.ts +0 -70
  660. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SubchannelRef.ts +0 -31
  661. package/node_modules/@grpc/grpc-js/src/generated/orca.ts +0 -146
  662. package/node_modules/@grpc/grpc-js/src/generated/validate/AnyRules.ts +0 -44
  663. package/node_modules/@grpc/grpc-js/src/generated/validate/BoolRules.ts +0 -22
  664. package/node_modules/@grpc/grpc-js/src/generated/validate/BytesRules.ts +0 -153
  665. package/node_modules/@grpc/grpc-js/src/generated/validate/DoubleRules.ts +0 -86
  666. package/node_modules/@grpc/grpc-js/src/generated/validate/DurationRules.ts +0 -93
  667. package/node_modules/@grpc/grpc-js/src/generated/validate/EnumRules.ts +0 -52
  668. package/node_modules/@grpc/grpc-js/src/generated/validate/FieldRules.ts +0 -102
  669. package/node_modules/@grpc/grpc-js/src/generated/validate/Fixed32Rules.ts +0 -86
  670. package/node_modules/@grpc/grpc-js/src/generated/validate/Fixed64Rules.ts +0 -87
  671. package/node_modules/@grpc/grpc-js/src/generated/validate/FloatRules.ts +0 -86
  672. package/node_modules/@grpc/grpc-js/src/generated/validate/Int32Rules.ts +0 -86
  673. package/node_modules/@grpc/grpc-js/src/generated/validate/Int64Rules.ts +0 -87
  674. package/node_modules/@grpc/grpc-js/src/generated/validate/KnownRegex.ts +0 -38
  675. package/node_modules/@grpc/grpc-js/src/generated/validate/MapRules.ts +0 -66
  676. package/node_modules/@grpc/grpc-js/src/generated/validate/MessageRules.ts +0 -34
  677. package/node_modules/@grpc/grpc-js/src/generated/validate/RepeatedRules.ts +0 -60
  678. package/node_modules/@grpc/grpc-js/src/generated/validate/SFixed32Rules.ts +0 -86
  679. package/node_modules/@grpc/grpc-js/src/generated/validate/SFixed64Rules.ts +0 -87
  680. package/node_modules/@grpc/grpc-js/src/generated/validate/SInt32Rules.ts +0 -86
  681. package/node_modules/@grpc/grpc-js/src/generated/validate/SInt64Rules.ts +0 -87
  682. package/node_modules/@grpc/grpc-js/src/generated/validate/StringRules.ts +0 -288
  683. package/node_modules/@grpc/grpc-js/src/generated/validate/TimestampRules.ts +0 -106
  684. package/node_modules/@grpc/grpc-js/src/generated/validate/UInt32Rules.ts +0 -86
  685. package/node_modules/@grpc/grpc-js/src/generated/validate/UInt64Rules.ts +0 -87
  686. package/node_modules/@grpc/grpc-js/src/generated/xds/data/orca/v3/OrcaLoadReport.ts +0 -113
  687. package/node_modules/@grpc/grpc-js/src/generated/xds/service/orca/v3/OpenRcaService.ts +0 -43
  688. package/node_modules/@grpc/grpc-js/src/generated/xds/service/orca/v3/OrcaLoadReportRequest.ts +0 -29
  689. package/node_modules/@grpc/grpc-js/src/http_proxy.ts +0 -315
  690. package/node_modules/@grpc/grpc-js/src/index.ts +0 -312
  691. package/node_modules/@grpc/grpc-js/src/internal-channel.ts +0 -878
  692. package/node_modules/@grpc/grpc-js/src/load-balancer-child-handler.ts +0 -173
  693. package/node_modules/@grpc/grpc-js/src/load-balancer-outlier-detection.ts +0 -840
  694. package/node_modules/@grpc/grpc-js/src/load-balancer-pick-first.ts +0 -662
  695. package/node_modules/@grpc/grpc-js/src/load-balancer-round-robin.ts +0 -287
  696. package/node_modules/@grpc/grpc-js/src/load-balancer-weighted-round-robin.ts +0 -494
  697. package/node_modules/@grpc/grpc-js/src/load-balancer.ts +0 -258
  698. package/node_modules/@grpc/grpc-js/src/load-balancing-call.ts +0 -387
  699. package/node_modules/@grpc/grpc-js/src/logging.ts +0 -134
  700. package/node_modules/@grpc/grpc-js/src/make-client.ts +0 -238
  701. package/node_modules/@grpc/grpc-js/src/metadata.ts +0 -323
  702. package/node_modules/@grpc/grpc-js/src/object-stream.ts +0 -66
  703. package/node_modules/@grpc/grpc-js/src/orca.ts +0 -349
  704. package/node_modules/@grpc/grpc-js/src/picker.ts +0 -157
  705. package/node_modules/@grpc/grpc-js/src/priority-queue.ts +0 -118
  706. package/node_modules/@grpc/grpc-js/src/resolver-dns.ts +0 -449
  707. package/node_modules/@grpc/grpc-js/src/resolver-ip.ts +0 -124
  708. package/node_modules/@grpc/grpc-js/src/resolver-uds.ts +0 -63
  709. package/node_modules/@grpc/grpc-js/src/resolver.ts +0 -176
  710. package/node_modules/@grpc/grpc-js/src/resolving-call.ts +0 -379
  711. package/node_modules/@grpc/grpc-js/src/resolving-load-balancer.ts +0 -407
  712. package/node_modules/@grpc/grpc-js/src/retrying-call.ts +0 -924
  713. package/node_modules/@grpc/grpc-js/src/server-call.ts +0 -420
  714. package/node_modules/@grpc/grpc-js/src/server-credentials.ts +0 -352
  715. package/node_modules/@grpc/grpc-js/src/server-interceptors.ts +0 -1071
  716. package/node_modules/@grpc/grpc-js/src/server.ts +0 -2212
  717. package/node_modules/@grpc/grpc-js/src/service-config.ts +0 -564
  718. package/node_modules/@grpc/grpc-js/src/single-subchannel-channel.ts +0 -248
  719. package/node_modules/@grpc/grpc-js/src/status-builder.ts +0 -80
  720. package/node_modules/@grpc/grpc-js/src/stream-decoder.ts +0 -110
  721. package/node_modules/@grpc/grpc-js/src/subchannel-address.ts +0 -252
  722. package/node_modules/@grpc/grpc-js/src/subchannel-call.ts +0 -622
  723. package/node_modules/@grpc/grpc-js/src/subchannel-interface.ts +0 -176
  724. package/node_modules/@grpc/grpc-js/src/subchannel-pool.ts +0 -176
  725. package/node_modules/@grpc/grpc-js/src/subchannel.ts +0 -559
  726. package/node_modules/@grpc/grpc-js/src/tls-helpers.ts +0 -35
  727. package/node_modules/@grpc/grpc-js/src/transport.ts +0 -825
  728. package/node_modules/@grpc/grpc-js/src/uri-parser.ts +0 -127
  729. package/node_modules/@grpc/proto-loader/LICENSE +0 -201
  730. package/node_modules/@grpc/proto-loader/README.md +0 -140
  731. package/node_modules/@grpc/proto-loader/build/bin/proto-loader-gen-types.js +0 -913
  732. package/node_modules/@grpc/proto-loader/build/bin/proto-loader-gen-types.js.map +0 -1
  733. package/node_modules/@grpc/proto-loader/build/src/index.d.ts +0 -160
  734. package/node_modules/@grpc/proto-loader/build/src/index.js +0 -244
  735. package/node_modules/@grpc/proto-loader/build/src/index.js.map +0 -1
  736. package/node_modules/@grpc/proto-loader/build/src/util.d.ts +0 -27
  737. package/node_modules/@grpc/proto-loader/build/src/util.js +0 -89
  738. package/node_modules/@grpc/proto-loader/build/src/util.js.map +0 -1
  739. package/node_modules/@grpc/proto-loader/package.json +0 -69
  740. package/node_modules/@js-sdsl/ordered-map/CHANGELOG.md +0 -237
  741. package/node_modules/@js-sdsl/ordered-map/LICENSE +0 -21
  742. package/node_modules/@js-sdsl/ordered-map/README.md +0 -270
  743. package/node_modules/@js-sdsl/ordered-map/README.zh-CN.md +0 -272
  744. package/node_modules/@js-sdsl/ordered-map/dist/cjs/index.d.ts +0 -402
  745. package/node_modules/@js-sdsl/ordered-map/dist/cjs/index.js +0 -795
  746. package/node_modules/@js-sdsl/ordered-map/dist/cjs/index.js.map +0 -1
  747. package/node_modules/@js-sdsl/ordered-map/dist/esm/index.d.ts +0 -402
  748. package/node_modules/@js-sdsl/ordered-map/dist/esm/index.js +0 -975
  749. package/node_modules/@js-sdsl/ordered-map/dist/esm/index.js.map +0 -1
  750. package/node_modules/@js-sdsl/ordered-map/dist/umd/ordered-map.js +0 -1157
  751. package/node_modules/@js-sdsl/ordered-map/dist/umd/ordered-map.min.js +0 -8
  752. package/node_modules/@js-sdsl/ordered-map/dist/umd/ordered-map.min.js.map +0 -1
  753. package/node_modules/@js-sdsl/ordered-map/package.json +0 -138
  754. package/node_modules/@protobufjs/aspromise/LICENSE +0 -26
  755. package/node_modules/@protobufjs/aspromise/README.md +0 -13
  756. package/node_modules/@protobufjs/aspromise/index.d.ts +0 -13
  757. package/node_modules/@protobufjs/aspromise/index.js +0 -52
  758. package/node_modules/@protobufjs/aspromise/package.json +0 -21
  759. package/node_modules/@protobufjs/aspromise/tests/index.js +0 -130
  760. package/node_modules/@protobufjs/base64/LICENSE +0 -26
  761. package/node_modules/@protobufjs/base64/README.md +0 -19
  762. package/node_modules/@protobufjs/base64/index.d.ts +0 -32
  763. package/node_modules/@protobufjs/base64/index.js +0 -139
  764. package/node_modules/@protobufjs/base64/package.json +0 -21
  765. package/node_modules/@protobufjs/base64/tests/index.js +0 -46
  766. package/node_modules/@protobufjs/codegen/LICENSE +0 -26
  767. package/node_modules/@protobufjs/codegen/README.md +0 -49
  768. package/node_modules/@protobufjs/codegen/index.d.ts +0 -31
  769. package/node_modules/@protobufjs/codegen/index.js +0 -99
  770. package/node_modules/@protobufjs/codegen/package.json +0 -13
  771. package/node_modules/@protobufjs/codegen/tests/index.js +0 -13
  772. package/node_modules/@protobufjs/eventemitter/LICENSE +0 -26
  773. package/node_modules/@protobufjs/eventemitter/README.md +0 -22
  774. package/node_modules/@protobufjs/eventemitter/index.d.ts +0 -43
  775. package/node_modules/@protobufjs/eventemitter/index.js +0 -76
  776. package/node_modules/@protobufjs/eventemitter/package.json +0 -21
  777. package/node_modules/@protobufjs/eventemitter/tests/index.js +0 -47
  778. package/node_modules/@protobufjs/fetch/LICENSE +0 -26
  779. package/node_modules/@protobufjs/fetch/README.md +0 -13
  780. package/node_modules/@protobufjs/fetch/index.d.ts +0 -56
  781. package/node_modules/@protobufjs/fetch/index.js +0 -115
  782. package/node_modules/@protobufjs/fetch/package.json +0 -25
  783. package/node_modules/@protobufjs/fetch/tests/index.js +0 -16
  784. package/node_modules/@protobufjs/float/LICENSE +0 -26
  785. package/node_modules/@protobufjs/float/README.md +0 -102
  786. package/node_modules/@protobufjs/float/bench/index.js +0 -87
  787. package/node_modules/@protobufjs/float/bench/suite.js +0 -46
  788. package/node_modules/@protobufjs/float/index.d.ts +0 -83
  789. package/node_modules/@protobufjs/float/index.js +0 -335
  790. package/node_modules/@protobufjs/float/package.json +0 -26
  791. package/node_modules/@protobufjs/float/tests/index.js +0 -100
  792. package/node_modules/@protobufjs/inquire/.npmignore +0 -3
  793. package/node_modules/@protobufjs/inquire/LICENSE +0 -26
  794. package/node_modules/@protobufjs/inquire/README.md +0 -13
  795. package/node_modules/@protobufjs/inquire/index.d.ts +0 -9
  796. package/node_modules/@protobufjs/inquire/index.js +0 -17
  797. package/node_modules/@protobufjs/inquire/package.json +0 -21
  798. package/node_modules/@protobufjs/inquire/tests/data/array.js +0 -1
  799. package/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +0 -1
  800. package/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +0 -1
  801. package/node_modules/@protobufjs/inquire/tests/data/object.js +0 -1
  802. package/node_modules/@protobufjs/inquire/tests/index.js +0 -20
  803. package/node_modules/@protobufjs/path/LICENSE +0 -26
  804. package/node_modules/@protobufjs/path/README.md +0 -19
  805. package/node_modules/@protobufjs/path/index.d.ts +0 -22
  806. package/node_modules/@protobufjs/path/index.js +0 -65
  807. package/node_modules/@protobufjs/path/package.json +0 -21
  808. package/node_modules/@protobufjs/path/tests/index.js +0 -60
  809. package/node_modules/@protobufjs/pool/.npmignore +0 -3
  810. package/node_modules/@protobufjs/pool/LICENSE +0 -26
  811. package/node_modules/@protobufjs/pool/README.md +0 -13
  812. package/node_modules/@protobufjs/pool/index.d.ts +0 -32
  813. package/node_modules/@protobufjs/pool/index.js +0 -48
  814. package/node_modules/@protobufjs/pool/package.json +0 -21
  815. package/node_modules/@protobufjs/pool/tests/index.js +0 -33
  816. package/node_modules/@protobufjs/utf8/.npmignore +0 -3
  817. package/node_modules/@protobufjs/utf8/LICENSE +0 -26
  818. package/node_modules/@protobufjs/utf8/README.md +0 -20
  819. package/node_modules/@protobufjs/utf8/index.d.ts +0 -24
  820. package/node_modules/@protobufjs/utf8/index.js +0 -105
  821. package/node_modules/@protobufjs/utf8/package.json +0 -21
  822. package/node_modules/@protobufjs/utf8/tests/data/utf8.txt +0 -216
  823. package/node_modules/@protobufjs/utf8/tests/index.js +0 -57
  824. package/node_modules/@types/node/LICENSE +0 -21
  825. package/node_modules/@types/node/README.md +0 -16
  826. package/node_modules/@types/node/assert/strict.d.ts +0 -8
  827. package/node_modules/@types/node/assert.d.ts +0 -912
  828. package/node_modules/@types/node/async_hooks.d.ts +0 -497
  829. package/node_modules/@types/node/buffer.d.ts +0 -2142
  830. package/node_modules/@types/node/child_process.d.ts +0 -1355
  831. package/node_modules/@types/node/cluster.d.ts +0 -414
  832. package/node_modules/@types/node/console.d.ts +0 -407
  833. package/node_modules/@types/node/constants.d.ts +0 -18
  834. package/node_modules/@types/node/crypto.d.ts +0 -3243
  835. package/node_modules/@types/node/dgram.d.ts +0 -545
  836. package/node_modules/@types/node/diagnostics_channel.d.ts +0 -128
  837. package/node_modules/@types/node/dns/promises.d.ts +0 -357
  838. package/node_modules/@types/node/dns.d.ts +0 -643
  839. package/node_modules/@types/node/domain.d.ts +0 -169
  840. package/node_modules/@types/node/events.d.ts +0 -623
  841. package/node_modules/@types/node/fs/promises.d.ts +0 -997
  842. package/node_modules/@types/node/fs.d.ts +0 -3723
  843. package/node_modules/@types/node/globals.d.ts +0 -284
  844. package/node_modules/@types/node/globals.global.d.ts +0 -1
  845. package/node_modules/@types/node/http.d.ts +0 -1358
  846. package/node_modules/@types/node/http2.d.ts +0 -2100
  847. package/node_modules/@types/node/https.d.ts +0 -391
  848. package/node_modules/@types/node/index.d.ts +0 -132
  849. package/node_modules/@types/node/inspector.d.ts +0 -2738
  850. package/node_modules/@types/node/module.d.ts +0 -114
  851. package/node_modules/@types/node/net.d.ts +0 -783
  852. package/node_modules/@types/node/os.d.ts +0 -455
  853. package/node_modules/@types/node/package.json +0 -235
  854. package/node_modules/@types/node/path.d.ts +0 -172
  855. package/node_modules/@types/node/perf_hooks.d.ts +0 -555
  856. package/node_modules/@types/node/process.d.ts +0 -1477
  857. package/node_modules/@types/node/punycode.d.ts +0 -117
  858. package/node_modules/@types/node/querystring.d.ts +0 -131
  859. package/node_modules/@types/node/readline.d.ts +0 -542
  860. package/node_modules/@types/node/repl.d.ts +0 -424
  861. package/node_modules/@types/node/stream/consumers.d.ts +0 -24
  862. package/node_modules/@types/node/stream/promises.d.ts +0 -42
  863. package/node_modules/@types/node/stream/web.d.ts +0 -6
  864. package/node_modules/@types/node/stream.d.ts +0 -1218
  865. package/node_modules/@types/node/string_decoder.d.ts +0 -67
  866. package/node_modules/@types/node/timers/promises.d.ts +0 -68
  867. package/node_modules/@types/node/timers.d.ts +0 -94
  868. package/node_modules/@types/node/tls.d.ts +0 -1019
  869. package/node_modules/@types/node/trace_events.d.ts +0 -161
  870. package/node_modules/@types/node/tty.d.ts +0 -206
  871. package/node_modules/@types/node/url.d.ts +0 -798
  872. package/node_modules/@types/node/util.d.ts +0 -1564
  873. package/node_modules/@types/node/v8.d.ts +0 -378
  874. package/node_modules/@types/node/vm.d.ts +0 -508
  875. package/node_modules/@types/node/wasi.d.ts +0 -153
  876. package/node_modules/@types/node/worker_threads.d.ts +0 -649
  877. package/node_modules/@types/node/zlib.d.ts +0 -517
  878. package/node_modules/ansi-regex/index.d.ts +0 -37
  879. package/node_modules/ansi-regex/index.js +0 -10
  880. package/node_modules/ansi-regex/license +0 -9
  881. package/node_modules/ansi-regex/package.json +0 -55
  882. package/node_modules/ansi-regex/readme.md +0 -78
  883. package/node_modules/ansi-styles/index.d.ts +0 -345
  884. package/node_modules/ansi-styles/index.js +0 -163
  885. package/node_modules/ansi-styles/license +0 -9
  886. package/node_modules/ansi-styles/package.json +0 -56
  887. package/node_modules/ansi-styles/readme.md +0 -152
  888. package/node_modules/argparse/LICENSE +0 -254
  889. package/node_modules/argparse/README.md +0 -84
  890. package/node_modules/argparse/argparse.js +0 -3707
  891. package/node_modules/argparse/lib/sub.js +0 -67
  892. package/node_modules/argparse/lib/textwrap.js +0 -440
  893. package/node_modules/argparse/package.json +0 -31
  894. package/node_modules/asn1/Jenkinsfile +0 -65
  895. package/node_modules/asn1/LICENSE +0 -19
  896. package/node_modules/asn1/README.md +0 -50
  897. package/node_modules/asn1/lib/ber/errors.js +0 -13
  898. package/node_modules/asn1/lib/ber/index.js +0 -27
  899. package/node_modules/asn1/lib/ber/reader.js +0 -262
  900. package/node_modules/asn1/lib/ber/types.js +0 -36
  901. package/node_modules/asn1/lib/ber/writer.js +0 -317
  902. package/node_modules/asn1/lib/index.js +0 -20
  903. package/node_modules/asn1/package.json +0 -31
  904. package/node_modules/b4a/LICENSE +0 -201
  905. package/node_modules/b4a/README.md +0 -153
  906. package/node_modules/b4a/browser.js +0 -567
  907. package/node_modules/b4a/index.js +0 -188
  908. package/node_modules/b4a/lib/ascii.js +0 -31
  909. package/node_modules/b4a/lib/base64.js +0 -65
  910. package/node_modules/b4a/lib/hex.js +0 -51
  911. package/node_modules/b4a/lib/latin1.js +0 -31
  912. package/node_modules/b4a/lib/utf16le.js +0 -40
  913. package/node_modules/b4a/lib/utf8.js +0 -141
  914. package/node_modules/b4a/package.json +0 -49
  915. package/node_modules/b4a/react-native.js +0 -5
  916. package/node_modules/bare-events/LICENSE +0 -201
  917. package/node_modules/bare-events/README.md +0 -25
  918. package/node_modules/bare-events/global.d.ts +0 -15
  919. package/node_modules/bare-events/global.js +0 -5
  920. package/node_modules/bare-events/index.d.ts +0 -81
  921. package/node_modules/bare-events/index.js +0 -367
  922. package/node_modules/bare-events/lib/errors.js +0 -26
  923. package/node_modules/bare-events/package.json +0 -61
  924. package/node_modules/bare-events/web.d.ts +0 -79
  925. package/node_modules/bare-events/web.js +0 -335
  926. package/node_modules/bare-fs/CMakeLists.txt +0 -13
  927. package/node_modules/bare-fs/LICENSE +0 -201
  928. package/node_modules/bare-fs/README.md +0 -989
  929. package/node_modules/bare-fs/binding.c +0 -2889
  930. package/node_modules/bare-fs/binding.js +0 -1
  931. package/node_modules/bare-fs/index.d.ts +0 -1223
  932. package/node_modules/bare-fs/index.js +0 -2842
  933. package/node_modules/bare-fs/lib/constants.d.ts +0 -49
  934. package/node_modules/bare-fs/lib/constants.js +0 -49
  935. package/node_modules/bare-fs/lib/errors.d.ts +0 -11
  936. package/node_modules/bare-fs/lib/errors.js +0 -55
  937. package/node_modules/bare-fs/package.json +0 -74
  938. package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
  939. package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
  940. package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
  941. package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
  942. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  943. package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
  944. package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
  945. package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
  946. package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
  947. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  948. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  949. package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
  950. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  951. package/node_modules/bare-fs/promises.d.ts +0 -310
  952. package/node_modules/bare-fs/promises.js +0 -119
  953. package/node_modules/bare-os/CMakeLists.txt +0 -13
  954. package/node_modules/bare-os/LICENSE +0 -201
  955. package/node_modules/bare-os/README.md +0 -11
  956. package/node_modules/bare-os/binding.c +0 -1427
  957. package/node_modules/bare-os/binding.js +0 -1
  958. package/node_modules/bare-os/index.d.ts +0 -143
  959. package/node_modules/bare-os/index.js +0 -129
  960. package/node_modules/bare-os/lib/constants.js +0 -7
  961. package/node_modules/bare-os/lib/errors.js +0 -22
  962. package/node_modules/bare-os/package.json +0 -49
  963. package/node_modules/bare-os/prebuilds/android-arm/bare-os.bare +0 -0
  964. package/node_modules/bare-os/prebuilds/android-arm64/bare-os.bare +0 -0
  965. package/node_modules/bare-os/prebuilds/android-ia32/bare-os.bare +0 -0
  966. package/node_modules/bare-os/prebuilds/android-x64/bare-os.bare +0 -0
  967. package/node_modules/bare-os/prebuilds/darwin-arm64/bare-os.bare +0 -0
  968. package/node_modules/bare-os/prebuilds/darwin-x64/bare-os.bare +0 -0
  969. package/node_modules/bare-os/prebuilds/ios-arm64/bare-os.bare +0 -0
  970. package/node_modules/bare-os/prebuilds/ios-arm64-simulator/bare-os.bare +0 -0
  971. package/node_modules/bare-os/prebuilds/ios-x64-simulator/bare-os.bare +0 -0
  972. package/node_modules/bare-os/prebuilds/linux-arm64/bare-os.bare +0 -0
  973. package/node_modules/bare-os/prebuilds/linux-x64/bare-os.bare +0 -0
  974. package/node_modules/bare-os/prebuilds/win32-arm64/bare-os.bare +0 -0
  975. package/node_modules/bare-os/prebuilds/win32-x64/bare-os.bare +0 -0
  976. package/node_modules/bare-path/LICENSE +0 -201
  977. package/node_modules/bare-path/NOTICE +0 -28
  978. package/node_modules/bare-path/README.md +0 -19
  979. package/node_modules/bare-path/index.js +0 -11
  980. package/node_modules/bare-path/lib/constants.js +0 -11
  981. package/node_modules/bare-path/lib/posix.js +0 -242
  982. package/node_modules/bare-path/lib/shared.js +0 -67
  983. package/node_modules/bare-path/lib/win32.js +0 -513
  984. package/node_modules/bare-path/package.json +0 -36
  985. package/node_modules/bare-stream/LICENSE +0 -201
  986. package/node_modules/bare-stream/README.md +0 -15
  987. package/node_modules/bare-stream/global.js +0 -12
  988. package/node_modules/bare-stream/index.d.ts +0 -235
  989. package/node_modules/bare-stream/index.js +0 -492
  990. package/node_modules/bare-stream/package.json +0 -70
  991. package/node_modules/bare-stream/promises.js +0 -3
  992. package/node_modules/bare-stream/web.d.ts +0 -152
  993. package/node_modules/bare-stream/web.js +0 -607
  994. package/node_modules/bare-url/CMakeLists.txt +0 -27
  995. package/node_modules/bare-url/LICENSE +0 -201
  996. package/node_modules/bare-url/README.md +0 -19
  997. package/node_modules/bare-url/binding.c +0 -186
  998. package/node_modules/bare-url/binding.js +0 -1
  999. package/node_modules/bare-url/global.d.ts +0 -12
  1000. package/node_modules/bare-url/global.js +0 -2
  1001. package/node_modules/bare-url/index.d.ts +0 -41
  1002. package/node_modules/bare-url/index.js +0 -407
  1003. package/node_modules/bare-url/lib/errors.d.ts +0 -10
  1004. package/node_modules/bare-url/lib/errors.js +0 -33
  1005. package/node_modules/bare-url/lib/url-search-params.d.ts +0 -23
  1006. package/node_modules/bare-url/lib/url-search-params.js +0 -194
  1007. package/node_modules/bare-url/package.json +0 -54
  1008. package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
  1009. package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
  1010. package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
  1011. package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
  1012. package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
  1013. package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
  1014. package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
  1015. package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
  1016. package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
  1017. package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
  1018. package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
  1019. package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
  1020. package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
  1021. package/node_modules/base64-js/LICENSE +0 -21
  1022. package/node_modules/base64-js/README.md +0 -34
  1023. package/node_modules/base64-js/base64js.min.js +0 -1
  1024. package/node_modules/base64-js/index.d.ts +0 -3
  1025. package/node_modules/base64-js/index.js +0 -150
  1026. package/node_modules/base64-js/package.json +0 -47
  1027. package/node_modules/bcrypt-pbkdf/CONTRIBUTING.md +0 -13
  1028. package/node_modules/bcrypt-pbkdf/LICENSE +0 -66
  1029. package/node_modules/bcrypt-pbkdf/README.md +0 -45
  1030. package/node_modules/bcrypt-pbkdf/index.js +0 -556
  1031. package/node_modules/bcrypt-pbkdf/package.json +0 -15
  1032. package/node_modules/bl/.travis.yml +0 -17
  1033. package/node_modules/bl/BufferList.js +0 -396
  1034. package/node_modules/bl/LICENSE.md +0 -13
  1035. package/node_modules/bl/README.md +0 -247
  1036. package/node_modules/bl/bl.js +0 -84
  1037. package/node_modules/bl/package.json +0 -37
  1038. package/node_modules/bl/test/convert.js +0 -21
  1039. package/node_modules/bl/test/indexOf.js +0 -492
  1040. package/node_modules/bl/test/isBufferList.js +0 -32
  1041. package/node_modules/bl/test/test.js +0 -869
  1042. package/node_modules/buffer/AUTHORS.md +0 -70
  1043. package/node_modules/buffer/LICENSE +0 -21
  1044. package/node_modules/buffer/README.md +0 -410
  1045. package/node_modules/buffer/index.d.ts +0 -186
  1046. package/node_modules/buffer/index.js +0 -1817
  1047. package/node_modules/buffer/package.json +0 -96
  1048. package/node_modules/buildcheck/.eslintrc.js +0 -5
  1049. package/node_modules/buildcheck/.github/workflows/ci.yml +0 -88
  1050. package/node_modules/buildcheck/.github/workflows/lint.yml +0 -27
  1051. package/node_modules/buildcheck/.gitignore +0 -3
  1052. package/node_modules/buildcheck/LICENSE +0 -19
  1053. package/node_modules/buildcheck/README.md +0 -106
  1054. package/node_modules/buildcheck/deps/Find-VisualStudio.cs +0 -250
  1055. package/node_modules/buildcheck/lib/findvs.js +0 -361
  1056. package/node_modules/buildcheck/lib/index.js +0 -738
  1057. package/node_modules/buildcheck/package.json +0 -36
  1058. package/node_modules/buildcheck/test/test.js +0 -8
  1059. package/node_modules/chownr/LICENSE +0 -15
  1060. package/node_modules/chownr/README.md +0 -3
  1061. package/node_modules/chownr/chownr.js +0 -167
  1062. package/node_modules/chownr/package.json +0 -29
  1063. package/node_modules/cliui/LICENSE.txt +0 -14
  1064. package/node_modules/cliui/README.md +0 -141
  1065. package/node_modules/cliui/build/index.cjs +0 -302
  1066. package/node_modules/cliui/build/index.d.cts +0 -43
  1067. package/node_modules/cliui/build/lib/index.js +0 -287
  1068. package/node_modules/cliui/build/lib/string-utils.js +0 -27
  1069. package/node_modules/cliui/index.mjs +0 -13
  1070. package/node_modules/cliui/package.json +0 -83
  1071. package/node_modules/color-convert/LICENSE +0 -21
  1072. package/node_modules/color-convert/README.md +0 -68
  1073. package/node_modules/color-convert/conversions.js +0 -839
  1074. package/node_modules/color-convert/index.js +0 -81
  1075. package/node_modules/color-convert/package.json +0 -48
  1076. package/node_modules/color-convert/route.js +0 -97
  1077. package/node_modules/color-name/LICENSE +0 -8
  1078. package/node_modules/color-name/README.md +0 -11
  1079. package/node_modules/color-name/index.js +0 -152
  1080. package/node_modules/color-name/package.json +0 -28
  1081. package/node_modules/cpu-features/.eslintrc.js +0 -5
  1082. package/node_modules/cpu-features/.github/workflows/ci.yml +0 -74
  1083. package/node_modules/cpu-features/.github/workflows/lint.yml +0 -27
  1084. package/node_modules/cpu-features/LICENSE +0 -19
  1085. package/node_modules/cpu-features/README.md +0 -59
  1086. package/node_modules/cpu-features/binding.gyp +0 -16
  1087. package/node_modules/cpu-features/build/Makefile +0 -352
  1088. package/node_modules/cpu-features/build/Release/.deps/Release/cpu_features.a.d +0 -1
  1089. package/node_modules/cpu-features/build/Release/.deps/Release/cpufeatures.node.d +0 -1
  1090. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o.d +0 -8
  1091. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/hwcaps.o.d +0 -12
  1092. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o.d +0 -6
  1093. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.o.d +0 -26
  1094. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_windows.o.d +0 -6
  1095. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o.d +0 -6
  1096. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o.d +0 -6
  1097. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o.d +0 -6
  1098. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o.d +0 -6
  1099. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o.d +0 -6
  1100. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o.d +0 -6
  1101. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o.d +0 -6
  1102. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o.d +0 -12
  1103. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o.d +0 -11
  1104. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpufeatures/src/binding.o.d +0 -183
  1105. package/node_modules/cpu-features/build/Release/cpu_features.a +0 -0
  1106. package/node_modules/cpu-features/build/Release/cpufeatures.node +0 -0
  1107. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o +0 -0
  1108. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/hwcaps.o +0 -0
  1109. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o +0 -0
  1110. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.o +0 -0
  1111. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_windows.o +0 -0
  1112. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o +0 -0
  1113. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o +0 -0
  1114. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o +0 -0
  1115. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o +0 -0
  1116. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o +0 -0
  1117. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o +0 -0
  1118. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o +0 -0
  1119. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o +0 -0
  1120. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o +0 -0
  1121. package/node_modules/cpu-features/build/Release/obj.target/cpufeatures/src/binding.o +0 -0
  1122. package/node_modules/cpu-features/build/binding.Makefile +0 -6
  1123. package/node_modules/cpu-features/build/config.gypi +0 -512
  1124. package/node_modules/cpu-features/build/cpufeatures.target.mk +0 -192
  1125. package/node_modules/cpu-features/build/deps/cpu_features/cpu_features.Makefile +0 -6
  1126. package/node_modules/cpu-features/build/deps/cpu_features/cpu_features.target.mk +0 -204
  1127. package/node_modules/cpu-features/build/gyp-mac-tool +0 -766
  1128. package/node_modules/cpu-features/buildcheck.gypi +0 -17
  1129. package/node_modules/cpu-features/buildcheck.js +0 -32
  1130. package/node_modules/cpu-features/deps/cpu_features/.clang-format +0 -4
  1131. package/node_modules/cpu-features/deps/cpu_features/.dockerignore +0 -31
  1132. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/Dockerfile +0 -5
  1133. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/aarch64_linux_cmake.yml +0 -30
  1134. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_freebsd_cmake.yml +0 -22
  1135. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_bazel.yml +0 -26
  1136. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_cmake.yml +0 -31
  1137. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_macos_cmake.yml +0 -43
  1138. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_windows_cmake.yml +0 -25
  1139. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/arm_linux_cmake.yml +0 -31
  1140. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/clang_format.yml +0 -24
  1141. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/mips_linux_cmake.yml +0 -30
  1142. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/power_linux_cmake.yml +0 -29
  1143. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/riscv_linux_cmake.yml +0 -28
  1144. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/s390x_linux_cmake.yml +0 -27
  1145. package/node_modules/cpu-features/deps/cpu_features/.grenrc.yml +0 -21
  1146. package/node_modules/cpu-features/deps/cpu_features/BUILD.bazel +0 -329
  1147. package/node_modules/cpu-features/deps/cpu_features/CMakeLists.txt +0 -261
  1148. package/node_modules/cpu-features/deps/cpu_features/CONTRIBUTING.md +0 -23
  1149. package/node_modules/cpu-features/deps/cpu_features/LICENSE +0 -230
  1150. package/node_modules/cpu-features/deps/cpu_features/README.md +0 -272
  1151. package/node_modules/cpu-features/deps/cpu_features/WORKSPACE +0 -19
  1152. package/node_modules/cpu-features/deps/cpu_features/bazel/ci/README.md +0 -5
  1153. package/node_modules/cpu-features/deps/cpu_features/bazel/platforms.bzl +0 -11
  1154. package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesConfig.cmake.in +0 -3
  1155. package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesNdkCompatConfig.cmake.in +0 -3
  1156. package/node_modules/cpu-features/deps/cpu_features/cmake/README.md +0 -30
  1157. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/Makefile +0 -252
  1158. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/README.md +0 -40
  1159. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.dot +0 -64
  1160. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.svg +0 -312
  1161. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/generate_image.sh +0 -7
  1162. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/amd64/Dockerfile +0 -48
  1163. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/toolchain/Dockerfile +0 -34
  1164. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/CMakeLists.txt +0 -22
  1165. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/main.cpp +0 -11
  1166. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/vagrant/freebsd/Vagrantfile +0 -107
  1167. package/node_modules/cpu-features/deps/cpu_features/cmake/googletest.CMakeLists.txt.in +0 -15
  1168. package/node_modules/cpu-features/deps/cpu_features/cpu_features.gyp +0 -105
  1169. package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_cache_info.h +0 -54
  1170. package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_macros.h +0 -384
  1171. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_aarch64.h +0 -259
  1172. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_arm.h +0 -121
  1173. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_mips.h +0 -74
  1174. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_ppc.h +0 -149
  1175. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_riscv.h +0 -72
  1176. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_s390x.h +0 -108
  1177. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_x86.h +0 -288
  1178. package/node_modules/cpu-features/deps/cpu_features/include/internal/bit_utils.h +0 -40
  1179. package/node_modules/cpu-features/deps/cpu_features/include/internal/cpuid_x86.h +0 -37
  1180. package/node_modules/cpu-features/deps/cpu_features/include/internal/filesystem.h +0 -39
  1181. package/node_modules/cpu-features/deps/cpu_features/include/internal/hwcaps.h +0 -240
  1182. package/node_modules/cpu-features/deps/cpu_features/include/internal/stack_line_reader.h +0 -49
  1183. package/node_modules/cpu-features/deps/cpu_features/include/internal/string_view.h +0 -110
  1184. package/node_modules/cpu-features/deps/cpu_features/include/internal/windows_utils.h +0 -70
  1185. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/CMakeLists.txt +0 -60
  1186. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/README.md +0 -4
  1187. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.c +0 -205
  1188. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.h +0 -320
  1189. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/ndk-compat-test.c +0 -12
  1190. package/node_modules/cpu-features/deps/cpu_features/patches/0001-Add-Apple-Silicon-Support.patch +0 -456
  1191. package/node_modules/cpu-features/deps/cpu_features/scripts/generate_badges.d +0 -165
  1192. package/node_modules/cpu-features/deps/cpu_features/scripts/make_release.sh +0 -75
  1193. package/node_modules/cpu-features/deps/cpu_features/scripts/run_integration.sh +0 -490
  1194. package/node_modules/cpu-features/deps/cpu_features/scripts/test_integration.sh +0 -79
  1195. package/node_modules/cpu-features/deps/cpu_features/src/copy.inl +0 -19
  1196. package/node_modules/cpu-features/deps/cpu_features/src/define_introspection.inl +0 -86
  1197. package/node_modules/cpu-features/deps/cpu_features/src/define_introspection_and_hwcaps.inl +0 -26
  1198. package/node_modules/cpu-features/deps/cpu_features/src/equals.inl +0 -22
  1199. package/node_modules/cpu-features/deps/cpu_features/src/filesystem.c +0 -62
  1200. package/node_modules/cpu-features/deps/cpu_features/src/hwcaps.c +0 -169
  1201. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64__base_implementation.inl +0 -88
  1202. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_linux_or_android.c +0 -79
  1203. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.c +0 -82
  1204. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_windows.c +0 -138
  1205. package/node_modules/cpu-features/deps/cpu_features/src/impl_arm_linux_or_android.c +0 -212
  1206. package/node_modules/cpu-features/deps/cpu_features/src/impl_mips_linux_or_android.c +0 -93
  1207. package/node_modules/cpu-features/deps/cpu_features/src/impl_ppc_linux.c +0 -163
  1208. package/node_modules/cpu-features/deps/cpu_features/src/impl_riscv_linux.c +0 -111
  1209. package/node_modules/cpu-features/deps/cpu_features/src/impl_s390x_linux.c +0 -120
  1210. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86__base_implementation.inl +0 -2055
  1211. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_freebsd.c +0 -68
  1212. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_linux_or_android.c +0 -58
  1213. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_macos.c +0 -57
  1214. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_windows.c +0 -58
  1215. package/node_modules/cpu-features/deps/cpu_features/src/stack_line_reader.c +0 -132
  1216. package/node_modules/cpu-features/deps/cpu_features/src/string_view.c +0 -192
  1217. package/node_modules/cpu-features/deps/cpu_features/src/utils/list_cpu_features.c +0 -461
  1218. package/node_modules/cpu-features/deps/cpu_features/test/CMakeLists.txt +0 -114
  1219. package/node_modules/cpu-features/deps/cpu_features/test/bit_utils_test.cc +0 -53
  1220. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_aarch64_test.cc +0 -396
  1221. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_arm_test.cc +0 -384
  1222. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_mips_test.cc +0 -176
  1223. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_ppc_test.cc +0 -131
  1224. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_riscv_test.cc +0 -180
  1225. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_s390x_test.cc +0 -82
  1226. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_x86_test.cc +0 -1729
  1227. package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.cc +0 -103
  1228. package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.h +0 -61
  1229. package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.cc +0 -52
  1230. package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.h +0 -31
  1231. package/node_modules/cpu-features/deps/cpu_features/test/stack_line_reader_test.cc +0 -132
  1232. package/node_modules/cpu-features/deps/cpu_features/test/string_view_test.cc +0 -202
  1233. package/node_modules/cpu-features/lib/index.js +0 -5
  1234. package/node_modules/cpu-features/package.json +0 -40
  1235. package/node_modules/cpu-features/src/binding.cc +0 -151
  1236. package/node_modules/cpu-features/test/test.js +0 -12
  1237. package/node_modules/debug/LICENSE +0 -20
  1238. package/node_modules/debug/README.md +0 -481
  1239. package/node_modules/debug/package.json +0 -64
  1240. package/node_modules/debug/src/browser.js +0 -272
  1241. package/node_modules/debug/src/common.js +0 -292
  1242. package/node_modules/debug/src/index.js +0 -10
  1243. package/node_modules/debug/src/node.js +0 -263
  1244. package/node_modules/docker-modem/.eslintrc +0 -35
  1245. package/node_modules/docker-modem/.github/FUNDING.yml +0 -1
  1246. package/node_modules/docker-modem/.github/workflows/main.yml +0 -63
  1247. package/node_modules/docker-modem/.travis.yml +0 -36
  1248. package/node_modules/docker-modem/.vscode/launch.json +0 -22
  1249. package/node_modules/docker-modem/LICENSE +0 -201
  1250. package/node_modules/docker-modem/README.md +0 -64
  1251. package/node_modules/docker-modem/lib/http.js +0 -87
  1252. package/node_modules/docker-modem/lib/http_duplex.js +0 -55
  1253. package/node_modules/docker-modem/lib/modem.js +0 -577
  1254. package/node_modules/docker-modem/lib/ssh.js +0 -48
  1255. package/node_modules/docker-modem/lib/utils.js +0 -24
  1256. package/node_modules/docker-modem/package.json +0 -32
  1257. package/node_modules/docker-modem/test/modem_test.js +0 -248
  1258. package/node_modules/dockerode/.claude/settings.local.json +0 -8
  1259. package/node_modules/dockerode/.eslintignore +0 -2
  1260. package/node_modules/dockerode/.eslintrc +0 -35
  1261. package/node_modules/dockerode/.github/FUNDING.yml +0 -1
  1262. package/node_modules/dockerode/.github/stale.yml +0 -20
  1263. package/node_modules/dockerode/.github/workflows/main.yml +0 -35
  1264. package/node_modules/dockerode/.travis.yml +0 -24
  1265. package/node_modules/dockerode/.vscode/launch.json +0 -25
  1266. package/node_modules/dockerode/LICENSE +0 -201
  1267. package/node_modules/dockerode/README.md +0 -530
  1268. package/node_modules/dockerode/lib/buildkit.js +0 -242
  1269. package/node_modules/dockerode/lib/config.js +0 -135
  1270. package/node_modules/dockerode/lib/container.js +0 -1085
  1271. package/node_modules/dockerode/lib/docker.js +0 -1903
  1272. package/node_modules/dockerode/lib/exec.js +0 -139
  1273. package/node_modules/dockerode/lib/image.js +0 -279
  1274. package/node_modules/dockerode/lib/network.js +0 -171
  1275. package/node_modules/dockerode/lib/node.js +0 -135
  1276. package/node_modules/dockerode/lib/plugin.js +0 -372
  1277. package/node_modules/dockerode/lib/proto/auth.proto +0 -54
  1278. package/node_modules/dockerode/lib/proto/buildkit_status.proto +0 -81
  1279. package/node_modules/dockerode/lib/secret.js +0 -134
  1280. package/node_modules/dockerode/lib/service.js +0 -183
  1281. package/node_modules/dockerode/lib/session.js +0 -63
  1282. package/node_modules/dockerode/lib/task.js +0 -97
  1283. package/node_modules/dockerode/lib/util.js +0 -106
  1284. package/node_modules/dockerode/lib/volume.js +0 -90
  1285. package/node_modules/dockerode/package.json +0 -40
  1286. package/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  1287. package/node_modules/emoji-regex/README.md +0 -73
  1288. package/node_modules/emoji-regex/es2015/index.js +0 -6
  1289. package/node_modules/emoji-regex/es2015/text.js +0 -6
  1290. package/node_modules/emoji-regex/index.d.ts +0 -23
  1291. package/node_modules/emoji-regex/index.js +0 -6
  1292. package/node_modules/emoji-regex/package.json +0 -50
  1293. package/node_modules/emoji-regex/text.js +0 -6
  1294. package/node_modules/end-of-stream/LICENSE +0 -21
  1295. package/node_modules/end-of-stream/README.md +0 -54
  1296. package/node_modules/end-of-stream/index.js +0 -96
  1297. package/node_modules/end-of-stream/package.json +0 -37
  1298. package/node_modules/escalade/dist/index.js +0 -22
  1299. package/node_modules/escalade/dist/index.mjs +0 -22
  1300. package/node_modules/escalade/index.d.mts +0 -11
  1301. package/node_modules/escalade/index.d.ts +0 -15
  1302. package/node_modules/escalade/license +0 -9
  1303. package/node_modules/escalade/package.json +0 -74
  1304. package/node_modules/escalade/readme.md +0 -211
  1305. package/node_modules/escalade/sync/index.d.mts +0 -9
  1306. package/node_modules/escalade/sync/index.d.ts +0 -13
  1307. package/node_modules/escalade/sync/index.js +0 -18
  1308. package/node_modules/escalade/sync/index.mjs +0 -18
  1309. package/node_modules/events-universal/LICENSE +0 -201
  1310. package/node_modules/events-universal/README.md +0 -17
  1311. package/node_modules/events-universal/bare.js +0 -1
  1312. package/node_modules/events-universal/default.js +0 -1
  1313. package/node_modules/events-universal/index.js +0 -1
  1314. package/node_modules/events-universal/package.json +0 -39
  1315. package/node_modules/events-universal/react-native.js +0 -1
  1316. package/node_modules/fast-fifo/LICENSE +0 -21
  1317. package/node_modules/fast-fifo/README.md +0 -78
  1318. package/node_modules/fast-fifo/fixed-size.js +0 -39
  1319. package/node_modules/fast-fifo/index.js +0 -48
  1320. package/node_modules/fast-fifo/package.json +0 -28
  1321. package/node_modules/fs-constants/LICENSE +0 -21
  1322. package/node_modules/fs-constants/README.md +0 -26
  1323. package/node_modules/fs-constants/browser.js +0 -1
  1324. package/node_modules/fs-constants/index.js +0 -1
  1325. package/node_modules/fs-constants/package.json +0 -19
  1326. package/node_modules/fs-extra/LICENSE +0 -15
  1327. package/node_modules/fs-extra/README.md +0 -294
  1328. package/node_modules/fs-extra/lib/copy/copy-sync.js +0 -176
  1329. package/node_modules/fs-extra/lib/copy/copy.js +0 -180
  1330. package/node_modules/fs-extra/lib/copy/index.js +0 -7
  1331. package/node_modules/fs-extra/lib/empty/index.js +0 -39
  1332. package/node_modules/fs-extra/lib/ensure/file.js +0 -66
  1333. package/node_modules/fs-extra/lib/ensure/index.js +0 -23
  1334. package/node_modules/fs-extra/lib/ensure/link.js +0 -64
  1335. package/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
  1336. package/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
  1337. package/node_modules/fs-extra/lib/ensure/symlink.js +0 -92
  1338. package/node_modules/fs-extra/lib/esm.mjs +0 -68
  1339. package/node_modules/fs-extra/lib/fs/index.js +0 -146
  1340. package/node_modules/fs-extra/lib/index.js +0 -16
  1341. package/node_modules/fs-extra/lib/json/index.js +0 -16
  1342. package/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
  1343. package/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
  1344. package/node_modules/fs-extra/lib/json/output-json.js +0 -12
  1345. package/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
  1346. package/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
  1347. package/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
  1348. package/node_modules/fs-extra/lib/move/index.js +0 -7
  1349. package/node_modules/fs-extra/lib/move/move-sync.js +0 -55
  1350. package/node_modules/fs-extra/lib/move/move.js +0 -59
  1351. package/node_modules/fs-extra/lib/output-file/index.js +0 -31
  1352. package/node_modules/fs-extra/lib/path-exists/index.js +0 -12
  1353. package/node_modules/fs-extra/lib/remove/index.js +0 -17
  1354. package/node_modules/fs-extra/lib/util/async.js +0 -29
  1355. package/node_modules/fs-extra/lib/util/stat.js +0 -159
  1356. package/node_modules/fs-extra/lib/util/utimes.js +0 -36
  1357. package/node_modules/fs-extra/package.json +0 -71
  1358. package/node_modules/get-caller-file/LICENSE.md +0 -6
  1359. package/node_modules/get-caller-file/README.md +0 -41
  1360. package/node_modules/get-caller-file/index.d.ts +0 -2
  1361. package/node_modules/get-caller-file/index.js +0 -22
  1362. package/node_modules/get-caller-file/index.js.map +0 -1
  1363. package/node_modules/get-caller-file/package.json +0 -42
  1364. package/node_modules/graceful-fs/LICENSE +0 -15
  1365. package/node_modules/graceful-fs/README.md +0 -143
  1366. package/node_modules/graceful-fs/clone.js +0 -23
  1367. package/node_modules/graceful-fs/graceful-fs.js +0 -448
  1368. package/node_modules/graceful-fs/legacy-streams.js +0 -118
  1369. package/node_modules/graceful-fs/package.json +0 -53
  1370. package/node_modules/graceful-fs/polyfills.js +0 -355
  1371. package/node_modules/ieee754/LICENSE +0 -11
  1372. package/node_modules/ieee754/README.md +0 -51
  1373. package/node_modules/ieee754/index.d.ts +0 -10
  1374. package/node_modules/ieee754/index.js +0 -85
  1375. package/node_modules/ieee754/package.json +0 -52
  1376. package/node_modules/inherits/LICENSE +0 -16
  1377. package/node_modules/inherits/README.md +0 -42
  1378. package/node_modules/inherits/inherits.js +0 -9
  1379. package/node_modules/inherits/inherits_browser.js +0 -27
  1380. package/node_modules/inherits/package.json +0 -29
  1381. package/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  1382. package/node_modules/is-fullwidth-code-point/index.js +0 -50
  1383. package/node_modules/is-fullwidth-code-point/license +0 -9
  1384. package/node_modules/is-fullwidth-code-point/package.json +0 -42
  1385. package/node_modules/is-fullwidth-code-point/readme.md +0 -39
  1386. package/node_modules/js-yaml/LICENSE +0 -21
  1387. package/node_modules/js-yaml/README.md +0 -247
  1388. package/node_modules/js-yaml/bin/js-yaml.js +0 -126
  1389. package/node_modules/js-yaml/dist/js-yaml.js +0 -3880
  1390. package/node_modules/js-yaml/dist/js-yaml.min.js +0 -2
  1391. package/node_modules/js-yaml/dist/js-yaml.mjs +0 -3856
  1392. package/node_modules/js-yaml/index.js +0 -47
  1393. package/node_modules/js-yaml/lib/common.js +0 -59
  1394. package/node_modules/js-yaml/lib/dumper.js +0 -965
  1395. package/node_modules/js-yaml/lib/exception.js +0 -55
  1396. package/node_modules/js-yaml/lib/loader.js +0 -1733
  1397. package/node_modules/js-yaml/lib/schema/core.js +0 -11
  1398. package/node_modules/js-yaml/lib/schema/default.js +0 -22
  1399. package/node_modules/js-yaml/lib/schema/failsafe.js +0 -17
  1400. package/node_modules/js-yaml/lib/schema/json.js +0 -19
  1401. package/node_modules/js-yaml/lib/schema.js +0 -121
  1402. package/node_modules/js-yaml/lib/snippet.js +0 -101
  1403. package/node_modules/js-yaml/lib/type/binary.js +0 -125
  1404. package/node_modules/js-yaml/lib/type/bool.js +0 -35
  1405. package/node_modules/js-yaml/lib/type/float.js +0 -97
  1406. package/node_modules/js-yaml/lib/type/int.js +0 -156
  1407. package/node_modules/js-yaml/lib/type/map.js +0 -8
  1408. package/node_modules/js-yaml/lib/type/merge.js +0 -12
  1409. package/node_modules/js-yaml/lib/type/null.js +0 -35
  1410. package/node_modules/js-yaml/lib/type/omap.js +0 -44
  1411. package/node_modules/js-yaml/lib/type/pairs.js +0 -53
  1412. package/node_modules/js-yaml/lib/type/seq.js +0 -8
  1413. package/node_modules/js-yaml/lib/type/set.js +0 -29
  1414. package/node_modules/js-yaml/lib/type/str.js +0 -8
  1415. package/node_modules/js-yaml/lib/type/timestamp.js +0 -88
  1416. package/node_modules/js-yaml/lib/type.js +0 -66
  1417. package/node_modules/js-yaml/package.json +0 -66
  1418. package/node_modules/jsonfile/LICENSE +0 -15
  1419. package/node_modules/jsonfile/README.md +0 -230
  1420. package/node_modules/jsonfile/index.js +0 -88
  1421. package/node_modules/jsonfile/package.json +0 -40
  1422. package/node_modules/jsonfile/utils.js +0 -14
  1423. package/node_modules/lodash.camelcase/LICENSE +0 -47
  1424. package/node_modules/lodash.camelcase/README.md +0 -18
  1425. package/node_modules/lodash.camelcase/index.js +0 -599
  1426. package/node_modules/lodash.camelcase/package.json +0 -17
  1427. package/node_modules/long/LICENSE +0 -202
  1428. package/node_modules/long/README.md +0 -286
  1429. package/node_modules/long/index.d.ts +0 -2
  1430. package/node_modules/long/index.js +0 -1581
  1431. package/node_modules/long/package.json +0 -58
  1432. package/node_modules/long/types.d.ts +0 -474
  1433. package/node_modules/long/umd/index.d.ts +0 -3
  1434. package/node_modules/long/umd/index.js +0 -1622
  1435. package/node_modules/long/umd/package.json +0 -3
  1436. package/node_modules/long/umd/types.d.ts +0 -474
  1437. package/node_modules/mkdirp-classic/LICENSE +0 -21
  1438. package/node_modules/mkdirp-classic/README.md +0 -18
  1439. package/node_modules/mkdirp-classic/index.js +0 -98
  1440. package/node_modules/mkdirp-classic/package.json +0 -18
  1441. package/node_modules/ms/index.js +0 -162
  1442. package/node_modules/ms/license.md +0 -21
  1443. package/node_modules/ms/package.json +0 -38
  1444. package/node_modules/ms/readme.md +0 -59
  1445. package/node_modules/nan/.github/workflows/ci.yml +0 -52
  1446. package/node_modules/nan/.pre-commit-config.yaml +0 -8
  1447. package/node_modules/nan/CHANGELOG.md +0 -599
  1448. package/node_modules/nan/CMakeLists.txt +0 -138
  1449. package/node_modules/nan/LICENSE.md +0 -9
  1450. package/node_modules/nan/README.md +0 -456
  1451. package/node_modules/nan/doc/asyncworker.md +0 -146
  1452. package/node_modules/nan/doc/buffers.md +0 -54
  1453. package/node_modules/nan/doc/callback.md +0 -76
  1454. package/node_modules/nan/doc/converters.md +0 -41
  1455. package/node_modules/nan/doc/errors.md +0 -226
  1456. package/node_modules/nan/doc/json.md +0 -62
  1457. package/node_modules/nan/doc/maybe_types.md +0 -583
  1458. package/node_modules/nan/doc/methods.md +0 -689
  1459. package/node_modules/nan/doc/new.md +0 -147
  1460. package/node_modules/nan/doc/node_misc.md +0 -123
  1461. package/node_modules/nan/doc/object_wrappers.md +0 -263
  1462. package/node_modules/nan/doc/persistent.md +0 -296
  1463. package/node_modules/nan/doc/scopes.md +0 -73
  1464. package/node_modules/nan/doc/script.md +0 -58
  1465. package/node_modules/nan/doc/string_bytes.md +0 -81
  1466. package/node_modules/nan/doc/v8_internals.md +0 -199
  1467. package/node_modules/nan/doc/v8_misc.md +0 -85
  1468. package/node_modules/nan/include_dirs.js +0 -1
  1469. package/node_modules/nan/nan.h +0 -3202
  1470. package/node_modules/nan/nan_callbacks.h +0 -141
  1471. package/node_modules/nan/nan_callbacks_12_inl.h +0 -690
  1472. package/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -524
  1473. package/node_modules/nan/nan_converters.h +0 -72
  1474. package/node_modules/nan/nan_converters_43_inl.h +0 -68
  1475. package/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  1476. package/node_modules/nan/nan_define_own_property_helper.h +0 -29
  1477. package/node_modules/nan/nan_implementation_12_inl.h +0 -430
  1478. package/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  1479. package/node_modules/nan/nan_json.h +0 -166
  1480. package/node_modules/nan/nan_maybe_43_inl.h +0 -360
  1481. package/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  1482. package/node_modules/nan/nan_new.h +0 -340
  1483. package/node_modules/nan/nan_object_wrap.h +0 -156
  1484. package/node_modules/nan/nan_persistent_12_inl.h +0 -132
  1485. package/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  1486. package/node_modules/nan/nan_private.h +0 -73
  1487. package/node_modules/nan/nan_scriptorigin.h +0 -97
  1488. package/node_modules/nan/nan_string_bytes.h +0 -305
  1489. package/node_modules/nan/nan_typedarray_contents.h +0 -96
  1490. package/node_modules/nan/nan_weak.h +0 -453
  1491. package/node_modules/nan/package.json +0 -38
  1492. package/node_modules/nan/tools/1to2.js +0 -412
  1493. package/node_modules/nan/tools/README.md +0 -14
  1494. package/node_modules/nan/tools/package.json +0 -19
  1495. package/node_modules/once/LICENSE +0 -15
  1496. package/node_modules/once/README.md +0 -79
  1497. package/node_modules/once/once.js +0 -42
  1498. package/node_modules/once/package.json +0 -33
  1499. package/node_modules/protobufjs/LICENSE +0 -39
  1500. package/node_modules/protobufjs/README.md +0 -727
  1501. package/node_modules/protobufjs/dist/light/protobuf.js +0 -7839
  1502. package/node_modules/protobufjs/dist/light/protobuf.js.map +0 -1
  1503. package/node_modules/protobufjs/dist/light/protobuf.min.js +0 -8
  1504. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +0 -1
  1505. package/node_modules/protobufjs/dist/minimal/protobuf.js +0 -2736
  1506. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +0 -1
  1507. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +0 -8
  1508. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +0 -1
  1509. package/node_modules/protobufjs/dist/protobuf.js +0 -9643
  1510. package/node_modules/protobufjs/dist/protobuf.js.map +0 -1
  1511. package/node_modules/protobufjs/dist/protobuf.min.js +0 -8
  1512. package/node_modules/protobufjs/dist/protobuf.min.js.map +0 -1
  1513. package/node_modules/protobufjs/ext/debug/README.md +0 -4
  1514. package/node_modules/protobufjs/ext/debug/index.js +0 -71
  1515. package/node_modules/protobufjs/ext/descriptor/README.md +0 -72
  1516. package/node_modules/protobufjs/ext/descriptor/index.d.ts +0 -191
  1517. package/node_modules/protobufjs/ext/descriptor/index.js +0 -1162
  1518. package/node_modules/protobufjs/ext/descriptor/test.js +0 -54
  1519. package/node_modules/protobufjs/google/LICENSE +0 -27
  1520. package/node_modules/protobufjs/google/README.md +0 -1
  1521. package/node_modules/protobufjs/google/api/annotations.json +0 -83
  1522. package/node_modules/protobufjs/google/api/annotations.proto +0 -11
  1523. package/node_modules/protobufjs/google/api/http.json +0 -86
  1524. package/node_modules/protobufjs/google/api/http.proto +0 -31
  1525. package/node_modules/protobufjs/google/protobuf/api.json +0 -118
  1526. package/node_modules/protobufjs/google/protobuf/api.proto +0 -34
  1527. package/node_modules/protobufjs/google/protobuf/descriptor.json +0 -1382
  1528. package/node_modules/protobufjs/google/protobuf/descriptor.proto +0 -535
  1529. package/node_modules/protobufjs/google/protobuf/source_context.json +0 -20
  1530. package/node_modules/protobufjs/google/protobuf/source_context.proto +0 -7
  1531. package/node_modules/protobufjs/google/protobuf/type.json +0 -202
  1532. package/node_modules/protobufjs/google/protobuf/type.proto +0 -89
  1533. package/node_modules/protobufjs/index.d.ts +0 -2799
  1534. package/node_modules/protobufjs/index.js +0 -4
  1535. package/node_modules/protobufjs/light.d.ts +0 -2
  1536. package/node_modules/protobufjs/light.js +0 -4
  1537. package/node_modules/protobufjs/minimal.d.ts +0 -2
  1538. package/node_modules/protobufjs/minimal.js +0 -4
  1539. package/node_modules/protobufjs/package.json +0 -114
  1540. package/node_modules/protobufjs/scripts/postinstall.js +0 -32
  1541. package/node_modules/protobufjs/src/common.js +0 -399
  1542. package/node_modules/protobufjs/src/converter.js +0 -301
  1543. package/node_modules/protobufjs/src/decoder.js +0 -127
  1544. package/node_modules/protobufjs/src/encoder.js +0 -100
  1545. package/node_modules/protobufjs/src/enum.js +0 -223
  1546. package/node_modules/protobufjs/src/field.js +0 -453
  1547. package/node_modules/protobufjs/src/index-light.js +0 -104
  1548. package/node_modules/protobufjs/src/index-minimal.js +0 -36
  1549. package/node_modules/protobufjs/src/index.js +0 -12
  1550. package/node_modules/protobufjs/src/mapfield.js +0 -126
  1551. package/node_modules/protobufjs/src/message.js +0 -143
  1552. package/node_modules/protobufjs/src/method.js +0 -160
  1553. package/node_modules/protobufjs/src/namespace.js +0 -546
  1554. package/node_modules/protobufjs/src/object.js +0 -378
  1555. package/node_modules/protobufjs/src/oneof.js +0 -222
  1556. package/node_modules/protobufjs/src/parse.js +0 -969
  1557. package/node_modules/protobufjs/src/reader.js +0 -416
  1558. package/node_modules/protobufjs/src/reader_buffer.js +0 -51
  1559. package/node_modules/protobufjs/src/root.js +0 -404
  1560. package/node_modules/protobufjs/src/roots.js +0 -18
  1561. package/node_modules/protobufjs/src/rpc/service.js +0 -142
  1562. package/node_modules/protobufjs/src/rpc.js +0 -36
  1563. package/node_modules/protobufjs/src/service.js +0 -189
  1564. package/node_modules/protobufjs/src/tokenize.js +0 -416
  1565. package/node_modules/protobufjs/src/type.js +0 -615
  1566. package/node_modules/protobufjs/src/types.js +0 -196
  1567. package/node_modules/protobufjs/src/typescript.jsdoc +0 -15
  1568. package/node_modules/protobufjs/src/util/longbits.js +0 -200
  1569. package/node_modules/protobufjs/src/util/minimal.js +0 -438
  1570. package/node_modules/protobufjs/src/util.js +0 -215
  1571. package/node_modules/protobufjs/src/verifier.js +0 -177
  1572. package/node_modules/protobufjs/src/wrappers.js +0 -102
  1573. package/node_modules/protobufjs/src/writer.js +0 -465
  1574. package/node_modules/protobufjs/src/writer_buffer.js +0 -85
  1575. package/node_modules/protobufjs/tsconfig.json +0 -8
  1576. package/node_modules/pump/.github/FUNDING.yml +0 -2
  1577. package/node_modules/pump/.travis.yml +0 -5
  1578. package/node_modules/pump/LICENSE +0 -21
  1579. package/node_modules/pump/README.md +0 -74
  1580. package/node_modules/pump/SECURITY.md +0 -5
  1581. package/node_modules/pump/empty.js +0 -1
  1582. package/node_modules/pump/index.js +0 -86
  1583. package/node_modules/pump/package.json +0 -30
  1584. package/node_modules/pump/test-browser.js +0 -66
  1585. package/node_modules/pump/test-node.js +0 -53
  1586. package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  1587. package/node_modules/readable-stream/GOVERNANCE.md +0 -136
  1588. package/node_modules/readable-stream/LICENSE +0 -47
  1589. package/node_modules/readable-stream/README.md +0 -106
  1590. package/node_modules/readable-stream/errors-browser.js +0 -127
  1591. package/node_modules/readable-stream/errors.js +0 -116
  1592. package/node_modules/readable-stream/experimentalWarning.js +0 -17
  1593. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
  1594. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
  1595. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
  1596. package/node_modules/readable-stream/lib/_stream_transform.js +0 -190
  1597. package/node_modules/readable-stream/lib/_stream_writable.js +0 -641
  1598. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
  1599. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
  1600. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
  1601. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
  1602. package/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
  1603. package/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
  1604. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
  1605. package/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
  1606. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  1607. package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  1608. package/node_modules/readable-stream/package.json +0 -68
  1609. package/node_modules/readable-stream/readable-browser.js +0 -9
  1610. package/node_modules/readable-stream/readable.js +0 -16
  1611. package/node_modules/require-directory/.jshintrc +0 -67
  1612. package/node_modules/require-directory/.npmignore +0 -1
  1613. package/node_modules/require-directory/.travis.yml +0 -3
  1614. package/node_modules/require-directory/LICENSE +0 -22
  1615. package/node_modules/require-directory/README.markdown +0 -184
  1616. package/node_modules/require-directory/index.js +0 -86
  1617. package/node_modules/require-directory/package.json +0 -40
  1618. package/node_modules/safe-buffer/LICENSE +0 -21
  1619. package/node_modules/safe-buffer/README.md +0 -584
  1620. package/node_modules/safe-buffer/index.d.ts +0 -187
  1621. package/node_modules/safe-buffer/index.js +0 -65
  1622. package/node_modules/safe-buffer/package.json +0 -51
  1623. package/node_modules/safer-buffer/LICENSE +0 -21
  1624. package/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  1625. package/node_modules/safer-buffer/Readme.md +0 -156
  1626. package/node_modules/safer-buffer/dangerous.js +0 -58
  1627. package/node_modules/safer-buffer/package.json +0 -34
  1628. package/node_modules/safer-buffer/safer.js +0 -77
  1629. package/node_modules/safer-buffer/tests.js +0 -406
  1630. package/node_modules/skillgrade/LICENSE +0 -21
  1631. package/node_modules/skillgrade/README.md +0 -253
  1632. package/node_modules/skillgrade/bin/skillgrade.js +0 -2
  1633. package/node_modules/skillgrade/dist/agents/claude.d.ts +0 -5
  1634. package/node_modules/skillgrade/dist/agents/claude.js +0 -19
  1635. package/node_modules/skillgrade/dist/agents/codex.d.ts +0 -5
  1636. package/node_modules/skillgrade/dist/agents/codex.js +0 -19
  1637. package/node_modules/skillgrade/dist/agents/gemini.d.ts +0 -5
  1638. package/node_modules/skillgrade/dist/agents/gemini.js +0 -19
  1639. package/node_modules/skillgrade/dist/agents/registry.d.ts +0 -14
  1640. package/node_modules/skillgrade/dist/agents/registry.js +0 -27
  1641. package/node_modules/skillgrade/dist/analytics/engine.d.ts +0 -19
  1642. package/node_modules/skillgrade/dist/analytics/engine.js +0 -105
  1643. package/node_modules/skillgrade/dist/commands/init.d.ts +0 -4
  1644. package/node_modules/skillgrade/dist/commands/init.js +0 -335
  1645. package/node_modules/skillgrade/dist/commands/preview.d.ts +0 -2
  1646. package/node_modules/skillgrade/dist/commands/preview.js +0 -56
  1647. package/node_modules/skillgrade/dist/commands/run.d.ts +0 -16
  1648. package/node_modules/skillgrade/dist/commands/run.js +0 -302
  1649. package/node_modules/skillgrade/dist/core/config.d.ts +0 -10
  1650. package/node_modules/skillgrade/dist/core/config.js +0 -213
  1651. package/node_modules/skillgrade/dist/core/config.types.d.ts +0 -88
  1652. package/node_modules/skillgrade/dist/core/config.types.js +0 -9
  1653. package/node_modules/skillgrade/dist/core/skills.d.ts +0 -15
  1654. package/node_modules/skillgrade/dist/core/skills.js +0 -103
  1655. package/node_modules/skillgrade/dist/evalRunner.d.ts +0 -26
  1656. package/node_modules/skillgrade/dist/evalRunner.js +0 -316
  1657. package/node_modules/skillgrade/dist/graders/index.d.ts +0 -30
  1658. package/node_modules/skillgrade/dist/graders/index.js +0 -248
  1659. package/node_modules/skillgrade/dist/providers/docker.d.ts +0 -32
  1660. package/node_modules/skillgrade/dist/providers/docker.js +0 -255
  1661. package/node_modules/skillgrade/dist/providers/local.d.ts +0 -7
  1662. package/node_modules/skillgrade/dist/providers/local.js +0 -86
  1663. package/node_modules/skillgrade/dist/reporters/browser.d.ts +0 -2
  1664. package/node_modules/skillgrade/dist/reporters/browser.js +0 -90
  1665. package/node_modules/skillgrade/dist/reporters/cli.d.ts +0 -2
  1666. package/node_modules/skillgrade/dist/reporters/cli.js +0 -116
  1667. package/node_modules/skillgrade/dist/skillgrade.d.ts +0 -20
  1668. package/node_modules/skillgrade/dist/skillgrade.js +0 -179
  1669. package/node_modules/skillgrade/dist/types.d.ts +0 -72
  1670. package/node_modules/skillgrade/dist/types.js +0 -7
  1671. package/node_modules/skillgrade/dist/utils/cli.d.ts +0 -56
  1672. package/node_modules/skillgrade/dist/utils/cli.js +0 -141
  1673. package/node_modules/skillgrade/dist/utils/env.d.ts +0 -9
  1674. package/node_modules/skillgrade/dist/utils/env.js +0 -30
  1675. package/node_modules/skillgrade/dist/viewer.html +0 -791
  1676. package/node_modules/skillgrade/package.json +0 -69
  1677. package/node_modules/skillgrade/templates/eval.yaml.template +0 -61
  1678. package/node_modules/split-ca/.gitlab-ci.yml +0 -19
  1679. package/node_modules/split-ca/.npmignore +0 -1
  1680. package/node_modules/split-ca/Makefile +0 -4
  1681. package/node_modules/split-ca/README.md +0 -51
  1682. package/node_modules/split-ca/index.js +0 -27
  1683. package/node_modules/split-ca/package.json +0 -38
  1684. package/node_modules/split-ca/test/certs/empty.ca +0 -0
  1685. package/node_modules/split-ca/test/certs/garbage.ca +0 -16
  1686. package/node_modules/split-ca/test/certs/split0.ca +0 -18
  1687. package/node_modules/split-ca/test/certs/split1.ca +0 -13
  1688. package/node_modules/split-ca/test/certs/test-chain.bundle +0 -31
  1689. package/node_modules/split-ca/test/splitCa.test.js +0 -45
  1690. package/node_modules/ssh2/.eslintignore +0 -4
  1691. package/node_modules/ssh2/.eslintrc.js +0 -5
  1692. package/node_modules/ssh2/.github/workflows/ci.yml +0 -110
  1693. package/node_modules/ssh2/.github/workflows/lint.yml +0 -27
  1694. package/node_modules/ssh2/LICENSE +0 -19
  1695. package/node_modules/ssh2/README.md +0 -1529
  1696. package/node_modules/ssh2/SFTP.md +0 -413
  1697. package/node_modules/ssh2/examples/server-chat.js +0 -238
  1698. package/node_modules/ssh2/examples/sftp-server-download-only.js +0 -134
  1699. package/node_modules/ssh2/install.js +0 -27
  1700. package/node_modules/ssh2/lib/Channel.js +0 -295
  1701. package/node_modules/ssh2/lib/agent.js +0 -1123
  1702. package/node_modules/ssh2/lib/client.js +0 -2176
  1703. package/node_modules/ssh2/lib/http-agents.js +0 -84
  1704. package/node_modules/ssh2/lib/index.js +0 -44
  1705. package/node_modules/ssh2/lib/keygen.js +0 -582
  1706. package/node_modules/ssh2/lib/protocol/Protocol.js +0 -2136
  1707. package/node_modules/ssh2/lib/protocol/SFTP.js +0 -4052
  1708. package/node_modules/ssh2/lib/protocol/constants.js +0 -356
  1709. package/node_modules/ssh2/lib/protocol/crypto/binding.gyp +0 -23
  1710. package/node_modules/ssh2/lib/protocol/crypto/build/Makefile +0 -347
  1711. package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto/src/binding.o.d +0 -273
  1712. package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/sshcrypto.node.d +0 -1
  1713. package/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto/src/binding.o +0 -0
  1714. package/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
  1715. package/node_modules/ssh2/lib/protocol/crypto/build/binding.Makefile +0 -6
  1716. package/node_modules/ssh2/lib/protocol/crypto/build/gyp-mac-tool +0 -766
  1717. package/node_modules/ssh2/lib/protocol/crypto/build/sshcrypto.target.mk +0 -187
  1718. package/node_modules/ssh2/lib/protocol/crypto/poly1305.js +0 -43
  1719. package/node_modules/ssh2/lib/protocol/crypto/src/binding.cc +0 -2300
  1720. package/node_modules/ssh2/lib/protocol/crypto.js +0 -1602
  1721. package/node_modules/ssh2/lib/protocol/handlers.js +0 -16
  1722. package/node_modules/ssh2/lib/protocol/handlers.misc.js +0 -1285
  1723. package/node_modules/ssh2/lib/protocol/kex.js +0 -1908
  1724. package/node_modules/ssh2/lib/protocol/keyParser.js +0 -1484
  1725. package/node_modules/ssh2/lib/protocol/node-fs-compat.js +0 -115
  1726. package/node_modules/ssh2/lib/protocol/utils.js +0 -356
  1727. package/node_modules/ssh2/lib/protocol/zlib.js +0 -255
  1728. package/node_modules/ssh2/lib/server.js +0 -1380
  1729. package/node_modules/ssh2/lib/utils.js +0 -336
  1730. package/node_modules/ssh2/package.json +0 -49
  1731. package/node_modules/ssh2/test/common.js +0 -316
  1732. package/node_modules/ssh2/test/fixtures/bad_rsa_private_key +0 -26
  1733. package/node_modules/ssh2/test/fixtures/https_cert.pem +0 -33
  1734. package/node_modules/ssh2/test/fixtures/https_key.pem +0 -52
  1735. package/node_modules/ssh2/test/fixtures/id_dsa +0 -12
  1736. package/node_modules/ssh2/test/fixtures/id_ecdsa +0 -5
  1737. package/node_modules/ssh2/test/fixtures/id_rsa +0 -15
  1738. package/node_modules/ssh2/test/fixtures/id_rsa.ppk +0 -26
  1739. package/node_modules/ssh2/test/fixtures/id_rsa_enc +0 -30
  1740. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa +0 -21
  1741. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa.pub +0 -1
  1742. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa.pub.result +0 -7
  1743. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa.result +0 -7
  1744. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc +0 -22
  1745. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc.pub +0 -1
  1746. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc.pub.result +0 -7
  1747. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc.result +0 -7
  1748. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm +0 -23
  1749. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm.pub +0 -1
  1750. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm.pub.result +0 -7
  1751. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm.result +0 -7
  1752. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa +0 -9
  1753. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa.pub +0 -1
  1754. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa.pub.result +0 -7
  1755. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa.result +0 -7
  1756. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc +0 -10
  1757. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc.pub +0 -1
  1758. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc.pub.result +0 -8
  1759. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc.result +0 -7
  1760. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm +0 -10
  1761. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm.pub +0 -1
  1762. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm.pub.result +0 -8
  1763. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm.result +0 -7
  1764. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519 +0 -7
  1765. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519.pub +0 -1
  1766. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519.pub.result +0 -7
  1767. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519.result +0 -7
  1768. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa +0 -27
  1769. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa.pub +0 -1
  1770. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa.pub.result +0 -7
  1771. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa.result +0 -7
  1772. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc +0 -28
  1773. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc.pub +0 -1
  1774. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc.pub.result +0 -8
  1775. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc.result +0 -7
  1776. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm +0 -29
  1777. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm.pub +0 -1
  1778. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm.pub.result +0 -8
  1779. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm.result +0 -7
  1780. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa +0 -12
  1781. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa.pub +0 -1
  1782. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa.pub.result +0 -7
  1783. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa.result +0 -7
  1784. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc +0 -15
  1785. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc.pub +0 -1
  1786. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc.pub.result +0 -8
  1787. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc.result +0 -7
  1788. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa +0 -5
  1789. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa.pub +0 -1
  1790. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa.pub.result +0 -7
  1791. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa.result +0 -7
  1792. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc +0 -8
  1793. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc.pub +0 -1
  1794. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc.pub.result +0 -8
  1795. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc.result +0 -7
  1796. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa +0 -27
  1797. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa.pub +0 -1
  1798. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa.pub.result +0 -7
  1799. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa.result +0 -7
  1800. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc +0 -30
  1801. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc.pub +0 -1
  1802. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc.pub.result +0 -8
  1803. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc.result +0 -7
  1804. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256 +0 -54
  1805. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256.pub +0 -1
  1806. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256.pub.result +0 -6
  1807. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256.result +0 -6
  1808. package/node_modules/ssh2/test/fixtures/keyParser/ppk_dsa_enc +0 -17
  1809. package/node_modules/ssh2/test/fixtures/keyParser/ppk_dsa_enc.result +0 -7
  1810. package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa +0 -26
  1811. package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa.result +0 -7
  1812. package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa_enc +0 -18
  1813. package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa_enc.result +0 -7
  1814. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa.pub +0 -9
  1815. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa.pub.result +0 -7
  1816. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa2.pub +0 -10
  1817. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa2.pub.result +0 -7
  1818. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa3.pub +0 -11
  1819. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa3.pub.result +0 -7
  1820. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa4.pub +0 -11
  1821. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa4.pub.result +0 -7
  1822. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa5.pub +0 -8
  1823. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa5.pub.result +0 -7
  1824. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa6.pub +0 -13
  1825. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa6.pub.result +0 -7
  1826. package/node_modules/ssh2/test/fixtures/openssh_new_rsa +0 -27
  1827. package/node_modules/ssh2/test/fixtures/ssh_host_dsa_key +0 -12
  1828. package/node_modules/ssh2/test/fixtures/ssh_host_ecdsa_key +0 -5
  1829. package/node_modules/ssh2/test/fixtures/ssh_host_rsa_key +0 -15
  1830. package/node_modules/ssh2/test/test-exec.js +0 -578
  1831. package/node_modules/ssh2/test/test-integration-openssh.js +0 -486
  1832. package/node_modules/ssh2/test/test-keygen.js +0 -60
  1833. package/node_modules/ssh2/test/test-misc-client-server.js +0 -1460
  1834. package/node_modules/ssh2/test/test-openssh.js +0 -261
  1835. package/node_modules/ssh2/test/test-protocol-crypto.js +0 -631
  1836. package/node_modules/ssh2/test/test-protocol-keyparser.js +0 -177
  1837. package/node_modules/ssh2/test/test-server-hostkeys.js +0 -138
  1838. package/node_modules/ssh2/test/test-sftp.js +0 -842
  1839. package/node_modules/ssh2/test/test-shell.js +0 -109
  1840. package/node_modules/ssh2/test/test-userauth-agent-openssh.js +0 -110
  1841. package/node_modules/ssh2/test/test-userauth-agent.js +0 -171
  1842. package/node_modules/ssh2/test/test-userauth.js +0 -611
  1843. package/node_modules/ssh2/test/test-worker-imports.js +0 -25
  1844. package/node_modules/ssh2/test/test.js +0 -20
  1845. package/node_modules/ssh2/util/build_pagent.bat +0 -2
  1846. package/node_modules/ssh2/util/pagent.c +0 -88
  1847. package/node_modules/ssh2/util/pagent.exe +0 -0
  1848. package/node_modules/streamx/LICENSE +0 -21
  1849. package/node_modules/streamx/README.md +0 -490
  1850. package/node_modules/streamx/index.js +0 -1232
  1851. package/node_modules/streamx/package.json +0 -36
  1852. package/node_modules/string-width/index.d.ts +0 -29
  1853. package/node_modules/string-width/index.js +0 -47
  1854. package/node_modules/string-width/license +0 -9
  1855. package/node_modules/string-width/package.json +0 -56
  1856. package/node_modules/string-width/readme.md +0 -50
  1857. package/node_modules/string_decoder/LICENSE +0 -48
  1858. package/node_modules/string_decoder/README.md +0 -47
  1859. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  1860. package/node_modules/string_decoder/package.json +0 -34
  1861. package/node_modules/strip-ansi/index.d.ts +0 -17
  1862. package/node_modules/strip-ansi/index.js +0 -4
  1863. package/node_modules/strip-ansi/license +0 -9
  1864. package/node_modules/strip-ansi/package.json +0 -54
  1865. package/node_modules/strip-ansi/readme.md +0 -46
  1866. package/node_modules/tar-fs/.travis.yml +0 -6
  1867. package/node_modules/tar-fs/LICENSE +0 -21
  1868. package/node_modules/tar-fs/README.md +0 -165
  1869. package/node_modules/tar-fs/index.js +0 -363
  1870. package/node_modules/tar-fs/node_modules/tar-stream/LICENSE +0 -21
  1871. package/node_modules/tar-fs/node_modules/tar-stream/README.md +0 -168
  1872. package/node_modules/tar-fs/node_modules/tar-stream/extract.js +0 -257
  1873. package/node_modules/tar-fs/node_modules/tar-stream/headers.js +0 -295
  1874. package/node_modules/tar-fs/node_modules/tar-stream/index.js +0 -2
  1875. package/node_modules/tar-fs/node_modules/tar-stream/pack.js +0 -255
  1876. package/node_modules/tar-fs/node_modules/tar-stream/package.json +0 -58
  1877. package/node_modules/tar-fs/node_modules/tar-stream/sandbox.js +0 -11
  1878. package/node_modules/tar-fs/package.json +0 -41
  1879. package/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
  1880. package/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
  1881. package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  1882. package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  1883. package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  1884. package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  1885. package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  1886. package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  1887. package/node_modules/tar-fs/test/fixtures/e/file +0 -0
  1888. package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  1889. package/node_modules/tar-fs/test/index.js +0 -346
  1890. package/node_modules/tar-stream/LICENSE +0 -21
  1891. package/node_modules/tar-stream/README.md +0 -183
  1892. package/node_modules/tar-stream/constants.js +0 -14
  1893. package/node_modules/tar-stream/extract.js +0 -406
  1894. package/node_modules/tar-stream/headers.js +0 -321
  1895. package/node_modules/tar-stream/index.js +0 -2
  1896. package/node_modules/tar-stream/pack.js +0 -287
  1897. package/node_modules/tar-stream/package.json +0 -42
  1898. package/node_modules/teex/LICENSE +0 -21
  1899. package/node_modules/teex/README.md +0 -31
  1900. package/node_modules/teex/example.js +0 -16
  1901. package/node_modules/teex/index.js +0 -52
  1902. package/node_modules/teex/package.json +0 -26
  1903. package/node_modules/teex/test.js +0 -68
  1904. package/node_modules/text-decoder/LICENSE +0 -201
  1905. package/node_modules/text-decoder/README.md +0 -36
  1906. package/node_modules/text-decoder/index.js +0 -64
  1907. package/node_modules/text-decoder/lib/pass-through-decoder.js +0 -19
  1908. package/node_modules/text-decoder/lib/utf8-decoder.js +0 -185
  1909. package/node_modules/text-decoder/package.json +0 -39
  1910. package/node_modules/tweetnacl/.npmignore +0 -4
  1911. package/node_modules/tweetnacl/AUTHORS.md +0 -28
  1912. package/node_modules/tweetnacl/CHANGELOG.md +0 -221
  1913. package/node_modules/tweetnacl/LICENSE +0 -24
  1914. package/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md +0 -20
  1915. package/node_modules/tweetnacl/README.md +0 -459
  1916. package/node_modules/tweetnacl/nacl-fast.js +0 -2388
  1917. package/node_modules/tweetnacl/nacl-fast.min.js +0 -2
  1918. package/node_modules/tweetnacl/nacl.d.ts +0 -98
  1919. package/node_modules/tweetnacl/nacl.js +0 -1175
  1920. package/node_modules/tweetnacl/nacl.min.js +0 -1
  1921. package/node_modules/tweetnacl/package.json +0 -58
  1922. package/node_modules/universalify/LICENSE +0 -20
  1923. package/node_modules/universalify/README.md +0 -76
  1924. package/node_modules/universalify/index.js +0 -24
  1925. package/node_modules/universalify/package.json +0 -34
  1926. package/node_modules/util-deprecate/History.md +0 -16
  1927. package/node_modules/util-deprecate/LICENSE +0 -24
  1928. package/node_modules/util-deprecate/README.md +0 -53
  1929. package/node_modules/util-deprecate/browser.js +0 -67
  1930. package/node_modules/util-deprecate/node.js +0 -6
  1931. package/node_modules/util-deprecate/package.json +0 -27
  1932. package/node_modules/uuid/CHANGELOG.md +0 -292
  1933. package/node_modules/uuid/CONTRIBUTING.md +0 -18
  1934. package/node_modules/uuid/LICENSE.md +0 -9
  1935. package/node_modules/uuid/README.md +0 -584
  1936. package/node_modules/uuid/dist/bin/uuid +0 -2
  1937. package/node_modules/uuid/dist/commonjs-browser/index.js +0 -104
  1938. package/node_modules/uuid/dist/commonjs-browser/max.js +0 -7
  1939. package/node_modules/uuid/dist/commonjs-browser/md5.js +0 -200
  1940. package/node_modules/uuid/dist/commonjs-browser/native.js +0 -10
  1941. package/node_modules/uuid/dist/commonjs-browser/nil.js +0 -7
  1942. package/node_modules/uuid/dist/commonjs-browser/parse.js +0 -44
  1943. package/node_modules/uuid/dist/commonjs-browser/regex.js +0 -7
  1944. package/node_modules/uuid/dist/commonjs-browser/rng.js +0 -23
  1945. package/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -82
  1946. package/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -38
  1947. package/node_modules/uuid/dist/commonjs-browser/v1.js +0 -131
  1948. package/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +0 -26
  1949. package/node_modules/uuid/dist/commonjs-browser/v3.js +0 -11
  1950. package/node_modules/uuid/dist/commonjs-browser/v35.js +0 -63
  1951. package/node_modules/uuid/dist/commonjs-browser/v4.js +0 -32
  1952. package/node_modules/uuid/dist/commonjs-browser/v5.js +0 -11
  1953. package/node_modules/uuid/dist/commonjs-browser/v6.js +0 -42
  1954. package/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +0 -26
  1955. package/node_modules/uuid/dist/commonjs-browser/v7.js +0 -152
  1956. package/node_modules/uuid/dist/commonjs-browser/validate.js +0 -12
  1957. package/node_modules/uuid/dist/commonjs-browser/version.js +0 -15
  1958. package/node_modules/uuid/dist/esm-browser/index.js +0 -14
  1959. package/node_modules/uuid/dist/esm-browser/max.js +0 -1
  1960. package/node_modules/uuid/dist/esm-browser/md5.js +0 -194
  1961. package/node_modules/uuid/dist/esm-browser/native.js +0 -4
  1962. package/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  1963. package/node_modules/uuid/dist/esm-browser/parse.js +0 -37
  1964. package/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  1965. package/node_modules/uuid/dist/esm-browser/rng.js +0 -17
  1966. package/node_modules/uuid/dist/esm-browser/sha1.js +0 -76
  1967. package/node_modules/uuid/dist/esm-browser/stringify.js +0 -31
  1968. package/node_modules/uuid/dist/esm-browser/v1.js +0 -125
  1969. package/node_modules/uuid/dist/esm-browser/v1ToV6.js +0 -20
  1970. package/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  1971. package/node_modules/uuid/dist/esm-browser/v35.js +0 -55
  1972. package/node_modules/uuid/dist/esm-browser/v4.js +0 -25
  1973. package/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  1974. package/node_modules/uuid/dist/esm-browser/v6.js +0 -36
  1975. package/node_modules/uuid/dist/esm-browser/v6ToV1.js +0 -20
  1976. package/node_modules/uuid/dist/esm-browser/v7.js +0 -146
  1977. package/node_modules/uuid/dist/esm-browser/validate.js +0 -5
  1978. package/node_modules/uuid/dist/esm-browser/version.js +0 -8
  1979. package/node_modules/uuid/dist/esm-node/index.js +0 -14
  1980. package/node_modules/uuid/dist/esm-node/max.js +0 -1
  1981. package/node_modules/uuid/dist/esm-node/md5.js +0 -10
  1982. package/node_modules/uuid/dist/esm-node/native.js +0 -4
  1983. package/node_modules/uuid/dist/esm-node/nil.js +0 -1
  1984. package/node_modules/uuid/dist/esm-node/parse.js +0 -37
  1985. package/node_modules/uuid/dist/esm-node/regex.js +0 -1
  1986. package/node_modules/uuid/dist/esm-node/rng.js +0 -10
  1987. package/node_modules/uuid/dist/esm-node/sha1.js +0 -10
  1988. package/node_modules/uuid/dist/esm-node/stringify.js +0 -31
  1989. package/node_modules/uuid/dist/esm-node/v1.js +0 -125
  1990. package/node_modules/uuid/dist/esm-node/v1ToV6.js +0 -20
  1991. package/node_modules/uuid/dist/esm-node/v3.js +0 -4
  1992. package/node_modules/uuid/dist/esm-node/v35.js +0 -55
  1993. package/node_modules/uuid/dist/esm-node/v4.js +0 -25
  1994. package/node_modules/uuid/dist/esm-node/v5.js +0 -4
  1995. package/node_modules/uuid/dist/esm-node/v6.js +0 -32
  1996. package/node_modules/uuid/dist/esm-node/v6ToV1.js +0 -20
  1997. package/node_modules/uuid/dist/esm-node/v7.js +0 -146
  1998. package/node_modules/uuid/dist/esm-node/validate.js +0 -5
  1999. package/node_modules/uuid/dist/esm-node/version.js +0 -8
  2000. package/node_modules/uuid/dist/index.js +0 -104
  2001. package/node_modules/uuid/dist/max.js +0 -7
  2002. package/node_modules/uuid/dist/md5-browser.js +0 -200
  2003. package/node_modules/uuid/dist/md5.js +0 -17
  2004. package/node_modules/uuid/dist/native-browser.js +0 -10
  2005. package/node_modules/uuid/dist/native.js +0 -11
  2006. package/node_modules/uuid/dist/nil.js +0 -7
  2007. package/node_modules/uuid/dist/parse.js +0 -44
  2008. package/node_modules/uuid/dist/regex.js +0 -7
  2009. package/node_modules/uuid/dist/rng-browser.js +0 -23
  2010. package/node_modules/uuid/dist/rng.js +0 -17
  2011. package/node_modules/uuid/dist/sha1-browser.js +0 -82
  2012. package/node_modules/uuid/dist/sha1.js +0 -17
  2013. package/node_modules/uuid/dist/stringify.js +0 -38
  2014. package/node_modules/uuid/dist/uuid-bin.js +0 -75
  2015. package/node_modules/uuid/dist/v1.js +0 -131
  2016. package/node_modules/uuid/dist/v1ToV6.js +0 -26
  2017. package/node_modules/uuid/dist/v3.js +0 -11
  2018. package/node_modules/uuid/dist/v35.js +0 -63
  2019. package/node_modules/uuid/dist/v4.js +0 -32
  2020. package/node_modules/uuid/dist/v5.js +0 -11
  2021. package/node_modules/uuid/dist/v6.js +0 -38
  2022. package/node_modules/uuid/dist/v6ToV1.js +0 -26
  2023. package/node_modules/uuid/dist/v7.js +0 -152
  2024. package/node_modules/uuid/dist/validate.js +0 -12
  2025. package/node_modules/uuid/dist/version.js +0 -15
  2026. package/node_modules/uuid/package.json +0 -142
  2027. package/node_modules/uuid/wrapper.mjs +0 -15
  2028. package/node_modules/wrap-ansi/index.js +0 -216
  2029. package/node_modules/wrap-ansi/license +0 -9
  2030. package/node_modules/wrap-ansi/package.json +0 -62
  2031. package/node_modules/wrap-ansi/readme.md +0 -91
  2032. package/node_modules/wrappy/LICENSE +0 -15
  2033. package/node_modules/wrappy/README.md +0 -36
  2034. package/node_modules/wrappy/package.json +0 -29
  2035. package/node_modules/wrappy/wrappy.js +0 -33
  2036. package/node_modules/y18n/LICENSE +0 -13
  2037. package/node_modules/y18n/README.md +0 -127
  2038. package/node_modules/y18n/build/index.cjs +0 -203
  2039. package/node_modules/y18n/build/lib/cjs.js +0 -6
  2040. package/node_modules/y18n/build/lib/index.js +0 -174
  2041. package/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
  2042. package/node_modules/y18n/index.mjs +0 -8
  2043. package/node_modules/y18n/package.json +0 -70
  2044. package/node_modules/yargs/LICENSE +0 -21
  2045. package/node_modules/yargs/README.md +0 -204
  2046. package/node_modules/yargs/browser.d.ts +0 -5
  2047. package/node_modules/yargs/browser.mjs +0 -7
  2048. package/node_modules/yargs/build/index.cjs +0 -1
  2049. package/node_modules/yargs/build/lib/argsert.js +0 -62
  2050. package/node_modules/yargs/build/lib/command.js +0 -449
  2051. package/node_modules/yargs/build/lib/completion-templates.js +0 -48
  2052. package/node_modules/yargs/build/lib/completion.js +0 -243
  2053. package/node_modules/yargs/build/lib/middleware.js +0 -88
  2054. package/node_modules/yargs/build/lib/parse-command.js +0 -32
  2055. package/node_modules/yargs/build/lib/typings/common-types.js +0 -9
  2056. package/node_modules/yargs/build/lib/typings/yargs-parser-types.js +0 -1
  2057. package/node_modules/yargs/build/lib/usage.js +0 -584
  2058. package/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
  2059. package/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
  2060. package/node_modules/yargs/build/lib/utils/levenshtein.js +0 -34
  2061. package/node_modules/yargs/build/lib/utils/maybe-async-result.js +0 -17
  2062. package/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
  2063. package/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
  2064. package/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
  2065. package/node_modules/yargs/build/lib/utils/which-module.js +0 -10
  2066. package/node_modules/yargs/build/lib/validation.js +0 -305
  2067. package/node_modules/yargs/build/lib/yargs-factory.js +0 -1512
  2068. package/node_modules/yargs/build/lib/yerror.js +0 -9
  2069. package/node_modules/yargs/helpers/helpers.mjs +0 -10
  2070. package/node_modules/yargs/helpers/index.js +0 -14
  2071. package/node_modules/yargs/helpers/package.json +0 -3
  2072. package/node_modules/yargs/index.cjs +0 -53
  2073. package/node_modules/yargs/index.mjs +0 -8
  2074. package/node_modules/yargs/lib/platform-shims/browser.mjs +0 -95
  2075. package/node_modules/yargs/lib/platform-shims/esm.mjs +0 -73
  2076. package/node_modules/yargs/locales/be.json +0 -46
  2077. package/node_modules/yargs/locales/cs.json +0 -51
  2078. package/node_modules/yargs/locales/de.json +0 -46
  2079. package/node_modules/yargs/locales/en.json +0 -55
  2080. package/node_modules/yargs/locales/es.json +0 -46
  2081. package/node_modules/yargs/locales/fi.json +0 -49
  2082. package/node_modules/yargs/locales/fr.json +0 -53
  2083. package/node_modules/yargs/locales/hi.json +0 -49
  2084. package/node_modules/yargs/locales/hu.json +0 -46
  2085. package/node_modules/yargs/locales/id.json +0 -50
  2086. package/node_modules/yargs/locales/it.json +0 -46
  2087. package/node_modules/yargs/locales/ja.json +0 -51
  2088. package/node_modules/yargs/locales/ko.json +0 -49
  2089. package/node_modules/yargs/locales/nb.json +0 -44
  2090. package/node_modules/yargs/locales/nl.json +0 -49
  2091. package/node_modules/yargs/locales/nn.json +0 -44
  2092. package/node_modules/yargs/locales/pirate.json +0 -13
  2093. package/node_modules/yargs/locales/pl.json +0 -49
  2094. package/node_modules/yargs/locales/pt.json +0 -45
  2095. package/node_modules/yargs/locales/pt_BR.json +0 -48
  2096. package/node_modules/yargs/locales/ru.json +0 -51
  2097. package/node_modules/yargs/locales/th.json +0 -46
  2098. package/node_modules/yargs/locales/tr.json +0 -48
  2099. package/node_modules/yargs/locales/uk_UA.json +0 -51
  2100. package/node_modules/yargs/locales/uz.json +0 -52
  2101. package/node_modules/yargs/locales/zh_CN.json +0 -48
  2102. package/node_modules/yargs/locales/zh_TW.json +0 -51
  2103. package/node_modules/yargs/package.json +0 -123
  2104. package/node_modules/yargs/yargs +0 -9
  2105. package/node_modules/yargs/yargs.mjs +0 -10
  2106. package/node_modules/yargs-parser/LICENSE.txt +0 -14
  2107. package/node_modules/yargs-parser/README.md +0 -518
  2108. package/node_modules/yargs-parser/browser.js +0 -29
  2109. package/node_modules/yargs-parser/build/index.cjs +0 -1050
  2110. package/node_modules/yargs-parser/build/lib/index.js +0 -62
  2111. package/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
  2112. package/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
  2113. package/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
  2114. package/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1045
  2115. package/node_modules/yargs-parser/package.json +0 -92
@@ -1,3243 +0,0 @@
1
- /**
2
- * The `crypto` module provides cryptographic functionality that includes a set of
3
- * wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify functions.
4
- *
5
- * ```js
6
- * const { createHmac } = await import('crypto');
7
- *
8
- * const secret = 'abcdefg';
9
- * const hash = createHmac('sha256', secret)
10
- * .update('I love cupcakes')
11
- * .digest('hex');
12
- * console.log(hash);
13
- * // Prints:
14
- * // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e
15
- * ```
16
- * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/crypto.js)
17
- */
18
- declare module 'crypto' {
19
- import * as stream from 'node:stream';
20
- import { PeerCertificate } from 'node:tls';
21
- interface Certificate {
22
- /**
23
- * @deprecated
24
- * @param spkac
25
- * @returns The challenge component of the `spkac` data structure,
26
- * which includes a public key and a challenge.
27
- */
28
- exportChallenge(spkac: BinaryLike): Buffer;
29
- /**
30
- * @deprecated
31
- * @param spkac
32
- * @param encoding The encoding of the spkac string.
33
- * @returns The public key component of the `spkac` data structure,
34
- * which includes a public key and a challenge.
35
- */
36
- exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
37
- /**
38
- * @deprecated
39
- * @param spkac
40
- * @returns `true` if the given `spkac` data structure is valid,
41
- * `false` otherwise.
42
- */
43
- verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
44
- }
45
- const Certificate: Certificate & {
46
- /** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
47
- new (): Certificate;
48
- /** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
49
- (): Certificate;
50
- /**
51
- * @param spkac
52
- * @returns The challenge component of the `spkac` data structure,
53
- * which includes a public key and a challenge.
54
- */
55
- exportChallenge(spkac: BinaryLike): Buffer;
56
- /**
57
- * @param spkac
58
- * @param encoding The encoding of the spkac string.
59
- * @returns The public key component of the `spkac` data structure,
60
- * which includes a public key and a challenge.
61
- */
62
- exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
63
- /**
64
- * @param spkac
65
- * @returns `true` if the given `spkac` data structure is valid,
66
- * `false` otherwise.
67
- */
68
- verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
69
- };
70
- namespace constants {
71
- // https://nodejs.org/dist/latest-v10.x/docs/api/crypto.html#crypto_crypto_constants
72
- const OPENSSL_VERSION_NUMBER: number;
73
- /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */
74
- const SSL_OP_ALL: number;
75
- /** 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. */
76
- const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
77
- /** 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. */
78
- const SSL_OP_CIPHER_SERVER_PREFERENCE: number;
79
- /** Instructs OpenSSL to use Cisco's "speshul" version of DTLS_BAD_VER. */
80
- const SSL_OP_CISCO_ANYCONNECT: number;
81
- /** Instructs OpenSSL to turn on cookie exchange. */
82
- const SSL_OP_COOKIE_EXCHANGE: number;
83
- /** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */
84
- const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number;
85
- /** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */
86
- const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number;
87
- /** Instructs OpenSSL to always use the tmp_rsa key when performing RSA operations. */
88
- const SSL_OP_EPHEMERAL_RSA: number;
89
- /** Allows initial connection to servers that do not support RI. */
90
- const SSL_OP_LEGACY_SERVER_CONNECT: number;
91
- const SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER: number;
92
- const SSL_OP_MICROSOFT_SESS_ID_BUG: number;
93
- /** Instructs OpenSSL to disable the workaround for a man-in-the-middle protocol-version vulnerability in the SSL 2.0 server implementation. */
94
- const SSL_OP_MSIE_SSLV2_RSA_PADDING: number;
95
- const SSL_OP_NETSCAPE_CA_DN_BUG: number;
96
- const SSL_OP_NETSCAPE_CHALLENGE_BUG: number;
97
- const SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG: number;
98
- const SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG: number;
99
- /** Instructs OpenSSL to disable support for SSL/TLS compression. */
100
- const SSL_OP_NO_COMPRESSION: number;
101
- const SSL_OP_NO_QUERY_MTU: number;
102
- /** Instructs OpenSSL to always start a new session when performing renegotiation. */
103
- const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number;
104
- const SSL_OP_NO_SSLv2: number;
105
- const SSL_OP_NO_SSLv3: number;
106
- const SSL_OP_NO_TICKET: number;
107
- const SSL_OP_NO_TLSv1: number;
108
- const SSL_OP_NO_TLSv1_1: number;
109
- const SSL_OP_NO_TLSv1_2: number;
110
- const SSL_OP_PKCS1_CHECK_1: number;
111
- const SSL_OP_PKCS1_CHECK_2: number;
112
- /** Instructs OpenSSL to always create a new key when using temporary/ephemeral DH parameters. */
113
- const SSL_OP_SINGLE_DH_USE: number;
114
- /** Instructs OpenSSL to always create a new key when using temporary/ephemeral ECDH parameters. */
115
- const SSL_OP_SINGLE_ECDH_USE: number;
116
- const SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number;
117
- const SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG: number;
118
- const SSL_OP_TLS_BLOCK_PADDING_BUG: number;
119
- const SSL_OP_TLS_D5_BUG: number;
120
- /** Instructs OpenSSL to disable version rollback attack detection. */
121
- const SSL_OP_TLS_ROLLBACK_BUG: number;
122
- const ENGINE_METHOD_RSA: number;
123
- const ENGINE_METHOD_DSA: number;
124
- const ENGINE_METHOD_DH: number;
125
- const ENGINE_METHOD_RAND: number;
126
- const ENGINE_METHOD_EC: number;
127
- const ENGINE_METHOD_CIPHERS: number;
128
- const ENGINE_METHOD_DIGESTS: number;
129
- const ENGINE_METHOD_PKEY_METHS: number;
130
- const ENGINE_METHOD_PKEY_ASN1_METHS: number;
131
- const ENGINE_METHOD_ALL: number;
132
- const ENGINE_METHOD_NONE: number;
133
- const DH_CHECK_P_NOT_SAFE_PRIME: number;
134
- const DH_CHECK_P_NOT_PRIME: number;
135
- const DH_UNABLE_TO_CHECK_GENERATOR: number;
136
- const DH_NOT_SUITABLE_GENERATOR: number;
137
- const ALPN_ENABLED: number;
138
- const RSA_PKCS1_PADDING: number;
139
- const RSA_SSLV23_PADDING: number;
140
- const RSA_NO_PADDING: number;
141
- const RSA_PKCS1_OAEP_PADDING: number;
142
- const RSA_X931_PADDING: number;
143
- const RSA_PKCS1_PSS_PADDING: number;
144
- /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */
145
- const RSA_PSS_SALTLEN_DIGEST: number;
146
- /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */
147
- const RSA_PSS_SALTLEN_MAX_SIGN: number;
148
- /** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */
149
- const RSA_PSS_SALTLEN_AUTO: number;
150
- const POINT_CONVERSION_COMPRESSED: number;
151
- const POINT_CONVERSION_UNCOMPRESSED: number;
152
- const POINT_CONVERSION_HYBRID: number;
153
- /** Specifies the built-in default cipher list used by Node.js (colon-separated values). */
154
- const defaultCoreCipherList: string;
155
- /** Specifies the active default cipher list used by the current Node.js process (colon-separated values). */
156
- const defaultCipherList: string;
157
- }
158
- interface HashOptions extends stream.TransformOptions {
159
- /**
160
- * For XOF hash functions such as `shake256`, the
161
- * outputLength option can be used to specify the desired output length in bytes.
162
- */
163
- outputLength?: number | undefined;
164
- }
165
- /** @deprecated since v10.0.0 */
166
- const fips: boolean;
167
- /**
168
- * Creates and returns a `Hash` object that can be used to generate hash digests
169
- * using the given `algorithm`. Optional `options` argument controls stream
170
- * behavior. For XOF hash functions such as `'shake256'`, the `outputLength` option
171
- * can be used to specify the desired output length in bytes.
172
- *
173
- * The `algorithm` is dependent on the available algorithms supported by the
174
- * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
175
- * On recent releases of OpenSSL, `openssl list -digest-algorithms`(`openssl list-message-digest-algorithms` for older versions of OpenSSL) will
176
- * display the available digest algorithms.
177
- *
178
- * Example: generating the sha256 sum of a file
179
- *
180
- * ```js
181
- * import {
182
- * createReadStream
183
- * } from 'fs';
184
- * import { argv } from 'process';
185
- * const {
186
- * createHash
187
- * } = await import('crypto');
188
- *
189
- * const filename = argv[2];
190
- *
191
- * const hash = createHash('sha256');
192
- *
193
- * const input = createReadStream(filename);
194
- * input.on('readable', () => {
195
- * // Only one element is going to be produced by the
196
- * // hash stream.
197
- * const data = input.read();
198
- * if (data)
199
- * hash.update(data);
200
- * else {
201
- * console.log(`${hash.digest('hex')} ${filename}`);
202
- * }
203
- * });
204
- * ```
205
- * @since v0.1.92
206
- * @param options `stream.transform` options
207
- */
208
- function createHash(algorithm: string, options?: HashOptions): Hash;
209
- /**
210
- * Creates and returns an `Hmac` object that uses the given `algorithm` and `key`.
211
- * Optional `options` argument controls stream behavior.
212
- *
213
- * The `algorithm` is dependent on the available algorithms supported by the
214
- * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
215
- * On recent releases of OpenSSL, `openssl list -digest-algorithms`(`openssl list-message-digest-algorithms` for older versions of OpenSSL) will
216
- * display the available digest algorithms.
217
- *
218
- * The `key` is the HMAC key used to generate the cryptographic HMAC hash. If it is
219
- * a `KeyObject`, its type must be `secret`.
220
- *
221
- * Example: generating the sha256 HMAC of a file
222
- *
223
- * ```js
224
- * import {
225
- * createReadStream
226
- * } from 'fs';
227
- * import { argv } from 'process';
228
- * const {
229
- * createHmac
230
- * } = await import('crypto');
231
- *
232
- * const filename = argv[2];
233
- *
234
- * const hmac = createHmac('sha256', 'a secret');
235
- *
236
- * const input = createReadStream(filename);
237
- * input.on('readable', () => {
238
- * // Only one element is going to be produced by the
239
- * // hash stream.
240
- * const data = input.read();
241
- * if (data)
242
- * hmac.update(data);
243
- * else {
244
- * console.log(`${hmac.digest('hex')} ${filename}`);
245
- * }
246
- * });
247
- * ```
248
- * @since v0.1.94
249
- * @param options `stream.transform` options
250
- */
251
- function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
252
- // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
253
- type BinaryToTextEncoding = 'base64' | 'hex';
254
- type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1';
255
- type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2';
256
- type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
257
- type ECDHKeyFormat = 'compressed' | 'uncompressed' | 'hybrid';
258
- /**
259
- * The `Hash` class is a utility for creating hash digests of data. It can be
260
- * used in one of two ways:
261
- *
262
- * * As a `stream` that is both readable and writable, where data is written
263
- * to produce a computed hash digest on the readable side, or
264
- * * Using the `hash.update()` and `hash.digest()` methods to produce the
265
- * computed hash.
266
- *
267
- * The {@link createHash} method is used to create `Hash` instances. `Hash`objects are not to be created directly using the `new` keyword.
268
- *
269
- * Example: Using `Hash` objects as streams:
270
- *
271
- * ```js
272
- * const {
273
- * createHash
274
- * } = await import('crypto');
275
- *
276
- * const hash = createHash('sha256');
277
- *
278
- * hash.on('readable', () => {
279
- * // Only one element is going to be produced by the
280
- * // hash stream.
281
- * const data = hash.read();
282
- * if (data) {
283
- * console.log(data.toString('hex'));
284
- * // Prints:
285
- * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50
286
- * }
287
- * });
288
- *
289
- * hash.write('some data to hash');
290
- * hash.end();
291
- * ```
292
- *
293
- * Example: Using `Hash` and piped streams:
294
- *
295
- * ```js
296
- * import { createReadStream } from 'fs';
297
- * import { stdout } from 'process';
298
- * const { createHash } = await import('crypto');
299
- *
300
- * const hash = createHash('sha256');
301
- *
302
- * const input = createReadStream('test.js');
303
- * input.pipe(hash).setEncoding('hex').pipe(stdout);
304
- * ```
305
- *
306
- * Example: Using the `hash.update()` and `hash.digest()` methods:
307
- *
308
- * ```js
309
- * const {
310
- * createHash
311
- * } = await import('crypto');
312
- *
313
- * const hash = createHash('sha256');
314
- *
315
- * hash.update('some data to hash');
316
- * console.log(hash.digest('hex'));
317
- * // Prints:
318
- * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50
319
- * ```
320
- * @since v0.1.92
321
- */
322
- class Hash extends stream.Transform {
323
- private constructor();
324
- /**
325
- * Creates a new `Hash` object that contains a deep copy of the internal state
326
- * of the current `Hash` object.
327
- *
328
- * The optional `options` argument controls stream behavior. For XOF hash
329
- * functions such as `'shake256'`, the `outputLength` option can be used to
330
- * specify the desired output length in bytes.
331
- *
332
- * An error is thrown when an attempt is made to copy the `Hash` object after
333
- * its `hash.digest()` method has been called.
334
- *
335
- * ```js
336
- * // Calculate a rolling hash.
337
- * const {
338
- * createHash
339
- * } = await import('crypto');
340
- *
341
- * const hash = createHash('sha256');
342
- *
343
- * hash.update('one');
344
- * console.log(hash.copy().digest('hex'));
345
- *
346
- * hash.update('two');
347
- * console.log(hash.copy().digest('hex'));
348
- *
349
- * hash.update('three');
350
- * console.log(hash.copy().digest('hex'));
351
- *
352
- * // Etc.
353
- * ```
354
- * @since v13.1.0
355
- * @param options `stream.transform` options
356
- */
357
- copy(options?: stream.TransformOptions): Hash;
358
- /**
359
- * Updates the hash content with the given `data`, the encoding of which
360
- * is given in `inputEncoding`.
361
- * If `encoding` is not provided, and the `data` is a string, an
362
- * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
363
- *
364
- * This can be called many times with new data as it is streamed.
365
- * @since v0.1.92
366
- * @param inputEncoding The `encoding` of the `data` string.
367
- */
368
- update(data: BinaryLike): Hash;
369
- update(data: string, inputEncoding: Encoding): Hash;
370
- /**
371
- * Calculates the digest of all of the data passed to be hashed (using the `hash.update()` method).
372
- * If `encoding` is provided a string will be returned; otherwise
373
- * a `Buffer` is returned.
374
- *
375
- * The `Hash` object can not be used again after `hash.digest()` method has been
376
- * called. Multiple calls will cause an error to be thrown.
377
- * @since v0.1.92
378
- * @param encoding The `encoding` of the return value.
379
- */
380
- digest(): Buffer;
381
- digest(encoding: BinaryToTextEncoding): string;
382
- }
383
- /**
384
- * The `Hmac` class is a utility for creating cryptographic HMAC digests. It can
385
- * be used in one of two ways:
386
- *
387
- * * As a `stream` that is both readable and writable, where data is written
388
- * to produce a computed HMAC digest on the readable side, or
389
- * * Using the `hmac.update()` and `hmac.digest()` methods to produce the
390
- * computed HMAC digest.
391
- *
392
- * The {@link createHmac} method is used to create `Hmac` instances. `Hmac`objects are not to be created directly using the `new` keyword.
393
- *
394
- * Example: Using `Hmac` objects as streams:
395
- *
396
- * ```js
397
- * const {
398
- * createHmac
399
- * } = await import('crypto');
400
- *
401
- * const hmac = createHmac('sha256', 'a secret');
402
- *
403
- * hmac.on('readable', () => {
404
- * // Only one element is going to be produced by the
405
- * // hash stream.
406
- * const data = hmac.read();
407
- * if (data) {
408
- * console.log(data.toString('hex'));
409
- * // Prints:
410
- * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
411
- * }
412
- * });
413
- *
414
- * hmac.write('some data to hash');
415
- * hmac.end();
416
- * ```
417
- *
418
- * Example: Using `Hmac` and piped streams:
419
- *
420
- * ```js
421
- * import { createReadStream } from 'fs';
422
- * import { stdout } from 'process';
423
- * const {
424
- * createHmac
425
- * } = await import('crypto');
426
- *
427
- * const hmac = createHmac('sha256', 'a secret');
428
- *
429
- * const input = createReadStream('test.js');
430
- * input.pipe(hmac).pipe(stdout);
431
- * ```
432
- *
433
- * Example: Using the `hmac.update()` and `hmac.digest()` methods:
434
- *
435
- * ```js
436
- * const {
437
- * createHmac
438
- * } = await import('crypto');
439
- *
440
- * const hmac = createHmac('sha256', 'a secret');
441
- *
442
- * hmac.update('some data to hash');
443
- * console.log(hmac.digest('hex'));
444
- * // Prints:
445
- * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
446
- * ```
447
- * @since v0.1.94
448
- */
449
- class Hmac extends stream.Transform {
450
- private constructor();
451
- /**
452
- * Updates the `Hmac` content with the given `data`, the encoding of which
453
- * is given in `inputEncoding`.
454
- * If `encoding` is not provided, and the `data` is a string, an
455
- * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
456
- *
457
- * This can be called many times with new data as it is streamed.
458
- * @since v0.1.94
459
- * @param inputEncoding The `encoding` of the `data` string.
460
- */
461
- update(data: BinaryLike): Hmac;
462
- update(data: string, inputEncoding: Encoding): Hmac;
463
- /**
464
- * Calculates the HMAC digest of all of the data passed using `hmac.update()`.
465
- * If `encoding` is
466
- * provided a string is returned; otherwise a `Buffer` is returned;
467
- *
468
- * The `Hmac` object can not be used again after `hmac.digest()` has been
469
- * called. Multiple calls to `hmac.digest()` will result in an error being thrown.
470
- * @since v0.1.94
471
- * @param encoding The `encoding` of the return value.
472
- */
473
- digest(): Buffer;
474
- digest(encoding: BinaryToTextEncoding): string;
475
- }
476
- type KeyObjectType = 'secret' | 'public' | 'private';
477
- interface KeyExportOptions<T extends KeyFormat> {
478
- type: 'pkcs1' | 'spki' | 'pkcs8' | 'sec1';
479
- format: T;
480
- cipher?: string | undefined;
481
- passphrase?: string | Buffer | undefined;
482
- }
483
- interface JwkKeyExportOptions {
484
- format: 'jwk';
485
- }
486
- interface JsonWebKey {
487
- crv?: string | undefined;
488
- d?: string | undefined;
489
- dp?: string | undefined;
490
- dq?: string | undefined;
491
- e?: string | undefined;
492
- k?: string | undefined;
493
- kty?: string | undefined;
494
- n?: string | undefined;
495
- p?: string | undefined;
496
- q?: string | undefined;
497
- qi?: string | undefined;
498
- x?: string | undefined;
499
- y?: string | undefined;
500
- [key: string]: unknown;
501
- }
502
- interface AsymmetricKeyDetails {
503
- /**
504
- * Key size in bits (RSA, DSA).
505
- */
506
- modulusLength?: number | undefined;
507
- /**
508
- * Public exponent (RSA).
509
- */
510
- publicExponent?: bigint | undefined;
511
- /**
512
- * Name of the message digest (RSA-PSS).
513
- */
514
- hashAlgorithm?: string | undefined;
515
- /**
516
- * Name of the message digest used by MGF1 (RSA-PSS).
517
- */
518
- mgf1HashAlgorithm?: string | undefined;
519
- /**
520
- * Minimal salt length in bytes (RSA-PSS).
521
- */
522
- saltLength?: number | undefined;
523
- /**
524
- * Size of q in bits (DSA).
525
- */
526
- divisorLength?: number | undefined;
527
- /**
528
- * Name of the curve (EC).
529
- */
530
- namedCurve?: string | undefined;
531
- }
532
- interface JwkKeyExportOptions {
533
- format: 'jwk';
534
- }
535
- /**
536
- * Node.js uses a `KeyObject` class to represent a symmetric or asymmetric key,
537
- * and each kind of key exposes different functions. The {@link createSecretKey}, {@link createPublicKey} and {@link createPrivateKey} methods are used to create `KeyObject`instances. `KeyObject`
538
- * objects are not to be created directly using the `new`keyword.
539
- *
540
- * Most applications should consider using the new `KeyObject` API instead of
541
- * passing keys as strings or `Buffer`s due to improved security features.
542
- *
543
- * `KeyObject` instances can be passed to other threads via `postMessage()`.
544
- * The receiver obtains a cloned `KeyObject`, and the `KeyObject` does not need to
545
- * be listed in the `transferList` argument.
546
- * @since v11.6.0
547
- */
548
- class KeyObject {
549
- private constructor();
550
- /**
551
- * @since v15.0.0
552
- */
553
- static from(key: webcrypto.CryptoKey): KeyObject;
554
- /**
555
- * For asymmetric keys, this property represents the type of the key. Supported key
556
- * types are:
557
- *
558
- * * `'rsa'` (OID 1.2.840.113549.1.1.1)
559
- * * `'rsa-pss'` (OID 1.2.840.113549.1.1.10)
560
- * * `'dsa'` (OID 1.2.840.10040.4.1)
561
- * * `'ec'` (OID 1.2.840.10045.2.1)
562
- * * `'x25519'` (OID 1.3.101.110)
563
- * * `'x448'` (OID 1.3.101.111)
564
- * * `'ed25519'` (OID 1.3.101.112)
565
- * * `'ed448'` (OID 1.3.101.113)
566
- * * `'dh'` (OID 1.2.840.113549.1.3.1)
567
- *
568
- * This property is `undefined` for unrecognized `KeyObject` types and symmetric
569
- * keys.
570
- * @since v11.6.0
571
- */
572
- asymmetricKeyType?: KeyType | undefined;
573
- /**
574
- * For asymmetric keys, this property represents the size of the embedded key in
575
- * bytes. This property is `undefined` for symmetric keys.
576
- */
577
- asymmetricKeySize?: number | undefined;
578
- /**
579
- * This property exists only on asymmetric keys. Depending on the type of the key,
580
- * this object contains information about the key. None of the information obtained
581
- * through this property can be used to uniquely identify a key or to compromise
582
- * the security of the key.
583
- *
584
- * For RSA-PSS keys, if the key material contains a `RSASSA-PSS-params` sequence,
585
- * the `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` properties will be
586
- * set.
587
- *
588
- * Other key details might be exposed via this API using additional attributes.
589
- * @since v15.7.0
590
- */
591
- asymmetricKeyDetails?: AsymmetricKeyDetails | undefined;
592
- /**
593
- * For symmetric keys, the following encoding options can be used:
594
- *
595
- * For public keys, the following encoding options can be used:
596
- *
597
- * For private keys, the following encoding options can be used:
598
- *
599
- * The result type depends on the selected encoding format, when PEM the
600
- * result is a string, when DER it will be a buffer containing the data
601
- * encoded as DER, when [JWK](https://tools.ietf.org/html/rfc7517) it will be an object.
602
- *
603
- * When [JWK](https://tools.ietf.org/html/rfc7517) encoding format was selected, all other encoding options are
604
- * ignored.
605
- *
606
- * PKCS#1, SEC1, and PKCS#8 type keys can be encrypted by using a combination of
607
- * 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
608
- * encrypted by specifying a `cipher`when the PEM `format` is used. For maximum compatibility, use PKCS#8 for
609
- * encrypted private keys. Since PKCS#8 defines its own
610
- * encryption mechanism, PEM-level encryption is not supported when encrypting
611
- * 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
612
- * PKCS#1 and SEC1 encryption.
613
- * @since v11.6.0
614
- */
615
- export(options: KeyExportOptions<'pem'>): string | Buffer;
616
- export(options?: KeyExportOptions<'der'>): Buffer;
617
- export(options?: JwkKeyExportOptions): JsonWebKey;
618
- /**
619
- * For secret keys, this property represents the size of the key in bytes. This
620
- * property is `undefined` for asymmetric keys.
621
- * @since v11.6.0
622
- */
623
- symmetricKeySize?: number | undefined;
624
- /**
625
- * Depending on the type of this `KeyObject`, this property is either`'secret'` for secret (symmetric) keys, `'public'` for public (asymmetric) keys
626
- * or `'private'` for private (asymmetric) keys.
627
- * @since v11.6.0
628
- */
629
- type: KeyObjectType;
630
- }
631
- type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm' | 'chacha20-poly1305';
632
- type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm';
633
- type BinaryLike = string | NodeJS.ArrayBufferView;
634
- type CipherKey = BinaryLike | KeyObject;
635
- interface CipherCCMOptions extends stream.TransformOptions {
636
- authTagLength: number;
637
- }
638
- interface CipherGCMOptions extends stream.TransformOptions {
639
- authTagLength?: number | undefined;
640
- }
641
- /**
642
- * Creates and returns a `Cipher` object that uses the given `algorithm` and`password`.
643
- *
644
- * The `options` argument controls stream behavior and is optional except when a
645
- * cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the
646
- * 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
647
- * tag that will be returned by `getAuthTag()` and defaults to 16 bytes.
648
- *
649
- * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
650
- * recent OpenSSL releases, `openssl list -cipher-algorithms`(`openssl list-cipher-algorithms` for older versions of OpenSSL) will
651
- * display the available cipher algorithms.
652
- *
653
- * The `password` is used to derive the cipher key and initialization vector (IV).
654
- * The value must be either a `'latin1'` encoded string, a `Buffer`, a`TypedArray`, or a `DataView`.
655
- *
656
- * The implementation of `crypto.createCipher()` derives keys using the OpenSSL
657
- * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) with the digest algorithm set to MD5, one
658
- * iteration, and no salt. The lack of salt allows dictionary attacks as the same
659
- * password always creates the same key. The low iteration count and
660
- * non-cryptographically secure hash algorithm allow passwords to be tested very
661
- * rapidly.
662
- *
663
- * In line with OpenSSL's recommendation to use a more modern algorithm instead of[`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) it is recommended that
664
- * developers derive a key and IV on
665
- * their own using {@link scrypt} and to use {@link createCipheriv} to create the `Cipher` object. Users should not use ciphers with counter mode
666
- * (e.g. CTR, GCM, or CCM) in `crypto.createCipher()`. A warning is emitted when
667
- * they are used in order to avoid the risk of IV reuse that causes
668
- * vulnerabilities. For the case when IV is reused in GCM, see [Nonce-Disrespecting Adversaries](https://github.com/nonce-disrespect/nonce-disrespect) for details.
669
- * @since v0.1.94
670
- * @deprecated Since v10.0.0 - Use {@link createCipheriv} instead.
671
- * @param options `stream.transform` options
672
- */
673
- function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM;
674
- /** @deprecated since v10.0.0 use `createCipheriv()` */
675
- function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM;
676
- /** @deprecated since v10.0.0 use `createCipheriv()` */
677
- function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher;
678
- /**
679
- * Creates and returns a `Cipher` object, with the given `algorithm`, `key` and
680
- * initialization vector (`iv`).
681
- *
682
- * The `options` argument controls stream behavior and is optional except when a
683
- * cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the
684
- * 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
685
- * tag that will be returned by `getAuthTag()` and defaults to 16 bytes.
686
- *
687
- * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
688
- * recent OpenSSL releases, `openssl list -cipher-algorithms`(`openssl list-cipher-algorithms` for older versions of OpenSSL) will
689
- * display the available cipher algorithms.
690
- *
691
- * 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
692
- * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
693
- * a `KeyObject` of type `secret`. If the cipher does not need
694
- * an initialization vector, `iv` may be `null`.
695
- *
696
- * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`.
697
- *
698
- * Initialization vectors should be unpredictable and unique; ideally, they will be
699
- * cryptographically random. They do not have to be secret: IVs are typically just
700
- * added to ciphertext messages unencrypted. It may sound contradictory that
701
- * something has to be unpredictable and unique, but does not have to be secret;
702
- * remember that an attacker must not be able to predict ahead of time what a
703
- * given IV will be.
704
- * @since v0.1.94
705
- * @param options `stream.transform` options
706
- */
707
- function createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike | null, options: CipherCCMOptions): CipherCCM;
708
- function createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike | null, options?: CipherGCMOptions): CipherGCM;
709
- function createCipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Cipher;
710
- /**
711
- * Instances of the `Cipher` class are used to encrypt data. The class can be
712
- * used in one of two ways:
713
- *
714
- * * As a `stream` that is both readable and writable, where plain unencrypted
715
- * data is written to produce encrypted data on the readable side, or
716
- * * Using the `cipher.update()` and `cipher.final()` methods to produce
717
- * the encrypted data.
718
- *
719
- * The {@link createCipher} or {@link createCipheriv} methods are
720
- * used to create `Cipher` instances. `Cipher` objects are not to be created
721
- * directly using the `new` keyword.
722
- *
723
- * Example: Using `Cipher` objects as streams:
724
- *
725
- * ```js
726
- * const {
727
- * scrypt,
728
- * randomFill,
729
- * createCipheriv
730
- * } = await import('crypto');
731
- *
732
- * const algorithm = 'aes-192-cbc';
733
- * const password = 'Password used to generate key';
734
- *
735
- * // First, we'll generate the key. The key length is dependent on the algorithm.
736
- * // In this case for aes192, it is 24 bytes (192 bits).
737
- * scrypt(password, 'salt', 24, (err, key) => {
738
- * if (err) throw err;
739
- * // Then, we'll generate a random initialization vector
740
- * randomFill(new Uint8Array(16), (err, iv) => {
741
- * if (err) throw err;
742
- *
743
- * // Once we have the key and iv, we can create and use the cipher...
744
- * const cipher = createCipheriv(algorithm, key, iv);
745
- *
746
- * let encrypted = '';
747
- * cipher.setEncoding('hex');
748
- *
749
- * cipher.on('data', (chunk) => encrypted += chunk);
750
- * cipher.on('end', () => console.log(encrypted));
751
- *
752
- * cipher.write('some clear text data');
753
- * cipher.end();
754
- * });
755
- * });
756
- * ```
757
- *
758
- * Example: Using `Cipher` and piped streams:
759
- *
760
- * ```js
761
- * import {
762
- * createReadStream,
763
- * createWriteStream,
764
- * } from 'fs';
765
- *
766
- * import {
767
- * pipeline
768
- * } from 'stream';
769
- *
770
- * const {
771
- * scrypt,
772
- * randomFill,
773
- * createCipheriv
774
- * } = await import('crypto');
775
- *
776
- * const algorithm = 'aes-192-cbc';
777
- * const password = 'Password used to generate key';
778
- *
779
- * // First, we'll generate the key. The key length is dependent on the algorithm.
780
- * // In this case for aes192, it is 24 bytes (192 bits).
781
- * scrypt(password, 'salt', 24, (err, key) => {
782
- * if (err) throw err;
783
- * // Then, we'll generate a random initialization vector
784
- * randomFill(new Uint8Array(16), (err, iv) => {
785
- * if (err) throw err;
786
- *
787
- * const cipher = createCipheriv(algorithm, key, iv);
788
- *
789
- * const input = createReadStream('test.js');
790
- * const output = createWriteStream('test.enc');
791
- *
792
- * pipeline(input, cipher, output, (err) => {
793
- * if (err) throw err;
794
- * });
795
- * });
796
- * });
797
- * ```
798
- *
799
- * Example: Using the `cipher.update()` and `cipher.final()` methods:
800
- *
801
- * ```js
802
- * const {
803
- * scrypt,
804
- * randomFill,
805
- * createCipheriv
806
- * } = await import('crypto');
807
- *
808
- * const algorithm = 'aes-192-cbc';
809
- * const password = 'Password used to generate key';
810
- *
811
- * // First, we'll generate the key. The key length is dependent on the algorithm.
812
- * // In this case for aes192, it is 24 bytes (192 bits).
813
- * scrypt(password, 'salt', 24, (err, key) => {
814
- * if (err) throw err;
815
- * // Then, we'll generate a random initialization vector
816
- * randomFill(new Uint8Array(16), (err, iv) => {
817
- * if (err) throw err;
818
- *
819
- * const cipher = createCipheriv(algorithm, key, iv);
820
- *
821
- * let encrypted = cipher.update('some clear text data', 'utf8', 'hex');
822
- * encrypted += cipher.final('hex');
823
- * console.log(encrypted);
824
- * });
825
- * });
826
- * ```
827
- * @since v0.1.94
828
- */
829
- class Cipher extends stream.Transform {
830
- private constructor();
831
- /**
832
- * Updates the cipher with `data`. If the `inputEncoding` argument is given,
833
- * 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`,
834
- * `TypedArray`, or `DataView`, then`inputEncoding` is ignored.
835
- *
836
- * The `outputEncoding` specifies the output format of the enciphered
837
- * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned.
838
- *
839
- * 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
840
- * thrown.
841
- * @since v0.1.94
842
- * @param inputEncoding The `encoding` of the data.
843
- * @param outputEncoding The `encoding` of the return value.
844
- */
845
- update(data: BinaryLike): Buffer;
846
- update(data: string, inputEncoding: Encoding): Buffer;
847
- update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string;
848
- update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string;
849
- /**
850
- * Once the `cipher.final()` method has been called, the `Cipher` object can no
851
- * longer be used to encrypt data. Attempts to call `cipher.final()` more than
852
- * once will result in an error being thrown.
853
- * @since v0.1.94
854
- * @param outputEncoding The `encoding` of the return value.
855
- * @return Any remaining enciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned.
856
- */
857
- final(): Buffer;
858
- final(outputEncoding: BufferEncoding): string;
859
- /**
860
- * When using block encryption algorithms, the `Cipher` class will automatically
861
- * add padding to the input data to the appropriate block size. To disable the
862
- * default padding call `cipher.setAutoPadding(false)`.
863
- *
864
- * When `autoPadding` is `false`, the length of the entire input data must be a
865
- * multiple of the cipher's block size or `cipher.final()` will throw an error.
866
- * Disabling automatic padding is useful for non-standard padding, for instance
867
- * using `0x0` instead of PKCS padding.
868
- *
869
- * The `cipher.setAutoPadding()` method must be called before `cipher.final()`.
870
- * @since v0.7.1
871
- * @param [autoPadding=true]
872
- * @return for method chaining.
873
- */
874
- setAutoPadding(autoPadding?: boolean): this;
875
- }
876
- interface CipherCCM extends Cipher {
877
- setAAD(
878
- buffer: NodeJS.ArrayBufferView,
879
- options: {
880
- plaintextLength: number;
881
- }
882
- ): this;
883
- getAuthTag(): Buffer;
884
- }
885
- interface CipherGCM extends Cipher {
886
- setAAD(
887
- buffer: NodeJS.ArrayBufferView,
888
- options?: {
889
- plaintextLength: number;
890
- }
891
- ): this;
892
- getAuthTag(): Buffer;
893
- }
894
- /**
895
- * Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key).
896
- *
897
- * The `options` argument controls stream behavior and is optional except when a
898
- * cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the
899
- * authentication tag in bytes, see `CCM mode`.
900
- *
901
- * The implementation of `crypto.createDecipher()` derives keys using the OpenSSL
902
- * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) with the digest algorithm set to MD5, one
903
- * iteration, and no salt. The lack of salt allows dictionary attacks as the same
904
- * password always creates the same key. The low iteration count and
905
- * non-cryptographically secure hash algorithm allow passwords to be tested very
906
- * rapidly.
907
- *
908
- * In line with OpenSSL's recommendation to use a more modern algorithm instead of[`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) it is recommended that
909
- * developers derive a key and IV on
910
- * their own using {@link scrypt} and to use {@link createDecipheriv} to create the `Decipher` object.
911
- * @since v0.1.94
912
- * @deprecated Since v10.0.0 - Use {@link createDecipheriv} instead.
913
- * @param options `stream.transform` options
914
- */
915
- function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
916
- /** @deprecated since v10.0.0 use `createDecipheriv()` */
917
- function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
918
- /** @deprecated since v10.0.0 use `createDecipheriv()` */
919
- function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher;
920
- /**
921
- * Creates and returns a `Decipher` object that uses the given `algorithm`, `key`and initialization vector (`iv`).
922
- *
923
- * The `options` argument controls stream behavior and is optional except when a
924
- * cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the
925
- * 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
926
- * to those with the specified length.
927
- *
928
- * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
929
- * recent OpenSSL releases, `openssl list -cipher-algorithms`(`openssl list-cipher-algorithms` for older versions of OpenSSL) will
930
- * display the available cipher algorithms.
931
- *
932
- * 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
933
- * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
934
- * a `KeyObject` of type `secret`. If the cipher does not need
935
- * an initialization vector, `iv` may be `null`.
936
- *
937
- * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`.
938
- *
939
- * Initialization vectors should be unpredictable and unique; ideally, they will be
940
- * cryptographically random. They do not have to be secret: IVs are typically just
941
- * added to ciphertext messages unencrypted. It may sound contradictory that
942
- * something has to be unpredictable and unique, but does not have to be secret;
943
- * remember that an attacker must not be able to predict ahead of time what a given
944
- * IV will be.
945
- * @since v0.1.94
946
- * @param options `stream.transform` options
947
- */
948
- function createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike | null, options: CipherCCMOptions): DecipherCCM;
949
- function createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike | null, options?: CipherGCMOptions): DecipherGCM;
950
- function createDecipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Decipher;
951
- /**
952
- * Instances of the `Decipher` class are used to decrypt data. The class can be
953
- * used in one of two ways:
954
- *
955
- * * As a `stream` that is both readable and writable, where plain encrypted
956
- * data is written to produce unencrypted data on the readable side, or
957
- * * Using the `decipher.update()` and `decipher.final()` methods to
958
- * produce the unencrypted data.
959
- *
960
- * The {@link createDecipher} or {@link createDecipheriv} methods are
961
- * used to create `Decipher` instances. `Decipher` objects are not to be created
962
- * directly using the `new` keyword.
963
- *
964
- * Example: Using `Decipher` objects as streams:
965
- *
966
- * ```js
967
- * import { Buffer } from 'buffer';
968
- * const {
969
- * scryptSync,
970
- * createDecipheriv
971
- * } = await import('crypto');
972
- *
973
- * const algorithm = 'aes-192-cbc';
974
- * const password = 'Password used to generate key';
975
- * // Key length is dependent on the algorithm. In this case for aes192, it is
976
- * // 24 bytes (192 bits).
977
- * // Use the async `crypto.scrypt()` instead.
978
- * const key = scryptSync(password, 'salt', 24);
979
- * // The IV is usually passed along with the ciphertext.
980
- * const iv = Buffer.alloc(16, 0); // Initialization vector.
981
- *
982
- * const decipher = createDecipheriv(algorithm, key, iv);
983
- *
984
- * let decrypted = '';
985
- * decipher.on('readable', () => {
986
- * while (null !== (chunk = decipher.read())) {
987
- * decrypted += chunk.toString('utf8');
988
- * }
989
- * });
990
- * decipher.on('end', () => {
991
- * console.log(decrypted);
992
- * // Prints: some clear text data
993
- * });
994
- *
995
- * // Encrypted with same algorithm, key and iv.
996
- * const encrypted =
997
- * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa';
998
- * decipher.write(encrypted, 'hex');
999
- * decipher.end();
1000
- * ```
1001
- *
1002
- * Example: Using `Decipher` and piped streams:
1003
- *
1004
- * ```js
1005
- * import {
1006
- * createReadStream,
1007
- * createWriteStream,
1008
- * } from 'fs';
1009
- * import { Buffer } from 'buffer';
1010
- * const {
1011
- * scryptSync,
1012
- * createDecipheriv
1013
- * } = await import('crypto');
1014
- *
1015
- * const algorithm = 'aes-192-cbc';
1016
- * const password = 'Password used to generate key';
1017
- * // Use the async `crypto.scrypt()` instead.
1018
- * const key = scryptSync(password, 'salt', 24);
1019
- * // The IV is usually passed along with the ciphertext.
1020
- * const iv = Buffer.alloc(16, 0); // Initialization vector.
1021
- *
1022
- * const decipher = createDecipheriv(algorithm, key, iv);
1023
- *
1024
- * const input = createReadStream('test.enc');
1025
- * const output = createWriteStream('test.js');
1026
- *
1027
- * input.pipe(decipher).pipe(output);
1028
- * ```
1029
- *
1030
- * Example: Using the `decipher.update()` and `decipher.final()` methods:
1031
- *
1032
- * ```js
1033
- * import { Buffer } from 'buffer';
1034
- * const {
1035
- * scryptSync,
1036
- * createDecipheriv
1037
- * } = await import('crypto');
1038
- *
1039
- * const algorithm = 'aes-192-cbc';
1040
- * const password = 'Password used to generate key';
1041
- * // Use the async `crypto.scrypt()` instead.
1042
- * const key = scryptSync(password, 'salt', 24);
1043
- * // The IV is usually passed along with the ciphertext.
1044
- * const iv = Buffer.alloc(16, 0); // Initialization vector.
1045
- *
1046
- * const decipher = createDecipheriv(algorithm, key, iv);
1047
- *
1048
- * // Encrypted using same algorithm, key and iv.
1049
- * const encrypted =
1050
- * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa';
1051
- * let decrypted = decipher.update(encrypted, 'hex', 'utf8');
1052
- * decrypted += decipher.final('utf8');
1053
- * console.log(decrypted);
1054
- * // Prints: some clear text data
1055
- * ```
1056
- * @since v0.1.94
1057
- */
1058
- class Decipher extends stream.Transform {
1059
- private constructor();
1060
- /**
1061
- * Updates the decipher with `data`. If the `inputEncoding` argument is given,
1062
- * 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
1063
- * ignored.
1064
- *
1065
- * The `outputEncoding` specifies the output format of the enciphered
1066
- * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned.
1067
- *
1068
- * 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
1069
- * being thrown.
1070
- * @since v0.1.94
1071
- * @param inputEncoding The `encoding` of the `data` string.
1072
- * @param outputEncoding The `encoding` of the return value.
1073
- */
1074
- update(data: NodeJS.ArrayBufferView): Buffer;
1075
- update(data: string, inputEncoding: Encoding): Buffer;
1076
- update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string;
1077
- update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string;
1078
- /**
1079
- * Once the `decipher.final()` method has been called, the `Decipher` object can
1080
- * no longer be used to decrypt data. Attempts to call `decipher.final()` more
1081
- * than once will result in an error being thrown.
1082
- * @since v0.1.94
1083
- * @param outputEncoding The `encoding` of the return value.
1084
- * @return Any remaining deciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned.
1085
- */
1086
- final(): Buffer;
1087
- final(outputEncoding: BufferEncoding): string;
1088
- /**
1089
- * 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
1090
- * removing padding.
1091
- *
1092
- * Turning auto padding off will only work if the input data's length is a
1093
- * multiple of the ciphers block size.
1094
- *
1095
- * The `decipher.setAutoPadding()` method must be called before `decipher.final()`.
1096
- * @since v0.7.1
1097
- * @param [autoPadding=true]
1098
- * @return for method chaining.
1099
- */
1100
- setAutoPadding(auto_padding?: boolean): this;
1101
- }
1102
- interface DecipherCCM extends Decipher {
1103
- setAuthTag(buffer: NodeJS.ArrayBufferView): this;
1104
- setAAD(
1105
- buffer: NodeJS.ArrayBufferView,
1106
- options: {
1107
- plaintextLength: number;
1108
- }
1109
- ): this;
1110
- }
1111
- interface DecipherGCM extends Decipher {
1112
- setAuthTag(buffer: NodeJS.ArrayBufferView): this;
1113
- setAAD(
1114
- buffer: NodeJS.ArrayBufferView,
1115
- options?: {
1116
- plaintextLength: number;
1117
- }
1118
- ): this;
1119
- }
1120
- interface PrivateKeyInput {
1121
- key: string | Buffer;
1122
- format?: KeyFormat | undefined;
1123
- type?: 'pkcs1' | 'pkcs8' | 'sec1' | undefined;
1124
- passphrase?: string | Buffer | undefined;
1125
- }
1126
- interface PublicKeyInput {
1127
- key: string | Buffer;
1128
- format?: KeyFormat | undefined;
1129
- type?: 'pkcs1' | 'spki' | undefined;
1130
- }
1131
- /**
1132
- * Asynchronously generates a new random secret key of the given `length`. The`type` will determine which validations will be performed on the `length`.
1133
- *
1134
- * ```js
1135
- * const {
1136
- * generateKey
1137
- * } = await import('crypto');
1138
- *
1139
- * generateKey('hmac', { length: 64 }, (err, key) => {
1140
- * if (err) throw err;
1141
- * console.log(key.export().toString('hex')); // 46e..........620
1142
- * });
1143
- * ```
1144
- * @since v15.0.0
1145
- * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`.
1146
- */
1147
- function generateKey(
1148
- type: 'hmac' | 'aes',
1149
- options: {
1150
- length: number;
1151
- },
1152
- callback: (err: Error | null, key: KeyObject) => void
1153
- ): void;
1154
- interface JsonWebKeyInput {
1155
- key: JsonWebKey;
1156
- format: 'jwk';
1157
- }
1158
- /**
1159
- * Creates and returns a new key object containing a private key. If `key` is a
1160
- * string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key`must be an object with the properties described above.
1161
- *
1162
- * If the private key is encrypted, a `passphrase` must be specified. The length
1163
- * of the passphrase is limited to 1024 bytes.
1164
- * @since v11.6.0
1165
- */
1166
- function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject;
1167
- /**
1168
- * Creates and returns a new key object containing a public key. If `key` is a
1169
- * 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;
1170
- * otherwise, `key` must be an object with the properties described above.
1171
- *
1172
- * If the format is `'pem'`, the `'key'` may also be an X.509 certificate.
1173
- *
1174
- * Because public keys can be derived from private keys, a private key may be
1175
- * 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
1176
- * returned `KeyObject` will be `'public'` and that the private key cannot be
1177
- * extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type`'private'` is given, a new `KeyObject` with type `'public'` will be returned
1178
- * and it will be impossible to extract the private key from the returned object.
1179
- * @since v11.6.0
1180
- */
1181
- function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject | JsonWebKeyInput): KeyObject;
1182
- /**
1183
- * Creates and returns a new key object containing a secret key for symmetric
1184
- * encryption or `Hmac`.
1185
- * @since v11.6.0
1186
- * @param encoding The string encoding when `key` is a string.
1187
- */
1188
- function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject;
1189
- function createSecretKey(key: string, encoding: BufferEncoding): KeyObject;
1190
- /**
1191
- * Creates and returns a `Sign` object that uses the given `algorithm`. Use {@link getHashes} to obtain the names of the available digest algorithms.
1192
- * Optional `options` argument controls the `stream.Writable` behavior.
1193
- *
1194
- * In some cases, a `Sign` instance can be created using the name of a signature
1195
- * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
1196
- * the corresponding digest algorithm. This does not work for all signature
1197
- * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest
1198
- * algorithm names.
1199
- * @since v0.1.92
1200
- * @param options `stream.Writable` options
1201
- */
1202
- function createSign(algorithm: string, options?: stream.WritableOptions): Sign;
1203
- type DSAEncoding = 'der' | 'ieee-p1363';
1204
- interface SigningOptions {
1205
- /**
1206
- * @See crypto.constants.RSA_PKCS1_PADDING
1207
- */
1208
- padding?: number | undefined;
1209
- saltLength?: number | undefined;
1210
- dsaEncoding?: DSAEncoding | undefined;
1211
- }
1212
- interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {}
1213
- interface SignKeyObjectInput extends SigningOptions {
1214
- key: KeyObject;
1215
- }
1216
- interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {}
1217
- interface VerifyKeyObjectInput extends SigningOptions {
1218
- key: KeyObject;
1219
- }
1220
- type KeyLike = string | Buffer | KeyObject;
1221
- /**
1222
- * The `Sign` class is a utility for generating signatures. It can be used in one
1223
- * of two ways:
1224
- *
1225
- * * 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
1226
- * * Using the `sign.update()` and `sign.sign()` methods to produce the
1227
- * signature.
1228
- *
1229
- * The {@link createSign} method is used to create `Sign` instances. The
1230
- * argument is the string name of the hash function to use. `Sign` objects are not
1231
- * to be created directly using the `new` keyword.
1232
- *
1233
- * Example: Using `Sign` and `Verify` objects as streams:
1234
- *
1235
- * ```js
1236
- * const {
1237
- * generateKeyPairSync,
1238
- * createSign,
1239
- * createVerify
1240
- * } = await import('crypto');
1241
- *
1242
- * const { privateKey, publicKey } = generateKeyPairSync('ec', {
1243
- * namedCurve: 'sect239k1'
1244
- * });
1245
- *
1246
- * const sign = createSign('SHA256');
1247
- * sign.write('some data to sign');
1248
- * sign.end();
1249
- * const signature = sign.sign(privateKey, 'hex');
1250
- *
1251
- * const verify = createVerify('SHA256');
1252
- * verify.write('some data to sign');
1253
- * verify.end();
1254
- * console.log(verify.verify(publicKey, signature, 'hex'));
1255
- * // Prints: true
1256
- * ```
1257
- *
1258
- * Example: Using the `sign.update()` and `verify.update()` methods:
1259
- *
1260
- * ```js
1261
- * const {
1262
- * generateKeyPairSync,
1263
- * createSign,
1264
- * createVerify
1265
- * } = await import('crypto');
1266
- *
1267
- * const { privateKey, publicKey } = generateKeyPairSync('rsa', {
1268
- * modulusLength: 2048,
1269
- * });
1270
- *
1271
- * const sign = createSign('SHA256');
1272
- * sign.update('some data to sign');
1273
- * sign.end();
1274
- * const signature = sign.sign(privateKey);
1275
- *
1276
- * const verify = createVerify('SHA256');
1277
- * verify.update('some data to sign');
1278
- * verify.end();
1279
- * console.log(verify.verify(publicKey, signature));
1280
- * // Prints: true
1281
- * ```
1282
- * @since v0.1.92
1283
- */
1284
- class Sign extends stream.Writable {
1285
- private constructor();
1286
- /**
1287
- * Updates the `Sign` content with the given `data`, the encoding of which
1288
- * is given in `inputEncoding`.
1289
- * If `encoding` is not provided, and the `data` is a string, an
1290
- * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
1291
- *
1292
- * This can be called many times with new data as it is streamed.
1293
- * @since v0.1.92
1294
- * @param inputEncoding The `encoding` of the `data` string.
1295
- */
1296
- update(data: BinaryLike): this;
1297
- update(data: string, inputEncoding: Encoding): this;
1298
- /**
1299
- * Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`.
1300
- *
1301
- * If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an
1302
- * object, the following additional properties can be passed:
1303
- *
1304
- * If `outputEncoding` is provided a string is returned; otherwise a `Buffer` is returned.
1305
- *
1306
- * The `Sign` object can not be again used after `sign.sign()` method has been
1307
- * called. Multiple calls to `sign.sign()` will result in an error being thrown.
1308
- * @since v0.1.92
1309
- */
1310
- sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
1311
- sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, outputFormat: BinaryToTextEncoding): string;
1312
- }
1313
- /**
1314
- * Creates and returns a `Verify` object that uses the given algorithm.
1315
- * Use {@link getHashes} to obtain an array of names of the available
1316
- * signing algorithms. Optional `options` argument controls the`stream.Writable` behavior.
1317
- *
1318
- * In some cases, a `Verify` instance can be created using the name of a signature
1319
- * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
1320
- * the corresponding digest algorithm. This does not work for all signature
1321
- * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest
1322
- * algorithm names.
1323
- * @since v0.1.92
1324
- * @param options `stream.Writable` options
1325
- */
1326
- function createVerify(algorithm: string, options?: stream.WritableOptions): Verify;
1327
- /**
1328
- * The `Verify` class is a utility for verifying signatures. It can be used in one
1329
- * of two ways:
1330
- *
1331
- * * As a writable `stream` where written data is used to validate against the
1332
- * supplied signature, or
1333
- * * Using the `verify.update()` and `verify.verify()` methods to verify
1334
- * the signature.
1335
- *
1336
- * The {@link createVerify} method is used to create `Verify` instances.`Verify` objects are not to be created directly using the `new` keyword.
1337
- *
1338
- * See `Sign` for examples.
1339
- * @since v0.1.92
1340
- */
1341
- class Verify extends stream.Writable {
1342
- private constructor();
1343
- /**
1344
- * Updates the `Verify` content with the given `data`, the encoding of which
1345
- * is given in `inputEncoding`.
1346
- * If `inputEncoding` is not provided, and the `data` is a string, an
1347
- * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
1348
- *
1349
- * This can be called many times with new data as it is streamed.
1350
- * @since v0.1.92
1351
- * @param inputEncoding The `encoding` of the `data` string.
1352
- */
1353
- update(data: BinaryLike): Verify;
1354
- update(data: string, inputEncoding: Encoding): Verify;
1355
- /**
1356
- * Verifies the provided data using the given `object` and `signature`.
1357
- *
1358
- * If `object` is not a `KeyObject`, this function behaves as if`object` had been passed to {@link createPublicKey}. If it is an
1359
- * object, the following additional properties can be passed:
1360
- *
1361
- * The `signature` argument is the previously calculated signature for the data, in
1362
- * the `signatureEncoding`.
1363
- * If a `signatureEncoding` is specified, the `signature` is expected to be a
1364
- * string; otherwise `signature` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
1365
- *
1366
- * The `verify` object can not be used again after `verify.verify()` has been
1367
- * called. Multiple calls to `verify.verify()` will result in an error being
1368
- * thrown.
1369
- *
1370
- * Because public keys can be derived from private keys, a private key may
1371
- * be passed instead of a public key.
1372
- * @since v0.1.92
1373
- */
1374
- verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
1375
- verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: string, signature_format?: BinaryToTextEncoding): boolean;
1376
- }
1377
- /**
1378
- * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an
1379
- * optional specific `generator`.
1380
- *
1381
- * The `generator` argument can be a number, string, or `Buffer`. If`generator` is not specified, the value `2` is used.
1382
- *
1383
- * If `primeEncoding` is specified, `prime` is expected to be a string; otherwise
1384
- * a `Buffer`, `TypedArray`, or `DataView` is expected.
1385
- *
1386
- * If `generatorEncoding` is specified, `generator` is expected to be a string;
1387
- * otherwise a number, `Buffer`, `TypedArray`, or `DataView` is expected.
1388
- * @since v0.11.12
1389
- * @param primeEncoding The `encoding` of the `prime` string.
1390
- * @param [generator=2]
1391
- * @param generatorEncoding The `encoding` of the `generator` string.
1392
- */
1393
- function createDiffieHellman(primeLength: number, generator?: number | NodeJS.ArrayBufferView): DiffieHellman;
1394
- function createDiffieHellman(prime: NodeJS.ArrayBufferView): DiffieHellman;
1395
- function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding): DiffieHellman;
1396
- function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding, generator: number | NodeJS.ArrayBufferView): DiffieHellman;
1397
- function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding, generator: string, generatorEncoding: BinaryToTextEncoding): DiffieHellman;
1398
- /**
1399
- * The `DiffieHellman` class is a utility for creating Diffie-Hellman key
1400
- * exchanges.
1401
- *
1402
- * Instances of the `DiffieHellman` class can be created using the {@link createDiffieHellman} function.
1403
- *
1404
- * ```js
1405
- * import assert from 'assert';
1406
- *
1407
- * const {
1408
- * createDiffieHellman
1409
- * } = await import('crypto');
1410
- *
1411
- * // Generate Alice's keys...
1412
- * const alice = createDiffieHellman(2048);
1413
- * const aliceKey = alice.generateKeys();
1414
- *
1415
- * // Generate Bob's keys...
1416
- * const bob = createDiffieHellman(alice.getPrime(), alice.getGenerator());
1417
- * const bobKey = bob.generateKeys();
1418
- *
1419
- * // Exchange and generate the secret...
1420
- * const aliceSecret = alice.computeSecret(bobKey);
1421
- * const bobSecret = bob.computeSecret(aliceKey);
1422
- *
1423
- * // OK
1424
- * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex'));
1425
- * ```
1426
- * @since v0.5.0
1427
- */
1428
- class DiffieHellman {
1429
- private constructor();
1430
- /**
1431
- * Generates private and public Diffie-Hellman key values, and returns
1432
- * the public key in the specified `encoding`. This key should be
1433
- * transferred to the other party.
1434
- * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
1435
- * @since v0.5.0
1436
- * @param encoding The `encoding` of the return value.
1437
- */
1438
- generateKeys(): Buffer;
1439
- generateKeys(encoding: BinaryToTextEncoding): string;
1440
- /**
1441
- * Computes the shared secret using `otherPublicKey` as the other
1442
- * party's public key and returns the computed shared secret. The supplied
1443
- * key is interpreted using the specified `inputEncoding`, and secret is
1444
- * encoded using specified `outputEncoding`.
1445
- * If the `inputEncoding` is not
1446
- * provided, `otherPublicKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
1447
- *
1448
- * If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned.
1449
- * @since v0.5.0
1450
- * @param inputEncoding The `encoding` of an `otherPublicKey` string.
1451
- * @param outputEncoding The `encoding` of the return value.
1452
- */
1453
- computeSecret(otherPublicKey: NodeJS.ArrayBufferView): Buffer;
1454
- computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer;
1455
- computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string;
1456
- computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding: BinaryToTextEncoding): string;
1457
- /**
1458
- * Returns the Diffie-Hellman prime in the specified `encoding`.
1459
- * If `encoding` is provided a string is
1460
- * returned; otherwise a `Buffer` is returned.
1461
- * @since v0.5.0
1462
- * @param encoding The `encoding` of the return value.
1463
- */
1464
- getPrime(): Buffer;
1465
- getPrime(encoding: BinaryToTextEncoding): string;
1466
- /**
1467
- * Returns the Diffie-Hellman generator in the specified `encoding`.
1468
- * If `encoding` is provided a string is
1469
- * returned; otherwise a `Buffer` is returned.
1470
- * @since v0.5.0
1471
- * @param encoding The `encoding` of the return value.
1472
- */
1473
- getGenerator(): Buffer;
1474
- getGenerator(encoding: BinaryToTextEncoding): string;
1475
- /**
1476
- * Returns the Diffie-Hellman public key in the specified `encoding`.
1477
- * If `encoding` is provided a
1478
- * string is returned; otherwise a `Buffer` is returned.
1479
- * @since v0.5.0
1480
- * @param encoding The `encoding` of the return value.
1481
- */
1482
- getPublicKey(): Buffer;
1483
- getPublicKey(encoding: BinaryToTextEncoding): string;
1484
- /**
1485
- * Returns the Diffie-Hellman private key in the specified `encoding`.
1486
- * If `encoding` is provided a
1487
- * string is returned; otherwise a `Buffer` is returned.
1488
- * @since v0.5.0
1489
- * @param encoding The `encoding` of the return value.
1490
- */
1491
- getPrivateKey(): Buffer;
1492
- getPrivateKey(encoding: BinaryToTextEncoding): string;
1493
- /**
1494
- * Sets the Diffie-Hellman public key. If the `encoding` argument is provided,`publicKey` is expected
1495
- * to be a string. If no `encoding` is provided, `publicKey` is expected
1496
- * to be a `Buffer`, `TypedArray`, or `DataView`.
1497
- * @since v0.5.0
1498
- * @param encoding The `encoding` of the `publicKey` string.
1499
- */
1500
- setPublicKey(publicKey: NodeJS.ArrayBufferView): void;
1501
- setPublicKey(publicKey: string, encoding: BufferEncoding): void;
1502
- /**
1503
- * Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected
1504
- * to be a string. If no `encoding` is provided, `privateKey` is expected
1505
- * to be a `Buffer`, `TypedArray`, or `DataView`.
1506
- * @since v0.5.0
1507
- * @param encoding The `encoding` of the `privateKey` string.
1508
- */
1509
- setPrivateKey(privateKey: NodeJS.ArrayBufferView): void;
1510
- setPrivateKey(privateKey: string, encoding: BufferEncoding): void;
1511
- /**
1512
- * A bit field containing any warnings and/or errors resulting from a check
1513
- * performed during initialization of the `DiffieHellman` object.
1514
- *
1515
- * The following values are valid for this property (as defined in `constants`module):
1516
- *
1517
- * * `DH_CHECK_P_NOT_SAFE_PRIME`
1518
- * * `DH_CHECK_P_NOT_PRIME`
1519
- * * `DH_UNABLE_TO_CHECK_GENERATOR`
1520
- * * `DH_NOT_SUITABLE_GENERATOR`
1521
- * @since v0.11.12
1522
- */
1523
- verifyError: number;
1524
- }
1525
- /**
1526
- * Creates a predefined `DiffieHellmanGroup` key exchange object. The
1527
- * supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in[RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt), but see `Caveats`) and `'modp14'`, `'modp15'`,`'modp16'`, `'modp17'`,
1528
- * `'modp18'` (defined in [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt)). The
1529
- * returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing
1530
- * the keys (with `diffieHellman.setPublicKey()`, for example). The
1531
- * advantage of using this method is that the parties do not have to
1532
- * generate nor exchange a group modulus beforehand, saving both processor
1533
- * and communication time.
1534
- *
1535
- * Example (obtaining a shared secret):
1536
- *
1537
- * ```js
1538
- * const {
1539
- * getDiffieHellman
1540
- * } = await import('crypto');
1541
- * const alice = getDiffieHellman('modp14');
1542
- * const bob = getDiffieHellman('modp14');
1543
- *
1544
- * alice.generateKeys();
1545
- * bob.generateKeys();
1546
- *
1547
- * const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex');
1548
- * const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex');
1549
- *
1550
- * // aliceSecret and bobSecret should be the same
1551
- * console.log(aliceSecret === bobSecret);
1552
- * ```
1553
- * @since v0.7.5
1554
- */
1555
- function getDiffieHellman(groupName: string): DiffieHellman;
1556
- /**
1557
- * Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2)
1558
- * implementation. A selected HMAC digest algorithm specified by `digest` is
1559
- * applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`.
1560
- *
1561
- * The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an error occurs while deriving the key, `err` will be set;
1562
- * otherwise `err` will be `null`. By default, the successfully generated`derivedKey` will be passed to the callback as a `Buffer`. An error will be
1563
- * thrown if any of the input arguments specify invalid values or types.
1564
- *
1565
- * If `digest` is `null`, `'sha1'` will be used. This behavior is deprecated,
1566
- * please specify a `digest` explicitly.
1567
- *
1568
- * The `iterations` argument must be a number set as high as possible. The
1569
- * higher the number of iterations, the more secure the derived key will be,
1570
- * but will take a longer amount of time to complete.
1571
- *
1572
- * The `salt` should be as unique as possible. It is recommended that a salt is
1573
- * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
1574
- *
1575
- * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
1576
- *
1577
- * ```js
1578
- * const {
1579
- * pbkdf2
1580
- * } = await import('crypto');
1581
- *
1582
- * pbkdf2('secret', 'salt', 100000, 64, 'sha512', (err, derivedKey) => {
1583
- * if (err) throw err;
1584
- * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae'
1585
- * });
1586
- * ```
1587
- *
1588
- * The `crypto.DEFAULT_ENCODING` property can be used to change the way the`derivedKey` is passed to the callback. This property, however, has been
1589
- * deprecated and use should be avoided.
1590
- *
1591
- * ```js
1592
- * import crypto from 'crypto';
1593
- * crypto.DEFAULT_ENCODING = 'hex';
1594
- * crypto.pbkdf2('secret', 'salt', 100000, 512, 'sha512', (err, derivedKey) => {
1595
- * if (err) throw err;
1596
- * console.log(derivedKey); // '3745e48...aa39b34'
1597
- * });
1598
- * ```
1599
- *
1600
- * An array of supported digest functions can be retrieved using {@link getHashes}.
1601
- *
1602
- * This API uses libuv's threadpool, which can have surprising and
1603
- * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
1604
- * @since v0.5.5
1605
- */
1606
- function pbkdf2(password: BinaryLike, salt: BinaryLike, iterations: number, keylen: number, digest: string, callback: (err: Error | null, derivedKey: Buffer) => void): void;
1607
- /**
1608
- * Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2)
1609
- * implementation. A selected HMAC digest algorithm specified by `digest` is
1610
- * applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`.
1611
- *
1612
- * If an error occurs an `Error` will be thrown, otherwise the derived key will be
1613
- * returned as a `Buffer`.
1614
- *
1615
- * If `digest` is `null`, `'sha1'` will be used. This behavior is deprecated,
1616
- * please specify a `digest` explicitly.
1617
- *
1618
- * The `iterations` argument must be a number set as high as possible. The
1619
- * higher the number of iterations, the more secure the derived key will be,
1620
- * but will take a longer amount of time to complete.
1621
- *
1622
- * The `salt` should be as unique as possible. It is recommended that a salt is
1623
- * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
1624
- *
1625
- * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
1626
- *
1627
- * ```js
1628
- * const {
1629
- * pbkdf2Sync
1630
- * } = await import('crypto');
1631
- *
1632
- * const key = pbkdf2Sync('secret', 'salt', 100000, 64, 'sha512');
1633
- * console.log(key.toString('hex')); // '3745e48...08d59ae'
1634
- * ```
1635
- *
1636
- * The `crypto.DEFAULT_ENCODING` property may be used to change the way the`derivedKey` is returned. This property, however, is deprecated and use
1637
- * should be avoided.
1638
- *
1639
- * ```js
1640
- * import crypto from 'crypto';
1641
- * crypto.DEFAULT_ENCODING = 'hex';
1642
- * const key = crypto.pbkdf2Sync('secret', 'salt', 100000, 512, 'sha512');
1643
- * console.log(key); // '3745e48...aa39b34'
1644
- * ```
1645
- *
1646
- * An array of supported digest functions can be retrieved using {@link getHashes}.
1647
- * @since v0.9.3
1648
- */
1649
- function pbkdf2Sync(password: BinaryLike, salt: BinaryLike, iterations: number, keylen: number, digest: string): Buffer;
1650
- /**
1651
- * Generates cryptographically strong pseudorandom data. The `size` argument
1652
- * is a number indicating the number of bytes to generate.
1653
- *
1654
- * If a `callback` function is provided, the bytes are generated asynchronously
1655
- * and the `callback` function is invoked with two arguments: `err` and `buf`.
1656
- * If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The`buf` argument is a `Buffer` containing the generated bytes.
1657
- *
1658
- * ```js
1659
- * // Asynchronous
1660
- * const {
1661
- * randomBytes
1662
- * } = await import('crypto');
1663
- *
1664
- * randomBytes(256, (err, buf) => {
1665
- * if (err) throw err;
1666
- * console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`);
1667
- * });
1668
- * ```
1669
- *
1670
- * If the `callback` function is not provided, the random bytes are generated
1671
- * synchronously and returned as a `Buffer`. An error will be thrown if
1672
- * there is a problem generating the bytes.
1673
- *
1674
- * ```js
1675
- * // Synchronous
1676
- * const {
1677
- * randomBytes
1678
- * } = await import('crypto');
1679
- *
1680
- * const buf = randomBytes(256);
1681
- * console.log(
1682
- * `${buf.length} bytes of random data: ${buf.toString('hex')}`);
1683
- * ```
1684
- *
1685
- * The `crypto.randomBytes()` method will not complete until there is
1686
- * sufficient entropy available.
1687
- * This should normally never take longer than a few milliseconds. The only time
1688
- * when generating the random bytes may conceivably block for a longer period of
1689
- * time is right after boot, when the whole system is still low on entropy.
1690
- *
1691
- * This API uses libuv's threadpool, which can have surprising and
1692
- * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
1693
- *
1694
- * The asynchronous version of `crypto.randomBytes()` is carried out in a single
1695
- * threadpool request. To minimize threadpool task length variation, partition
1696
- * large `randomBytes` requests when doing so as part of fulfilling a client
1697
- * request.
1698
- * @since v0.5.8
1699
- * @param size The number of bytes to generate. The `size` must not be larger than `2**31 - 1`.
1700
- * @return if the `callback` function is not provided.
1701
- */
1702
- function randomBytes(size: number): Buffer;
1703
- function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
1704
- function pseudoRandomBytes(size: number): Buffer;
1705
- function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
1706
- /**
1707
- * Return a random integer `n` such that `min <= n < max`. This
1708
- * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias).
1709
- *
1710
- * The range (`max - min`) must be less than 248. `min` and `max` must
1711
- * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger).
1712
- *
1713
- * If the `callback` function is not provided, the random integer is
1714
- * generated synchronously.
1715
- *
1716
- * ```js
1717
- * // Asynchronous
1718
- * const {
1719
- * randomInt
1720
- * } = await import('crypto');
1721
- *
1722
- * randomInt(3, (err, n) => {
1723
- * if (err) throw err;
1724
- * console.log(`Random number chosen from (0, 1, 2): ${n}`);
1725
- * });
1726
- * ```
1727
- *
1728
- * ```js
1729
- * // Synchronous
1730
- * const {
1731
- * randomInt
1732
- * } = await import('crypto');
1733
- *
1734
- * const n = randomInt(3);
1735
- * console.log(`Random number chosen from (0, 1, 2): ${n}`);
1736
- * ```
1737
- *
1738
- * ```js
1739
- * // With `min` argument
1740
- * const {
1741
- * randomInt
1742
- * } = await import('crypto');
1743
- *
1744
- * const n = randomInt(1, 7);
1745
- * console.log(`The dice rolled: ${n}`);
1746
- * ```
1747
- * @since v14.10.0, v12.19.0
1748
- * @param [min=0] Start of random range (inclusive).
1749
- * @param max End of random range (exclusive).
1750
- * @param callback `function(err, n) {}`.
1751
- */
1752
- function randomInt(max: number): number;
1753
- function randomInt(min: number, max: number): number;
1754
- function randomInt(max: number, callback: (err: Error | null, value: number) => void): void;
1755
- function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void;
1756
- /**
1757
- * Synchronous version of {@link randomFill}.
1758
- *
1759
- * ```js
1760
- * import { Buffer } from 'buffer';
1761
- * const { randomFillSync } = await import('crypto');
1762
- *
1763
- * const buf = Buffer.alloc(10);
1764
- * console.log(randomFillSync(buf).toString('hex'));
1765
- *
1766
- * randomFillSync(buf, 5);
1767
- * console.log(buf.toString('hex'));
1768
- *
1769
- * // The above is equivalent to the following:
1770
- * randomFillSync(buf, 5, 5);
1771
- * console.log(buf.toString('hex'));
1772
- * ```
1773
- *
1774
- * Any `ArrayBuffer`, `TypedArray` or `DataView` instance may be passed as`buffer`.
1775
- *
1776
- * ```js
1777
- * import { Buffer } from 'buffer';
1778
- * const { randomFillSync } = await import('crypto');
1779
- *
1780
- * const a = new Uint32Array(10);
1781
- * console.log(Buffer.from(randomFillSync(a).buffer,
1782
- * a.byteOffset, a.byteLength).toString('hex'));
1783
- *
1784
- * const b = new DataView(new ArrayBuffer(10));
1785
- * console.log(Buffer.from(randomFillSync(b).buffer,
1786
- * b.byteOffset, b.byteLength).toString('hex'));
1787
- *
1788
- * const c = new ArrayBuffer(10);
1789
- * console.log(Buffer.from(randomFillSync(c)).toString('hex'));
1790
- * ```
1791
- * @since v7.10.0, v6.13.0
1792
- * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`.
1793
- * @param [offset=0]
1794
- * @param [size=buffer.length - offset]
1795
- * @return The object passed as `buffer` argument.
1796
- */
1797
- function randomFillSync<T extends NodeJS.ArrayBufferView>(buffer: T, offset?: number, size?: number): T;
1798
- /**
1799
- * This function is similar to {@link randomBytes} but requires the first
1800
- * argument to be a `Buffer` that will be filled. It also
1801
- * requires that a callback is passed in.
1802
- *
1803
- * If the `callback` function is not provided, an error will be thrown.
1804
- *
1805
- * ```js
1806
- * import { Buffer } from 'buffer';
1807
- * const { randomFill } = await import('crypto');
1808
- *
1809
- * const buf = Buffer.alloc(10);
1810
- * randomFill(buf, (err, buf) => {
1811
- * if (err) throw err;
1812
- * console.log(buf.toString('hex'));
1813
- * });
1814
- *
1815
- * randomFill(buf, 5, (err, buf) => {
1816
- * if (err) throw err;
1817
- * console.log(buf.toString('hex'));
1818
- * });
1819
- *
1820
- * // The above is equivalent to the following:
1821
- * randomFill(buf, 5, 5, (err, buf) => {
1822
- * if (err) throw err;
1823
- * console.log(buf.toString('hex'));
1824
- * });
1825
- * ```
1826
- *
1827
- * Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as`buffer`.
1828
- *
1829
- * While this includes instances of `Float32Array` and `Float64Array`, this
1830
- * function should not be used to generate random floating-point numbers. The
1831
- * result may contain `+Infinity`, `-Infinity`, and `NaN`, and even if the array
1832
- * contains finite numbers only, they are not drawn from a uniform random
1833
- * distribution and have no meaningful lower or upper bounds.
1834
- *
1835
- * ```js
1836
- * import { Buffer } from 'buffer';
1837
- * const { randomFill } = await import('crypto');
1838
- *
1839
- * const a = new Uint32Array(10);
1840
- * randomFill(a, (err, buf) => {
1841
- * if (err) throw err;
1842
- * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)
1843
- * .toString('hex'));
1844
- * });
1845
- *
1846
- * const b = new DataView(new ArrayBuffer(10));
1847
- * randomFill(b, (err, buf) => {
1848
- * if (err) throw err;
1849
- * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)
1850
- * .toString('hex'));
1851
- * });
1852
- *
1853
- * const c = new ArrayBuffer(10);
1854
- * randomFill(c, (err, buf) => {
1855
- * if (err) throw err;
1856
- * console.log(Buffer.from(buf).toString('hex'));
1857
- * });
1858
- * ```
1859
- *
1860
- * This API uses libuv's threadpool, which can have surprising and
1861
- * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
1862
- *
1863
- * The asynchronous version of `crypto.randomFill()` is carried out in a single
1864
- * threadpool request. To minimize threadpool task length variation, partition
1865
- * large `randomFill` requests when doing so as part of fulfilling a client
1866
- * request.
1867
- * @since v7.10.0, v6.13.0
1868
- * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`.
1869
- * @param [offset=0]
1870
- * @param [size=buffer.length - offset]
1871
- * @param callback `function(err, buf) {}`.
1872
- */
1873
- function randomFill<T extends NodeJS.ArrayBufferView>(buffer: T, callback: (err: Error | null, buf: T) => void): void;
1874
- function randomFill<T extends NodeJS.ArrayBufferView>(buffer: T, offset: number, callback: (err: Error | null, buf: T) => void): void;
1875
- function randomFill<T extends NodeJS.ArrayBufferView>(buffer: T, offset: number, size: number, callback: (err: Error | null, buf: T) => void): void;
1876
- interface ScryptOptions {
1877
- cost?: number | undefined;
1878
- blockSize?: number | undefined;
1879
- parallelization?: number | undefined;
1880
- N?: number | undefined;
1881
- r?: number | undefined;
1882
- p?: number | undefined;
1883
- maxmem?: number | undefined;
1884
- }
1885
- /**
1886
- * Provides an asynchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based
1887
- * key derivation function that is designed to be expensive computationally and
1888
- * memory-wise in order to make brute-force attacks unrewarding.
1889
- *
1890
- * The `salt` should be as unique as possible. It is recommended that a salt is
1891
- * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
1892
- *
1893
- * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
1894
- *
1895
- * 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
1896
- * callback as a `Buffer`.
1897
- *
1898
- * An exception is thrown when any of the input arguments specify invalid values
1899
- * or types.
1900
- *
1901
- * ```js
1902
- * const {
1903
- * scrypt
1904
- * } = await import('crypto');
1905
- *
1906
- * // Using the factory defaults.
1907
- * scrypt('password', 'salt', 64, (err, derivedKey) => {
1908
- * if (err) throw err;
1909
- * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae'
1910
- * });
1911
- * // Using a custom N parameter. Must be a power of two.
1912
- * scrypt('password', 'salt', 64, { N: 1024 }, (err, derivedKey) => {
1913
- * if (err) throw err;
1914
- * console.log(derivedKey.toString('hex')); // '3745e48...aa39b34'
1915
- * });
1916
- * ```
1917
- * @since v10.5.0
1918
- */
1919
- function scrypt(password: BinaryLike, salt: BinaryLike, keylen: number, callback: (err: Error | null, derivedKey: Buffer) => void): void;
1920
- function scrypt(password: BinaryLike, salt: BinaryLike, keylen: number, options: ScryptOptions, callback: (err: Error | null, derivedKey: Buffer) => void): void;
1921
- /**
1922
- * Provides a synchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based
1923
- * key derivation function that is designed to be expensive computationally and
1924
- * memory-wise in order to make brute-force attacks unrewarding.
1925
- *
1926
- * The `salt` should be as unique as possible. It is recommended that a salt is
1927
- * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
1928
- *
1929
- * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
1930
- *
1931
- * An exception is thrown when key derivation fails, otherwise the derived key is
1932
- * returned as a `Buffer`.
1933
- *
1934
- * An exception is thrown when any of the input arguments specify invalid values
1935
- * or types.
1936
- *
1937
- * ```js
1938
- * const {
1939
- * scryptSync
1940
- * } = await import('crypto');
1941
- * // Using the factory defaults.
1942
- *
1943
- * const key1 = scryptSync('password', 'salt', 64);
1944
- * console.log(key1.toString('hex')); // '3745e48...08d59ae'
1945
- * // Using a custom N parameter. Must be a power of two.
1946
- * const key2 = scryptSync('password', 'salt', 64, { N: 1024 });
1947
- * console.log(key2.toString('hex')); // '3745e48...aa39b34'
1948
- * ```
1949
- * @since v10.5.0
1950
- */
1951
- function scryptSync(password: BinaryLike, salt: BinaryLike, keylen: number, options?: ScryptOptions): Buffer;
1952
- interface RsaPublicKey {
1953
- key: KeyLike;
1954
- padding?: number | undefined;
1955
- }
1956
- interface RsaPrivateKey {
1957
- key: KeyLike;
1958
- passphrase?: string | undefined;
1959
- /**
1960
- * @default 'sha1'
1961
- */
1962
- oaepHash?: string | undefined;
1963
- oaepLabel?: NodeJS.TypedArray | undefined;
1964
- padding?: number | undefined;
1965
- }
1966
- /**
1967
- * Encrypts the content of `buffer` with `key` and returns a new `Buffer` with encrypted content. The returned data can be decrypted using
1968
- * the corresponding private key, for example using {@link privateDecrypt}.
1969
- *
1970
- * If `key` is not a `KeyObject`, this function behaves as if`key` had been passed to {@link createPublicKey}. If it is an
1971
- * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_OAEP_PADDING`.
1972
- *
1973
- * Because RSA public keys can be derived from private keys, a private key may
1974
- * be passed instead of a public key.
1975
- * @since v0.11.14
1976
- */
1977
- function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
1978
- /**
1979
- * Decrypts `buffer` with `key`.`buffer` was previously encrypted using
1980
- * the corresponding private key, for example using {@link privateEncrypt}.
1981
- *
1982
- * If `key` is not a `KeyObject`, this function behaves as if`key` had been passed to {@link createPublicKey}. If it is an
1983
- * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_PADDING`.
1984
- *
1985
- * Because RSA public keys can be derived from private keys, a private key may
1986
- * be passed instead of a public key.
1987
- * @since v1.1.0
1988
- */
1989
- function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
1990
- /**
1991
- * Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using
1992
- * the corresponding public key, for example using {@link publicEncrypt}.
1993
- *
1994
- * If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an
1995
- * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_OAEP_PADDING`.
1996
- * @since v0.11.14
1997
- */
1998
- function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
1999
- /**
2000
- * Encrypts `buffer` with `privateKey`. The returned data can be decrypted using
2001
- * the corresponding public key, for example using {@link publicDecrypt}.
2002
- *
2003
- * If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an
2004
- * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_PADDING`.
2005
- * @since v1.1.0
2006
- */
2007
- function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2008
- /**
2009
- * ```js
2010
- * const {
2011
- * getCiphers
2012
- * } = await import('crypto');
2013
- *
2014
- * console.log(getCiphers()); // ['aes-128-cbc', 'aes-128-ccm', ...]
2015
- * ```
2016
- * @since v0.9.3
2017
- * @return An array with the names of the supported cipher algorithms.
2018
- */
2019
- function getCiphers(): string[];
2020
- /**
2021
- * ```js
2022
- * const {
2023
- * getCurves
2024
- * } = await import('crypto');
2025
- *
2026
- * console.log(getCurves()); // ['Oakley-EC2N-3', 'Oakley-EC2N-4', ...]
2027
- * ```
2028
- * @since v2.3.0
2029
- * @return An array with the names of the supported elliptic curves.
2030
- */
2031
- function getCurves(): string[];
2032
- /**
2033
- * @since v10.0.0
2034
- * @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}.
2035
- */
2036
- function getFips(): 1 | 0;
2037
- /**
2038
- * ```js
2039
- * const {
2040
- * getHashes
2041
- * } = await import('crypto');
2042
- *
2043
- * console.log(getHashes()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...]
2044
- * ```
2045
- * @since v0.9.3
2046
- * @return An array of the names of the supported hash algorithms, such as `'RSA-SHA256'`. Hash algorithms are also called "digest" algorithms.
2047
- */
2048
- function getHashes(): string[];
2049
- /**
2050
- * The `ECDH` class is a utility for creating Elliptic Curve Diffie-Hellman (ECDH)
2051
- * key exchanges.
2052
- *
2053
- * Instances of the `ECDH` class can be created using the {@link createECDH} function.
2054
- *
2055
- * ```js
2056
- * import assert from 'assert';
2057
- *
2058
- * const {
2059
- * createECDH
2060
- * } = await import('crypto');
2061
- *
2062
- * // Generate Alice's keys...
2063
- * const alice = createECDH('secp521r1');
2064
- * const aliceKey = alice.generateKeys();
2065
- *
2066
- * // Generate Bob's keys...
2067
- * const bob = createECDH('secp521r1');
2068
- * const bobKey = bob.generateKeys();
2069
- *
2070
- * // Exchange and generate the secret...
2071
- * const aliceSecret = alice.computeSecret(bobKey);
2072
- * const bobSecret = bob.computeSecret(aliceKey);
2073
- *
2074
- * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex'));
2075
- * // OK
2076
- * ```
2077
- * @since v0.11.14
2078
- */
2079
- class ECDH {
2080
- private constructor();
2081
- /**
2082
- * Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the
2083
- * format specified by `format`. The `format` argument specifies point encoding
2084
- * and can be `'compressed'`, `'uncompressed'` or `'hybrid'`. The supplied key is
2085
- * interpreted using the specified `inputEncoding`, and the returned key is encoded
2086
- * using the specified `outputEncoding`.
2087
- *
2088
- * Use {@link getCurves} to obtain a list of available curve names.
2089
- * On recent OpenSSL releases, `openssl ecparam -list_curves` will also display
2090
- * the name and description of each available elliptic curve.
2091
- *
2092
- * If `format` is not specified the point will be returned in `'uncompressed'`format.
2093
- *
2094
- * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
2095
- *
2096
- * Example (uncompressing a key):
2097
- *
2098
- * ```js
2099
- * const {
2100
- * createECDH,
2101
- * ECDH
2102
- * } = await import('crypto');
2103
- *
2104
- * const ecdh = createECDH('secp256k1');
2105
- * ecdh.generateKeys();
2106
- *
2107
- * const compressedKey = ecdh.getPublicKey('hex', 'compressed');
2108
- *
2109
- * const uncompressedKey = ECDH.convertKey(compressedKey,
2110
- * 'secp256k1',
2111
- * 'hex',
2112
- * 'hex',
2113
- * 'uncompressed');
2114
- *
2115
- * // The converted key and the uncompressed public key should be the same
2116
- * console.log(uncompressedKey === ecdh.getPublicKey('hex'));
2117
- * ```
2118
- * @since v10.0.0
2119
- * @param inputEncoding The `encoding` of the `key` string.
2120
- * @param outputEncoding The `encoding` of the return value.
2121
- * @param [format='uncompressed']
2122
- */
2123
- static convertKey(
2124
- key: BinaryLike,
2125
- curve: string,
2126
- inputEncoding?: BinaryToTextEncoding,
2127
- outputEncoding?: 'latin1' | 'hex' | 'base64',
2128
- format?: 'uncompressed' | 'compressed' | 'hybrid'
2129
- ): Buffer | string;
2130
- /**
2131
- * Generates private and public EC Diffie-Hellman key values, and returns
2132
- * the public key in the specified `format` and `encoding`. This key should be
2133
- * transferred to the other party.
2134
- *
2135
- * 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.
2136
- *
2137
- * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
2138
- * @since v0.11.14
2139
- * @param encoding The `encoding` of the return value.
2140
- * @param [format='uncompressed']
2141
- */
2142
- generateKeys(): Buffer;
2143
- generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
2144
- /**
2145
- * Computes the shared secret using `otherPublicKey` as the other
2146
- * party's public key and returns the computed shared secret. The supplied
2147
- * key is interpreted using specified `inputEncoding`, and the returned secret
2148
- * is encoded using the specified `outputEncoding`.
2149
- * If the `inputEncoding` is not
2150
- * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or`DataView`.
2151
- *
2152
- * If `outputEncoding` is given a string will be returned; otherwise a `Buffer` is returned.
2153
- *
2154
- * `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey`lies outside of the elliptic curve. Since `otherPublicKey` is
2155
- * usually supplied from a remote user over an insecure network,
2156
- * be sure to handle this exception accordingly.
2157
- * @since v0.11.14
2158
- * @param inputEncoding The `encoding` of the `otherPublicKey` string.
2159
- * @param outputEncoding The `encoding` of the return value.
2160
- */
2161
- computeSecret(otherPublicKey: NodeJS.ArrayBufferView): Buffer;
2162
- computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer;
2163
- computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string;
2164
- computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding: BinaryToTextEncoding): string;
2165
- /**
2166
- * If `encoding` is specified, a string is returned; otherwise a `Buffer` is
2167
- * returned.
2168
- * @since v0.11.14
2169
- * @param encoding The `encoding` of the return value.
2170
- * @return The EC Diffie-Hellman in the specified `encoding`.
2171
- */
2172
- getPrivateKey(): Buffer;
2173
- getPrivateKey(encoding: BinaryToTextEncoding): string;
2174
- /**
2175
- * 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.
2176
- *
2177
- * If `encoding` is specified, a string is returned; otherwise a `Buffer` is
2178
- * returned.
2179
- * @since v0.11.14
2180
- * @param encoding The `encoding` of the return value.
2181
- * @param [format='uncompressed']
2182
- * @return The EC Diffie-Hellman public key in the specified `encoding` and `format`.
2183
- */
2184
- getPublicKey(): Buffer;
2185
- getPublicKey(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
2186
- /**
2187
- * Sets the EC Diffie-Hellman private key.
2188
- * If `encoding` is provided, `privateKey` is expected
2189
- * to be a string; otherwise `privateKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
2190
- *
2191
- * If `privateKey` is not valid for the curve specified when the `ECDH` object was
2192
- * created, an error is thrown. Upon setting the private key, the associated
2193
- * public point (key) is also generated and set in the `ECDH` object.
2194
- * @since v0.11.14
2195
- * @param encoding The `encoding` of the `privateKey` string.
2196
- */
2197
- setPrivateKey(privateKey: NodeJS.ArrayBufferView): void;
2198
- setPrivateKey(privateKey: string, encoding: BinaryToTextEncoding): void;
2199
- }
2200
- /**
2201
- * Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a
2202
- * predefined curve specified by the `curveName` string. Use {@link getCurves} to obtain a list of available curve names. On recent
2203
- * OpenSSL releases, `openssl ecparam -list_curves` will also display the name
2204
- * and description of each available elliptic curve.
2205
- * @since v0.11.14
2206
- */
2207
- function createECDH(curveName: string): ECDH;
2208
- /**
2209
- * This function is based on a constant-time algorithm.
2210
- * Returns true if `a` is equal to `b`, without leaking timing information that
2211
- * would allow an attacker to guess one of the values. This is suitable for
2212
- * comparing HMAC digests or secret values like authentication cookies or[capability urls](https://www.w3.org/TR/capability-urls/).
2213
- *
2214
- * `a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they
2215
- * must have the same byte length.
2216
- *
2217
- * If at least one of `a` and `b` is a `TypedArray` with more than one byte per
2218
- * entry, such as `Uint16Array`, the result will be computed using the platform
2219
- * byte order.
2220
- *
2221
- * Use of `crypto.timingSafeEqual` does not guarantee that the _surrounding_ code
2222
- * is timing-safe. Care should be taken to ensure that the surrounding code does
2223
- * not introduce timing vulnerabilities.
2224
- * @since v6.6.0
2225
- */
2226
- function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean;
2227
- /** @deprecated since v10.0.0 */
2228
- const DEFAULT_ENCODING: BufferEncoding;
2229
- type KeyType = 'rsa' | 'rsa-pss' | 'dsa' | 'ec' | 'ed25519' | 'ed448' | 'x25519' | 'x448';
2230
- type KeyFormat = 'pem' | 'der';
2231
- interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
2232
- format: T;
2233
- cipher?: string | undefined;
2234
- passphrase?: string | undefined;
2235
- }
2236
- interface KeyPairKeyObjectResult {
2237
- publicKey: KeyObject;
2238
- privateKey: KeyObject;
2239
- }
2240
- interface ED25519KeyPairKeyObjectOptions {}
2241
- interface ED448KeyPairKeyObjectOptions {}
2242
- interface X25519KeyPairKeyObjectOptions {}
2243
- interface X448KeyPairKeyObjectOptions {}
2244
- interface ECKeyPairKeyObjectOptions {
2245
- /**
2246
- * Name of the curve to use.
2247
- */
2248
- namedCurve: string;
2249
- }
2250
- interface RSAKeyPairKeyObjectOptions {
2251
- /**
2252
- * Key size in bits
2253
- */
2254
- modulusLength: number;
2255
- /**
2256
- * @default 0x10001
2257
- */
2258
- publicExponent?: number | undefined;
2259
- }
2260
- interface RSAPSSKeyPairKeyObjectOptions {
2261
- /**
2262
- * Key size in bits
2263
- */
2264
- modulusLength: number;
2265
- /**
2266
- * @default 0x10001
2267
- */
2268
- publicExponent?: number | undefined;
2269
- }
2270
- interface DSAKeyPairKeyObjectOptions {
2271
- /**
2272
- * Key size in bits
2273
- */
2274
- modulusLength: number;
2275
- /**
2276
- * Size of q in bits
2277
- */
2278
- divisorLength: number;
2279
- }
2280
- interface RSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2281
- /**
2282
- * Key size in bits
2283
- */
2284
- modulusLength: number;
2285
- /**
2286
- * @default 0x10001
2287
- */
2288
- publicExponent?: number | undefined;
2289
- publicKeyEncoding: {
2290
- type: 'pkcs1' | 'spki';
2291
- format: PubF;
2292
- };
2293
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2294
- type: 'pkcs1' | 'pkcs8';
2295
- };
2296
- }
2297
- interface RSAPSSKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2298
- /**
2299
- * Key size in bits
2300
- */
2301
- modulusLength: number;
2302
- /**
2303
- * @default 0x10001
2304
- */
2305
- publicExponent?: number | undefined;
2306
- publicKeyEncoding: {
2307
- type: 'spki';
2308
- format: PubF;
2309
- };
2310
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2311
- type: 'pkcs8';
2312
- };
2313
- }
2314
- interface DSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2315
- /**
2316
- * Key size in bits
2317
- */
2318
- modulusLength: number;
2319
- /**
2320
- * Size of q in bits
2321
- */
2322
- divisorLength: number;
2323
- publicKeyEncoding: {
2324
- type: 'spki';
2325
- format: PubF;
2326
- };
2327
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2328
- type: 'pkcs8';
2329
- };
2330
- }
2331
- interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2332
- /**
2333
- * Name of the curve to use.
2334
- */
2335
- namedCurve: string;
2336
- publicKeyEncoding: {
2337
- type: 'pkcs1' | 'spki';
2338
- format: PubF;
2339
- };
2340
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2341
- type: 'sec1' | 'pkcs8';
2342
- };
2343
- }
2344
- interface ED25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2345
- publicKeyEncoding: {
2346
- type: 'spki';
2347
- format: PubF;
2348
- };
2349
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2350
- type: 'pkcs8';
2351
- };
2352
- }
2353
- interface ED448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2354
- publicKeyEncoding: {
2355
- type: 'spki';
2356
- format: PubF;
2357
- };
2358
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2359
- type: 'pkcs8';
2360
- };
2361
- }
2362
- interface X25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2363
- publicKeyEncoding: {
2364
- type: 'spki';
2365
- format: PubF;
2366
- };
2367
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2368
- type: 'pkcs8';
2369
- };
2370
- }
2371
- interface X448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2372
- publicKeyEncoding: {
2373
- type: 'spki';
2374
- format: PubF;
2375
- };
2376
- privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2377
- type: 'pkcs8';
2378
- };
2379
- }
2380
- interface KeyPairSyncResult<T1 extends string | Buffer, T2 extends string | Buffer> {
2381
- publicKey: T1;
2382
- privateKey: T2;
2383
- }
2384
- /**
2385
- * Generates a new asymmetric key pair of the given `type`. RSA, DSA, EC, Ed25519,
2386
- * Ed448, X25519, X448, and DH are currently supported.
2387
- *
2388
- * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
2389
- * behaves as if `keyObject.export()` had been called on its result. Otherwise,
2390
- * the respective part of the key is returned as a `KeyObject`.
2391
- *
2392
- * When encoding public keys, it is recommended to use `'spki'`. When encoding
2393
- * private keys, it is recommended to use `'pkcs8'` with a strong passphrase,
2394
- * and to keep the passphrase confidential.
2395
- *
2396
- * ```js
2397
- * const {
2398
- * generateKeyPairSync
2399
- * } = await import('crypto');
2400
- *
2401
- * const {
2402
- * publicKey,
2403
- * privateKey,
2404
- * } = generateKeyPairSync('rsa', {
2405
- * modulusLength: 4096,
2406
- * publicKeyEncoding: {
2407
- * type: 'spki',
2408
- * format: 'pem'
2409
- * },
2410
- * privateKeyEncoding: {
2411
- * type: 'pkcs8',
2412
- * format: 'pem',
2413
- * cipher: 'aes-256-cbc',
2414
- * passphrase: 'top secret'
2415
- * }
2416
- * });
2417
- * ```
2418
- *
2419
- * The return value `{ publicKey, privateKey }` represents the generated key pair.
2420
- * When PEM encoding was selected, the respective key will be a string, otherwise
2421
- * it will be a buffer containing the data encoded as DER.
2422
- * @since v10.12.0
2423
- * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
2424
- */
2425
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2426
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2427
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2428
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2429
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2430
- function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2431
- function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2432
- function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2433
- function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2434
- function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2435
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2436
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2437
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2438
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2439
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2440
- function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2441
- function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2442
- function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2443
- function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2444
- function generateKeyPairSync(type: 'ec', options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2445
- function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2446
- function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2447
- function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2448
- function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2449
- function generateKeyPairSync(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2450
- function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2451
- function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2452
- function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2453
- function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2454
- function generateKeyPairSync(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2455
- function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2456
- function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2457
- function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2458
- function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2459
- function generateKeyPairSync(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2460
- function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
2461
- function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
2462
- function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
2463
- function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
2464
- function generateKeyPairSync(type: 'x448', options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2465
- /**
2466
- * Generates a new asymmetric key pair of the given `type`. RSA, DSA, EC, Ed25519,
2467
- * Ed448, X25519, X448, and DH are currently supported.
2468
- *
2469
- * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
2470
- * behaves as if `keyObject.export()` had been called on its result. Otherwise,
2471
- * the respective part of the key is returned as a `KeyObject`.
2472
- *
2473
- * It is recommended to encode public keys as `'spki'` and private keys as`'pkcs8'` with encryption for long-term storage:
2474
- *
2475
- * ```js
2476
- * const {
2477
- * generateKeyPair
2478
- * } = await import('crypto');
2479
- *
2480
- * generateKeyPair('rsa', {
2481
- * modulusLength: 4096,
2482
- * publicKeyEncoding: {
2483
- * type: 'spki',
2484
- * format: 'pem'
2485
- * },
2486
- * privateKeyEncoding: {
2487
- * type: 'pkcs8',
2488
- * format: 'pem',
2489
- * cipher: 'aes-256-cbc',
2490
- * passphrase: 'top secret'
2491
- * }
2492
- * }, (err, publicKey, privateKey) => {
2493
- * // Handle errors and use the generated key pair.
2494
- * });
2495
- * ```
2496
- *
2497
- * On completion, `callback` will be called with `err` set to `undefined` and`publicKey` / `privateKey` representing the generated key pair.
2498
- *
2499
- * If this method is invoked as its `util.promisify()` ed version, it returns
2500
- * a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
2501
- * @since v10.12.0
2502
- * @param type Must be `'rsa'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
2503
- */
2504
- function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2505
- function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2506
- function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2507
- function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2508
- function generateKeyPair(type: 'rsa', options: RSAKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2509
- function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2510
- function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2511
- function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2512
- function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2513
- function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2514
- function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2515
- function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2516
- function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2517
- function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2518
- function generateKeyPair(type: 'dsa', options: DSAKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2519
- function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2520
- function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2521
- function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2522
- function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2523
- function generateKeyPair(type: 'ec', options: ECKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2524
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2525
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2526
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2527
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2528
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2529
- function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2530
- function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2531
- function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2532
- function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2533
- function generateKeyPair(type: 'ed448', options: ED448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2534
- function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2535
- function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2536
- function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2537
- function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2538
- function generateKeyPair(type: 'x25519', options: X25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2539
- function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
2540
- function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
2541
- function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
2542
- function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
2543
- function generateKeyPair(type: 'x448', options: X448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
2544
- namespace generateKeyPair {
2545
- function __promisify__(
2546
- type: 'rsa',
2547
- options: RSAKeyPairOptions<'pem', 'pem'>
2548
- ): Promise<{
2549
- publicKey: string;
2550
- privateKey: string;
2551
- }>;
2552
- function __promisify__(
2553
- type: 'rsa',
2554
- options: RSAKeyPairOptions<'pem', 'der'>
2555
- ): Promise<{
2556
- publicKey: string;
2557
- privateKey: Buffer;
2558
- }>;
2559
- function __promisify__(
2560
- type: 'rsa',
2561
- options: RSAKeyPairOptions<'der', 'pem'>
2562
- ): Promise<{
2563
- publicKey: Buffer;
2564
- privateKey: string;
2565
- }>;
2566
- function __promisify__(
2567
- type: 'rsa',
2568
- options: RSAKeyPairOptions<'der', 'der'>
2569
- ): Promise<{
2570
- publicKey: Buffer;
2571
- privateKey: Buffer;
2572
- }>;
2573
- function __promisify__(type: 'rsa', options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2574
- function __promisify__(
2575
- type: 'rsa-pss',
2576
- options: RSAPSSKeyPairOptions<'pem', 'pem'>
2577
- ): Promise<{
2578
- publicKey: string;
2579
- privateKey: string;
2580
- }>;
2581
- function __promisify__(
2582
- type: 'rsa-pss',
2583
- options: RSAPSSKeyPairOptions<'pem', 'der'>
2584
- ): Promise<{
2585
- publicKey: string;
2586
- privateKey: Buffer;
2587
- }>;
2588
- function __promisify__(
2589
- type: 'rsa-pss',
2590
- options: RSAPSSKeyPairOptions<'der', 'pem'>
2591
- ): Promise<{
2592
- publicKey: Buffer;
2593
- privateKey: string;
2594
- }>;
2595
- function __promisify__(
2596
- type: 'rsa-pss',
2597
- options: RSAPSSKeyPairOptions<'der', 'der'>
2598
- ): Promise<{
2599
- publicKey: Buffer;
2600
- privateKey: Buffer;
2601
- }>;
2602
- function __promisify__(type: 'rsa-pss', options: RSAPSSKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2603
- function __promisify__(
2604
- type: 'dsa',
2605
- options: DSAKeyPairOptions<'pem', 'pem'>
2606
- ): Promise<{
2607
- publicKey: string;
2608
- privateKey: string;
2609
- }>;
2610
- function __promisify__(
2611
- type: 'dsa',
2612
- options: DSAKeyPairOptions<'pem', 'der'>
2613
- ): Promise<{
2614
- publicKey: string;
2615
- privateKey: Buffer;
2616
- }>;
2617
- function __promisify__(
2618
- type: 'dsa',
2619
- options: DSAKeyPairOptions<'der', 'pem'>
2620
- ): Promise<{
2621
- publicKey: Buffer;
2622
- privateKey: string;
2623
- }>;
2624
- function __promisify__(
2625
- type: 'dsa',
2626
- options: DSAKeyPairOptions<'der', 'der'>
2627
- ): Promise<{
2628
- publicKey: Buffer;
2629
- privateKey: Buffer;
2630
- }>;
2631
- function __promisify__(type: 'dsa', options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2632
- function __promisify__(
2633
- type: 'ec',
2634
- options: ECKeyPairOptions<'pem', 'pem'>
2635
- ): Promise<{
2636
- publicKey: string;
2637
- privateKey: string;
2638
- }>;
2639
- function __promisify__(
2640
- type: 'ec',
2641
- options: ECKeyPairOptions<'pem', 'der'>
2642
- ): Promise<{
2643
- publicKey: string;
2644
- privateKey: Buffer;
2645
- }>;
2646
- function __promisify__(
2647
- type: 'ec',
2648
- options: ECKeyPairOptions<'der', 'pem'>
2649
- ): Promise<{
2650
- publicKey: Buffer;
2651
- privateKey: string;
2652
- }>;
2653
- function __promisify__(
2654
- type: 'ec',
2655
- options: ECKeyPairOptions<'der', 'der'>
2656
- ): Promise<{
2657
- publicKey: Buffer;
2658
- privateKey: Buffer;
2659
- }>;
2660
- function __promisify__(type: 'ec', options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2661
- function __promisify__(
2662
- type: 'ed25519',
2663
- options: ED25519KeyPairOptions<'pem', 'pem'>
2664
- ): Promise<{
2665
- publicKey: string;
2666
- privateKey: string;
2667
- }>;
2668
- function __promisify__(
2669
- type: 'ed25519',
2670
- options: ED25519KeyPairOptions<'pem', 'der'>
2671
- ): Promise<{
2672
- publicKey: string;
2673
- privateKey: Buffer;
2674
- }>;
2675
- function __promisify__(
2676
- type: 'ed25519',
2677
- options: ED25519KeyPairOptions<'der', 'pem'>
2678
- ): Promise<{
2679
- publicKey: Buffer;
2680
- privateKey: string;
2681
- }>;
2682
- function __promisify__(
2683
- type: 'ed25519',
2684
- options: ED25519KeyPairOptions<'der', 'der'>
2685
- ): Promise<{
2686
- publicKey: Buffer;
2687
- privateKey: Buffer;
2688
- }>;
2689
- function __promisify__(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2690
- function __promisify__(
2691
- type: 'ed448',
2692
- options: ED448KeyPairOptions<'pem', 'pem'>
2693
- ): Promise<{
2694
- publicKey: string;
2695
- privateKey: string;
2696
- }>;
2697
- function __promisify__(
2698
- type: 'ed448',
2699
- options: ED448KeyPairOptions<'pem', 'der'>
2700
- ): Promise<{
2701
- publicKey: string;
2702
- privateKey: Buffer;
2703
- }>;
2704
- function __promisify__(
2705
- type: 'ed448',
2706
- options: ED448KeyPairOptions<'der', 'pem'>
2707
- ): Promise<{
2708
- publicKey: Buffer;
2709
- privateKey: string;
2710
- }>;
2711
- function __promisify__(
2712
- type: 'ed448',
2713
- options: ED448KeyPairOptions<'der', 'der'>
2714
- ): Promise<{
2715
- publicKey: Buffer;
2716
- privateKey: Buffer;
2717
- }>;
2718
- function __promisify__(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2719
- function __promisify__(
2720
- type: 'x25519',
2721
- options: X25519KeyPairOptions<'pem', 'pem'>
2722
- ): Promise<{
2723
- publicKey: string;
2724
- privateKey: string;
2725
- }>;
2726
- function __promisify__(
2727
- type: 'x25519',
2728
- options: X25519KeyPairOptions<'pem', 'der'>
2729
- ): Promise<{
2730
- publicKey: string;
2731
- privateKey: Buffer;
2732
- }>;
2733
- function __promisify__(
2734
- type: 'x25519',
2735
- options: X25519KeyPairOptions<'der', 'pem'>
2736
- ): Promise<{
2737
- publicKey: Buffer;
2738
- privateKey: string;
2739
- }>;
2740
- function __promisify__(
2741
- type: 'x25519',
2742
- options: X25519KeyPairOptions<'der', 'der'>
2743
- ): Promise<{
2744
- publicKey: Buffer;
2745
- privateKey: Buffer;
2746
- }>;
2747
- function __promisify__(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2748
- function __promisify__(
2749
- type: 'x448',
2750
- options: X448KeyPairOptions<'pem', 'pem'>
2751
- ): Promise<{
2752
- publicKey: string;
2753
- privateKey: string;
2754
- }>;
2755
- function __promisify__(
2756
- type: 'x448',
2757
- options: X448KeyPairOptions<'pem', 'der'>
2758
- ): Promise<{
2759
- publicKey: string;
2760
- privateKey: Buffer;
2761
- }>;
2762
- function __promisify__(
2763
- type: 'x448',
2764
- options: X448KeyPairOptions<'der', 'pem'>
2765
- ): Promise<{
2766
- publicKey: Buffer;
2767
- privateKey: string;
2768
- }>;
2769
- function __promisify__(
2770
- type: 'x448',
2771
- options: X448KeyPairOptions<'der', 'der'>
2772
- ): Promise<{
2773
- publicKey: Buffer;
2774
- privateKey: Buffer;
2775
- }>;
2776
- function __promisify__(type: 'x448', options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
2777
- }
2778
- /**
2779
- * Calculates and returns the signature for `data` using the given private key and
2780
- * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is
2781
- * dependent upon the key type (especially Ed25519 and Ed448).
2782
- *
2783
- * If `key` is not a `KeyObject`, this function behaves as if `key` had been
2784
- * passed to {@link createPrivateKey}. If it is an object, the following
2785
- * additional properties can be passed:
2786
- *
2787
- * If the `callback` function is provided this function uses libuv's threadpool.
2788
- * @since v12.0.0
2789
- */
2790
- function sign(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
2791
- function sign(
2792
- algorithm: string | null | undefined,
2793
- data: NodeJS.ArrayBufferView,
2794
- key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput,
2795
- callback: (error: Error | null, data: Buffer) => void
2796
- ): void;
2797
- /**
2798
- * 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
2799
- * key type (especially Ed25519 and Ed448).
2800
- *
2801
- * If `key` is not a `KeyObject`, this function behaves as if `key` had been
2802
- * passed to {@link createPublicKey}. If it is an object, the following
2803
- * additional properties can be passed:
2804
- *
2805
- * The `signature` argument is the previously calculated signature for the `data`.
2806
- *
2807
- * Because public keys can be derived from private keys, a private key or a public
2808
- * key may be passed for `key`.
2809
- *
2810
- * If the `callback` function is provided this function uses libuv's threadpool.
2811
- * @since v12.0.0
2812
- */
2813
- function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
2814
- function verify(
2815
- algorithm: string | null | undefined,
2816
- data: NodeJS.ArrayBufferView,
2817
- key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput,
2818
- signature: NodeJS.ArrayBufferView,
2819
- callback: (error: Error | null, result: boolean) => void
2820
- ): void;
2821
- /**
2822
- * Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`.
2823
- * 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).
2824
- * @since v13.9.0, v12.17.0
2825
- */
2826
- function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer;
2827
- type CipherMode = 'cbc' | 'ccm' | 'cfb' | 'ctr' | 'ecb' | 'gcm' | 'ocb' | 'ofb' | 'stream' | 'wrap' | 'xts';
2828
- interface CipherInfoOptions {
2829
- /**
2830
- * A test key length.
2831
- */
2832
- keyLength?: number | undefined;
2833
- /**
2834
- * A test IV length.
2835
- */
2836
- ivLength?: number | undefined;
2837
- }
2838
- interface CipherInfo {
2839
- /**
2840
- * The name of the cipher.
2841
- */
2842
- name: string;
2843
- /**
2844
- * The nid of the cipher.
2845
- */
2846
- nid: number;
2847
- /**
2848
- * The block size of the cipher in bytes.
2849
- * This property is omitted when mode is 'stream'.
2850
- */
2851
- blockSize?: number | undefined;
2852
- /**
2853
- * The expected or default initialization vector length in bytes.
2854
- * This property is omitted if the cipher does not use an initialization vector.
2855
- */
2856
- ivLength?: number | undefined;
2857
- /**
2858
- * The expected or default key length in bytes.
2859
- */
2860
- keyLength: number;
2861
- /**
2862
- * The cipher mode.
2863
- */
2864
- mode: CipherMode;
2865
- }
2866
- /**
2867
- * Returns information about a given cipher.
2868
- *
2869
- * Some ciphers accept variable length keys and initialization vectors. By default,
2870
- * the `crypto.getCipherInfo()` method will return the default values for these
2871
- * ciphers. To test if a given key length or iv length is acceptable for given
2872
- * cipher, use the `keyLength` and `ivLength` options. If the given values are
2873
- * unacceptable, `undefined` will be returned.
2874
- * @since v15.0.0
2875
- * @param nameOrNid The name or nid of the cipher to query.
2876
- */
2877
- function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined;
2878
- /**
2879
- * 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.
2880
- *
2881
- * The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an errors occurs while deriving the key, `err` will be set;
2882
- * otherwise `err` will be `null`. The successfully generated `derivedKey` will
2883
- * be passed to the callback as an [&lt;ArrayBuffer&gt;](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any
2884
- * of the input arguments specify invalid values or types.
2885
- *
2886
- * ```js
2887
- * import { Buffer } from 'buffer';
2888
- * const {
2889
- * hkdf
2890
- * } = await import('crypto');
2891
- *
2892
- * hkdf('sha512', 'key', 'salt', 'info', 64, (err, derivedKey) => {
2893
- * if (err) throw err;
2894
- * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653'
2895
- * });
2896
- * ```
2897
- * @since v15.0.0
2898
- * @param digest The digest algorithm to use.
2899
- * @param ikm The input keying material. It must be at least one byte in length.
2900
- * @param salt The salt value. Must be provided but can be zero-length.
2901
- * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes.
2902
- * @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`
2903
- * generates 64-byte hashes, making the maximum HKDF output 16320 bytes).
2904
- */
2905
- function hkdf(digest: string, irm: BinaryLike | KeyObject, salt: BinaryLike, info: BinaryLike, keylen: number, callback: (err: Error | null, derivedKey: ArrayBuffer) => void): void;
2906
- /**
2907
- * Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The
2908
- * given `ikm`, `salt` and `info` are used with the `digest` to derive a key of`keylen` bytes.
2909
- *
2910
- * The successfully generated `derivedKey` will be returned as an [&lt;ArrayBuffer&gt;](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer).
2911
- *
2912
- * An error will be thrown if any of the input arguments specify invalid values or
2913
- * types, or if the derived key cannot be generated.
2914
- *
2915
- * ```js
2916
- * import { Buffer } from 'buffer';
2917
- * const {
2918
- * hkdfSync
2919
- * } = await import('crypto');
2920
- *
2921
- * const derivedKey = hkdfSync('sha512', 'key', 'salt', 'info', 64);
2922
- * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653'
2923
- * ```
2924
- * @since v15.0.0
2925
- * @param digest The digest algorithm to use.
2926
- * @param ikm The input keying material. It must be at least one byte in length.
2927
- * @param salt The salt value. Must be provided but can be zero-length.
2928
- * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes.
2929
- * @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`
2930
- * generates 64-byte hashes, making the maximum HKDF output 16320 bytes).
2931
- */
2932
- function hkdfSync(digest: string, ikm: BinaryLike | KeyObject, salt: BinaryLike, info: BinaryLike, keylen: number): ArrayBuffer;
2933
- interface SecureHeapUsage {
2934
- /**
2935
- * The total allocated secure heap size as specified using the `--secure-heap=n` command-line flag.
2936
- */
2937
- total: number;
2938
- /**
2939
- * The minimum allocation from the secure heap as specified using the `--secure-heap-min` command-line flag.
2940
- */
2941
- min: number;
2942
- /**
2943
- * The total number of bytes currently allocated from the secure heap.
2944
- */
2945
- used: number;
2946
- /**
2947
- * The calculated ratio of `used` to `total` allocated bytes.
2948
- */
2949
- utilization: number;
2950
- }
2951
- /**
2952
- * @since v15.6.0
2953
- */
2954
- function secureHeapUsed(): SecureHeapUsage;
2955
- interface RandomUUIDOptions {
2956
- /**
2957
- * By default, to improve performance,
2958
- * Node.js will pre-emptively generate and persistently cache enough
2959
- * random data to generate up to 128 random UUIDs. To generate a UUID
2960
- * without using the cache, set `disableEntropyCache` to `true`.
2961
- *
2962
- * @default `false`
2963
- */
2964
- disableEntropyCache?: boolean | undefined;
2965
- }
2966
- /**
2967
- * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
2968
- * cryptographic pseudorandom number generator.
2969
- * @since v15.6.0
2970
- */
2971
- function randomUUID(options?: RandomUUIDOptions): string;
2972
- interface X509CheckOptions {
2973
- /**
2974
- * @default 'always'
2975
- */
2976
- subject: 'always' | 'never';
2977
- /**
2978
- * @default true
2979
- */
2980
- wildcards: boolean;
2981
- /**
2982
- * @default true
2983
- */
2984
- partialWildcards: boolean;
2985
- /**
2986
- * @default false
2987
- */
2988
- multiLabelWildcards: boolean;
2989
- /**
2990
- * @default false
2991
- */
2992
- singleLabelSubdomains: boolean;
2993
- }
2994
- /**
2995
- * Encapsulates an X509 certificate and provides read-only access to
2996
- * its information.
2997
- *
2998
- * ```js
2999
- * const { X509Certificate } = await import('crypto');
3000
- *
3001
- * const x509 = new X509Certificate('{... pem encoded cert ...}');
3002
- *
3003
- * console.log(x509.subject);
3004
- * ```
3005
- * @since v15.6.0
3006
- */
3007
- class X509Certificate {
3008
- /**
3009
- * Will be \`true\` if this is a Certificate Authority (ca) certificate.
3010
- * @since v15.6.0
3011
- */
3012
- readonly ca: boolean;
3013
- /**
3014
- * The SHA-1 fingerprint of this certificate.
3015
- * @since v15.6.0
3016
- */
3017
- readonly fingerprint: string;
3018
- /**
3019
- * The SHA-256 fingerprint of this certificate.
3020
- * @since v15.6.0
3021
- */
3022
- readonly fingerprint256: string;
3023
- /**
3024
- * The complete subject of this certificate.
3025
- * @since v15.6.0
3026
- */
3027
- readonly subject: string;
3028
- /**
3029
- * The subject alternative name specified for this certificate.
3030
- * @since v15.6.0
3031
- */
3032
- readonly subjectAltName: string;
3033
- /**
3034
- * The information access content of this certificate.
3035
- * @since v15.6.0
3036
- */
3037
- readonly infoAccess: string;
3038
- /**
3039
- * An array detailing the key usages for this certificate.
3040
- * @since v15.6.0
3041
- */
3042
- readonly keyUsage: string[];
3043
- /**
3044
- * The issuer identification included in this certificate.
3045
- * @since v15.6.0
3046
- */
3047
- readonly issuer: string;
3048
- /**
3049
- * The issuer certificate or `undefined` if the issuer certificate is not
3050
- * available.
3051
- * @since v15.9.0
3052
- */
3053
- readonly issuerCertificate?: X509Certificate | undefined;
3054
- /**
3055
- * The public key `KeyObject` for this certificate.
3056
- * @since v15.6.0
3057
- */
3058
- readonly publicKey: KeyObject;
3059
- /**
3060
- * A `Buffer` containing the DER encoding of this certificate.
3061
- * @since v15.6.0
3062
- */
3063
- readonly raw: Buffer;
3064
- /**
3065
- * The serial number of this certificate.
3066
- * @since v15.6.0
3067
- */
3068
- readonly serialNumber: string;
3069
- /**
3070
- * The date/time from which this certificate is considered valid.
3071
- * @since v15.6.0
3072
- */
3073
- readonly validFrom: string;
3074
- /**
3075
- * The date/time until which this certificate is considered valid.
3076
- * @since v15.6.0
3077
- */
3078
- readonly validTo: string;
3079
- constructor(buffer: BinaryLike);
3080
- /**
3081
- * Checks whether the certificate matches the given email address.
3082
- * @since v15.6.0
3083
- * @return Returns `email` if the certificate matches, `undefined` if it does not.
3084
- */
3085
- checkEmail(email: string, options?: X509CheckOptions): string | undefined;
3086
- /**
3087
- * Checks whether the certificate matches the given host name.
3088
- * @since v15.6.0
3089
- * @return Returns `name` if the certificate matches, `undefined` if it does not.
3090
- */
3091
- checkHost(name: string, options?: X509CheckOptions): string | undefined;
3092
- /**
3093
- * Checks whether the certificate matches the given IP address (IPv4 or IPv6).
3094
- * @since v15.6.0
3095
- * @return Returns `ip` if the certificate matches, `undefined` if it does not.
3096
- */
3097
- checkIP(ip: string, options?: X509CheckOptions): string | undefined;
3098
- /**
3099
- * Checks whether this certificate was issued by the given `otherCert`.
3100
- * @since v15.6.0
3101
- */
3102
- checkIssued(otherCert: X509Certificate): boolean;
3103
- /**
3104
- * Checks whether the public key for this certificate is consistent with
3105
- * the given private key.
3106
- * @since v15.6.0
3107
- * @param privateKey A private key.
3108
- */
3109
- checkPrivateKey(privateKey: KeyObject): boolean;
3110
- /**
3111
- * There is no standard JSON encoding for X509 certificates. The`toJSON()` method returns a string containing the PEM encoded
3112
- * certificate.
3113
- * @since v15.6.0
3114
- */
3115
- toJSON(): string;
3116
- /**
3117
- * Returns information about this certificate using the legacy `certificate object` encoding.
3118
- * @since v15.6.0
3119
- */
3120
- toLegacyObject(): PeerCertificate;
3121
- /**
3122
- * Returns the PEM-encoded certificate.
3123
- * @since v15.6.0
3124
- */
3125
- toString(): string;
3126
- /**
3127
- * Verifies that this certificate was signed by the given public key.
3128
- * Does not perform any other validation checks on the certificate.
3129
- * @since v15.6.0
3130
- * @param publicKey A public key.
3131
- */
3132
- verify(publicKey: KeyObject): boolean;
3133
- }
3134
- type LargeNumberLike = NodeJS.ArrayBufferView | SharedArrayBuffer | ArrayBuffer | bigint;
3135
- interface GeneratePrimeOptions {
3136
- add?: LargeNumberLike | undefined;
3137
- rem?: LargeNumberLike | undefined;
3138
- /**
3139
- * @default false
3140
- */
3141
- safe?: boolean | undefined;
3142
- bigint?: boolean | undefined;
3143
- }
3144
- interface GeneratePrimeOptionsBigInt extends GeneratePrimeOptions {
3145
- bigint: true;
3146
- }
3147
- interface GeneratePrimeOptionsArrayBuffer extends GeneratePrimeOptions {
3148
- bigint?: false | undefined;
3149
- }
3150
- /**
3151
- * Generates a pseudorandom prime of `size` bits.
3152
- *
3153
- * If `options.safe` is `true`, the prime will be a safe prime -- that is,`(prime - 1) / 2` will also be a prime.
3154
- *
3155
- * The `options.add` and `options.rem` parameters can be used to enforce additional
3156
- * requirements, e.g., for Diffie-Hellman:
3157
- *
3158
- * * If `options.add` and `options.rem` are both set, the prime will satisfy the
3159
- * condition that `prime % add = rem`.
3160
- * * If only `options.add` is set and `options.safe` is not `true`, the prime will
3161
- * satisfy the condition that `prime % add = 1`.
3162
- * * If only `options.add` is set and `options.safe` is set to `true`, the prime
3163
- * will instead satisfy the condition that `prime % add = 3`. This is necessary
3164
- * because `prime % add = 1` for `options.add > 2` would contradict the condition
3165
- * enforced by `options.safe`.
3166
- * * `options.rem` is ignored if `options.add` is not given.
3167
- *
3168
- * Both `options.add` and `options.rem` must be encoded as big-endian sequences
3169
- * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`.
3170
- *
3171
- * By default, the prime is encoded as a big-endian sequence of octets
3172
- * in an [&lt;ArrayBuffer&gt;](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
3173
- * [&lt;bigint&gt;](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt)is provided.
3174
- * @since v15.8.0
3175
- * @param size The size (in bits) of the prime to generate.
3176
- */
3177
- function generatePrime(size: number, callback: (err: Error | null, prime: ArrayBuffer) => void): void;
3178
- function generatePrime(size: number, options: GeneratePrimeOptionsBigInt, callback: (err: Error | null, prime: bigint) => void): void;
3179
- function generatePrime(size: number, options: GeneratePrimeOptionsArrayBuffer, callback: (err: Error | null, prime: ArrayBuffer) => void): void;
3180
- function generatePrime(size: number, options: GeneratePrimeOptions, callback: (err: Error | null, prime: ArrayBuffer | bigint) => void): void;
3181
- /**
3182
- * Generates a pseudorandom prime of `size` bits.
3183
- *
3184
- * If `options.safe` is `true`, the prime will be a safe prime -- that is,`(prime - 1) / 2` will also be a prime.
3185
- *
3186
- * The `options.add` and `options.rem` parameters can be used to enforce additional
3187
- * requirements, e.g., for Diffie-Hellman:
3188
- *
3189
- * * If `options.add` and `options.rem` are both set, the prime will satisfy the
3190
- * condition that `prime % add = rem`.
3191
- * * If only `options.add` is set and `options.safe` is not `true`, the prime will
3192
- * satisfy the condition that `prime % add = 1`.
3193
- * * If only `options.add` is set and `options.safe` is set to `true`, the prime
3194
- * will instead satisfy the condition that `prime % add = 3`. This is necessary
3195
- * because `prime % add = 1` for `options.add > 2` would contradict the condition
3196
- * enforced by `options.safe`.
3197
- * * `options.rem` is ignored if `options.add` is not given.
3198
- *
3199
- * Both `options.add` and `options.rem` must be encoded as big-endian sequences
3200
- * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`.
3201
- *
3202
- * By default, the prime is encoded as a big-endian sequence of octets
3203
- * in an [&lt;ArrayBuffer&gt;](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
3204
- * [&lt;bigint&gt;](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt)is provided.
3205
- * @since v15.8.0
3206
- * @param size The size (in bits) of the prime to generate.
3207
- */
3208
- function generatePrimeSync(size: number): ArrayBuffer;
3209
- function generatePrimeSync(size: number, options: GeneratePrimeOptionsBigInt): bigint;
3210
- function generatePrimeSync(size: number, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer;
3211
- function generatePrimeSync(size: number, options: GeneratePrimeOptions): ArrayBuffer | bigint;
3212
- interface CheckPrimeOptions {
3213
- /**
3214
- * The number of Miller-Rabin probabilistic primality iterations to perform.
3215
- * 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.
3216
- * Care must be used when selecting a number of checks.
3217
- * Refer to the OpenSSL documentation for the BN_is_prime_ex function nchecks options for more details.
3218
- *
3219
- * @default 0
3220
- */
3221
- checks?: number | undefined;
3222
- }
3223
- /**
3224
- * Checks the primality of the `candidate`.
3225
- * @since v15.8.0
3226
- * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length.
3227
- */
3228
- function checkPrime(value: LargeNumberLike, callback: (err: Error | null, result: boolean) => void): void;
3229
- function checkPrime(value: LargeNumberLike, options: CheckPrimeOptions, callback: (err: Error | null, result: boolean) => void): void;
3230
- /**
3231
- * Checks the primality of the `candidate`.
3232
- * @since v15.8.0
3233
- * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length.
3234
- * @return `true` if the candidate is a prime with an error probability less than `0.25 ** options.checks`.
3235
- */
3236
- function checkPrimeSync(candidate: LargeNumberLike, options?: CheckPrimeOptions): boolean;
3237
- namespace webcrypto {
3238
- class CryptoKey {} // placeholder
3239
- }
3240
- }
3241
- declare module 'node:crypto' {
3242
- export * from 'crypto';
3243
- }