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.
- package/{dist/auth → auth}/authenticators/authenticator-interface.d.ts +0 -0
- package/{dist/auth → auth}/authenticators/authenticator-interface.js +0 -0
- package/{dist/auth → auth}/authenticators/authenticator.d.ts +0 -0
- package/{dist/auth → auth}/authenticators/authenticator.js +0 -0
- package/{dist/auth → auth}/authenticators/basic-authenticator.d.ts +0 -0
- package/{dist/auth → auth}/authenticators/basic-authenticator.js +0 -0
- package/{dist/auth → auth}/authenticators/bearer-token-authenticator.d.ts +0 -0
- package/{dist/auth → auth}/authenticators/bearer-token-authenticator.js +0 -0
- package/{dist/auth → auth}/authenticators/cloud-pak-for-data-authenticator.d.ts +0 -0
- package/{dist/auth → auth}/authenticators/cloud-pak-for-data-authenticator.js +0 -0
- package/{dist/auth → auth}/authenticators/container-authenticator.d.ts +0 -0
- package/{dist/auth → auth}/authenticators/container-authenticator.js +0 -0
- package/{dist/auth → auth}/authenticators/iam-authenticator.d.ts +0 -0
- package/{dist/auth → auth}/authenticators/iam-authenticator.js +0 -0
- package/{dist/auth → auth}/authenticators/iam-request-based-authenticator.d.ts +0 -0
- package/{dist/auth → auth}/authenticators/iam-request-based-authenticator.js +0 -0
- package/{dist/auth → auth}/authenticators/index.d.ts +0 -0
- package/{dist/auth → auth}/authenticators/index.js +0 -0
- package/{dist/auth → auth}/authenticators/no-auth-authenticator.d.ts +0 -0
- package/{dist/auth → auth}/authenticators/no-auth-authenticator.js +0 -0
- package/{dist/auth → auth}/authenticators/token-request-based-authenticator.d.ts +0 -0
- package/{dist/auth → auth}/authenticators/token-request-based-authenticator.js +0 -0
- package/{dist/auth → auth}/authenticators/vpc-instance-authenticator.d.ts +0 -0
- package/{dist/auth → auth}/authenticators/vpc-instance-authenticator.js +0 -0
- package/{dist/auth → auth}/index.d.ts +0 -0
- package/{dist/auth → auth}/index.js +0 -0
- package/{dist/auth → auth}/token-managers/container-token-manager.d.ts +0 -0
- package/{dist/auth → auth}/token-managers/container-token-manager.js +0 -0
- package/{dist/auth → auth}/token-managers/cp4d-token-manager.d.ts +0 -0
- package/{dist/auth → auth}/token-managers/cp4d-token-manager.js +0 -0
- package/{dist/auth → auth}/token-managers/iam-request-based-token-manager.d.ts +0 -0
- package/{dist/auth → auth}/token-managers/iam-request-based-token-manager.js +0 -0
- package/{dist/auth → auth}/token-managers/iam-token-manager.d.ts +0 -0
- package/{dist/auth → auth}/token-managers/iam-token-manager.js +0 -0
- package/{dist/auth → auth}/token-managers/index.d.ts +0 -0
- package/{dist/auth → auth}/token-managers/index.js +0 -0
- package/{dist/auth → auth}/token-managers/jwt-token-manager.d.ts +0 -0
- package/{dist/auth → auth}/token-managers/jwt-token-manager.js +0 -0
- package/{dist/auth → auth}/token-managers/token-manager.d.ts +0 -0
- package/{dist/auth → auth}/token-managers/token-manager.js +0 -0
- package/{dist/auth → auth}/token-managers/vpc-instance-token-manager.d.ts +0 -0
- package/{dist/auth → auth}/token-managers/vpc-instance-token-manager.js +0 -0
- package/{dist/auth → auth}/utils/file-reading-helpers.browser.d.ts +0 -0
- package/{dist/auth → auth}/utils/file-reading-helpers.browser.js +0 -0
- package/{dist/auth → auth}/utils/file-reading-helpers.d.ts +0 -0
- package/{dist/auth → auth}/utils/file-reading-helpers.js +0 -0
- package/{dist/auth → auth}/utils/get-authenticator-from-environment.d.ts +0 -0
- package/{dist/auth → auth}/utils/get-authenticator-from-environment.js +0 -0
- package/{dist/auth → auth}/utils/helpers.d.ts +0 -0
- package/{dist/auth → auth}/utils/helpers.js +0 -0
- package/{dist/auth → auth}/utils/index.d.ts +0 -0
- package/{dist/auth → auth}/utils/index.js +0 -0
- package/{dist/auth → auth}/utils/read-external-sources.d.ts +0 -0
- package/{dist/auth → auth}/utils/read-external-sources.js +0 -0
- package/{dist/docs → docs}/ibm-cloud-sdk-core.api.json +0 -0
- package/{dist/es → es}/auth/authenticators/authenticator-interface.d.ts +0 -0
- package/{dist/es → es}/auth/authenticators/authenticator-interface.js +0 -0
- package/{dist/es → es}/auth/authenticators/authenticator.d.ts +0 -0
- package/{dist/es → es}/auth/authenticators/authenticator.js +0 -0
- package/{dist/es → es}/auth/authenticators/basic-authenticator.d.ts +0 -0
- package/{dist/es → es}/auth/authenticators/basic-authenticator.js +0 -0
- package/{dist/es → es}/auth/authenticators/bearer-token-authenticator.d.ts +0 -0
- package/{dist/es → es}/auth/authenticators/bearer-token-authenticator.js +0 -0
- package/{dist/es → es}/auth/authenticators/cloud-pak-for-data-authenticator.d.ts +0 -0
- package/{dist/es → es}/auth/authenticators/cloud-pak-for-data-authenticator.js +0 -0
- package/{dist/es → es}/auth/authenticators/container-authenticator.d.ts +0 -0
- package/{dist/es → es}/auth/authenticators/container-authenticator.js +0 -0
- package/{dist/es → es}/auth/authenticators/iam-authenticator.d.ts +0 -0
- package/{dist/es → es}/auth/authenticators/iam-authenticator.js +0 -0
- package/{dist/es → es}/auth/authenticators/iam-request-based-authenticator.d.ts +0 -0
- package/{dist/es → es}/auth/authenticators/iam-request-based-authenticator.js +0 -0
- package/{dist/es → es}/auth/authenticators/index.d.ts +0 -0
- package/{dist/es → es}/auth/authenticators/index.js +0 -0
- package/{dist/es → es}/auth/authenticators/no-auth-authenticator.d.ts +0 -0
- package/{dist/es → es}/auth/authenticators/no-auth-authenticator.js +0 -0
- package/{dist/es → es}/auth/authenticators/token-request-based-authenticator.d.ts +0 -0
- package/{dist/es → es}/auth/authenticators/token-request-based-authenticator.js +0 -0
- package/{dist/es → es}/auth/authenticators/vpc-instance-authenticator.d.ts +0 -0
- package/{dist/es → es}/auth/authenticators/vpc-instance-authenticator.js +0 -0
- package/{dist/es → es}/auth/index.d.ts +0 -0
- package/{dist/es → es}/auth/index.js +0 -0
- package/{dist/es → es}/auth/token-managers/container-token-manager.d.ts +0 -0
- package/{dist/es → es}/auth/token-managers/container-token-manager.js +0 -0
- package/{dist/es → es}/auth/token-managers/cp4d-token-manager.d.ts +0 -0
- package/{dist/es → es}/auth/token-managers/cp4d-token-manager.js +0 -0
- package/{dist/es → es}/auth/token-managers/iam-request-based-token-manager.d.ts +0 -0
- package/{dist/es → es}/auth/token-managers/iam-request-based-token-manager.js +0 -0
- package/{dist/es → es}/auth/token-managers/iam-token-manager.d.ts +0 -0
- package/{dist/es → es}/auth/token-managers/iam-token-manager.js +0 -0
- package/{dist/es → es}/auth/token-managers/index.d.ts +0 -0
- package/{dist/es → es}/auth/token-managers/index.js +0 -0
- package/{dist/es → es}/auth/token-managers/jwt-token-manager.d.ts +0 -0
- package/{dist/es → es}/auth/token-managers/jwt-token-manager.js +0 -0
- package/{dist/es → es}/auth/token-managers/token-manager.d.ts +0 -0
- package/{dist/es → es}/auth/token-managers/token-manager.js +0 -0
- package/{dist/es → es}/auth/token-managers/vpc-instance-token-manager.d.ts +0 -0
- package/{dist/es → es}/auth/token-managers/vpc-instance-token-manager.js +0 -0
- package/{dist/es → es}/auth/utils/file-reading-helpers.browser.d.ts +0 -0
- package/{dist/es → es}/auth/utils/file-reading-helpers.browser.js +0 -0
- package/{dist/es → es}/auth/utils/file-reading-helpers.d.ts +0 -0
- package/{dist/es → es}/auth/utils/file-reading-helpers.js +0 -0
- package/{dist/es → es}/auth/utils/get-authenticator-from-environment.d.ts +0 -0
- package/{dist/es → es}/auth/utils/get-authenticator-from-environment.js +0 -0
- package/{dist/es → es}/auth/utils/helpers.d.ts +0 -0
- package/{dist/es → es}/auth/utils/helpers.js +0 -0
- package/{dist/es → es}/auth/utils/index.d.ts +0 -0
- package/{dist/es → es}/auth/utils/index.js +0 -0
- package/{dist/es → es}/auth/utils/read-external-sources.d.ts +0 -0
- package/{dist/es → es}/auth/utils/read-external-sources.js +0 -0
- package/{dist/es → es}/index.d.ts +0 -0
- package/{dist/es → es}/index.js +0 -0
- package/{dist/es → es}/lib/base-service.d.ts +0 -0
- package/{dist/es → es}/lib/base-service.js +0 -0
- package/{dist/es → es}/lib/content-type.d.ts +0 -0
- package/{dist/es → es}/lib/content-type.js +0 -0
- package/es/lib/cookie-support.d.ts +23 -0
- package/es/lib/cookie-support.js +87 -0
- package/{dist/es → es}/lib/get-new-logger.d.ts +0 -0
- package/{dist/es → es}/lib/get-new-logger.js +0 -0
- package/{dist/es → es}/lib/helper.d.ts +0 -0
- package/{dist/es → es}/lib/helper.js +0 -0
- package/{dist/es → es}/lib/logger.d.ts +0 -0
- package/{dist/es → es}/lib/logger.js +0 -0
- package/{dist/es → es}/lib/querystring.d.ts +0 -0
- package/{dist/es → es}/lib/querystring.js +0 -0
- package/{dist/es → es}/lib/request-wrapper.d.ts +1 -1
- package/{dist/es → es}/lib/request-wrapper.js +5 -13
- package/{dist/es → es}/lib/sdk-test-helpers.browser.d.ts +0 -0
- package/{dist/es → es}/lib/sdk-test-helpers.browser.js +0 -0
- package/{dist/es → es}/lib/sdk-test-helpers.d.ts +0 -0
- package/{dist/es → es}/lib/sdk-test-helpers.js +0 -0
- package/{dist/es → es}/lib/stream-to-promise.d.ts +0 -0
- package/{dist/es → es}/lib/stream-to-promise.js +0 -0
- package/{dist/ibm-cloud-sdk-core.d.ts → ibm-cloud-sdk-core.d.ts} +0 -0
- package/{dist/index.d.ts → index.d.ts} +0 -0
- package/{dist/index.js → index.js} +0 -0
- package/{dist/lib → lib}/base-service.d.ts +0 -0
- package/{dist/lib → lib}/base-service.js +0 -0
- package/{dist/lib → lib}/content-type.d.ts +0 -0
- package/{dist/lib → lib}/content-type.js +0 -0
- package/lib/cookie-support.d.ts +23 -0
- package/lib/cookie-support.js +141 -0
- package/{dist/lib → lib}/get-new-logger.d.ts +0 -0
- package/{dist/lib → lib}/get-new-logger.js +0 -0
- package/{dist/lib → lib}/helper.d.ts +0 -0
- package/{dist/lib → lib}/helper.js +0 -0
- package/{dist/lib → lib}/logger.d.ts +0 -0
- package/{dist/lib → lib}/logger.js +0 -0
- package/{dist/lib → lib}/querystring.d.ts +0 -0
- package/{dist/lib → lib}/querystring.js +0 -0
- package/{dist/lib → lib}/request-wrapper.d.ts +1 -1
- package/{dist/lib → lib}/request-wrapper.js +9 -13
- package/{dist/lib → lib}/sdk-test-helpers.browser.d.ts +0 -0
- package/{dist/lib → lib}/sdk-test-helpers.browser.js +0 -0
- package/{dist/lib → lib}/sdk-test-helpers.d.ts +0 -0
- package/{dist/lib → lib}/sdk-test-helpers.js +0 -0
- package/{dist/lib → lib}/stream-to-promise.d.ts +0 -0
- package/{dist/lib → lib}/stream-to-promise.js +0 -0
- package/package.json +1 -2
- package/.cra/.cveignore +0 -2
- package/.secrets.baseline +0 -542
- package/Authentication.md +0 -525
- package/CHANGELOG.md +0 -682
- package/LICENSE.md +0 -201
- package/MIGRATION-V1.md +0 -42
- package/README.md +0 -116
- package/api-extractor.json +0 -39
- package/appscan-config.xml +0 -7
- package/build/docs/ibm-cloud-sdk-core.atleastone.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.atmostone.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.authenticator._constructor_.md +0 -18
- package/build/docs/ibm-cloud-sdk-core.authenticator.authenticate.md +0 -28
- package/build/docs/ibm-cloud-sdk-core.authenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_basic.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_bearertoken.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_container.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_cp4d.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_iam.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_noauth.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_unknown.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_vpc.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.md +0 -41
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticate.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticationtype.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.md +0 -21
- package/build/docs/ibm-cloud-sdk-core.baseservice._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.baseservice.baseoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.baseservice.configureservice.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.baseservice.createrequest.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.baseservice.default_service_name.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.baseservice.default_service_url.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.baseservice.disableretries.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.baseservice.enableretries.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.baseservice.getauthenticator.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.baseservice.gethttpclient.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.baseservice.md +0 -44
- package/build/docs/ibm-cloud-sdk-core.baseservice.setdefaultheaders.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.baseservice.setenablegzipcompression.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.baseservice.setserviceurl.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator._constructor_.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticate.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authheader.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.md +0 -39
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator._constructor_.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticate.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.md +0 -39
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.setbearertoken.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.buildrequestfileobject.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.checkcredentials.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator._constructor_.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.md +0 -38
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.computebasicauthheader.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.constructfilepath.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.constructserviceurl.md +0 -28
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator._constructor_.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.md +0 -40
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setcrtokenfilename.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofileid.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofilename.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.md +0 -30
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.requesttoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setcrtokenfilename.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofileid.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofilename.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.contenttype.md +0 -14
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.md +0 -35
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.requesttoken.md +0 -15
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.fileexistsatpath.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.fileobject.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.fileobject.options.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.fileobject.value.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.fileoptions.contenttype.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.fileoptions.filename.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.fileoptions.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.filestream.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.filestream.path.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.contenttype.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.data.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.filename.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.getauthenticatorfromenvironment.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.getcontenttype.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.getcurrenttime.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.getformat.md +0 -29
- package/build/docs/ibm-cloud-sdk-core.getmissingparams.md +0 -29
- package/build/docs/ibm-cloud-sdk-core.getnewlogger.md +0 -30
- package/build/docs/ibm-cloud-sdk-core.getqueryparam.md +0 -31
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator._constructor_.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.md +0 -38
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator._constructor_.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientid.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientsecret.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.getrefreshtoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.md +0 -38
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.scope.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setclientidandsecret.md +0 -25
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setscope.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.formdata.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.getrefreshtoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md +0 -38
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.refreshtoken.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.requesttoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.savetokeninfo.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setclientidandsecret.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setscope.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.clientid.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.clientsecret.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.md +0 -23
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.scope.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.isemptyobject.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.isfiledata.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.isfilewithmetadata.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.ishtml.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.md +0 -35
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.requesttoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.savetokeninfo.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.tokeninfo.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.tokenname.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanageroptions.md +0 -15
- package/build/docs/ibm-cloud-sdk-core.md +0 -96
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.authenticate.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.onlyone.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.qs.md +0 -21
- package/build/docs/ibm-cloud-sdk-core.readcredentialsfile.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.readcrtokenfile.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.readexternalsources.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.removesuffix.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.sdklogger.debug.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.sdklogger.error.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.sdklogger.info.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.sdklogger.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.sdklogger.verbose.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.sdklogger.warn.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.streamtopromise.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.striptrailingslash.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.tokenmanager._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.accesstoken.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.disablesslverification.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.expiretime.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.gettoken.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.headers.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.md +0 -43
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.pacedrequesttoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.refreshtime.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.requesttoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.requestwrapperinstance.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.savetokeninfo.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setdisablesslverification.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setheaders.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.url.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanageroptions.md +0 -18
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.authenticate.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.disablesslverification.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.headers.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.md +0 -42
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setheaders.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.url.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tolowerkeys.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkforsuccessfulexecution.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkmediaheaders.md +0 -28
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkurlandmethod.md +0 -28
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkuserheader.md +0 -28
- package/build/docs/ibm-cloud-sdk-core.unittestutils.expecttobepromise.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.unittestutils.getoptions.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.unittestutils.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.useroptions.authenticator.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.disablesslverification.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.headers.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.jar.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.useroptions.serviceurl.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.url.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.version.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.validateinput.md +0 -23
- package/build/docs/ibm-cloud-sdk-core.validateparams.md +0 -30
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.md +0 -39
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.md +0 -29
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.requesttoken.md +0 -15
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md +0 -24
- package/build/docs/index.md +0 -12
- package/dist/package.json +0 -71
- package/es/tsdoc-metadata.json +0 -11
- package/etc/ibm-cloud-sdk-core.api.md +0 -483
- package/temp/ibm-cloud-sdk-core.api.json +0 -7571
- package/temp/ibm-cloud-sdk-core.api.md +0 -483
- 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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
package/{dist/es → es}/index.js
RENAMED
|
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
|
|
@@ -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,
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
|
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
|
+
}
|