ibm-cloud-sdk-core 3.2.2-beta → 3.2.2-beta-2

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 (379) hide show
  1. package/{dist/auth → auth}/authenticators/authenticator-interface.d.ts +0 -0
  2. package/{dist/auth → auth}/authenticators/authenticator-interface.js +0 -0
  3. package/{dist/auth → auth}/authenticators/authenticator.d.ts +0 -0
  4. package/{dist/auth → auth}/authenticators/authenticator.js +0 -0
  5. package/{dist/auth → auth}/authenticators/basic-authenticator.d.ts +0 -0
  6. package/{dist/auth → auth}/authenticators/basic-authenticator.js +0 -0
  7. package/{dist/auth → auth}/authenticators/bearer-token-authenticator.d.ts +0 -0
  8. package/{dist/auth → auth}/authenticators/bearer-token-authenticator.js +0 -0
  9. package/{dist/auth → auth}/authenticators/cloud-pak-for-data-authenticator.d.ts +0 -0
  10. package/{dist/auth → auth}/authenticators/cloud-pak-for-data-authenticator.js +0 -0
  11. package/{dist/auth → auth}/authenticators/container-authenticator.d.ts +0 -0
  12. package/{dist/auth → auth}/authenticators/container-authenticator.js +0 -0
  13. package/{dist/auth → auth}/authenticators/iam-authenticator.d.ts +0 -0
  14. package/{dist/auth → auth}/authenticators/iam-authenticator.js +0 -0
  15. package/{dist/auth → auth}/authenticators/iam-request-based-authenticator.d.ts +0 -0
  16. package/{dist/auth → auth}/authenticators/iam-request-based-authenticator.js +0 -0
  17. package/{dist/auth → auth}/authenticators/index.d.ts +0 -0
  18. package/{dist/auth → auth}/authenticators/index.js +0 -0
  19. package/{dist/auth → auth}/authenticators/no-auth-authenticator.d.ts +0 -0
  20. package/{dist/auth → auth}/authenticators/no-auth-authenticator.js +0 -0
  21. package/{dist/auth → auth}/authenticators/token-request-based-authenticator.d.ts +0 -0
  22. package/{dist/auth → auth}/authenticators/token-request-based-authenticator.js +0 -0
  23. package/{dist/auth → auth}/authenticators/vpc-instance-authenticator.d.ts +0 -0
  24. package/{dist/auth → auth}/authenticators/vpc-instance-authenticator.js +0 -0
  25. package/{dist/auth → auth}/index.d.ts +0 -0
  26. package/{dist/auth → auth}/index.js +0 -0
  27. package/{dist/auth → auth}/token-managers/container-token-manager.d.ts +0 -0
  28. package/{dist/auth → auth}/token-managers/container-token-manager.js +0 -0
  29. package/{dist/auth → auth}/token-managers/cp4d-token-manager.d.ts +0 -0
  30. package/{dist/auth → auth}/token-managers/cp4d-token-manager.js +0 -0
  31. package/{dist/auth → auth}/token-managers/iam-request-based-token-manager.d.ts +0 -0
  32. package/{dist/auth → auth}/token-managers/iam-request-based-token-manager.js +0 -0
  33. package/{dist/auth → auth}/token-managers/iam-token-manager.d.ts +0 -0
  34. package/{dist/auth → auth}/token-managers/iam-token-manager.js +0 -0
  35. package/{dist/auth → auth}/token-managers/index.d.ts +0 -0
  36. package/{dist/auth → auth}/token-managers/index.js +0 -0
  37. package/{dist/auth → auth}/token-managers/jwt-token-manager.d.ts +0 -0
  38. package/{dist/auth → auth}/token-managers/jwt-token-manager.js +0 -0
  39. package/{dist/auth → auth}/token-managers/token-manager.d.ts +0 -0
  40. package/{dist/auth → auth}/token-managers/token-manager.js +0 -0
  41. package/{dist/auth → auth}/token-managers/vpc-instance-token-manager.d.ts +0 -0
  42. package/{dist/auth → auth}/token-managers/vpc-instance-token-manager.js +0 -0
  43. package/{dist/auth → auth}/utils/file-reading-helpers.browser.d.ts +0 -0
  44. package/{dist/auth → auth}/utils/file-reading-helpers.browser.js +0 -0
  45. package/{dist/auth → auth}/utils/file-reading-helpers.d.ts +0 -0
  46. package/{dist/auth → auth}/utils/file-reading-helpers.js +0 -0
  47. package/{dist/auth → auth}/utils/get-authenticator-from-environment.d.ts +0 -0
  48. package/{dist/auth → auth}/utils/get-authenticator-from-environment.js +0 -0
  49. package/{dist/auth → auth}/utils/helpers.d.ts +0 -0
  50. package/{dist/auth → auth}/utils/helpers.js +0 -0
  51. package/{dist/auth → auth}/utils/index.d.ts +0 -0
  52. package/{dist/auth → auth}/utils/index.js +0 -0
  53. package/{dist/auth → auth}/utils/read-external-sources.d.ts +0 -0
  54. package/{dist/auth → auth}/utils/read-external-sources.js +0 -0
  55. package/{dist/docs → docs}/ibm-cloud-sdk-core.api.json +0 -0
  56. package/{dist/es → es}/auth/authenticators/authenticator-interface.d.ts +0 -0
  57. package/{dist/es → es}/auth/authenticators/authenticator-interface.js +0 -0
  58. package/{dist/es → es}/auth/authenticators/authenticator.d.ts +0 -0
  59. package/{dist/es → es}/auth/authenticators/authenticator.js +0 -0
  60. package/{dist/es → es}/auth/authenticators/basic-authenticator.d.ts +0 -0
  61. package/{dist/es → es}/auth/authenticators/basic-authenticator.js +0 -0
  62. package/{dist/es → es}/auth/authenticators/bearer-token-authenticator.d.ts +0 -0
  63. package/{dist/es → es}/auth/authenticators/bearer-token-authenticator.js +0 -0
  64. package/{dist/es → es}/auth/authenticators/cloud-pak-for-data-authenticator.d.ts +0 -0
  65. package/{dist/es → es}/auth/authenticators/cloud-pak-for-data-authenticator.js +0 -0
  66. package/{dist/es → es}/auth/authenticators/container-authenticator.d.ts +0 -0
  67. package/{dist/es → es}/auth/authenticators/container-authenticator.js +0 -0
  68. package/{dist/es → es}/auth/authenticators/iam-authenticator.d.ts +0 -0
  69. package/{dist/es → es}/auth/authenticators/iam-authenticator.js +0 -0
  70. package/{dist/es → es}/auth/authenticators/iam-request-based-authenticator.d.ts +0 -0
  71. package/{dist/es → es}/auth/authenticators/iam-request-based-authenticator.js +0 -0
  72. package/{dist/es → es}/auth/authenticators/index.d.ts +0 -0
  73. package/{dist/es → es}/auth/authenticators/index.js +0 -0
  74. package/{dist/es → es}/auth/authenticators/no-auth-authenticator.d.ts +0 -0
  75. package/{dist/es → es}/auth/authenticators/no-auth-authenticator.js +0 -0
  76. package/{dist/es → es}/auth/authenticators/token-request-based-authenticator.d.ts +0 -0
  77. package/{dist/es → es}/auth/authenticators/token-request-based-authenticator.js +0 -0
  78. package/{dist/es → es}/auth/authenticators/vpc-instance-authenticator.d.ts +0 -0
  79. package/{dist/es → es}/auth/authenticators/vpc-instance-authenticator.js +0 -0
  80. package/{dist/es → es}/auth/index.d.ts +0 -0
  81. package/{dist/es → es}/auth/index.js +0 -0
  82. package/{dist/es → es}/auth/token-managers/container-token-manager.d.ts +0 -0
  83. package/{dist/es → es}/auth/token-managers/container-token-manager.js +0 -0
  84. package/{dist/es → es}/auth/token-managers/cp4d-token-manager.d.ts +0 -0
  85. package/{dist/es → es}/auth/token-managers/cp4d-token-manager.js +0 -0
  86. package/{dist/es → es}/auth/token-managers/iam-request-based-token-manager.d.ts +0 -0
  87. package/{dist/es → es}/auth/token-managers/iam-request-based-token-manager.js +0 -0
  88. package/{dist/es → es}/auth/token-managers/iam-token-manager.d.ts +0 -0
  89. package/{dist/es → es}/auth/token-managers/iam-token-manager.js +0 -0
  90. package/{dist/es → es}/auth/token-managers/index.d.ts +0 -0
  91. package/{dist/es → es}/auth/token-managers/index.js +0 -0
  92. package/{dist/es → es}/auth/token-managers/jwt-token-manager.d.ts +0 -0
  93. package/{dist/es → es}/auth/token-managers/jwt-token-manager.js +0 -0
  94. package/{dist/es → es}/auth/token-managers/token-manager.d.ts +0 -0
  95. package/{dist/es → es}/auth/token-managers/token-manager.js +0 -0
  96. package/{dist/es → es}/auth/token-managers/vpc-instance-token-manager.d.ts +0 -0
  97. package/{dist/es → es}/auth/token-managers/vpc-instance-token-manager.js +0 -0
  98. package/{dist/es → es}/auth/utils/file-reading-helpers.browser.d.ts +0 -0
  99. package/{dist/es → es}/auth/utils/file-reading-helpers.browser.js +0 -0
  100. package/{dist/es → es}/auth/utils/file-reading-helpers.d.ts +0 -0
  101. package/{dist/es → es}/auth/utils/file-reading-helpers.js +0 -0
  102. package/{dist/es → es}/auth/utils/get-authenticator-from-environment.d.ts +0 -0
  103. package/{dist/es → es}/auth/utils/get-authenticator-from-environment.js +0 -0
  104. package/{dist/es → es}/auth/utils/helpers.d.ts +0 -0
  105. package/{dist/es → es}/auth/utils/helpers.js +0 -0
  106. package/{dist/es → es}/auth/utils/index.d.ts +0 -0
  107. package/{dist/es → es}/auth/utils/index.js +0 -0
  108. package/{dist/es → es}/auth/utils/read-external-sources.d.ts +0 -0
  109. package/{dist/es → es}/auth/utils/read-external-sources.js +0 -0
  110. package/{dist/es → es}/index.d.ts +0 -0
  111. package/{dist/es → es}/index.js +0 -0
  112. package/{dist/es → es}/lib/base-service.d.ts +0 -0
  113. package/{dist/es → es}/lib/base-service.js +0 -0
  114. package/{dist/es → es}/lib/content-type.d.ts +0 -0
  115. package/{dist/es → es}/lib/content-type.js +0 -0
  116. package/es/lib/cookie-support.d.ts +23 -0
  117. package/es/lib/cookie-support.js +87 -0
  118. package/{dist/es → es}/lib/get-new-logger.d.ts +0 -0
  119. package/{dist/es → es}/lib/get-new-logger.js +0 -0
  120. package/{dist/es → es}/lib/helper.d.ts +0 -0
  121. package/{dist/es → es}/lib/helper.js +0 -0
  122. package/{dist/es → es}/lib/logger.d.ts +0 -0
  123. package/{dist/es → es}/lib/logger.js +0 -0
  124. package/{dist/es → es}/lib/querystring.d.ts +0 -0
  125. package/{dist/es → es}/lib/querystring.js +0 -0
  126. package/{dist/es → es}/lib/request-wrapper.d.ts +1 -1
  127. package/{dist/es → es}/lib/request-wrapper.js +5 -13
  128. package/{dist/es → es}/lib/sdk-test-helpers.browser.d.ts +0 -0
  129. package/{dist/es → es}/lib/sdk-test-helpers.browser.js +0 -0
  130. package/{dist/es → es}/lib/sdk-test-helpers.d.ts +0 -0
  131. package/{dist/es → es}/lib/sdk-test-helpers.js +0 -0
  132. package/{dist/es → es}/lib/stream-to-promise.d.ts +0 -0
  133. package/{dist/es → es}/lib/stream-to-promise.js +0 -0
  134. package/{dist/ibm-cloud-sdk-core.d.ts → ibm-cloud-sdk-core.d.ts} +0 -0
  135. package/{dist/index.d.ts → index.d.ts} +0 -0
  136. package/{dist/index.js → index.js} +0 -0
  137. package/{dist/lib → lib}/base-service.d.ts +0 -0
  138. package/{dist/lib → lib}/base-service.js +0 -0
  139. package/{dist/lib → lib}/content-type.d.ts +0 -0
  140. package/{dist/lib → lib}/content-type.js +0 -0
  141. package/lib/cookie-support.d.ts +23 -0
  142. package/lib/cookie-support.js +141 -0
  143. package/{dist/lib → lib}/get-new-logger.d.ts +0 -0
  144. package/{dist/lib → lib}/get-new-logger.js +0 -0
  145. package/{dist/lib → lib}/helper.d.ts +0 -0
  146. package/{dist/lib → lib}/helper.js +0 -0
  147. package/{dist/lib → lib}/logger.d.ts +0 -0
  148. package/{dist/lib → lib}/logger.js +0 -0
  149. package/{dist/lib → lib}/querystring.d.ts +0 -0
  150. package/{dist/lib → lib}/querystring.js +0 -0
  151. package/{dist/lib → lib}/request-wrapper.d.ts +1 -1
  152. package/{dist/lib → lib}/request-wrapper.js +9 -13
  153. package/{dist/lib → lib}/sdk-test-helpers.browser.d.ts +0 -0
  154. package/{dist/lib → lib}/sdk-test-helpers.browser.js +0 -0
  155. package/{dist/lib → lib}/sdk-test-helpers.d.ts +0 -0
  156. package/{dist/lib → lib}/sdk-test-helpers.js +0 -0
  157. package/{dist/lib → lib}/stream-to-promise.d.ts +0 -0
  158. package/{dist/lib → lib}/stream-to-promise.js +0 -0
  159. package/package.json +1 -2
  160. package/.cra/.cveignore +0 -2
  161. package/.secrets.baseline +0 -542
  162. package/Authentication.md +0 -525
  163. package/CHANGELOG.md +0 -682
  164. package/LICENSE.md +0 -201
  165. package/MIGRATION-V1.md +0 -42
  166. package/README.md +0 -116
  167. package/api-extractor.json +0 -39
  168. package/appscan-config.xml +0 -7
  169. package/build/docs/ibm-cloud-sdk-core.atleastone.md +0 -27
  170. package/build/docs/ibm-cloud-sdk-core.atmostone.md +0 -27
  171. package/build/docs/ibm-cloud-sdk-core.authenticator._constructor_.md +0 -18
  172. package/build/docs/ibm-cloud-sdk-core.authenticator.authenticate.md +0 -28
  173. package/build/docs/ibm-cloud-sdk-core.authenticator.authenticationtype.md +0 -19
  174. package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_basic.md +0 -13
  175. package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_bearertoken.md +0 -11
  176. package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_container.md +0 -11
  177. package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_cp4d.md +0 -11
  178. package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_iam.md +0 -11
  179. package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_noauth.md +0 -11
  180. package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_unknown.md +0 -11
  181. package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_vpc.md +0 -11
  182. package/build/docs/ibm-cloud-sdk-core.authenticator.md +0 -41
  183. package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticate.md +0 -24
  184. package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticationtype.md +0 -17
  185. package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.md +0 -21
  186. package/build/docs/ibm-cloud-sdk-core.baseservice._constructor_.md +0 -20
  187. package/build/docs/ibm-cloud-sdk-core.baseservice.baseoptions.md +0 -11
  188. package/build/docs/ibm-cloud-sdk-core.baseservice.configureservice.md +0 -24
  189. package/build/docs/ibm-cloud-sdk-core.baseservice.createrequest.md +0 -26
  190. package/build/docs/ibm-cloud-sdk-core.baseservice.default_service_name.md +0 -11
  191. package/build/docs/ibm-cloud-sdk-core.baseservice.default_service_url.md +0 -11
  192. package/build/docs/ibm-cloud-sdk-core.baseservice.disableretries.md +0 -17
  193. package/build/docs/ibm-cloud-sdk-core.baseservice.enableretries.md +0 -24
  194. package/build/docs/ibm-cloud-sdk-core.baseservice.getauthenticator.md +0 -19
  195. package/build/docs/ibm-cloud-sdk-core.baseservice.gethttpclient.md +0 -17
  196. package/build/docs/ibm-cloud-sdk-core.baseservice.md +0 -44
  197. package/build/docs/ibm-cloud-sdk-core.baseservice.setdefaultheaders.md +0 -24
  198. package/build/docs/ibm-cloud-sdk-core.baseservice.setenablegzipcompression.md +0 -24
  199. package/build/docs/ibm-cloud-sdk-core.baseservice.setserviceurl.md +0 -24
  200. package/build/docs/ibm-cloud-sdk-core.basicauthenticator._constructor_.md +0 -24
  201. package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticate.md +0 -26
  202. package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticationtype.md +0 -19
  203. package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authheader.md +0 -13
  204. package/build/docs/ibm-cloud-sdk-core.basicauthenticator.md +0 -39
  205. package/build/docs/ibm-cloud-sdk-core.basicauthenticator.requiredoptions.md +0 -11
  206. package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator._constructor_.md +0 -24
  207. package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticate.md +0 -26
  208. package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticationtype.md +0 -19
  209. package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.md +0 -39
  210. package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.requiredoptions.md +0 -11
  211. package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.setbearertoken.md +0 -24
  212. package/build/docs/ibm-cloud-sdk-core.buildrequestfileobject.md +0 -26
  213. package/build/docs/ibm-cloud-sdk-core.checkcredentials.md +0 -27
  214. package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator._constructor_.md +0 -24
  215. package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.authenticationtype.md +0 -19
  216. package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.md +0 -38
  217. package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.requiredoptions.md +0 -11
  218. package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.tokenmanager.md +0 -11
  219. package/build/docs/ibm-cloud-sdk-core.computebasicauthheader.md +0 -27
  220. package/build/docs/ibm-cloud-sdk-core.constructfilepath.md +0 -22
  221. package/build/docs/ibm-cloud-sdk-core.constructserviceurl.md +0 -28
  222. package/build/docs/ibm-cloud-sdk-core.containerauthenticator._constructor_.md +0 -24
  223. package/build/docs/ibm-cloud-sdk-core.containerauthenticator.authenticationtype.md +0 -19
  224. package/build/docs/ibm-cloud-sdk-core.containerauthenticator.md +0 -40
  225. package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setcrtokenfilename.md +0 -24
  226. package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofileid.md +0 -24
  227. package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofilename.md +0 -24
  228. package/build/docs/ibm-cloud-sdk-core.containerauthenticator.tokenmanager.md +0 -11
  229. package/build/docs/ibm-cloud-sdk-core.containertokenmanager._constructor_.md +0 -20
  230. package/build/docs/ibm-cloud-sdk-core.containertokenmanager.md +0 -30
  231. package/build/docs/ibm-cloud-sdk-core.containertokenmanager.requesttoken.md +0 -19
  232. package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setcrtokenfilename.md +0 -24
  233. package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofileid.md +0 -24
  234. package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofilename.md +0 -24
  235. package/build/docs/ibm-cloud-sdk-core.contenttype.md +0 -14
  236. package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager._constructor_.md +0 -20
  237. package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.md +0 -35
  238. package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.requesttoken.md +0 -15
  239. package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.requiredoptions.md +0 -11
  240. package/build/docs/ibm-cloud-sdk-core.fileexistsatpath.md +0 -22
  241. package/build/docs/ibm-cloud-sdk-core.fileobject.md +0 -27
  242. package/build/docs/ibm-cloud-sdk-core.fileobject.options.md +0 -11
  243. package/build/docs/ibm-cloud-sdk-core.fileobject.value.md +0 -11
  244. package/build/docs/ibm-cloud-sdk-core.fileoptions.contenttype.md +0 -11
  245. package/build/docs/ibm-cloud-sdk-core.fileoptions.filename.md +0 -11
  246. package/build/docs/ibm-cloud-sdk-core.fileoptions.md +0 -19
  247. package/build/docs/ibm-cloud-sdk-core.filestream.md +0 -19
  248. package/build/docs/ibm-cloud-sdk-core.filestream.path.md +0 -11
  249. package/build/docs/ibm-cloud-sdk-core.filewithmetadata.contenttype.md +0 -11
  250. package/build/docs/ibm-cloud-sdk-core.filewithmetadata.data.md +0 -11
  251. package/build/docs/ibm-cloud-sdk-core.filewithmetadata.filename.md +0 -11
  252. package/build/docs/ibm-cloud-sdk-core.filewithmetadata.md +0 -20
  253. package/build/docs/ibm-cloud-sdk-core.getauthenticatorfromenvironment.md +0 -26
  254. package/build/docs/ibm-cloud-sdk-core.getcontenttype.md +0 -26
  255. package/build/docs/ibm-cloud-sdk-core.getcurrenttime.md +0 -19
  256. package/build/docs/ibm-cloud-sdk-core.getformat.md +0 -29
  257. package/build/docs/ibm-cloud-sdk-core.getmissingparams.md +0 -29
  258. package/build/docs/ibm-cloud-sdk-core.getnewlogger.md +0 -30
  259. package/build/docs/ibm-cloud-sdk-core.getqueryparam.md +0 -31
  260. package/build/docs/ibm-cloud-sdk-core.iamauthenticator._constructor_.md +0 -24
  261. package/build/docs/ibm-cloud-sdk-core.iamauthenticator.authenticationtype.md +0 -19
  262. package/build/docs/ibm-cloud-sdk-core.iamauthenticator.md +0 -38
  263. package/build/docs/ibm-cloud-sdk-core.iamauthenticator.requiredoptions.md +0 -11
  264. package/build/docs/ibm-cloud-sdk-core.iamauthenticator.tokenmanager.md +0 -11
  265. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator._constructor_.md +0 -24
  266. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientid.md +0 -11
  267. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientsecret.md +0 -11
  268. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.getrefreshtoken.md +0 -19
  269. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.md +0 -38
  270. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.scope.md +0 -11
  271. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setclientidandsecret.md +0 -25
  272. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setscope.md +0 -24
  273. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.tokenmanager.md +0 -11
  274. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager._constructor_.md +0 -20
  275. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.formdata.md +0 -11
  276. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.getrefreshtoken.md +0 -19
  277. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md +0 -38
  278. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.refreshtoken.md +0 -11
  279. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.requesttoken.md +0 -19
  280. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.savetokeninfo.md +0 -26
  281. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setclientidandsecret.md +0 -27
  282. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setscope.md +0 -26
  283. package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.clientid.md +0 -11
  284. package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.clientsecret.md +0 -11
  285. package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.md +0 -23
  286. package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.scope.md +0 -11
  287. package/build/docs/ibm-cloud-sdk-core.iamtokenmanager._constructor_.md +0 -20
  288. package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.md +0 -27
  289. package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.requiredoptions.md +0 -11
  290. package/build/docs/ibm-cloud-sdk-core.isemptyobject.md +0 -22
  291. package/build/docs/ibm-cloud-sdk-core.isfiledata.md +0 -22
  292. package/build/docs/ibm-cloud-sdk-core.isfilewithmetadata.md +0 -22
  293. package/build/docs/ibm-cloud-sdk-core.ishtml.md +0 -26
  294. package/build/docs/ibm-cloud-sdk-core.jwttokenmanager._constructor_.md +0 -20
  295. package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.md +0 -35
  296. package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.requesttoken.md +0 -19
  297. package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.savetokeninfo.md +0 -26
  298. package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.tokeninfo.md +0 -11
  299. package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.tokenname.md +0 -11
  300. package/build/docs/ibm-cloud-sdk-core.jwttokenmanageroptions.md +0 -15
  301. package/build/docs/ibm-cloud-sdk-core.md +0 -96
  302. package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.authenticate.md +0 -22
  303. package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.authenticationtype.md +0 -19
  304. package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.md +0 -22
  305. package/build/docs/ibm-cloud-sdk-core.onlyone.md +0 -27
  306. package/build/docs/ibm-cloud-sdk-core.qs.md +0 -21
  307. package/build/docs/ibm-cloud-sdk-core.readcredentialsfile.md +0 -17
  308. package/build/docs/ibm-cloud-sdk-core.readcrtokenfile.md +0 -22
  309. package/build/docs/ibm-cloud-sdk-core.readexternalsources.md +0 -26
  310. package/build/docs/ibm-cloud-sdk-core.removesuffix.md +0 -27
  311. package/build/docs/ibm-cloud-sdk-core.sdklogger.debug.md +0 -11
  312. package/build/docs/ibm-cloud-sdk-core.sdklogger.error.md +0 -11
  313. package/build/docs/ibm-cloud-sdk-core.sdklogger.info.md +0 -11
  314. package/build/docs/ibm-cloud-sdk-core.sdklogger.md +0 -22
  315. package/build/docs/ibm-cloud-sdk-core.sdklogger.verbose.md +0 -11
  316. package/build/docs/ibm-cloud-sdk-core.sdklogger.warn.md +0 -11
  317. package/build/docs/ibm-cloud-sdk-core.streamtopromise.md +0 -24
  318. package/build/docs/ibm-cloud-sdk-core.striptrailingslash.md +0 -24
  319. package/build/docs/ibm-cloud-sdk-core.tokenmanager._constructor_.md +0 -20
  320. package/build/docs/ibm-cloud-sdk-core.tokenmanager.accesstoken.md +0 -11
  321. package/build/docs/ibm-cloud-sdk-core.tokenmanager.disablesslverification.md +0 -11
  322. package/build/docs/ibm-cloud-sdk-core.tokenmanager.expiretime.md +0 -11
  323. package/build/docs/ibm-cloud-sdk-core.tokenmanager.gettoken.md +0 -17
  324. package/build/docs/ibm-cloud-sdk-core.tokenmanager.headers.md +0 -11
  325. package/build/docs/ibm-cloud-sdk-core.tokenmanager.md +0 -43
  326. package/build/docs/ibm-cloud-sdk-core.tokenmanager.pacedrequesttoken.md +0 -19
  327. package/build/docs/ibm-cloud-sdk-core.tokenmanager.refreshtime.md +0 -11
  328. package/build/docs/ibm-cloud-sdk-core.tokenmanager.requesttoken.md +0 -19
  329. package/build/docs/ibm-cloud-sdk-core.tokenmanager.requestwrapperinstance.md +0 -11
  330. package/build/docs/ibm-cloud-sdk-core.tokenmanager.savetokeninfo.md +0 -26
  331. package/build/docs/ibm-cloud-sdk-core.tokenmanager.setdisablesslverification.md +0 -26
  332. package/build/docs/ibm-cloud-sdk-core.tokenmanager.setheaders.md +0 -26
  333. package/build/docs/ibm-cloud-sdk-core.tokenmanager.url.md +0 -11
  334. package/build/docs/ibm-cloud-sdk-core.tokenmanageroptions.md +0 -18
  335. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator._constructor_.md +0 -20
  336. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.authenticate.md +0 -26
  337. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.disablesslverification.md +0 -11
  338. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.headers.md +0 -11
  339. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.md +0 -42
  340. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md +0 -24
  341. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setheaders.md +0 -24
  342. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.tokenmanager.md +0 -11
  343. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.url.md +0 -11
  344. package/build/docs/ibm-cloud-sdk-core.tolowerkeys.md +0 -26
  345. package/build/docs/ibm-cloud-sdk-core.unittestutils.checkforsuccessfulexecution.md +0 -26
  346. package/build/docs/ibm-cloud-sdk-core.unittestutils.checkmediaheaders.md +0 -28
  347. package/build/docs/ibm-cloud-sdk-core.unittestutils.checkurlandmethod.md +0 -28
  348. package/build/docs/ibm-cloud-sdk-core.unittestutils.checkuserheader.md +0 -28
  349. package/build/docs/ibm-cloud-sdk-core.unittestutils.expecttobepromise.md +0 -26
  350. package/build/docs/ibm-cloud-sdk-core.unittestutils.getoptions.md +0 -26
  351. package/build/docs/ibm-cloud-sdk-core.unittestutils.md +0 -17
  352. package/build/docs/ibm-cloud-sdk-core.useroptions.authenticator.md +0 -13
  353. package/build/docs/ibm-cloud-sdk-core.useroptions.disablesslverification.md +0 -13
  354. package/build/docs/ibm-cloud-sdk-core.useroptions.headers.md +0 -13
  355. package/build/docs/ibm-cloud-sdk-core.useroptions.jar.md +0 -13
  356. package/build/docs/ibm-cloud-sdk-core.useroptions.md +0 -26
  357. package/build/docs/ibm-cloud-sdk-core.useroptions.serviceurl.md +0 -13
  358. package/build/docs/ibm-cloud-sdk-core.useroptions.url.md +0 -13
  359. package/build/docs/ibm-cloud-sdk-core.useroptions.version.md +0 -13
  360. package/build/docs/ibm-cloud-sdk-core.validateinput.md +0 -23
  361. package/build/docs/ibm-cloud-sdk-core.validateparams.md +0 -30
  362. package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md +0 -20
  363. package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.authenticationtype.md +0 -19
  364. package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.md +0 -39
  365. package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md +0 -24
  366. package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md +0 -24
  367. package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.tokenmanager.md +0 -11
  368. package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md +0 -20
  369. package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.md +0 -29
  370. package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.requesttoken.md +0 -15
  371. package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md +0 -24
  372. package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md +0 -24
  373. package/build/docs/index.md +0 -12
  374. package/dist/package.json +0 -71
  375. package/es/tsdoc-metadata.json +0 -11
  376. package/etc/ibm-cloud-sdk-core.api.md +0 -483
  377. package/temp/ibm-cloud-sdk-core.api.json +0 -7571
  378. package/temp/ibm-cloud-sdk-core.api.md +0 -483
  379. package/tsconfig-es6.json +0 -9
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,23 @@
1
+ /**
2
+ * (C) Copyright IBM Corp. 2022.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { AxiosRequestConfig, AxiosResponse } from 'axios';
17
+ import { CookieJar } from 'tough-cookie';
18
+ export declare class CookieInterceptor {
19
+ private readonly cookieJar;
20
+ constructor(cookieJar: CookieJar | boolean);
21
+ requestInterceptor(config: AxiosRequestConfig): Promise<AxiosRequestConfig<any>>;
22
+ responseInterceptor(response: AxiosResponse): Promise<AxiosResponse<any, any>>;
23
+ }
@@ -0,0 +1,87 @@
1
+ /**
2
+ * (C) Copyright IBM Corp. 2022.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18
+ return new (P || (P = Promise))(function (resolve, reject) {
19
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
20
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
21
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
22
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
23
+ });
24
+ };
25
+ import extend from 'extend';
26
+ import { CookieJar } from 'tough-cookie';
27
+ import logger from './logger';
28
+ export class CookieInterceptor {
29
+ constructor(cookieJar) {
30
+ if (cookieJar) {
31
+ if (cookieJar === true) {
32
+ logger.debug('CookieInterceptor: creating new CookieJar');
33
+ this.cookieJar = new CookieJar();
34
+ }
35
+ else {
36
+ logger.debug('CookieInterceptor: using supplied CookieJar');
37
+ this.cookieJar = cookieJar;
38
+ }
39
+ }
40
+ else {
41
+ throw new Error('Must supply a cookie jar or true.');
42
+ }
43
+ }
44
+ requestInterceptor(config) {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ logger.debug('CookieInterceptor: intercepting request');
47
+ if (config && config.url) {
48
+ logger.debug(`CookieInterceptor: getting cookies for: ${config.url}`);
49
+ const cookieHeaderValue = yield this.cookieJar.getCookieString(config.url);
50
+ if (cookieHeaderValue) {
51
+ logger.debug('CookieInterceptor: setting cookie header');
52
+ const cookieHeader = { cookie: cookieHeaderValue };
53
+ config.headers = extend(true, {}, config.headers, cookieHeader);
54
+ }
55
+ else {
56
+ logger.debug(`CookieInterceptor: no cookies for: ${config.url}`);
57
+ }
58
+ }
59
+ else {
60
+ logger.debug('CookieInterceptor: no request URL.');
61
+ }
62
+ return config;
63
+ });
64
+ }
65
+ responseInterceptor(response) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ logger.debug('CookieInterceptor: intercepting response.');
68
+ if (response && response.headers) {
69
+ logger.debug('CookieInterceptor: checking for set-cookie headers.');
70
+ const cookies = response.headers['set-cookie'];
71
+ if (cookies) {
72
+ logger.debug('CookieInterceptor: setting cookies in jar.');
73
+ cookies.forEach((cookie) => __awaiter(this, void 0, void 0, function* () {
74
+ yield this.cookieJar.setCookie(cookie, response.request.url);
75
+ }));
76
+ }
77
+ else {
78
+ logger.debug('CookieInterceptor: no set-cookie headers.');
79
+ }
80
+ }
81
+ else {
82
+ logger.debug('CookieInterceptor: no response headers.');
83
+ }
84
+ return response;
85
+ });
86
+ }
87
+ }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  /**
2
- * (C) Copyright IBM Corp. 2014, 2021.
2
+ * (C) Copyright IBM Corp. 2014, 2022.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  /**
12
- * (C) Copyright IBM Corp. 2014, 2021.
12
+ * (C) Copyright IBM Corp. 2014, 2022.
13
13
  *
14
14
  * Licensed under the Apache License, Version 2.0 (the "License");
15
15
  * you may not use this file except in compliance with the License.
@@ -25,17 +25,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
25
25
  */
