@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,1023 @@
1
+ // Generated by ReactNativeNs.RnGenerator -- do not edit.
2
+ import type { HybridObject } from 'react-native-nitro-modules'
3
+ import type { Socket } from './Socket.nitro'
4
+ import type { StringBuilder } from './StringBuilder.nitro'
5
+
6
+ /**
7
+ * OAuth2 Authorization Code Flow
8
+ *
9
+ * Obtain OAuth2 access tokens from desktop and native applications
10
+ *
11
+ * The `OAuth2` class enables desktop and native applications
12
+ * to perform the OAuth 2.0 Authorization Code Flow for obtaining an initial
13
+ * access token. The flow begins with `StartAuth`, which generates
14
+ * the authorization URL to open in a browser and starts a background listener
15
+ * for the local redirect callback.
16
+ *
17
+ * **Browser-based authorization**
18
+ * Use `LaunchBrowser` to open the generated authorization URL.
19
+ *
20
+ * **Local redirect handling**
21
+ * Chilkat listens locally for the provider’s redirect response.
22
+ *
23
+ * **Token exchange**
24
+ * The authorization code is exchanged for access and refresh tokens.
25
+ *
26
+ * **Diagnostics and state**
27
+ * Inspect `AuthFlowState`, `FailureInfo`, and token response data.
28
+ *
29
+ * After the user grants or denies authorization, Chilkat captures the redirect
30
+ * response, completes the token exchange, and makes the results available through
31
+ * properties such as `AccessToken`, `RefreshToken`,
32
+ * `AccessTokenResponse`, `AuthFlowState`, and
33
+ * `FailureInfo`.
34
+ *
35
+ * The class also supports PKCE, refresh-token requests, custom authorization and
36
+ * token parameters, secure OS-backed secret resolution, and detailed diagnostic
37
+ * information.
38
+ *
39
+ * **Note:**
40
+ * This class is primarily used to obtain the initial OAuth2 access token. After
41
+ * that, applications typically use the refresh token to obtain new access tokens
42
+ * for an extended period without requiring further user interaction.
43
+ *
44
+ * For an extended overview, see
45
+ * [OAuth2 Class Overview](https://www.chilkatsoft.com/oauth2_class_overview.asp).
46
+ *
47
+ * Each `OAuth2` instance owns a native Chilkat object. It is released when the JavaScript object is
48
+ * garbage collected, or immediately by `dispose()`; any use after `dispose()` throws.
49
+ * Create one with `new OAuth2()`.
50
+ *
51
+ * Methods that can take a while (network, files, compression, key generation) also have an
52
+ * `...Async` form returning a `Promise`; it runs on a native worker thread so the UI keeps
53
+ * rendering. While such a call is pending, every other call on this object throws, except
54
+ * {@link OAuth2.abort} and assigning {@link OAuth2.onPercentDone} / {@link OAuth2.onProgressInfo}.
55
+ */
56
+ export interface OAuth2 extends HybridObject<{ ios: 'c++', android: 'c++' }> {
57
+ // ---- Properties ----
58
+
59
+ /**
60
+ * Provides HTML-formatted information about the last called method or property. If a method call
61
+ * fails or behaves unexpectedly, check this property for details. Note that information is
62
+ * available regardless of the method call's success.
63
+ *
64
+ * This property is read-only.
65
+ */
66
+ readonly lastErrorHtml: string
67
+
68
+ /**
69
+ * Provides plain text information about the last called method or property. If a method call
70
+ * fails or behaves unexpectedly, check this property for details. Note that information is
71
+ * available regardless of the method call's success.
72
+ *
73
+ * This property is read-only.
74
+ */
75
+ readonly lastErrorText: string
76
+
77
+ /**
78
+ * Provides XML-formatted information about the last called method or property. If a method call
79
+ * fails or behaves unexpectedly, check this property for details. Note that information is
80
+ * available regardless of the method call's success.
81
+ *
82
+ * This property is read-only.
83
+ */
84
+ readonly lastErrorXml: string
85
+
86
+ /**
87
+ * Version of the component/library, such as "10.1.0"
88
+ *
89
+ * This property is read-only.
90
+ */
91
+ readonly version: string
92
+
93
+ /**
94
+ * If set to a file path, this property logs the LastErrorText of each Chilkat method or property
95
+ * call to the specified file. This logging helps identify the context and history of Chilkat
96
+ * calls leading up to any crash or hang, aiding in debugging.
97
+ *
98
+ * Enabling the VerboseLogging property provides more detailed information.
99
+ *
100
+ * This property is mainly used for debugging rare instances where a Chilkat method call causes a
101
+ * hang or crash, which should generally not happen.
102
+ *
103
+ * Possible causes of hangs include:
104
+ *
105
+ * - A timeout property set to 0, indicating an infinite timeout.
106
+ *
107
+ * - A hang occurring within an event callback in the application code.
108
+ *
109
+ * - An internal bug in the Chilkat code causing the hang.
110
+ */
111
+ debugLogFilePath: string
112
+
113
+ /**
114
+ * If set to `true`, then the contents of LastErrorText (or LastErrorXml, or LastErrorHtml) may
115
+ * contain more verbose information. The default value is `false`. Verbose logging should only be
116
+ * used for debugging. The potentially large quantity of logged information may adversely affect
117
+ * peformance.
118
+ */
119
+ verboseLogging: boolean
120
+
121
+ /**
122
+ * Indicates the success or failure of the most recent method call: `true` means success, `false`
123
+ * means failure. This property remains unchanged by property setters or getters. This method is
124
+ * present to address challenges in checking for null or Nothing returns in certain programming
125
+ * languages. Note: This property does not apply to methods that return integer values or to
126
+ * boolean-returning methods where the boolean does not indicate success or failure.
127
+ */
128
+ lastMethodSuccess: boolean
129
+
130
+ /**
131
+ * Specifies the authorization endpoint to which the user's browser is directed. {@link
132
+ * OAuth2.startAuth} appends the client identifier, redirect URI, scope, state, PKCE values, and
133
+ * other configured authorization parameters.
134
+ *
135
+ * ProviderAuthorization endpointToken endpoint
136
+ *
137
+ * | Google | | `https://accounts.google.com/o/oauth2/v2/auth` | |
138
+ * `https://oauth2.googleapis.com/token` |
139
+ *
140
+ * | Microsoft identity platform | |
141
+ * `https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize` | |
142
+ * `https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token` |
143
+ *
144
+ * | Salesforce production | | `https://login.salesforce.com/services/oauth2/authorize` | |
145
+ * `https://login.salesforce.com/services/oauth2/token` |
146
+ *
147
+ * | QuickBooks Online | | `https://appcenter.intuit.com/connect/oauth2` | |
148
+ * `https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer` |
149
+ *
150
+ * | X API | | `https://x.com/i/oauth2/authorize` | | `https://api.x.com/2/oauth2/token` |
151
+ *
152
+ * **Prefer provider metadata:** When the provider publishes OAuth authorization-server metadata
153
+ * or OpenID Connect discovery metadata, use its current `authorization_endpoint` value rather
154
+ * than copying an endpoint from an old example.
155
+ *
156
+ * **Environment and tenant matter:** Sandbox, production, regional, and tenant-specific
157
+ * deployments can use different endpoints. The authorization and token endpoints must belong to
158
+ * the same provider environment.
159
+ */
160
+ authorizationEndpoint: string
161
+
162
+ /**
163
+ * Specifies the provider's token endpoint. Chilkat sends authorization-code and refresh-token
164
+ * requests to this URL over TLS.
165
+ *
166
+ * ProviderAuthorization endpointToken endpoint
167
+ *
168
+ * | Google | | `https://accounts.google.com/o/oauth2/v2/auth` | |
169
+ * `https://oauth2.googleapis.com/token` |
170
+ *
171
+ * | Microsoft identity platform | |
172
+ * `https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize` | |
173
+ * `https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token` |
174
+ *
175
+ * | Salesforce production | | `https://login.salesforce.com/services/oauth2/authorize` | |
176
+ * `https://login.salesforce.com/services/oauth2/token` |
177
+ *
178
+ * | QuickBooks Online | | `https://appcenter.intuit.com/connect/oauth2` | |
179
+ * `https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer` |
180
+ *
181
+ * | X API | | `https://x.com/i/oauth2/authorize` | | `https://api.x.com/2/oauth2/token` |
182
+ *
183
+ * **Back-channel endpoint:** Unlike the authorization endpoint, the token endpoint is contacted
184
+ * directly by the application, not opened in the user's browser.
185
+ *
186
+ * **Use the provider's current HTTPS endpoint:** Endpoint locations can change. Prefer the value
187
+ * published in the provider's OAuth or OpenID Connect metadata, and do not mix sandbox and
188
+ * production endpoints.
189
+ */
190
+ tokenEndpoint: string
191
+
192
+ /**
193
+ * Specifies the client identifier assigned when the application is registered with the
194
+ * authorization server. It identifies the application in authorization and token requests.
195
+ *
196
+ * **Not a password:** A client ID is normally public and may appear in authorization URLs. Its
197
+ * security role is identification, not authentication.
198
+ */
199
+ clientId: string
200
+
201
+ /**
202
+ * Specifies the client secret assigned to a confidential client by the authorization server. It
203
+ * is used when the provider requires the client to authenticate at the token endpoint.
204
+ *
205
+ * **Protect this value:** A client secret is a credential. Do not place it in source control,
206
+ * logs, browser URLs, or distributable desktop/mobile binaries. Native applications are public
207
+ * clients and generally cannot keep a shared secret confidential; use PKCE and follow the
208
+ * provider's registration requirements.
209
+ *
210
+ * **PKCE is separate:** PKCE protects the authorization code. It does not transform an embedded
211
+ * secret into a confidential credential and does not replace client authentication for a provider
212
+ * that requires it.
213
+ */
214
+ clientSecret: string
215
+
216
+ /**
217
+ * Specifies the access scopes requested from the authorization server. A scope is a
218
+ * provider-defined permission or capability associated with the resulting access token.
219
+ *
220
+ * OAuth scope values are commonly separated by a single SPACE character:
221
+ *
222
+ * ```
223
+ * openid email profile https://www.googleapis.com/auth/drive.readonly
224
+ * ```
225
+ *
226
+ * - `openid` requests OpenID Connect processing and an ID token when used with an appropriate
227
+ * response type.
228
+ *
229
+ * - `email` and `profile` request standard OpenID Connect claims.
230
+ *
231
+ * - The Google Drive URI requests read-only access to Drive files.
232
+ *
233
+ * **Provider-defined and consented:** Scope names, separators, defaults, and offline-access
234
+ * requirements vary by provider. Request the minimum permissions needed and verify the granted
235
+ * scope returned in the token response.
236
+ */
237
+ scope: string
238
+
239
+ /**
240
+ * Set to `true` to enable Proof Key for Code Exchange (PKCE) for the authorization-code flow. The
241
+ * default is `false`.
242
+ *
243
+ * When enabled, Chilkat generates a high-entropy code verifier, sends its transformed challenge
244
+ * in the authorization request, and sends the original verifier during the token exchange.
245
+ *
246
+ * **Recommended for native applications:** PKCE binds the authorization code to the application
247
+ * instance that initiated the flow, reducing the risk that an intercepted code can be redeemed by
248
+ * another client. Current OAuth security guidance requires PKCE for public clients and recommends
249
+ * it broadly.
250
+ */
251
+ codeChallenge: boolean
252
+
253
+ /**
254
+ * Selects the PKCE transformation used when {@link OAuth2.codeChallenge} is `true`.
255
+ *
256
+ * ValueBehavior
257
+ *
258
+ * | `S256` | | Sends a Base64URL-encoded SHA-256 digest of the code verifier. This is the default
259
+ * and recommended method. |
260
+ *
261
+ * | `plain` | | Sends the code verifier itself as the challenge. Use only for compatibility with
262
+ * a provider that cannot support `S256`. |
263
+ *
264
+ * **Avoid downgrading:** If a provider rejects `S256`, do not automatically retry with `plain`
265
+ * unless the provider is known and explicitly requires it.
266
+ */
267
+ codeChallengeMethod: string
268
+
269
+ /**
270
+ * Contains the raw response body returned by the token endpoint after a successful
271
+ * authorization-code exchange or refresh-token request.
272
+ *
273
+ * Most providers return JSON similar to:
274
+ *
275
+ * ```
276
+ * {
277
+ * "token_type": "Bearer",
278
+ * "expires_in": 3600,
279
+ * "access_token": "...",
280
+ * "scope": "read write",
281
+ * "refresh_token": "..."
282
+ * }
283
+ * ```
284
+ *
285
+ * FieldTypical meaning
286
+ *
287
+ * | `access_token` | | Credential presented to the protected API. |
288
+ *
289
+ * | `token_type` | | Usually `Bearer`. |
290
+ *
291
+ * | `expires_in` | | Access-token lifetime in seconds, when supplied. |
292
+ *
293
+ * | `scope` | | Scopes actually granted, when supplied. |
294
+ *
295
+ * | `refresh_token` | | Credential used to request later access tokens, when issued. |
296
+ *
297
+ * | `id_token` | | OpenID Connect identity token, when requested and issued. |
298
+ *
299
+ * Some providers return form-encoded text instead of JSON. Use {@link
300
+ * OAuth2.getAccessTokenResponseSb} when a `StringBuilder` destination is preferred.
301
+ *
302
+ * **Sensitive response:** This property can contain live credentials. Do not include it in
303
+ * ordinary logs, exception reports, telemetry, or user-visible diagnostics.
304
+ *
305
+ * This property is read-only.
306
+ */
307
+ readonly accessTokenResponse: string
308
+
309
+ /**
310
+ * Reports the current state of the background authorization flow.
311
+ *
312
+ * ValueStateMeaning
313
+ *
314
+ * | `0` | | Idle | | No authorization flow has been started. |
315
+ *
316
+ * | `1` | | Waiting for redirect | | The local listener is waiting for the browser callback. |
317
+ *
318
+ * | `2` | | Exchanging code | | The redirect was received and the background thread is waiting
319
+ * for the token-endpoint response. |
320
+ *
321
+ * | `3` | | Success | | The flow completed and token response properties are available. |
322
+ *
323
+ * | `4` | | Denied | | The authorization server returned an access-denied response. Inspect
324
+ * {@link OAuth2.accessTokenResponse}. |
325
+ *
326
+ * | `5` | | Failed | | The flow failed before successful completion. Inspect {@link
327
+ * OAuth2.failureInfo} and `LastErrorText`. |
328
+ *
329
+ * **Polling pattern:** After opening the authorization URL, periodically read this property until
330
+ * it is `3`, `4`, or `5`. Avoid a tight loop; sleep briefly or use the host environment's timer
331
+ * mechanism.
332
+ *
333
+ * This property is read-only.
334
+ */
335
+ readonly authFlowState: number
336
+
337
+ /**
338
+ * Contains diagnostic information when {@link OAuth2.authFlowState} is `5`. The value is cleared
339
+ * when {@link OAuth2.startAuth} begins a new flow.
340
+ *
341
+ * Use this property for failures in the listener, redirect processing, network connection, or
342
+ * token exchange. Provider-declared authorization denial is represented by state `4` and is
343
+ * normally available in {@link OAuth2.accessTokenResponse}.
344
+ *
345
+ * **Review before logging:** Diagnostics can include URLs, response bodies, or request details.
346
+ * Remove authorization codes, tokens, client credentials, and personal information before storing
347
+ * or transmitting logs.
348
+ *
349
+ * This property is read-only.
350
+ */
351
+ readonly failureInfo: string
352
+
353
+ /**
354
+ * Gets or sets the HTML response sent by Chilkat's local listener to the browser after
355
+ * authorization is granted and the redirect is accepted.
356
+ *
357
+ * The default HTML immediately redirects the browser to Chilkat's confirmation page:
358
+ *
359
+ * ```
360
+ * <html>
361
+ * <head><meta http-equiv='refresh'
362
+ * content='0;url=https://www.chilkatsoft.com/oauth2_allowed.html'></head>
363
+ * <body>Thank you for allowing access.</body>
364
+ * </html>
365
+ * ```
366
+ *
367
+ * Replace this value to display application-specific instructions or redirect to a page operated
368
+ * by your organization.
369
+ *
370
+ * **Do not expose credentials:** The HTML is shown in a browser. Do not insert the authorization
371
+ * code, access token, refresh token, client secret, or raw callback URL into this page.
372
+ */
373
+ redirectAllowHtml: string
374
+
375
+ /**
376
+ * Gets or sets the HTML response sent by Chilkat's local listener to the browser when the
377
+ * authorization server reports that access was denied.
378
+ *
379
+ * The default HTML immediately redirects the browser to Chilkat's denial page:
380
+ *
381
+ * ```
382
+ * <html>
383
+ * <head><meta http-equiv='refresh'
384
+ * content='0;url=https://www.chilkatsoft.com/oauth2_denied.html'></head>
385
+ * <body>The app will not have access.</body>
386
+ * </html>
387
+ * ```
388
+ *
389
+ * Replace this value to display application-specific instructions or redirect to a page operated
390
+ * by your organization.
391
+ *
392
+ * **Denial is not a transport failure:** User denial is represented by {@link
393
+ * OAuth2.authFlowState} value `4`. It should normally be handled as a completed flow in which
394
+ * consent was not granted.
395
+ */
396
+ redirectDenyHtml: string
397
+
398
+ /**
399
+ * Contains the `access_token` extracted from the most recent successful token response. It is
400
+ * updated after a successful authorization-code exchange or refresh-token request.
401
+ *
402
+ * The access token is presented to the protected API, commonly in an HTTP header:
403
+ *
404
+ * ```
405
+ * Authorization: Bearer ACCESS_TOKEN
406
+ * ```
407
+ *
408
+ * **Bearer credential:** Anyone possessing a bearer access token can use the authority it grants
409
+ * until the token expires or is revoked. Store it securely, transmit it only over TLS, and never
410
+ * place it in a URL or ordinary log.
411
+ */
412
+ accessToken: string
413
+
414
+ /**
415
+ * Contains the `token_type` value from the most recent successful token response. The common
416
+ * value is `Bearer`.
417
+ *
418
+ * **Use the returned type:** OAuth does not require every token to use the same presentation
419
+ * mechanism. Follow the authorization server's documentation and the returned token type when
420
+ * constructing API requests.
421
+ */
422
+ tokenType: string
423
+
424
+ /**
425
+ * Gets or sets the refresh token used to obtain new access tokens. Chilkat populates this
426
+ * property when the token endpoint issues a `refresh_token`, and {@link
427
+ * OAuth2.refreshAccessToken} reads it when creating a refresh request.
428
+ *
429
+ * A provider may omit the refresh token unless an offline-access scope or provider-specific
430
+ * authorization parameter was requested. A refresh response may also return a replacement token.
431
+ *
432
+ * **Long-lived credential:** Refresh tokens commonly outlive access tokens and can be used
433
+ * without user interaction. Protect them at least as carefully as passwords, persist replacements
434
+ * after rotation, and delete them when authorization is revoked.
435
+ */
436
+ refreshToken: string
437
+
438
+ /**
439
+ * Specifies the local TCP port on which Chilkat listens for the browser's OAuth redirect. Choose
440
+ * an available nonprivileged port, typically between `1024` and `65535`.
441
+ *
442
+ * The redirect URI registered with the provider must match the host, selected port, and
443
+ * terminating slash generated by this object. For example:
444
+ *
445
+ * ```
446
+ * http://127.0.0.1:3017/
447
+ * ```
448
+ *
449
+ * - Use `http` for a loopback redirect handled entirely on the local computer.
450
+ *
451
+ * - Use {@link OAuth2.localHost} to select `localhost` or `127.0.0.1`.
452
+ *
453
+ * - Include the final `/` when registering the redirect URI.
454
+ *
455
+ * **Provider registration must match:** Authorization servers differ in their support for
456
+ * loopback ports and redirect-URI matching. Register the exact form required by the provider. The
457
+ * IPv4 loopback literal `127.0.0.1` is generally more predictable than resolving `localhost`.
458
+ */
459
+ listenPort: number
460
+
461
+ /**
462
+ * Selects the host name used in the loopback redirect URI:
463
+ *
464
+ * ValueRedirect form
465
+ *
466
+ * | `localhost` | | `http://localhost:{port}/` |
467
+ *
468
+ * | `127.0.0.1` | | `http://127.0.0.1:{port}/` |
469
+ *
470
+ * The default is `localhost`. The value must match the redirect URI registered with the provider.
471
+ *
472
+ * **Loopback recommendation:** `127.0.0.1` avoids DNS and hosts-file ambiguity and is generally
473
+ * preferable when the provider accepts an IPv4 loopback-literal redirect.
474
+ */
475
+ localHost: string
476
+
477
+ /**
478
+ * Specifies an optional provider-defined `resource` parameter identifying the API or audience for
479
+ * which a token is requested.
480
+ *
481
+ * This is used by some OAuth deployments, including older Microsoft identity endpoints and
482
+ * certain Dynamics configurations. Modern Microsoft v2 endpoints generally identify the target
483
+ * API through scope values instead.
484
+ *
485
+ * **Not a universal OAuth parameter:** Set this property only when the authorization server
486
+ * documents a required `resource` value. Do not assume that an API base URL is always the correct
487
+ * value.
488
+ */
489
+ resource: string
490
+
491
+ /**
492
+ * Defines the inclusive end of a local-listener port range that begins with {@link
493
+ * OAuth2.listenPort}. The default value of `0` disables range selection and uses only
494
+ * `ListenPort`.
495
+ *
496
+ * When nonzero, Chilkat selects an available port in the inclusive range. For example,
497
+ * `ListenPort=55110` and `ListenPortRangeEnd=55117` permit ports `55110` through `55117`.
498
+ *
499
+ * **Redirect registration:** The provider must accept the selected redirect URI. If it requires
500
+ * every exact port to be pre-registered, register each port in the range. If the provider
501
+ * supports the native-app loopback convention with a variable port, follow its documented
502
+ * registration form.
503
+ *
504
+ * Read {@link OAuth2.listenPortSelected} to determine which port was used.
505
+ */
506
+ listenPortRangeEnd: number
507
+
508
+ /**
509
+ * Specifies a public HTTPS callback URL on an application-controlled web server when the provider
510
+ * will not redirect directly to `localhost` or a loopback IP address.
511
+ *
512
+ * The intermediary endpoint receives the provider's redirect and forwards the complete callback,
513
+ * including `code`, `state`, `error`, and any provider-specific parameters, to the local listener
514
+ * used by Chilkat.
515
+ *
516
+ * **Security responsibility:** The intermediary handles a short-lived authorization code and
517
+ * state value. It must use HTTPS, avoid logging sensitive query data, validate and preserve
518
+ * parameters correctly, and prevent use as an open redirect.
519
+ *
520
+ * **Use only when necessary:** A direct loopback redirect with PKCE is simpler and avoids
521
+ * introducing a public relay. Prefer it whenever the provider supports native-application
522
+ * loopback redirects.
523
+ */
524
+ appCallbackUrl: string
525
+
526
+ /**
527
+ * Controls how `ClientId` and `ClientSecret` are supplied during the authorization-code token
528
+ * exchange.
529
+ *
530
+ * ValueBehavior
531
+ *
532
+ * | `true` | | Sends HTTP Basic authentication using the client ID as the username and the client
533
+ * secret as the password. |
534
+ *
535
+ * | `false` | | Sends the client ID and client secret as request parameters. This is the default.
536
+ * |
537
+ *
538
+ * **Match the provider's client-authentication method:** Some authorization servers require HTTP
539
+ * Basic authentication; others require parameters or no client secret for public clients. A wrong
540
+ * choice usually produces an `invalid_client` response.
541
+ *
542
+ * **TLS is mandatory:** Both forms expose the secret to the token endpoint. They differ in HTTP
543
+ * representation, not in the need for a secure TLS connection.
544
+ */
545
+ useBasicAuth: boolean
546
+
547
+ /**
548
+ * Set to `true` to include an OpenID Connect `nonce` parameter in the authorization request. The
549
+ * nonce is generated by Chilkat using the byte length specified by {@link OAuth2.nonceLength}.
550
+ * The default is `false`.
551
+ *
552
+ * In OpenID Connect, the authorization server includes the nonce in the ID token so the client
553
+ * can associate that token with the authorization request and detect replay or token-substitution
554
+ * problems.
555
+ *
556
+ * **Nonce versus state:** `nonce` protects the relationship between an OpenID Connect request and
557
+ * its ID token. OAuth `state` correlates the browser callback with the initiating request and is
558
+ * used for CSRF protection. They are related security controls but are not interchangeable.
559
+ */
560
+ includeNonce: boolean
561
+
562
+ /**
563
+ * Specifies the response mode requested from an OpenID Connect or provider-specific authorization
564
+ * endpoint.
565
+ *
566
+ * Set to `form_post` to add `response_mode=form_post`, causing the authorization server to return
567
+ * parameters in an auto-submitted HTML form that sends an HTTP POST to the redirect URI. The
568
+ * default is an empty string, which omits the parameter and lets the provider choose its normal
569
+ * mode.
570
+ *
571
+ * **Provider support required:** Use only a response mode supported by the provider and
572
+ * compatible with Chilkat's local listener or intermediary callback.
573
+ */
574
+ responseMode: string
575
+
576
+ /**
577
+ * Specifies the authorization response type. The default is `code`, which requests an
578
+ * authorization code.
579
+ *
580
+ * Set to `id_token+code` when a provider requires the OpenID Connect hybrid response
581
+ * `response_type=id_token code`; the plus sign is the URL-encoded representation of a SPACE in
582
+ * the query string.
583
+ *
584
+ * **Prefer the code flow unless required otherwise:** Hybrid responses add an ID token to the
585
+ * browser-facing authorization response and require correct OpenID Connect validation, including
586
+ * issuer, audience, signature, expiration, and nonce checks.
587
+ */
588
+ responseType: string
589
+
590
+ /**
591
+ * Specifies the number of random bytes used to generate the hexadecimal OpenID Connect nonce when
592
+ * {@link OAuth2.includeNonce} is `true`. The resulting string contains two hexadecimal characters
593
+ * per byte.
594
+ *
595
+ * The default is `4` bytes, which produces an 8-character hexadecimal nonce.
596
+ *
597
+ * **Entropy matters:** For security-sensitive OpenID Connect use, consider a substantially larger
598
+ * nonce, such as 16 bytes or more, unless the provider imposes a different requirement.
599
+ */
600
+ nonceLength: number
601
+
602
+ /**
603
+ * Provides a comma-separated list of specialized compatibility options. The default is an empty
604
+ * string and is appropriate for normal OAuth providers.
605
+ *
606
+ * KeywordEffect
607
+ *
608
+ * | `NO_OAUTH2_SCOPE` | | Omits the `scope` parameter from the authorization-code token request.
609
+ * |
610
+ *
611
+ * | `ExchangeCodeForTokenUsingJson` | | Sends the authorization-code token request as an HTTP
612
+ * POST with a JSON body instead of the normal form/query representation. |
613
+ *
614
+ * | `RefreshTokenUsingJson` | | Sends the refresh-token request as an HTTP POST with a JSON body.
615
+ * |
616
+ *
617
+ * **Leave empty unless required:** These options alter interoperability behavior outside the
618
+ * normal OAuth token-request format. Enable one only when the provider's documentation or Chilkat
619
+ * support explicitly requires it.
620
+ */
621
+ uncommonOptions: string
622
+
623
+ /**
624
+ * Contains the raw HTTP request received from the browser by Chilkat's local redirect listener.
625
+ * It is intended for troubleshooting callback and provider-parameter problems.
626
+ *
627
+ * ```
628
+ * GET /?state=...&code=... HTTP/1.1
629
+ * Host: 127.0.0.1:3017
630
+ * User-Agent: ...
631
+ * Accept: text/html,...
632
+ * ```
633
+ *
634
+ * The value can include the request target, query or form parameters, and browser-supplied
635
+ * headers.
636
+ *
637
+ * **Highly sensitive diagnostic data:** The request can contain an authorization code, state
638
+ * value, provider identifiers, and browser metadata. Do not record it in production logs without
639
+ * careful redaction.
640
+ *
641
+ * This property is read-only.
642
+ */
643
+ readonly redirectReqReceived: string
644
+
645
+ /**
646
+ * Allows the application to supply an explicit OAuth `state` value. Normally this property should
647
+ * remain empty so Chilkat generates a cryptographically random state value and validates the
648
+ * returned value automatically.
649
+ *
650
+ * The automatically generated state is intentionally not exposed through this property.
651
+ *
652
+ * The special token `{listenPort}` may appear in an explicitly supplied value. Chilkat replaces
653
+ * it with the actual listener port selected for the flow.
654
+ *
655
+ * **Do not weaken state:** State correlates the redirect with the initiating browser flow and
656
+ * helps prevent CSRF and authorization-response injection. If supplying your own value, make it
657
+ * unpredictable, unique per flow, and free of secrets or sensitive application data.
658
+ */
659
+ stateParam: string
660
+
661
+ /**
662
+ * Returns the local port selected for the current or most recently completed authorization flow.
663
+ *
664
+ * When a range is configured with {@link OAuth2.listenPortRangeEnd}, use this value to determine
665
+ * the actual loopback redirect port. It is also available for the `{listenPort}` substitution
666
+ * supported by {@link OAuth2.stateParam}.
667
+ *
668
+ * This property is read-only.
669
+ */
670
+ readonly listenPortSelected: number
671
+
672
+ /**
673
+ * Set to `true` to use the legacy out-of-band redirect URI `urn:ietf:wg:oauth:2.0:oob`. The
674
+ * application must obtain the displayed authorization code and pass it to {@link
675
+ * OAuth2.exchangeCodeForToken}. The default is `false`.
676
+ *
677
+ * **Legacy and often unsupported:** OOB authorization exposes a code for manual copy/paste and is
678
+ * no longer accepted by many providers. For desktop applications, use a loopback redirect with
679
+ * PKCE whenever possible.
680
+ */
681
+ oob: boolean
682
+
683
+ /**
684
+ * Controls automatic resolution of selected values from operating-system secure storage. The
685
+ * default is `false`.
686
+ *
687
+ * When `true`, the following properties may contain a secret specification beginning with `!!`
688
+ * instead of a literal value:
689
+ *
690
+ * - {@link OAuth2.authorizationEndpoint}
691
+ *
692
+ * - {@link OAuth2.tokenEndpoint}
693
+ *
694
+ * - {@link OAuth2.clientId}
695
+ *
696
+ * - {@link OAuth2.clientSecret}
697
+ *
698
+ * The specification has the form:
699
+ *
700
+ * ```
701
+ * !![appName|]service[|domain]|username
702
+ * ```
703
+ *
704
+ * Chilkat resolves the value through Windows Credential Manager on Windows or Apple Keychain on
705
+ * macOS.
706
+ *
707
+ * **Purpose:** Secret specifications allow deployment-specific values to remain outside source
708
+ * code and configuration files. Although endpoints and client IDs are not normally secret,
709
+ * resolving them the same way can centralize application configuration.
710
+ *
711
+ * **Platform availability:** This feature depends on supported operating-system credential
712
+ * storage. Ensure the named credential exists and that the process identity has permission to
713
+ * read it.
714
+ */
715
+ enableSecrets: boolean
716
+
717
+ // ---- Methods ----
718
+
719
+ /**
720
+ * Starts an OAuth 2.0 Authorization Code flow and returns the authorization URL that the
721
+ * application should open in the user's browser.
722
+ *
723
+ * Before calling this method, configure {@link OAuth2.clientId}, {@link
724
+ * OAuth2.authorizationEndpoint}, {@link OAuth2.tokenEndpoint}, the requested {@link
725
+ * OAuth2.scope}, and the redirect-listener settings such as {@link OAuth2.listenPort}. Configure
726
+ * {@link OAuth2.clientSecret} only when the provider requires client authentication for this
727
+ * application type.
728
+ *
729
+ * - Chilkat constructs and returns the provider's authorization URL.
730
+ *
731
+ * - Chilkat starts a background thread that listens for the redirect request, validates the
732
+ * returned state, and exchanges the authorization code at the token endpoint.
733
+ *
734
+ * Open the returned URL with {@link OAuth2.launchBrowser} or another browser-launch mechanism.
735
+ * Poll {@link OAuth2.authFlowState} until the flow reaches a terminal state.
736
+ *
737
+ * **PKCE and client authentication:** Enabling {@link OAuth2.codeChallenge} protects the
738
+ * authorization code from interception and is strongly recommended for desktop and other native
739
+ * applications. PKCE does not make a client secret confidential and does not replace client
740
+ * authentication when the provider requires it for a confidential client.
741
+ *
742
+ * **Failure detection:** String-returning bindings return an empty or null-equivalent value on
743
+ * failure. Check the normal method-success indicator and inspect `LastErrorText` before
744
+ * attempting to open the returned URL.
745
+ *
746
+ * @throws Error if the call fails (the message names the reason); the full log is in
747
+ * {@link OAuth2.lastErrorText}.
748
+ */
749
+ startAuth(): string
750
+
751
+ /**
752
+ * Requests cancellation of the authorization flow currently running in the background thread.
753
+ *
754
+ * Returns `true` if the cancellation request is accepted. After cancellation, inspect {@link
755
+ * OAuth2.authFlowState} and {@link OAuth2.failureInfo} to determine the final state.
756
+ *
757
+ * **Scope of cancellation:** This stops the local authorization operation. It does not revoke an
758
+ * access token, refresh token, authorization grant, or consent that the provider has already
759
+ * issued.
760
+ *
761
+ * @throws Error if the call fails (the message names the reason); the full log is in
762
+ * {@link OAuth2.lastErrorText}.
763
+ */
764
+ cancel(): void
765
+
766
+ /**
767
+ * Suspends the calling thread for `millisec` milliseconds.
768
+ *
769
+ * This convenience method is commonly used in a polling loop that checks {@link
770
+ * OAuth2.authFlowState} while the authorization flow continues on Chilkat's background thread.
771
+ *
772
+ * **Thread behavior:** The calling thread is blocked for the requested interval. In a graphical
773
+ * application, use the platform's normal asynchronous or timer mechanism when blocking the UI
774
+ * thread would make the application unresponsive.
775
+ */
776
+ sleepMs(millisec: number): void
777
+
778
+ /**
779
+ * Sends a refresh-token grant request to {@link OAuth2.tokenEndpoint} to obtain a new access
780
+ * token without repeating interactive browser authorization.
781
+ *
782
+ * Configure {@link OAuth2.clientId}, {@link OAuth2.refreshToken}, and {@link
783
+ * OAuth2.tokenEndpoint}, together with whatever client authentication the provider requires. This
784
+ * may include {@link OAuth2.clientSecret} and {@link OAuth2.useBasicAuth}.
785
+ *
786
+ * On success, Chilkat updates {@link OAuth2.accessToken}, {@link OAuth2.tokenType}, and {@link
787
+ * OAuth2.accessTokenResponse}. If the provider rotates refresh tokens and returns a new
788
+ * `refresh_token`, {@link OAuth2.refreshToken} is also updated.
789
+ *
790
+ * **Persist rotated refresh tokens:** Some providers invalidate the old refresh token as soon as
791
+ * a new one is issued. After a successful refresh, securely persist the current value of
792
+ * `RefreshToken` rather than assuming the previous value remains usable.
793
+ *
794
+ * **Provider-specific requests:** Use {@link OAuth2.setRefreshHeader} and {@link
795
+ * OAuth2.addRefreshQueryParam} only when the provider documents additional headers or parameters.
796
+ *
797
+ * This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
798
+ * {@link OAuth2.refreshAccessTokenAsync}.
799
+ *
800
+ * @throws Error if the call fails (the message names the reason); the full log is in
801
+ * {@link OAuth2.lastErrorText}.
802
+ */
803
+ refreshAccessToken(): void
804
+
805
+ /**
806
+ * Asynchronous form of {@link OAuth2.refreshAccessToken}: the same call on a native worker
807
+ * thread,
808
+ * settling on the JavaScript thread. While it is pending, other calls on this object throw,
809
+ * except {@link OAuth2.abort} (which cancels it) and the {@link OAuth2.onPercentDone} /
810
+ * {@link OAuth2.onProgressInfo} callbacks, which report progress while it runs.
811
+ *
812
+ * The promise rejects with an Error if the call fails; the full log is in
813
+ * {@link OAuth2.lastErrorText}.
814
+ */
815
+ refreshAccessTokenAsync(): Promise<void>
816
+
817
+ /**
818
+ * Associates `sock` with this object for HTTP connections to the token endpoint. This method is
819
+ * optional.
820
+ *
821
+ * - Pass an unconnected `Socket` when it is configured with HTTP-proxy, SOCKS-proxy, local-bind,
822
+ * or other connection options that Chilkat should use when opening the token-endpoint
823
+ * connection.
824
+ *
825
+ * - Pass an already connected socket when traffic must travel through an established SSH tunnel
826
+ * or another prebuilt connection.
827
+ *
828
+ * Without this method, Chilkat opens a direct TLS connection to the token endpoint.
829
+ *
830
+ * **Browser traffic is separate:** This socket controls Chilkat's back-channel token requests. It
831
+ * does not configure the user's browser, the provider's authorization page, or the browser's
832
+ * redirect to the local listener.
833
+ *
834
+ * @throws Error if the call fails (the message names the reason); the full log is in
835
+ * {@link OAuth2.lastErrorText}.
836
+ */
837
+ useConnection(sock: Socket): void
838
+
839
+ /**
840
+ * Returns the decoded value of `paramName` from the authorization redirect received by Chilkat's
841
+ * local listener.
842
+ *
843
+ * Call this after the redirect has been received. It is useful for provider-specific parameters
844
+ * in addition to the standard `code`, `state`, and `error` values. For example, QuickBooks can
845
+ * return a company identifier named `realmId`:
846
+ *
847
+ * ```
848
+ * http://localhost:55568/?state=...&code=...&realmId=1234567890
849
+ * ```
850
+ *
851
+ * **Provider extensions:** OAuth defines the core redirect parameters, but providers may add
852
+ * their own values. Consult the provider's documentation before depending on an additional
853
+ * parameter.
854
+ *
855
+ * **Sensitive redirect data:** Authorization codes and related callback parameters are
856
+ * credentials or security-sensitive correlation values. Avoid writing them to ordinary
857
+ * application logs.
858
+ *
859
+ * @throws Error if the call fails (the message names the reason); the full log is in
860
+ * {@link OAuth2.lastErrorText}.
861
+ */
862
+ getRedirectRequestParam(paramName: string): string
863
+
864
+ /**
865
+ * Adds or replaces an HTTP request header used by subsequent calls to {@link
866
+ * OAuth2.refreshAccessToken}. `name` is the header field name and `value` is its value.
867
+ *
868
+ * Call this method once for each required header. Passing an empty `value` removes the named
869
+ * header.
870
+ *
871
+ * ```
872
+ * Accept: application/json
873
+ * ```
874
+ *
875
+ * **Normally unnecessary:** Standard OAuth refresh requests do not require application-defined
876
+ * headers beyond those generated by the client. Add headers only when the authorization server
877
+ * explicitly requires them, and never place access tokens, refresh tokens, or client secrets in
878
+ * diagnostic headers.
879
+ *
880
+ * @throws Error if the call fails (the message names the reason); the full log is in
881
+ * {@link OAuth2.lastErrorText}.
882
+ */
883
+ setRefreshHeader(name: string, value: string): void
884
+
885
+ /**
886
+ * Adds a provider-specific name/value parameter to the authorization-code token request that
887
+ * Chilkat sends after receiving the browser redirect. Call the method multiple times to add
888
+ * multiple parameters.
889
+ *
890
+ * This setting affects the code-for-token exchange performed by {@link OAuth2.startAuth} or
891
+ * {@link OAuth2.exchangeCodeForToken}; it does not alter the browser authorization URL or
892
+ * refresh-token requests.
893
+ *
894
+ * **Nonstandard extension:** The normal authorization-code request parameters are generated
895
+ * automatically. Use this method only for an additional parameter documented by the provider, and
896
+ * do not duplicate standard parameters such as `grant_type`, `code`, or `redirect_uri` unless
897
+ * instructed by Chilkat support.
898
+ *
899
+ * @throws Error if the call fails (the message names the reason); the full log is in
900
+ * {@link OAuth2.lastErrorText}.
901
+ */
902
+ addTokenQueryParam(name: string, value: string): void
903
+
904
+ /**
905
+ * Adds a name/value query parameter to the authorization URL produced by {@link
906
+ * OAuth2.startAuth}. Call the method multiple times to add multiple provider-specific
907
+ * authorization parameters.
908
+ *
909
+ * Typical examples include provider extensions such as `access_type=offline`, `prompt=consent`,
910
+ * or an account-selection hint.
911
+ *
912
+ * **Do not add secrets:** Authorization parameters are placed in a URL and can appear in browser
913
+ * history, proxy logs, and diagnostics. Never put a client secret, access token, refresh token,
914
+ * or other credential in an authorization query parameter.
915
+ *
916
+ * @throws Error if the call fails (the message names the reason); the full log is in
917
+ * {@link OAuth2.lastErrorText}.
918
+ */
919
+ addAuthQueryParam(name: string, value: string): void
920
+
921
+ /**
922
+ * Adds a provider-specific name/value parameter to requests sent by {@link
923
+ * OAuth2.refreshAccessToken}. Call the method multiple times to add multiple parameters.
924
+ *
925
+ * **Use only when documented:** Chilkat automatically supplies the standard refresh-token grant
926
+ * parameters. Additional parameters are provider extensions and should be added only when
927
+ * required by the authorization server.
928
+ *
929
+ * @throws Error if the call fails (the message names the reason); the full log is in
930
+ * {@link OAuth2.lastErrorText}.
931
+ */
932
+ addRefreshQueryParam(name: string, value: string): void
933
+
934
+ /**
935
+ * Asks the operating system to open `url` in the user's default web browser. On Windows, macOS,
936
+ * and supported Linux desktop environments, an existing browser may open the URL in a new tab.
937
+ *
938
+ * This method is typically called with the authorization URL returned by {@link
939
+ * OAuth2.startAuth}. Returns `false` if the operating system cannot launch a browser or open the
940
+ * URL.
941
+ *
942
+ * **No browser automation:** This method only opens the URL. Chilkat does not control the
943
+ * browser, enter credentials, approve consent, or close the browser window.
944
+ *
945
+ * @throws Error if the call fails (the message names the reason); the full log is in
946
+ * {@link OAuth2.lastErrorText}.
947
+ */
948
+ launchBrowser(url: string): void
949
+
950
+ /**
951
+ * Exchanges the authorization code in `code` for tokens at {@link OAuth2.tokenEndpoint}.
952
+ *
953
+ * This is used when the application obtains the authorization code outside Chilkat's
954
+ * local-listener workflow, most commonly with the legacy out-of-band mode selected by {@link
955
+ * OAuth2.oob}. Configure the same client, endpoint, redirect, PKCE, and token-request settings
956
+ * that the provider requires for the original authorization request.
957
+ *
958
+ * On success, the token properties and {@link OAuth2.accessTokenResponse} are populated in the
959
+ * same manner as a successful background exchange.
960
+ *
961
+ * **Legacy OOB flow:** Many major providers no longer accept `urn:ietf:wg:oauth:2.0:oob`. Prefer
962
+ * an authorization-code flow with a loopback redirect and PKCE whenever the provider supports it.
963
+ *
964
+ * This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
965
+ * {@link OAuth2.exchangeCodeForTokenAsync}.
966
+ *
967
+ * @throws Error if the call fails (the message names the reason); the full log is in
968
+ * {@link OAuth2.lastErrorText}.
969
+ */
970
+ exchangeCodeForToken(code: string): void
971
+
972
+ /**
973
+ * Asynchronous form of {@link OAuth2.exchangeCodeForToken}: the same call on a native worker
974
+ * thread,
975
+ * settling on the JavaScript thread. While it is pending, other calls on this object throw,
976
+ * except {@link OAuth2.abort} (which cancels it) and the {@link OAuth2.onPercentDone} /
977
+ * {@link OAuth2.onProgressInfo} callbacks, which report progress while it runs.
978
+ *
979
+ * The promise rejects with an Error if the call fails; the full log is in
980
+ * {@link OAuth2.lastErrorText}.
981
+ */
982
+ exchangeCodeForTokenAsync(code: string): Promise<void>
983
+
984
+ /**
985
+ * Copies the raw token-endpoint response into `sb` and returns `true` on success.
986
+ *
987
+ * This is the `StringBuilder` equivalent of reading {@link OAuth2.accessTokenResponse}. The
988
+ * response is commonly JSON, but some providers return form-encoded or other text; this method
989
+ * does not guarantee JSON.
990
+ *
991
+ * **Contains credentials:** The response can contain an access token and refresh token. Treat the
992
+ * destination `StringBuilder` as sensitive data and avoid logging or exposing its contents.
993
+ *
994
+ * @throws Error if the call fails (the message names the reason); the full log is in
995
+ * {@link OAuth2.lastErrorText}.
996
+ */
997
+ getAccessTokenResponseSb(sb: StringBuilder): void
998
+
999
+ // ---- Events (ReactNativeGen_DESIGN.md §6) ----
1000
+
1001
+ /**
1002
+ * Called with the percent completed (0..100) while a long-running method runs, when Chilkat
1003
+ * can measure progress. Runs on the JavaScript thread, so it is only useful with the
1004
+ * `...Async` methods (during a synchronous call the thread is busy and the events arrive
1005
+ * after it returns). Assign `undefined` to remove.
1006
+ */
1007
+ onPercentDone?: (pctDone: number) => void
1008
+
1009
+ /**
1010
+ * Called with a name/value pair of progress information while a long-running method runs
1011
+ * (what is reported depends on the class and method). Runs on the JavaScript thread; see
1012
+ * {@link OAuth2.onPercentDone}. Assign `undefined` to remove.
1013
+ */
1014
+ onProgressInfo?: (name: string, value: string) => void
1015
+
1016
+ /**
1017
+ * Requests that the pending `...Async` call on this object stop at its next progress check.
1018
+ * The promise then rejects with Chilkat's abort error. Chilkat checks at least every
1019
+ * `heartbeatMs` milliseconds on the classes that have that property, so set it (e.g. 250)
1020
+ * for a responsive cancel. Harmless when nothing is pending.
1021
+ */
1022
+ abort(): void
1023
+ }