@hasna/connectors 1.3.24 → 1.3.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (694) hide show
  1. package/bin/index.js +470 -138
  2. package/bin/mcp.js +2568 -2015
  3. package/bin/serve.js +765 -427
  4. package/connectors/{connect-yousign → connect-cloudflare}/bun.lock +3 -3
  5. package/connectors/connect-gmail/bin/index.js +7027 -0
  6. package/connectors/connect-googledrive/bin/index.js +5958 -0
  7. package/connectors/connect-imessage/bin/.gitkeep +2 -0
  8. package/connectors/connect-imessage/bin/index.js +3016 -0
  9. package/connectors/connect-imessage/bun.lock +32 -0
  10. package/connectors/connect-imessage/package.json +46 -0
  11. package/connectors/connect-imessage/src/api/client.ts +139 -0
  12. package/connectors/connect-imessage/src/api/conversations.ts +49 -0
  13. package/connectors/connect-imessage/src/api/health.ts +16 -0
  14. package/connectors/connect-imessage/src/api/index.ts +62 -0
  15. package/connectors/connect-imessage/src/api/messages.ts +119 -0
  16. package/connectors/connect-imessage/src/cli/index.ts +258 -0
  17. package/connectors/connect-imessage/src/index.ts +26 -0
  18. package/connectors/connect-imessage/src/types/index.ts +134 -0
  19. package/connectors/connect-imessage/src/utils/config.ts +219 -0
  20. package/connectors/connect-imessage/src/utils/output.ts +121 -0
  21. package/connectors/connect-imessage/tsconfig.json +16 -0
  22. package/dashboard/dist/assets/index-ClBXkNbL.css +1 -0
  23. package/dashboard/dist/assets/index-DvfmyAO4.js +284 -0
  24. package/dashboard/dist/index.html +2 -2
  25. package/dist/core/connectors/googledrive.d.ts +6 -0
  26. package/dist/core/connectors/internal-operations.test.d.ts +1 -0
  27. package/dist/core/connectors/internal-runtime.test.d.ts +1 -0
  28. package/dist/core/errors.test.d.ts +1 -0
  29. package/dist/index.d.ts +1 -1
  30. package/dist/index.js +631 -77
  31. package/dist/lib/runner-auth.test.d.ts +1 -0
  32. package/dist/lib/runner.d.ts +31 -0
  33. package/dist/lib/test-endpoints.test.d.ts +1 -0
  34. package/dist/lib/workflow-runner.d.ts +7 -0
  35. package/dist/server/auth-exchange.test.d.ts +1 -0
  36. package/dist/server/auth-refresh.test.d.ts +1 -0
  37. package/dist/server/auth.d.ts +1 -0
  38. package/package.json +1 -1
  39. package/connectors/connect-yousign/node_modules/@types/bun/LICENSE +0 -21
  40. package/connectors/connect-yousign/node_modules/@types/bun/README.md +0 -20
  41. package/connectors/connect-yousign/node_modules/@types/bun/index.d.ts +0 -1
  42. package/connectors/connect-yousign/node_modules/@types/bun/package.json +0 -53
  43. package/connectors/connect-yousign/node_modules/@types/node/LICENSE +0 -21
  44. package/connectors/connect-yousign/node_modules/@types/node/README.md +0 -15
  45. package/connectors/connect-yousign/node_modules/@types/node/assert/strict.d.ts +0 -105
  46. package/connectors/connect-yousign/node_modules/@types/node/assert.d.ts +0 -955
  47. package/connectors/connect-yousign/node_modules/@types/node/async_hooks.d.ts +0 -623
  48. package/connectors/connect-yousign/node_modules/@types/node/buffer.buffer.d.ts +0 -466
  49. package/connectors/connect-yousign/node_modules/@types/node/buffer.d.ts +0 -1810
  50. package/connectors/connect-yousign/node_modules/@types/node/child_process.d.ts +0 -1433
  51. package/connectors/connect-yousign/node_modules/@types/node/cluster.d.ts +0 -486
  52. package/connectors/connect-yousign/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  53. package/connectors/connect-yousign/node_modules/@types/node/console.d.ts +0 -151
  54. package/connectors/connect-yousign/node_modules/@types/node/constants.d.ts +0 -20
  55. package/connectors/connect-yousign/node_modules/@types/node/crypto.d.ts +0 -4065
  56. package/connectors/connect-yousign/node_modules/@types/node/dgram.d.ts +0 -564
  57. package/connectors/connect-yousign/node_modules/@types/node/diagnostics_channel.d.ts +0 -576
  58. package/connectors/connect-yousign/node_modules/@types/node/dns/promises.d.ts +0 -503
  59. package/connectors/connect-yousign/node_modules/@types/node/dns.d.ts +0 -922
  60. package/connectors/connect-yousign/node_modules/@types/node/domain.d.ts +0 -166
  61. package/connectors/connect-yousign/node_modules/@types/node/events.d.ts +0 -1047
  62. package/connectors/connect-yousign/node_modules/@types/node/fs/promises.d.ts +0 -1329
  63. package/connectors/connect-yousign/node_modules/@types/node/fs.d.ts +0 -4678
  64. package/connectors/connect-yousign/node_modules/@types/node/globals.d.ts +0 -150
  65. package/connectors/connect-yousign/node_modules/@types/node/globals.typedarray.d.ts +0 -101
  66. package/connectors/connect-yousign/node_modules/@types/node/http.d.ts +0 -2188
  67. package/connectors/connect-yousign/node_modules/@types/node/http2.d.ts +0 -2480
  68. package/connectors/connect-yousign/node_modules/@types/node/https.d.ts +0 -405
  69. package/connectors/connect-yousign/node_modules/@types/node/index.d.ts +0 -115
  70. package/connectors/connect-yousign/node_modules/@types/node/inspector/promises.d.ts +0 -41
  71. package/connectors/connect-yousign/node_modules/@types/node/inspector.d.ts +0 -269
  72. package/connectors/connect-yousign/node_modules/@types/node/inspector.generated.d.ts +0 -4401
  73. package/connectors/connect-yousign/node_modules/@types/node/module.d.ts +0 -757
  74. package/connectors/connect-yousign/node_modules/@types/node/net.d.ts +0 -933
  75. package/connectors/connect-yousign/node_modules/@types/node/os.d.ts +0 -507
  76. package/connectors/connect-yousign/node_modules/@types/node/package.json +0 -155
  77. package/connectors/connect-yousign/node_modules/@types/node/path/posix.d.ts +0 -8
  78. package/connectors/connect-yousign/node_modules/@types/node/path/win32.d.ts +0 -8
  79. package/connectors/connect-yousign/node_modules/@types/node/path.d.ts +0 -187
  80. package/connectors/connect-yousign/node_modules/@types/node/perf_hooks.d.ts +0 -643
  81. package/connectors/connect-yousign/node_modules/@types/node/process.d.ts +0 -2175
  82. package/connectors/connect-yousign/node_modules/@types/node/punycode.d.ts +0 -117
  83. package/connectors/connect-yousign/node_modules/@types/node/querystring.d.ts +0 -152
  84. package/connectors/connect-yousign/node_modules/@types/node/quic.d.ts +0 -910
  85. package/connectors/connect-yousign/node_modules/@types/node/readline/promises.d.ts +0 -161
  86. package/connectors/connect-yousign/node_modules/@types/node/readline.d.ts +0 -542
  87. package/connectors/connect-yousign/node_modules/@types/node/repl.d.ts +0 -415
  88. package/connectors/connect-yousign/node_modules/@types/node/sea.d.ts +0 -162
  89. package/connectors/connect-yousign/node_modules/@types/node/sqlite.d.ts +0 -1065
  90. package/connectors/connect-yousign/node_modules/@types/node/stream/consumers.d.ts +0 -38
  91. package/connectors/connect-yousign/node_modules/@types/node/stream/promises.d.ts +0 -211
  92. package/connectors/connect-yousign/node_modules/@types/node/stream/web.d.ts +0 -296
  93. package/connectors/connect-yousign/node_modules/@types/node/stream.d.ts +0 -1770
  94. package/connectors/connect-yousign/node_modules/@types/node/string_decoder.d.ts +0 -67
  95. package/connectors/connect-yousign/node_modules/@types/node/test/reporters.d.ts +0 -96
  96. package/connectors/connect-yousign/node_modules/@types/node/test.d.ts +0 -2275
  97. package/connectors/connect-yousign/node_modules/@types/node/timers/promises.d.ts +0 -108
  98. package/connectors/connect-yousign/node_modules/@types/node/timers.d.ts +0 -159
  99. package/connectors/connect-yousign/node_modules/@types/node/tls.d.ts +0 -1203
  100. package/connectors/connect-yousign/node_modules/@types/node/trace_events.d.ts +0 -197
  101. package/connectors/connect-yousign/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -462
  102. package/connectors/connect-yousign/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
  103. package/connectors/connect-yousign/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -36
  104. package/connectors/connect-yousign/node_modules/@types/node/ts5.6/index.d.ts +0 -117
  105. package/connectors/connect-yousign/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
  106. package/connectors/connect-yousign/node_modules/@types/node/ts5.7/index.d.ts +0 -117
  107. package/connectors/connect-yousign/node_modules/@types/node/tty.d.ts +0 -250
  108. package/connectors/connect-yousign/node_modules/@types/node/url.d.ts +0 -541
  109. package/connectors/connect-yousign/node_modules/@types/node/util/types.d.ts +0 -558
  110. package/connectors/connect-yousign/node_modules/@types/node/util.d.ts +0 -1687
  111. package/connectors/connect-yousign/node_modules/@types/node/v8.d.ts +0 -988
  112. package/connectors/connect-yousign/node_modules/@types/node/vm.d.ts +0 -1208
  113. package/connectors/connect-yousign/node_modules/@types/node/wasi.d.ts +0 -202
  114. package/connectors/connect-yousign/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -59
  115. package/connectors/connect-yousign/node_modules/@types/node/web-globals/blob.d.ts +0 -23
  116. package/connectors/connect-yousign/node_modules/@types/node/web-globals/console.d.ts +0 -9
  117. package/connectors/connect-yousign/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
  118. package/connectors/connect-yousign/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  119. package/connectors/connect-yousign/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
  120. package/connectors/connect-yousign/node_modules/@types/node/web-globals/events.d.ts +0 -106
  121. package/connectors/connect-yousign/node_modules/@types/node/web-globals/fetch.d.ts +0 -69
  122. package/connectors/connect-yousign/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
  123. package/connectors/connect-yousign/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
  124. package/connectors/connect-yousign/node_modules/@types/node/web-globals/navigator.d.ts +0 -25
  125. package/connectors/connect-yousign/node_modules/@types/node/web-globals/performance.d.ts +0 -45
  126. package/connectors/connect-yousign/node_modules/@types/node/web-globals/storage.d.ts +0 -24
  127. package/connectors/connect-yousign/node_modules/@types/node/web-globals/streams.d.ts +0 -115
  128. package/connectors/connect-yousign/node_modules/@types/node/web-globals/timers.d.ts +0 -44
  129. package/connectors/connect-yousign/node_modules/@types/node/web-globals/url.d.ts +0 -24
  130. package/connectors/connect-yousign/node_modules/@types/node/worker_threads.d.ts +0 -717
  131. package/connectors/connect-yousign/node_modules/@types/node/zlib.d.ts +0 -682
  132. package/connectors/connect-yousign/node_modules/bun-types/CLAUDE.md +0 -105
  133. package/connectors/connect-yousign/node_modules/bun-types/README.md +0 -33
  134. package/connectors/connect-yousign/node_modules/bun-types/bun.d.ts +0 -8481
  135. package/connectors/connect-yousign/node_modules/bun-types/bun.ns.d.ts +0 -5
  136. package/connectors/connect-yousign/node_modules/bun-types/bundle.d.ts +0 -74
  137. package/connectors/connect-yousign/node_modules/bun-types/deprecated.d.ts +0 -184
  138. package/connectors/connect-yousign/node_modules/bun-types/devserver.d.ts +0 -187
  139. package/connectors/connect-yousign/node_modules/bun-types/docs/README.md +0 -28
  140. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/bytecode.mdx +0 -447
  141. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/css.mdx +0 -1024
  142. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/esbuild.mdx +0 -304
  143. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/executables.mdx +0 -1318
  144. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/fullstack.mdx +0 -1086
  145. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/hot-reloading.mdx +0 -229
  146. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/html-static.mdx +0 -498
  147. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/index.mdx +0 -1840
  148. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/loaders.mdx +0 -451
  149. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/macros.mdx +0 -328
  150. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/minifier.mdx +0 -1286
  151. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/plugins.mdx +0 -477
  152. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/standalone-html.mdx +0 -314
  153. package/connectors/connect-yousign/node_modules/bun-types/docs/feedback.mdx +0 -75
  154. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/arraybuffer-to-array.mdx +0 -29
  155. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/arraybuffer-to-blob.mdx +0 -26
  156. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/arraybuffer-to-buffer.mdx +0 -27
  157. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/arraybuffer-to-string.mdx +0 -17
  158. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/arraybuffer-to-typedarray.mdx +0 -41
  159. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/blob-to-arraybuffer.mdx +0 -16
  160. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/blob-to-dataview.mdx +0 -16
  161. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/blob-to-stream.mdx +0 -16
  162. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/blob-to-string.mdx +0 -17
  163. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/blob-to-typedarray.mdx +0 -16
  164. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/buffer-to-arraybuffer.mdx +0 -16
  165. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/buffer-to-blob.mdx +0 -16
  166. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/buffer-to-readablestream.mdx +0 -43
  167. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/buffer-to-string.mdx +0 -27
  168. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/buffer-to-typedarray.mdx +0 -16
  169. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/dataview-to-string.mdx +0 -17
  170. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/typedarray-to-arraybuffer.mdx +0 -27
  171. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/typedarray-to-blob.mdx +0 -18
  172. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/typedarray-to-buffer.mdx +0 -16
  173. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/typedarray-to-dataview.mdx +0 -16
  174. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/typedarray-to-readablestream.mdx +0 -43
  175. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/typedarray-to-string.mdx +0 -18
  176. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/deployment/aws-lambda.mdx +0 -204
  177. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/deployment/digital-ocean.mdx +0 -161
  178. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/deployment/google-cloud-run.mdx +0 -194
  179. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/deployment/railway.mdx +0 -145
  180. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/deployment/render.mdx +0 -82
  181. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/deployment/vercel.mdx +0 -97
  182. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/astro.mdx +0 -82
  183. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/discordjs.mdx +0 -80
  184. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/docker.mdx +0 -151
  185. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/drizzle.mdx +0 -195
  186. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/elysia.mdx +0 -31
  187. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/express.mdx +0 -43
  188. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/gel.mdx +0 -261
  189. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/hono.mdx +0 -47
  190. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/mongoose.mdx +0 -92
  191. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/neon-drizzle.mdx +0 -234
  192. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/neon-serverless-postgres.mdx +0 -60
  193. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/nextjs.mdx +0 -103
  194. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/nuxt.mdx +0 -96
  195. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/pm2.mdx +0 -55
  196. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/prisma-postgres.mdx +0 -169
  197. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/prisma.mdx +0 -164
  198. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/qwik.mdx +0 -114
  199. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/react.mdx +0 -52
  200. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/remix.mdx +0 -97
  201. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/sentry.mdx +0 -54
  202. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/solidstart.mdx +0 -62
  203. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/ssr-react.mdx +0 -49
  204. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/stric.mdx +0 -54
  205. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/sveltekit.mdx +0 -138
  206. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/systemd.mdx +0 -114
  207. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/tanstack-start.mdx +0 -791
  208. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/upstash.mdx +0 -87
  209. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/vite.mdx +0 -77
  210. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/html-rewriter/extract-links.mdx +0 -71
  211. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/html-rewriter/extract-social-meta.mdx +0 -97
  212. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/cluster.mdx +0 -69
  213. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/fetch-unix.mdx +0 -35
  214. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/fetch.mdx +0 -26
  215. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/file-uploads.mdx +0 -97
  216. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/hot.mdx +0 -28
  217. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/proxy.mdx +0 -50
  218. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/server.mdx +0 -48
  219. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/simple.mdx +0 -20
  220. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/stream-file.mdx +0 -50
  221. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/stream-iterator.mdx +0 -49
  222. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/stream-node-streams-in-bun.mdx +0 -22
  223. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/tls.mdx +0 -32
  224. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/index.mdx +0 -10
  225. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/add-dev.mdx +0 -28
  226. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/add-git.mdx +0 -40
  227. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/add-optional.mdx +0 -27
  228. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/add-peer.mdx +0 -45
  229. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/add-tarball.mdx +0 -35
  230. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/add.mdx +0 -44
  231. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/azure-artifacts.mdx +0 -76
  232. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/cicd.mdx +0 -43
  233. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/custom-registry.mdx +0 -32
  234. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/from-npm-install-to-bun-install.mdx +0 -230
  235. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/git-diff-bun-lockfile.mdx +0 -48
  236. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/jfrog-artifactory.mdx +0 -28
  237. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/npm-alias.mdx +0 -25
  238. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/registry-scope.mdx +0 -40
  239. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/trusted.mdx +0 -52
  240. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/workspaces.mdx +0 -70
  241. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/yarnlock.mdx +0 -51
  242. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/argv.mdx +0 -66
  243. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/ctrl-c.mdx +0 -18
  244. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/ipc.mdx +0 -69
  245. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/nanoseconds.mdx +0 -15
  246. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/os-signals.mdx +0 -31
  247. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/spawn-stderr.mdx +0 -34
  248. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/spawn-stdout.mdx +0 -28
  249. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/spawn.mdx +0 -43
  250. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/stdin.mdx +0 -62
  251. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/arraybuffer.mdx +0 -30
  252. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/buffer.mdx +0 -21
  253. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/exists.mdx +0 -18
  254. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/json.mdx +0 -19
  255. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/mime.mdx +0 -22
  256. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/stream.mdx +0 -28
  257. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/string.mdx +0 -24
  258. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/uint8array.mdx +0 -23
  259. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/watch.mdx +0 -66
  260. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/build-time-constants.mdx +0 -295
  261. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/cicd.mdx +0 -45
  262. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/codesign-macos-executable.mdx +0 -61
  263. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/define-constant.mdx +0 -149
  264. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/delete-directory.mdx +0 -39
  265. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/delete-file.mdx +0 -21
  266. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/heap-snapshot.mdx +0 -28
  267. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/import-html.mdx +0 -15
  268. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/import-json.mdx +0 -46
  269. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/import-json5.mdx +0 -74
  270. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/import-toml.mdx +0 -32
  271. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/import-yaml.mdx +0 -104
  272. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/read-env.mdx +0 -37
  273. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/set-env.mdx +0 -51
  274. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/shell.mdx +0 -42
  275. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/timezone.mdx +0 -38
  276. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/tsconfig-paths.mdx +0 -31
  277. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/typescript.mdx +0 -51
  278. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/vscode-debugger.mdx +0 -47
  279. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/web-debugger.mdx +0 -103
  280. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/node-readable-to-arraybuffer.mdx +0 -13
  281. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/node-readable-to-blob.mdx +0 -13
  282. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/node-readable-to-json.mdx +0 -14
  283. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/node-readable-to-string.mdx +0 -14
  284. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/node-readable-to-uint8array.mdx +0 -13
  285. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/to-array.mdx +0 -16
  286. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/to-arraybuffer.mdx +0 -16
  287. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/to-blob.mdx +0 -16
  288. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/to-buffer.mdx +0 -17
  289. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/to-json.mdx +0 -16
  290. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/to-string.mdx +0 -16
  291. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/to-typedarray.mdx +0 -24
  292. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/bail.mdx +0 -24
  293. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/concurrent-test-glob.mdx +0 -146
  294. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/coverage-threshold.mdx +0 -67
  295. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/coverage.mdx +0 -49
  296. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/happy-dom.mdx +0 -73
  297. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/migrate-from-jest.mdx +0 -125
  298. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/mock-clock.mdx +0 -50
  299. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/mock-functions.mdx +0 -70
  300. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/rerun-each.mdx +0 -16
  301. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/run-tests.mdx +0 -116
  302. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/skip-tests.mdx +0 -43
  303. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/snapshot.mdx +0 -102
  304. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/spy-on.mdx +0 -49
  305. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/svelte-test.mdx +0 -113
  306. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/testing-library.mdx +0 -93
  307. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/timeout.mdx +0 -17
  308. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/todo-tests.mdx +0 -74
  309. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/update-snapshots.mdx +0 -49
  310. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/watch-mode.mdx +0 -24
  311. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/base64.mdx +0 -17
  312. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/deep-equals.mdx +0 -41
  313. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/deflate.mdx +0 -20
  314. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/detect-bun.mdx +0 -28
  315. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/entrypoint.mdx +0 -19
  316. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/escape-html.mdx +0 -24
  317. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/file-url-to-path.mdx +0 -16
  318. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/gzip.mdx +0 -20
  319. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/hash-a-password.mdx +0 -56
  320. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/import-meta-dir.mdx +0 -15
  321. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/import-meta-file.mdx +0 -15
  322. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/import-meta-path.mdx +0 -15
  323. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/javascript-uuid.mdx +0 -25
  324. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/main.mdx +0 -43
  325. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/path-to-file-url.mdx +0 -16
  326. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/sleep.mdx +0 -24
  327. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/upgrade.mdx +0 -93
  328. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/version.mdx +0 -23
  329. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/which-path-to-executable-bin.mdx +0 -17
  330. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/websocket/compression.mdx +0 -33
  331. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/websocket/context.mdx +0 -79
  332. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/websocket/pubsub.mdx +0 -43
  333. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/websocket/simple.mdx +0 -38
  334. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/append.mdx +0 -54
  335. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/basic.mdx +0 -46
  336. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/blob.mdx +0 -30
  337. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/cat.mdx +0 -19
  338. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/file-cp.mdx +0 -18
  339. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/filesink.mdx +0 -54
  340. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/response.mdx +0 -19
  341. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/stdout.mdx +0 -23
  342. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/stream.mdx +0 -19
  343. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/unlink.mdx +0 -18
  344. package/connectors/connect-yousign/node_modules/bun-types/docs/index.mdx +0 -133
  345. package/connectors/connect-yousign/node_modules/bun-types/docs/installation.mdx +0 -372
  346. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/bunx.mdx +0 -91
  347. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/catalogs.mdx +0 -292
  348. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/add.mdx +0 -179
  349. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/audit.mdx +0 -60
  350. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/info.mdx +0 -70
  351. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/install.mdx +0 -591
  352. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/link.mdx +0 -61
  353. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/outdated.mdx +0 -197
  354. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/patch.mdx +0 -69
  355. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/pm.mdx +0 -323
  356. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/publish.mdx +0 -131
  357. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/remove.mdx +0 -16
  358. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/update.mdx +0 -140
  359. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/why.mdx +0 -84
  360. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/filter.mdx +0 -127
  361. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/global-cache.mdx +0 -72
  362. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/isolated-installs.mdx +0 -220
  363. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/lifecycle.mdx +0 -64
  364. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/lockfile.mdx +0 -64
  365. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/npmrc.mdx +0 -245
  366. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/overrides.mdx +0 -83
  367. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/scopes-registries.mdx +0 -35
  368. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/security-scanner-api.mdx +0 -95
  369. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/workspaces.mdx +0 -115
  370. package/connectors/connect-yousign/node_modules/bun-types/docs/project/benchmarking.mdx +0 -296
  371. package/connectors/connect-yousign/node_modules/bun-types/docs/project/bindgen.mdx +0 -223
  372. package/connectors/connect-yousign/node_modules/bun-types/docs/project/building-windows.mdx +0 -143
  373. package/connectors/connect-yousign/node_modules/bun-types/docs/project/contributing.mdx +0 -366
  374. package/connectors/connect-yousign/node_modules/bun-types/docs/project/feedback.mdx +0 -20
  375. package/connectors/connect-yousign/node_modules/bun-types/docs/project/license.mdx +0 -78
  376. package/connectors/connect-yousign/node_modules/bun-types/docs/project/roadmap.mdx +0 -8
  377. package/connectors/connect-yousign/node_modules/bun-types/docs/quickstart.mdx +0 -251
  378. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/archive.mdx +0 -452
  379. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/auto-install.mdx +0 -97
  380. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/binary-data.mdx +0 -846
  381. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/bun-apis.mdx +0 -59
  382. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/bunfig.mdx +0 -754
  383. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/c-compiler.mdx +0 -204
  384. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/child-process.mdx +0 -659
  385. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/color.mdx +0 -267
  386. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/console.mdx +0 -67
  387. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/cookies.mdx +0 -454
  388. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/debugger.mdx +0 -335
  389. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/environment-variables.mdx +0 -231
  390. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/ffi.mdx +0 -567
  391. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/file-io.mdx +0 -306
  392. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/file-system-router.mdx +0 -118
  393. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/file-types.mdx +0 -482
  394. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/glob.mdx +0 -181
  395. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/globals.mdx +0 -72
  396. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/hashing.mdx +0 -315
  397. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/html-rewriter.mdx +0 -333
  398. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/http/cookies.mdx +0 -79
  399. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/http/error-handling.mdx +0 -40
  400. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/http/metrics.mdx +0 -36
  401. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/http/routing.mdx +0 -289
  402. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/http/server.mdx +0 -645
  403. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/http/tls.mdx +0 -101
  404. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/http/websockets.mdx +0 -414
  405. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/index.mdx +0 -223
  406. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/json5.mdx +0 -271
  407. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/jsonl.mdx +0 -188
  408. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/jsx.mdx +0 -115
  409. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/markdown.mdx +0 -344
  410. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/module-resolution.mdx +0 -374
  411. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/networking/dns.mdx +0 -111
  412. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/networking/fetch.mdx +0 -484
  413. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/networking/tcp.mdx +0 -239
  414. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/networking/udp.mdx +0 -180
  415. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/node-api.mdx +0 -19
  416. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/nodejs-compat.mdx +0 -468
  417. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/plugins.mdx +0 -419
  418. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/redis.mdx +0 -583
  419. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/repl.mdx +0 -176
  420. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/s3.mdx +0 -881
  421. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/secrets.mdx +0 -340
  422. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/semver.mdx +0 -57
  423. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/shell.mdx +0 -637
  424. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/sql.mdx +0 -1404
  425. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/sqlite.mdx +0 -721
  426. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/streams.mdx +0 -232
  427. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/templating/create.mdx +0 -269
  428. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/templating/init.mdx +0 -58
  429. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/transpiler.mdx +0 -288
  430. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/typescript.mdx +0 -58
  431. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/utils.mdx +0 -1010
  432. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/watch-mode.mdx +0 -161
  433. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/web-apis.mdx +0 -29
  434. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/workers.mdx +0 -314
  435. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/yaml.mdx +0 -469
  436. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/add.mdx +0 -166
  437. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/build.mdx +0 -197
  438. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/bunx.mdx +0 -49
  439. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/feedback.mdx +0 -17
  440. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/init.mdx +0 -84
  441. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/install.mdx +0 -173
  442. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/link.mdx +0 -163
  443. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/outdated.mdx +0 -140
  444. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/patch.mdx +0 -171
  445. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/publish.mdx +0 -198
  446. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/remove.mdx +0 -146
  447. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/run.mdx +0 -305
  448. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/test.mdx +0 -105
  449. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/update.mdx +0 -144
  450. package/connectors/connect-yousign/node_modules/bun-types/docs/test/code-coverage.mdx +0 -409
  451. package/connectors/connect-yousign/node_modules/bun-types/docs/test/configuration.mdx +0 -520
  452. package/connectors/connect-yousign/node_modules/bun-types/docs/test/dates-times.mdx +0 -129
  453. package/connectors/connect-yousign/node_modules/bun-types/docs/test/discovery.mdx +0 -90
  454. package/connectors/connect-yousign/node_modules/bun-types/docs/test/dom.mdx +0 -226
  455. package/connectors/connect-yousign/node_modules/bun-types/docs/test/index.mdx +0 -409
  456. package/connectors/connect-yousign/node_modules/bun-types/docs/test/lifecycle.mdx +0 -366
  457. package/connectors/connect-yousign/node_modules/bun-types/docs/test/mocks.mdx +0 -637
  458. package/connectors/connect-yousign/node_modules/bun-types/docs/test/reporters.mdx +0 -126
  459. package/connectors/connect-yousign/node_modules/bun-types/docs/test/runtime-behavior.mdx +0 -342
  460. package/connectors/connect-yousign/node_modules/bun-types/docs/test/snapshots.mdx +0 -434
  461. package/connectors/connect-yousign/node_modules/bun-types/docs/test/writing-tests.mdx +0 -672
  462. package/connectors/connect-yousign/node_modules/bun-types/docs/typescript.mdx +0 -54
  463. package/connectors/connect-yousign/node_modules/bun-types/extensions.d.ts +0 -40
  464. package/connectors/connect-yousign/node_modules/bun-types/fetch.d.ts +0 -79
  465. package/connectors/connect-yousign/node_modules/bun-types/ffi.d.ts +0 -1154
  466. package/connectors/connect-yousign/node_modules/bun-types/globals.d.ts +0 -2067
  467. package/connectors/connect-yousign/node_modules/bun-types/html-rewriter.d.ts +0 -186
  468. package/connectors/connect-yousign/node_modules/bun-types/index.d.ts +0 -32
  469. package/connectors/connect-yousign/node_modules/bun-types/jsc.d.ts +0 -233
  470. package/connectors/connect-yousign/node_modules/bun-types/jsx.d.ts +0 -11
  471. package/connectors/connect-yousign/node_modules/bun-types/overrides.d.ts +0 -376
  472. package/connectors/connect-yousign/node_modules/bun-types/package.json +0 -37
  473. package/connectors/connect-yousign/node_modules/bun-types/redis.d.ts +0 -3352
  474. package/connectors/connect-yousign/node_modules/bun-types/s3.d.ts +0 -1335
  475. package/connectors/connect-yousign/node_modules/bun-types/security.d.ts +0 -101
  476. package/connectors/connect-yousign/node_modules/bun-types/serve.d.ts +0 -1296
  477. package/connectors/connect-yousign/node_modules/bun-types/shell.d.ts +0 -380
  478. package/connectors/connect-yousign/node_modules/bun-types/sql.d.ts +0 -887
  479. package/connectors/connect-yousign/node_modules/bun-types/sqlite.d.ts +0 -1322
  480. package/connectors/connect-yousign/node_modules/bun-types/test-globals.d.ts +0 -22
  481. package/connectors/connect-yousign/node_modules/bun-types/test.d.ts +0 -2392
  482. package/connectors/connect-yousign/node_modules/bun-types/vendor/expect-type/branding.d.ts +0 -283
  483. package/connectors/connect-yousign/node_modules/bun-types/vendor/expect-type/index.d.ts +0 -1207
  484. package/connectors/connect-yousign/node_modules/bun-types/vendor/expect-type/messages.d.ts +0 -395
  485. package/connectors/connect-yousign/node_modules/bun-types/vendor/expect-type/overloads.d.ts +0 -669
  486. package/connectors/connect-yousign/node_modules/bun-types/vendor/expect-type/utils.d.ts +0 -431
  487. package/connectors/connect-yousign/node_modules/bun-types/wasm.d.ts +0 -193
  488. package/connectors/connect-yousign/node_modules/chalk/license +0 -9
  489. package/connectors/connect-yousign/node_modules/chalk/package.json +0 -83
  490. package/connectors/connect-yousign/node_modules/chalk/readme.md +0 -297
  491. package/connectors/connect-yousign/node_modules/chalk/source/index.d.ts +0 -325
  492. package/connectors/connect-yousign/node_modules/chalk/source/index.js +0 -225
  493. package/connectors/connect-yousign/node_modules/chalk/source/utilities.js +0 -33
  494. package/connectors/connect-yousign/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  495. package/connectors/connect-yousign/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  496. package/connectors/connect-yousign/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  497. package/connectors/connect-yousign/node_modules/chalk/source/vendor/supports-color/browser.js +0 -34
  498. package/connectors/connect-yousign/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  499. package/connectors/connect-yousign/node_modules/chalk/source/vendor/supports-color/index.js +0 -190
  500. package/connectors/connect-yousign/node_modules/commander/LICENSE +0 -22
  501. package/connectors/connect-yousign/node_modules/commander/Readme.md +0 -1157
  502. package/connectors/connect-yousign/node_modules/commander/esm.mjs +0 -16
  503. package/connectors/connect-yousign/node_modules/commander/index.js +0 -24
  504. package/connectors/connect-yousign/node_modules/commander/lib/argument.js +0 -149
  505. package/connectors/connect-yousign/node_modules/commander/lib/command.js +0 -2509
  506. package/connectors/connect-yousign/node_modules/commander/lib/error.js +0 -39
  507. package/connectors/connect-yousign/node_modules/commander/lib/help.js +0 -520
  508. package/connectors/connect-yousign/node_modules/commander/lib/option.js +0 -330
  509. package/connectors/connect-yousign/node_modules/commander/lib/suggestSimilar.js +0 -101
  510. package/connectors/connect-yousign/node_modules/commander/package-support.json +0 -16
  511. package/connectors/connect-yousign/node_modules/commander/package.json +0 -84
  512. package/connectors/connect-yousign/node_modules/commander/typings/esm.d.mts +0 -3
  513. package/connectors/connect-yousign/node_modules/commander/typings/index.d.ts +0 -969
  514. package/connectors/connect-yousign/node_modules/typescript/LICENSE.txt +0 -55
  515. package/connectors/connect-yousign/node_modules/typescript/README.md +0 -50
  516. package/connectors/connect-yousign/node_modules/typescript/SECURITY.md +0 -41
  517. package/connectors/connect-yousign/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
  518. package/connectors/connect-yousign/node_modules/typescript/bin/tsc +0 -2
  519. package/connectors/connect-yousign/node_modules/typescript/bin/tsserver +0 -2
  520. package/connectors/connect-yousign/node_modules/typescript/lib/_tsc.js +0 -133818
  521. package/connectors/connect-yousign/node_modules/typescript/lib/_tsserver.js +0 -659
  522. package/connectors/connect-yousign/node_modules/typescript/lib/_typingsInstaller.js +0 -222
  523. package/connectors/connect-yousign/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2122
  524. package/connectors/connect-yousign/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2122
  525. package/connectors/connect-yousign/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2122
  526. package/connectors/connect-yousign/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2122
  527. package/connectors/connect-yousign/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2122
  528. package/connectors/connect-yousign/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2122
  529. package/connectors/connect-yousign/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2122
  530. package/connectors/connect-yousign/node_modules/typescript/lib/lib.d.ts +0 -22
  531. package/connectors/connect-yousign/node_modules/typescript/lib/lib.decorators.d.ts +0 -384
  532. package/connectors/connect-yousign/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
  533. package/connectors/connect-yousign/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -41
  534. package/connectors/connect-yousign/node_modules/typescript/lib/lib.dom.d.ts +0 -39429
  535. package/connectors/connect-yousign/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -571
  536. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
  537. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
  538. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
  539. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
  540. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -605
  541. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
  542. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
  543. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
  544. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
  545. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
  546. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
  547. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
  548. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
  549. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
  550. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
  551. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.d.ts +0 -26
  552. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
  553. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
  554. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
  555. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
  556. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
  557. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
  558. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
  559. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
  560. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -53
  561. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
  562. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
  563. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
  564. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
  565. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
  566. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
  567. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
  568. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
  569. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
  570. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
  571. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
  572. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
  573. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -765
  574. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
  575. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
  576. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
  577. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
  578. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
  579. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
  580. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -99
  581. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -44
  582. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -41
  583. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
  584. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
  585. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
  586. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
  587. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
  588. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -78
  589. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
  590. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.d.ts +0 -25
  591. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -75
  592. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
  593. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -145
  594. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
  595. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
  596. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
  597. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
  598. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
  599. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
  600. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
  601. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
  602. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
  603. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
  604. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
  605. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
  606. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -29
  607. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -35
  608. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -25
  609. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -68
  610. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -29
  611. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es5.d.ts +0 -4601
  612. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es6.d.ts +0 -23
  613. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
  614. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -96
  615. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.d.ts +0 -29
  616. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
  617. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -193
  618. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.error.d.ts +0 -24
  619. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.float16.d.ts +0 -445
  620. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
  621. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
  622. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.iterator.d.ts +0 -148
  623. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -34
  624. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +0 -25
  625. package/connectors/connect-yousign/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
  626. package/connectors/connect-yousign/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -41
  627. package/connectors/connect-yousign/node_modules/typescript/lib/lib.webworker.d.ts +0 -13150
  628. package/connectors/connect-yousign/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
  629. package/connectors/connect-yousign/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -340
  630. package/connectors/connect-yousign/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2122
  631. package/connectors/connect-yousign/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2122
  632. package/connectors/connect-yousign/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2122
  633. package/connectors/connect-yousign/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2122
  634. package/connectors/connect-yousign/node_modules/typescript/lib/tsc.js +0 -8
  635. package/connectors/connect-yousign/node_modules/typescript/lib/tsserver.js +0 -8
  636. package/connectors/connect-yousign/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  637. package/connectors/connect-yousign/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  638. package/connectors/connect-yousign/node_modules/typescript/lib/typesMap.json +0 -497
  639. package/connectors/connect-yousign/node_modules/typescript/lib/typescript.d.ts +0 -11437
  640. package/connectors/connect-yousign/node_modules/typescript/lib/typescript.js +0 -200276
  641. package/connectors/connect-yousign/node_modules/typescript/lib/typingsInstaller.js +0 -8
  642. package/connectors/connect-yousign/node_modules/typescript/lib/watchGuard.js +0 -53
  643. package/connectors/connect-yousign/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2122
  644. package/connectors/connect-yousign/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2122
  645. package/connectors/connect-yousign/node_modules/typescript/package.json +0 -120
  646. package/connectors/connect-yousign/node_modules/undici-types/LICENSE +0 -21
  647. package/connectors/connect-yousign/node_modules/undici-types/README.md +0 -6
  648. package/connectors/connect-yousign/node_modules/undici-types/agent.d.ts +0 -32
  649. package/connectors/connect-yousign/node_modules/undici-types/api.d.ts +0 -43
  650. package/connectors/connect-yousign/node_modules/undici-types/balanced-pool.d.ts +0 -30
  651. package/connectors/connect-yousign/node_modules/undici-types/cache-interceptor.d.ts +0 -173
  652. package/connectors/connect-yousign/node_modules/undici-types/cache.d.ts +0 -36
  653. package/connectors/connect-yousign/node_modules/undici-types/client-stats.d.ts +0 -15
  654. package/connectors/connect-yousign/node_modules/undici-types/client.d.ts +0 -108
  655. package/connectors/connect-yousign/node_modules/undici-types/connector.d.ts +0 -34
  656. package/connectors/connect-yousign/node_modules/undici-types/content-type.d.ts +0 -21
  657. package/connectors/connect-yousign/node_modules/undici-types/cookies.d.ts +0 -30
  658. package/connectors/connect-yousign/node_modules/undici-types/diagnostics-channel.d.ts +0 -74
  659. package/connectors/connect-yousign/node_modules/undici-types/dispatcher.d.ts +0 -276
  660. package/connectors/connect-yousign/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -22
  661. package/connectors/connect-yousign/node_modules/undici-types/errors.d.ts +0 -161
  662. package/connectors/connect-yousign/node_modules/undici-types/eventsource.d.ts +0 -66
  663. package/connectors/connect-yousign/node_modules/undici-types/fetch.d.ts +0 -211
  664. package/connectors/connect-yousign/node_modules/undici-types/formdata.d.ts +0 -108
  665. package/connectors/connect-yousign/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  666. package/connectors/connect-yousign/node_modules/undici-types/global-origin.d.ts +0 -7
  667. package/connectors/connect-yousign/node_modules/undici-types/h2c-client.d.ts +0 -73
  668. package/connectors/connect-yousign/node_modules/undici-types/handlers.d.ts +0 -15
  669. package/connectors/connect-yousign/node_modules/undici-types/header.d.ts +0 -160
  670. package/connectors/connect-yousign/node_modules/undici-types/index.d.ts +0 -88
  671. package/connectors/connect-yousign/node_modules/undici-types/interceptors.d.ts +0 -73
  672. package/connectors/connect-yousign/node_modules/undici-types/mock-agent.d.ts +0 -68
  673. package/connectors/connect-yousign/node_modules/undici-types/mock-call-history.d.ts +0 -111
  674. package/connectors/connect-yousign/node_modules/undici-types/mock-client.d.ts +0 -27
  675. package/connectors/connect-yousign/node_modules/undici-types/mock-errors.d.ts +0 -12
  676. package/connectors/connect-yousign/node_modules/undici-types/mock-interceptor.d.ts +0 -94
  677. package/connectors/connect-yousign/node_modules/undici-types/mock-pool.d.ts +0 -27
  678. package/connectors/connect-yousign/node_modules/undici-types/package.json +0 -55
  679. package/connectors/connect-yousign/node_modules/undici-types/patch.d.ts +0 -29
  680. package/connectors/connect-yousign/node_modules/undici-types/pool-stats.d.ts +0 -19
  681. package/connectors/connect-yousign/node_modules/undici-types/pool.d.ts +0 -41
  682. package/connectors/connect-yousign/node_modules/undici-types/proxy-agent.d.ts +0 -29
  683. package/connectors/connect-yousign/node_modules/undici-types/readable.d.ts +0 -68
  684. package/connectors/connect-yousign/node_modules/undici-types/retry-agent.d.ts +0 -8
  685. package/connectors/connect-yousign/node_modules/undici-types/retry-handler.d.ts +0 -125
  686. package/connectors/connect-yousign/node_modules/undici-types/round-robin-pool.d.ts +0 -41
  687. package/connectors/connect-yousign/node_modules/undici-types/snapshot-agent.d.ts +0 -109
  688. package/connectors/connect-yousign/node_modules/undici-types/util.d.ts +0 -18
  689. package/connectors/connect-yousign/node_modules/undici-types/utility.d.ts +0 -7
  690. package/connectors/connect-yousign/node_modules/undici-types/webidl.d.ts +0 -341
  691. package/connectors/connect-yousign/node_modules/undici-types/websocket.d.ts +0 -186
  692. package/dashboard/dist/assets/index-CSlS3oNV.css +0 -1
  693. package/dashboard/dist/assets/index-NCasN7x4.js +0 -284
  694. /package/dist/{server/server.test.d.ts → core/builtins.test.d.ts} +0 -0