26
26
  import axios from 'axios';
27
27
  import * as rax from 'retry-axios';
28
- import { wrapper as axiosCookieJarSupport } from 'axios-cookiejar-support';
29
28
  import extend from 'extend';
30
29
  import FormData from 'form-data';
31
30
  import { Agent } from 'https';
32
31
  import isStream from 'isstream';
33
32
  import { stringify } from 'querystring';
34
33
  import { gzipSync } from 'zlib';
35
- import { CookieJar } from 'tough-cookie';
36
34
  import { buildRequestFileObject, isEmptyObject, isFileData, isFileWithMetadata, stripTrailingSlash, } from './helper';
37
35
  import logger from './logger';
38
36
  import { streamToPromise } from './stream-to-promise';
37
+ import { CookieInterceptor } from './cookie-support';
39
38
  export class RequestWrapper {
40
39
  constructor(axiosOptions) {
41
40
  axiosOptions = axiosOptions || {};
@@ -73,16 +72,9 @@ export class RequestWrapper {
73
72
  });
74
73
  // if a cookie jar is provided, wrap the axios instance and update defaults
75
74
  if (axiosOptions.jar) {
76
- axiosCookieJarSupport(this.axiosInstance);
77
- // axios-cookiejar-support < 2.x accepted a boolean
78
- // some SDKs might be using that, so create a default
79
- // CookieJar if detecting true.
80
- if (axiosOptions.jar === true) {
81
- this.axiosInstance.defaults.jar = new CookieJar();
82
- }
83
- else {
84
- this.axiosInstance.defaults.jar = axiosOptions.jar;
85
- }
75
+ const cookieInterceptor = new CookieInterceptor(axiosOptions.jar);
76
+ this.axiosInstance.interceptors.request.use((config) => cookieInterceptor.requestInterceptor(config));
77
+ this.axiosInstance.interceptors.response.use((response) => cookieInterceptor.responseInterceptor(response));
86
78
  }
87
79
  // get retry config properties and conditionally enable retries
88
80
  if (axiosOptions.enableRetries) {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,23 @@
1
+ /**
2
+ * (C) Copyright IBM Corp. 2022.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { AxiosRequestConfig, AxiosResponse } from 'axios';
17
+ import { CookieJar } from 'tough-cookie';
18
+ export declare class CookieInterceptor {
19
+ private readonly cookieJar;
20
+ constructor(cookieJar: CookieJar | boolean);
21
+ requestInterceptor(config: AxiosRequestConfig): Promise<AxiosRequestConfig<any>>;
22
+ responseInterceptor(response: AxiosResponse): Promise<AxiosResponse<any, any>>;
23
+ }