@cdk8s/awscdk-resolver 0.0.232 → 0.0.234
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/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -8
- package/node_modules/@aws-sdk/client-sso/package.json +5 -5
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -10
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -5
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/README.md +13 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +2 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-cjs → nested-clients/dist-cjs/submodules/sso-oidc}/auth/httpAuthSchemeProvider.js +0 -8
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +106 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +804 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-cjs → nested-clients/dist-cjs/submodules/sso-oidc}/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-cjs → nested-clients/dist-cjs/submodules/sso-oidc}/runtimeConfig.js +1 -3
- package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/auth/httpAuthSchemeProvider.js +0 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +145 -0
- package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/index.js +99 -695
- package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/runtimeConfig.browser.js +1 -1
- package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/runtimeConfig.js +2 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js +9 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/auth/httpAuthSchemeProvider.js +0 -8
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +103 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/models/models_0.js +12 -85
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/protocols/Aws_restJson1.js +2 -174
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/runtimeConfig.js +1 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js +11 -0
- package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/auth/httpAuthSchemeProvider.js +0 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/index.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +142 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/extensionConfiguration.js +1 -0
- package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/models/models_0.js +16 -48
- package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/protocols/Aws_query.js +10 -420
- package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/runtimeConfig.browser.js +1 -1
- package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/runtimeConfig.js +2 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/SSOOIDC.d.ts +0 -21
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/SSOOIDCClient.d.ts +3 -12
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/commands/CreateTokenCommand.d.ts +3 -50
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/models_0.d.ts +396 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +11 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/runtimeConfig.browser.d.ts +0 -1
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/runtimeConfig.d.ts +0 -1
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/runtimeConfig.native.d.ts +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STS.d.ts +27 -0
- package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/STSClient.d.ts +2 -9
- package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/commands/AssumeRoleCommand.d.ts +0 -47
- package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/commands/AssumeRoleWithWebIdentityCommand.d.ts +0 -34
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/models/models_0.d.ts +16 -630
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/protocols/Aws_query.d.ts +20 -0
- package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDC.d.ts +22 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/SSOOIDCClient.d.ts +2 -24
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/commands/CreateTokenCommand.d.ts +5 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/models/models_0.d.ts +6 -99
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +17 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/runtimeConfig.browser.d.ts +0 -5
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/runtimeConfig.d.ts +0 -9
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/runtimeConfig.native.d.ts +0 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/STS.d.ts +39 -0
- package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/STSClient.d.ts +2 -44
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/models/models_0.d.ts +10 -105
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/protocols/Aws_query.d.ts +29 -0
- package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/runtimeConfig.d.ts +3 -9
- package/node_modules/@aws-sdk/{client-sts → nested-clients}/package.json +47 -34
- package/node_modules/@aws-sdk/nested-clients/sso-oidc.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/sso-oidc.js +5 -0
- package/node_modules/@aws-sdk/nested-clients/sts.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/sts.js +5 -0
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +3 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +2 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +3 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +3 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +3 -0
- package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@smithy/core/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +2 -2
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-stream/package.json +3 -3
- package/package.json +4 -4
- package/node_modules/@aws-sdk/client-sso-oidc/LICENSE +0 -201
- package/node_modules/@aws-sdk/client-sso-oidc/README.md +0 -274
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +0 -7
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +0 -1255
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js +0 -15
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js +0 -23
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +0 -23
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +0 -23
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/index.js +0 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js +0 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +0 -257
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +0 -143
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +0 -123
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/index.d.ts +0 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +0 -795
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/protocols/Aws_restJson1.d.ts +0 -38
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDC.d.ts +0 -73
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +0 -51
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +0 -50
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +0 -51
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/index.d.ts +0 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -53
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +0 -102
- package/node_modules/@aws-sdk/client-sts/LICENSE +0 -201
- package/node_modules/@aws-sdk/client-sts/README.md +0 -281
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js +0 -7
- package/node_modules/@aws-sdk/client-sts/dist-es/STS.js +0 -25
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js +0 -23
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRootCommand.js +0 -23
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js +0 -22
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js +0 -22
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js +0 -22
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js +0 -23
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js +0 -23
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js +0 -9
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js +0 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +0 -78
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +0 -294
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRootCommand.d.ts +0 -129
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +0 -127
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts +0 -87
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +0 -128
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +0 -242
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +0 -166
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/index.d.ts +0 -9
- package/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts +0 -83
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +0 -160
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +0 -51
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRootCommand.d.ts +0 -47
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +0 -51
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +0 -50
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +0 -51
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +0 -51
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +0 -50
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/index.d.ts +0 -9
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts +0 -113
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-cjs → nested-clients/dist-cjs/submodules/sso-oidc}/endpoint/endpointResolver.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-cjs → nested-clients/dist-cjs/submodules/sso-oidc}/runtimeConfig.native.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-cjs → nested-clients/dist-cjs/submodules/sso-oidc}/runtimeConfig.shared.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/STSClient.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/auth/httpAuthExtensionConfiguration.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/endpoint/EndpointParameters.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/endpoint/endpointResolver.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/runtimeConfig.native.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/runtimeConfig.shared.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/runtimeExtensions.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es/extensionConfiguration.js → nested-clients/dist-es/index.js} +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/SSOOIDCClient.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/auth/httpAuthExtensionConfiguration.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/commands/CreateTokenCommand.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/endpoint/EndpointParameters.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/endpoint/endpointResolver.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sso-oidc}/extensionConfiguration.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/index.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/models/SSOOIDCServiceException.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/models/index.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/runtimeConfig.native.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/runtimeConfig.shared.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/runtimeExtensions.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/STSClient.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/auth/httpAuthExtensionConfiguration.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/commands/AssumeRoleCommand.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/commands/AssumeRoleWithWebIdentityCommand.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/defaultRoleAssumers.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/defaultStsRoleAssumers.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/endpoint/EndpointParameters.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/endpoint/endpointResolver.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/index.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/models/STSServiceException.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/models/index.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/runtimeConfig.native.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/runtimeConfig.shared.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/runtimeExtensions.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/auth/httpAuthExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/auth/httpAuthSchemeProvider.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/endpoint/EndpointParameters.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/endpoint/endpointResolver.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/endpoint/ruleset.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/extensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/models/SSOOIDCServiceException.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/models/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/runtimeConfig.shared.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/runtimeExtensions.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/auth/httpAuthExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/auth/httpAuthSchemeProvider.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/defaultRoleAssumers.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/defaultStsRoleAssumers.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/endpoint/EndpointParameters.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/endpoint/endpointResolver.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/submodules/sts}/endpoint/ruleset.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/extensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/models/STSServiceException.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/submodules/sts}/models/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/runtimeConfig.browser.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/runtimeConfig.native.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/runtimeConfig.shared.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/runtimeExtensions.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/auth/httpAuthExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/auth/httpAuthSchemeProvider.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/endpoint/EndpointParameters.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/endpoint/endpointResolver.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/endpoint/ruleset.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/extensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/models/SSOOIDCServiceException.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/models/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/runtimeConfig.shared.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/runtimeExtensions.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/auth/httpAuthExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/auth/httpAuthSchemeProvider.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/commands/AssumeRoleCommand.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/commands/AssumeRoleWithWebIdentityCommand.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/defaultRoleAssumers.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/defaultStsRoleAssumers.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/endpoint/EndpointParameters.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/endpoint/endpointResolver.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/endpoint/ruleset.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/extensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/models/STSServiceException.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/models/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/runtimeConfig.browser.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/runtimeConfig.native.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/runtimeConfig.shared.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/runtimeExtensions.d.ts +0 -0
@@ -1,1255 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
7
|
-
var __export = (target, all) => {
|
8
|
-
for (var name in all)
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
-
};
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
-
for (let key of __getOwnPropNames(from))
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
-
}
|
17
|
-
return to;
|
18
|
-
};
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
20
|
-
|
21
|
-
// src/index.ts
|
22
|
-
var src_exports = {};
|
23
|
-
__export(src_exports, {
|
24
|
-
AccessDeniedException: () => AccessDeniedException,
|
25
|
-
AuthorizationPendingException: () => AuthorizationPendingException,
|
26
|
-
CreateTokenCommand: () => CreateTokenCommand,
|
27
|
-
CreateTokenRequestFilterSensitiveLog: () => CreateTokenRequestFilterSensitiveLog,
|
28
|
-
CreateTokenResponseFilterSensitiveLog: () => CreateTokenResponseFilterSensitiveLog,
|
29
|
-
CreateTokenWithIAMCommand: () => CreateTokenWithIAMCommand,
|
30
|
-
CreateTokenWithIAMRequestFilterSensitiveLog: () => CreateTokenWithIAMRequestFilterSensitiveLog,
|
31
|
-
CreateTokenWithIAMResponseFilterSensitiveLog: () => CreateTokenWithIAMResponseFilterSensitiveLog,
|
32
|
-
ExpiredTokenException: () => ExpiredTokenException,
|
33
|
-
InternalServerException: () => InternalServerException,
|
34
|
-
InvalidClientException: () => InvalidClientException,
|
35
|
-
InvalidClientMetadataException: () => InvalidClientMetadataException,
|
36
|
-
InvalidGrantException: () => InvalidGrantException,
|
37
|
-
InvalidRedirectUriException: () => InvalidRedirectUriException,
|
38
|
-
InvalidRequestException: () => InvalidRequestException,
|
39
|
-
InvalidRequestRegionException: () => InvalidRequestRegionException,
|
40
|
-
InvalidScopeException: () => InvalidScopeException,
|
41
|
-
RegisterClientCommand: () => RegisterClientCommand,
|
42
|
-
RegisterClientResponseFilterSensitiveLog: () => RegisterClientResponseFilterSensitiveLog,
|
43
|
-
SSOOIDC: () => SSOOIDC,
|
44
|
-
SSOOIDCClient: () => SSOOIDCClient,
|
45
|
-
SSOOIDCServiceException: () => SSOOIDCServiceException,
|
46
|
-
SlowDownException: () => SlowDownException,
|
47
|
-
StartDeviceAuthorizationCommand: () => StartDeviceAuthorizationCommand,
|
48
|
-
StartDeviceAuthorizationRequestFilterSensitiveLog: () => StartDeviceAuthorizationRequestFilterSensitiveLog,
|
49
|
-
UnauthorizedClientException: () => UnauthorizedClientException,
|
50
|
-
UnsupportedGrantTypeException: () => UnsupportedGrantTypeException,
|
51
|
-
__Client: () => import_smithy_client.Client
|
52
|
-
});
|
53
|
-
module.exports = __toCommonJS(src_exports);
|
54
|
-
|
55
|
-
// src/SSOOIDCClient.ts
|
56
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
57
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
58
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
59
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
60
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
61
|
-
var import_core = require("@smithy/core");
|
62
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
63
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
64
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
65
|
-
|
66
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
67
|
-
|
68
|
-
// src/endpoint/EndpointParameters.ts
|
69
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
70
|
-
return {
|
71
|
-
...options,
|
72
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
73
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
74
|
-
defaultSigningName: "sso-oauth"
|
75
|
-
};
|
76
|
-
}, "resolveClientEndpointParameters");
|
77
|
-
var commonParams = {
|
78
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
79
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
80
|
-
Region: { type: "builtInParams", name: "region" },
|
81
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
82
|
-
};
|
83
|
-
|
84
|
-
// src/SSOOIDCClient.ts
|
85
|
-
var import_runtimeConfig = require("././runtimeConfig");
|
86
|
-
|
87
|
-
// src/runtimeExtensions.ts
|
88
|
-
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
89
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
90
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
91
|
-
|
92
|
-
// src/auth/httpAuthExtensionConfiguration.ts
|
93
|
-
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
94
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
95
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
96
|
-
let _credentials = runtimeConfig.credentials;
|
97
|
-
return {
|
98
|
-
setHttpAuthScheme(httpAuthScheme) {
|
99
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
100
|
-
if (index === -1) {
|
101
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
102
|
-
} else {
|
103
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
104
|
-
}
|
105
|
-
},
|
106
|
-
httpAuthSchemes() {
|
107
|
-
return _httpAuthSchemes;
|
108
|
-
},
|
109
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
110
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
111
|
-
},
|
112
|
-
httpAuthSchemeProvider() {
|
113
|
-
return _httpAuthSchemeProvider;
|
114
|
-
},
|
115
|
-
setCredentials(credentials) {
|
116
|
-
_credentials = credentials;
|
117
|
-
},
|
118
|
-
credentials() {
|
119
|
-
return _credentials;
|
120
|
-
}
|
121
|
-
};
|
122
|
-
}, "getHttpAuthExtensionConfiguration");
|
123
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
124
|
-
return {
|
125
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
126
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
127
|
-
credentials: config.credentials()
|
128
|
-
};
|
129
|
-
}, "resolveHttpAuthRuntimeConfig");
|
130
|
-
|
131
|
-
// src/runtimeExtensions.ts
|
132
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
133
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
134
|
-
const extensionConfiguration = {
|
135
|
-
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
136
|
-
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
137
|
-
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
138
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
|
139
|
-
};
|
140
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
141
|
-
return {
|
142
|
-
...runtimeConfig,
|
143
|
-
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
144
|
-
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
145
|
-
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
146
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
147
|
-
};
|
148
|
-
}, "resolveRuntimeExtensions");
|
149
|
-
|
150
|
-
// src/SSOOIDCClient.ts
|
151
|
-
var SSOOIDCClient = class extends import_smithy_client.Client {
|
152
|
-
static {
|
153
|
-
__name(this, "SSOOIDCClient");
|
154
|
-
}
|
155
|
-
/**
|
156
|
-
* The resolved configuration of SSOOIDCClient class. This is resolved and normalized from the {@link SSOOIDCClientConfig | constructor configuration interface}.
|
157
|
-
*/
|
158
|
-
config;
|
159
|
-
constructor(...[configuration]) {
|
160
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
161
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
162
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
163
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
164
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
165
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
166
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
167
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
168
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
169
|
-
super(_config_8);
|
170
|
-
this.config = _config_8;
|
171
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
172
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
173
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
174
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
175
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
176
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
177
|
-
this.middlewareStack.use(
|
178
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
179
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider,
|
180
|
-
identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
|
181
|
-
"aws.auth#sigv4": config.credentials
|
182
|
-
})
|
183
|
-
})
|
184
|
-
);
|
185
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
186
|
-
}
|
187
|
-
/**
|
188
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
189
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
190
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
191
|
-
*/
|
192
|
-
destroy() {
|
193
|
-
super.destroy();
|
194
|
-
}
|
195
|
-
};
|
196
|
-
|
197
|
-
// src/SSOOIDC.ts
|
198
|
-
|
199
|
-
|
200
|
-
// src/commands/CreateTokenCommand.ts
|
201
|
-
|
202
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
203
|
-
|
204
|
-
|
205
|
-
// src/models/models_0.ts
|
206
|
-
|
207
|
-
|
208
|
-
// src/models/SSOOIDCServiceException.ts
|
209
|
-
|
210
|
-
var SSOOIDCServiceException = class _SSOOIDCServiceException extends import_smithy_client.ServiceException {
|
211
|
-
static {
|
212
|
-
__name(this, "SSOOIDCServiceException");
|
213
|
-
}
|
214
|
-
/**
|
215
|
-
* @internal
|
216
|
-
*/
|
217
|
-
constructor(options) {
|
218
|
-
super(options);
|
219
|
-
Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype);
|
220
|
-
}
|
221
|
-
};
|
222
|
-
|
223
|
-
// src/models/models_0.ts
|
224
|
-
var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException {
|
225
|
-
static {
|
226
|
-
__name(this, "AccessDeniedException");
|
227
|
-
}
|
228
|
-
name = "AccessDeniedException";
|
229
|
-
$fault = "client";
|
230
|
-
/**
|
231
|
-
* <p>Single error code.
|
232
|
-
* For this exception the value will be <code>access_denied</code>.</p>
|
233
|
-
* @public
|
234
|
-
*/
|
235
|
-
error;
|
236
|
-
/**
|
237
|
-
* <p>Human-readable text providing additional information, used to assist the
|
238
|
-
* client developer in understanding the error that occurred.</p>
|
239
|
-
* @public
|
240
|
-
*/
|
241
|
-
error_description;
|
242
|
-
/**
|
243
|
-
* @internal
|
244
|
-
*/
|
245
|
-
constructor(opts) {
|
246
|
-
super({
|
247
|
-
name: "AccessDeniedException",
|
248
|
-
$fault: "client",
|
249
|
-
...opts
|
250
|
-
});
|
251
|
-
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
252
|
-
this.error = opts.error;
|
253
|
-
this.error_description = opts.error_description;
|
254
|
-
}
|
255
|
-
};
|
256
|
-
var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException {
|
257
|
-
static {
|
258
|
-
__name(this, "AuthorizationPendingException");
|
259
|
-
}
|
260
|
-
name = "AuthorizationPendingException";
|
261
|
-
$fault = "client";
|
262
|
-
/**
|
263
|
-
* <p>Single error code.
|
264
|
-
* For this exception the value will be <code>authorization_pending</code>.</p>
|
265
|
-
* @public
|
266
|
-
*/
|
267
|
-
error;
|
268
|
-
/**
|
269
|
-
* <p>Human-readable text providing additional information, used to assist the
|
270
|
-
* client developer in understanding the error that occurred.</p>
|
271
|
-
* @public
|
272
|
-
*/
|
273
|
-
error_description;
|
274
|
-
/**
|
275
|
-
* @internal
|
276
|
-
*/
|
277
|
-
constructor(opts) {
|
278
|
-
super({
|
279
|
-
name: "AuthorizationPendingException",
|
280
|
-
$fault: "client",
|
281
|
-
...opts
|
282
|
-
});
|
283
|
-
Object.setPrototypeOf(this, _AuthorizationPendingException.prototype);
|
284
|
-
this.error = opts.error;
|
285
|
-
this.error_description = opts.error_description;
|
286
|
-
}
|
287
|
-
};
|
288
|
-
var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException {
|
289
|
-
static {
|
290
|
-
__name(this, "ExpiredTokenException");
|
291
|
-
}
|
292
|
-
name = "ExpiredTokenException";
|
293
|
-
$fault = "client";
|
294
|
-
/**
|
295
|
-
* <p>Single error code.
|
296
|
-
* For this exception the value will be <code>expired_token</code>.</p>
|
297
|
-
* @public
|
298
|
-
*/
|
299
|
-
error;
|
300
|
-
/**
|
301
|
-
* <p>Human-readable text providing additional information, used to assist the
|
302
|
-
* client developer in understanding the error that occurred.</p>
|
303
|
-
* @public
|
304
|
-
*/
|
305
|
-
error_description;
|
306
|
-
/**
|
307
|
-
* @internal
|
308
|
-
*/
|
309
|
-
constructor(opts) {
|
310
|
-
super({
|
311
|
-
name: "ExpiredTokenException",
|
312
|
-
$fault: "client",
|
313
|
-
...opts
|
314
|
-
});
|
315
|
-
Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
|
316
|
-
this.error = opts.error;
|
317
|
-
this.error_description = opts.error_description;
|
318
|
-
}
|
319
|
-
};
|
320
|
-
var InternalServerException = class _InternalServerException extends SSOOIDCServiceException {
|
321
|
-
static {
|
322
|
-
__name(this, "InternalServerException");
|
323
|
-
}
|
324
|
-
name = "InternalServerException";
|
325
|
-
$fault = "server";
|
326
|
-
/**
|
327
|
-
* <p>Single error code.
|
328
|
-
* For this exception the value will be <code>server_error</code>.</p>
|
329
|
-
* @public
|
330
|
-
*/
|
331
|
-
error;
|
332
|
-
/**
|
333
|
-
* <p>Human-readable text providing additional information, used to assist the
|
334
|
-
* client developer in understanding the error that occurred.</p>
|
335
|
-
* @public
|
336
|
-
*/
|
337
|
-
error_description;
|
338
|
-
/**
|
339
|
-
* @internal
|
340
|
-
*/
|
341
|
-
constructor(opts) {
|
342
|
-
super({
|
343
|
-
name: "InternalServerException",
|
344
|
-
$fault: "server",
|
345
|
-
...opts
|
346
|
-
});
|
347
|
-
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
348
|
-
this.error = opts.error;
|
349
|
-
this.error_description = opts.error_description;
|
350
|
-
}
|
351
|
-
};
|
352
|
-
var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException {
|
353
|
-
static {
|
354
|
-
__name(this, "InvalidClientException");
|
355
|
-
}
|
356
|
-
name = "InvalidClientException";
|
357
|
-
$fault = "client";
|
358
|
-
/**
|
359
|
-
* <p>Single error code.
|
360
|
-
* For this exception the value will be <code>invalid_client</code>.</p>
|
361
|
-
* @public
|
362
|
-
*/
|
363
|
-
error;
|
364
|
-
/**
|
365
|
-
* <p>Human-readable text providing additional information, used to assist the
|
366
|
-
* client developer in understanding the error that occurred.</p>
|
367
|
-
* @public
|
368
|
-
*/
|
369
|
-
error_description;
|
370
|
-
/**
|
371
|
-
* @internal
|
372
|
-
*/
|
373
|
-
constructor(opts) {
|
374
|
-
super({
|
375
|
-
name: "InvalidClientException",
|
376
|
-
$fault: "client",
|
377
|
-
...opts
|
378
|
-
});
|
379
|
-
Object.setPrototypeOf(this, _InvalidClientException.prototype);
|
380
|
-
this.error = opts.error;
|
381
|
-
this.error_description = opts.error_description;
|
382
|
-
}
|
383
|
-
};
|
384
|
-
var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException {
|
385
|
-
static {
|
386
|
-
__name(this, "InvalidGrantException");
|
387
|
-
}
|
388
|
-
name = "InvalidGrantException";
|
389
|
-
$fault = "client";
|
390
|
-
/**
|
391
|
-
* <p>Single error code.
|
392
|
-
* For this exception the value will be <code>invalid_grant</code>.</p>
|
393
|
-
* @public
|
394
|
-
*/
|
395
|
-
error;
|
396
|
-
/**
|
397
|
-
* <p>Human-readable text providing additional information, used to assist the
|
398
|
-
* client developer in understanding the error that occurred.</p>
|
399
|
-
* @public
|
400
|
-
*/
|
401
|
-
error_description;
|
402
|
-
/**
|
403
|
-
* @internal
|
404
|
-
*/
|
405
|
-
constructor(opts) {
|
406
|
-
super({
|
407
|
-
name: "InvalidGrantException",
|
408
|
-
$fault: "client",
|
409
|
-
...opts
|
410
|
-
});
|
411
|
-
Object.setPrototypeOf(this, _InvalidGrantException.prototype);
|
412
|
-
this.error = opts.error;
|
413
|
-
this.error_description = opts.error_description;
|
414
|
-
}
|
415
|
-
};
|
416
|
-
var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException {
|
417
|
-
static {
|
418
|
-
__name(this, "InvalidRequestException");
|
419
|
-
}
|
420
|
-
name = "InvalidRequestException";
|
421
|
-
$fault = "client";
|
422
|
-
/**
|
423
|
-
* <p>Single error code.
|
424
|
-
* For this exception the value will be <code>invalid_request</code>.</p>
|
425
|
-
* @public
|
426
|
-
*/
|
427
|
-
error;
|
428
|
-
/**
|
429
|
-
* <p>Human-readable text providing additional information, used to assist the
|
430
|
-
* client developer in understanding the error that occurred.</p>
|
431
|
-
* @public
|
432
|
-
*/
|
433
|
-
error_description;
|
434
|
-
/**
|
435
|
-
* @internal
|
436
|
-
*/
|
437
|
-
constructor(opts) {
|
438
|
-
super({
|
439
|
-
name: "InvalidRequestException",
|
440
|
-
$fault: "client",
|
441
|
-
...opts
|
442
|
-
});
|
443
|
-
Object.setPrototypeOf(this, _InvalidRequestException.prototype);
|
444
|
-
this.error = opts.error;
|
445
|
-
this.error_description = opts.error_description;
|
446
|
-
}
|
447
|
-
};
|
448
|
-
var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException {
|
449
|
-
static {
|
450
|
-
__name(this, "InvalidScopeException");
|
451
|
-
}
|
452
|
-
name = "InvalidScopeException";
|
453
|
-
$fault = "client";
|
454
|
-
/**
|
455
|
-
* <p>Single error code.
|
456
|
-
* For this exception the value will be <code>invalid_scope</code>.</p>
|
457
|
-
* @public
|
458
|
-
*/
|
459
|
-
error;
|
460
|
-
/**
|
461
|
-
* <p>Human-readable text providing additional information, used to assist the
|
462
|
-
* client developer in understanding the error that occurred.</p>
|
463
|
-
* @public
|
464
|
-
*/
|
465
|
-
error_description;
|
466
|
-
/**
|
467
|
-
* @internal
|
468
|
-
*/
|
469
|
-
constructor(opts) {
|
470
|
-
super({
|
471
|
-
name: "InvalidScopeException",
|
472
|
-
$fault: "client",
|
473
|
-
...opts
|
474
|
-
});
|
475
|
-
Object.setPrototypeOf(this, _InvalidScopeException.prototype);
|
476
|
-
this.error = opts.error;
|
477
|
-
this.error_description = opts.error_description;
|
478
|
-
}
|
479
|
-
};
|
480
|
-
var SlowDownException = class _SlowDownException extends SSOOIDCServiceException {
|
481
|
-
static {
|
482
|
-
__name(this, "SlowDownException");
|
483
|
-
}
|
484
|
-
name = "SlowDownException";
|
485
|
-
$fault = "client";
|
486
|
-
/**
|
487
|
-
* <p>Single error code.
|
488
|
-
* For this exception the value will be <code>slow_down</code>.</p>
|
489
|
-
* @public
|
490
|
-
*/
|
491
|
-
error;
|
492
|
-
/**
|
493
|
-
* <p>Human-readable text providing additional information, used to assist the
|
494
|
-
* client developer in understanding the error that occurred.</p>
|
495
|
-
* @public
|
496
|
-
*/
|
497
|
-
error_description;
|
498
|
-
/**
|
499
|
-
* @internal
|
500
|
-
*/
|
501
|
-
constructor(opts) {
|
502
|
-
super({
|
503
|
-
name: "SlowDownException",
|
504
|
-
$fault: "client",
|
505
|
-
...opts
|
506
|
-
});
|
507
|
-
Object.setPrototypeOf(this, _SlowDownException.prototype);
|
508
|
-
this.error = opts.error;
|
509
|
-
this.error_description = opts.error_description;
|
510
|
-
}
|
511
|
-
};
|
512
|
-
var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException {
|
513
|
-
static {
|
514
|
-
__name(this, "UnauthorizedClientException");
|
515
|
-
}
|
516
|
-
name = "UnauthorizedClientException";
|
517
|
-
$fault = "client";
|
518
|
-
/**
|
519
|
-
* <p>Single error code.
|
520
|
-
* For this exception the value will be <code>unauthorized_client</code>.</p>
|
521
|
-
* @public
|
522
|
-
*/
|
523
|
-
error;
|
524
|
-
/**
|
525
|
-
* <p>Human-readable text providing additional information, used to assist the
|
526
|
-
* client developer in understanding the error that occurred.</p>
|
527
|
-
* @public
|
528
|
-
*/
|
529
|
-
error_description;
|
530
|
-
/**
|
531
|
-
* @internal
|
532
|
-
*/
|
533
|
-
constructor(opts) {
|
534
|
-
super({
|
535
|
-
name: "UnauthorizedClientException",
|
536
|
-
$fault: "client",
|
537
|
-
...opts
|
538
|
-
});
|
539
|
-
Object.setPrototypeOf(this, _UnauthorizedClientException.prototype);
|
540
|
-
this.error = opts.error;
|
541
|
-
this.error_description = opts.error_description;
|
542
|
-
}
|
543
|
-
};
|
544
|
-
var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
545
|
-
static {
|
546
|
-
__name(this, "UnsupportedGrantTypeException");
|
547
|
-
}
|
548
|
-
name = "UnsupportedGrantTypeException";
|
549
|
-
$fault = "client";
|
550
|
-
/**
|
551
|
-
* <p>Single error code.
|
552
|
-
* For this exception the value will be <code>unsupported_grant_type</code>.</p>
|
553
|
-
* @public
|
554
|
-
*/
|
555
|
-
error;
|
556
|
-
/**
|
557
|
-
* <p>Human-readable text providing additional information, used to assist the
|
558
|
-
* client developer in understanding the error that occurred.</p>
|
559
|
-
* @public
|
560
|
-
*/
|
561
|
-
error_description;
|
562
|
-
/**
|
563
|
-
* @internal
|
564
|
-
*/
|
565
|
-
constructor(opts) {
|
566
|
-
super({
|
567
|
-
name: "UnsupportedGrantTypeException",
|
568
|
-
$fault: "client",
|
569
|
-
...opts
|
570
|
-
});
|
571
|
-
Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype);
|
572
|
-
this.error = opts.error;
|
573
|
-
this.error_description = opts.error_description;
|
574
|
-
}
|
575
|
-
};
|
576
|
-
var InvalidRequestRegionException = class _InvalidRequestRegionException extends SSOOIDCServiceException {
|
577
|
-
static {
|
578
|
-
__name(this, "InvalidRequestRegionException");
|
579
|
-
}
|
580
|
-
name = "InvalidRequestRegionException";
|
581
|
-
$fault = "client";
|
582
|
-
/**
|
583
|
-
* <p>Single error code.
|
584
|
-
* For this exception the value will be <code>invalid_request</code>.</p>
|
585
|
-
* @public
|
586
|
-
*/
|
587
|
-
error;
|
588
|
-
/**
|
589
|
-
* <p>Human-readable text providing additional information, used to assist the
|
590
|
-
* client developer in understanding the error that occurred.</p>
|
591
|
-
* @public
|
592
|
-
*/
|
593
|
-
error_description;
|
594
|
-
/**
|
595
|
-
* <p>Indicates the IAM Identity Center endpoint which the requester may call with this token.</p>
|
596
|
-
* @public
|
597
|
-
*/
|
598
|
-
endpoint;
|
599
|
-
/**
|
600
|
-
* <p>Indicates the region which the requester may call with this token.</p>
|
601
|
-
* @public
|
602
|
-
*/
|
603
|
-
region;
|
604
|
-
/**
|
605
|
-
* @internal
|
606
|
-
*/
|
607
|
-
constructor(opts) {
|
608
|
-
super({
|
609
|
-
name: "InvalidRequestRegionException",
|
610
|
-
$fault: "client",
|
611
|
-
...opts
|
612
|
-
});
|
613
|
-
Object.setPrototypeOf(this, _InvalidRequestRegionException.prototype);
|
614
|
-
this.error = opts.error;
|
615
|
-
this.error_description = opts.error_description;
|
616
|
-
this.endpoint = opts.endpoint;
|
617
|
-
this.region = opts.region;
|
618
|
-
}
|
619
|
-
};
|
620
|
-
var InvalidClientMetadataException = class _InvalidClientMetadataException extends SSOOIDCServiceException {
|
621
|
-
static {
|
622
|
-
__name(this, "InvalidClientMetadataException");
|
623
|
-
}
|
624
|
-
name = "InvalidClientMetadataException";
|
625
|
-
$fault = "client";
|
626
|
-
/**
|
627
|
-
* <p>Single error code.
|
628
|
-
* For this exception the value will be <code>invalid_client_metadata</code>.</p>
|
629
|
-
* @public
|
630
|
-
*/
|
631
|
-
error;
|
632
|
-
/**
|
633
|
-
* <p>Human-readable text providing additional information, used to assist the
|
634
|
-
* client developer in understanding the error that occurred.</p>
|
635
|
-
* @public
|
636
|
-
*/
|
637
|
-
error_description;
|
638
|
-
/**
|
639
|
-
* @internal
|
640
|
-
*/
|
641
|
-
constructor(opts) {
|
642
|
-
super({
|
643
|
-
name: "InvalidClientMetadataException",
|
644
|
-
$fault: "client",
|
645
|
-
...opts
|
646
|
-
});
|
647
|
-
Object.setPrototypeOf(this, _InvalidClientMetadataException.prototype);
|
648
|
-
this.error = opts.error;
|
649
|
-
this.error_description = opts.error_description;
|
650
|
-
}
|
651
|
-
};
|
652
|
-
var InvalidRedirectUriException = class _InvalidRedirectUriException extends SSOOIDCServiceException {
|
653
|
-
static {
|
654
|
-
__name(this, "InvalidRedirectUriException");
|
655
|
-
}
|
656
|
-
name = "InvalidRedirectUriException";
|
657
|
-
$fault = "client";
|
658
|
-
/**
|
659
|
-
* <p>Single error code.
|
660
|
-
* For this exception the value will be <code>invalid_redirect_uri</code>.</p>
|
661
|
-
* @public
|
662
|
-
*/
|
663
|
-
error;
|
664
|
-
/**
|
665
|
-
* <p>Human-readable text providing additional information, used to assist the
|
666
|
-
* client developer in understanding the error that occurred.</p>
|
667
|
-
* @public
|
668
|
-
*/
|
669
|
-
error_description;
|
670
|
-
/**
|
671
|
-
* @internal
|
672
|
-
*/
|
673
|
-
constructor(opts) {
|
674
|
-
super({
|
675
|
-
name: "InvalidRedirectUriException",
|
676
|
-
$fault: "client",
|
677
|
-
...opts
|
678
|
-
});
|
679
|
-
Object.setPrototypeOf(this, _InvalidRedirectUriException.prototype);
|
680
|
-
this.error = opts.error;
|
681
|
-
this.error_description = opts.error_description;
|
682
|
-
}
|
683
|
-
};
|
684
|
-
var CreateTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
685
|
-
...obj,
|
686
|
-
...obj.clientSecret && { clientSecret: import_smithy_client.SENSITIVE_STRING },
|
687
|
-
...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING },
|
688
|
-
...obj.codeVerifier && { codeVerifier: import_smithy_client.SENSITIVE_STRING }
|
689
|
-
}), "CreateTokenRequestFilterSensitiveLog");
|
690
|
-
var CreateTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
691
|
-
...obj,
|
692
|
-
...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING },
|
693
|
-
...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING },
|
694
|
-
...obj.idToken && { idToken: import_smithy_client.SENSITIVE_STRING }
|
695
|
-
}), "CreateTokenResponseFilterSensitiveLog");
|
696
|
-
var CreateTokenWithIAMRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
697
|
-
...obj,
|
698
|
-
...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING },
|
699
|
-
...obj.assertion && { assertion: import_smithy_client.SENSITIVE_STRING },
|
700
|
-
...obj.subjectToken && { subjectToken: import_smithy_client.SENSITIVE_STRING },
|
701
|
-
...obj.codeVerifier && { codeVerifier: import_smithy_client.SENSITIVE_STRING }
|
702
|
-
}), "CreateTokenWithIAMRequestFilterSensitiveLog");
|
703
|
-
var CreateTokenWithIAMResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
704
|
-
...obj,
|
705
|
-
...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING },
|
706
|
-
...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING },
|
707
|
-
...obj.idToken && { idToken: import_smithy_client.SENSITIVE_STRING }
|
708
|
-
}), "CreateTokenWithIAMResponseFilterSensitiveLog");
|
709
|
-
var RegisterClientResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
710
|
-
...obj,
|
711
|
-
...obj.clientSecret && { clientSecret: import_smithy_client.SENSITIVE_STRING }
|
712
|
-
}), "RegisterClientResponseFilterSensitiveLog");
|
713
|
-
var StartDeviceAuthorizationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
714
|
-
...obj,
|
715
|
-
...obj.clientSecret && { clientSecret: import_smithy_client.SENSITIVE_STRING }
|
716
|
-
}), "StartDeviceAuthorizationRequestFilterSensitiveLog");
|
717
|
-
|
718
|
-
// src/protocols/Aws_restJson1.ts
|
719
|
-
var import_core2 = require("@aws-sdk/core");
|
720
|
-
|
721
|
-
|
722
|
-
var se_CreateTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
|
723
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
724
|
-
const headers = {
|
725
|
-
"content-type": "application/json"
|
726
|
-
};
|
727
|
-
b.bp("/token");
|
728
|
-
let body;
|
729
|
-
body = JSON.stringify(
|
730
|
-
(0, import_smithy_client.take)(input, {
|
731
|
-
clientId: [],
|
732
|
-
clientSecret: [],
|
733
|
-
code: [],
|
734
|
-
codeVerifier: [],
|
735
|
-
deviceCode: [],
|
736
|
-
grantType: [],
|
737
|
-
redirectUri: [],
|
738
|
-
refreshToken: [],
|
739
|
-
scope: (_) => (0, import_smithy_client._json)(_)
|
740
|
-
})
|
741
|
-
);
|
742
|
-
b.m("POST").h(headers).b(body);
|
743
|
-
return b.build();
|
744
|
-
}, "se_CreateTokenCommand");
|
745
|
-
var se_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (input, context) => {
|
746
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
747
|
-
const headers = {
|
748
|
-
"content-type": "application/json"
|
749
|
-
};
|
750
|
-
b.bp("/token");
|
751
|
-
const query = (0, import_smithy_client.map)({
|
752
|
-
[_ai]: [, "t"]
|
753
|
-
});
|
754
|
-
let body;
|
755
|
-
body = JSON.stringify(
|
756
|
-
(0, import_smithy_client.take)(input, {
|
757
|
-
assertion: [],
|
758
|
-
clientId: [],
|
759
|
-
code: [],
|
760
|
-
codeVerifier: [],
|
761
|
-
grantType: [],
|
762
|
-
redirectUri: [],
|
763
|
-
refreshToken: [],
|
764
|
-
requestedTokenType: [],
|
765
|
-
scope: (_) => (0, import_smithy_client._json)(_),
|
766
|
-
subjectToken: [],
|
767
|
-
subjectTokenType: []
|
768
|
-
})
|
769
|
-
);
|
770
|
-
b.m("POST").h(headers).q(query).b(body);
|
771
|
-
return b.build();
|
772
|
-
}, "se_CreateTokenWithIAMCommand");
|
773
|
-
var se_RegisterClientCommand = /* @__PURE__ */ __name(async (input, context) => {
|
774
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
775
|
-
const headers = {
|
776
|
-
"content-type": "application/json"
|
777
|
-
};
|
778
|
-
b.bp("/client/register");
|
779
|
-
let body;
|
780
|
-
body = JSON.stringify(
|
781
|
-
(0, import_smithy_client.take)(input, {
|
782
|
-
clientName: [],
|
783
|
-
clientType: [],
|
784
|
-
entitledApplicationArn: [],
|
785
|
-
grantTypes: (_) => (0, import_smithy_client._json)(_),
|
786
|
-
issuerUrl: [],
|
787
|
-
redirectUris: (_) => (0, import_smithy_client._json)(_),
|
788
|
-
scopes: (_) => (0, import_smithy_client._json)(_)
|
789
|
-
})
|
790
|
-
);
|
791
|
-
b.m("POST").h(headers).b(body);
|
792
|
-
return b.build();
|
793
|
-
}, "se_RegisterClientCommand");
|
794
|
-
var se_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
795
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
796
|
-
const headers = {
|
797
|
-
"content-type": "application/json"
|
798
|
-
};
|
799
|
-
b.bp("/device_authorization");
|
800
|
-
let body;
|
801
|
-
body = JSON.stringify(
|
802
|
-
(0, import_smithy_client.take)(input, {
|
803
|
-
clientId: [],
|
804
|
-
clientSecret: [],
|
805
|
-
startUrl: []
|
806
|
-
})
|
807
|
-
);
|
808
|
-
b.m("POST").h(headers).b(body);
|
809
|
-
return b.build();
|
810
|
-
}, "se_StartDeviceAuthorizationCommand");
|
811
|
-
var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
812
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
813
|
-
return de_CommandError(output, context);
|
814
|
-
}
|
815
|
-
const contents = (0, import_smithy_client.map)({
|
816
|
-
$metadata: deserializeMetadata(output)
|
817
|
-
});
|
818
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
819
|
-
const doc = (0, import_smithy_client.take)(data, {
|
820
|
-
accessToken: import_smithy_client.expectString,
|
821
|
-
expiresIn: import_smithy_client.expectInt32,
|
822
|
-
idToken: import_smithy_client.expectString,
|
823
|
-
refreshToken: import_smithy_client.expectString,
|
824
|
-
tokenType: import_smithy_client.expectString
|
825
|
-
});
|
826
|
-
Object.assign(contents, doc);
|
827
|
-
return contents;
|
828
|
-
}, "de_CreateTokenCommand");
|
829
|
-
var de_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (output, context) => {
|
830
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
831
|
-
return de_CommandError(output, context);
|
832
|
-
}
|
833
|
-
const contents = (0, import_smithy_client.map)({
|
834
|
-
$metadata: deserializeMetadata(output)
|
835
|
-
});
|
836
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
837
|
-
const doc = (0, import_smithy_client.take)(data, {
|
838
|
-
accessToken: import_smithy_client.expectString,
|
839
|
-
expiresIn: import_smithy_client.expectInt32,
|
840
|
-
idToken: import_smithy_client.expectString,
|
841
|
-
issuedTokenType: import_smithy_client.expectString,
|
842
|
-
refreshToken: import_smithy_client.expectString,
|
843
|
-
scope: import_smithy_client._json,
|
844
|
-
tokenType: import_smithy_client.expectString
|
845
|
-
});
|
846
|
-
Object.assign(contents, doc);
|
847
|
-
return contents;
|
848
|
-
}, "de_CreateTokenWithIAMCommand");
|
849
|
-
var de_RegisterClientCommand = /* @__PURE__ */ __name(async (output, context) => {
|
850
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
851
|
-
return de_CommandError(output, context);
|
852
|
-
}
|
853
|
-
const contents = (0, import_smithy_client.map)({
|
854
|
-
$metadata: deserializeMetadata(output)
|
855
|
-
});
|
856
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
857
|
-
const doc = (0, import_smithy_client.take)(data, {
|
858
|
-
authorizationEndpoint: import_smithy_client.expectString,
|
859
|
-
clientId: import_smithy_client.expectString,
|
860
|
-
clientIdIssuedAt: import_smithy_client.expectLong,
|
861
|
-
clientSecret: import_smithy_client.expectString,
|
862
|
-
clientSecretExpiresAt: import_smithy_client.expectLong,
|
863
|
-
tokenEndpoint: import_smithy_client.expectString
|
864
|
-
});
|
865
|
-
Object.assign(contents, doc);
|
866
|
-
return contents;
|
867
|
-
}, "de_RegisterClientCommand");
|
868
|
-
var de_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
869
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
870
|
-
return de_CommandError(output, context);
|
871
|
-
}
|
872
|
-
const contents = (0, import_smithy_client.map)({
|
873
|
-
$metadata: deserializeMetadata(output)
|
874
|
-
});
|
875
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
876
|
-
const doc = (0, import_smithy_client.take)(data, {
|
877
|
-
deviceCode: import_smithy_client.expectString,
|
878
|
-
expiresIn: import_smithy_client.expectInt32,
|
879
|
-
interval: import_smithy_client.expectInt32,
|
880
|
-
userCode: import_smithy_client.expectString,
|
881
|
-
verificationUri: import_smithy_client.expectString,
|
882
|
-
verificationUriComplete: import_smithy_client.expectString
|
883
|
-
});
|
884
|
-
Object.assign(contents, doc);
|
885
|
-
return contents;
|
886
|
-
}, "de_StartDeviceAuthorizationCommand");
|
887
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
888
|
-
const parsedOutput = {
|
889
|
-
...output,
|
890
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
891
|
-
};
|
892
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
893
|
-
switch (errorCode) {
|
894
|
-
case "AccessDeniedException":
|
895
|
-
case "com.amazonaws.ssooidc#AccessDeniedException":
|
896
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
897
|
-
case "AuthorizationPendingException":
|
898
|
-
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
899
|
-
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
900
|
-
case "ExpiredTokenException":
|
901
|
-
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
902
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
903
|
-
case "InternalServerException":
|
904
|
-
case "com.amazonaws.ssooidc#InternalServerException":
|
905
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
906
|
-
case "InvalidClientException":
|
907
|
-
case "com.amazonaws.ssooidc#InvalidClientException":
|
908
|
-
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
909
|
-
case "InvalidGrantException":
|
910
|
-
case "com.amazonaws.ssooidc#InvalidGrantException":
|
911
|
-
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
912
|
-
case "InvalidRequestException":
|
913
|
-
case "com.amazonaws.ssooidc#InvalidRequestException":
|
914
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
915
|
-
case "InvalidScopeException":
|
916
|
-
case "com.amazonaws.ssooidc#InvalidScopeException":
|
917
|
-
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
918
|
-
case "SlowDownException":
|
919
|
-
case "com.amazonaws.ssooidc#SlowDownException":
|
920
|
-
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
921
|
-
case "UnauthorizedClientException":
|
922
|
-
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
923
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
924
|
-
case "UnsupportedGrantTypeException":
|
925
|
-
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
926
|
-
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
927
|
-
case "InvalidRequestRegionException":
|
928
|
-
case "com.amazonaws.ssooidc#InvalidRequestRegionException":
|
929
|
-
throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context);
|
930
|
-
case "InvalidClientMetadataException":
|
931
|
-
case "com.amazonaws.ssooidc#InvalidClientMetadataException":
|
932
|
-
throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
|
933
|
-
case "InvalidRedirectUriException":
|
934
|
-
case "com.amazonaws.ssooidc#InvalidRedirectUriException":
|
935
|
-
throw await de_InvalidRedirectUriExceptionRes(parsedOutput, context);
|
936
|
-
default:
|
937
|
-
const parsedBody = parsedOutput.body;
|
938
|
-
return throwDefaultError({
|
939
|
-
output,
|
940
|
-
parsedBody,
|
941
|
-
errorCode
|
942
|
-
});
|
943
|
-
}
|
944
|
-
}, "de_CommandError");
|
945
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(SSOOIDCServiceException);
|
946
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
947
|
-
const contents = (0, import_smithy_client.map)({});
|
948
|
-
const data = parsedOutput.body;
|
949
|
-
const doc = (0, import_smithy_client.take)(data, {
|
950
|
-
error: import_smithy_client.expectString,
|
951
|
-
error_description: import_smithy_client.expectString
|
952
|
-
});
|
953
|
-
Object.assign(contents, doc);
|
954
|
-
const exception = new AccessDeniedException({
|
955
|
-
$metadata: deserializeMetadata(parsedOutput),
|
956
|
-
...contents
|
957
|
-
});
|
958
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
959
|
-
}, "de_AccessDeniedExceptionRes");
|
960
|
-
var de_AuthorizationPendingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
961
|
-
const contents = (0, import_smithy_client.map)({});
|
962
|
-
const data = parsedOutput.body;
|
963
|
-
const doc = (0, import_smithy_client.take)(data, {
|
964
|
-
error: import_smithy_client.expectString,
|
965
|
-
error_description: import_smithy_client.expectString
|
966
|
-
});
|
967
|
-
Object.assign(contents, doc);
|
968
|
-
const exception = new AuthorizationPendingException({
|
969
|
-
$metadata: deserializeMetadata(parsedOutput),
|
970
|
-
...contents
|
971
|
-
});
|
972
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
973
|
-
}, "de_AuthorizationPendingExceptionRes");
|
974
|
-
var de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
975
|
-
const contents = (0, import_smithy_client.map)({});
|
976
|
-
const data = parsedOutput.body;
|
977
|
-
const doc = (0, import_smithy_client.take)(data, {
|
978
|
-
error: import_smithy_client.expectString,
|
979
|
-
error_description: import_smithy_client.expectString
|
980
|
-
});
|
981
|
-
Object.assign(contents, doc);
|
982
|
-
const exception = new ExpiredTokenException({
|
983
|
-
$metadata: deserializeMetadata(parsedOutput),
|
984
|
-
...contents
|
985
|
-
});
|
986
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
987
|
-
}, "de_ExpiredTokenExceptionRes");
|
988
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
989
|
-
const contents = (0, import_smithy_client.map)({});
|
990
|
-
const data = parsedOutput.body;
|
991
|
-
const doc = (0, import_smithy_client.take)(data, {
|
992
|
-
error: import_smithy_client.expectString,
|
993
|
-
error_description: import_smithy_client.expectString
|
994
|
-
});
|
995
|
-
Object.assign(contents, doc);
|
996
|
-
const exception = new InternalServerException({
|
997
|
-
$metadata: deserializeMetadata(parsedOutput),
|
998
|
-
...contents
|
999
|
-
});
|
1000
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
1001
|
-
}, "de_InternalServerExceptionRes");
|
1002
|
-
var de_InvalidClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
1003
|
-
const contents = (0, import_smithy_client.map)({});
|
1004
|
-
const data = parsedOutput.body;
|
1005
|
-
const doc = (0, import_smithy_client.take)(data, {
|
1006
|
-
error: import_smithy_client.expectString,
|
1007
|
-
error_description: import_smithy_client.expectString
|
1008
|
-
});
|
1009
|
-
Object.assign(contents, doc);
|
1010
|
-
const exception = new InvalidClientException({
|
1011
|
-
$metadata: deserializeMetadata(parsedOutput),
|
1012
|
-
...contents
|
1013
|
-
});
|
1014
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
1015
|
-
}, "de_InvalidClientExceptionRes");
|
1016
|
-
var de_InvalidClientMetadataExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
1017
|
-
const contents = (0, import_smithy_client.map)({});
|
1018
|
-
const data = parsedOutput.body;
|
1019
|
-
const doc = (0, import_smithy_client.take)(data, {
|
1020
|
-
error: import_smithy_client.expectString,
|
1021
|
-
error_description: import_smithy_client.expectString
|
1022
|
-
});
|
1023
|
-
Object.assign(contents, doc);
|
1024
|
-
const exception = new InvalidClientMetadataException({
|
1025
|
-
$metadata: deserializeMetadata(parsedOutput),
|
1026
|
-
...contents
|
1027
|
-
});
|
1028
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
1029
|
-
}, "de_InvalidClientMetadataExceptionRes");
|
1030
|
-
var de_InvalidGrantExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
1031
|
-
const contents = (0, import_smithy_client.map)({});
|
1032
|
-
const data = parsedOutput.body;
|
1033
|
-
const doc = (0, import_smithy_client.take)(data, {
|
1034
|
-
error: import_smithy_client.expectString,
|
1035
|
-
error_description: import_smithy_client.expectString
|
1036
|
-
});
|
1037
|
-
Object.assign(contents, doc);
|
1038
|
-
const exception = new InvalidGrantException({
|
1039
|
-
$metadata: deserializeMetadata(parsedOutput),
|
1040
|
-
...contents
|
1041
|
-
});
|
1042
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
1043
|
-
}, "de_InvalidGrantExceptionRes");
|
1044
|
-
var de_InvalidRedirectUriExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
1045
|
-
const contents = (0, import_smithy_client.map)({});
|
1046
|
-
const data = parsedOutput.body;
|
1047
|
-
const doc = (0, import_smithy_client.take)(data, {
|
1048
|
-
error: import_smithy_client.expectString,
|
1049
|
-
error_description: import_smithy_client.expectString
|
1050
|
-
});
|
1051
|
-
Object.assign(contents, doc);
|
1052
|
-
const exception = new InvalidRedirectUriException({
|
1053
|
-
$metadata: deserializeMetadata(parsedOutput),
|
1054
|
-
...contents
|
1055
|
-
});
|
1056
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
1057
|
-
}, "de_InvalidRedirectUriExceptionRes");
|
1058
|
-
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
1059
|
-
const contents = (0, import_smithy_client.map)({});
|
1060
|
-
const data = parsedOutput.body;
|
1061
|
-
const doc = (0, import_smithy_client.take)(data, {
|
1062
|
-
error: import_smithy_client.expectString,
|
1063
|
-
error_description: import_smithy_client.expectString
|
1064
|
-
});
|
1065
|
-
Object.assign(contents, doc);
|
1066
|
-
const exception = new InvalidRequestException({
|
1067
|
-
$metadata: deserializeMetadata(parsedOutput),
|
1068
|
-
...contents
|
1069
|
-
});
|
1070
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
1071
|
-
}, "de_InvalidRequestExceptionRes");
|
1072
|
-
var de_InvalidRequestRegionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
1073
|
-
const contents = (0, import_smithy_client.map)({});
|
1074
|
-
const data = parsedOutput.body;
|
1075
|
-
const doc = (0, import_smithy_client.take)(data, {
|
1076
|
-
endpoint: import_smithy_client.expectString,
|
1077
|
-
error: import_smithy_client.expectString,
|
1078
|
-
error_description: import_smithy_client.expectString,
|
1079
|
-
region: import_smithy_client.expectString
|
1080
|
-
});
|
1081
|
-
Object.assign(contents, doc);
|
1082
|
-
const exception = new InvalidRequestRegionException({
|
1083
|
-
$metadata: deserializeMetadata(parsedOutput),
|
1084
|
-
...contents
|
1085
|
-
});
|
1086
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
1087
|
-
}, "de_InvalidRequestRegionExceptionRes");
|
1088
|
-
var de_InvalidScopeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
1089
|
-
const contents = (0, import_smithy_client.map)({});
|
1090
|
-
const data = parsedOutput.body;
|
1091
|
-
const doc = (0, import_smithy_client.take)(data, {
|
1092
|
-
error: import_smithy_client.expectString,
|
1093
|
-
error_description: import_smithy_client.expectString
|
1094
|
-
});
|
1095
|
-
Object.assign(contents, doc);
|
1096
|
-
const exception = new InvalidScopeException({
|
1097
|
-
$metadata: deserializeMetadata(parsedOutput),
|
1098
|
-
...contents
|
1099
|
-
});
|
1100
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
1101
|
-
}, "de_InvalidScopeExceptionRes");
|
1102
|
-
var de_SlowDownExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
1103
|
-
const contents = (0, import_smithy_client.map)({});
|
1104
|
-
const data = parsedOutput.body;
|
1105
|
-
const doc = (0, import_smithy_client.take)(data, {
|
1106
|
-
error: import_smithy_client.expectString,
|
1107
|
-
error_description: import_smithy_client.expectString
|
1108
|
-
});
|
1109
|
-
Object.assign(contents, doc);
|
1110
|
-
const exception = new SlowDownException({
|
1111
|
-
$metadata: deserializeMetadata(parsedOutput),
|
1112
|
-
...contents
|
1113
|
-
});
|
1114
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
1115
|
-
}, "de_SlowDownExceptionRes");
|
1116
|
-
var de_UnauthorizedClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
1117
|
-
const contents = (0, import_smithy_client.map)({});
|
1118
|
-
const data = parsedOutput.body;
|
1119
|
-
const doc = (0, import_smithy_client.take)(data, {
|
1120
|
-
error: import_smithy_client.expectString,
|
1121
|
-
error_description: import_smithy_client.expectString
|
1122
|
-
});
|
1123
|
-
Object.assign(contents, doc);
|
1124
|
-
const exception = new UnauthorizedClientException({
|
1125
|
-
$metadata: deserializeMetadata(parsedOutput),
|
1126
|
-
...contents
|
1127
|
-
});
|
1128
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
1129
|
-
}, "de_UnauthorizedClientExceptionRes");
|
1130
|
-
var de_UnsupportedGrantTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
1131
|
-
const contents = (0, import_smithy_client.map)({});
|
1132
|
-
const data = parsedOutput.body;
|
1133
|
-
const doc = (0, import_smithy_client.take)(data, {
|
1134
|
-
error: import_smithy_client.expectString,
|
1135
|
-
error_description: import_smithy_client.expectString
|
1136
|
-
});
|
1137
|
-
Object.assign(contents, doc);
|
1138
|
-
const exception = new UnsupportedGrantTypeException({
|
1139
|
-
$metadata: deserializeMetadata(parsedOutput),
|
1140
|
-
...contents
|
1141
|
-
});
|
1142
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
1143
|
-
}, "de_UnsupportedGrantTypeExceptionRes");
|
1144
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
1145
|
-
httpStatusCode: output.statusCode,
|
1146
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
1147
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
1148
|
-
cfId: output.headers["x-amz-cf-id"]
|
1149
|
-
}), "deserializeMetadata");
|
1150
|
-
var _ai = "aws_iam";
|
1151
|
-
|
1152
|
-
// src/commands/CreateTokenCommand.ts
|
1153
|
-
var CreateTokenCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
1154
|
-
return [
|
1155
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
1156
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
1157
|
-
];
|
1158
|
-
}).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").f(CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog).ser(se_CreateTokenCommand).de(de_CreateTokenCommand).build() {
|
1159
|
-
static {
|
1160
|
-
__name(this, "CreateTokenCommand");
|
1161
|
-
}
|
1162
|
-
};
|
1163
|
-
|
1164
|
-
// src/commands/CreateTokenWithIAMCommand.ts
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
var CreateTokenWithIAMCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
1169
|
-
return [
|
1170
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
1171
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
1172
|
-
];
|
1173
|
-
}).s("AWSSSOOIDCService", "CreateTokenWithIAM", {}).n("SSOOIDCClient", "CreateTokenWithIAMCommand").f(CreateTokenWithIAMRequestFilterSensitiveLog, CreateTokenWithIAMResponseFilterSensitiveLog).ser(se_CreateTokenWithIAMCommand).de(de_CreateTokenWithIAMCommand).build() {
|
1174
|
-
static {
|
1175
|
-
__name(this, "CreateTokenWithIAMCommand");
|
1176
|
-
}
|
1177
|
-
};
|
1178
|
-
|
1179
|
-
// src/commands/RegisterClientCommand.ts
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
var RegisterClientCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
1184
|
-
return [
|
1185
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
1186
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
1187
|
-
];
|
1188
|
-
}).s("AWSSSOOIDCService", "RegisterClient", {}).n("SSOOIDCClient", "RegisterClientCommand").f(void 0, RegisterClientResponseFilterSensitiveLog).ser(se_RegisterClientCommand).de(de_RegisterClientCommand).build() {
|
1189
|
-
static {
|
1190
|
-
__name(this, "RegisterClientCommand");
|
1191
|
-
}
|
1192
|
-
};
|
1193
|
-
|
1194
|
-
// src/commands/StartDeviceAuthorizationCommand.ts
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
var StartDeviceAuthorizationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
1199
|
-
return [
|
1200
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
1201
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
1202
|
-
];
|
1203
|
-
}).s("AWSSSOOIDCService", "StartDeviceAuthorization", {}).n("SSOOIDCClient", "StartDeviceAuthorizationCommand").f(StartDeviceAuthorizationRequestFilterSensitiveLog, void 0).ser(se_StartDeviceAuthorizationCommand).de(de_StartDeviceAuthorizationCommand).build() {
|
1204
|
-
static {
|
1205
|
-
__name(this, "StartDeviceAuthorizationCommand");
|
1206
|
-
}
|
1207
|
-
};
|
1208
|
-
|
1209
|
-
// src/SSOOIDC.ts
|
1210
|
-
var commands = {
|
1211
|
-
CreateTokenCommand,
|
1212
|
-
CreateTokenWithIAMCommand,
|
1213
|
-
RegisterClientCommand,
|
1214
|
-
StartDeviceAuthorizationCommand
|
1215
|
-
};
|
1216
|
-
var SSOOIDC = class extends SSOOIDCClient {
|
1217
|
-
static {
|
1218
|
-
__name(this, "SSOOIDC");
|
1219
|
-
}
|
1220
|
-
};
|
1221
|
-
(0, import_smithy_client.createAggregatedClient)(commands, SSOOIDC);
|
1222
|
-
// Annotate the CommonJS export names for ESM import in node:
|
1223
|
-
|
1224
|
-
0 && (module.exports = {
|
1225
|
-
SSOOIDCServiceException,
|
1226
|
-
__Client,
|
1227
|
-
SSOOIDCClient,
|
1228
|
-
SSOOIDC,
|
1229
|
-
$Command,
|
1230
|
-
CreateTokenCommand,
|
1231
|
-
CreateTokenWithIAMCommand,
|
1232
|
-
RegisterClientCommand,
|
1233
|
-
StartDeviceAuthorizationCommand,
|
1234
|
-
AccessDeniedException,
|
1235
|
-
AuthorizationPendingException,
|
1236
|
-
ExpiredTokenException,
|
1237
|
-
InternalServerException,
|
1238
|
-
InvalidClientException,
|
1239
|
-
InvalidGrantException,
|
1240
|
-
InvalidRequestException,
|
1241
|
-
InvalidScopeException,
|
1242
|
-
SlowDownException,
|
1243
|
-
UnauthorizedClientException,
|
1244
|
-
UnsupportedGrantTypeException,
|
1245
|
-
InvalidRequestRegionException,
|
1246
|
-
InvalidClientMetadataException,
|
1247
|
-
InvalidRedirectUriException,
|
1248
|
-
CreateTokenRequestFilterSensitiveLog,
|
1249
|
-
CreateTokenResponseFilterSensitiveLog,
|
1250
|
-
CreateTokenWithIAMRequestFilterSensitiveLog,
|
1251
|
-
CreateTokenWithIAMResponseFilterSensitiveLog,
|
1252
|
-
RegisterClientResponseFilterSensitiveLog,
|
1253
|
-
StartDeviceAuthorizationRequestFilterSensitiveLog
|
1254
|
-
});
|
1255
|
-
|