@chilkat/react-native 11.6.1

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 (530) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/ChilkatRN.podspec +44 -0
  3. package/LICENSE +254 -0
  4. package/README.md +67 -0
  5. package/android/CMakeLists.txt +60 -0
  6. package/android/build.gradle +148 -0
  7. package/android/gradle.properties +5 -0
  8. package/android/src/main/AndroidManifest.xml +2 -0
  9. package/android/src/main/cpp/cpp-adapter.cpp +12 -0
  10. package/android/src/main/java/com/margelo/nitro/chilkat/ChilkatRNPackage.java +33 -0
  11. package/chilkat-checksums.json +9 -0
  12. package/cpp/HybridAi.cpp +660 -0
  13. package/cpp/HybridAi.hpp +159 -0
  14. package/cpp/HybridAsn.cpp +403 -0
  15. package/cpp/HybridAsn.hpp +105 -0
  16. package/cpp/HybridAuthAws.cpp +188 -0
  17. package/cpp/HybridAuthAws.hpp +55 -0
  18. package/cpp/HybridAuthAzureSAS.cpp +142 -0
  19. package/cpp/HybridAuthAzureSAS.hpp +47 -0
  20. package/cpp/HybridAuthAzureStorage.cpp +144 -0
  21. package/cpp/HybridAuthAzureStorage.hpp +47 -0
  22. package/cpp/HybridAuthGoogle.cpp +215 -0
  23. package/cpp/HybridAuthGoogle.hpp +67 -0
  24. package/cpp/HybridBinData.cpp +439 -0
  25. package/cpp/HybridBinData.hpp +112 -0
  26. package/cpp/HybridBz2.cpp +177 -0
  27. package/cpp/HybridBz2.hpp +58 -0
  28. package/cpp/HybridCache.cpp +314 -0
  29. package/cpp/HybridCache.hpp +82 -0
  30. package/cpp/HybridCert.cpp +840 -0
  31. package/cpp/HybridCert.hpp +196 -0
  32. package/cpp/HybridCertChain.cpp +149 -0
  33. package/cpp/HybridCertChain.hpp +50 -0
  34. package/cpp/HybridCertStore.cpp +276 -0
  35. package/cpp/HybridCertStore.hpp +78 -0
  36. package/cpp/HybridCharset.cpp +333 -0
  37. package/cpp/HybridCharset.hpp +83 -0
  38. package/cpp/HybridCkDateTime.cpp +384 -0
  39. package/cpp/HybridCkDateTime.hpp +105 -0
  40. package/cpp/HybridCodeSign.cpp +156 -0
  41. package/cpp/HybridCodeSign.hpp +55 -0
  42. package/cpp/HybridCompression.cpp +422 -0
  43. package/cpp/HybridCompression.hpp +100 -0
  44. package/cpp/HybridCrypt2.cpp +1517 -0
  45. package/cpp/HybridCrypt2.hpp +320 -0
  46. package/cpp/HybridCsr.cpp +292 -0
  47. package/cpp/HybridCsr.hpp +77 -0
  48. package/cpp/HybridCsv.cpp +382 -0
  49. package/cpp/HybridCsv.hpp +101 -0
  50. package/cpp/HybridDh.cpp +137 -0
  51. package/cpp/HybridDh.hpp +47 -0
  52. package/cpp/HybridDirTree.cpp +167 -0
  53. package/cpp/HybridDirTree.hpp +53 -0
  54. package/cpp/HybridDkim.cpp +249 -0
  55. package/cpp/HybridDkim.hpp +74 -0
  56. package/cpp/HybridDns.cpp +193 -0
  57. package/cpp/HybridDns.hpp +64 -0
  58. package/cpp/HybridDsa.cpp +453 -0
  59. package/cpp/HybridDsa.hpp +112 -0
  60. package/cpp/HybridDtObj.cpp +172 -0
  61. package/cpp/HybridDtObj.hpp +57 -0
  62. package/cpp/HybridEcc.cpp +195 -0
  63. package/cpp/HybridEcc.hpp +55 -0
  64. package/cpp/HybridEdDSA.cpp +147 -0
  65. package/cpp/HybridEdDSA.hpp +47 -0
  66. package/cpp/HybridEmail.cpp +1911 -0
  67. package/cpp/HybridEmail.hpp +419 -0
  68. package/cpp/HybridEmailBundle.cpp +204 -0
  69. package/cpp/HybridEmailBundle.hpp +64 -0
  70. package/cpp/HybridFileAccess.cpp +631 -0
  71. package/cpp/HybridFileAccess.hpp +149 -0
  72. package/cpp/HybridFtp2.cpp +2308 -0
  73. package/cpp/HybridFtp2.hpp +462 -0
  74. package/cpp/HybridGlobal.cpp +221 -0
  75. package/cpp/HybridGlobal.hpp +68 -0
  76. package/cpp/HybridGzip.cpp +440 -0
  77. package/cpp/HybridGzip.hpp +105 -0
  78. package/cpp/HybridHashtable.cpp +211 -0
  79. package/cpp/HybridHashtable.hpp +64 -0
  80. package/cpp/HybridHtmlToText.cpp +136 -0
  81. package/cpp/HybridHtmlToText.hpp +47 -0
  82. package/cpp/HybridHtmlToXml.cpp +218 -0
  83. package/cpp/HybridHtmlToXml.hpp +65 -0
  84. package/cpp/HybridHttp.cpp +2067 -0
  85. package/cpp/HybridHttp.hpp +416 -0
  86. package/cpp/HybridHttpCurl.cpp +337 -0
  87. package/cpp/HybridHttpCurl.hpp +93 -0
  88. package/cpp/HybridHttpRequest.cpp +455 -0
  89. package/cpp/HybridHttpRequest.hpp +109 -0
  90. package/cpp/HybridHttpResponse.cpp +340 -0
  91. package/cpp/HybridHttpResponse.hpp +86 -0
  92. package/cpp/HybridImap.cpp +1818 -0
  93. package/cpp/HybridImap.hpp +363 -0
  94. package/cpp/HybridJavaKeyStore.cpp +387 -0
  95. package/cpp/HybridJavaKeyStore.hpp +98 -0
  96. package/cpp/HybridJs.cpp +154 -0
  97. package/cpp/HybridJs.hpp +54 -0
  98. package/cpp/HybridJsonArray.cpp +441 -0
  99. package/cpp/HybridJsonArray.hpp +120 -0
  100. package/cpp/HybridJsonObject.cpp +1125 -0
  101. package/cpp/HybridJsonObject.hpp +260 -0
  102. package/cpp/HybridJwe.cpp +294 -0
  103. package/cpp/HybridJwe.hpp +82 -0
  104. package/cpp/HybridJws.cpp +290 -0
  105. package/cpp/HybridJws.hpp +82 -0
  106. package/cpp/HybridJwt.cpp +198 -0
  107. package/cpp/HybridJwt.hpp +57 -0
  108. package/cpp/HybridLog.cpp +212 -0
  109. package/cpp/HybridLog.hpp +63 -0
  110. package/cpp/HybridMailMan.cpp +1853 -0
  111. package/cpp/HybridMailMan.hpp +386 -0
  112. package/cpp/HybridMailboxes.cpp +165 -0
  113. package/cpp/HybridMailboxes.hpp +54 -0
  114. package/cpp/HybridMcp.cpp +322 -0
  115. package/cpp/HybridMcp.hpp +85 -0
  116. package/cpp/HybridMessageSet.cpp +162 -0
  117. package/cpp/HybridMessageSet.hpp +54 -0
  118. package/cpp/HybridMht.cpp +700 -0
  119. package/cpp/HybridMht.hpp +165 -0
  120. package/cpp/HybridMime.cpp +1119 -0
  121. package/cpp/HybridMime.hpp +266 -0
  122. package/cpp/HybridNtlm.cpp +333 -0
  123. package/cpp/HybridNtlm.hpp +83 -0
  124. package/cpp/HybridOAuth1.cpp +307 -0
  125. package/cpp/HybridOAuth1.hpp +78 -0
  126. package/cpp/HybridOAuth2.cpp +515 -0
  127. package/cpp/HybridOAuth2.hpp +127 -0
  128. package/cpp/HybridPdf.cpp +370 -0
  129. package/cpp/HybridPdf.hpp +103 -0
  130. package/cpp/HybridPem.cpp +327 -0
  131. package/cpp/HybridPem.hpp +88 -0
  132. package/cpp/HybridPfx.cpp +343 -0
  133. package/cpp/HybridPfx.hpp +87 -0
  134. package/cpp/HybridPkcs11.cpp +318 -0
  135. package/cpp/HybridPkcs11.hpp +88 -0
  136. package/cpp/HybridPrivateKey.cpp +464 -0
  137. package/cpp/HybridPrivateKey.hpp +117 -0
  138. package/cpp/HybridPrng.cpp +192 -0
  139. package/cpp/HybridPrng.hpp +57 -0
  140. package/cpp/HybridPublicKey.cpp +238 -0
  141. package/cpp/HybridPublicKey.hpp +68 -0
  142. package/cpp/HybridRest.cpp +993 -0
  143. package/cpp/HybridRest.hpp +214 -0
  144. package/cpp/HybridRsa.cpp +348 -0
  145. package/cpp/HybridRsa.hpp +90 -0
  146. package/cpp/HybridSCard.cpp +328 -0
  147. package/cpp/HybridSCard.hpp +91 -0
  148. package/cpp/HybridSFtp.cpp +1889 -0
  149. package/cpp/HybridSFtp.hpp +366 -0
  150. package/cpp/HybridSFtpDir.cpp +119 -0
  151. package/cpp/HybridSFtpDir.hpp +43 -0
  152. package/cpp/HybridSFtpFile.cpp +203 -0
  153. package/cpp/HybridSFtpFile.hpp +60 -0
  154. package/cpp/HybridScMinidriver.cpp +341 -0
  155. package/cpp/HybridScMinidriver.hpp +88 -0
  156. package/cpp/HybridScp.cpp +398 -0
  157. package/cpp/HybridScp.hpp +96 -0
  158. package/cpp/HybridSecrets.cpp +328 -0
  159. package/cpp/HybridSecrets.hpp +84 -0
  160. package/cpp/HybridSecureString.cpp +175 -0
  161. package/cpp/HybridSecureString.hpp +55 -0
  162. package/cpp/HybridServerSentEvent.cpp +112 -0
  163. package/cpp/HybridServerSentEvent.hpp +41 -0
  164. package/cpp/HybridSocket.cpp +1567 -0
  165. package/cpp/HybridSocket.hpp +336 -0
  166. package/cpp/HybridSpider.cpp +543 -0
  167. package/cpp/HybridSpider.hpp +138 -0
  168. package/cpp/HybridSsh.cpp +1330 -0
  169. package/cpp/HybridSsh.hpp +282 -0
  170. package/cpp/HybridSshKey.cpp +310 -0
  171. package/cpp/HybridSshKey.hpp +83 -0
  172. package/cpp/HybridSshTunnel.cpp +687 -0
  173. package/cpp/HybridSshTunnel.hpp +159 -0
  174. package/cpp/HybridStream.cpp +496 -0
  175. package/cpp/HybridStream.hpp +123 -0
  176. package/cpp/HybridStringArray.cpp +368 -0
  177. package/cpp/HybridStringArray.hpp +99 -0
  178. package/cpp/HybridStringBuilder.cpp +739 -0
  179. package/cpp/HybridStringBuilder.hpp +178 -0
  180. package/cpp/HybridStringTable.cpp +218 -0
  181. package/cpp/HybridStringTable.hpp +66 -0
  182. package/cpp/HybridTar.cpp +547 -0
  183. package/cpp/HybridTar.hpp +134 -0
  184. package/cpp/HybridTrustedRoots.cpp +178 -0
  185. package/cpp/HybridTrustedRoots.hpp +61 -0
  186. package/cpp/HybridUnixCompress.cpp +191 -0
  187. package/cpp/HybridUnixCompress.hpp +60 -0
  188. package/cpp/HybridUpload.cpp +427 -0
  189. package/cpp/HybridUpload.hpp +114 -0
  190. package/cpp/HybridUrl.cpp +152 -0
  191. package/cpp/HybridUrl.hpp +48 -0
  192. package/cpp/HybridWebSocket.cpp +378 -0
  193. package/cpp/HybridWebSocket.hpp +103 -0
  194. package/cpp/HybridXml.cpp +1527 -0
  195. package/cpp/HybridXml.hpp +340 -0
  196. package/cpp/HybridXmlCertVault.cpp +215 -0
  197. package/cpp/HybridXmlCertVault.hpp +63 -0
  198. package/cpp/HybridXmlDSig.cpp +328 -0
  199. package/cpp/HybridXmlDSig.hpp +88 -0
  200. package/cpp/HybridXmlDSigGen.cpp +549 -0
  201. package/cpp/HybridXmlDSigGen.hpp +126 -0
  202. package/cpp/HybridXmp.cpp +329 -0
  203. package/cpp/HybridXmp.hpp +86 -0
  204. package/cpp/HybridZip.cpp +1000 -0
  205. package/cpp/HybridZip.hpp +226 -0
  206. package/cpp/HybridZipCrc.cpp +162 -0
  207. package/cpp/HybridZipCrc.hpp +57 -0
  208. package/cpp/HybridZipEntry.cpp +395 -0
  209. package/cpp/HybridZipEntry.hpp +102 -0
  210. package/cpp/runtime/AsyncCall.hpp +96 -0
  211. package/cpp/runtime/Bytes.hpp +49 -0
  212. package/cpp/runtime/ChilkatError.hpp +66 -0
  213. package/cpp/runtime/ChilkatObject.hpp +219 -0
  214. package/cpp/runtime/ProgLang.hpp +9 -0
  215. package/cpp/runtime/ProgressAdapter.hpp +43 -0
  216. package/nitro.json +113 -0
  217. package/nitrogen/generated/.gitattributes +1 -0
  218. package/nitrogen/generated/android/ChilkatRN+autolinking.cmake +179 -0
  219. package/nitrogen/generated/android/ChilkatRN+autolinking.gradle +27 -0
  220. package/nitrogen/generated/android/ChilkatRNOnLoad.cpp +1029 -0
  221. package/nitrogen/generated/android/ChilkatRNOnLoad.hpp +34 -0
  222. package/nitrogen/generated/android/kotlin/com/margelo/nitro/chilkat/ChilkatRNOnLoad.kt +35 -0
  223. package/nitrogen/generated/ios/ChilkatRN+autolinking.rb +62 -0
  224. package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Bridge.cpp +17 -0
  225. package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Bridge.hpp +27 -0
  226. package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Umbrella.hpp +38 -0
  227. package/nitrogen/generated/ios/ChilkatRNAutolinking.mm +1015 -0
  228. package/nitrogen/generated/ios/ChilkatRNAutolinking.swift +16 -0
  229. package/nitrogen/generated/shared/c++/HybridAiSpec.cpp +114 -0
  230. package/nitrogen/generated/shared/c++/HybridAiSpec.hpp +175 -0
  231. package/nitrogen/generated/shared/c++/HybridAsnSpec.cpp +70 -0
  232. package/nitrogen/generated/shared/c++/HybridAsnSpec.hpp +116 -0
  233. package/nitrogen/generated/shared/c++/HybridAuthAwsSpec.cpp +49 -0
  234. package/nitrogen/generated/shared/c++/HybridAuthAwsSpec.hpp +89 -0
  235. package/nitrogen/generated/shared/c++/HybridAuthAzureSASSpec.cpp +38 -0
  236. package/nitrogen/generated/shared/c++/HybridAuthAzureSASSpec.hpp +78 -0
  237. package/nitrogen/generated/shared/c++/HybridAuthAzureStorageSpec.cpp +41 -0
  238. package/nitrogen/generated/shared/c++/HybridAuthAzureStorageSpec.hpp +81 -0
  239. package/nitrogen/generated/shared/c++/HybridAuthGoogleSpec.cpp +56 -0
  240. package/nitrogen/generated/shared/c++/HybridAuthGoogleSpec.hpp +108 -0
  241. package/nitrogen/generated/shared/c++/HybridBinDataSpec.cpp +69 -0
  242. package/nitrogen/generated/shared/c++/HybridBinDataSpec.hpp +116 -0
  243. package/nitrogen/generated/shared/c++/HybridBz2Spec.cpp +47 -0
  244. package/nitrogen/generated/shared/c++/HybridBz2Spec.hpp +93 -0
  245. package/nitrogen/generated/shared/c++/HybridCacheSpec.cpp +57 -0
  246. package/nitrogen/generated/shared/c++/HybridCacheSpec.hpp +106 -0
  247. package/nitrogen/generated/shared/c++/HybridCertChainSpec.cpp +40 -0
  248. package/nitrogen/generated/shared/c++/HybridCertChainSpec.hpp +89 -0
  249. package/nitrogen/generated/shared/c++/HybridCertSpec.cpp +138 -0
  250. package/nitrogen/generated/shared/c++/HybridCertSpec.hpp +205 -0
  251. package/nitrogen/generated/shared/c++/HybridCertStoreSpec.cpp +55 -0
  252. package/nitrogen/generated/shared/c++/HybridCertStoreSpec.hpp +104 -0
  253. package/nitrogen/generated/shared/c++/HybridCharsetSpec.cpp +61 -0
  254. package/nitrogen/generated/shared/c++/HybridCharsetSpec.hpp +101 -0
  255. package/nitrogen/generated/shared/c++/HybridCkDateTimeSpec.cpp +66 -0
  256. package/nitrogen/generated/shared/c++/HybridCkDateTimeSpec.hpp +115 -0
  257. package/nitrogen/generated/shared/c++/HybridCodeSignSpec.cpp +44 -0
  258. package/nitrogen/generated/shared/c++/HybridCodeSignSpec.hpp +93 -0
  259. package/nitrogen/generated/shared/c++/HybridCompressionSpec.cpp +79 -0
  260. package/nitrogen/generated/shared/c++/HybridCompressionSpec.hpp +134 -0
  261. package/nitrogen/generated/shared/c++/HybridCrypt2Spec.cpp +215 -0
  262. package/nitrogen/generated/shared/c++/HybridCrypt2Spec.hpp +283 -0
  263. package/nitrogen/generated/shared/c++/HybridCsrSpec.cpp +61 -0
  264. package/nitrogen/generated/shared/c++/HybridCsrSpec.hpp +116 -0
  265. package/nitrogen/generated/shared/c++/HybridCsvSpec.cpp +72 -0
  266. package/nitrogen/generated/shared/c++/HybridCsvSpec.hpp +121 -0
  267. package/nitrogen/generated/shared/c++/HybridDhSpec.cpp +37 -0
  268. package/nitrogen/generated/shared/c++/HybridDhSpec.hpp +77 -0
  269. package/nitrogen/generated/shared/c++/HybridDirTreeSpec.cpp +46 -0
  270. package/nitrogen/generated/shared/c++/HybridDirTreeSpec.hpp +86 -0
  271. package/nitrogen/generated/shared/c++/HybridDkimSpec.cpp +60 -0
  272. package/nitrogen/generated/shared/c++/HybridDkimSpec.hpp +109 -0
  273. package/nitrogen/generated/shared/c++/HybridDnsSpec.cpp +51 -0
  274. package/nitrogen/generated/shared/c++/HybridDnsSpec.hpp +97 -0
  275. package/nitrogen/generated/shared/c++/HybridDsaSpec.cpp +73 -0
  276. package/nitrogen/generated/shared/c++/HybridDsaSpec.hpp +116 -0
  277. package/nitrogen/generated/shared/c++/HybridDtObjSpec.cpp +50 -0
  278. package/nitrogen/generated/shared/c++/HybridDtObjSpec.hpp +90 -0
  279. package/nitrogen/generated/shared/c++/HybridEccSpec.cpp +41 -0
  280. package/nitrogen/generated/shared/c++/HybridEccSpec.hpp +96 -0
  281. package/nitrogen/generated/shared/c++/HybridEdDSASpec.cpp +38 -0
  282. package/nitrogen/generated/shared/c++/HybridEdDSASpec.hpp +90 -0
  283. package/nitrogen/generated/shared/c++/HybridEmailBundleSpec.cpp +45 -0
  284. package/nitrogen/generated/shared/c++/HybridEmailBundleSpec.hpp +91 -0
  285. package/nitrogen/generated/shared/c++/HybridEmailSpec.cpp +259 -0
  286. package/nitrogen/generated/shared/c++/HybridEmailSpec.hpp +326 -0
  287. package/nitrogen/generated/shared/c++/HybridFileAccessSpec.cpp +90 -0
  288. package/nitrogen/generated/shared/c++/HybridFileAccessSpec.hpp +140 -0
  289. package/nitrogen/generated/shared/c++/HybridFtp2Spec.cpp +367 -0
  290. package/nitrogen/generated/shared/c++/HybridFtp2Spec.hpp +434 -0
  291. package/nitrogen/generated/shared/c++/HybridGlobalSpec.cpp +59 -0
  292. package/nitrogen/generated/shared/c++/HybridGlobalSpec.hpp +99 -0
  293. package/nitrogen/generated/shared/c++/HybridGzipSpec.cpp +79 -0
  294. package/nitrogen/generated/shared/c++/HybridGzipSpec.hpp +134 -0
  295. package/nitrogen/generated/shared/c++/HybridHashtableSpec.cpp +45 -0
  296. package/nitrogen/generated/shared/c++/HybridHashtableSpec.hpp +91 -0
  297. package/nitrogen/generated/shared/c++/HybridHtmlToTextSpec.cpp +40 -0
  298. package/nitrogen/generated/shared/c++/HybridHtmlToTextSpec.hpp +83 -0
  299. package/nitrogen/generated/shared/c++/HybridHtmlToXmlSpec.cpp +49 -0
  300. package/nitrogen/generated/shared/c++/HybridHtmlToXmlSpec.hpp +95 -0
  301. package/nitrogen/generated/shared/c++/HybridHttpCurlSpec.cpp +67 -0
  302. package/nitrogen/generated/shared/c++/HybridHttpCurlSpec.hpp +125 -0
  303. package/nitrogen/generated/shared/c++/HybridHttpRequestSpec.cpp +76 -0
  304. package/nitrogen/generated/shared/c++/HybridHttpRequestSpec.hpp +122 -0
  305. package/nitrogen/generated/shared/c++/HybridHttpResponseSpec.cpp +64 -0
  306. package/nitrogen/generated/shared/c++/HybridHttpResponseSpec.hpp +119 -0
  307. package/nitrogen/generated/shared/c++/HybridHttpSpec.cpp +334 -0
  308. package/nitrogen/generated/shared/c++/HybridHttpSpec.hpp +407 -0
  309. package/nitrogen/generated/shared/c++/HybridImapSpec.cpp +275 -0
  310. package/nitrogen/generated/shared/c++/HybridImapSpec.hpp +360 -0
  311. package/nitrogen/generated/shared/c++/HybridJavaKeyStoreSpec.cpp +65 -0
  312. package/nitrogen/generated/shared/c++/HybridJavaKeyStoreSpec.hpp +132 -0
  313. package/nitrogen/generated/shared/c++/HybridJsSpec.cpp +43 -0
  314. package/nitrogen/generated/shared/c++/HybridJsSpec.hpp +92 -0
  315. package/nitrogen/generated/shared/c++/HybridJsonArraySpec.cpp +76 -0
  316. package/nitrogen/generated/shared/c++/HybridJsonArraySpec.hpp +131 -0
  317. package/nitrogen/generated/shared/c++/HybridJsonObjectSpec.cpp +154 -0
  318. package/nitrogen/generated/shared/c++/HybridJsonObjectSpec.hpp +218 -0
  319. package/nitrogen/generated/shared/c++/HybridJweSpec.cpp +57 -0
  320. package/nitrogen/generated/shared/c++/HybridJweSpec.hpp +112 -0
  321. package/nitrogen/generated/shared/c++/HybridJwsSpec.cpp +57 -0
  322. package/nitrogen/generated/shared/c++/HybridJwsSpec.hpp +115 -0
  323. package/nitrogen/generated/shared/c++/HybridJwtSpec.cpp +43 -0
  324. package/nitrogen/generated/shared/c++/HybridJwtSpec.hpp +92 -0
  325. package/nitrogen/generated/shared/c++/HybridLogSpec.cpp +44 -0
  326. package/nitrogen/generated/shared/c++/HybridLogSpec.hpp +85 -0
  327. package/nitrogen/generated/shared/c++/HybridMailManSpec.cpp +311 -0
  328. package/nitrogen/generated/shared/c++/HybridMailManSpec.hpp +396 -0
  329. package/nitrogen/generated/shared/c++/HybridMailboxesSpec.cpp +40 -0
  330. package/nitrogen/generated/shared/c++/HybridMailboxesSpec.hpp +80 -0
  331. package/nitrogen/generated/shared/c++/HybridMcpSpec.cpp +68 -0
  332. package/nitrogen/generated/shared/c++/HybridMcpSpec.hpp +117 -0
  333. package/nitrogen/generated/shared/c++/HybridMessageSetSpec.cpp +41 -0
  334. package/nitrogen/generated/shared/c++/HybridMessageSetSpec.hpp +84 -0
  335. package/nitrogen/generated/shared/c++/HybridMhtSpec.cpp +138 -0
  336. package/nitrogen/generated/shared/c++/HybridMhtSpec.hpp +181 -0
  337. package/nitrogen/generated/shared/c++/HybridMimeSpec.cpp +169 -0
  338. package/nitrogen/generated/shared/c++/HybridMimeSpec.hpp +233 -0
  339. package/nitrogen/generated/shared/c++/HybridNtlmSpec.cpp +69 -0
  340. package/nitrogen/generated/shared/c++/HybridNtlmSpec.hpp +109 -0
  341. package/nitrogen/generated/shared/c++/HybridOAuth1Spec.cpp +67 -0
  342. package/nitrogen/generated/shared/c++/HybridOAuth1Spec.hpp +110 -0
  343. package/nitrogen/generated/shared/c++/HybridOAuth2Spec.cpp +107 -0
  344. package/nitrogen/generated/shared/c++/HybridOAuth2Spec.hpp +156 -0
  345. package/nitrogen/generated/shared/c++/HybridPdfSpec.cpp +73 -0
  346. package/nitrogen/generated/shared/c++/HybridPdfSpec.hpp +134 -0
  347. package/nitrogen/generated/shared/c++/HybridPemSpec.cpp +63 -0
  348. package/nitrogen/generated/shared/c++/HybridPemSpec.hpp +124 -0
  349. package/nitrogen/generated/shared/c++/HybridPfxSpec.cpp +61 -0
  350. package/nitrogen/generated/shared/c++/HybridPfxSpec.hpp +122 -0
  351. package/nitrogen/generated/shared/c++/HybridPkcs11Spec.cpp +60 -0
  352. package/nitrogen/generated/shared/c++/HybridPkcs11Spec.hpp +115 -0
  353. package/nitrogen/generated/shared/c++/HybridPrivateKeySpec.cpp +76 -0
  354. package/nitrogen/generated/shared/c++/HybridPrivateKeySpec.hpp +131 -0
  355. package/nitrogen/generated/shared/c++/HybridPrngSpec.cpp +42 -0
  356. package/nitrogen/generated/shared/c++/HybridPrngSpec.hpp +85 -0
  357. package/nitrogen/generated/shared/c++/HybridPublicKeySpec.cpp +48 -0
  358. package/nitrogen/generated/shared/c++/HybridPublicKeySpec.hpp +91 -0
  359. package/nitrogen/generated/shared/c++/HybridRestSpec.cpp +150 -0
  360. package/nitrogen/generated/shared/c++/HybridRestSpec.hpp +229 -0
  361. package/nitrogen/generated/shared/c++/HybridRsaSpec.cpp +68 -0
  362. package/nitrogen/generated/shared/c++/HybridRsaSpec.hpp +120 -0
  363. package/nitrogen/generated/shared/c++/HybridSCardSpec.cpp +64 -0
  364. package/nitrogen/generated/shared/c++/HybridSCardSpec.hpp +116 -0
  365. package/nitrogen/generated/shared/c++/HybridSFtpDirSpec.cpp +35 -0
  366. package/nitrogen/generated/shared/c++/HybridSFtpDirSpec.hpp +78 -0
  367. package/nitrogen/generated/shared/c++/HybridSFtpFileSpec.cpp +57 -0
  368. package/nitrogen/generated/shared/c++/HybridSFtpFileSpec.hpp +98 -0
  369. package/nitrogen/generated/shared/c++/HybridSFtpSpec.cpp +284 -0
  370. package/nitrogen/generated/shared/c++/HybridSFtpSpec.hpp +354 -0
  371. package/nitrogen/generated/shared/c++/HybridScMinidriverSpec.cpp +61 -0
  372. package/nitrogen/generated/shared/c++/HybridScMinidriverSpec.hpp +119 -0
  373. package/nitrogen/generated/shared/c++/HybridScpSpec.cpp +78 -0
  374. package/nitrogen/generated/shared/c++/HybridScpSpec.hpp +127 -0
  375. package/nitrogen/generated/shared/c++/HybridSecretsSpec.cpp +65 -0
  376. package/nitrogen/generated/shared/c++/HybridSecretsSpec.hpp +120 -0
  377. package/nitrogen/generated/shared/c++/HybridSecureStringSpec.cpp +42 -0
  378. package/nitrogen/generated/shared/c++/HybridSecureStringSpec.hpp +88 -0
  379. package/nitrogen/generated/shared/c++/HybridServerSentEventSpec.cpp +35 -0
  380. package/nitrogen/generated/shared/c++/HybridServerSentEventSpec.hpp +75 -0
  381. package/nitrogen/generated/shared/c++/HybridSocketSpec.cpp +262 -0
  382. package/nitrogen/generated/shared/c++/HybridSocketSpec.hpp +327 -0
  383. package/nitrogen/generated/shared/c++/HybridSpiderSpec.cpp +110 -0
  384. package/nitrogen/generated/shared/c++/HybridSpiderSpec.hpp +153 -0
  385. package/nitrogen/generated/shared/c++/HybridSshKeySpec.cpp +59 -0
  386. package/nitrogen/generated/shared/c++/HybridSshKeySpec.hpp +102 -0
  387. package/nitrogen/generated/shared/c++/HybridSshSpec.cpp +215 -0
  388. package/nitrogen/generated/shared/c++/HybridSshSpec.hpp +276 -0
  389. package/nitrogen/generated/shared/c++/HybridSshTunnelSpec.cpp +136 -0
  390. package/nitrogen/generated/shared/c++/HybridSshTunnelSpec.hpp +191 -0
  391. package/nitrogen/generated/shared/c++/HybridStreamSpec.cpp +100 -0
  392. package/nitrogen/generated/shared/c++/HybridStreamSpec.hpp +150 -0
  393. package/nitrogen/generated/shared/c++/HybridStringArraySpec.cpp +66 -0
  394. package/nitrogen/generated/shared/c++/HybridStringArraySpec.hpp +109 -0
  395. package/nitrogen/generated/shared/c++/HybridStringBuilderSpec.cpp +104 -0
  396. package/nitrogen/generated/shared/c++/HybridStringBuilderSpec.hpp +156 -0
  397. package/nitrogen/generated/shared/c++/HybridStringTableSpec.cpp +46 -0
  398. package/nitrogen/generated/shared/c++/HybridStringTableSpec.hpp +89 -0
  399. package/nitrogen/generated/shared/c++/HybridTarSpec.cpp +110 -0
  400. package/nitrogen/generated/shared/c++/HybridTarSpec.hpp +156 -0
  401. package/nitrogen/generated/shared/c++/HybridTrustedRootsSpec.cpp +48 -0
  402. package/nitrogen/generated/shared/c++/HybridTrustedRootsSpec.hpp +97 -0
  403. package/nitrogen/generated/shared/c++/HybridUnixCompressSpec.cpp +48 -0
  404. package/nitrogen/generated/shared/c++/HybridUnixCompressSpec.hpp +91 -0
  405. package/nitrogen/generated/shared/c++/HybridUploadSpec.cpp +98 -0
  406. package/nitrogen/generated/shared/c++/HybridUploadSpec.hpp +141 -0
  407. package/nitrogen/generated/shared/c++/HybridUrlSpec.cpp +42 -0
  408. package/nitrogen/generated/shared/c++/HybridUrlSpec.hpp +82 -0
  409. package/nitrogen/generated/shared/c++/HybridWebSocketSpec.cpp +80 -0
  410. package/nitrogen/generated/shared/c++/HybridWebSocketSpec.hpp +135 -0
  411. package/nitrogen/generated/shared/c++/HybridXmlCertVaultSpec.cpp +45 -0
  412. package/nitrogen/generated/shared/c++/HybridXmlCertVaultSpec.hpp +94 -0
  413. package/nitrogen/generated/shared/c++/HybridXmlDSigGenSpec.cpp +99 -0
  414. package/nitrogen/generated/shared/c++/HybridXmlDSigGenSpec.hpp +163 -0
  415. package/nitrogen/generated/shared/c++/HybridXmlDSigSpec.cpp +62 -0
  416. package/nitrogen/generated/shared/c++/HybridXmlDSigSpec.hpp +126 -0
  417. package/nitrogen/generated/shared/c++/HybridXmlSpec.cpp +203 -0
  418. package/nitrogen/generated/shared/c++/HybridXmlSpec.hpp +253 -0
  419. package/nitrogen/generated/shared/c++/HybridXmpSpec.cpp +58 -0
  420. package/nitrogen/generated/shared/c++/HybridXmpSpec.hpp +104 -0
  421. package/nitrogen/generated/shared/c++/HybridZipCrcSpec.cpp +43 -0
  422. package/nitrogen/generated/shared/c++/HybridZipCrcSpec.hpp +92 -0
  423. package/nitrogen/generated/shared/c++/HybridZipEntrySpec.cpp +82 -0
  424. package/nitrogen/generated/shared/c++/HybridZipEntrySpec.hpp +137 -0
  425. package/nitrogen/generated/shared/c++/HybridZipSpec.cpp +176 -0
  426. package/nitrogen/generated/shared/c++/HybridZipSpec.hpp +231 -0
  427. package/package.json +46 -0
  428. package/react-native.config.js +9 -0
  429. package/scripts/fetch-chilkat.js +184 -0
  430. package/src/index.ts +306 -0
  431. package/src/runtime/chilkat.ts +25 -0
  432. package/src/specs/Ai.nitro.ts +1288 -0
  433. package/src/specs/Asn.nitro.ts +509 -0
  434. package/src/specs/AuthAws.nitro.ts +234 -0
  435. package/src/specs/AuthAzureSAS.nitro.ts +205 -0
  436. package/src/specs/AuthAzureStorage.nitro.ts +172 -0
  437. package/src/specs/AuthGoogle.nitro.ts +291 -0
  438. package/src/specs/BinData.nitro.ts +470 -0
  439. package/src/specs/Bz2.nitro.ts +269 -0
  440. package/src/specs/Cache.nitro.ts +483 -0
  441. package/src/specs/Cert.nitro.ts +1279 -0
  442. package/src/specs/CertChain.nitro.ts +312 -0
  443. package/src/specs/CertStore.nitro.ts +430 -0
  444. package/src/specs/Charset.nitro.ts +518 -0
  445. package/src/specs/CkDateTime.nitro.ts +492 -0
  446. package/src/specs/CodeSign.nitro.ts +307 -0
  447. package/src/specs/Compression.nitro.ts +654 -0
  448. package/src/specs/Crypt2.nitro.ts +2387 -0
  449. package/src/specs/Csr.nitro.ts +461 -0
  450. package/src/specs/Csv.nitro.ts +670 -0
  451. package/src/specs/Dh.nitro.ts +343 -0
  452. package/src/specs/DirTree.nitro.ts +332 -0
  453. package/src/specs/Dkim.nitro.ts +595 -0
  454. package/src/specs/Dns.nitro.ts +271 -0
  455. package/src/specs/Dsa.nitro.ts +653 -0
  456. package/src/specs/DtObj.nitro.ts +198 -0
  457. package/src/specs/Ecc.nitro.ts +375 -0
  458. package/src/specs/EdDSA.nitro.ts +273 -0
  459. package/src/specs/Email.nitro.ts +2921 -0
  460. package/src/specs/EmailBundle.nitro.ts +334 -0
  461. package/src/specs/FileAccess.nitro.ts +836 -0
  462. package/src/specs/Ftp2.nitro.ts +3943 -0
  463. package/src/specs/Global.nitro.ts +319 -0
  464. package/src/specs/Gzip.nitro.ts +646 -0
  465. package/src/specs/Hashtable.nitro.ts +356 -0
  466. package/src/specs/HtmlToText.nitro.ts +238 -0
  467. package/src/specs/HtmlToXml.nitro.ts +323 -0
  468. package/src/specs/Http.nitro.ts +3095 -0
  469. package/src/specs/HttpCurl.nitro.ts +550 -0
  470. package/src/specs/HttpRequest.nitro.ts +522 -0
  471. package/src/specs/HttpResponse.nitro.ts +424 -0
  472. package/src/specs/Imap.nitro.ts +2991 -0
  473. package/src/specs/JavaKeyStore.nitro.ts +619 -0
  474. package/src/specs/Js.nitro.ts +263 -0
  475. package/src/specs/JsonArray.nitro.ts +681 -0
  476. package/src/specs/JsonObject.nitro.ts +1454 -0
  477. package/src/specs/Jwe.nitro.ts +756 -0
  478. package/src/specs/Jws.nitro.ts +733 -0
  479. package/src/specs/Jwt.nitro.ts +380 -0
  480. package/src/specs/Log.nitro.ts +258 -0
  481. package/src/specs/MailMan.nitro.ts +3571 -0
  482. package/src/specs/Mailboxes.nitro.ts +251 -0
  483. package/src/specs/Mcp.nitro.ts +491 -0
  484. package/src/specs/MessageSet.nitro.ts +320 -0
  485. package/src/specs/Mht.nitro.ts +1684 -0
  486. package/src/specs/Mime.nitro.ts +1745 -0
  487. package/src/specs/Ntlm.nitro.ts +556 -0
  488. package/src/specs/OAuth1.nitro.ts +331 -0
  489. package/src/specs/OAuth2.nitro.ts +1023 -0
  490. package/src/specs/Pdf.nitro.ts +740 -0
  491. package/src/specs/Pem.nitro.ts +484 -0
  492. package/src/specs/Pfx.nitro.ts +1003 -0
  493. package/src/specs/Pkcs11.nitro.ts +559 -0
  494. package/src/specs/PrivateKey.nitro.ts +994 -0
  495. package/src/specs/Prng.nitro.ts +348 -0
  496. package/src/specs/PublicKey.nitro.ts +610 -0
  497. package/src/specs/Rest.nitro.ts +1972 -0
  498. package/src/specs/Rsa.nitro.ts +453 -0
  499. package/src/specs/SCard.nitro.ts +739 -0
  500. package/src/specs/SFtp.nitro.ts +3138 -0
  501. package/src/specs/SFtpDir.nitro.ts +213 -0
  502. package/src/specs/SFtpFile.nitro.ts +452 -0
  503. package/src/specs/ScMinidriver.nitro.ts +443 -0
  504. package/src/specs/Scp.nitro.ts +708 -0
  505. package/src/specs/Secrets.nitro.ts +470 -0
  506. package/src/specs/SecureString.nitro.ts +231 -0
  507. package/src/specs/ServerSentEvent.nitro.ts +183 -0
  508. package/src/specs/Socket.nitro.ts +3335 -0
  509. package/src/specs/Spider.nitro.ts +609 -0
  510. package/src/specs/Ssh.nitro.ts +2842 -0
  511. package/src/specs/SshKey.nitro.ts +740 -0
  512. package/src/specs/SshTunnel.nitro.ts +1243 -0
  513. package/src/specs/Stream.nitro.ts +737 -0
  514. package/src/specs/StringArray.nitro.ts +396 -0
  515. package/src/specs/StringBuilder.nitro.ts +920 -0
  516. package/src/specs/StringTable.nitro.ts +271 -0
  517. package/src/specs/Tar.nitro.ts +804 -0
  518. package/src/specs/TrustedRoots.nitro.ts +360 -0
  519. package/src/specs/UnixCompress.nitro.ts +293 -0
  520. package/src/specs/Upload.nitro.ts +623 -0
  521. package/src/specs/Url.nitro.ts +246 -0
  522. package/src/specs/WebSocket.nitro.ts +840 -0
  523. package/src/specs/Xml.nitro.ts +1988 -0
  524. package/src/specs/XmlCertVault.nitro.ts +259 -0
  525. package/src/specs/XmlDSig.nitro.ts +464 -0
  526. package/src/specs/XmlDSigGen.nitro.ts +978 -0
  527. package/src/specs/Xmp.nitro.ts +364 -0
  528. package/src/specs/Zip.nitro.ts +1611 -0
  529. package/src/specs/ZipCrc.nitro.ts +229 -0
  530. package/src/specs/ZipEntry.nitro.ts +782 -0
