ibm-cloud-sdk-core 4.3.2-beta-2 → 4.3.3
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/.cra/.cveignore +2 -0
- package/.secrets.baseline +590 -0
- package/Authentication.md +600 -0
- package/CHANGELOG.md +886 -0
- package/LICENSE.md +201 -0
- package/MIGRATION-V4.md +54 -0
- package/README.md +118 -0
- package/api-extractor.json +39 -0
- package/appscan-config.xml +8 -0
- package/build/docs/ibm-cloud-sdk-core.atleastone.md +71 -0
- package/build/docs/ibm-cloud-sdk-core.atmostone.md +71 -0
- package/build/docs/ibm-cloud-sdk-core.authenticator._constructor_.md +18 -0
- package/build/docs/ibm-cloud-sdk-core.authenticator.authenticate.md +57 -0
- package/build/docs/ibm-cloud-sdk-core.authenticator.authenticationtype.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_basic.md +13 -0
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_bearertoken.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_container.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_cp4d.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_iam.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_mcsp.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_noauth.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_unknown.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_vpc.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.authenticator.md +294 -0
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticate.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticationtype.md +17 -0
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.md +50 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice._constructor_.md +49 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice.baseoptions.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice.configureservice.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice.convertmodel.md +85 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice.createrequest.md +55 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice.createrequestanddeserializeresponse.md +87 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice.default_service_name.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice.default_service_url.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice.disableretries.md +17 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice.enableretries.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice.getauthenticator.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice.gethttpclient.md +17 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice.md +313 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice.setdefaultheaders.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice.setenablegzipcompression.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.baseservice.setserviceurl.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator._constructor_.md +54 -0
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticate.md +55 -0
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticationtype.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authheader.md +13 -0
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.md +165 -0
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.requiredoptions.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator._constructor_.md +54 -0
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticate.md +55 -0
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticationtype.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.md +160 -0
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.requiredoptions.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.setbearertoken.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.buildrequestfileobject.md +55 -0
- package/build/docs/ibm-cloud-sdk-core.checkcredentials.md +71 -0
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator._constructor_.md +54 -0
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.authenticationtype.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.md +149 -0
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.requiredoptions.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.tokenmanager.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.computebasicauthheader.md +71 -0
- package/build/docs/ibm-cloud-sdk-core.constructfilepath.md +49 -0
- package/build/docs/ibm-cloud-sdk-core.constructserviceurl.md +87 -0
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator._constructor_.md +54 -0
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.authenticationtype.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.md +172 -0
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setcrtokenfilename.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofileid.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofilename.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.tokenmanager.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager._constructor_.md +54 -0
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.getcrtoken.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.md +142 -0
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.requesttoken.md +17 -0
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setcrtokenfilename.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofileid.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofilename.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.contenttype.md +14 -0
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager._constructor_.md +54 -0
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.md +128 -0
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.requesttoken.md +15 -0
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.requiredoptions.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.fileexistsatpath.md +49 -0
- package/build/docs/ibm-cloud-sdk-core.fileobject.md +80 -0
- package/build/docs/ibm-cloud-sdk-core.fileobject.options.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.fileobject.value.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.fileoptions.contenttype.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.fileoptions.filename.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.fileoptions.md +74 -0
- package/build/docs/ibm-cloud-sdk-core.filestream.md +54 -0
- package/build/docs/ibm-cloud-sdk-core.filestream.path.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.contenttype.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.data.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.filename.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.md +87 -0
- package/build/docs/ibm-cloud-sdk-core.getauthenticatorfromenvironment.md +55 -0
- package/build/docs/ibm-cloud-sdk-core.getcontenttype.md +55 -0
- package/build/docs/ibm-cloud-sdk-core.getcurrenttime.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.getformat.md +69 -0
- package/build/docs/ibm-cloud-sdk-core.getmissingparams.md +73 -0
- package/build/docs/ibm-cloud-sdk-core.getnewlogger.md +59 -0
- package/build/docs/ibm-cloud-sdk-core.getqueryparam.md +71 -0
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator._constructor_.md +54 -0
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.authenticationtype.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.md +149 -0
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.requiredoptions.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.tokenmanager.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator._constructor_.md +54 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientid.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientsecret.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.getrefreshtoken.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.md +211 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.scope.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setclientidandsecret.md +69 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setscope.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.tokenmanager.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager._constructor_.md +54 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.formdata.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.getrefreshtoken.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.istokenexpired.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md +221 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.refreshtoken.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.requesttoken.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.savetokeninfo.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setclientidandsecret.md +69 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setscope.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.clientid.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.clientsecret.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.md +96 -0
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.scope.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager._constructor_.md +54 -0
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.md +92 -0
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.requiredoptions.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.isemptyobject.md +49 -0
- package/build/docs/ibm-cloud-sdk-core.isfiledata.md +49 -0
- package/build/docs/ibm-cloud-sdk-core.isfilewithmetadata.md +49 -0
- package/build/docs/ibm-cloud-sdk-core.ishtml.md +55 -0
- package/build/docs/ibm-cloud-sdk-core.isjsonmimetype.md +55 -0
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager._constructor_.md +49 -0
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.md +163 -0
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.requesttoken.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.savetokeninfo.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.tokeninfo.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.tokenname.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanageroptions.md +15 -0
- package/build/docs/ibm-cloud-sdk-core.mcspauthenticator._constructor_.md +54 -0
- package/build/docs/ibm-cloud-sdk-core.mcspauthenticator.authenticationtype.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.mcspauthenticator.md +145 -0
- package/build/docs/ibm-cloud-sdk-core.mcspauthenticator.requiredoptions.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.mcspauthenticator.tokenmanager.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.mcsptokenmanager._constructor_.md +54 -0
- package/build/docs/ibm-cloud-sdk-core.mcsptokenmanager.md +128 -0
- package/build/docs/ibm-cloud-sdk-core.mcsptokenmanager.requesttoken.md +15 -0
- package/build/docs/ibm-cloud-sdk-core.mcsptokenmanager.requiredoptions.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.md +818 -0
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.authenticate.md +49 -0
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.authenticationtype.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.md +60 -0
- package/build/docs/ibm-cloud-sdk-core.onlyone.md +71 -0
- package/build/docs/ibm-cloud-sdk-core.qs.md +21 -0
- package/build/docs/ibm-cloud-sdk-core.readcredentialsfile.md +17 -0
- package/build/docs/ibm-cloud-sdk-core.readcrtokenfile.md +49 -0
- package/build/docs/ibm-cloud-sdk-core.readexternalsources.md +55 -0
- package/build/docs/ibm-cloud-sdk-core.removesuffix.md +71 -0
- package/build/docs/ibm-cloud-sdk-core.sdklogger.debug.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.sdklogger.error.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.sdklogger.info.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.sdklogger.md +121 -0
- package/build/docs/ibm-cloud-sdk-core.sdklogger.verbose.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.sdklogger.warn.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.streamtopromise.md +55 -0
- package/build/docs/ibm-cloud-sdk-core.striptrailingslash.md +55 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager._constructor_.md +49 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.accesstoken.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.disablesslverification.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.expiretime.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.gettoken.md +17 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.headers.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.istokenexpired.md +17 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.md +352 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.pacedrequesttoken.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.refreshtime.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.requesttoken.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.requestwrapperinstance.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.savetokeninfo.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setdisablesslverification.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setheaders.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.url.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.useragent.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.tokenmanageroptions.md +18 -0
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator._constructor_.md +49 -0
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.authenticate.md +55 -0
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.disablesslverification.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.headers.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.md +217 -0
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setheaders.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.tokenmanager.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.url.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.tolowerkeys.md +55 -0
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkforsuccessfulexecution.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkmediaheaders.md +85 -0
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkurlandmethod.md +85 -0
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkuserheader.md +85 -0
- package/build/docs/ibm-cloud-sdk-core.unittestutils.expecttobepromise.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.unittestutils.getoptions.md +55 -0
- package/build/docs/ibm-cloud-sdk-core.unittestutils.md +86 -0
- package/build/docs/ibm-cloud-sdk-core.useroptions.authenticator.md +13 -0
- package/build/docs/ibm-cloud-sdk-core.useroptions.disablesslverification.md +13 -0
- package/build/docs/ibm-cloud-sdk-core.useroptions.headers.md +13 -0
- package/build/docs/ibm-cloud-sdk-core.useroptions.jar.md +13 -0
- package/build/docs/ibm-cloud-sdk-core.useroptions.md +171 -0
- package/build/docs/ibm-cloud-sdk-core.useroptions.serviceurl.md +13 -0
- package/build/docs/ibm-cloud-sdk-core.useroptions.url.md +13 -0
- package/build/docs/ibm-cloud-sdk-core.useroptions.version.md +13 -0
- package/build/docs/ibm-cloud-sdk-core.validateinput.md +73 -0
- package/build/docs/ibm-cloud-sdk-core.validateparams.md +89 -0
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md +54 -0
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.authenticationtype.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.md +158 -0
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.tokenmanager.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md +54 -0
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.istokenexpired.md +19 -0
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.md +126 -0
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.requesttoken.md +15 -0
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md +53 -0
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md +53 -0
- package/build/docs/index.md +29 -0
- package/es/lib/sdk-test-helpers.js +1 -2
- package/es/tsdoc-metadata.json +11 -0
- package/etc/ibm-cloud-sdk-core.api.md +517 -0
- package/lib/sdk-test-helpers.js +11 -9
- package/package.json +89 -59
- package/temp/ibm-cloud-sdk-core.api.json +8641 -0
- package/temp/ibm-cloud-sdk-core.api.md +517 -0
- package/tsconfig-es6.json +9 -0
- package/auth/user-temp/get-authenticator-from-environment.d.ts +0 -28
- package/auth/user-temp/get-authenticator-from-environment.js +0 -95
- package/auth/user-temp/index.d.ts +0 -25
- package/auth/user-temp/index.js +0 -30
- package/auth/user-temp/read-external-sources.d.ts +0 -11
- package/auth/user-temp/read-external-sources.js +0 -154
- package/es/auth/user-temp/get-authenticator-from-environment.d.ts +0 -28
- package/es/auth/user-temp/get-authenticator-from-environment.js +0 -91
- package/es/auth/user-temp/index.d.ts +0 -25
- package/es/auth/user-temp/index.js +0 -25
- package/es/auth/user-temp/read-external-sources.d.ts +0 -11
- package/es/auth/user-temp/read-external-sources.js +0 -144
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
## API Report File for "ibm-cloud-sdk-core"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
/// <reference types="node" />
|
|
8
|
+
|
|
9
|
+
import { AxiosInstance } from 'axios';
|
|
10
|
+
import type { CookieJar } from 'tough-cookie';
|
|
11
|
+
import { Debugger } from 'debug';
|
|
12
|
+
import { OutgoingHttpHeaders } from 'http';
|
|
13
|
+
import { Stream } from 'stream';
|
|
14
|
+
|
|
15
|
+
// @public
|
|
16
|
+
export function atLeastOne(a: any, b: any): boolean;
|
|
17
|
+
|
|
18
|
+
// @public
|
|
19
|
+
export function atMostOne(a: any, b: any): boolean;
|
|
20
|
+
|
|
21
|
+
// @public
|
|
22
|
+
export class Authenticator implements AuthenticatorInterface {
|
|
23
|
+
constructor();
|
|
24
|
+
// Warning: (ae-forgotten-export) The symbol "AuthenticateOptions" needs to be exported by the entry point index.d.ts
|
|
25
|
+
authenticate(requestOptions: AuthenticateOptions): Promise<void>;
|
|
26
|
+
authenticationType(): string;
|
|
27
|
+
static AUTHTYPE_BASIC: string;
|
|
28
|
+
// (undocumented)
|
|
29
|
+
static AUTHTYPE_BEARERTOKEN: string;
|
|
30
|
+
// (undocumented)
|
|
31
|
+
static AUTHTYPE_CONTAINER: string;
|
|
32
|
+
// (undocumented)
|
|
33
|
+
static AUTHTYPE_CP4D: string;
|
|
34
|
+
// (undocumented)
|
|
35
|
+
static AUTHTYPE_IAM: string;
|
|
36
|
+
// (undocumented)
|
|
37
|
+
static AUTHTYPE_MCSP: string;
|
|
38
|
+
// (undocumented)
|
|
39
|
+
static AUTHTYPE_NOAUTH: string;
|
|
40
|
+
// (undocumented)
|
|
41
|
+
static AUTHTYPE_UNKNOWN: string;
|
|
42
|
+
// (undocumented)
|
|
43
|
+
static AUTHTYPE_VPC: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// @public
|
|
47
|
+
export interface AuthenticatorInterface {
|
|
48
|
+
authenticate(requestOptions: AuthenticateOptions): Promise<void>;
|
|
49
|
+
authenticationType(): string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// @public
|
|
53
|
+
export class BaseService {
|
|
54
|
+
constructor(userOptions: UserOptions);
|
|
55
|
+
// Warning: (ae-forgotten-export) The symbol "BaseServiceOptions" needs to be exported by the entry point index.d.ts
|
|
56
|
+
//
|
|
57
|
+
// (undocumented)
|
|
58
|
+
protected baseOptions: BaseServiceOptions;
|
|
59
|
+
protected configureService(serviceName: string): void;
|
|
60
|
+
static convertModel(input: any, converterFn: any, isMap?: boolean): any;
|
|
61
|
+
protected createRequest(parameters: any): Promise<any>;
|
|
62
|
+
protected createRequestAndDeserializeResponse(parameters: any, deserializerFn: (any: any) => any, isMap?: boolean): Promise<any>;
|
|
63
|
+
// (undocumented)
|
|
64
|
+
static DEFAULT_SERVICE_NAME: string;
|
|
65
|
+
// (undocumented)
|
|
66
|
+
static DEFAULT_SERVICE_URL: string;
|
|
67
|
+
disableRetries(): void;
|
|
68
|
+
// Warning: (ae-forgotten-export) The symbol "RetryOptions" needs to be exported by the entry point index.d.ts
|
|
69
|
+
enableRetries(retryOptions?: RetryOptions): void;
|
|
70
|
+
getAuthenticator(): any;
|
|
71
|
+
getHttpClient(): AxiosInstance;
|
|
72
|
+
setDefaultHeaders(headers: OutgoingHttpHeaders): void;
|
|
73
|
+
setEnableGzipCompression(setting: boolean): void;
|
|
74
|
+
setServiceUrl(url: string): void;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// @public
|
|
78
|
+
export class BasicAuthenticator extends Authenticator {
|
|
79
|
+
// Warning: (ae-forgotten-export) The symbol "Options" needs to be exported by the entry point index.d.ts
|
|
80
|
+
constructor(options: Options);
|
|
81
|
+
authenticate(requestOptions: AuthenticateOptions): Promise<void>;
|
|
82
|
+
authenticationType(): string;
|
|
83
|
+
// (undocumented)
|
|
84
|
+
protected authHeader: {
|
|
85
|
+
Authorization: string;
|
|
86
|
+
};
|
|
87
|
+
// (undocumented)
|
|
88
|
+
protected requiredOptions: string[];
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// @public
|
|
92
|
+
export class BearerTokenAuthenticator extends Authenticator {
|
|
93
|
+
// Warning: (ae-forgotten-export) The symbol "Options_2" needs to be exported by the entry point index.d.ts
|
|
94
|
+
constructor(options: Options_2);
|
|
95
|
+
authenticate(requestOptions: AuthenticateOptions): Promise<void>;
|
|
96
|
+
authenticationType(): string;
|
|
97
|
+
// (undocumented)
|
|
98
|
+
protected requiredOptions: string[];
|
|
99
|
+
setBearerToken(bearerToken: string): void;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// @public
|
|
103
|
+
export function buildRequestFileObject(fileParam: FileWithMetadata): Promise<FileObject>;
|
|
104
|
+
|
|
105
|
+
// @public
|
|
106
|
+
export function checkCredentials(obj: any, credsToCheck: string[]): Error | null;
|
|
107
|
+
|
|
108
|
+
// @public
|
|
109
|
+
function checkForSuccessfulExecution(createRequestMock: any): void;
|
|
110
|
+
|
|
111
|
+
// @public
|
|
112
|
+
function checkMediaHeaders(createRequestMock: any, accept: string, contentType: string): void;
|
|
113
|
+
|
|
114
|
+
// @public
|
|
115
|
+
function checkUrlAndMethod(options: any, url: string, method: any): void;
|
|
116
|
+
|
|
117
|
+
// @public
|
|
118
|
+
function checkUserHeader(createRequestMock: any, userHeaderName: string, userHeaderValue: string): void;
|
|
119
|
+
|
|
120
|
+
// @public
|
|
121
|
+
export class CloudPakForDataAuthenticator extends TokenRequestBasedAuthenticator {
|
|
122
|
+
// Warning: (ae-forgotten-export) The symbol "Options_4" needs to be exported by the entry point index.d.ts
|
|
123
|
+
constructor(options: Options_4);
|
|
124
|
+
authenticationType(): string;
|
|
125
|
+
// (undocumented)
|
|
126
|
+
protected requiredOptions: string[];
|
|
127
|
+
// (undocumented)
|
|
128
|
+
protected tokenManager: Cp4dTokenManager;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// @public
|
|
132
|
+
export function computeBasicAuthHeader(username: string, password: string): string;
|
|
133
|
+
|
|
134
|
+
// @public (undocumented)
|
|
135
|
+
export function constructFilepath(filepath: string): string;
|
|
136
|
+
|
|
137
|
+
// @public
|
|
138
|
+
export function constructServiceUrl(parameterizedUrl: string, defaultUrlVariables: Map<string, string>, providedUrlVariables: Map<string, string> | null): string;
|
|
139
|
+
|
|
140
|
+
// @public
|
|
141
|
+
export class ContainerAuthenticator extends IamRequestBasedAuthenticator {
|
|
142
|
+
// Warning: (ae-forgotten-export) The symbol "Options_8" needs to be exported by the entry point index.d.ts
|
|
143
|
+
constructor(options: Options_8);
|
|
144
|
+
authenticationType(): string;
|
|
145
|
+
setCrTokenFilename(crTokenFilename: string): void;
|
|
146
|
+
setIamProfileId(iamProfileId: string): void;
|
|
147
|
+
setIamProfileName(iamProfileName: string): void;
|
|
148
|
+
// (undocumented)
|
|
149
|
+
protected tokenManager: ContainerTokenManager;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// @public
|
|
153
|
+
export class ContainerTokenManager extends IamRequestBasedTokenManager {
|
|
154
|
+
// Warning: (ae-forgotten-export) The symbol "Options_7" needs to be exported by the entry point index.d.ts
|
|
155
|
+
constructor(options: Options_7);
|
|
156
|
+
protected getCrToken(): string;
|
|
157
|
+
protected requestToken(): Promise<any>;
|
|
158
|
+
setCrTokenFilename(crTokenFilename: string): void;
|
|
159
|
+
setIamProfileId(iamProfileId: string): void;
|
|
160
|
+
setIamProfileName(iamProfileName: string): void;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// @public (undocumented)
|
|
164
|
+
export const contentType: {
|
|
165
|
+
fromFilename: (file: String | File | FileObject | NodeJS.ReadableStream | Buffer) => string;
|
|
166
|
+
fromHeader: (buffer: Buffer) => string;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
// @public
|
|
170
|
+
export class Cp4dTokenManager extends JwtTokenManager {
|
|
171
|
+
// Warning: (ae-forgotten-export) The symbol "Options_3" needs to be exported by the entry point index.d.ts
|
|
172
|
+
constructor(options: Options_3);
|
|
173
|
+
// (undocumented)
|
|
174
|
+
protected requestToken(): Promise<any>;
|
|
175
|
+
// (undocumented)
|
|
176
|
+
protected requiredOptions: string[];
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// @public
|
|
180
|
+
function expectToBePromise(sdkPromise: any): void;
|
|
181
|
+
|
|
182
|
+
// @public (undocumented)
|
|
183
|
+
export function fileExistsAtPath(filepath: string): boolean;
|
|
184
|
+
|
|
185
|
+
// @public
|
|
186
|
+
export interface FileObject {
|
|
187
|
+
// (undocumented)
|
|
188
|
+
options?: FileOptions;
|
|
189
|
+
// (undocumented)
|
|
190
|
+
value: NodeJS.ReadableStream | Buffer | string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// @public (undocumented)
|
|
194
|
+
export interface FileOptions {
|
|
195
|
+
// (undocumented)
|
|
196
|
+
contentType?: string;
|
|
197
|
+
// (undocumented)
|
|
198
|
+
filename?: string;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// @public (undocumented)
|
|
202
|
+
export interface FileStream extends NodeJS.ReadableStream {
|
|
203
|
+
// (undocumented)
|
|
204
|
+
path: string | Buffer;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// @public (undocumented)
|
|
208
|
+
export interface FileWithMetadata {
|
|
209
|
+
// (undocumented)
|
|
210
|
+
contentType: string;
|
|
211
|
+
// (undocumented)
|
|
212
|
+
data: NodeJS.ReadableStream | Buffer;
|
|
213
|
+
// (undocumented)
|
|
214
|
+
filename: string;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// @public
|
|
218
|
+
export function getAuthenticatorFromEnvironment(serviceName: string): Authenticator;
|
|
219
|
+
|
|
220
|
+
// @public
|
|
221
|
+
export function getContentType(inputData: NodeJS.ReadableStream | Buffer): Promise<string>;
|
|
222
|
+
|
|
223
|
+
// @public
|
|
224
|
+
export function getCurrentTime(): number;
|
|
225
|
+
|
|
226
|
+
// @public
|
|
227
|
+
export function getFormat(params: {
|
|
228
|
+
[key: string]: any;
|
|
229
|
+
}, formats: string[]): string;
|
|
230
|
+
|
|
231
|
+
// @public
|
|
232
|
+
export function getMissingParams(params: {
|
|
233
|
+
[key: string]: any;
|
|
234
|
+
}, requires: string[]): null | Error;
|
|
235
|
+
|
|
236
|
+
// @public
|
|
237
|
+
export function getNewLogger(moduleName: string): SDKLogger;
|
|
238
|
+
|
|
239
|
+
// @public
|
|
240
|
+
function getOptions(createRequestMock: any): any;
|
|
241
|
+
|
|
242
|
+
// @public
|
|
243
|
+
export function getQueryParam(urlStr: string, param: string): string;
|
|
244
|
+
|
|
245
|
+
// @public
|
|
246
|
+
export class IamAuthenticator extends IamRequestBasedAuthenticator {
|
|
247
|
+
// Warning: (ae-forgotten-export) The symbol "Options_6" needs to be exported by the entry point index.d.ts
|
|
248
|
+
constructor(options: Options_6);
|
|
249
|
+
authenticationType(): string;
|
|
250
|
+
// (undocumented)
|
|
251
|
+
protected requiredOptions: string[];
|
|
252
|
+
// (undocumented)
|
|
253
|
+
protected tokenManager: IamTokenManager;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// @public
|
|
257
|
+
export class IamRequestBasedAuthenticator extends TokenRequestBasedAuthenticator {
|
|
258
|
+
// Warning: (ae-forgotten-export) The symbol "IamRequestOptions_2" needs to be exported by the entry point index.d.ts
|
|
259
|
+
constructor(options: IamRequestOptions_2);
|
|
260
|
+
// (undocumented)
|
|
261
|
+
protected clientId: string;
|
|
262
|
+
// (undocumented)
|
|
263
|
+
protected clientSecret: string;
|
|
264
|
+
getRefreshToken(): string;
|
|
265
|
+
// (undocumented)
|
|
266
|
+
protected scope: string;
|
|
267
|
+
setClientIdAndSecret(clientId: string, clientSecret: string): void;
|
|
268
|
+
setScope(scope: string): void;
|
|
269
|
+
// (undocumented)
|
|
270
|
+
protected tokenManager: IamRequestBasedTokenManager;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// @public
|
|
274
|
+
export class IamRequestBasedTokenManager extends JwtTokenManager {
|
|
275
|
+
constructor(options: IamRequestOptions);
|
|
276
|
+
// (undocumented)
|
|
277
|
+
protected formData: any;
|
|
278
|
+
getRefreshToken(): string;
|
|
279
|
+
protected isTokenExpired(): boolean;
|
|
280
|
+
// (undocumented)
|
|
281
|
+
protected refreshToken: string;
|
|
282
|
+
protected requestToken(): Promise<any>;
|
|
283
|
+
protected saveTokenInfo(tokenResponse: any): void;
|
|
284
|
+
setClientIdAndSecret(clientId: string, clientSecret: string): void;
|
|
285
|
+
setScope(scope: string): void;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// @public
|
|
289
|
+
export interface IamRequestOptions extends JwtTokenManagerOptions {
|
|
290
|
+
// (undocumented)
|
|
291
|
+
clientId?: string;
|
|
292
|
+
// (undocumented)
|
|
293
|
+
clientSecret?: string;
|
|
294
|
+
// (undocumented)
|
|
295
|
+
scope?: string;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// @public
|
|
299
|
+
export class IamTokenManager extends IamRequestBasedTokenManager {
|
|
300
|
+
// Warning: (ae-forgotten-export) The symbol "Options_5" needs to be exported by the entry point index.d.ts
|
|
301
|
+
constructor(options: Options_5);
|
|
302
|
+
// (undocumented)
|
|
303
|
+
protected requiredOptions: string[];
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// @public (undocumented)
|
|
307
|
+
export function isEmptyObject(obj: any): boolean;
|
|
308
|
+
|
|
309
|
+
// @public (undocumented)
|
|
310
|
+
export function isFileData(obj: any): obj is NodeJS.ReadableStream | Buffer;
|
|
311
|
+
|
|
312
|
+
// @public (undocumented)
|
|
313
|
+
export function isFileWithMetadata(obj: any): obj is FileWithMetadata;
|
|
314
|
+
|
|
315
|
+
// @public
|
|
316
|
+
export function isHTML(text: string): boolean;
|
|
317
|
+
|
|
318
|
+
// @public
|
|
319
|
+
export function isJsonMimeType(mimeType: string): boolean;
|
|
320
|
+
|
|
321
|
+
// @public
|
|
322
|
+
export class JwtTokenManager extends TokenManager {
|
|
323
|
+
constructor(options: JwtTokenManagerOptions);
|
|
324
|
+
protected requestToken(): Promise<any>;
|
|
325
|
+
protected saveTokenInfo(tokenResponse: any): void;
|
|
326
|
+
// (undocumented)
|
|
327
|
+
protected tokenInfo: any;
|
|
328
|
+
// (undocumented)
|
|
329
|
+
protected tokenName: string;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// @public
|
|
333
|
+
export type JwtTokenManagerOptions = TokenManagerOptions;
|
|
334
|
+
|
|
335
|
+
// @public
|
|
336
|
+
export class McspAuthenticator extends TokenRequestBasedAuthenticator {
|
|
337
|
+
// Warning: (ae-forgotten-export) The symbol "Options_12" needs to be exported by the entry point index.d.ts
|
|
338
|
+
constructor(options: Options_12);
|
|
339
|
+
authenticationType(): string;
|
|
340
|
+
// (undocumented)
|
|
341
|
+
protected requiredOptions: string[];
|
|
342
|
+
// (undocumented)
|
|
343
|
+
protected tokenManager: McspTokenManager;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
// @public
|
|
347
|
+
export class McspTokenManager extends JwtTokenManager {
|
|
348
|
+
// Warning: (ae-forgotten-export) The symbol "Options_11" needs to be exported by the entry point index.d.ts
|
|
349
|
+
constructor(options: Options_11);
|
|
350
|
+
// (undocumented)
|
|
351
|
+
protected requestToken(): Promise<any>;
|
|
352
|
+
// (undocumented)
|
|
353
|
+
protected requiredOptions: string[];
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
// @public
|
|
357
|
+
export class NoAuthAuthenticator extends Authenticator {
|
|
358
|
+
// (undocumented)
|
|
359
|
+
authenticate(requestOptions: AuthenticateOptions): Promise<void>;
|
|
360
|
+
authenticationType(): string;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
// @public
|
|
364
|
+
export function onlyOne(a: any, b: any): boolean;
|
|
365
|
+
|
|
366
|
+
// @public
|
|
367
|
+
export const qs: {
|
|
368
|
+
stringify: (queryParams: Object) => string;
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
// @public
|
|
372
|
+
export function readCredentialsFile(): any;
|
|
373
|
+
|
|
374
|
+
// @public (undocumented)
|
|
375
|
+
export function readCrTokenFile(filepath: string): string;
|
|
376
|
+
|
|
377
|
+
// @public
|
|
378
|
+
export function readExternalSources(serviceName: string): any;
|
|
379
|
+
|
|
380
|
+
// @public
|
|
381
|
+
export function removeSuffix(str: string, suffix: string): string;
|
|
382
|
+
|
|
383
|
+
// @public (undocumented)
|
|
384
|
+
export interface SDKLogger {
|
|
385
|
+
// (undocumented)
|
|
386
|
+
debug: Debugger;
|
|
387
|
+
// (undocumented)
|
|
388
|
+
error: Debugger;
|
|
389
|
+
// (undocumented)
|
|
390
|
+
info: Debugger;
|
|
391
|
+
// (undocumented)
|
|
392
|
+
verbose: Debugger;
|
|
393
|
+
// (undocumented)
|
|
394
|
+
warn: Debugger;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
// @public
|
|
398
|
+
export function streamToPromise(stream: Stream): Promise<any>;
|
|
399
|
+
|
|
400
|
+
// @public
|
|
401
|
+
export function stripTrailingSlash(url: string): string;
|
|
402
|
+
|
|
403
|
+
// @public
|
|
404
|
+
export class TokenManager {
|
|
405
|
+
constructor(options: TokenManagerOptions);
|
|
406
|
+
// (undocumented)
|
|
407
|
+
protected accessToken: string;
|
|
408
|
+
// (undocumented)
|
|
409
|
+
protected disableSslVerification: boolean;
|
|
410
|
+
// (undocumented)
|
|
411
|
+
protected expireTime: number;
|
|
412
|
+
getToken(): Promise<any>;
|
|
413
|
+
// (undocumented)
|
|
414
|
+
protected headers: OutgoingHttpHeaders;
|
|
415
|
+
protected isTokenExpired(): boolean;
|
|
416
|
+
protected pacedRequestToken(): Promise<any>;
|
|
417
|
+
// (undocumented)
|
|
418
|
+
protected refreshTime: number;
|
|
419
|
+
protected requestToken(): Promise<any>;
|
|
420
|
+
// Warning: (ae-forgotten-export) The symbol "RequestWrapper" needs to be exported by the entry point index.d.ts
|
|
421
|
+
//
|
|
422
|
+
// (undocumented)
|
|
423
|
+
protected requestWrapperInstance: RequestWrapper;
|
|
424
|
+
protected saveTokenInfo(tokenResponse: any): void;
|
|
425
|
+
setDisableSslVerification(value: boolean): void;
|
|
426
|
+
setHeaders(headers: OutgoingHttpHeaders): void;
|
|
427
|
+
// (undocumented)
|
|
428
|
+
protected url: string;
|
|
429
|
+
// (undocumented)
|
|
430
|
+
protected userAgent: string;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
// @public
|
|
434
|
+
export type TokenManagerOptions = {
|
|
435
|
+
url?: string;
|
|
436
|
+
headers?: OutgoingHttpHeaders;
|
|
437
|
+
disableSslVerification?: boolean;
|
|
438
|
+
[propName: string]: any;
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
// @public
|
|
442
|
+
export class TokenRequestBasedAuthenticator extends Authenticator {
|
|
443
|
+
// Warning: (ae-forgotten-export) The symbol "BaseOptions" needs to be exported by the entry point index.d.ts
|
|
444
|
+
constructor(options: BaseOptions);
|
|
445
|
+
authenticate(requestOptions: AuthenticateOptions): Promise<void>;
|
|
446
|
+
// (undocumented)
|
|
447
|
+
protected disableSslVerification: boolean;
|
|
448
|
+
// (undocumented)
|
|
449
|
+
protected headers: OutgoingHttpHeaders;
|
|
450
|
+
setDisableSslVerification(value: boolean): void;
|
|
451
|
+
setHeaders(headers: OutgoingHttpHeaders): void;
|
|
452
|
+
// (undocumented)
|
|
453
|
+
protected tokenManager: JwtTokenManager;
|
|
454
|
+
// (undocumented)
|
|
455
|
+
protected url: string;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
// @public
|
|
459
|
+
export function toLowerKeys(obj: Object): Object;
|
|
460
|
+
|
|
461
|
+
declare namespace unitTestUtils {
|
|
462
|
+
export {
|
|
463
|
+
checkUrlAndMethod,
|
|
464
|
+
checkMediaHeaders,
|
|
465
|
+
checkUserHeader,
|
|
466
|
+
checkForSuccessfulExecution,
|
|
467
|
+
getOptions,
|
|
468
|
+
expectToBePromise
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
export { unitTestUtils }
|
|
472
|
+
|
|
473
|
+
// @public
|
|
474
|
+
export interface UserOptions {
|
|
475
|
+
[propName: string]: any;
|
|
476
|
+
authenticator?: AuthenticatorInterface;
|
|
477
|
+
disableSslVerification?: boolean;
|
|
478
|
+
headers?: OutgoingHttpHeaders;
|
|
479
|
+
jar?: CookieJar | boolean;
|
|
480
|
+
serviceUrl?: string;
|
|
481
|
+
url?: string;
|
|
482
|
+
version?: string;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
// @public
|
|
486
|
+
export function validateInput(options: any, requiredOptions: string[]): void;
|
|
487
|
+
|
|
488
|
+
// @public
|
|
489
|
+
export function validateParams(params: {
|
|
490
|
+
[key: string]: any;
|
|
491
|
+
}, requiredParams: string[], allParams: string[]): null | Error;
|
|
492
|
+
|
|
493
|
+
// @public
|
|
494
|
+
export class VpcInstanceAuthenticator extends TokenRequestBasedAuthenticator {
|
|
495
|
+
// Warning: (ae-forgotten-export) The symbol "Options_10" needs to be exported by the entry point index.d.ts
|
|
496
|
+
constructor(options: Options_10);
|
|
497
|
+
authenticationType(): string;
|
|
498
|
+
setIamProfileCrn(iamProfileCrn: string): void;
|
|
499
|
+
setIamProfileId(iamProfileId: string): void;
|
|
500
|
+
// (undocumented)
|
|
501
|
+
protected tokenManager: VpcInstanceTokenManager;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
// @public
|
|
505
|
+
export class VpcInstanceTokenManager extends JwtTokenManager {
|
|
506
|
+
// Warning: (ae-forgotten-export) The symbol "Options_9" needs to be exported by the entry point index.d.ts
|
|
507
|
+
constructor(options: Options_9);
|
|
508
|
+
protected isTokenExpired(): boolean;
|
|
509
|
+
// (undocumented)
|
|
510
|
+
protected requestToken(): Promise<any>;
|
|
511
|
+
setIamProfileCrn(iamProfileCrn: string): void;
|
|
512
|
+
setIamProfileId(iamProfileId: string): void;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
// (No @packageDocumentation comment for this package)
|
|
516
|
+
|
|
517
|
+
```
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* (C) Copyright IBM Corp. 2019, 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 { Authenticator } from '../authenticators';
|
|
17
|
-
/**
|
|
18
|
-
* Look for external configuration of authenticator.
|
|
19
|
-
*
|
|
20
|
-
* Try to get authenticator from external sources, with the following priority:
|
|
21
|
-
* 1. Credentials file (ibm-credentials.env)
|
|
22
|
-
* 2. Environment variables
|
|
23
|
-
* 3. VCAP Services (Cloud Foundry)
|
|
24
|
-
*
|
|
25
|
-
* @param serviceName - the service name prefix.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
export declare function getAuthenticatorFromEnvironment(serviceName: string): Authenticator;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* (C) Copyright IBM Corp. 2019, 2022.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.getAuthenticatorFromEnvironment = void 0;
|
|
19
|
-
var authenticators_1 = require("../authenticators");
|
|
20
|
-
var read_external_sources_1 = require("./read-external-sources");
|
|
21
|
-
/**
|
|
22
|
-
* Look for external configuration of authenticator.
|
|
23
|
-
*
|
|
24
|
-
* Try to get authenticator from external sources, with the following priority:
|
|
25
|
-
* 1. Credentials file (ibm-credentials.env)
|
|
26
|
-
* 2. Environment variables
|
|
27
|
-
* 3. VCAP Services (Cloud Foundry)
|
|
28
|
-
*
|
|
29
|
-
* @param serviceName - the service name prefix.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
function getAuthenticatorFromEnvironment(serviceName) {
|
|
33
|
-
if (!serviceName) {
|
|
34
|
-
throw new Error('Service name is required.');
|
|
35
|
-
}
|
|
36
|
-
// construct the credentials object from the environment
|
|
37
|
-
var credentials = (0, read_external_sources_1.readExternalSources)(serviceName);
|
|
38
|
-
if (credentials === null) {
|
|
39
|
-
throw new Error('Unable to create an authenticator from the environment.');
|
|
40
|
-
}
|
|
41
|
-
// remove client-level properties
|
|
42
|
-
delete credentials.url;
|
|
43
|
-
delete credentials.disableSsl;
|
|
44
|
-
// convert "auth" properties to their proper keys
|
|
45
|
-
if (credentials.authUrl) {
|
|
46
|
-
credentials.url = credentials.authUrl;
|
|
47
|
-
delete credentials.authUrl;
|
|
48
|
-
}
|
|
49
|
-
if (credentials.authDisableSsl) {
|
|
50
|
-
credentials.disableSslVerification = credentials.authDisableSsl;
|
|
51
|
-
delete credentials.authDisableSsl;
|
|
52
|
-
}
|
|
53
|
-
// in the situation where the auth type is not provided:
|
|
54
|
-
// if an apikey is provided, default to IAM
|
|
55
|
-
// if not, default to container auth
|
|
56
|
-
var authType = credentials.authType;
|
|
57
|
-
if (!authType) {
|
|
58
|
-
// Support the alternate "AUTHTYPE" config property.
|
|
59
|
-
authType = credentials.authtype;
|
|
60
|
-
}
|
|
61
|
-
if (!authType || typeof authType !== 'string') {
|
|
62
|
-
authType = credentials.apikey ? authenticators_1.Authenticator.AUTHTYPE_IAM : authenticators_1.Authenticator.AUTHTYPE_CONTAINER;
|
|
63
|
-
}
|
|
64
|
-
// Create and return the appropriate authenticator.
|
|
65
|
-
var authenticator;
|
|
66
|
-
// Compare the authType against our constants case-insensitively to
|
|
67
|
-
// determine which authenticator type needs to be constructed.
|
|
68
|
-
authType = authType.toLowerCase();
|
|
69
|
-
if (authType === authenticators_1.Authenticator.AUTHTYPE_NOAUTH.toLowerCase()) {
|
|
70
|
-
authenticator = new authenticators_1.NoAuthAuthenticator();
|
|
71
|
-
}
|
|
72
|
-
else if (authType === authenticators_1.Authenticator.AUTHTYPE_BASIC.toLowerCase()) {
|
|
73
|
-
authenticator = new authenticators_1.BasicAuthenticator(credentials);
|
|
74
|
-
}
|
|
75
|
-
else if (authType === authenticators_1.Authenticator.AUTHTYPE_BEARERTOKEN.toLowerCase()) {
|
|
76
|
-
authenticator = new authenticators_1.BearerTokenAuthenticator(credentials);
|
|
77
|
-
}
|
|
78
|
-
else if (authType === authenticators_1.Authenticator.AUTHTYPE_CP4D.toLowerCase()) {
|
|
79
|
-
authenticator = new authenticators_1.CloudPakForDataAuthenticator(credentials);
|
|
80
|
-
}
|
|
81
|
-
else if (authType === authenticators_1.Authenticator.AUTHTYPE_IAM.toLowerCase()) {
|
|
82
|
-
authenticator = new authenticators_1.IamAuthenticator(credentials);
|
|
83
|
-
}
|
|
84
|
-
else if (authType === authenticators_1.Authenticator.AUTHTYPE_CONTAINER.toLowerCase()) {
|
|
85
|
-
authenticator = new authenticators_1.ContainerAuthenticator(credentials);
|
|
86
|
-
}
|
|
87
|
-
else if (authType === authenticators_1.Authenticator.AUTHTYPE_VPC.toLowerCase()) {
|
|
88
|
-
authenticator = new authenticators_1.VpcInstanceAuthenticator(credentials);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
throw new Error("Invalid value for AUTH_TYPE: ".concat(authType));
|
|
92
|
-
}
|
|
93
|
-
return authenticator;
|
|
94
|
-
}
|
|
95
|
-
exports.getAuthenticatorFromEnvironment = getAuthenticatorFromEnvironment;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* (C) Copyright IBM Corp. 2019, 2021.
|
|
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
|
-
/**
|
|
17
|
-
* @module utils
|
|
18
|
-
* Helper functions used by generated SDKs.
|
|
19
|
-
*
|
|
20
|
-
* functions:
|
|
21
|
-
* getAuthenticatorFromEnvironment: Get authenticator from external sources.
|
|
22
|
-
* readExternalSources: Get config object from external sources.
|
|
23
|
-
*/
|
|
24
|
-
export { getAuthenticatorFromEnvironment } from './get-authenticator-from-environment';
|
|
25
|
-
export { readExternalSources } from './read-external-sources';
|