@xrkseek/harness-cli 0.0.11 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (974) hide show
  1. package/dist/plugin/install-client.d.ts.map +1 -1
  2. package/dist/plugin/install-client.js +80 -2
  3. package/dist/plugin/install-client.js.map +1 -1
  4. package/node_modules/@img/colour/LICENSE.md +82 -0
  5. package/node_modules/@img/colour/README.md +15 -0
  6. package/node_modules/@img/colour/color.cjs +1596 -0
  7. package/node_modules/@img/colour/index.cjs +1 -0
  8. package/node_modules/@img/colour/index.d.ts +929 -0
  9. package/node_modules/@img/colour/package.json +58 -0
  10. package/node_modules/@img/sharp-win32-x64/LICENSE +191 -0
  11. package/node_modules/@img/sharp-win32-x64/README.md +59 -0
  12. package/node_modules/@img/sharp-win32-x64/index.cjs +1 -0
  13. package/node_modules/@img/sharp-win32-x64/lib/libvips-42.dll +0 -0
  14. package/node_modules/@img/sharp-win32-x64/lib/libvips-cpp-8.18.3.dll +0 -0
  15. package/node_modules/@img/sharp-win32-x64/lib/sharp-win32-x64-0.35.3.node +0 -0
  16. package/node_modules/@img/sharp-win32-x64/package.json +40 -0
  17. package/node_modules/@img/sharp-win32-x64/versions.json +30 -0
  18. package/node_modules/@types/node/LICENSE +21 -0
  19. package/node_modules/@types/node/README.md +15 -0
  20. package/node_modules/@types/node/assert/strict.d.ts +111 -0
  21. package/node_modules/@types/node/assert.d.ts +1115 -0
  22. package/node_modules/@types/node/async_hooks.d.ts +623 -0
  23. package/node_modules/@types/node/buffer.buffer.d.ts +472 -0
  24. package/node_modules/@types/node/buffer.d.ts +1934 -0
  25. package/node_modules/@types/node/child_process.d.ts +1476 -0
  26. package/node_modules/@types/node/cluster.d.ts +578 -0
  27. package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  28. package/node_modules/@types/node/console.d.ts +453 -0
  29. package/node_modules/@types/node/constants.d.ts +21 -0
  30. package/node_modules/@types/node/crypto.d.ts +5417 -0
  31. package/node_modules/@types/node/dgram.d.ts +600 -0
  32. package/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
  33. package/node_modules/@types/node/dns/promises.d.ts +503 -0
  34. package/node_modules/@types/node/dns.d.ts +923 -0
  35. package/node_modules/@types/node/domain.d.ts +166 -0
  36. package/node_modules/@types/node/events.d.ts +976 -0
  37. package/node_modules/@types/node/fs/promises.d.ts +1341 -0
  38. package/node_modules/@types/node/fs.d.ts +4714 -0
  39. package/node_modules/@types/node/globals.d.ts +170 -0
  40. package/node_modules/@types/node/globals.typedarray.d.ts +41 -0
  41. package/node_modules/@types/node/http.d.ts +2154 -0
  42. package/node_modules/@types/node/http2.d.ts +2835 -0
  43. package/node_modules/@types/node/https.d.ts +585 -0
  44. package/node_modules/@types/node/index.d.ts +101 -0
  45. package/node_modules/@types/node/inspector.d.ts +277 -0
  46. package/node_modules/@types/node/inspector.generated.d.ts +4239 -0
  47. package/node_modules/@types/node/module.d.ts +843 -0
  48. package/node_modules/@types/node/net.d.ts +1073 -0
  49. package/node_modules/@types/node/os.d.ts +507 -0
  50. package/node_modules/@types/node/package.json +155 -0
  51. package/node_modules/@types/node/path.d.ts +200 -0
  52. package/node_modules/@types/node/perf_hooks.d.ts +1042 -0
  53. package/node_modules/@types/node/process.d.ts +2102 -0
  54. package/node_modules/@types/node/punycode.d.ts +117 -0
  55. package/node_modules/@types/node/querystring.d.ts +152 -0
  56. package/node_modules/@types/node/readline/promises.d.ts +161 -0
  57. package/node_modules/@types/node/readline.d.ts +600 -0
  58. package/node_modules/@types/node/repl.d.ts +438 -0
  59. package/node_modules/@types/node/sea.d.ts +162 -0
  60. package/node_modules/@types/node/sqlite.d.ts +1040 -0
  61. package/node_modules/@types/node/stream/consumers.d.ts +38 -0
  62. package/node_modules/@types/node/stream/promises.d.ts +90 -0
  63. package/node_modules/@types/node/stream/web.d.ts +573 -0
  64. package/node_modules/@types/node/stream.d.ts +1706 -0
  65. package/node_modules/@types/node/string_decoder.d.ts +67 -0
  66. package/node_modules/@types/node/test.d.ts +2349 -0
  67. package/node_modules/@types/node/timers/promises.d.ts +108 -0
  68. package/node_modules/@types/node/timers.d.ts +285 -0
  69. package/node_modules/@types/node/tls.d.ts +1279 -0
  70. package/node_modules/@types/node/trace_events.d.ts +197 -0
  71. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
  72. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  73. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  74. package/node_modules/@types/node/ts5.6/index.d.ts +103 -0
  75. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  76. package/node_modules/@types/node/ts5.7/index.d.ts +103 -0
  77. package/node_modules/@types/node/tty.d.ts +208 -0
  78. package/node_modules/@types/node/url.d.ts +1079 -0
  79. package/node_modules/@types/node/util.d.ts +2336 -0
  80. package/node_modules/@types/node/v8.d.ts +982 -0
  81. package/node_modules/@types/node/vm.d.ts +1195 -0
  82. package/node_modules/@types/node/wasi.d.ts +202 -0
  83. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  84. package/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
  85. package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  86. package/node_modules/@types/node/web-globals/events.d.ts +97 -0
  87. package/node_modules/@types/node/web-globals/fetch.d.ts +62 -0
  88. package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  89. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  90. package/node_modules/@types/node/web-globals/streams.d.ts +22 -0
  91. package/node_modules/@types/node/worker_threads.d.ts +894 -0
  92. package/node_modules/@types/node/zlib.d.ts +745 -0
  93. package/node_modules/@xrkseek/attachment/dist/error.d.ts +3 -2
  94. package/node_modules/@xrkseek/attachment/dist/error.d.ts.map +1 -1
  95. package/node_modules/@xrkseek/attachment/dist/error.js +17 -2
  96. package/node_modules/@xrkseek/attachment/dist/error.js.map +1 -1
  97. package/node_modules/@xrkseek/attachment/dist/index.d.ts +2 -2
  98. package/node_modules/@xrkseek/attachment/dist/index.d.ts.map +1 -1
  99. package/node_modules/@xrkseek/attachment/dist/index.js +1 -1
  100. package/node_modules/@xrkseek/attachment/dist/index.js.map +1 -1
  101. package/node_modules/@xrkseek/attachment/dist/memory.d.ts.map +1 -1
  102. package/node_modules/@xrkseek/attachment/dist/memory.js +6 -0
  103. package/node_modules/@xrkseek/attachment/dist/memory.js.map +1 -1
  104. package/node_modules/@xrkseek/attachment/dist/store.d.ts +6 -1
  105. package/node_modules/@xrkseek/attachment/dist/store.d.ts.map +1 -1
  106. package/node_modules/@xrkseek/attachment/dist/types.d.ts +19 -0
  107. package/node_modules/@xrkseek/attachment/dist/types.d.ts.map +1 -1
  108. package/node_modules/@xrkseek/attachment/dist/types.js.map +1 -1
  109. package/node_modules/@xrkseek/attachment-local/README.md +3 -0
  110. package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.d.ts +18 -0
  111. package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.d.ts.map +1 -0
  112. package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.js +43 -0
  113. package/node_modules/@xrkseek/attachment-local/dist/compression-limiter.js.map +1 -0
  114. package/node_modules/@xrkseek/attachment-local/dist/encoding.d.ts +23 -0
  115. package/node_modules/@xrkseek/attachment-local/dist/encoding.d.ts.map +1 -0
  116. package/node_modules/@xrkseek/attachment-local/dist/encoding.js +33 -0
  117. package/node_modules/@xrkseek/attachment-local/dist/encoding.js.map +1 -0
  118. package/node_modules/@xrkseek/attachment-local/dist/image.d.ts +54 -0
  119. package/node_modules/@xrkseek/attachment-local/dist/image.d.ts.map +1 -0
  120. package/node_modules/@xrkseek/attachment-local/dist/image.js +97 -0
  121. package/node_modules/@xrkseek/attachment-local/dist/image.js.map +1 -0
  122. package/node_modules/@xrkseek/attachment-local/dist/index.d.ts +32 -0
  123. package/node_modules/@xrkseek/attachment-local/dist/index.d.ts.map +1 -0
  124. package/node_modules/@xrkseek/attachment-local/dist/index.js +188 -0
  125. package/node_modules/@xrkseek/attachment-local/dist/index.js.map +1 -0
  126. package/node_modules/@xrkseek/attachment-local/dist/normalization.d.ts +44 -0
  127. package/node_modules/@xrkseek/attachment-local/dist/normalization.d.ts.map +1 -0
  128. package/node_modules/@xrkseek/attachment-local/dist/normalization.js +148 -0
  129. package/node_modules/@xrkseek/attachment-local/dist/normalization.js.map +1 -0
  130. package/node_modules/@xrkseek/attachment-local/dist/request-image.d.ts +34 -0
  131. package/node_modules/@xrkseek/attachment-local/dist/request-image.d.ts.map +1 -0
  132. package/node_modules/@xrkseek/attachment-local/dist/request-image.js +208 -0
  133. package/node_modules/@xrkseek/attachment-local/dist/request-image.js.map +1 -0
  134. package/node_modules/@xrkseek/attachment-local/dist/store.d.ts +58 -0
  135. package/node_modules/@xrkseek/attachment-local/dist/store.d.ts.map +1 -0
  136. package/node_modules/@xrkseek/attachment-local/dist/store.js +290 -0
  137. package/node_modules/@xrkseek/attachment-local/dist/store.js.map +1 -0
  138. package/node_modules/@xrkseek/attachment-local/package.json +25 -0
  139. package/node_modules/@xrkseek/exec-fs/dist/index.d.ts +3 -0
  140. package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
  141. package/node_modules/@xrkseek/exec-fs/dist/index.js +10 -0
  142. package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
  143. package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts +35 -0
  144. package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts.map +1 -0
  145. package/node_modules/@xrkseek/exec-fs/dist/read-image.js +120 -0
  146. package/node_modules/@xrkseek/exec-fs/dist/read-image.js.map +1 -0
  147. package/node_modules/@xrkseek/exec-fs/package.json +3 -1
  148. package/node_modules/@xrkseek/llm/dist/index.d.ts +1 -0
  149. package/node_modules/@xrkseek/llm/dist/index.d.ts.map +1 -1
  150. package/node_modules/@xrkseek/llm/dist/index.js.map +1 -1
  151. package/node_modules/@xrkseek/llm-deepseek/README.md +3 -1
  152. package/node_modules/@xrkseek/llm-deepseek/dist/file-id.d.ts +10 -0
  153. package/node_modules/@xrkseek/llm-deepseek/dist/file-id.d.ts.map +1 -0
  154. package/node_modules/@xrkseek/llm-deepseek/dist/file-id.js +8 -0
  155. package/node_modules/@xrkseek/llm-deepseek/dist/file-id.js.map +1 -0
  156. package/node_modules/@xrkseek/llm-deepseek/dist/file-store.d.ts +40 -0
  157. package/node_modules/@xrkseek/llm-deepseek/dist/file-store.d.ts.map +1 -0
  158. package/node_modules/@xrkseek/llm-deepseek/dist/file-store.js +164 -0
  159. package/node_modules/@xrkseek/llm-deepseek/dist/file-store.js.map +1 -0
  160. package/node_modules/@xrkseek/llm-deepseek/dist/files-api.d.ts +56 -0
  161. package/node_modules/@xrkseek/llm-deepseek/dist/files-api.d.ts.map +1 -0
  162. package/node_modules/@xrkseek/llm-deepseek/dist/files-api.js +180 -0
  163. package/node_modules/@xrkseek/llm-deepseek/dist/files-api.js.map +1 -0
  164. package/node_modules/@xrkseek/llm-deepseek/dist/index.d.ts +15 -6
  165. package/node_modules/@xrkseek/llm-deepseek/dist/index.d.ts.map +1 -1
  166. package/node_modules/@xrkseek/llm-deepseek/dist/index.js +63 -13
  167. package/node_modules/@xrkseek/llm-deepseek/dist/index.js.map +1 -1
  168. package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.d.ts +8 -0
  169. package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.d.ts.map +1 -0
  170. package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.js +12 -0
  171. package/node_modules/@xrkseek/llm-deepseek/dist/request-policy.js.map +1 -0
  172. package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.d.ts +28 -0
  173. package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.d.ts.map +1 -0
  174. package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.js +142 -0
  175. package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.js.map +1 -0
  176. package/node_modules/@xrkseek/llm-deepseek/package.json +3 -1
  177. package/node_modules/@xrkseek/llm-openai-compatible/dist/index.d.ts +27 -0
  178. package/node_modules/@xrkseek/llm-openai-compatible/dist/index.d.ts.map +1 -1
  179. package/node_modules/@xrkseek/llm-openai-compatible/dist/index.js +20 -5
  180. package/node_modules/@xrkseek/llm-openai-compatible/dist/index.js.map +1 -1
  181. package/node_modules/@xrkseek/llm-registry/dist/registry.d.ts +1 -0
  182. package/node_modules/@xrkseek/llm-registry/dist/registry.d.ts.map +1 -1
  183. package/node_modules/@xrkseek/llm-registry/dist/registry.js +15 -1
  184. package/node_modules/@xrkseek/llm-registry/dist/registry.js.map +1 -1
  185. package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +5 -0
  186. package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
  187. package/node_modules/@xrkseek/preset-harness/dist/preset.js +10 -1
  188. package/node_modules/@xrkseek/preset-harness/dist/preset.js.map +1 -1
  189. package/node_modules/@xrkseek/preset-harness/dist/tsconfig.tsbuildinfo +1 -1
  190. package/node_modules/@xrkseek/preset-harness/package.json +1 -0
  191. package/node_modules/@xrkseek/preset-minimal/dist/tsconfig.tsbuildinfo +1 -1
  192. package/node_modules/@xrkseek/preset-server/dist/preset.d.ts.map +1 -1
  193. package/node_modules/@xrkseek/preset-server/dist/preset.js +3 -1
  194. package/node_modules/@xrkseek/preset-server/dist/preset.js.map +1 -1
  195. package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
  196. package/node_modules/@xrkseek/protocol/dist/content.d.ts +5 -0
  197. package/node_modules/@xrkseek/protocol/dist/content.d.ts.map +1 -1
  198. package/node_modules/@xrkseek/protocol/dist/content.js +8 -1
  199. package/node_modules/@xrkseek/protocol/dist/content.js.map +1 -1
  200. package/node_modules/@xrkseek/server-face/dist/context.d.ts +6 -3
  201. package/node_modules/@xrkseek/server-face/dist/context.d.ts.map +1 -1
  202. package/node_modules/@xrkseek/server-face/dist/cordis-bridge.d.ts +9 -0
  203. package/node_modules/@xrkseek/server-face/dist/cordis-bridge.d.ts.map +1 -0
  204. package/node_modules/@xrkseek/server-face/dist/cordis-bridge.js +28 -0
  205. package/node_modules/@xrkseek/server-face/dist/cordis-bridge.js.map +1 -0
  206. package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.d.ts +16 -0
  207. package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.d.ts.map +1 -0
  208. package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.js +141 -0
  209. package/node_modules/@xrkseek/server-face/dist/cost-meter-balance.js.map +1 -0
  210. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.d.ts +13 -0
  211. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.d.ts.map +1 -0
  212. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.js +158 -0
  213. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plan-service.js.map +1 -0
  214. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.d.ts +284 -0
  215. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.d.ts.map +1 -0
  216. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.js +696 -0
  217. package/node_modules/@xrkseek/server-face/dist/cost-meter-coding-plans.js.map +1 -0
  218. package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.d.ts +15 -0
  219. package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.d.ts.map +1 -0
  220. package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.js +196 -0
  221. package/node_modules/@xrkseek/server-face/dist/cost-meter-custom-balance.js.map +1 -0
  222. package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.d.ts +19 -0
  223. package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.d.ts.map +1 -0
  224. package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.js +143 -0
  225. package/node_modules/@xrkseek/server-face/dist/cost-meter-go-quota.js.map +1 -0
  226. package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.d.ts +16 -0
  227. package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.d.ts.map +1 -0
  228. package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.js +84 -0
  229. package/node_modules/@xrkseek/server-face/dist/cost-meter-pricing.js.map +1 -0
  230. package/node_modules/@xrkseek/server-face/dist/cost-meter-record.d.ts +19 -0
  231. package/node_modules/@xrkseek/server-face/dist/cost-meter-record.d.ts.map +1 -0
  232. package/node_modules/@xrkseek/server-face/dist/cost-meter-record.js +221 -0
  233. package/node_modules/@xrkseek/server-face/dist/cost-meter-record.js.map +1 -0
  234. package/node_modules/@xrkseek/server-face/dist/cost-meter-store.d.ts +133 -0
  235. package/node_modules/@xrkseek/server-face/dist/cost-meter-store.d.ts.map +1 -0
  236. package/node_modules/@xrkseek/server-face/dist/cost-meter-store.js +561 -0
  237. package/node_modules/@xrkseek/server-face/dist/cost-meter-store.js.map +1 -0
  238. package/node_modules/@xrkseek/server-face/dist/dispatch.d.ts.map +1 -1
  239. package/node_modules/@xrkseek/server-face/dist/dispatch.js +15 -0
  240. package/node_modules/@xrkseek/server-face/dist/dispatch.js.map +1 -1
  241. package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.d.ts +0 -5
  242. package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.d.ts.map +1 -1
  243. package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.js +277 -24
  244. package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.js.map +1 -1
  245. package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.d.ts +30 -0
  246. package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.d.ts.map +1 -0
  247. package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.js +48 -0
  248. package/node_modules/@xrkseek/server-face/dist/handlers/cost-meter.js.map +1 -0
  249. package/node_modules/@xrkseek/server-face/dist/handlers/references.d.ts +6 -0
  250. package/node_modules/@xrkseek/server-face/dist/handlers/references.d.ts.map +1 -0
  251. package/node_modules/@xrkseek/server-face/dist/handlers/references.js +42 -0
  252. package/node_modules/@xrkseek/server-face/dist/handlers/references.js.map +1 -0
  253. package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.d.ts +6 -0
  254. package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.d.ts.map +1 -0
  255. package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.js +24 -0
  256. package/node_modules/@xrkseek/server-face/dist/handlers/staged-client-code.js.map +1 -0
  257. package/node_modules/@xrkseek/server-face/dist/index.d.ts +1 -0
  258. package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
  259. package/node_modules/@xrkseek/server-face/dist/index.js +1 -0
  260. package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
  261. package/node_modules/@xrkseek/server-face/dist/llm-resolve.d.ts.map +1 -1
  262. package/node_modules/@xrkseek/server-face/dist/llm-resolve.js +5 -3
  263. package/node_modules/@xrkseek/server-face/dist/llm-resolve.js.map +1 -1
  264. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts +2 -2
  265. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts.map +1 -1
  266. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js +7 -3
  267. package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js.map +1 -1
  268. package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts +2 -0
  269. package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts.map +1 -1
  270. package/node_modules/@xrkseek/server-face/dist/projections/index.js +2 -0
  271. package/node_modules/@xrkseek/server-face/dist/projections/index.js.map +1 -1
  272. package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.d.ts.map +1 -1
  273. package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.js +12 -0
  274. package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.js.map +1 -1
  275. package/node_modules/@xrkseek/server-face/dist/projections/registry.d.ts +45 -0
  276. package/node_modules/@xrkseek/server-face/dist/projections/registry.d.ts.map +1 -1
  277. package/node_modules/@xrkseek/server-face/dist/projections/registry.js.map +1 -1
  278. package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.d.ts +40 -0
  279. package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.d.ts.map +1 -0
  280. package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.js +103 -0
  281. package/node_modules/@xrkseek/server-face/dist/projections/units/auto-review.js.map +1 -0
  282. package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.d.ts +9 -0
  283. package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.d.ts.map +1 -0
  284. package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.js +24 -0
  285. package/node_modules/@xrkseek/server-face/dist/projections/units/context-headers.js.map +1 -0
  286. package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.d.ts +37 -0
  287. package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.d.ts.map +1 -0
  288. package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js +109 -0
  289. package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js.map +1 -0
  290. package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.d.ts +35 -0
  291. package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.d.ts.map +1 -0
  292. package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.js +151 -0
  293. package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.js.map +1 -0
  294. package/node_modules/@xrkseek/server-face/dist/reference-discovery.d.ts +13 -0
  295. package/node_modules/@xrkseek/server-face/dist/reference-discovery.d.ts.map +1 -0
  296. package/node_modules/@xrkseek/server-face/dist/reference-discovery.js +81 -0
  297. package/node_modules/@xrkseek/server-face/dist/reference-discovery.js.map +1 -0
  298. package/node_modules/@xrkseek/server-face/dist/runtime.d.ts +5 -1
  299. package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
  300. package/node_modules/@xrkseek/server-face/dist/runtime.js +25 -0
  301. package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
  302. package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts +15 -0
  303. package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts.map +1 -1
  304. package/node_modules/@xrkseek/server-face/dist/settings-credentials.js.map +1 -1
  305. package/node_modules/@xrkseek/server-face/dist/slash.d.ts.map +1 -1
  306. package/node_modules/@xrkseek/server-face/dist/slash.js +19 -0
  307. package/node_modules/@xrkseek/server-face/dist/slash.js.map +1 -1
  308. package/node_modules/@xrkseek/server-face/dist/wire/paths.d.ts.map +1 -1
  309. package/node_modules/@xrkseek/server-face/dist/wire/paths.js +3 -0
  310. package/node_modules/@xrkseek/server-face/dist/wire/paths.js.map +1 -1
  311. package/node_modules/@xrkseek/server-face/package.json +3 -0
  312. package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.d.ts +4 -0
  313. package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.d.ts.map +1 -0
  314. package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.js +10 -0
  315. package/node_modules/@xrkseek/server-host/dist/auto-review-bridge.js.map +1 -0
  316. package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.d.ts +11 -0
  317. package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.d.ts.map +1 -0
  318. package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.js +29 -0
  319. package/node_modules/@xrkseek/server-host/dist/cost-meter-bridge.js.map +1 -0
  320. package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.d.ts +15 -0
  321. package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.d.ts.map +1 -0
  322. package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.js +34 -0
  323. package/node_modules/@xrkseek/server-host/dist/harness-connector-bridge.js.map +1 -0
  324. package/node_modules/@xrkseek/server-host/dist/index.d.ts +6 -1
  325. package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
  326. package/node_modules/@xrkseek/server-host/dist/index.js +126 -19
  327. package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
  328. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts +17 -0
  329. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts.map +1 -0
  330. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js +201 -0
  331. package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js.map +1 -0
  332. package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.d.ts +10 -0
  333. package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.d.ts.map +1 -0
  334. package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.js +31 -0
  335. package/node_modules/@xrkseek/server-host/dist/usage-stats-bridge.js.map +1 -0
  336. package/node_modules/@xrkseek/server-host/dist/wallet-bridge.d.ts +7 -0
  337. package/node_modules/@xrkseek/server-host/dist/wallet-bridge.d.ts.map +1 -0
  338. package/node_modules/@xrkseek/server-host/dist/wallet-bridge.js +40 -0
  339. package/node_modules/@xrkseek/server-host/dist/wallet-bridge.js.map +1 -0
  340. package/node_modules/@xrkseek/server-host/package.json +8 -1
  341. package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts +12 -0
  342. package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts.map +1 -1
  343. package/node_modules/@xrkseek/server-http/dist/boot-inject.js +54 -0
  344. package/node_modules/@xrkseek/server-http/dist/boot-inject.js.map +1 -1
  345. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.d.ts +6 -0
  346. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.d.ts.map +1 -0
  347. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.js +141 -0
  348. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-compose.js.map +1 -0
  349. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.d.ts +3 -0
  350. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.d.ts.map +1 -0
  351. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js +445 -0
  352. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js.map +1 -0
  353. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.d.ts +7 -0
  354. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.d.ts.map +1 -0
  355. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.js +15 -0
  356. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-registry.js.map +1 -0
  357. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts +57 -0
  358. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts.map +1 -0
  359. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.js +2 -0
  360. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.js.map +1 -0
  361. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.d.ts +10 -0
  362. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.d.ts.map +1 -0
  363. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.js +275 -0
  364. package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapters/builtin.js.map +1 -0
  365. package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.d.ts +10 -0
  366. package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.d.ts.map +1 -0
  367. package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js +41 -0
  368. package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js.map +1 -0
  369. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.d.ts +17 -0
  370. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.d.ts.map +1 -0
  371. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js +184 -0
  372. package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js.map +1 -0
  373. package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.d.ts +5 -0
  374. package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.d.ts.map +1 -0
  375. package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.js +5 -0
  376. package/node_modules/@xrkseek/server-http/dist/dsh-compat/barrel.js.map +1 -0
  377. package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.d.ts +21 -0
  378. package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.d.ts.map +1 -0
  379. package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.js +122 -0
  380. package/node_modules/@xrkseek/server-http/dist/dsh-compat/bundle-chunk-stub.js.map +1 -0
  381. package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.d.ts +10 -0
  382. package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.d.ts.map +1 -0
  383. package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js +58 -0
  384. package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js.map +1 -0
  385. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts +7 -0
  386. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts.map +1 -0
  387. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js +59 -0
  388. package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js.map +1 -0
  389. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.d.ts +25 -0
  390. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.d.ts.map +1 -0
  391. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.js +154 -0
  392. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-runner.js.map +1 -0
  393. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.d.ts +2 -0
  394. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.d.ts.map +1 -0
  395. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.js +77 -0
  396. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-fiber-worker.js.map +1 -0
  397. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.d.ts +16 -0
  398. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.d.ts.map +1 -0
  399. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js +121 -0
  400. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js.map +1 -0
  401. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.d.ts +12 -0
  402. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.d.ts.map +1 -0
  403. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.js +48 -0
  404. package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-settings-fallback.js.map +1 -0
  405. package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.d.ts +18 -0
  406. package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.d.ts.map +1 -0
  407. package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.js +62 -0
  408. package/node_modules/@xrkseek/server-http/dist/dsh-compat/create-host-plugin.js.map +1 -0
  409. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.d.ts +9 -0
  410. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.d.ts.map +1 -0
  411. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.js +42 -0
  412. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dream-skin.js.map +1 -0
  413. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.d.ts +6 -0
  414. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.d.ts.map +1 -0
  415. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js +88 -0
  416. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js.map +1 -0
  417. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.d.ts +9 -0
  418. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.d.ts.map +1 -0
  419. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.js +67 -0
  420. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-community-infer.js.map +1 -0
  421. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts +18 -0
  422. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts.map +1 -0
  423. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js +198 -0
  424. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js.map +1 -0
  425. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.d.ts +27 -0
  426. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.d.ts.map +1 -0
  427. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.js +71 -0
  428. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-upgrades.js.map +1 -0
  429. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.d.ts +8 -0
  430. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.d.ts.map +1 -0
  431. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.js +12 -0
  432. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-envelope.js.map +1 -0
  433. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.d.ts +2 -0
  434. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.d.ts.map +1 -0
  435. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.js +6 -0
  436. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-package-names.js.map +1 -0
  437. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.d.ts +22 -0
  438. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.d.ts.map +1 -0
  439. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js +219 -0
  440. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js.map +1 -0
  441. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.d.ts +4 -0
  442. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.d.ts.map +1 -0
  443. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.js +53 -0
  444. package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-plugin-presets.js.map +1 -0
  445. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts +11 -0
  446. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts.map +1 -0
  447. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js +61 -0
  448. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js.map +1 -0
  449. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts +7 -0
  450. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts.map +1 -0
  451. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js +150 -0
  452. package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js.map +1 -0
  453. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.d.ts +10 -0
  454. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.d.ts.map +1 -0
  455. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js +239 -0
  456. package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js.map +1 -0
  457. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.d.ts +22 -0
  458. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.d.ts.map +1 -0
  459. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.js +83 -0
  460. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector-store.js.map +1 -0
  461. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.d.ts +18 -0
  462. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.d.ts.map +1 -0
  463. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.js +191 -0
  464. package/node_modules/@xrkseek/server-http/dist/dsh-compat/harness-connector.js.map +1 -0
  465. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.d.ts +21 -0
  466. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.d.ts.map +1 -0
  467. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.js +105 -0
  468. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.js.map +1 -0
  469. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.d.ts +7 -0
  470. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.d.ts.map +1 -0
  471. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js +57 -0
  472. package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js.map +1 -0
  473. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.d.ts +6 -0
  474. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.d.ts.map +1 -0
  475. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.js +74 -0
  476. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-bridge.js.map +1 -0
  477. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.d.ts +14 -0
  478. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.d.ts.map +1 -0
  479. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.js +17 -0
  480. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-apply-registry.js.map +1 -0
  481. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.d.ts +76 -0
  482. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.d.ts.map +1 -0
  483. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.js +551 -0
  484. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-feature-bridge.js.map +1 -0
  485. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.d.ts +7 -0
  486. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.d.ts.map +1 -0
  487. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.js +136 -0
  488. package/node_modules/@xrkseek/server-http/dist/dsh-compat/host-manifest.js.map +1 -0
  489. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.d.ts +21 -0
  490. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.d.ts.map +1 -0
  491. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.js +281 -0
  492. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.js.map +1 -0
  493. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.d.ts +16 -0
  494. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.d.ts.map +1 -0
  495. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.js +163 -0
  496. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-messaging-bridge.js.map +1 -0
  497. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.d.ts +5 -0
  498. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.d.ts.map +1 -0
  499. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.js +125 -0
  500. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.js.map +1 -0
  501. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.d.ts +17 -0
  502. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.d.ts.map +1 -0
  503. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.js +188 -0
  504. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-provision-bridge.js.map +1 -0
  505. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.d.ts +9 -0
  506. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.d.ts.map +1 -0
  507. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.js +55 -0
  508. package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-rpc-adapter.js.map +1 -0
  509. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts +37 -0
  510. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts.map +1 -0
  511. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js +36 -0
  512. package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js.map +1 -0
  513. package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.d.ts +5 -0
  514. package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.d.ts.map +1 -0
  515. package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.js +28 -0
  516. package/node_modules/@xrkseek/server-http/dist/dsh-compat/json-store.js.map +1 -0
  517. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.d.ts +7 -0
  518. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.d.ts.map +1 -0
  519. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.js +108 -0
  520. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market-adapter.js.map +1 -0
  521. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts +7 -0
  522. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts.map +1 -0
  523. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js +218 -0
  524. package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js.map +1 -0
  525. package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.d.ts +10 -0
  526. package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.d.ts.map +1 -0
  527. package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.js +81 -0
  528. package/node_modules/@xrkseek/server-http/dist/dsh-compat/memento.js.map +1 -0
  529. package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.d.ts +10 -0
  530. package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.d.ts.map +1 -0
  531. package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.js +15 -0
  532. package/node_modules/@xrkseek/server-http/dist/dsh-compat/meta.js.map +1 -0
  533. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.d.ts +8 -0
  534. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.d.ts.map +1 -0
  535. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.js +83 -0
  536. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-adapter.js.map +1 -0
  537. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.d.ts +9 -0
  538. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.d.ts.map +1 -0
  539. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.js +144 -0
  540. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-shapes.js.map +1 -0
  541. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts +17 -0
  542. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts.map +1 -0
  543. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js +52 -0
  544. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js.map +1 -0
  545. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts +11 -0
  546. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts.map +1 -0
  547. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js +221 -0
  548. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js.map +1 -0
  549. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.d.ts +22 -0
  550. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.d.ts.map +1 -0
  551. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.js +155 -0
  552. package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.js.map +1 -0
  553. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts +14 -0
  554. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts.map +1 -0
  555. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js +213 -0
  556. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js.map +1 -0
  557. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.d.ts +14 -0
  558. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.d.ts.map +1 -0
  559. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.js +200 -0
  560. package/node_modules/@xrkseek/server-http/dist/dsh-compat/modsearch.js.map +1 -0
  561. package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.d.ts +11 -0
  562. package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.d.ts.map +1 -0
  563. package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.js +200 -0
  564. package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.js.map +1 -0
  565. package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.d.ts +6 -0
  566. package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.d.ts.map +1 -0
  567. package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.js +47 -0
  568. package/node_modules/@xrkseek/server-http/dist/dsh-compat/persisted-settings-store.js.map +1 -0
  569. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.d.ts +15 -0
  570. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.d.ts.map +1 -0
  571. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.js +132 -0
  572. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-host-manifest.js.map +1 -0
  573. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.d.ts +13 -0
  574. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.d.ts.map +1 -0
  575. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.js +336 -0
  576. package/node_modules/@xrkseek/server-http/dist/dsh-compat/plugin-surface-adapter.js.map +1 -0
  577. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.d.ts +10 -0
  578. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.d.ts.map +1 -0
  579. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.js +86 -0
  580. package/node_modules/@xrkseek/server-http/dist/dsh-compat/pocket.js.map +1 -0
  581. package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.d.ts +8 -0
  582. package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.d.ts.map +1 -0
  583. package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.js +34 -0
  584. package/node_modules/@xrkseek/server-http/dist/dsh-compat/releases.js.map +1 -0
  585. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.d.ts +4 -0
  586. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.d.ts.map +1 -0
  587. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js +170 -0
  588. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js.map +1 -0
  589. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.d.ts +33 -0
  590. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.d.ts.map +1 -0
  591. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js +108 -0
  592. package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js.map +1 -0
  593. package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.d.ts +10 -0
  594. package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.d.ts.map +1 -0
  595. package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.js +38 -0
  596. package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.js.map +1 -0
  597. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.d.ts +10 -0
  598. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.d.ts.map +1 -0
  599. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.js +358 -0
  600. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-adapter.js.map +1 -0
  601. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.d.ts +25 -0
  602. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.d.ts.map +1 -0
  603. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.js +78 -0
  604. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-git.js.map +1 -0
  605. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.d.ts +9 -0
  606. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.d.ts.map +1 -0
  607. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.js +56 -0
  608. package/node_modules/@xrkseek/server-http/dist/dsh-compat/sidebar-prefs-store.js.map +1 -0
  609. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts +11 -0
  610. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts.map +1 -0
  611. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js +106 -0
  612. package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js.map +1 -0
  613. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.d.ts +18 -0
  614. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.d.ts.map +1 -0
  615. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.js +240 -0
  616. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surface-registry.js.map +1 -0
  617. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.d.ts +5 -0
  618. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.d.ts.map +1 -0
  619. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.js +78 -0
  620. package/node_modules/@xrkseek/server-http/dist/dsh-compat/surfaces.js.map +1 -0
  621. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.d.ts +42 -0
  622. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.d.ts.map +1 -0
  623. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.js +117 -0
  624. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tokenledger.js.map +1 -0
  625. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.d.ts +11 -0
  626. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.d.ts.map +1 -0
  627. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.js +111 -0
  628. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.js.map +1 -0
  629. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.d.ts +16 -0
  630. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.d.ts.map +1 -0
  631. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js +455 -0
  632. package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js.map +1 -0
  633. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.d.ts +26 -0
  634. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.d.ts.map +1 -0
  635. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.js +22 -0
  636. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-store.js.map +1 -0
  637. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.d.ts +12 -0
  638. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.d.ts.map +1 -0
  639. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.js +123 -0
  640. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind-workspace.js.map +1 -0
  641. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.d.ts +16 -0
  642. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.d.ts.map +1 -0
  643. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.js +99 -0
  644. package/node_modules/@xrkseek/server-http/dist/dsh-compat/turn-rewind.js.map +1 -0
  645. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.d.ts +106 -0
  646. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.d.ts.map +1 -0
  647. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.js +6 -0
  648. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/contracts/wallet-port.js.map +1 -0
  649. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.d.ts +14 -0
  650. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.d.ts.map +1 -0
  651. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.js +21 -0
  652. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/doc-store.js.map +1 -0
  653. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.d.ts +9 -0
  654. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.d.ts.map +1 -0
  655. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.js +22 -0
  656. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-kit.js.map +1 -0
  657. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts +22 -0
  658. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts.map +1 -0
  659. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js +13 -0
  660. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js.map +1 -0
  661. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.d.ts +21 -0
  662. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.d.ts.map +1 -0
  663. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.js +190 -0
  664. package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/wallet-service.js.map +1 -0
  665. package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.d.ts +10 -0
  666. package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.d.ts.map +1 -0
  667. package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.js +438 -0
  668. package/node_modules/@xrkseek/server-http/dist/dsh-compat/undo.js.map +1 -0
  669. package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.d.ts +8 -0
  670. package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.d.ts.map +1 -0
  671. package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.js +69 -0
  672. package/node_modules/@xrkseek/server-http/dist/dsh-compat/usage-stats.js.map +1 -0
  673. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.d.ts +6 -0
  674. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.d.ts.map +1 -0
  675. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.js +62 -0
  676. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-adapter.js.map +1 -0
  677. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.d.ts +5 -0
  678. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.d.ts.map +1 -0
  679. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.js +17 -0
  680. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-defaults.js.map +1 -0
  681. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.d.ts +7 -0
  682. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.d.ts.map +1 -0
  683. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.js +67 -0
  684. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision-router-adapter.js.map +1 -0
  685. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.d.ts +12 -0
  686. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.d.ts.map +1 -0
  687. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.js +198 -0
  688. package/node_modules/@xrkseek/server-http/dist/dsh-compat/vision.js.map +1 -0
  689. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.d.ts +15 -0
  690. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.d.ts.map +1 -0
  691. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.js +111 -0
  692. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallet.js.map +1 -0
  693. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts +9 -0
  694. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts.map +1 -0
  695. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js +161 -0
  696. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js.map +1 -0
  697. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.d.ts +6 -0
  698. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.d.ts.map +1 -0
  699. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.js +31 -0
  700. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/settings-provider.js.map +1 -0
  701. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts +9 -0
  702. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts.map +1 -0
  703. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js +103 -0
  704. package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js.map +1 -0
  705. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.d.ts +49 -0
  706. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.d.ts.map +1 -0
  707. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.js +190 -0
  708. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-host-apply.js.map +1 -0
  709. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.d.ts +9 -0
  710. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.d.ts.map +1 -0
  711. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.js +44 -0
  712. package/node_modules/@xrkseek/server-http/dist/dsh-compat/xrk-json-store.js.map +1 -0
  713. package/node_modules/@xrkseek/server-http/dist/dsh-compat.d.ts +6 -0
  714. package/node_modules/@xrkseek/server-http/dist/dsh-compat.d.ts.map +1 -0
  715. package/node_modules/@xrkseek/server-http/dist/dsh-compat.js +6 -0
  716. package/node_modules/@xrkseek/server-http/dist/dsh-compat.js.map +1 -0
  717. package/node_modules/@xrkseek/server-http/dist/host-wire.d.ts +14 -0
  718. package/node_modules/@xrkseek/server-http/dist/host-wire.d.ts.map +1 -0
  719. package/node_modules/@xrkseek/server-http/dist/host-wire.js +15 -0
  720. package/node_modules/@xrkseek/server-http/dist/host-wire.js.map +1 -0
  721. package/node_modules/@xrkseek/server-http/dist/http-json.d.ts +12 -0
  722. package/node_modules/@xrkseek/server-http/dist/http-json.d.ts.map +1 -0
  723. package/node_modules/@xrkseek/server-http/dist/http-json.js +40 -0
  724. package/node_modules/@xrkseek/server-http/dist/http-json.js.map +1 -0
  725. package/node_modules/@xrkseek/server-http/dist/index.d.ts +12 -1
  726. package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
  727. package/node_modules/@xrkseek/server-http/dist/index.js +12 -1
  728. package/node_modules/@xrkseek/server-http/dist/index.js.map +1 -1
  729. package/node_modules/@xrkseek/server-http/dist/public-routes.d.ts +19 -0
  730. package/node_modules/@xrkseek/server-http/dist/public-routes.d.ts.map +1 -0
  731. package/node_modules/@xrkseek/server-http/dist/public-routes.js +34 -0
  732. package/node_modules/@xrkseek/server-http/dist/public-routes.js.map +1 -0
  733. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts +13 -0
  734. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts.map +1 -0
  735. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js +58 -0
  736. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js.map +1 -0
  737. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.d.ts +16 -0
  738. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.d.ts.map +1 -0
  739. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.js +49 -0
  740. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.js.map +1 -0
  741. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.d.ts +35 -0
  742. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.d.ts.map +1 -0
  743. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.js +103 -0
  744. package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.js.map +1 -0
  745. package/node_modules/@xrkseek/server-http/package.json +2 -1
  746. package/node_modules/@xrkseek/server-loader/dist/host.d.ts +6 -0
  747. package/node_modules/@xrkseek/server-loader/dist/host.d.ts.map +1 -0
  748. package/node_modules/@xrkseek/server-loader/dist/host.js +11 -0
  749. package/node_modules/@xrkseek/server-loader/dist/host.js.map +1 -0
  750. package/node_modules/@xrkseek/server-loader/dist/index.d.ts +2 -1
  751. package/node_modules/@xrkseek/server-loader/dist/index.d.ts.map +1 -1
  752. package/node_modules/@xrkseek/server-loader/dist/index.js +1 -0
  753. package/node_modules/@xrkseek/server-loader/dist/index.js.map +1 -1
  754. package/node_modules/@xrkseek/server-loader/dist/kinds.d.ts +5 -0
  755. package/node_modules/@xrkseek/server-loader/dist/kinds.d.ts.map +1 -1
  756. package/node_modules/@xrkseek/server-loader/dist/kinds.js +5 -0
  757. package/node_modules/@xrkseek/server-loader/dist/kinds.js.map +1 -1
  758. package/node_modules/@xrkseek/server-loader/dist/load.d.ts.map +1 -1
  759. package/node_modules/@xrkseek/server-loader/dist/load.js +5 -0
  760. package/node_modules/@xrkseek/server-loader/dist/load.js.map +1 -1
  761. package/node_modules/@xrkseek/server-loader/dist/types.d.ts +40 -0
  762. package/node_modules/@xrkseek/server-loader/dist/types.d.ts.map +1 -1
  763. package/node_modules/@xrkseek/xrk-file-reference/README.i18n.yaml +6 -0
  764. package/node_modules/@xrkseek/xrk-file-reference/README.md +22 -0
  765. package/node_modules/@xrkseek/xrk-file-reference/README.zh.md +22 -0
  766. package/node_modules/@xrkseek/xrk-file-reference/package.json +68 -0
  767. package/node_modules/@xrkseek/xrk-file-reference-local/README.i18n.yaml +6 -0
  768. package/node_modules/@xrkseek/xrk-file-reference-local/README.md +45 -0
  769. package/node_modules/@xrkseek/xrk-file-reference-local/README.zh.md +45 -0
  770. package/node_modules/@xrkseek/xrk-file-reference-local/package.json +56 -0
  771. package/node_modules/@xrkseek/xrk-session-reference/README.i18n.yaml +6 -0
  772. package/node_modules/@xrkseek/xrk-session-reference/README.md +50 -0
  773. package/node_modules/@xrkseek/xrk-session-reference/README.zh.md +50 -0
  774. package/node_modules/@xrkseek/xrk-session-reference/package.json +79 -0
  775. package/node_modules/detect-libc/LICENSE +201 -0
  776. package/node_modules/detect-libc/README.md +163 -0
  777. package/node_modules/detect-libc/index.d.ts +14 -0
  778. package/node_modules/detect-libc/lib/detect-libc.js +313 -0
  779. package/node_modules/detect-libc/lib/elf.js +39 -0
  780. package/node_modules/detect-libc/lib/filesystem.js +51 -0
  781. package/node_modules/detect-libc/lib/process.js +24 -0
  782. package/node_modules/detect-libc/package.json +44 -0
  783. package/node_modules/semver/LICENSE +15 -0
  784. package/node_modules/semver/README.md +680 -0
  785. package/node_modules/semver/bin/semver.js +195 -0
  786. package/node_modules/semver/classes/comparator.js +143 -0
  787. package/node_modules/semver/classes/index.js +7 -0
  788. package/node_modules/semver/classes/range.js +577 -0
  789. package/node_modules/semver/classes/semver.js +350 -0
  790. package/node_modules/semver/functions/clean.js +8 -0
  791. package/node_modules/semver/functions/cmp.js +54 -0
  792. package/node_modules/semver/functions/coerce.js +62 -0
  793. package/node_modules/semver/functions/compare-build.js +9 -0
  794. package/node_modules/semver/functions/compare-loose.js +5 -0
  795. package/node_modules/semver/functions/compare.js +7 -0
  796. package/node_modules/semver/functions/diff.js +60 -0
  797. package/node_modules/semver/functions/eq.js +5 -0
  798. package/node_modules/semver/functions/gt.js +5 -0
  799. package/node_modules/semver/functions/gte.js +5 -0
  800. package/node_modules/semver/functions/inc.js +21 -0
  801. package/node_modules/semver/functions/lt.js +5 -0
  802. package/node_modules/semver/functions/lte.js +5 -0
  803. package/node_modules/semver/functions/major.js +5 -0
  804. package/node_modules/semver/functions/minor.js +5 -0
  805. package/node_modules/semver/functions/neq.js +5 -0
  806. package/node_modules/semver/functions/parse.js +18 -0
  807. package/node_modules/semver/functions/patch.js +5 -0
  808. package/node_modules/semver/functions/prerelease.js +8 -0
  809. package/node_modules/semver/functions/rcompare.js +5 -0
  810. package/node_modules/semver/functions/rsort.js +5 -0
  811. package/node_modules/semver/functions/satisfies.js +12 -0
  812. package/node_modules/semver/functions/sort.js +5 -0
  813. package/node_modules/semver/functions/truncate.js +48 -0
  814. package/node_modules/semver/functions/valid.js +8 -0
  815. package/node_modules/semver/index.js +93 -0
  816. package/node_modules/semver/internal/constants.js +37 -0
  817. package/node_modules/semver/internal/debug.js +11 -0
  818. package/node_modules/semver/internal/identifiers.js +29 -0
  819. package/node_modules/semver/internal/lrucache.js +42 -0
  820. package/node_modules/semver/internal/parse-options.js +17 -0
  821. package/node_modules/semver/internal/re.js +223 -0
  822. package/node_modules/semver/package.json +78 -0
  823. package/node_modules/semver/preload.js +4 -0
  824. package/node_modules/semver/range.bnf +17 -0
  825. package/node_modules/semver/ranges/gtr.js +6 -0
  826. package/node_modules/semver/ranges/intersects.js +9 -0
  827. package/node_modules/semver/ranges/ltr.js +6 -0
  828. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  829. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  830. package/node_modules/semver/ranges/min-version.js +63 -0
  831. package/node_modules/semver/ranges/outside.js +82 -0
  832. package/node_modules/semver/ranges/simplify.js +49 -0
  833. package/node_modules/semver/ranges/subset.js +249 -0
  834. package/node_modules/semver/ranges/to-comparators.js +10 -0
  835. package/node_modules/semver/ranges/valid.js +13 -0
  836. package/node_modules/sharp/LICENSE +191 -0
  837. package/node_modules/sharp/README.md +112 -0
  838. package/node_modules/sharp/dist/channel.cjs +177 -0
  839. package/node_modules/sharp/dist/channel.mjs +177 -0
  840. package/node_modules/sharp/dist/colour.cjs +199 -0
  841. package/node_modules/sharp/dist/colour.mjs +199 -0
  842. package/node_modules/sharp/dist/composite.cjs +213 -0
  843. package/node_modules/sharp/dist/composite.mjs +213 -0
  844. package/node_modules/sharp/dist/constructor.cjs +511 -0
  845. package/node_modules/sharp/dist/constructor.mjs +511 -0
  846. package/node_modules/sharp/dist/index.cjs +25 -0
  847. package/node_modules/sharp/dist/index.d.cts +1999 -0
  848. package/node_modules/sharp/dist/index.d.mts +2046 -0
  849. package/node_modules/sharp/dist/index.mjs +25 -0
  850. package/node_modules/sharp/dist/input.cjs +814 -0
  851. package/node_modules/sharp/dist/input.mjs +814 -0
  852. package/node_modules/sharp/dist/is.cjs +143 -0
  853. package/node_modules/sharp/dist/is.mjs +143 -0
  854. package/node_modules/sharp/dist/libvips.cjs +212 -0
  855. package/node_modules/sharp/dist/libvips.mjs +212 -0
  856. package/node_modules/sharp/dist/operation.cjs +998 -0
  857. package/node_modules/sharp/dist/operation.mjs +998 -0
  858. package/node_modules/sharp/dist/output.cjs +1788 -0
  859. package/node_modules/sharp/dist/output.mjs +1788 -0
  860. package/node_modules/sharp/dist/resize.cjs +617 -0
  861. package/node_modules/sharp/dist/resize.mjs +617 -0
  862. package/node_modules/sharp/dist/sharp.cjs +174 -0
  863. package/node_modules/sharp/dist/sharp.mjs +174 -0
  864. package/node_modules/sharp/dist/utility.cjs +301 -0
  865. package/node_modules/sharp/dist/utility.mjs +301 -0
  866. package/node_modules/sharp/install/build.js +38 -0
  867. package/node_modules/sharp/lib/index.d.ts +1999 -0
  868. package/node_modules/sharp/package.json +227 -0
  869. package/node_modules/sharp/src/binding.gyp +303 -0
  870. package/node_modules/sharp/src/common.cc +1183 -0
  871. package/node_modules/sharp/src/common.h +421 -0
  872. package/node_modules/sharp/src/metadata.cc +404 -0
  873. package/node_modules/sharp/src/metadata.h +95 -0
  874. package/node_modules/sharp/src/operations.cc +516 -0
  875. package/node_modules/sharp/src/operations.h +137 -0
  876. package/node_modules/sharp/src/pipeline.cc +1948 -0
  877. package/node_modules/sharp/src/pipeline.h +422 -0
  878. package/node_modules/sharp/src/sharp.cc +43 -0
  879. package/node_modules/sharp/src/stats.cc +186 -0
  880. package/node_modules/sharp/src/stats.h +62 -0
  881. package/node_modules/sharp/src/utilities.cc +289 -0
  882. package/node_modules/sharp/src/utilities.h +22 -0
  883. package/node_modules/undici-types/LICENSE +21 -0
  884. package/node_modules/undici-types/README.md +6 -0
  885. package/node_modules/undici-types/agent.d.ts +32 -0
  886. package/node_modules/undici-types/api.d.ts +43 -0
  887. package/node_modules/undici-types/balanced-pool.d.ts +30 -0
  888. package/node_modules/undici-types/cache-interceptor.d.ts +173 -0
  889. package/node_modules/undici-types/cache.d.ts +36 -0
  890. package/node_modules/undici-types/client-stats.d.ts +15 -0
  891. package/node_modules/undici-types/client.d.ts +108 -0
  892. package/node_modules/undici-types/connector.d.ts +34 -0
  893. package/node_modules/undici-types/content-type.d.ts +21 -0
  894. package/node_modules/undici-types/cookies.d.ts +30 -0
  895. package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  896. package/node_modules/undici-types/dispatcher.d.ts +276 -0
  897. package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  898. package/node_modules/undici-types/errors.d.ts +161 -0
  899. package/node_modules/undici-types/eventsource.d.ts +66 -0
  900. package/node_modules/undici-types/fetch.d.ts +211 -0
  901. package/node_modules/undici-types/formdata.d.ts +108 -0
  902. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  903. package/node_modules/undici-types/global-origin.d.ts +7 -0
  904. package/node_modules/undici-types/h2c-client.d.ts +73 -0
  905. package/node_modules/undici-types/handlers.d.ts +15 -0
  906. package/node_modules/undici-types/header.d.ts +160 -0
  907. package/node_modules/undici-types/index.d.ts +88 -0
  908. package/node_modules/undici-types/interceptors.d.ts +73 -0
  909. package/node_modules/undici-types/mock-agent.d.ts +68 -0
  910. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  911. package/node_modules/undici-types/mock-client.d.ts +27 -0
  912. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  913. package/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  914. package/node_modules/undici-types/mock-pool.d.ts +27 -0
  915. package/node_modules/undici-types/package.json +55 -0
  916. package/node_modules/undici-types/patch.d.ts +29 -0
  917. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  918. package/node_modules/undici-types/pool.d.ts +41 -0
  919. package/node_modules/undici-types/proxy-agent.d.ts +29 -0
  920. package/node_modules/undici-types/readable.d.ts +68 -0
  921. package/node_modules/undici-types/retry-agent.d.ts +8 -0
  922. package/node_modules/undici-types/retry-handler.d.ts +125 -0
  923. package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  924. package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  925. package/node_modules/undici-types/util.d.ts +18 -0
  926. package/node_modules/undici-types/utility.d.ts +7 -0
  927. package/node_modules/undici-types/webidl.d.ts +341 -0
  928. package/node_modules/undici-types/websocket.d.ts +186 -0
  929. package/package.json +23 -1
  930. package/product-web/assets/{index-CSGf6Qzd.css → index-C0u-TtQQ.css} +1 -1
  931. package/product-web/assets/index-CHKZdZNt.js +112 -0
  932. package/product-web/assets/index-CHKZdZNt.js.map +1 -0
  933. package/product-web/assets/langs/{php-DY2VakOf.js → php-9bx0az3O.js} +2 -2
  934. package/product-web/assets/langs/{php-DY2VakOf.js.map → php-9bx0az3O.js.map} +1 -1
  935. package/product-web/assets/langs/{ruby-hwtoiFmS.js → ruby-HDLHRjSL.js} +2 -2
  936. package/product-web/assets/langs/{ruby-hwtoiFmS.js.map → ruby-HDLHRjSL.js.map} +1 -1
  937. package/product-web/assets/{vendor-CldRVjca.js → vendor-CeMKrCZm.js} +36 -35
  938. package/product-web/assets/vendor-CeMKrCZm.js.map +1 -0
  939. package/product-web/boot.json +20 -1
  940. package/product-web/index.html +3 -3
  941. package/product-web/plugins/@xrkseek/client-modules/client.js +83 -12
  942. package/product-web/plugins/@xrkseek/client-runtime/client.js +1 -37
  943. package/product-web/plugins/@xrkseek/client-ui-agent-preset/client.js +39 -39
  944. package/product-web/plugins/@xrkseek/client-ui-attachment/client.js +782 -0
  945. package/product-web/plugins/@xrkseek/client-ui-commands/client.js +7 -7
  946. package/product-web/plugins/@xrkseek/client-ui-conversation/client.js +965 -561
  947. package/product-web/plugins/@xrkseek/client-ui-deliverables/client.js +4 -4
  948. package/product-web/plugins/@xrkseek/client-ui-directory-picker-browse/client.js +24 -24
  949. package/product-web/plugins/@xrkseek/client-ui-goal/client.js +8 -8
  950. package/product-web/plugins/@xrkseek/client-ui-input-trigger/client.js +83 -27
  951. package/product-web/plugins/@xrkseek/client-ui-jobs/client.js +9 -9
  952. package/product-web/plugins/@xrkseek/client-ui-layout/client.js +3 -3
  953. package/product-web/plugins/@xrkseek/client-ui-message-feedback/client.js +4 -4
  954. package/product-web/plugins/@xrkseek/client-ui-model-selection/client.js +15 -15
  955. package/product-web/plugins/@xrkseek/client-ui-permission-presets/client.js +2 -2
  956. package/product-web/plugins/@xrkseek/client-ui-plan/client.js +3 -3
  957. package/product-web/plugins/@xrkseek/client-ui-reference/client.js +148 -0
  958. package/product-web/plugins/@xrkseek/client-ui-settings-general/client.js +13 -13
  959. package/product-web/plugins/@xrkseek/client-ui-settings-models/client.js +56 -56
  960. package/product-web/plugins/@xrkseek/client-ui-settings-plugin-inventory/client.js +12 -12
  961. package/product-web/plugins/@xrkseek/client-ui-settings-plugins/client.js +43 -43
  962. package/product-web/plugins/@xrkseek/client-ui-sidebar/client.js +14 -14
  963. package/product-web/plugins/@xrkseek/client-ui-skill/client.js +11 -11
  964. package/product-web/plugins/@xrkseek/client-ui-subagent/client.js +289 -157
  965. package/product-web/plugins/@xrkseek/client-ui-theme/client.js +4 -4
  966. package/product-web/plugins/@xrkseek/client-ui-tool/client.js +33 -33
  967. package/product-web/plugins/@xrkseek/client-ui-trajectory/client.js +144 -165
  968. package/product-web/plugins/@xrkseek/client-ui-user-questions/client.js +26 -26
  969. package/product-web/plugins/@xrkseek/client-ui-workflow-run/client.js +15 -15
  970. package/product-web/plugins/@xrkseek/client-ui-workspace/client.js +54 -54
  971. package/product-web/plugins/@xrkseek/xrk-api-remotes/client.js +20 -1
  972. package/product-web/assets/index-CcF0Sxxg.js +0 -297
  973. package/product-web/assets/index-CcF0Sxxg.js.map +0 -1
  974. package/product-web/assets/vendor-CldRVjca.js.map +0 -1