@@ -1,1203 +0,0 @@
1
- /**
2
- * The `node:tls` module provides an implementation of the Transport Layer Security
3
- * (TLS) and Secure Socket Layer (SSL) protocols that is built on top of OpenSSL.
4
- * The module can be accessed using:
5
- *
6
- * ```js
7
- * import tls from 'node:tls';
8
- * ```
9
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/tls.js)
10
- */
11
- declare module "node:tls" {
12
- import { NonSharedBuffer } from "node:buffer";
13
- import { X509Certificate } from "node:crypto";
14
- import * as net from "node:net";
15
- import * as stream from "stream";
16
- const CLIENT_RENEG_LIMIT: number;
17
- const CLIENT_RENEG_WINDOW: number;
18
- interface Certificate extends NodeJS.Dict<string | string[]> {
19
- /**
20
- * Country code.
21
- */
22
- C?: string | string[];
23
- /**
24
- * Street.
25
- */
26
- ST?: string | string[];
27
- /**
28
- * Locality.
29
- */
30
- L?: string | string[];
31
- /**
32
- * Organization.
33
- */
34
- O?: string | string[];
35
- /**
36
- * Organizational unit.
37
- */
38
- OU?: string | string[];
39
- /**
40
- * Common name.
41
- */
42
- CN?: string | string[];
43
- }
44
- interface PeerCertificate {
45
- /**
46
- * `true` if a Certificate Authority (CA), `false` otherwise.
47
- * @since v18.13.0
48
- */
49
- ca: boolean;
50
- /**
51
- * The DER encoded X.509 certificate data.
52
- */
53
- raw: NonSharedBuffer;
54
- /**
55
- * The certificate subject.
56
- */
57
- subject: Certificate;
58
- /**
59
- * The certificate issuer, described in the same terms as the `subject`.
60
- */
61
- issuer: Certificate;
62
- /**
63
- * The date-time the certificate is valid from.
64
- */
65
- valid_from: string;
66
- /**
67
- * The date-time the certificate is valid to.
68
- */
69
- valid_to: string;
70
- /**
71
- * The certificate serial number, as a hex string.
72
- */
73
- serialNumber: string;
74
- /**
75
- * The SHA-1 digest of the DER encoded certificate.
76
- * It is returned as a `:` separated hexadecimal string.
77
- */
78
- fingerprint: string;
79
- /**
80
- * The SHA-256 digest of the DER encoded certificate.
81
- * It is returned as a `:` separated hexadecimal string.
82
- */
83
- fingerprint256: string;
84
- /**
85
- * The SHA-512 digest of the DER encoded certificate.
86
- * It is returned as a `:` separated hexadecimal string.
87
- */
88
- fingerprint512: string;
89
- /**
90
- * The extended key usage, a set of OIDs.
91
- */
92
- ext_key_usage?: string[];
93
- /**
94
- * A string containing concatenated names for the subject,
95
- * an alternative to the `subject` names.
96
- */
97
- subjectaltname?: string;
98
- /**
99
- * An array describing the AuthorityInfoAccess, used with OCSP.
100
- */
101
- infoAccess?: NodeJS.Dict<string[]>;
102
- /**
103
- * For RSA keys: The RSA bit size.
104
- *
105
- * For EC keys: The key size in bits.
106
- */
107
- bits?: number;
108
- /**
109
- * The RSA exponent, as a string in hexadecimal number notation.
110
- */
111
- exponent?: string;
112
- /**
113
- * The RSA modulus, as a hexadecimal string.
114
- */
115
- modulus?: string;
116
- /**
117
- * The public key.
118
- */
119
- pubkey?: NonSharedBuffer;
120
- /**
121
- * The ASN.1 name of the OID of the elliptic curve.
122
- * Well-known curves are identified by an OID.
123
- * While it is unusual, it is possible that the curve
124
- * is identified by its mathematical properties,
125
- * in which case it will not have an OID.
126
- */
127
- asn1Curve?: string;
128
- /**
129
- * The NIST name for the elliptic curve, if it has one
130
- * (not all well-known curves have been assigned names by NIST).
131
- */
132
- nistCurve?: string;
133
- }
134
- interface DetailedPeerCertificate extends PeerCertificate {
135
- /**
136
- * The issuer certificate object.
137
- * For self-signed certificates, this may be a circular reference.
138
- */
139
- issuerCertificate: DetailedPeerCertificate;
140
- }
141
- interface CipherNameAndProtocol {
142
- /**
143
- * The cipher name.
144
- */
145
- name: string;
146
- /**
147
- * SSL/TLS protocol version.
148
- */
149
- version: string;
150
- /**
151
- * IETF name for the cipher suite.
152
- */
153
- standardName: string;
154
- }
155
- interface EphemeralKeyInfo {
156
- /**
157
- * The supported types are 'DH' and 'ECDH'.
158
- */
159
- type: string;
160
- /**
161
- * The name property is available only when type is 'ECDH'.
162
- */
163
- name?: string | undefined;
164
- /**
165
- * The size of parameter of an ephemeral key exchange.
166
- */
167
- size: number;
168
- }
169
- interface KeyObject {
170
- /**
171
- * Private keys in PEM format.
172
- */
173
- pem: string | Buffer;
174
- /**
175
- * Optional passphrase.
176
- */
177
- passphrase?: string | undefined;
178
- }
179
- interface PxfObject {
180
- /**
181
- * PFX or PKCS12 encoded private key and certificate chain.
182
- */
183
- buf: string | Buffer;
184
- /**
185
- * Optional passphrase.
186
- */
187
- passphrase?: string | undefined;
188
- }
189
- interface TLSSocketOptions extends SecureContextOptions, CommonConnectionOptions {
190
- /**
191
- * If true the TLS socket will be instantiated in server-mode.
192
- * Defaults to false.
193
- */
194
- isServer?: boolean | undefined;
195
- /**
196
- * An optional net.Server instance.
197
- */
198
- server?: net.Server | undefined;
199
- /**
200
- * An optional Buffer instance containing a TLS session.
201
- */
202
- session?: Buffer | undefined;
203
- /**
204
- * If true, specifies that the OCSP status request extension will be
205
- * added to the client hello and an 'OCSPResponse' event will be
206
- * emitted on the socket before establishing a secure communication
207
- */
208
- requestOCSP?: boolean | undefined;
209
- }
210
- interface TLSSocketEventMap extends net.SocketEventMap {
211
- "keylog": [line: NonSharedBuffer];
212
- "OCSPResponse": [response: NonSharedBuffer];
213
- "secure": [];
214
- "secureConnect": [];
215
- "session": [session: NonSharedBuffer];
216
- }
217
- /**
218
- * Performs transparent encryption of written data and all required TLS
219
- * negotiation.
220
- *
221
- * Instances of `tls.TLSSocket` implement the duplex `Stream` interface.
222
- *
223
- * Methods that return TLS connection metadata (e.g.{@link TLSSocket.getPeerCertificate}) will only return data while the
224
- * connection is open.
225
- * @since v0.11.4
226
- */
227
- class TLSSocket extends net.Socket {
228
- /**
229
- * Construct a new tls.TLSSocket object from an existing TCP socket.
230
- */
231
- constructor(socket: net.Socket | stream.Duplex, options?: TLSSocketOptions);
232
- /**
233
- * This property is `true` if the peer certificate was signed by one of the CAs
234
- * specified when creating the `tls.TLSSocket` instance, otherwise `false`.
235
- * @since v0.11.4
236
- */
237
- authorized: boolean;
238
- /**
239
- * Returns the reason why the peer's certificate was not been verified. This
240
- * property is set only when `tlsSocket.authorized === false`.
241
- * @since v0.11.4
242
- */
243
- authorizationError: Error;
244
- /**
245
- * Always returns `true`. This may be used to distinguish TLS sockets from regular`net.Socket` instances.
246
- * @since v0.11.4
247
- */
248
- encrypted: true;
249
- /**
250
- * String containing the selected ALPN protocol.
251
- * Before a handshake has completed, this value is always null.
252
- * When a handshake is completed but not ALPN protocol was selected, tlsSocket.alpnProtocol equals false.
253
- */
254
- alpnProtocol: string | false | null;
255
- /**
256
- * String containing the server name requested via SNI (Server Name Indication) TLS extension.
257
- */
258
- servername: string | false | null;
259
- /**
260
- * Returns an object representing the local certificate. The returned object has
261
- * some properties corresponding to the fields of the certificate.
262
- *
263
- * See {@link TLSSocket.getPeerCertificate} for an example of the certificate
264
- * structure.
265
- *
266
- * If there is no local certificate, an empty object will be returned. If the
267
- * socket has been destroyed, `null` will be returned.
268
- * @since v11.2.0
269
- */
270
- getCertificate(): PeerCertificate | object | null;
271
- /**
272
- * Returns an object containing information on the negotiated cipher suite.
273
- *
274
- * For example, a TLSv1.2 protocol with AES256-SHA cipher:
275
- *
276
- * ```json
277
- * {
278
- * "name": "AES256-SHA",
279
- * "standardName": "TLS_RSA_WITH_AES_256_CBC_SHA",
280
- * "version": "SSLv3"
281
- * }
282
- * ```
283
- *
284
- * See [SSL\_CIPHER\_get\_name](https://www.openssl.org/docs/man1.1.1/man3/SSL_CIPHER_get_name.html) for more information.
285
- * @since v0.11.4
286
- */
287
- getCipher(): CipherNameAndProtocol;
288
- /**
289
- * Returns an object representing the type, name, and size of parameter of
290
- * an ephemeral key exchange in `perfect forward secrecy` on a client
291
- * connection. It returns an empty object when the key exchange is not
292
- * ephemeral. As this is only supported on a client socket; `null` is returned
293
- * if called on a server socket. The supported types are `'DH'` and `'ECDH'`. The `name` property is available only when type is `'ECDH'`.
294
- *
295
- * For example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`.
296
- * @since v5.0.0
297
- */
298
- getEphemeralKeyInfo(): EphemeralKeyInfo | object | null;
299
- /**
300
- * As the `Finished` messages are message digests of the complete handshake
301
- * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can
302
- * be used for external authentication procedures when the authentication
303
- * provided by SSL/TLS is not desired or is not enough.
304
- *
305
- * Corresponds to the `SSL_get_finished` routine in OpenSSL and may be used
306
- * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929).
307
- * @since v9.9.0
308
- * @return The latest `Finished` message that has been sent to the socket as part of a SSL/TLS handshake, or `undefined` if no `Finished` message has been sent yet.
309
- */
310
- getFinished(): NonSharedBuffer | undefined;
311
- /**
312
- * Returns an object representing the peer's certificate. If the peer does not
313
- * provide a certificate, an empty object will be returned. If the socket has been
314
- * destroyed, `null` will be returned.
315
- *
316
- * If the full certificate chain was requested, each certificate will include an`issuerCertificate` property containing an object representing its issuer's
317
- * certificate.
318
- * @since v0.11.4
319
- * @param detailed Include the full certificate chain if `true`, otherwise include just the peer's certificate.
320
- * @return A certificate object.
321
- */
322
- getPeerCertificate(detailed: true): DetailedPeerCertificate;
323
- getPeerCertificate(detailed?: false): PeerCertificate;
324
- getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate;
325
- /**
326
- * As the `Finished` messages are message digests of the complete handshake
327
- * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can
328
- * be used for external authentication procedures when the authentication
329
- * provided by SSL/TLS is not desired or is not enough.
330
- *
331
- * Corresponds to the `SSL_get_peer_finished` routine in OpenSSL and may be used
332
- * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929).
333
- * @since v9.9.0
334
- * @return The latest `Finished` message that is expected or has actually been received from the socket as part of a SSL/TLS handshake, or `undefined` if there is no `Finished` message so
335
- * far.
336
- */
337
- getPeerFinished(): NonSharedBuffer | undefined;
338
- /**
339
- * Returns a string containing the negotiated SSL/TLS protocol version of the
340
- * current connection. The value `'unknown'` will be returned for connected
341
- * sockets that have not completed the handshaking process. The value `null` will
342
- * be returned for server sockets or disconnected client sockets.
343
- *
344
- * Protocol versions are:
345
- *
346
- * * `'SSLv3'`
347
- * * `'TLSv1'`
348
- * * `'TLSv1.1'`
349
- * * `'TLSv1.2'`
350
- * * `'TLSv1.3'`
351
- *
352
- * See the OpenSSL [`SSL_get_version`](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html) documentation for more information.
353
- * @since v5.7.0
354
- */
355
- getProtocol(): string | null;
356
- /**
357
- * Returns the TLS session data or `undefined` if no session was
358
- * negotiated. On the client, the data can be provided to the `session` option of {@link connect} to resume the connection. On the server, it may be useful
359
- * for debugging.
360
- *
361
- * See `Session Resumption` for more information.
362
- *
363
- * Note: `getSession()` works only for TLSv1.2 and below. For TLSv1.3, applications
364
- * must use the `'session'` event (it also works for TLSv1.2 and below).
365
- * @since v0.11.4
366
- */
367
- getSession(): NonSharedBuffer | undefined;
368
- /**
369
- * See [SSL\_get\_shared\_sigalgs](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html) for more information.
370
- * @since v12.11.0
371
- * @return List of signature algorithms shared between the server and the client in the order of decreasing preference.
372
- */
373
- getSharedSigalgs(): string[];
374
- /**
375
- * For a client, returns the TLS session ticket if one is available, or`undefined`. For a server, always returns `undefined`.
376
- *
377
- * It may be useful for debugging.
378
- *
379
- * See `Session Resumption` for more information.
380
- * @since v0.11.4
381
- */
382
- getTLSTicket(): NonSharedBuffer | undefined;
383
- /**
384
- * See `Session Resumption` for more information.
385
- * @since v0.5.6
386
- * @return `true` if the session was reused, `false` otherwise.
387
- */
388
- isSessionReused(): boolean;
389
- /**
390
- * The `tlsSocket.renegotiate()` method initiates a TLS renegotiation process.
391
- * Upon completion, the `callback` function will be passed a single argument
392
- * that is either an `Error` (if the request failed) or `null`.
393
- *
394
- * This method can be used to request a peer's certificate after the secure
395
- * connection has been established.
396
- *
397
- * When running as the server, the socket will be destroyed with an error after `handshakeTimeout` timeout.
398
- *
399
- * For TLSv1.3, renegotiation cannot be initiated, it is not supported by the
400
- * protocol.
401
- * @since v0.11.8
402
- * @param callback If `renegotiate()` returned `true`, callback is attached once to the `'secure'` event. If `renegotiate()` returned `false`, `callback` will be called in the next tick with
403
- * an error, unless the `tlsSocket` has been destroyed, in which case `callback` will not be called at all.
404
- * @return `true` if renegotiation was initiated, `false` otherwise.
405
- */
406
- renegotiate(
407
- options: {
408
- rejectUnauthorized?: boolean | undefined;
409
- requestCert?: boolean | undefined;
410
- },
411
- callback: (err: Error | null) => void,
412
- ): undefined | boolean;
413
- /**
414
- * The `tlsSocket.setKeyCert()` method sets the private key and certificate to use for the socket.
415
- * This is mainly useful if you wish to select a server certificate from a TLS server's `ALPNCallback`.
416
- * @since v22.5.0, v20.17.0
417
- * @param context An object containing at least `key` and `cert` properties from the {@link createSecureContext()} `options`,
418
- * or a TLS context object created with {@link createSecureContext()} itself.
419
- */
420
- setKeyCert(context: SecureContextOptions | SecureContext): void;
421
- /**
422
- * The `tlsSocket.setMaxSendFragment()` method sets the maximum TLS fragment size.
423
- * Returns `true` if setting the limit succeeded; `false` otherwise.
424
- *
425
- * Smaller fragment sizes decrease the buffering latency on the client: larger
426
- * fragments are buffered by the TLS layer until the entire fragment is received
427
- * and its integrity is verified; large fragments can span multiple roundtrips
428
- * and their processing can be delayed due to packet loss or reordering. However,
429
- * smaller fragments add extra TLS framing bytes and CPU overhead, which may
430
- * decrease overall server throughput.
431
- * @since v0.11.11
432
- * @param [size=16384] The maximum TLS fragment size. The maximum value is `16384`.
433
- */
434
- setMaxSendFragment(size: number): boolean;
435
- /**
436
- * Disables TLS renegotiation for this `TLSSocket` instance. Once called, attempts
437
- * to renegotiate will trigger an `'error'` event on the `TLSSocket`.
438
- * @since v8.4.0
439
- */
440
- disableRenegotiation(): void;
441
- /**
442
- * When enabled, TLS packet trace information is written to `stderr`. This can be
443
- * used to debug TLS connection problems.
444
- *
445
- * The format of the output is identical to the output of`openssl s_client -trace` or `openssl s_server -trace`. While it is produced by
446
- * OpenSSL's `SSL_trace()` function, the format is undocumented, can change
447
- * without notice, and should not be relied on.
448
- * @since v12.2.0
449
- */
450
- enableTrace(): void;
451
- /**
452
- * Returns the peer certificate as an `X509Certificate` object.
453
- *
454
- * If there is no peer certificate, or the socket has been destroyed,`undefined` will be returned.
455
- * @since v15.9.0
456
- */
457
- getPeerX509Certificate(): X509Certificate | undefined;
458
- /**
459
- * Returns the local certificate as an `X509Certificate` object.
460
- *
461
- * If there is no local certificate, or the socket has been destroyed,`undefined` will be returned.
462
- * @since v15.9.0
463
- */
464
- getX509Certificate(): X509Certificate | undefined;
465
- /**
466
- * Keying material is used for validations to prevent different kind of attacks in
467
- * network protocols, for example in the specifications of IEEE 802.1X.
468
- *
469
- * Example
470
- *
471
- * ```js
472
- * const keyingMaterial = tlsSocket.exportKeyingMaterial(
473
- * 128,
474
- * 'client finished');
475
- *
476
- * /*
477
- * Example return value of keyingMaterial:
478
- * <Buffer 76 26 af 99 c5 56 8e 42 09 91 ef 9f 93 cb ad 6c 7b 65 f8 53 f1 d8 d9
479
- * 12 5a 33 b8 b5 25 df 7b 37 9f e0 e2 4f b8 67 83 a3 2f cd 5d 41 42 4c 91
480
- * 74 ef 2c ... 78 more bytes>
481
- *
482
- * ```
483
- *
484
- * See the OpenSSL [`SSL_export_keying_material`](https://www.openssl.org/docs/man1.1.1/man3/SSL_export_keying_material.html) documentation for more
485
- * information.
486
- * @since v13.10.0, v12.17.0
487
- * @param length number of bytes to retrieve from keying material
488
- * @param label an application specific label, typically this will be a value from the [IANA Exporter Label
489
- * Registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#exporter-labels).
490
- * @param context Optionally provide a context.
491
- * @return requested bytes of the keying material
492
- */
493
- exportKeyingMaterial(length: number, label: string, context: Buffer): NonSharedBuffer;
494
- // #region InternalEventEmitter
495
- addListener<E extends keyof TLSSocketEventMap>(
496
- eventName: E,
497
- listener: (...args: TLSSocketEventMap[E]) => void,
498
- ): this;
499
- addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
500
- emit<E extends keyof TLSSocketEventMap>(eventName: E, ...args: TLSSocketEventMap[E]): boolean;
501
- emit(eventName: string | symbol, ...args: any[]): boolean;
502
- listenerCount<E extends keyof TLSSocketEventMap>(
503
- eventName: E,
504
- listener?: (...args: TLSSocketEventMap[E]) => void,
505
- ): number;
506
- listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
507
- listeners<E extends keyof TLSSocketEventMap>(eventName: E): ((...args: TLSSocketEventMap[E]) => void)[];
508
- listeners(eventName: string | symbol): ((...args: any[]) => void)[];
509
- off<E extends keyof TLSSocketEventMap>(eventName: E, listener: (...args: TLSSocketEventMap[E]) => void): this;
510
- off(eventName: string | symbol, listener: (...args: any[]) => void): this;
511
- on<E extends keyof TLSSocketEventMap>(eventName: E, listener: (...args: TLSSocketEventMap[E]) => void): this;
512
- on(eventName: string | symbol, listener: (...args: any[]) => void): this;
513
- once<E extends keyof TLSSocketEventMap>(eventName: E, listener: (...args: TLSSocketEventMap[E]) => void): this;
514
- once(eventName: string | symbol, listener: (...args: any[]) => void): this;
515
- prependListener<E extends keyof TLSSocketEventMap>(
516
- eventName: E,
517
- listener: (...args: TLSSocketEventMap[E]) => void,
518
- ): this;
519
- prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
520
- prependOnceListener<E extends keyof TLSSocketEventMap>(
521
- eventName: E,
522
- listener: (...args: TLSSocketEventMap[E]) => void,
523
- ): this;
524
- prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
525
- rawListeners<E extends keyof TLSSocketEventMap>(eventName: E): ((...args: TLSSocketEventMap[E]) => void)[];
526
- rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
527
- // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
528
- removeAllListeners<E extends keyof TLSSocketEventMap>(eventName?: E): this;
529
- removeAllListeners(eventName?: string | symbol): this;
530
- removeListener<E extends keyof TLSSocketEventMap>(
531
- eventName: E,
532
- listener: (...args: TLSSocketEventMap[E]) => void,
533
- ): this;
534
- removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
535
- // #endregion
536
- }
537
- interface CommonConnectionOptions {
538
- /**
539
- * An optional TLS context object from tls.createSecureContext()
540
- */
541
- secureContext?: SecureContext | undefined;
542
- /**
543
- * When enabled, TLS packet trace information is written to `stderr`. This can be
544
- * used to debug TLS connection problems.
545
- * @default false
546
- */
547
- enableTrace?: boolean | undefined;
548
- /**
549
- * If true the server will request a certificate from clients that
550
- * connect and attempt to verify that certificate. Defaults to
551
- * false.
552
- */
553
- requestCert?: boolean | undefined;
554
- /**
555
- * An array of strings, or a single `Buffer`, `TypedArray`, or `DataView` containing the supported
556
- * ALPN protocols. Buffers should have the format `[len][name][len][name]...`
557
- * e.g. `'\x08http/1.1\x08http/1.0'`, where the `len` byte is the length of the
558
- * next protocol name. Passing an array is usually much simpler, e.g.
559
- * `['http/1.1', 'http/1.0']`. Protocols earlier in the list have higher
560
- * preference than those later.
561
- */
562
- ALPNProtocols?: readonly string[] | NodeJS.ArrayBufferView | undefined;
563
- /**
564
- * SNICallback(servername, cb) <Function> A function that will be
565
- * called if the client supports SNI TLS extension. Two arguments
566
- * will be passed when called: servername and cb. SNICallback should
567
- * invoke cb(null, ctx), where ctx is a SecureContext instance.
568
- * (tls.createSecureContext(...) can be used to get a proper
569
- * SecureContext.) If SNICallback wasn't provided the default callback
570
- * with high-level API will be used (see below).
571
- */
572
- SNICallback?: ((servername: string, cb: (err: Error | null, ctx?: SecureContext) => void) => void) | undefined;
573
- /**
574
- * If true the server will reject any connection which is not
575
- * authorized with the list of supplied CAs. This option only has an
576
- * effect if requestCert is true.
577
- * @default true
578
- */
579
- rejectUnauthorized?: boolean | undefined;
580
- }
581
- interface TlsOptions extends SecureContextOptions, CommonConnectionOptions, net.ServerOpts {
582
- /**
583
- * Abort the connection if the SSL/TLS handshake does not finish in the
584
- * specified number of milliseconds. A 'tlsClientError' is emitted on
585
- * the tls.Server object whenever a handshake times out. Default:
586
- * 120000 (120 seconds).
587
- */
588
- handshakeTimeout?: number | undefined;
589
- /**
590
- * The number of seconds after which a TLS session created by the
591
- * server will no longer be resumable. See Session Resumption for more
592
- * information. Default: 300.
593
- */
594
- sessionTimeout?: number | undefined;
595
- /**
596
- * 48-bytes of cryptographically strong pseudo-random data.
597
- */
598
- ticketKeys?: Buffer | undefined;
599
- /**
600
- * @param socket
601
- * @param identity identity parameter sent from the client.
602
- * @return pre-shared key that must either be
603
- * a buffer or `null` to stop the negotiation process. Returned PSK must be
604
- * compatible with the selected cipher's digest.
605
- *
606
- * When negotiating TLS-PSK (pre-shared keys), this function is called
607
- * with the identity provided by the client.
608
- * If the return value is `null` the negotiation process will stop and an
609
- * "unknown_psk_identity" alert message will be sent to the other party.
610
- * If the server wishes to hide the fact that the PSK identity was not known,
611
- * the callback must provide some random data as `psk` to make the connection
612
- * fail with "decrypt_error" before negotiation is finished.
613
- * PSK ciphers are disabled by default, and using TLS-PSK thus
614
- * requires explicitly specifying a cipher suite with the `ciphers` option.
615
- * More information can be found in the RFC 4279.
616
- */
617
- pskCallback?: ((socket: TLSSocket, identity: string) => NodeJS.ArrayBufferView | null) | undefined;
618
- /**
619
- * hint to send to a client to help
620
- * with selecting the identity during TLS-PSK negotiation. Will be ignored
621
- * in TLS 1.3. Upon failing to set pskIdentityHint `tlsClientError` will be
622
- * emitted with `ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED` code.
623
- */
624
- pskIdentityHint?: string | undefined;
625
- }
626
- interface PSKCallbackNegotation {
627
- psk: NodeJS.ArrayBufferView;
628
- identity: string;
629
- }
630
- interface ConnectionOptions extends SecureContextOptions, CommonConnectionOptions {
631
- host?: string | undefined;
632
- port?: number | undefined;
633
- path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
634
- socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket
635
- checkServerIdentity?: typeof checkServerIdentity | undefined;
636
- servername?: string | undefined; // SNI TLS Extension
637
- session?: Buffer | undefined;
638
- minDHSize?: number | undefined;
639
- lookup?: net.LookupFunction | undefined;
640
- timeout?: number | undefined;
641
- /**
642
- * When negotiating TLS-PSK (pre-shared keys), this function is called
643
- * with optional identity `hint` provided by the server or `null`
644
- * in case of TLS 1.3 where `hint` was removed.
645
- * It will be necessary to provide a custom `tls.checkServerIdentity()`
646
- * for the connection as the default one will try to check hostname/IP
647
- * of the server against the certificate but that's not applicable for PSK
648
- * because there won't be a certificate present.
649
- * More information can be found in the RFC 4279.
650
- *
651
- * @param hint message sent from the server to help client
652
- * decide which identity to use during negotiation.
653
- * Always `null` if TLS 1.3 is used.
654
- * @returns Return `null` to stop the negotiation process. `psk` must be
655
- * compatible with the selected cipher's digest.
656
- * `identity` must use UTF-8 encoding.
657
- */
658
- pskCallback?: ((hint: string | null) => PSKCallbackNegotation | null) | undefined;
659
- }
660
- interface ServerEventMap extends net.ServerEventMap {
661
- "connection": [socket: net.Socket];
662
- "keylog": [line: NonSharedBuffer, tlsSocket: TLSSocket];
663
- "newSession": [sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void];
664
- "OCSPRequest": [
665
- certificate: NonSharedBuffer,
666
- issuer: NonSharedBuffer,
667
- callback: (err: Error | null, resp: Buffer | null) => void,
668
- ];
669
- "resumeSession": [sessionId: Buffer, callback: (err: Error | null, sessionData?: Buffer) => void];
670
- "secureConnection": [tlsSocket: TLSSocket];
671
- "tlsClientError": [exception: Error, tlsSocket: TLSSocket];
672
- }
673
- /**
674
- * Accepts encrypted connections using TLS or SSL.
675
- * @since v0.3.2
676
- */
677
- class Server extends net.Server {
678
- constructor(secureConnectionListener?: (socket: TLSSocket) => void);
679
- constructor(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void);
680
- /**
681
- * The `server.addContext()` method adds a secure context that will be used if
682
- * the client request's SNI name matches the supplied `hostname` (or wildcard).
683
- *
684
- * When there are multiple matching contexts, the most recently added one is
685
- * used.
686
- * @since v0.5.3
687
- * @param hostname A SNI host name or wildcard (e.g. `'*'`)
688
- * @param context An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc), or a TLS context object created
689
- * with {@link createSecureContext} itself.
690
- */
691
- addContext(hostname: string, context: SecureContextOptions | SecureContext): void;
692
- /**
693
- * Returns the session ticket keys.
694
- *
695
- * See `Session Resumption` for more information.
696
- * @since v3.0.0
697
- * @return A 48-byte buffer containing the session ticket keys.
698
- */
699
- getTicketKeys(): NonSharedBuffer;
700
- /**
701
- * The `server.setSecureContext()` method replaces the secure context of an
702
- * existing server. Existing connections to the server are not interrupted.
703
- * @since v11.0.0
704
- * @param options An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc).
705
- */
706
- setSecureContext(options: SecureContextOptions): void;
707
- /**
708
- * Sets the session ticket keys.
709
- *
710
- * Changes to the ticket keys are effective only for future server connections.
711
- * Existing or currently pending server connections will use the previous keys.
712
- *
713
- * See `Session Resumption` for more information.
714
- * @since v3.0.0
715
- * @param keys A 48-byte buffer containing the session ticket keys.
716
- */
717
- setTicketKeys(keys: Buffer): void;
718
- // #region InternalEventEmitter
719
- addListener<E extends keyof ServerEventMap>(eventName: E, listener: (...args: ServerEventMap[E]) => void): this;
720
- addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
721
- emit<E extends keyof ServerEventMap>(eventName: E, ...args: ServerEventMap[E]): boolean;
722
- emit(eventName: string | symbol, ...args: any[]): boolean;
723
- listenerCount<E extends keyof ServerEventMap>(
724
- eventName: E,
725
- listener?: (...args: ServerEventMap[E]) => void,
726
- ): number;
727
- listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
728
- listeners<E extends keyof ServerEventMap>(eventName: E): ((...args: ServerEventMap[E]) => void)[];
729
- listeners(eventName: string | symbol): ((...args: any[]) => void)[];
730
- off<E extends keyof ServerEventMap>(eventName: E, listener: (...args: ServerEventMap[E]) => void): this;
731
- off(eventName: string | symbol, listener: (...args: any[]) => void): this;
732
- on<E extends keyof ServerEventMap>(eventName: E, listener: (...args: ServerEventMap[E]) => void): this;
733
- on(eventName: string | symbol, listener: (...args: any[]) => void): this;
734
- once<E extends keyof ServerEventMap>(eventName: E, listener: (...args: ServerEventMap[E]) => void): this;
735
- once(eventName: string | symbol, listener: (...args: any[]) => void): this;
736
- prependListener<E extends keyof ServerEventMap>(
737
- eventName: E,
738
- listener: (...args: ServerEventMap[E]) => void,
739
- ): this;
740
- prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
741
- prependOnceListener<E extends keyof ServerEventMap>(
742
- eventName: E,
743
- listener: (...args: ServerEventMap[E]) => void,
744
- ): this;
745
- prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
746
- rawListeners<E extends keyof ServerEventMap>(eventName: E): ((...args: ServerEventMap[E]) => void)[];
747
- rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
748
- // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
749
- removeAllListeners<E extends keyof ServerEventMap>(eventName?: E): this;
750
- removeAllListeners(eventName?: string | symbol): this;
751
- removeListener<E extends keyof ServerEventMap>(
752
- eventName: E,
753
- listener: (...args: ServerEventMap[E]) => void,
754
- ): this;
755
- removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
756
- // #endregion
757
- }
758
- type SecureVersion = "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1";
759
- interface SecureContextOptions {
760
- /**
761
- * If set, this will be called when a client opens a connection using the ALPN extension.
762
- * One argument will be passed to the callback: an object containing `servername` and `protocols` fields,
763
- * respectively containing the server name from the SNI extension (if any) and an array of
764
- * ALPN protocol name strings. The callback must return either one of the strings listed in `protocols`,
765
- * which will be returned to the client as the selected ALPN protocol, or `undefined`,
766
- * to reject the connection with a fatal alert. If a string is returned that does not match one of
767
- * the client's ALPN protocols, an error will be thrown.
768
- * This option cannot be used with the `ALPNProtocols` option, and setting both options will throw an error.
769
- */
770
- ALPNCallback?: ((arg: { servername: string; protocols: string[] }) => string | undefined) | undefined;
771
- /**
772
- * Treat intermediate (non-self-signed)
773
- * certificates in the trust CA certificate list as trusted.
774
- * @since v22.9.0, v20.18.0
775
- */
776
- allowPartialTrustChain?: boolean | undefined;
777
- /**
778
- * Optionally override the trusted CA certificates. Default is to trust
779
- * the well-known CAs curated by Mozilla. Mozilla's CAs are completely
780
- * replaced when CAs are explicitly specified using this option.
781
- */
782
- ca?: string | Buffer | Array<string | Buffer> | undefined;
783
- /**
784
- * Cert chains in PEM format. One cert chain should be provided per
785
- * private key. Each cert chain should consist of the PEM formatted
786
- * certificate for a provided private key, followed by the PEM
787
- * formatted intermediate certificates (if any), in order, and not
788
- * including the root CA (the root CA must be pre-known to the peer,
789
- * see ca). When providing multiple cert chains, they do not have to
790
- * be in the same order as their private keys in key. If the
791
- * intermediate certificates are not provided, the peer will not be
792
- * able to validate the certificate, and the handshake will fail.
793
- */
794
- cert?: string | Buffer | Array<string | Buffer> | undefined;
795
- /**
796
- * Colon-separated list of supported signature algorithms. The list
797
- * can contain digest algorithms (SHA256, MD5 etc.), public key
798
- * algorithms (RSA-PSS, ECDSA etc.), combination of both (e.g
799
- * 'RSA+SHA384') or TLS v1.3 scheme names (e.g. rsa_pss_pss_sha512).
800
- */
801
- sigalgs?: string | undefined;
802
- /**
803
- * Cipher suite specification, replacing the default. For more
804
- * information, see modifying the default cipher suite. Permitted
805
- * ciphers can be obtained via tls.getCiphers(). Cipher names must be
806
- * uppercased in order for OpenSSL to accept them.
807
- */
808
- ciphers?: string | undefined;
809
- /**
810
- * Name of an OpenSSL engine which can provide the client certificate.
811
- * @deprecated
812
- */
813
- clientCertEngine?: string | undefined;
814
- /**
815
- * PEM formatted CRLs (Certificate Revocation Lists).
816
- */
817
- crl?: string | Buffer | Array<string | Buffer> | undefined;
818
- /**
819
- * `'auto'` or custom Diffie-Hellman parameters, required for non-ECDHE perfect forward secrecy.
820
- * If omitted or invalid, the parameters are silently discarded and DHE ciphers will not be available.
821
- * ECDHE-based perfect forward secrecy will still be available.
822
- */
823
- dhparam?: string | Buffer | undefined;
824
- /**
825
- * A string describing a named curve or a colon separated list of curve
826
- * NIDs or names, for example P-521:P-384:P-256, to use for ECDH key
827
- * agreement. Set to auto to select the curve automatically. Use
828
- * crypto.getCurves() to obtain a list of available curve names. On
829
- * recent releases, openssl ecparam -list_curves will also display the
830
- * name and description of each available elliptic curve. Default:
831
- * tls.DEFAULT_ECDH_CURVE.
832
- */
833
- ecdhCurve?: string | undefined;
834
- /**
835
- * Attempt to use the server's cipher suite preferences instead of the
836
- * client's. When true, causes SSL_OP_CIPHER_SERVER_PREFERENCE to be
837
- * set in secureOptions
838
- */
839
- honorCipherOrder?: boolean | undefined;
840
- /**
841
- * Private keys in PEM format. PEM allows the option of private keys
842
- * being encrypted. Encrypted keys will be decrypted with
843
- * options.passphrase. Multiple keys using different algorithms can be
844
- * provided either as an array of unencrypted key strings or buffers,
845
- * or an array of objects in the form {pem: <string|buffer>[,
846
- * passphrase: <string>]}. The object form can only occur in an array.
847
- * object.passphrase is optional. Encrypted keys will be decrypted with
848
- * object.passphrase if provided, or options.passphrase if it is not.
849
- */
850
- key?: string | Buffer | Array<string | Buffer | KeyObject> | undefined;
851
- /**
852
- * Name of an OpenSSL engine to get private key from. Should be used
853
- * together with privateKeyIdentifier.
854
- * @deprecated
855
- */
856
- privateKeyEngine?: string | undefined;
857
- /**
858
- * Identifier of a private key managed by an OpenSSL engine. Should be
859
- * used together with privateKeyEngine. Should not be set together with
860
- * key, because both options define a private key in different ways.
861
- * @deprecated
862
- */
863
- privateKeyIdentifier?: string | undefined;
864
- /**
865
- * Optionally set the maximum TLS version to allow. One
866
- * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the
867
- * `secureProtocol` option, use one or the other.
868
- * **Default:** `'TLSv1.3'`, unless changed using CLI options. Using
869
- * `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using `--tls-max-v1.3` sets the default to
870
- * `'TLSv1.3'`. If multiple of the options are provided, the highest maximum is used.
871
- */
872
- maxVersion?: SecureVersion | undefined;
873
- /**
874
- * Optionally set the minimum TLS version to allow. One
875
- * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the
876
- * `secureProtocol` option, use one or the other. It is not recommended to use
877
- * less than TLSv1.2, but it may be required for interoperability.
878
- * **Default:** `'TLSv1.2'`, unless changed using CLI options. Using
879
- * `--tls-v1.0` sets the default to `'TLSv1'`. Using `--tls-v1.1` sets the default to
880
- * `'TLSv1.1'`. Using `--tls-min-v1.3` sets the default to
881
- * 'TLSv1.3'. If multiple of the options are provided, the lowest minimum is used.
882
- */
883
- minVersion?: SecureVersion | undefined;
884
- /**
885
- * Shared passphrase used for a single private key and/or a PFX.
886
- */
887
- passphrase?: string | undefined;
888
- /**
889
- * PFX or PKCS12 encoded private key and certificate chain. pfx is an
890
- * alternative to providing key and cert individually. PFX is usually
891
- * encrypted, if it is, passphrase will be used to decrypt it. Multiple
892
- * PFX can be provided either as an array of unencrypted PFX buffers,
893
- * or an array of objects in the form {buf: <string|buffer>[,
894
- * passphrase: <string>]}. The object form can only occur in an array.
895
- * object.passphrase is optional. Encrypted PFX will be decrypted with
896
- * object.passphrase if provided, or options.passphrase if it is not.
897
- */
898
- pfx?: string | Buffer | Array<string | Buffer | PxfObject> | undefined;
899
- /**
900
- * Optionally affect the OpenSSL protocol behavior, which is not
901
- * usually necessary. This should be used carefully if at all! Value is
902
- * a numeric bitmask of the SSL_OP_* options from OpenSSL Options
903
- */
904
- secureOptions?: number | undefined; // Value is a numeric bitmask of the `SSL_OP_*` options
905
- /**
906
- * Legacy mechanism to select the TLS protocol version to use, it does
907
- * not support independent control of the minimum and maximum version,
908
- * and does not support limiting the protocol to TLSv1.3. Use
909
- * minVersion and maxVersion instead. The possible values are listed as
910
- * SSL_METHODS, use the function names as strings. For example, use
911
- * 'TLSv1_1_method' to force TLS version 1.1, or 'TLS_method' to allow
912
- * any TLS protocol version up to TLSv1.3. It is not recommended to use
913
- * TLS versions less than 1.2, but it may be required for
914
- * interoperability. Default: none, see minVersion.
915
- */
916
- secureProtocol?: string | undefined;
917
- /**
918
- * Opaque identifier used by servers to ensure session state is not
919
- * shared between applications. Unused by clients.
920
- */
921
- sessionIdContext?: string | undefined;
922
- /**
923
- * 48-bytes of cryptographically strong pseudo-random data.
924
- * See Session Resumption for more information.
925
- */
926
- ticketKeys?: Buffer | undefined;
927
- /**
928
- * The number of seconds after which a TLS session created by the
929
- * server will no longer be resumable. See Session Resumption for more
930
- * information. Default: 300.
931
- */
932
- sessionTimeout?: number | undefined;
933
- }
934
- interface SecureContext {
935
- context: any;
936
- }
937
- /**
938
- * Verifies the certificate `cert` is issued to `hostname`.
939
- *
940
- * Returns [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object, populating it with `reason`, `host`, and `cert` on
941
- * failure. On success, returns [undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Undefined_type).
942
- *
943
- * This function is intended to be used in combination with the`checkServerIdentity` option that can be passed to {@link connect} and as
944
- * such operates on a `certificate object`. For other purposes, consider using `x509.checkHost()` instead.
945
- *
946
- * This function can be overwritten by providing an alternative function as the `options.checkServerIdentity` option that is passed to `tls.connect()`. The
947
- * overwriting function can call `tls.checkServerIdentity()` of course, to augment
948
- * the checks done with additional verification.
949
- *
950
- * This function is only called if the certificate passed all other checks, such as
951
- * being issued by trusted CA (`options.ca`).
952
- *
953
- * Earlier versions of Node.js incorrectly accepted certificates for a given`hostname` if a matching `uniformResourceIdentifier` subject alternative name
954
- * was present (see [CVE-2021-44531](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44531)). Applications that wish to accept`uniformResourceIdentifier` subject alternative names can use
955
- * a custom `options.checkServerIdentity` function that implements the desired behavior.
956
- * @since v0.8.4
957
- * @param hostname The host name or IP address to verify the certificate against.
958
- * @param cert A `certificate object` representing the peer's certificate.
959
- */
960
- function checkServerIdentity(hostname: string, cert: PeerCertificate): Error | undefined;
961
- /**
962
- * Creates a new {@link Server}. The `secureConnectionListener`, if provided, is
963
- * automatically set as a listener for the `'secureConnection'` event.
964
- *
965
- * The `ticketKeys` options is automatically shared between `node:cluster` module
966
- * workers.
967
- *
968
- * The following illustrates a simple echo server:
969
- *
970
- * ```js
971
- * import tls from 'node:tls';
972
- * import fs from 'node:fs';
973
- *
974
- * const options = {
975
- * key: fs.readFileSync('server-key.pem'),
976
- * cert: fs.readFileSync('server-cert.pem'),
977
- *
978
- * // This is necessary only if using client certificate authentication.
979
- * requestCert: true,
980
- *
981
- * // This is necessary only if the client uses a self-signed certificate.
982
- * ca: [ fs.readFileSync('client-cert.pem') ],
983
- * };
984
- *
985
- * const server = tls.createServer(options, (socket) => {
986
- * console.log('server connected',
987
- * socket.authorized ? 'authorized' : 'unauthorized');
988
- * socket.write('welcome!\n');
989
- * socket.setEncoding('utf8');
990
- * socket.pipe(socket);
991
- * });
992
- * server.listen(8000, () => {
993
- * console.log('server bound');
994
- * });
995
- * ```
996
- *
997
- * The server can be tested by connecting to it using the example client from {@link connect}.
998
- * @since v0.3.2
999
- */
1000
- function createServer(secureConnectionListener?: (socket: TLSSocket) => void): Server;
1001
- function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server;
1002
- /**
1003
- * The `callback` function, if specified, will be added as a listener for the `'secureConnect'` event.
1004
- *
1005
- * `tls.connect()` returns a {@link TLSSocket} object.
1006
- *
1007
- * Unlike the `https` API, `tls.connect()` does not enable the
1008
- * SNI (Server Name Indication) extension by default, which may cause some
1009
- * servers to return an incorrect certificate or reject the connection
1010
- * altogether. To enable SNI, set the `servername` option in addition
1011
- * to `host`.
1012
- *
1013
- * The following illustrates a client for the echo server example from {@link createServer}:
1014
- *
1015
- * ```js
1016
- * // Assumes an echo server that is listening on port 8000.
1017
- * import tls from 'node:tls';
1018
- * import fs from 'node:fs';
1019
- *
1020
- * const options = {
1021
- * // Necessary only if the server requires client certificate authentication.
1022
- * key: fs.readFileSync('client-key.pem'),
1023
- * cert: fs.readFileSync('client-cert.pem'),
1024
- *
1025
- * // Necessary only if the server uses a self-signed certificate.
1026
- * ca: [ fs.readFileSync('server-cert.pem') ],
1027
- *
1028
- * // Necessary only if the server's cert isn't for "localhost".
1029
- * checkServerIdentity: () => { return null; },
1030
- * };
1031
- *
1032
- * const socket = tls.connect(8000, options, () => {
1033
- * console.log('client connected',
1034
- * socket.authorized ? 'authorized' : 'unauthorized');
1035
- * process.stdin.pipe(socket);
1036
- * process.stdin.resume();
1037
- * });
1038
- * socket.setEncoding('utf8');
1039
- * socket.on('data', (data) => {
1040
- * console.log(data);
1041
- * });
1042
- * socket.on('end', () => {
1043
- * console.log('server ends connection');
1044
- * });
1045
- * ```
1046
- * @since v0.11.3
1047
- */
1048
- function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
1049
- function connect(
1050
- port: number,
1051
- host?: string,
1052
- options?: ConnectionOptions,
1053
- secureConnectListener?: () => void,
1054
- ): TLSSocket;
1055
- function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
1056
- /**
1057
- * `{@link createServer}` sets the default value of the `honorCipherOrder` option
1058
- * to `true`, other APIs that create secure contexts leave it unset.
1059
- *
1060
- * `{@link createServer}` uses a 128 bit truncated SHA1 hash value generated
1061
- * from `process.argv` as the default value of the `sessionIdContext` option, other
1062
- * APIs that create secure contexts have no default value.
1063
- *
1064
- * The `tls.createSecureContext()` method creates a `SecureContext` object. It is
1065
- * usable as an argument to several `tls` APIs, such as `server.addContext()`,
1066
- * but has no public methods. The {@link Server} constructor and the {@link createServer} method do not support the `secureContext` option.
1067
- *
1068
- * A key is _required_ for ciphers that use certificates. Either `key` or `pfx` can be used to provide it.
1069
- *
1070
- * If the `ca` option is not given, then Node.js will default to using [Mozilla's publicly trusted list of
1071
- * CAs](https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt).
1072
- *
1073
- * Custom DHE parameters are discouraged in favor of the new `dhparam: 'auto' `option. When set to `'auto'`, well-known DHE parameters of sufficient strength
1074
- * will be selected automatically. Otherwise, if necessary, `openssl dhparam` can
1075
- * be used to create custom parameters. The key length must be greater than or
1076
- * equal to 1024 bits or else an error will be thrown. Although 1024 bits is
1077
- * permissible, use 2048 bits or larger for stronger security.
1078
- * @since v0.11.13
1079
- */
1080
- function createSecureContext(options?: SecureContextOptions): SecureContext;
1081
- /**
1082
- * Returns an array containing the CA certificates from various sources, depending on `type`:
1083
- *
1084
- * * `"default"`: return the CA certificates that will be used by the Node.js TLS clients by default.
1085
- * * When `--use-bundled-ca` is enabled (default), or `--use-openssl-ca` is not enabled,
1086
- * this would include CA certificates from the bundled Mozilla CA store.
1087
- * * When `--use-system-ca` is enabled, this would also include certificates from the system's
1088
- * trusted store.
1089
- * * When `NODE_EXTRA_CA_CERTS` is used, this would also include certificates loaded from the specified
1090
- * file.
1091
- * * `"system"`: return the CA certificates that are loaded from the system's trusted store, according
1092
- * to rules set by `--use-system-ca`. This can be used to get the certificates from the system
1093
- * when `--use-system-ca` is not enabled.
1094
- * * `"bundled"`: return the CA certificates from the bundled Mozilla CA store. This would be the same
1095
- * as `tls.rootCertificates`.
1096
- * * `"extra"`: return the CA certificates loaded from `NODE_EXTRA_CA_CERTS`. It's an empty array if
1097
- * `NODE_EXTRA_CA_CERTS` is not set.
1098
- * @since v22.15.0
1099
- * @param type The type of CA certificates that will be returned. Valid values
1100
- * are `"default"`, `"system"`, `"bundled"` and `"extra"`.
1101
- * **Default:** `"default"`.
1102
- * @returns An array of PEM-encoded certificates. The array may contain duplicates
1103
- * if the same certificate is repeatedly stored in multiple sources.
1104
- */
1105
- function getCACertificates(type?: "default" | "system" | "bundled" | "extra"): string[];
1106
- /**
1107
- * Returns an array with the names of the supported TLS ciphers. The names are
1108
- * lower-case for historical reasons, but must be uppercased to be used in
1109
- * the `ciphers` option of `{@link createSecureContext}`.
1110
- *
1111
- * Not all supported ciphers are enabled by default. See
1112
- * [Modifying the default TLS cipher suite](https://nodejs.org/docs/latest-v25.x/api/tls.html#modifying-the-default-tls-cipher-suite).
1113
- *
1114
- * Cipher names that start with `'tls_'` are for TLSv1.3, all the others are for
1115
- * TLSv1.2 and below.
1116
- *
1117
- * ```js
1118
- * console.log(tls.getCiphers()); // ['aes128-gcm-sha256', 'aes128-sha', ...]
1119
- * ```
1120
- * @since v0.10.2
1121
- */
1122
- function getCiphers(): string[];
1123
- /**
1124
- * Sets the default CA certificates used by Node.js TLS clients. If the provided
1125
- * certificates are parsed successfully, they will become the default CA
1126
- * certificate list returned by {@link getCACertificates} and used
1127
- * by subsequent TLS connections that don't specify their own CA certificates.
1128
- * The certificates will be deduplicated before being set as the default.
1129
- *
1130
- * This function only affects the current Node.js thread. Previous
1131
- * sessions cached by the HTTPS agent won't be affected by this change, so
1132
- * this method should be called before any unwanted cachable TLS connections are
1133
- * made.
1134
- *
1135
- * To use system CA certificates as the default:
1136
- *
1137
- * ```js
1138
- * import tls from 'node:tls';
1139
- * tls.setDefaultCACertificates(tls.getCACertificates('system'));
1140
- * ```
1141
- *
1142
- * This function completely replaces the default CA certificate list. To add additional
1143
- * certificates to the existing defaults, get the current certificates and append to them:
1144
- *
1145
- * ```js
1146
- * import tls from 'node:tls';
1147
- * const currentCerts = tls.getCACertificates('default');
1148
- * const additionalCerts = ['-----BEGIN CERTIFICATE-----\n...'];
1149
- * tls.setDefaultCACertificates([...currentCerts, ...additionalCerts]);
1150
- * ```
1151
- * @since v24.5.0
1152
- * @param certs An array of CA certificates in PEM format.
1153
- */
1154
- function setDefaultCACertificates(certs: ReadonlyArray<string | NodeJS.ArrayBufferView>): void;
1155
- /**
1156
- * The default curve name to use for ECDH key agreement in a tls server.
1157
- * The default value is `'auto'`. See `{@link createSecureContext()}` for further
1158
- * information.
1159
- * @since v0.11.13
1160
- */
1161
- let DEFAULT_ECDH_CURVE: string;
1162
- /**
1163
- * The default value of the `maxVersion` option of `{@link createSecureContext()}`.
1164
- * It can be assigned any of the supported TLS protocol versions,
1165
- * `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. **Default:** `'TLSv1.3'`, unless
1166
- * changed using CLI options. Using `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using
1167
- * `--tls-max-v1.3` sets the default to `'TLSv1.3'`. If multiple of the options
1168
- * are provided, the highest maximum is used.
1169
- * @since v11.4.0
1170
- */
1171
- let DEFAULT_MAX_VERSION: SecureVersion;
1172
- /**
1173
- * The default value of the `minVersion` option of `{@link createSecureContext()}`.
1174
- * It can be assigned any of the supported TLS protocol versions,
1175
- * `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. **Default:** `'TLSv1.2'`, unless
1176
- * changed using CLI options. Using `--tls-min-v1.0` sets the default to
1177
- * `'TLSv1'`. Using `--tls-min-v1.1` sets the default to `'TLSv1.1'`. Using
1178
- * `--tls-min-v1.3` sets the default to `'TLSv1.3'`. If multiple of the options
1179
- * are provided, the lowest minimum is used.
1180
- * @since v11.4.0
1181
- */
1182
- let DEFAULT_MIN_VERSION: SecureVersion;
1183
- /**
1184
- * The default value of the `ciphers` option of `{@link createSecureContext()}`.
1185
- * It can be assigned any of the supported OpenSSL ciphers.
1186
- * Defaults to the content of `crypto.constants.defaultCoreCipherList`, unless
1187
- * changed using CLI options using `--tls-default-ciphers`.
1188
- * @since v19.8.0
1189
- */
1190
- let DEFAULT_CIPHERS: string;
1191
- /**
1192
- * An immutable array of strings representing the root certificates (in PEM format)
1193
- * from the bundled Mozilla CA store as supplied by the current Node.js version.
1194
- *
1195
- * The bundled CA store, as supplied by Node.js, is a snapshot of Mozilla CA store
1196
- * that is fixed at release time. It is identical on all supported platforms.
1197
- * @since v12.3.0
1198
- */
1199
- const rootCertificates: readonly string[];
1200
- }
1201
- declare module "tls" {
1202
- export * from "node:tls";
1203
- }