@@ -0,0 +1,1243 @@
1
+ // Generated by ReactNativeNs.RnGenerator -- do not edit.
2
+ import type { HybridObject } from 'react-native-nitro-modules'
3
+ import type { JsonObject } from './JsonObject.nitro'
4
+ import type { SecureString } from './SecureString.nitro'
5
+ import type { Ssh } from './Ssh.nitro'
6
+ import type { SshKey } from './SshKey.nitro'
7
+
8
+ /**
9
+ * Create SSH tunnels for secure local, fixed-destination, dynamic, and multi-hop forwarding.
10
+ *
11
+ * `SshTunnel` creates SSH tunnels for forwarding local
12
+ * client connections through an SSH server to a destination service, such as a
13
+ * database server or other TCP service. It supports fixed destination
14
+ * forwarding, dynamic SOCKS-style port forwarding, password and public-key
15
+ * authentication, keyboard-interactive authentication, proxy connections to the
16
+ * SSH server, multi-hop SSH connections, background accept threads,
17
+ * tunnel/client logging, secure secret lookup, and connection diagnostics.
18
+ *
19
+ * **Local port forwarding**
20
+ *
21
+ * Listen on a local port and forward accepted client connections through an
22
+ * SSH server to a configured destination host and port.
23
+ *
24
+ * **Dynamic forwarding**
25
+ *
26
+ * Enable SOCKS-style dynamic port forwarding when each client connection
27
+ * should choose its own destination through the tunnel.
28
+ *
29
+ * **SSH authentication**
30
+ *
31
+ * Authenticate to the SSH server using passwords, public keys,
32
+ * password-plus-key, secure password lookup, or keyboard-interactive
33
+ * authentication.
34
+ *
35
+ * **Proxy and multi-hop access**
36
+ *
37
+ * Reach the SSH server through HTTP or SOCKS proxies, or build tunnels
38
+ * through an existing SSH connection for multi-hop scenarios.
39
+ *
40
+ * **Accept and manage clients**
41
+ *
42
+ * Start accepting client connections in the background, inspect current
43
+ * state, stop accepting new clients, and disconnect active tunnel clients.
44
+ *
45
+ * **Logging and diagnostics**
46
+ *
47
+ * Use accept logs, tunnel logs, current-state XML, and
48
+ * `LastErrorText` to troubleshoot SSH connection, forwarding,
49
+ * authentication, or client-connection problems.
50
+ *
51
+ * **Common pattern:**
52
+ * Configure the SSH server, authentication method, local listen settings, and
53
+ * destination forwarding options, then call `BeginAccepting` to
54
+ * start the tunnel. Local client applications connect to the tunnel's listen
55
+ * port, and `SshTunnel` forwards the traffic through SSH. Use
56
+ * `SshTunnel` for port forwarding; use
57
+ * `Chilkat.Ssh` for direct SSH sessions, commands, channels, and
58
+ * shell access.
59
+ *
60
+ * **Start with the SSH Tunneling Guide**
61
+ *
62
+ * Learn how static forwarding, dynamic SOCKS forwarding, multi-hop tunneling,
63
+ * proxies, background threads, lifecycle management, and troubleshooting fit
64
+ * together.
65
+ *
66
+ * [Open the SshTunnel Guide](https://www.chilkatsoft.com/sshtunnel_index.asp)
67
+ *
68
+ * A shorter API-focused introduction is also available in the
69
+ * [SshTunnel Class Overview](https://www.chilkatsoft.com/sshtunnel_class_overview.asp).
70
+ *
71
+ * Each `SshTunnel` instance owns a native Chilkat object. It is released when the JavaScript object
72
+ * is
73
+ * garbage collected, or immediately by `dispose()`; any use after `dispose()` throws.
74
+ * Create one with `new SshTunnel()`.
75
+ *
76
+ * Methods that can take a while (network, files, compression, key generation) also have an
77
+ * `...Async` form returning a `Promise`; it runs on a native worker thread so the UI keeps
78
+ * rendering. While such a call is pending, every other call on this object throws, except
79
+ * {@link SshTunnel.abort} and assigning {@link SshTunnel.onPercentDone} / {@link
80
+ * SshTunnel.onProgressInfo}.
81
+ */
82
+ export interface SshTunnel extends HybridObject<{ ios: 'c++', android: 'c++' }> {
83
+ // ---- Properties ----
84
+
85
+ /**
86
+ * Provides HTML-formatted information about the last called method or property. If a method call
87
+ * fails or behaves unexpectedly, check this property for details. Note that information is
88
+ * available regardless of the method call's success.
89
+ *
90
+ * This property is read-only.
91
+ */
92
+ readonly lastErrorHtml: string
93
+
94
+ /**
95
+ * Provides plain text information about the last called method or property. If a method call
96
+ * fails or behaves unexpectedly, check this property for details. Note that information is
97
+ * available regardless of the method call's success.
98
+ *
99
+ * This property is read-only.
100
+ */
101
+ readonly lastErrorText: string
102
+
103
+ /**
104
+ * Provides XML-formatted information about the last called method or property. If a method call
105
+ * fails or behaves unexpectedly, check this property for details. Note that information is
106
+ * available regardless of the method call's success.
107
+ *
108
+ * This property is read-only.
109
+ */
110
+ readonly lastErrorXml: string
111
+
112
+ /**
113
+ * Version of the component/library, such as "10.1.0"
114
+ *
115
+ * This property is read-only.
116
+ */
117
+ readonly version: string
118
+
119
+ /**
120
+ * If set to a file path, this property logs the LastErrorText of each Chilkat method or property
121
+ * call to the specified file. This logging helps identify the context and history of Chilkat
122
+ * calls leading up to any crash or hang, aiding in debugging.
123
+ *
124
+ * Enabling the VerboseLogging property provides more detailed information.
125
+ *
126
+ * This property is mainly used for debugging rare instances where a Chilkat method call causes a
127
+ * hang or crash, which should generally not happen.
128
+ *
129
+ * Possible causes of hangs include:
130
+ *
131
+ * - A timeout property set to 0, indicating an infinite timeout.
132
+ *
133
+ * - A hang occurring within an event callback in the application code.
134
+ *
135
+ * - An internal bug in the Chilkat code causing the hang.
136
+ */
137
+ debugLogFilePath: string
138
+
139
+ /**
140
+ * If set to `true`, then the contents of LastErrorText (or LastErrorXml, or LastErrorHtml) may
141
+ * contain more verbose information. The default value is `false`. Verbose logging should only be
142
+ * used for debugging. The potentially large quantity of logged information may adversely affect
143
+ * peformance.
144
+ */
145
+ verboseLogging: boolean
146
+
147
+ /**
148
+ * Indicates the success or failure of the most recent method call: `true` means success, `false`
149
+ * means failure. This property remains unchanged by property setters or getters. This method is
150
+ * present to address challenges in checking for null or Nothing returns in certain programming
151
+ * languages. Note: This property does not apply to methods that return integer values or to
152
+ * boolean-returning methods where the boolean does not indicate success or failure.
153
+ */
154
+ lastMethodSuccess: boolean
155
+
156
+ /**
157
+ * Contains the in-memory activity log for the background listener thread started by
158
+ * {@link SshTunnel.beginAccepting}.
159
+ *
160
+ * The log is populated only when
161
+ * {@link SshTunnel.keepAcceptLog} is
162
+ * `_TRUE_`.
163
+ */
164
+ acceptLog: string
165
+
166
+ /**
167
+ * Specifies the local file path where activity from the background listener thread
168
+ * is written.
169
+ *
170
+ * This file-based log is separate from the in-memory
171
+ * {@link SshTunnel.acceptLog}.
172
+ */
173
+ acceptLogPath: string
174
+
175
+ /**
176
+ * Specifies the maximum number of milliseconds allowed for establishing the SSH
177
+ * connection.
178
+ *
179
+ * - The default value is `30000` milliseconds (30 seconds).
180
+ *
181
+ * - A value of `0` disables the connection timeout and allows an unlimited wait.
182
+ *
183
+ * The timeout applies to more than the initial TCP connection. It also covers
184
+ * connection setup performed through an HTTP or SOCKS proxy and waiting for the
185
+ * SSH server identification string after the TCP connection has been established.
186
+ */
187
+ connectTimeoutMs: number
188
+
189
+ /**
190
+ * Specifies the destination hostname or IP address for fixed-destination port
191
+ * forwarding. This is typically the host running the database server or other TCP
192
+ * service that local clients need to reach.
193
+ *
194
+ * The destination is interpreted from the SSH server's network environment. For
195
+ * example, `localhost` and `127.0.0.1` refer to the SSH
196
+ * server itself, not the computer running the application. Hostname resolution is
197
+ * therefore performed as part of the forwarding request on the SSH-server side.
198
+ *
199
+ * Traffic accepted by the local listener is carried through SSH, forwarded by the
200
+ * SSH server to this destination, and returned through the same tunnel.
201
+ *
202
+ * This property is ignored when
203
+ * {@link SshTunnel.dynamicPortForwarding}
204
+ * is `_TRUE_`. Changing the destination while the listener is
205
+ * running affects new clients only; existing clients remain connected to the
206
+ * destination selected when they were accepted.
207
+ */
208
+ destHostname: string
209
+
210
+ /**
211
+ * Specifies the TCP port of the destination service used for fixed-destination
212
+ * forwarding, such as the port of a database server.
213
+ *
214
+ * It is used together with
215
+ * {@link SshTunnel.destHostname} and is ignored
216
+ * when
217
+ * {@link SshTunnel.dynamicPortForwarding}
218
+ * is `_TRUE_`.
219
+ */
220
+ destPort: number
221
+
222
+ /**
223
+ * Controls whether the listener performs fixed-destination or dynamic port
224
+ * forwarding.
225
+ *
226
+ * -
227
+ * When `_FALSE_` (the default), every accepted connection is
228
+ * forwarded to
229
+ * {@link SshTunnel.destHostname} and
230
+ * {@link SshTunnel.destPort}.
231
+ *
232
+ * -
233
+ * When `_TRUE_`, the listener acts as a SOCKS proxy and each
234
+ * inbound client supplies its own destination.
235
+ *
236
+ * The SOCKS version is detected independently from each inbound client handshake;
237
+ * there is no separate inbound SOCKS-version property. SOCKS4 and SOCKS5
238
+ * `CONNECT` requests are supported. SOCKS5 `BIND` and
239
+ * UDP association are not supported.
240
+ *
241
+ * Leave
242
+ * {@link SshTunnel.inboundSocksUsername}
243
+ * empty to allow SOCKS5 clients to use the no-authentication method. Set the
244
+ * inbound username and password to require SOCKS5 username/password
245
+ * authentication. For SOCKS4, only the user ID can be checked because SOCKS4 has
246
+ * no password field.
247
+ *
248
+ * SOCKS4a hostname-form requests are not supported. Use a numeric IPv4 address
249
+ * with SOCKS4, or use SOCKS5 when the client needs to supply a domain name.
250
+ */
251
+ dynamicPortForwarding: boolean
252
+
253
+ /**
254
+ * Specifies the authentication method to use when the outbound connection to the
255
+ * SSH server passes through an HTTP proxy that requires authentication.
256
+ *
257
+ * Valid values are `Basic` and `NTLM`.
258
+ *
259
+ * If {@link SshTunnel.socksVersion} is set to `4` or `5`, the SOCKS proxy takes precedence and
260
+ * these HTTP proxy settings are ignored. The proxies are not chained.
261
+ */
262
+ httpProxyAuthMethod: string
263
+
264
+ /**
265
+ * Specifies the optional Windows domain used for NTLM authentication with the HTTP
266
+ * proxy.
267
+ *
268
+ * This applies only to the outbound proxy connection used to reach the SSH server,
269
+ * and only when
270
+ * {@link SshTunnel.httpProxyAuthMethod}
271
+ * is `NTLM`.
272
+ *
273
+ * If {@link SshTunnel.socksVersion} is set to `4` or `5`, the SOCKS proxy takes precedence and
274
+ * these HTTP proxy settings are ignored. The proxies are not chained.
275
+ */
276
+ httpProxyDomain: string
277
+
278
+ /**
279
+ * Specifies the hostname or IPv4 address of the HTTP proxy through which the
280
+ * outbound connection to the SSH server is made.
281
+ *
282
+ * Leave this property empty when no HTTP proxy is required.
283
+ *
284
+ * If {@link SshTunnel.socksVersion} is set to `4` or `5`, the SOCKS proxy takes precedence and
285
+ * these HTTP proxy settings are ignored. The proxies are not chained.
286
+ */
287
+ httpProxyHostname: string
288
+
289
+ /**
290
+ * Specifies the password used to authenticate with the HTTP proxy for the outbound
291
+ * connection to the SSH server.
292
+ *
293
+ * If {@link SshTunnel.socksVersion} is set to `4` or `5`, the SOCKS proxy takes precedence and
294
+ * these HTTP proxy settings are ignored. The proxies are not chained.
295
+ */
296
+ httpProxyPassword: string
297
+
298
+ /**
299
+ * Specifies the TCP port of the HTTP proxy used for the outbound connection to the
300
+ * SSH server.
301
+ *
302
+ * Common HTTP proxy ports include `8080` and
303
+ * `3128`.
304
+ *
305
+ * If {@link SshTunnel.socksVersion} is set to `4` or `5`, the SOCKS proxy takes precedence and
306
+ * these HTTP proxy settings are ignored. The proxies are not chained.
307
+ */
308
+ httpProxyPort: number
309
+
310
+ /**
311
+ * Specifies the username used to authenticate with the HTTP proxy for the outbound
312
+ * connection to the SSH server.
313
+ *
314
+ * If {@link SshTunnel.socksVersion} is set to `4` or `5`, the SOCKS proxy takes precedence and
315
+ * these HTTP proxy settings are ignored. The proxies are not chained.
316
+ */
317
+ httpProxyUsername: string
318
+
319
+ /**
320
+ * Specifies a stall timeout, in milliseconds, for tunnel data-transfer operations.
321
+ * The default value is `30000` milliseconds (30 seconds). A value of
322
+ * `0` disables the timeout.
323
+ *
324
+ * This property is not a general inactivity timer for established background
325
+ * tunnel clients. An otherwise idle client, or a client with data queued while an
326
+ * SSH channel is flow-controlled, may remain connected beyond this interval.
327
+ * Applications should not rely on this property to disconnect clients merely
328
+ * because no application data is flowing.
329
+ */
330
+ idleTimeoutMs: number
331
+
332
+ /**
333
+ * Specifies the password required from inbound SOCKS5 clients when
334
+ * {@link SshTunnel.dynamicPortForwarding}
335
+ * is `_TRUE_`.
336
+ *
337
+ * This property is used together with
338
+ * {@link SshTunnel.inboundSocksUsername}.
339
+ * It does not apply to SOCKS4 because the SOCKS4 protocol has no password field.
340
+ */
341
+ inboundSocksPassword: string
342
+
343
+ /**
344
+ * Specifies the username required from inbound SOCKS clients when
345
+ * {@link SshTunnel.dynamicPortForwarding}
346
+ * is `_TRUE_`.
347
+ *
348
+ * - For SOCKS5, setting this property enables username/password authentication.
349
+ *
350
+ * - For SOCKS4, the value is compared with the client-supplied user ID.
351
+ *
352
+ * - Leave it empty to require no inbound SOCKS username.
353
+ */
354
+ inboundSocksUsername: string
355
+
356
+ /**
357
+ * `_TRUE_` when the local listener thread is running and accepting
358
+ * inbound TCP connections; otherwise `_FALSE_`.
359
+ *
360
+ * This property describes only the local listener. It can remain
361
+ * `_TRUE_` after the SSH connection is lost or after
362
+ * {@link SshTunnel.closeTunnel} is called. In those
363
+ * states a client may connect to the local port even though its traffic cannot be
364
+ * forwarded.
365
+ *
366
+ * Use {@link SshTunnel.isSshConnected} separately
367
+ * when the application also needs to know whether the SSH transport is available.
368
+ *
369
+ * This property is read-only.
370
+ */
371
+ readonly isAccepting: boolean
372
+
373
+ /**
374
+ * Controls whether activity from the background listener thread is retained in
375
+ * memory.
376
+ *
377
+ * The default value is `_FALSE_`. When enabled, retrieve the log
378
+ * from {@link SshTunnel.acceptLog}.
379
+ */
380
+ keepAcceptLog: boolean
381
+
382
+ /**
383
+ * Controls whether SSH tunnel-thread activity is retained in memory.
384
+ *
385
+ * The default value is `_FALSE_`. When enabled, retrieve the log
386
+ * from {@link SshTunnel.tunnelLog}.
387
+ */
388
+ keepTunnelLog: boolean
389
+
390
+ /**
391
+ * Specifies the local IPv4 address to which the tunnel's listening socket is
392
+ * bound.
393
+ *
394
+ * Value
395
+ * Listener exposure
396
+ *
397
+ * | Empty string |
398
+ * | Binds to `0.0.0.0` and accepts connections on all local IPv4 interfaces, subject to firewall
399
+ * rules. |
400
+ *
401
+ * | `127.0.0.1` |
402
+ * | Accepts connections only from the local computer through loopback. |
403
+ *
404
+ * | A specific local LAN address |
405
+ * | Accepts connections through that interface only; loopback is not included automatically. |
406
+ *
407
+ * For a tunnel intended only for local applications, explicitly set this property
408
+ * to `127.0.0.1`. Leaving it empty may expose the listening port to
409
+ * other computers on the network.
410
+ *
411
+ * If the value is malformed or is not assigned to a local interface,
412
+ * {@link SshTunnel.beginAccepting} returns
413
+ * `_FALSE_` and the bind failure is available in
414
+ * `LastErrorText` and the accept log.
415
+ */
416
+ listenBindIpAddress: string
417
+
418
+ /**
419
+ * Contains the local TCP port used by the listener started by
420
+ * {@link SshTunnel.beginAccepting}.
421
+ *
422
+ * -
423
+ * If `BeginAccepting` succeeds with a nonzero requested port, this
424
+ * property contains that port.
425
+ *
426
+ * -
427
+ * If `BeginAccepting` succeeds with `0`, the operating
428
+ * system chooses an available port and this property contains the allocated port
429
+ * when the method returns.
430
+ *
431
+ * -
432
+ * After a bind failure for an explicitly requested port, this property may still
433
+ * contain the requested port even though
434
+ * {@link SshTunnel.isAccepting} is
435
+ * `_FALSE_`.
436
+ *
437
+ * - The value is initially `0`.
438
+ *
439
+ * This property is read-only.
440
+ */
441
+ readonly listenPort: number
442
+
443
+ /**
444
+ * Specifies the local IP address to which the outbound socket is bound before
445
+ * connecting to the SSH server.
446
+ *
447
+ * Most applications should leave this property empty. Set it only on a
448
+ * multihomed computer when the SSH connection must originate from a specific
449
+ * local network interface or IP address.
450
+ */
451
+ outboundBindIpAddress: string
452
+
453
+ /**
454
+ * Specifies the local TCP port to bind before making the outbound connection to
455
+ * the SSH server.
456
+ *
457
+ * The default value is `0`, which allows the operating system to
458
+ * choose an available ephemeral port. Nearly all applications should leave this
459
+ * property unchanged.
460
+ */
461
+ outboundBindPort: number
462
+
463
+ /**
464
+ * Sets the receive-buffer size for the underlying TCP socket.
465
+ *
466
+ * The default value is `4194304` bytes. Normally this property
467
+ * should remain unchanged. If receive performance is unusually slow, testing a
468
+ * larger value that is a multiple of `4096` may help.
469
+ */
470
+ soRcvBuf: number
471
+
472
+ /**
473
+ * Sets the send-buffer size for the underlying TCP socket.
474
+ *
475
+ * The default value is `262144` bytes. Normally this property
476
+ * should remain unchanged. If send performance is unusually slow, testing values
477
+ * such as `524288` or `1048576` may help. A
478
+ * multiple of `4096` is recommended.
479
+ */
480
+ soSndBuf: number
481
+
482
+ /**
483
+ * Specifies the hostname or IPv4 address of the outbound SOCKS4 or SOCKS5 proxy
484
+ * used to reach the SSH server.
485
+ *
486
+ * This property is used only when
487
+ * {@link SshTunnel.socksVersion} is
488
+ * `4` or `5`.
489
+ */
490
+ socksHostname: string
491
+
492
+ /**
493
+ * Specifies the password for authenticating with an outbound SOCKS5 proxy used to
494
+ * reach the SSH server.
495
+ *
496
+ * SOCKS4 does not support password authentication, so this property does not apply
497
+ * when {@link SshTunnel.socksVersion} is
498
+ * `4`.
499
+ */
500
+ socksPassword: string
501
+
502
+ /**
503
+ * Specifies the TCP port of the outbound SOCKS4 or SOCKS5 proxy used to reach the
504
+ * SSH server.
505
+ *
506
+ * The default value is `1080`. This property is used only when
507
+ * {@link SshTunnel.socksVersion} is
508
+ * `4` or `5`.
509
+ */
510
+ socksPort: number
511
+
512
+ /**
513
+ * Specifies the username for the outbound SOCKS4 or SOCKS5 proxy used to reach the
514
+ * SSH server.
515
+ *
516
+ * This property is used only when
517
+ * {@link SshTunnel.socksVersion} is
518
+ * `4` or `5`.
519
+ */
520
+ socksUsername: string
521
+
522
+ /**
523
+ * Selects whether the outbound connection to the SSH server is made through a
524
+ * SOCKS proxy.
525
+ *
526
+ * Value
527
+ * Behavior
528
+ *
529
+ * | `0` |
530
+ * | Do not use a SOCKS proxy. This is the default. |
531
+ *
532
+ * | `4` |
533
+ * | Connect through a SOCKS4 proxy. |
534
+ *
535
+ * | `5` |
536
+ * | Connect through a SOCKS5 proxy. |
537
+ *
538
+ * When this property is `4` or `5`, the SOCKS proxy
539
+ * settings take precedence over the HTTP proxy settings. The SOCKS and HTTP
540
+ * proxies are not chained.
541
+ */
542
+ socksVersion: number
543
+
544
+ /**
545
+ * Controls the `TCP_NODELAY` socket option for the underlying TCP
546
+ * connection.
547
+ *
548
+ * The default value is `_FALSE_`. Setting it to
549
+ * `_TRUE_` disables the Nagle algorithm, which can reduce latency
550
+ * when many small amounts of data are sent.
551
+ */
552
+ tcpNoDelay: boolean
553
+
554
+ /**
555
+ * Contains the in-memory activity log for the SSH tunnel and client-manager
556
+ * threads. The log is populated only when
557
+ * {@link SshTunnel.keepTunnelLog} is
558
+ * `_TRUE_`.
559
+ *
560
+ * Treat this log as sensitive diagnostic data. It can contain hostnames, ports,
561
+ * usernames, proxy details, SOCKS handshake information, and authentication
562
+ * failure values. Do not publish or persist it without reviewing and protecting
563
+ * its contents.
564
+ */
565
+ tunnelLog: string
566
+
567
+ /**
568
+ * Specifies the local file path where SSH tunnel-thread activity is written.
569
+ *
570
+ * This file-based log is separate from the in-memory
571
+ * {@link SshTunnel.tunnelLog}.
572
+ */
573
+ tunnelLogPath: string
574
+
575
+ /**
576
+ * Contains the SSH server host-key fingerprint after
577
+ * {@link SshTunnel.connect} or
578
+ * {@link SshTunnel.connectThroughSsh}
579
+ * establishes the SSH connection. The value is available before user
580
+ * authentication.
581
+ *
582
+ * Example:
583
+ * `ssh-ed25519 256 e0:33:b1:81:a5:c6:9a:d2:2e:c9:d3:15:60:ea:cf:4c`
584
+ *
585
+ * Compare this value with a trusted expected fingerprint to verify the identity
586
+ * of the SSH server. For
587
+ * {@link SshTunnel.connectThroughSsh}, the
588
+ * fingerprint is for the final SSH server, not the first-hop server.
589
+ *
590
+ * The value may remain populated after
591
+ * {@link SshTunnel.closeTunnel} or after the
592
+ * connection is lost. Use
593
+ * {@link SshTunnel.isSshConnected} to determine
594
+ * current connection state.
595
+ *
596
+ * This property is read-only.
597
+ */
598
+ readonly hostKeyFingerprint: string
599
+
600
+ /**
601
+ * Set this property to `_TRUE_` from another thread to request that
602
+ * the currently running foreground operation be aborted. For example, it can
603
+ * interrupt a synchronous
604
+ * {@link SshTunnel.connect} that is waiting for an SSH
605
+ * server response.
606
+ *
607
+ * This property does not stop the background listener or terminate established
608
+ * background tunnel clients.
609
+ *
610
+ * Do not assume the property is automatically reset after an operation is
611
+ * aborted. It may remain `_TRUE_`; set it back to
612
+ * `_FALSE_` before starting another operation.
613
+ */
614
+ abortCurrent: boolean
615
+
616
+ /**
617
+ * Controls which IP version is preferred when a hostname resolves to both IPv4 and
618
+ * IPv6 addresses.
619
+ *
620
+ * - `_FALSE_` (the default) prefers IPv4.
621
+ *
622
+ * - `_TRUE_` prefers IPv6.
623
+ */
624
+ preferIpv6: boolean
625
+
626
+ /**
627
+ * Provides optional behavior for uncommon requirements. The default value is an
628
+ * empty string, which is appropriate for most applications.
629
+ *
630
+ * To enable more than one option, provide a comma-separated list of keywords.
631
+ *
632
+ * Keyword
633
+ * Effect
634
+ *
635
+ * | `ForceUserAuthRsaSha1` |
636
+ * | Forces `rsa-sha1` for public-key user authentication. Set this before connecting. Added in
637
+ * v9.5.0.98. |
638
+ *
639
+ * | `NoKeepAliveIgnoreMsg` |
640
+ * | Disables the default SSH `ignore` message sent every 20 seconds to keep an idle connection
641
+ * alive. Added in v9.5.0.76. |
642
+ *
643
+ * | `no-weak-mac-algs` |
644
+ * | Removes `hmac-sha1-96`, `hmac-sha1`, `hmac-md5`, and `hmac-ripemd160` from the offered MAC
645
+ * algorithms. Added in v9.5.0.98. |
646
+ *
647
+ * | `ProtectFromVpn` |
648
+ * | On Android, bypasses an installed or active VPN. Added in v9.5.0.80. |
649
+ *
650
+ * | `+ssh-hmac-etm` |
651
+ * | Re-enables SSH encrypt-then-MAC algorithms that were disabled by default in v9.5.0.97 as part
652
+ * of the Terrapin mitigation. |
653
+ *
654
+ * | `+chacha20-poly1305@openssh.com` |
655
+ * | Re-enables `chacha20-poly1305@openssh.com`, which was removed from the default offer in
656
+ * v9.5.0.97 as part of the Terrapin mitigation. |
657
+ */
658
+ uncommonOptions: string
659
+
660
+ /**
661
+ * Specifies the SSH client-identification string sent when connecting to the SSH
662
+ * server.
663
+ *
664
+ * Starting in Chilkat v9.5.0.99, the default is
665
+ * `SSH-2.0-Chilkat_` followed by the Chilkat version number, such
666
+ * as `SSH-2.0-Chilkat_9.5.0.99`.
667
+ *
668
+ * The identifier should begin with `SSH-2.0-`. Some SSH servers
669
+ * disconnect clients that send an invalid identification string.
670
+ */
671
+ clientIdentifier: string
672
+
673
+ /**
674
+ * Specifies the local directory where a separate log file is created for each
675
+ * tunnel client.
676
+ *
677
+ * When this property is not empty, files are named using the pattern
678
+ * `tunnel_client_log_{random_id}.txt`.
679
+ */
680
+ clientLogDir: string
681
+
682
+ /**
683
+ * Enables automatic resolution of credentials from secure storage provided by the
684
+ * operating system.
685
+ *
686
+ * When set to `_TRUE_`, supported password properties and methods
687
+ * may receive a **secret specification string** beginning with
688
+ * `!!` instead of a literal password. Chilkat resolves the secret
689
+ * from:
690
+ *
691
+ * - Windows Credential Manager on Windows.
692
+ *
693
+ * - Apple Keychain on macOS.
694
+ *
695
+ * The specification format is:
696
+ * `!![appName|]service[|domain]|username`
697
+ *
698
+ * This applies to
699
+ * {@link SshTunnel.httpProxyPassword},
700
+ * {@link SshTunnel.socksPassword},
701
+ * {@link SshTunnel.authenticatePw}, and
702
+ * {@link SshTunnel.authenticatePwPk}.
703
+ *
704
+ * The default value is `_FALSE_`.
705
+ */
706
+ enableSecrets: boolean
707
+
708
+ // ---- Methods ----
709
+
710
+ /**
711
+ * Authenticates with the SSH server using public-key authentication.
712
+ *
713
+ * The public key corresponding to `privateKey` must already be
714
+ * installed for `username` on the SSH server.
715
+ *
716
+ * Call {@link SshTunnel.connect} or
717
+ * {@link SshTunnel.connectThroughSsh}
718
+ * before calling this method.
719
+ *
720
+ * When requesting support for an authentication failure, include the complete
721
+ * `LastErrorText`.
722
+ *
723
+ * This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
724
+ * {@link SshTunnel.authenticatePkAsync}.
725
+ *
726
+ * @throws Error if the call fails (the message names the reason); the full log is in
727
+ * {@link SshTunnel.lastErrorText}.
728
+ */
729
+ authenticatePk(username: string, privateKey: SshKey): void
730
+
731
+ /**
732
+ * Asynchronous form of {@link SshTunnel.authenticatePk}: the same call on a native worker thread,
733
+ * settling on the JavaScript thread. While it is pending, other calls on this object throw,
734
+ * except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
735
+ * {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
736
+ *
737
+ * The promise rejects with an Error if the call fails; the full log is in
738
+ * {@link SshTunnel.lastErrorText}.
739
+ */
740
+ authenticatePkAsync(username: string, privateKey: SshKey): Promise<void>
741
+
742
+ /**
743
+ * Authenticates with the SSH server using `login` and
744
+ * `password`.
745
+ *
746
+ * Establish the SSH connection first by calling
747
+ * {@link SshTunnel.connect} or
748
+ * {@link SshTunnel.connectThroughSsh}.
749
+ * After authentication succeeds, call
750
+ * {@link SshTunnel.beginAccepting} to begin
751
+ * accepting tunnel clients.
752
+ *
753
+ * - A rejected username or password does not close the SSH connection; the application may
754
+ * correct the credentials and call this method again.
755
+ *
756
+ * - Calling this method again after authentication has already succeeded returns `_FALSE_` with
757
+ * an “Already authenticated” error.
758
+ *
759
+ * When requesting support for an authentication failure, include the complete
760
+ * `LastErrorText` captured immediately after the failed call.
761
+ *
762
+ * This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
763
+ * {@link SshTunnel.authenticatePwAsync}.
764
+ *
765
+ * @throws Error if the call fails (the message names the reason); the full log is in
766
+ * {@link SshTunnel.lastErrorText}.
767
+ */
768
+ authenticatePw(login: string, password: string): void
769
+
770
+ /**
771
+ * Asynchronous form of {@link SshTunnel.authenticatePw}: the same call on a native worker thread,
772
+ * settling on the JavaScript thread. While it is pending, other calls on this object throw,
773
+ * except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
774
+ * {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
775
+ *
776
+ * The promise rejects with an Error if the call fails; the full log is in
777
+ * {@link SshTunnel.lastErrorText}.
778
+ */
779
+ authenticatePwAsync(login: string, password: string): Promise<void>
780
+
781
+ /**
782
+ * Authenticates with an SSH server that requires both a password and a private key.
783
+ *
784
+ * The public key corresponding to `privateKey` must already be
785
+ * installed for `username` on the SSH server. Most SSH servers
786
+ * require either password authentication or public-key authentication rather than
787
+ * both.
788
+ *
789
+ * When requesting support for an authentication failure, include the complete
790
+ * `LastErrorText`.
791
+ *
792
+ * This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
793
+ * {@link SshTunnel.authenticatePwPkAsync}.
794
+ *
795
+ * @throws Error if the call fails (the message names the reason); the full log is in
796
+ * {@link SshTunnel.lastErrorText}.
797
+ */
798
+ authenticatePwPk(username: string, password: string, privateKey: SshKey): void
799
+
800
+ /**
801
+ * Asynchronous form of {@link SshTunnel.authenticatePwPk}: the same call on a native worker
802
+ * thread,
803
+ * settling on the JavaScript thread. While it is pending, other calls on this object throw,
804
+ * except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
805
+ * {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
806
+ *
807
+ * The promise rejects with an Error if the call fails; the full log is in
808
+ * {@link SshTunnel.lastErrorText}.
809
+ */
810
+ authenticatePwPkAsync(username: string, password: string, privateKey: SshKey): Promise<void>
811
+
812
+ /**
813
+ * Creates and starts the local listener on `listenPort`.
814
+ *
815
+ * The SSH connection must already have been established. Although the listener
816
+ * can be started before user authentication, clients accepted in that state
817
+ * cannot be forwarded. The recommended sequence is to connect, authenticate, and
818
+ * then call this method.
819
+ *
820
+ * - The requested port must not already be in use on the selected local interface.
821
+ *
822
+ * - Pass `0` to let the operating system choose an available port, then read {@link
823
+ * SshTunnel.listenPort}.
824
+ *
825
+ * - Calling this method while the listener is already running returns `_FALSE_`.
826
+ *
827
+ * The method waits for the initial bind-and-listen result. It returns
828
+ * `_FALSE_` for errors such as an occupied port, a malformed bind
829
+ * address, or an address that is not assigned to the local computer. Details are
830
+ * available immediately in `LastErrorText` and, when enabled, the
831
+ * accept log.
832
+ *
833
+ * A successful return means the listener was bound and started. No additional
834
+ * fixed delay is required merely to discover an initial bind failure.
835
+ *
836
+ * This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
837
+ * {@link SshTunnel.beginAcceptingAsync}.
838
+ *
839
+ * @throws Error if the call fails (the message names the reason); the full log is in
840
+ * {@link SshTunnel.lastErrorText}.
841
+ */
842
+ beginAccepting(listenPort: number): void
843
+
844
+ /**
845
+ * Asynchronous form of {@link SshTunnel.beginAccepting}: the same call on a native worker thread,
846
+ * settling on the JavaScript thread. While it is pending, other calls on this object throw,
847
+ * except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
848
+ * {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
849
+ *
850
+ * The promise rejects with an Error if the call fails; the full log is in
851
+ * {@link SshTunnel.lastErrorText}.
852
+ */
853
+ beginAcceptingAsync(listenPort: number): Promise<void>
854
+
855
+ /**
856
+ * Disconnects active tunnel clients and stops the tunnel-manager thread.
857
+ *
858
+ * When `waitForThreads` is `_TRUE_`, the method waits
859
+ * for the client and tunnel-manager threads to exit. It returns
860
+ * `_FALSE_` if a worker thread does not stop; capture
861
+ * `LastErrorText` immediately for details.
862
+ *
863
+ * This method does not stop the local listener and does not disconnect or reset
864
+ * the underlying SSH transport. Call
865
+ * {@link SshTunnel.stopAccepting} separately to
866
+ * stop accepting local TCP connections. After this method returns, the listener
867
+ * may still accept a local connection even though the connection cannot be
868
+ * forwarded.
869
+ *
870
+ * Calling this method more than once is allowed. However, it does not reset the
871
+ * object for a new call to
872
+ * {@link SshTunnel.connect}. Use a new
873
+ * `SshTunnel` object when connecting to a different SSH server.
874
+ *
875
+ * @throws Error if the call fails (the message names the reason); the full log is in
876
+ * {@link SshTunnel.lastErrorText}.
877
+ */
878
+ closeTunnel(waitForThreads: boolean): void
879
+
880
+ /**
881
+ * Establishes the SSH connection that will carry tunneled traffic. This method
882
+ * performs the TCP or proxy connection, the SSH protocol handshake, and host-key
883
+ * negotiation, but it does not authenticate the SSH user.
884
+ *
885
+ * After connecting, verify
886
+ * {@link SshTunnel.hostKeyFingerprint}, then
887
+ * authenticate by calling one of the `Authenticate*` methods. Finally,
888
+ * call {@link SshTunnel.beginAccepting} to start
889
+ * the local listener.
890
+ *
891
+ * The host-key fingerprint is available immediately after this method succeeds,
892
+ * before user authentication. Calling `Connect` again while an SSH
893
+ * tunnel already exists returns `_FALSE_`.
894
+ *
895
+ * Chilkat sends an SSH `ignore` message every 20 seconds to help
896
+ * keep an unused SSH connection alive. To disable this behavior, add
897
+ * `NoKeepAliveIgnoreMsg` to
898
+ * {@link SshTunnel.uncommonOptions} before
899
+ * connecting.
900
+ *
901
+ * This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
902
+ * {@link SshTunnel.connectAsync}.
903
+ *
904
+ * @throws Error if the call fails (the message names the reason); the full log is in
905
+ * {@link SshTunnel.lastErrorText}.
906
+ */
907
+ connect(hostname: string, port: number): void
908
+
909
+ /**
910
+ * Asynchronous form of {@link SshTunnel.connect}: the same call on a native worker thread,
911
+ * settling on the JavaScript thread. While it is pending, other calls on this object throw,
912
+ * except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
913
+ * {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
914
+ *
915
+ * The promise rejects with an Error if the call fails; the full log is in
916
+ * {@link SshTunnel.lastErrorText}.
917
+ */
918
+ connectAsync(hostname: string, port: number): Promise<void>
919
+
920
+ /**
921
+ * Disconnects all active tunnel clients while leaving the local listener and SSH
922
+ * connection available.
923
+ *
924
+ * When `waitForThreads` is `_TRUE_`, the method waits
925
+ * for the current client threads to exit before returning. The listener continues
926
+ * accepting new clients, and newly accepted clients can be forwarded normally.
927
+ *
928
+ * @throws Error if the call fails (the message names the reason); the full log is in
929
+ * {@link SshTunnel.lastErrorText}.
930
+ */
931
+ disconnectAllClients(waitForThreads: boolean): void
932
+
933
+ /**
934
+ * Stops the local listener so that no new client connections are accepted.
935
+ * Existing forwarded clients remain connected and continue exchanging data.
936
+ *
937
+ * - When `waitForThread` is `_TRUE_`, the method waits for the listener thread to exit before
938
+ * returning.
939
+ *
940
+ * - When it is `_FALSE_`, shutdown is asynchronous and {@link SshTunnel.isAccepting} may remain
941
+ * `_TRUE_` briefly after the method returns.
942
+ *
943
+ * Call {@link SshTunnel.beginAccepting} again to
944
+ * resume accepting connections. The listener can be restarted on the same port
945
+ * after the previous listener has stopped.
946
+ *
947
+ * @throws Error if the call fails (the message names the reason); the full log is in
948
+ * {@link SshTunnel.lastErrorText}.
949
+ */
950
+ stopAccepting(waitForThread: boolean): void
951
+
952
+ /**
953
+ * Connects to a second SSH server through the existing connected and authenticated
954
+ * `Ssh` object supplied in `ssh`.
955
+ *
956
+ * ```
957
+ * application -> first SSH server -> second SSH server
958
+ * ```
959
+ *
960
+ * `hostname` and `port` identify the second SSH server.
961
+ * After this method succeeds, call an authentication method on this
962
+ * `SshTunnel` object to authenticate with the second server.
963
+ *
964
+ * The supplied `Ssh` object is borrowed, not copied. It must remain
965
+ * alive, connected, and authenticated for as long as this tunnel is used. If the
966
+ * first-hop object is disconnected, existing forwarded clients stop working and
967
+ * new local connections cannot be forwarded. The local listener may nevertheless
968
+ * remain active until explicitly stopped.
969
+ *
970
+ * {@link SshTunnel.hostKeyFingerprint} reports
971
+ * the fingerprint of the second SSH server. After the connection is established,
972
+ * fixed forwarding destinations such as `127.0.0.1` are interpreted
973
+ * from the second server's network environment.
974
+ *
975
+ * This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
976
+ * {@link SshTunnel.connectThroughSshAsync}.
977
+ *
978
+ * @throws Error if the call fails (the message names the reason); the full log is in
979
+ * {@link SshTunnel.lastErrorText}.
980
+ */
981
+ connectThroughSsh(ssh: Ssh, hostname: string, port: number): void
982
+
983
+ /**
984
+ * Asynchronous form of {@link SshTunnel.connectThroughSsh}: the same call on a native worker
985
+ * thread,
986
+ * settling on the JavaScript thread. While it is pending, other calls on this object throw,
987
+ * except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
988
+ * {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
989
+ *
990
+ * The promise rejects with an Error if the call fails; the full log is in
991
+ * {@link SshTunnel.lastErrorText}.
992
+ */
993
+ connectThroughSshAsync(ssh: Ssh, hostname: string, port: number): Promise<void>
994
+
995
+ /**
996
+ * Returns `_TRUE_` when the SSH transport used by this tunnel is
997
+ * connected; otherwise returns `_FALSE_`.
998
+ *
999
+ * This is independent of the local listener state. The listener may still be
1000
+ * accepting local TCP connections when this method returns `_FALSE_`,
1001
+ * but those connections cannot be forwarded until a usable SSH transport exists.
1002
+ *
1003
+ * For a tunnel created with
1004
+ * {@link SshTunnel.connectThroughSsh}, this
1005
+ * method becomes `_FALSE_` when the borrowed first-hop
1006
+ * `Ssh` connection is disconnected.
1007
+ */
1008
+ isSshConnected(): boolean
1009
+
1010
+ /**
1011
+ * Returns an XML snapshot describing the tunnel manager, SSH channels, and current
1012
+ * tunnel clients. The returned data is intended for diagnostics and monitoring.
1013
+ *
1014
+ * A typical result has the following structure:
1015
+ *
1016
+ * ```
1017
+ * _LT_CurrentState_GT_
1018
+ * _LT_tunnelManager rcvByteCount="433" sndByteCount="34"
1019
+ * threadRunning="1" dynamicPortForwarding="0"
1020
+ * staticDestHost="localhost" staticDestPort="18080"_GT_
1021
+ * _LT_openChannels count="1"_GT_
1022
+ * _LT_channel num="101" channelType="direct-tcpip"
1023
+ * clientWinSize="2096927" serverWinSize="2097127" /_GT_
1024
+ * _LT_/openChannels_GT_
1025
+ * _LT_closedChannels count="0" /_GT_
1026
+ * _LT_/tunnelManager_GT_
1027
+ * _LT_clients count="1"_GT_
1028
+ * _LT_client destIp="localhost" destPort="18080"
1029
+ * sshChannelNum="101" threadRunning="1"
1030
+ * rcvByteCount="25" sndByteCount="225" /_GT_
1031
+ * _LT_/clients_GT_
1032
+ * _LT_/CurrentState_GT_
1033
+ * ```
1034
+ *
1035
+ * The exact child elements can vary with state. For example, channel collections
1036
+ * may be empty, and some transport details may be omitted before the tunnel is
1037
+ * started or after it stops.
1038
+ *
1039
+ * Section
1040
+ * Information
1041
+ *
1042
+ * | `tunnelManager` |
1043
+ * | Aggregate byte counts, worker-thread state, forwarding mode, and configured fixed
1044
+ * destination. |
1045
+ *
1046
+ * | `openChannels` and `closedChannels` |
1047
+ * | SSH channel numbers, close/EOF flags, packet sizes, and flow-control window sizes. |
1048
+ *
1049
+ * | `clients` |
1050
+ * | Per-client destination, SSH channel number, worker state, age/activity counters, pending-data
1051
+ * flags, and byte counts. |
1052
+ *
1053
+ * @throws Error if the call fails (the message names the reason); the full log is in
1054
+ * {@link SshTunnel.lastErrorText}.
1055
+ */
1056
+ getCurrentState(): string
1057
+
1058
+ /**
1059
+ * Performs the same password authentication as
1060
+ * {@link SshTunnel.authenticatePw}, but receives
1061
+ * the login and password in `SecureString` objects.
1062
+ *
1063
+ * This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
1064
+ * {@link SshTunnel.authenticateSecPwAsync}.
1065
+ *
1066
+ * @throws Error if the call fails (the message names the reason); the full log is in
1067
+ * {@link SshTunnel.lastErrorText}.
1068
+ */
1069
+ authenticateSecPw(login: SecureString, password: SecureString): void
1070
+
1071
+ /**
1072
+ * Asynchronous form of {@link SshTunnel.authenticateSecPw}: the same call on a native worker
1073
+ * thread,
1074
+ * settling on the JavaScript thread. While it is pending, other calls on this object throw,
1075
+ * except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
1076
+ * {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
1077
+ *
1078
+ * The promise rejects with an Error if the call fails; the full log is in
1079
+ * {@link SshTunnel.lastErrorText}.
1080
+ */
1081
+ authenticateSecPwAsync(login: SecureString, password: SecureString): Promise<void>
1082
+
1083
+ /**
1084
+ * Performs the same combined password-and-private-key authentication as
1085
+ * {@link SshTunnel.authenticatePwPk}, but
1086
+ * receives the username and password in `SecureString` objects.
1087
+ *
1088
+ * This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
1089
+ * {@link SshTunnel.authenticateSecPwPkAsync}.
1090
+ *
1091
+ * @throws Error if the call fails (the message names the reason); the full log is in
1092
+ * {@link SshTunnel.lastErrorText}.
1093
+ */
1094
+ authenticateSecPwPk(username: SecureString, password: SecureString, privateKey: SshKey): void
1095
+
1096
+ /**
1097
+ * Asynchronous form of {@link SshTunnel.authenticateSecPwPk}: the same call on a native worker
1098
+ * thread,
1099
+ * settling on the JavaScript thread. While it is pending, other calls on this object throw,
1100
+ * except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
1101
+ * {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
1102
+ *
1103
+ * The promise rejects with an Error if the call fails; the full log is in
1104
+ * {@link SshTunnel.lastErrorText}.
1105
+ */
1106
+ authenticateSecPwPkAsync(username: SecureString, password: SecureString, privateKey: SshKey): Promise<void>
1107
+
1108
+ /**
1109
+ * Begins keyboard-interactive authentication for `login`.
1110
+ *
1111
+ * When the server requests one or more responses, the returned XML contains the
1112
+ * request name, instructions, and prompts:
1113
+ *
1114
+ * ```
1115
+ * _LT_infoRequest numPrompts="N"_GT_
1116
+ * _LT_name_GT_name text_LT_/name_GT_
1117
+ * _LT_instruction_GT_instruction text_LT_/instruction_GT_
1118
+ * _LT_prompt1 echo="1_or_0"_GT_prompt text_LT_/prompt1_GT_
1119
+ * ...
1120
+ * _LT_promptN echo="1_or_0"_GT_prompt text_LT_/promptN_GT_
1121
+ * _LT_/infoRequest_GT_
1122
+ * ```
1123
+ *
1124
+ * The `echo` attribute indicates whether the response should be
1125
+ * displayed while entered.
1126
+ *
1127
+ * If authentication immediately succeeds or fails without requiring a response,
1128
+ * the returned XML has one of these forms:
1129
+ *
1130
+ * ```
1131
+ * _LT_success_GT_success message_LT_/success_GT_
1132
+ *
1133
+ * _LT_error_GT_error message_LT_/error_GT_
1134
+ * ```
1135
+ *
1136
+ * Pass the requested response or responses to
1137
+ * {@link SshTunnel.continueKeyboardAuth}.
1138
+ *
1139
+ * This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
1140
+ * {@link SshTunnel.startKeyboardAuthAsync}.
1141
+ *
1142
+ * @throws Error if the call fails (the message names the reason); the full log is in
1143
+ * {@link SshTunnel.lastErrorText}.
1144
+ */
1145
+ startKeyboardAuth(login: string): string
1146
+
1147
+ /**
1148
+ * Asynchronous form of {@link SshTunnel.startKeyboardAuth}: the same call on a native worker
1149
+ * thread,
1150
+ * settling on the JavaScript thread. While it is pending, other calls on this object throw,
1151
+ * except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
1152
+ * {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
1153
+ *
1154
+ * The promise rejects with an Error if the call fails; the full log is in
1155
+ * {@link SshTunnel.lastErrorText}.
1156
+ */
1157
+ startKeyboardAuthAsync(login: string): Promise<string>
1158
+
1159
+ /**
1160
+ * Continues a keyboard-interactive authentication exchange started by
1161
+ * {@link SshTunnel.startKeyboardAuth}.
1162
+ *
1163
+ * If the server requested one response, pass that value directly in
1164
+ * `response`. If it requested multiple responses, pass XML in the
1165
+ * following form:
1166
+ *
1167
+ * ```
1168
+ * _LT_response_GT_
1169
+ * _LT_response1_GT_response to first prompt_LT_/response1_GT_
1170
+ * _LT_response2_GT_response to second prompt_LT_/response2_GT_
1171
+ * ...
1172
+ * _LT_responseN_GT_response to Nth prompt_LT_/responseN_GT_
1173
+ * _LT_/response_GT_
1174
+ * ```
1175
+ *
1176
+ * When authentication completes, the returned XML indicates success or failure:
1177
+ *
1178
+ * ```
1179
+ * _LT_success_GT_success message_LT_/success_GT_
1180
+ *
1181
+ * _LT_error_GT_error message_LT_/error_GT_
1182
+ * ```
1183
+ *
1184
+ * If another challenge is required, the method returns another
1185
+ * `infoRequest` XML document containing the next set of prompts.
1186
+ *
1187
+ * This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
1188
+ * {@link SshTunnel.continueKeyboardAuthAsync}.
1189
+ *
1190
+ * @throws Error if the call fails (the message names the reason); the full log is in
1191
+ * {@link SshTunnel.lastErrorText}.
1192
+ */
1193
+ continueKeyboardAuth(response: string): string
1194
+
1195
+ /**
1196
+ * Asynchronous form of {@link SshTunnel.continueKeyboardAuth}: the same call on a native worker
1197
+ * thread,
1198
+ * settling on the JavaScript thread. While it is pending, other calls on this object throw,
1199
+ * except {@link SshTunnel.abort} (which cancels it) and the {@link SshTunnel.onPercentDone} /
1200
+ * {@link SshTunnel.onProgressInfo} callbacks, which report progress while it runs.
1201
+ *
1202
+ * The promise rejects with an Error if the call fails; the full log is in
1203
+ * {@link SshTunnel.lastErrorText}.
1204
+ */
1205
+ continueKeyboardAuthAsync(response: string): Promise<string>
1206
+
1207
+ /**
1208
+ * Restricts the SSH connection to the algorithms specified in
1209
+ * `json`.
1210
+ *
1211
+ * This allows an application to define the exact algorithm set that may be used
1212
+ * during SSH negotiation.
1213
+ *
1214
+ * @throws Error if the call fails (the message names the reason); the full log is in
1215
+ * {@link SshTunnel.lastErrorText}.
1216
+ */
1217
+ setAllowedAlgorithms(json: JsonObject): void
1218
+
1219
+ // ---- Events (ReactNativeGen_DESIGN.md §6) ----
1220
+
1221
+ /**
1222
+ * Called with the percent completed (0..100) while a long-running method runs, when Chilkat
1223
+ * can measure progress. Runs on the JavaScript thread, so it is only useful with the
1224
+ * `...Async` methods (during a synchronous call the thread is busy and the events arrive
1225
+ * after it returns). Assign `undefined` to remove.
1226
+ */
1227
+ onPercentDone?: (pctDone: number) => void
1228
+
1229
+ /**
1230
+ * Called with a name/value pair of progress information while a long-running method runs
1231
+ * (what is reported depends on the class and method). Runs on the JavaScript thread; see
1232
+ * {@link SshTunnel.onPercentDone}. Assign `undefined` to remove.
1233
+ */
1234
+ onProgressInfo?: (name: string, value: string) => void
1235
+
1236
+ /**
1237
+ * Requests that the pending `...Async` call on this object stop at its next progress check.
1238
+ * The promise then rejects with Chilkat's abort error. Chilkat checks at least every
1239
+ * `heartbeatMs` milliseconds on the classes that have that property, so set it (e.g. 250)
1240
+ * for a responsive cancel. Harmless when nothing is pending.
1241
+ */
1242
+ abort(): void
1243
+ }