agent-skill-manager 1.22.0 → 2.0.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 (2089) hide show
  1. package/README.md +22 -41
  2. package/dist/agent-skill-manager.js +385 -405
  3. package/dist/{chunk-thr0x97h.js → chunk-2kpv20e1.js} +1 -1
  4. package/dist/{chunk-2bvch8gs.js → chunk-b5czdh0p.js} +1 -1
  5. package/package.json +1 -5
  6. package/node_modules/@balena/dockerignore/LICENSE.md +0 -206
  7. package/node_modules/@balena/dockerignore/README.md +0 -261
  8. package/node_modules/@balena/dockerignore/ignore.js +0 -363
  9. package/node_modules/@balena/dockerignore/index.d.ts +0 -45
  10. package/node_modules/@balena/dockerignore/package.json +0 -49
  11. package/node_modules/@grpc/grpc-js/LICENSE +0 -201
  12. package/node_modules/@grpc/grpc-js/README.md +0 -84
  13. package/node_modules/@grpc/grpc-js/build/src/admin.d.ts +0 -11
  14. package/node_modules/@grpc/grpc-js/build/src/admin.js +0 -30
  15. package/node_modules/@grpc/grpc-js/build/src/admin.js.map +0 -1
  16. package/node_modules/@grpc/grpc-js/build/src/auth-context.d.ts +0 -5
  17. package/node_modules/@grpc/grpc-js/build/src/auth-context.js +0 -19
  18. package/node_modules/@grpc/grpc-js/build/src/auth-context.js.map +0 -1
  19. package/node_modules/@grpc/grpc-js/build/src/backoff-timeout.d.ts +0 -94
  20. package/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js +0 -191
  21. package/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js.map +0 -1
  22. package/node_modules/@grpc/grpc-js/build/src/call-credentials.d.ts +0 -57
  23. package/node_modules/@grpc/grpc-js/build/src/call-credentials.js +0 -153
  24. package/node_modules/@grpc/grpc-js/build/src/call-credentials.js.map +0 -1
  25. package/node_modules/@grpc/grpc-js/build/src/call-interface.d.ts +0 -101
  26. package/node_modules/@grpc/grpc-js/build/src/call-interface.js +0 -100
  27. package/node_modules/@grpc/grpc-js/build/src/call-interface.js.map +0 -1
  28. package/node_modules/@grpc/grpc-js/build/src/call-number.d.ts +0 -1
  29. package/node_modules/@grpc/grpc-js/build/src/call-number.js +0 -24
  30. package/node_modules/@grpc/grpc-js/build/src/call-number.js.map +0 -1
  31. package/node_modules/@grpc/grpc-js/build/src/call.d.ts +0 -86
  32. package/node_modules/@grpc/grpc-js/build/src/call.js +0 -152
  33. package/node_modules/@grpc/grpc-js/build/src/call.js.map +0 -1
  34. package/node_modules/@grpc/grpc-js/build/src/certificate-provider.d.ts +0 -43
  35. package/node_modules/@grpc/grpc-js/build/src/certificate-provider.js +0 -141
  36. package/node_modules/@grpc/grpc-js/build/src/certificate-provider.js.map +0 -1
  37. package/node_modules/@grpc/grpc-js/build/src/channel-credentials.d.ts +0 -119
  38. package/node_modules/@grpc/grpc-js/build/src/channel-credentials.js +0 -430
  39. package/node_modules/@grpc/grpc-js/build/src/channel-credentials.js.map +0 -1
  40. package/node_modules/@grpc/grpc-js/build/src/channel-options.d.ts +0 -81
  41. package/node_modules/@grpc/grpc-js/build/src/channel-options.js +0 -73
  42. package/node_modules/@grpc/grpc-js/build/src/channel-options.js.map +0 -1
  43. package/node_modules/@grpc/grpc-js/build/src/channel.d.ts +0 -76
  44. package/node_modules/@grpc/grpc-js/build/src/channel.js +0 -68
  45. package/node_modules/@grpc/grpc-js/build/src/channel.js.map +0 -1
  46. package/node_modules/@grpc/grpc-js/build/src/channelz.d.ts +0 -158
  47. package/node_modules/@grpc/grpc-js/build/src/channelz.js +0 -598
  48. package/node_modules/@grpc/grpc-js/build/src/channelz.js.map +0 -1
  49. package/node_modules/@grpc/grpc-js/build/src/client-interceptors.d.ts +0 -123
  50. package/node_modules/@grpc/grpc-js/build/src/client-interceptors.js +0 -434
  51. package/node_modules/@grpc/grpc-js/build/src/client-interceptors.js.map +0 -1
  52. package/node_modules/@grpc/grpc-js/build/src/client.d.ts +0 -74
  53. package/node_modules/@grpc/grpc-js/build/src/client.js +0 -433
  54. package/node_modules/@grpc/grpc-js/build/src/client.js.map +0 -1
  55. package/node_modules/@grpc/grpc-js/build/src/compression-algorithms.d.ts +0 -5
  56. package/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js +0 -26
  57. package/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js.map +0 -1
  58. package/node_modules/@grpc/grpc-js/build/src/compression-filter.d.ts +0 -28
  59. package/node_modules/@grpc/grpc-js/build/src/compression-filter.js +0 -295
  60. package/node_modules/@grpc/grpc-js/build/src/compression-filter.js.map +0 -1
  61. package/node_modules/@grpc/grpc-js/build/src/connectivity-state.d.ts +0 -7
  62. package/node_modules/@grpc/grpc-js/build/src/connectivity-state.js +0 -28
  63. package/node_modules/@grpc/grpc-js/build/src/connectivity-state.js.map +0 -1
  64. package/node_modules/@grpc/grpc-js/build/src/constants.d.ts +0 -38
  65. package/node_modules/@grpc/grpc-js/build/src/constants.js +0 -64
  66. package/node_modules/@grpc/grpc-js/build/src/constants.js.map +0 -1
  67. package/node_modules/@grpc/grpc-js/build/src/control-plane-status.d.ts +0 -5
  68. package/node_modules/@grpc/grpc-js/build/src/control-plane-status.js +0 -42
  69. package/node_modules/@grpc/grpc-js/build/src/control-plane-status.js.map +0 -1
  70. package/node_modules/@grpc/grpc-js/build/src/deadline.d.ts +0 -22
  71. package/node_modules/@grpc/grpc-js/build/src/deadline.js +0 -108
  72. package/node_modules/@grpc/grpc-js/build/src/deadline.js.map +0 -1
  73. package/node_modules/@grpc/grpc-js/build/src/duration.d.ts +0 -15
  74. package/node_modules/@grpc/grpc-js/build/src/duration.js +0 -74
  75. package/node_modules/@grpc/grpc-js/build/src/duration.js.map +0 -1
  76. package/node_modules/@grpc/grpc-js/build/src/environment.d.ts +0 -1
  77. package/node_modules/@grpc/grpc-js/build/src/environment.js +0 -22
  78. package/node_modules/@grpc/grpc-js/build/src/environment.js.map +0 -1
  79. package/node_modules/@grpc/grpc-js/build/src/error.d.ts +0 -2
  80. package/node_modules/@grpc/grpc-js/build/src/error.js +0 -40
  81. package/node_modules/@grpc/grpc-js/build/src/error.js.map +0 -1
  82. package/node_modules/@grpc/grpc-js/build/src/events.d.ts +0 -9
  83. package/node_modules/@grpc/grpc-js/build/src/events.js +0 -19
  84. package/node_modules/@grpc/grpc-js/build/src/events.js.map +0 -1
  85. package/node_modules/@grpc/grpc-js/build/src/experimental.d.ts +0 -20
  86. package/node_modules/@grpc/grpc-js/build/src/experimental.js +0 -58
  87. package/node_modules/@grpc/grpc-js/build/src/experimental.js.map +0 -1
  88. package/node_modules/@grpc/grpc-js/build/src/filter-stack.d.ts +0 -21
  89. package/node_modules/@grpc/grpc-js/build/src/filter-stack.js +0 -82
  90. package/node_modules/@grpc/grpc-js/build/src/filter-stack.js.map +0 -1
  91. package/node_modules/@grpc/grpc-js/build/src/filter.d.ts +0 -25
  92. package/node_modules/@grpc/grpc-js/build/src/filter.js +0 -38
  93. package/node_modules/@grpc/grpc-js/build/src/filter.js.map +0 -1
  94. package/node_modules/@grpc/grpc-js/build/src/generated/channelz.d.ts +0 -118
  95. package/node_modules/@grpc/grpc-js/build/src/generated/channelz.js +0 -3
  96. package/node_modules/@grpc/grpc-js/build/src/generated/channelz.js.map +0 -1
  97. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.d.ts +0 -9
  98. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.js +0 -4
  99. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.js.map +0 -1
  100. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.d.ts +0 -6
  101. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.js +0 -4
  102. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.js.map +0 -1
  103. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.d.ts +0 -6
  104. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.js +0 -4
  105. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.js.map +0 -1
  106. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DescriptorProto.d.ts +0 -51
  107. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DescriptorProto.js +0 -4
  108. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DescriptorProto.js.map +0 -1
  109. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.d.ts +0 -6
  110. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.js +0 -4
  111. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.js.map +0 -1
  112. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.d.ts +0 -9
  113. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.js +0 -4
  114. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.js.map +0 -1
  115. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Edition.d.ts +0 -16
  116. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Edition.js +0 -19
  117. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Edition.js.map +0 -1
  118. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumDescriptorProto.d.ts +0 -27
  119. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumDescriptorProto.js +0 -4
  120. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumDescriptorProto.js.map +0 -1
  121. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumOptions.d.ts +0 -22
  122. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumOptions.js +0 -4
  123. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumOptions.js.map +0 -1
  124. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueDescriptorProto.d.ts +0 -11
  125. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueDescriptorProto.js +0 -4
  126. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueDescriptorProto.js.map +0 -1
  127. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueOptions.d.ts +0 -17
  128. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueOptions.js +0 -4
  129. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueOptions.js.map +0 -1
  130. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ExtensionRangeOptions.d.ts +0 -34
  131. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ExtensionRangeOptions.js +0 -10
  132. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ExtensionRangeOptions.js.map +0 -1
  133. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSet.d.ts +0 -83
  134. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSet.js +0 -56
  135. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSet.js.map +0 -1
  136. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSetDefaults.d.ts +0 -22
  137. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSetDefaults.js +0 -4
  138. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSetDefaults.js.map +0 -1
  139. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldDescriptorProto.d.ts +0 -56
  140. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldDescriptorProto.js +0 -32
  141. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldDescriptorProto.js.map +0 -1
  142. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldOptions.d.ts +0 -99
  143. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldOptions.js +0 -36
  144. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldOptions.js.map +0 -1
  145. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorProto.d.ts +0 -39
  146. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorProto.js +0 -4
  147. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorProto.js.map +0 -1
  148. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorSet.d.ts +0 -7
  149. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorSet.js +0 -4
  150. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorSet.js.map +0 -1
  151. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileOptions.d.ts +0 -61
  152. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileOptions.js +0 -11
  153. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileOptions.js.map +0 -1
  154. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.d.ts +0 -6
  155. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.js +0 -4
  156. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.js.map +0 -1
  157. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/GeneratedCodeInfo.d.ts +0 -27
  158. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/GeneratedCodeInfo.js +0 -11
  159. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/GeneratedCodeInfo.js.map +0 -1
  160. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.d.ts +0 -6
  161. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.js +0 -4
  162. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.js.map +0 -1
  163. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.d.ts +0 -7
  164. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.js +0 -4
  165. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.js.map +0 -1
  166. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MessageOptions.d.ts +0 -28
  167. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MessageOptions.js +0 -4
  168. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MessageOptions.js.map +0 -1
  169. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodDescriptorProto.d.ts +0 -17
  170. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodDescriptorProto.js +0 -4
  171. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodDescriptorProto.js.map +0 -1
  172. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodOptions.d.ts +0 -21
  173. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodOptions.js +0 -11
  174. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodOptions.js.map +0 -1
  175. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofDescriptorProto.d.ts +0 -9
  176. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofDescriptorProto.js +0 -4
  177. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofDescriptorProto.js.map +0 -1
  178. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofOptions.d.ts +0 -12
  179. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofOptions.js +0 -4
  180. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofOptions.js.map +0 -1
  181. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceDescriptorProto.d.ts +0 -12
  182. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceDescriptorProto.js +0 -4
  183. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceDescriptorProto.js.map +0 -1
  184. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceOptions.d.ts +0 -12
  185. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceOptions.js +0 -4
  186. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceOptions.js.map +0 -1
  187. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SourceCodeInfo.d.ts +0 -20
  188. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SourceCodeInfo.js +0 -4
  189. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SourceCodeInfo.js.map +0 -1
  190. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.d.ts +0 -6
  191. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.js +0 -4
  192. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.js.map +0 -1
  193. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SymbolVisibility.d.ts +0 -7
  194. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SymbolVisibility.js +0 -10
  195. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SymbolVisibility.js.map +0 -1
  196. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.d.ts +0 -9
  197. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.js +0 -4
  198. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.js.map +0 -1
  199. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.d.ts +0 -6
  200. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.js +0 -4
  201. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.js.map +0 -1
  202. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.d.ts +0 -7
  203. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.js +0 -4
  204. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.js.map +0 -1
  205. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UninterpretedOption.d.ts +0 -27
  206. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UninterpretedOption.js +0 -4
  207. package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UninterpretedOption.js.map +0 -1
  208. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.d.ts +0 -79
  209. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.js +0 -4
  210. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.js.map +0 -1
  211. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.d.ts +0 -64
  212. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.js +0 -4
  213. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.js.map +0 -1
  214. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.d.ts +0 -24
  215. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.js +0 -14
  216. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.js.map +0 -1
  217. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.d.ts +0 -72
  218. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.js +0 -4
  219. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.js.map +0 -1
  220. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.d.ts +0 -27
  221. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.js +0 -4
  222. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.js.map +0 -1
  223. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.d.ts +0 -41
  224. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.js +0 -4
  225. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.js.map +0 -1
  226. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.d.ts +0 -74
  227. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.js +0 -15
  228. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.js.map +0 -1
  229. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.d.ts +0 -159
  230. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.js +0 -4
  231. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.js.map +0 -1
  232. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.d.ts +0 -13
  233. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.js +0 -4
  234. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.js.map +0 -1
  235. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.d.ts +0 -15
  236. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.js +0 -4
  237. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.js.map +0 -1
  238. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.d.ts +0 -13
  239. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.js +0 -4
  240. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.js.map +0 -1
  241. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.d.ts +0 -15
  242. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.js +0 -4
  243. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.js.map +0 -1
  244. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.d.ts +0 -35
  245. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.js +0 -4
  246. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.js.map +0 -1
  247. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.d.ts +0 -29
  248. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.js +0 -4
  249. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.js.map +0 -1
  250. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.d.ts +0 -33
  251. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.js +0 -4
  252. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.js.map +0 -1
  253. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.d.ts +0 -29
  254. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.js +0 -4
  255. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.js.map +0 -1
  256. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.d.ts +0 -25
  257. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.js +0 -4
  258. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.js.map +0 -1
  259. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.d.ts +0 -15
  260. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.js +0 -4
  261. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.js.map +0 -1
  262. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.d.ts +0 -13
  263. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.js +0 -4
  264. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.js.map +0 -1
  265. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.d.ts +0 -15
  266. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.js +0 -4
  267. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.js.map +0 -1
  268. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.d.ts +0 -33
  269. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.js +0 -4
  270. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.js.map +0 -1
  271. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.d.ts +0 -29
  272. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.js +0 -4
  273. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.js.map +0 -1
  274. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.d.ts +0 -79
  275. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.js +0 -4
  276. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.js.map +0 -1
  277. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.d.ts +0 -41
  278. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.js +0 -4
  279. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.js.map +0 -1
  280. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.d.ts +0 -53
  281. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.js +0 -4
  282. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.js.map +0 -1
  283. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.d.ts +0 -27
  284. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.js +0 -4
  285. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.js.map +0 -1
  286. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.d.ts +0 -66
  287. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.js +0 -4
  288. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.js.map +0 -1
  289. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.d.ts +0 -146
  290. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.js +0 -4
  291. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.js.map +0 -1
  292. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.d.ts +0 -43
  293. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.js +0 -4
  294. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.js.map +0 -1
  295. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.d.ts +0 -29
  296. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.js +0 -4
  297. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.js.map +0 -1
  298. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.d.ts +0 -70
  299. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.js +0 -4
  300. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.js.map +0 -1
  301. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.d.ts +0 -15
  302. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.js +0 -4
  303. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.js.map +0 -1
  304. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.d.ts +0 -27
  305. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.js +0 -4
  306. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.js.map +0 -1
  307. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.d.ts +0 -66
  308. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.js +0 -4
  309. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.js.map +0 -1
  310. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.d.ts +0 -27
  311. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.js +0 -4
  312. package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.js.map +0 -1
  313. package/node_modules/@grpc/grpc-js/build/src/generated/orca.d.ts +0 -145
  314. package/node_modules/@grpc/grpc-js/build/src/generated/orca.js +0 -3
  315. package/node_modules/@grpc/grpc-js/build/src/generated/orca.js.map +0 -1
  316. package/node_modules/@grpc/grpc-js/build/src/generated/validate/AnyRules.d.ts +0 -40
  317. package/node_modules/@grpc/grpc-js/build/src/generated/validate/AnyRules.js +0 -4
  318. package/node_modules/@grpc/grpc-js/build/src/generated/validate/AnyRules.js.map +0 -1
  319. package/node_modules/@grpc/grpc-js/build/src/generated/validate/BoolRules.d.ts +0 -18
  320. package/node_modules/@grpc/grpc-js/build/src/generated/validate/BoolRules.js +0 -4
  321. package/node_modules/@grpc/grpc-js/build/src/generated/validate/BoolRules.js.map +0 -1
  322. package/node_modules/@grpc/grpc-js/build/src/generated/validate/BytesRules.d.ts +0 -149
  323. package/node_modules/@grpc/grpc-js/build/src/generated/validate/BytesRules.js +0 -4
  324. package/node_modules/@grpc/grpc-js/build/src/generated/validate/BytesRules.js.map +0 -1
  325. package/node_modules/@grpc/grpc-js/build/src/generated/validate/DoubleRules.d.ts +0 -82
  326. package/node_modules/@grpc/grpc-js/build/src/generated/validate/DoubleRules.js +0 -4
  327. package/node_modules/@grpc/grpc-js/build/src/generated/validate/DoubleRules.js.map +0 -1
  328. package/node_modules/@grpc/grpc-js/build/src/generated/validate/DurationRules.d.ts +0 -89
  329. package/node_modules/@grpc/grpc-js/build/src/generated/validate/DurationRules.js +0 -4
  330. package/node_modules/@grpc/grpc-js/build/src/generated/validate/DurationRules.js.map +0 -1
  331. package/node_modules/@grpc/grpc-js/build/src/generated/validate/EnumRules.d.ts +0 -48
  332. package/node_modules/@grpc/grpc-js/build/src/generated/validate/EnumRules.js +0 -4
  333. package/node_modules/@grpc/grpc-js/build/src/generated/validate/EnumRules.js.map +0 -1
  334. package/node_modules/@grpc/grpc-js/build/src/generated/validate/FieldRules.d.ts +0 -98
  335. package/node_modules/@grpc/grpc-js/build/src/generated/validate/FieldRules.js +0 -4
  336. package/node_modules/@grpc/grpc-js/build/src/generated/validate/FieldRules.js.map +0 -1
  337. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed32Rules.d.ts +0 -82
  338. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed32Rules.js +0 -4
  339. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed32Rules.js.map +0 -1
  340. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed64Rules.d.ts +0 -83
  341. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed64Rules.js +0 -4
  342. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed64Rules.js.map +0 -1
  343. package/node_modules/@grpc/grpc-js/build/src/generated/validate/FloatRules.d.ts +0 -82
  344. package/node_modules/@grpc/grpc-js/build/src/generated/validate/FloatRules.js +0 -4
  345. package/node_modules/@grpc/grpc-js/build/src/generated/validate/FloatRules.js.map +0 -1
  346. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int32Rules.d.ts +0 -82
  347. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int32Rules.js +0 -4
  348. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int32Rules.js.map +0 -1
  349. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int64Rules.d.ts +0 -83
  350. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int64Rules.js +0 -4
  351. package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int64Rules.js.map +0 -1
  352. package/node_modules/@grpc/grpc-js/build/src/generated/validate/KnownRegex.d.ts +0 -30
  353. package/node_modules/@grpc/grpc-js/build/src/generated/validate/KnownRegex.js +0 -19
  354. package/node_modules/@grpc/grpc-js/build/src/generated/validate/KnownRegex.js.map +0 -1
  355. package/node_modules/@grpc/grpc-js/build/src/generated/validate/MapRules.d.ts +0 -62
  356. package/node_modules/@grpc/grpc-js/build/src/generated/validate/MapRules.js +0 -4
  357. package/node_modules/@grpc/grpc-js/build/src/generated/validate/MapRules.js.map +0 -1
  358. package/node_modules/@grpc/grpc-js/build/src/generated/validate/MessageRules.d.ts +0 -30
  359. package/node_modules/@grpc/grpc-js/build/src/generated/validate/MessageRules.js +0 -4
  360. package/node_modules/@grpc/grpc-js/build/src/generated/validate/MessageRules.js.map +0 -1
  361. package/node_modules/@grpc/grpc-js/build/src/generated/validate/RepeatedRules.d.ts +0 -56
  362. package/node_modules/@grpc/grpc-js/build/src/generated/validate/RepeatedRules.js +0 -4
  363. package/node_modules/@grpc/grpc-js/build/src/generated/validate/RepeatedRules.js.map +0 -1
  364. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed32Rules.d.ts +0 -82
  365. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed32Rules.js +0 -4
  366. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed32Rules.js.map +0 -1
  367. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed64Rules.d.ts +0 -83
  368. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed64Rules.js +0 -4
  369. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed64Rules.js.map +0 -1
  370. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt32Rules.d.ts +0 -82
  371. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt32Rules.js +0 -4
  372. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt32Rules.js.map +0 -1
  373. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt64Rules.d.ts +0 -83
  374. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt64Rules.js +0 -4
  375. package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt64Rules.js.map +0 -1
  376. package/node_modules/@grpc/grpc-js/build/src/generated/validate/StringRules.d.ts +0 -284
  377. package/node_modules/@grpc/grpc-js/build/src/generated/validate/StringRules.js +0 -4
  378. package/node_modules/@grpc/grpc-js/build/src/generated/validate/StringRules.js.map +0 -1
  379. package/node_modules/@grpc/grpc-js/build/src/generated/validate/TimestampRules.d.ts +0 -102
  380. package/node_modules/@grpc/grpc-js/build/src/generated/validate/TimestampRules.js +0 -4
  381. package/node_modules/@grpc/grpc-js/build/src/generated/validate/TimestampRules.js.map +0 -1
  382. package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt32Rules.d.ts +0 -82
  383. package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt32Rules.js +0 -4
  384. package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt32Rules.js.map +0 -1
  385. package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt64Rules.d.ts +0 -83
  386. package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt64Rules.js +0 -4
  387. package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt64Rules.js.map +0 -1
  388. package/node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/OrcaLoadReport.d.ts +0 -121
  389. package/node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/OrcaLoadReport.js +0 -4
  390. package/node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/OrcaLoadReport.js.map +0 -1
  391. package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OpenRcaService.d.ts +0 -36
  392. package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OpenRcaService.js +0 -4
  393. package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OpenRcaService.js.map +0 -1
  394. package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OrcaLoadReportRequest.d.ts +0 -25
  395. package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OrcaLoadReportRequest.js +0 -4
  396. package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OrcaLoadReportRequest.js.map +0 -1
  397. package/node_modules/@grpc/grpc-js/build/src/http_proxy.d.ts +0 -16
  398. package/node_modules/@grpc/grpc-js/build/src/http_proxy.js +0 -274
  399. package/node_modules/@grpc/grpc-js/build/src/http_proxy.js.map +0 -1
  400. package/node_modules/@grpc/grpc-js/build/src/index.d.ts +0 -79
  401. package/node_modules/@grpc/grpc-js/build/src/index.js +0 -148
  402. package/node_modules/@grpc/grpc-js/build/src/index.js.map +0 -1
  403. package/node_modules/@grpc/grpc-js/build/src/internal-channel.d.ts +0 -124
  404. package/node_modules/@grpc/grpc-js/build/src/internal-channel.js +0 -605
  405. package/node_modules/@grpc/grpc-js/build/src/internal-channel.js.map +0 -1
  406. package/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.d.ts +0 -24
  407. package/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js +0 -151
  408. package/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js.map +0 -1
  409. package/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.d.ts +0 -71
  410. package/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js +0 -571
  411. package/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js.map +0 -1
  412. package/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.d.ts +0 -134
  413. package/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js +0 -514
  414. package/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js.map +0 -1
  415. package/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.d.ts +0 -24
  416. package/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js +0 -204
  417. package/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js.map +0 -1
  418. package/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.d.ts +0 -20
  419. package/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.js +0 -392
  420. package/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.js.map +0 -1
  421. package/node_modules/@grpc/grpc-js/build/src/load-balancer.d.ts +0 -101
  422. package/node_modules/@grpc/grpc-js/build/src/load-balancer.js +0 -116
  423. package/node_modules/@grpc/grpc-js/build/src/load-balancer.js.map +0 -1
  424. package/node_modules/@grpc/grpc-js/build/src/load-balancing-call.d.ts +0 -49
  425. package/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js +0 -302
  426. package/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js.map +0 -1
  427. package/node_modules/@grpc/grpc-js/build/src/logging.d.ts +0 -7
  428. package/node_modules/@grpc/grpc-js/build/src/logging.js +0 -122
  429. package/node_modules/@grpc/grpc-js/build/src/logging.js.map +0 -1
  430. package/node_modules/@grpc/grpc-js/build/src/make-client.d.ts +0 -71
  431. package/node_modules/@grpc/grpc-js/build/src/make-client.js +0 -143
  432. package/node_modules/@grpc/grpc-js/build/src/make-client.js.map +0 -1
  433. package/node_modules/@grpc/grpc-js/build/src/metadata.d.ts +0 -100
  434. package/node_modules/@grpc/grpc-js/build/src/metadata.js +0 -272
  435. package/node_modules/@grpc/grpc-js/build/src/metadata.js.map +0 -1
  436. package/node_modules/@grpc/grpc-js/build/src/object-stream.d.ts +0 -27
  437. package/node_modules/@grpc/grpc-js/build/src/object-stream.js +0 -19
  438. package/node_modules/@grpc/grpc-js/build/src/object-stream.js.map +0 -1
  439. package/node_modules/@grpc/grpc-js/build/src/orca.d.ts +0 -89
  440. package/node_modules/@grpc/grpc-js/build/src/orca.js +0 -323
  441. package/node_modules/@grpc/grpc-js/build/src/orca.js.map +0 -1
  442. package/node_modules/@grpc/grpc-js/build/src/picker.d.ts +0 -95
  443. package/node_modules/@grpc/grpc-js/build/src/picker.js +0 -86
  444. package/node_modules/@grpc/grpc-js/build/src/picker.js.map +0 -1
  445. package/node_modules/@grpc/grpc-js/build/src/priority-queue.d.ts +0 -50
  446. package/node_modules/@grpc/grpc-js/build/src/priority-queue.js +0 -120
  447. package/node_modules/@grpc/grpc-js/build/src/priority-queue.js.map +0 -1
  448. package/node_modules/@grpc/grpc-js/build/src/resolver-dns.d.ts +0 -13
  449. package/node_modules/@grpc/grpc-js/build/src/resolver-dns.js +0 -363
  450. package/node_modules/@grpc/grpc-js/build/src/resolver-dns.js.map +0 -1
  451. package/node_modules/@grpc/grpc-js/build/src/resolver-ip.d.ts +0 -1
  452. package/node_modules/@grpc/grpc-js/build/src/resolver-ip.js +0 -106
  453. package/node_modules/@grpc/grpc-js/build/src/resolver-ip.js.map +0 -1
  454. package/node_modules/@grpc/grpc-js/build/src/resolver-uds.d.ts +0 -1
  455. package/node_modules/@grpc/grpc-js/build/src/resolver-uds.js +0 -51
  456. package/node_modules/@grpc/grpc-js/build/src/resolver-uds.js.map +0 -1
  457. package/node_modules/@grpc/grpc-js/build/src/resolver.d.ts +0 -102
  458. package/node_modules/@grpc/grpc-js/build/src/resolver.js +0 -89
  459. package/node_modules/@grpc/grpc-js/build/src/resolver.js.map +0 -1
  460. package/node_modules/@grpc/grpc-js/build/src/resolving-call.d.ts +0 -54
  461. package/node_modules/@grpc/grpc-js/build/src/resolving-call.js +0 -319
  462. package/node_modules/@grpc/grpc-js/build/src/resolving-call.js.map +0 -1
  463. package/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.d.ts +0 -70
  464. package/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js +0 -304
  465. package/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js.map +0 -1
  466. package/node_modules/@grpc/grpc-js/build/src/retrying-call.d.ts +0 -100
  467. package/node_modules/@grpc/grpc-js/build/src/retrying-call.js +0 -724
  468. package/node_modules/@grpc/grpc-js/build/src/retrying-call.js.map +0 -1
  469. package/node_modules/@grpc/grpc-js/build/src/server-call.d.ts +0 -141
  470. package/node_modules/@grpc/grpc-js/build/src/server-call.js +0 -226
  471. package/node_modules/@grpc/grpc-js/build/src/server-call.js.map +0 -1
  472. package/node_modules/@grpc/grpc-js/build/src/server-credentials.d.ts +0 -48
  473. package/node_modules/@grpc/grpc-js/build/src/server-credentials.js +0 -314
  474. package/node_modules/@grpc/grpc-js/build/src/server-credentials.js.map +0 -1
  475. package/node_modules/@grpc/grpc-js/build/src/server-interceptors.d.ts +0 -216
  476. package/node_modules/@grpc/grpc-js/build/src/server-interceptors.js +0 -817
  477. package/node_modules/@grpc/grpc-js/build/src/server-interceptors.js.map +0 -1
  478. package/node_modules/@grpc/grpc-js/build/src/server.d.ts +0 -140
  479. package/node_modules/@grpc/grpc-js/build/src/server.js +0 -1608
  480. package/node_modules/@grpc/grpc-js/build/src/server.js.map +0 -1
  481. package/node_modules/@grpc/grpc-js/build/src/service-config.d.ts +0 -58
  482. package/node_modules/@grpc/grpc-js/build/src/service-config.js +0 -430
  483. package/node_modules/@grpc/grpc-js/build/src/service-config.js.map +0 -1
  484. package/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.d.ts +0 -25
  485. package/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.js +0 -245
  486. package/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.js.map +0 -1
  487. package/node_modules/@grpc/grpc-js/build/src/status-builder.d.ts +0 -28
  488. package/node_modules/@grpc/grpc-js/build/src/status-builder.js +0 -68
  489. package/node_modules/@grpc/grpc-js/build/src/status-builder.js.map +0 -1
  490. package/node_modules/@grpc/grpc-js/build/src/stream-decoder.d.ts +0 -12
  491. package/node_modules/@grpc/grpc-js/build/src/stream-decoder.js +0 -100
  492. package/node_modules/@grpc/grpc-js/build/src/stream-decoder.js.map +0 -1
  493. package/node_modules/@grpc/grpc-js/build/src/subchannel-address.d.ts +0 -42
  494. package/node_modules/@grpc/grpc-js/build/src/subchannel-address.js +0 -202
  495. package/node_modules/@grpc/grpc-js/build/src/subchannel-address.js.map +0 -1
  496. package/node_modules/@grpc/grpc-js/build/src/subchannel-call.d.ts +0 -68
  497. package/node_modules/@grpc/grpc-js/build/src/subchannel-call.js +0 -545
  498. package/node_modules/@grpc/grpc-js/build/src/subchannel-call.js.map +0 -1
  499. package/node_modules/@grpc/grpc-js/build/src/subchannel-interface.d.ts +0 -82
  500. package/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js +0 -114
  501. package/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js.map +0 -1
  502. package/node_modules/@grpc/grpc-js/build/src/subchannel-pool.d.ts +0 -40
  503. package/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js +0 -137
  504. package/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js.map +0 -1
  505. package/node_modules/@grpc/grpc-js/build/src/subchannel.d.ts +0 -135
  506. package/node_modules/@grpc/grpc-js/build/src/subchannel.js +0 -397
  507. package/node_modules/@grpc/grpc-js/build/src/subchannel.js.map +0 -1
  508. package/node_modules/@grpc/grpc-js/build/src/tls-helpers.d.ts +0 -2
  509. package/node_modules/@grpc/grpc-js/build/src/tls-helpers.js +0 -34
  510. package/node_modules/@grpc/grpc-js/build/src/tls-helpers.js.map +0 -1
  511. package/node_modules/@grpc/grpc-js/build/src/transport.d.ts +0 -135
  512. package/node_modules/@grpc/grpc-js/build/src/transport.js +0 -640
  513. package/node_modules/@grpc/grpc-js/build/src/transport.js.map +0 -1
  514. package/node_modules/@grpc/grpc-js/build/src/uri-parser.d.ts +0 -13
  515. package/node_modules/@grpc/grpc-js/build/src/uri-parser.js +0 -125
  516. package/node_modules/@grpc/grpc-js/build/src/uri-parser.js.map +0 -1
  517. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/LICENSE +0 -201
  518. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/README.md +0 -140
  519. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/bin/proto-loader-gen-types.js +0 -915
  520. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/bin/proto-loader-gen-types.js.map +0 -1
  521. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/index.d.ts +0 -162
  522. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/index.js +0 -246
  523. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/index.js.map +0 -1
  524. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/util.d.ts +0 -27
  525. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/util.js +0 -89
  526. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/util.js.map +0 -1
  527. package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/package.json +0 -69
  528. package/node_modules/@grpc/grpc-js/package.json +0 -89
  529. package/node_modules/@grpc/grpc-js/proto/channelz.proto +0 -564
  530. package/node_modules/@grpc/grpc-js/proto/protoc-gen-validate/LICENSE +0 -202
  531. package/node_modules/@grpc/grpc-js/proto/protoc-gen-validate/validate/validate.proto +0 -797
  532. package/node_modules/@grpc/grpc-js/proto/xds/LICENSE +0 -201
  533. package/node_modules/@grpc/grpc-js/proto/xds/xds/data/orca/v3/orca_load_report.proto +0 -58
  534. package/node_modules/@grpc/grpc-js/proto/xds/xds/service/orca/v3/orca.proto +0 -36
  535. package/node_modules/@grpc/grpc-js/src/admin.ts +0 -45
  536. package/node_modules/@grpc/grpc-js/src/auth-context.ts +0 -23
  537. package/node_modules/@grpc/grpc-js/src/backoff-timeout.ts +0 -222
  538. package/node_modules/@grpc/grpc-js/src/call-credentials.ts +0 -227
  539. package/node_modules/@grpc/grpc-js/src/call-interface.ts +0 -208
  540. package/node_modules/@grpc/grpc-js/src/call-number.ts +0 -22
  541. package/node_modules/@grpc/grpc-js/src/call.ts +0 -218
  542. package/node_modules/@grpc/grpc-js/src/certificate-provider.ts +0 -176
  543. package/node_modules/@grpc/grpc-js/src/channel-credentials.ts +0 -523
  544. package/node_modules/@grpc/grpc-js/src/channel-options.ts +0 -128
  545. package/node_modules/@grpc/grpc-js/src/channel.ts +0 -174
  546. package/node_modules/@grpc/grpc-js/src/channelz.ts +0 -909
  547. package/node_modules/@grpc/grpc-js/src/client-interceptors.ts +0 -585
  548. package/node_modules/@grpc/grpc-js/src/client.ts +0 -716
  549. package/node_modules/@grpc/grpc-js/src/compression-algorithms.ts +0 -22
  550. package/node_modules/@grpc/grpc-js/src/compression-filter.ts +0 -358
  551. package/node_modules/@grpc/grpc-js/src/connectivity-state.ts +0 -24
  552. package/node_modules/@grpc/grpc-js/src/constants.ts +0 -66
  553. package/node_modules/@grpc/grpc-js/src/control-plane-status.ts +0 -43
  554. package/node_modules/@grpc/grpc-js/src/deadline.ts +0 -106
  555. package/node_modules/@grpc/grpc-js/src/duration.ts +0 -79
  556. package/node_modules/@grpc/grpc-js/src/environment.ts +0 -19
  557. package/node_modules/@grpc/grpc-js/src/error.ts +0 -37
  558. package/node_modules/@grpc/grpc-js/src/events.ts +0 -26
  559. package/node_modules/@grpc/grpc-js/src/experimental.ts +0 -73
  560. package/node_modules/@grpc/grpc-js/src/filter-stack.ts +0 -100
  561. package/node_modules/@grpc/grpc-js/src/filter.ts +0 -63
  562. package/node_modules/@grpc/grpc-js/src/generated/channelz.ts +0 -119
  563. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Any.ts +0 -13
  564. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/BoolValue.ts +0 -10
  565. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/BytesValue.ts +0 -10
  566. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/DescriptorProto.ts +0 -59
  567. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/DoubleValue.ts +0 -10
  568. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Duration.ts +0 -13
  569. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Edition.ts +0 -44
  570. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/EnumDescriptorProto.ts +0 -33
  571. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/EnumOptions.ts +0 -26
  572. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/EnumValueDescriptorProto.ts +0 -15
  573. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/EnumValueOptions.ts +0 -21
  574. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/ExtensionRangeOptions.ts +0 -49
  575. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FeatureSet.ts +0 -183
  576. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FeatureSetDefaults.ts +0 -28
  577. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FieldDescriptorProto.ts +0 -112
  578. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FieldOptions.ts +0 -165
  579. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FileDescriptorProto.ts +0 -43
  580. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FileDescriptorSet.ts +0 -11
  581. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FileOptions.ts +0 -76
  582. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FloatValue.ts +0 -10
  583. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/GeneratedCodeInfo.ts +0 -44
  584. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Int32Value.ts +0 -10
  585. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Int64Value.ts +0 -11
  586. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/MessageOptions.ts +0 -32
  587. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/MethodDescriptorProto.ts +0 -21
  588. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/MethodOptions.ts +0 -36
  589. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/OneofDescriptorProto.ts +0 -13
  590. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/OneofOptions.ts +0 -16
  591. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/ServiceDescriptorProto.ts +0 -16
  592. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/ServiceOptions.ts +0 -16
  593. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/SourceCodeInfo.ts +0 -26
  594. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/StringValue.ts +0 -10
  595. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/SymbolVisibility.ts +0 -17
  596. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Timestamp.ts +0 -13
  597. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/UInt32Value.ts +0 -10
  598. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/UInt64Value.ts +0 -11
  599. package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/UninterpretedOption.ts +0 -33
  600. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Address.ts +0 -89
  601. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Channel.ts +0 -68
  602. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ChannelConnectivityState.ts +0 -45
  603. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ChannelData.ts +0 -76
  604. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ChannelRef.ts +0 -31
  605. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ChannelTrace.ts +0 -45
  606. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ChannelTraceEvent.ts +0 -91
  607. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Channelz.ts +0 -178
  608. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetChannelRequest.ts +0 -17
  609. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetChannelResponse.ts +0 -19
  610. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServerRequest.ts +0 -17
  611. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServerResponse.ts +0 -19
  612. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServerSocketsRequest.ts +0 -39
  613. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServerSocketsResponse.ts +0 -33
  614. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServersRequest.ts +0 -37
  615. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServersResponse.ts +0 -33
  616. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetSocketRequest.ts +0 -29
  617. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetSocketResponse.ts +0 -19
  618. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetSubchannelRequest.ts +0 -17
  619. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetSubchannelResponse.ts +0 -19
  620. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetTopChannelsRequest.ts +0 -37
  621. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetTopChannelsResponse.ts +0 -33
  622. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Security.ts +0 -87
  623. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Server.ts +0 -45
  624. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ServerData.ts +0 -57
  625. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ServerRef.ts +0 -31
  626. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Socket.ts +0 -70
  627. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketData.ts +0 -150
  628. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketOption.ts +0 -47
  629. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketOptionLinger.ts +0 -33
  630. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.ts +0 -74
  631. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketOptionTimeout.ts +0 -19
  632. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketRef.ts +0 -31
  633. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Subchannel.ts +0 -70
  634. package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SubchannelRef.ts +0 -31
  635. package/node_modules/@grpc/grpc-js/src/generated/orca.ts +0 -146
  636. package/node_modules/@grpc/grpc-js/src/generated/validate/AnyRules.ts +0 -44
  637. package/node_modules/@grpc/grpc-js/src/generated/validate/BoolRules.ts +0 -22
  638. package/node_modules/@grpc/grpc-js/src/generated/validate/BytesRules.ts +0 -153
  639. package/node_modules/@grpc/grpc-js/src/generated/validate/DoubleRules.ts +0 -86
  640. package/node_modules/@grpc/grpc-js/src/generated/validate/DurationRules.ts +0 -93
  641. package/node_modules/@grpc/grpc-js/src/generated/validate/EnumRules.ts +0 -52
  642. package/node_modules/@grpc/grpc-js/src/generated/validate/FieldRules.ts +0 -102
  643. package/node_modules/@grpc/grpc-js/src/generated/validate/Fixed32Rules.ts +0 -86
  644. package/node_modules/@grpc/grpc-js/src/generated/validate/Fixed64Rules.ts +0 -87
  645. package/node_modules/@grpc/grpc-js/src/generated/validate/FloatRules.ts +0 -86
  646. package/node_modules/@grpc/grpc-js/src/generated/validate/Int32Rules.ts +0 -86
  647. package/node_modules/@grpc/grpc-js/src/generated/validate/Int64Rules.ts +0 -87
  648. package/node_modules/@grpc/grpc-js/src/generated/validate/KnownRegex.ts +0 -38
  649. package/node_modules/@grpc/grpc-js/src/generated/validate/MapRules.ts +0 -66
  650. package/node_modules/@grpc/grpc-js/src/generated/validate/MessageRules.ts +0 -34
  651. package/node_modules/@grpc/grpc-js/src/generated/validate/RepeatedRules.ts +0 -60
  652. package/node_modules/@grpc/grpc-js/src/generated/validate/SFixed32Rules.ts +0 -86
  653. package/node_modules/@grpc/grpc-js/src/generated/validate/SFixed64Rules.ts +0 -87
  654. package/node_modules/@grpc/grpc-js/src/generated/validate/SInt32Rules.ts +0 -86
  655. package/node_modules/@grpc/grpc-js/src/generated/validate/SInt64Rules.ts +0 -87
  656. package/node_modules/@grpc/grpc-js/src/generated/validate/StringRules.ts +0 -288
  657. package/node_modules/@grpc/grpc-js/src/generated/validate/TimestampRules.ts +0 -106
  658. package/node_modules/@grpc/grpc-js/src/generated/validate/UInt32Rules.ts +0 -86
  659. package/node_modules/@grpc/grpc-js/src/generated/validate/UInt64Rules.ts +0 -87
  660. package/node_modules/@grpc/grpc-js/src/generated/xds/data/orca/v3/OrcaLoadReport.ts +0 -113
  661. package/node_modules/@grpc/grpc-js/src/generated/xds/service/orca/v3/OpenRcaService.ts +0 -43
  662. package/node_modules/@grpc/grpc-js/src/generated/xds/service/orca/v3/OrcaLoadReportRequest.ts +0 -29
  663. package/node_modules/@grpc/grpc-js/src/http_proxy.ts +0 -315
  664. package/node_modules/@grpc/grpc-js/src/index.ts +0 -312
  665. package/node_modules/@grpc/grpc-js/src/internal-channel.ts +0 -878
  666. package/node_modules/@grpc/grpc-js/src/load-balancer-child-handler.ts +0 -173
  667. package/node_modules/@grpc/grpc-js/src/load-balancer-outlier-detection.ts +0 -840
  668. package/node_modules/@grpc/grpc-js/src/load-balancer-pick-first.ts +0 -662
  669. package/node_modules/@grpc/grpc-js/src/load-balancer-round-robin.ts +0 -287
  670. package/node_modules/@grpc/grpc-js/src/load-balancer-weighted-round-robin.ts +0 -494
  671. package/node_modules/@grpc/grpc-js/src/load-balancer.ts +0 -258
  672. package/node_modules/@grpc/grpc-js/src/load-balancing-call.ts +0 -387
  673. package/node_modules/@grpc/grpc-js/src/logging.ts +0 -134
  674. package/node_modules/@grpc/grpc-js/src/make-client.ts +0 -238
  675. package/node_modules/@grpc/grpc-js/src/metadata.ts +0 -323
  676. package/node_modules/@grpc/grpc-js/src/object-stream.ts +0 -66
  677. package/node_modules/@grpc/grpc-js/src/orca.ts +0 -349
  678. package/node_modules/@grpc/grpc-js/src/picker.ts +0 -157
  679. package/node_modules/@grpc/grpc-js/src/priority-queue.ts +0 -118
  680. package/node_modules/@grpc/grpc-js/src/resolver-dns.ts +0 -449
  681. package/node_modules/@grpc/grpc-js/src/resolver-ip.ts +0 -124
  682. package/node_modules/@grpc/grpc-js/src/resolver-uds.ts +0 -63
  683. package/node_modules/@grpc/grpc-js/src/resolver.ts +0 -176
  684. package/node_modules/@grpc/grpc-js/src/resolving-call.ts +0 -379
  685. package/node_modules/@grpc/grpc-js/src/resolving-load-balancer.ts +0 -407
  686. package/node_modules/@grpc/grpc-js/src/retrying-call.ts +0 -924
  687. package/node_modules/@grpc/grpc-js/src/server-call.ts +0 -420
  688. package/node_modules/@grpc/grpc-js/src/server-credentials.ts +0 -352
  689. package/node_modules/@grpc/grpc-js/src/server-interceptors.ts +0 -1071
  690. package/node_modules/@grpc/grpc-js/src/server.ts +0 -2212
  691. package/node_modules/@grpc/grpc-js/src/service-config.ts +0 -564
  692. package/node_modules/@grpc/grpc-js/src/single-subchannel-channel.ts +0 -248
  693. package/node_modules/@grpc/grpc-js/src/status-builder.ts +0 -80
  694. package/node_modules/@grpc/grpc-js/src/stream-decoder.ts +0 -110
  695. package/node_modules/@grpc/grpc-js/src/subchannel-address.ts +0 -252
  696. package/node_modules/@grpc/grpc-js/src/subchannel-call.ts +0 -622
  697. package/node_modules/@grpc/grpc-js/src/subchannel-interface.ts +0 -176
  698. package/node_modules/@grpc/grpc-js/src/subchannel-pool.ts +0 -176
  699. package/node_modules/@grpc/grpc-js/src/subchannel.ts +0 -559
  700. package/node_modules/@grpc/grpc-js/src/tls-helpers.ts +0 -35
  701. package/node_modules/@grpc/grpc-js/src/transport.ts +0 -825
  702. package/node_modules/@grpc/grpc-js/src/uri-parser.ts +0 -127
  703. package/node_modules/@grpc/proto-loader/LICENSE +0 -201
  704. package/node_modules/@grpc/proto-loader/README.md +0 -140
  705. package/node_modules/@grpc/proto-loader/build/bin/proto-loader-gen-types.js +0 -913
  706. package/node_modules/@grpc/proto-loader/build/bin/proto-loader-gen-types.js.map +0 -1
  707. package/node_modules/@grpc/proto-loader/build/src/index.d.ts +0 -160
  708. package/node_modules/@grpc/proto-loader/build/src/index.js +0 -244
  709. package/node_modules/@grpc/proto-loader/build/src/index.js.map +0 -1
  710. package/node_modules/@grpc/proto-loader/build/src/util.d.ts +0 -27
  711. package/node_modules/@grpc/proto-loader/build/src/util.js +0 -89
  712. package/node_modules/@grpc/proto-loader/build/src/util.js.map +0 -1
  713. package/node_modules/@grpc/proto-loader/package.json +0 -69
  714. package/node_modules/@js-sdsl/ordered-map/CHANGELOG.md +0 -237
  715. package/node_modules/@js-sdsl/ordered-map/LICENSE +0 -21
  716. package/node_modules/@js-sdsl/ordered-map/README.md +0 -270
  717. package/node_modules/@js-sdsl/ordered-map/README.zh-CN.md +0 -272
  718. package/node_modules/@js-sdsl/ordered-map/dist/cjs/index.d.ts +0 -402
  719. package/node_modules/@js-sdsl/ordered-map/dist/cjs/index.js +0 -795
  720. package/node_modules/@js-sdsl/ordered-map/dist/cjs/index.js.map +0 -1
  721. package/node_modules/@js-sdsl/ordered-map/dist/esm/index.d.ts +0 -402
  722. package/node_modules/@js-sdsl/ordered-map/dist/esm/index.js +0 -975
  723. package/node_modules/@js-sdsl/ordered-map/dist/esm/index.js.map +0 -1
  724. package/node_modules/@js-sdsl/ordered-map/dist/umd/ordered-map.js +0 -1157
  725. package/node_modules/@js-sdsl/ordered-map/dist/umd/ordered-map.min.js +0 -8
  726. package/node_modules/@js-sdsl/ordered-map/dist/umd/ordered-map.min.js.map +0 -1
  727. package/node_modules/@js-sdsl/ordered-map/package.json +0 -138
  728. package/node_modules/@protobufjs/aspromise/LICENSE +0 -26
  729. package/node_modules/@protobufjs/aspromise/README.md +0 -13
  730. package/node_modules/@protobufjs/aspromise/index.d.ts +0 -13
  731. package/node_modules/@protobufjs/aspromise/index.js +0 -52
  732. package/node_modules/@protobufjs/aspromise/package.json +0 -21
  733. package/node_modules/@protobufjs/aspromise/tests/index.js +0 -130
  734. package/node_modules/@protobufjs/base64/LICENSE +0 -26
  735. package/node_modules/@protobufjs/base64/README.md +0 -19
  736. package/node_modules/@protobufjs/base64/index.d.ts +0 -32
  737. package/node_modules/@protobufjs/base64/index.js +0 -139
  738. package/node_modules/@protobufjs/base64/package.json +0 -21
  739. package/node_modules/@protobufjs/base64/tests/index.js +0 -46
  740. package/node_modules/@protobufjs/codegen/LICENSE +0 -26
  741. package/node_modules/@protobufjs/codegen/README.md +0 -49
  742. package/node_modules/@protobufjs/codegen/index.d.ts +0 -31
  743. package/node_modules/@protobufjs/codegen/index.js +0 -99
  744. package/node_modules/@protobufjs/codegen/package.json +0 -13
  745. package/node_modules/@protobufjs/codegen/tests/index.js +0 -13
  746. package/node_modules/@protobufjs/eventemitter/LICENSE +0 -26
  747. package/node_modules/@protobufjs/eventemitter/README.md +0 -22
  748. package/node_modules/@protobufjs/eventemitter/index.d.ts +0 -43
  749. package/node_modules/@protobufjs/eventemitter/index.js +0 -76
  750. package/node_modules/@protobufjs/eventemitter/package.json +0 -21
  751. package/node_modules/@protobufjs/eventemitter/tests/index.js +0 -47
  752. package/node_modules/@protobufjs/fetch/LICENSE +0 -26
  753. package/node_modules/@protobufjs/fetch/README.md +0 -13
  754. package/node_modules/@protobufjs/fetch/index.d.ts +0 -56
  755. package/node_modules/@protobufjs/fetch/index.js +0 -115
  756. package/node_modules/@protobufjs/fetch/package.json +0 -25
  757. package/node_modules/@protobufjs/fetch/tests/index.js +0 -16
  758. package/node_modules/@protobufjs/float/LICENSE +0 -26
  759. package/node_modules/@protobufjs/float/README.md +0 -102
  760. package/node_modules/@protobufjs/float/bench/index.js +0 -87
  761. package/node_modules/@protobufjs/float/bench/suite.js +0 -46
  762. package/node_modules/@protobufjs/float/index.d.ts +0 -83
  763. package/node_modules/@protobufjs/float/index.js +0 -335
  764. package/node_modules/@protobufjs/float/package.json +0 -26
  765. package/node_modules/@protobufjs/float/tests/index.js +0 -100
  766. package/node_modules/@protobufjs/inquire/.npmignore +0 -3
  767. package/node_modules/@protobufjs/inquire/LICENSE +0 -26
  768. package/node_modules/@protobufjs/inquire/README.md +0 -13
  769. package/node_modules/@protobufjs/inquire/index.d.ts +0 -9
  770. package/node_modules/@protobufjs/inquire/index.js +0 -17
  771. package/node_modules/@protobufjs/inquire/package.json +0 -21
  772. package/node_modules/@protobufjs/inquire/tests/data/array.js +0 -1
  773. package/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +0 -1
  774. package/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +0 -1
  775. package/node_modules/@protobufjs/inquire/tests/data/object.js +0 -1
  776. package/node_modules/@protobufjs/inquire/tests/index.js +0 -20
  777. package/node_modules/@protobufjs/path/LICENSE +0 -26
  778. package/node_modules/@protobufjs/path/README.md +0 -19
  779. package/node_modules/@protobufjs/path/index.d.ts +0 -22
  780. package/node_modules/@protobufjs/path/index.js +0 -65
  781. package/node_modules/@protobufjs/path/package.json +0 -21
  782. package/node_modules/@protobufjs/path/tests/index.js +0 -60
  783. package/node_modules/@protobufjs/pool/.npmignore +0 -3
  784. package/node_modules/@protobufjs/pool/LICENSE +0 -26
  785. package/node_modules/@protobufjs/pool/README.md +0 -13
  786. package/node_modules/@protobufjs/pool/index.d.ts +0 -32
  787. package/node_modules/@protobufjs/pool/index.js +0 -48
  788. package/node_modules/@protobufjs/pool/package.json +0 -21
  789. package/node_modules/@protobufjs/pool/tests/index.js +0 -33
  790. package/node_modules/@protobufjs/utf8/.npmignore +0 -3
  791. package/node_modules/@protobufjs/utf8/LICENSE +0 -26
  792. package/node_modules/@protobufjs/utf8/README.md +0 -20
  793. package/node_modules/@protobufjs/utf8/index.d.ts +0 -24
  794. package/node_modules/@protobufjs/utf8/index.js +0 -105
  795. package/node_modules/@protobufjs/utf8/package.json +0 -21
  796. package/node_modules/@protobufjs/utf8/tests/data/utf8.txt +0 -216
  797. package/node_modules/@protobufjs/utf8/tests/index.js +0 -57
  798. package/node_modules/@types/node/LICENSE +0 -21
  799. package/node_modules/@types/node/README.md +0 -16
  800. package/node_modules/@types/node/assert/strict.d.ts +0 -8
  801. package/node_modules/@types/node/assert.d.ts +0 -912
  802. package/node_modules/@types/node/async_hooks.d.ts +0 -497
  803. package/node_modules/@types/node/buffer.d.ts +0 -2142
  804. package/node_modules/@types/node/child_process.d.ts +0 -1355
  805. package/node_modules/@types/node/cluster.d.ts +0 -414
  806. package/node_modules/@types/node/console.d.ts +0 -407
  807. package/node_modules/@types/node/constants.d.ts +0 -18
  808. package/node_modules/@types/node/crypto.d.ts +0 -3243
  809. package/node_modules/@types/node/dgram.d.ts +0 -545
  810. package/node_modules/@types/node/diagnostics_channel.d.ts +0 -128
  811. package/node_modules/@types/node/dns/promises.d.ts +0 -357
  812. package/node_modules/@types/node/dns.d.ts +0 -643
  813. package/node_modules/@types/node/domain.d.ts +0 -169
  814. package/node_modules/@types/node/events.d.ts +0 -623
  815. package/node_modules/@types/node/fs/promises.d.ts +0 -997
  816. package/node_modules/@types/node/fs.d.ts +0 -3723
  817. package/node_modules/@types/node/globals.d.ts +0 -284
  818. package/node_modules/@types/node/globals.global.d.ts +0 -1
  819. package/node_modules/@types/node/http.d.ts +0 -1358
  820. package/node_modules/@types/node/http2.d.ts +0 -2100
  821. package/node_modules/@types/node/https.d.ts +0 -391
  822. package/node_modules/@types/node/index.d.ts +0 -132
  823. package/node_modules/@types/node/inspector.d.ts +0 -2738
  824. package/node_modules/@types/node/module.d.ts +0 -114
  825. package/node_modules/@types/node/net.d.ts +0 -783
  826. package/node_modules/@types/node/os.d.ts +0 -455
  827. package/node_modules/@types/node/package.json +0 -235
  828. package/node_modules/@types/node/path.d.ts +0 -172
  829. package/node_modules/@types/node/perf_hooks.d.ts +0 -555
  830. package/node_modules/@types/node/process.d.ts +0 -1477
  831. package/node_modules/@types/node/punycode.d.ts +0 -117
  832. package/node_modules/@types/node/querystring.d.ts +0 -131
  833. package/node_modules/@types/node/readline.d.ts +0 -542
  834. package/node_modules/@types/node/repl.d.ts +0 -424
  835. package/node_modules/@types/node/stream/consumers.d.ts +0 -24
  836. package/node_modules/@types/node/stream/promises.d.ts +0 -42
  837. package/node_modules/@types/node/stream/web.d.ts +0 -6
  838. package/node_modules/@types/node/stream.d.ts +0 -1218
  839. package/node_modules/@types/node/string_decoder.d.ts +0 -67
  840. package/node_modules/@types/node/timers/promises.d.ts +0 -68
  841. package/node_modules/@types/node/timers.d.ts +0 -94
  842. package/node_modules/@types/node/tls.d.ts +0 -1019
  843. package/node_modules/@types/node/trace_events.d.ts +0 -161
  844. package/node_modules/@types/node/tty.d.ts +0 -206
  845. package/node_modules/@types/node/url.d.ts +0 -798
  846. package/node_modules/@types/node/util.d.ts +0 -1564
  847. package/node_modules/@types/node/v8.d.ts +0 -378
  848. package/node_modules/@types/node/vm.d.ts +0 -508
  849. package/node_modules/@types/node/wasi.d.ts +0 -153
  850. package/node_modules/@types/node/worker_threads.d.ts +0 -649
  851. package/node_modules/@types/node/zlib.d.ts +0 -517
  852. package/node_modules/ansi-regex/index.d.ts +0 -37
  853. package/node_modules/ansi-regex/index.js +0 -10
  854. package/node_modules/ansi-regex/license +0 -9
  855. package/node_modules/ansi-regex/package.json +0 -55
  856. package/node_modules/ansi-regex/readme.md +0 -78
  857. package/node_modules/ansi-styles/index.d.ts +0 -345
  858. package/node_modules/ansi-styles/index.js +0 -163
  859. package/node_modules/ansi-styles/license +0 -9
  860. package/node_modules/ansi-styles/package.json +0 -56
  861. package/node_modules/ansi-styles/readme.md +0 -152
  862. package/node_modules/argparse/LICENSE +0 -254
  863. package/node_modules/argparse/README.md +0 -84
  864. package/node_modules/argparse/argparse.js +0 -3707
  865. package/node_modules/argparse/lib/sub.js +0 -67
  866. package/node_modules/argparse/lib/textwrap.js +0 -440
  867. package/node_modules/argparse/package.json +0 -31
  868. package/node_modules/asn1/Jenkinsfile +0 -65
  869. package/node_modules/asn1/LICENSE +0 -19
  870. package/node_modules/asn1/README.md +0 -50
  871. package/node_modules/asn1/lib/ber/errors.js +0 -13
  872. package/node_modules/asn1/lib/ber/index.js +0 -27
  873. package/node_modules/asn1/lib/ber/reader.js +0 -262
  874. package/node_modules/asn1/lib/ber/types.js +0 -36
  875. package/node_modules/asn1/lib/ber/writer.js +0 -317
  876. package/node_modules/asn1/lib/index.js +0 -20
  877. package/node_modules/asn1/package.json +0 -31
  878. package/node_modules/b4a/LICENSE +0 -201
  879. package/node_modules/b4a/README.md +0 -153
  880. package/node_modules/b4a/browser.js +0 -567
  881. package/node_modules/b4a/index.js +0 -188
  882. package/node_modules/b4a/lib/ascii.js +0 -31
  883. package/node_modules/b4a/lib/base64.js +0 -65
  884. package/node_modules/b4a/lib/hex.js +0 -51
  885. package/node_modules/b4a/lib/latin1.js +0 -31
  886. package/node_modules/b4a/lib/utf16le.js +0 -40
  887. package/node_modules/b4a/lib/utf8.js +0 -141
  888. package/node_modules/b4a/package.json +0 -49
  889. package/node_modules/b4a/react-native.js +0 -5
  890. package/node_modules/bare-events/LICENSE +0 -201
  891. package/node_modules/bare-events/README.md +0 -25
  892. package/node_modules/bare-events/global.d.ts +0 -15
  893. package/node_modules/bare-events/global.js +0 -5
  894. package/node_modules/bare-events/index.d.ts +0 -81
  895. package/node_modules/bare-events/index.js +0 -367
  896. package/node_modules/bare-events/lib/errors.js +0 -26
  897. package/node_modules/bare-events/package.json +0 -61
  898. package/node_modules/bare-events/web.d.ts +0 -79
  899. package/node_modules/bare-events/web.js +0 -335
  900. package/node_modules/bare-fs/CMakeLists.txt +0 -13
  901. package/node_modules/bare-fs/LICENSE +0 -201
  902. package/node_modules/bare-fs/README.md +0 -989
  903. package/node_modules/bare-fs/binding.c +0 -2889
  904. package/node_modules/bare-fs/binding.js +0 -1
  905. package/node_modules/bare-fs/index.d.ts +0 -1223
  906. package/node_modules/bare-fs/index.js +0 -2842
  907. package/node_modules/bare-fs/lib/constants.d.ts +0 -49
  908. package/node_modules/bare-fs/lib/constants.js +0 -49
  909. package/node_modules/bare-fs/lib/errors.d.ts +0 -11
  910. package/node_modules/bare-fs/lib/errors.js +0 -55
  911. package/node_modules/bare-fs/package.json +0 -74
  912. package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
  913. package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
  914. package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
  915. package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
  916. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  917. package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
  918. package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
  919. package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
  920. package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
  921. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  922. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  923. package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
  924. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  925. package/node_modules/bare-fs/promises.d.ts +0 -310
  926. package/node_modules/bare-fs/promises.js +0 -119
  927. package/node_modules/bare-os/CMakeLists.txt +0 -13
  928. package/node_modules/bare-os/LICENSE +0 -201
  929. package/node_modules/bare-os/README.md +0 -11
  930. package/node_modules/bare-os/binding.c +0 -1427
  931. package/node_modules/bare-os/binding.js +0 -1
  932. package/node_modules/bare-os/index.d.ts +0 -143
  933. package/node_modules/bare-os/index.js +0 -129
  934. package/node_modules/bare-os/lib/constants.js +0 -7
  935. package/node_modules/bare-os/lib/errors.js +0 -22
  936. package/node_modules/bare-os/package.json +0 -49
  937. package/node_modules/bare-os/prebuilds/android-arm/bare-os.bare +0 -0
  938. package/node_modules/bare-os/prebuilds/android-arm64/bare-os.bare +0 -0
  939. package/node_modules/bare-os/prebuilds/android-ia32/bare-os.bare +0 -0
  940. package/node_modules/bare-os/prebuilds/android-x64/bare-os.bare +0 -0
  941. package/node_modules/bare-os/prebuilds/darwin-arm64/bare-os.bare +0 -0
  942. package/node_modules/bare-os/prebuilds/darwin-x64/bare-os.bare +0 -0
  943. package/node_modules/bare-os/prebuilds/ios-arm64/bare-os.bare +0 -0
  944. package/node_modules/bare-os/prebuilds/ios-arm64-simulator/bare-os.bare +0 -0
  945. package/node_modules/bare-os/prebuilds/ios-x64-simulator/bare-os.bare +0 -0
  946. package/node_modules/bare-os/prebuilds/linux-arm64/bare-os.bare +0 -0
  947. package/node_modules/bare-os/prebuilds/linux-x64/bare-os.bare +0 -0
  948. package/node_modules/bare-os/prebuilds/win32-arm64/bare-os.bare +0 -0
  949. package/node_modules/bare-os/prebuilds/win32-x64/bare-os.bare +0 -0
  950. package/node_modules/bare-path/LICENSE +0 -201
  951. package/node_modules/bare-path/NOTICE +0 -28
  952. package/node_modules/bare-path/README.md +0 -19
  953. package/node_modules/bare-path/index.js +0 -11
  954. package/node_modules/bare-path/lib/constants.js +0 -11
  955. package/node_modules/bare-path/lib/posix.js +0 -242
  956. package/node_modules/bare-path/lib/shared.js +0 -67
  957. package/node_modules/bare-path/lib/win32.js +0 -513
  958. package/node_modules/bare-path/package.json +0 -36
  959. package/node_modules/bare-stream/LICENSE +0 -201
  960. package/node_modules/bare-stream/README.md +0 -15
  961. package/node_modules/bare-stream/global.js +0 -12
  962. package/node_modules/bare-stream/index.d.ts +0 -235
  963. package/node_modules/bare-stream/index.js +0 -492
  964. package/node_modules/bare-stream/package.json +0 -70
  965. package/node_modules/bare-stream/promises.js +0 -3
  966. package/node_modules/bare-stream/web.d.ts +0 -152
  967. package/node_modules/bare-stream/web.js +0 -607
  968. package/node_modules/bare-url/CMakeLists.txt +0 -27
  969. package/node_modules/bare-url/LICENSE +0 -201
  970. package/node_modules/bare-url/README.md +0 -19
  971. package/node_modules/bare-url/binding.c +0 -186
  972. package/node_modules/bare-url/binding.js +0 -1
  973. package/node_modules/bare-url/global.d.ts +0 -12
  974. package/node_modules/bare-url/global.js +0 -2
  975. package/node_modules/bare-url/index.d.ts +0 -41
  976. package/node_modules/bare-url/index.js +0 -407
  977. package/node_modules/bare-url/lib/errors.d.ts +0 -10
  978. package/node_modules/bare-url/lib/errors.js +0 -33
  979. package/node_modules/bare-url/lib/url-search-params.d.ts +0 -23
  980. package/node_modules/bare-url/lib/url-search-params.js +0 -194
  981. package/node_modules/bare-url/package.json +0 -54
  982. package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
  983. package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
  984. package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
  985. package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
  986. package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
  987. package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
  988. package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
  989. package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
  990. package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
  991. package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
  992. package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
  993. package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
  994. package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
  995. package/node_modules/base64-js/LICENSE +0 -21
  996. package/node_modules/base64-js/README.md +0 -34
  997. package/node_modules/base64-js/base64js.min.js +0 -1
  998. package/node_modules/base64-js/index.d.ts +0 -3
  999. package/node_modules/base64-js/index.js +0 -150
  1000. package/node_modules/base64-js/package.json +0 -47
  1001. package/node_modules/bcrypt-pbkdf/CONTRIBUTING.md +0 -13
  1002. package/node_modules/bcrypt-pbkdf/LICENSE +0 -66
  1003. package/node_modules/bcrypt-pbkdf/README.md +0 -45
  1004. package/node_modules/bcrypt-pbkdf/index.js +0 -556
  1005. package/node_modules/bcrypt-pbkdf/package.json +0 -15
  1006. package/node_modules/bl/.travis.yml +0 -17
  1007. package/node_modules/bl/BufferList.js +0 -396
  1008. package/node_modules/bl/LICENSE.md +0 -13
  1009. package/node_modules/bl/README.md +0 -247
  1010. package/node_modules/bl/bl.js +0 -84
  1011. package/node_modules/bl/package.json +0 -37
  1012. package/node_modules/bl/test/convert.js +0 -21
  1013. package/node_modules/bl/test/indexOf.js +0 -492
  1014. package/node_modules/bl/test/isBufferList.js +0 -32
  1015. package/node_modules/bl/test/test.js +0 -869
  1016. package/node_modules/buffer/AUTHORS.md +0 -70
  1017. package/node_modules/buffer/LICENSE +0 -21
  1018. package/node_modules/buffer/README.md +0 -410
  1019. package/node_modules/buffer/index.d.ts +0 -186
  1020. package/node_modules/buffer/index.js +0 -1817
  1021. package/node_modules/buffer/package.json +0 -96
  1022. package/node_modules/buildcheck/.eslintrc.js +0 -5
  1023. package/node_modules/buildcheck/.github/workflows/ci.yml +0 -88
  1024. package/node_modules/buildcheck/.github/workflows/lint.yml +0 -27
  1025. package/node_modules/buildcheck/.gitignore +0 -3
  1026. package/node_modules/buildcheck/LICENSE +0 -19
  1027. package/node_modules/buildcheck/README.md +0 -106
  1028. package/node_modules/buildcheck/deps/Find-VisualStudio.cs +0 -250
  1029. package/node_modules/buildcheck/lib/findvs.js +0 -361
  1030. package/node_modules/buildcheck/lib/index.js +0 -738
  1031. package/node_modules/buildcheck/package.json +0 -36
  1032. package/node_modules/buildcheck/test/test.js +0 -8
  1033. package/node_modules/chownr/LICENSE +0 -15
  1034. package/node_modules/chownr/README.md +0 -3
  1035. package/node_modules/chownr/chownr.js +0 -167
  1036. package/node_modules/chownr/package.json +0 -29
  1037. package/node_modules/cliui/LICENSE.txt +0 -14
  1038. package/node_modules/cliui/README.md +0 -141
  1039. package/node_modules/cliui/build/index.cjs +0 -302
  1040. package/node_modules/cliui/build/index.d.cts +0 -43
  1041. package/node_modules/cliui/build/lib/index.js +0 -287
  1042. package/node_modules/cliui/build/lib/string-utils.js +0 -27
  1043. package/node_modules/cliui/index.mjs +0 -13
  1044. package/node_modules/cliui/package.json +0 -83
  1045. package/node_modules/color-convert/LICENSE +0 -21
  1046. package/node_modules/color-convert/README.md +0 -68
  1047. package/node_modules/color-convert/conversions.js +0 -839
  1048. package/node_modules/color-convert/index.js +0 -81
  1049. package/node_modules/color-convert/package.json +0 -48
  1050. package/node_modules/color-convert/route.js +0 -97
  1051. package/node_modules/color-name/LICENSE +0 -8
  1052. package/node_modules/color-name/README.md +0 -11
  1053. package/node_modules/color-name/index.js +0 -152
  1054. package/node_modules/color-name/package.json +0 -28
  1055. package/node_modules/cpu-features/.eslintrc.js +0 -5
  1056. package/node_modules/cpu-features/.github/workflows/ci.yml +0 -74
  1057. package/node_modules/cpu-features/.github/workflows/lint.yml +0 -27
  1058. package/node_modules/cpu-features/LICENSE +0 -19
  1059. package/node_modules/cpu-features/README.md +0 -59
  1060. package/node_modules/cpu-features/binding.gyp +0 -16
  1061. package/node_modules/cpu-features/build/Makefile +0 -352
  1062. package/node_modules/cpu-features/build/Release/.deps/Release/cpu_features.a.d +0 -1
  1063. package/node_modules/cpu-features/build/Release/.deps/Release/cpufeatures.node.d +0 -1
  1064. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o.d +0 -8
  1065. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/hwcaps.o.d +0 -12
  1066. 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
  1067. 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
  1068. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_windows.o.d +0 -6
  1069. 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
  1070. 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
  1071. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o.d +0 -6
  1072. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o.d +0 -6
  1073. 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
  1074. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o.d +0 -6
  1075. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o.d +0 -6
  1076. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o.d +0 -12
  1077. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o.d +0 -11
  1078. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpufeatures/src/binding.o.d +0 -183
  1079. package/node_modules/cpu-features/build/Release/cpu_features.a +0 -0
  1080. package/node_modules/cpu-features/build/Release/cpufeatures.node +0 -0
  1081. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o +0 -0
  1082. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/hwcaps.o +0 -0
  1083. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o +0 -0
  1084. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.o +0 -0
  1085. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_windows.o +0 -0
  1086. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o +0 -0
  1087. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o +0 -0
  1088. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o +0 -0
  1089. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o +0 -0
  1090. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o +0 -0
  1091. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o +0 -0
  1092. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o +0 -0
  1093. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o +0 -0
  1094. package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o +0 -0
  1095. package/node_modules/cpu-features/build/Release/obj.target/cpufeatures/src/binding.o +0 -0
  1096. package/node_modules/cpu-features/build/binding.Makefile +0 -6
  1097. package/node_modules/cpu-features/build/config.gypi +0 -512
  1098. package/node_modules/cpu-features/build/cpufeatures.target.mk +0 -192
  1099. package/node_modules/cpu-features/build/deps/cpu_features/cpu_features.Makefile +0 -6
  1100. package/node_modules/cpu-features/build/deps/cpu_features/cpu_features.target.mk +0 -204
  1101. package/node_modules/cpu-features/build/gyp-mac-tool +0 -766
  1102. package/node_modules/cpu-features/buildcheck.gypi +0 -17
  1103. package/node_modules/cpu-features/buildcheck.js +0 -32
  1104. package/node_modules/cpu-features/deps/cpu_features/.clang-format +0 -4
  1105. package/node_modules/cpu-features/deps/cpu_features/.dockerignore +0 -31
  1106. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/Dockerfile +0 -5
  1107. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/aarch64_linux_cmake.yml +0 -30
  1108. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_freebsd_cmake.yml +0 -22
  1109. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_bazel.yml +0 -26
  1110. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_cmake.yml +0 -31
  1111. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_macos_cmake.yml +0 -43
  1112. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_windows_cmake.yml +0 -25
  1113. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/arm_linux_cmake.yml +0 -31
  1114. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/clang_format.yml +0 -24
  1115. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/mips_linux_cmake.yml +0 -30
  1116. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/power_linux_cmake.yml +0 -29
  1117. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/riscv_linux_cmake.yml +0 -28
  1118. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/s390x_linux_cmake.yml +0 -27
  1119. package/node_modules/cpu-features/deps/cpu_features/.grenrc.yml +0 -21
  1120. package/node_modules/cpu-features/deps/cpu_features/BUILD.bazel +0 -329
  1121. package/node_modules/cpu-features/deps/cpu_features/CMakeLists.txt +0 -261
  1122. package/node_modules/cpu-features/deps/cpu_features/CONTRIBUTING.md +0 -23
  1123. package/node_modules/cpu-features/deps/cpu_features/LICENSE +0 -230
  1124. package/node_modules/cpu-features/deps/cpu_features/README.md +0 -272
  1125. package/node_modules/cpu-features/deps/cpu_features/WORKSPACE +0 -19
  1126. package/node_modules/cpu-features/deps/cpu_features/bazel/ci/README.md +0 -5
  1127. package/node_modules/cpu-features/deps/cpu_features/bazel/platforms.bzl +0 -11
  1128. package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesConfig.cmake.in +0 -3
  1129. package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesNdkCompatConfig.cmake.in +0 -3
  1130. package/node_modules/cpu-features/deps/cpu_features/cmake/README.md +0 -30
  1131. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/Makefile +0 -252
  1132. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/README.md +0 -40
  1133. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.dot +0 -64
  1134. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.svg +0 -312
  1135. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/generate_image.sh +0 -7
  1136. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/amd64/Dockerfile +0 -48
  1137. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/toolchain/Dockerfile +0 -34
  1138. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/CMakeLists.txt +0 -22
  1139. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/main.cpp +0 -11
  1140. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/vagrant/freebsd/Vagrantfile +0 -107
  1141. package/node_modules/cpu-features/deps/cpu_features/cmake/googletest.CMakeLists.txt.in +0 -15
  1142. package/node_modules/cpu-features/deps/cpu_features/cpu_features.gyp +0 -105
  1143. package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_cache_info.h +0 -54
  1144. package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_macros.h +0 -384
  1145. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_aarch64.h +0 -259
  1146. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_arm.h +0 -121
  1147. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_mips.h +0 -74
  1148. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_ppc.h +0 -149
  1149. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_riscv.h +0 -72
  1150. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_s390x.h +0 -108
  1151. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_x86.h +0 -288
  1152. package/node_modules/cpu-features/deps/cpu_features/include/internal/bit_utils.h +0 -40
  1153. package/node_modules/cpu-features/deps/cpu_features/include/internal/cpuid_x86.h +0 -37
  1154. package/node_modules/cpu-features/deps/cpu_features/include/internal/filesystem.h +0 -39
  1155. package/node_modules/cpu-features/deps/cpu_features/include/internal/hwcaps.h +0 -240
  1156. package/node_modules/cpu-features/deps/cpu_features/include/internal/stack_line_reader.h +0 -49
  1157. package/node_modules/cpu-features/deps/cpu_features/include/internal/string_view.h +0 -110
  1158. package/node_modules/cpu-features/deps/cpu_features/include/internal/windows_utils.h +0 -70
  1159. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/CMakeLists.txt +0 -60
  1160. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/README.md +0 -4
  1161. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.c +0 -205
  1162. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.h +0 -320
  1163. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/ndk-compat-test.c +0 -12
  1164. package/node_modules/cpu-features/deps/cpu_features/patches/0001-Add-Apple-Silicon-Support.patch +0 -456
  1165. package/node_modules/cpu-features/deps/cpu_features/scripts/generate_badges.d +0 -165
  1166. package/node_modules/cpu-features/deps/cpu_features/scripts/make_release.sh +0 -75
  1167. package/node_modules/cpu-features/deps/cpu_features/scripts/run_integration.sh +0 -490
  1168. package/node_modules/cpu-features/deps/cpu_features/scripts/test_integration.sh +0 -79
  1169. package/node_modules/cpu-features/deps/cpu_features/src/copy.inl +0 -19
  1170. package/node_modules/cpu-features/deps/cpu_features/src/define_introspection.inl +0 -86
  1171. package/node_modules/cpu-features/deps/cpu_features/src/define_introspection_and_hwcaps.inl +0 -26
  1172. package/node_modules/cpu-features/deps/cpu_features/src/equals.inl +0 -22
  1173. package/node_modules/cpu-features/deps/cpu_features/src/filesystem.c +0 -62
  1174. package/node_modules/cpu-features/deps/cpu_features/src/hwcaps.c +0 -169
  1175. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64__base_implementation.inl +0 -88
  1176. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_linux_or_android.c +0 -79
  1177. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.c +0 -82
  1178. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_windows.c +0 -138
  1179. package/node_modules/cpu-features/deps/cpu_features/src/impl_arm_linux_or_android.c +0 -212
  1180. package/node_modules/cpu-features/deps/cpu_features/src/impl_mips_linux_or_android.c +0 -93
  1181. package/node_modules/cpu-features/deps/cpu_features/src/impl_ppc_linux.c +0 -163
  1182. package/node_modules/cpu-features/deps/cpu_features/src/impl_riscv_linux.c +0 -111
  1183. package/node_modules/cpu-features/deps/cpu_features/src/impl_s390x_linux.c +0 -120
  1184. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86__base_implementation.inl +0 -2055
  1185. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_freebsd.c +0 -68
  1186. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_linux_or_android.c +0 -58
  1187. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_macos.c +0 -57
  1188. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_windows.c +0 -58
  1189. package/node_modules/cpu-features/deps/cpu_features/src/stack_line_reader.c +0 -132
  1190. package/node_modules/cpu-features/deps/cpu_features/src/string_view.c +0 -192
  1191. package/node_modules/cpu-features/deps/cpu_features/src/utils/list_cpu_features.c +0 -461
  1192. package/node_modules/cpu-features/deps/cpu_features/test/CMakeLists.txt +0 -114
  1193. package/node_modules/cpu-features/deps/cpu_features/test/bit_utils_test.cc +0 -53
  1194. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_aarch64_test.cc +0 -396
  1195. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_arm_test.cc +0 -384
  1196. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_mips_test.cc +0 -176
  1197. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_ppc_test.cc +0 -131
  1198. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_riscv_test.cc +0 -180
  1199. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_s390x_test.cc +0 -82
  1200. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_x86_test.cc +0 -1729
  1201. package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.cc +0 -103
  1202. package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.h +0 -61
  1203. package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.cc +0 -52
  1204. package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.h +0 -31
  1205. package/node_modules/cpu-features/deps/cpu_features/test/stack_line_reader_test.cc +0 -132
  1206. package/node_modules/cpu-features/deps/cpu_features/test/string_view_test.cc +0 -202
  1207. package/node_modules/cpu-features/lib/index.js +0 -5
  1208. package/node_modules/cpu-features/package.json +0 -40
  1209. package/node_modules/cpu-features/src/binding.cc +0 -151
  1210. package/node_modules/cpu-features/test/test.js +0 -12
  1211. package/node_modules/debug/LICENSE +0 -20
  1212. package/node_modules/debug/README.md +0 -481
  1213. package/node_modules/debug/package.json +0 -64
  1214. package/node_modules/debug/src/browser.js +0 -272
  1215. package/node_modules/debug/src/common.js +0 -292
  1216. package/node_modules/debug/src/index.js +0 -10
  1217. package/node_modules/debug/src/node.js +0 -263
  1218. package/node_modules/docker-modem/.eslintrc +0 -35
  1219. package/node_modules/docker-modem/.github/FUNDING.yml +0 -1
  1220. package/node_modules/docker-modem/.github/workflows/main.yml +0 -63
  1221. package/node_modules/docker-modem/.travis.yml +0 -36
  1222. package/node_modules/docker-modem/.vscode/launch.json +0 -22
  1223. package/node_modules/docker-modem/LICENSE +0 -201
  1224. package/node_modules/docker-modem/README.md +0 -64
  1225. package/node_modules/docker-modem/lib/http.js +0 -87
  1226. package/node_modules/docker-modem/lib/http_duplex.js +0 -55
  1227. package/node_modules/docker-modem/lib/modem.js +0 -577
  1228. package/node_modules/docker-modem/lib/ssh.js +0 -48
  1229. package/node_modules/docker-modem/lib/utils.js +0 -24
  1230. package/node_modules/docker-modem/package.json +0 -32
  1231. package/node_modules/docker-modem/test/modem_test.js +0 -248
  1232. package/node_modules/dockerode/.claude/settings.local.json +0 -8
  1233. package/node_modules/dockerode/.eslintignore +0 -2
  1234. package/node_modules/dockerode/.eslintrc +0 -35
  1235. package/node_modules/dockerode/.github/FUNDING.yml +0 -1
  1236. package/node_modules/dockerode/.github/stale.yml +0 -20
  1237. package/node_modules/dockerode/.github/workflows/main.yml +0 -35
  1238. package/node_modules/dockerode/.travis.yml +0 -24
  1239. package/node_modules/dockerode/.vscode/launch.json +0 -25
  1240. package/node_modules/dockerode/LICENSE +0 -201
  1241. package/node_modules/dockerode/README.md +0 -530
  1242. package/node_modules/dockerode/lib/buildkit.js +0 -242
  1243. package/node_modules/dockerode/lib/config.js +0 -135
  1244. package/node_modules/dockerode/lib/container.js +0 -1085
  1245. package/node_modules/dockerode/lib/docker.js +0 -1903
  1246. package/node_modules/dockerode/lib/exec.js +0 -139
  1247. package/node_modules/dockerode/lib/image.js +0 -279
  1248. package/node_modules/dockerode/lib/network.js +0 -171
  1249. package/node_modules/dockerode/lib/node.js +0 -135
  1250. package/node_modules/dockerode/lib/plugin.js +0 -372
  1251. package/node_modules/dockerode/lib/proto/auth.proto +0 -54
  1252. package/node_modules/dockerode/lib/proto/buildkit_status.proto +0 -81
  1253. package/node_modules/dockerode/lib/secret.js +0 -134
  1254. package/node_modules/dockerode/lib/service.js +0 -183
  1255. package/node_modules/dockerode/lib/session.js +0 -63
  1256. package/node_modules/dockerode/lib/task.js +0 -97
  1257. package/node_modules/dockerode/lib/util.js +0 -106
  1258. package/node_modules/dockerode/lib/volume.js +0 -90
  1259. package/node_modules/dockerode/package.json +0 -40
  1260. package/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  1261. package/node_modules/emoji-regex/README.md +0 -73
  1262. package/node_modules/emoji-regex/es2015/index.js +0 -6
  1263. package/node_modules/emoji-regex/es2015/text.js +0 -6
  1264. package/node_modules/emoji-regex/index.d.ts +0 -23
  1265. package/node_modules/emoji-regex/index.js +0 -6
  1266. package/node_modules/emoji-regex/package.json +0 -50
  1267. package/node_modules/emoji-regex/text.js +0 -6
  1268. package/node_modules/end-of-stream/LICENSE +0 -21
  1269. package/node_modules/end-of-stream/README.md +0 -54
  1270. package/node_modules/end-of-stream/index.js +0 -96
  1271. package/node_modules/end-of-stream/package.json +0 -37
  1272. package/node_modules/escalade/dist/index.js +0 -22
  1273. package/node_modules/escalade/dist/index.mjs +0 -22
  1274. package/node_modules/escalade/index.d.mts +0 -11
  1275. package/node_modules/escalade/index.d.ts +0 -15
  1276. package/node_modules/escalade/license +0 -9
  1277. package/node_modules/escalade/package.json +0 -74
  1278. package/node_modules/escalade/readme.md +0 -211
  1279. package/node_modules/escalade/sync/index.d.mts +0 -9
  1280. package/node_modules/escalade/sync/index.d.ts +0 -13
  1281. package/node_modules/escalade/sync/index.js +0 -18
  1282. package/node_modules/escalade/sync/index.mjs +0 -18
  1283. package/node_modules/events-universal/LICENSE +0 -201
  1284. package/node_modules/events-universal/README.md +0 -17
  1285. package/node_modules/events-universal/bare.js +0 -1
  1286. package/node_modules/events-universal/default.js +0 -1
  1287. package/node_modules/events-universal/index.js +0 -1
  1288. package/node_modules/events-universal/package.json +0 -39
  1289. package/node_modules/events-universal/react-native.js +0 -1
  1290. package/node_modules/fast-fifo/LICENSE +0 -21
  1291. package/node_modules/fast-fifo/README.md +0 -78
  1292. package/node_modules/fast-fifo/fixed-size.js +0 -39
  1293. package/node_modules/fast-fifo/index.js +0 -48
  1294. package/node_modules/fast-fifo/package.json +0 -28
  1295. package/node_modules/fs-constants/LICENSE +0 -21
  1296. package/node_modules/fs-constants/README.md +0 -26
  1297. package/node_modules/fs-constants/browser.js +0 -1
  1298. package/node_modules/fs-constants/index.js +0 -1
  1299. package/node_modules/fs-constants/package.json +0 -19
  1300. package/node_modules/fs-extra/LICENSE +0 -15
  1301. package/node_modules/fs-extra/README.md +0 -294
  1302. package/node_modules/fs-extra/lib/copy/copy-sync.js +0 -176
  1303. package/node_modules/fs-extra/lib/copy/copy.js +0 -180
  1304. package/node_modules/fs-extra/lib/copy/index.js +0 -7
  1305. package/node_modules/fs-extra/lib/empty/index.js +0 -39
  1306. package/node_modules/fs-extra/lib/ensure/file.js +0 -66
  1307. package/node_modules/fs-extra/lib/ensure/index.js +0 -23
  1308. package/node_modules/fs-extra/lib/ensure/link.js +0 -64
  1309. package/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
  1310. package/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
  1311. package/node_modules/fs-extra/lib/ensure/symlink.js +0 -92
  1312. package/node_modules/fs-extra/lib/esm.mjs +0 -68
  1313. package/node_modules/fs-extra/lib/fs/index.js +0 -146
  1314. package/node_modules/fs-extra/lib/index.js +0 -16
  1315. package/node_modules/fs-extra/lib/json/index.js +0 -16
  1316. package/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
  1317. package/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
  1318. package/node_modules/fs-extra/lib/json/output-json.js +0 -12
  1319. package/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
  1320. package/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
  1321. package/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
  1322. package/node_modules/fs-extra/lib/move/index.js +0 -7
  1323. package/node_modules/fs-extra/lib/move/move-sync.js +0 -55
  1324. package/node_modules/fs-extra/lib/move/move.js +0 -59
  1325. package/node_modules/fs-extra/lib/output-file/index.js +0 -31
  1326. package/node_modules/fs-extra/lib/path-exists/index.js +0 -12
  1327. package/node_modules/fs-extra/lib/remove/index.js +0 -17
  1328. package/node_modules/fs-extra/lib/util/async.js +0 -29
  1329. package/node_modules/fs-extra/lib/util/stat.js +0 -159
  1330. package/node_modules/fs-extra/lib/util/utimes.js +0 -36
  1331. package/node_modules/fs-extra/package.json +0 -71
  1332. package/node_modules/get-caller-file/LICENSE.md +0 -6
  1333. package/node_modules/get-caller-file/README.md +0 -41
  1334. package/node_modules/get-caller-file/index.d.ts +0 -2
  1335. package/node_modules/get-caller-file/index.js +0 -22
  1336. package/node_modules/get-caller-file/index.js.map +0 -1
  1337. package/node_modules/get-caller-file/package.json +0 -42
  1338. package/node_modules/graceful-fs/LICENSE +0 -15
  1339. package/node_modules/graceful-fs/README.md +0 -143
  1340. package/node_modules/graceful-fs/clone.js +0 -23
  1341. package/node_modules/graceful-fs/graceful-fs.js +0 -448
  1342. package/node_modules/graceful-fs/legacy-streams.js +0 -118
  1343. package/node_modules/graceful-fs/package.json +0 -53
  1344. package/node_modules/graceful-fs/polyfills.js +0 -355
  1345. package/node_modules/ieee754/LICENSE +0 -11
  1346. package/node_modules/ieee754/README.md +0 -51
  1347. package/node_modules/ieee754/index.d.ts +0 -10
  1348. package/node_modules/ieee754/index.js +0 -85
  1349. package/node_modules/ieee754/package.json +0 -52
  1350. package/node_modules/inherits/LICENSE +0 -16
  1351. package/node_modules/inherits/README.md +0 -42
  1352. package/node_modules/inherits/inherits.js +0 -9
  1353. package/node_modules/inherits/inherits_browser.js +0 -27
  1354. package/node_modules/inherits/package.json +0 -29
  1355. package/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  1356. package/node_modules/is-fullwidth-code-point/index.js +0 -50
  1357. package/node_modules/is-fullwidth-code-point/license +0 -9
  1358. package/node_modules/is-fullwidth-code-point/package.json +0 -42
  1359. package/node_modules/is-fullwidth-code-point/readme.md +0 -39
  1360. package/node_modules/js-yaml/LICENSE +0 -21
  1361. package/node_modules/js-yaml/README.md +0 -247
  1362. package/node_modules/js-yaml/bin/js-yaml.js +0 -126
  1363. package/node_modules/js-yaml/dist/js-yaml.js +0 -3880
  1364. package/node_modules/js-yaml/dist/js-yaml.min.js +0 -2
  1365. package/node_modules/js-yaml/dist/js-yaml.mjs +0 -3856
  1366. package/node_modules/js-yaml/index.js +0 -47
  1367. package/node_modules/js-yaml/lib/common.js +0 -59
  1368. package/node_modules/js-yaml/lib/dumper.js +0 -965
  1369. package/node_modules/js-yaml/lib/exception.js +0 -55
  1370. package/node_modules/js-yaml/lib/loader.js +0 -1733
  1371. package/node_modules/js-yaml/lib/schema/core.js +0 -11
  1372. package/node_modules/js-yaml/lib/schema/default.js +0 -22
  1373. package/node_modules/js-yaml/lib/schema/failsafe.js +0 -17
  1374. package/node_modules/js-yaml/lib/schema/json.js +0 -19
  1375. package/node_modules/js-yaml/lib/schema.js +0 -121
  1376. package/node_modules/js-yaml/lib/snippet.js +0 -101
  1377. package/node_modules/js-yaml/lib/type/binary.js +0 -125
  1378. package/node_modules/js-yaml/lib/type/bool.js +0 -35
  1379. package/node_modules/js-yaml/lib/type/float.js +0 -97
  1380. package/node_modules/js-yaml/lib/type/int.js +0 -156
  1381. package/node_modules/js-yaml/lib/type/map.js +0 -8
  1382. package/node_modules/js-yaml/lib/type/merge.js +0 -12
  1383. package/node_modules/js-yaml/lib/type/null.js +0 -35
  1384. package/node_modules/js-yaml/lib/type/omap.js +0 -44
  1385. package/node_modules/js-yaml/lib/type/pairs.js +0 -53
  1386. package/node_modules/js-yaml/lib/type/seq.js +0 -8
  1387. package/node_modules/js-yaml/lib/type/set.js +0 -29
  1388. package/node_modules/js-yaml/lib/type/str.js +0 -8
  1389. package/node_modules/js-yaml/lib/type/timestamp.js +0 -88
  1390. package/node_modules/js-yaml/lib/type.js +0 -66
  1391. package/node_modules/js-yaml/package.json +0 -66
  1392. package/node_modules/jsonfile/LICENSE +0 -15
  1393. package/node_modules/jsonfile/README.md +0 -230
  1394. package/node_modules/jsonfile/index.js +0 -88
  1395. package/node_modules/jsonfile/package.json +0 -40
  1396. package/node_modules/jsonfile/utils.js +0 -14
  1397. package/node_modules/lodash.camelcase/LICENSE +0 -47
  1398. package/node_modules/lodash.camelcase/README.md +0 -18
  1399. package/node_modules/lodash.camelcase/index.js +0 -599
  1400. package/node_modules/lodash.camelcase/package.json +0 -17
  1401. package/node_modules/long/LICENSE +0 -202
  1402. package/node_modules/long/README.md +0 -286
  1403. package/node_modules/long/index.d.ts +0 -2
  1404. package/node_modules/long/index.js +0 -1581
  1405. package/node_modules/long/package.json +0 -58
  1406. package/node_modules/long/types.d.ts +0 -474
  1407. package/node_modules/long/umd/index.d.ts +0 -3
  1408. package/node_modules/long/umd/index.js +0 -1622
  1409. package/node_modules/long/umd/package.json +0 -3
  1410. package/node_modules/long/umd/types.d.ts +0 -474
  1411. package/node_modules/mkdirp-classic/LICENSE +0 -21
  1412. package/node_modules/mkdirp-classic/README.md +0 -18
  1413. package/node_modules/mkdirp-classic/index.js +0 -98
  1414. package/node_modules/mkdirp-classic/package.json +0 -18
  1415. package/node_modules/ms/index.js +0 -162
  1416. package/node_modules/ms/license.md +0 -21
  1417. package/node_modules/ms/package.json +0 -38
  1418. package/node_modules/ms/readme.md +0 -59
  1419. package/node_modules/nan/.github/workflows/ci.yml +0 -52
  1420. package/node_modules/nan/.pre-commit-config.yaml +0 -8
  1421. package/node_modules/nan/CHANGELOG.md +0 -599
  1422. package/node_modules/nan/CMakeLists.txt +0 -138
  1423. package/node_modules/nan/LICENSE.md +0 -9
  1424. package/node_modules/nan/README.md +0 -456
  1425. package/node_modules/nan/doc/asyncworker.md +0 -146
  1426. package/node_modules/nan/doc/buffers.md +0 -54
  1427. package/node_modules/nan/doc/callback.md +0 -76
  1428. package/node_modules/nan/doc/converters.md +0 -41
  1429. package/node_modules/nan/doc/errors.md +0 -226
  1430. package/node_modules/nan/doc/json.md +0 -62
  1431. package/node_modules/nan/doc/maybe_types.md +0 -583
  1432. package/node_modules/nan/doc/methods.md +0 -689
  1433. package/node_modules/nan/doc/new.md +0 -147
  1434. package/node_modules/nan/doc/node_misc.md +0 -123
  1435. package/node_modules/nan/doc/object_wrappers.md +0 -263
  1436. package/node_modules/nan/doc/persistent.md +0 -296
  1437. package/node_modules/nan/doc/scopes.md +0 -73
  1438. package/node_modules/nan/doc/script.md +0 -58
  1439. package/node_modules/nan/doc/string_bytes.md +0 -81
  1440. package/node_modules/nan/doc/v8_internals.md +0 -199
  1441. package/node_modules/nan/doc/v8_misc.md +0 -85
  1442. package/node_modules/nan/include_dirs.js +0 -1
  1443. package/node_modules/nan/nan.h +0 -3202
  1444. package/node_modules/nan/nan_callbacks.h +0 -141
  1445. package/node_modules/nan/nan_callbacks_12_inl.h +0 -690
  1446. package/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -524
  1447. package/node_modules/nan/nan_converters.h +0 -72
  1448. package/node_modules/nan/nan_converters_43_inl.h +0 -68
  1449. package/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  1450. package/node_modules/nan/nan_define_own_property_helper.h +0 -29
  1451. package/node_modules/nan/nan_implementation_12_inl.h +0 -430
  1452. package/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  1453. package/node_modules/nan/nan_json.h +0 -166
  1454. package/node_modules/nan/nan_maybe_43_inl.h +0 -360
  1455. package/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  1456. package/node_modules/nan/nan_new.h +0 -340
  1457. package/node_modules/nan/nan_object_wrap.h +0 -156
  1458. package/node_modules/nan/nan_persistent_12_inl.h +0 -132
  1459. package/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  1460. package/node_modules/nan/nan_private.h +0 -73
  1461. package/node_modules/nan/nan_scriptorigin.h +0 -97
  1462. package/node_modules/nan/nan_string_bytes.h +0 -305
  1463. package/node_modules/nan/nan_typedarray_contents.h +0 -96
  1464. package/node_modules/nan/nan_weak.h +0 -453
  1465. package/node_modules/nan/package.json +0 -38
  1466. package/node_modules/nan/tools/1to2.js +0 -412
  1467. package/node_modules/nan/tools/README.md +0 -14
  1468. package/node_modules/nan/tools/package.json +0 -19
  1469. package/node_modules/once/LICENSE +0 -15
  1470. package/node_modules/once/README.md +0 -79
  1471. package/node_modules/once/once.js +0 -42
  1472. package/node_modules/once/package.json +0 -33
  1473. package/node_modules/protobufjs/LICENSE +0 -39
  1474. package/node_modules/protobufjs/README.md +0 -727
  1475. package/node_modules/protobufjs/dist/light/protobuf.js +0 -7839
  1476. package/node_modules/protobufjs/dist/light/protobuf.js.map +0 -1
  1477. package/node_modules/protobufjs/dist/light/protobuf.min.js +0 -8
  1478. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +0 -1
  1479. package/node_modules/protobufjs/dist/minimal/protobuf.js +0 -2736
  1480. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +0 -1
  1481. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +0 -8
  1482. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +0 -1
  1483. package/node_modules/protobufjs/dist/protobuf.js +0 -9643
  1484. package/node_modules/protobufjs/dist/protobuf.js.map +0 -1
  1485. package/node_modules/protobufjs/dist/protobuf.min.js +0 -8
  1486. package/node_modules/protobufjs/dist/protobuf.min.js.map +0 -1
  1487. package/node_modules/protobufjs/ext/debug/README.md +0 -4
  1488. package/node_modules/protobufjs/ext/debug/index.js +0 -71
  1489. package/node_modules/protobufjs/ext/descriptor/README.md +0 -72
  1490. package/node_modules/protobufjs/ext/descriptor/index.d.ts +0 -191
  1491. package/node_modules/protobufjs/ext/descriptor/index.js +0 -1162
  1492. package/node_modules/protobufjs/ext/descriptor/test.js +0 -54
  1493. package/node_modules/protobufjs/google/LICENSE +0 -27
  1494. package/node_modules/protobufjs/google/README.md +0 -1
  1495. package/node_modules/protobufjs/google/api/annotations.json +0 -83
  1496. package/node_modules/protobufjs/google/api/annotations.proto +0 -11
  1497. package/node_modules/protobufjs/google/api/http.json +0 -86
  1498. package/node_modules/protobufjs/google/api/http.proto +0 -31
  1499. package/node_modules/protobufjs/google/protobuf/api.json +0 -118
  1500. package/node_modules/protobufjs/google/protobuf/api.proto +0 -34
  1501. package/node_modules/protobufjs/google/protobuf/descriptor.json +0 -1382
  1502. package/node_modules/protobufjs/google/protobuf/descriptor.proto +0 -535
  1503. package/node_modules/protobufjs/google/protobuf/source_context.json +0 -20
  1504. package/node_modules/protobufjs/google/protobuf/source_context.proto +0 -7
  1505. package/node_modules/protobufjs/google/protobuf/type.json +0 -202
  1506. package/node_modules/protobufjs/google/protobuf/type.proto +0 -89
  1507. package/node_modules/protobufjs/index.d.ts +0 -2799
  1508. package/node_modules/protobufjs/index.js +0 -4
  1509. package/node_modules/protobufjs/light.d.ts +0 -2
  1510. package/node_modules/protobufjs/light.js +0 -4
  1511. package/node_modules/protobufjs/minimal.d.ts +0 -2
  1512. package/node_modules/protobufjs/minimal.js +0 -4
  1513. package/node_modules/protobufjs/package.json +0 -114
  1514. package/node_modules/protobufjs/scripts/postinstall.js +0 -32
  1515. package/node_modules/protobufjs/src/common.js +0 -399
  1516. package/node_modules/protobufjs/src/converter.js +0 -301
  1517. package/node_modules/protobufjs/src/decoder.js +0 -127
  1518. package/node_modules/protobufjs/src/encoder.js +0 -100
  1519. package/node_modules/protobufjs/src/enum.js +0 -223
  1520. package/node_modules/protobufjs/src/field.js +0 -453
  1521. package/node_modules/protobufjs/src/index-light.js +0 -104
  1522. package/node_modules/protobufjs/src/index-minimal.js +0 -36
  1523. package/node_modules/protobufjs/src/index.js +0 -12
  1524. package/node_modules/protobufjs/src/mapfield.js +0 -126
  1525. package/node_modules/protobufjs/src/message.js +0 -143
  1526. package/node_modules/protobufjs/src/method.js +0 -160
  1527. package/node_modules/protobufjs/src/namespace.js +0 -546
  1528. package/node_modules/protobufjs/src/object.js +0 -378
  1529. package/node_modules/protobufjs/src/oneof.js +0 -222
  1530. package/node_modules/protobufjs/src/parse.js +0 -969
  1531. package/node_modules/protobufjs/src/reader.js +0 -416
  1532. package/node_modules/protobufjs/src/reader_buffer.js +0 -51
  1533. package/node_modules/protobufjs/src/root.js +0 -404
  1534. package/node_modules/protobufjs/src/roots.js +0 -18
  1535. package/node_modules/protobufjs/src/rpc/service.js +0 -142
  1536. package/node_modules/protobufjs/src/rpc.js +0 -36
  1537. package/node_modules/protobufjs/src/service.js +0 -189
  1538. package/node_modules/protobufjs/src/tokenize.js +0 -416
  1539. package/node_modules/protobufjs/src/type.js +0 -615
  1540. package/node_modules/protobufjs/src/types.js +0 -196
  1541. package/node_modules/protobufjs/src/typescript.jsdoc +0 -15
  1542. package/node_modules/protobufjs/src/util/longbits.js +0 -200
  1543. package/node_modules/protobufjs/src/util/minimal.js +0 -438
  1544. package/node_modules/protobufjs/src/util.js +0 -215
  1545. package/node_modules/protobufjs/src/verifier.js +0 -177
  1546. package/node_modules/protobufjs/src/wrappers.js +0 -102
  1547. package/node_modules/protobufjs/src/writer.js +0 -465
  1548. package/node_modules/protobufjs/src/writer_buffer.js +0 -85
  1549. package/node_modules/protobufjs/tsconfig.json +0 -8
  1550. package/node_modules/pump/.github/FUNDING.yml +0 -2
  1551. package/node_modules/pump/.travis.yml +0 -5
  1552. package/node_modules/pump/LICENSE +0 -21
  1553. package/node_modules/pump/README.md +0 -74
  1554. package/node_modules/pump/SECURITY.md +0 -5
  1555. package/node_modules/pump/empty.js +0 -1
  1556. package/node_modules/pump/index.js +0 -86
  1557. package/node_modules/pump/package.json +0 -30
  1558. package/node_modules/pump/test-browser.js +0 -66
  1559. package/node_modules/pump/test-node.js +0 -53
  1560. package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  1561. package/node_modules/readable-stream/GOVERNANCE.md +0 -136
  1562. package/node_modules/readable-stream/LICENSE +0 -47
  1563. package/node_modules/readable-stream/README.md +0 -106
  1564. package/node_modules/readable-stream/errors-browser.js +0 -127
  1565. package/node_modules/readable-stream/errors.js +0 -116
  1566. package/node_modules/readable-stream/experimentalWarning.js +0 -17
  1567. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
  1568. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
  1569. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
  1570. package/node_modules/readable-stream/lib/_stream_transform.js +0 -190
  1571. package/node_modules/readable-stream/lib/_stream_writable.js +0 -641
  1572. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
  1573. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
  1574. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
  1575. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
  1576. package/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
  1577. package/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
  1578. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
  1579. package/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
  1580. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  1581. package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  1582. package/node_modules/readable-stream/package.json +0 -68
  1583. package/node_modules/readable-stream/readable-browser.js +0 -9
  1584. package/node_modules/readable-stream/readable.js +0 -16
  1585. package/node_modules/require-directory/.jshintrc +0 -67
  1586. package/node_modules/require-directory/.npmignore +0 -1
  1587. package/node_modules/require-directory/.travis.yml +0 -3
  1588. package/node_modules/require-directory/LICENSE +0 -22
  1589. package/node_modules/require-directory/README.markdown +0 -184
  1590. package/node_modules/require-directory/index.js +0 -86
  1591. package/node_modules/require-directory/package.json +0 -40
  1592. package/node_modules/safe-buffer/LICENSE +0 -21
  1593. package/node_modules/safe-buffer/README.md +0 -584
  1594. package/node_modules/safe-buffer/index.d.ts +0 -187
  1595. package/node_modules/safe-buffer/index.js +0 -65
  1596. package/node_modules/safe-buffer/package.json +0 -51
  1597. package/node_modules/safer-buffer/LICENSE +0 -21
  1598. package/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  1599. package/node_modules/safer-buffer/Readme.md +0 -156
  1600. package/node_modules/safer-buffer/dangerous.js +0 -58
  1601. package/node_modules/safer-buffer/package.json +0 -34
  1602. package/node_modules/safer-buffer/safer.js +0 -77
  1603. package/node_modules/safer-buffer/tests.js +0 -406
  1604. package/node_modules/skillgrade/LICENSE +0 -21
  1605. package/node_modules/skillgrade/README.md +0 -253
  1606. package/node_modules/skillgrade/bin/skillgrade.js +0 -2
  1607. package/node_modules/skillgrade/dist/agents/claude.d.ts +0 -5
  1608. package/node_modules/skillgrade/dist/agents/claude.js +0 -19
  1609. package/node_modules/skillgrade/dist/agents/codex.d.ts +0 -5
  1610. package/node_modules/skillgrade/dist/agents/codex.js +0 -19
  1611. package/node_modules/skillgrade/dist/agents/gemini.d.ts +0 -5
  1612. package/node_modules/skillgrade/dist/agents/gemini.js +0 -19
  1613. package/node_modules/skillgrade/dist/agents/registry.d.ts +0 -14
  1614. package/node_modules/skillgrade/dist/agents/registry.js +0 -27
  1615. package/node_modules/skillgrade/dist/analytics/engine.d.ts +0 -19
  1616. package/node_modules/skillgrade/dist/analytics/engine.js +0 -105
  1617. package/node_modules/skillgrade/dist/commands/init.d.ts +0 -4
  1618. package/node_modules/skillgrade/dist/commands/init.js +0 -335
  1619. package/node_modules/skillgrade/dist/commands/preview.d.ts +0 -2
  1620. package/node_modules/skillgrade/dist/commands/preview.js +0 -56
  1621. package/node_modules/skillgrade/dist/commands/run.d.ts +0 -16
  1622. package/node_modules/skillgrade/dist/commands/run.js +0 -302
  1623. package/node_modules/skillgrade/dist/core/config.d.ts +0 -10
  1624. package/node_modules/skillgrade/dist/core/config.js +0 -213
  1625. package/node_modules/skillgrade/dist/core/config.types.d.ts +0 -88
  1626. package/node_modules/skillgrade/dist/core/config.types.js +0 -9
  1627. package/node_modules/skillgrade/dist/core/skills.d.ts +0 -15
  1628. package/node_modules/skillgrade/dist/core/skills.js +0 -103
  1629. package/node_modules/skillgrade/dist/evalRunner.d.ts +0 -26
  1630. package/node_modules/skillgrade/dist/evalRunner.js +0 -316
  1631. package/node_modules/skillgrade/dist/graders/index.d.ts +0 -30
  1632. package/node_modules/skillgrade/dist/graders/index.js +0 -248
  1633. package/node_modules/skillgrade/dist/providers/docker.d.ts +0 -32
  1634. package/node_modules/skillgrade/dist/providers/docker.js +0 -255
  1635. package/node_modules/skillgrade/dist/providers/local.d.ts +0 -7
  1636. package/node_modules/skillgrade/dist/providers/local.js +0 -86
  1637. package/node_modules/skillgrade/dist/reporters/browser.d.ts +0 -2
  1638. package/node_modules/skillgrade/dist/reporters/browser.js +0 -90
  1639. package/node_modules/skillgrade/dist/reporters/cli.d.ts +0 -2
  1640. package/node_modules/skillgrade/dist/reporters/cli.js +0 -116
  1641. package/node_modules/skillgrade/dist/skillgrade.d.ts +0 -20
  1642. package/node_modules/skillgrade/dist/skillgrade.js +0 -179
  1643. package/node_modules/skillgrade/dist/types.d.ts +0 -72
  1644. package/node_modules/skillgrade/dist/types.js +0 -7
  1645. package/node_modules/skillgrade/dist/utils/cli.d.ts +0 -56
  1646. package/node_modules/skillgrade/dist/utils/cli.js +0 -141
  1647. package/node_modules/skillgrade/dist/utils/env.d.ts +0 -9
  1648. package/node_modules/skillgrade/dist/utils/env.js +0 -30
  1649. package/node_modules/skillgrade/dist/viewer.html +0 -791
  1650. package/node_modules/skillgrade/package.json +0 -69
  1651. package/node_modules/skillgrade/templates/eval.yaml.template +0 -61
  1652. package/node_modules/split-ca/.gitlab-ci.yml +0 -19
  1653. package/node_modules/split-ca/.npmignore +0 -1
  1654. package/node_modules/split-ca/Makefile +0 -4
  1655. package/node_modules/split-ca/README.md +0 -51
  1656. package/node_modules/split-ca/index.js +0 -27
  1657. package/node_modules/split-ca/package.json +0 -38
  1658. package/node_modules/split-ca/test/certs/empty.ca +0 -0
  1659. package/node_modules/split-ca/test/certs/garbage.ca +0 -16
  1660. package/node_modules/split-ca/test/certs/split0.ca +0 -18
  1661. package/node_modules/split-ca/test/certs/split1.ca +0 -13
  1662. package/node_modules/split-ca/test/certs/test-chain.bundle +0 -31
  1663. package/node_modules/split-ca/test/splitCa.test.js +0 -45
  1664. package/node_modules/ssh2/.eslintignore +0 -4
  1665. package/node_modules/ssh2/.eslintrc.js +0 -5
  1666. package/node_modules/ssh2/.github/workflows/ci.yml +0 -110
  1667. package/node_modules/ssh2/.github/workflows/lint.yml +0 -27
  1668. package/node_modules/ssh2/LICENSE +0 -19
  1669. package/node_modules/ssh2/README.md +0 -1529
  1670. package/node_modules/ssh2/SFTP.md +0 -413
  1671. package/node_modules/ssh2/examples/server-chat.js +0 -238
  1672. package/node_modules/ssh2/examples/sftp-server-download-only.js +0 -134
  1673. package/node_modules/ssh2/install.js +0 -27
  1674. package/node_modules/ssh2/lib/Channel.js +0 -295
  1675. package/node_modules/ssh2/lib/agent.js +0 -1123
  1676. package/node_modules/ssh2/lib/client.js +0 -2176
  1677. package/node_modules/ssh2/lib/http-agents.js +0 -84
  1678. package/node_modules/ssh2/lib/index.js +0 -44
  1679. package/node_modules/ssh2/lib/keygen.js +0 -582
  1680. package/node_modules/ssh2/lib/protocol/Protocol.js +0 -2136
  1681. package/node_modules/ssh2/lib/protocol/SFTP.js +0 -4052
  1682. package/node_modules/ssh2/lib/protocol/constants.js +0 -356
  1683. package/node_modules/ssh2/lib/protocol/crypto/binding.gyp +0 -23
  1684. package/node_modules/ssh2/lib/protocol/crypto/build/Makefile +0 -347
  1685. package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto/src/binding.o.d +0 -273
  1686. package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/sshcrypto.node.d +0 -1
  1687. package/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto/src/binding.o +0 -0
  1688. package/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
  1689. package/node_modules/ssh2/lib/protocol/crypto/build/binding.Makefile +0 -6
  1690. package/node_modules/ssh2/lib/protocol/crypto/build/gyp-mac-tool +0 -766
  1691. package/node_modules/ssh2/lib/protocol/crypto/build/sshcrypto.target.mk +0 -187
  1692. package/node_modules/ssh2/lib/protocol/crypto/poly1305.js +0 -43
  1693. package/node_modules/ssh2/lib/protocol/crypto/src/binding.cc +0 -2300
  1694. package/node_modules/ssh2/lib/protocol/crypto.js +0 -1602
  1695. package/node_modules/ssh2/lib/protocol/handlers.js +0 -16
  1696. package/node_modules/ssh2/lib/protocol/handlers.misc.js +0 -1285
  1697. package/node_modules/ssh2/lib/protocol/kex.js +0 -1908
  1698. package/node_modules/ssh2/lib/protocol/keyParser.js +0 -1484
  1699. package/node_modules/ssh2/lib/protocol/node-fs-compat.js +0 -115
  1700. package/node_modules/ssh2/lib/protocol/utils.js +0 -356
  1701. package/node_modules/ssh2/lib/protocol/zlib.js +0 -255
  1702. package/node_modules/ssh2/lib/server.js +0 -1380
  1703. package/node_modules/ssh2/lib/utils.js +0 -336
  1704. package/node_modules/ssh2/package.json +0 -49
  1705. package/node_modules/ssh2/test/common.js +0 -316
  1706. package/node_modules/ssh2/test/fixtures/bad_rsa_private_key +0 -26
  1707. package/node_modules/ssh2/test/fixtures/https_cert.pem +0 -33
  1708. package/node_modules/ssh2/test/fixtures/https_key.pem +0 -52
  1709. package/node_modules/ssh2/test/fixtures/id_dsa +0 -12
  1710. package/node_modules/ssh2/test/fixtures/id_ecdsa +0 -5
  1711. package/node_modules/ssh2/test/fixtures/id_rsa +0 -15
  1712. package/node_modules/ssh2/test/fixtures/id_rsa.ppk +0 -26
  1713. package/node_modules/ssh2/test/fixtures/id_rsa_enc +0 -30
  1714. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa +0 -21
  1715. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa.pub +0 -1
  1716. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa.pub.result +0 -7
  1717. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa.result +0 -7
  1718. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc +0 -22
  1719. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc.pub +0 -1
  1720. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc.pub.result +0 -7
  1721. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc.result +0 -7
  1722. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm +0 -23
  1723. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm.pub +0 -1
  1724. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm.pub.result +0 -7
  1725. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm.result +0 -7
  1726. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa +0 -9
  1727. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa.pub +0 -1
  1728. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa.pub.result +0 -7
  1729. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa.result +0 -7
  1730. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc +0 -10
  1731. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc.pub +0 -1
  1732. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc.pub.result +0 -8
  1733. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc.result +0 -7
  1734. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm +0 -10
  1735. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm.pub +0 -1
  1736. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm.pub.result +0 -8
  1737. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm.result +0 -7
  1738. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519 +0 -7
  1739. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519.pub +0 -1
  1740. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519.pub.result +0 -7
  1741. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519.result +0 -7
  1742. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa +0 -27
  1743. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa.pub +0 -1
  1744. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa.pub.result +0 -7
  1745. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa.result +0 -7
  1746. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc +0 -28
  1747. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc.pub +0 -1
  1748. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc.pub.result +0 -8
  1749. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc.result +0 -7
  1750. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm +0 -29
  1751. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm.pub +0 -1
  1752. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm.pub.result +0 -8
  1753. package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm.result +0 -7
  1754. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa +0 -12
  1755. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa.pub +0 -1
  1756. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa.pub.result +0 -7
  1757. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa.result +0 -7
  1758. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc +0 -15
  1759. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc.pub +0 -1
  1760. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc.pub.result +0 -8
  1761. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc.result +0 -7
  1762. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa +0 -5
  1763. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa.pub +0 -1
  1764. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa.pub.result +0 -7
  1765. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa.result +0 -7
  1766. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc +0 -8
  1767. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc.pub +0 -1
  1768. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc.pub.result +0 -8
  1769. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc.result +0 -7
  1770. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa +0 -27
  1771. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa.pub +0 -1
  1772. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa.pub.result +0 -7
  1773. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa.result +0 -7
  1774. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc +0 -30
  1775. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc.pub +0 -1
  1776. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc.pub.result +0 -8
  1777. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc.result +0 -7
  1778. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256 +0 -54
  1779. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256.pub +0 -1
  1780. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256.pub.result +0 -6
  1781. package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256.result +0 -6
  1782. package/node_modules/ssh2/test/fixtures/keyParser/ppk_dsa_enc +0 -17
  1783. package/node_modules/ssh2/test/fixtures/keyParser/ppk_dsa_enc.result +0 -7
  1784. package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa +0 -26
  1785. package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa.result +0 -7
  1786. package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa_enc +0 -18
  1787. package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa_enc.result +0 -7
  1788. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa.pub +0 -9
  1789. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa.pub.result +0 -7
  1790. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa2.pub +0 -10
  1791. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa2.pub.result +0 -7
  1792. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa3.pub +0 -11
  1793. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa3.pub.result +0 -7
  1794. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa4.pub +0 -11
  1795. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa4.pub.result +0 -7
  1796. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa5.pub +0 -8
  1797. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa5.pub.result +0 -7
  1798. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa6.pub +0 -13
  1799. package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa6.pub.result +0 -7
  1800. package/node_modules/ssh2/test/fixtures/openssh_new_rsa +0 -27
  1801. package/node_modules/ssh2/test/fixtures/ssh_host_dsa_key +0 -12
  1802. package/node_modules/ssh2/test/fixtures/ssh_host_ecdsa_key +0 -5
  1803. package/node_modules/ssh2/test/fixtures/ssh_host_rsa_key +0 -15
  1804. package/node_modules/ssh2/test/test-exec.js +0 -578
  1805. package/node_modules/ssh2/test/test-integration-openssh.js +0 -486
  1806. package/node_modules/ssh2/test/test-keygen.js +0 -60
  1807. package/node_modules/ssh2/test/test-misc-client-server.js +0 -1460
  1808. package/node_modules/ssh2/test/test-openssh.js +0 -261
  1809. package/node_modules/ssh2/test/test-protocol-crypto.js +0 -631
  1810. package/node_modules/ssh2/test/test-protocol-keyparser.js +0 -177
  1811. package/node_modules/ssh2/test/test-server-hostkeys.js +0 -138
  1812. package/node_modules/ssh2/test/test-sftp.js +0 -842
  1813. package/node_modules/ssh2/test/test-shell.js +0 -109
  1814. package/node_modules/ssh2/test/test-userauth-agent-openssh.js +0 -110
  1815. package/node_modules/ssh2/test/test-userauth-agent.js +0 -171
  1816. package/node_modules/ssh2/test/test-userauth.js +0 -611
  1817. package/node_modules/ssh2/test/test-worker-imports.js +0 -25
  1818. package/node_modules/ssh2/test/test.js +0 -20
  1819. package/node_modules/ssh2/util/build_pagent.bat +0 -2
  1820. package/node_modules/ssh2/util/pagent.c +0 -88
  1821. package/node_modules/ssh2/util/pagent.exe +0 -0
  1822. package/node_modules/streamx/LICENSE +0 -21
  1823. package/node_modules/streamx/README.md +0 -490
  1824. package/node_modules/streamx/index.js +0 -1232
  1825. package/node_modules/streamx/package.json +0 -36
  1826. package/node_modules/string-width/index.d.ts +0 -29
  1827. package/node_modules/string-width/index.js +0 -47
  1828. package/node_modules/string-width/license +0 -9
  1829. package/node_modules/string-width/package.json +0 -56
  1830. package/node_modules/string-width/readme.md +0 -50
  1831. package/node_modules/string_decoder/LICENSE +0 -48
  1832. package/node_modules/string_decoder/README.md +0 -47
  1833. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  1834. package/node_modules/string_decoder/package.json +0 -34
  1835. package/node_modules/strip-ansi/index.d.ts +0 -17
  1836. package/node_modules/strip-ansi/index.js +0 -4
  1837. package/node_modules/strip-ansi/license +0 -9
  1838. package/node_modules/strip-ansi/package.json +0 -54
  1839. package/node_modules/strip-ansi/readme.md +0 -46
  1840. package/node_modules/tar-fs/.travis.yml +0 -6
  1841. package/node_modules/tar-fs/LICENSE +0 -21
  1842. package/node_modules/tar-fs/README.md +0 -165
  1843. package/node_modules/tar-fs/index.js +0 -363
  1844. package/node_modules/tar-fs/node_modules/tar-stream/LICENSE +0 -21
  1845. package/node_modules/tar-fs/node_modules/tar-stream/README.md +0 -168
  1846. package/node_modules/tar-fs/node_modules/tar-stream/extract.js +0 -257
  1847. package/node_modules/tar-fs/node_modules/tar-stream/headers.js +0 -295
  1848. package/node_modules/tar-fs/node_modules/tar-stream/index.js +0 -2
  1849. package/node_modules/tar-fs/node_modules/tar-stream/pack.js +0 -255
  1850. package/node_modules/tar-fs/node_modules/tar-stream/package.json +0 -58
  1851. package/node_modules/tar-fs/node_modules/tar-stream/sandbox.js +0 -11
  1852. package/node_modules/tar-fs/package.json +0 -41
  1853. package/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
  1854. package/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
  1855. package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  1856. package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  1857. package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  1858. package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  1859. package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  1860. package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  1861. package/node_modules/tar-fs/test/fixtures/e/file +0 -0
  1862. package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  1863. package/node_modules/tar-fs/test/index.js +0 -346
  1864. package/node_modules/tar-stream/LICENSE +0 -21
  1865. package/node_modules/tar-stream/README.md +0 -183
  1866. package/node_modules/tar-stream/constants.js +0 -14
  1867. package/node_modules/tar-stream/extract.js +0 -406
  1868. package/node_modules/tar-stream/headers.js +0 -321
  1869. package/node_modules/tar-stream/index.js +0 -2
  1870. package/node_modules/tar-stream/pack.js +0 -287
  1871. package/node_modules/tar-stream/package.json +0 -42
  1872. package/node_modules/teex/LICENSE +0 -21
  1873. package/node_modules/teex/README.md +0 -31
  1874. package/node_modules/teex/example.js +0 -16
  1875. package/node_modules/teex/index.js +0 -52
  1876. package/node_modules/teex/package.json +0 -26
  1877. package/node_modules/teex/test.js +0 -68
  1878. package/node_modules/text-decoder/LICENSE +0 -201
  1879. package/node_modules/text-decoder/README.md +0 -36
  1880. package/node_modules/text-decoder/index.js +0 -64
  1881. package/node_modules/text-decoder/lib/pass-through-decoder.js +0 -19
  1882. package/node_modules/text-decoder/lib/utf8-decoder.js +0 -185
  1883. package/node_modules/text-decoder/package.json +0 -39
  1884. package/node_modules/tweetnacl/.npmignore +0 -4
  1885. package/node_modules/tweetnacl/AUTHORS.md +0 -28
  1886. package/node_modules/tweetnacl/CHANGELOG.md +0 -221
  1887. package/node_modules/tweetnacl/LICENSE +0 -24
  1888. package/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md +0 -20
  1889. package/node_modules/tweetnacl/README.md +0 -459
  1890. package/node_modules/tweetnacl/nacl-fast.js +0 -2388
  1891. package/node_modules/tweetnacl/nacl-fast.min.js +0 -2
  1892. package/node_modules/tweetnacl/nacl.d.ts +0 -98
  1893. package/node_modules/tweetnacl/nacl.js +0 -1175
  1894. package/node_modules/tweetnacl/nacl.min.js +0 -1
  1895. package/node_modules/tweetnacl/package.json +0 -58
  1896. package/node_modules/universalify/LICENSE +0 -20
  1897. package/node_modules/universalify/README.md +0 -76
  1898. package/node_modules/universalify/index.js +0 -24
  1899. package/node_modules/universalify/package.json +0 -34
  1900. package/node_modules/util-deprecate/History.md +0 -16
  1901. package/node_modules/util-deprecate/LICENSE +0 -24
  1902. package/node_modules/util-deprecate/README.md +0 -53
  1903. package/node_modules/util-deprecate/browser.js +0 -67
  1904. package/node_modules/util-deprecate/node.js +0 -6
  1905. package/node_modules/util-deprecate/package.json +0 -27
  1906. package/node_modules/uuid/CHANGELOG.md +0 -292
  1907. package/node_modules/uuid/CONTRIBUTING.md +0 -18
  1908. package/node_modules/uuid/LICENSE.md +0 -9
  1909. package/node_modules/uuid/README.md +0 -584
  1910. package/node_modules/uuid/dist/bin/uuid +0 -2
  1911. package/node_modules/uuid/dist/commonjs-browser/index.js +0 -104
  1912. package/node_modules/uuid/dist/commonjs-browser/max.js +0 -7
  1913. package/node_modules/uuid/dist/commonjs-browser/md5.js +0 -200
  1914. package/node_modules/uuid/dist/commonjs-browser/native.js +0 -10
  1915. package/node_modules/uuid/dist/commonjs-browser/nil.js +0 -7
  1916. package/node_modules/uuid/dist/commonjs-browser/parse.js +0 -44
  1917. package/node_modules/uuid/dist/commonjs-browser/regex.js +0 -7
  1918. package/node_modules/uuid/dist/commonjs-browser/rng.js +0 -23
  1919. package/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -82
  1920. package/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -38
  1921. package/node_modules/uuid/dist/commonjs-browser/v1.js +0 -131
  1922. package/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +0 -26
  1923. package/node_modules/uuid/dist/commonjs-browser/v3.js +0 -11
  1924. package/node_modules/uuid/dist/commonjs-browser/v35.js +0 -63
  1925. package/node_modules/uuid/dist/commonjs-browser/v4.js +0 -32
  1926. package/node_modules/uuid/dist/commonjs-browser/v5.js +0 -11
  1927. package/node_modules/uuid/dist/commonjs-browser/v6.js +0 -42
  1928. package/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +0 -26
  1929. package/node_modules/uuid/dist/commonjs-browser/v7.js +0 -152
  1930. package/node_modules/uuid/dist/commonjs-browser/validate.js +0 -12
  1931. package/node_modules/uuid/dist/commonjs-browser/version.js +0 -15
  1932. package/node_modules/uuid/dist/esm-browser/index.js +0 -14
  1933. package/node_modules/uuid/dist/esm-browser/max.js +0 -1
  1934. package/node_modules/uuid/dist/esm-browser/md5.js +0 -194
  1935. package/node_modules/uuid/dist/esm-browser/native.js +0 -4
  1936. package/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  1937. package/node_modules/uuid/dist/esm-browser/parse.js +0 -37
  1938. package/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  1939. package/node_modules/uuid/dist/esm-browser/rng.js +0 -17
  1940. package/node_modules/uuid/dist/esm-browser/sha1.js +0 -76
  1941. package/node_modules/uuid/dist/esm-browser/stringify.js +0 -31
  1942. package/node_modules/uuid/dist/esm-browser/v1.js +0 -125
  1943. package/node_modules/uuid/dist/esm-browser/v1ToV6.js +0 -20
  1944. package/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  1945. package/node_modules/uuid/dist/esm-browser/v35.js +0 -55
  1946. package/node_modules/uuid/dist/esm-browser/v4.js +0 -25
  1947. package/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  1948. package/node_modules/uuid/dist/esm-browser/v6.js +0 -36
  1949. package/node_modules/uuid/dist/esm-browser/v6ToV1.js +0 -20
  1950. package/node_modules/uuid/dist/esm-browser/v7.js +0 -146
  1951. package/node_modules/uuid/dist/esm-browser/validate.js +0 -5
  1952. package/node_modules/uuid/dist/esm-browser/version.js +0 -8
  1953. package/node_modules/uuid/dist/esm-node/index.js +0 -14
  1954. package/node_modules/uuid/dist/esm-node/max.js +0 -1
  1955. package/node_modules/uuid/dist/esm-node/md5.js +0 -10
  1956. package/node_modules/uuid/dist/esm-node/native.js +0 -4
  1957. package/node_modules/uuid/dist/esm-node/nil.js +0 -1
  1958. package/node_modules/uuid/dist/esm-node/parse.js +0 -37
  1959. package/node_modules/uuid/dist/esm-node/regex.js +0 -1
  1960. package/node_modules/uuid/dist/esm-node/rng.js +0 -10
  1961. package/node_modules/uuid/dist/esm-node/sha1.js +0 -10
  1962. package/node_modules/uuid/dist/esm-node/stringify.js +0 -31
  1963. package/node_modules/uuid/dist/esm-node/v1.js +0 -125
  1964. package/node_modules/uuid/dist/esm-node/v1ToV6.js +0 -20
  1965. package/node_modules/uuid/dist/esm-node/v3.js +0 -4
  1966. package/node_modules/uuid/dist/esm-node/v35.js +0 -55
  1967. package/node_modules/uuid/dist/esm-node/v4.js +0 -25
  1968. package/node_modules/uuid/dist/esm-node/v5.js +0 -4
  1969. package/node_modules/uuid/dist/esm-node/v6.js +0 -32
  1970. package/node_modules/uuid/dist/esm-node/v6ToV1.js +0 -20
  1971. package/node_modules/uuid/dist/esm-node/v7.js +0 -146
  1972. package/node_modules/uuid/dist/esm-node/validate.js +0 -5
  1973. package/node_modules/uuid/dist/esm-node/version.js +0 -8
  1974. package/node_modules/uuid/dist/index.js +0 -104
  1975. package/node_modules/uuid/dist/max.js +0 -7
  1976. package/node_modules/uuid/dist/md5-browser.js +0 -200
  1977. package/node_modules/uuid/dist/md5.js +0 -17
  1978. package/node_modules/uuid/dist/native-browser.js +0 -10
  1979. package/node_modules/uuid/dist/native.js +0 -11
  1980. package/node_modules/uuid/dist/nil.js +0 -7
  1981. package/node_modules/uuid/dist/parse.js +0 -44
  1982. package/node_modules/uuid/dist/regex.js +0 -7
  1983. package/node_modules/uuid/dist/rng-browser.js +0 -23
  1984. package/node_modules/uuid/dist/rng.js +0 -17
  1985. package/node_modules/uuid/dist/sha1-browser.js +0 -82
  1986. package/node_modules/uuid/dist/sha1.js +0 -17
  1987. package/node_modules/uuid/dist/stringify.js +0 -38
  1988. package/node_modules/uuid/dist/uuid-bin.js +0 -75
  1989. package/node_modules/uuid/dist/v1.js +0 -131
  1990. package/node_modules/uuid/dist/v1ToV6.js +0 -26
  1991. package/node_modules/uuid/dist/v3.js +0 -11
  1992. package/node_modules/uuid/dist/v35.js +0 -63
  1993. package/node_modules/uuid/dist/v4.js +0 -32
  1994. package/node_modules/uuid/dist/v5.js +0 -11
  1995. package/node_modules/uuid/dist/v6.js +0 -38
  1996. package/node_modules/uuid/dist/v6ToV1.js +0 -26
  1997. package/node_modules/uuid/dist/v7.js +0 -152
  1998. package/node_modules/uuid/dist/validate.js +0 -12
  1999. package/node_modules/uuid/dist/version.js +0 -15
  2000. package/node_modules/uuid/package.json +0 -142
  2001. package/node_modules/uuid/wrapper.mjs +0 -15
  2002. package/node_modules/wrap-ansi/index.js +0 -216
  2003. package/node_modules/wrap-ansi/license +0 -9
  2004. package/node_modules/wrap-ansi/package.json +0 -62
  2005. package/node_modules/wrap-ansi/readme.md +0 -91
  2006. package/node_modules/wrappy/LICENSE +0 -15
  2007. package/node_modules/wrappy/README.md +0 -36
  2008. package/node_modules/wrappy/package.json +0 -29
  2009. package/node_modules/wrappy/wrappy.js +0 -33
  2010. package/node_modules/y18n/LICENSE +0 -13
  2011. package/node_modules/y18n/README.md +0 -127
  2012. package/node_modules/y18n/build/index.cjs +0 -203
  2013. package/node_modules/y18n/build/lib/cjs.js +0 -6
  2014. package/node_modules/y18n/build/lib/index.js +0 -174
  2015. package/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
  2016. package/node_modules/y18n/index.mjs +0 -8
  2017. package/node_modules/y18n/package.json +0 -70
  2018. package/node_modules/yargs/LICENSE +0 -21
  2019. package/node_modules/yargs/README.md +0 -204
  2020. package/node_modules/yargs/browser.d.ts +0 -5
  2021. package/node_modules/yargs/browser.mjs +0 -7
  2022. package/node_modules/yargs/build/index.cjs +0 -1
  2023. package/node_modules/yargs/build/lib/argsert.js +0 -62
  2024. package/node_modules/yargs/build/lib/command.js +0 -449
  2025. package/node_modules/yargs/build/lib/completion-templates.js +0 -48
  2026. package/node_modules/yargs/build/lib/completion.js +0 -243
  2027. package/node_modules/yargs/build/lib/middleware.js +0 -88
  2028. package/node_modules/yargs/build/lib/parse-command.js +0 -32
  2029. package/node_modules/yargs/build/lib/typings/common-types.js +0 -9
  2030. package/node_modules/yargs/build/lib/typings/yargs-parser-types.js +0 -1
  2031. package/node_modules/yargs/build/lib/usage.js +0 -584
  2032. package/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
  2033. package/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
  2034. package/node_modules/yargs/build/lib/utils/levenshtein.js +0 -34
  2035. package/node_modules/yargs/build/lib/utils/maybe-async-result.js +0 -17
  2036. package/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
  2037. package/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
  2038. package/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
  2039. package/node_modules/yargs/build/lib/utils/which-module.js +0 -10
  2040. package/node_modules/yargs/build/lib/validation.js +0 -305
  2041. package/node_modules/yargs/build/lib/yargs-factory.js +0 -1512
  2042. package/node_modules/yargs/build/lib/yerror.js +0 -9
  2043. package/node_modules/yargs/helpers/helpers.mjs +0 -10
  2044. package/node_modules/yargs/helpers/index.js +0 -14
  2045. package/node_modules/yargs/helpers/package.json +0 -3
  2046. package/node_modules/yargs/index.cjs +0 -53
  2047. package/node_modules/yargs/index.mjs +0 -8
  2048. package/node_modules/yargs/lib/platform-shims/browser.mjs +0 -95
  2049. package/node_modules/yargs/lib/platform-shims/esm.mjs +0 -73
  2050. package/node_modules/yargs/locales/be.json +0 -46
  2051. package/node_modules/yargs/locales/cs.json +0 -51
  2052. package/node_modules/yargs/locales/de.json +0 -46
  2053. package/node_modules/yargs/locales/en.json +0 -55
  2054. package/node_modules/yargs/locales/es.json +0 -46
  2055. package/node_modules/yargs/locales/fi.json +0 -49
  2056. package/node_modules/yargs/locales/fr.json +0 -53
  2057. package/node_modules/yargs/locales/hi.json +0 -49
  2058. package/node_modules/yargs/locales/hu.json +0 -46
  2059. package/node_modules/yargs/locales/id.json +0 -50
  2060. package/node_modules/yargs/locales/it.json +0 -46
  2061. package/node_modules/yargs/locales/ja.json +0 -51
  2062. package/node_modules/yargs/locales/ko.json +0 -49
  2063. package/node_modules/yargs/locales/nb.json +0 -44
  2064. package/node_modules/yargs/locales/nl.json +0 -49
  2065. package/node_modules/yargs/locales/nn.json +0 -44
  2066. package/node_modules/yargs/locales/pirate.json +0 -13
  2067. package/node_modules/yargs/locales/pl.json +0 -49
  2068. package/node_modules/yargs/locales/pt.json +0 -45
  2069. package/node_modules/yargs/locales/pt_BR.json +0 -48
  2070. package/node_modules/yargs/locales/ru.json +0 -51
  2071. package/node_modules/yargs/locales/th.json +0 -46
  2072. package/node_modules/yargs/locales/tr.json +0 -48
  2073. package/node_modules/yargs/locales/uk_UA.json +0 -51
  2074. package/node_modules/yargs/locales/uz.json +0 -52
  2075. package/node_modules/yargs/locales/zh_CN.json +0 -48
  2076. package/node_modules/yargs/locales/zh_TW.json +0 -51
  2077. package/node_modules/yargs/package.json +0 -123
  2078. package/node_modules/yargs/yargs +0 -9
  2079. package/node_modules/yargs/yargs.mjs +0 -10
  2080. package/node_modules/yargs-parser/LICENSE.txt +0 -14
  2081. package/node_modules/yargs-parser/README.md +0 -518
  2082. package/node_modules/yargs-parser/browser.js +0 -29
  2083. package/node_modules/yargs-parser/build/index.cjs +0 -1050
  2084. package/node_modules/yargs-parser/build/lib/index.js +0 -62
  2085. package/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
  2086. package/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
  2087. package/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
  2088. package/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1045
  2089. 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
- }