@aws-sdk/nested-clients 3.997.24 → 3.997.26
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-cjs/submodules/cognito-identity/index.js +13 -25
- package/dist-cjs/submodules/signin/index.js +13 -17
- package/dist-cjs/submodules/sso/index.js +12 -15
- package/dist-cjs/submodules/sso-oidc/index.js +12 -15
- package/dist-cjs/submodules/sts/index.js +13 -25
- package/dist-es/submodules/cognito-identity/commandBuilder.js +6 -0
- package/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js +2 -14
- package/dist-es/submodules/cognito-identity/commands/GetIdCommand.js +2 -14
- package/dist-es/submodules/cognito-identity/index.js +1 -0
- package/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +0 -2
- package/dist-es/submodules/cognito-identity/runtimeConfig.js +1 -2
- package/dist-es/submodules/cognito-identity/runtimeConfig.native.js +0 -2
- package/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +2 -0
- package/dist-es/submodules/signin/commandBuilder.js +8 -0
- package/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +2 -17
- package/dist-es/submodules/signin/index.js +1 -0
- package/dist-es/submodules/signin/runtimeConfig.browser.js +0 -2
- package/dist-es/submodules/signin/runtimeConfig.js +1 -2
- package/dist-es/submodules/signin/runtimeConfig.native.js +0 -2
- package/dist-es/submodules/signin/runtimeConfig.shared.js +2 -0
- package/dist-es/submodules/sso/commandBuilder.js +6 -0
- package/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js +2 -14
- package/dist-es/submodules/sso/index.js +1 -0
- package/dist-es/submodules/sso/runtimeConfig.browser.js +0 -2
- package/dist-es/submodules/sso/runtimeConfig.js +1 -2
- package/dist-es/submodules/sso/runtimeConfig.native.js +0 -2
- package/dist-es/submodules/sso/runtimeConfig.shared.js +2 -0
- package/dist-es/submodules/sso-oidc/commandBuilder.js +6 -0
- package/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +2 -14
- package/dist-es/submodules/sso-oidc/index.js +1 -0
- package/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +0 -2
- package/dist-es/submodules/sso-oidc/runtimeConfig.js +1 -2
- package/dist-es/submodules/sso-oidc/runtimeConfig.native.js +0 -2
- package/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/dist-es/submodules/sts/commandBuilder.js +6 -0
- package/dist-es/submodules/sts/commands/AssumeRoleCommand.js +2 -14
- package/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +2 -14
- package/dist-es/submodules/sts/index.js +1 -0
- package/dist-es/submodules/sts/runtimeConfig.browser.js +0 -2
- package/dist-es/submodules/sts/runtimeConfig.js +1 -2
- package/dist-es/submodules/sts/runtimeConfig.native.js +0 -2
- package/dist-es/submodules/sts/runtimeConfig.shared.js +2 -0
- package/dist-types/submodules/cognito-identity/commandBuilder.d.ts +18 -0
- package/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +3 -8
- package/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +3 -8
- package/dist-types/submodules/cognito-identity/index.d.ts +1 -0
- package/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +1 -1
- package/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +1 -1
- package/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/submodules/signin/commandBuilder.d.ts +18 -0
- package/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +3 -8
- package/dist-types/submodules/signin/index.d.ts +1 -0
- package/dist-types/submodules/signin/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/submodules/signin/runtimeConfig.d.ts +1 -1
- package/dist-types/submodules/signin/runtimeConfig.native.d.ts +1 -1
- package/dist-types/submodules/signin/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/submodules/sso/commandBuilder.d.ts +18 -0
- package/dist-types/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +3 -8
- package/dist-types/submodules/sso/index.d.ts +1 -0
- package/dist-types/submodules/sso/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/submodules/sso/runtimeConfig.d.ts +1 -1
- package/dist-types/submodules/sso/runtimeConfig.native.d.ts +1 -1
- package/dist-types/submodules/sso/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/submodules/sso-oidc/commandBuilder.d.ts +18 -0
- package/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -8
- package/dist-types/submodules/sso-oidc/index.d.ts +1 -0
- package/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/submodules/sts/commandBuilder.d.ts +18 -0
- package/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +3 -8
- package/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -8
- package/dist-types/submodules/sts/index.d.ts +1 -0
- package/dist-types/submodules/sts/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/submodules/sts/runtimeConfig.d.ts +1 -1
- package/dist-types/submodules/sts/runtimeConfig.native.d.ts +1 -1
- package/dist-types/submodules/sts/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/submodules/cognito-identity/commandBuilder.d.ts +46 -0
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +7 -16
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +7 -16
- package/dist-types/ts3.4/submodules/cognito-identity/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +42 -0
- package/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +3 -8
- package/dist-types/ts3.4/submodules/signin/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/submodules/sso/commandBuilder.d.ts +42 -0
- package/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +3 -8
- package/dist-types/ts3.4/submodules/sso/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/submodules/sso-oidc/commandBuilder.d.ts +42 -0
- package/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -8
- package/dist-types/ts3.4/submodules/sso-oidc/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/submodules/sts/commandBuilder.d.ts +46 -0
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +7 -16
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +7 -16
- package/dist-types/ts3.4/submodules/sts/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +1 -0
- package/package.json +8 -10
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
3
|
-
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client,
|
|
4
|
-
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
5
6
|
exports.__Client = Client;
|
|
6
7
|
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
8
|
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
@@ -9,9 +10,10 @@ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntim
|
|
|
9
10
|
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
11
|
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
12
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
13
14
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
14
15
|
const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
15
17
|
|
|
16
18
|
const defaultCognitoIdentityHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
17
19
|
return {
|
|
@@ -79,7 +81,7 @@ const commonParams = {
|
|
|
79
81
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
80
82
|
};
|
|
81
83
|
|
|
82
|
-
var version = "3.997.
|
|
84
|
+
var version = "3.997.25";
|
|
83
85
|
var packageInfo = {
|
|
84
86
|
version: version};
|
|
85
87
|
|
|
@@ -440,6 +442,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
440
442
|
serviceTarget: "AWSCognitoIdentityService",
|
|
441
443
|
},
|
|
442
444
|
serviceId: config?.serviceId ?? "Cognito Identity",
|
|
445
|
+
sha256: config?.sha256 ?? Sha256,
|
|
443
446
|
urlParser: config?.urlParser ?? parseUrl,
|
|
444
447
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
445
448
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -472,7 +475,6 @@ const getRuntimeConfig = (config) => {
|
|
|
472
475
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
473
476
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
474
477
|
}, config),
|
|
475
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
476
478
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
477
479
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
478
480
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -560,28 +562,14 @@ class CognitoIdentityClient extends Client {
|
|
|
560
562
|
}
|
|
561
563
|
}
|
|
562
564
|
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
})
|
|
569
|
-
.s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {})
|
|
570
|
-
.n("CognitoIdentityClient", "GetCredentialsForIdentityCommand")
|
|
571
|
-
.sc(GetCredentialsForIdentity$)
|
|
572
|
-
.build() {
|
|
565
|
+
const command = makeBuilder(commonParams, "AWSCognitoIdentityService", "CognitoIdentityClient", getEndpointPlugin);
|
|
566
|
+
const _ep0 = {};
|
|
567
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
568
|
+
|
|
569
|
+
class GetCredentialsForIdentityCommand extends command(_ep0, _mw0, "GetCredentialsForIdentity", GetCredentialsForIdentity$) {
|
|
573
570
|
}
|
|
574
571
|
|
|
575
|
-
class GetIdCommand extends
|
|
576
|
-
.classBuilder()
|
|
577
|
-
.ep(commonParams)
|
|
578
|
-
.m(function (Command, cs, config, o) {
|
|
579
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
580
|
-
})
|
|
581
|
-
.s("AWSCognitoIdentityService", "GetId", {})
|
|
582
|
-
.n("CognitoIdentityClient", "GetIdCommand")
|
|
583
|
-
.sc(GetId$)
|
|
584
|
-
.build() {
|
|
572
|
+
class GetIdCommand extends command(_ep0, _mw0, "GetId", GetId$) {
|
|
585
573
|
}
|
|
586
574
|
|
|
587
575
|
const commands = {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
3
|
-
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client,
|
|
4
|
-
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
5
6
|
exports.__Client = Client;
|
|
6
7
|
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
8
|
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
@@ -9,9 +10,10 @@ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntim
|
|
|
9
10
|
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
11
|
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
12
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
13
14
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
14
15
|
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
15
17
|
|
|
16
18
|
const defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
17
19
|
return {
|
|
@@ -75,7 +77,7 @@ const commonParams = {
|
|
|
75
77
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
76
78
|
};
|
|
77
79
|
|
|
78
|
-
var version = "3.997.
|
|
80
|
+
var version = "3.997.25";
|
|
79
81
|
var packageInfo = {
|
|
80
82
|
version: version};
|
|
81
83
|
|
|
@@ -372,6 +374,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
372
374
|
serviceTarget: "Signin",
|
|
373
375
|
},
|
|
374
376
|
serviceId: config?.serviceId ?? "Signin",
|
|
377
|
+
sha256: config?.sha256 ?? Sha256,
|
|
375
378
|
urlParser: config?.urlParser ?? parseUrl,
|
|
376
379
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
377
380
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -404,7 +407,6 @@ const getRuntimeConfig = (config) => {
|
|
|
404
407
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
405
408
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
406
409
|
}, config),
|
|
407
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
408
410
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
409
411
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
410
412
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -492,19 +494,13 @@ class SigninClient extends Client {
|
|
|
492
494
|
}
|
|
493
495
|
}
|
|
494
496
|
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
.ep({
|
|
498
|
-
...commonParams,
|
|
497
|
+
const command = makeBuilder(commonParams, "Signin", "SigninClient", getEndpointPlugin);
|
|
498
|
+
const _ep0 = {
|
|
499
499
|
IsControlPlane: { type: "staticContextParams", value: false },
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
.s("Signin", "CreateOAuth2Token", {})
|
|
505
|
-
.n("SigninClient", "CreateOAuth2TokenCommand")
|
|
506
|
-
.sc(CreateOAuth2Token$)
|
|
507
|
-
.build() {
|
|
500
|
+
};
|
|
501
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
502
|
+
|
|
503
|
+
class CreateOAuth2TokenCommand extends command(_ep0, _mw0, "CreateOAuth2Token", CreateOAuth2Token$) {
|
|
508
504
|
}
|
|
509
505
|
|
|
510
506
|
const commands = {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
3
|
-
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client,
|
|
4
|
-
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
5
6
|
exports.__Client = Client;
|
|
6
7
|
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
8
|
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
@@ -9,9 +10,10 @@ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntim
|
|
|
9
10
|
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
11
|
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
12
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
13
14
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
14
15
|
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
15
17
|
|
|
16
18
|
const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
17
19
|
return {
|
|
@@ -75,7 +77,7 @@ const commonParams = {
|
|
|
75
77
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
76
78
|
};
|
|
77
79
|
|
|
78
|
-
var version = "3.997.
|
|
80
|
+
var version = "3.997.25";
|
|
79
81
|
var packageInfo = {
|
|
80
82
|
version: version};
|
|
81
83
|
|
|
@@ -311,6 +313,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
311
313
|
serviceTarget: "SWBPortalService",
|
|
312
314
|
},
|
|
313
315
|
serviceId: config?.serviceId ?? "SSO",
|
|
316
|
+
sha256: config?.sha256 ?? Sha256,
|
|
314
317
|
urlParser: config?.urlParser ?? parseUrl,
|
|
315
318
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
316
319
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -343,7 +346,6 @@ const getRuntimeConfig = (config) => {
|
|
|
343
346
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
344
347
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
345
348
|
}, config),
|
|
346
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
347
349
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
348
350
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
349
351
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -431,16 +433,11 @@ class SSOClient extends Client {
|
|
|
431
433
|
}
|
|
432
434
|
}
|
|
433
435
|
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
})
|
|
440
|
-
.s("SWBPortalService", "GetRoleCredentials", {})
|
|
441
|
-
.n("SSOClient", "GetRoleCredentialsCommand")
|
|
442
|
-
.sc(GetRoleCredentials$)
|
|
443
|
-
.build() {
|
|
436
|
+
const command = makeBuilder(commonParams, "SWBPortalService", "SSOClient", getEndpointPlugin);
|
|
437
|
+
const _ep0 = {};
|
|
438
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
439
|
+
|
|
440
|
+
class GetRoleCredentialsCommand extends command(_ep0, _mw0, "GetRoleCredentials", GetRoleCredentials$) {
|
|
444
441
|
}
|
|
445
442
|
|
|
446
443
|
const commands = {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
3
|
-
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client,
|
|
4
|
-
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
5
6
|
exports.__Client = Client;
|
|
6
7
|
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
8
|
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
@@ -9,9 +10,10 @@ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntim
|
|
|
9
10
|
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
11
|
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
12
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
13
14
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
14
15
|
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
15
17
|
|
|
16
18
|
const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
17
19
|
return {
|
|
@@ -75,7 +77,7 @@ const commonParams = {
|
|
|
75
77
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
76
78
|
};
|
|
77
79
|
|
|
78
|
-
var version = "3.997.
|
|
80
|
+
var version = "3.997.25";
|
|
79
81
|
var packageInfo = {
|
|
80
82
|
version: version};
|
|
81
83
|
|
|
@@ -492,6 +494,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
492
494
|
serviceTarget: "AWSSSOOIDCService",
|
|
493
495
|
},
|
|
494
496
|
serviceId: config?.serviceId ?? "SSO OIDC",
|
|
497
|
+
sha256: config?.sha256 ?? Sha256,
|
|
495
498
|
urlParser: config?.urlParser ?? parseUrl,
|
|
496
499
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
497
500
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -524,7 +527,6 @@ const getRuntimeConfig = (config) => {
|
|
|
524
527
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
525
528
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
526
529
|
}, config),
|
|
527
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
528
530
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
529
531
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
530
532
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -612,16 +614,11 @@ class SSOOIDCClient extends Client {
|
|
|
612
614
|
}
|
|
613
615
|
}
|
|
614
616
|
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
})
|
|
621
|
-
.s("AWSSSOOIDCService", "CreateToken", {})
|
|
622
|
-
.n("SSOOIDCClient", "CreateTokenCommand")
|
|
623
|
-
.sc(CreateToken$)
|
|
624
|
-
.build() {
|
|
617
|
+
const command = makeBuilder(commonParams, "AWSSSOOIDCService", "SSOOIDCClient", getEndpointPlugin);
|
|
618
|
+
const _ep0 = {};
|
|
619
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
620
|
+
|
|
621
|
+
class CreateTokenCommand extends command(_ep0, _mw0, "CreateToken", CreateToken$) {
|
|
625
622
|
}
|
|
626
623
|
|
|
627
624
|
const commands = {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, setCredentialFeature, stsRegionDefaultResolver } = require("@aws-sdk/core/client");
|
|
2
2
|
const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
3
|
-
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client,
|
|
4
|
-
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
5
6
|
exports.__Client = Client;
|
|
6
7
|
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
8
|
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveParams, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
|
|
|
10
11
|
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
12
|
const { resolveAwsSdkSigV4Config, resolveAwsSdkSigV4AConfig, AwsSdkSigV4Signer, AwsSdkSigV4ASigner, NODE_SIGV4A_CONFIG_OPTIONS, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
13
|
const { SignatureV4MultiRegion } = require("@aws-sdk/signature-v4-multi-region");
|
|
13
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
14
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
15
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
16
|
const { AwsQueryProtocol } = require("@aws-sdk/core/protocols");
|
|
17
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
16
18
|
|
|
17
19
|
const q = "ref";
|
|
18
20
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = "us-east-1", i = "sigv4", j = "sts", k = "https://sts.{Region}.{PartitionResult#dnsSuffix}", l = { [q]: "Endpoint" }, m = { [q]: "Region" }, n = { [q]: d }, o = {}, p = [m];
|
|
@@ -256,7 +258,7 @@ const commonParams = {
|
|
|
256
258
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
257
259
|
};
|
|
258
260
|
|
|
259
|
-
var version = "3.997.
|
|
261
|
+
var version = "3.997.25";
|
|
260
262
|
var packageInfo = {
|
|
261
263
|
version: version};
|
|
262
264
|
|
|
@@ -561,6 +563,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
561
563
|
serviceTarget: "AWSSecurityTokenServiceV20110615",
|
|
562
564
|
},
|
|
563
565
|
serviceId: config?.serviceId ?? "STS",
|
|
566
|
+
sha256: config?.sha256 ?? Sha256,
|
|
564
567
|
signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
|
|
565
568
|
urlParser: config?.urlParser ?? parseUrl,
|
|
566
569
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
@@ -611,7 +614,6 @@ const getRuntimeConfig = (config) => {
|
|
|
611
614
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
612
615
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
613
616
|
}, config),
|
|
614
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
615
617
|
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
|
|
616
618
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
617
619
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -701,28 +703,14 @@ class STSClient extends Client {
|
|
|
701
703
|
}
|
|
702
704
|
}
|
|
703
705
|
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
})
|
|
710
|
-
.s("AWSSecurityTokenServiceV20110615", "AssumeRole", {})
|
|
711
|
-
.n("STSClient", "AssumeRoleCommand")
|
|
712
|
-
.sc(AssumeRole$)
|
|
713
|
-
.build() {
|
|
706
|
+
const command = makeBuilder(commonParams, "AWSSecurityTokenServiceV20110615", "STSClient", getEndpointPlugin);
|
|
707
|
+
const _ep0 = {};
|
|
708
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
709
|
+
|
|
710
|
+
class AssumeRoleCommand extends command(_ep0, _mw0, "AssumeRole", AssumeRole$) {
|
|
714
711
|
}
|
|
715
712
|
|
|
716
|
-
class AssumeRoleWithWebIdentityCommand extends
|
|
717
|
-
.classBuilder()
|
|
718
|
-
.ep(commonParams)
|
|
719
|
-
.m(function (Command, cs, config, o) {
|
|
720
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
721
|
-
})
|
|
722
|
-
.s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {})
|
|
723
|
-
.n("STSClient", "AssumeRoleWithWebIdentityCommand")
|
|
724
|
-
.sc(AssumeRoleWithWebIdentity$)
|
|
725
|
-
.build() {
|
|
713
|
+
class AssumeRoleWithWebIdentityCommand extends command(_ep0, _mw0, "AssumeRoleWithWebIdentity", AssumeRoleWithWebIdentity$) {
|
|
726
714
|
}
|
|
727
715
|
|
|
728
716
|
const commands = {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { makeBuilder } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "./endpoint/EndpointParameters";
|
|
4
|
+
export const command = makeBuilder(commonParams, "AWSCognitoIdentityService", "CognitoIdentityClient", getEndpointPlugin);
|
|
5
|
+
export const _ep0 = {};
|
|
6
|
+
export const _mw0 = (Command, cs, config, o) => [];
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetCredentialsForIdentity$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetCredentialsForIdentityCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {})
|
|
13
|
-
.n("CognitoIdentityClient", "GetCredentialsForIdentityCommand")
|
|
14
|
-
.sc(GetCredentialsForIdentity$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetCredentialsForIdentityCommand extends command(_ep0, _mw0, "GetCredentialsForIdentity", GetCredentialsForIdentity$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetId$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetIdCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("AWSCognitoIdentityService", "GetId", {})
|
|
13
|
-
.n("CognitoIdentityClient", "GetIdCommand")
|
|
14
|
-
.sc(GetId$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetIdCommand extends command(_ep0, _mw0, "GetId", GetId$) {
|
|
16
4
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CognitoIdentityClient";
|
|
2
2
|
export * from "./CognitoIdentity";
|
|
3
3
|
export * from "./commands";
|
|
4
|
+
export { Command as $Command } from "@smithy/core/client";
|
|
4
5
|
export * from "./schemas/schemas_0";
|
|
5
6
|
export * from "./models/errors";
|
|
6
7
|
export * from "./models/models_0";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../../../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -22,7 +21,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
21
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
23
22
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
24
23
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
25
|
-
sha256: config?.sha256 ?? Sha256,
|
|
26
24
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
27
25
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
28
26
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
@@ -4,7 +4,7 @@ import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchem
|
|
|
4
4
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
5
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
6
6
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
7
|
-
import { calculateBodyLength
|
|
7
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
8
8
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
9
9
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
10
|
export const getRuntimeConfig = (config) => {
|
|
@@ -33,7 +33,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
33
33
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
34
34
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
35
35
|
}, config),
|
|
36
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
37
36
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
38
37
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
39
38
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
|
|
3
3
|
import { NoAuthSigner } from "@smithy/core";
|
|
4
|
+
import { Sha256 } from "@smithy/core/checksum";
|
|
4
5
|
import { NoOpLogger } from "@smithy/core/client";
|
|
5
6
|
import { parseUrl } from "@smithy/core/protocols";
|
|
6
7
|
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
@@ -38,6 +39,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
38
39
|
serviceTarget: "AWSCognitoIdentityService",
|
|
39
40
|
},
|
|
40
41
|
serviceId: config?.serviceId ?? "Cognito Identity",
|
|
42
|
+
sha256: config?.sha256 ?? Sha256,
|
|
41
43
|
urlParser: config?.urlParser ?? parseUrl,
|
|
42
44
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
43
45
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { makeBuilder } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "./endpoint/EndpointParameters";
|
|
4
|
+
export const command = makeBuilder(commonParams, "Signin", "SigninClient", getEndpointPlugin);
|
|
5
|
+
export const _ep0 = {
|
|
6
|
+
IsControlPlane: { type: "staticContextParams", value: false },
|
|
7
|
+
};
|
|
8
|
+
export const _mw0 = (Command, cs, config, o) => [];
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { CreateOAuth2Token$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class CreateOAuth2TokenCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep({
|
|
9
|
-
...commonParams,
|
|
10
|
-
IsControlPlane: { type: "staticContextParams", value: false },
|
|
11
|
-
})
|
|
12
|
-
.m(function (Command, cs, config, o) {
|
|
13
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
14
|
-
})
|
|
15
|
-
.s("Signin", "CreateOAuth2Token", {})
|
|
16
|
-
.n("SigninClient", "CreateOAuth2TokenCommand")
|
|
17
|
-
.sc(CreateOAuth2Token$)
|
|
18
|
-
.build() {
|
|
3
|
+
export class CreateOAuth2TokenCommand extends command(_ep0, _mw0, "CreateOAuth2Token", CreateOAuth2Token$) {
|
|
19
4
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../../../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
22
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
23
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
24
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
25
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
26
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
27
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
@@ -4,7 +4,7 @@ import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchem
|
|
|
4
4
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
5
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
6
6
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
7
|
-
import { calculateBodyLength
|
|
7
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
8
8
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
9
9
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
10
|
export const getRuntimeConfig = (config) => {
|
|
@@ -33,7 +33,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
33
33
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
34
34
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
35
35
|
}, config),
|
|
36
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
37
36
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
38
37
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
39
38
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
3
|
import { NoAuthSigner } from "@smithy/core";
|
|
4
|
+
import { Sha256 } from "@smithy/core/checksum";
|
|
4
5
|
import { NoOpLogger } from "@smithy/core/client";
|
|
5
6
|
import { parseUrl } from "@smithy/core/protocols";
|
|
6
7
|
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
@@ -37,6 +38,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
37
38
|
serviceTarget: "Signin",
|
|
38
39
|
},
|
|
39
40
|
serviceId: config?.serviceId ?? "Signin",
|
|
41
|
+
sha256: config?.sha256 ?? Sha256,
|
|
40
42
|
urlParser: config?.urlParser ?? parseUrl,
|
|
41
43
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
42
44
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { makeBuilder } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "./endpoint/EndpointParameters";
|
|
4
|
+
export const command = makeBuilder(commonParams, "SWBPortalService", "SSOClient", getEndpointPlugin);
|
|
5
|
+
export const _ep0 = {};
|
|
6
|
+
export const _mw0 = (Command, cs, config, o) => [];
|