@@ -0,0 +1,1279 @@
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/v24.x/lib/tls.js)
10
+ */
11
+ declare module "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
+ /**
205
+ * Performs transparent encryption of written data and all required TLS
206
+ * negotiation.
207
+ *
208
+ * Instances of `tls.TLSSocket` implement the duplex `Stream` interface.
209
+ *
210
+ * Methods that return TLS connection metadata (e.g.{@link TLSSocket.getPeerCertificate}) will only return data while the
211
+ * connection is open.
212
+ * @since v0.11.4
213
+ */
214
+ class TLSSocket extends net.Socket {
215
+ /**
216
+ * Construct a new tls.TLSSocket object from an existing TCP socket.
217
+ */
218
+ constructor(socket: net.Socket | stream.Duplex, options?: TLSSocketOptions);
219
+ /**
220
+ * This property is `true` if the peer certificate was signed by one of the CAs
221
+ * specified when creating the `tls.TLSSocket` instance, otherwise `false`.
222
+ * @since v0.11.4
223
+ */
224
+ authorized: boolean;
225
+ /**
226
+ * Returns the reason why the peer's certificate was not been verified. This
227
+ * property is set only when `tlsSocket.authorized === false`.
228
+ * @since v0.11.4
229
+ */
230
+ authorizationError: Error;
231
+ /**
232
+ * Always returns `true`. This may be used to distinguish TLS sockets from regular`net.Socket` instances.
233
+ * @since v0.11.4
234
+ */
235
+ encrypted: true;
236
+ /**
237
+ * String containing the selected ALPN protocol.
238
+ * Before a handshake has completed, this value is always null.
239
+ * When a handshake is completed but not ALPN protocol was selected, tlsSocket.alpnProtocol equals false.
240
+ */
241
+ alpnProtocol: string | false | null;
242
+ /**
243
+ * String containing the server name requested via SNI (Server Name Indication) TLS extension.
244
+ */
245
+ servername: string | false | null;
246
+ /**
247
+ * Returns an object representing the local certificate. The returned object has
248
+ * some properties corresponding to the fields of the certificate.
249
+ *
250
+ * See {@link TLSSocket.getPeerCertificate} for an example of the certificate
251
+ * structure.
252
+ *
253
+ * If there is no local certificate, an empty object will be returned. If the
254
+ * socket has been destroyed, `null` will be returned.
255
+ * @since v11.2.0
256
+ */
257
+ getCertificate(): PeerCertificate | object | null;
258
+ /**
259
+ * Returns an object containing information on the negotiated cipher suite.
260
+ *
261
+ * For example, a TLSv1.2 protocol with AES256-SHA cipher:
262
+ *
263
+ * ```json
264
+ * {
265
+ * "name": "AES256-SHA",
266
+ * "standardName": "TLS_RSA_WITH_AES_256_CBC_SHA",
267
+ * "version": "SSLv3"
268
+ * }
269
+ * ```
270
+ *
271
+ * See [SSL\_CIPHER\_get\_name](https://www.openssl.org/docs/man1.1.1/man3/SSL_CIPHER_get_name.html) for more information.
272
+ * @since v0.11.4
273
+ */
274
+ getCipher(): CipherNameAndProtocol;
275
+ /**
276
+ * Returns an object representing the type, name, and size of parameter of
277
+ * an ephemeral key exchange in `perfect forward secrecy` on a client
278
+ * connection. It returns an empty object when the key exchange is not
279
+ * ephemeral. As this is only supported on a client socket; `null` is returned
280
+ * if called on a server socket. The supported types are `'DH'` and `'ECDH'`. The `name` property is available only when type is `'ECDH'`.
281
+ *
282
+ * For example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`.
283
+ * @since v5.0.0
284
+ */
285
+ getEphemeralKeyInfo(): EphemeralKeyInfo | object | null;
286
+ /**
287
+ * As the `Finished` messages are message digests of the complete handshake
288
+ * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can
289
+ * be used for external authentication procedures when the authentication
290
+ * provided by SSL/TLS is not desired or is not enough.
291
+ *
292
+ * Corresponds to the `SSL_get_finished` routine in OpenSSL and may be used
293
+ * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929).
294
+ * @since v9.9.0
295
+ * @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.
296
+ */
297
+ getFinished(): NonSharedBuffer | undefined;
298
+ /**
299
+ * Returns an object representing the peer's certificate. If the peer does not
300
+ * provide a certificate, an empty object will be returned. If the socket has been
301
+ * destroyed, `null` will be returned.
302
+ *
303
+ * If the full certificate chain was requested, each certificate will include an`issuerCertificate` property containing an object representing its issuer's
304
+ * certificate.
305
+ * @since v0.11.4
306
+ * @param detailed Include the full certificate chain if `true`, otherwise include just the peer's certificate.
307
+ * @return A certificate object.
308
+ */
309
+ getPeerCertificate(detailed: true): DetailedPeerCertificate;
310
+ getPeerCertificate(detailed?: false): PeerCertificate;
311
+ getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate;
312
+ /**
313
+ * As the `Finished` messages are message digests of the complete handshake
314
+ * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can
315
+ * be used for external authentication procedures when the authentication
316
+ * provided by SSL/TLS is not desired or is not enough.
317
+ *
318
+ * Corresponds to the `SSL_get_peer_finished` routine in OpenSSL and may be used
319
+ * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929).
320
+ * @since v9.9.0
321
+ * @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
322
+ * far.
323
+ */
324
+ getPeerFinished(): NonSharedBuffer | undefined;
325
+ /**
326
+ * Returns a string containing the negotiated SSL/TLS protocol version of the
327
+ * current connection. The value `'unknown'` will be returned for connected
328
+ * sockets that have not completed the handshaking process. The value `null` will
329
+ * be returned for server sockets or disconnected client sockets.
330
+ *
331
+ * Protocol versions are:
332
+ *
333
+ * * `'SSLv3'`
334
+ * * `'TLSv1'`
335
+ * * `'TLSv1.1'`
336
+ * * `'TLSv1.2'`
337
+ * * `'TLSv1.3'`
338
+ *
339
+ * See the OpenSSL [`SSL_get_version`](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html) documentation for more information.
340
+ * @since v5.7.0
341
+ */
342
+ getProtocol(): string | null;
343
+ /**
344
+ * Returns the TLS session data or `undefined` if no session was
345
+ * 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
346
+ * for debugging.
347
+ *
348
+ * See `Session Resumption` for more information.
349
+ *
350
+ * Note: `getSession()` works only for TLSv1.2 and below. For TLSv1.3, applications
351
+ * must use the `'session'` event (it also works for TLSv1.2 and below).
352
+ * @since v0.11.4
353
+ */
354
+ getSession(): NonSharedBuffer | undefined;
355
+ /**
356
+ * See [SSL\_get\_shared\_sigalgs](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html) for more information.
357
+ * @since v12.11.0
358
+ * @return List of signature algorithms shared between the server and the client in the order of decreasing preference.
359
+ */
360
+ getSharedSigalgs(): string[];
361
+ /**
362
+ * For a client, returns the TLS session ticket if one is available, or`undefined`. For a server, always returns `undefined`.
363
+ *
364
+ * It may be useful for debugging.
365
+ *
366
+ * See `Session Resumption` for more information.
367
+ * @since v0.11.4
368
+ */
369
+ getTLSTicket(): NonSharedBuffer | undefined;
370
+ /**
371
+ * See `Session Resumption` for more information.
372
+ * @since v0.5.6
373
+ * @return `true` if the session was reused, `false` otherwise.
374
+ */
375
+ isSessionReused(): boolean;
376
+ /**
377
+ * The `tlsSocket.renegotiate()` method initiates a TLS renegotiation process.
378
+ * Upon completion, the `callback` function will be passed a single argument
379
+ * that is either an `Error` (if the request failed) or `null`.
380
+ *
381
+ * This method can be used to request a peer's certificate after the secure
382
+ * connection has been established.
383
+ *
384
+ * When running as the server, the socket will be destroyed with an error after `handshakeTimeout` timeout.
385
+ *
386
+ * For TLSv1.3, renegotiation cannot be initiated, it is not supported by the
387
+ * protocol.
388
+ * @since v0.11.8
389
+ * @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
390
+ * an error, unless the `tlsSocket` has been destroyed, in which case `callback` will not be called at all.
391
+ * @return `true` if renegotiation was initiated, `false` otherwise.
392
+ */
393
+ renegotiate(
394
+ options: {
395
+ rejectUnauthorized?: boolean | undefined;
396
+ requestCert?: boolean | undefined;
397
+ },
398
+ callback: (err: Error | null) => void,
399
+ ): undefined | boolean;
400
+ /**
401
+ * The `tlsSocket.setKeyCert()` method sets the private key and certificate to use for the socket.
402
+ * This is mainly useful if you wish to select a server certificate from a TLS server's `ALPNCallback`.
403
+ * @since v22.5.0, v20.17.0
404
+ * @param context An object containing at least `key` and `cert` properties from the {@link createSecureContext()} `options`,
405
+ * or a TLS context object created with {@link createSecureContext()} itself.
406
+ */
407
+ setKeyCert(context: SecureContextOptions | SecureContext): void;
408
+ /**
409
+ * The `tlsSocket.setMaxSendFragment()` method sets the maximum TLS fragment size.
410
+ * Returns `true` if setting the limit succeeded; `false` otherwise.
411
+ *
412
+ * Smaller fragment sizes decrease the buffering latency on the client: larger
413
+ * fragments are buffered by the TLS layer until the entire fragment is received
414
+ * and its integrity is verified; large fragments can span multiple roundtrips
415
+ * and their processing can be delayed due to packet loss or reordering. However,
416
+ * smaller fragments add extra TLS framing bytes and CPU overhead, which may
417
+ * decrease overall server throughput.
418
+ * @since v0.11.11
419
+ * @param [size=16384] The maximum TLS fragment size. The maximum value is `16384`.
420
+ */
421
+ setMaxSendFragment(size: number): boolean;
422
+ /**
423
+ * Disables TLS renegotiation for this `TLSSocket` instance. Once called, attempts
424
+ * to renegotiate will trigger an `'error'` event on the `TLSSocket`.
425
+ * @since v8.4.0
426
+ */
427
+ disableRenegotiation(): void;
428
+ /**
429
+ * When enabled, TLS packet trace information is written to `stderr`. This can be
430
+ * used to debug TLS connection problems.
431
+ *
432
+ * 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
433
+ * OpenSSL's `SSL_trace()` function, the format is undocumented, can change
434
+ * without notice, and should not be relied on.
435
+ * @since v12.2.0
436
+ */
437
+ enableTrace(): void;
438
+ /**
439
+ * Returns the peer certificate as an `X509Certificate` object.
440
+ *
441
+ * If there is no peer certificate, or the socket has been destroyed,`undefined` will be returned.
442
+ * @since v15.9.0
443
+ */
444
+ getPeerX509Certificate(): X509Certificate | undefined;
445
+ /**
446
+ * Returns the local certificate as an `X509Certificate` object.
447
+ *
448
+ * If there is no local certificate, or the socket has been destroyed,`undefined` will be returned.
449
+ * @since v15.9.0
450
+ */
451
+ getX509Certificate(): X509Certificate | undefined;
452
+ /**
453
+ * Keying material is used for validations to prevent different kind of attacks in
454
+ * network protocols, for example in the specifications of IEEE 802.1X.
455
+ *
456
+ * Example
457
+ *
458
+ * ```js
459
+ * const keyingMaterial = tlsSocket.exportKeyingMaterial(
460
+ * 128,
461
+ * 'client finished');
462
+ *
463
+ * /*
464
+ * Example return value of keyingMaterial:
465
+ * <Buffer 76 26 af 99 c5 56 8e 42 09 91 ef 9f 93 cb ad 6c 7b 65 f8 53 f1 d8 d9
466
+ * 12 5a 33 b8 b5 25 df 7b 37 9f e0 e2 4f b8 67 83 a3 2f cd 5d 41 42 4c 91
467
+ * 74 ef 2c ... 78 more bytes>
468
+ *
469
+ * ```
470
+ *
471
+ * See the OpenSSL [`SSL_export_keying_material`](https://www.openssl.org/docs/man1.1.1/man3/SSL_export_keying_material.html) documentation for more
472
+ * information.
473
+ * @since v13.10.0, v12.17.0
474
+ * @param length number of bytes to retrieve from keying material
475
+ * @param label an application specific label, typically this will be a value from the [IANA Exporter Label
476
+ * Registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#exporter-labels).
477
+ * @param context Optionally provide a context.
478
+ * @return requested bytes of the keying material
479
+ */
480
+ exportKeyingMaterial(length: number, label: string, context: Buffer): NonSharedBuffer;
481
+ addListener(event: string, listener: (...args: any[]) => void): this;
482
+ addListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this;
483
+ addListener(event: "secure", listener: () => void): this;
484
+ addListener(event: "secureConnect", listener: () => void): this;
485
+ addListener(event: "session", listener: (session: NonSharedBuffer) => void): this;
486
+ addListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this;
487
+ emit(event: string | symbol, ...args: any[]): boolean;
488
+ emit(event: "OCSPResponse", response: NonSharedBuffer): boolean;
489
+ emit(event: "secure"): boolean;
490
+ emit(event: "secureConnect"): boolean;
491
+ emit(event: "session", session: NonSharedBuffer): boolean;
492
+ emit(event: "keylog", line: NonSharedBuffer): boolean;
493
+ on(event: string, listener: (...args: any[]) => void): this;
494
+ on(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this;
495
+ on(event: "secure", listener: () => void): this;
496
+ on(event: "secureConnect", listener: () => void): this;
497
+ on(event: "session", listener: (session: NonSharedBuffer) => void): this;
498
+ on(event: "keylog", listener: (line: NonSharedBuffer) => void): this;
499
+ once(event: string, listener: (...args: any[]) => void): this;
500
+ once(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this;
501
+ once(event: "secure", listener: () => void): this;
502
+ once(event: "secureConnect", listener: () => void): this;
503
+ once(event: "session", listener: (session: NonSharedBuffer) => void): this;
504
+ once(event: "keylog", listener: (line: NonSharedBuffer) => void): this;
505
+ prependListener(event: string, listener: (...args: any[]) => void): this;
506
+ prependListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this;
507
+ prependListener(event: "secure", listener: () => void): this;
508
+ prependListener(event: "secureConnect", listener: () => void): this;
509
+ prependListener(event: "session", listener: (session: NonSharedBuffer) => void): this;
510
+ prependListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this;
511
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
512
+ prependOnceListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this;
513
+ prependOnceListener(event: "secure", listener: () => void): this;
514
+ prependOnceListener(event: "secureConnect", listener: () => void): this;
515
+ prependOnceListener(event: "session", listener: (session: NonSharedBuffer) => void): this;
516
+ prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this;
517
+ }
518
+ interface CommonConnectionOptions {
519
+ /**
520
+ * An optional TLS context object from tls.createSecureContext()
521
+ */
522
+ secureContext?: SecureContext | undefined;
523
+ /**
524
+ * When enabled, TLS packet trace information is written to `stderr`. This can be
525
+ * used to debug TLS connection problems.
526
+ * @default false
527
+ */
528
+ enableTrace?: boolean | undefined;
529
+ /**
530
+ * If true the server will request a certificate from clients that
531
+ * connect and attempt to verify that certificate. Defaults to
532
+ * false.
533
+ */
534
+ requestCert?: boolean | undefined;
535
+ /**
536
+ * An array of strings or a Buffer naming possible ALPN protocols.
537
+ * (Protocols should be ordered by their priority.)
538
+ */
539
+ ALPNProtocols?: readonly string[] | NodeJS.ArrayBufferView | undefined;
540
+ /**
541
+ * SNICallback(servername, cb) <Function> A function that will be
542
+ * called if the client supports SNI TLS extension. Two arguments
543
+ * will be passed when called: servername and cb. SNICallback should
544
+ * invoke cb(null, ctx), where ctx is a SecureContext instance.
545
+ * (tls.createSecureContext(...) can be used to get a proper
546
+ * SecureContext.) If SNICallback wasn't provided the default callback
547
+ * with high-level API will be used (see below).
548
+ */
549
+ SNICallback?: ((servername: string, cb: (err: Error | null, ctx?: SecureContext) => void) => void) | undefined;
550
+ /**
551
+ * If true the server will reject any connection which is not
552
+ * authorized with the list of supplied CAs. This option only has an
553
+ * effect if requestCert is true.
554
+ * @default true
555
+ */
556
+ rejectUnauthorized?: boolean | undefined;
557
+ /**
558
+ * If true, specifies that the OCSP status request extension will be
559
+ * added to the client hello and an 'OCSPResponse' event will be
560
+ * emitted on the socket before establishing a secure communication.
561
+ */
562
+ requestOCSP?: boolean | undefined;
563
+ }
564
+ interface TlsOptions extends SecureContextOptions, CommonConnectionOptions, net.ServerOpts {
565
+ /**
566
+ * Abort the connection if the SSL/TLS handshake does not finish in the
567
+ * specified number of milliseconds. A 'tlsClientError' is emitted on
568
+ * the tls.Server object whenever a handshake times out. Default:
569
+ * 120000 (120 seconds).
570
+ */
571
+ handshakeTimeout?: number | undefined;
572
+ /**
573
+ * The number of seconds after which a TLS session created by the
574
+ * server will no longer be resumable. See Session Resumption for more
575
+ * information. Default: 300.
576
+ */
577
+ sessionTimeout?: number | undefined;
578
+ /**
579
+ * 48-bytes of cryptographically strong pseudo-random data.
580
+ */
581
+ ticketKeys?: Buffer | undefined;
582
+ /**
583
+ * @param socket
584
+ * @param identity identity parameter sent from the client.
585
+ * @return pre-shared key that must either be
586
+ * a buffer or `null` to stop the negotiation process. Returned PSK must be
587
+ * compatible with the selected cipher's digest.
588
+ *
589
+ * When negotiating TLS-PSK (pre-shared keys), this function is called
590
+ * with the identity provided by the client.
591
+ * If the return value is `null` the negotiation process will stop and an
592
+ * "unknown_psk_identity" alert message will be sent to the other party.
593
+ * If the server wishes to hide the fact that the PSK identity was not known,
594
+ * the callback must provide some random data as `psk` to make the connection
595
+ * fail with "decrypt_error" before negotiation is finished.
596
+ * PSK ciphers are disabled by default, and using TLS-PSK thus
597
+ * requires explicitly specifying a cipher suite with the `ciphers` option.
598
+ * More information can be found in the RFC 4279.
599
+ */
600
+ pskCallback?: ((socket: TLSSocket, identity: string) => NodeJS.ArrayBufferView | null) | undefined;
601
+ /**
602
+ * hint to send to a client to help
603
+ * with selecting the identity during TLS-PSK negotiation. Will be ignored
604
+ * in TLS 1.3. Upon failing to set pskIdentityHint `tlsClientError` will be
605
+ * emitted with `ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED` code.
606
+ */
607
+ pskIdentityHint?: string | undefined;
608
+ }
609
+ interface PSKCallbackNegotation {
610
+ psk: NodeJS.ArrayBufferView;
611
+ identity: string;
612
+ }
613
+ interface ConnectionOptions extends SecureContextOptions, CommonConnectionOptions {
614
+ host?: string | undefined;
615
+ port?: number | undefined;
616
+ path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
617
+ socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket
618
+ checkServerIdentity?: typeof checkServerIdentity | undefined;
619
+ servername?: string | undefined; // SNI TLS Extension
620
+ session?: Buffer | undefined;
621
+ minDHSize?: number | undefined;
622
+ lookup?: net.LookupFunction | undefined;
623
+ timeout?: number | undefined;
624
+ /**
625
+ * When negotiating TLS-PSK (pre-shared keys), this function is called
626
+ * with optional identity `hint` provided by the server or `null`
627
+ * in case of TLS 1.3 where `hint` was removed.
628
+ * It will be necessary to provide a custom `tls.checkServerIdentity()`
629
+ * for the connection as the default one will try to check hostname/IP
630
+ * of the server against the certificate but that's not applicable for PSK
631
+ * because there won't be a certificate present.
632
+ * More information can be found in the RFC 4279.
633
+ *
634
+ * @param hint message sent from the server to help client
635
+ * decide which identity to use during negotiation.
636
+ * Always `null` if TLS 1.3 is used.
637
+ * @returns Return `null` to stop the negotiation process. `psk` must be
638
+ * compatible with the selected cipher's digest.
639
+ * `identity` must use UTF-8 encoding.
640
+ */
641
+ pskCallback?: ((hint: string | null) => PSKCallbackNegotation | null) | undefined;
642
+ }
643
+ /**
644
+ * Accepts encrypted connections using TLS or SSL.
645
+ * @since v0.3.2
646
+ */
647
+ class Server extends net.Server {
648
+ constructor(secureConnectionListener?: (socket: TLSSocket) => void);
649
+ constructor(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void);
650
+ /**
651
+ * The `server.addContext()` method adds a secure context that will be used if
652
+ * the client request's SNI name matches the supplied `hostname` (or wildcard).
653
+ *
654
+ * When there are multiple matching contexts, the most recently added one is
655
+ * used.
656
+ * @since v0.5.3
657
+ * @param hostname A SNI host name or wildcard (e.g. `'*'`)
658
+ * @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
659
+ * with {@link createSecureContext} itself.
660
+ */
661
+ addContext(hostname: string, context: SecureContextOptions | SecureContext): void;
662
+ /**
663
+ * Returns the session ticket keys.
664
+ *
665
+ * See `Session Resumption` for more information.
666
+ * @since v3.0.0
667
+ * @return A 48-byte buffer containing the session ticket keys.
668
+ */
669
+ getTicketKeys(): NonSharedBuffer;
670
+ /**
671
+ * The `server.setSecureContext()` method replaces the secure context of an
672
+ * existing server. Existing connections to the server are not interrupted.
673
+ * @since v11.0.0
674
+ * @param options An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc).
675
+ */
676
+ setSecureContext(options: SecureContextOptions): void;
677
+ /**
678
+ * Sets the session ticket keys.
679
+ *
680
+ * Changes to the ticket keys are effective only for future server connections.
681
+ * Existing or currently pending server connections will use the previous keys.
682
+ *
683
+ * See `Session Resumption` for more information.
684
+ * @since v3.0.0
685
+ * @param keys A 48-byte buffer containing the session ticket keys.
686
+ */
687
+ setTicketKeys(keys: Buffer): void;
688
+ /**
689
+ * events.EventEmitter
690
+ * 1. tlsClientError
691
+ * 2. newSession
692
+ * 3. OCSPRequest
693
+ * 4. resumeSession
694
+ * 5. secureConnection
695
+ * 6. keylog
696
+ */
697
+ addListener(event: string, listener: (...args: any[]) => void): this;
698
+ addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
699
+ addListener(
700
+ event: "newSession",
701
+ listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
702
+ ): this;
703
+ addListener(
704
+ event: "OCSPRequest",
705
+ listener: (
706
+ certificate: NonSharedBuffer,
707
+ issuer: NonSharedBuffer,
708
+ callback: (err: Error | null, resp: Buffer | null) => void,
709
+ ) => void,
710
+ ): this;
711
+ addListener(
712
+ event: "resumeSession",
713
+ listener: (
714
+ sessionId: NonSharedBuffer,
715
+ callback: (err: Error | null, sessionData: Buffer | null) => void,
716
+ ) => void,
717
+ ): this;
718
+ addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
719
+ addListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this;
720
+ emit(event: string | symbol, ...args: any[]): boolean;
721
+ emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean;
722
+ emit(
723
+ event: "newSession",
724
+ sessionId: NonSharedBuffer,
725
+ sessionData: NonSharedBuffer,
726
+ callback: () => void,
727
+ ): boolean;
728
+ emit(
729
+ event: "OCSPRequest",
730
+ certificate: NonSharedBuffer,
731
+ issuer: NonSharedBuffer,
732
+ callback: (err: Error | null, resp: Buffer | null) => void,
733
+ ): boolean;
734
+ emit(
735
+ event: "resumeSession",
736
+ sessionId: NonSharedBuffer,
737
+ callback: (err: Error | null, sessionData: Buffer | null) => void,
738
+ ): boolean;
739
+ emit(event: "secureConnection", tlsSocket: TLSSocket): boolean;
740
+ emit(event: "keylog", line: NonSharedBuffer, tlsSocket: TLSSocket): boolean;
741
+ on(event: string, listener: (...args: any[]) => void): this;
742
+ on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
743
+ on(
744
+ event: "newSession",
745
+ listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
746
+ ): this;
747
+ on(
748
+ event: "OCSPRequest",
749
+ listener: (
750
+ certificate: NonSharedBuffer,
751
+ issuer: NonSharedBuffer,
752
+ callback: (err: Error | null, resp: Buffer | null) => void,
753
+ ) => void,
754
+ ): this;
755
+ on(
756
+ event: "resumeSession",
757
+ listener: (
758
+ sessionId: NonSharedBuffer,
759
+ callback: (err: Error | null, sessionData: Buffer | null) => void,
760
+ ) => void,
761
+ ): this;
762
+ on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
763
+ on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this;
764
+ once(event: string, listener: (...args: any[]) => void): this;
765
+ once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
766
+ once(
767
+ event: "newSession",
768
+ listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
769
+ ): this;
770
+ once(
771
+ event: "OCSPRequest",
772
+ listener: (
773
+ certificate: NonSharedBuffer,
774
+ issuer: NonSharedBuffer,
775
+ callback: (err: Error | null, resp: Buffer | null) => void,
776
+ ) => void,
777
+ ): this;
778
+ once(
779
+ event: "resumeSession",
780
+ listener: (
781
+ sessionId: NonSharedBuffer,
782
+ callback: (err: Error | null, sessionData: Buffer | null) => void,
783
+ ) => void,
784
+ ): this;
785
+ once(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
786
+ once(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this;
787
+ prependListener(event: string, listener: (...args: any[]) => void): this;
788
+ prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
789
+ prependListener(
790
+ event: "newSession",
791
+ listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
792
+ ): this;
793
+ prependListener(
794
+ event: "OCSPRequest",
795
+ listener: (
796
+ certificate: NonSharedBuffer,
797
+ issuer: NonSharedBuffer,
798
+ callback: (err: Error | null, resp: Buffer | null) => void,
799
+ ) => void,
800
+ ): this;
801
+ prependListener(
802
+ event: "resumeSession",
803
+ listener: (
804
+ sessionId: NonSharedBuffer,
805
+ callback: (err: Error | null, sessionData: Buffer | null) => void,
806
+ ) => void,
807
+ ): this;
808
+ prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
809
+ prependListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this;
810
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
811
+ prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
812
+ prependOnceListener(
813
+ event: "newSession",
814
+ listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
815
+ ): this;
816
+ prependOnceListener(
817
+ event: "OCSPRequest",
818
+ listener: (
819
+ certificate: NonSharedBuffer,
820
+ issuer: NonSharedBuffer,
821
+ callback: (err: Error | null, resp: Buffer | null) => void,
822
+ ) => void,
823
+ ): this;
824
+ prependOnceListener(
825
+ event: "resumeSession",
826
+ listener: (
827
+ sessionId: NonSharedBuffer,
828
+ callback: (err: Error | null, sessionData: Buffer | null) => void,
829
+ ) => void,
830
+ ): this;
831
+ prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
832
+ prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this;
833
+ }
834
+ type SecureVersion = "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1";
835
+ interface SecureContextOptions {
836
+ /**
837
+ * If set, this will be called when a client opens a connection using the ALPN extension.
838
+ * One argument will be passed to the callback: an object containing `servername` and `protocols` fields,
839
+ * respectively containing the server name from the SNI extension (if any) and an array of
840
+ * ALPN protocol name strings. The callback must return either one of the strings listed in `protocols`,
841
+ * which will be returned to the client as the selected ALPN protocol, or `undefined`,
842
+ * to reject the connection with a fatal alert. If a string is returned that does not match one of
843
+ * the client's ALPN protocols, an error will be thrown.
844
+ * This option cannot be used with the `ALPNProtocols` option, and setting both options will throw an error.
845
+ */
846
+ ALPNCallback?: ((arg: { servername: string; protocols: string[] }) => string | undefined) | undefined;
847
+ /**
848
+ * Treat intermediate (non-self-signed)
849
+ * certificates in the trust CA certificate list as trusted.
850
+ * @since v22.9.0, v20.18.0
851
+ */
852
+ allowPartialTrustChain?: boolean | undefined;
853
+ /**
854
+ * Optionally override the trusted CA certificates. Default is to trust
855
+ * the well-known CAs curated by Mozilla. Mozilla's CAs are completely
856
+ * replaced when CAs are explicitly specified using this option.
857
+ */
858
+ ca?: string | Buffer | Array<string | Buffer> | undefined;
859
+ /**
860
+ * Cert chains in PEM format. One cert chain should be provided per
861
+ * private key. Each cert chain should consist of the PEM formatted
862
+ * certificate for a provided private key, followed by the PEM
863
+ * formatted intermediate certificates (if any), in order, and not
864
+ * including the root CA (the root CA must be pre-known to the peer,
865
+ * see ca). When providing multiple cert chains, they do not have to
866
+ * be in the same order as their private keys in key. If the
867
+ * intermediate certificates are not provided, the peer will not be
868
+ * able to validate the certificate, and the handshake will fail.
869
+ */
870
+ cert?: string | Buffer | Array<string | Buffer> | undefined;
871
+ /**
872
+ * Colon-separated list of supported signature algorithms. The list
873
+ * can contain digest algorithms (SHA256, MD5 etc.), public key
874
+ * algorithms (RSA-PSS, ECDSA etc.), combination of both (e.g
875
+ * 'RSA+SHA384') or TLS v1.3 scheme names (e.g. rsa_pss_pss_sha512).
876
+ */
877
+ sigalgs?: string | undefined;
878
+ /**
879
+ * Cipher suite specification, replacing the default. For more
880
+ * information, see modifying the default cipher suite. Permitted
881
+ * ciphers can be obtained via tls.getCiphers(). Cipher names must be
882
+ * uppercased in order for OpenSSL to accept them.
883
+ */
884
+ ciphers?: string | undefined;
885
+ /**
886
+ * Name of an OpenSSL engine which can provide the client certificate.
887
+ * @deprecated
888
+ */
889
+ clientCertEngine?: string | undefined;
890
+ /**
891
+ * PEM formatted CRLs (Certificate Revocation Lists).
892
+ */
893
+ crl?: string | Buffer | Array<string | Buffer> | undefined;
894
+ /**
895
+ * `'auto'` or custom Diffie-Hellman parameters, required for non-ECDHE perfect forward secrecy.
896
+ * If omitted or invalid, the parameters are silently discarded and DHE ciphers will not be available.
897
+ * ECDHE-based perfect forward secrecy will still be available.
898
+ */
899
+ dhparam?: string | Buffer | undefined;
900
+ /**
901
+ * A string describing a named curve or a colon separated list of curve
902
+ * NIDs or names, for example P-521:P-384:P-256, to use for ECDH key
903
+ * agreement. Set to auto to select the curve automatically. Use
904
+ * crypto.getCurves() to obtain a list of available curve names. On
905
+ * recent releases, openssl ecparam -list_curves will also display the
906
+ * name and description of each available elliptic curve. Default:
907
+ * tls.DEFAULT_ECDH_CURVE.
908
+ */
909
+ ecdhCurve?: string | undefined;
910
+ /**
911
+ * Attempt to use the server's cipher suite preferences instead of the
912
+ * client's. When true, causes SSL_OP_CIPHER_SERVER_PREFERENCE to be
913
+ * set in secureOptions
914
+ */
915
+ honorCipherOrder?: boolean | undefined;
916
+ /**
917
+ * Private keys in PEM format. PEM allows the option of private keys
918
+ * being encrypted. Encrypted keys will be decrypted with
919
+ * options.passphrase. Multiple keys using different algorithms can be
920
+ * provided either as an array of unencrypted key strings or buffers,
921
+ * or an array of objects in the form {pem: <string|buffer>[,
922
+ * passphrase: <string>]}. The object form can only occur in an array.
923
+ * object.passphrase is optional. Encrypted keys will be decrypted with
924
+ * object.passphrase if provided, or options.passphrase if it is not.
925
+ */
926
+ key?: string | Buffer | Array<string | Buffer | KeyObject> | undefined;
927
+ /**
928
+ * Name of an OpenSSL engine to get private key from. Should be used
929
+ * together with privateKeyIdentifier.
930
+ * @deprecated
931
+ */
932
+ privateKeyEngine?: string | undefined;
933
+ /**
934
+ * Identifier of a private key managed by an OpenSSL engine. Should be
935
+ * used together with privateKeyEngine. Should not be set together with
936
+ * key, because both options define a private key in different ways.
937
+ * @deprecated
938
+ */
939
+ privateKeyIdentifier?: string | undefined;
940
+ /**
941
+ * Optionally set the maximum TLS version to allow. One
942
+ * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the
943
+ * `secureProtocol` option, use one or the other.
944
+ * **Default:** `'TLSv1.3'`, unless changed using CLI options. Using
945
+ * `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using `--tls-max-v1.3` sets the default to
946
+ * `'TLSv1.3'`. If multiple of the options are provided, the highest maximum is used.
947
+ */
948
+ maxVersion?: SecureVersion | undefined;
949
+ /**
950
+ * Optionally set the minimum TLS version to allow. One
951
+ * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the
952
+ * `secureProtocol` option, use one or the other. It is not recommended to use
953
+ * less than TLSv1.2, but it may be required for interoperability.
954
+ * **Default:** `'TLSv1.2'`, unless changed using CLI options. Using
955
+ * `--tls-v1.0` sets the default to `'TLSv1'`. Using `--tls-v1.1` sets the default to
956
+ * `'TLSv1.1'`. Using `--tls-min-v1.3` sets the default to
957
+ * 'TLSv1.3'. If multiple of the options are provided, the lowest minimum is used.
958
+ */
959
+ minVersion?: SecureVersion | undefined;
960
+ /**
961
+ * Shared passphrase used for a single private key and/or a PFX.
962
+ */
963
+ passphrase?: string | undefined;
964
+ /**
965
+ * PFX or PKCS12 encoded private key and certificate chain. pfx is an
966
+ * alternative to providing key and cert individually. PFX is usually
967
+ * encrypted, if it is, passphrase will be used to decrypt it. Multiple
968
+ * PFX can be provided either as an array of unencrypted PFX buffers,
969
+ * or an array of objects in the form {buf: <string|buffer>[,
970
+ * passphrase: <string>]}. The object form can only occur in an array.
971
+ * object.passphrase is optional. Encrypted PFX will be decrypted with
972
+ * object.passphrase if provided, or options.passphrase if it is not.
973
+ */
974
+ pfx?: string | Buffer | Array<string | Buffer | PxfObject> | undefined;
975
+ /**
976
+ * Optionally affect the OpenSSL protocol behavior, which is not
977
+ * usually necessary. This should be used carefully if at all! Value is
978
+ * a numeric bitmask of the SSL_OP_* options from OpenSSL Options
979
+ */
980
+ secureOptions?: number | undefined; // Value is a numeric bitmask of the `SSL_OP_*` options
981
+ /**
982
+ * Legacy mechanism to select the TLS protocol version to use, it does
983
+ * not support independent control of the minimum and maximum version,
984
+ * and does not support limiting the protocol to TLSv1.3. Use
985
+ * minVersion and maxVersion instead. The possible values are listed as
986
+ * SSL_METHODS, use the function names as strings. For example, use
987
+ * 'TLSv1_1_method' to force TLS version 1.1, or 'TLS_method' to allow
988
+ * any TLS protocol version up to TLSv1.3. It is not recommended to use
989
+ * TLS versions less than 1.2, but it may be required for
990
+ * interoperability. Default: none, see minVersion.
991
+ */
992
+ secureProtocol?: string | undefined;
993
+ /**
994
+ * Opaque identifier used by servers to ensure session state is not
995
+ * shared between applications. Unused by clients.
996
+ */
997
+ sessionIdContext?: string | undefined;
998
+ /**
999
+ * 48-bytes of cryptographically strong pseudo-random data.
1000
+ * See Session Resumption for more information.
1001
+ */
1002
+ ticketKeys?: Buffer | undefined;
1003
+ /**
1004
+ * The number of seconds after which a TLS session created by the
1005
+ * server will no longer be resumable. See Session Resumption for more
1006
+ * information. Default: 300.
1007
+ */
1008
+ sessionTimeout?: number | undefined;
1009
+ }
1010
+ interface SecureContext {
1011
+ context: any;
1012
+ }
1013
+ /**
1014
+ * Verifies the certificate `cert` is issued to `hostname`.
1015
+ *
1016
+ * Returns [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object, populating it with `reason`, `host`, and `cert` on
1017
+ * failure. On success, returns [undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Undefined_type).
1018
+ *
1019
+ * This function is intended to be used in combination with the`checkServerIdentity` option that can be passed to {@link connect} and as
1020
+ * such operates on a `certificate object`. For other purposes, consider using `x509.checkHost()` instead.
1021
+ *
1022
+ * This function can be overwritten by providing an alternative function as the `options.checkServerIdentity` option that is passed to `tls.connect()`. The
1023
+ * overwriting function can call `tls.checkServerIdentity()` of course, to augment
1024
+ * the checks done with additional verification.
1025
+ *
1026
+ * This function is only called if the certificate passed all other checks, such as
1027
+ * being issued by trusted CA (`options.ca`).
1028
+ *
1029
+ * Earlier versions of Node.js incorrectly accepted certificates for a given`hostname` if a matching `uniformResourceIdentifier` subject alternative name
1030
+ * 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
1031
+ * a custom `options.checkServerIdentity` function that implements the desired behavior.
1032
+ * @since v0.8.4
1033
+ * @param hostname The host name or IP address to verify the certificate against.
1034
+ * @param cert A `certificate object` representing the peer's certificate.
1035
+ */
1036
+ function checkServerIdentity(hostname: string, cert: PeerCertificate): Error | undefined;
1037
+ /**
1038
+ * Creates a new {@link Server}. The `secureConnectionListener`, if provided, is
1039
+ * automatically set as a listener for the `'secureConnection'` event.
1040
+ *
1041
+ * The `ticketKeys` options is automatically shared between `node:cluster` module
1042
+ * workers.
1043
+ *
1044
+ * The following illustrates a simple echo server:
1045
+ *
1046
+ * ```js
1047
+ * import tls from 'node:tls';
1048
+ * import fs from 'node:fs';
1049
+ *
1050
+ * const options = {
1051
+ * key: fs.readFileSync('server-key.pem'),
1052
+ * cert: fs.readFileSync('server-cert.pem'),
1053
+ *
1054
+ * // This is necessary only if using client certificate authentication.
1055
+ * requestCert: true,
1056
+ *
1057
+ * // This is necessary only if the client uses a self-signed certificate.
1058
+ * ca: [ fs.readFileSync('client-cert.pem') ],
1059
+ * };
1060
+ *
1061
+ * const server = tls.createServer(options, (socket) => {
1062
+ * console.log('server connected',
1063
+ * socket.authorized ? 'authorized' : 'unauthorized');
1064
+ * socket.write('welcome!\n');
1065
+ * socket.setEncoding('utf8');
1066
+ * socket.pipe(socket);
1067
+ * });
1068
+ * server.listen(8000, () => {
1069
+ * console.log('server bound');
1070
+ * });
1071
+ * ```
1072
+ *
1073
+ * The server can be tested by connecting to it using the example client from {@link connect}.
1074
+ * @since v0.3.2
1075
+ */
1076
+ function createServer(secureConnectionListener?: (socket: TLSSocket) => void): Server;
1077
+ function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server;
1078
+ /**
1079
+ * The `callback` function, if specified, will be added as a listener for the `'secureConnect'` event.
1080
+ *
1081
+ * `tls.connect()` returns a {@link TLSSocket} object.
1082
+ *
1083
+ * Unlike the `https` API, `tls.connect()` does not enable the
1084
+ * SNI (Server Name Indication) extension by default, which may cause some
1085
+ * servers to return an incorrect certificate or reject the connection
1086
+ * altogether. To enable SNI, set the `servername` option in addition
1087
+ * to `host`.
1088
+ *
1089
+ * The following illustrates a client for the echo server example from {@link createServer}:
1090
+ *
1091
+ * ```js
1092
+ * // Assumes an echo server that is listening on port 8000.
1093
+ * import tls from 'node:tls';
1094
+ * import fs from 'node:fs';
1095
+ *
1096
+ * const options = {
1097
+ * // Necessary only if the server requires client certificate authentication.
1098
+ * key: fs.readFileSync('client-key.pem'),
1099
+ * cert: fs.readFileSync('client-cert.pem'),
1100
+ *
1101
+ * // Necessary only if the server uses a self-signed certificate.
1102
+ * ca: [ fs.readFileSync('server-cert.pem') ],
1103
+ *
1104
+ * // Necessary only if the server's cert isn't for "localhost".
1105
+ * checkServerIdentity: () => { return null; },
1106
+ * };
1107
+ *
1108
+ * const socket = tls.connect(8000, options, () => {
1109
+ * console.log('client connected',
1110
+ * socket.authorized ? 'authorized' : 'unauthorized');
1111
+ * process.stdin.pipe(socket);
1112
+ * process.stdin.resume();
1113
+ * });
1114
+ * socket.setEncoding('utf8');
1115
+ * socket.on('data', (data) => {
1116
+ * console.log(data);
1117
+ * });
1118
+ * socket.on('end', () => {
1119
+ * console.log('server ends connection');
1120
+ * });
1121
+ * ```
1122
+ * @since v0.11.3
1123
+ */
1124
+ function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
1125
+ function connect(
1126
+ port: number,
1127
+ host?: string,
1128
+ options?: ConnectionOptions,
1129
+ secureConnectListener?: () => void,
1130
+ ): TLSSocket;
1131
+ function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
1132
+ /**
1133
+ * `{@link createServer}` sets the default value of the `honorCipherOrder` option
1134
+ * to `true`, other APIs that create secure contexts leave it unset.
1135
+ *
1136
+ * `{@link createServer}` uses a 128 bit truncated SHA1 hash value generated
1137
+ * from `process.argv` as the default value of the `sessionIdContext` option, other
1138
+ * APIs that create secure contexts have no default value.
1139
+ *
1140
+ * The `tls.createSecureContext()` method creates a `SecureContext` object. It is
1141
+ * usable as an argument to several `tls` APIs, such as `server.addContext()`,
1142
+ * but has no public methods. The {@link Server} constructor and the {@link createServer} method do not support the `secureContext` option.
1143
+ *
1144
+ * A key is _required_ for ciphers that use certificates. Either `key` or `pfx` can be used to provide it.
1145
+ *
1146
+ * If the `ca` option is not given, then Node.js will default to using [Mozilla's publicly trusted list of
1147
+ * CAs](https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt).
1148
+ *
1149
+ * Custom DHE parameters are discouraged in favor of the new `dhparam: 'auto' `option. When set to `'auto'`, well-known DHE parameters of sufficient strength
1150
+ * will be selected automatically. Otherwise, if necessary, `openssl dhparam` can
1151
+ * be used to create custom parameters. The key length must be greater than or
1152
+ * equal to 1024 bits or else an error will be thrown. Although 1024 bits is
1153
+ * permissible, use 2048 bits or larger for stronger security.
1154
+ * @since v0.11.13
1155
+ */
1156
+ function createSecureContext(options?: SecureContextOptions): SecureContext;
1157
+ /**
1158
+ * Returns an array containing the CA certificates from various sources, depending on `type`:
1159
+ *
1160
+ * * `"default"`: return the CA certificates that will be used by the Node.js TLS clients by default.
1161
+ * * When `--use-bundled-ca` is enabled (default), or `--use-openssl-ca` is not enabled,
1162
+ * this would include CA certificates from the bundled Mozilla CA store.
1163
+ * * When `--use-system-ca` is enabled, this would also include certificates from the system's
1164
+ * trusted store.
1165
+ * * When `NODE_EXTRA_CA_CERTS` is used, this would also include certificates loaded from the specified
1166
+ * file.
1167
+ * * `"system"`: return the CA certificates that are loaded from the system's trusted store, according
1168
+ * to rules set by `--use-system-ca`. This can be used to get the certificates from the system
1169
+ * when `--use-system-ca` is not enabled.
1170
+ * * `"bundled"`: return the CA certificates from the bundled Mozilla CA store. This would be the same
1171
+ * as `tls.rootCertificates`.
1172
+ * * `"extra"`: return the CA certificates loaded from `NODE_EXTRA_CA_CERTS`. It's an empty array if
1173
+ * `NODE_EXTRA_CA_CERTS` is not set.
1174
+ * @since v22.15.0
1175
+ * @param type The type of CA certificates that will be returned. Valid values
1176
+ * are `"default"`, `"system"`, `"bundled"` and `"extra"`.
1177
+ * **Default:** `"default"`.
1178
+ * @returns An array of PEM-encoded certificates. The array may contain duplicates
1179
+ * if the same certificate is repeatedly stored in multiple sources.
1180
+ */
1181
+ function getCACertificates(type?: "default" | "system" | "bundled" | "extra"): string[];
1182
+ /**
1183
+ * Returns an array with the names of the supported TLS ciphers. The names are
1184
+ * lower-case for historical reasons, but must be uppercased to be used in
1185
+ * the `ciphers` option of `{@link createSecureContext}`.
1186
+ *
1187
+ * Not all supported ciphers are enabled by default. See
1188
+ * [Modifying the default TLS cipher suite](https://nodejs.org/docs/latest-v24.x/api/tls.html#modifying-the-default-tls-cipher-suite).
1189
+ *
1190
+ * Cipher names that start with `'tls_'` are for TLSv1.3, all the others are for
1191
+ * TLSv1.2 and below.
1192
+ *
1193
+ * ```js
1194
+ * console.log(tls.getCiphers()); // ['aes128-gcm-sha256', 'aes128-sha', ...]
1195
+ * ```
1196
+ * @since v0.10.2
1197
+ */
1198
+ function getCiphers(): string[];
1199
+ /**
1200
+ * Sets the default CA certificates used by Node.js TLS clients. If the provided
1201
+ * certificates are parsed successfully, they will become the default CA
1202
+ * certificate list returned by {@link getCACertificates} and used
1203
+ * by subsequent TLS connections that don't specify their own CA certificates.
1204
+ * The certificates will be deduplicated before being set as the default.
1205
+ *
1206
+ * This function only affects the current Node.js thread. Previous
1207
+ * sessions cached by the HTTPS agent won't be affected by this change, so
1208
+ * this method should be called before any unwanted cachable TLS connections are
1209
+ * made.
1210
+ *
1211
+ * To use system CA certificates as the default:
1212
+ *
1213
+ * ```js
1214
+ * import tls from 'node:tls';
1215
+ * tls.setDefaultCACertificates(tls.getCACertificates('system'));
1216
+ * ```
1217
+ *
1218
+ * This function completely replaces the default CA certificate list. To add additional
1219
+ * certificates to the existing defaults, get the current certificates and append to them:
1220
+ *
1221
+ * ```js
1222
+ * import tls from 'node:tls';
1223
+ * const currentCerts = tls.getCACertificates('default');
1224
+ * const additionalCerts = ['-----BEGIN CERTIFICATE-----\n...'];
1225
+ * tls.setDefaultCACertificates([...currentCerts, ...additionalCerts]);
1226
+ * ```
1227
+ * @since v24.5.0
1228
+ * @param certs An array of CA certificates in PEM format.
1229
+ */
1230
+ function setDefaultCACertificates(certs: ReadonlyArray<string | NodeJS.ArrayBufferView>): void;
1231
+ /**
1232
+ * The default curve name to use for ECDH key agreement in a tls server.
1233
+ * The default value is `'auto'`. See `{@link createSecureContext()}` for further
1234
+ * information.
1235
+ * @since v0.11.13
1236
+ */
1237
+ let DEFAULT_ECDH_CURVE: string;
1238
+ /**
1239
+ * The default value of the `maxVersion` option of `{@link createSecureContext()}`.
1240
+ * It can be assigned any of the supported TLS protocol versions,
1241
+ * `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. **Default:** `'TLSv1.3'`, unless
1242
+ * changed using CLI options. Using `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using
1243
+ * `--tls-max-v1.3` sets the default to `'TLSv1.3'`. If multiple of the options
1244
+ * are provided, the highest maximum is used.
1245
+ * @since v11.4.0
1246
+ */
1247
+ let DEFAULT_MAX_VERSION: SecureVersion;
1248
+ /**
1249
+ * The default value of the `minVersion` option of `{@link createSecureContext()}`.
1250
+ * It can be assigned any of the supported TLS protocol versions,
1251
+ * `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. **Default:** `'TLSv1.2'`, unless
1252
+ * changed using CLI options. Using `--tls-min-v1.0` sets the default to
1253
+ * `'TLSv1'`. Using `--tls-min-v1.1` sets the default to `'TLSv1.1'`. Using
1254
+ * `--tls-min-v1.3` sets the default to `'TLSv1.3'`. If multiple of the options
1255
+ * are provided, the lowest minimum is used.
1256
+ * @since v11.4.0
1257
+ */
1258
+ let DEFAULT_MIN_VERSION: SecureVersion;
1259
+ /**
1260
+ * The default value of the `ciphers` option of `{@link createSecureContext()}`.
1261
+ * It can be assigned any of the supported OpenSSL ciphers.
1262
+ * Defaults to the content of `crypto.constants.defaultCoreCipherList`, unless
1263
+ * changed using CLI options using `--tls-default-ciphers`.
1264
+ * @since v19.8.0
1265
+ */
1266
+ let DEFAULT_CIPHERS: string;
1267
+ /**
1268
+ * An immutable array of strings representing the root certificates (in PEM format)
1269
+ * from the bundled Mozilla CA store as supplied by the current Node.js version.
1270
+ *
1271
+ * The bundled CA store, as supplied by Node.js, is a snapshot of Mozilla CA store
1272
+ * that is fixed at release time. It is identical on all supported platforms.
1273
+ * @since v12.3.0
1274
+ */
1275
+ const rootCertificates: readonly string[];
1276
+ }
1277
+ declare module "node:tls" {
1278
+ export * from "tls";
1279
+ }