ibm-cloud-sdk-core 4.0.0 → 4.0.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/.secrets.baseline +20 -30
- package/CHANGELOG.md +16 -4
- package/MIGRATION-V4.md +54 -0
- package/auth/authenticators/authenticator-interface.d.ts +3 -4
- package/auth/authenticators/authenticator-interface.js +1 -1
- package/auth/authenticators/authenticator.d.ts +5 -9
- package/auth/authenticators/authenticator.js +4 -8
- package/auth/authenticators/basic-authenticator.d.ts +12 -12
- package/auth/authenticators/basic-authenticator.js +12 -12
- package/auth/authenticators/bearer-token-authenticator.d.ts +11 -14
- package/auth/authenticators/bearer-token-authenticator.js +11 -14
- package/auth/authenticators/cloud-pak-for-data-authenticator.d.ts +15 -15
- package/auth/authenticators/cloud-pak-for-data-authenticator.js +15 -15
- package/auth/authenticators/container-authenticator.d.ts +23 -23
- package/auth/authenticators/container-authenticator.js +23 -23
- package/auth/authenticators/iam-authenticator.d.ts +20 -20
- package/auth/authenticators/iam-authenticator.js +20 -20
- package/auth/authenticators/iam-request-based-authenticator.d.ts +23 -25
- package/auth/authenticators/iam-request-based-authenticator.js +23 -25
- package/auth/authenticators/token-request-based-authenticator.d.ts +19 -24
- package/auth/authenticators/token-request-based-authenticator.js +19 -24
- package/auth/authenticators/vpc-instance-authenticator.d.ts +17 -16
- package/auth/authenticators/vpc-instance-authenticator.js +17 -16
- package/auth/token-managers/container-token-manager.d.ts +23 -25
- package/auth/token-managers/container-token-manager.js +23 -25
- package/auth/token-managers/cp4d-token-manager.d.ts +13 -13
- package/auth/token-managers/cp4d-token-manager.js +13 -13
- package/auth/token-managers/iam-request-based-token-manager.d.ts +26 -31
- package/auth/token-managers/iam-request-based-token-manager.js +26 -31
- package/auth/token-managers/iam-token-manager.d.ts +17 -16
- package/auth/token-managers/iam-token-manager.js +17 -16
- package/auth/token-managers/jwt-token-manager.d.ts +10 -13
- package/auth/token-managers/jwt-token-manager.js +13 -16
- package/auth/token-managers/token-manager.d.ts +23 -35
- package/auth/token-managers/token-manager.js +22 -34
- package/auth/token-managers/vpc-instance-token-manager.d.ts +15 -15
- package/auth/token-managers/vpc-instance-token-manager.js +15 -15
- package/auth/utils/get-authenticator-from-environment.d.ts +2 -2
- package/auth/utils/get-authenticator-from-environment.js +2 -2
- package/auth/utils/helpers.d.ts +34 -32
- package/auth/utils/helpers.js +34 -32
- package/auth/utils/read-external-sources.d.ts +2 -1
- package/auth/utils/read-external-sources.js +5 -4
- package/build/docs/ibm-cloud-sdk-core.atleastone.md +4 -4
- package/build/docs/ibm-cloud-sdk-core.atmostone.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.authenticator._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticator.authenticate.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticator.authenticationtype.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticator.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticate.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice.configureservice.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice.createrequest.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.baseservice.enableretries.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice.getauthenticator.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.baseservice.setdefaultheaders.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice.setserviceurl.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator._constructor_.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticate.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator._constructor_.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticate.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.buildrequestfileobject.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.checkcredentials.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator._constructor_.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.md +5 -5
- package/build/docs/ibm-cloud-sdk-core.computebasicauthheader.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.constructserviceurl.md +4 -4
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator._constructor_.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.md +4 -4
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setcrtokenfilename.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofileid.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofilename.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager._constructor_.md +6 -2
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.md +5 -5
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.requesttoken.md +0 -2
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setcrtokenfilename.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofileid.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofilename.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager._constructor_.md +6 -2
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.fileobject.md +5 -5
- package/build/docs/ibm-cloud-sdk-core.fileoptions.md +4 -4
- package/build/docs/ibm-cloud-sdk-core.filestream.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.md +5 -5
- package/build/docs/ibm-cloud-sdk-core.getauthenticatorfromenvironment.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.getcontenttype.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.getcurrenttime.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.getformat.md +0 -2
- package/build/docs/ibm-cloud-sdk-core.getmissingparams.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.getnewlogger.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.getqueryparam.md +1 -5
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator._constructor_.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.md +5 -5
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator._constructor_.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.getrefreshtoken.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.md +7 -7
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setclientidandsecret.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setscope.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager._constructor_.md +6 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.getrefreshtoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md +8 -8
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.requesttoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.savetokeninfo.md +1 -3
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setclientidandsecret.md +3 -5
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setscope.md +2 -4
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.md +5 -5
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager._constructor_.md +6 -2
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.ishtml.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager._constructor_.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.md +5 -5
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.requesttoken.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.savetokeninfo.md +1 -3
- package/build/docs/ibm-cloud-sdk-core.md +24 -24
- package/build/docs/ibm-cloud-sdk-core.onlyone.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.qs.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.readexternalsources.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.removesuffix.md +4 -4
- package/build/docs/ibm-cloud-sdk-core.sdklogger.md +7 -7
- package/build/docs/ibm-cloud-sdk-core.streamtopromise.md +3 -1
- package/build/docs/ibm-cloud-sdk-core.striptrailingslash.md +4 -2
- package/build/docs/ibm-cloud-sdk-core.tokenmanager._constructor_.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.gettoken.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.md +15 -15
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.pacedrequesttoken.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.requesttoken.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.savetokeninfo.md +1 -3
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setdisablesslverification.md +1 -3
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setheaders.md +2 -4
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator._constructor_.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.authenticate.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.md +9 -9
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setheaders.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tolowerkeys.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkforsuccessfulexecution.md +0 -2
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkmediaheaders.md +0 -2
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkurlandmethod.md +1 -3
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkuserheader.md +0 -2
- package/build/docs/ibm-cloud-sdk-core.unittestutils.expecttobepromise.md +0 -2
- package/build/docs/ibm-cloud-sdk-core.unittestutils.getoptions.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.useroptions.md +9 -9
- package/build/docs/ibm-cloud-sdk-core.validateinput.md +8 -2
- package/build/docs/ibm-cloud-sdk-core.validateparams.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md +6 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.md +6 -6
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md +6 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.md +4 -4
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md +2 -2
- package/docs/ibm-cloud-sdk-core.api.json +516 -241
- package/es/auth/authenticators/authenticator-interface.d.ts +3 -4
- package/es/auth/authenticators/authenticator-interface.js +1 -1
- package/es/auth/authenticators/authenticator.d.ts +5 -9
- package/es/auth/authenticators/authenticator.js +4 -8
- package/es/auth/authenticators/basic-authenticator.d.ts +12 -12
- package/es/auth/authenticators/basic-authenticator.js +12 -12
- package/es/auth/authenticators/bearer-token-authenticator.d.ts +11 -14
- package/es/auth/authenticators/bearer-token-authenticator.js +11 -14
- package/es/auth/authenticators/cloud-pak-for-data-authenticator.d.ts +15 -15
- package/es/auth/authenticators/cloud-pak-for-data-authenticator.js +15 -15
- package/es/auth/authenticators/container-authenticator.d.ts +23 -23
- package/es/auth/authenticators/container-authenticator.js +23 -23
- package/es/auth/authenticators/iam-authenticator.d.ts +20 -20
- package/es/auth/authenticators/iam-authenticator.js +20 -20
- package/es/auth/authenticators/iam-request-based-authenticator.d.ts +23 -25
- package/es/auth/authenticators/iam-request-based-authenticator.js +23 -25
- package/es/auth/authenticators/token-request-based-authenticator.d.ts +19 -24
- package/es/auth/authenticators/token-request-based-authenticator.js +19 -24
- package/es/auth/authenticators/vpc-instance-authenticator.d.ts +17 -16
- package/es/auth/authenticators/vpc-instance-authenticator.js +17 -16
- package/es/auth/token-managers/container-token-manager.d.ts +23 -25
- package/es/auth/token-managers/container-token-manager.js +23 -25
- package/es/auth/token-managers/cp4d-token-manager.d.ts +13 -13
- package/es/auth/token-managers/cp4d-token-manager.js +13 -13
- package/es/auth/token-managers/iam-request-based-token-manager.d.ts +26 -31
- package/es/auth/token-managers/iam-request-based-token-manager.js +26 -31
- package/es/auth/token-managers/iam-token-manager.d.ts +17 -16
- package/es/auth/token-managers/iam-token-manager.js +17 -16
- package/es/auth/token-managers/jwt-token-manager.d.ts +10 -13
- package/es/auth/token-managers/jwt-token-manager.js +13 -16
- package/es/auth/token-managers/token-manager.d.ts +23 -35
- package/es/auth/token-managers/token-manager.js +22 -34
- package/es/auth/token-managers/vpc-instance-token-manager.d.ts +15 -15
- package/es/auth/token-managers/vpc-instance-token-manager.js +15 -15
- package/es/auth/utils/get-authenticator-from-environment.d.ts +2 -2
- package/es/auth/utils/get-authenticator-from-environment.js +2 -2
- package/es/auth/utils/helpers.d.ts +34 -32
- package/es/auth/utils/helpers.js +34 -32
- package/es/auth/utils/read-external-sources.d.ts +2 -1
- package/es/auth/utils/read-external-sources.js +5 -4
- package/es/lib/base-service.d.ts +31 -32
- package/es/lib/base-service.js +31 -32
- package/es/lib/content-type.js +5 -5
- package/es/lib/get-new-logger.d.ts +2 -2
- package/es/lib/get-new-logger.js +2 -2
- package/es/lib/helper.d.ts +24 -31
- package/es/lib/helper.js +25 -32
- package/es/lib/querystring.d.ts +1 -1
- package/es/lib/querystring.js +3 -3
- package/es/lib/request-wrapper.d.ts +4 -6
- package/es/lib/request-wrapper.js +17 -23
- package/es/lib/sdk-test-helpers.d.ts +14 -19
- package/es/lib/sdk-test-helpers.js +14 -19
- package/es/lib/stream-to-promise.d.ts +3 -3
- package/es/lib/stream-to-promise.js +3 -3
- package/es/tsdoc-metadata.json +1 -1
- package/etc/ibm-cloud-sdk-core.api.md +12 -12
- package/ibm-cloud-sdk-core.d.ts +1402 -1449
- package/lib/base-service.d.ts +31 -32
- package/lib/base-service.js +31 -32
- package/lib/content-type.js +5 -5
- package/lib/get-new-logger.d.ts +2 -2
- package/lib/get-new-logger.js +2 -2
- package/lib/helper.d.ts +24 -31
- package/lib/helper.js +25 -32
- package/lib/querystring.d.ts +1 -1
- package/lib/querystring.js +3 -3
- package/lib/request-wrapper.d.ts +4 -6
- package/lib/request-wrapper.js +17 -23
- package/lib/sdk-test-helpers.d.ts +14 -19
- package/lib/sdk-test-helpers.js +14 -19
- package/lib/stream-to-promise.d.ts +3 -3
- package/lib/stream-to-promise.js +3 -3
- package/package.json +2 -2
- package/temp/ibm-cloud-sdk-core.api.json +516 -241
- package/temp/ibm-cloud-sdk-core.api.md +12 -12
- package/MIGRATION-V1.md +0 -42
package/es/lib/helper.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (C) Copyright IBM Corp. 2014,
|
|
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.
|
|
@@ -45,8 +45,8 @@ export function isEmptyObject(obj) {
|
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* This function retrieves the content type of the input.
|
|
48
|
-
* @param
|
|
49
|
-
* @returns
|
|
48
|
+
* @param inputData - The data to retrieve content type for.
|
|
49
|
+
* @returns the content type of the input.
|
|
50
50
|
*/
|
|
51
51
|
export function getContentType(inputData) {
|
|
52
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -64,9 +64,9 @@ export function getContentType(inputData) {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
68
|
-
* @param
|
|
69
|
-
* @returns
|
|
67
|
+
* Strips trailing slashes from "url", if present.
|
|
68
|
+
* @param url - the url string
|
|
69
|
+
* @returns the url with any trailing slashes removed
|
|
70
70
|
*/
|
|
71
71
|
export function stripTrailingSlash(url) {
|
|
72
72
|
// Match a forward slash / at the end of the string ($)
|
|
@@ -75,11 +75,9 @@ export function stripTrailingSlash(url) {
|
|
|
75
75
|
/**
|
|
76
76
|
* Return a query parameter value from a URL
|
|
77
77
|
*
|
|
78
|
-
* @param
|
|
79
|
-
* @param
|
|
80
|
-
*
|
|
81
|
-
* @returns {string} the value of the `param` query parameter
|
|
82
|
-
* @throws if urlStr is an invalid URL
|
|
78
|
+
* @param urlStr - the url string.
|
|
79
|
+
* @param param - the name of the query parameter whose value should be returned
|
|
80
|
+
* @returns the value of the "param" query parameter
|
|
83
81
|
*/
|
|
84
82
|
export function getQueryParam(urlStr, param) {
|
|
85
83
|
// The base URL is a dummy value just so we can process relative URLs
|
|
@@ -90,7 +88,7 @@ export function getQueryParam(urlStr, param) {
|
|
|
90
88
|
* Validates that all required params are provided
|
|
91
89
|
* @param params - the method parameters.
|
|
92
90
|
* @param requires - the required parameter names.
|
|
93
|
-
* @returns
|
|
91
|
+
* @returns null if no errors found, otherwise an Error instance
|
|
94
92
|
*/
|
|
95
93
|
export function getMissingParams(params, requires) {
|
|
96
94
|
let missing;
|
|
@@ -123,7 +121,7 @@ export function getMissingParams(params, requires) {
|
|
|
123
121
|
* If null, then the "required params" check is bypassed.
|
|
124
122
|
* @param allParams - the names of all valid parameters.
|
|
125
123
|
* If null, then the "valid params" check is bypassed.
|
|
126
|
-
* @returns
|
|
124
|
+
* @returns null if no errors found, otherwise an Error instance
|
|
127
125
|
*/
|
|
128
126
|
export function validateParams(params, requiredParams, allParams) {
|
|
129
127
|
let missing = [];
|
|
@@ -168,15 +166,15 @@ export function validateParams(params, requiredParams, allParams) {
|
|
|
168
166
|
* as `undefined`, `null`, or the empty string.
|
|
169
167
|
*
|
|
170
168
|
* @param value - the parameter value
|
|
171
|
-
* @returns
|
|
169
|
+
* @returns true if "value" is either undefined, null or "" (empty string)
|
|
172
170
|
*/
|
|
173
171
|
function isMissing(value) {
|
|
174
172
|
return value === undefined || value === null || value === '';
|
|
175
173
|
}
|
|
176
174
|
/**
|
|
177
175
|
* Return true if 'text' is html
|
|
178
|
-
* @param
|
|
179
|
-
* @returns
|
|
176
|
+
* @param text - The 'text' to analyze
|
|
177
|
+
* @returns true if 'text' has html tags
|
|
180
178
|
*/
|
|
181
179
|
export function isHTML(text) {
|
|
182
180
|
logger.debug(`Determining if the text ${text} is HTML.`);
|
|
@@ -185,9 +183,8 @@ export function isHTML(text) {
|
|
|
185
183
|
/**
|
|
186
184
|
* Returns the first match from formats that is key the params map
|
|
187
185
|
* otherwise null
|
|
188
|
-
* @param
|
|
189
|
-
* @param
|
|
190
|
-
* @returns {string|null}
|
|
186
|
+
* @param params - The parameters.
|
|
187
|
+
* @param requires - The keys we want to check
|
|
191
188
|
*/
|
|
192
189
|
export function getFormat(params, formats) {
|
|
193
190
|
if (!formats || !params) {
|
|
@@ -202,11 +199,8 @@ export function getFormat(params, formats) {
|
|
|
202
199
|
}
|
|
203
200
|
/**
|
|
204
201
|
* This function builds a `form-data` object for each file parameter.
|
|
205
|
-
* @param
|
|
206
|
-
* @
|
|
207
|
-
* @param {string} fileParam.filename The filename of the file.
|
|
208
|
-
* @param {string} fileParam.contentType The content type of the file.
|
|
209
|
-
* @returns {FileObject}
|
|
202
|
+
* @param fileParam - The FileWithMetadata instance that contains the file information
|
|
203
|
+
* @returns the FileObject instance
|
|
210
204
|
*/
|
|
211
205
|
export function buildRequestFileObject(fileParam) {
|
|
212
206
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -254,8 +248,8 @@ export function buildRequestFileObject(fileParam) {
|
|
|
254
248
|
/**
|
|
255
249
|
* This function converts an object's keys to lower case.
|
|
256
250
|
* note: does not convert nested keys
|
|
257
|
-
* @param
|
|
258
|
-
* @returns
|
|
251
|
+
* @param obj - The object to convert the keys of.
|
|
252
|
+
* @returns the object with keys folded to lowercase
|
|
259
253
|
*/
|
|
260
254
|
export function toLowerKeys(obj) {
|
|
261
255
|
let lowerCaseObj = {};
|
|
@@ -269,13 +263,12 @@ export function toLowerKeys(obj) {
|
|
|
269
263
|
/**
|
|
270
264
|
* Constructs a service URL by formatting a parameterized URL.
|
|
271
265
|
*
|
|
272
|
-
* @param
|
|
273
|
-
* @param
|
|
266
|
+
* @param parameterizedUrl - a URL that contains variable placeholders, e.g. '\{scheme\}://ibm.com'.
|
|
267
|
+
* @param defaultUrlVariables - a Map of variable names to default values.
|
|
274
268
|
* Each variable in the parameterized URL must have a default value specified in this map.
|
|
275
|
-
* @param
|
|
276
|
-
* If a variable is not provided in this map,
|
|
277
|
-
*
|
|
278
|
-
* @returns {string} The formatted URL with all variable placeholders replaced by values.
|
|
269
|
+
* @param providedUrlVariables - a Map of variable names to desired values.
|
|
270
|
+
* If a variable is not provided in this map, the default variable value will be used instead.
|
|
271
|
+
* @returns the formatted URL with all variable placeholders replaced by values.
|
|
279
272
|
*/
|
|
280
273
|
export function constructServiceUrl(parameterizedUrl, defaultUrlVariables, providedUrlVariables) {
|
|
281
274
|
// If null was passed, we set the variables to an empty map.
|
package/es/lib/querystring.d.ts
CHANGED
package/es/lib/querystring.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (C) Copyright IBM Corp. 2019,
|
|
2
|
+
* (C) Copyright IBM Corp. 2019, 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.
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
/**
|
|
17
17
|
* Lightweight implementation for stringify-ing query params
|
|
18
18
|
*
|
|
19
|
-
* @param
|
|
20
|
-
* @
|
|
19
|
+
* @param queryParams - the query params
|
|
20
|
+
* @returns the query string
|
|
21
21
|
*/
|
|
22
22
|
const stringify = (queryParams) => Object.keys(queryParams)
|
|
23
23
|
.map((key) => `${key}=${encodeURIComponent(queryParams[key])}`)
|
|
@@ -40,16 +40,14 @@ export declare class RequestWrapper {
|
|
|
40
40
|
* 2. Checks for missing parameters
|
|
41
41
|
* 3. Encode path and query parameters
|
|
42
42
|
* 4. Call the api
|
|
43
|
-
* @
|
|
44
|
-
* @
|
|
45
|
-
* @throws {Error}
|
|
43
|
+
* @returns ReadableStream|undefined
|
|
44
|
+
* @throws Error
|
|
46
45
|
*/
|
|
47
46
|
sendRequest(parameters: any): Promise<any>;
|
|
48
47
|
/**
|
|
49
48
|
* Format error returned by axios
|
|
50
|
-
* @param
|
|
51
|
-
* @
|
|
52
|
-
* @returns {Error}
|
|
49
|
+
* @param axiosError - the object returned by axios via rejection
|
|
50
|
+
* @returns the Error object
|
|
53
51
|
*/
|
|
54
52
|
formatError(axiosError: any): Error;
|
|
55
53
|
getHttpClient(): AxiosInstance;
|
|
@@ -120,9 +120,8 @@ export class RequestWrapper {
|
|
|
120
120
|
* 2. Checks for missing parameters
|
|
121
121
|
* 3. Encode path and query parameters
|
|
122
122
|
* 4. Call the api
|
|
123
|
-
* @
|
|
124
|
-
* @
|
|
125
|
-
* @throws {Error}
|
|
123
|
+
* @returns ReadableStream|undefined
|
|
124
|
+
* @throws Error
|
|
126
125
|
*/
|
|
127
126
|
sendRequest(parameters) {
|
|
128
127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -220,9 +219,8 @@ export class RequestWrapper {
|
|
|
220
219
|
}
|
|
221
220
|
/**
|
|
222
221
|
* Format error returned by axios
|
|
223
|
-
* @param
|
|
224
|
-
* @
|
|
225
|
-
* @returns {Error}
|
|
222
|
+
* @param axiosError - the object returned by axios via rejection
|
|
223
|
+
* @returns the Error object
|
|
226
224
|
*/
|
|
227
225
|
formatError(axiosError) {
|
|
228
226
|
// return an actual error object,
|
|
@@ -373,10 +371,10 @@ export class RequestWrapper {
|
|
|
373
371
|
}
|
|
374
372
|
}
|
|
375
373
|
/**
|
|
376
|
-
*
|
|
377
|
-
* @param
|
|
378
|
-
* @param
|
|
379
|
-
* @returns
|
|
374
|
+
* Parses the path.
|
|
375
|
+
* @param path - the path
|
|
376
|
+
* @param params - the params
|
|
377
|
+
* @returns the parsed path
|
|
380
378
|
*/
|
|
381
379
|
function parsePath(path, params) {
|
|
382
380
|
if (!path || !params) {
|
|
@@ -389,9 +387,8 @@ function parsePath(path, params) {
|
|
|
389
387
|
}
|
|
390
388
|
/**
|
|
391
389
|
* Determine if the error is due to bad credentials
|
|
392
|
-
* @
|
|
393
|
-
* @
|
|
394
|
-
* @returns {boolean} true if error is due to authentication
|
|
390
|
+
* @param error - error object returned from axios
|
|
391
|
+
* @returns true if error is due to authentication
|
|
395
392
|
*/
|
|
396
393
|
function isAuthenticationError(error) {
|
|
397
394
|
let isAuthErr = false;
|
|
@@ -406,9 +403,8 @@ function isAuthenticationError(error) {
|
|
|
406
403
|
}
|
|
407
404
|
/**
|
|
408
405
|
* Determine if the error is due to a bad self signed certificate
|
|
409
|
-
* @
|
|
410
|
-
* @
|
|
411
|
-
* @returns {boolean} true if error is due to an SSL error
|
|
406
|
+
* @param error - error object returned from axios
|
|
407
|
+
* @returnstrue if error is due to an SSL error
|
|
412
408
|
*/
|
|
413
409
|
function isSelfSignedCertificateError(error) {
|
|
414
410
|
let result = false;
|
|
@@ -423,10 +419,9 @@ function isSelfSignedCertificateError(error) {
|
|
|
423
419
|
}
|
|
424
420
|
/**
|
|
425
421
|
* Return true if object has a specified property that is a string
|
|
426
|
-
* @
|
|
427
|
-
* @param
|
|
428
|
-
* @
|
|
429
|
-
* @returns {boolean} true if property exists and is string
|
|
422
|
+
* @param obj - object to look for property in
|
|
423
|
+
* @param property - name of the property to look for
|
|
424
|
+
* @returns true if property exists and is string
|
|
430
425
|
*/
|
|
431
426
|
function hasStringProperty(obj, property) {
|
|
432
427
|
return Boolean(obj[property] && typeof obj[property] === 'string');
|
|
@@ -435,9 +430,8 @@ function hasStringProperty(obj, property) {
|
|
|
435
430
|
* Look for service error message in common places, by priority
|
|
436
431
|
* first look in `errors[0].message`, then in `error`, then in
|
|
437
432
|
* `message`, then in `errorMessage`
|
|
438
|
-
* @
|
|
439
|
-
* @
|
|
440
|
-
* @returns {string | undefined} the error message if is was found, undefined otherwise
|
|
433
|
+
* @param response - error response body received from service
|
|
434
|
+
* @returns the error message if is was found, undefined otherwise
|
|
441
435
|
*/
|
|
442
436
|
function parseServiceErrorMessage(response) {
|
|
443
437
|
let message;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (C) Copyright IBM Corp. 2019,
|
|
2
|
+
* (C) Copyright IBM Corp. 2019, 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.
|
|
@@ -22,10 +22,9 @@
|
|
|
22
22
|
* Takes the request options constructed by the SDK and checks that the `url` and `method` properties
|
|
23
23
|
* were set to their correct values.
|
|
24
24
|
*
|
|
25
|
-
* @param
|
|
26
|
-
* @param
|
|
27
|
-
* @param
|
|
28
|
-
* @returns {void}
|
|
25
|
+
* @param options - the options object put together by the SDK, retrieved from the createRequest mock
|
|
26
|
+
* @param url - The URL path of the service endpoint, from the paths section of the API definition
|
|
27
|
+
* @param method - The HTTP method for the request, from the API definition
|
|
29
28
|
*/
|
|
30
29
|
export declare function checkUrlAndMethod(options: any, url: string, method: any): void;
|
|
31
30
|
/**
|
|
@@ -33,10 +32,9 @@ export declare function checkUrlAndMethod(options: any, url: string, method: any
|
|
|
33
32
|
* and checks for the expected values for `Accept` and `Content-Type`. This to verify that the SDK sets
|
|
34
33
|
* the correct values in the code.
|
|
35
34
|
*
|
|
36
|
-
* @param
|
|
37
|
-
* @param
|
|
38
|
-
* @param
|
|
39
|
-
* @returns {void}
|
|
35
|
+
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
36
|
+
* @param accept - the expected value for the `Accept` header
|
|
37
|
+
* @param contentType - the expected value for the `Content-Type` header
|
|
40
38
|
*/
|
|
41
39
|
export declare function checkMediaHeaders(createRequestMock: any, accept: string, contentType: string): void;
|
|
42
40
|
/**
|
|
@@ -44,18 +42,16 @@ export declare function checkMediaHeaders(createRequestMock: any, accept: string
|
|
|
44
42
|
* and checks for the expected value for a user-defined header. This is verify that the SDK accepts header
|
|
45
43
|
* parameters and sends them as headers in the request.
|
|
46
44
|
*
|
|
47
|
-
* @param
|
|
48
|
-
* @param
|
|
49
|
-
* @param
|
|
50
|
-
* @returns {void}
|
|
45
|
+
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
46
|
+
* @param userHeaderName - the name of the header passed by the user, e.g. `Contained-Content-Type`
|
|
47
|
+
* @param userHeaderValue - the expected value for the header passed by the user
|
|
51
48
|
*/
|
|
52
49
|
export declare function checkUserHeader(createRequestMock: any, userHeaderName: string, userHeaderValue: string): void;
|
|
53
50
|
/**
|
|
54
51
|
* This method simply ensures that the method executed without any issues by extracting
|
|
55
52
|
* the argument from the mock object for the `createRequest` method and verifying that it is an object.
|
|
56
53
|
*
|
|
57
|
-
* @param
|
|
58
|
-
* @returns {void}
|
|
54
|
+
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
59
55
|
*/
|
|
60
56
|
export declare function checkForSuccessfulExecution(createRequestMock: any): void;
|
|
61
57
|
/**
|
|
@@ -63,15 +59,14 @@ export declare function checkForSuccessfulExecution(createRequestMock: any): voi
|
|
|
63
59
|
* an object containing all of the SDK method-specific information (like `path` and `body`) used to build a request.
|
|
64
60
|
* This method is just a convenience method for the unit tests to be able to make assertions on the items in the request.
|
|
65
61
|
*
|
|
66
|
-
* @param
|
|
67
|
-
* @returns
|
|
62
|
+
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
63
|
+
* @returns Object
|
|
68
64
|
*/
|
|
69
65
|
export declare function getOptions(createRequestMock: any): any;
|
|
70
66
|
/**
|
|
71
67
|
* This method simply ensures that the SDK methods return Promises by checking for
|
|
72
68
|
* the `then` function - common way to assess whether or not an object is a Promise.
|
|
73
69
|
*
|
|
74
|
-
* @param
|
|
75
|
-
* @returns {void}
|
|
70
|
+
* @param sdkPromise - the Promise returned by an SDK method
|
|
76
71
|
*/
|
|
77
72
|
export declare function expectToBePromise(sdkPromise: any): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (C) Copyright IBM Corp. 2019,
|
|
2
|
+
* (C) Copyright IBM Corp. 2019, 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.
|
|
@@ -23,10 +23,9 @@ import expect from 'expect';
|
|
|
23
23
|
* Takes the request options constructed by the SDK and checks that the `url` and `method` properties
|
|
24
24
|
* were set to their correct values.
|
|
25
25
|
*
|
|
26
|
-
* @param
|
|
27
|
-
* @param
|
|
28
|
-
* @param
|
|
29
|
-
* @returns {void}
|
|
26
|
+
* @param options - the options object put together by the SDK, retrieved from the createRequest mock
|
|
27
|
+
* @param url - The URL path of the service endpoint, from the paths section of the API definition
|
|
28
|
+
* @param method - The HTTP method for the request, from the API definition
|
|
30
29
|
*/
|
|
31
30
|
export function checkUrlAndMethod(options, url, method) {
|
|
32
31
|
expect(options.url).toEqual(url);
|
|
@@ -37,10 +36,9 @@ export function checkUrlAndMethod(options, url, method) {
|
|
|
37
36
|
* and checks for the expected values for `Accept` and `Content-Type`. This to verify that the SDK sets
|
|
38
37
|
* the correct values in the code.
|
|
39
38
|
*
|
|
40
|
-
* @param
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
43
|
-
* @returns {void}
|
|
39
|
+
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
40
|
+
* @param accept - the expected value for the `Accept` header
|
|
41
|
+
* @param contentType - the expected value for the `Content-Type` header
|
|
44
42
|
*/
|
|
45
43
|
export function checkMediaHeaders(createRequestMock, accept, contentType) {
|
|
46
44
|
const { headers } = createRequestMock.mock.calls[0][0].defaultOptions;
|
|
@@ -52,10 +50,9 @@ export function checkMediaHeaders(createRequestMock, accept, contentType) {
|
|
|
52
50
|
* and checks for the expected value for a user-defined header. This is verify that the SDK accepts header
|
|
53
51
|
* parameters and sends them as headers in the request.
|
|
54
52
|
*
|
|
55
|
-
* @param
|
|
56
|
-
* @param
|
|
57
|
-
* @param
|
|
58
|
-
* @returns {void}
|
|
53
|
+
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
54
|
+
* @param userHeaderName - the name of the header passed by the user, e.g. `Contained-Content-Type`
|
|
55
|
+
* @param userHeaderValue - the expected value for the header passed by the user
|
|
59
56
|
*/
|
|
60
57
|
export function checkUserHeader(createRequestMock, userHeaderName, userHeaderValue) {
|
|
61
58
|
const { headers } = createRequestMock.mock.calls[0][0].defaultOptions;
|
|
@@ -65,8 +62,7 @@ export function checkUserHeader(createRequestMock, userHeaderName, userHeaderVal
|
|
|
65
62
|
* This method simply ensures that the method executed without any issues by extracting
|
|
66
63
|
* the argument from the mock object for the `createRequest` method and verifying that it is an object.
|
|
67
64
|
*
|
|
68
|
-
* @param
|
|
69
|
-
* @returns {void}
|
|
65
|
+
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
70
66
|
*/
|
|
71
67
|
export function checkForSuccessfulExecution(createRequestMock) {
|
|
72
68
|
const sdkParams = createRequestMock.mock.calls[0][0];
|
|
@@ -77,8 +73,8 @@ export function checkForSuccessfulExecution(createRequestMock) {
|
|
|
77
73
|
* an object containing all of the SDK method-specific information (like `path` and `body`) used to build a request.
|
|
78
74
|
* This method is just a convenience method for the unit tests to be able to make assertions on the items in the request.
|
|
79
75
|
*
|
|
80
|
-
* @param
|
|
81
|
-
* @returns
|
|
76
|
+
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
77
|
+
* @returns Object
|
|
82
78
|
*/
|
|
83
79
|
export function getOptions(createRequestMock) {
|
|
84
80
|
return createRequestMock.mock.calls[0][0].options;
|
|
@@ -87,8 +83,7 @@ export function getOptions(createRequestMock) {
|
|
|
87
83
|
* This method simply ensures that the SDK methods return Promises by checking for
|
|
88
84
|
* the `then` function - common way to assess whether or not an object is a Promise.
|
|
89
85
|
*
|
|
90
|
-
* @param
|
|
91
|
-
* @returns {void}
|
|
86
|
+
* @param sdkPromise - the Promise returned by an SDK method
|
|
92
87
|
*/
|
|
93
88
|
export function expectToBePromise(sdkPromise) {
|
|
94
89
|
expect(typeof sdkPromise.then).toBe('function');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (C) Copyright IBM Corp. 2019,
|
|
2
|
+
* (C) Copyright IBM Corp. 2019, 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.
|
|
@@ -20,7 +20,7 @@ import { Stream } from 'stream';
|
|
|
20
20
|
* or array of text chunks
|
|
21
21
|
* Essentially a smaller version of concat-stream wrapped in a promise
|
|
22
22
|
*
|
|
23
|
-
* @param
|
|
24
|
-
* @
|
|
23
|
+
* @param stream - optional stream param for when not bound to an existing stream instance.
|
|
24
|
+
* @returns Promise
|
|
25
25
|
*/
|
|
26
26
|
export declare function streamToPromise(stream: Stream): Promise<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* (C) Copyright IBM Corp. 2019,
|
|
2
|
+
* (C) Copyright IBM Corp. 2019, 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.
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
* or array of text chunks
|
|
19
19
|
* Essentially a smaller version of concat-stream wrapped in a promise
|
|
20
20
|
*
|
|
21
|
-
* @param
|
|
22
|
-
* @
|
|
21
|
+
* @param stream - optional stream param for when not bound to an existing stream instance.
|
|
22
|
+
* @returns Promise
|
|
23
23
|
*/
|
|
24
24
|
export function streamToPromise(stream) {
|
|
25
25
|
stream = stream || this;
|
package/es/tsdoc-metadata.json
CHANGED
|
@@ -86,7 +86,7 @@ export class BasicAuthenticator extends Authenticator {
|
|
|
86
86
|
|
|
87
87
|
// @public
|
|
88
88
|
export class BearerTokenAuthenticator extends Authenticator {
|
|
89
|
-
// Warning: (ae-forgotten-export) The symbol "
|
|
89
|
+
// Warning: (ae-forgotten-export) The symbol "Options_2" needs to be exported by the entry point index.d.ts
|
|
90
90
|
constructor(options: Options_2);
|
|
91
91
|
authenticate(requestOptions: AuthenticateOptions): Promise<void>;
|
|
92
92
|
authenticationType(): string;
|
|
@@ -115,7 +115,7 @@ function checkUserHeader(createRequestMock: any, userHeaderName: string, userHea
|
|
|
115
115
|
|
|
116
116
|
// @public
|
|
117
117
|
export class CloudPakForDataAuthenticator extends TokenRequestBasedAuthenticator {
|
|
118
|
-
// Warning: (ae-forgotten-export) The symbol "
|
|
118
|
+
// Warning: (ae-forgotten-export) The symbol "Options_4" needs to be exported by the entry point index.d.ts
|
|
119
119
|
constructor(options: Options_4);
|
|
120
120
|
authenticationType(): string;
|
|
121
121
|
// (undocumented)
|
|
@@ -135,7 +135,7 @@ export function constructServiceUrl(parameterizedUrl: string, defaultUrlVariable
|
|
|
135
135
|
|
|
136
136
|
// @public
|
|
137
137
|
export class ContainerAuthenticator extends IamRequestBasedAuthenticator {
|
|
138
|
-
// Warning: (ae-forgotten-export) The symbol "
|
|
138
|
+
// Warning: (ae-forgotten-export) The symbol "Options_8" needs to be exported by the entry point index.d.ts
|
|
139
139
|
constructor(options: Options_8);
|
|
140
140
|
authenticationType(): string;
|
|
141
141
|
setCrTokenFilename(crTokenFilename: string): void;
|
|
@@ -147,7 +147,7 @@ export class ContainerAuthenticator extends IamRequestBasedAuthenticator {
|
|
|
147
147
|
|
|
148
148
|
// @public
|
|
149
149
|
export class ContainerTokenManager extends IamRequestBasedTokenManager {
|
|
150
|
-
// Warning: (ae-forgotten-export) The symbol "
|
|
150
|
+
// Warning: (ae-forgotten-export) The symbol "Options_7" needs to be exported by the entry point index.d.ts
|
|
151
151
|
constructor(options: Options_7);
|
|
152
152
|
protected requestToken(): Promise<any>;
|
|
153
153
|
setCrTokenFilename(crTokenFilename: string): void;
|
|
@@ -163,7 +163,7 @@ export const contentType: {
|
|
|
163
163
|
|
|
164
164
|
// @public
|
|
165
165
|
export class Cp4dTokenManager extends JwtTokenManager {
|
|
166
|
-
// Warning: (ae-forgotten-export) The symbol "
|
|
166
|
+
// Warning: (ae-forgotten-export) The symbol "Options_3" needs to be exported by the entry point index.d.ts
|
|
167
167
|
constructor(options: Options_3);
|
|
168
168
|
// (undocumented)
|
|
169
169
|
protected requestToken(): Promise<any>;
|
|
@@ -239,7 +239,7 @@ export function getQueryParam(urlStr: string, param: string): string;
|
|
|
239
239
|
|
|
240
240
|
// @public
|
|
241
241
|
export class IamAuthenticator extends IamRequestBasedAuthenticator {
|
|
242
|
-
// Warning: (ae-forgotten-export) The symbol "
|
|
242
|
+
// Warning: (ae-forgotten-export) The symbol "Options_6" needs to be exported by the entry point index.d.ts
|
|
243
243
|
constructor(options: Options_6);
|
|
244
244
|
authenticationType(): string;
|
|
245
245
|
// (undocumented)
|
|
@@ -250,7 +250,7 @@ export class IamAuthenticator extends IamRequestBasedAuthenticator {
|
|
|
250
250
|
|
|
251
251
|
// @public
|
|
252
252
|
export class IamRequestBasedAuthenticator extends TokenRequestBasedAuthenticator {
|
|
253
|
-
// Warning: (ae-forgotten-export) The symbol "
|
|
253
|
+
// Warning: (ae-forgotten-export) The symbol "IamRequestOptions_2" needs to be exported by the entry point index.d.ts
|
|
254
254
|
constructor(options: IamRequestOptions_2);
|
|
255
255
|
// (undocumented)
|
|
256
256
|
protected clientId: string;
|
|
@@ -291,7 +291,7 @@ export interface IamRequestOptions extends JwtTokenManagerOptions {
|
|
|
291
291
|
|
|
292
292
|
// @public
|
|
293
293
|
export class IamTokenManager extends IamRequestBasedTokenManager {
|
|
294
|
-
// Warning: (ae-forgotten-export) The symbol "
|
|
294
|
+
// Warning: (ae-forgotten-export) The symbol "Options_5" needs to be exported by the entry point index.d.ts
|
|
295
295
|
constructor(options: Options_5);
|
|
296
296
|
// (undocumented)
|
|
297
297
|
protected requiredOptions: string[];
|
|
@@ -367,7 +367,7 @@ export interface SDKLogger {
|
|
|
367
367
|
// @public
|
|
368
368
|
export function streamToPromise(stream: Stream): Promise<any>;
|
|
369
369
|
|
|
370
|
-
// @public
|
|
370
|
+
// @public
|
|
371
371
|
export function stripTrailingSlash(url: string): string;
|
|
372
372
|
|
|
373
373
|
// @public
|
|
@@ -449,7 +449,7 @@ export interface UserOptions {
|
|
|
449
449
|
version?: string;
|
|
450
450
|
}
|
|
451
451
|
|
|
452
|
-
// @public
|
|
452
|
+
// @public
|
|
453
453
|
export function validateInput(options: any, requiredOptions: string[]): void;
|
|
454
454
|
|
|
455
455
|
// @public
|
|
@@ -459,7 +459,7 @@ export function validateParams(params: {
|
|
|
459
459
|
|
|
460
460
|
// @public
|
|
461
461
|
export class VpcInstanceAuthenticator extends TokenRequestBasedAuthenticator {
|
|
462
|
-
// Warning: (ae-forgotten-export) The symbol "
|
|
462
|
+
// Warning: (ae-forgotten-export) The symbol "Options_10" needs to be exported by the entry point index.d.ts
|
|
463
463
|
constructor(options: Options_10);
|
|
464
464
|
authenticationType(): string;
|
|
465
465
|
setIamProfileCrn(iamProfileCrn: string): void;
|
|
@@ -470,7 +470,7 @@ export class VpcInstanceAuthenticator extends TokenRequestBasedAuthenticator {
|
|
|
470
470
|
|
|
471
471
|
// @public
|
|
472
472
|
export class VpcInstanceTokenManager extends JwtTokenManager {
|
|
473
|
-
// Warning: (ae-forgotten-export) The symbol "
|
|
473
|
+
// Warning: (ae-forgotten-export) The symbol "Options_9" needs to be exported by the entry point index.d.ts
|
|
474
474
|
constructor(options: Options_9);
|
|
475
475
|
// (undocumented)
|
|
476
476
|
protected requestToken(): Promise<any>;
|