pcp-server-ruby-sdk 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3137) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +41 -0
  3. data/Gemfile +10 -0
  4. data/Gemfile.lock +91 -0
  5. data/LICENSE +21 -0
  6. data/PCP-server-Ruby-SDK.gemspec +42 -0
  7. data/README.md +190 -0
  8. data/Rakefile +18 -0
  9. data/changelog.config.js +80 -0
  10. data/commitlint.config.js +1 -0
  11. data/coverage/.last_run.json +5 -0
  12. data/coverage/.resultset.json +325 -0
  13. data/coverage/.resultset.json.lock +0 -0
  14. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc.png +0 -0
  15. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc_disabled.png +0 -0
  16. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_both.png +0 -0
  17. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc.png +0 -0
  18. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc_disabled.png +0 -0
  19. data/coverage/assets/0.12.3/application.css +1 -0
  20. data/coverage/assets/0.12.3/application.js +7 -0
  21. data/coverage/assets/0.12.3/colorbox/border.png +0 -0
  22. data/coverage/assets/0.12.3/colorbox/controls.png +0 -0
  23. data/coverage/assets/0.12.3/colorbox/loading.gif +0 -0
  24. data/coverage/assets/0.12.3/colorbox/loading_background.png +0 -0
  25. data/coverage/assets/0.12.3/favicon_green.png +0 -0
  26. data/coverage/assets/0.12.3/favicon_red.png +0 -0
  27. data/coverage/assets/0.12.3/favicon_yellow.png +0 -0
  28. data/coverage/assets/0.12.3/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  29. data/coverage/assets/0.12.3/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  30. data/coverage/assets/0.12.3/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  31. data/coverage/assets/0.12.3/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  32. data/coverage/assets/0.12.3/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  33. data/coverage/assets/0.12.3/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  34. data/coverage/assets/0.12.3/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  35. data/coverage/assets/0.12.3/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  36. data/coverage/assets/0.12.3/images/ui-icons_222222_256x240.png +0 -0
  37. data/coverage/assets/0.12.3/images/ui-icons_2e83ff_256x240.png +0 -0
  38. data/coverage/assets/0.12.3/images/ui-icons_454545_256x240.png +0 -0
  39. data/coverage/assets/0.12.3/images/ui-icons_888888_256x240.png +0 -0
  40. data/coverage/assets/0.12.3/images/ui-icons_cd0a0a_256x240.png +0 -0
  41. data/coverage/assets/0.12.3/loading.gif +0 -0
  42. data/coverage/assets/0.12.3/magnify.png +0 -0
  43. data/coverage/coverage.json +352 -0
  44. data/coverage/index.html +3953 -0
  45. data/docs/APIError.md +28 -0
  46. data/docs/Address.md +30 -0
  47. data/docs/AddressPersonal.md +32 -0
  48. data/docs/AllowedPaymentActions.md +15 -0
  49. data/docs/AmountOfMoney.md +20 -0
  50. data/docs/ApplePaymentDataTokenHeaderInformation.md +20 -0
  51. data/docs/ApplePaymentDataTokenInformation.md +22 -0
  52. data/docs/AuthorizationMode.md +15 -0
  53. data/docs/BankAccountInformation.md +20 -0
  54. data/docs/CancelItem.md +20 -0
  55. data/docs/CancelPaymentRequest.md +18 -0
  56. data/docs/CancelPaymentResponse.md +18 -0
  57. data/docs/CancelRequest.md +22 -0
  58. data/docs/CancelResponse.md +20 -0
  59. data/docs/CancelType.md +15 -0
  60. data/docs/CancellationReason.md +15 -0
  61. data/docs/CaptureOutput.md +24 -0
  62. data/docs/CapturePaymentRequest.md +26 -0
  63. data/docs/CapturePaymentResponse.md +24 -0
  64. data/docs/CardFraudResults.md +18 -0
  65. data/docs/CardInfo.md +18 -0
  66. data/docs/CardPaymentDetails.md +24 -0
  67. data/docs/CardPaymentMethodSpecificInput.md +40 -0
  68. data/docs/CardPaymentMethodSpecificOutput.md +24 -0
  69. data/docs/CardRecurrenceDetails.md +18 -0
  70. data/docs/CartItemInput.md +20 -0
  71. data/docs/CartItemInvoiceData.md +18 -0
  72. data/docs/CartItemOrderStatus.md +20 -0
  73. data/docs/CartItemPatch.md +20 -0
  74. data/docs/CartItemResult.md +20 -0
  75. data/docs/CartItemStatus.md +15 -0
  76. data/docs/CheckoutApi.md +412 -0
  77. data/docs/CheckoutReferences.md +20 -0
  78. data/docs/CheckoutResponse.md +42 -0
  79. data/docs/CheckoutsResponse.md +20 -0
  80. data/docs/CommerceCaseApi.md +294 -0
  81. data/docs/CommerceCaseResponse.md +26 -0
  82. data/docs/CompanyInformation.md +18 -0
  83. data/docs/CompleteFinancingPaymentMethodSpecificInput.md +22 -0
  84. data/docs/CompletePaymentMethodSpecificInput.md +18 -0
  85. data/docs/CompletePaymentRequest.md +22 -0
  86. data/docs/CompletePaymentResponse.md +22 -0
  87. data/docs/ContactDetails.md +20 -0
  88. data/docs/CreateCheckoutRequest.md +30 -0
  89. data/docs/CreateCheckoutResponse.md +40 -0
  90. data/docs/CreateCommerceCaseRequest.md +24 -0
  91. data/docs/CreateCommerceCaseResponse.md +26 -0
  92. data/docs/CreatePaymentResponse.md +24 -0
  93. data/docs/Customer.md +32 -0
  94. data/docs/CustomerDevice.md +20 -0
  95. data/docs/DeliverItem.md +20 -0
  96. data/docs/DeliverRequest.md +24 -0
  97. data/docs/DeliverResponse.md +20 -0
  98. data/docs/DeliverType.md +15 -0
  99. data/docs/DeliveryInformation.md +18 -0
  100. data/docs/ErrorResponse.md +20 -0
  101. data/docs/ExtendedCheckoutStatus.md +15 -0
  102. data/docs/FinancingPaymentMethodSpecificInput.md +22 -0
  103. data/docs/FinancingPaymentMethodSpecificOutput.md +20 -0
  104. data/docs/InstallmentOption.md +34 -0
  105. data/docs/LinkInformation.md +20 -0
  106. data/docs/MandateRecurrenceType.md +15 -0
  107. data/docs/MerchantAction.md +20 -0
  108. data/docs/MobilePaymentMethodSpecificInput.md +28 -0
  109. data/docs/MobilePaymentMethodSpecificOutput.md +26 -0
  110. data/docs/Order.md +26 -0
  111. data/docs/OrderItem.md +20 -0
  112. data/docs/OrderLineDetailsInput.md +34 -0
  113. data/docs/OrderLineDetailsPatch.md +38 -0
  114. data/docs/OrderLineDetailsResult.md +38 -0
  115. data/docs/OrderManagementCheckoutActionsApi.md +295 -0
  116. data/docs/OrderRequest.md +24 -0
  117. data/docs/OrderResponse.md +20 -0
  118. data/docs/OrderType.md +15 -0
  119. data/docs/PatchCheckoutRequest.md +28 -0
  120. data/docs/PatchCommerceCaseRequest.md +18 -0
  121. data/docs/PaymentChannel.md +15 -0
  122. data/docs/PaymentCreationOutput.md +18 -0
  123. data/docs/PaymentEvent.md +26 -0
  124. data/docs/PaymentExecution.md +36 -0
  125. data/docs/PaymentExecutionApi.md +370 -0
  126. data/docs/PaymentExecutionRequest.md +20 -0
  127. data/docs/PaymentExecutionSpecificInput.md +22 -0
  128. data/docs/PaymentInformationApi.md +149 -0
  129. data/docs/PaymentInformationRequest.md +26 -0
  130. data/docs/PaymentInformationResponse.md +38 -0
  131. data/docs/PaymentMethodSpecificInput.md +30 -0
  132. data/docs/PaymentOutput.md +34 -0
  133. data/docs/PaymentProduct320SpecificInput.md +20 -0
  134. data/docs/PaymentProduct3391SpecificInput.md +20 -0
  135. data/docs/PaymentProduct3391SpecificOutput.md +18 -0
  136. data/docs/PaymentProduct3392SpecificInput.md +18 -0
  137. data/docs/PaymentProduct771SpecificOutput.md +18 -0
  138. data/docs/PaymentProduct840CustomerAccount.md +24 -0
  139. data/docs/PaymentProduct840SpecificOutput.md +22 -0
  140. data/docs/PaymentReferences.md +18 -0
  141. data/docs/PaymentResponse.md +24 -0
  142. data/docs/PaymentStatusOutput.md +24 -0
  143. data/docs/PaymentType.md +15 -0
  144. data/docs/PayoutOutput.md +22 -0
  145. data/docs/PayoutResponse.md +24 -0
  146. data/docs/PersonalInformation.md +22 -0
  147. data/docs/PersonalName.md +22 -0
  148. data/docs/PositiveAmountOfMoney.md +20 -0
  149. data/docs/ProcessingMandateInformation.md +26 -0
  150. data/docs/ProductType.md +15 -0
  151. data/docs/RedirectData.md +18 -0
  152. data/docs/RedirectPaymentMethodSpecificInput.md +30 -0
  153. data/docs/RedirectPaymentMethodSpecificOutput.md +24 -0
  154. data/docs/RedirectPaymentProduct840SpecificInput.md +18 -0
  155. data/docs/RedirectionData.md +18 -0
  156. data/docs/References.md +22 -0
  157. data/docs/RefundErrorResponse.md +20 -0
  158. data/docs/RefundOutput.md +24 -0
  159. data/docs/RefundPaymentResponse.md +24 -0
  160. data/docs/RefundRequest.md +22 -0
  161. data/docs/ReturnInformation.md +20 -0
  162. data/docs/ReturnItem.md +20 -0
  163. data/docs/ReturnRequest.md +22 -0
  164. data/docs/ReturnResponse.md +20 -0
  165. data/docs/ReturnType.md +15 -0
  166. data/docs/SepaDirectDebitPaymentMethodSpecificInput.md +20 -0
  167. data/docs/SepaDirectDebitPaymentMethodSpecificOutput.md +20 -0
  168. data/docs/SepaDirectDebitPaymentProduct771SpecificInput.md +20 -0
  169. data/docs/Shipping.md +18 -0
  170. data/docs/ShoppingCartInput.md +18 -0
  171. data/docs/ShoppingCartPatch.md +18 -0
  172. data/docs/ShoppingCartResult.md +18 -0
  173. data/docs/StatusCategoryValue.md +15 -0
  174. data/docs/StatusCheckout.md +15 -0
  175. data/docs/StatusOutput.md +30 -0
  176. data/docs/StatusValue.md +15 -0
  177. data/docs/ThreeDSecureResults.md +22 -0
  178. data/docs/TransactionChannel.md +15 -0
  179. data/docs/UnscheduledCardOnFileRequestor.md +15 -0
  180. data/docs/UnscheduledCardOnFileSequenceIndicator.md +15 -0
  181. data/example-app/commerce_case_api_example.rb +47 -0
  182. data/example-app/example.rb +33 -0
  183. data/lefthook.yml +5 -0
  184. data/lib/PCP-server-Ruby-SDK/api/base_api_client.rb +105 -0
  185. data/lib/PCP-server-Ruby-SDK/api/checkout_api_client.rb +94 -0
  186. data/lib/PCP-server-Ruby-SDK/api/commerce_case_api_client.rb +75 -0
  187. data/lib/PCP-server-Ruby-SDK/api/order_management_checkout_actions_api_client.rb +82 -0
  188. data/lib/PCP-server-Ruby-SDK/api/payment_execution_api_client.rb +104 -0
  189. data/lib/PCP-server-Ruby-SDK/api/payment_information_api_client.rb +50 -0
  190. data/lib/PCP-server-Ruby-SDK/communicator_configuration.rb +9 -0
  191. data/lib/PCP-server-Ruby-SDK/errors/api_error_response_exception.rb +15 -0
  192. data/lib/PCP-server-Ruby-SDK/errors/api_exception.rb +27 -0
  193. data/lib/PCP-server-Ruby-SDK/errors/api_response_retrieval_exception.rb +7 -0
  194. data/lib/PCP-server-Ruby-SDK/models/address.rb +456 -0
  195. data/lib/PCP-server-Ruby-SDK/models/address_personal.rb +443 -0
  196. data/lib/PCP-server-Ruby-SDK/models/allowed_payment_actions.rb +40 -0
  197. data/lib/PCP-server-Ruby-SDK/models/amount_of_money.rb +294 -0
  198. data/lib/PCP-server-Ruby-SDK/models/api_error.rb +271 -0
  199. data/lib/PCP-server-Ruby-SDK/models/apple_payment_data_token_header_information.rb +224 -0
  200. data/lib/PCP-server-Ruby-SDK/models/apple_payment_data_token_information.rb +267 -0
  201. data/lib/PCP-server-Ruby-SDK/models/authorization_mode.rb +40 -0
  202. data/lib/PCP-server-Ruby-SDK/models/bank_account_information.rb +276 -0
  203. data/lib/PCP-server-Ruby-SDK/models/cancel_item.rb +265 -0
  204. data/lib/PCP-server-Ruby-SDK/models/cancel_payment_request.rb +234 -0
  205. data/lib/PCP-server-Ruby-SDK/models/cancel_payment_response.rb +212 -0
  206. data/lib/PCP-server-Ruby-SDK/models/cancel_request.rb +255 -0
  207. data/lib/PCP-server-Ruby-SDK/models/cancel_response.rb +221 -0
  208. data/lib/PCP-server-Ruby-SDK/models/cancel_type.rb +40 -0
  209. data/lib/PCP-server-Ruby-SDK/models/cancellation_reason.rb +44 -0
  210. data/lib/PCP-server-Ruby-SDK/models/capture_output.rb +261 -0
  211. data/lib/PCP-server-Ruby-SDK/models/capture_payment_request.rb +303 -0
  212. data/lib/PCP-server-Ruby-SDK/models/capture_payment_response.rb +262 -0
  213. data/lib/PCP-server-Ruby-SDK/models/card_fraud_results.rb +214 -0
  214. data/lib/PCP-server-Ruby-SDK/models/card_info.rb +214 -0
  215. data/lib/PCP-server-Ruby-SDK/models/card_payment_details.rb +320 -0
  216. data/lib/PCP-server-Ruby-SDK/models/card_payment_method_specific_input.rb +467 -0
  217. data/lib/PCP-server-Ruby-SDK/models/card_payment_method_specific_output.rb +270 -0
  218. data/lib/PCP-server-Ruby-SDK/models/card_recurrence_details.rb +214 -0
  219. data/lib/PCP-server-Ruby-SDK/models/cart_item_input.rb +222 -0
  220. data/lib/PCP-server-Ruby-SDK/models/cart_item_invoice_data.rb +214 -0
  221. data/lib/PCP-server-Ruby-SDK/models/cart_item_order_status.rb +273 -0
  222. data/lib/PCP-server-Ruby-SDK/models/cart_item_patch.rb +222 -0
  223. data/lib/PCP-server-Ruby-SDK/models/cart_item_result.rb +222 -0
  224. data/lib/PCP-server-Ruby-SDK/models/cart_item_status.rb +43 -0
  225. data/lib/PCP-server-Ruby-SDK/models/checkout_references.rb +262 -0
  226. data/lib/PCP-server-Ruby-SDK/models/checkout_response.rb +372 -0
  227. data/lib/PCP-server-Ruby-SDK/models/checkouts_response.rb +245 -0
  228. data/lib/PCP-server-Ruby-SDK/models/commerce_case_response.rb +272 -0
  229. data/lib/PCP-server-Ruby-SDK/models/company_information.rb +214 -0
  230. data/lib/PCP-server-Ruby-SDK/models/complete_financing_payment_method_specific_input.rb +261 -0
  231. data/lib/PCP-server-Ruby-SDK/models/complete_payment_method_specific_input.rb +213 -0
  232. data/lib/PCP-server-Ruby-SDK/models/complete_payment_request.rb +231 -0
  233. data/lib/PCP-server-Ruby-SDK/models/complete_payment_response.rb +230 -0
  234. data/lib/PCP-server-Ruby-SDK/models/contact_details.rb +224 -0
  235. data/lib/PCP-server-Ruby-SDK/models/create_checkout_request.rb +271 -0
  236. data/lib/PCP-server-Ruby-SDK/models/create_checkout_response.rb +338 -0
  237. data/lib/PCP-server-Ruby-SDK/models/create_commerce_case_request.rb +260 -0
  238. data/lib/PCP-server-Ruby-SDK/models/create_commerce_case_response.rb +271 -0
  239. data/lib/PCP-server-Ruby-SDK/models/create_payment_response.rb +241 -0
  240. data/lib/PCP-server-Ruby-SDK/models/customer.rb +337 -0
  241. data/lib/PCP-server-Ruby-SDK/models/customer_device.rb +262 -0
  242. data/lib/PCP-server-Ruby-SDK/models/deliver_item.rb +265 -0
  243. data/lib/PCP-server-Ruby-SDK/models/deliver_request.rb +267 -0
  244. data/lib/PCP-server-Ruby-SDK/models/deliver_response.rb +221 -0
  245. data/lib/PCP-server-Ruby-SDK/models/deliver_type.rb +40 -0
  246. data/lib/PCP-server-Ruby-SDK/models/delivery_information.rb +216 -0
  247. data/lib/PCP-server-Ruby-SDK/models/error_response.rb +224 -0
  248. data/lib/PCP-server-Ruby-SDK/models/extended_checkout_status.rb +47 -0
  249. data/lib/PCP-server-Ruby-SDK/models/financing_payment_method_specific_input.rb +261 -0
  250. data/lib/PCP-server-Ruby-SDK/models/financing_payment_method_specific_output.rb +251 -0
  251. data/lib/PCP-server-Ruby-SDK/models/installment_option.rb +386 -0
  252. data/lib/PCP-server-Ruby-SDK/models/link_information.rb +238 -0
  253. data/lib/PCP-server-Ruby-SDK/models/mandate_recurrence_type.rb +40 -0
  254. data/lib/PCP-server-Ruby-SDK/models/merchant_action.rb +223 -0
  255. data/lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_input.rb +312 -0
  256. data/lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_output.rb +280 -0
  257. data/lib/PCP-server-Ruby-SDK/models/order.rb +256 -0
  258. data/lib/PCP-server-Ruby-SDK/models/order_item.rb +266 -0
  259. data/lib/PCP-server-Ruby-SDK/models/order_line_details_input.rb +470 -0
  260. data/lib/PCP-server-Ruby-SDK/models/order_line_details_patch.rb +498 -0
  261. data/lib/PCP-server-Ruby-SDK/models/order_line_details_result.rb +498 -0
  262. data/lib/PCP-server-Ruby-SDK/models/order_request.rb +264 -0
  263. data/lib/PCP-server-Ruby-SDK/models/order_response.rb +222 -0
  264. data/lib/PCP-server-Ruby-SDK/models/order_type.rb +40 -0
  265. data/lib/PCP-server-Ruby-SDK/models/patch_checkout_request.rb +258 -0
  266. data/lib/PCP-server-Ruby-SDK/models/patch_commerce_case_request.rb +213 -0
  267. data/lib/PCP-server-Ruby-SDK/models/payment_channel.rb +40 -0
  268. data/lib/PCP-server-Ruby-SDK/models/payment_creation_output.rb +214 -0
  269. data/lib/PCP-server-Ruby-SDK/models/payment_event.rb +291 -0
  270. data/lib/PCP-server-Ruby-SDK/models/payment_execution.rb +320 -0
  271. data/lib/PCP-server-Ruby-SDK/models/payment_execution_request.rb +222 -0
  272. data/lib/PCP-server-Ruby-SDK/models/payment_execution_specific_input.rb +238 -0
  273. data/lib/PCP-server-Ruby-SDK/models/payment_information_request.rb +347 -0
  274. data/lib/PCP-server-Ruby-SDK/models/payment_information_response.rb +448 -0
  275. data/lib/PCP-server-Ruby-SDK/models/payment_method_specific_input.rb +289 -0
  276. data/lib/PCP-server-Ruby-SDK/models/payment_output.rb +306 -0
  277. data/lib/PCP-server-Ruby-SDK/models/payment_product320_specific_input.rb +256 -0
  278. data/lib/PCP-server-Ruby-SDK/models/payment_product3391_specific_input.rb +237 -0
  279. data/lib/PCP-server-Ruby-SDK/models/payment_product3391_specific_output.rb +216 -0
  280. data/lib/PCP-server-Ruby-SDK/models/payment_product3392_specific_input.rb +220 -0
  281. data/lib/PCP-server-Ruby-SDK/models/payment_product771_specific_output.rb +214 -0
  282. data/lib/PCP-server-Ruby-SDK/models/payment_product840_customer_account.rb +244 -0
  283. data/lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output.rb +231 -0
  284. data/lib/PCP-server-Ruby-SDK/models/payment_references.rb +233 -0
  285. data/lib/PCP-server-Ruby-SDK/models/payment_response.rb +263 -0
  286. data/lib/PCP-server-Ruby-SDK/models/payment_status_output.rb +265 -0
  287. data/lib/PCP-server-Ruby-SDK/models/payment_type.rb +46 -0
  288. data/lib/PCP-server-Ruby-SDK/models/payout_output.rb +232 -0
  289. data/lib/PCP-server-Ruby-SDK/models/payout_response.rb +263 -0
  290. data/lib/PCP-server-Ruby-SDK/models/personal_information.rb +297 -0
  291. data/lib/PCP-server-Ruby-SDK/models/personal_name.rb +234 -0
  292. data/lib/PCP-server-Ruby-SDK/models/positive_amount_of_money.rb +294 -0
  293. data/lib/PCP-server-Ruby-SDK/models/processing_mandate_information.rb +399 -0
  294. data/lib/PCP-server-Ruby-SDK/models/product_type.rb +42 -0
  295. data/lib/PCP-server-Ruby-SDK/models/redirect_data.rb +214 -0
  296. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_input.rb +338 -0
  297. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_output.rb +309 -0
  298. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_product840_specific_input.rb +214 -0
  299. data/lib/PCP-server-Ruby-SDK/models/redirection_data.rb +240 -0
  300. data/lib/PCP-server-Ruby-SDK/models/references.rb +298 -0
  301. data/lib/PCP-server-Ruby-SDK/models/refund_error_response.rb +224 -0
  302. data/lib/PCP-server-Ruby-SDK/models/refund_output.rb +261 -0
  303. data/lib/PCP-server-Ruby-SDK/models/refund_payment_response.rb +263 -0
  304. data/lib/PCP-server-Ruby-SDK/models/refund_request.rb +231 -0
  305. data/lib/PCP-server-Ruby-SDK/models/return_information.rb +245 -0
  306. data/lib/PCP-server-Ruby-SDK/models/return_item.rb +265 -0
  307. data/lib/PCP-server-Ruby-SDK/models/return_request.rb +275 -0
  308. data/lib/PCP-server-Ruby-SDK/models/return_response.rb +221 -0
  309. data/lib/PCP-server-Ruby-SDK/models/return_type.rb +40 -0
  310. data/lib/PCP-server-Ruby-SDK/models/sepa_direct_debit_payment_method_specific_input.rb +251 -0
  311. data/lib/PCP-server-Ruby-SDK/models/sepa_direct_debit_payment_method_specific_output.rb +251 -0
  312. data/lib/PCP-server-Ruby-SDK/models/sepa_direct_debit_payment_product771_specific_input.rb +223 -0
  313. data/lib/PCP-server-Ruby-SDK/models/shipping.rb +213 -0
  314. data/lib/PCP-server-Ruby-SDK/models/shopping_cart_input.rb +215 -0
  315. data/lib/PCP-server-Ruby-SDK/models/shopping_cart_patch.rb +215 -0
  316. data/lib/PCP-server-Ruby-SDK/models/shopping_cart_result.rb +215 -0
  317. data/lib/PCP-server-Ruby-SDK/models/status_category_value.rb +46 -0
  318. data/lib/PCP-server-Ruby-SDK/models/status_checkout.rb +44 -0
  319. data/lib/PCP-server-Ruby-SDK/models/status_output.rb +448 -0
  320. data/lib/PCP-server-Ruby-SDK/models/status_value.rb +61 -0
  321. data/lib/PCP-server-Ruby-SDK/models/three_d_secure_results.rb +287 -0
  322. data/lib/PCP-server-Ruby-SDK/models/transaction_channel.rb +40 -0
  323. data/lib/PCP-server-Ruby-SDK/models/unscheduled_card_on_file_requestor.rb +40 -0
  324. data/lib/PCP-server-Ruby-SDK/models/unscheduled_card_on_file_sequence_indicator.rb +40 -0
  325. data/lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb +61 -0
  326. data/lib/PCP-server-Ruby-SDK/queries/get_commerce_cases_query.rb +71 -0
  327. data/lib/PCP-server-Ruby-SDK/request_header_generator.rb +74 -0
  328. data/lib/PCP-server-Ruby-SDK/utils/server_meta_info.rb +22 -0
  329. data/lib/PCP-server-Ruby-SDK/version.rb +15 -0
  330. data/lib/PCP-server-Ruby-SDK.rb +175 -0
  331. data/node_modules/.bin/JSONStream +1 -0
  332. data/node_modules/.bin/commitlint +1 -0
  333. data/node_modules/.bin/conventional-changelog +1 -0
  334. data/node_modules/.bin/conventional-changelog-writer +1 -0
  335. data/node_modules/.bin/conventional-commits-parser +1 -0
  336. data/node_modules/.bin/git-raw-commits +1 -0
  337. data/node_modules/.bin/git-semver-tags +1 -0
  338. data/node_modules/.bin/handlebars +1 -0
  339. data/node_modules/.bin/jiti +1 -0
  340. data/node_modules/.bin/js-yaml +1 -0
  341. data/node_modules/.bin/lefthook +1 -0
  342. data/node_modules/.bin/node-which +1 -0
  343. data/node_modules/.bin/semver +1 -0
  344. data/node_modules/.bin/uglifyjs +1 -0
  345. data/node_modules/.package-lock.json +2010 -0
  346. data/node_modules/@babel/code-frame/LICENSE +22 -0
  347. data/node_modules/@babel/code-frame/README.md +19 -0
  348. data/node_modules/@babel/code-frame/lib/index.js +156 -0
  349. data/node_modules/@babel/code-frame/lib/index.js.map +1 -0
  350. data/node_modules/@babel/code-frame/package.json +30 -0
  351. data/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
  352. data/node_modules/@babel/helper-validator-identifier/README.md +19 -0
  353. data/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
  354. data/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
  355. data/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
  356. data/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
  357. data/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
  358. data/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
  359. data/node_modules/@babel/helper-validator-identifier/package.json +31 -0
  360. data/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js +73 -0
  361. data/node_modules/@babel/highlight/LICENSE +22 -0
  362. data/node_modules/@babel/highlight/README.md +19 -0
  363. data/node_modules/@babel/highlight/lib/index.js +119 -0
  364. data/node_modules/@babel/highlight/lib/index.js.map +1 -0
  365. data/node_modules/@babel/highlight/node_modules/ansi-styles/index.js +165 -0
  366. data/node_modules/@babel/highlight/node_modules/ansi-styles/license +9 -0
  367. data/node_modules/@babel/highlight/node_modules/ansi-styles/package.json +56 -0
  368. data/node_modules/@babel/highlight/node_modules/ansi-styles/readme.md +147 -0
  369. data/node_modules/@babel/highlight/node_modules/chalk/index.js +228 -0
  370. data/node_modules/@babel/highlight/node_modules/chalk/index.js.flow +93 -0
  371. data/node_modules/@babel/highlight/node_modules/chalk/license +9 -0
  372. data/node_modules/@babel/highlight/node_modules/chalk/package.json +71 -0
  373. data/node_modules/@babel/highlight/node_modules/chalk/readme.md +314 -0
  374. data/node_modules/@babel/highlight/node_modules/chalk/templates.js +128 -0
  375. data/node_modules/@babel/highlight/node_modules/chalk/types/index.d.ts +97 -0
  376. data/node_modules/@babel/highlight/node_modules/color-convert/CHANGELOG.md +54 -0
  377. data/node_modules/@babel/highlight/node_modules/color-convert/LICENSE +21 -0
  378. data/node_modules/@babel/highlight/node_modules/color-convert/README.md +68 -0
  379. data/node_modules/@babel/highlight/node_modules/color-convert/conversions.js +868 -0
  380. data/node_modules/@babel/highlight/node_modules/color-convert/index.js +78 -0
  381. data/node_modules/@babel/highlight/node_modules/color-convert/package.json +46 -0
  382. data/node_modules/@babel/highlight/node_modules/color-convert/route.js +97 -0
  383. data/node_modules/@babel/highlight/node_modules/color-name/.eslintrc.json +43 -0
  384. data/node_modules/@babel/highlight/node_modules/color-name/.npmignore +107 -0
  385. data/node_modules/@babel/highlight/node_modules/color-name/LICENSE +8 -0
  386. data/node_modules/@babel/highlight/node_modules/color-name/README.md +11 -0
  387. data/node_modules/@babel/highlight/node_modules/color-name/index.js +152 -0
  388. data/node_modules/@babel/highlight/node_modules/color-name/package.json +25 -0
  389. data/node_modules/@babel/highlight/node_modules/color-name/test.js +7 -0
  390. data/node_modules/@babel/highlight/package.json +30 -0
  391. data/node_modules/@commitlint/cli/README.md +11 -0
  392. data/node_modules/@commitlint/cli/cli.js +2 -0
  393. data/node_modules/@commitlint/cli/index.cjs +3 -0
  394. data/node_modules/@commitlint/cli/lib/cli-error.d.ts +7 -0
  395. data/node_modules/@commitlint/cli/lib/cli-error.d.ts.map +1 -0
  396. data/node_modules/@commitlint/cli/lib/cli-error.js +12 -0
  397. data/node_modules/@commitlint/cli/lib/cli-error.js.map +1 -0
  398. data/node_modules/@commitlint/cli/lib/cli.d.ts +2 -0
  399. data/node_modules/@commitlint/cli/lib/cli.d.ts.map +1 -0
  400. data/node_modules/@commitlint/cli/lib/cli.js +386 -0
  401. data/node_modules/@commitlint/cli/lib/cli.js.map +1 -0
  402. data/node_modules/@commitlint/cli/lib/types.d.ts +26 -0
  403. data/node_modules/@commitlint/cli/lib/types.d.ts.map +1 -0
  404. data/node_modules/@commitlint/cli/lib/types.js +2 -0
  405. data/node_modules/@commitlint/cli/lib/types.js.map +1 -0
  406. data/node_modules/@commitlint/cli/license.md +21 -0
  407. data/node_modules/@commitlint/cli/package.json +60 -0
  408. data/node_modules/@commitlint/config-conventional/README.md +209 -0
  409. data/node_modules/@commitlint/config-conventional/lib/index.d.ts +111 -0
  410. data/node_modules/@commitlint/config-conventional/lib/index.d.ts.map +1 -0
  411. data/node_modules/@commitlint/config-conventional/lib/index.js +134 -0
  412. data/node_modules/@commitlint/config-conventional/lib/index.js.map +1 -0
  413. data/node_modules/@commitlint/config-conventional/license.md +21 -0
  414. data/node_modules/@commitlint/config-conventional/package.json +46 -0
  415. data/node_modules/@commitlint/config-validator/lib/commitlint.schema.json +105 -0
  416. data/node_modules/@commitlint/config-validator/lib/formatErrors.d.ts +9 -0
  417. data/node_modules/@commitlint/config-validator/lib/formatErrors.d.ts.map +1 -0
  418. data/node_modules/@commitlint/config-validator/lib/formatErrors.js +35 -0
  419. data/node_modules/@commitlint/config-validator/lib/formatErrors.js.map +1 -0
  420. data/node_modules/@commitlint/config-validator/lib/validate.d.ts +3 -0
  421. data/node_modules/@commitlint/config-validator/lib/validate.d.ts.map +1 -0
  422. data/node_modules/@commitlint/config-validator/lib/validate.js +39 -0
  423. data/node_modules/@commitlint/config-validator/lib/validate.js.map +1 -0
  424. data/node_modules/@commitlint/config-validator/license.md +21 -0
  425. data/node_modules/@commitlint/config-validator/package.json +46 -0
  426. data/node_modules/@commitlint/ensure/lib/case.d.ts +4 -0
  427. data/node_modules/@commitlint/ensure/lib/case.d.ts.map +1 -0
  428. data/node_modules/@commitlint/ensure/lib/case.js +15 -0
  429. data/node_modules/@commitlint/ensure/lib/case.js.map +1 -0
  430. data/node_modules/@commitlint/ensure/lib/enum.d.ts +3 -0
  431. data/node_modules/@commitlint/ensure/lib/enum.d.ts.map +1 -0
  432. data/node_modules/@commitlint/ensure/lib/enum.js +10 -0
  433. data/node_modules/@commitlint/ensure/lib/enum.js.map +1 -0
  434. data/node_modules/@commitlint/ensure/lib/index.d.ts +11 -0
  435. data/node_modules/@commitlint/ensure/lib/index.d.ts.map +1 -0
  436. data/node_modules/@commitlint/ensure/lib/index.js +11 -0
  437. data/node_modules/@commitlint/ensure/lib/index.js.map +1 -0
  438. data/node_modules/@commitlint/ensure/lib/max-length.d.ts +3 -0
  439. data/node_modules/@commitlint/ensure/lib/max-length.d.ts.map +1 -0
  440. data/node_modules/@commitlint/ensure/lib/max-length.js +2 -0
  441. data/node_modules/@commitlint/ensure/lib/max-length.js.map +1 -0
  442. data/node_modules/@commitlint/ensure/lib/max-line-length.d.ts +3 -0
  443. data/node_modules/@commitlint/ensure/lib/max-line-length.d.ts.map +1 -0
  444. data/node_modules/@commitlint/ensure/lib/max-line-length.js +4 -0
  445. data/node_modules/@commitlint/ensure/lib/max-line-length.js.map +1 -0
  446. data/node_modules/@commitlint/ensure/lib/min-length.d.ts +3 -0
  447. data/node_modules/@commitlint/ensure/lib/min-length.d.ts.map +1 -0
  448. data/node_modules/@commitlint/ensure/lib/min-length.js +2 -0
  449. data/node_modules/@commitlint/ensure/lib/min-length.js.map +1 -0
  450. data/node_modules/@commitlint/ensure/lib/not-empty.d.ts +3 -0
  451. data/node_modules/@commitlint/ensure/lib/not-empty.d.ts.map +1 -0
  452. data/node_modules/@commitlint/ensure/lib/not-empty.js +2 -0
  453. data/node_modules/@commitlint/ensure/lib/not-empty.js.map +1 -0
  454. data/node_modules/@commitlint/ensure/lib/to-case.d.ts +3 -0
  455. data/node_modules/@commitlint/ensure/lib/to-case.d.ts.map +1 -0
  456. data/node_modules/@commitlint/ensure/lib/to-case.js +32 -0
  457. data/node_modules/@commitlint/ensure/lib/to-case.js.map +1 -0
  458. data/node_modules/@commitlint/ensure/license.md +21 -0
  459. data/node_modules/@commitlint/ensure/package.json +56 -0
  460. data/node_modules/@commitlint/execute-rule/lib/index.d.ts +7 -0
  461. data/node_modules/@commitlint/execute-rule/lib/index.d.ts.map +1 -0
  462. data/node_modules/@commitlint/execute-rule/lib/index.js +13 -0
  463. data/node_modules/@commitlint/execute-rule/lib/index.js.map +1 -0
  464. data/node_modules/@commitlint/execute-rule/license.md +21 -0
  465. data/node_modules/@commitlint/execute-rule/package.json +42 -0
  466. data/node_modules/@commitlint/format/README.md +15 -0
  467. data/node_modules/@commitlint/format/lib/format.d.ts +5 -0
  468. data/node_modules/@commitlint/format/lib/format.d.ts.map +1 -0
  469. data/node_modules/@commitlint/format/lib/format.js +74 -0
  470. data/node_modules/@commitlint/format/lib/format.js.map +1 -0
  471. data/node_modules/@commitlint/format/lib/index.d.ts +3 -0
  472. data/node_modules/@commitlint/format/lib/index.d.ts.map +1 -0
  473. data/node_modules/@commitlint/format/lib/index.js +3 -0
  474. data/node_modules/@commitlint/format/lib/index.js.map +1 -0
  475. data/node_modules/@commitlint/format/license.md +21 -0
  476. data/node_modules/@commitlint/format/package.json +46 -0
  477. data/node_modules/@commitlint/is-ignored/lib/defaults.d.ts +3 -0
  478. data/node_modules/@commitlint/is-ignored/lib/defaults.d.ts.map +1 -0
  479. data/node_modules/@commitlint/is-ignored/lib/defaults.js +22 -0
  480. data/node_modules/@commitlint/is-ignored/lib/defaults.js.map +1 -0
  481. data/node_modules/@commitlint/is-ignored/lib/index.d.ts +3 -0
  482. data/node_modules/@commitlint/is-ignored/lib/index.d.ts.map +1 -0
  483. data/node_modules/@commitlint/is-ignored/lib/index.js +3 -0
  484. data/node_modules/@commitlint/is-ignored/lib/index.js.map +1 -0
  485. data/node_modules/@commitlint/is-ignored/lib/is-ignored.d.ts +3 -0
  486. data/node_modules/@commitlint/is-ignored/lib/is-ignored.d.ts.map +1 -0
  487. data/node_modules/@commitlint/is-ignored/lib/is-ignored.js +16 -0
  488. data/node_modules/@commitlint/is-ignored/lib/is-ignored.js.map +1 -0
  489. data/node_modules/@commitlint/is-ignored/license.md +21 -0
  490. data/node_modules/@commitlint/is-ignored/package.json +49 -0
  491. data/node_modules/@commitlint/lint/README.md +15 -0
  492. data/node_modules/@commitlint/lint/lib/commit-message.d.ts +7 -0
  493. data/node_modules/@commitlint/lint/lib/commit-message.d.ts.map +1 -0
  494. data/node_modules/@commitlint/lint/lib/commit-message.js +7 -0
  495. data/node_modules/@commitlint/lint/lib/commit-message.js.map +1 -0
  496. data/node_modules/@commitlint/lint/lib/lint.d.ts +3 -0
  497. data/node_modules/@commitlint/lint/lib/lint.d.ts.map +1 -0
  498. data/node_modules/@commitlint/lint/lib/lint.js +115 -0
  499. data/node_modules/@commitlint/lint/lib/lint.js.map +1 -0
  500. data/node_modules/@commitlint/lint/license.md +21 -0
  501. data/node_modules/@commitlint/lint/package.json +49 -0
  502. data/node_modules/@commitlint/load/README.md +15 -0
  503. data/node_modules/@commitlint/load/lib/load.d.ts +5 -0
  504. data/node_modules/@commitlint/load/lib/load.d.ts.map +1 -0
  505. data/node_modules/@commitlint/load/lib/load.js +97 -0
  506. data/node_modules/@commitlint/load/lib/load.js.map +1 -0
  507. data/node_modules/@commitlint/load/lib/utils/load-config.d.ts +9 -0
  508. data/node_modules/@commitlint/load/lib/utils/load-config.d.ts.map +1 -0
  509. data/node_modules/@commitlint/load/lib/utils/load-config.js +78 -0
  510. data/node_modules/@commitlint/load/lib/utils/load-config.js.map +1 -0
  511. data/node_modules/@commitlint/load/lib/utils/load-parser-opts.d.ts +5 -0
  512. data/node_modules/@commitlint/load/lib/utils/load-parser-opts.d.ts.map +1 -0
  513. data/node_modules/@commitlint/load/lib/utils/load-parser-opts.js +56 -0
  514. data/node_modules/@commitlint/load/lib/utils/load-parser-opts.js.map +1 -0
  515. data/node_modules/@commitlint/load/lib/utils/load-plugin.d.ts +3 -0
  516. data/node_modules/@commitlint/load/lib/utils/load-plugin.d.ts.map +1 -0
  517. data/node_modules/@commitlint/load/lib/utils/load-plugin.js +63 -0
  518. data/node_modules/@commitlint/load/lib/utils/load-plugin.js.map +1 -0
  519. data/node_modules/@commitlint/load/lib/utils/plugin-errors.d.ts +13 -0
  520. data/node_modules/@commitlint/load/lib/utils/plugin-errors.d.ts.map +1 -0
  521. data/node_modules/@commitlint/load/lib/utils/plugin-errors.js +21 -0
  522. data/node_modules/@commitlint/load/lib/utils/plugin-errors.js.map +1 -0
  523. data/node_modules/@commitlint/load/lib/utils/plugin-naming.d.ts +20 -0
  524. data/node_modules/@commitlint/load/lib/utils/plugin-naming.d.ts.map +1 -0
  525. data/node_modules/@commitlint/load/lib/utils/plugin-naming.js +80 -0
  526. data/node_modules/@commitlint/load/lib/utils/plugin-naming.js.map +1 -0
  527. data/node_modules/@commitlint/load/license.md +21 -0
  528. data/node_modules/@commitlint/load/package.json +60 -0
  529. data/node_modules/@commitlint/message/lib/index.d.ts +2 -0
  530. data/node_modules/@commitlint/message/lib/index.d.ts.map +1 -0
  531. data/node_modules/@commitlint/message/lib/index.js +4 -0
  532. data/node_modules/@commitlint/message/lib/index.js.map +1 -0
  533. data/node_modules/@commitlint/message/license.md +21 -0
  534. data/node_modules/@commitlint/message/package.json +43 -0
  535. data/node_modules/@commitlint/parse/README.md +29 -0
  536. data/node_modules/@commitlint/parse/lib/index.d.ts +5 -0
  537. data/node_modules/@commitlint/parse/lib/index.d.ts.map +1 -0
  538. data/node_modules/@commitlint/parse/lib/index.js +13 -0
  539. data/node_modules/@commitlint/parse/lib/index.js.map +1 -0
  540. data/node_modules/@commitlint/parse/license.md +21 -0
  541. data/node_modules/@commitlint/parse/package.json +49 -0
  542. data/node_modules/@commitlint/read/README.md +15 -0
  543. data/node_modules/@commitlint/read/lib/get-edit-commit.d.ts +2 -0
  544. data/node_modules/@commitlint/read/lib/get-edit-commit.d.ts.map +1 -0
  545. data/node_modules/@commitlint/read/lib/get-edit-commit.js +14 -0
  546. data/node_modules/@commitlint/read/lib/get-edit-commit.js.map +1 -0
  547. data/node_modules/@commitlint/read/lib/get-edit-file-path.d.ts +2 -0
  548. data/node_modules/@commitlint/read/lib/get-edit-file-path.d.ts.map +1 -0
  549. data/node_modules/@commitlint/read/lib/get-edit-file-path.js +19 -0
  550. data/node_modules/@commitlint/read/lib/get-edit-file-path.js.map +1 -0
  551. data/node_modules/@commitlint/read/lib/get-history-commits.d.ts +5 -0
  552. data/node_modules/@commitlint/read/lib/get-history-commits.d.ts.map +1 -0
  553. data/node_modules/@commitlint/read/lib/get-history-commits.js +7 -0
  554. data/node_modules/@commitlint/read/lib/get-history-commits.js.map +1 -0
  555. data/node_modules/@commitlint/read/lib/read.d.ts +12 -0
  556. data/node_modules/@commitlint/read/lib/read.d.ts.map +1 -0
  557. data/node_modules/@commitlint/read/lib/read.js +52 -0
  558. data/node_modules/@commitlint/read/lib/read.js.map +1 -0
  559. data/node_modules/@commitlint/read/lib/stream-to-promise.d.ts +3 -0
  560. data/node_modules/@commitlint/read/lib/stream-to-promise.d.ts.map +1 -0
  561. data/node_modules/@commitlint/read/lib/stream-to-promise.js +8 -0
  562. data/node_modules/@commitlint/read/lib/stream-to-promise.js.map +1 -0
  563. data/node_modules/@commitlint/read/license.md +21 -0
  564. data/node_modules/@commitlint/read/package.json +52 -0
  565. data/node_modules/@commitlint/resolve-extends/lib/index.d.ts +29 -0
  566. data/node_modules/@commitlint/resolve-extends/lib/index.d.ts.map +1 -0
  567. data/node_modules/@commitlint/resolve-extends/lib/index.js +182 -0
  568. data/node_modules/@commitlint/resolve-extends/lib/index.js.map +1 -0
  569. data/node_modules/@commitlint/resolve-extends/license.md +21 -0
  570. data/node_modules/@commitlint/resolve-extends/package.json +51 -0
  571. data/node_modules/@commitlint/rules/lib/body-case.d.ts +3 -0
  572. data/node_modules/@commitlint/rules/lib/body-case.d.ts.map +1 -0
  573. data/node_modules/@commitlint/rules/lib/body-case.js +28 -0
  574. data/node_modules/@commitlint/rules/lib/body-case.js.map +1 -0
  575. data/node_modules/@commitlint/rules/lib/body-empty.d.ts +3 -0
  576. data/node_modules/@commitlint/rules/lib/body-empty.d.ts.map +1 -0
  577. data/node_modules/@commitlint/rules/lib/body-empty.js +11 -0
  578. data/node_modules/@commitlint/rules/lib/body-empty.js.map +1 -0
  579. data/node_modules/@commitlint/rules/lib/body-full-stop.d.ts +3 -0
  580. data/node_modules/@commitlint/rules/lib/body-full-stop.d.ts.map +1 -0
  581. data/node_modules/@commitlint/rules/lib/body-full-stop.js +14 -0
  582. data/node_modules/@commitlint/rules/lib/body-full-stop.js.map +1 -0
  583. data/node_modules/@commitlint/rules/lib/body-leading-blank.d.ts +3 -0
  584. data/node_modules/@commitlint/rules/lib/body-leading-blank.d.ts.map +1 -0
  585. data/node_modules/@commitlint/rules/lib/body-leading-blank.js +17 -0
  586. data/node_modules/@commitlint/rules/lib/body-leading-blank.js.map +1 -0
  587. data/node_modules/@commitlint/rules/lib/body-max-length.d.ts +3 -0
  588. data/node_modules/@commitlint/rules/lib/body-max-length.d.ts.map +1 -0
  589. data/node_modules/@commitlint/rules/lib/body-max-length.js +12 -0
  590. data/node_modules/@commitlint/rules/lib/body-max-length.js.map +1 -0
  591. data/node_modules/@commitlint/rules/lib/body-max-line-length.d.ts +3 -0
  592. data/node_modules/@commitlint/rules/lib/body-max-line-length.d.ts.map +1 -0
  593. data/node_modules/@commitlint/rules/lib/body-max-line-length.js +12 -0
  594. data/node_modules/@commitlint/rules/lib/body-max-line-length.js.map +1 -0
  595. data/node_modules/@commitlint/rules/lib/body-min-length.d.ts +3 -0
  596. data/node_modules/@commitlint/rules/lib/body-min-length.d.ts.map +1 -0
  597. data/node_modules/@commitlint/rules/lib/body-min-length.js +11 -0
  598. data/node_modules/@commitlint/rules/lib/body-min-length.js.map +1 -0
  599. data/node_modules/@commitlint/rules/lib/footer-empty.d.ts +3 -0
  600. data/node_modules/@commitlint/rules/lib/footer-empty.d.ts.map +1 -0
  601. data/node_modules/@commitlint/rules/lib/footer-empty.js +11 -0
  602. data/node_modules/@commitlint/rules/lib/footer-empty.js.map +1 -0
  603. data/node_modules/@commitlint/rules/lib/footer-leading-blank.d.ts +3 -0
  604. data/node_modules/@commitlint/rules/lib/footer-leading-blank.d.ts.map +1 -0
  605. data/node_modules/@commitlint/rules/lib/footer-leading-blank.js +24 -0
  606. data/node_modules/@commitlint/rules/lib/footer-leading-blank.js.map +1 -0
  607. data/node_modules/@commitlint/rules/lib/footer-max-length.d.ts +3 -0
  608. data/node_modules/@commitlint/rules/lib/footer-max-length.d.ts.map +1 -0
  609. data/node_modules/@commitlint/rules/lib/footer-max-length.js +12 -0
  610. data/node_modules/@commitlint/rules/lib/footer-max-length.js.map +1 -0
  611. data/node_modules/@commitlint/rules/lib/footer-max-line-length.d.ts +3 -0
  612. data/node_modules/@commitlint/rules/lib/footer-max-line-length.d.ts.map +1 -0
  613. data/node_modules/@commitlint/rules/lib/footer-max-line-length.js +12 -0
  614. data/node_modules/@commitlint/rules/lib/footer-max-line-length.js.map +1 -0
  615. data/node_modules/@commitlint/rules/lib/footer-min-length.d.ts +3 -0
  616. data/node_modules/@commitlint/rules/lib/footer-min-length.d.ts.map +1 -0
  617. data/node_modules/@commitlint/rules/lib/footer-min-length.js +11 -0
  618. data/node_modules/@commitlint/rules/lib/footer-min-length.js.map +1 -0
  619. data/node_modules/@commitlint/rules/lib/header-case.d.ts +3 -0
  620. data/node_modules/@commitlint/rules/lib/header-case.d.ts.map +1 -0
  621. data/node_modules/@commitlint/rules/lib/header-case.js +28 -0
  622. data/node_modules/@commitlint/rules/lib/header-case.js.map +1 -0
  623. data/node_modules/@commitlint/rules/lib/header-full-stop.d.ts +3 -0
  624. data/node_modules/@commitlint/rules/lib/header-full-stop.d.ts.map +1 -0
  625. data/node_modules/@commitlint/rules/lib/header-full-stop.js +11 -0
  626. data/node_modules/@commitlint/rules/lib/header-full-stop.js.map +1 -0
  627. data/node_modules/@commitlint/rules/lib/header-max-length.d.ts +3 -0
  628. data/node_modules/@commitlint/rules/lib/header-max-length.d.ts.map +1 -0
  629. data/node_modules/@commitlint/rules/lib/header-max-length.js +8 -0
  630. data/node_modules/@commitlint/rules/lib/header-max-length.js.map +1 -0
  631. data/node_modules/@commitlint/rules/lib/header-min-length.d.ts +3 -0
  632. data/node_modules/@commitlint/rules/lib/header-min-length.d.ts.map +1 -0
  633. data/node_modules/@commitlint/rules/lib/header-min-length.js +8 -0
  634. data/node_modules/@commitlint/rules/lib/header-min-length.js.map +1 -0
  635. data/node_modules/@commitlint/rules/lib/header-trim.d.ts +3 -0
  636. data/node_modules/@commitlint/rules/lib/header-trim.d.ts.map +1 -0
  637. data/node_modules/@commitlint/rules/lib/header-trim.js +23 -0
  638. data/node_modules/@commitlint/rules/lib/header-trim.js.map +1 -0
  639. data/node_modules/@commitlint/rules/lib/index.d.ts +40 -0
  640. data/node_modules/@commitlint/rules/lib/index.d.ts.map +1 -0
  641. data/node_modules/@commitlint/rules/lib/index.js +75 -0
  642. data/node_modules/@commitlint/rules/lib/index.js.map +1 -0
  643. data/node_modules/@commitlint/rules/lib/references-empty.d.ts +3 -0
  644. data/node_modules/@commitlint/rules/lib/references-empty.d.ts.map +1 -0
  645. data/node_modules/@commitlint/rules/lib/references-empty.js +10 -0
  646. data/node_modules/@commitlint/rules/lib/references-empty.js.map +1 -0
  647. data/node_modules/@commitlint/rules/lib/scope-case.d.ts +3 -0
  648. data/node_modules/@commitlint/rules/lib/scope-case.d.ts.map +1 -0
  649. data/node_modules/@commitlint/rules/lib/scope-case.js +32 -0
  650. data/node_modules/@commitlint/rules/lib/scope-case.js.map +1 -0
  651. data/node_modules/@commitlint/rules/lib/scope-empty.d.ts +3 -0
  652. data/node_modules/@commitlint/rules/lib/scope-empty.d.ts.map +1 -0
  653. data/node_modules/@commitlint/rules/lib/scope-empty.js +11 -0
  654. data/node_modules/@commitlint/rules/lib/scope-empty.js.map +1 -0
  655. data/node_modules/@commitlint/rules/lib/scope-enum.d.ts +3 -0
  656. data/node_modules/@commitlint/rules/lib/scope-enum.d.ts.map +1 -0
  657. data/node_modules/@commitlint/rules/lib/scope-enum.js +23 -0
  658. data/node_modules/@commitlint/rules/lib/scope-enum.js.map +1 -0
  659. data/node_modules/@commitlint/rules/lib/scope-max-length.d.ts +3 -0
  660. data/node_modules/@commitlint/rules/lib/scope-max-length.d.ts.map +1 -0
  661. data/node_modules/@commitlint/rules/lib/scope-max-length.js +12 -0
  662. data/node_modules/@commitlint/rules/lib/scope-max-length.js.map +1 -0
  663. data/node_modules/@commitlint/rules/lib/scope-min-length.d.ts +3 -0
  664. data/node_modules/@commitlint/rules/lib/scope-min-length.d.ts.map +1 -0
  665. data/node_modules/@commitlint/rules/lib/scope-min-length.js +12 -0
  666. data/node_modules/@commitlint/rules/lib/scope-min-length.js.map +1 -0
  667. data/node_modules/@commitlint/rules/lib/signed-off-by.d.ts +3 -0
  668. data/node_modules/@commitlint/rules/lib/signed-off-by.d.ts.map +1 -0
  669. data/node_modules/@commitlint/rules/lib/signed-off-by.js +19 -0
  670. data/node_modules/@commitlint/rules/lib/signed-off-by.js.map +1 -0
  671. data/node_modules/@commitlint/rules/lib/subject-case.d.ts +3 -0
  672. data/node_modules/@commitlint/rules/lib/subject-case.d.ts.map +1 -0
  673. data/node_modules/@commitlint/rules/lib/subject-case.js +44 -0
  674. data/node_modules/@commitlint/rules/lib/subject-case.js.map +1 -0
  675. data/node_modules/@commitlint/rules/lib/subject-empty.d.ts +3 -0
  676. data/node_modules/@commitlint/rules/lib/subject-empty.d.ts.map +1 -0
  677. data/node_modules/@commitlint/rules/lib/subject-empty.js +11 -0
  678. data/node_modules/@commitlint/rules/lib/subject-empty.js.map +1 -0
  679. data/node_modules/@commitlint/rules/lib/subject-exclamation-mark.d.ts +3 -0
  680. data/node_modules/@commitlint/rules/lib/subject-exclamation-mark.d.ts.map +1 -0
  681. data/node_modules/@commitlint/rules/lib/subject-exclamation-mark.js +18 -0
  682. data/node_modules/@commitlint/rules/lib/subject-exclamation-mark.js.map +1 -0
  683. data/node_modules/@commitlint/rules/lib/subject-full-stop.d.ts +3 -0
  684. data/node_modules/@commitlint/rules/lib/subject-full-stop.d.ts.map +1 -0
  685. data/node_modules/@commitlint/rules/lib/subject-full-stop.js +18 -0
  686. data/node_modules/@commitlint/rules/lib/subject-full-stop.js.map +1 -0
  687. data/node_modules/@commitlint/rules/lib/subject-max-length.d.ts +3 -0
  688. data/node_modules/@commitlint/rules/lib/subject-max-length.d.ts.map +1 -0
  689. data/node_modules/@commitlint/rules/lib/subject-max-length.js +12 -0
  690. data/node_modules/@commitlint/rules/lib/subject-max-length.js.map +1 -0
  691. data/node_modules/@commitlint/rules/lib/subject-min-length.d.ts +3 -0
  692. data/node_modules/@commitlint/rules/lib/subject-min-length.d.ts.map +1 -0
  693. data/node_modules/@commitlint/rules/lib/subject-min-length.js +12 -0
  694. data/node_modules/@commitlint/rules/lib/subject-min-length.js.map +1 -0
  695. data/node_modules/@commitlint/rules/lib/trailer-exists.d.ts +3 -0
  696. data/node_modules/@commitlint/rules/lib/trailer-exists.d.ts.map +1 -0
  697. data/node_modules/@commitlint/rules/lib/trailer-exists.js +20 -0
  698. data/node_modules/@commitlint/rules/lib/trailer-exists.js.map +1 -0
  699. data/node_modules/@commitlint/rules/lib/type-case.d.ts +3 -0
  700. data/node_modules/@commitlint/rules/lib/type-case.d.ts.map +1 -0
  701. data/node_modules/@commitlint/rules/lib/type-case.js +28 -0
  702. data/node_modules/@commitlint/rules/lib/type-case.js.map +1 -0
  703. data/node_modules/@commitlint/rules/lib/type-empty.d.ts +3 -0
  704. data/node_modules/@commitlint/rules/lib/type-empty.d.ts.map +1 -0
  705. data/node_modules/@commitlint/rules/lib/type-empty.js +11 -0
  706. data/node_modules/@commitlint/rules/lib/type-empty.js.map +1 -0
  707. data/node_modules/@commitlint/rules/lib/type-enum.d.ts +3 -0
  708. data/node_modules/@commitlint/rules/lib/type-enum.d.ts.map +1 -0
  709. data/node_modules/@commitlint/rules/lib/type-enum.js +19 -0
  710. data/node_modules/@commitlint/rules/lib/type-enum.js.map +1 -0
  711. data/node_modules/@commitlint/rules/lib/type-max-length.d.ts +3 -0
  712. data/node_modules/@commitlint/rules/lib/type-max-length.d.ts.map +1 -0
  713. data/node_modules/@commitlint/rules/lib/type-max-length.js +12 -0
  714. data/node_modules/@commitlint/rules/lib/type-max-length.js.map +1 -0
  715. data/node_modules/@commitlint/rules/lib/type-min-length.d.ts +3 -0
  716. data/node_modules/@commitlint/rules/lib/type-min-length.d.ts.map +1 -0
  717. data/node_modules/@commitlint/rules/lib/type-min-length.js +12 -0
  718. data/node_modules/@commitlint/rules/lib/type-min-length.js.map +1 -0
  719. data/node_modules/@commitlint/rules/license.md +21 -0
  720. data/node_modules/@commitlint/rules/package.json +53 -0
  721. data/node_modules/@commitlint/to-lines/lib/index.d.ts +2 -0
  722. data/node_modules/@commitlint/to-lines/lib/index.d.ts.map +1 -0
  723. data/node_modules/@commitlint/to-lines/lib/index.js +7 -0
  724. data/node_modules/@commitlint/to-lines/lib/index.js.map +1 -0
  725. data/node_modules/@commitlint/to-lines/license.md +21 -0
  726. data/node_modules/@commitlint/to-lines/package.json +42 -0
  727. data/node_modules/@commitlint/top-level/lib/index.d.ts +6 -0
  728. data/node_modules/@commitlint/top-level/lib/index.d.ts.map +1 -0
  729. data/node_modules/@commitlint/top-level/lib/index.js +22 -0
  730. data/node_modules/@commitlint/top-level/lib/index.js.map +1 -0
  731. data/node_modules/@commitlint/top-level/license.md +21 -0
  732. data/node_modules/@commitlint/top-level/package.json +45 -0
  733. data/node_modules/@commitlint/types/lib/ensure.d.ts +2 -0
  734. data/node_modules/@commitlint/types/lib/ensure.d.ts.map +1 -0
  735. data/node_modules/@commitlint/types/lib/ensure.js +2 -0
  736. data/node_modules/@commitlint/types/lib/ensure.js.map +1 -0
  737. data/node_modules/@commitlint/types/lib/format.d.ts +28 -0
  738. data/node_modules/@commitlint/types/lib/format.d.ts.map +1 -0
  739. data/node_modules/@commitlint/types/lib/format.js +2 -0
  740. data/node_modules/@commitlint/types/lib/format.js.map +1 -0
  741. data/node_modules/@commitlint/types/lib/index.d.ts +9 -0
  742. data/node_modules/@commitlint/types/lib/index.d.ts.map +1 -0
  743. data/node_modules/@commitlint/types/lib/index.js +9 -0
  744. data/node_modules/@commitlint/types/lib/index.js.map +1 -0
  745. data/node_modules/@commitlint/types/lib/is-ignored.d.ts +6 -0
  746. data/node_modules/@commitlint/types/lib/is-ignored.d.ts.map +1 -0
  747. data/node_modules/@commitlint/types/lib/is-ignored.js +2 -0
  748. data/node_modules/@commitlint/types/lib/is-ignored.js.map +1 -0
  749. data/node_modules/@commitlint/types/lib/lint.d.ts +36 -0
  750. data/node_modules/@commitlint/types/lib/lint.d.ts.map +1 -0
  751. data/node_modules/@commitlint/types/lib/lint.js +2 -0
  752. data/node_modules/@commitlint/types/lib/lint.js.map +1 -0
  753. data/node_modules/@commitlint/types/lib/load.d.ts +42 -0
  754. data/node_modules/@commitlint/types/lib/load.d.ts.map +1 -0
  755. data/node_modules/@commitlint/types/lib/load.js +2 -0
  756. data/node_modules/@commitlint/types/lib/load.js.map +1 -0
  757. data/node_modules/@commitlint/types/lib/parse.d.ts +3 -0
  758. data/node_modules/@commitlint/types/lib/parse.d.ts.map +1 -0
  759. data/node_modules/@commitlint/types/lib/parse.js +2 -0
  760. data/node_modules/@commitlint/types/lib/parse.js.map +1 -0
  761. data/node_modules/@commitlint/types/lib/prompt.d.ts +39 -0
  762. data/node_modules/@commitlint/types/lib/prompt.d.ts.map +1 -0
  763. data/node_modules/@commitlint/types/lib/prompt.js +2 -0
  764. data/node_modules/@commitlint/types/lib/prompt.js.map +1 -0
  765. data/node_modules/@commitlint/types/lib/rules.d.ts +85 -0
  766. data/node_modules/@commitlint/types/lib/rules.d.ts.map +1 -0
  767. data/node_modules/@commitlint/types/lib/rules.js +19 -0
  768. data/node_modules/@commitlint/types/lib/rules.js.map +1 -0
  769. data/node_modules/@commitlint/types/license.md +21 -0
  770. data/node_modules/@commitlint/types/package.json +39 -0
  771. data/node_modules/@hutson/parse-repository-url/license.md +202 -0
  772. data/node_modules/@hutson/parse-repository-url/package.json +62 -0
  773. data/node_modules/@hutson/parse-repository-url/readme.md +130 -0
  774. data/node_modules/@hutson/parse-repository-url/src/index.js +62 -0
  775. data/node_modules/@types/conventional-commits-parser/LICENSE +21 -0
  776. data/node_modules/@types/conventional-commits-parser/README.md +15 -0
  777. data/node_modules/@types/conventional-commits-parser/index.d.ts +305 -0
  778. data/node_modules/@types/conventional-commits-parser/package.json +34 -0
  779. data/node_modules/@types/conventional-commits-parser/ts4.9/index.d.ts +305 -0
  780. data/node_modules/@types/node/LICENSE +21 -0
  781. data/node_modules/@types/node/README.md +15 -0
  782. data/node_modules/@types/node/assert/strict.d.ts +8 -0
  783. data/node_modules/@types/node/assert.d.ts +1040 -0
  784. data/node_modules/@types/node/async_hooks.d.ts +541 -0
  785. data/node_modules/@types/node/buffer.d.ts +2293 -0
  786. data/node_modules/@types/node/child_process.d.ts +1544 -0
  787. data/node_modules/@types/node/cluster.d.ts +578 -0
  788. data/node_modules/@types/node/console.d.ts +452 -0
  789. data/node_modules/@types/node/constants.d.ts +19 -0
  790. data/node_modules/@types/node/crypto.d.ts +4451 -0
  791. data/node_modules/@types/node/dgram.d.ts +596 -0
  792. data/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
  793. data/node_modules/@types/node/dns/promises.d.ts +476 -0
  794. data/node_modules/@types/node/dns.d.ts +865 -0
  795. data/node_modules/@types/node/dom-events.d.ts +124 -0
  796. data/node_modules/@types/node/domain.d.ts +170 -0
  797. data/node_modules/@types/node/events.d.ts +931 -0
  798. data/node_modules/@types/node/fs/promises.d.ts +1264 -0
  799. data/node_modules/@types/node/fs.d.ts +4390 -0
  800. data/node_modules/@types/node/globals.d.ts +510 -0
  801. data/node_modules/@types/node/globals.global.d.ts +1 -0
  802. data/node_modules/@types/node/http.d.ts +1921 -0
  803. data/node_modules/@types/node/http2.d.ts +2418 -0
  804. data/node_modules/@types/node/https.d.ts +550 -0
  805. data/node_modules/@types/node/index.d.ts +90 -0
  806. data/node_modules/@types/node/inspector.d.ts +3696 -0
  807. data/node_modules/@types/node/module.d.ts +301 -0
  808. data/node_modules/@types/node/net.d.ts +999 -0
  809. data/node_modules/@types/node/os.d.ts +495 -0
  810. data/node_modules/@types/node/package.json +217 -0
  811. data/node_modules/@types/node/path.d.ts +200 -0
  812. data/node_modules/@types/node/perf_hooks.d.ts +941 -0
  813. data/node_modules/@types/node/process.d.ts +1912 -0
  814. data/node_modules/@types/node/punycode.d.ts +117 -0
  815. data/node_modules/@types/node/querystring.d.ts +153 -0
  816. data/node_modules/@types/node/readline/promises.d.ts +150 -0
  817. data/node_modules/@types/node/readline.d.ts +540 -0
  818. data/node_modules/@types/node/repl.d.ts +430 -0
  819. data/node_modules/@types/node/sea.d.ts +153 -0
  820. data/node_modules/@types/node/sqlite.d.ts +213 -0
  821. data/node_modules/@types/node/stream/consumers.d.ts +12 -0
  822. data/node_modules/@types/node/stream/promises.d.ts +83 -0
  823. data/node_modules/@types/node/stream/web.d.ts +367 -0
  824. data/node_modules/@types/node/stream.d.ts +1707 -0
  825. data/node_modules/@types/node/string_decoder.d.ts +67 -0
  826. data/node_modules/@types/node/test.d.ts +2006 -0
  827. data/node_modules/@types/node/timers/promises.d.ts +97 -0
  828. data/node_modules/@types/node/timers.d.ts +240 -0
  829. data/node_modules/@types/node/tls.d.ts +1220 -0
  830. data/node_modules/@types/node/trace_events.d.ts +197 -0
  831. data/node_modules/@types/node/tty.d.ts +208 -0
  832. data/node_modules/@types/node/url.d.ts +969 -0
  833. data/node_modules/@types/node/util.d.ts +2298 -0
  834. data/node_modules/@types/node/v8.d.ts +808 -0
  835. data/node_modules/@types/node/vm.d.ts +922 -0
  836. data/node_modules/@types/node/wasi.d.ts +181 -0
  837. data/node_modules/@types/node/worker_threads.d.ts +712 -0
  838. data/node_modules/@types/node/zlib.d.ts +539 -0
  839. data/node_modules/@types/normalize-package-data/LICENSE +21 -0
  840. data/node_modules/@types/normalize-package-data/README.md +62 -0
  841. data/node_modules/@types/normalize-package-data/index.d.ts +43 -0
  842. data/node_modules/@types/normalize-package-data/package.json +25 -0
  843. data/node_modules/@types/semver/LICENSE +21 -0
  844. data/node_modules/@types/semver/README.md +15 -0
  845. data/node_modules/@types/semver/classes/comparator.d.ts +17 -0
  846. data/node_modules/@types/semver/classes/range.d.ts +21 -0
  847. data/node_modules/@types/semver/classes/semver.d.ts +64 -0
  848. data/node_modules/@types/semver/functions/clean.d.ts +8 -0
  849. data/node_modules/@types/semver/functions/cmp.d.ts +16 -0
  850. data/node_modules/@types/semver/functions/coerce.d.ts +12 -0
  851. data/node_modules/@types/semver/functions/compare-build.d.ts +21 -0
  852. data/node_modules/@types/semver/functions/compare-loose.d.ts +5 -0
  853. data/node_modules/@types/semver/functions/compare.d.ts +20 -0
  854. data/node_modules/@types/semver/functions/diff.d.ts +9 -0
  855. data/node_modules/@types/semver/functions/eq.d.ts +9 -0
  856. data/node_modules/@types/semver/functions/gt.d.ts +9 -0
  857. data/node_modules/@types/semver/functions/gte.d.ts +9 -0
  858. data/node_modules/@types/semver/functions/inc.d.ts +25 -0
  859. data/node_modules/@types/semver/functions/lt.d.ts +9 -0
  860. data/node_modules/@types/semver/functions/lte.d.ts +8 -0
  861. data/node_modules/@types/semver/functions/major.d.ts +9 -0
  862. data/node_modules/@types/semver/functions/minor.d.ts +9 -0
  863. data/node_modules/@types/semver/functions/neq.d.ts +9 -0
  864. data/node_modules/@types/semver/functions/parse.d.ts +12 -0
  865. data/node_modules/@types/semver/functions/patch.d.ts +9 -0
  866. data/node_modules/@types/semver/functions/prerelease.d.ts +12 -0
  867. data/node_modules/@types/semver/functions/rcompare.d.ts +15 -0
  868. data/node_modules/@types/semver/functions/rsort.d.ts +9 -0
  869. data/node_modules/@types/semver/functions/satisfies.d.ts +14 -0
  870. data/node_modules/@types/semver/functions/sort.d.ts +9 -0
  871. data/node_modules/@types/semver/functions/valid.d.ts +11 -0
  872. data/node_modules/@types/semver/index.d.ts +129 -0
  873. data/node_modules/@types/semver/internals/identifiers.d.ts +13 -0
  874. data/node_modules/@types/semver/package.json +50 -0
  875. data/node_modules/@types/semver/preload.d.ts +2 -0
  876. data/node_modules/@types/semver/ranges/gtr.d.ts +14 -0
  877. data/node_modules/@types/semver/ranges/intersects.d.ts +13 -0
  878. data/node_modules/@types/semver/ranges/ltr.d.ts +14 -0
  879. data/node_modules/@types/semver/ranges/max-satisfying.d.ts +14 -0
  880. data/node_modules/@types/semver/ranges/min-satisfying.d.ts +14 -0
  881. data/node_modules/@types/semver/ranges/min-version.d.ts +10 -0
  882. data/node_modules/@types/semver/ranges/outside.d.ts +15 -0
  883. data/node_modules/@types/semver/ranges/simplify.d.ts +14 -0
  884. data/node_modules/@types/semver/ranges/subset.d.ts +9 -0
  885. data/node_modules/@types/semver/ranges/to-comparators.d.ts +9 -0
  886. data/node_modules/@types/semver/ranges/valid.d.ts +12 -0
  887. data/node_modules/JSONStream/.travis.yml +8 -0
  888. data/node_modules/JSONStream/LICENSE.APACHE2 +15 -0
  889. data/node_modules/JSONStream/LICENSE.MIT +24 -0
  890. data/node_modules/JSONStream/bin.js +12 -0
  891. data/node_modules/JSONStream/examples/all_docs.js +13 -0
  892. data/node_modules/JSONStream/index.js +247 -0
  893. data/node_modules/JSONStream/package.json +40 -0
  894. data/node_modules/JSONStream/readme.markdown +207 -0
  895. data/node_modules/JSONStream/test/bool.js +41 -0
  896. data/node_modules/JSONStream/test/browser.js +18 -0
  897. data/node_modules/JSONStream/test/destroy_missing.js +27 -0
  898. data/node_modules/JSONStream/test/doubledot1.js +29 -0
  899. data/node_modules/JSONStream/test/doubledot2.js +30 -0
  900. data/node_modules/JSONStream/test/empty.js +44 -0
  901. data/node_modules/JSONStream/test/error_contents.js +45 -0
  902. data/node_modules/JSONStream/test/fixtures/all_npm.json +4030 -0
  903. data/node_modules/JSONStream/test/fixtures/couch_sample.json +18 -0
  904. data/node_modules/JSONStream/test/fixtures/depth.json +15 -0
  905. data/node_modules/JSONStream/test/fixtures/error.json +1 -0
  906. data/node_modules/JSONStream/test/fixtures/header_footer.json +19 -0
  907. data/node_modules/JSONStream/test/fn.js +39 -0
  908. data/node_modules/JSONStream/test/gen.js +135 -0
  909. data/node_modules/JSONStream/test/header_footer.js +55 -0
  910. data/node_modules/JSONStream/test/issues.js +34 -0
  911. data/node_modules/JSONStream/test/keys.js +105 -0
  912. data/node_modules/JSONStream/test/map.js +40 -0
  913. data/node_modules/JSONStream/test/multiple_objects.js +36 -0
  914. data/node_modules/JSONStream/test/multiple_objects_error.js +29 -0
  915. data/node_modules/JSONStream/test/null.js +28 -0
  916. data/node_modules/JSONStream/test/parsejson.js +29 -0
  917. data/node_modules/JSONStream/test/run.js +13 -0
  918. data/node_modules/JSONStream/test/stringify.js +41 -0
  919. data/node_modules/JSONStream/test/stringify_object.js +47 -0
  920. data/node_modules/JSONStream/test/test.js +35 -0
  921. data/node_modules/JSONStream/test/test2.js +29 -0
  922. data/node_modules/JSONStream/test/two-ways.js +41 -0
  923. data/node_modules/add-stream/.jshintrc +25 -0
  924. data/node_modules/add-stream/.npmignore +7 -0
  925. data/node_modules/add-stream/.travis.yml +4 -0
  926. data/node_modules/add-stream/README.md +38 -0
  927. data/node_modules/add-stream/index.js +56 -0
  928. data/node_modules/add-stream/package.json +34 -0
  929. data/node_modules/add-stream/test/spec.js +64 -0
  930. data/node_modules/ajv/.runkit_example.js +23 -0
  931. data/node_modules/ajv/LICENSE +22 -0
  932. data/node_modules/ajv/README.md +207 -0
  933. data/node_modules/ajv/dist/2019.d.ts +19 -0
  934. data/node_modules/ajv/dist/2019.js +61 -0
  935. data/node_modules/ajv/dist/2019.js.map +1 -0
  936. data/node_modules/ajv/dist/2020.d.ts +19 -0
  937. data/node_modules/ajv/dist/2020.js +55 -0
  938. data/node_modules/ajv/dist/2020.js.map +1 -0
  939. data/node_modules/ajv/dist/ajv.d.ts +18 -0
  940. data/node_modules/ajv/dist/ajv.js +50 -0
  941. data/node_modules/ajv/dist/ajv.js.map +1 -0
  942. data/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
  943. data/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  944. data/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  945. data/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  946. data/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  947. data/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  948. data/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  949. data/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  950. data/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  951. data/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  952. data/node_modules/ajv/dist/compile/errors.js +123 -0
  953. data/node_modules/ajv/dist/compile/errors.js.map +1 -0
  954. data/node_modules/ajv/dist/compile/index.d.ts +80 -0
  955. data/node_modules/ajv/dist/compile/index.js +242 -0
  956. data/node_modules/ajv/dist/compile/index.js.map +1 -0
  957. data/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  958. data/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  959. data/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  960. data/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  961. data/node_modules/ajv/dist/compile/jtd/serialize.js +229 -0
  962. data/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  963. data/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  964. data/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  965. data/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  966. data/node_modules/ajv/dist/compile/names.d.ts +20 -0
  967. data/node_modules/ajv/dist/compile/names.js +28 -0
  968. data/node_modules/ajv/dist/compile/names.js.map +1 -0
  969. data/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
  970. data/node_modules/ajv/dist/compile/ref_error.js +12 -0
  971. data/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  972. data/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  973. data/node_modules/ajv/dist/compile/resolve.js +155 -0
  974. data/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  975. data/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  976. data/node_modules/ajv/dist/compile/rules.js +26 -0
  977. data/node_modules/ajv/dist/compile/rules.js.map +1 -0
  978. data/node_modules/ajv/dist/compile/util.d.ts +40 -0
  979. data/node_modules/ajv/dist/compile/util.js +178 -0
  980. data/node_modules/ajv/dist/compile/util.js.map +1 -0
  981. data/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  982. data/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  983. data/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  984. data/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  985. data/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  986. data/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  987. data/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  988. data/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  989. data/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  990. data/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  991. data/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  992. data/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  993. data/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  994. data/node_modules/ajv/dist/compile/validate/index.js +520 -0
  995. data/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  996. data/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  997. data/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  998. data/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  999. data/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  1000. data/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  1001. data/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  1002. data/node_modules/ajv/dist/core.d.ts +173 -0
  1003. data/node_modules/ajv/dist/core.js +618 -0
  1004. data/node_modules/ajv/dist/core.js.map +1 -0
  1005. data/node_modules/ajv/dist/jtd.d.ts +47 -0
  1006. data/node_modules/ajv/dist/jtd.js +72 -0
  1007. data/node_modules/ajv/dist/jtd.js.map +1 -0
  1008. data/node_modules/ajv/dist/refs/data.json +13 -0
  1009. data/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  1010. data/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  1011. data/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  1012. data/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  1013. data/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  1014. data/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  1015. data/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  1016. data/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  1017. data/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  1018. data/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  1019. data/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  1020. data/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  1021. data/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  1022. data/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  1023. data/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  1024. data/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  1025. data/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  1026. data/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  1027. data/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  1028. data/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  1029. data/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  1030. data/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  1031. data/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  1032. data/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  1033. data/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  1034. data/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  1035. data/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  1036. data/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  1037. data/node_modules/ajv/dist/runtime/equal.js +7 -0
  1038. data/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  1039. data/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  1040. data/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  1041. data/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  1042. data/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  1043. data/node_modules/ajv/dist/runtime/quote.js +30 -0
  1044. data/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  1045. data/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  1046. data/node_modules/ajv/dist/runtime/re2.js +6 -0
  1047. data/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  1048. data/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  1049. data/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  1050. data/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  1051. data/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  1052. data/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  1053. data/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  1054. data/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  1055. data/node_modules/ajv/dist/runtime/uri.js +6 -0
  1056. data/node_modules/ajv/dist/runtime/uri.js.map +1 -0
  1057. data/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  1058. data/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  1059. data/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  1060. data/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  1061. data/node_modules/ajv/dist/standalone/index.js +90 -0
  1062. data/node_modules/ajv/dist/standalone/index.js.map +1 -0
  1063. data/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  1064. data/node_modules/ajv/dist/standalone/instance.js +35 -0
  1065. data/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  1066. data/node_modules/ajv/dist/types/index.d.ts +183 -0
  1067. data/node_modules/ajv/dist/types/index.js +3 -0
  1068. data/node_modules/ajv/dist/types/index.js.map +1 -0
  1069. data/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
  1070. data/node_modules/ajv/dist/types/json-schema.js +3 -0
  1071. data/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  1072. data/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
  1073. data/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  1074. data/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  1075. data/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  1076. data/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  1077. data/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  1078. data/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  1079. data/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  1080. data/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  1081. data/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  1082. data/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  1083. data/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  1084. data/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  1085. data/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  1086. data/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  1087. data/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  1088. data/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  1089. data/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  1090. data/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  1091. data/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  1092. data/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  1093. data/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  1094. data/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  1095. data/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  1096. data/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  1097. data/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  1098. data/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  1099. data/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  1100. data/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  1101. data/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  1102. data/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  1103. data/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  1104. data/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  1105. data/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  1106. data/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  1107. data/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  1108. data/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  1109. data/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  1110. data/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  1111. data/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  1112. data/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  1113. data/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  1114. data/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  1115. data/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  1116. data/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  1117. data/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  1118. data/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  1119. data/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  1120. data/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  1121. data/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  1122. data/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  1123. data/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  1124. data/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  1125. data/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  1126. data/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  1127. data/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  1128. data/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  1129. data/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  1130. data/node_modules/ajv/dist/vocabularies/code.js +131 -0
  1131. data/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  1132. data/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  1133. data/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  1134. data/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  1135. data/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  1136. data/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  1137. data/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  1138. data/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  1139. data/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  1140. data/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  1141. data/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  1142. data/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  1143. data/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  1144. data/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  1145. data/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  1146. data/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  1147. data/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  1148. data/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  1149. data/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  1150. data/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  1151. data/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  1152. data/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  1153. data/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  1154. data/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  1155. data/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  1156. data/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  1157. data/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  1158. data/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  1159. data/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  1160. data/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  1161. data/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  1162. data/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  1163. data/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  1164. data/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  1165. data/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  1166. data/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  1167. data/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  1168. data/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  1169. data/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  1170. data/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  1171. data/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  1172. data/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  1173. data/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  1174. data/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  1175. data/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  1176. data/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  1177. data/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  1178. data/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  1179. data/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  1180. data/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  1181. data/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  1182. data/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  1183. data/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  1184. data/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  1185. data/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  1186. data/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  1187. data/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  1188. data/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  1189. data/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  1190. data/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  1191. data/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  1192. data/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  1193. data/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  1194. data/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  1195. data/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  1196. data/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  1197. data/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  1198. data/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  1199. data/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  1200. data/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  1201. data/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  1202. data/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  1203. data/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  1204. data/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  1205. data/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  1206. data/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  1207. data/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  1208. data/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  1209. data/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  1210. data/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  1211. data/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  1212. data/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  1213. data/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  1214. data/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  1215. data/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  1216. data/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  1217. data/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  1218. data/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  1219. data/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  1220. data/node_modules/ajv/dist/vocabularies/next.js +8 -0
  1221. data/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  1222. data/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  1223. data/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  1224. data/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  1225. data/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  1226. data/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  1227. data/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  1228. data/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  1229. data/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  1230. data/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  1231. data/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  1232. data/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  1233. data/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  1234. data/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  1235. data/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  1236. data/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  1237. data/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  1238. data/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  1239. data/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  1240. data/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  1241. data/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  1242. data/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  1243. data/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  1244. data/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  1245. data/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  1246. data/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  1247. data/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  1248. data/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  1249. data/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  1250. data/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  1251. data/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  1252. data/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  1253. data/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  1254. data/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  1255. data/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  1256. data/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  1257. data/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  1258. data/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  1259. data/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  1260. data/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  1261. data/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  1262. data/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
  1263. data/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  1264. data/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  1265. data/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  1266. data/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  1267. data/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  1268. data/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  1269. data/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  1270. data/node_modules/ajv/lib/2019.ts +81 -0
  1271. data/node_modules/ajv/lib/2020.ts +75 -0
  1272. data/node_modules/ajv/lib/ajv.ts +70 -0
  1273. data/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  1274. data/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  1275. data/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  1276. data/node_modules/ajv/lib/compile/errors.ts +184 -0
  1277. data/node_modules/ajv/lib/compile/index.ts +324 -0
  1278. data/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  1279. data/node_modules/ajv/lib/compile/jtd/serialize.ts +266 -0
  1280. data/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  1281. data/node_modules/ajv/lib/compile/names.ts +27 -0
  1282. data/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  1283. data/node_modules/ajv/lib/compile/resolve.ts +149 -0
  1284. data/node_modules/ajv/lib/compile/rules.ts +50 -0
  1285. data/node_modules/ajv/lib/compile/util.ts +213 -0
  1286. data/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  1287. data/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  1288. data/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  1289. data/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  1290. data/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  1291. data/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  1292. data/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  1293. data/node_modules/ajv/lib/core.ts +891 -0
  1294. data/node_modules/ajv/lib/jtd.ts +132 -0
  1295. data/node_modules/ajv/lib/refs/data.json +13 -0
  1296. data/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  1297. data/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  1298. data/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  1299. data/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  1300. data/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  1301. data/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  1302. data/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  1303. data/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  1304. data/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  1305. data/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  1306. data/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  1307. data/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  1308. data/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  1309. data/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  1310. data/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  1311. data/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  1312. data/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  1313. data/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  1314. data/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  1315. data/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  1316. data/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  1317. data/node_modules/ajv/lib/runtime/equal.ts +7 -0
  1318. data/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  1319. data/node_modules/ajv/lib/runtime/quote.ts +31 -0
  1320. data/node_modules/ajv/lib/runtime/re2.ts +6 -0
  1321. data/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  1322. data/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  1323. data/node_modules/ajv/lib/runtime/uri.ts +6 -0
  1324. data/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  1325. data/node_modules/ajv/lib/standalone/index.ts +100 -0
  1326. data/node_modules/ajv/lib/standalone/instance.ts +36 -0
  1327. data/node_modules/ajv/lib/types/index.ts +244 -0
  1328. data/node_modules/ajv/lib/types/json-schema.ts +187 -0
  1329. data/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  1330. data/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  1331. data/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  1332. data/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  1333. data/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  1334. data/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  1335. data/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  1336. data/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  1337. data/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  1338. data/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  1339. data/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  1340. data/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  1341. data/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  1342. data/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  1343. data/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  1344. data/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  1345. data/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  1346. data/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  1347. data/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  1348. data/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  1349. data/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  1350. data/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  1351. data/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  1352. data/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  1353. data/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  1354. data/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  1355. data/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  1356. data/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  1357. data/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  1358. data/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  1359. data/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  1360. data/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  1361. data/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  1362. data/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  1363. data/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  1364. data/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  1365. data/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  1366. data/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  1367. data/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  1368. data/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  1369. data/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  1370. data/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  1371. data/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  1372. data/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  1373. data/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  1374. data/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  1375. data/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  1376. data/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  1377. data/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  1378. data/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  1379. data/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  1380. data/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  1381. data/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  1382. data/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  1383. data/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  1384. data/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  1385. data/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  1386. data/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  1387. data/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  1388. data/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  1389. data/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  1390. data/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  1391. data/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  1392. data/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
  1393. data/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  1394. data/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  1395. data/node_modules/ajv/package.json +126 -0
  1396. data/node_modules/ansi-regex/index.d.ts +37 -0
  1397. data/node_modules/ansi-regex/index.js +10 -0
  1398. data/node_modules/ansi-regex/license +9 -0
  1399. data/node_modules/ansi-regex/package.json +55 -0
  1400. data/node_modules/ansi-regex/readme.md +78 -0
  1401. data/node_modules/ansi-styles/index.d.ts +345 -0
  1402. data/node_modules/ansi-styles/index.js +163 -0
  1403. data/node_modules/ansi-styles/license +9 -0
  1404. data/node_modules/ansi-styles/package.json +56 -0
  1405. data/node_modules/ansi-styles/readme.md +152 -0
  1406. data/node_modules/argparse/CHANGELOG.md +216 -0
  1407. data/node_modules/argparse/LICENSE +254 -0
  1408. data/node_modules/argparse/README.md +84 -0
  1409. data/node_modules/argparse/argparse.js +3707 -0
  1410. data/node_modules/argparse/lib/sub.js +67 -0
  1411. data/node_modules/argparse/lib/textwrap.js +440 -0
  1412. data/node_modules/argparse/package.json +31 -0
  1413. data/node_modules/array-ify/README.md +51 -0
  1414. data/node_modules/array-ify/index.js +4 -0
  1415. data/node_modules/array-ify/package.json +37 -0
  1416. data/node_modules/callsites/index.d.ts +96 -0
  1417. data/node_modules/callsites/index.js +13 -0
  1418. data/node_modules/callsites/license +9 -0
  1419. data/node_modules/callsites/package.json +39 -0
  1420. data/node_modules/callsites/readme.md +48 -0
  1421. data/node_modules/chalk/license +9 -0
  1422. data/node_modules/chalk/package.json +83 -0
  1423. data/node_modules/chalk/readme.md +325 -0
  1424. data/node_modules/chalk/source/index.d.ts +320 -0
  1425. data/node_modules/chalk/source/index.js +225 -0
  1426. data/node_modules/chalk/source/utilities.js +33 -0
  1427. data/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
  1428. data/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
  1429. data/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
  1430. data/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
  1431. data/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
  1432. data/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
  1433. data/node_modules/cliui/CHANGELOG.md +139 -0
  1434. data/node_modules/cliui/LICENSE.txt +14 -0
  1435. data/node_modules/cliui/README.md +141 -0
  1436. data/node_modules/cliui/build/index.cjs +302 -0
  1437. data/node_modules/cliui/build/index.d.cts +43 -0
  1438. data/node_modules/cliui/build/lib/index.js +287 -0
  1439. data/node_modules/cliui/build/lib/string-utils.js +27 -0
  1440. data/node_modules/cliui/index.mjs +13 -0
  1441. data/node_modules/cliui/package.json +83 -0
  1442. data/node_modules/color-convert/CHANGELOG.md +54 -0
  1443. data/node_modules/color-convert/LICENSE +21 -0
  1444. data/node_modules/color-convert/README.md +68 -0
  1445. data/node_modules/color-convert/conversions.js +839 -0
  1446. data/node_modules/color-convert/index.js +81 -0
  1447. data/node_modules/color-convert/package.json +48 -0
  1448. data/node_modules/color-convert/route.js +97 -0
  1449. data/node_modules/color-name/LICENSE +8 -0
  1450. data/node_modules/color-name/README.md +11 -0
  1451. data/node_modules/color-name/index.js +152 -0
  1452. data/node_modules/color-name/package.json +28 -0
  1453. data/node_modules/compare-func/LICENSE +21 -0
  1454. data/node_modules/compare-func/README.md +70 -0
  1455. data/node_modules/compare-func/index.js +42 -0
  1456. data/node_modules/compare-func/package.json +47 -0
  1457. data/node_modules/conventional-changelog/LICENSE.md +21 -0
  1458. data/node_modules/conventional-changelog/README.md +66 -0
  1459. data/node_modules/conventional-changelog/index.js +22 -0
  1460. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/LICENSE.md +15 -0
  1461. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/README.md +134 -0
  1462. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/package.json +32 -0
  1463. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/index.js +11 -0
  1464. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/parser.js +13 -0
  1465. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/templates/commit.hbs +61 -0
  1466. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/templates/footer.hbs +11 -0
  1467. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/templates/header.hbs +25 -0
  1468. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/templates/template.hbs +16 -0
  1469. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/whatBump.js +24 -0
  1470. data/node_modules/conventional-changelog/node_modules/conventional-changelog-angular/src/writer.js +114 -0
  1471. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/LICENSE.md +15 -0
  1472. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/README.md +80 -0
  1473. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/package.json +32 -0
  1474. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/constants.js +14 -0
  1475. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/index.js +18 -0
  1476. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/parser.js +17 -0
  1477. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/templates/commit.hbs +30 -0
  1478. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/templates/footer.hbs +0 -0
  1479. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/templates/header.hbs +9 -0
  1480. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/templates/template.hbs +21 -0
  1481. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/utils.js +18 -0
  1482. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/whatBump.js +36 -0
  1483. data/node_modules/conventional-changelog/node_modules/conventional-changelog-conventionalcommits/src/writer.js +195 -0
  1484. data/node_modules/conventional-changelog/package.json +54 -0
  1485. data/node_modules/conventional-changelog-angular/LICENSE.md +15 -0
  1486. data/node_modules/conventional-changelog-angular/README.md +126 -0
  1487. data/node_modules/conventional-changelog-angular/conventionalChangelog.js +10 -0
  1488. data/node_modules/conventional-changelog-angular/conventionalRecommendedBump.js +34 -0
  1489. data/node_modules/conventional-changelog-angular/index.js +22 -0
  1490. data/node_modules/conventional-changelog-angular/package.json +35 -0
  1491. data/node_modules/conventional-changelog-angular/parserOpts.js +17 -0
  1492. data/node_modules/conventional-changelog-angular/templates/commit.hbs +61 -0
  1493. data/node_modules/conventional-changelog-angular/templates/footer.hbs +11 -0
  1494. data/node_modules/conventional-changelog-angular/templates/header.hbs +25 -0
  1495. data/node_modules/conventional-changelog-angular/templates/template.hbs +16 -0
  1496. data/node_modules/conventional-changelog-angular/writerOpts.js +110 -0
  1497. data/node_modules/conventional-changelog-atom/LICENSE.md +15 -0
  1498. data/node_modules/conventional-changelog-atom/README.md +72 -0
  1499. data/node_modules/conventional-changelog-atom/package.json +29 -0
  1500. data/node_modules/conventional-changelog-atom/src/index.js +11 -0
  1501. data/node_modules/conventional-changelog-atom/src/parser.js +9 -0
  1502. data/node_modules/conventional-changelog-atom/src/templates/commit.hbs +5 -0
  1503. data/node_modules/conventional-changelog-atom/src/templates/header.hbs +1 -0
  1504. data/node_modules/conventional-changelog-atom/src/templates/template.hbs +15 -0
  1505. data/node_modules/conventional-changelog-atom/src/whatBump.js +22 -0
  1506. data/node_modules/conventional-changelog-atom/src/writer.js +48 -0
  1507. data/node_modules/conventional-changelog-cli/LICENSE +21 -0
  1508. data/node_modules/conventional-changelog-cli/README.md +128 -0
  1509. data/node_modules/conventional-changelog-cli/cli.js +279 -0
  1510. data/node_modules/conventional-changelog-cli/package.json +44 -0
  1511. data/node_modules/conventional-changelog-codemirror/LICENSE.md +15 -0
  1512. data/node_modules/conventional-changelog-codemirror/README.md +45 -0
  1513. data/node_modules/conventional-changelog-codemirror/package.json +29 -0
  1514. data/node_modules/conventional-changelog-codemirror/src/index.js +11 -0
  1515. data/node_modules/conventional-changelog-codemirror/src/parser.js +10 -0
  1516. data/node_modules/conventional-changelog-codemirror/src/templates/commit.hbs +5 -0
  1517. data/node_modules/conventional-changelog-codemirror/src/templates/header.hbs +1 -0
  1518. data/node_modules/conventional-changelog-codemirror/src/templates/template.hbs +15 -0
  1519. data/node_modules/conventional-changelog-codemirror/src/whatBump.js +22 -0
  1520. data/node_modules/conventional-changelog-codemirror/src/writer.js +41 -0
  1521. data/node_modules/conventional-changelog-conventionalcommits/LICENSE.md +15 -0
  1522. data/node_modules/conventional-changelog-conventionalcommits/README.md +72 -0
  1523. data/node_modules/conventional-changelog-conventionalcommits/constants.js +18 -0
  1524. data/node_modules/conventional-changelog-conventionalcommits/conventionalChangelog.js +10 -0
  1525. data/node_modules/conventional-changelog-conventionalcommits/conventionalRecommendedBump.js +44 -0
  1526. data/node_modules/conventional-changelog-conventionalcommits/index.js +29 -0
  1527. data/node_modules/conventional-changelog-conventionalcommits/package.json +37 -0
  1528. data/node_modules/conventional-changelog-conventionalcommits/parserOpts.js +21 -0
  1529. data/node_modules/conventional-changelog-conventionalcommits/templates/commit.hbs +30 -0
  1530. data/node_modules/conventional-changelog-conventionalcommits/templates/footer.hbs +0 -0
  1531. data/node_modules/conventional-changelog-conventionalcommits/templates/header.hbs +9 -0
  1532. data/node_modules/conventional-changelog-conventionalcommits/templates/template.hbs +23 -0
  1533. data/node_modules/conventional-changelog-conventionalcommits/utils.js +15 -0
  1534. data/node_modules/conventional-changelog-conventionalcommits/writerOpts.js +192 -0
  1535. data/node_modules/conventional-changelog-core/LICENSE.md +21 -0
  1536. data/node_modules/conventional-changelog-core/README.md +255 -0
  1537. data/node_modules/conventional-changelog-core/hosts/bitbucket.json +21 -0
  1538. data/node_modules/conventional-changelog-core/hosts/github.json +19 -0
  1539. data/node_modules/conventional-changelog-core/hosts/gitlab.json +17 -0
  1540. data/node_modules/conventional-changelog-core/index.js +156 -0
  1541. data/node_modules/conventional-changelog-core/lib/merge-config.js +372 -0
  1542. data/node_modules/conventional-changelog-core/node_modules/.bin/conventional-commits-parser +1 -0
  1543. data/node_modules/conventional-changelog-core/node_modules/.bin/git-raw-commits +1 -0
  1544. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/LICENSE.md +21 -0
  1545. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/README.md +134 -0
  1546. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.d.ts +49 -0
  1547. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.d.ts.map +1 -0
  1548. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.js +124 -0
  1549. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/GitClient.d.ts +75 -0
  1550. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/GitClient.d.ts.map +1 -0
  1551. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/GitClient.js +160 -0
  1552. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/index.d.ts +4 -0
  1553. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/index.d.ts.map +1 -0
  1554. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/index.js +4 -0
  1555. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/types.d.ts +58 -0
  1556. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/types.d.ts.map +1 -0
  1557. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/types.js +2 -0
  1558. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/utils.d.ts +34 -0
  1559. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/utils.d.ts.map +1 -0
  1560. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/dist/utils.js +141 -0
  1561. data/node_modules/conventional-changelog-core/node_modules/@conventional-changelog/git-client/package.json +53 -0
  1562. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/LICENSE.md +21 -0
  1563. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/README.md +437 -0
  1564. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/CommitParser.d.ts +40 -0
  1565. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/CommitParser.d.ts.map +1 -0
  1566. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/CommitParser.js +317 -0
  1567. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/index.d.ts +3 -0
  1568. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/index.d.ts.map +1 -0
  1569. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/index.js +103 -0
  1570. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/options.d.ts +3 -0
  1571. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/options.d.ts.map +1 -0
  1572. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/options.js +40 -0
  1573. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/utils.d.ts +8 -0
  1574. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/utils.d.ts.map +1 -0
  1575. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/cli/utils.js +64 -0
  1576. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/index.d.ts +4 -0
  1577. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/index.d.ts.map +1 -0
  1578. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/index.js +4 -0
  1579. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/options.d.ts +3 -0
  1580. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/options.d.ts.map +1 -0
  1581. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/options.js +25 -0
  1582. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/regex.d.ts +8 -0
  1583. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/regex.d.ts.map +1 -0
  1584. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/regex.js +49 -0
  1585. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/stream.d.ts +16 -0
  1586. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/stream.d.ts.map +1 -0
  1587. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/stream.js +38 -0
  1588. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/types.d.ts +98 -0
  1589. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/types.d.ts.map +1 -0
  1590. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/types.js +2 -0
  1591. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/utils.d.ts +32 -0
  1592. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/utils.d.ts.map +1 -0
  1593. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/dist/utils.js +59 -0
  1594. data/node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/package.json +45 -0
  1595. data/node_modules/conventional-changelog-core/node_modules/git-raw-commits/LICENSE.md +21 -0
  1596. data/node_modules/conventional-changelog-core/node_modules/git-raw-commits/README.md +60 -0
  1597. data/node_modules/conventional-changelog-core/node_modules/git-raw-commits/package.json +44 -0
  1598. data/node_modules/conventional-changelog-core/node_modules/git-raw-commits/src/cli.js +37 -0
  1599. data/node_modules/conventional-changelog-core/node_modules/git-raw-commits/src/index.js +59 -0
  1600. data/node_modules/conventional-changelog-core/package.json +44 -0
  1601. data/node_modules/conventional-changelog-ember/LICENSE.md +15 -0
  1602. data/node_modules/conventional-changelog-ember/README.md +94 -0
  1603. data/node_modules/conventional-changelog-ember/package.json +29 -0
  1604. data/node_modules/conventional-changelog-ember/src/index.js +14 -0
  1605. data/node_modules/conventional-changelog-ember/src/parser.js +12 -0
  1606. data/node_modules/conventional-changelog-ember/src/templates/commit.hbs +3 -0
  1607. data/node_modules/conventional-changelog-ember/src/templates/header.hbs +1 -0
  1608. data/node_modules/conventional-changelog-ember/src/templates/template.hbs +15 -0
  1609. data/node_modules/conventional-changelog-ember/src/whatBump.js +22 -0
  1610. data/node_modules/conventional-changelog-ember/src/writer.js +58 -0
  1611. data/node_modules/conventional-changelog-eslint/LICENSE.md +15 -0
  1612. data/node_modules/conventional-changelog-eslint/README.md +84 -0
  1613. data/node_modules/conventional-changelog-eslint/package.json +29 -0
  1614. data/node_modules/conventional-changelog-eslint/src/index.js +11 -0
  1615. data/node_modules/conventional-changelog-eslint/src/parser.js +9 -0
  1616. data/node_modules/conventional-changelog-eslint/src/templates/commit.hbs +5 -0
  1617. data/node_modules/conventional-changelog-eslint/src/templates/header.hbs +1 -0
  1618. data/node_modules/conventional-changelog-eslint/src/templates/template.hbs +15 -0
  1619. data/node_modules/conventional-changelog-eslint/src/whatBump.js +24 -0
  1620. data/node_modules/conventional-changelog-eslint/src/writer.js +39 -0
  1621. data/node_modules/conventional-changelog-express/LICENSE.md +15 -0
  1622. data/node_modules/conventional-changelog-express/README.md +45 -0
  1623. data/node_modules/conventional-changelog-express/package.json +29 -0
  1624. data/node_modules/conventional-changelog-express/src/index.js +11 -0
  1625. data/node_modules/conventional-changelog-express/src/parser.js +9 -0
  1626. data/node_modules/conventional-changelog-express/src/templates/commit.hbs +9 -0
  1627. data/node_modules/conventional-changelog-express/src/templates/header.hbs +2 -0
  1628. data/node_modules/conventional-changelog-express/src/templates/template.hbs +14 -0
  1629. data/node_modules/conventional-changelog-express/src/whatBump.js +22 -0
  1630. data/node_modules/conventional-changelog-express/src/writer.js +43 -0
  1631. data/node_modules/conventional-changelog-jquery/LICENSE.md +15 -0
  1632. data/node_modules/conventional-changelog-jquery/README.md +83 -0
  1633. data/node_modules/conventional-changelog-jquery/package.json +29 -0
  1634. data/node_modules/conventional-changelog-jquery/src/index.js +11 -0
  1635. data/node_modules/conventional-changelog-jquery/src/parser.js +9 -0
  1636. data/node_modules/conventional-changelog-jquery/src/templates/commit.hbs +56 -0
  1637. data/node_modules/conventional-changelog-jquery/src/templates/header.hbs +17 -0
  1638. data/node_modules/conventional-changelog-jquery/src/templates/template.hbs +16 -0
  1639. data/node_modules/conventional-changelog-jquery/src/whatBump.js +22 -0
  1640. data/node_modules/conventional-changelog-jquery/src/writer.js +50 -0
  1641. data/node_modules/conventional-changelog-jshint/LICENSE.md +15 -0
  1642. data/node_modules/conventional-changelog-jshint/README.md +121 -0
  1643. data/node_modules/conventional-changelog-jshint/package.json +32 -0
  1644. data/node_modules/conventional-changelog-jshint/src/index.js +11 -0
  1645. data/node_modules/conventional-changelog-jshint/src/parser.js +10 -0
  1646. data/node_modules/conventional-changelog-jshint/src/templates/commit.hbs +5 -0
  1647. data/node_modules/conventional-changelog-jshint/src/templates/footer.hbs +11 -0
  1648. data/node_modules/conventional-changelog-jshint/src/templates/header.hbs +1 -0
  1649. data/node_modules/conventional-changelog-jshint/src/templates/template.hbs +16 -0
  1650. data/node_modules/conventional-changelog-jshint/src/whatBump.js +22 -0
  1651. data/node_modules/conventional-changelog-jshint/src/writer.js +62 -0
  1652. data/node_modules/conventional-changelog-preset-loader/LICENSE.md +21 -0
  1653. data/node_modules/conventional-changelog-preset-loader/README.md +121 -0
  1654. data/node_modules/conventional-changelog-preset-loader/dist/index.d.ts +3 -0
  1655. data/node_modules/conventional-changelog-preset-loader/dist/index.d.ts.map +1 -0
  1656. data/node_modules/conventional-changelog-preset-loader/dist/index.js +3 -0
  1657. data/node_modules/conventional-changelog-preset-loader/dist/presetLoader.d.ts +12 -0
  1658. data/node_modules/conventional-changelog-preset-loader/dist/presetLoader.d.ts.map +1 -0
  1659. data/node_modules/conventional-changelog-preset-loader/dist/presetLoader.js +102 -0
  1660. data/node_modules/conventional-changelog-preset-loader/dist/types.d.ts +15 -0
  1661. data/node_modules/conventional-changelog-preset-loader/dist/types.d.ts.map +1 -0
  1662. data/node_modules/conventional-changelog-preset-loader/dist/types.js +3 -0
  1663. data/node_modules/conventional-changelog-preset-loader/package.json +32 -0
  1664. data/node_modules/conventional-changelog-writer/LICENSE.md +21 -0
  1665. data/node_modules/conventional-changelog-writer/README.md +383 -0
  1666. data/node_modules/conventional-changelog-writer/dist/cli/index.d.ts +3 -0
  1667. data/node_modules/conventional-changelog-writer/dist/cli/index.d.ts.map +1 -0
  1668. data/node_modules/conventional-changelog-writer/dist/cli/index.js +70 -0
  1669. data/node_modules/conventional-changelog-writer/dist/cli/utils.d.ts +7 -0
  1670. data/node_modules/conventional-changelog-writer/dist/cli/utils.d.ts.map +1 -0
  1671. data/node_modules/conventional-changelog-writer/dist/cli/utils.js +64 -0
  1672. data/node_modules/conventional-changelog-writer/dist/commit.d.ts +11 -0
  1673. data/node_modules/conventional-changelog-writer/dist/commit.d.ts.map +1 -0
  1674. data/node_modules/conventional-changelog-writer/dist/commit.js +40 -0
  1675. data/node_modules/conventional-changelog-writer/dist/context.d.ts +26 -0
  1676. data/node_modules/conventional-changelog-writer/dist/context.d.ts.map +1 -0
  1677. data/node_modules/conventional-changelog-writer/dist/context.js +114 -0
  1678. data/node_modules/conventional-changelog-writer/dist/index.d.ts +4 -0
  1679. data/node_modules/conventional-changelog-writer/dist/index.d.ts.map +1 -0
  1680. data/node_modules/conventional-changelog-writer/dist/index.js +4 -0
  1681. data/node_modules/conventional-changelog-writer/dist/options.d.ts +25 -0
  1682. data/node_modules/conventional-changelog-writer/dist/options.d.ts.map +1 -0
  1683. data/node_modules/conventional-changelog-writer/dist/options.js +75 -0
  1684. data/node_modules/conventional-changelog-writer/dist/template.d.ts +21 -0
  1685. data/node_modules/conventional-changelog-writer/dist/template.d.ts.map +1 -0
  1686. data/node_modules/conventional-changelog-writer/dist/template.js +77 -0
  1687. data/node_modules/conventional-changelog-writer/dist/types/commit.d.ts +26 -0
  1688. data/node_modules/conventional-changelog-writer/dist/types/commit.d.ts.map +1 -0
  1689. data/node_modules/conventional-changelog-writer/dist/types/commit.js +2 -0
  1690. data/node_modules/conventional-changelog-writer/dist/types/context.d.ts +69 -0
  1691. data/node_modules/conventional-changelog-writer/dist/types/context.d.ts.map +1 -0
  1692. data/node_modules/conventional-changelog-writer/dist/types/context.js +2 -0
  1693. data/node_modules/conventional-changelog-writer/dist/types/index.d.ts +10 -0
  1694. data/node_modules/conventional-changelog-writer/dist/types/index.d.ts.map +1 -0
  1695. data/node_modules/conventional-changelog-writer/dist/types/index.js +5 -0
  1696. data/node_modules/conventional-changelog-writer/dist/types/options.d.ts +108 -0
  1697. data/node_modules/conventional-changelog-writer/dist/types/options.d.ts.map +1 -0
  1698. data/node_modules/conventional-changelog-writer/dist/types/options.js +2 -0
  1699. data/node_modules/conventional-changelog-writer/dist/types/utils.d.ts +10 -0
  1700. data/node_modules/conventional-changelog-writer/dist/types/utils.d.ts.map +1 -0
  1701. data/node_modules/conventional-changelog-writer/dist/types/utils.js +2 -0
  1702. data/node_modules/conventional-changelog-writer/dist/utils.d.ts +20 -0
  1703. data/node_modules/conventional-changelog-writer/dist/utils.d.ts.map +1 -0
  1704. data/node_modules/conventional-changelog-writer/dist/utils.js +70 -0
  1705. data/node_modules/conventional-changelog-writer/dist/writers.d.ts +29 -0
  1706. data/node_modules/conventional-changelog-writer/dist/writers.d.ts.map +1 -0
  1707. data/node_modules/conventional-changelog-writer/dist/writers.js +102 -0
  1708. data/node_modules/conventional-changelog-writer/package.json +52 -0
  1709. data/node_modules/conventional-changelog-writer/templates/commit.hbs +54 -0
  1710. data/node_modules/conventional-changelog-writer/templates/footer.hbs +10 -0
  1711. data/node_modules/conventional-changelog-writer/templates/header.hbs +9 -0
  1712. data/node_modules/conventional-changelog-writer/templates/template.hbs +11 -0
  1713. data/node_modules/conventional-commits-filter/LICENSE +21 -0
  1714. data/node_modules/conventional-commits-filter/README.md +235 -0
  1715. data/node_modules/conventional-commits-filter/dist/RevertedCommitsFilter.d.ts +17 -0
  1716. data/node_modules/conventional-commits-filter/dist/RevertedCommitsFilter.d.ts.map +1 -0
  1717. data/node_modules/conventional-commits-filter/dist/RevertedCommitsFilter.js +46 -0
  1718. data/node_modules/conventional-commits-filter/dist/filters.d.ts +20 -0
  1719. data/node_modules/conventional-commits-filter/dist/filters.d.ts.map +1 -0
  1720. data/node_modules/conventional-commits-filter/dist/filters.js +34 -0
  1721. data/node_modules/conventional-commits-filter/dist/index.d.ts +4 -0
  1722. data/node_modules/conventional-commits-filter/dist/index.d.ts.map +1 -0
  1723. data/node_modules/conventional-commits-filter/dist/index.js +3 -0
  1724. data/node_modules/conventional-commits-filter/dist/types.d.ts +6 -0
  1725. data/node_modules/conventional-commits-filter/dist/types.d.ts.map +1 -0
  1726. data/node_modules/conventional-commits-filter/dist/types.js +2 -0
  1727. data/node_modules/conventional-commits-filter/dist/utils.d.ts +16 -0
  1728. data/node_modules/conventional-commits-filter/dist/utils.d.ts.map +1 -0
  1729. data/node_modules/conventional-commits-filter/dist/utils.js +43 -0
  1730. data/node_modules/conventional-commits-filter/package.json +37 -0
  1731. data/node_modules/conventional-commits-parser/LICENSE.md +21 -0
  1732. data/node_modules/conventional-commits-parser/README.md +383 -0
  1733. data/node_modules/conventional-commits-parser/cli.mjs +170 -0
  1734. data/node_modules/conventional-commits-parser/index.js +105 -0
  1735. data/node_modules/conventional-commits-parser/lib/parser.js +316 -0
  1736. data/node_modules/conventional-commits-parser/lib/regex.js +61 -0
  1737. data/node_modules/conventional-commits-parser/node_modules/meow/build/dependencies.js +11036 -0
  1738. data/node_modules/conventional-commits-parser/node_modules/meow/build/index.d.ts +1416 -0
  1739. data/node_modules/conventional-commits-parser/node_modules/meow/build/index.js +100 -0
  1740. data/node_modules/conventional-commits-parser/node_modules/meow/build/licenses.md +1767 -0
  1741. data/node_modules/conventional-commits-parser/node_modules/meow/build/options.js +92 -0
  1742. data/node_modules/conventional-commits-parser/node_modules/meow/build/parser.js +84 -0
  1743. data/node_modules/conventional-commits-parser/node_modules/meow/build/utils.js +7 -0
  1744. data/node_modules/conventional-commits-parser/node_modules/meow/build/validate.js +122 -0
  1745. data/node_modules/conventional-commits-parser/node_modules/meow/license +9 -0
  1746. data/node_modules/conventional-commits-parser/node_modules/meow/package.json +107 -0
  1747. data/node_modules/conventional-commits-parser/node_modules/meow/readme.md +314 -0
  1748. data/node_modules/conventional-commits-parser/package.json +47 -0
  1749. data/node_modules/cosmiconfig/LICENSE +22 -0
  1750. data/node_modules/cosmiconfig/README.md +782 -0
  1751. data/node_modules/cosmiconfig/dist/Explorer.d.ts +2 -0
  1752. data/node_modules/cosmiconfig/dist/Explorer.d.ts.map +1 -0
  1753. data/node_modules/cosmiconfig/dist/Explorer.js +170 -0
  1754. data/node_modules/cosmiconfig/dist/Explorer.js.map +1 -0
  1755. data/node_modules/cosmiconfig/dist/ExplorerBase.d.ts +2 -0
  1756. data/node_modules/cosmiconfig/dist/ExplorerBase.d.ts.map +1 -0
  1757. data/node_modules/cosmiconfig/dist/ExplorerBase.js +126 -0
  1758. data/node_modules/cosmiconfig/dist/ExplorerBase.js.map +1 -0
  1759. data/node_modules/cosmiconfig/dist/ExplorerSync.d.ts +2 -0
  1760. data/node_modules/cosmiconfig/dist/ExplorerSync.d.ts.map +1 -0
  1761. data/node_modules/cosmiconfig/dist/ExplorerSync.js +184 -0
  1762. data/node_modules/cosmiconfig/dist/ExplorerSync.js.map +1 -0
  1763. data/node_modules/cosmiconfig/dist/cacheWrapper.d.ts +5 -0
  1764. data/node_modules/cosmiconfig/dist/cacheWrapper.d.ts.map +1 -0
  1765. data/node_modules/cosmiconfig/dist/cacheWrapper.js +32 -0
  1766. data/node_modules/cosmiconfig/dist/cacheWrapper.js.map +1 -0
  1767. data/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts +3 -0
  1768. data/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts.map +1 -0
  1769. data/node_modules/cosmiconfig/dist/canUseDynamicImport.js +23 -0
  1770. data/node_modules/cosmiconfig/dist/canUseDynamicImport.js.map +1 -0
  1771. data/node_modules/cosmiconfig/dist/defaults.d.ts +25 -0
  1772. data/node_modules/cosmiconfig/dist/defaults.d.ts.map +1 -0
  1773. data/node_modules/cosmiconfig/dist/defaults.js +105 -0
  1774. data/node_modules/cosmiconfig/dist/defaults.js.map +1 -0
  1775. data/node_modules/cosmiconfig/dist/getDirectory.d.ts +4 -0
  1776. data/node_modules/cosmiconfig/dist/getDirectory.d.ts.map +1 -0
  1777. data/node_modules/cosmiconfig/dist/getDirectory.js +38 -0
  1778. data/node_modules/cosmiconfig/dist/getDirectory.js.map +1 -0
  1779. data/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts +5 -0
  1780. data/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts.map +1 -0
  1781. data/node_modules/cosmiconfig/dist/getPropertyByPath.js +28 -0
  1782. data/node_modules/cosmiconfig/dist/getPropertyByPath.js.map +1 -0
  1783. data/node_modules/cosmiconfig/dist/index.d.ts +6 -0
  1784. data/node_modules/cosmiconfig/dist/index.d.ts.map +1 -0
  1785. data/node_modules/cosmiconfig/dist/index.js +148 -0
  1786. data/node_modules/cosmiconfig/dist/index.js.map +1 -0
  1787. data/node_modules/cosmiconfig/dist/loaders.d.ts +8 -0
  1788. data/node_modules/cosmiconfig/dist/loaders.d.ts.map +1 -0
  1789. data/node_modules/cosmiconfig/dist/loaders.js +148 -0
  1790. data/node_modules/cosmiconfig/dist/loaders.js.map +1 -0
  1791. data/node_modules/cosmiconfig/dist/merge.d.ts +9 -0
  1792. data/node_modules/cosmiconfig/dist/merge.d.ts.map +1 -0
  1793. data/node_modules/cosmiconfig/dist/merge.js +40 -0
  1794. data/node_modules/cosmiconfig/dist/merge.js.map +1 -0
  1795. data/node_modules/cosmiconfig/dist/readFile.d.ts +7 -0
  1796. data/node_modules/cosmiconfig/dist/readFile.d.ts.map +1 -0
  1797. data/node_modules/cosmiconfig/dist/readFile.js +56 -0
  1798. data/node_modules/cosmiconfig/dist/readFile.js.map +1 -0
  1799. data/node_modules/cosmiconfig/dist/types.d.ts +98 -0
  1800. data/node_modules/cosmiconfig/dist/types.d.ts.map +1 -0
  1801. data/node_modules/cosmiconfig/dist/types.js +3 -0
  1802. data/node_modules/cosmiconfig/dist/types.js.map +1 -0
  1803. data/node_modules/cosmiconfig/dist/util.d.ts +2 -0
  1804. data/node_modules/cosmiconfig/dist/util.d.ts.map +1 -0
  1805. data/node_modules/cosmiconfig/dist/util.js +99 -0
  1806. data/node_modules/cosmiconfig/dist/util.js.map +1 -0
  1807. data/node_modules/cosmiconfig/package.json +102 -0
  1808. data/node_modules/cosmiconfig-typescript-loader/LICENCE +21 -0
  1809. data/node_modules/cosmiconfig-typescript-loader/README.md +64 -0
  1810. data/node_modules/cosmiconfig-typescript-loader/dist/cjs/index.cjs +30 -0
  1811. data/node_modules/cosmiconfig-typescript-loader/dist/cjs/loader.cjs +55 -0
  1812. data/node_modules/cosmiconfig-typescript-loader/dist/cjs/typescript-compile-error.cjs +43 -0
  1813. data/node_modules/cosmiconfig-typescript-loader/dist/esm/index.mjs +5 -0
  1814. data/node_modules/cosmiconfig-typescript-loader/dist/esm/loader.mjs +20 -0
  1815. data/node_modules/cosmiconfig-typescript-loader/dist/esm/typescript-compile-error.mjs +18 -0
  1816. data/node_modules/cosmiconfig-typescript-loader/dist/types/index.d.ts +2 -0
  1817. data/node_modules/cosmiconfig-typescript-loader/dist/types/loader.d.ts +3 -0
  1818. data/node_modules/cosmiconfig-typescript-loader/dist/types/typescript-compile-error.d.ts +4 -0
  1819. data/node_modules/cosmiconfig-typescript-loader/package.json +79 -0
  1820. data/node_modules/cross-spawn/CHANGELOG.md +130 -0
  1821. data/node_modules/cross-spawn/LICENSE +21 -0
  1822. data/node_modules/cross-spawn/README.md +96 -0
  1823. data/node_modules/cross-spawn/index.js +39 -0
  1824. data/node_modules/cross-spawn/lib/enoent.js +59 -0
  1825. data/node_modules/cross-spawn/lib/parse.js +91 -0
  1826. data/node_modules/cross-spawn/lib/util/escape.js +45 -0
  1827. data/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
  1828. data/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
  1829. data/node_modules/cross-spawn/package.json +73 -0
  1830. data/node_modules/dargs/index.d.ts +159 -0
  1831. data/node_modules/dargs/index.js +116 -0
  1832. data/node_modules/dargs/license +9 -0
  1833. data/node_modules/dargs/package.json +51 -0
  1834. data/node_modules/dargs/readme.md +195 -0
  1835. data/node_modules/dot-prop/index.d.ts +101 -0
  1836. data/node_modules/dot-prop/index.js +142 -0
  1837. data/node_modules/dot-prop/license +9 -0
  1838. data/node_modules/dot-prop/package.json +45 -0
  1839. data/node_modules/dot-prop/readme.md +117 -0
  1840. data/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  1841. data/node_modules/emoji-regex/README.md +73 -0
  1842. data/node_modules/emoji-regex/es2015/index.js +6 -0
  1843. data/node_modules/emoji-regex/es2015/text.js +6 -0
  1844. data/node_modules/emoji-regex/index.d.ts +23 -0
  1845. data/node_modules/emoji-regex/index.js +6 -0
  1846. data/node_modules/emoji-regex/package.json +50 -0
  1847. data/node_modules/emoji-regex/text.js +6 -0
  1848. data/node_modules/env-paths/index.d.ts +101 -0
  1849. data/node_modules/env-paths/index.js +74 -0
  1850. data/node_modules/env-paths/license +9 -0
  1851. data/node_modules/env-paths/package.json +45 -0
  1852. data/node_modules/env-paths/readme.md +115 -0
  1853. data/node_modules/error-ex/LICENSE +21 -0
  1854. data/node_modules/error-ex/README.md +144 -0
  1855. data/node_modules/error-ex/index.js +141 -0
  1856. data/node_modules/error-ex/package.json +46 -0
  1857. data/node_modules/escalade/dist/index.js +22 -0
  1858. data/node_modules/escalade/dist/index.mjs +22 -0
  1859. data/node_modules/escalade/index.d.ts +3 -0
  1860. data/node_modules/escalade/license +9 -0
  1861. data/node_modules/escalade/package.json +63 -0
  1862. data/node_modules/escalade/readme.md +211 -0
  1863. data/node_modules/escalade/sync/index.d.ts +2 -0
  1864. data/node_modules/escalade/sync/index.js +18 -0
  1865. data/node_modules/escalade/sync/index.mjs +18 -0
  1866. data/node_modules/escape-string-regexp/index.js +11 -0
  1867. data/node_modules/escape-string-regexp/license +21 -0
  1868. data/node_modules/escape-string-regexp/package.json +41 -0
  1869. data/node_modules/escape-string-regexp/readme.md +27 -0
  1870. data/node_modules/execa/index.d.ts +955 -0
  1871. data/node_modules/execa/index.js +309 -0
  1872. data/node_modules/execa/lib/command.js +119 -0
  1873. data/node_modules/execa/lib/error.js +87 -0
  1874. data/node_modules/execa/lib/kill.js +102 -0
  1875. data/node_modules/execa/lib/pipe.js +42 -0
  1876. data/node_modules/execa/lib/promise.js +36 -0
  1877. data/node_modules/execa/lib/stdio.js +49 -0
  1878. data/node_modules/execa/lib/stream.js +133 -0
  1879. data/node_modules/execa/lib/verbose.js +19 -0
  1880. data/node_modules/execa/license +9 -0
  1881. data/node_modules/execa/package.json +90 -0
  1882. data/node_modules/execa/readme.md +822 -0
  1883. data/node_modules/fast-deep-equal/LICENSE +21 -0
  1884. data/node_modules/fast-deep-equal/README.md +96 -0
  1885. data/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
  1886. data/node_modules/fast-deep-equal/es6/index.js +72 -0
  1887. data/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
  1888. data/node_modules/fast-deep-equal/es6/react.js +79 -0
  1889. data/node_modules/fast-deep-equal/index.d.ts +4 -0
  1890. data/node_modules/fast-deep-equal/index.js +46 -0
  1891. data/node_modules/fast-deep-equal/package.json +61 -0
  1892. data/node_modules/fast-deep-equal/react.d.ts +2 -0
  1893. data/node_modules/fast-deep-equal/react.js +53 -0
  1894. data/node_modules/fast-uri/.gitattributes +2 -0
  1895. data/node_modules/fast-uri/.github/.stale.yml +21 -0
  1896. data/node_modules/fast-uri/.github/dependabot.yml +13 -0
  1897. data/node_modules/fast-uri/.github/tests_checker.yml +8 -0
  1898. data/node_modules/fast-uri/.github/workflows/ci.yml +23 -0
  1899. data/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +20 -0
  1900. data/node_modules/fast-uri/.taprc +3 -0
  1901. data/node_modules/fast-uri/LICENSE +30 -0
  1902. data/node_modules/fast-uri/README.md +125 -0
  1903. data/node_modules/fast-uri/benchmark.js +105 -0
  1904. data/node_modules/fast-uri/index.js +309 -0
  1905. data/node_modules/fast-uri/lib/schemes.js +188 -0
  1906. data/node_modules/fast-uri/lib/scopedChars.js +30 -0
  1907. data/node_modules/fast-uri/lib/utils.js +242 -0
  1908. data/node_modules/fast-uri/package.json +39 -0
  1909. data/node_modules/fast-uri/test/.gitkeep +0 -0
  1910. data/node_modules/fast-uri/test/ajv.test.js +39 -0
  1911. data/node_modules/fast-uri/test/compatibility.test.js +130 -0
  1912. data/node_modules/fast-uri/test/equal.test.js +104 -0
  1913. data/node_modules/fast-uri/test/parse.test.js +319 -0
  1914. data/node_modules/fast-uri/test/resolve.test.js +76 -0
  1915. data/node_modules/fast-uri/test/serialize.test.js +144 -0
  1916. data/node_modules/fast-uri/test/uri-js.test.js +940 -0
  1917. data/node_modules/fast-uri/test/util.test.js +24 -0
  1918. data/node_modules/fast-uri/types/index.d.ts +53 -0
  1919. data/node_modules/fast-uri/types/index.test-d.ts +17 -0
  1920. data/node_modules/find-up/index.d.ts +247 -0
  1921. data/node_modules/find-up/index.js +107 -0
  1922. data/node_modules/find-up/license +9 -0
  1923. data/node_modules/find-up/package.json +61 -0
  1924. data/node_modules/find-up/readme.md +160 -0
  1925. data/node_modules/find-up-simple/index.d.ts +74 -0
  1926. data/node_modules/find-up-simple/index.js +53 -0
  1927. data/node_modules/find-up-simple/license +9 -0
  1928. data/node_modules/find-up-simple/package.json +53 -0
  1929. data/node_modules/find-up-simple/readme.md +93 -0
  1930. data/node_modules/get-caller-file/LICENSE.md +6 -0
  1931. data/node_modules/get-caller-file/README.md +41 -0
  1932. data/node_modules/get-caller-file/index.d.ts +2 -0
  1933. data/node_modules/get-caller-file/index.js +22 -0
  1934. data/node_modules/get-caller-file/index.js.map +1 -0
  1935. data/node_modules/get-caller-file/package.json +42 -0
  1936. data/node_modules/get-stream/license +9 -0
  1937. data/node_modules/get-stream/package.json +53 -0
  1938. data/node_modules/get-stream/readme.md +291 -0
  1939. data/node_modules/get-stream/source/array-buffer.js +84 -0
  1940. data/node_modules/get-stream/source/array.js +32 -0
  1941. data/node_modules/get-stream/source/buffer.js +20 -0
  1942. data/node_modules/get-stream/source/contents.js +101 -0
  1943. data/node_modules/get-stream/source/index.d.ts +119 -0
  1944. data/node_modules/get-stream/source/index.js +5 -0
  1945. data/node_modules/get-stream/source/string.js +36 -0
  1946. data/node_modules/get-stream/source/utils.js +11 -0
  1947. data/node_modules/git-raw-commits/LICENSE.md +21 -0
  1948. data/node_modules/git-raw-commits/README.md +101 -0
  1949. data/node_modules/git-raw-commits/cli.mjs +20 -0
  1950. data/node_modules/git-raw-commits/index.js +110 -0
  1951. data/node_modules/git-raw-commits/node_modules/meow/build/dependencies.js +11036 -0
  1952. data/node_modules/git-raw-commits/node_modules/meow/build/index.d.ts +1416 -0
  1953. data/node_modules/git-raw-commits/node_modules/meow/build/index.js +100 -0
  1954. data/node_modules/git-raw-commits/node_modules/meow/build/licenses.md +1767 -0
  1955. data/node_modules/git-raw-commits/node_modules/meow/build/options.js +92 -0
  1956. data/node_modules/git-raw-commits/node_modules/meow/build/parser.js +84 -0
  1957. data/node_modules/git-raw-commits/node_modules/meow/build/utils.js +7 -0
  1958. data/node_modules/git-raw-commits/node_modules/meow/build/validate.js +122 -0
  1959. data/node_modules/git-raw-commits/node_modules/meow/license +9 -0
  1960. data/node_modules/git-raw-commits/node_modules/meow/package.json +107 -0
  1961. data/node_modules/git-raw-commits/node_modules/meow/readme.md +314 -0
  1962. data/node_modules/git-raw-commits/package.json +43 -0
  1963. data/node_modules/git-semver-tags/LICENSE.md +21 -0
  1964. data/node_modules/git-semver-tags/README.md +65 -0
  1965. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/LICENSE.md +21 -0
  1966. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/README.md +134 -0
  1967. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.d.ts +49 -0
  1968. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.d.ts.map +1 -0
  1969. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.js +124 -0
  1970. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/GitClient.d.ts +75 -0
  1971. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/GitClient.d.ts.map +1 -0
  1972. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/GitClient.js +160 -0
  1973. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/index.d.ts +4 -0
  1974. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/index.d.ts.map +1 -0
  1975. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/index.js +4 -0
  1976. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/types.d.ts +58 -0
  1977. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/types.d.ts.map +1 -0
  1978. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/types.js +2 -0
  1979. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/utils.d.ts +34 -0
  1980. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/utils.d.ts.map +1 -0
  1981. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/dist/utils.js +141 -0
  1982. data/node_modules/git-semver-tags/node_modules/@conventional-changelog/git-client/package.json +53 -0
  1983. data/node_modules/git-semver-tags/package.json +43 -0
  1984. data/node_modules/git-semver-tags/src/cli.js +43 -0
  1985. data/node_modules/git-semver-tags/src/index.js +42 -0
  1986. data/node_modules/global-directory/index.d.ts +58 -0
  1987. data/node_modules/global-directory/index.js +121 -0
  1988. data/node_modules/global-directory/license +9 -0
  1989. data/node_modules/global-directory/package.json +61 -0
  1990. data/node_modules/global-directory/readme.md +60 -0
  1991. data/node_modules/handlebars/LICENSE +19 -0
  1992. data/node_modules/handlebars/README.markdown +169 -0
  1993. data/node_modules/handlebars/bin/.eslintrc.js +6 -0
  1994. data/node_modules/handlebars/bin/handlebars +176 -0
  1995. data/node_modules/handlebars/dist/amd/handlebars/base.js +106 -0
  1996. data/node_modules/handlebars/dist/amd/handlebars/compiler/ast.js +31 -0
  1997. data/node_modules/handlebars/dist/amd/handlebars/compiler/base.js +45 -0
  1998. data/node_modules/handlebars/dist/amd/handlebars/compiler/code-gen.js +165 -0
  1999. data/node_modules/handlebars/dist/amd/handlebars/compiler/compiler.js +562 -0
  2000. data/node_modules/handlebars/dist/amd/handlebars/compiler/helpers.js +228 -0
  2001. data/node_modules/handlebars/dist/amd/handlebars/compiler/javascript-compiler.js +1150 -0
  2002. data/node_modules/handlebars/dist/amd/handlebars/compiler/parser.js +737 -0
  2003. data/node_modules/handlebars/dist/amd/handlebars/compiler/printer.js +186 -0
  2004. data/node_modules/handlebars/dist/amd/handlebars/compiler/visitor.js +138 -0
  2005. data/node_modules/handlebars/dist/amd/handlebars/compiler/whitespace-control.js +219 -0
  2006. data/node_modules/handlebars/dist/amd/handlebars/decorators/inline.js +25 -0
  2007. data/node_modules/handlebars/dist/amd/handlebars/decorators.js +16 -0
  2008. data/node_modules/handlebars/dist/amd/handlebars/exception.js +64 -0
  2009. data/node_modules/handlebars/dist/amd/handlebars/helpers/block-helper-missing.js +35 -0
  2010. data/node_modules/handlebars/dist/amd/handlebars/helpers/each.js +99 -0
  2011. data/node_modules/handlebars/dist/amd/handlebars/helpers/helper-missing.js +22 -0
  2012. data/node_modules/handlebars/dist/amd/handlebars/helpers/if.js +41 -0
  2013. data/node_modules/handlebars/dist/amd/handlebars/helpers/log.js +24 -0
  2014. data/node_modules/handlebars/dist/amd/handlebars/helpers/lookup.js +14 -0
  2015. data/node_modules/handlebars/dist/amd/handlebars/helpers/with.js +38 -0
  2016. data/node_modules/handlebars/dist/amd/handlebars/helpers.js +44 -0
  2017. data/node_modules/handlebars/dist/amd/handlebars/internal/create-new-lookup-object.js +22 -0
  2018. data/node_modules/handlebars/dist/amd/handlebars/internal/proto-access.js +71 -0
  2019. data/node_modules/handlebars/dist/amd/handlebars/internal/wrapHelper.js +21 -0
  2020. data/node_modules/handlebars/dist/amd/handlebars/logger.js +44 -0
  2021. data/node_modules/handlebars/dist/amd/handlebars/no-conflict.js +28 -0
  2022. data/node_modules/handlebars/dist/amd/handlebars/runtime.js +356 -0
  2023. data/node_modules/handlebars/dist/amd/handlebars/safe-string.js +15 -0
  2024. data/node_modules/handlebars/dist/amd/handlebars/utils.js +126 -0
  2025. data/node_modules/handlebars/dist/amd/handlebars.js +52 -0
  2026. data/node_modules/handlebars/dist/amd/handlebars.runtime.js +44 -0
  2027. data/node_modules/handlebars/dist/amd/precompiler.js +314 -0
  2028. data/node_modules/handlebars/dist/cjs/handlebars/base.js +116 -0
  2029. data/node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js +31 -0
  2030. data/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js +57 -0
  2031. data/node_modules/handlebars/dist/cjs/handlebars/compiler/code-gen.js +168 -0
  2032. data/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js +566 -0
  2033. data/node_modules/handlebars/dist/cjs/handlebars/compiler/helpers.js +228 -0
  2034. data/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js +1158 -0
  2035. data/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js +737 -0
  2036. data/node_modules/handlebars/dist/cjs/handlebars/compiler/printer.js +186 -0
  2037. data/node_modules/handlebars/dist/cjs/handlebars/compiler/visitor.js +140 -0
  2038. data/node_modules/handlebars/dist/cjs/handlebars/compiler/whitespace-control.js +221 -0
  2039. data/node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js +29 -0
  2040. data/node_modules/handlebars/dist/cjs/handlebars/decorators.js +16 -0
  2041. data/node_modules/handlebars/dist/cjs/handlebars/exception.js +64 -0
  2042. data/node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js +39 -0
  2043. data/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js +104 -0
  2044. data/node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js +25 -0
  2045. data/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js +46 -0
  2046. data/node_modules/handlebars/dist/cjs/handlebars/helpers/log.js +26 -0
  2047. data/node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js +16 -0
  2048. data/node_modules/handlebars/dist/cjs/handlebars/helpers/with.js +43 -0
  2049. data/node_modules/handlebars/dist/cjs/handlebars/helpers.js +56 -0
  2050. data/node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js +22 -0
  2051. data/node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js +73 -0
  2052. data/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js +19 -0
  2053. data/node_modules/handlebars/dist/cjs/handlebars/logger.js +47 -0
  2054. data/node_modules/handlebars/dist/cjs/handlebars/no-conflict.js +30 -0
  2055. data/node_modules/handlebars/dist/cjs/handlebars/runtime.js +372 -0
  2056. data/node_modules/handlebars/dist/cjs/handlebars/safe-string.js +15 -0
  2057. data/node_modules/handlebars/dist/cjs/handlebars/utils.js +124 -0
  2058. data/node_modules/handlebars/dist/cjs/handlebars.js +66 -0
  2059. data/node_modules/handlebars/dist/cjs/handlebars.runtime.js +66 -0
  2060. data/node_modules/handlebars/dist/cjs/precompiler.js +328 -0
  2061. data/node_modules/handlebars/dist/handlebars.amd.js +4639 -0
  2062. data/node_modules/handlebars/dist/handlebars.amd.min.js +29 -0
  2063. data/node_modules/handlebars/dist/handlebars.js +5972 -0
  2064. data/node_modules/handlebars/dist/handlebars.min.js +29 -0
  2065. data/node_modules/handlebars/dist/handlebars.runtime.amd.js +1302 -0
  2066. data/node_modules/handlebars/dist/handlebars.runtime.amd.min.js +27 -0
  2067. data/node_modules/handlebars/dist/handlebars.runtime.js +2563 -0
  2068. data/node_modules/handlebars/dist/handlebars.runtime.min.js +27 -0
  2069. data/node_modules/handlebars/lib/.eslintrc.js +8 -0
  2070. data/node_modules/handlebars/lib/handlebars/base.js +94 -0
  2071. data/node_modules/handlebars/lib/handlebars/compiler/ast.js +32 -0
  2072. data/node_modules/handlebars/lib/handlebars/compiler/base.js +34 -0
  2073. data/node_modules/handlebars/lib/handlebars/compiler/code-gen.js +171 -0
  2074. data/node_modules/handlebars/lib/handlebars/compiler/compiler.js +594 -0
  2075. data/node_modules/handlebars/lib/handlebars/compiler/helpers.js +219 -0
  2076. data/node_modules/handlebars/lib/handlebars/compiler/javascript-compiler.js +1293 -0
  2077. data/node_modules/handlebars/lib/handlebars/compiler/parser.js +622 -0
  2078. data/node_modules/handlebars/lib/handlebars/compiler/printer.js +178 -0
  2079. data/node_modules/handlebars/lib/handlebars/compiler/visitor.js +136 -0
  2080. data/node_modules/handlebars/lib/handlebars/compiler/whitespace-control.js +234 -0
  2081. data/node_modules/handlebars/lib/handlebars/decorators/inline.js +22 -0
  2082. data/node_modules/handlebars/lib/handlebars/decorators.js +5 -0
  2083. data/node_modules/handlebars/lib/handlebars/exception.js +68 -0
  2084. data/node_modules/handlebars/lib/handlebars/helpers/block-helper-missing.js +35 -0
  2085. data/node_modules/handlebars/lib/handlebars/helpers/each.js +101 -0
  2086. data/node_modules/handlebars/lib/handlebars/helpers/helper-missing.js +15 -0
  2087. data/node_modules/handlebars/lib/handlebars/helpers/if.js +33 -0
  2088. data/node_modules/handlebars/lib/handlebars/helpers/log.js +19 -0
  2089. data/node_modules/handlebars/lib/handlebars/helpers/lookup.js +9 -0
  2090. data/node_modules/handlebars/lib/handlebars/helpers/with.js +39 -0
  2091. data/node_modules/handlebars/lib/handlebars/helpers.js +26 -0
  2092. data/node_modules/handlebars/lib/handlebars/internal/create-new-lookup-object.js +11 -0
  2093. data/node_modules/handlebars/lib/handlebars/internal/proto-access.js +70 -0
  2094. data/node_modules/handlebars/lib/handlebars/internal/wrapHelper.js +13 -0
  2095. data/node_modules/handlebars/lib/handlebars/logger.js +39 -0
  2096. data/node_modules/handlebars/lib/handlebars/no-conflict.js +23 -0
  2097. data/node_modules/handlebars/lib/handlebars/runtime.js +450 -0
  2098. data/node_modules/handlebars/lib/handlebars/safe-string.js +10 -0
  2099. data/node_modules/handlebars/lib/handlebars/utils.js +116 -0
  2100. data/node_modules/handlebars/lib/handlebars.js +46 -0
  2101. data/node_modules/handlebars/lib/handlebars.runtime.js +37 -0
  2102. data/node_modules/handlebars/lib/index.js +26 -0
  2103. data/node_modules/handlebars/lib/precompiler.js +341 -0
  2104. data/node_modules/handlebars/package.json +135 -0
  2105. data/node_modules/handlebars/release-notes.md +1102 -0
  2106. data/node_modules/handlebars/runtime.d.ts +5 -0
  2107. data/node_modules/handlebars/runtime.js +3 -0
  2108. data/node_modules/handlebars/types/index.d.ts +422 -0
  2109. data/node_modules/has-flag/index.js +8 -0
  2110. data/node_modules/has-flag/license +9 -0
  2111. data/node_modules/has-flag/package.json +44 -0
  2112. data/node_modules/has-flag/readme.md +70 -0
  2113. data/node_modules/hosted-git-info/LICENSE +13 -0
  2114. data/node_modules/hosted-git-info/README.md +133 -0
  2115. data/node_modules/hosted-git-info/lib/from-url.js +122 -0
  2116. data/node_modules/hosted-git-info/lib/hosts.js +227 -0
  2117. data/node_modules/hosted-git-info/lib/index.js +179 -0
  2118. data/node_modules/hosted-git-info/lib/parse-url.js +78 -0
  2119. data/node_modules/hosted-git-info/package.json +60 -0
  2120. data/node_modules/human-signals/LICENSE +201 -0
  2121. data/node_modules/human-signals/README.md +168 -0
  2122. data/node_modules/human-signals/build/src/core.js +273 -0
  2123. data/node_modules/human-signals/build/src/main.d.ts +73 -0
  2124. data/node_modules/human-signals/build/src/main.js +70 -0
  2125. data/node_modules/human-signals/build/src/realtime.js +16 -0
  2126. data/node_modules/human-signals/build/src/signals.js +34 -0
  2127. data/node_modules/human-signals/package.json +61 -0
  2128. data/node_modules/import-fresh/index.d.ts +30 -0
  2129. data/node_modules/import-fresh/index.js +33 -0
  2130. data/node_modules/import-fresh/license +9 -0
  2131. data/node_modules/import-fresh/node_modules/resolve-from/index.js +47 -0
  2132. data/node_modules/import-fresh/node_modules/resolve-from/license +9 -0
  2133. data/node_modules/import-fresh/node_modules/resolve-from/package.json +34 -0
  2134. data/node_modules/import-fresh/node_modules/resolve-from/readme.md +72 -0
  2135. data/node_modules/import-fresh/package.json +43 -0
  2136. data/node_modules/import-fresh/readme.md +48 -0
  2137. data/node_modules/import-meta-resolve/index.d.ts +18 -0
  2138. data/node_modules/import-meta-resolve/index.js +47 -0
  2139. data/node_modules/import-meta-resolve/lib/errors.d.ts +23 -0
  2140. data/node_modules/import-meta-resolve/lib/errors.js +507 -0
  2141. data/node_modules/import-meta-resolve/lib/get-format.d.ts +12 -0
  2142. data/node_modules/import-meta-resolve/lib/get-format.js +159 -0
  2143. data/node_modules/import-meta-resolve/lib/package-json-reader.d.ts +31 -0
  2144. data/node_modules/import-meta-resolve/lib/package-json-reader.js +177 -0
  2145. data/node_modules/import-meta-resolve/lib/resolve.d.ts +33 -0
  2146. data/node_modules/import-meta-resolve/lib/resolve.js +1297 -0
  2147. data/node_modules/import-meta-resolve/lib/utils.d.ts +5 -0
  2148. data/node_modules/import-meta-resolve/lib/utils.js +47 -0
  2149. data/node_modules/import-meta-resolve/license +74 -0
  2150. data/node_modules/import-meta-resolve/package.json +95 -0
  2151. data/node_modules/import-meta-resolve/readme.md +252 -0
  2152. data/node_modules/index-to-position/index.d.ts +21 -0
  2153. data/node_modules/index-to-position/index.js +29 -0
  2154. data/node_modules/index-to-position/license +9 -0
  2155. data/node_modules/index-to-position/package.json +47 -0
  2156. data/node_modules/index-to-position/readme.md +45 -0
  2157. data/node_modules/ini/LICENSE +15 -0
  2158. data/node_modules/ini/README.md +125 -0
  2159. data/node_modules/ini/lib/ini.js +278 -0
  2160. data/node_modules/ini/package.json +45 -0
  2161. data/node_modules/is-arrayish/.editorconfig +18 -0
  2162. data/node_modules/is-arrayish/.istanbul.yml +4 -0
  2163. data/node_modules/is-arrayish/.npmignore +5 -0
  2164. data/node_modules/is-arrayish/.travis.yml +17 -0
  2165. data/node_modules/is-arrayish/LICENSE +21 -0
  2166. data/node_modules/is-arrayish/README.md +16 -0
  2167. data/node_modules/is-arrayish/index.js +10 -0
  2168. data/node_modules/is-arrayish/package.json +34 -0
  2169. data/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  2170. data/node_modules/is-fullwidth-code-point/index.js +50 -0
  2171. data/node_modules/is-fullwidth-code-point/license +9 -0
  2172. data/node_modules/is-fullwidth-code-point/package.json +42 -0
  2173. data/node_modules/is-fullwidth-code-point/readme.md +39 -0
  2174. data/node_modules/is-obj/index.d.ts +22 -0
  2175. data/node_modules/is-obj/index.js +6 -0
  2176. data/node_modules/is-obj/license +9 -0
  2177. data/node_modules/is-obj/package.json +34 -0
  2178. data/node_modules/is-obj/readme.md +39 -0
  2179. data/node_modules/is-stream/index.d.ts +81 -0
  2180. data/node_modules/is-stream/index.js +29 -0
  2181. data/node_modules/is-stream/license +9 -0
  2182. data/node_modules/is-stream/package.json +44 -0
  2183. data/node_modules/is-stream/readme.md +60 -0
  2184. data/node_modules/is-text-path/index.d.ts +17 -0
  2185. data/node_modules/is-text-path/index.js +7 -0
  2186. data/node_modules/is-text-path/license +9 -0
  2187. data/node_modules/is-text-path/package.json +40 -0
  2188. data/node_modules/is-text-path/readme.md +34 -0
  2189. data/node_modules/isexe/.npmignore +2 -0
  2190. data/node_modules/isexe/LICENSE +15 -0
  2191. data/node_modules/isexe/README.md +51 -0
  2192. data/node_modules/isexe/index.js +57 -0
  2193. data/node_modules/isexe/mode.js +41 -0
  2194. data/node_modules/isexe/package.json +31 -0
  2195. data/node_modules/isexe/test/basic.js +221 -0
  2196. data/node_modules/isexe/windows.js +42 -0
  2197. data/node_modules/jiti/LICENSE +21 -0
  2198. data/node_modules/jiti/README.md +164 -0
  2199. data/node_modules/jiti/bin/jiti.js +16 -0
  2200. data/node_modules/jiti/dist/babel.d.ts +2 -0
  2201. data/node_modules/jiti/dist/babel.js +202 -0
  2202. data/node_modules/jiti/dist/jiti.d.ts +22 -0
  2203. data/node_modules/jiti/dist/jiti.js +1 -0
  2204. data/node_modules/jiti/dist/plugins/babel-plugin-transform-import-meta.d.ts +4 -0
  2205. data/node_modules/jiti/dist/plugins/import-meta-env.d.ts +5 -0
  2206. data/node_modules/jiti/dist/types.d.ts +35 -0
  2207. data/node_modules/jiti/dist/utils.d.ts +8 -0
  2208. data/node_modules/jiti/lib/index.js +15 -0
  2209. data/node_modules/jiti/package.json +81 -0
  2210. data/node_modules/jiti/register.js +3 -0
  2211. data/node_modules/js-tokens/CHANGELOG.md +151 -0
  2212. data/node_modules/js-tokens/LICENSE +21 -0
  2213. data/node_modules/js-tokens/README.md +240 -0
  2214. data/node_modules/js-tokens/index.js +23 -0
  2215. data/node_modules/js-tokens/package.json +30 -0
  2216. data/node_modules/js-yaml/CHANGELOG.md +616 -0
  2217. data/node_modules/js-yaml/LICENSE +21 -0
  2218. data/node_modules/js-yaml/README.md +246 -0
  2219. data/node_modules/js-yaml/bin/js-yaml.js +126 -0
  2220. data/node_modules/js-yaml/dist/js-yaml.js +3874 -0
  2221. data/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
  2222. data/node_modules/js-yaml/dist/js-yaml.mjs +3851 -0
  2223. data/node_modules/js-yaml/index.js +47 -0
  2224. data/node_modules/js-yaml/lib/common.js +59 -0
  2225. data/node_modules/js-yaml/lib/dumper.js +965 -0
  2226. data/node_modules/js-yaml/lib/exception.js +55 -0
  2227. data/node_modules/js-yaml/lib/loader.js +1727 -0
  2228. data/node_modules/js-yaml/lib/schema/core.js +11 -0
  2229. data/node_modules/js-yaml/lib/schema/default.js +22 -0
  2230. data/node_modules/js-yaml/lib/schema/failsafe.js +17 -0
  2231. data/node_modules/js-yaml/lib/schema/json.js +19 -0
  2232. data/node_modules/js-yaml/lib/schema.js +121 -0
  2233. data/node_modules/js-yaml/lib/snippet.js +101 -0
  2234. data/node_modules/js-yaml/lib/type/binary.js +125 -0
  2235. data/node_modules/js-yaml/lib/type/bool.js +35 -0
  2236. data/node_modules/js-yaml/lib/type/float.js +97 -0
  2237. data/node_modules/js-yaml/lib/type/int.js +156 -0
  2238. data/node_modules/js-yaml/lib/type/map.js +8 -0
  2239. data/node_modules/js-yaml/lib/type/merge.js +12 -0
  2240. data/node_modules/js-yaml/lib/type/null.js +35 -0
  2241. data/node_modules/js-yaml/lib/type/omap.js +44 -0
  2242. data/node_modules/js-yaml/lib/type/pairs.js +53 -0
  2243. data/node_modules/js-yaml/lib/type/seq.js +8 -0
  2244. data/node_modules/js-yaml/lib/type/set.js +29 -0
  2245. data/node_modules/js-yaml/lib/type/str.js +8 -0
  2246. data/node_modules/js-yaml/lib/type/timestamp.js +88 -0
  2247. data/node_modules/js-yaml/lib/type.js +66 -0
  2248. data/node_modules/js-yaml/package.json +66 -0
  2249. data/node_modules/json-parse-even-better-errors/CHANGELOG.md +50 -0
  2250. data/node_modules/json-parse-even-better-errors/LICENSE.md +25 -0
  2251. data/node_modules/json-parse-even-better-errors/README.md +96 -0
  2252. data/node_modules/json-parse-even-better-errors/index.js +121 -0
  2253. data/node_modules/json-parse-even-better-errors/package.json +33 -0
  2254. data/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  2255. data/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  2256. data/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  2257. data/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  2258. data/node_modules/json-schema-traverse/LICENSE +21 -0
  2259. data/node_modules/json-schema-traverse/README.md +95 -0
  2260. data/node_modules/json-schema-traverse/index.d.ts +40 -0
  2261. data/node_modules/json-schema-traverse/index.js +93 -0
  2262. data/node_modules/json-schema-traverse/package.json +43 -0
  2263. data/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  2264. data/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  2265. data/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  2266. data/node_modules/jsonparse/.npmignore +1 -0
  2267. data/node_modules/jsonparse/LICENSE +24 -0
  2268. data/node_modules/jsonparse/README.markdown +11 -0
  2269. data/node_modules/jsonparse/bench.js +26 -0
  2270. data/node_modules/jsonparse/examples/twitterfeed.js +30 -0
  2271. data/node_modules/jsonparse/jsonparse.js +413 -0
  2272. data/node_modules/jsonparse/package.json +22 -0
  2273. data/node_modules/jsonparse/samplejson/basic.json +167 -0
  2274. data/node_modules/jsonparse/samplejson/basic2.json +180 -0
  2275. data/node_modules/jsonparse/test/big-token.js +24 -0
  2276. data/node_modules/jsonparse/test/boundary.js +110 -0
  2277. data/node_modules/jsonparse/test/offset.js +67 -0
  2278. data/node_modules/jsonparse/test/primitives.js +57 -0
  2279. data/node_modules/jsonparse/test/surrogate.js +26 -0
  2280. data/node_modules/jsonparse/test/unvalid.js +15 -0
  2281. data/node_modules/jsonparse/test/utf8.js +38 -0
  2282. data/node_modules/lefthook/README.md +243 -0
  2283. data/node_modules/lefthook/bin/index.js +17 -0
  2284. data/node_modules/lefthook/get-exe.js +20 -0
  2285. data/node_modules/lefthook/package.json +40 -0
  2286. data/node_modules/lefthook/postinstall.js +21 -0
  2287. data/node_modules/lefthook-darwin-arm64/README.md +243 -0
  2288. data/node_modules/lefthook-darwin-arm64/bin/lefthook +0 -0
  2289. data/node_modules/lefthook-darwin-arm64/package.json +22 -0
  2290. data/node_modules/lines-and-columns/LICENSE +21 -0
  2291. data/node_modules/lines-and-columns/README.md +33 -0
  2292. data/node_modules/lines-and-columns/build/index.d.ts +13 -0
  2293. data/node_modules/lines-and-columns/build/index.js +62 -0
  2294. data/node_modules/lines-and-columns/package.json +49 -0
  2295. data/node_modules/locate-path/index.d.ts +92 -0
  2296. data/node_modules/locate-path/index.js +77 -0
  2297. data/node_modules/locate-path/license +9 -0
  2298. data/node_modules/locate-path/package.json +48 -0
  2299. data/node_modules/locate-path/readme.md +123 -0
  2300. data/node_modules/lodash.camelcase/LICENSE +47 -0
  2301. data/node_modules/lodash.camelcase/README.md +18 -0
  2302. data/node_modules/lodash.camelcase/index.js +599 -0
  2303. data/node_modules/lodash.camelcase/package.json +17 -0
  2304. data/node_modules/lodash.isplainobject/LICENSE +47 -0
  2305. data/node_modules/lodash.isplainobject/README.md +18 -0
  2306. data/node_modules/lodash.isplainobject/index.js +139 -0
  2307. data/node_modules/lodash.isplainobject/package.json +17 -0
  2308. data/node_modules/lodash.kebabcase/LICENSE +47 -0
  2309. data/node_modules/lodash.kebabcase/README.md +18 -0
  2310. data/node_modules/lodash.kebabcase/index.js +435 -0
  2311. data/node_modules/lodash.kebabcase/package.json +17 -0
  2312. data/node_modules/lodash.merge/LICENSE +47 -0
  2313. data/node_modules/lodash.merge/README.md +18 -0
  2314. data/node_modules/lodash.merge/index.js +1977 -0
  2315. data/node_modules/lodash.merge/package.json +16 -0
  2316. data/node_modules/lodash.mergewith/LICENSE +47 -0
  2317. data/node_modules/lodash.mergewith/README.md +18 -0
  2318. data/node_modules/lodash.mergewith/index.js +1977 -0
  2319. data/node_modules/lodash.mergewith/package.json +16 -0
  2320. data/node_modules/lodash.snakecase/LICENSE +47 -0
  2321. data/node_modules/lodash.snakecase/README.md +18 -0
  2322. data/node_modules/lodash.snakecase/index.js +435 -0
  2323. data/node_modules/lodash.snakecase/package.json +17 -0
  2324. data/node_modules/lodash.startcase/LICENSE +47 -0
  2325. data/node_modules/lodash.startcase/README.md +18 -0
  2326. data/node_modules/lodash.startcase/index.js +580 -0
  2327. data/node_modules/lodash.startcase/package.json +17 -0
  2328. data/node_modules/lodash.uniq/LICENSE +47 -0
  2329. data/node_modules/lodash.uniq/README.md +18 -0
  2330. data/node_modules/lodash.uniq/index.js +896 -0
  2331. data/node_modules/lodash.uniq/package.json +17 -0
  2332. data/node_modules/lodash.upperfirst/LICENSE +47 -0
  2333. data/node_modules/lodash.upperfirst/README.md +18 -0
  2334. data/node_modules/lodash.upperfirst/index.js +303 -0
  2335. data/node_modules/lodash.upperfirst/package.json +17 -0
  2336. data/node_modules/lru-cache/LICENSE +15 -0
  2337. data/node_modules/lru-cache/README.md +331 -0
  2338. data/node_modules/lru-cache/dist/commonjs/index.d.ts +1277 -0
  2339. data/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
  2340. data/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
  2341. data/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
  2342. data/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  2343. data/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
  2344. data/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  2345. data/node_modules/lru-cache/dist/esm/index.d.ts +1277 -0
  2346. data/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
  2347. data/node_modules/lru-cache/dist/esm/index.js +1542 -0
  2348. data/node_modules/lru-cache/dist/esm/index.js.map +1 -0
  2349. data/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  2350. data/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
  2351. data/node_modules/lru-cache/dist/esm/package.json +3 -0
  2352. data/node_modules/lru-cache/package.json +116 -0
  2353. data/node_modules/meow/build/dependencies.js +8828 -0
  2354. data/node_modules/meow/build/index.d.ts +1425 -0
  2355. data/node_modules/meow/build/index.js +95 -0
  2356. data/node_modules/meow/build/licenses.md +1620 -0
  2357. data/node_modules/meow/build/options.js +92 -0
  2358. data/node_modules/meow/build/parser.js +84 -0
  2359. data/node_modules/meow/build/utils.js +7 -0
  2360. data/node_modules/meow/build/validate.js +122 -0
  2361. data/node_modules/meow/license +9 -0
  2362. data/node_modules/meow/package.json +105 -0
  2363. data/node_modules/meow/readme.md +314 -0
  2364. data/node_modules/merge-stream/LICENSE +21 -0
  2365. data/node_modules/merge-stream/README.md +78 -0
  2366. data/node_modules/merge-stream/index.js +41 -0
  2367. data/node_modules/merge-stream/package.json +19 -0
  2368. data/node_modules/mimic-fn/index.d.ts +52 -0
  2369. data/node_modules/mimic-fn/index.js +71 -0
  2370. data/node_modules/mimic-fn/license +9 -0
  2371. data/node_modules/mimic-fn/package.json +45 -0
  2372. data/node_modules/mimic-fn/readme.md +90 -0
  2373. data/node_modules/minimist/.eslintrc +29 -0
  2374. data/node_modules/minimist/.github/FUNDING.yml +12 -0
  2375. data/node_modules/minimist/.nycrc +14 -0
  2376. data/node_modules/minimist/CHANGELOG.md +298 -0
  2377. data/node_modules/minimist/LICENSE +18 -0
  2378. data/node_modules/minimist/README.md +121 -0
  2379. data/node_modules/minimist/example/parse.js +4 -0
  2380. data/node_modules/minimist/index.js +263 -0
  2381. data/node_modules/minimist/package.json +75 -0
  2382. data/node_modules/minimist/test/all_bool.js +34 -0
  2383. data/node_modules/minimist/test/bool.js +177 -0
  2384. data/node_modules/minimist/test/dash.js +43 -0
  2385. data/node_modules/minimist/test/default_bool.js +37 -0
  2386. data/node_modules/minimist/test/dotted.js +24 -0
  2387. data/node_modules/minimist/test/kv_short.js +32 -0
  2388. data/node_modules/minimist/test/long.js +33 -0
  2389. data/node_modules/minimist/test/num.js +38 -0
  2390. data/node_modules/minimist/test/parse.js +209 -0
  2391. data/node_modules/minimist/test/parse_modified.js +11 -0
  2392. data/node_modules/minimist/test/proto.js +64 -0
  2393. data/node_modules/minimist/test/short.js +69 -0
  2394. data/node_modules/minimist/test/stop_early.js +17 -0
  2395. data/node_modules/minimist/test/unknown.js +104 -0
  2396. data/node_modules/minimist/test/whitespace.js +10 -0
  2397. data/node_modules/neo-async/LICENSE +22 -0
  2398. data/node_modules/neo-async/README.md +273 -0
  2399. data/node_modules/neo-async/all.js +3 -0
  2400. data/node_modules/neo-async/allLimit.js +3 -0
  2401. data/node_modules/neo-async/allSeries.js +3 -0
  2402. data/node_modules/neo-async/angelFall.js +3 -0
  2403. data/node_modules/neo-async/any.js +3 -0
  2404. data/node_modules/neo-async/anyLimit.js +3 -0
  2405. data/node_modules/neo-async/anySeries.js +3 -0
  2406. data/node_modules/neo-async/apply.js +3 -0
  2407. data/node_modules/neo-async/applyEach.js +3 -0
  2408. data/node_modules/neo-async/applyEachSeries.js +3 -0
  2409. data/node_modules/neo-async/async.js +9184 -0
  2410. data/node_modules/neo-async/async.min.js +80 -0
  2411. data/node_modules/neo-async/asyncify.js +3 -0
  2412. data/node_modules/neo-async/auto.js +3 -0
  2413. data/node_modules/neo-async/autoInject.js +3 -0
  2414. data/node_modules/neo-async/cargo.js +3 -0
  2415. data/node_modules/neo-async/compose.js +3 -0
  2416. data/node_modules/neo-async/concat.js +3 -0
  2417. data/node_modules/neo-async/concatLimit.js +3 -0
  2418. data/node_modules/neo-async/concatSeries.js +3 -0
  2419. data/node_modules/neo-async/constant.js +3 -0
  2420. data/node_modules/neo-async/createLogger.js +3 -0
  2421. data/node_modules/neo-async/detect.js +3 -0
  2422. data/node_modules/neo-async/detectLimit.js +3 -0
  2423. data/node_modules/neo-async/detectSeries.js +3 -0
  2424. data/node_modules/neo-async/dir.js +3 -0
  2425. data/node_modules/neo-async/doDuring.js +3 -0
  2426. data/node_modules/neo-async/doUntil.js +3 -0
  2427. data/node_modules/neo-async/doWhilst.js +3 -0
  2428. data/node_modules/neo-async/during.js +3 -0
  2429. data/node_modules/neo-async/each.js +3 -0
  2430. data/node_modules/neo-async/eachLimit.js +3 -0
  2431. data/node_modules/neo-async/eachOf.js +3 -0
  2432. data/node_modules/neo-async/eachOfLimit.js +3 -0
  2433. data/node_modules/neo-async/eachOfSeries.js +3 -0
  2434. data/node_modules/neo-async/eachSeries.js +3 -0
  2435. data/node_modules/neo-async/ensureAsync.js +3 -0
  2436. data/node_modules/neo-async/every.js +3 -0
  2437. data/node_modules/neo-async/everyLimit.js +3 -0
  2438. data/node_modules/neo-async/everySeries.js +3 -0
  2439. data/node_modules/neo-async/fast.js +3 -0
  2440. data/node_modules/neo-async/filter.js +3 -0
  2441. data/node_modules/neo-async/filterLimit.js +3 -0
  2442. data/node_modules/neo-async/filterSeries.js +3 -0
  2443. data/node_modules/neo-async/find.js +3 -0
  2444. data/node_modules/neo-async/findLimit.js +3 -0
  2445. data/node_modules/neo-async/findSeries.js +3 -0
  2446. data/node_modules/neo-async/foldl.js +3 -0
  2447. data/node_modules/neo-async/foldr.js +3 -0
  2448. data/node_modules/neo-async/forEach.js +3 -0
  2449. data/node_modules/neo-async/forEachLimit.js +3 -0
  2450. data/node_modules/neo-async/forEachOf.js +3 -0
  2451. data/node_modules/neo-async/forEachOfLimit.js +3 -0
  2452. data/node_modules/neo-async/forEachOfSeries.js +3 -0
  2453. data/node_modules/neo-async/forEachSeries.js +3 -0
  2454. data/node_modules/neo-async/forever.js +3 -0
  2455. data/node_modules/neo-async/groupBy.js +3 -0
  2456. data/node_modules/neo-async/groupByLimit.js +3 -0
  2457. data/node_modules/neo-async/groupBySeries.js +3 -0
  2458. data/node_modules/neo-async/inject.js +3 -0
  2459. data/node_modules/neo-async/iterator.js +3 -0
  2460. data/node_modules/neo-async/log.js +3 -0
  2461. data/node_modules/neo-async/map.js +3 -0
  2462. data/node_modules/neo-async/mapLimit.js +3 -0
  2463. data/node_modules/neo-async/mapSeries.js +3 -0
  2464. data/node_modules/neo-async/mapValues.js +3 -0
  2465. data/node_modules/neo-async/mapValuesLimit.js +3 -0
  2466. data/node_modules/neo-async/mapValuesSeries.js +3 -0
  2467. data/node_modules/neo-async/memoize.js +3 -0
  2468. data/node_modules/neo-async/nextTick.js +3 -0
  2469. data/node_modules/neo-async/omit.js +3 -0
  2470. data/node_modules/neo-async/omitLimit.js +3 -0
  2471. data/node_modules/neo-async/omitSeries.js +3 -0
  2472. data/node_modules/neo-async/package.json +57 -0
  2473. data/node_modules/neo-async/parallel.js +3 -0
  2474. data/node_modules/neo-async/parallelLimit.js +3 -0
  2475. data/node_modules/neo-async/pick.js +3 -0
  2476. data/node_modules/neo-async/pickLimit.js +3 -0
  2477. data/node_modules/neo-async/pickSeries.js +3 -0
  2478. data/node_modules/neo-async/priorityQueue.js +3 -0
  2479. data/node_modules/neo-async/queue.js +3 -0
  2480. data/node_modules/neo-async/race.js +3 -0
  2481. data/node_modules/neo-async/reduce.js +3 -0
  2482. data/node_modules/neo-async/reduceRight.js +3 -0
  2483. data/node_modules/neo-async/reflect.js +3 -0
  2484. data/node_modules/neo-async/reflectAll.js +3 -0
  2485. data/node_modules/neo-async/reject.js +3 -0
  2486. data/node_modules/neo-async/rejectLimit.js +3 -0
  2487. data/node_modules/neo-async/rejectSeries.js +3 -0
  2488. data/node_modules/neo-async/retry.js +3 -0
  2489. data/node_modules/neo-async/retryable.js +3 -0
  2490. data/node_modules/neo-async/safe.js +3 -0
  2491. data/node_modules/neo-async/select.js +3 -0
  2492. data/node_modules/neo-async/selectLimit.js +3 -0
  2493. data/node_modules/neo-async/selectSeries.js +3 -0
  2494. data/node_modules/neo-async/seq.js +3 -0
  2495. data/node_modules/neo-async/series.js +3 -0
  2496. data/node_modules/neo-async/setImmediate.js +3 -0
  2497. data/node_modules/neo-async/some.js +3 -0
  2498. data/node_modules/neo-async/someLimit.js +3 -0
  2499. data/node_modules/neo-async/someSeries.js +3 -0
  2500. data/node_modules/neo-async/sortBy.js +3 -0
  2501. data/node_modules/neo-async/sortByLimit.js +3 -0
  2502. data/node_modules/neo-async/sortBySeries.js +3 -0
  2503. data/node_modules/neo-async/timeout.js +3 -0
  2504. data/node_modules/neo-async/times.js +3 -0
  2505. data/node_modules/neo-async/timesLimit.js +3 -0
  2506. data/node_modules/neo-async/timesSeries.js +3 -0
  2507. data/node_modules/neo-async/transform.js +3 -0
  2508. data/node_modules/neo-async/transformLimit.js +3 -0
  2509. data/node_modules/neo-async/transformSeries.js +3 -0
  2510. data/node_modules/neo-async/tryEach.js +3 -0
  2511. data/node_modules/neo-async/unmemoize.js +3 -0
  2512. data/node_modules/neo-async/until.js +3 -0
  2513. data/node_modules/neo-async/waterfall.js +3 -0
  2514. data/node_modules/neo-async/whilst.js +3 -0
  2515. data/node_modules/neo-async/wrapSync.js +3 -0
  2516. data/node_modules/normalize-package-data/LICENSE +15 -0
  2517. data/node_modules/normalize-package-data/README.md +108 -0
  2518. data/node_modules/normalize-package-data/lib/extract_description.js +24 -0
  2519. data/node_modules/normalize-package-data/lib/fixer.js +475 -0
  2520. data/node_modules/normalize-package-data/lib/make_warning.js +22 -0
  2521. data/node_modules/normalize-package-data/lib/normalize.js +48 -0
  2522. data/node_modules/normalize-package-data/lib/safe_format.js +11 -0
  2523. data/node_modules/normalize-package-data/lib/typos.json +25 -0
  2524. data/node_modules/normalize-package-data/lib/warning_messages.json +30 -0
  2525. data/node_modules/normalize-package-data/package.json +55 -0
  2526. data/node_modules/npm-run-path/index.d.ts +90 -0
  2527. data/node_modules/npm-run-path/index.js +52 -0
  2528. data/node_modules/npm-run-path/license +9 -0
  2529. data/node_modules/npm-run-path/node_modules/path-key/index.d.ts +31 -0
  2530. data/node_modules/npm-run-path/node_modules/path-key/index.js +12 -0
  2531. data/node_modules/npm-run-path/node_modules/path-key/license +9 -0
  2532. data/node_modules/npm-run-path/node_modules/path-key/package.json +41 -0
  2533. data/node_modules/npm-run-path/node_modules/path-key/readme.md +57 -0
  2534. data/node_modules/npm-run-path/package.json +49 -0
  2535. data/node_modules/npm-run-path/readme.md +104 -0
  2536. data/node_modules/onetime/index.d.ts +59 -0
  2537. data/node_modules/onetime/index.js +41 -0
  2538. data/node_modules/onetime/license +9 -0
  2539. data/node_modules/onetime/package.json +45 -0
  2540. data/node_modules/onetime/readme.md +94 -0
  2541. data/node_modules/p-limit/index.d.ts +40 -0
  2542. data/node_modules/p-limit/index.js +68 -0
  2543. data/node_modules/p-limit/license +9 -0
  2544. data/node_modules/p-limit/package.json +54 -0
  2545. data/node_modules/p-limit/readme.md +99 -0
  2546. data/node_modules/p-locate/index.d.ts +49 -0
  2547. data/node_modules/p-locate/index.js +48 -0
  2548. data/node_modules/p-locate/license +9 -0
  2549. data/node_modules/p-locate/package.json +56 -0
  2550. data/node_modules/p-locate/readme.md +91 -0
  2551. data/node_modules/parent-module/index.js +37 -0
  2552. data/node_modules/parent-module/license +9 -0
  2553. data/node_modules/parent-module/package.json +46 -0
  2554. data/node_modules/parent-module/readme.md +67 -0
  2555. data/node_modules/parse-json/index.js +54 -0
  2556. data/node_modules/parse-json/license +9 -0
  2557. data/node_modules/parse-json/package.json +45 -0
  2558. data/node_modules/parse-json/readme.md +119 -0
  2559. data/node_modules/path-exists/index.d.ts +31 -0
  2560. data/node_modules/path-exists/index.js +19 -0
  2561. data/node_modules/path-exists/license +9 -0
  2562. data/node_modules/path-exists/package.json +41 -0
  2563. data/node_modules/path-exists/readme.md +52 -0
  2564. data/node_modules/path-key/index.d.ts +40 -0
  2565. data/node_modules/path-key/index.js +16 -0
  2566. data/node_modules/path-key/license +9 -0
  2567. data/node_modules/path-key/package.json +39 -0
  2568. data/node_modules/path-key/readme.md +61 -0
  2569. data/node_modules/picocolors/LICENSE +15 -0
  2570. data/node_modules/picocolors/README.md +21 -0
  2571. data/node_modules/picocolors/package.json +25 -0
  2572. data/node_modules/picocolors/picocolors.browser.js +4 -0
  2573. data/node_modules/picocolors/picocolors.d.ts +5 -0
  2574. data/node_modules/picocolors/picocolors.js +65 -0
  2575. data/node_modules/picocolors/types.ts +30 -0
  2576. data/node_modules/read-package-up/index.d.ts +81 -0
  2577. data/node_modules/read-package-up/index.js +27 -0
  2578. data/node_modules/read-package-up/license +9 -0
  2579. data/node_modules/read-package-up/package.json +69 -0
  2580. data/node_modules/read-package-up/readme.md +68 -0
  2581. data/node_modules/read-pkg/index.d.ts +68 -0
  2582. data/node_modules/read-pkg/index.js +43 -0
  2583. data/node_modules/read-pkg/license +9 -0
  2584. data/node_modules/read-pkg/node_modules/parse-json/index.d.ts +126 -0
  2585. data/node_modules/read-pkg/node_modules/parse-json/index.js +96 -0
  2586. data/node_modules/read-pkg/node_modules/parse-json/license +9 -0
  2587. data/node_modules/read-pkg/node_modules/parse-json/package.json +53 -0
  2588. data/node_modules/read-pkg/node_modules/parse-json/readme.md +113 -0
  2589. data/node_modules/read-pkg/package.json +52 -0
  2590. data/node_modules/read-pkg/readme.md +81 -0
  2591. data/node_modules/require-directory/.jshintrc +67 -0
  2592. data/node_modules/require-directory/.npmignore +1 -0
  2593. data/node_modules/require-directory/.travis.yml +3 -0
  2594. data/node_modules/require-directory/LICENSE +22 -0
  2595. data/node_modules/require-directory/README.markdown +184 -0
  2596. data/node_modules/require-directory/index.js +86 -0
  2597. data/node_modules/require-directory/package.json +40 -0
  2598. data/node_modules/require-from-string/index.js +34 -0
  2599. data/node_modules/require-from-string/license +21 -0
  2600. data/node_modules/require-from-string/package.json +28 -0
  2601. data/node_modules/require-from-string/readme.md +56 -0
  2602. data/node_modules/resolve-from/index.d.ts +31 -0
  2603. data/node_modules/resolve-from/index.js +47 -0
  2604. data/node_modules/resolve-from/license +9 -0
  2605. data/node_modules/resolve-from/package.json +36 -0
  2606. data/node_modules/resolve-from/readme.md +72 -0
  2607. data/node_modules/semver/LICENSE +15 -0
  2608. data/node_modules/semver/README.md +654 -0
  2609. data/node_modules/semver/bin/semver.js +188 -0
  2610. data/node_modules/semver/classes/comparator.js +141 -0
  2611. data/node_modules/semver/classes/index.js +5 -0
  2612. data/node_modules/semver/classes/range.js +554 -0
  2613. data/node_modules/semver/classes/semver.js +302 -0
  2614. data/node_modules/semver/functions/clean.js +6 -0
  2615. data/node_modules/semver/functions/cmp.js +52 -0
  2616. data/node_modules/semver/functions/coerce.js +60 -0
  2617. data/node_modules/semver/functions/compare-build.js +7 -0
  2618. data/node_modules/semver/functions/compare-loose.js +3 -0
  2619. data/node_modules/semver/functions/compare.js +5 -0
  2620. data/node_modules/semver/functions/diff.js +65 -0
  2621. data/node_modules/semver/functions/eq.js +3 -0
  2622. data/node_modules/semver/functions/gt.js +3 -0
  2623. data/node_modules/semver/functions/gte.js +3 -0
  2624. data/node_modules/semver/functions/inc.js +19 -0
  2625. data/node_modules/semver/functions/lt.js +3 -0
  2626. data/node_modules/semver/functions/lte.js +3 -0
  2627. data/node_modules/semver/functions/major.js +3 -0
  2628. data/node_modules/semver/functions/minor.js +3 -0
  2629. data/node_modules/semver/functions/neq.js +3 -0
  2630. data/node_modules/semver/functions/parse.js +16 -0
  2631. data/node_modules/semver/functions/patch.js +3 -0
  2632. data/node_modules/semver/functions/prerelease.js +6 -0
  2633. data/node_modules/semver/functions/rcompare.js +3 -0
  2634. data/node_modules/semver/functions/rsort.js +3 -0
  2635. data/node_modules/semver/functions/satisfies.js +10 -0
  2636. data/node_modules/semver/functions/sort.js +3 -0
  2637. data/node_modules/semver/functions/valid.js +6 -0
  2638. data/node_modules/semver/index.js +89 -0
  2639. data/node_modules/semver/internal/constants.js +35 -0
  2640. data/node_modules/semver/internal/debug.js +9 -0
  2641. data/node_modules/semver/internal/identifiers.js +23 -0
  2642. data/node_modules/semver/internal/lrucache.js +40 -0
  2643. data/node_modules/semver/internal/parse-options.js +15 -0
  2644. data/node_modules/semver/internal/re.js +217 -0
  2645. data/node_modules/semver/package.json +77 -0
  2646. data/node_modules/semver/preload.js +2 -0
  2647. data/node_modules/semver/range.bnf +16 -0
  2648. data/node_modules/semver/ranges/gtr.js +4 -0
  2649. data/node_modules/semver/ranges/intersects.js +7 -0
  2650. data/node_modules/semver/ranges/ltr.js +4 -0
  2651. data/node_modules/semver/ranges/max-satisfying.js +25 -0
  2652. data/node_modules/semver/ranges/min-satisfying.js +24 -0
  2653. data/node_modules/semver/ranges/min-version.js +61 -0
  2654. data/node_modules/semver/ranges/outside.js +80 -0
  2655. data/node_modules/semver/ranges/simplify.js +47 -0
  2656. data/node_modules/semver/ranges/subset.js +247 -0
  2657. data/node_modules/semver/ranges/to-comparators.js +8 -0
  2658. data/node_modules/semver/ranges/valid.js +11 -0
  2659. data/node_modules/shebang-command/index.js +19 -0
  2660. data/node_modules/shebang-command/license +9 -0
  2661. data/node_modules/shebang-command/package.json +34 -0
  2662. data/node_modules/shebang-command/readme.md +34 -0
  2663. data/node_modules/shebang-regex/index.d.ts +22 -0
  2664. data/node_modules/shebang-regex/index.js +2 -0
  2665. data/node_modules/shebang-regex/license +9 -0
  2666. data/node_modules/shebang-regex/package.json +35 -0
  2667. data/node_modules/shebang-regex/readme.md +33 -0
  2668. data/node_modules/signal-exit/LICENSE.txt +16 -0
  2669. data/node_modules/signal-exit/README.md +74 -0
  2670. data/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
  2671. data/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
  2672. data/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  2673. data/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
  2674. data/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
  2675. data/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
  2676. data/node_modules/signal-exit/dist/cjs/index.js +279 -0
  2677. data/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
  2678. data/node_modules/signal-exit/dist/cjs/package.json +3 -0
  2679. data/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
  2680. data/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
  2681. data/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  2682. data/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
  2683. data/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
  2684. data/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
  2685. data/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  2686. data/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
  2687. data/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
  2688. data/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
  2689. data/node_modules/signal-exit/dist/mjs/index.js +275 -0
  2690. data/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
  2691. data/node_modules/signal-exit/dist/mjs/package.json +3 -0
  2692. data/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
  2693. data/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
  2694. data/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  2695. data/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
  2696. data/node_modules/signal-exit/package.json +106 -0
  2697. data/node_modules/source-map/CHANGELOG.md +301 -0
  2698. data/node_modules/source-map/LICENSE +28 -0
  2699. data/node_modules/source-map/README.md +742 -0
  2700. data/node_modules/source-map/dist/source-map.debug.js +3234 -0
  2701. data/node_modules/source-map/dist/source-map.js +3233 -0
  2702. data/node_modules/source-map/dist/source-map.min.js +2 -0
  2703. data/node_modules/source-map/dist/source-map.min.js.map +1 -0
  2704. data/node_modules/source-map/lib/array-set.js +121 -0
  2705. data/node_modules/source-map/lib/base64-vlq.js +140 -0
  2706. data/node_modules/source-map/lib/base64.js +67 -0
  2707. data/node_modules/source-map/lib/binary-search.js +111 -0
  2708. data/node_modules/source-map/lib/mapping-list.js +79 -0
  2709. data/node_modules/source-map/lib/quick-sort.js +114 -0
  2710. data/node_modules/source-map/lib/source-map-consumer.js +1145 -0
  2711. data/node_modules/source-map/lib/source-map-generator.js +425 -0
  2712. data/node_modules/source-map/lib/source-node.js +413 -0
  2713. data/node_modules/source-map/lib/util.js +488 -0
  2714. data/node_modules/source-map/package.json +73 -0
  2715. data/node_modules/source-map/source-map.d.ts +98 -0
  2716. data/node_modules/source-map/source-map.js +8 -0
  2717. data/node_modules/spdx-correct/LICENSE +202 -0
  2718. data/node_modules/spdx-correct/README.md +22 -0
  2719. data/node_modules/spdx-correct/index.js +386 -0
  2720. data/node_modules/spdx-correct/package.json +32 -0
  2721. data/node_modules/spdx-exceptions/README.md +36 -0
  2722. data/node_modules/spdx-exceptions/deprecated.json +3 -0
  2723. data/node_modules/spdx-exceptions/index.json +68 -0
  2724. data/node_modules/spdx-exceptions/package.json +19 -0
  2725. data/node_modules/spdx-expression-parse/AUTHORS +4 -0
  2726. data/node_modules/spdx-expression-parse/LICENSE +22 -0
  2727. data/node_modules/spdx-expression-parse/README.md +91 -0
  2728. data/node_modules/spdx-expression-parse/index.js +8 -0
  2729. data/node_modules/spdx-expression-parse/package.json +39 -0
  2730. data/node_modules/spdx-expression-parse/parse.js +138 -0
  2731. data/node_modules/spdx-expression-parse/scan.js +131 -0
  2732. data/node_modules/spdx-license-ids/README.md +52 -0
  2733. data/node_modules/spdx-license-ids/deprecated.json +28 -0
  2734. data/node_modules/spdx-license-ids/index.json +636 -0
  2735. data/node_modules/spdx-license-ids/package.json +39 -0
  2736. data/node_modules/split2/LICENSE +13 -0
  2737. data/node_modules/split2/README.md +85 -0
  2738. data/node_modules/split2/bench.js +27 -0
  2739. data/node_modules/split2/index.js +141 -0
  2740. data/node_modules/split2/package.json +39 -0
  2741. data/node_modules/split2/test.js +409 -0
  2742. data/node_modules/string-width/index.d.ts +29 -0
  2743. data/node_modules/string-width/index.js +47 -0
  2744. data/node_modules/string-width/license +9 -0
  2745. data/node_modules/string-width/package.json +56 -0
  2746. data/node_modules/string-width/readme.md +50 -0
  2747. data/node_modules/strip-ansi/index.d.ts +17 -0
  2748. data/node_modules/strip-ansi/index.js +4 -0
  2749. data/node_modules/strip-ansi/license +9 -0
  2750. data/node_modules/strip-ansi/package.json +54 -0
  2751. data/node_modules/strip-ansi/readme.md +46 -0
  2752. data/node_modules/strip-final-newline/index.js +14 -0
  2753. data/node_modules/strip-final-newline/license +9 -0
  2754. data/node_modules/strip-final-newline/package.json +43 -0
  2755. data/node_modules/strip-final-newline/readme.md +35 -0
  2756. data/node_modules/supports-color/browser.js +5 -0
  2757. data/node_modules/supports-color/index.js +131 -0
  2758. data/node_modules/supports-color/license +9 -0
  2759. data/node_modules/supports-color/package.json +53 -0
  2760. data/node_modules/supports-color/readme.md +66 -0
  2761. data/node_modules/temp-dir/index.d.ts +22 -0
  2762. data/node_modules/temp-dir/index.js +6 -0
  2763. data/node_modules/temp-dir/license +9 -0
  2764. data/node_modules/temp-dir/package.json +49 -0
  2765. data/node_modules/temp-dir/readme.md +27 -0
  2766. data/node_modules/tempfile/index.d.ts +30 -0
  2767. data/node_modules/tempfile/index.js +18 -0
  2768. data/node_modules/tempfile/license +9 -0
  2769. data/node_modules/tempfile/package.json +45 -0
  2770. data/node_modules/tempfile/readme.md +49 -0
  2771. data/node_modules/text-extensions/index.d.ts +14 -0
  2772. data/node_modules/text-extensions/index.js +3 -0
  2773. data/node_modules/text-extensions/license +9 -0
  2774. data/node_modules/text-extensions/package.json +40 -0
  2775. data/node_modules/text-extensions/readme.md +37 -0
  2776. data/node_modules/text-extensions/text-extensions.json +328 -0
  2777. data/node_modules/text-extensions/text-extensions.json.d.ts +3 -0
  2778. data/node_modules/through/.travis.yml +5 -0
  2779. data/node_modules/through/LICENSE.APACHE2 +15 -0
  2780. data/node_modules/through/LICENSE.MIT +24 -0
  2781. data/node_modules/through/index.js +108 -0
  2782. data/node_modules/through/package.json +36 -0
  2783. data/node_modules/through/readme.markdown +64 -0
  2784. data/node_modules/through/test/async.js +28 -0
  2785. data/node_modules/through/test/auto-destroy.js +30 -0
  2786. data/node_modules/through/test/buffering.js +71 -0
  2787. data/node_modules/through/test/end.js +45 -0
  2788. data/node_modules/through/test/index.js +133 -0
  2789. data/node_modules/type-fest/index.d.ts +166 -0
  2790. data/node_modules/type-fest/package.json +72 -0
  2791. data/node_modules/type-fest/readme.md +1005 -0
  2792. data/node_modules/type-fest/source/and.d.ts +25 -0
  2793. data/node_modules/type-fest/source/array-indices.d.ts +23 -0
  2794. data/node_modules/type-fest/source/array-slice.d.ts +107 -0
  2795. data/node_modules/type-fest/source/array-splice.d.ts +97 -0
  2796. data/node_modules/type-fest/source/array-tail.d.ts +25 -0
  2797. data/node_modules/type-fest/source/array-values.d.ts +22 -0
  2798. data/node_modules/type-fest/source/arrayable.d.ts +26 -0
  2799. data/node_modules/type-fest/source/async-return-type.d.ts +23 -0
  2800. data/node_modules/type-fest/source/asyncify.d.ts +32 -0
  2801. data/node_modules/type-fest/source/basic.d.ts +68 -0
  2802. data/node_modules/type-fest/source/camel-case.d.ts +80 -0
  2803. data/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +88 -0
  2804. data/node_modules/type-fest/source/camel-cased-properties.d.ts +36 -0
  2805. data/node_modules/type-fest/source/conditional-except.d.ts +45 -0
  2806. data/node_modules/type-fest/source/conditional-keys.d.ts +47 -0
  2807. data/node_modules/type-fest/source/conditional-pick-deep.d.ts +104 -0
  2808. data/node_modules/type-fest/source/conditional-pick.d.ts +44 -0
  2809. data/node_modules/type-fest/source/conditional-simplify.d.ts +32 -0
  2810. data/node_modules/type-fest/source/delimiter-case.d.ts +99 -0
  2811. data/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +84 -0
  2812. data/node_modules/type-fest/source/delimiter-cased-properties.d.ts +37 -0
  2813. data/node_modules/type-fest/source/distributed-omit.d.ts +89 -0
  2814. data/node_modules/type-fest/source/distributed-pick.d.ts +85 -0
  2815. data/node_modules/type-fest/source/empty-object.d.ts +46 -0
  2816. data/node_modules/type-fest/source/enforce-optional.d.ts +47 -0
  2817. data/node_modules/type-fest/source/entries.d.ts +62 -0
  2818. data/node_modules/type-fest/source/entry.d.ts +65 -0
  2819. data/node_modules/type-fest/source/exact.d.ts +67 -0
  2820. data/node_modules/type-fest/source/except.d.ts +80 -0
  2821. data/node_modules/type-fest/source/find-global-type.d.ts +64 -0
  2822. data/node_modules/type-fest/source/fixed-length-array.d.ts +43 -0
  2823. data/node_modules/type-fest/source/get.d.ts +191 -0
  2824. data/node_modules/type-fest/source/global-this.d.ts +21 -0
  2825. data/node_modules/type-fest/source/greater-than-or-equal.d.ts +22 -0
  2826. data/node_modules/type-fest/source/greater-than.d.ts +51 -0
  2827. data/node_modules/type-fest/source/has-optional-keys.d.ts +21 -0
  2828. data/node_modules/type-fest/source/has-readonly-keys.d.ts +21 -0
  2829. data/node_modules/type-fest/source/has-required-keys.d.ts +59 -0
  2830. data/node_modules/type-fest/source/has-writable-keys.d.ts +21 -0
  2831. data/node_modules/type-fest/source/if-any.d.ts +24 -0
  2832. data/node_modules/type-fest/source/if-empty-object.d.ts +26 -0
  2833. data/node_modules/type-fest/source/if-never.d.ts +24 -0
  2834. data/node_modules/type-fest/source/if-null.d.ts +24 -0
  2835. data/node_modules/type-fest/source/if-unknown.d.ts +24 -0
  2836. data/node_modules/type-fest/source/includes.d.ts +22 -0
  2837. data/node_modules/type-fest/source/int-range.d.ts +53 -0
  2838. data/node_modules/type-fest/source/internal/array.d.ts +93 -0
  2839. data/node_modules/type-fest/source/internal/characters.d.ts +33 -0
  2840. data/node_modules/type-fest/source/internal/index.d.ts +8 -0
  2841. data/node_modules/type-fest/source/internal/keys.d.ts +97 -0
  2842. data/node_modules/type-fest/source/internal/numeric.d.ts +91 -0
  2843. data/node_modules/type-fest/source/internal/object.d.ts +82 -0
  2844. data/node_modules/type-fest/source/internal/string.d.ts +210 -0
  2845. data/node_modules/type-fest/source/internal/tuple.d.ts +88 -0
  2846. data/node_modules/type-fest/source/internal/type.d.ts +113 -0
  2847. data/node_modules/type-fest/source/invariant-of.d.ts +76 -0
  2848. data/node_modules/type-fest/source/is-any.d.ts +29 -0
  2849. data/node_modules/type-fest/source/is-equal.d.ts +31 -0
  2850. data/node_modules/type-fest/source/is-float.d.ts +33 -0
  2851. data/node_modules/type-fest/source/is-integer.d.ts +48 -0
  2852. data/node_modules/type-fest/source/is-literal.d.ts +258 -0
  2853. data/node_modules/type-fest/source/is-never.d.ts +42 -0
  2854. data/node_modules/type-fest/source/is-null.d.ts +20 -0
  2855. data/node_modules/type-fest/source/is-unknown.d.ts +52 -0
  2856. data/node_modules/type-fest/source/iterable-element.d.ts +64 -0
  2857. data/node_modules/type-fest/source/join.d.ts +68 -0
  2858. data/node_modules/type-fest/source/jsonifiable.d.ts +37 -0
  2859. data/node_modules/type-fest/source/jsonify.d.ts +122 -0
  2860. data/node_modules/type-fest/source/kebab-case.d.ts +38 -0
  2861. data/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +47 -0
  2862. data/node_modules/type-fest/source/kebab-cased-properties.d.ts +30 -0
  2863. data/node_modules/type-fest/source/keys-of-union.d.ts +40 -0
  2864. data/node_modules/type-fest/source/last-array-element.d.ts +38 -0
  2865. data/node_modules/type-fest/source/less-than-or-equal.d.ts +22 -0
  2866. data/node_modules/type-fest/source/less-than.d.ts +22 -0
  2867. data/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +36 -0
  2868. data/node_modules/type-fest/source/literal-to-primitive.d.ts +36 -0
  2869. data/node_modules/type-fest/source/literal-union.d.ts +35 -0
  2870. data/node_modules/type-fest/source/merge-deep.d.ts +486 -0
  2871. data/node_modules/type-fest/source/merge-exclusive.d.ts +41 -0
  2872. data/node_modules/type-fest/source/merge.d.ts +48 -0
  2873. data/node_modules/type-fest/source/multidimensional-array.d.ts +44 -0
  2874. data/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +48 -0
  2875. data/node_modules/type-fest/source/non-empty-object.d.ts +35 -0
  2876. data/node_modules/type-fest/source/non-empty-tuple.d.ts +21 -0
  2877. data/node_modules/type-fest/source/numeric.d.ts +222 -0
  2878. data/node_modules/type-fest/source/observable-like.d.ts +63 -0
  2879. data/node_modules/type-fest/source/omit-deep.d.ts +159 -0
  2880. data/node_modules/type-fest/source/omit-index-signature.d.ts +107 -0
  2881. data/node_modules/type-fest/source/opaque.d.ts +252 -0
  2882. data/node_modules/type-fest/source/optional-keys-of.d.ts +38 -0
  2883. data/node_modules/type-fest/source/or.d.ts +25 -0
  2884. data/node_modules/type-fest/source/override-properties.d.ts +36 -0
  2885. data/node_modules/type-fest/source/package-json.d.ts +676 -0
  2886. data/node_modules/type-fest/source/partial-deep.d.ts +109 -0
  2887. data/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +71 -0
  2888. data/node_modules/type-fest/source/pascal-case.d.ts +38 -0
  2889. data/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +55 -0
  2890. data/node_modules/type-fest/source/pascal-cased-properties.d.ts +35 -0
  2891. data/node_modules/type-fest/source/paths.d.ts +170 -0
  2892. data/node_modules/type-fest/source/pick-deep.d.ts +149 -0
  2893. data/node_modules/type-fest/source/pick-index-signature.d.ts +102 -0
  2894. data/node_modules/type-fest/source/primitive.d.ts +13 -0
  2895. data/node_modules/type-fest/source/promisable.d.ts +25 -0
  2896. data/node_modules/type-fest/source/readonly-deep.d.ts +81 -0
  2897. data/node_modules/type-fest/source/readonly-keys-of.d.ts +29 -0
  2898. data/node_modules/type-fest/source/readonly-tuple.d.ts +41 -0
  2899. data/node_modules/type-fest/source/replace.d.ts +67 -0
  2900. data/node_modules/type-fest/source/require-all-or-none.d.ts +42 -0
  2901. data/node_modules/type-fest/source/require-at-least-one.d.ts +34 -0
  2902. data/node_modules/type-fest/source/require-exactly-one.d.ts +34 -0
  2903. data/node_modules/type-fest/source/require-one-or-none.d.ts +37 -0
  2904. data/node_modules/type-fest/source/required-deep.d.ts +78 -0
  2905. data/node_modules/type-fest/source/required-keys-of.d.ts +29 -0
  2906. data/node_modules/type-fest/source/schema.d.ts +71 -0
  2907. data/node_modules/type-fest/source/screaming-snake-case.d.ts +33 -0
  2908. data/node_modules/type-fest/source/set-field-type.d.ts +37 -0
  2909. data/node_modules/type-fest/source/set-non-nullable.d.ts +39 -0
  2910. data/node_modules/type-fest/source/set-optional.d.ts +35 -0
  2911. data/node_modules/type-fest/source/set-parameter-type.d.ts +117 -0
  2912. data/node_modules/type-fest/source/set-readonly.d.ts +38 -0
  2913. data/node_modules/type-fest/source/set-required.d.ts +40 -0
  2914. data/node_modules/type-fest/source/set-return-type.d.ts +29 -0
  2915. data/node_modules/type-fest/source/shared-union-fields-deep.d.ts +168 -0
  2916. data/node_modules/type-fest/source/simplify-deep.d.ts +115 -0
  2917. data/node_modules/type-fest/source/simplify.d.ts +58 -0
  2918. data/node_modules/type-fest/source/single-key-object.d.ts +29 -0
  2919. data/node_modules/type-fest/source/snake-case.d.ts +38 -0
  2920. data/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +47 -0
  2921. data/node_modules/type-fest/source/snake-cased-properties.d.ts +30 -0
  2922. data/node_modules/type-fest/source/split-words.d.ts +57 -0
  2923. data/node_modules/type-fest/source/split.d.ts +29 -0
  2924. data/node_modules/type-fest/source/spread.d.ts +84 -0
  2925. data/node_modules/type-fest/source/string-key-of.d.ts +25 -0
  2926. data/node_modules/type-fest/source/string-repeat.d.ts +43 -0
  2927. data/node_modules/type-fest/source/string-slice.d.ts +37 -0
  2928. data/node_modules/type-fest/source/stringified.d.ts +23 -0
  2929. data/node_modules/type-fest/source/structured-cloneable.d.ts +92 -0
  2930. data/node_modules/type-fest/source/subtract.d.ts +70 -0
  2931. data/node_modules/type-fest/source/sum.d.ts +70 -0
  2932. data/node_modules/type-fest/source/tagged-union.d.ts +51 -0
  2933. data/node_modules/type-fest/source/trim.d.ts +27 -0
  2934. data/node_modules/type-fest/source/tsconfig-json.d.ts +1198 -0
  2935. data/node_modules/type-fest/source/tuple-to-union.d.ts +51 -0
  2936. data/node_modules/type-fest/source/typed-array.d.ts +17 -0
  2937. data/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +80 -0
  2938. data/node_modules/type-fest/source/union-to-intersection.d.ts +61 -0
  2939. data/node_modules/type-fest/source/unknown-array.d.ts +25 -0
  2940. data/node_modules/type-fest/source/unknown-record.d.ts +31 -0
  2941. data/node_modules/type-fest/source/value-of.d.ts +42 -0
  2942. data/node_modules/type-fest/source/writable-deep.d.ts +83 -0
  2943. data/node_modules/type-fest/source/writable-keys-of.d.ts +30 -0
  2944. data/node_modules/type-fest/source/writable.d.ts +68 -0
  2945. data/node_modules/uglify-js/LICENSE +29 -0
  2946. data/node_modules/uglify-js/README.md +1479 -0
  2947. data/node_modules/uglify-js/bin/uglifyjs +624 -0
  2948. data/node_modules/uglify-js/lib/ast.js +2357 -0
  2949. data/node_modules/uglify-js/lib/compress.js +14640 -0
  2950. data/node_modules/uglify-js/lib/minify.js +278 -0
  2951. data/node_modules/uglify-js/lib/mozilla-ast.js +1338 -0
  2952. data/node_modules/uglify-js/lib/output.js +1983 -0
  2953. data/node_modules/uglify-js/lib/parse.js +2589 -0
  2954. data/node_modules/uglify-js/lib/propmangle.js +328 -0
  2955. data/node_modules/uglify-js/lib/scope.js +883 -0
  2956. data/node_modules/uglify-js/lib/sourcemap.js +195 -0
  2957. data/node_modules/uglify-js/lib/transform.js +250 -0
  2958. data/node_modules/uglify-js/lib/utils.js +300 -0
  2959. data/node_modules/uglify-js/package.json +56 -0
  2960. data/node_modules/uglify-js/tools/domprops.html +456 -0
  2961. data/node_modules/uglify-js/tools/domprops.json +8327 -0
  2962. data/node_modules/uglify-js/tools/exports.js +8 -0
  2963. data/node_modules/uglify-js/tools/node.js +115 -0
  2964. data/node_modules/uglify-js/tools/tty.js +22 -0
  2965. data/node_modules/undici-types/LICENSE +21 -0
  2966. data/node_modules/undici-types/README.md +6 -0
  2967. data/node_modules/undici-types/agent.d.ts +31 -0
  2968. data/node_modules/undici-types/api.d.ts +43 -0
  2969. data/node_modules/undici-types/balanced-pool.d.ts +29 -0
  2970. data/node_modules/undici-types/cache.d.ts +36 -0
  2971. data/node_modules/undici-types/client.d.ts +108 -0
  2972. data/node_modules/undici-types/connector.d.ts +34 -0
  2973. data/node_modules/undici-types/content-type.d.ts +21 -0
  2974. data/node_modules/undici-types/cookies.d.ts +28 -0
  2975. data/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  2976. data/node_modules/undici-types/dispatcher.d.ts +255 -0
  2977. data/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  2978. data/node_modules/undici-types/errors.d.ts +149 -0
  2979. data/node_modules/undici-types/eventsource.d.ts +63 -0
  2980. data/node_modules/undici-types/fetch.d.ts +209 -0
  2981. data/node_modules/undici-types/file.d.ts +39 -0
  2982. data/node_modules/undici-types/filereader.d.ts +54 -0
  2983. data/node_modules/undici-types/formdata.d.ts +108 -0
  2984. data/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  2985. data/node_modules/undici-types/global-origin.d.ts +7 -0
  2986. data/node_modules/undici-types/handlers.d.ts +15 -0
  2987. data/node_modules/undici-types/header.d.ts +4 -0
  2988. data/node_modules/undici-types/index.d.ts +71 -0
  2989. data/node_modules/undici-types/interceptors.d.ts +15 -0
  2990. data/node_modules/undici-types/mock-agent.d.ts +50 -0
  2991. data/node_modules/undici-types/mock-client.d.ts +25 -0
  2992. data/node_modules/undici-types/mock-errors.d.ts +12 -0
  2993. data/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  2994. data/node_modules/undici-types/mock-pool.d.ts +25 -0
  2995. data/node_modules/undici-types/package.json +55 -0
  2996. data/node_modules/undici-types/patch.d.ts +71 -0
  2997. data/node_modules/undici-types/pool-stats.d.ts +19 -0
  2998. data/node_modules/undici-types/pool.d.ts +39 -0
  2999. data/node_modules/undici-types/proxy-agent.d.ts +28 -0
  3000. data/node_modules/undici-types/readable.d.ts +60 -0
  3001. data/node_modules/undici-types/retry-agent.d.ts +8 -0
  3002. data/node_modules/undici-types/retry-handler.d.ts +116 -0
  3003. data/node_modules/undici-types/util.d.ts +18 -0
  3004. data/node_modules/undici-types/webidl.d.ts +222 -0
  3005. data/node_modules/undici-types/websocket.d.ts +152 -0
  3006. data/node_modules/unicorn-magic/default.js +14 -0
  3007. data/node_modules/unicorn-magic/index.d.ts +29 -0
  3008. data/node_modules/unicorn-magic/license +9 -0
  3009. data/node_modules/unicorn-magic/node.js +7 -0
  3010. data/node_modules/unicorn-magic/package.json +49 -0
  3011. data/node_modules/unicorn-magic/readme.md +25 -0
  3012. data/node_modules/validate-npm-package-license/LICENSE +202 -0
  3013. data/node_modules/validate-npm-package-license/README.md +113 -0
  3014. data/node_modules/validate-npm-package-license/index.js +86 -0
  3015. data/node_modules/validate-npm-package-license/package.json +28 -0
  3016. data/node_modules/which/CHANGELOG.md +166 -0
  3017. data/node_modules/which/LICENSE +15 -0
  3018. data/node_modules/which/README.md +54 -0
  3019. data/node_modules/which/bin/node-which +52 -0
  3020. data/node_modules/which/package.json +43 -0
  3021. data/node_modules/which/which.js +125 -0
  3022. data/node_modules/wordwrap/LICENSE +18 -0
  3023. data/node_modules/wordwrap/README.markdown +70 -0
  3024. data/node_modules/wordwrap/example/center.js +10 -0
  3025. data/node_modules/wordwrap/example/meat.js +3 -0
  3026. data/node_modules/wordwrap/index.js +76 -0
  3027. data/node_modules/wordwrap/package.json +34 -0
  3028. data/node_modules/wordwrap/test/break.js +32 -0
  3029. data/node_modules/wordwrap/test/idleness.txt +63 -0
  3030. data/node_modules/wordwrap/test/wrap.js +33 -0
  3031. data/node_modules/wrap-ansi/index.js +216 -0
  3032. data/node_modules/wrap-ansi/license +9 -0
  3033. data/node_modules/wrap-ansi/package.json +62 -0
  3034. data/node_modules/wrap-ansi/readme.md +91 -0
  3035. data/node_modules/y18n/CHANGELOG.md +100 -0
  3036. data/node_modules/y18n/LICENSE +13 -0
  3037. data/node_modules/y18n/README.md +127 -0
  3038. data/node_modules/y18n/build/index.cjs +203 -0
  3039. data/node_modules/y18n/build/lib/cjs.js +6 -0
  3040. data/node_modules/y18n/build/lib/index.js +174 -0
  3041. data/node_modules/y18n/build/lib/platform-shims/node.js +19 -0
  3042. data/node_modules/y18n/index.mjs +8 -0
  3043. data/node_modules/y18n/package.json +70 -0
  3044. data/node_modules/yargs/LICENSE +21 -0
  3045. data/node_modules/yargs/README.md +204 -0
  3046. data/node_modules/yargs/browser.d.ts +5 -0
  3047. data/node_modules/yargs/browser.mjs +7 -0
  3048. data/node_modules/yargs/build/index.cjs +1 -0
  3049. data/node_modules/yargs/build/lib/argsert.js +62 -0
  3050. data/node_modules/yargs/build/lib/command.js +449 -0
  3051. data/node_modules/yargs/build/lib/completion-templates.js +48 -0
  3052. data/node_modules/yargs/build/lib/completion.js +243 -0
  3053. data/node_modules/yargs/build/lib/middleware.js +88 -0
  3054. data/node_modules/yargs/build/lib/parse-command.js +32 -0
  3055. data/node_modules/yargs/build/lib/typings/common-types.js +9 -0
  3056. data/node_modules/yargs/build/lib/typings/yargs-parser-types.js +1 -0
  3057. data/node_modules/yargs/build/lib/usage.js +584 -0
  3058. data/node_modules/yargs/build/lib/utils/apply-extends.js +59 -0
  3059. data/node_modules/yargs/build/lib/utils/is-promise.js +5 -0
  3060. data/node_modules/yargs/build/lib/utils/levenshtein.js +34 -0
  3061. data/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
  3062. data/node_modules/yargs/build/lib/utils/obj-filter.js +10 -0
  3063. data/node_modules/yargs/build/lib/utils/process-argv.js +17 -0
  3064. data/node_modules/yargs/build/lib/utils/set-blocking.js +12 -0
  3065. data/node_modules/yargs/build/lib/utils/which-module.js +10 -0
  3066. data/node_modules/yargs/build/lib/validation.js +305 -0
  3067. data/node_modules/yargs/build/lib/yargs-factory.js +1512 -0
  3068. data/node_modules/yargs/build/lib/yerror.js +9 -0
  3069. data/node_modules/yargs/helpers/helpers.mjs +10 -0
  3070. data/node_modules/yargs/helpers/index.js +14 -0
  3071. data/node_modules/yargs/helpers/package.json +3 -0
  3072. data/node_modules/yargs/index.cjs +53 -0
  3073. data/node_modules/yargs/index.mjs +8 -0
  3074. data/node_modules/yargs/lib/platform-shims/browser.mjs +95 -0
  3075. data/node_modules/yargs/lib/platform-shims/esm.mjs +73 -0
  3076. data/node_modules/yargs/locales/be.json +46 -0
  3077. data/node_modules/yargs/locales/cs.json +51 -0
  3078. data/node_modules/yargs/locales/de.json +46 -0
  3079. data/node_modules/yargs/locales/en.json +55 -0
  3080. data/node_modules/yargs/locales/es.json +46 -0
  3081. data/node_modules/yargs/locales/fi.json +49 -0
  3082. data/node_modules/yargs/locales/fr.json +53 -0
  3083. data/node_modules/yargs/locales/hi.json +49 -0
  3084. data/node_modules/yargs/locales/hu.json +46 -0
  3085. data/node_modules/yargs/locales/id.json +50 -0
  3086. data/node_modules/yargs/locales/it.json +46 -0
  3087. data/node_modules/yargs/locales/ja.json +51 -0
  3088. data/node_modules/yargs/locales/ko.json +49 -0
  3089. data/node_modules/yargs/locales/nb.json +44 -0
  3090. data/node_modules/yargs/locales/nl.json +49 -0
  3091. data/node_modules/yargs/locales/nn.json +44 -0
  3092. data/node_modules/yargs/locales/pirate.json +13 -0
  3093. data/node_modules/yargs/locales/pl.json +49 -0
  3094. data/node_modules/yargs/locales/pt.json +45 -0
  3095. data/node_modules/yargs/locales/pt_BR.json +48 -0
  3096. data/node_modules/yargs/locales/ru.json +51 -0
  3097. data/node_modules/yargs/locales/th.json +46 -0
  3098. data/node_modules/yargs/locales/tr.json +48 -0
  3099. data/node_modules/yargs/locales/uk_UA.json +51 -0
  3100. data/node_modules/yargs/locales/uz.json +52 -0
  3101. data/node_modules/yargs/locales/zh_CN.json +48 -0
  3102. data/node_modules/yargs/locales/zh_TW.json +51 -0
  3103. data/node_modules/yargs/package.json +123 -0
  3104. data/node_modules/yargs/yargs +9 -0
  3105. data/node_modules/yargs/yargs.mjs +10 -0
  3106. data/node_modules/yargs-parser/CHANGELOG.md +308 -0
  3107. data/node_modules/yargs-parser/LICENSE.txt +14 -0
  3108. data/node_modules/yargs-parser/README.md +518 -0
  3109. data/node_modules/yargs-parser/browser.js +29 -0
  3110. data/node_modules/yargs-parser/build/index.cjs +1050 -0
  3111. data/node_modules/yargs-parser/build/lib/index.js +62 -0
  3112. data/node_modules/yargs-parser/build/lib/string-utils.js +65 -0
  3113. data/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +40 -0
  3114. data/node_modules/yargs-parser/build/lib/yargs-parser-types.js +12 -0
  3115. data/node_modules/yargs-parser/build/lib/yargs-parser.js +1045 -0
  3116. data/node_modules/yargs-parser/package.json +92 -0
  3117. data/node_modules/yocto-queue/index.d.ts +61 -0
  3118. data/node_modules/yocto-queue/index.js +78 -0
  3119. data/node_modules/yocto-queue/license +9 -0
  3120. data/node_modules/yocto-queue/package.json +48 -0
  3121. data/node_modules/yocto-queue/readme.md +70 -0
  3122. data/package-lock.json +2137 -0
  3123. data/package.json +18 -0
  3124. data/pkg/pcp-server-ruby-sdk-0.0.6.gem +0 -0
  3125. data/pkg/pcp-server-ruby-sdk-0.1.0.gem +0 -0
  3126. data/scripts.sh +125 -0
  3127. data/sonar-project.properties +10 -0
  3128. data/spec/communicator_configuration_spec.rb +23 -0
  3129. data/spec/errors/api_error_response_exception_spec.rb +34 -0
  3130. data/spec/errors/api_exception_spec.rb +36 -0
  3131. data/spec/errors/api_response_retrieval_exception_spec.rb +31 -0
  3132. data/spec/queries/get_checkouts_query_spec.rb +184 -0
  3133. data/spec/queries/get_commerce_cases_query_spec.rb +104 -0
  3134. data/spec/request_header_generator_spec.rb +98 -0
  3135. data/spec/spec_helper.rb +22 -0
  3136. data/spec/utils/server_meta_info_spec.rb +47 -0
  3137. metadata +3249 -0
@@ -0,0 +1,4451 @@
1
+ /**
2
+ * The `node:crypto` module provides cryptographic functionality that includes a
3
+ * set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify
4
+ * functions.
5
+ *
6
+ * ```js
7
+ * const { createHmac } = await import('node:crypto');
8
+ *
9
+ * const secret = 'abcdefg';
10
+ * const hash = createHmac('sha256', secret)
11
+ * .update('I love cupcakes')
12
+ * .digest('hex');
13
+ * console.log(hash);
14
+ * // Prints:
15
+ * // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e
16
+ * ```
17
+ * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/crypto.js)
18
+ */
19
+ declare module "crypto" {
20
+ import * as stream from "node:stream";
21
+ import { PeerCertificate } from "node:tls";
22
+ /**
23
+ * SPKAC is a Certificate Signing Request mechanism originally implemented by
24
+ * Netscape and was specified formally as part of HTML5's `keygen` element.
25
+ *
26
+ * `<keygen>` is deprecated since [HTML 5.2](https://www.w3.org/TR/html52/changes.html#features-removed) and new projects
27
+ * should not use this element anymore.
28
+ *
29
+ * The `node:crypto` module provides the `Certificate` class for working with SPKAC
30
+ * data. The most common usage is handling output generated by the HTML5 `<keygen>` element. Node.js uses [OpenSSL's SPKAC
31
+ * implementation](https://www.openssl.org/docs/man3.0/man1/openssl-spkac.html) internally.
32
+ * @since v0.11.8
33
+ */
34
+ class Certificate {
35
+ /**
36
+ * ```js
37
+ * const { Certificate } = await import('node:crypto');
38
+ * const spkac = getSpkacSomehow();
39
+ * const challenge = Certificate.exportChallenge(spkac);
40
+ * console.log(challenge.toString('utf8'));
41
+ * // Prints: the challenge as a UTF8 string
42
+ * ```
43
+ * @since v9.0.0
44
+ * @param encoding The `encoding` of the `spkac` string.
45
+ * @return The challenge component of the `spkac` data structure, which includes a public key and a challenge.
46
+ */
47
+ static exportChallenge(spkac: BinaryLike): Buffer;
48
+ /**
49
+ * ```js
50
+ * const { Certificate } = await import('node:crypto');
51
+ * const spkac = getSpkacSomehow();
52
+ * const publicKey = Certificate.exportPublicKey(spkac);
53
+ * console.log(publicKey);
54
+ * // Prints: the public key as <Buffer ...>
55
+ * ```
56
+ * @since v9.0.0
57
+ * @param encoding The `encoding` of the `spkac` string.
58
+ * @return The public key component of the `spkac` data structure, which includes a public key and a challenge.
59
+ */
60
+ static exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
61
+ /**
62
+ * ```js
63
+ * import { Buffer } from 'node:buffer';
64
+ * const { Certificate } = await import('node:crypto');
65
+ *
66
+ * const spkac = getSpkacSomehow();
67
+ * console.log(Certificate.verifySpkac(Buffer.from(spkac)));
68
+ * // Prints: true or false
69
+ * ```
70
+ * @since v9.0.0
71
+ * @param encoding The `encoding` of the `spkac` string.
72
+ * @return `true` if the given `spkac` data structure is valid, `false` otherwise.
73
+ */
74
+ static verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
75
+ /**
76
+ * @deprecated
77
+ * @param spkac
78
+ * @returns The challenge component of the `spkac` data structure,
79
+ * which includes a public key and a challenge.
80
+ */
81
+ exportChallenge(spkac: BinaryLike): Buffer;
82
+ /**
83
+ * @deprecated
84
+ * @param spkac
85
+ * @param encoding The encoding of the spkac string.
86
+ * @returns The public key component of the `spkac` data structure,
87
+ * which includes a public key and a challenge.
88
+ */
89
+ exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
90
+ /**
91
+ * @deprecated
92
+ * @param spkac
93
+ * @returns `true` if the given `spkac` data structure is valid,
94
+ * `false` otherwise.
95
+ */
96
+ verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
97
+ }
98
+ namespace constants {
99
+ // https://nodejs.org/dist/latest-v22.x/docs/api/crypto.html#crypto-constants
100
+ const OPENSSL_VERSION_NUMBER: number;
101
+ /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */
102
+ const SSL_OP_ALL: number;
103
+ /** Instructs OpenSSL to allow a non-[EC]DHE-based key exchange mode for TLS v1.3 */
104
+ const SSL_OP_ALLOW_NO_DHE_KEX: number;
105
+ /** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
106
+ const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
107
+ /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
108
+ const SSL_OP_CIPHER_SERVER_PREFERENCE: number;
109
+ /** Instructs OpenSSL to use Cisco's version identifier of DTLS_BAD_VER. */
110
+ const SSL_OP_CISCO_ANYCONNECT: number;
111
+ /** Instructs OpenSSL to turn on cookie exchange. */
112
+ const SSL_OP_COOKIE_EXCHANGE: number;
113
+ /** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */
114
+ const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number;
115
+ /** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */
116
+ const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number;
117
+ /** Allows initial connection to servers that do not support RI. */
118
+ const SSL_OP_LEGACY_SERVER_CONNECT: number;
119
+ /** Instructs OpenSSL to disable support for SSL/TLS compression. */
120
+ const SSL_OP_NO_COMPRESSION: number;
121
+ /** Instructs OpenSSL to disable encrypt-then-MAC. */
122
+ const SSL_OP_NO_ENCRYPT_THEN_MAC: number;
123
+ const SSL_OP_NO_QUERY_MTU: number;
124
+ /** Instructs OpenSSL to disable renegotiation. */
125
+ const SSL_OP_NO_RENEGOTIATION: number;
126
+ /** Instructs OpenSSL to always start a new session when performing renegotiation. */
127
+ const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number;
128
+ /** Instructs OpenSSL to turn off SSL v2 */
129
+ const SSL_OP_NO_SSLv2: number;
130
+ /** Instructs OpenSSL to turn off SSL v3 */
131
+ const SSL_OP_NO_SSLv3: number;
132
+ /** Instructs OpenSSL to disable use of RFC4507bis tickets. */
133
+ const SSL_OP_NO_TICKET: number;
134
+ /** Instructs OpenSSL to turn off TLS v1 */
135
+ const SSL_OP_NO_TLSv1: number;
136
+ /** Instructs OpenSSL to turn off TLS v1.1 */
137
+ const SSL_OP_NO_TLSv1_1: number;
138
+ /** Instructs OpenSSL to turn off TLS v1.2 */
139
+ const SSL_OP_NO_TLSv1_2: number;
140
+ /** Instructs OpenSSL to turn off TLS v1.3 */
141
+ const SSL_OP_NO_TLSv1_3: number;
142
+ /** Instructs OpenSSL server to prioritize ChaCha20-Poly1305 when the client does. This option has no effect if `SSL_OP_CIPHER_SERVER_PREFERENCE` is not enabled. */
143
+ const SSL_OP_PRIORITIZE_CHACHA: number;
144
+ /** Instructs OpenSSL to disable version rollback attack detection. */
145
+ const SSL_OP_TLS_ROLLBACK_BUG: number;
146
+ const ENGINE_METHOD_RSA: number;
147
+ const ENGINE_METHOD_DSA: number;
148
+ const ENGINE_METHOD_DH: number;
149
+ const ENGINE_METHOD_RAND: number;
150
+ const ENGINE_METHOD_EC: number;
151
+ const ENGINE_METHOD_CIPHERS: number;
152
+ const ENGINE_METHOD_DIGESTS: number;
153
+ const ENGINE_METHOD_PKEY_METHS: number;
154
+ const ENGINE_METHOD_PKEY_ASN1_METHS: number;
155
+ const ENGINE_METHOD_ALL: number;
156
+ const ENGINE_METHOD_NONE: number;
157
+ const DH_CHECK_P_NOT_SAFE_PRIME: number;
158
+ const DH_CHECK_P_NOT_PRIME: number;
159
+ const DH_UNABLE_TO_CHECK_GENERATOR: number;
160
+ const DH_NOT_SUITABLE_GENERATOR: number;
161
+ const RSA_PKCS1_PADDING: number;
162
+ const RSA_SSLV23_PADDING: number;
163
+ const RSA_NO_PADDING: number;
164
+ const RSA_PKCS1_OAEP_PADDING: number;
165
+ const RSA_X931_PADDING: number;
166
+ const RSA_PKCS1_PSS_PADDING: number;
167
+ /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */
168
+ const RSA_PSS_SALTLEN_DIGEST: number;
169
+ /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */
170
+ const RSA_PSS_SALTLEN_MAX_SIGN: number;
171
+ /** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */
172
+ const RSA_PSS_SALTLEN_AUTO: number;
173
+ const POINT_CONVERSION_COMPRESSED: number;
174
+ const POINT_CONVERSION_UNCOMPRESSED: number;
175
+ const POINT_CONVERSION_HYBRID: number;
176
+ /** Specifies the built-in default cipher list used by Node.js (colon-separated values). */
177
+ const defaultCoreCipherList: string;
178
+ /** Specifies the active default cipher list used by the current Node.js process (colon-separated values). */
179
+ const defaultCipherList: string;
180
+ }
181
+ interface HashOptions extends stream.TransformOptions {
182
+ /**
183
+ * For XOF hash functions such as `shake256`, the
184
+ * outputLength option can be used to specify the desired output length in bytes.
185
+ */
186
+ outputLength?: number | undefined;
187
+ }
188
+ /** @deprecated since v10.0.0 */
189
+ const fips: boolean;
190
+ /**
191
+ * Creates and returns a `Hash` object that can be used to generate hash digests
192
+ * using the given `algorithm`. Optional `options` argument controls stream
193
+ * behavior. For XOF hash functions such as `'shake256'`, the `outputLength` option
194
+ * can be used to specify the desired output length in bytes.
195
+ *
196
+ * The `algorithm` is dependent on the available algorithms supported by the
197
+ * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
198
+ * On recent releases of OpenSSL, `openssl list -digest-algorithms` will
199
+ * display the available digest algorithms.
200
+ *
201
+ * Example: generating the sha256 sum of a file
202
+ *
203
+ * ```js
204
+ * import {
205
+ * createReadStream,
206
+ * } from 'node:fs';
207
+ * import { argv } from 'node:process';
208
+ * const {
209
+ * createHash,
210
+ * } = await import('node:crypto');
211
+ *
212
+ * const filename = argv[2];
213
+ *
214
+ * const hash = createHash('sha256');
215
+ *
216
+ * const input = createReadStream(filename);
217
+ * input.on('readable', () => {
218
+ * // Only one element is going to be produced by the
219
+ * // hash stream.
220
+ * const data = input.read();
221
+ * if (data)
222
+ * hash.update(data);
223
+ * else {
224
+ * console.log(`${hash.digest('hex')} ${filename}`);
225
+ * }
226
+ * });
227
+ * ```
228
+ * @since v0.1.92
229
+ * @param options `stream.transform` options
230
+ */
231
+ function createHash(algorithm: string, options?: HashOptions): Hash;
232
+ /**
233
+ * Creates and returns an `Hmac` object that uses the given `algorithm` and `key`.
234
+ * Optional `options` argument controls stream behavior.
235
+ *
236
+ * The `algorithm` is dependent on the available algorithms supported by the
237
+ * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
238
+ * On recent releases of OpenSSL, `openssl list -digest-algorithms` will
239
+ * display the available digest algorithms.
240
+ *
241
+ * The `key` is the HMAC key used to generate the cryptographic HMAC hash. If it is
242
+ * a `KeyObject`, its type must be `secret`. If it is a string, please consider `caveats when using strings as inputs to cryptographic APIs`. If it was
243
+ * obtained from a cryptographically secure source of entropy, such as {@link randomBytes} or {@link generateKey}, its length should not
244
+ * exceed the block size of `algorithm` (e.g., 512 bits for SHA-256).
245
+ *
246
+ * Example: generating the sha256 HMAC of a file
247
+ *
248
+ * ```js
249
+ * import {
250
+ * createReadStream,
251
+ * } from 'node:fs';
252
+ * import { argv } from 'node:process';
253
+ * const {
254
+ * createHmac,
255
+ * } = await import('node:crypto');
256
+ *
257
+ * const filename = argv[2];
258
+ *
259
+ * const hmac = createHmac('sha256', 'a secret');
260
+ *
261
+ * const input = createReadStream(filename);
262
+ * input.on('readable', () => {
263
+ * // Only one element is going to be produced by the
264
+ * // hash stream.
265
+ * const data = input.read();
266
+ * if (data)
267
+ * hmac.update(data);
268
+ * else {
269
+ * console.log(`${hmac.digest('hex')} ${filename}`);
270
+ * }
271
+ * });
272
+ * ```
273
+ * @since v0.1.94
274
+ * @param options `stream.transform` options
275
+ */
276
+ function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
277
+ // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
278
+ type BinaryToTextEncoding = "base64" | "base64url" | "hex" | "binary";
279
+ type CharacterEncoding = "utf8" | "utf-8" | "utf16le" | "utf-16le" | "latin1";
280
+ type LegacyCharacterEncoding = "ascii" | "binary" | "ucs2" | "ucs-2";
281
+ type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
282
+ type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid";
283
+ /**
284
+ * The `Hash` class is a utility for creating hash digests of data. It can be
285
+ * used in one of two ways:
286
+ *
287
+ * * As a `stream` that is both readable and writable, where data is written
288
+ * to produce a computed hash digest on the readable side, or
289
+ * * Using the `hash.update()` and `hash.digest()` methods to produce the
290
+ * computed hash.
291
+ *
292
+ * The {@link createHash} method is used to create `Hash` instances. `Hash`objects are not to be created directly using the `new` keyword.
293
+ *
294
+ * Example: Using `Hash` objects as streams:
295
+ *
296
+ * ```js
297
+ * const {
298
+ * createHash,
299
+ * } = await import('node:crypto');
300
+ *
301
+ * const hash = createHash('sha256');
302
+ *
303
+ * hash.on('readable', () => {
304
+ * // Only one element is going to be produced by the
305
+ * // hash stream.
306
+ * const data = hash.read();
307
+ * if (data) {
308
+ * console.log(data.toString('hex'));
309
+ * // Prints:
310
+ * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50
311
+ * }
312
+ * });
313
+ *
314
+ * hash.write('some data to hash');
315
+ * hash.end();
316
+ * ```
317
+ *
318
+ * Example: Using `Hash` and piped streams:
319
+ *
320
+ * ```js
321
+ * import { createReadStream } from 'node:fs';
322
+ * import { stdout } from 'node:process';
323
+ * const { createHash } = await import('node:crypto');
324
+ *
325
+ * const hash = createHash('sha256');
326
+ *
327
+ * const input = createReadStream('test.js');
328
+ * input.pipe(hash).setEncoding('hex').pipe(stdout);
329
+ * ```
330
+ *
331
+ * Example: Using the `hash.update()` and `hash.digest()` methods:
332
+ *
333
+ * ```js
334
+ * const {
335
+ * createHash,
336
+ * } = await import('node:crypto');
337
+ *
338
+ * const hash = createHash('sha256');
339
+ *
340
+ * hash.update('some data to hash');
341
+ * console.log(hash.digest('hex'));
342
+ * // Prints:
343
+ * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50
344
+ * ```
345
+ * @since v0.1.92
346
+ */
347
+ class Hash extends stream.Transform {
348
+ private constructor();
349
+ /**
350
+ * Creates a new `Hash` object that contains a deep copy of the internal state
351
+ * of the current `Hash` object.
352
+ *
353
+ * The optional `options` argument controls stream behavior. For XOF hash
354
+ * functions such as `'shake256'`, the `outputLength` option can be used to
355
+ * specify the desired output length in bytes.
356
+ *
357
+ * An error is thrown when an attempt is made to copy the `Hash` object after
358
+ * its `hash.digest()` method has been called.
359
+ *
360
+ * ```js
361
+ * // Calculate a rolling hash.
362
+ * const {
363
+ * createHash,
364
+ * } = await import('node:crypto');
365
+ *
366
+ * const hash = createHash('sha256');
367
+ *
368
+ * hash.update('one');
369
+ * console.log(hash.copy().digest('hex'));
370
+ *
371
+ * hash.update('two');
372
+ * console.log(hash.copy().digest('hex'));
373
+ *
374
+ * hash.update('three');
375
+ * console.log(hash.copy().digest('hex'));
376
+ *
377
+ * // Etc.
378
+ * ```
379
+ * @since v13.1.0
380
+ * @param options `stream.transform` options
381
+ */
382
+ copy(options?: HashOptions): Hash;
383
+ /**
384
+ * Updates the hash content with the given `data`, the encoding of which
385
+ * is given in `inputEncoding`.
386
+ * If `encoding` is not provided, and the `data` is a string, an
387
+ * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
388
+ *
389
+ * This can be called many times with new data as it is streamed.
390
+ * @since v0.1.92
391
+ * @param inputEncoding The `encoding` of the `data` string.
392
+ */
393
+ update(data: BinaryLike): Hash;
394
+ update(data: string, inputEncoding: Encoding): Hash;
395
+ /**
396
+ * Calculates the digest of all of the data passed to be hashed (using the `hash.update()` method).
397
+ * If `encoding` is provided a string will be returned; otherwise
398
+ * a `Buffer` is returned.
399
+ *
400
+ * The `Hash` object can not be used again after `hash.digest()` method has been
401
+ * called. Multiple calls will cause an error to be thrown.
402
+ * @since v0.1.92
403
+ * @param encoding The `encoding` of the return value.
404
+ */
405
+ digest(): Buffer;
406
+ digest(encoding: BinaryToTextEncoding): string;
407
+ }
408
+ /**
409
+ * The `Hmac` class is a utility for creating cryptographic HMAC digests. It can
410
+ * be used in one of two ways:
411
+ *
412
+ * * As a `stream` that is both readable and writable, where data is written
413
+ * to produce a computed HMAC digest on the readable side, or
414
+ * * Using the `hmac.update()` and `hmac.digest()` methods to produce the
415
+ * computed HMAC digest.
416
+ *
417
+ * The {@link createHmac} method is used to create `Hmac` instances. `Hmac`objects are not to be created directly using the `new` keyword.
418
+ *
419
+ * Example: Using `Hmac` objects as streams:
420
+ *
421
+ * ```js
422
+ * const {
423
+ * createHmac,
424
+ * } = await import('node:crypto');
425
+ *
426
+ * const hmac = createHmac('sha256', 'a secret');
427
+ *
428
+ * hmac.on('readable', () => {
429
+ * // Only one element is going to be produced by the
430
+ * // hash stream.
431
+ * const data = hmac.read();
432
+ * if (data) {
433
+ * console.log(data.toString('hex'));
434
+ * // Prints:
435
+ * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
436
+ * }
437
+ * });
438
+ *
439
+ * hmac.write('some data to hash');
440
+ * hmac.end();
441
+ * ```
442
+ *
443
+ * Example: Using `Hmac` and piped streams:
444
+ *
445
+ * ```js
446
+ * import { createReadStream } from 'node:fs';
447
+ * import { stdout } from 'node:process';
448
+ * const {
449
+ * createHmac,
450
+ * } = await import('node:crypto');
451
+ *
452
+ * const hmac = createHmac('sha256', 'a secret');
453
+ *
454
+ * const input = createReadStream('test.js');
455
+ * input.pipe(hmac).pipe(stdout);
456
+ * ```
457
+ *
458
+ * Example: Using the `hmac.update()` and `hmac.digest()` methods:
459
+ *
460
+ * ```js
461
+ * const {
462
+ * createHmac,
463
+ * } = await import('node:crypto');
464
+ *
465
+ * const hmac = createHmac('sha256', 'a secret');
466
+ *
467
+ * hmac.update('some data to hash');
468
+ * console.log(hmac.digest('hex'));
469
+ * // Prints:
470
+ * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
471
+ * ```
472
+ * @since v0.1.94
473
+ * @deprecated Since v20.13.0 Calling `Hmac` class directly with `Hmac()` or `new Hmac()` is deprecated due to being internals, not intended for public use. Please use the {@link createHmac} method to create Hmac instances.
474
+ */
475
+ class Hmac extends stream.Transform {
476
+ private constructor();
477
+ /**
478
+ * Updates the `Hmac` content with the given `data`, the encoding of which
479
+ * is given in `inputEncoding`.
480
+ * If `encoding` is not provided, and the `data` is a string, an
481
+ * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
482
+ *
483
+ * This can be called many times with new data as it is streamed.
484
+ * @since v0.1.94
485
+ * @param inputEncoding The `encoding` of the `data` string.
486
+ */
487
+ update(data: BinaryLike): Hmac;
488
+ update(data: string, inputEncoding: Encoding): Hmac;
489
+ /**
490
+ * Calculates the HMAC digest of all of the data passed using `hmac.update()`.
491
+ * If `encoding` is
492
+ * provided a string is returned; otherwise a `Buffer` is returned;
493
+ *
494
+ * The `Hmac` object can not be used again after `hmac.digest()` has been
495
+ * called. Multiple calls to `hmac.digest()` will result in an error being thrown.
496
+ * @since v0.1.94
497
+ * @param encoding The `encoding` of the return value.
498
+ */
499
+ digest(): Buffer;
500
+ digest(encoding: BinaryToTextEncoding): string;
501
+ }
502
+ type KeyObjectType = "secret" | "public" | "private";
503
+ interface KeyExportOptions<T extends KeyFormat> {
504
+ type: "pkcs1" | "spki" | "pkcs8" | "sec1";
505
+ format: T;
506
+ cipher?: string | undefined;
507
+ passphrase?: string | Buffer | undefined;
508
+ }
509
+ interface JwkKeyExportOptions {
510
+ format: "jwk";
511
+ }
512
+ interface JsonWebKey {
513
+ crv?: string | undefined;
514
+ d?: string | undefined;
515
+ dp?: string | undefined;
516
+ dq?: string | undefined;
517
+ e?: string | undefined;
518
+ k?: string | undefined;
519
+ kty?: string | undefined;
520
+ n?: string | undefined;
521
+ p?: string | undefined;
522
+ q?: string | undefined;
523
+ qi?: string | undefined;
524
+ x?: string | undefined;
525
+ y?: string | undefined;
526
+ [key: string]: unknown;
527
+ }
528
+ interface AsymmetricKeyDetails {
529
+ /**
530
+ * Key size in bits (RSA, DSA).
531
+ */
532
+ modulusLength?: number | undefined;
533
+ /**
534
+ * Public exponent (RSA).
535
+ */
536
+ publicExponent?: bigint | undefined;
537
+ /**
538
+ * Name of the message digest (RSA-PSS).
539
+ */
540
+ hashAlgorithm?: string | undefined;
541
+ /**
542
+ * Name of the message digest used by MGF1 (RSA-PSS).
543
+ */
544
+ mgf1HashAlgorithm?: string | undefined;
545
+ /**
546
+ * Minimal salt length in bytes (RSA-PSS).
547
+ */
548
+ saltLength?: number | undefined;
549
+ /**
550
+ * Size of q in bits (DSA).
551
+ */
552
+ divisorLength?: number | undefined;
553
+ /**
554
+ * Name of the curve (EC).
555
+ */
556
+ namedCurve?: string | undefined;
557
+ }
558
+ /**
559
+ * Node.js uses a `KeyObject` class to represent a symmetric or asymmetric key,
560
+ * and each kind of key exposes different functions. The {@link createSecretKey}, {@link createPublicKey} and {@link createPrivateKey} methods are used to create `KeyObject`instances. `KeyObject`
561
+ * objects are not to be created directly using the `new`keyword.
562
+ *
563
+ * Most applications should consider using the new `KeyObject` API instead of
564
+ * passing keys as strings or `Buffer`s due to improved security features.
565
+ *
566
+ * `KeyObject` instances can be passed to other threads via `postMessage()`.
567
+ * The receiver obtains a cloned `KeyObject`, and the `KeyObject` does not need to
568
+ * be listed in the `transferList` argument.
569
+ * @since v11.6.0
570
+ */
571
+ class KeyObject {
572
+ private constructor();
573
+ /**
574
+ * Example: Converting a `CryptoKey` instance to a `KeyObject`:
575
+ *
576
+ * ```js
577
+ * const { KeyObject } = await import('node:crypto');
578
+ * const { subtle } = globalThis.crypto;
579
+ *
580
+ * const key = await subtle.generateKey({
581
+ * name: 'HMAC',
582
+ * hash: 'SHA-256',
583
+ * length: 256,
584
+ * }, true, ['sign', 'verify']);
585
+ *
586
+ * const keyObject = KeyObject.from(key);
587
+ * console.log(keyObject.symmetricKeySize);
588
+ * // Prints: 32 (symmetric key size in bytes)
589
+ * ```
590
+ * @since v15.0.0
591
+ */
592
+ static from(key: webcrypto.CryptoKey): KeyObject;
593
+ /**
594
+ * For asymmetric keys, this property represents the type of the key. Supported key
595
+ * types are:
596
+ *
597
+ * * `'rsa'` (OID 1.2.840.113549.1.1.1)
598
+ * * `'rsa-pss'` (OID 1.2.840.113549.1.1.10)
599
+ * * `'dsa'` (OID 1.2.840.10040.4.1)
600
+ * * `'ec'` (OID 1.2.840.10045.2.1)
601
+ * * `'x25519'` (OID 1.3.101.110)
602
+ * * `'x448'` (OID 1.3.101.111)
603
+ * * `'ed25519'` (OID 1.3.101.112)
604
+ * * `'ed448'` (OID 1.3.101.113)
605
+ * * `'dh'` (OID 1.2.840.113549.1.3.1)
606
+ *
607
+ * This property is `undefined` for unrecognized `KeyObject` types and symmetric
608
+ * keys.
609
+ * @since v11.6.0
610
+ */
611
+ asymmetricKeyType?: KeyType | undefined;
612
+ /**
613
+ * For asymmetric keys, this property represents the size of the embedded key in
614
+ * bytes. This property is `undefined` for symmetric keys.
615
+ */
616
+ asymmetricKeySize?: number | undefined;
617
+ /**
618
+ * This property exists only on asymmetric keys. Depending on the type of the key,
619
+ * this object contains information about the key. None of the information obtained
620
+ * through this property can be used to uniquely identify a key or to compromise
621
+ * the security of the key.
622
+ *
623
+ * For RSA-PSS keys, if the key material contains a `RSASSA-PSS-params` sequence,
624
+ * the `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` properties will be
625
+ * set.
626
+ *
627
+ * Other key details might be exposed via this API using additional attributes.
628
+ * @since v15.7.0
629
+ */
630
+ asymmetricKeyDetails?: AsymmetricKeyDetails | undefined;
631
+ /**
632
+ * For symmetric keys, the following encoding options can be used:
633
+ *
634
+ * For public keys, the following encoding options can be used:
635
+ *
636
+ * For private keys, the following encoding options can be used:
637
+ *
638
+ * The result type depends on the selected encoding format, when PEM the
639
+ * result is a string, when DER it will be a buffer containing the data
640
+ * encoded as DER, when [JWK](https://tools.ietf.org/html/rfc7517) it will be an object.
641
+ *
642
+ * When [JWK](https://tools.ietf.org/html/rfc7517) encoding format was selected, all other encoding options are
643
+ * ignored.
644
+ *
645
+ * PKCS#1, SEC1, and PKCS#8 type keys can be encrypted by using a combination of
646
+ * 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
647
+ * encrypted by specifying a `cipher`when the PEM `format` is used. For maximum compatibility, use PKCS#8 for
648
+ * encrypted private keys. Since PKCS#8 defines its own
649
+ * encryption mechanism, PEM-level encryption is not supported when encrypting
650
+ * 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
651
+ * PKCS#1 and SEC1 encryption.
652
+ * @since v11.6.0
653
+ */
654
+ export(options: KeyExportOptions<"pem">): string | Buffer;
655
+ export(options?: KeyExportOptions<"der">): Buffer;
656
+ export(options?: JwkKeyExportOptions): JsonWebKey;
657
+ /**
658
+ * Returns `true` or `false` depending on whether the keys have exactly the same
659
+ * type, value, and parameters. This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack).
660
+ * @since v17.7.0, v16.15.0
661
+ * @param otherKeyObject A `KeyObject` with which to compare `keyObject`.
662
+ */
663
+ equals(otherKeyObject: KeyObject): boolean;
664
+ /**
665
+ * For secret keys, this property represents the size of the key in bytes. This
666
+ * property is `undefined` for asymmetric keys.
667
+ * @since v11.6.0
668
+ */
669
+ symmetricKeySize?: number | undefined;
670
+ /**
671
+ * Depending on the type of this `KeyObject`, this property is either`'secret'` for secret (symmetric) keys, `'public'` for public (asymmetric) keys
672
+ * or `'private'` for private (asymmetric) keys.
673
+ * @since v11.6.0
674
+ */
675
+ type: KeyObjectType;
676
+ }
677
+ type CipherCCMTypes = "aes-128-ccm" | "aes-192-ccm" | "aes-256-ccm" | "chacha20-poly1305";
678
+ type CipherGCMTypes = "aes-128-gcm" | "aes-192-gcm" | "aes-256-gcm";
679
+ type CipherOCBTypes = "aes-128-ocb" | "aes-192-ocb" | "aes-256-ocb";
680
+ type BinaryLike = string | NodeJS.ArrayBufferView;
681
+ type CipherKey = BinaryLike | KeyObject;
682
+ interface CipherCCMOptions extends stream.TransformOptions {
683
+ authTagLength: number;
684
+ }
685
+ interface CipherGCMOptions extends stream.TransformOptions {
686
+ authTagLength?: number | undefined;
687
+ }
688
+ interface CipherOCBOptions extends stream.TransformOptions {
689
+ authTagLength: number;
690
+ }
691
+ /**
692
+ * Creates and returns a `Cipher` object, with the given `algorithm`, `key` and
693
+ * initialization vector (`iv`).
694
+ *
695
+ * The `options` argument controls stream behavior and is optional except when a
696
+ * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
697
+ * 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
698
+ * tag that will be returned by `getAuthTag()` and defaults to 16 bytes.
699
+ * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
700
+ *
701
+ * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
702
+ * recent OpenSSL releases, `openssl list -cipher-algorithms` will
703
+ * display the available cipher algorithms.
704
+ *
705
+ * 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
706
+ * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
707
+ * a `KeyObject` of type `secret`. If the cipher does not need
708
+ * an initialization vector, `iv` may be `null`.
709
+ *
710
+ * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`.
711
+ *
712
+ * Initialization vectors should be unpredictable and unique; ideally, they will be
713
+ * cryptographically random. They do not have to be secret: IVs are typically just
714
+ * added to ciphertext messages unencrypted. It may sound contradictory that
715
+ * something has to be unpredictable and unique, but does not have to be secret;
716
+ * remember that an attacker must not be able to predict ahead of time what a
717
+ * given IV will be.
718
+ * @since v0.1.94
719
+ * @param options `stream.transform` options
720
+ */
721
+ function createCipheriv(
722
+ algorithm: CipherCCMTypes,
723
+ key: CipherKey,
724
+ iv: BinaryLike,
725
+ options: CipherCCMOptions,
726
+ ): CipherCCM;
727
+ function createCipheriv(
728
+ algorithm: CipherOCBTypes,
729
+ key: CipherKey,
730
+ iv: BinaryLike,
731
+ options: CipherOCBOptions,
732
+ ): CipherOCB;
733
+ function createCipheriv(
734
+ algorithm: CipherGCMTypes,
735
+ key: CipherKey,
736
+ iv: BinaryLike,
737
+ options?: CipherGCMOptions,
738
+ ): CipherGCM;
739
+ function createCipheriv(
740
+ algorithm: string,
741
+ key: CipherKey,
742
+ iv: BinaryLike | null,
743
+ options?: stream.TransformOptions,
744
+ ): Cipher;
745
+ /**
746
+ * Instances of the `Cipher` class are used to encrypt data. The class can be
747
+ * used in one of two ways:
748
+ *
749
+ * * As a `stream` that is both readable and writable, where plain unencrypted
750
+ * data is written to produce encrypted data on the readable side, or
751
+ * * Using the `cipher.update()` and `cipher.final()` methods to produce
752
+ * the encrypted data.
753
+ *
754
+ * The {@link createCipheriv} method is
755
+ * used to create `Cipher` instances. `Cipher` objects are not to be created
756
+ * directly using the `new` keyword.
757
+ *
758
+ * Example: Using `Cipher` objects as streams:
759
+ *
760
+ * ```js
761
+ * const {
762
+ * scrypt,
763
+ * randomFill,
764
+ * createCipheriv,
765
+ * } = await import('node:crypto');
766
+ *
767
+ * const algorithm = 'aes-192-cbc';
768
+ * const password = 'Password used to generate key';
769
+ *
770
+ * // First, we'll generate the key. The key length is dependent on the algorithm.
771
+ * // In this case for aes192, it is 24 bytes (192 bits).
772
+ * scrypt(password, 'salt', 24, (err, key) => {
773
+ * if (err) throw err;
774
+ * // Then, we'll generate a random initialization vector
775
+ * randomFill(new Uint8Array(16), (err, iv) => {
776
+ * if (err) throw err;
777
+ *
778
+ * // Once we have the key and iv, we can create and use the cipher...
779
+ * const cipher = createCipheriv(algorithm, key, iv);
780
+ *
781
+ * let encrypted = '';
782
+ * cipher.setEncoding('hex');
783
+ *
784
+ * cipher.on('data', (chunk) => encrypted += chunk);
785
+ * cipher.on('end', () => console.log(encrypted));
786
+ *
787
+ * cipher.write('some clear text data');
788
+ * cipher.end();
789
+ * });
790
+ * });
791
+ * ```
792
+ *
793
+ * Example: Using `Cipher` and piped streams:
794
+ *
795
+ * ```js
796
+ * import {
797
+ * createReadStream,
798
+ * createWriteStream,
799
+ * } from 'node:fs';
800
+ *
801
+ * import {
802
+ * pipeline,
803
+ * } from 'node:stream';
804
+ *
805
+ * const {
806
+ * scrypt,
807
+ * randomFill,
808
+ * createCipheriv,
809
+ * } = await import('node:crypto');
810
+ *
811
+ * const algorithm = 'aes-192-cbc';
812
+ * const password = 'Password used to generate key';
813
+ *
814
+ * // First, we'll generate the key. The key length is dependent on the algorithm.
815
+ * // In this case for aes192, it is 24 bytes (192 bits).
816
+ * scrypt(password, 'salt', 24, (err, key) => {
817
+ * if (err) throw err;
818
+ * // Then, we'll generate a random initialization vector
819
+ * randomFill(new Uint8Array(16), (err, iv) => {
820
+ * if (err) throw err;
821
+ *
822
+ * const cipher = createCipheriv(algorithm, key, iv);
823
+ *
824
+ * const input = createReadStream('test.js');
825
+ * const output = createWriteStream('test.enc');
826
+ *
827
+ * pipeline(input, cipher, output, (err) => {
828
+ * if (err) throw err;
829
+ * });
830
+ * });
831
+ * });
832
+ * ```
833
+ *
834
+ * Example: Using the `cipher.update()` and `cipher.final()` methods:
835
+ *
836
+ * ```js
837
+ * const {
838
+ * scrypt,
839
+ * randomFill,
840
+ * createCipheriv,
841
+ * } = await import('node:crypto');
842
+ *
843
+ * const algorithm = 'aes-192-cbc';
844
+ * const password = 'Password used to generate key';
845
+ *
846
+ * // First, we'll generate the key. The key length is dependent on the algorithm.
847
+ * // In this case for aes192, it is 24 bytes (192 bits).
848
+ * scrypt(password, 'salt', 24, (err, key) => {
849
+ * if (err) throw err;
850
+ * // Then, we'll generate a random initialization vector
851
+ * randomFill(new Uint8Array(16), (err, iv) => {
852
+ * if (err) throw err;
853
+ *
854
+ * const cipher = createCipheriv(algorithm, key, iv);
855
+ *
856
+ * let encrypted = cipher.update('some clear text data', 'utf8', 'hex');
857
+ * encrypted += cipher.final('hex');
858
+ * console.log(encrypted);
859
+ * });
860
+ * });
861
+ * ```
862
+ * @since v0.1.94
863
+ */
864
+ class Cipher extends stream.Transform {
865
+ private constructor();
866
+ /**
867
+ * Updates the cipher with `data`. If the `inputEncoding` argument is given,
868
+ * 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`,
869
+ * `TypedArray`, or `DataView`, then `inputEncoding` is ignored.
870
+ *
871
+ * The `outputEncoding` specifies the output format of the enciphered
872
+ * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned.
873
+ *
874
+ * 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
875
+ * thrown.
876
+ * @since v0.1.94
877
+ * @param inputEncoding The `encoding` of the data.
878
+ * @param outputEncoding The `encoding` of the return value.
879
+ */
880
+ update(data: BinaryLike): Buffer;
881
+ update(data: string, inputEncoding: Encoding): Buffer;
882
+ update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string;
883
+ update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string;
884
+ /**
885
+ * Once the `cipher.final()` method has been called, the `Cipher` object can no
886
+ * longer be used to encrypt data. Attempts to call `cipher.final()` more than
887
+ * once will result in an error being thrown.
888
+ * @since v0.1.94
889
+ * @param outputEncoding The `encoding` of the return value.
890
+ * @return Any remaining enciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned.
891
+ */
892
+ final(): Buffer;
893
+ final(outputEncoding: BufferEncoding): string;
894
+ /**
895
+ * When using block encryption algorithms, the `Cipher` class will automatically
896
+ * add padding to the input data to the appropriate block size. To disable the
897
+ * default padding call `cipher.setAutoPadding(false)`.
898
+ *
899
+ * When `autoPadding` is `false`, the length of the entire input data must be a
900
+ * multiple of the cipher's block size or `cipher.final()` will throw an error.
901
+ * Disabling automatic padding is useful for non-standard padding, for instance
902
+ * using `0x0` instead of PKCS padding.
903
+ *
904
+ * The `cipher.setAutoPadding()` method must be called before `cipher.final()`.
905
+ * @since v0.7.1
906
+ * @param [autoPadding=true]
907
+ * @return for method chaining.
908
+ */
909
+ setAutoPadding(autoPadding?: boolean): this;
910
+ }
911
+ interface CipherCCM extends Cipher {
912
+ setAAD(
913
+ buffer: NodeJS.ArrayBufferView,
914
+ options: {
915
+ plaintextLength: number;
916
+ },
917
+ ): this;
918
+ getAuthTag(): Buffer;
919
+ }
920
+ interface CipherGCM extends Cipher {
921
+ setAAD(
922
+ buffer: NodeJS.ArrayBufferView,
923
+ options?: {
924
+ plaintextLength: number;
925
+ },
926
+ ): this;
927
+ getAuthTag(): Buffer;
928
+ }
929
+ interface CipherOCB extends Cipher {
930
+ setAAD(
931
+ buffer: NodeJS.ArrayBufferView,
932
+ options?: {
933
+ plaintextLength: number;
934
+ },
935
+ ): this;
936
+ getAuthTag(): Buffer;
937
+ }
938
+ /**
939
+ * Creates and returns a `Decipher` object that uses the given `algorithm`, `key` and initialization vector (`iv`).
940
+ *
941
+ * The `options` argument controls stream behavior and is optional except when a
942
+ * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the
943
+ * 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
944
+ * to those with the specified length.
945
+ * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
946
+ *
947
+ * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
948
+ * recent OpenSSL releases, `openssl list -cipher-algorithms` will
949
+ * display the available cipher algorithms.
950
+ *
951
+ * 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
952
+ * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
953
+ * a `KeyObject` of type `secret`. If the cipher does not need
954
+ * an initialization vector, `iv` may be `null`.
955
+ *
956
+ * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`.
957
+ *
958
+ * Initialization vectors should be unpredictable and unique; ideally, they will be
959
+ * cryptographically random. They do not have to be secret: IVs are typically just
960
+ * added to ciphertext messages unencrypted. It may sound contradictory that
961
+ * something has to be unpredictable and unique, but does not have to be secret;
962
+ * remember that an attacker must not be able to predict ahead of time what a given
963
+ * IV will be.
964
+ * @since v0.1.94
965
+ * @param options `stream.transform` options
966
+ */
967
+ function createDecipheriv(
968
+ algorithm: CipherCCMTypes,
969
+ key: CipherKey,
970
+ iv: BinaryLike,
971
+ options: CipherCCMOptions,
972
+ ): DecipherCCM;
973
+ function createDecipheriv(
974
+ algorithm: CipherOCBTypes,
975
+ key: CipherKey,
976
+ iv: BinaryLike,
977
+ options: CipherOCBOptions,
978
+ ): DecipherOCB;
979
+ function createDecipheriv(
980
+ algorithm: CipherGCMTypes,
981
+ key: CipherKey,
982
+ iv: BinaryLike,
983
+ options?: CipherGCMOptions,
984
+ ): DecipherGCM;
985
+ function createDecipheriv(
986
+ algorithm: string,
987
+ key: CipherKey,
988
+ iv: BinaryLike | null,
989
+ options?: stream.TransformOptions,
990
+ ): Decipher;
991
+ /**
992
+ * Instances of the `Decipher` class are used to decrypt data. The class can be
993
+ * used in one of two ways:
994
+ *
995
+ * * As a `stream` that is both readable and writable, where plain encrypted
996
+ * data is written to produce unencrypted data on the readable side, or
997
+ * * Using the `decipher.update()` and `decipher.final()` methods to
998
+ * produce the unencrypted data.
999
+ *
1000
+ * The {@link createDecipheriv} method is
1001
+ * used to create `Decipher` instances. `Decipher` objects are not to be created
1002
+ * directly using the `new` keyword.
1003
+ *
1004
+ * Example: Using `Decipher` objects as streams:
1005
+ *
1006
+ * ```js
1007
+ * import { Buffer } from 'node:buffer';
1008
+ * const {
1009
+ * scryptSync,
1010
+ * createDecipheriv,
1011
+ * } = await import('node:crypto');
1012
+ *
1013
+ * const algorithm = 'aes-192-cbc';
1014
+ * const password = 'Password used to generate key';
1015
+ * // Key length is dependent on the algorithm. In this case for aes192, it is
1016
+ * // 24 bytes (192 bits).
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
+ * let decrypted = '';
1025
+ * decipher.on('readable', () => {
1026
+ * let chunk;
1027
+ * while (null !== (chunk = decipher.read())) {
1028
+ * decrypted += chunk.toString('utf8');
1029
+ * }
1030
+ * });
1031
+ * decipher.on('end', () => {
1032
+ * console.log(decrypted);
1033
+ * // Prints: some clear text data
1034
+ * });
1035
+ *
1036
+ * // Encrypted with same algorithm, key and iv.
1037
+ * const encrypted =
1038
+ * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa';
1039
+ * decipher.write(encrypted, 'hex');
1040
+ * decipher.end();
1041
+ * ```
1042
+ *
1043
+ * Example: Using `Decipher` and piped streams:
1044
+ *
1045
+ * ```js
1046
+ * import {
1047
+ * createReadStream,
1048
+ * createWriteStream,
1049
+ * } from 'node:fs';
1050
+ * import { Buffer } from 'node:buffer';
1051
+ * const {
1052
+ * scryptSync,
1053
+ * createDecipheriv,
1054
+ * } = await import('node:crypto');
1055
+ *
1056
+ * const algorithm = 'aes-192-cbc';
1057
+ * const password = 'Password used to generate key';
1058
+ * // Use the async `crypto.scrypt()` instead.
1059
+ * const key = scryptSync(password, 'salt', 24);
1060
+ * // The IV is usually passed along with the ciphertext.
1061
+ * const iv = Buffer.alloc(16, 0); // Initialization vector.
1062
+ *
1063
+ * const decipher = createDecipheriv(algorithm, key, iv);
1064
+ *
1065
+ * const input = createReadStream('test.enc');
1066
+ * const output = createWriteStream('test.js');
1067
+ *
1068
+ * input.pipe(decipher).pipe(output);
1069
+ * ```
1070
+ *
1071
+ * Example: Using the `decipher.update()` and `decipher.final()` methods:
1072
+ *
1073
+ * ```js
1074
+ * import { Buffer } from 'node:buffer';
1075
+ * const {
1076
+ * scryptSync,
1077
+ * createDecipheriv,
1078
+ * } = await import('node:crypto');
1079
+ *
1080
+ * const algorithm = 'aes-192-cbc';
1081
+ * const password = 'Password used to generate key';
1082
+ * // Use the async `crypto.scrypt()` instead.
1083
+ * const key = scryptSync(password, 'salt', 24);
1084
+ * // The IV is usually passed along with the ciphertext.
1085
+ * const iv = Buffer.alloc(16, 0); // Initialization vector.
1086
+ *
1087
+ * const decipher = createDecipheriv(algorithm, key, iv);
1088
+ *
1089
+ * // Encrypted using same algorithm, key and iv.
1090
+ * const encrypted =
1091
+ * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa';
1092
+ * let decrypted = decipher.update(encrypted, 'hex', 'utf8');
1093
+ * decrypted += decipher.final('utf8');
1094
+ * console.log(decrypted);
1095
+ * // Prints: some clear text data
1096
+ * ```
1097
+ * @since v0.1.94
1098
+ */
1099
+ class Decipher extends stream.Transform {
1100
+ private constructor();
1101
+ /**
1102
+ * Updates the decipher with `data`. If the `inputEncoding` argument is given,
1103
+ * 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
1104
+ * ignored.
1105
+ *
1106
+ * The `outputEncoding` specifies the output format of the enciphered
1107
+ * data. If the `outputEncoding` is specified, a string using the specified encoding is returned. If no `outputEncoding` is provided, a `Buffer` is returned.
1108
+ *
1109
+ * 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
1110
+ * being thrown.
1111
+ * @since v0.1.94
1112
+ * @param inputEncoding The `encoding` of the `data` string.
1113
+ * @param outputEncoding The `encoding` of the return value.
1114
+ */
1115
+ update(data: NodeJS.ArrayBufferView): Buffer;
1116
+ update(data: string, inputEncoding: Encoding): Buffer;
1117
+ update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string;
1118
+ update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string;
1119
+ /**
1120
+ * Once the `decipher.final()` method has been called, the `Decipher` object can
1121
+ * no longer be used to decrypt data. Attempts to call `decipher.final()` more
1122
+ * than once will result in an error being thrown.
1123
+ * @since v0.1.94
1124
+ * @param outputEncoding The `encoding` of the return value.
1125
+ * @return Any remaining deciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned.
1126
+ */
1127
+ final(): Buffer;
1128
+ final(outputEncoding: BufferEncoding): string;
1129
+ /**
1130
+ * 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
1131
+ * removing padding.
1132
+ *
1133
+ * Turning auto padding off will only work if the input data's length is a
1134
+ * multiple of the ciphers block size.
1135
+ *
1136
+ * The `decipher.setAutoPadding()` method must be called before `decipher.final()`.
1137
+ * @since v0.7.1
1138
+ * @param [autoPadding=true]
1139
+ * @return for method chaining.
1140
+ */
1141
+ setAutoPadding(auto_padding?: boolean): this;
1142
+ }
1143
+ interface DecipherCCM extends Decipher {
1144
+ setAuthTag(buffer: NodeJS.ArrayBufferView): this;
1145
+ setAAD(
1146
+ buffer: NodeJS.ArrayBufferView,
1147
+ options: {
1148
+ plaintextLength: number;
1149
+ },
1150
+ ): this;
1151
+ }
1152
+ interface DecipherGCM extends Decipher {
1153
+ setAuthTag(buffer: NodeJS.ArrayBufferView): this;
1154
+ setAAD(
1155
+ buffer: NodeJS.ArrayBufferView,
1156
+ options?: {
1157
+ plaintextLength: number;
1158
+ },
1159
+ ): this;
1160
+ }
1161
+ interface DecipherOCB extends Decipher {
1162
+ setAuthTag(buffer: NodeJS.ArrayBufferView): this;
1163
+ setAAD(
1164
+ buffer: NodeJS.ArrayBufferView,
1165
+ options?: {
1166
+ plaintextLength: number;
1167
+ },
1168
+ ): this;
1169
+ }
1170
+ interface PrivateKeyInput {
1171
+ key: string | Buffer;
1172
+ format?: KeyFormat | undefined;
1173
+ type?: "pkcs1" | "pkcs8" | "sec1" | undefined;
1174
+ passphrase?: string | Buffer | undefined;
1175
+ encoding?: string | undefined;
1176
+ }
1177
+ interface PublicKeyInput {
1178
+ key: string | Buffer;
1179
+ format?: KeyFormat | undefined;
1180
+ type?: "pkcs1" | "spki" | undefined;
1181
+ encoding?: string | undefined;
1182
+ }
1183
+ /**
1184
+ * Asynchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`.
1185
+ *
1186
+ * ```js
1187
+ * const {
1188
+ * generateKey,
1189
+ * } = await import('node:crypto');
1190
+ *
1191
+ * generateKey('hmac', { length: 512 }, (err, key) => {
1192
+ * if (err) throw err;
1193
+ * console.log(key.export().toString('hex')); // 46e..........620
1194
+ * });
1195
+ * ```
1196
+ *
1197
+ * The size of a generated HMAC key should not exceed the block size of the
1198
+ * underlying hash function. See {@link createHmac} for more information.
1199
+ * @since v15.0.0
1200
+ * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`.
1201
+ */
1202
+ function generateKey(
1203
+ type: "hmac" | "aes",
1204
+ options: {
1205
+ length: number;
1206
+ },
1207
+ callback: (err: Error | null, key: KeyObject) => void,
1208
+ ): void;
1209
+ /**
1210
+ * Synchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`.
1211
+ *
1212
+ * ```js
1213
+ * const {
1214
+ * generateKeySync,
1215
+ * } = await import('node:crypto');
1216
+ *
1217
+ * const key = generateKeySync('hmac', { length: 512 });
1218
+ * console.log(key.export().toString('hex')); // e89..........41e
1219
+ * ```
1220
+ *
1221
+ * The size of a generated HMAC key should not exceed the block size of the
1222
+ * underlying hash function. See {@link createHmac} for more information.
1223
+ * @since v15.0.0
1224
+ * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`.
1225
+ */
1226
+ function generateKeySync(
1227
+ type: "hmac" | "aes",
1228
+ options: {
1229
+ length: number;
1230
+ },
1231
+ ): KeyObject;
1232
+ interface JsonWebKeyInput {
1233
+ key: JsonWebKey;
1234
+ format: "jwk";
1235
+ }
1236
+ /**
1237
+ * Creates and returns a new key object containing a private key. If `key` is a
1238
+ * string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key` must be an object with the properties described above.
1239
+ *
1240
+ * If the private key is encrypted, a `passphrase` must be specified. The length
1241
+ * of the passphrase is limited to 1024 bytes.
1242
+ * @since v11.6.0
1243
+ */
1244
+ function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject;
1245
+ /**
1246
+ * Creates and returns a new key object containing a public key. If `key` is a
1247
+ * 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;
1248
+ * otherwise, `key` must be an object with the properties described above.
1249
+ *
1250
+ * If the format is `'pem'`, the `'key'` may also be an X.509 certificate.
1251
+ *
1252
+ * Because public keys can be derived from private keys, a private key may be
1253
+ * 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
1254
+ * returned `KeyObject` will be `'public'` and that the private key cannot be
1255
+ * extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type `'private'` is given, a new `KeyObject` with type `'public'` will be returned
1256
+ * and it will be impossible to extract the private key from the returned object.
1257
+ * @since v11.6.0
1258
+ */
1259
+ function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject | JsonWebKeyInput): KeyObject;
1260
+ /**
1261
+ * Creates and returns a new key object containing a secret key for symmetric
1262
+ * encryption or `Hmac`.
1263
+ * @since v11.6.0
1264
+ * @param encoding The string encoding when `key` is a string.
1265
+ */
1266
+ function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject;
1267
+ function createSecretKey(key: string, encoding: BufferEncoding): KeyObject;
1268
+ /**
1269
+ * Creates and returns a `Sign` object that uses the given `algorithm`. Use {@link getHashes} to obtain the names of the available digest algorithms.
1270
+ * Optional `options` argument controls the `stream.Writable` behavior.
1271
+ *
1272
+ * In some cases, a `Sign` instance can be created using the name of a signature
1273
+ * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
1274
+ * the corresponding digest algorithm. This does not work for all signature
1275
+ * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest
1276
+ * algorithm names.
1277
+ * @since v0.1.92
1278
+ * @param options `stream.Writable` options
1279
+ */
1280
+ function createSign(algorithm: string, options?: stream.WritableOptions): Sign;
1281
+ type DSAEncoding = "der" | "ieee-p1363";
1282
+ interface SigningOptions {
1283
+ /**
1284
+ * @see crypto.constants.RSA_PKCS1_PADDING
1285
+ */
1286
+ padding?: number | undefined;
1287
+ saltLength?: number | undefined;
1288
+ dsaEncoding?: DSAEncoding | undefined;
1289
+ }
1290
+ interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {}
1291
+ interface SignKeyObjectInput extends SigningOptions {
1292
+ key: KeyObject;
1293
+ }
1294
+ interface SignJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
1295
+ interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {}
1296
+ interface VerifyKeyObjectInput extends SigningOptions {
1297
+ key: KeyObject;
1298
+ }
1299
+ interface VerifyJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
1300
+ type KeyLike = string | Buffer | KeyObject;
1301
+ /**
1302
+ * The `Sign` class is a utility for generating signatures. It can be used in one
1303
+ * of two ways:
1304
+ *
1305
+ * * 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
1306
+ * * Using the `sign.update()` and `sign.sign()` methods to produce the
1307
+ * signature.
1308
+ *
1309
+ * The {@link createSign} method is used to create `Sign` instances. The
1310
+ * argument is the string name of the hash function to use. `Sign` objects are not
1311
+ * to be created directly using the `new` keyword.
1312
+ *
1313
+ * Example: Using `Sign` and `Verify` objects as streams:
1314
+ *
1315
+ * ```js
1316
+ * const {
1317
+ * generateKeyPairSync,
1318
+ * createSign,
1319
+ * createVerify,
1320
+ * } = await import('node:crypto');
1321
+ *
1322
+ * const { privateKey, publicKey } = generateKeyPairSync('ec', {
1323
+ * namedCurve: 'sect239k1',
1324
+ * });
1325
+ *
1326
+ * const sign = createSign('SHA256');
1327
+ * sign.write('some data to sign');
1328
+ * sign.end();
1329
+ * const signature = sign.sign(privateKey, 'hex');
1330
+ *
1331
+ * const verify = createVerify('SHA256');
1332
+ * verify.write('some data to sign');
1333
+ * verify.end();
1334
+ * console.log(verify.verify(publicKey, signature, 'hex'));
1335
+ * // Prints: true
1336
+ * ```
1337
+ *
1338
+ * Example: Using the `sign.update()` and `verify.update()` methods:
1339
+ *
1340
+ * ```js
1341
+ * const {
1342
+ * generateKeyPairSync,
1343
+ * createSign,
1344
+ * createVerify,
1345
+ * } = await import('node:crypto');
1346
+ *
1347
+ * const { privateKey, publicKey } = generateKeyPairSync('rsa', {
1348
+ * modulusLength: 2048,
1349
+ * });
1350
+ *
1351
+ * const sign = createSign('SHA256');
1352
+ * sign.update('some data to sign');
1353
+ * sign.end();
1354
+ * const signature = sign.sign(privateKey);
1355
+ *
1356
+ * const verify = createVerify('SHA256');
1357
+ * verify.update('some data to sign');
1358
+ * verify.end();
1359
+ * console.log(verify.verify(publicKey, signature));
1360
+ * // Prints: true
1361
+ * ```
1362
+ * @since v0.1.92
1363
+ */
1364
+ class Sign extends stream.Writable {
1365
+ private constructor();
1366
+ /**
1367
+ * Updates the `Sign` content with the given `data`, the encoding of which
1368
+ * is given in `inputEncoding`.
1369
+ * If `encoding` is not provided, and the `data` is a string, an
1370
+ * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
1371
+ *
1372
+ * This can be called many times with new data as it is streamed.
1373
+ * @since v0.1.92
1374
+ * @param inputEncoding The `encoding` of the `data` string.
1375
+ */
1376
+ update(data: BinaryLike): this;
1377
+ update(data: string, inputEncoding: Encoding): this;
1378
+ /**
1379
+ * Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`.
1380
+ *
1381
+ * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
1382
+ * object, the following additional properties can be passed:
1383
+ *
1384
+ * If `outputEncoding` is provided a string is returned; otherwise a `Buffer` is returned.
1385
+ *
1386
+ * The `Sign` object can not be again used after `sign.sign()` method has been
1387
+ * called. Multiple calls to `sign.sign()` will result in an error being thrown.
1388
+ * @since v0.1.92
1389
+ */
1390
+ sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput): Buffer;
1391
+ sign(
1392
+ privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
1393
+ outputFormat: BinaryToTextEncoding,
1394
+ ): string;
1395
+ }
1396
+ /**
1397
+ * Creates and returns a `Verify` object that uses the given algorithm.
1398
+ * Use {@link getHashes} to obtain an array of names of the available
1399
+ * signing algorithms. Optional `options` argument controls the `stream.Writable` behavior.
1400
+ *
1401
+ * In some cases, a `Verify` instance can be created using the name of a signature
1402
+ * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
1403
+ * the corresponding digest algorithm. This does not work for all signature
1404
+ * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest
1405
+ * algorithm names.
1406
+ * @since v0.1.92
1407
+ * @param options `stream.Writable` options
1408
+ */
1409
+ function createVerify(algorithm: string, options?: stream.WritableOptions): Verify;
1410
+ /**
1411
+ * The `Verify` class is a utility for verifying signatures. It can be used in one
1412
+ * of two ways:
1413
+ *
1414
+ * * As a writable `stream` where written data is used to validate against the
1415
+ * supplied signature, or
1416
+ * * Using the `verify.update()` and `verify.verify()` methods to verify
1417
+ * the signature.
1418
+ *
1419
+ * The {@link createVerify} method is used to create `Verify` instances. `Verify` objects are not to be created directly using the `new` keyword.
1420
+ *
1421
+ * See `Sign` for examples.
1422
+ * @since v0.1.92
1423
+ */
1424
+ class Verify extends stream.Writable {
1425
+ private constructor();
1426
+ /**
1427
+ * Updates the `Verify` content with the given `data`, the encoding of which
1428
+ * is given in `inputEncoding`.
1429
+ * If `inputEncoding` is not provided, and the `data` is a string, an
1430
+ * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or `DataView`, then `inputEncoding` is ignored.
1431
+ *
1432
+ * This can be called many times with new data as it is streamed.
1433
+ * @since v0.1.92
1434
+ * @param inputEncoding The `encoding` of the `data` string.
1435
+ */
1436
+ update(data: BinaryLike): Verify;
1437
+ update(data: string, inputEncoding: Encoding): Verify;
1438
+ /**
1439
+ * Verifies the provided data using the given `object` and `signature`.
1440
+ *
1441
+ * If `object` is not a `KeyObject`, this function behaves as if `object` had been passed to {@link createPublicKey}. If it is an
1442
+ * object, the following additional properties can be passed:
1443
+ *
1444
+ * The `signature` argument is the previously calculated signature for the data, in
1445
+ * the `signatureEncoding`.
1446
+ * If a `signatureEncoding` is specified, the `signature` is expected to be a
1447
+ * string; otherwise `signature` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
1448
+ *
1449
+ * The `verify` object can not be used again after `verify.verify()` has been
1450
+ * called. Multiple calls to `verify.verify()` will result in an error being
1451
+ * thrown.
1452
+ *
1453
+ * Because public keys can be derived from private keys, a private key may
1454
+ * be passed instead of a public key.
1455
+ * @since v0.1.92
1456
+ */
1457
+ verify(
1458
+ object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
1459
+ signature: NodeJS.ArrayBufferView,
1460
+ ): boolean;
1461
+ verify(
1462
+ object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
1463
+ signature: string,
1464
+ signature_format?: BinaryToTextEncoding,
1465
+ ): boolean;
1466
+ }
1467
+ /**
1468
+ * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an
1469
+ * optional specific `generator`.
1470
+ *
1471
+ * The `generator` argument can be a number, string, or `Buffer`. If `generator` is not specified, the value `2` is used.
1472
+ *
1473
+ * If `primeEncoding` is specified, `prime` is expected to be a string; otherwise
1474
+ * a `Buffer`, `TypedArray`, or `DataView` is expected.
1475
+ *
1476
+ * If `generatorEncoding` is specified, `generator` is expected to be a string;
1477
+ * otherwise a number, `Buffer`, `TypedArray`, or `DataView` is expected.
1478
+ * @since v0.11.12
1479
+ * @param primeEncoding The `encoding` of the `prime` string.
1480
+ * @param [generator=2]
1481
+ * @param generatorEncoding The `encoding` of the `generator` string.
1482
+ */
1483
+ function createDiffieHellman(primeLength: number, generator?: number): DiffieHellman;
1484
+ function createDiffieHellman(
1485
+ prime: ArrayBuffer | NodeJS.ArrayBufferView,
1486
+ generator?: number | ArrayBuffer | NodeJS.ArrayBufferView,
1487
+ ): DiffieHellman;
1488
+ function createDiffieHellman(
1489
+ prime: ArrayBuffer | NodeJS.ArrayBufferView,
1490
+ generator: string,
1491
+ generatorEncoding: BinaryToTextEncoding,
1492
+ ): DiffieHellman;
1493
+ function createDiffieHellman(
1494
+ prime: string,
1495
+ primeEncoding: BinaryToTextEncoding,
1496
+ generator?: number | ArrayBuffer | NodeJS.ArrayBufferView,
1497
+ ): DiffieHellman;
1498
+ function createDiffieHellman(
1499
+ prime: string,
1500
+ primeEncoding: BinaryToTextEncoding,
1501
+ generator: string,
1502
+ generatorEncoding: BinaryToTextEncoding,
1503
+ ): DiffieHellman;
1504
+ /**
1505
+ * The `DiffieHellman` class is a utility for creating Diffie-Hellman key
1506
+ * exchanges.
1507
+ *
1508
+ * Instances of the `DiffieHellman` class can be created using the {@link createDiffieHellman} function.
1509
+ *
1510
+ * ```js
1511
+ * import assert from 'node:assert';
1512
+ *
1513
+ * const {
1514
+ * createDiffieHellman,
1515
+ * } = await import('node:crypto');
1516
+ *
1517
+ * // Generate Alice's keys...
1518
+ * const alice = createDiffieHellman(2048);
1519
+ * const aliceKey = alice.generateKeys();
1520
+ *
1521
+ * // Generate Bob's keys...
1522
+ * const bob = createDiffieHellman(alice.getPrime(), alice.getGenerator());
1523
+ * const bobKey = bob.generateKeys();
1524
+ *
1525
+ * // Exchange and generate the secret...
1526
+ * const aliceSecret = alice.computeSecret(bobKey);
1527
+ * const bobSecret = bob.computeSecret(aliceKey);
1528
+ *
1529
+ * // OK
1530
+ * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex'));
1531
+ * ```
1532
+ * @since v0.5.0
1533
+ */
1534
+ class DiffieHellman {
1535
+ private constructor();
1536
+ /**
1537
+ * Generates private and public Diffie-Hellman key values unless they have been
1538
+ * generated or computed already, and returns
1539
+ * the public key in the specified `encoding`. This key should be
1540
+ * transferred to the other party.
1541
+ * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
1542
+ *
1543
+ * This function is a thin wrapper around [`DH_generate_key()`](https://www.openssl.org/docs/man3.0/man3/DH_generate_key.html). In particular,
1544
+ * once a private key has been generated or set, calling this function only updates
1545
+ * the public key but does not generate a new private key.
1546
+ * @since v0.5.0
1547
+ * @param encoding The `encoding` of the return value.
1548
+ */
1549
+ generateKeys(): Buffer;
1550
+ generateKeys(encoding: BinaryToTextEncoding): string;
1551
+ /**
1552
+ * Computes the shared secret using `otherPublicKey` as the other
1553
+ * party's public key and returns the computed shared secret. The supplied
1554
+ * key is interpreted using the specified `inputEncoding`, and secret is
1555
+ * encoded using specified `outputEncoding`.
1556
+ * If the `inputEncoding` is not
1557
+ * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
1558
+ *
1559
+ * If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned.
1560
+ * @since v0.5.0
1561
+ * @param inputEncoding The `encoding` of an `otherPublicKey` string.
1562
+ * @param outputEncoding The `encoding` of the return value.
1563
+ */
1564
+ computeSecret(otherPublicKey: NodeJS.ArrayBufferView, inputEncoding?: null, outputEncoding?: null): Buffer;
1565
+ computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding?: null): Buffer;
1566
+ computeSecret(
1567
+ otherPublicKey: NodeJS.ArrayBufferView,
1568
+ inputEncoding: null,
1569
+ outputEncoding: BinaryToTextEncoding,
1570
+ ): string;
1571
+ computeSecret(
1572
+ otherPublicKey: string,
1573
+ inputEncoding: BinaryToTextEncoding,
1574
+ outputEncoding: BinaryToTextEncoding,
1575
+ ): string;
1576
+ /**
1577
+ * Returns the Diffie-Hellman prime in the specified `encoding`.
1578
+ * If `encoding` is provided a string is
1579
+ * returned; otherwise a `Buffer` is returned.
1580
+ * @since v0.5.0
1581
+ * @param encoding The `encoding` of the return value.
1582
+ */
1583
+ getPrime(): Buffer;
1584
+ getPrime(encoding: BinaryToTextEncoding): string;
1585
+ /**
1586
+ * Returns the Diffie-Hellman generator in the specified `encoding`.
1587
+ * If `encoding` is provided a string is
1588
+ * returned; otherwise a `Buffer` is returned.
1589
+ * @since v0.5.0
1590
+ * @param encoding The `encoding` of the return value.
1591
+ */
1592
+ getGenerator(): Buffer;
1593
+ getGenerator(encoding: BinaryToTextEncoding): string;
1594
+ /**
1595
+ * Returns the Diffie-Hellman public key in the specified `encoding`.
1596
+ * If `encoding` is provided a
1597
+ * string is returned; otherwise a `Buffer` is returned.
1598
+ * @since v0.5.0
1599
+ * @param encoding The `encoding` of the return value.
1600
+ */
1601
+ getPublicKey(): Buffer;
1602
+ getPublicKey(encoding: BinaryToTextEncoding): string;
1603
+ /**
1604
+ * Returns the Diffie-Hellman private key in the specified `encoding`.
1605
+ * If `encoding` is provided a
1606
+ * string is returned; otherwise a `Buffer` is returned.
1607
+ * @since v0.5.0
1608
+ * @param encoding The `encoding` of the return value.
1609
+ */
1610
+ getPrivateKey(): Buffer;
1611
+ getPrivateKey(encoding: BinaryToTextEncoding): string;
1612
+ /**
1613
+ * Sets the Diffie-Hellman public key. If the `encoding` argument is provided, `publicKey` is expected
1614
+ * to be a string. If no `encoding` is provided, `publicKey` is expected
1615
+ * to be a `Buffer`, `TypedArray`, or `DataView`.
1616
+ * @since v0.5.0
1617
+ * @param encoding The `encoding` of the `publicKey` string.
1618
+ */
1619
+ setPublicKey(publicKey: NodeJS.ArrayBufferView): void;
1620
+ setPublicKey(publicKey: string, encoding: BufferEncoding): void;
1621
+ /**
1622
+ * Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected
1623
+ * to be a string. If no `encoding` is provided, `privateKey` is expected
1624
+ * to be a `Buffer`, `TypedArray`, or `DataView`.
1625
+ *
1626
+ * This function does not automatically compute the associated public key. Either `diffieHellman.setPublicKey()` or `diffieHellman.generateKeys()` can be
1627
+ * used to manually provide the public key or to automatically derive it.
1628
+ * @since v0.5.0
1629
+ * @param encoding The `encoding` of the `privateKey` string.
1630
+ */
1631
+ setPrivateKey(privateKey: NodeJS.ArrayBufferView): void;
1632
+ setPrivateKey(privateKey: string, encoding: BufferEncoding): void;
1633
+ /**
1634
+ * A bit field containing any warnings and/or errors resulting from a check
1635
+ * performed during initialization of the `DiffieHellman` object.
1636
+ *
1637
+ * The following values are valid for this property (as defined in `node:constants` module):
1638
+ *
1639
+ * * `DH_CHECK_P_NOT_SAFE_PRIME`
1640
+ * * `DH_CHECK_P_NOT_PRIME`
1641
+ * * `DH_UNABLE_TO_CHECK_GENERATOR`
1642
+ * * `DH_NOT_SUITABLE_GENERATOR`
1643
+ * @since v0.11.12
1644
+ */
1645
+ verifyError: number;
1646
+ }
1647
+ /**
1648
+ * The `DiffieHellmanGroup` class takes a well-known modp group as its argument.
1649
+ * It works the same as `DiffieHellman`, except that it does not allow changing its keys after creation.
1650
+ * In other words, it does not implement `setPublicKey()` or `setPrivateKey()` methods.
1651
+ *
1652
+ * ```js
1653
+ * const { createDiffieHellmanGroup } = await import('node:crypto');
1654
+ * const dh = createDiffieHellmanGroup('modp1');
1655
+ * ```
1656
+ * The name (e.g. `'modp1'`) is taken from [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt) (modp1 and 2) and [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt):
1657
+ * ```bash
1658
+ * $ perl -ne 'print "$1\n" if /"(modp\d+)"/' src/node_crypto_groups.h
1659
+ * modp1 # 768 bits
1660
+ * modp2 # 1024 bits
1661
+ * modp5 # 1536 bits
1662
+ * modp14 # 2048 bits
1663
+ * modp15 # etc.
1664
+ * modp16
1665
+ * modp17
1666
+ * modp18
1667
+ * ```
1668
+ * @since v0.7.5
1669
+ */
1670
+ const DiffieHellmanGroup: DiffieHellmanGroupConstructor;
1671
+ interface DiffieHellmanGroupConstructor {
1672
+ new(name: string): DiffieHellmanGroup;
1673
+ (name: string): DiffieHellmanGroup;
1674
+ readonly prototype: DiffieHellmanGroup;
1675
+ }
1676
+ type DiffieHellmanGroup = Omit<DiffieHellman, "setPublicKey" | "setPrivateKey">;
1677
+ /**
1678
+ * Creates a predefined `DiffieHellmanGroup` key exchange object. The
1679
+ * supported groups are listed in the documentation for `DiffieHellmanGroup`.
1680
+ *
1681
+ * The returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing
1682
+ * the keys (with `diffieHellman.setPublicKey()`, for example). The
1683
+ * advantage of using this method is that the parties do not have to
1684
+ * generate nor exchange a group modulus beforehand, saving both processor
1685
+ * and communication time.
1686
+ *
1687
+ * Example (obtaining a shared secret):
1688
+ *
1689
+ * ```js
1690
+ * const {
1691
+ * getDiffieHellman,
1692
+ * } = await import('node:crypto');
1693
+ * const alice = getDiffieHellman('modp14');
1694
+ * const bob = getDiffieHellman('modp14');
1695
+ *
1696
+ * alice.generateKeys();
1697
+ * bob.generateKeys();
1698
+ *
1699
+ * const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex');
1700
+ * const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex');
1701
+ *
1702
+ * // aliceSecret and bobSecret should be the same
1703
+ * console.log(aliceSecret === bobSecret);
1704
+ * ```
1705
+ * @since v0.7.5
1706
+ */
1707
+ function getDiffieHellman(groupName: string): DiffieHellmanGroup;
1708
+ /**
1709
+ * An alias for {@link getDiffieHellman}
1710
+ * @since v0.9.3
1711
+ */
1712
+ function createDiffieHellmanGroup(name: string): DiffieHellmanGroup;
1713
+ /**
1714
+ * Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2)
1715
+ * implementation. A selected HMAC digest algorithm specified by `digest` is
1716
+ * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`.
1717
+ *
1718
+ * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an error occurs while deriving the key, `err` will be set;
1719
+ * otherwise `err` will be `null`. By default, the successfully generated `derivedKey` will be passed to the callback as a `Buffer`. An error will be
1720
+ * thrown if any of the input arguments specify invalid values or types.
1721
+ *
1722
+ * The `iterations` argument must be a number set as high as possible. The
1723
+ * higher the number of iterations, the more secure the derived key will be,
1724
+ * but will take a longer amount of time to complete.
1725
+ *
1726
+ * The `salt` should be as unique as possible. It is recommended that a salt is
1727
+ * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
1728
+ *
1729
+ * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
1730
+ *
1731
+ * ```js
1732
+ * const {
1733
+ * pbkdf2,
1734
+ * } = await import('node:crypto');
1735
+ *
1736
+ * pbkdf2('secret', 'salt', 100000, 64, 'sha512', (err, derivedKey) => {
1737
+ * if (err) throw err;
1738
+ * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae'
1739
+ * });
1740
+ * ```
1741
+ *
1742
+ * An array of supported digest functions can be retrieved using {@link getHashes}.
1743
+ *
1744
+ * This API uses libuv's threadpool, which can have surprising and
1745
+ * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
1746
+ * @since v0.5.5
1747
+ */
1748
+ function pbkdf2(
1749
+ password: BinaryLike,
1750
+ salt: BinaryLike,
1751
+ iterations: number,
1752
+ keylen: number,
1753
+ digest: string,
1754
+ callback: (err: Error | null, derivedKey: Buffer) => void,
1755
+ ): void;
1756
+ /**
1757
+ * Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2)
1758
+ * implementation. A selected HMAC digest algorithm specified by `digest` is
1759
+ * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`.
1760
+ *
1761
+ * If an error occurs an `Error` will be thrown, otherwise the derived key will be
1762
+ * returned as a `Buffer`.
1763
+ *
1764
+ * The `iterations` argument must be a number set as high as possible. The
1765
+ * higher the number of iterations, the more secure the derived key will be,
1766
+ * but will take a longer amount of time to complete.
1767
+ *
1768
+ * The `salt` should be as unique as possible. It is recommended that a salt is
1769
+ * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
1770
+ *
1771
+ * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
1772
+ *
1773
+ * ```js
1774
+ * const {
1775
+ * pbkdf2Sync,
1776
+ * } = await import('node:crypto');
1777
+ *
1778
+ * const key = pbkdf2Sync('secret', 'salt', 100000, 64, 'sha512');
1779
+ * console.log(key.toString('hex')); // '3745e48...08d59ae'
1780
+ * ```
1781
+ *
1782
+ * An array of supported digest functions can be retrieved using {@link getHashes}.
1783
+ * @since v0.9.3
1784
+ */
1785
+ function pbkdf2Sync(
1786
+ password: BinaryLike,
1787
+ salt: BinaryLike,
1788
+ iterations: number,
1789
+ keylen: number,
1790
+ digest: string,
1791
+ ): Buffer;
1792
+ /**
1793
+ * Generates cryptographically strong pseudorandom data. The `size` argument
1794
+ * is a number indicating the number of bytes to generate.
1795
+ *
1796
+ * If a `callback` function is provided, the bytes are generated asynchronously
1797
+ * and the `callback` function is invoked with two arguments: `err` and `buf`.
1798
+ * If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The `buf` argument is a `Buffer` containing the generated bytes.
1799
+ *
1800
+ * ```js
1801
+ * // Asynchronous
1802
+ * const {
1803
+ * randomBytes,
1804
+ * } = await import('node:crypto');
1805
+ *
1806
+ * randomBytes(256, (err, buf) => {
1807
+ * if (err) throw err;
1808
+ * console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`);
1809
+ * });
1810
+ * ```
1811
+ *
1812
+ * If the `callback` function is not provided, the random bytes are generated
1813
+ * synchronously and returned as a `Buffer`. An error will be thrown if
1814
+ * there is a problem generating the bytes.
1815
+ *
1816
+ * ```js
1817
+ * // Synchronous
1818
+ * const {
1819
+ * randomBytes,
1820
+ * } = await import('node:crypto');
1821
+ *
1822
+ * const buf = randomBytes(256);
1823
+ * console.log(
1824
+ * `${buf.length} bytes of random data: ${buf.toString('hex')}`);
1825
+ * ```
1826
+ *
1827
+ * The `crypto.randomBytes()` method will not complete until there is
1828
+ * sufficient entropy available.
1829
+ * This should normally never take longer than a few milliseconds. The only time
1830
+ * when generating the random bytes may conceivably block for a longer period of
1831
+ * time is right after boot, when the whole system is still low on entropy.
1832
+ *
1833
+ * This API uses libuv's threadpool, which can have surprising and
1834
+ * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
1835
+ *
1836
+ * The asynchronous version of `crypto.randomBytes()` is carried out in a single
1837
+ * threadpool request. To minimize threadpool task length variation, partition
1838
+ * large `randomBytes` requests when doing so as part of fulfilling a client
1839
+ * request.
1840
+ * @since v0.5.8
1841
+ * @param size The number of bytes to generate. The `size` must not be larger than `2**31 - 1`.
1842
+ * @return if the `callback` function is not provided.
1843
+ */
1844
+ function randomBytes(size: number): Buffer;
1845
+ function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
1846
+ function pseudoRandomBytes(size: number): Buffer;
1847
+ function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
1848
+ /**
1849
+ * Return a random integer `n` such that `min <= n < max`. This
1850
+ * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias).
1851
+ *
1852
+ * The range (`max - min`) must be less than 2**48. `min` and `max` must
1853
+ * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger).
1854
+ *
1855
+ * If the `callback` function is not provided, the random integer is
1856
+ * generated synchronously.
1857
+ *
1858
+ * ```js
1859
+ * // Asynchronous
1860
+ * const {
1861
+ * randomInt,
1862
+ * } = await import('node:crypto');
1863
+ *
1864
+ * randomInt(3, (err, n) => {
1865
+ * if (err) throw err;
1866
+ * console.log(`Random number chosen from (0, 1, 2): ${n}`);
1867
+ * });
1868
+ * ```
1869
+ *
1870
+ * ```js
1871
+ * // Synchronous
1872
+ * const {
1873
+ * randomInt,
1874
+ * } = await import('node:crypto');
1875
+ *
1876
+ * const n = randomInt(3);
1877
+ * console.log(`Random number chosen from (0, 1, 2): ${n}`);
1878
+ * ```
1879
+ *
1880
+ * ```js
1881
+ * // With `min` argument
1882
+ * const {
1883
+ * randomInt,
1884
+ * } = await import('node:crypto');
1885
+ *
1886
+ * const n = randomInt(1, 7);
1887
+ * console.log(`The dice rolled: ${n}`);
1888
+ * ```
1889
+ * @since v14.10.0, v12.19.0
1890
+ * @param [min=0] Start of random range (inclusive).
1891
+ * @param max End of random range (exclusive).
1892
+ * @param callback `function(err, n) {}`.
1893
+ */
1894
+ function randomInt(max: number): number;
1895
+ function randomInt(min: number, max: number): number;
1896
+ function randomInt(max: number, callback: (err: Error | null, value: number) => void): void;
1897
+ function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void;
1898
+ /**
1899
+ * Synchronous version of {@link randomFill}.
1900
+ *
1901
+ * ```js
1902
+ * import { Buffer } from 'node:buffer';
1903
+ * const { randomFillSync } = await import('node:crypto');
1904
+ *
1905
+ * const buf = Buffer.alloc(10);
1906
+ * console.log(randomFillSync(buf).toString('hex'));
1907
+ *
1908
+ * randomFillSync(buf, 5);
1909
+ * console.log(buf.toString('hex'));
1910
+ *
1911
+ * // The above is equivalent to the following:
1912
+ * randomFillSync(buf, 5, 5);
1913
+ * console.log(buf.toString('hex'));
1914
+ * ```
1915
+ *
1916
+ * Any `ArrayBuffer`, `TypedArray` or `DataView` instance may be passed as`buffer`.
1917
+ *
1918
+ * ```js
1919
+ * import { Buffer } from 'node:buffer';
1920
+ * const { randomFillSync } = await import('node:crypto');
1921
+ *
1922
+ * const a = new Uint32Array(10);
1923
+ * console.log(Buffer.from(randomFillSync(a).buffer,
1924
+ * a.byteOffset, a.byteLength).toString('hex'));
1925
+ *
1926
+ * const b = new DataView(new ArrayBuffer(10));
1927
+ * console.log(Buffer.from(randomFillSync(b).buffer,
1928
+ * b.byteOffset, b.byteLength).toString('hex'));
1929
+ *
1930
+ * const c = new ArrayBuffer(10);
1931
+ * console.log(Buffer.from(randomFillSync(c)).toString('hex'));
1932
+ * ```
1933
+ * @since v7.10.0, v6.13.0
1934
+ * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`.
1935
+ * @param [offset=0]
1936
+ * @param [size=buffer.length - offset]
1937
+ * @return The object passed as `buffer` argument.
1938
+ */
1939
+ function randomFillSync<T extends NodeJS.ArrayBufferView>(buffer: T, offset?: number, size?: number): T;
1940
+ /**
1941
+ * This function is similar to {@link randomBytes} but requires the first
1942
+ * argument to be a `Buffer` that will be filled. It also
1943
+ * requires that a callback is passed in.
1944
+ *
1945
+ * If the `callback` function is not provided, an error will be thrown.
1946
+ *
1947
+ * ```js
1948
+ * import { Buffer } from 'node:buffer';
1949
+ * const { randomFill } = await import('node:crypto');
1950
+ *
1951
+ * const buf = Buffer.alloc(10);
1952
+ * randomFill(buf, (err, buf) => {
1953
+ * if (err) throw err;
1954
+ * console.log(buf.toString('hex'));
1955
+ * });
1956
+ *
1957
+ * randomFill(buf, 5, (err, buf) => {
1958
+ * if (err) throw err;
1959
+ * console.log(buf.toString('hex'));
1960
+ * });
1961
+ *
1962
+ * // The above is equivalent to the following:
1963
+ * randomFill(buf, 5, 5, (err, buf) => {
1964
+ * if (err) throw err;
1965
+ * console.log(buf.toString('hex'));
1966
+ * });
1967
+ * ```
1968
+ *
1969
+ * Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as `buffer`.
1970
+ *
1971
+ * While this includes instances of `Float32Array` and `Float64Array`, this
1972
+ * function should not be used to generate random floating-point numbers. The
1973
+ * result may contain `+Infinity`, `-Infinity`, and `NaN`, and even if the array
1974
+ * contains finite numbers only, they are not drawn from a uniform random
1975
+ * distribution and have no meaningful lower or upper bounds.
1976
+ *
1977
+ * ```js
1978
+ * import { Buffer } from 'node:buffer';
1979
+ * const { randomFill } = await import('node:crypto');
1980
+ *
1981
+ * const a = new Uint32Array(10);
1982
+ * randomFill(a, (err, buf) => {
1983
+ * if (err) throw err;
1984
+ * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)
1985
+ * .toString('hex'));
1986
+ * });
1987
+ *
1988
+ * const b = new DataView(new ArrayBuffer(10));
1989
+ * randomFill(b, (err, buf) => {
1990
+ * if (err) throw err;
1991
+ * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)
1992
+ * .toString('hex'));
1993
+ * });
1994
+ *
1995
+ * const c = new ArrayBuffer(10);
1996
+ * randomFill(c, (err, buf) => {
1997
+ * if (err) throw err;
1998
+ * console.log(Buffer.from(buf).toString('hex'));
1999
+ * });
2000
+ * ```
2001
+ *
2002
+ * This API uses libuv's threadpool, which can have surprising and
2003
+ * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
2004
+ *
2005
+ * The asynchronous version of `crypto.randomFill()` is carried out in a single
2006
+ * threadpool request. To minimize threadpool task length variation, partition
2007
+ * large `randomFill` requests when doing so as part of fulfilling a client
2008
+ * request.
2009
+ * @since v7.10.0, v6.13.0
2010
+ * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`.
2011
+ * @param [offset=0]
2012
+ * @param [size=buffer.length - offset]
2013
+ * @param callback `function(err, buf) {}`.
2014
+ */
2015
+ function randomFill<T extends NodeJS.ArrayBufferView>(
2016
+ buffer: T,
2017
+ callback: (err: Error | null, buf: T) => void,
2018
+ ): void;
2019
+ function randomFill<T extends NodeJS.ArrayBufferView>(
2020
+ buffer: T,
2021
+ offset: number,
2022
+ callback: (err: Error | null, buf: T) => void,
2023
+ ): void;
2024
+ function randomFill<T extends NodeJS.ArrayBufferView>(
2025
+ buffer: T,
2026
+ offset: number,
2027
+ size: number,
2028
+ callback: (err: Error | null, buf: T) => void,
2029
+ ): void;
2030
+ interface ScryptOptions {
2031
+ cost?: number | undefined;
2032
+ blockSize?: number | undefined;
2033
+ parallelization?: number | undefined;
2034
+ N?: number | undefined;
2035
+ r?: number | undefined;
2036
+ p?: number | undefined;
2037
+ maxmem?: number | undefined;
2038
+ }
2039
+ /**
2040
+ * Provides an asynchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based
2041
+ * key derivation function that is designed to be expensive computationally and
2042
+ * memory-wise in order to make brute-force attacks unrewarding.
2043
+ *
2044
+ * The `salt` should be as unique as possible. It is recommended that a salt is
2045
+ * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
2046
+ *
2047
+ * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
2048
+ *
2049
+ * 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
2050
+ * callback as a `Buffer`.
2051
+ *
2052
+ * An exception is thrown when any of the input arguments specify invalid values
2053
+ * or types.
2054
+ *
2055
+ * ```js
2056
+ * const {
2057
+ * scrypt,
2058
+ * } = await import('node:crypto');
2059
+ *
2060
+ * // Using the factory defaults.
2061
+ * scrypt('password', 'salt', 64, (err, derivedKey) => {
2062
+ * if (err) throw err;
2063
+ * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae'
2064
+ * });
2065
+ * // Using a custom N parameter. Must be a power of two.
2066
+ * scrypt('password', 'salt', 64, { N: 1024 }, (err, derivedKey) => {
2067
+ * if (err) throw err;
2068
+ * console.log(derivedKey.toString('hex')); // '3745e48...aa39b34'
2069
+ * });
2070
+ * ```
2071
+ * @since v10.5.0
2072
+ */
2073
+ function scrypt(
2074
+ password: BinaryLike,
2075
+ salt: BinaryLike,
2076
+ keylen: number,
2077
+ callback: (err: Error | null, derivedKey: Buffer) => void,
2078
+ ): void;
2079
+ function scrypt(
2080
+ password: BinaryLike,
2081
+ salt: BinaryLike,
2082
+ keylen: number,
2083
+ options: ScryptOptions,
2084
+ callback: (err: Error | null, derivedKey: Buffer) => void,
2085
+ ): void;
2086
+ /**
2087
+ * Provides a synchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based
2088
+ * key derivation function that is designed to be expensive computationally and
2089
+ * memory-wise in order to make brute-force attacks unrewarding.
2090
+ *
2091
+ * The `salt` should be as unique as possible. It is recommended that a salt is
2092
+ * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
2093
+ *
2094
+ * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
2095
+ *
2096
+ * An exception is thrown when key derivation fails, otherwise the derived key is
2097
+ * returned as a `Buffer`.
2098
+ *
2099
+ * An exception is thrown when any of the input arguments specify invalid values
2100
+ * or types.
2101
+ *
2102
+ * ```js
2103
+ * const {
2104
+ * scryptSync,
2105
+ * } = await import('node:crypto');
2106
+ * // Using the factory defaults.
2107
+ *
2108
+ * const key1 = scryptSync('password', 'salt', 64);
2109
+ * console.log(key1.toString('hex')); // '3745e48...08d59ae'
2110
+ * // Using a custom N parameter. Must be a power of two.
2111
+ * const key2 = scryptSync('password', 'salt', 64, { N: 1024 });
2112
+ * console.log(key2.toString('hex')); // '3745e48...aa39b34'
2113
+ * ```
2114
+ * @since v10.5.0
2115
+ */
2116
+ function scryptSync(password: BinaryLike, salt: BinaryLike, keylen: number, options?: ScryptOptions): Buffer;
2117
+ interface RsaPublicKey {
2118
+ key: KeyLike;
2119
+ padding?: number | undefined;
2120
+ }
2121
+ interface RsaPrivateKey {
2122
+ key: KeyLike;
2123
+ passphrase?: string | undefined;
2124
+ /**
2125
+ * @default 'sha1'
2126
+ */
2127
+ oaepHash?: string | undefined;
2128
+ oaepLabel?: NodeJS.TypedArray | undefined;
2129
+ padding?: number | undefined;
2130
+ }
2131
+ /**
2132
+ * Encrypts the content of `buffer` with `key` and returns a new `Buffer` with encrypted content. The returned data can be decrypted using
2133
+ * the corresponding private key, for example using {@link privateDecrypt}.
2134
+ *
2135
+ * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an
2136
+ * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`.
2137
+ *
2138
+ * Because RSA public keys can be derived from private keys, a private key may
2139
+ * be passed instead of a public key.
2140
+ * @since v0.11.14
2141
+ */
2142
+ function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2143
+ /**
2144
+ * Decrypts `buffer` with `key`.`buffer` was previously encrypted using
2145
+ * the corresponding private key, for example using {@link privateEncrypt}.
2146
+ *
2147
+ * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an
2148
+ * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`.
2149
+ *
2150
+ * Because RSA public keys can be derived from private keys, a private key may
2151
+ * be passed instead of a public key.
2152
+ * @since v1.1.0
2153
+ */
2154
+ function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2155
+ /**
2156
+ * Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using
2157
+ * the corresponding public key, for example using {@link publicEncrypt}.
2158
+ *
2159
+ * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
2160
+ * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`.
2161
+ * @since v0.11.14
2162
+ */
2163
+ function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2164
+ /**
2165
+ * Encrypts `buffer` with `privateKey`. The returned data can be decrypted using
2166
+ * the corresponding public key, for example using {@link publicDecrypt}.
2167
+ *
2168
+ * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
2169
+ * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`.
2170
+ * @since v1.1.0
2171
+ */
2172
+ function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2173
+ /**
2174
+ * ```js
2175
+ * const {
2176
+ * getCiphers,
2177
+ * } = await import('node:crypto');
2178
+ *
2179
+ * console.log(getCiphers()); // ['aes-128-cbc', 'aes-128-ccm', ...]
2180
+ * ```
2181
+ * @since v0.9.3
2182
+ * @return An array with the names of the supported cipher algorithms.
2183
+ */
2184
+ function getCiphers(): string[];
2185
+ /**
2186
+ * ```js
2187
+ * const {
2188
+ * getCurves,
2189
+ * } = await import('node:crypto');
2190
+ *
2191
+ * console.log(getCurves()); // ['Oakley-EC2N-3', 'Oakley-EC2N-4', ...]
2192
+ * ```
2193
+ * @since v2.3.0
2194
+ * @return An array with the names of the supported elliptic curves.
2195
+ */
2196
+ function getCurves(): string[];
2197
+ /**
2198
+ * @since v10.0.0
2199
+ * @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}.
2200
+ */
2201
+ function getFips(): 1 | 0;
2202
+ /**
2203
+ * Enables the FIPS compliant crypto provider in a FIPS-enabled Node.js build.
2204
+ * Throws an error if FIPS mode is not available.
2205
+ * @since v10.0.0
2206
+ * @param bool `true` to enable FIPS mode.
2207
+ */
2208
+ function setFips(bool: boolean): void;
2209
+ /**
2210
+ * ```js
2211
+ * const {
2212
+ * getHashes,
2213
+ * } = await import('node:crypto');
2214
+ *
2215
+ * console.log(getHashes()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...]
2216
+ * ```
2217
+ * @since v0.9.3
2218
+ * @return An array of the names of the supported hash algorithms, such as `'RSA-SHA256'`. Hash algorithms are also called "digest" algorithms.
2219
+ */
2220
+ function getHashes(): string[];
2221
+ /**
2222
+ * The `ECDH` class is a utility for creating Elliptic Curve Diffie-Hellman (ECDH)
2223
+ * key exchanges.
2224
+ *
2225
+ * Instances of the `ECDH` class can be created using the {@link createECDH} function.
2226
+ *
2227
+ * ```js
2228
+ * import assert from 'node:assert';
2229
+ *
2230
+ * const {
2231
+ * createECDH,
2232
+ * } = await import('node:crypto');
2233
+ *
2234
+ * // Generate Alice's keys...
2235
+ * const alice = createECDH('secp521r1');
2236
+ * const aliceKey = alice.generateKeys();
2237
+ *
2238
+ * // Generate Bob's keys...
2239
+ * const bob = createECDH('secp521r1');
2240
+ * const bobKey = bob.generateKeys();
2241
+ *
2242
+ * // Exchange and generate the secret...
2243
+ * const aliceSecret = alice.computeSecret(bobKey);
2244
+ * const bobSecret = bob.computeSecret(aliceKey);
2245
+ *
2246
+ * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex'));
2247
+ * // OK
2248
+ * ```
2249
+ * @since v0.11.14
2250
+ */
2251
+ class ECDH {
2252
+ private constructor();
2253
+ /**
2254
+ * Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the
2255
+ * format specified by `format`. The `format` argument specifies point encoding
2256
+ * and can be `'compressed'`, `'uncompressed'` or `'hybrid'`. The supplied key is
2257
+ * interpreted using the specified `inputEncoding`, and the returned key is encoded
2258
+ * using the specified `outputEncoding`.
2259
+ *
2260
+ * Use {@link getCurves} to obtain a list of available curve names.
2261
+ * On recent OpenSSL releases, `openssl ecparam -list_curves` will also display
2262
+ * the name and description of each available elliptic curve.
2263
+ *
2264
+ * If `format` is not specified the point will be returned in `'uncompressed'` format.
2265
+ *
2266
+ * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
2267
+ *
2268
+ * Example (uncompressing a key):
2269
+ *
2270
+ * ```js
2271
+ * const {
2272
+ * createECDH,
2273
+ * ECDH,
2274
+ * } = await import('node:crypto');
2275
+ *
2276
+ * const ecdh = createECDH('secp256k1');
2277
+ * ecdh.generateKeys();
2278
+ *
2279
+ * const compressedKey = ecdh.getPublicKey('hex', 'compressed');
2280
+ *
2281
+ * const uncompressedKey = ECDH.convertKey(compressedKey,
2282
+ * 'secp256k1',
2283
+ * 'hex',
2284
+ * 'hex',
2285
+ * 'uncompressed');
2286
+ *
2287
+ * // The converted key and the uncompressed public key should be the same
2288
+ * console.log(uncompressedKey === ecdh.getPublicKey('hex'));
2289
+ * ```
2290
+ * @since v10.0.0
2291
+ * @param inputEncoding The `encoding` of the `key` string.
2292
+ * @param outputEncoding The `encoding` of the return value.
2293
+ * @param [format='uncompressed']
2294
+ */
2295
+ static convertKey(
2296
+ key: BinaryLike,
2297
+ curve: string,
2298
+ inputEncoding?: BinaryToTextEncoding,
2299
+ outputEncoding?: "latin1" | "hex" | "base64" | "base64url",
2300
+ format?: "uncompressed" | "compressed" | "hybrid",
2301
+ ): Buffer | string;
2302
+ /**
2303
+ * Generates private and public EC Diffie-Hellman key values, and returns
2304
+ * the public key in the specified `format` and `encoding`. This key should be
2305
+ * transferred to the other party.
2306
+ *
2307
+ * 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.
2308
+ *
2309
+ * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
2310
+ * @since v0.11.14
2311
+ * @param encoding The `encoding` of the return value.
2312
+ * @param [format='uncompressed']
2313
+ */
2314
+ generateKeys(): Buffer;
2315
+ generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
2316
+ /**
2317
+ * Computes the shared secret using `otherPublicKey` as the other
2318
+ * party's public key and returns the computed shared secret. The supplied
2319
+ * key is interpreted using specified `inputEncoding`, and the returned secret
2320
+ * is encoded using the specified `outputEncoding`.
2321
+ * If the `inputEncoding` is not
2322
+ * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
2323
+ *
2324
+ * If `outputEncoding` is given a string will be returned; otherwise a `Buffer` is returned.
2325
+ *
2326
+ * `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey` lies outside of the elliptic curve. Since `otherPublicKey` is
2327
+ * usually supplied from a remote user over an insecure network,
2328
+ * be sure to handle this exception accordingly.
2329
+ * @since v0.11.14
2330
+ * @param inputEncoding The `encoding` of the `otherPublicKey` string.
2331
+ * @param outputEncoding The `encoding` of the return value.
2332
+ */
2333
+ computeSecret(otherPublicKey: NodeJS.ArrayBufferView): Buffer;
2334
+ computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer;
2335
+ computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string;
2336
+ computeSecret(
2337
+ otherPublicKey: string,
2338
+ inputEncoding: BinaryToTextEncoding,
2339
+ outputEncoding: BinaryToTextEncoding,
2340
+ ): string;
2341
+ /**
2342
+ * If `encoding` is specified, a string is returned; otherwise a `Buffer` is
2343
+ * returned.
2344
+ * @since v0.11.14
2345
+ * @param encoding The `encoding` of the return value.
2346
+ * @return The EC Diffie-Hellman in the specified `encoding`.
2347
+ */
2348
+ getPrivateKey(): Buffer;
2349
+ getPrivateKey(encoding: BinaryToTextEncoding): string;
2350
+ /**
2351
+ * 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.
2352
+ *
2353
+ * If `encoding` is specified, a string is returned; otherwise a `Buffer` is
2354
+ * returned.
2355
+ * @since v0.11.14
2356
+ * @param encoding The `encoding` of the return value.
2357
+ * @param [format='uncompressed']
2358
+ * @return The EC Diffie-Hellman public key in the specified `encoding` and `format`.
2359
+ */
2360
+ getPublicKey(encoding?: null, format?: ECDHKeyFormat): Buffer;
2361
+ getPublicKey(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
2362
+ /**
2363
+ * Sets the EC Diffie-Hellman private key.
2364
+ * If `encoding` is provided, `privateKey` is expected
2365
+ * to be a string; otherwise `privateKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
2366
+ *
2367
+ * If `privateKey` is not valid for the curve specified when the `ECDH` object was
2368
+ * created, an error is thrown. Upon setting the private key, the associated
2369
+ * public point (key) is also generated and set in the `ECDH` object.
2370
+ * @since v0.11.14
2371
+ * @param encoding The `encoding` of the `privateKey` string.
2372
+ */
2373
+ setPrivateKey(privateKey: NodeJS.ArrayBufferView): void;
2374
+ setPrivateKey(privateKey: string, encoding: BinaryToTextEncoding): void;
2375
+ }
2376
+ /**
2377
+ * Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a
2378
+ * predefined curve specified by the `curveName` string. Use {@link getCurves} to obtain a list of available curve names. On recent
2379
+ * OpenSSL releases, `openssl ecparam -list_curves` will also display the name
2380
+ * and description of each available elliptic curve.
2381
+ * @since v0.11.14
2382
+ */
2383
+ function createECDH(curveName: string): ECDH;
2384
+ /**
2385
+ * This function compares the underlying bytes that represent the given `ArrayBuffer`, `TypedArray`, or `DataView` instances using a constant-time
2386
+ * algorithm.
2387
+ *
2388
+ * This function does not leak timing information that
2389
+ * would allow an attacker to guess one of the values. This is suitable for
2390
+ * comparing HMAC digests or secret values like authentication cookies or [capability urls](https://www.w3.org/TR/capability-urls/).
2391
+ *
2392
+ * `a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they
2393
+ * must have the same byte length. An error is thrown if `a` and `b` have
2394
+ * different byte lengths.
2395
+ *
2396
+ * If at least one of `a` and `b` is a `TypedArray` with more than one byte per
2397
+ * entry, such as `Uint16Array`, the result will be computed using the platform
2398
+ * byte order.
2399
+ *
2400
+ * **When both of the inputs are `Float32Array`s or `Float64Array`s, this function might return unexpected results due to IEEE 754**
2401
+ * **encoding of floating-point numbers. In particular, neither `x === y` nor `Object.is(x, y)` implies that the byte representations of two floating-point**
2402
+ * **numbers `x` and `y` are equal.**
2403
+ *
2404
+ * Use of `crypto.timingSafeEqual` does not guarantee that the _surrounding_ code
2405
+ * is timing-safe. Care should be taken to ensure that the surrounding code does
2406
+ * not introduce timing vulnerabilities.
2407
+ * @since v6.6.0
2408
+ */
2409
+ function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean;
2410
+ type KeyType = "rsa" | "rsa-pss" | "dsa" | "ec" | "ed25519" | "ed448" | "x25519" | "x448";
2411
+ type KeyFormat = "pem" | "der" | "jwk";
2412
+ interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
2413
+ format: T;
2414
+ cipher?: string | undefined;
2415
+ passphrase?: string | undefined;
2416
+ }
2417
+ interface KeyPairKeyObjectResult {
2418
+ publicKey: KeyObject;
2419
+ privateKey: KeyObject;
2420
+ }
2421
+ interface ED25519KeyPairKeyObjectOptions {}
2422
+ interface ED448KeyPairKeyObjectOptions {}
2423
+ interface X25519KeyPairKeyObjectOptions {}
2424
+ interface X448KeyPairKeyObjectOptions {}
2425
+ interface ECKeyPairKeyObjectOptions {
2426
+ /**
2427
+ * Name of the curve to use
2428
+ */
2429
+ namedCurve: string;
2430
+ /**
2431
+ * Must be `'named'` or `'explicit'`. Default: `'named'`.
2432
+ */
2433
+ paramEncoding?: "explicit" | "named" | undefined;
2434
+ }
2435
+ interface RSAKeyPairKeyObjectOptions {
2436
+ /**
2437
+ * Key size in bits
2438
+ */
2439
+ modulusLength: number;
2440
+ /**
2441
+ * Public exponent
2442
+ * @default 0x10001
2443
+ */
2444
+ publicExponent?: number | undefined;
2445
+ }
2446
+ interface RSAPSSKeyPairKeyObjectOptions {
2447
+ /**
2448
+ * Key size in bits
2449
+ */
2450
+ modulusLength: number;
2451
+ /**
2452
+ * Public exponent
2453
+ * @default 0x10001
2454
+ */
2455
+ publicExponent?: number | undefined;
2456
+ /**
2457
+ * Name of the message digest
2458
+ */
2459
+ hashAlgorithm?: string;
2460
+ /**
2461
+ * Name of the message digest used by MGF1
2462
+ */
2463
+ mgf1HashAlgorithm?: string;
2464
+ /**
2465
+ * Minimal salt length in bytes
2466
+ */
2467
+ saltLength?: string;
2468
+ }
2469
+ interface DSAKeyPairKeyObjectOptions {
2470
+ /**
2471
+ * Key size in bits
2472
+ */
2473
+ modulusLength: number;
2474
+ /**
2475
+ * Size of q in bits
2476
+ */
2477
+ divisorLength: number;
2478
+ }
2479
+ interface RSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2480
+ /**
2481
+ * Key size in bits
2482
+ */
2483
+ modulusLength: number;
2484
+ /**
2485
+ * Public exponent
2486
+ * @default 0x10001
2487
+ */
2488
+ publicExponent?: number | undefined;
2489
+ publicKeyEncoding: {
2490
+ type: "pkcs1" | "spki";
2491
+ format: PubF;
2492
+ };
2493
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2494
+ type: "pkcs1" | "pkcs8";
2495
+ };
2496
+ }
2497
+ interface RSAPSSKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2498
+ /**
2499
+ * Key size in bits
2500
+ */
2501
+ modulusLength: number;
2502
+ /**
2503
+ * Public exponent
2504
+ * @default 0x10001
2505
+ */
2506
+ publicExponent?: number | undefined;
2507
+ /**
2508
+ * Name of the message digest
2509
+ */
2510
+ hashAlgorithm?: string;
2511
+ /**
2512
+ * Name of the message digest used by MGF1
2513
+ */
2514
+ mgf1HashAlgorithm?: string;
2515
+ /**
2516
+ * Minimal salt length in bytes
2517
+ */
2518
+ saltLength?: string;
2519
+ publicKeyEncoding: {
2520
+ type: "spki";
2521
+ format: PubF;
2522
+ };
2523
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2524
+ type: "pkcs8";
2525
+ };
2526
+ }
2527
+ interface DSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2528
+ /**
2529
+ * Key size in bits
2530
+ */
2531
+ modulusLength: number;
2532
+ /**
2533
+ * Size of q in bits
2534
+ */
2535
+ divisorLength: number;
2536
+ publicKeyEncoding: {
2537
+ type: "spki";
2538
+ format: PubF;
2539
+ };
2540
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2541
+ type: "pkcs8";
2542
+ };
2543
+ }
2544
+ interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> extends ECKeyPairKeyObjectOptions {
2545
+ publicKeyEncoding: {
2546
+ type: "pkcs1" | "spki";
2547
+ format: PubF;
2548
+ };
2549
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2550
+ type: "sec1" | "pkcs8";
2551
+ };
2552
+ }
2553
+ interface ED25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2554
+ publicKeyEncoding: {
2555
+ type: "spki";
2556
+ format: PubF;
2557
+ };
2558
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2559
+ type: "pkcs8";
2560
+ };
2561
+ }
2562
+ interface ED448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2563
+ publicKeyEncoding: {
2564
+ type: "spki";
2565
+ format: PubF;
2566
+ };
2567
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2568
+ type: "pkcs8";
2569
+ };
2570
+ }
2571
+ interface X25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2572
+ publicKeyEncoding: {
2573
+ type: "spki";
2574
+ format: PubF;
2575
+ };
2576
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2577
+ type: "pkcs8";
2578
+ };
2579
+ }
2580
+ interface X448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
2581
+ publicKeyEncoding: {
2582
+ type: "spki";
2583
+ format: PubF;
2584
+ };
2585
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
2586
+ type: "pkcs8";
2587
+ };
2588
+ }
2589
+ interface KeyPairSyncResult<T1 extends string | Buffer, T2 extends string | Buffer> {
2590
+ publicKey: T1;
2591
+ privateKey: T2;
2592
+ }
2593
+ /**
2594
+ * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
2595
+ * Ed25519, Ed448, X25519, X448, and DH are currently supported.
2596
+ *
2597
+ * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
2598
+ * behaves as if `keyObject.export()` had been called on its result. Otherwise,
2599
+ * the respective part of the key is returned as a `KeyObject`.
2600
+ *
2601
+ * When encoding public keys, it is recommended to use `'spki'`. When encoding
2602
+ * private keys, it is recommended to use `'pkcs8'` with a strong passphrase,
2603
+ * and to keep the passphrase confidential.
2604
+ *
2605
+ * ```js
2606
+ * const {
2607
+ * generateKeyPairSync,
2608
+ * } = await import('node:crypto');
2609
+ *
2610
+ * const {
2611
+ * publicKey,
2612
+ * privateKey,
2613
+ * } = generateKeyPairSync('rsa', {
2614
+ * modulusLength: 4096,
2615
+ * publicKeyEncoding: {
2616
+ * type: 'spki',
2617
+ * format: 'pem',
2618
+ * },
2619
+ * privateKeyEncoding: {
2620
+ * type: 'pkcs8',
2621
+ * format: 'pem',
2622
+ * cipher: 'aes-256-cbc',
2623
+ * passphrase: 'top secret',
2624
+ * },
2625
+ * });
2626
+ * ```
2627
+ *
2628
+ * The return value `{ publicKey, privateKey }` represents the generated key pair.
2629
+ * When PEM encoding was selected, the respective key will be a string, otherwise
2630
+ * it will be a buffer containing the data encoded as DER.
2631
+ * @since v10.12.0
2632
+ * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
2633
+ */
2634
+ function generateKeyPairSync(
2635
+ type: "rsa",
2636
+ options: RSAKeyPairOptions<"pem", "pem">,
2637
+ ): KeyPairSyncResult<string, string>;
2638
+ function generateKeyPairSync(
2639
+ type: "rsa",
2640
+ options: RSAKeyPairOptions<"pem", "der">,
2641
+ ): KeyPairSyncResult<string, Buffer>;
2642
+ function generateKeyPairSync(
2643
+ type: "rsa",
2644
+ options: RSAKeyPairOptions<"der", "pem">,
2645
+ ): KeyPairSyncResult<Buffer, string>;
2646
+ function generateKeyPairSync(
2647
+ type: "rsa",
2648
+ options: RSAKeyPairOptions<"der", "der">,
2649
+ ): KeyPairSyncResult<Buffer, Buffer>;
2650
+ function generateKeyPairSync(type: "rsa", options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2651
+ function generateKeyPairSync(
2652
+ type: "rsa-pss",
2653
+ options: RSAPSSKeyPairOptions<"pem", "pem">,
2654
+ ): KeyPairSyncResult<string, string>;
2655
+ function generateKeyPairSync(
2656
+ type: "rsa-pss",
2657
+ options: RSAPSSKeyPairOptions<"pem", "der">,
2658
+ ): KeyPairSyncResult<string, Buffer>;
2659
+ function generateKeyPairSync(
2660
+ type: "rsa-pss",
2661
+ options: RSAPSSKeyPairOptions<"der", "pem">,
2662
+ ): KeyPairSyncResult<Buffer, string>;
2663
+ function generateKeyPairSync(
2664
+ type: "rsa-pss",
2665
+ options: RSAPSSKeyPairOptions<"der", "der">,
2666
+ ): KeyPairSyncResult<Buffer, Buffer>;
2667
+ function generateKeyPairSync(type: "rsa-pss", options: RSAPSSKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2668
+ function generateKeyPairSync(
2669
+ type: "dsa",
2670
+ options: DSAKeyPairOptions<"pem", "pem">,
2671
+ ): KeyPairSyncResult<string, string>;
2672
+ function generateKeyPairSync(
2673
+ type: "dsa",
2674
+ options: DSAKeyPairOptions<"pem", "der">,
2675
+ ): KeyPairSyncResult<string, Buffer>;
2676
+ function generateKeyPairSync(
2677
+ type: "dsa",
2678
+ options: DSAKeyPairOptions<"der", "pem">,
2679
+ ): KeyPairSyncResult<Buffer, string>;
2680
+ function generateKeyPairSync(
2681
+ type: "dsa",
2682
+ options: DSAKeyPairOptions<"der", "der">,
2683
+ ): KeyPairSyncResult<Buffer, Buffer>;
2684
+ function generateKeyPairSync(type: "dsa", options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2685
+ function generateKeyPairSync(
2686
+ type: "ec",
2687
+ options: ECKeyPairOptions<"pem", "pem">,
2688
+ ): KeyPairSyncResult<string, string>;
2689
+ function generateKeyPairSync(
2690
+ type: "ec",
2691
+ options: ECKeyPairOptions<"pem", "der">,
2692
+ ): KeyPairSyncResult<string, Buffer>;
2693
+ function generateKeyPairSync(
2694
+ type: "ec",
2695
+ options: ECKeyPairOptions<"der", "pem">,
2696
+ ): KeyPairSyncResult<Buffer, string>;
2697
+ function generateKeyPairSync(
2698
+ type: "ec",
2699
+ options: ECKeyPairOptions<"der", "der">,
2700
+ ): KeyPairSyncResult<Buffer, Buffer>;
2701
+ function generateKeyPairSync(type: "ec", options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2702
+ function generateKeyPairSync(
2703
+ type: "ed25519",
2704
+ options: ED25519KeyPairOptions<"pem", "pem">,
2705
+ ): KeyPairSyncResult<string, string>;
2706
+ function generateKeyPairSync(
2707
+ type: "ed25519",
2708
+ options: ED25519KeyPairOptions<"pem", "der">,
2709
+ ): KeyPairSyncResult<string, Buffer>;
2710
+ function generateKeyPairSync(
2711
+ type: "ed25519",
2712
+ options: ED25519KeyPairOptions<"der", "pem">,
2713
+ ): KeyPairSyncResult<Buffer, string>;
2714
+ function generateKeyPairSync(
2715
+ type: "ed25519",
2716
+ options: ED25519KeyPairOptions<"der", "der">,
2717
+ ): KeyPairSyncResult<Buffer, Buffer>;
2718
+ function generateKeyPairSync(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2719
+ function generateKeyPairSync(
2720
+ type: "ed448",
2721
+ options: ED448KeyPairOptions<"pem", "pem">,
2722
+ ): KeyPairSyncResult<string, string>;
2723
+ function generateKeyPairSync(
2724
+ type: "ed448",
2725
+ options: ED448KeyPairOptions<"pem", "der">,
2726
+ ): KeyPairSyncResult<string, Buffer>;
2727
+ function generateKeyPairSync(
2728
+ type: "ed448",
2729
+ options: ED448KeyPairOptions<"der", "pem">,
2730
+ ): KeyPairSyncResult<Buffer, string>;
2731
+ function generateKeyPairSync(
2732
+ type: "ed448",
2733
+ options: ED448KeyPairOptions<"der", "der">,
2734
+ ): KeyPairSyncResult<Buffer, Buffer>;
2735
+ function generateKeyPairSync(type: "ed448", options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2736
+ function generateKeyPairSync(
2737
+ type: "x25519",
2738
+ options: X25519KeyPairOptions<"pem", "pem">,
2739
+ ): KeyPairSyncResult<string, string>;
2740
+ function generateKeyPairSync(
2741
+ type: "x25519",
2742
+ options: X25519KeyPairOptions<"pem", "der">,
2743
+ ): KeyPairSyncResult<string, Buffer>;
2744
+ function generateKeyPairSync(
2745
+ type: "x25519",
2746
+ options: X25519KeyPairOptions<"der", "pem">,
2747
+ ): KeyPairSyncResult<Buffer, string>;
2748
+ function generateKeyPairSync(
2749
+ type: "x25519",
2750
+ options: X25519KeyPairOptions<"der", "der">,
2751
+ ): KeyPairSyncResult<Buffer, Buffer>;
2752
+ function generateKeyPairSync(type: "x25519", options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2753
+ function generateKeyPairSync(
2754
+ type: "x448",
2755
+ options: X448KeyPairOptions<"pem", "pem">,
2756
+ ): KeyPairSyncResult<string, string>;
2757
+ function generateKeyPairSync(
2758
+ type: "x448",
2759
+ options: X448KeyPairOptions<"pem", "der">,
2760
+ ): KeyPairSyncResult<string, Buffer>;
2761
+ function generateKeyPairSync(
2762
+ type: "x448",
2763
+ options: X448KeyPairOptions<"der", "pem">,
2764
+ ): KeyPairSyncResult<Buffer, string>;
2765
+ function generateKeyPairSync(
2766
+ type: "x448",
2767
+ options: X448KeyPairOptions<"der", "der">,
2768
+ ): KeyPairSyncResult<Buffer, Buffer>;
2769
+ function generateKeyPairSync(type: "x448", options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
2770
+ /**
2771
+ * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
2772
+ * Ed25519, Ed448, X25519, X448, and DH are currently supported.
2773
+ *
2774
+ * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
2775
+ * behaves as if `keyObject.export()` had been called on its result. Otherwise,
2776
+ * the respective part of the key is returned as a `KeyObject`.
2777
+ *
2778
+ * It is recommended to encode public keys as `'spki'` and private keys as `'pkcs8'` with encryption for long-term storage:
2779
+ *
2780
+ * ```js
2781
+ * const {
2782
+ * generateKeyPair,
2783
+ * } = await import('node:crypto');
2784
+ *
2785
+ * generateKeyPair('rsa', {
2786
+ * modulusLength: 4096,
2787
+ * publicKeyEncoding: {
2788
+ * type: 'spki',
2789
+ * format: 'pem',
2790
+ * },
2791
+ * privateKeyEncoding: {
2792
+ * type: 'pkcs8',
2793
+ * format: 'pem',
2794
+ * cipher: 'aes-256-cbc',
2795
+ * passphrase: 'top secret',
2796
+ * },
2797
+ * }, (err, publicKey, privateKey) => {
2798
+ * // Handle errors and use the generated key pair.
2799
+ * });
2800
+ * ```
2801
+ *
2802
+ * On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair.
2803
+ *
2804
+ * If this method is invoked as its `util.promisify()` ed version, it returns
2805
+ * a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
2806
+ * @since v10.12.0
2807
+ * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
2808
+ */
2809
+ function generateKeyPair(
2810
+ type: "rsa",
2811
+ options: RSAKeyPairOptions<"pem", "pem">,
2812
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2813
+ ): void;
2814
+ function generateKeyPair(
2815
+ type: "rsa",
2816
+ options: RSAKeyPairOptions<"pem", "der">,
2817
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2818
+ ): void;
2819
+ function generateKeyPair(
2820
+ type: "rsa",
2821
+ options: RSAKeyPairOptions<"der", "pem">,
2822
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2823
+ ): void;
2824
+ function generateKeyPair(
2825
+ type: "rsa",
2826
+ options: RSAKeyPairOptions<"der", "der">,
2827
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2828
+ ): void;
2829
+ function generateKeyPair(
2830
+ type: "rsa",
2831
+ options: RSAKeyPairKeyObjectOptions,
2832
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2833
+ ): void;
2834
+ function generateKeyPair(
2835
+ type: "rsa-pss",
2836
+ options: RSAPSSKeyPairOptions<"pem", "pem">,
2837
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2838
+ ): void;
2839
+ function generateKeyPair(
2840
+ type: "rsa-pss",
2841
+ options: RSAPSSKeyPairOptions<"pem", "der">,
2842
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2843
+ ): void;
2844
+ function generateKeyPair(
2845
+ type: "rsa-pss",
2846
+ options: RSAPSSKeyPairOptions<"der", "pem">,
2847
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2848
+ ): void;
2849
+ function generateKeyPair(
2850
+ type: "rsa-pss",
2851
+ options: RSAPSSKeyPairOptions<"der", "der">,
2852
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2853
+ ): void;
2854
+ function generateKeyPair(
2855
+ type: "rsa-pss",
2856
+ options: RSAPSSKeyPairKeyObjectOptions,
2857
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2858
+ ): void;
2859
+ function generateKeyPair(
2860
+ type: "dsa",
2861
+ options: DSAKeyPairOptions<"pem", "pem">,
2862
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2863
+ ): void;
2864
+ function generateKeyPair(
2865
+ type: "dsa",
2866
+ options: DSAKeyPairOptions<"pem", "der">,
2867
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2868
+ ): void;
2869
+ function generateKeyPair(
2870
+ type: "dsa",
2871
+ options: DSAKeyPairOptions<"der", "pem">,
2872
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2873
+ ): void;
2874
+ function generateKeyPair(
2875
+ type: "dsa",
2876
+ options: DSAKeyPairOptions<"der", "der">,
2877
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2878
+ ): void;
2879
+ function generateKeyPair(
2880
+ type: "dsa",
2881
+ options: DSAKeyPairKeyObjectOptions,
2882
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2883
+ ): void;
2884
+ function generateKeyPair(
2885
+ type: "ec",
2886
+ options: ECKeyPairOptions<"pem", "pem">,
2887
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2888
+ ): void;
2889
+ function generateKeyPair(
2890
+ type: "ec",
2891
+ options: ECKeyPairOptions<"pem", "der">,
2892
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2893
+ ): void;
2894
+ function generateKeyPair(
2895
+ type: "ec",
2896
+ options: ECKeyPairOptions<"der", "pem">,
2897
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2898
+ ): void;
2899
+ function generateKeyPair(
2900
+ type: "ec",
2901
+ options: ECKeyPairOptions<"der", "der">,
2902
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2903
+ ): void;
2904
+ function generateKeyPair(
2905
+ type: "ec",
2906
+ options: ECKeyPairKeyObjectOptions,
2907
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2908
+ ): void;
2909
+ function generateKeyPair(
2910
+ type: "ed25519",
2911
+ options: ED25519KeyPairOptions<"pem", "pem">,
2912
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2913
+ ): void;
2914
+ function generateKeyPair(
2915
+ type: "ed25519",
2916
+ options: ED25519KeyPairOptions<"pem", "der">,
2917
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2918
+ ): void;
2919
+ function generateKeyPair(
2920
+ type: "ed25519",
2921
+ options: ED25519KeyPairOptions<"der", "pem">,
2922
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2923
+ ): void;
2924
+ function generateKeyPair(
2925
+ type: "ed25519",
2926
+ options: ED25519KeyPairOptions<"der", "der">,
2927
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2928
+ ): void;
2929
+ function generateKeyPair(
2930
+ type: "ed25519",
2931
+ options: ED25519KeyPairKeyObjectOptions | undefined,
2932
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2933
+ ): void;
2934
+ function generateKeyPair(
2935
+ type: "ed448",
2936
+ options: ED448KeyPairOptions<"pem", "pem">,
2937
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2938
+ ): void;
2939
+ function generateKeyPair(
2940
+ type: "ed448",
2941
+ options: ED448KeyPairOptions<"pem", "der">,
2942
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2943
+ ): void;
2944
+ function generateKeyPair(
2945
+ type: "ed448",
2946
+ options: ED448KeyPairOptions<"der", "pem">,
2947
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2948
+ ): void;
2949
+ function generateKeyPair(
2950
+ type: "ed448",
2951
+ options: ED448KeyPairOptions<"der", "der">,
2952
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2953
+ ): void;
2954
+ function generateKeyPair(
2955
+ type: "ed448",
2956
+ options: ED448KeyPairKeyObjectOptions | undefined,
2957
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2958
+ ): void;
2959
+ function generateKeyPair(
2960
+ type: "x25519",
2961
+ options: X25519KeyPairOptions<"pem", "pem">,
2962
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2963
+ ): void;
2964
+ function generateKeyPair(
2965
+ type: "x25519",
2966
+ options: X25519KeyPairOptions<"pem", "der">,
2967
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2968
+ ): void;
2969
+ function generateKeyPair(
2970
+ type: "x25519",
2971
+ options: X25519KeyPairOptions<"der", "pem">,
2972
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2973
+ ): void;
2974
+ function generateKeyPair(
2975
+ type: "x25519",
2976
+ options: X25519KeyPairOptions<"der", "der">,
2977
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
2978
+ ): void;
2979
+ function generateKeyPair(
2980
+ type: "x25519",
2981
+ options: X25519KeyPairKeyObjectOptions | undefined,
2982
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
2983
+ ): void;
2984
+ function generateKeyPair(
2985
+ type: "x448",
2986
+ options: X448KeyPairOptions<"pem", "pem">,
2987
+ callback: (err: Error | null, publicKey: string, privateKey: string) => void,
2988
+ ): void;
2989
+ function generateKeyPair(
2990
+ type: "x448",
2991
+ options: X448KeyPairOptions<"pem", "der">,
2992
+ callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
2993
+ ): void;
2994
+ function generateKeyPair(
2995
+ type: "x448",
2996
+ options: X448KeyPairOptions<"der", "pem">,
2997
+ callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
2998
+ ): void;
2999
+ function generateKeyPair(
3000
+ type: "x448",
3001
+ options: X448KeyPairOptions<"der", "der">,
3002
+ callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
3003
+ ): void;
3004
+ function generateKeyPair(
3005
+ type: "x448",
3006
+ options: X448KeyPairKeyObjectOptions | undefined,
3007
+ callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
3008
+ ): void;
3009
+ namespace generateKeyPair {
3010
+ function __promisify__(
3011
+ type: "rsa",
3012
+ options: RSAKeyPairOptions<"pem", "pem">,
3013
+ ): Promise<{
3014
+ publicKey: string;
3015
+ privateKey: string;
3016
+ }>;
3017
+ function __promisify__(
3018
+ type: "rsa",
3019
+ options: RSAKeyPairOptions<"pem", "der">,
3020
+ ): Promise<{
3021
+ publicKey: string;
3022
+ privateKey: Buffer;
3023
+ }>;
3024
+ function __promisify__(
3025
+ type: "rsa",
3026
+ options: RSAKeyPairOptions<"der", "pem">,
3027
+ ): Promise<{
3028
+ publicKey: Buffer;
3029
+ privateKey: string;
3030
+ }>;
3031
+ function __promisify__(
3032
+ type: "rsa",
3033
+ options: RSAKeyPairOptions<"der", "der">,
3034
+ ): Promise<{
3035
+ publicKey: Buffer;
3036
+ privateKey: Buffer;
3037
+ }>;
3038
+ function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
3039
+ function __promisify__(
3040
+ type: "rsa-pss",
3041
+ options: RSAPSSKeyPairOptions<"pem", "pem">,
3042
+ ): Promise<{
3043
+ publicKey: string;
3044
+ privateKey: string;
3045
+ }>;
3046
+ function __promisify__(
3047
+ type: "rsa-pss",
3048
+ options: RSAPSSKeyPairOptions<"pem", "der">,
3049
+ ): Promise<{
3050
+ publicKey: string;
3051
+ privateKey: Buffer;
3052
+ }>;
3053
+ function __promisify__(
3054
+ type: "rsa-pss",
3055
+ options: RSAPSSKeyPairOptions<"der", "pem">,
3056
+ ): Promise<{
3057
+ publicKey: Buffer;
3058
+ privateKey: string;
3059
+ }>;
3060
+ function __promisify__(
3061
+ type: "rsa-pss",
3062
+ options: RSAPSSKeyPairOptions<"der", "der">,
3063
+ ): Promise<{
3064
+ publicKey: Buffer;
3065
+ privateKey: Buffer;
3066
+ }>;
3067
+ function __promisify__(
3068
+ type: "rsa-pss",
3069
+ options: RSAPSSKeyPairKeyObjectOptions,
3070
+ ): Promise<KeyPairKeyObjectResult>;
3071
+ function __promisify__(
3072
+ type: "dsa",
3073
+ options: DSAKeyPairOptions<"pem", "pem">,
3074
+ ): Promise<{
3075
+ publicKey: string;
3076
+ privateKey: string;
3077
+ }>;
3078
+ function __promisify__(
3079
+ type: "dsa",
3080
+ options: DSAKeyPairOptions<"pem", "der">,
3081
+ ): Promise<{
3082
+ publicKey: string;
3083
+ privateKey: Buffer;
3084
+ }>;
3085
+ function __promisify__(
3086
+ type: "dsa",
3087
+ options: DSAKeyPairOptions<"der", "pem">,
3088
+ ): Promise<{
3089
+ publicKey: Buffer;
3090
+ privateKey: string;
3091
+ }>;
3092
+ function __promisify__(
3093
+ type: "dsa",
3094
+ options: DSAKeyPairOptions<"der", "der">,
3095
+ ): Promise<{
3096
+ publicKey: Buffer;
3097
+ privateKey: Buffer;
3098
+ }>;
3099
+ function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
3100
+ function __promisify__(
3101
+ type: "ec",
3102
+ options: ECKeyPairOptions<"pem", "pem">,
3103
+ ): Promise<{
3104
+ publicKey: string;
3105
+ privateKey: string;
3106
+ }>;
3107
+ function __promisify__(
3108
+ type: "ec",
3109
+ options: ECKeyPairOptions<"pem", "der">,
3110
+ ): Promise<{
3111
+ publicKey: string;
3112
+ privateKey: Buffer;
3113
+ }>;
3114
+ function __promisify__(
3115
+ type: "ec",
3116
+ options: ECKeyPairOptions<"der", "pem">,
3117
+ ): Promise<{
3118
+ publicKey: Buffer;
3119
+ privateKey: string;
3120
+ }>;
3121
+ function __promisify__(
3122
+ type: "ec",
3123
+ options: ECKeyPairOptions<"der", "der">,
3124
+ ): Promise<{
3125
+ publicKey: Buffer;
3126
+ privateKey: Buffer;
3127
+ }>;
3128
+ function __promisify__(type: "ec", options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
3129
+ function __promisify__(
3130
+ type: "ed25519",
3131
+ options: ED25519KeyPairOptions<"pem", "pem">,
3132
+ ): Promise<{
3133
+ publicKey: string;
3134
+ privateKey: string;
3135
+ }>;
3136
+ function __promisify__(
3137
+ type: "ed25519",
3138
+ options: ED25519KeyPairOptions<"pem", "der">,
3139
+ ): Promise<{
3140
+ publicKey: string;
3141
+ privateKey: Buffer;
3142
+ }>;
3143
+ function __promisify__(
3144
+ type: "ed25519",
3145
+ options: ED25519KeyPairOptions<"der", "pem">,
3146
+ ): Promise<{
3147
+ publicKey: Buffer;
3148
+ privateKey: string;
3149
+ }>;
3150
+ function __promisify__(
3151
+ type: "ed25519",
3152
+ options: ED25519KeyPairOptions<"der", "der">,
3153
+ ): Promise<{
3154
+ publicKey: Buffer;
3155
+ privateKey: Buffer;
3156
+ }>;
3157
+ function __promisify__(
3158
+ type: "ed25519",
3159
+ options?: ED25519KeyPairKeyObjectOptions,
3160
+ ): Promise<KeyPairKeyObjectResult>;
3161
+ function __promisify__(
3162
+ type: "ed448",
3163
+ options: ED448KeyPairOptions<"pem", "pem">,
3164
+ ): Promise<{
3165
+ publicKey: string;
3166
+ privateKey: string;
3167
+ }>;
3168
+ function __promisify__(
3169
+ type: "ed448",
3170
+ options: ED448KeyPairOptions<"pem", "der">,
3171
+ ): Promise<{
3172
+ publicKey: string;
3173
+ privateKey: Buffer;
3174
+ }>;
3175
+ function __promisify__(
3176
+ type: "ed448",
3177
+ options: ED448KeyPairOptions<"der", "pem">,
3178
+ ): Promise<{
3179
+ publicKey: Buffer;
3180
+ privateKey: string;
3181
+ }>;
3182
+ function __promisify__(
3183
+ type: "ed448",
3184
+ options: ED448KeyPairOptions<"der", "der">,
3185
+ ): Promise<{
3186
+ publicKey: Buffer;
3187
+ privateKey: Buffer;
3188
+ }>;
3189
+ function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
3190
+ function __promisify__(
3191
+ type: "x25519",
3192
+ options: X25519KeyPairOptions<"pem", "pem">,
3193
+ ): Promise<{
3194
+ publicKey: string;
3195
+ privateKey: string;
3196
+ }>;
3197
+ function __promisify__(
3198
+ type: "x25519",
3199
+ options: X25519KeyPairOptions<"pem", "der">,
3200
+ ): Promise<{
3201
+ publicKey: string;
3202
+ privateKey: Buffer;
3203
+ }>;
3204
+ function __promisify__(
3205
+ type: "x25519",
3206
+ options: X25519KeyPairOptions<"der", "pem">,
3207
+ ): Promise<{
3208
+ publicKey: Buffer;
3209
+ privateKey: string;
3210
+ }>;
3211
+ function __promisify__(
3212
+ type: "x25519",
3213
+ options: X25519KeyPairOptions<"der", "der">,
3214
+ ): Promise<{
3215
+ publicKey: Buffer;
3216
+ privateKey: Buffer;
3217
+ }>;
3218
+ function __promisify__(
3219
+ type: "x25519",
3220
+ options?: X25519KeyPairKeyObjectOptions,
3221
+ ): Promise<KeyPairKeyObjectResult>;
3222
+ function __promisify__(
3223
+ type: "x448",
3224
+ options: X448KeyPairOptions<"pem", "pem">,
3225
+ ): Promise<{
3226
+ publicKey: string;
3227
+ privateKey: string;
3228
+ }>;
3229
+ function __promisify__(
3230
+ type: "x448",
3231
+ options: X448KeyPairOptions<"pem", "der">,
3232
+ ): Promise<{
3233
+ publicKey: string;
3234
+ privateKey: Buffer;
3235
+ }>;
3236
+ function __promisify__(
3237
+ type: "x448",
3238
+ options: X448KeyPairOptions<"der", "pem">,
3239
+ ): Promise<{
3240
+ publicKey: Buffer;
3241
+ privateKey: string;
3242
+ }>;
3243
+ function __promisify__(
3244
+ type: "x448",
3245
+ options: X448KeyPairOptions<"der", "der">,
3246
+ ): Promise<{
3247
+ publicKey: Buffer;
3248
+ privateKey: Buffer;
3249
+ }>;
3250
+ function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
3251
+ }
3252
+ /**
3253
+ * Calculates and returns the signature for `data` using the given private key and
3254
+ * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is
3255
+ * dependent upon the key type (especially Ed25519 and Ed448).
3256
+ *
3257
+ * If `key` is not a `KeyObject`, this function behaves as if `key` had been
3258
+ * passed to {@link createPrivateKey}. If it is an object, the following
3259
+ * additional properties can be passed:
3260
+ *
3261
+ * If the `callback` function is provided this function uses libuv's threadpool.
3262
+ * @since v12.0.0
3263
+ */
3264
+ function sign(
3265
+ algorithm: string | null | undefined,
3266
+ data: NodeJS.ArrayBufferView,
3267
+ key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
3268
+ ): Buffer;
3269
+ function sign(
3270
+ algorithm: string | null | undefined,
3271
+ data: NodeJS.ArrayBufferView,
3272
+ key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
3273
+ callback: (error: Error | null, data: Buffer) => void,
3274
+ ): void;
3275
+ /**
3276
+ * 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
3277
+ * key type (especially Ed25519 and Ed448).
3278
+ *
3279
+ * If `key` is not a `KeyObject`, this function behaves as if `key` had been
3280
+ * passed to {@link createPublicKey}. If it is an object, the following
3281
+ * additional properties can be passed:
3282
+ *
3283
+ * The `signature` argument is the previously calculated signature for the `data`.
3284
+ *
3285
+ * Because public keys can be derived from private keys, a private key or a public
3286
+ * key may be passed for `key`.
3287
+ *
3288
+ * If the `callback` function is provided this function uses libuv's threadpool.
3289
+ * @since v12.0.0
3290
+ */
3291
+ function verify(
3292
+ algorithm: string | null | undefined,
3293
+ data: NodeJS.ArrayBufferView,
3294
+ key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
3295
+ signature: NodeJS.ArrayBufferView,
3296
+ ): boolean;
3297
+ function verify(
3298
+ algorithm: string | null | undefined,
3299
+ data: NodeJS.ArrayBufferView,
3300
+ key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
3301
+ signature: NodeJS.ArrayBufferView,
3302
+ callback: (error: Error | null, result: boolean) => void,
3303
+ ): void;
3304
+ /**
3305
+ * Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`.
3306
+ * 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).
3307
+ * @since v13.9.0, v12.17.0
3308
+ */
3309
+ function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer;
3310
+ /**
3311
+ * A utility for creating one-shot hash digests of data. It can be faster than the object-based `crypto.createHash()` when hashing a smaller amount of data
3312
+ * (<= 5MB) that's readily available. If the data can be big or if it is streamed, it's still recommended to use `crypto.createHash()` instead. The `algorithm`
3313
+ * is dependent on the available algorithms supported by the version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. On recent releases
3314
+ * of OpenSSL, `openssl list -digest-algorithms` will display the available digest algorithms.
3315
+ *
3316
+ * Example:
3317
+ *
3318
+ * ```js
3319
+ * const crypto = require('node:crypto');
3320
+ * const { Buffer } = require('node:buffer');
3321
+ *
3322
+ * // Hashing a string and return the result as a hex-encoded string.
3323
+ * const string = 'Node.js';
3324
+ * // 10b3493287f831e81a438811a1ffba01f8cec4b7
3325
+ * console.log(crypto.hash('sha1', string));
3326
+ *
3327
+ * // Encode a base64-encoded string into a Buffer, hash it and return
3328
+ * // the result as a buffer.
3329
+ * const base64 = 'Tm9kZS5qcw==';
3330
+ * // <Buffer 10 b3 49 32 87 f8 31 e8 1a 43 88 11 a1 ff ba 01 f8 ce c4 b7>
3331
+ * console.log(crypto.hash('sha1', Buffer.from(base64, 'base64'), 'buffer'));
3332
+ * ```
3333
+ * @since v21.7.0, v20.12.0
3334
+ * @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different input encoding is desired for a string input, user
3335
+ * could encode the string into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing the encoded `TypedArray` into this API instead.
3336
+ * @param [outputEncoding='hex'] [Encoding](https://nodejs.org/docs/latest-v22.x/api/buffer.html#buffers-and-character-encodings) used to encode the returned digest.
3337
+ */
3338
+ function hash(algorithm: string, data: BinaryLike, outputEncoding?: BinaryToTextEncoding): string;
3339
+ function hash(algorithm: string, data: BinaryLike, outputEncoding: "buffer"): Buffer;
3340
+ function hash(
3341
+ algorithm: string,
3342
+ data: BinaryLike,
3343
+ outputEncoding?: BinaryToTextEncoding | "buffer",
3344
+ ): string | Buffer;
3345
+ type CipherMode = "cbc" | "ccm" | "cfb" | "ctr" | "ecb" | "gcm" | "ocb" | "ofb" | "stream" | "wrap" | "xts";
3346
+ interface CipherInfoOptions {
3347
+ /**
3348
+ * A test key length.
3349
+ */
3350
+ keyLength?: number | undefined;
3351
+ /**
3352
+ * A test IV length.
3353
+ */
3354
+ ivLength?: number | undefined;
3355
+ }
3356
+ interface CipherInfo {
3357
+ /**
3358
+ * The name of the cipher.
3359
+ */
3360
+ name: string;
3361
+ /**
3362
+ * The nid of the cipher.
3363
+ */
3364
+ nid: number;
3365
+ /**
3366
+ * The block size of the cipher in bytes.
3367
+ * This property is omitted when mode is 'stream'.
3368
+ */
3369
+ blockSize?: number | undefined;
3370
+ /**
3371
+ * The expected or default initialization vector length in bytes.
3372
+ * This property is omitted if the cipher does not use an initialization vector.
3373
+ */
3374
+ ivLength?: number | undefined;
3375
+ /**
3376
+ * The expected or default key length in bytes.
3377
+ */
3378
+ keyLength: number;
3379
+ /**
3380
+ * The cipher mode.
3381
+ */
3382
+ mode: CipherMode;
3383
+ }
3384
+ /**
3385
+ * Returns information about a given cipher.
3386
+ *
3387
+ * Some ciphers accept variable length keys and initialization vectors. By default,
3388
+ * the `crypto.getCipherInfo()` method will return the default values for these
3389
+ * ciphers. To test if a given key length or iv length is acceptable for given
3390
+ * cipher, use the `keyLength` and `ivLength` options. If the given values are
3391
+ * unacceptable, `undefined` will be returned.
3392
+ * @since v15.0.0
3393
+ * @param nameOrNid The name or nid of the cipher to query.
3394
+ */
3395
+ function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined;
3396
+ /**
3397
+ * 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.
3398
+ *
3399
+ * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an errors occurs while deriving the key, `err` will be set;
3400
+ * otherwise `err` will be `null`. The successfully generated `derivedKey` will
3401
+ * be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any
3402
+ * of the input arguments specify invalid values or types.
3403
+ *
3404
+ * ```js
3405
+ * import { Buffer } from 'node:buffer';
3406
+ * const {
3407
+ * hkdf,
3408
+ * } = await import('node:crypto');
3409
+ *
3410
+ * hkdf('sha512', 'key', 'salt', 'info', 64, (err, derivedKey) => {
3411
+ * if (err) throw err;
3412
+ * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653'
3413
+ * });
3414
+ * ```
3415
+ * @since v15.0.0
3416
+ * @param digest The digest algorithm to use.
3417
+ * @param ikm The input keying material. Must be provided but can be zero-length.
3418
+ * @param salt The salt value. Must be provided but can be zero-length.
3419
+ * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes.
3420
+ * @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`
3421
+ * generates 64-byte hashes, making the maximum HKDF output 16320 bytes).
3422
+ */
3423
+ function hkdf(
3424
+ digest: string,
3425
+ irm: BinaryLike | KeyObject,
3426
+ salt: BinaryLike,
3427
+ info: BinaryLike,
3428
+ keylen: number,
3429
+ callback: (err: Error | null, derivedKey: ArrayBuffer) => void,
3430
+ ): void;
3431
+ /**
3432
+ * Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The
3433
+ * given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
3434
+ *
3435
+ * The successfully generated `derivedKey` will be returned as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer).
3436
+ *
3437
+ * An error will be thrown if any of the input arguments specify invalid values or
3438
+ * types, or if the derived key cannot be generated.
3439
+ *
3440
+ * ```js
3441
+ * import { Buffer } from 'node:buffer';
3442
+ * const {
3443
+ * hkdfSync,
3444
+ * } = await import('node:crypto');
3445
+ *
3446
+ * const derivedKey = hkdfSync('sha512', 'key', 'salt', 'info', 64);
3447
+ * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653'
3448
+ * ```
3449
+ * @since v15.0.0
3450
+ * @param digest The digest algorithm to use.
3451
+ * @param ikm The input keying material. Must be provided but can be zero-length.
3452
+ * @param salt The salt value. Must be provided but can be zero-length.
3453
+ * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes.
3454
+ * @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`
3455
+ * generates 64-byte hashes, making the maximum HKDF output 16320 bytes).
3456
+ */
3457
+ function hkdfSync(
3458
+ digest: string,
3459
+ ikm: BinaryLike | KeyObject,
3460
+ salt: BinaryLike,
3461
+ info: BinaryLike,
3462
+ keylen: number,
3463
+ ): ArrayBuffer;
3464
+ interface SecureHeapUsage {
3465
+ /**
3466
+ * The total allocated secure heap size as specified using the `--secure-heap=n` command-line flag.
3467
+ */
3468
+ total: number;
3469
+ /**
3470
+ * The minimum allocation from the secure heap as specified using the `--secure-heap-min` command-line flag.
3471
+ */
3472
+ min: number;
3473
+ /**
3474
+ * The total number of bytes currently allocated from the secure heap.
3475
+ */
3476
+ used: number;
3477
+ /**
3478
+ * The calculated ratio of `used` to `total` allocated bytes.
3479
+ */
3480
+ utilization: number;
3481
+ }
3482
+ /**
3483
+ * @since v15.6.0
3484
+ */
3485
+ function secureHeapUsed(): SecureHeapUsage;
3486
+ interface RandomUUIDOptions {
3487
+ /**
3488
+ * By default, to improve performance,
3489
+ * Node.js will pre-emptively generate and persistently cache enough
3490
+ * random data to generate up to 128 random UUIDs. To generate a UUID
3491
+ * without using the cache, set `disableEntropyCache` to `true`.
3492
+ *
3493
+ * @default `false`
3494
+ */
3495
+ disableEntropyCache?: boolean | undefined;
3496
+ }
3497
+ type UUID = `${string}-${string}-${string}-${string}-${string}`;
3498
+ /**
3499
+ * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
3500
+ * cryptographic pseudorandom number generator.
3501
+ * @since v15.6.0, v14.17.0
3502
+ */
3503
+ function randomUUID(options?: RandomUUIDOptions): UUID;
3504
+ interface X509CheckOptions {
3505
+ /**
3506
+ * @default 'always'
3507
+ */
3508
+ subject?: "always" | "default" | "never";
3509
+ /**
3510
+ * @default true
3511
+ */
3512
+ wildcards?: boolean;
3513
+ /**
3514
+ * @default true
3515
+ */
3516
+ partialWildcards?: boolean;
3517
+ /**
3518
+ * @default false
3519
+ */
3520
+ multiLabelWildcards?: boolean;
3521
+ /**
3522
+ * @default false
3523
+ */
3524
+ singleLabelSubdomains?: boolean;
3525
+ }
3526
+ /**
3527
+ * Encapsulates an X509 certificate and provides read-only access to
3528
+ * its information.
3529
+ *
3530
+ * ```js
3531
+ * const { X509Certificate } = await import('node:crypto');
3532
+ *
3533
+ * const x509 = new X509Certificate('{... pem encoded cert ...}');
3534
+ *
3535
+ * console.log(x509.subject);
3536
+ * ```
3537
+ * @since v15.6.0
3538
+ */
3539
+ class X509Certificate {
3540
+ /**
3541
+ * Will be \`true\` if this is a Certificate Authority (CA) certificate.
3542
+ * @since v15.6.0
3543
+ */
3544
+ readonly ca: boolean;
3545
+ /**
3546
+ * The SHA-1 fingerprint of this certificate.
3547
+ *
3548
+ * Because SHA-1 is cryptographically broken and because the security of SHA-1 is
3549
+ * significantly worse than that of algorithms that are commonly used to sign
3550
+ * certificates, consider using `x509.fingerprint256` instead.
3551
+ * @since v15.6.0
3552
+ */
3553
+ readonly fingerprint: string;
3554
+ /**
3555
+ * The SHA-256 fingerprint of this certificate.
3556
+ * @since v15.6.0
3557
+ */
3558
+ readonly fingerprint256: string;
3559
+ /**
3560
+ * The SHA-512 fingerprint of this certificate.
3561
+ *
3562
+ * Because computing the SHA-256 fingerprint is usually faster and because it is
3563
+ * only half the size of the SHA-512 fingerprint, `x509.fingerprint256` may be
3564
+ * a better choice. While SHA-512 presumably provides a higher level of security in
3565
+ * general, the security of SHA-256 matches that of most algorithms that are
3566
+ * commonly used to sign certificates.
3567
+ * @since v17.2.0, v16.14.0
3568
+ */
3569
+ readonly fingerprint512: string;
3570
+ /**
3571
+ * The complete subject of this certificate.
3572
+ * @since v15.6.0
3573
+ */
3574
+ readonly subject: string;
3575
+ /**
3576
+ * The subject alternative name specified for this certificate.
3577
+ *
3578
+ * This is a comma-separated list of subject alternative names. Each entry begins
3579
+ * with a string identifying the kind of the subject alternative name followed by
3580
+ * a colon and the value associated with the entry.
3581
+ *
3582
+ * Earlier versions of Node.js incorrectly assumed that it is safe to split this
3583
+ * property at the two-character sequence `', '` (see [CVE-2021-44532](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44532)). However,
3584
+ * both malicious and legitimate certificates can contain subject alternative names
3585
+ * that include this sequence when represented as a string.
3586
+ *
3587
+ * After the prefix denoting the type of the entry, the remainder of each entry
3588
+ * might be enclosed in quotes to indicate that the value is a JSON string literal.
3589
+ * For backward compatibility, Node.js only uses JSON string literals within this
3590
+ * property when necessary to avoid ambiguity. Third-party code should be prepared
3591
+ * to handle both possible entry formats.
3592
+ * @since v15.6.0
3593
+ */
3594
+ readonly subjectAltName: string | undefined;
3595
+ /**
3596
+ * A textual representation of the certificate's authority information access
3597
+ * extension.
3598
+ *
3599
+ * This is a line feed separated list of access descriptions. Each line begins with
3600
+ * the access method and the kind of the access location, followed by a colon and
3601
+ * the value associated with the access location.
3602
+ *
3603
+ * After the prefix denoting the access method and the kind of the access location,
3604
+ * the remainder of each line might be enclosed in quotes to indicate that the
3605
+ * value is a JSON string literal. For backward compatibility, Node.js only uses
3606
+ * JSON string literals within this property when necessary to avoid ambiguity.
3607
+ * Third-party code should be prepared to handle both possible entry formats.
3608
+ * @since v15.6.0
3609
+ */
3610
+ readonly infoAccess: string | undefined;
3611
+ /**
3612
+ * An array detailing the key usages for this certificate.
3613
+ * @since v15.6.0
3614
+ */
3615
+ readonly keyUsage: string[];
3616
+ /**
3617
+ * The issuer identification included in this certificate.
3618
+ * @since v15.6.0
3619
+ */
3620
+ readonly issuer: string;
3621
+ /**
3622
+ * The issuer certificate or `undefined` if the issuer certificate is not
3623
+ * available.
3624
+ * @since v15.9.0
3625
+ */
3626
+ readonly issuerCertificate?: X509Certificate | undefined;
3627
+ /**
3628
+ * The public key `KeyObject` for this certificate.
3629
+ * @since v15.6.0
3630
+ */
3631
+ readonly publicKey: KeyObject;
3632
+ /**
3633
+ * A `Buffer` containing the DER encoding of this certificate.
3634
+ * @since v15.6.0
3635
+ */
3636
+ readonly raw: Buffer;
3637
+ /**
3638
+ * The serial number of this certificate.
3639
+ *
3640
+ * Serial numbers are assigned by certificate authorities and do not uniquely
3641
+ * identify certificates. Consider using `x509.fingerprint256` as a unique
3642
+ * identifier instead.
3643
+ * @since v15.6.0
3644
+ */
3645
+ readonly serialNumber: string;
3646
+ /**
3647
+ * The date/time from which this certificate is considered valid.
3648
+ * @since v15.6.0
3649
+ */
3650
+ readonly validFrom: string;
3651
+ /**
3652
+ * The date/time until which this certificate is considered valid.
3653
+ * @since v15.6.0
3654
+ */
3655
+ readonly validTo: string;
3656
+ constructor(buffer: BinaryLike);
3657
+ /**
3658
+ * Checks whether the certificate matches the given email address.
3659
+ *
3660
+ * If the `'subject'` option is undefined or set to `'default'`, the certificate
3661
+ * subject is only considered if the subject alternative name extension either does
3662
+ * not exist or does not contain any email addresses.
3663
+ *
3664
+ * If the `'subject'` option is set to `'always'` and if the subject alternative
3665
+ * name extension either does not exist or does not contain a matching email
3666
+ * address, the certificate subject is considered.
3667
+ *
3668
+ * If the `'subject'` option is set to `'never'`, the certificate subject is never
3669
+ * considered, even if the certificate contains no subject alternative names.
3670
+ * @since v15.6.0
3671
+ * @return Returns `email` if the certificate matches, `undefined` if it does not.
3672
+ */
3673
+ checkEmail(email: string, options?: Pick<X509CheckOptions, "subject">): string | undefined;
3674
+ /**
3675
+ * Checks whether the certificate matches the given host name.
3676
+ *
3677
+ * If the certificate matches the given host name, the matching subject name is
3678
+ * returned. The returned name might be an exact match (e.g., `foo.example.com`)
3679
+ * or it might contain wildcards (e.g., `*.example.com`). Because host name
3680
+ * comparisons are case-insensitive, the returned subject name might also differ
3681
+ * from the given `name` in capitalization.
3682
+ *
3683
+ * If the `'subject'` option is undefined or set to `'default'`, the certificate
3684
+ * subject is only considered if the subject alternative name extension either does
3685
+ * not exist or does not contain any DNS names. This behavior is consistent with [RFC 2818](https://www.rfc-editor.org/rfc/rfc2818.txt) ("HTTP Over TLS").
3686
+ *
3687
+ * If the `'subject'` option is set to `'always'` and if the subject alternative
3688
+ * name extension either does not exist or does not contain a matching DNS name,
3689
+ * the certificate subject is considered.
3690
+ *
3691
+ * If the `'subject'` option is set to `'never'`, the certificate subject is never
3692
+ * considered, even if the certificate contains no subject alternative names.
3693
+ * @since v15.6.0
3694
+ * @return Returns a subject name that matches `name`, or `undefined` if no subject name matches `name`.
3695
+ */
3696
+ checkHost(name: string, options?: X509CheckOptions): string | undefined;
3697
+ /**
3698
+ * Checks whether the certificate matches the given IP address (IPv4 or IPv6).
3699
+ *
3700
+ * Only [RFC 5280](https://www.rfc-editor.org/rfc/rfc5280.txt) `iPAddress` subject alternative names are considered, and they
3701
+ * must match the given `ip` address exactly. Other subject alternative names as
3702
+ * well as the subject field of the certificate are ignored.
3703
+ * @since v15.6.0
3704
+ * @return Returns `ip` if the certificate matches, `undefined` if it does not.
3705
+ */
3706
+ checkIP(ip: string): string | undefined;
3707
+ /**
3708
+ * Checks whether this certificate was issued by the given `otherCert`.
3709
+ * @since v15.6.0
3710
+ */
3711
+ checkIssued(otherCert: X509Certificate): boolean;
3712
+ /**
3713
+ * Checks whether the public key for this certificate is consistent with
3714
+ * the given private key.
3715
+ * @since v15.6.0
3716
+ * @param privateKey A private key.
3717
+ */
3718
+ checkPrivateKey(privateKey: KeyObject): boolean;
3719
+ /**
3720
+ * There is no standard JSON encoding for X509 certificates. The`toJSON()` method returns a string containing the PEM encoded
3721
+ * certificate.
3722
+ * @since v15.6.0
3723
+ */
3724
+ toJSON(): string;
3725
+ /**
3726
+ * Returns information about this certificate using the legacy `certificate object` encoding.
3727
+ * @since v15.6.0
3728
+ */
3729
+ toLegacyObject(): PeerCertificate;
3730
+ /**
3731
+ * Returns the PEM-encoded certificate.
3732
+ * @since v15.6.0
3733
+ */
3734
+ toString(): string;
3735
+ /**
3736
+ * Verifies that this certificate was signed by the given public key.
3737
+ * Does not perform any other validation checks on the certificate.
3738
+ * @since v15.6.0
3739
+ * @param publicKey A public key.
3740
+ */
3741
+ verify(publicKey: KeyObject): boolean;
3742
+ }
3743
+ type LargeNumberLike = NodeJS.ArrayBufferView | SharedArrayBuffer | ArrayBuffer | bigint;
3744
+ interface GeneratePrimeOptions {
3745
+ add?: LargeNumberLike | undefined;
3746
+ rem?: LargeNumberLike | undefined;
3747
+ /**
3748
+ * @default false
3749
+ */
3750
+ safe?: boolean | undefined;
3751
+ bigint?: boolean | undefined;
3752
+ }
3753
+ interface GeneratePrimeOptionsBigInt extends GeneratePrimeOptions {
3754
+ bigint: true;
3755
+ }
3756
+ interface GeneratePrimeOptionsArrayBuffer extends GeneratePrimeOptions {
3757
+ bigint?: false | undefined;
3758
+ }
3759
+ /**
3760
+ * Generates a pseudorandom prime of `size` bits.
3761
+ *
3762
+ * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime.
3763
+ *
3764
+ * The `options.add` and `options.rem` parameters can be used to enforce additional
3765
+ * requirements, e.g., for Diffie-Hellman:
3766
+ *
3767
+ * * If `options.add` and `options.rem` are both set, the prime will satisfy the
3768
+ * condition that `prime % add = rem`.
3769
+ * * If only `options.add` is set and `options.safe` is not `true`, the prime will
3770
+ * satisfy the condition that `prime % add = 1`.
3771
+ * * If only `options.add` is set and `options.safe` is set to `true`, the prime
3772
+ * will instead satisfy the condition that `prime % add = 3`. This is necessary
3773
+ * because `prime % add = 1` for `options.add > 2` would contradict the condition
3774
+ * enforced by `options.safe`.
3775
+ * * `options.rem` is ignored if `options.add` is not given.
3776
+ *
3777
+ * Both `options.add` and `options.rem` must be encoded as big-endian sequences
3778
+ * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`.
3779
+ *
3780
+ * By default, the prime is encoded as a big-endian sequence of octets
3781
+ * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
3782
+ * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided.
3783
+ * @since v15.8.0
3784
+ * @param size The size (in bits) of the prime to generate.
3785
+ */
3786
+ function generatePrime(size: number, callback: (err: Error | null, prime: ArrayBuffer) => void): void;
3787
+ function generatePrime(
3788
+ size: number,
3789
+ options: GeneratePrimeOptionsBigInt,
3790
+ callback: (err: Error | null, prime: bigint) => void,
3791
+ ): void;
3792
+ function generatePrime(
3793
+ size: number,
3794
+ options: GeneratePrimeOptionsArrayBuffer,
3795
+ callback: (err: Error | null, prime: ArrayBuffer) => void,
3796
+ ): void;
3797
+ function generatePrime(
3798
+ size: number,
3799
+ options: GeneratePrimeOptions,
3800
+ callback: (err: Error | null, prime: ArrayBuffer | bigint) => void,
3801
+ ): void;
3802
+ /**
3803
+ * Generates a pseudorandom prime of `size` bits.
3804
+ *
3805
+ * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime.
3806
+ *
3807
+ * The `options.add` and `options.rem` parameters can be used to enforce additional
3808
+ * requirements, e.g., for Diffie-Hellman:
3809
+ *
3810
+ * * If `options.add` and `options.rem` are both set, the prime will satisfy the
3811
+ * condition that `prime % add = rem`.
3812
+ * * If only `options.add` is set and `options.safe` is not `true`, the prime will
3813
+ * satisfy the condition that `prime % add = 1`.
3814
+ * * If only `options.add` is set and `options.safe` is set to `true`, the prime
3815
+ * will instead satisfy the condition that `prime % add = 3`. This is necessary
3816
+ * because `prime % add = 1` for `options.add > 2` would contradict the condition
3817
+ * enforced by `options.safe`.
3818
+ * * `options.rem` is ignored if `options.add` is not given.
3819
+ *
3820
+ * Both `options.add` and `options.rem` must be encoded as big-endian sequences
3821
+ * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`.
3822
+ *
3823
+ * By default, the prime is encoded as a big-endian sequence of octets
3824
+ * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
3825
+ * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided.
3826
+ * @since v15.8.0
3827
+ * @param size The size (in bits) of the prime to generate.
3828
+ */
3829
+ function generatePrimeSync(size: number): ArrayBuffer;
3830
+ function generatePrimeSync(size: number, options: GeneratePrimeOptionsBigInt): bigint;
3831
+ function generatePrimeSync(size: number, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer;
3832
+ function generatePrimeSync(size: number, options: GeneratePrimeOptions): ArrayBuffer | bigint;
3833
+ interface CheckPrimeOptions {
3834
+ /**
3835
+ * The number of Miller-Rabin probabilistic primality iterations to perform.
3836
+ * 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.
3837
+ * Care must be used when selecting a number of checks.
3838
+ * Refer to the OpenSSL documentation for the BN_is_prime_ex function nchecks options for more details.
3839
+ *
3840
+ * @default 0
3841
+ */
3842
+ checks?: number | undefined;
3843
+ }
3844
+ /**
3845
+ * Checks the primality of the `candidate`.
3846
+ * @since v15.8.0
3847
+ * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length.
3848
+ */
3849
+ function checkPrime(value: LargeNumberLike, callback: (err: Error | null, result: boolean) => void): void;
3850
+ function checkPrime(
3851
+ value: LargeNumberLike,
3852
+ options: CheckPrimeOptions,
3853
+ callback: (err: Error | null, result: boolean) => void,
3854
+ ): void;
3855
+ /**
3856
+ * Checks the primality of the `candidate`.
3857
+ * @since v15.8.0
3858
+ * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length.
3859
+ * @return `true` if the candidate is a prime with an error probability less than `0.25 ** options.checks`.
3860
+ */
3861
+ function checkPrimeSync(candidate: LargeNumberLike, options?: CheckPrimeOptions): boolean;
3862
+ /**
3863
+ * Load and set the `engine` for some or all OpenSSL functions (selected by flags).
3864
+ *
3865
+ * `engine` could be either an id or a path to the engine's shared library.
3866
+ *
3867
+ * The optional `flags` argument uses `ENGINE_METHOD_ALL` by default. The `flags` is a bit field taking one of or a mix of the following flags (defined in `crypto.constants`):
3868
+ *
3869
+ * * `crypto.constants.ENGINE_METHOD_RSA`
3870
+ * * `crypto.constants.ENGINE_METHOD_DSA`
3871
+ * * `crypto.constants.ENGINE_METHOD_DH`
3872
+ * * `crypto.constants.ENGINE_METHOD_RAND`
3873
+ * * `crypto.constants.ENGINE_METHOD_EC`
3874
+ * * `crypto.constants.ENGINE_METHOD_CIPHERS`
3875
+ * * `crypto.constants.ENGINE_METHOD_DIGESTS`
3876
+ * * `crypto.constants.ENGINE_METHOD_PKEY_METHS`
3877
+ * * `crypto.constants.ENGINE_METHOD_PKEY_ASN1_METHS`
3878
+ * * `crypto.constants.ENGINE_METHOD_ALL`
3879
+ * * `crypto.constants.ENGINE_METHOD_NONE`
3880
+ * @since v0.11.11
3881
+ * @param flags
3882
+ */
3883
+ function setEngine(engine: string, flags?: number): void;
3884
+ /**
3885
+ * A convenient alias for {@link webcrypto.getRandomValues}. This
3886
+ * implementation is not compliant with the Web Crypto spec, to write
3887
+ * web-compatible code use {@link webcrypto.getRandomValues} instead.
3888
+ * @since v17.4.0
3889
+ * @return Returns `typedArray`.
3890
+ */
3891
+ function getRandomValues<T extends webcrypto.BufferSource>(typedArray: T): T;
3892
+ /**
3893
+ * A convenient alias for `crypto.webcrypto.subtle`.
3894
+ * @since v17.4.0
3895
+ */
3896
+ const subtle: webcrypto.SubtleCrypto;
3897
+ /**
3898
+ * An implementation of the Web Crypto API standard.
3899
+ *
3900
+ * See the {@link https://nodejs.org/docs/latest/api/webcrypto.html Web Crypto API documentation} for details.
3901
+ * @since v15.0.0
3902
+ */
3903
+ const webcrypto: webcrypto.Crypto;
3904
+ namespace webcrypto {
3905
+ type BufferSource = ArrayBufferView | ArrayBuffer;
3906
+ type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
3907
+ type KeyType = "private" | "public" | "secret";
3908
+ type KeyUsage =
3909
+ | "decrypt"
3910
+ | "deriveBits"
3911
+ | "deriveKey"
3912
+ | "encrypt"
3913
+ | "sign"
3914
+ | "unwrapKey"
3915
+ | "verify"
3916
+ | "wrapKey";
3917
+ type AlgorithmIdentifier = Algorithm | string;
3918
+ type HashAlgorithmIdentifier = AlgorithmIdentifier;
3919
+ type NamedCurve = string;
3920
+ type BigInteger = Uint8Array;
3921
+ interface AesCbcParams extends Algorithm {
3922
+ iv: BufferSource;
3923
+ }
3924
+ interface AesCtrParams extends Algorithm {
3925
+ counter: BufferSource;
3926
+ length: number;
3927
+ }
3928
+ interface AesDerivedKeyParams extends Algorithm {
3929
+ length: number;
3930
+ }
3931
+ interface AesGcmParams extends Algorithm {
3932
+ additionalData?: BufferSource;
3933
+ iv: BufferSource;
3934
+ tagLength?: number;
3935
+ }
3936
+ interface AesKeyAlgorithm extends KeyAlgorithm {
3937
+ length: number;
3938
+ }
3939
+ interface AesKeyGenParams extends Algorithm {
3940
+ length: number;
3941
+ }
3942
+ interface Algorithm {
3943
+ name: string;
3944
+ }
3945
+ interface EcKeyAlgorithm extends KeyAlgorithm {
3946
+ namedCurve: NamedCurve;
3947
+ }
3948
+ interface EcKeyGenParams extends Algorithm {
3949
+ namedCurve: NamedCurve;
3950
+ }
3951
+ interface EcKeyImportParams extends Algorithm {
3952
+ namedCurve: NamedCurve;
3953
+ }
3954
+ interface EcdhKeyDeriveParams extends Algorithm {
3955
+ public: CryptoKey;
3956
+ }
3957
+ interface EcdsaParams extends Algorithm {
3958
+ hash: HashAlgorithmIdentifier;
3959
+ }
3960
+ interface Ed448Params extends Algorithm {
3961
+ context?: BufferSource;
3962
+ }
3963
+ interface HkdfParams extends Algorithm {
3964
+ hash: HashAlgorithmIdentifier;
3965
+ info: BufferSource;
3966
+ salt: BufferSource;
3967
+ }
3968
+ interface HmacImportParams extends Algorithm {
3969
+ hash: HashAlgorithmIdentifier;
3970
+ length?: number;
3971
+ }
3972
+ interface HmacKeyAlgorithm extends KeyAlgorithm {
3973
+ hash: KeyAlgorithm;
3974
+ length: number;
3975
+ }
3976
+ interface HmacKeyGenParams extends Algorithm {
3977
+ hash: HashAlgorithmIdentifier;
3978
+ length?: number;
3979
+ }
3980
+ interface JsonWebKey {
3981
+ alg?: string;
3982
+ crv?: string;
3983
+ d?: string;
3984
+ dp?: string;
3985
+ dq?: string;
3986
+ e?: string;
3987
+ ext?: boolean;
3988
+ k?: string;
3989
+ key_ops?: string[];
3990
+ kty?: string;
3991
+ n?: string;
3992
+ oth?: RsaOtherPrimesInfo[];
3993
+ p?: string;
3994
+ q?: string;
3995
+ qi?: string;
3996
+ use?: string;
3997
+ x?: string;
3998
+ y?: string;
3999
+ }
4000
+ interface KeyAlgorithm {
4001
+ name: string;
4002
+ }
4003
+ interface Pbkdf2Params extends Algorithm {
4004
+ hash: HashAlgorithmIdentifier;
4005
+ iterations: number;
4006
+ salt: BufferSource;
4007
+ }
4008
+ interface RsaHashedImportParams extends Algorithm {
4009
+ hash: HashAlgorithmIdentifier;
4010
+ }
4011
+ interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
4012
+ hash: KeyAlgorithm;
4013
+ }
4014
+ interface RsaHashedKeyGenParams extends RsaKeyGenParams {
4015
+ hash: HashAlgorithmIdentifier;
4016
+ }
4017
+ interface RsaKeyAlgorithm extends KeyAlgorithm {
4018
+ modulusLength: number;
4019
+ publicExponent: BigInteger;
4020
+ }
4021
+ interface RsaKeyGenParams extends Algorithm {
4022
+ modulusLength: number;
4023
+ publicExponent: BigInteger;
4024
+ }
4025
+ interface RsaOaepParams extends Algorithm {
4026
+ label?: BufferSource;
4027
+ }
4028
+ interface RsaOtherPrimesInfo {
4029
+ d?: string;
4030
+ r?: string;
4031
+ t?: string;
4032
+ }
4033
+ interface RsaPssParams extends Algorithm {
4034
+ saltLength: number;
4035
+ }
4036
+ /**
4037
+ * Calling `require('node:crypto').webcrypto` returns an instance of the `Crypto` class.
4038
+ * `Crypto` is a singleton that provides access to the remainder of the crypto API.
4039
+ * @since v15.0.0
4040
+ */
4041
+ interface Crypto {
4042
+ /**
4043
+ * Provides access to the `SubtleCrypto` API.
4044
+ * @since v15.0.0
4045
+ */
4046
+ readonly subtle: SubtleCrypto;
4047
+ /**
4048
+ * Generates cryptographically strong random values.
4049
+ * The given `typedArray` is filled with random values, and a reference to `typedArray` is returned.
4050
+ *
4051
+ * The given `typedArray` must be an integer-based instance of {@link NodeJS.TypedArray}, i.e. `Float32Array` and `Float64Array` are not accepted.
4052
+ *
4053
+ * An error will be thrown if the given `typedArray` is larger than 65,536 bytes.
4054
+ * @since v15.0.0
4055
+ */
4056
+ getRandomValues<T extends Exclude<NodeJS.TypedArray, Float32Array | Float64Array>>(typedArray: T): T;
4057
+ /**
4058
+ * Generates a random {@link https://www.rfc-editor.org/rfc/rfc4122.txt RFC 4122} version 4 UUID.
4059
+ * The UUID is generated using a cryptographic pseudorandom number generator.
4060
+ * @since v16.7.0
4061
+ */
4062
+ randomUUID(): UUID;
4063
+ CryptoKey: CryptoKeyConstructor;
4064
+ }
4065
+ // This constructor throws ILLEGAL_CONSTRUCTOR so it should not be newable.
4066
+ interface CryptoKeyConstructor {
4067
+ /** Illegal constructor */
4068
+ (_: { readonly _: unique symbol }): never; // Allows instanceof to work but not be callable by the user.
4069
+ readonly length: 0;
4070
+ readonly name: "CryptoKey";
4071
+ readonly prototype: CryptoKey;
4072
+ }
4073
+ /**
4074
+ * @since v15.0.0
4075
+ */
4076
+ interface CryptoKey {
4077
+ /**
4078
+ * An object detailing the algorithm for which the key can be used along with additional algorithm-specific parameters.
4079
+ * @since v15.0.0
4080
+ */
4081
+ readonly algorithm: KeyAlgorithm;
4082
+ /**
4083
+ * When `true`, the {@link CryptoKey} can be extracted using either `subtleCrypto.exportKey()` or `subtleCrypto.wrapKey()`.
4084
+ * @since v15.0.0
4085
+ */
4086
+ readonly extractable: boolean;
4087
+ /**
4088
+ * A string identifying whether the key is a symmetric (`'secret'`) or asymmetric (`'private'` or `'public'`) key.
4089
+ * @since v15.0.0
4090
+ */
4091
+ readonly type: KeyType;
4092
+ /**
4093
+ * An array of strings identifying the operations for which the key may be used.
4094
+ *
4095
+ * The possible usages are:
4096
+ * - `'encrypt'` - The key may be used to encrypt data.
4097
+ * - `'decrypt'` - The key may be used to decrypt data.
4098
+ * - `'sign'` - The key may be used to generate digital signatures.
4099
+ * - `'verify'` - The key may be used to verify digital signatures.
4100
+ * - `'deriveKey'` - The key may be used to derive a new key.
4101
+ * - `'deriveBits'` - The key may be used to derive bits.
4102
+ * - `'wrapKey'` - The key may be used to wrap another key.
4103
+ * - `'unwrapKey'` - The key may be used to unwrap another key.
4104
+ *
4105
+ * Valid key usages depend on the key algorithm (identified by `cryptokey.algorithm.name`).
4106
+ * @since v15.0.0
4107
+ */
4108
+ readonly usages: KeyUsage[];
4109
+ }
4110
+ /**
4111
+ * The `CryptoKeyPair` is a simple dictionary object with `publicKey` and `privateKey` properties, representing an asymmetric key pair.
4112
+ * @since v15.0.0
4113
+ */
4114
+ interface CryptoKeyPair {
4115
+ /**
4116
+ * A {@link CryptoKey} whose type will be `'private'`.
4117
+ * @since v15.0.0
4118
+ */
4119
+ privateKey: CryptoKey;
4120
+ /**
4121
+ * A {@link CryptoKey} whose type will be `'public'`.
4122
+ * @since v15.0.0
4123
+ */
4124
+ publicKey: CryptoKey;
4125
+ }
4126
+ /**
4127
+ * @since v15.0.0
4128
+ */
4129
+ interface SubtleCrypto {
4130
+ /**
4131
+ * Using the method and parameters specified in `algorithm` and the keying material provided by `key`,
4132
+ * `subtle.decrypt()` attempts to decipher the provided `data`. If successful,
4133
+ * the returned promise will be resolved with an `<ArrayBuffer>` containing the plaintext result.
4134
+ *
4135
+ * The algorithms currently supported include:
4136
+ *
4137
+ * - `'RSA-OAEP'`
4138
+ * - `'AES-CTR'`
4139
+ * - `'AES-CBC'`
4140
+ * - `'AES-GCM'`
4141
+ * @since v15.0.0
4142
+ */
4143
+ decrypt(
4144
+ algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
4145
+ key: CryptoKey,
4146
+ data: BufferSource,
4147
+ ): Promise<ArrayBuffer>;
4148
+ /**
4149
+ * Using the method and parameters specified in `algorithm` and the keying material provided by `baseKey`,
4150
+ * `subtle.deriveBits()` attempts to generate `length` bits.
4151
+ * The Node.js implementation requires that when `length` is a number it must be multiple of `8`.
4152
+ * When `length` is `null` the maximum number of bits for a given algorithm is generated. This is allowed
4153
+ * for the `'ECDH'`, `'X25519'`, and `'X448'` algorithms.
4154
+ * If successful, the returned promise will be resolved with an `<ArrayBuffer>` containing the generated data.
4155
+ *
4156
+ * The algorithms currently supported include:
4157
+ *
4158
+ * - `'ECDH'`
4159
+ * - `'X25519'`
4160
+ * - `'X448'`
4161
+ * - `'HKDF'`
4162
+ * - `'PBKDF2'`
4163
+ * @since v15.0.0
4164
+ */
4165
+ deriveBits(algorithm: EcdhKeyDeriveParams, baseKey: CryptoKey, length: number | null): Promise<ArrayBuffer>;
4166
+ deriveBits(
4167
+ algorithm: AlgorithmIdentifier | HkdfParams | Pbkdf2Params,
4168
+ baseKey: CryptoKey,
4169
+ length: number,
4170
+ ): Promise<ArrayBuffer>;
4171
+ /**
4172
+ * Using the method and parameters specified in `algorithm`, and the keying material provided by `baseKey`,
4173
+ * `subtle.deriveKey()` attempts to generate a new <CryptoKey>` based on the method and parameters in `derivedKeyAlgorithm`.
4174
+ *
4175
+ * Calling `subtle.deriveKey()` is equivalent to calling `subtle.deriveBits()` to generate raw keying material,
4176
+ * then passing the result into the `subtle.importKey()` method using the `deriveKeyAlgorithm`, `extractable`, and `keyUsages` parameters as input.
4177
+ *
4178
+ * The algorithms currently supported include:
4179
+ *
4180
+ * - `'ECDH'`
4181
+ * - `'X25519'`
4182
+ * - `'X448'`
4183
+ * - `'HKDF'`
4184
+ * - `'PBKDF2'`
4185
+ * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
4186
+ * @since v15.0.0
4187
+ */
4188
+ deriveKey(
4189
+ algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params,
4190
+ baseKey: CryptoKey,
4191
+ derivedKeyAlgorithm:
4192
+ | AlgorithmIdentifier
4193
+ | AesDerivedKeyParams
4194
+ | HmacImportParams
4195
+ | HkdfParams
4196
+ | Pbkdf2Params,
4197
+ extractable: boolean,
4198
+ keyUsages: readonly KeyUsage[],
4199
+ ): Promise<CryptoKey>;
4200
+ /**
4201
+ * Using the method identified by `algorithm`, `subtle.digest()` attempts to generate a digest of `data`.
4202
+ * If successful, the returned promise is resolved with an `<ArrayBuffer>` containing the computed digest.
4203
+ *
4204
+ * If `algorithm` is provided as a `<string>`, it must be one of:
4205
+ *
4206
+ * - `'SHA-1'`
4207
+ * - `'SHA-256'`
4208
+ * - `'SHA-384'`
4209
+ * - `'SHA-512'`
4210
+ *
4211
+ * If `algorithm` is provided as an `<Object>`, it must have a `name` property whose value is one of the above.
4212
+ * @since v15.0.0
4213
+ */
4214
+ digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
4215
+ /**
4216
+ * Using the method and parameters specified by `algorithm` and the keying material provided by `key`,
4217
+ * `subtle.encrypt()` attempts to encipher `data`. If successful,
4218
+ * the returned promise is resolved with an `<ArrayBuffer>` containing the encrypted result.
4219
+ *
4220
+ * The algorithms currently supported include:
4221
+ *
4222
+ * - `'RSA-OAEP'`
4223
+ * - `'AES-CTR'`
4224
+ * - `'AES-CBC'`
4225
+ * - `'AES-GCM'`
4226
+ * @since v15.0.0
4227
+ */
4228
+ encrypt(
4229
+ algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
4230
+ key: CryptoKey,
4231
+ data: BufferSource,
4232
+ ): Promise<ArrayBuffer>;
4233
+ /**
4234
+ * Exports the given key into the specified format, if supported.
4235
+ *
4236
+ * If the `<CryptoKey>` is not extractable, the returned promise will reject.
4237
+ *
4238
+ * When `format` is either `'pkcs8'` or `'spki'` and the export is successful,
4239
+ * the returned promise will be resolved with an `<ArrayBuffer>` containing the exported key data.
4240
+ *
4241
+ * When `format` is `'jwk'` and the export is successful, the returned promise will be resolved with a
4242
+ * JavaScript object conforming to the {@link https://tools.ietf.org/html/rfc7517 JSON Web Key} specification.
4243
+ * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
4244
+ * @returns `<Promise>` containing `<ArrayBuffer>`.
4245
+ * @since v15.0.0
4246
+ */
4247
+ exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
4248
+ exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
4249
+ /**
4250
+ * Using the method and parameters provided in `algorithm`,
4251
+ * `subtle.generateKey()` attempts to generate new keying material.
4252
+ * Depending the method used, the method may generate either a single `<CryptoKey>` or a `<CryptoKeyPair>`.
4253
+ *
4254
+ * The `<CryptoKeyPair>` (public and private key) generating algorithms supported include:
4255
+ *
4256
+ * - `'RSASSA-PKCS1-v1_5'`
4257
+ * - `'RSA-PSS'`
4258
+ * - `'RSA-OAEP'`
4259
+ * - `'ECDSA'`
4260
+ * - `'Ed25519'`
4261
+ * - `'Ed448'`
4262
+ * - `'ECDH'`
4263
+ * - `'X25519'`
4264
+ * - `'X448'`
4265
+ * The `<CryptoKey>` (secret key) generating algorithms supported include:
4266
+ *
4267
+ * - `'HMAC'`
4268
+ * - `'AES-CTR'`
4269
+ * - `'AES-CBC'`
4270
+ * - `'AES-GCM'`
4271
+ * - `'AES-KW'`
4272
+ * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
4273
+ * @since v15.0.0
4274
+ */
4275
+ generateKey(
4276
+ algorithm: RsaHashedKeyGenParams | EcKeyGenParams,
4277
+ extractable: boolean,
4278
+ keyUsages: readonly KeyUsage[],
4279
+ ): Promise<CryptoKeyPair>;
4280
+ generateKey(
4281
+ algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params,
4282
+ extractable: boolean,
4283
+ keyUsages: readonly KeyUsage[],
4284
+ ): Promise<CryptoKey>;
4285
+ generateKey(
4286
+ algorithm: AlgorithmIdentifier,
4287
+ extractable: boolean,
4288
+ keyUsages: KeyUsage[],
4289
+ ): Promise<CryptoKeyPair | CryptoKey>;
4290
+ /**
4291
+ * The `subtle.importKey()` method attempts to interpret the provided `keyData` as the given `format`
4292
+ * to create a `<CryptoKey>` instance using the provided `algorithm`, `extractable`, and `keyUsages` arguments.
4293
+ * If the import is successful, the returned promise will be resolved with the created `<CryptoKey>`.
4294
+ *
4295
+ * If importing a `'PBKDF2'` key, `extractable` must be `false`.
4296
+ * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
4297
+ * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
4298
+ * @since v15.0.0
4299
+ */
4300
+ importKey(
4301
+ format: "jwk",
4302
+ keyData: JsonWebKey,
4303
+ algorithm:
4304
+ | AlgorithmIdentifier
4305
+ | RsaHashedImportParams
4306
+ | EcKeyImportParams
4307
+ | HmacImportParams
4308
+ | AesKeyAlgorithm,
4309
+ extractable: boolean,
4310
+ keyUsages: readonly KeyUsage[],
4311
+ ): Promise<CryptoKey>;
4312
+ importKey(
4313
+ format: Exclude<KeyFormat, "jwk">,
4314
+ keyData: BufferSource,
4315
+ algorithm:
4316
+ | AlgorithmIdentifier
4317
+ | RsaHashedImportParams
4318
+ | EcKeyImportParams
4319
+ | HmacImportParams
4320
+ | AesKeyAlgorithm,
4321
+ extractable: boolean,
4322
+ keyUsages: KeyUsage[],
4323
+ ): Promise<CryptoKey>;
4324
+ /**
4325
+ * Using the method and parameters given by `algorithm` and the keying material provided by `key`,
4326
+ * `subtle.sign()` attempts to generate a cryptographic signature of `data`. If successful,
4327
+ * the returned promise is resolved with an `<ArrayBuffer>` containing the generated signature.
4328
+ *
4329
+ * The algorithms currently supported include:
4330
+ *
4331
+ * - `'RSASSA-PKCS1-v1_5'`
4332
+ * - `'RSA-PSS'`
4333
+ * - `'ECDSA'`
4334
+ * - `'Ed25519'`
4335
+ * - `'Ed448'`
4336
+ * - `'HMAC'`
4337
+ * @since v15.0.0
4338
+ */
4339
+ sign(
4340
+ algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params,
4341
+ key: CryptoKey,
4342
+ data: BufferSource,
4343
+ ): Promise<ArrayBuffer>;
4344
+ /**
4345
+ * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material.
4346
+ * The `subtle.unwrapKey()` method attempts to decrypt a wrapped key and create a `<CryptoKey>` instance.
4347
+ * It is equivalent to calling `subtle.decrypt()` first on the encrypted key data (using the `wrappedKey`, `unwrapAlgo`, and `unwrappingKey` arguments as input)
4348
+ * then passing the results in to the `subtle.importKey()` method using the `unwrappedKeyAlgo`, `extractable`, and `keyUsages` arguments as inputs.
4349
+ * If successful, the returned promise is resolved with a `<CryptoKey>` object.
4350
+ *
4351
+ * The wrapping algorithms currently supported include:
4352
+ *
4353
+ * - `'RSA-OAEP'`
4354
+ * - `'AES-CTR'`
4355
+ * - `'AES-CBC'`
4356
+ * - `'AES-GCM'`
4357
+ * - `'AES-KW'`
4358
+ *
4359
+ * The unwrapped key algorithms supported include:
4360
+ *
4361
+ * - `'RSASSA-PKCS1-v1_5'`
4362
+ * - `'RSA-PSS'`
4363
+ * - `'RSA-OAEP'`
4364
+ * - `'ECDSA'`
4365
+ * - `'Ed25519'`
4366
+ * - `'Ed448'`
4367
+ * - `'ECDH'`
4368
+ * - `'X25519'`
4369
+ * - `'X448'`
4370
+ * - `'HMAC'`
4371
+ * - `'AES-CTR'`
4372
+ * - `'AES-CBC'`
4373
+ * - `'AES-GCM'`
4374
+ * - `'AES-KW'`
4375
+ * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
4376
+ * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
4377
+ * @since v15.0.0
4378
+ */
4379
+ unwrapKey(
4380
+ format: KeyFormat,
4381
+ wrappedKey: BufferSource,
4382
+ unwrappingKey: CryptoKey,
4383
+ unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
4384
+ unwrappedKeyAlgorithm:
4385
+ | AlgorithmIdentifier
4386
+ | RsaHashedImportParams
4387
+ | EcKeyImportParams
4388
+ | HmacImportParams
4389
+ | AesKeyAlgorithm,
4390
+ extractable: boolean,
4391
+ keyUsages: KeyUsage[],
4392
+ ): Promise<CryptoKey>;
4393
+ /**
4394
+ * Using the method and parameters given in `algorithm` and the keying material provided by `key`,
4395
+ * `subtle.verify()` attempts to verify that `signature` is a valid cryptographic signature of `data`.
4396
+ * The returned promise is resolved with either `true` or `false`.
4397
+ *
4398
+ * The algorithms currently supported include:
4399
+ *
4400
+ * - `'RSASSA-PKCS1-v1_5'`
4401
+ * - `'RSA-PSS'`
4402
+ * - `'ECDSA'`
4403
+ * - `'Ed25519'`
4404
+ * - `'Ed448'`
4405
+ * - `'HMAC'`
4406
+ * @since v15.0.0
4407
+ */
4408
+ verify(
4409
+ algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params,
4410
+ key: CryptoKey,
4411
+ signature: BufferSource,
4412
+ data: BufferSource,
4413
+ ): Promise<boolean>;
4414
+ /**
4415
+ * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material.
4416
+ * The `subtle.wrapKey()` method exports the keying material into the format identified by `format`,
4417
+ * then encrypts it using the method and parameters specified by `wrapAlgo` and the keying material provided by `wrappingKey`.
4418
+ * It is the equivalent to calling `subtle.exportKey()` using `format` and `key` as the arguments,
4419
+ * then passing the result to the `subtle.encrypt()` method using `wrappingKey` and `wrapAlgo` as inputs.
4420
+ * If successful, the returned promise will be resolved with an `<ArrayBuffer>` containing the encrypted key data.
4421
+ *
4422
+ * The wrapping algorithms currently supported include:
4423
+ *
4424
+ * - `'RSA-OAEP'`
4425
+ * - `'AES-CTR'`
4426
+ * - `'AES-CBC'`
4427
+ * - `'AES-GCM'`
4428
+ * - `'AES-KW'`
4429
+ * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
4430
+ * @since v15.0.0
4431
+ */
4432
+ wrapKey(
4433
+ format: KeyFormat,
4434
+ key: CryptoKey,
4435
+ wrappingKey: CryptoKey,
4436
+ wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
4437
+ ): Promise<ArrayBuffer>;
4438
+ }
4439
+ }
4440
+
4441
+ global {
4442
+ var crypto: typeof globalThis extends {
4443
+ crypto: infer T;
4444
+ onmessage: any;
4445
+ } ? T
4446
+ : webcrypto.Crypto;
4447
+ }
4448
+ }
4449
+ declare module "node:crypto" {
4450
+ export * from "crypto";
4451
+ }