@cdk8s/awscdk-resolver 0.0.53 → 0.0.55
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/dist-cjs/index.js +91 -90
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +6 -2
- package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -13
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +14 -13
- package/node_modules/@aws-sdk/client-sso/package.json +10 -10
- package/node_modules/@aws-sdk/client-sso-oidc/LICENSE +201 -0
- package/node_modules/@aws-sdk/client-sso-oidc/README.md +274 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenWithIAMCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/credentialDefaultProvider.js +29 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/EndpointParameters.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +7 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/extensionConfiguration.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +1115 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/models_0.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.browser.js +39 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +49 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.native.js +15 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +24 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeExtensions.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js +15 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +38 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js +27 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/index.js +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/credentialDefaultProvider.js +3 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/EndpointParameters.js +14 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/extensionConfiguration.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +6 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +217 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +553 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.browser.js +34 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +44 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.native.js +11 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js +20 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js +18 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +75 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +210 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +161 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +243 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +107 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +110 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/credentialDefaultProvider.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/extensionConfiguration.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +51 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/SSOOIDCServiceException.d.ts +13 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +734 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/protocols/Aws_restJson1.d.ts +38 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +46 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +46 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +45 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeExtensions.d.ts +17 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDC.d.ts +73 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +142 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +26 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +29 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/credentialDefaultProvider.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/models_0.d.ts +201 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +53 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +103 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +1 -29
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +1 -29
- package/node_modules/@aws-sdk/client-sts/dist-cjs/credentialDefaultProvider.js +29 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js +1 -78
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1423 -85
- package/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +1 -12
- package/node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js +1 -149
- package/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +1 -1084
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +3 -4
- package/node_modules/@aws-sdk/client-sts/dist-es/credentialDefaultProvider.js +3 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +3 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/credentialDefaultProvider.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +8 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/credentialDefaultProvider.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +26 -14
- package/node_modules/@aws-sdk/client-sts/package.json +14 -12
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +5 -3
- package/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +4 -1
- package/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/fromEnv.d.ts +5 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +69 -38
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/loadSts.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/loadSts.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js +4 -6
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +8 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js +9 -6
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +8 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts +1 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +5 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +8 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveCredentialSource.d.ts +4 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProcessCredentials.d.ts +1 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveStaticCredentials.d.ts +3 -1
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -6
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +70 -19
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +35 -7
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/defaultProvider.d.ts +33 -18
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/remoteProvider.d.ts +6 -3
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts +11 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/remoteProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/fromProcess.d.ts +4 -1
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +28 -7
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +7 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +4 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/loadSso.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts +6 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/loadSso.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +5 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +7 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/loadSts.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +6 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/loadSts.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +4 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts +14 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromTokenFile.d.ts +7 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +12 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -2
- package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/middleware-signing/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +4 -4
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +28 -25
- package/node_modules/@aws-sdk/token-providers/dist-cjs/loadSsoOidc.js +1 -0
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +1 -0
- package/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +3 -3
- package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-es/index.js +0 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/loadSsoOidc.js +2 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +3 -3
- 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/index.d.ts +0 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/loadSsoOidc.d.ts +2 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +7 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +7 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +0 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/loadSsoOidc.d.ts +2 -0
- package/node_modules/@aws-sdk/token-providers/package.json +6 -43
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +3 -171
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +15 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +4 -0
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +4 -24
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-browser.js +0 -1032
- package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js +0 -1038
- package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-browser.js +0 -1010
- package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js +0 -1017
- package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-browser.d.ts +0 -191
- package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-node.d.ts +0 -191
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-browser.d.ts +0 -235
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-node.d.ts +0 -235
@@ -1,1038 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.SSOOIDCClient = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.CreateTokenCommand = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0;
|
4
|
-
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
5
|
-
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
6
|
-
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
7
|
-
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
8
|
-
const config_resolver_1 = require("@smithy/config-resolver");
|
9
|
-
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
10
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
11
|
-
const middleware_retry_1 = require("@smithy/middleware-retry");
|
12
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
13
|
-
var resolveClientEndpointParameters = (options) => {
|
14
|
-
var _a, _b;
|
15
|
-
return {
|
16
|
-
...options,
|
17
|
-
useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false,
|
18
|
-
useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false,
|
19
|
-
defaultSigningName: "awsssooidc",
|
20
|
-
};
|
21
|
-
};
|
22
|
-
var package_default = { version: "3.429.0" };
|
23
|
-
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
24
|
-
const config_resolver_2 = require("@smithy/config-resolver");
|
25
|
-
const hash_node_1 = require("@smithy/hash-node");
|
26
|
-
const middleware_retry_2 = require("@smithy/middleware-retry");
|
27
|
-
const node_config_provider_1 = require("@smithy/node-config-provider");
|
28
|
-
const node_http_handler_1 = require("@smithy/node-http-handler");
|
29
|
-
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
30
|
-
const util_retry_1 = require("@smithy/util-retry");
|
31
|
-
const smithy_client_2 = require("@smithy/smithy-client");
|
32
|
-
const url_parser_1 = require("@smithy/url-parser");
|
33
|
-
const util_base64_1 = require("@smithy/util-base64");
|
34
|
-
const util_utf8_1 = require("@smithy/util-utf8");
|
35
|
-
const util_endpoints_1 = require("@smithy/util-endpoints");
|
36
|
-
var s = "required";
|
37
|
-
var t = "fn";
|
38
|
-
var u = "argv";
|
39
|
-
var v = "ref";
|
40
|
-
var a = "isSet";
|
41
|
-
var b = "tree";
|
42
|
-
var c = "error";
|
43
|
-
var d = "endpoint";
|
44
|
-
var e = "PartitionResult";
|
45
|
-
var f = "getAttr";
|
46
|
-
var g = { [s]: false, type: "String" };
|
47
|
-
var h = { [s]: true, default: false, type: "Boolean" };
|
48
|
-
var i = { [v]: "Endpoint" };
|
49
|
-
var j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] };
|
50
|
-
var k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] };
|
51
|
-
var l = {};
|
52
|
-
var m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] };
|
53
|
-
var n = { [v]: e };
|
54
|
-
var o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] };
|
55
|
-
var p = [j];
|
56
|
-
var q = [k];
|
57
|
-
var r = [{ [v]: "Region" }];
|
58
|
-
var _data = {
|
59
|
-
version: "1.0",
|
60
|
-
parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g },
|
61
|
-
rules: [
|
62
|
-
{
|
63
|
-
conditions: [{ [t]: a, [u]: [i] }],
|
64
|
-
type: b,
|
65
|
-
rules: [
|
66
|
-
{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c },
|
67
|
-
{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c },
|
68
|
-
{ endpoint: { url: i, properties: l, headers: l }, type: d },
|
69
|
-
],
|
70
|
-
},
|
71
|
-
{
|
72
|
-
conditions: [{ [t]: a, [u]: r }],
|
73
|
-
type: b,
|
74
|
-
rules: [
|
75
|
-
{
|
76
|
-
conditions: [{ [t]: "aws.partition", [u]: r, assign: e }],
|
77
|
-
type: b,
|
78
|
-
rules: [
|
79
|
-
{
|
80
|
-
conditions: [j, k],
|
81
|
-
type: b,
|
82
|
-
rules: [
|
83
|
-
{
|
84
|
-
conditions: [m, o],
|
85
|
-
type: b,
|
86
|
-
rules: [
|
87
|
-
{
|
88
|
-
endpoint: {
|
89
|
-
url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
90
|
-
properties: l,
|
91
|
-
headers: l,
|
92
|
-
},
|
93
|
-
type: d,
|
94
|
-
},
|
95
|
-
],
|
96
|
-
},
|
97
|
-
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c },
|
98
|
-
],
|
99
|
-
},
|
100
|
-
{
|
101
|
-
conditions: p,
|
102
|
-
type: b,
|
103
|
-
rules: [
|
104
|
-
{
|
105
|
-
conditions: [m],
|
106
|
-
type: b,
|
107
|
-
rules: [
|
108
|
-
{
|
109
|
-
conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }],
|
110
|
-
endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: l, headers: l },
|
111
|
-
type: d,
|
112
|
-
},
|
113
|
-
{
|
114
|
-
endpoint: {
|
115
|
-
url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",
|
116
|
-
properties: l,
|
117
|
-
headers: l,
|
118
|
-
},
|
119
|
-
type: d,
|
120
|
-
},
|
121
|
-
],
|
122
|
-
},
|
123
|
-
{ error: "FIPS is enabled but this partition does not support FIPS", type: c },
|
124
|
-
],
|
125
|
-
},
|
126
|
-
{
|
127
|
-
conditions: q,
|
128
|
-
type: b,
|
129
|
-
rules: [
|
130
|
-
{
|
131
|
-
conditions: [o],
|
132
|
-
type: b,
|
133
|
-
rules: [
|
134
|
-
{
|
135
|
-
endpoint: {
|
136
|
-
url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
137
|
-
properties: l,
|
138
|
-
headers: l,
|
139
|
-
},
|
140
|
-
type: d,
|
141
|
-
},
|
142
|
-
],
|
143
|
-
},
|
144
|
-
{ error: "DualStack is enabled but this partition does not support DualStack", type: c },
|
145
|
-
],
|
146
|
-
},
|
147
|
-
{
|
148
|
-
endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l },
|
149
|
-
type: d,
|
150
|
-
},
|
151
|
-
],
|
152
|
-
},
|
153
|
-
],
|
154
|
-
},
|
155
|
-
{ error: "Invalid Configuration: Missing Region", type: c },
|
156
|
-
],
|
157
|
-
};
|
158
|
-
var ruleSet = _data;
|
159
|
-
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
160
|
-
return (0, util_endpoints_1.resolveEndpoint)(ruleSet, {
|
161
|
-
endpointParams,
|
162
|
-
logger: context.logger,
|
163
|
-
});
|
164
|
-
};
|
165
|
-
var getRuntimeConfig = (config) => {
|
166
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
167
|
-
return ({
|
168
|
-
apiVersion: "2019-06-10",
|
169
|
-
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_1.fromBase64,
|
170
|
-
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_1.toBase64,
|
171
|
-
disableHostPrefix: (_c = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _c !== void 0 ? _c : false,
|
172
|
-
endpointProvider: (_d = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _d !== void 0 ? _d : defaultEndpointResolver,
|
173
|
-
extensions: (_e = config === null || config === void 0 ? void 0 : config.extensions) !== null && _e !== void 0 ? _e : [],
|
174
|
-
logger: (_f = config === null || config === void 0 ? void 0 : config.logger) !== null && _f !== void 0 ? _f : new smithy_client_2.NoOpLogger(),
|
175
|
-
serviceId: (_g = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _g !== void 0 ? _g : "SSO OIDC",
|
176
|
-
urlParser: (_h = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _h !== void 0 ? _h : url_parser_1.parseUrl,
|
177
|
-
utf8Decoder: (_j = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _j !== void 0 ? _j : util_utf8_1.fromUtf8,
|
178
|
-
utf8Encoder: (_k = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _k !== void 0 ? _k : util_utf8_1.toUtf8,
|
179
|
-
});
|
180
|
-
};
|
181
|
-
const smithy_client_3 = require("@smithy/smithy-client");
|
182
|
-
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
183
|
-
const smithy_client_4 = require("@smithy/smithy-client");
|
184
|
-
var getRuntimeConfig2 = (config) => {
|
185
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
186
|
-
(0, smithy_client_4.emitWarningIfUnsupportedVersion)(process.version);
|
187
|
-
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
188
|
-
const defaultConfigProvider = () => defaultsMode().then(smithy_client_3.loadConfigsForDefaultMode);
|
189
|
-
const clientSharedValues = getRuntimeConfig(config);
|
190
|
-
return {
|
191
|
-
...clientSharedValues,
|
192
|
-
...config,
|
193
|
-
runtime: "node",
|
194
|
-
defaultsMode,
|
195
|
-
bodyLengthChecker: (_a = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _a !== void 0 ? _a : util_body_length_node_1.calculateBodyLength,
|
196
|
-
defaultUserAgentProvider: (_b = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _b !== void 0 ? _b : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
|
197
|
-
maxAttempts: (_c = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _c !== void 0 ? _c : (0, node_config_provider_1.loadConfig)(middleware_retry_2.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
198
|
-
region: (_d = config === null || config === void 0 ? void 0 : config.region) !== null && _d !== void 0 ? _d : (0, node_config_provider_1.loadConfig)(config_resolver_2.NODE_REGION_CONFIG_OPTIONS, config_resolver_2.NODE_REGION_CONFIG_FILE_OPTIONS),
|
199
|
-
requestHandler: (_e = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _e !== void 0 ? _e : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
200
|
-
retryMode: (_f = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)({
|
201
|
-
...middleware_retry_2.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
202
|
-
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
203
|
-
}),
|
204
|
-
sha256: (_g = config === null || config === void 0 ? void 0 : config.sha256) !== null && _g !== void 0 ? _g : hash_node_1.Hash.bind(null, "sha256"),
|
205
|
-
streamCollector: (_h = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _h !== void 0 ? _h : node_http_handler_1.streamCollector,
|
206
|
-
useDualstackEndpoint: (_j = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)(config_resolver_2.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
207
|
-
useFipsEndpoint: (_k = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _k !== void 0 ? _k : (0, node_config_provider_1.loadConfig)(config_resolver_2.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
208
|
-
};
|
209
|
-
};
|
210
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
211
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
212
|
-
const smithy_client_5 = require("@smithy/smithy-client");
|
213
|
-
var asPartial = (t2) => t2;
|
214
|
-
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
215
|
-
const extensionConfiguration = {
|
216
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
217
|
-
...asPartial((0, smithy_client_5.getDefaultExtensionConfiguration)(runtimeConfig)),
|
218
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
219
|
-
};
|
220
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
221
|
-
return {
|
222
|
-
...runtimeConfig,
|
223
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
224
|
-
...(0, smithy_client_5.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
225
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
226
|
-
};
|
227
|
-
};
|
228
|
-
var SSOOIDCClient = class extends smithy_client_1.Client {
|
229
|
-
constructor(...[configuration]) {
|
230
|
-
const _config_0 = getRuntimeConfig2(configuration || {});
|
231
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
232
|
-
const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
|
233
|
-
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
|
234
|
-
const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
|
235
|
-
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
236
|
-
const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
|
237
|
-
const _config_7 = resolveRuntimeExtensions(_config_6, (configuration === null || configuration === void 0 ? void 0 : configuration.extensions) || []);
|
238
|
-
super(_config_7);
|
239
|
-
this.config = _config_7;
|
240
|
-
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
241
|
-
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
242
|
-
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
243
|
-
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
244
|
-
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
245
|
-
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
246
|
-
}
|
247
|
-
destroy() {
|
248
|
-
super.destroy();
|
249
|
-
}
|
250
|
-
};
|
251
|
-
exports.SSOOIDCClient = SSOOIDCClient;
|
252
|
-
const smithy_client_6 = require("@smithy/smithy-client");
|
253
|
-
const middleware_endpoint_2 = require("@smithy/middleware-endpoint");
|
254
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
255
|
-
const smithy_client_7 = require("@smithy/smithy-client");
|
256
|
-
const types_1 = require("@smithy/types");
|
257
|
-
const protocol_http_2 = require("@smithy/protocol-http");
|
258
|
-
const smithy_client_8 = require("@smithy/smithy-client");
|
259
|
-
const smithy_client_9 = require("@smithy/smithy-client");
|
260
|
-
var SSOOIDCServiceException = class _SSOOIDCServiceException extends smithy_client_9.ServiceException {
|
261
|
-
constructor(options) {
|
262
|
-
super(options);
|
263
|
-
Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype);
|
264
|
-
}
|
265
|
-
};
|
266
|
-
var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException {
|
267
|
-
constructor(opts) {
|
268
|
-
super({
|
269
|
-
name: "AccessDeniedException",
|
270
|
-
$fault: "client",
|
271
|
-
...opts,
|
272
|
-
});
|
273
|
-
this.name = "AccessDeniedException";
|
274
|
-
this.$fault = "client";
|
275
|
-
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
276
|
-
this.error = opts.error;
|
277
|
-
this.error_description = opts.error_description;
|
278
|
-
}
|
279
|
-
};
|
280
|
-
exports.AccessDeniedException = AccessDeniedException;
|
281
|
-
var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException {
|
282
|
-
constructor(opts) {
|
283
|
-
super({
|
284
|
-
name: "AuthorizationPendingException",
|
285
|
-
$fault: "client",
|
286
|
-
...opts,
|
287
|
-
});
|
288
|
-
this.name = "AuthorizationPendingException";
|
289
|
-
this.$fault = "client";
|
290
|
-
Object.setPrototypeOf(this, _AuthorizationPendingException.prototype);
|
291
|
-
this.error = opts.error;
|
292
|
-
this.error_description = opts.error_description;
|
293
|
-
}
|
294
|
-
};
|
295
|
-
exports.AuthorizationPendingException = AuthorizationPendingException;
|
296
|
-
var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException {
|
297
|
-
constructor(opts) {
|
298
|
-
super({
|
299
|
-
name: "ExpiredTokenException",
|
300
|
-
$fault: "client",
|
301
|
-
...opts,
|
302
|
-
});
|
303
|
-
this.name = "ExpiredTokenException";
|
304
|
-
this.$fault = "client";
|
305
|
-
Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
|
306
|
-
this.error = opts.error;
|
307
|
-
this.error_description = opts.error_description;
|
308
|
-
}
|
309
|
-
};
|
310
|
-
exports.ExpiredTokenException = ExpiredTokenException;
|
311
|
-
var InternalServerException = class _InternalServerException extends SSOOIDCServiceException {
|
312
|
-
constructor(opts) {
|
313
|
-
super({
|
314
|
-
name: "InternalServerException",
|
315
|
-
$fault: "server",
|
316
|
-
...opts,
|
317
|
-
});
|
318
|
-
this.name = "InternalServerException";
|
319
|
-
this.$fault = "server";
|
320
|
-
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
321
|
-
this.error = opts.error;
|
322
|
-
this.error_description = opts.error_description;
|
323
|
-
}
|
324
|
-
};
|
325
|
-
exports.InternalServerException = InternalServerException;
|
326
|
-
var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException {
|
327
|
-
constructor(opts) {
|
328
|
-
super({
|
329
|
-
name: "InvalidClientException",
|
330
|
-
$fault: "client",
|
331
|
-
...opts,
|
332
|
-
});
|
333
|
-
this.name = "InvalidClientException";
|
334
|
-
this.$fault = "client";
|
335
|
-
Object.setPrototypeOf(this, _InvalidClientException.prototype);
|
336
|
-
this.error = opts.error;
|
337
|
-
this.error_description = opts.error_description;
|
338
|
-
}
|
339
|
-
};
|
340
|
-
exports.InvalidClientException = InvalidClientException;
|
341
|
-
var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException {
|
342
|
-
constructor(opts) {
|
343
|
-
super({
|
344
|
-
name: "InvalidGrantException",
|
345
|
-
$fault: "client",
|
346
|
-
...opts,
|
347
|
-
});
|
348
|
-
this.name = "InvalidGrantException";
|
349
|
-
this.$fault = "client";
|
350
|
-
Object.setPrototypeOf(this, _InvalidGrantException.prototype);
|
351
|
-
this.error = opts.error;
|
352
|
-
this.error_description = opts.error_description;
|
353
|
-
}
|
354
|
-
};
|
355
|
-
var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException {
|
356
|
-
constructor(opts) {
|
357
|
-
super({
|
358
|
-
name: "InvalidRequestException",
|
359
|
-
$fault: "client",
|
360
|
-
...opts,
|
361
|
-
});
|
362
|
-
this.name = "InvalidRequestException";
|
363
|
-
this.$fault = "client";
|
364
|
-
Object.setPrototypeOf(this, _InvalidRequestException.prototype);
|
365
|
-
this.error = opts.error;
|
366
|
-
this.error_description = opts.error_description;
|
367
|
-
}
|
368
|
-
};
|
369
|
-
exports.InvalidRequestException = InvalidRequestException;
|
370
|
-
var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException {
|
371
|
-
constructor(opts) {
|
372
|
-
super({
|
373
|
-
name: "InvalidScopeException",
|
374
|
-
$fault: "client",
|
375
|
-
...opts,
|
376
|
-
});
|
377
|
-
this.name = "InvalidScopeException";
|
378
|
-
this.$fault = "client";
|
379
|
-
Object.setPrototypeOf(this, _InvalidScopeException.prototype);
|
380
|
-
this.error = opts.error;
|
381
|
-
this.error_description = opts.error_description;
|
382
|
-
}
|
383
|
-
};
|
384
|
-
exports.InvalidScopeException = InvalidScopeException;
|
385
|
-
var SlowDownException = class _SlowDownException extends SSOOIDCServiceException {
|
386
|
-
constructor(opts) {
|
387
|
-
super({
|
388
|
-
name: "SlowDownException",
|
389
|
-
$fault: "client",
|
390
|
-
...opts,
|
391
|
-
});
|
392
|
-
this.name = "SlowDownException";
|
393
|
-
this.$fault = "client";
|
394
|
-
Object.setPrototypeOf(this, _SlowDownException.prototype);
|
395
|
-
this.error = opts.error;
|
396
|
-
this.error_description = opts.error_description;
|
397
|
-
}
|
398
|
-
};
|
399
|
-
exports.SlowDownException = SlowDownException;
|
400
|
-
var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException {
|
401
|
-
constructor(opts) {
|
402
|
-
super({
|
403
|
-
name: "UnauthorizedClientException",
|
404
|
-
$fault: "client",
|
405
|
-
...opts,
|
406
|
-
});
|
407
|
-
this.name = "UnauthorizedClientException";
|
408
|
-
this.$fault = "client";
|
409
|
-
Object.setPrototypeOf(this, _UnauthorizedClientException.prototype);
|
410
|
-
this.error = opts.error;
|
411
|
-
this.error_description = opts.error_description;
|
412
|
-
}
|
413
|
-
};
|
414
|
-
exports.UnauthorizedClientException = UnauthorizedClientException;
|
415
|
-
var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
416
|
-
constructor(opts) {
|
417
|
-
super({
|
418
|
-
name: "UnsupportedGrantTypeException",
|
419
|
-
$fault: "client",
|
420
|
-
...opts,
|
421
|
-
});
|
422
|
-
this.name = "UnsupportedGrantTypeException";
|
423
|
-
this.$fault = "client";
|
424
|
-
Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype);
|
425
|
-
this.error = opts.error;
|
426
|
-
this.error_description = opts.error_description;
|
427
|
-
}
|
428
|
-
};
|
429
|
-
exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
|
430
|
-
var InvalidClientMetadataException = class _InvalidClientMetadataException extends SSOOIDCServiceException {
|
431
|
-
constructor(opts) {
|
432
|
-
super({
|
433
|
-
name: "InvalidClientMetadataException",
|
434
|
-
$fault: "client",
|
435
|
-
...opts,
|
436
|
-
});
|
437
|
-
this.name = "InvalidClientMetadataException";
|
438
|
-
this.$fault = "client";
|
439
|
-
Object.setPrototypeOf(this, _InvalidClientMetadataException.prototype);
|
440
|
-
this.error = opts.error;
|
441
|
-
this.error_description = opts.error_description;
|
442
|
-
}
|
443
|
-
};
|
444
|
-
var se_CreateTokenCommand = async (input, context) => {
|
445
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
446
|
-
const headers = {
|
447
|
-
"content-type": "application/json",
|
448
|
-
};
|
449
|
-
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/token`;
|
450
|
-
let body;
|
451
|
-
body = JSON.stringify((0, smithy_client_8.take)(input, {
|
452
|
-
clientId: [],
|
453
|
-
clientSecret: [],
|
454
|
-
code: [],
|
455
|
-
deviceCode: [],
|
456
|
-
grantType: [],
|
457
|
-
redirectUri: [],
|
458
|
-
refreshToken: [],
|
459
|
-
scope: (_) => (0, smithy_client_8._json)(_),
|
460
|
-
}));
|
461
|
-
return new protocol_http_2.HttpRequest({
|
462
|
-
protocol,
|
463
|
-
hostname,
|
464
|
-
port,
|
465
|
-
method: "POST",
|
466
|
-
headers,
|
467
|
-
path: resolvedPath,
|
468
|
-
body,
|
469
|
-
});
|
470
|
-
};
|
471
|
-
var se_RegisterClientCommand = async (input, context) => {
|
472
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
473
|
-
const headers = {
|
474
|
-
"content-type": "application/json",
|
475
|
-
};
|
476
|
-
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/client/register`;
|
477
|
-
let body;
|
478
|
-
body = JSON.stringify((0, smithy_client_8.take)(input, {
|
479
|
-
clientName: [],
|
480
|
-
clientType: [],
|
481
|
-
scopes: (_) => (0, smithy_client_8._json)(_),
|
482
|
-
}));
|
483
|
-
return new protocol_http_2.HttpRequest({
|
484
|
-
protocol,
|
485
|
-
hostname,
|
486
|
-
port,
|
487
|
-
method: "POST",
|
488
|
-
headers,
|
489
|
-
path: resolvedPath,
|
490
|
-
body,
|
491
|
-
});
|
492
|
-
};
|
493
|
-
var se_StartDeviceAuthorizationCommand = async (input, context) => {
|
494
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
495
|
-
const headers = {
|
496
|
-
"content-type": "application/json",
|
497
|
-
};
|
498
|
-
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/device_authorization`;
|
499
|
-
let body;
|
500
|
-
body = JSON.stringify((0, smithy_client_8.take)(input, {
|
501
|
-
clientId: [],
|
502
|
-
clientSecret: [],
|
503
|
-
startUrl: [],
|
504
|
-
}));
|
505
|
-
return new protocol_http_2.HttpRequest({
|
506
|
-
protocol,
|
507
|
-
hostname,
|
508
|
-
port,
|
509
|
-
method: "POST",
|
510
|
-
headers,
|
511
|
-
path: resolvedPath,
|
512
|
-
body,
|
513
|
-
});
|
514
|
-
};
|
515
|
-
var de_CreateTokenCommand = async (output, context) => {
|
516
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
517
|
-
return de_CreateTokenCommandError(output, context);
|
518
|
-
}
|
519
|
-
const contents = (0, smithy_client_8.map)({
|
520
|
-
$metadata: deserializeMetadata(output),
|
521
|
-
});
|
522
|
-
const data = (0, smithy_client_8.expectNonNull)((0, smithy_client_8.expectObject)(await parseBody(output.body, context)), "body");
|
523
|
-
const doc = (0, smithy_client_8.take)(data, {
|
524
|
-
accessToken: smithy_client_8.expectString,
|
525
|
-
expiresIn: smithy_client_8.expectInt32,
|
526
|
-
idToken: smithy_client_8.expectString,
|
527
|
-
refreshToken: smithy_client_8.expectString,
|
528
|
-
tokenType: smithy_client_8.expectString,
|
529
|
-
});
|
530
|
-
Object.assign(contents, doc);
|
531
|
-
return contents;
|
532
|
-
};
|
533
|
-
var de_CreateTokenCommandError = async (output, context) => {
|
534
|
-
const parsedOutput = {
|
535
|
-
...output,
|
536
|
-
body: await parseErrorBody(output.body, context),
|
537
|
-
};
|
538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
539
|
-
switch (errorCode) {
|
540
|
-
case "AccessDeniedException":
|
541
|
-
case "com.amazonaws.ssooidc#AccessDeniedException":
|
542
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
543
|
-
case "AuthorizationPendingException":
|
544
|
-
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
545
|
-
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
546
|
-
case "ExpiredTokenException":
|
547
|
-
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
548
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
549
|
-
case "InternalServerException":
|
550
|
-
case "com.amazonaws.ssooidc#InternalServerException":
|
551
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
552
|
-
case "InvalidClientException":
|
553
|
-
case "com.amazonaws.ssooidc#InvalidClientException":
|
554
|
-
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
555
|
-
case "InvalidGrantException":
|
556
|
-
case "com.amazonaws.ssooidc#InvalidGrantException":
|
557
|
-
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
558
|
-
case "InvalidRequestException":
|
559
|
-
case "com.amazonaws.ssooidc#InvalidRequestException":
|
560
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
561
|
-
case "InvalidScopeException":
|
562
|
-
case "com.amazonaws.ssooidc#InvalidScopeException":
|
563
|
-
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
564
|
-
case "SlowDownException":
|
565
|
-
case "com.amazonaws.ssooidc#SlowDownException":
|
566
|
-
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
567
|
-
case "UnauthorizedClientException":
|
568
|
-
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
569
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
570
|
-
case "UnsupportedGrantTypeException":
|
571
|
-
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
572
|
-
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
573
|
-
default:
|
574
|
-
const parsedBody = parsedOutput.body;
|
575
|
-
return throwDefaultError({
|
576
|
-
output,
|
577
|
-
parsedBody,
|
578
|
-
errorCode,
|
579
|
-
});
|
580
|
-
}
|
581
|
-
};
|
582
|
-
var de_RegisterClientCommand = async (output, context) => {
|
583
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
584
|
-
return de_RegisterClientCommandError(output, context);
|
585
|
-
}
|
586
|
-
const contents = (0, smithy_client_8.map)({
|
587
|
-
$metadata: deserializeMetadata(output),
|
588
|
-
});
|
589
|
-
const data = (0, smithy_client_8.expectNonNull)((0, smithy_client_8.expectObject)(await parseBody(output.body, context)), "body");
|
590
|
-
const doc = (0, smithy_client_8.take)(data, {
|
591
|
-
authorizationEndpoint: smithy_client_8.expectString,
|
592
|
-
clientId: smithy_client_8.expectString,
|
593
|
-
clientIdIssuedAt: smithy_client_8.expectLong,
|
594
|
-
clientSecret: smithy_client_8.expectString,
|
595
|
-
clientSecretExpiresAt: smithy_client_8.expectLong,
|
596
|
-
tokenEndpoint: smithy_client_8.expectString,
|
597
|
-
});
|
598
|
-
Object.assign(contents, doc);
|
599
|
-
return contents;
|
600
|
-
};
|
601
|
-
var de_RegisterClientCommandError = async (output, context) => {
|
602
|
-
const parsedOutput = {
|
603
|
-
...output,
|
604
|
-
body: await parseErrorBody(output.body, context),
|
605
|
-
};
|
606
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
607
|
-
switch (errorCode) {
|
608
|
-
case "InternalServerException":
|
609
|
-
case "com.amazonaws.ssooidc#InternalServerException":
|
610
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
611
|
-
case "InvalidClientMetadataException":
|
612
|
-
case "com.amazonaws.ssooidc#InvalidClientMetadataException":
|
613
|
-
throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
|
614
|
-
case "InvalidRequestException":
|
615
|
-
case "com.amazonaws.ssooidc#InvalidRequestException":
|
616
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
617
|
-
case "InvalidScopeException":
|
618
|
-
case "com.amazonaws.ssooidc#InvalidScopeException":
|
619
|
-
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
620
|
-
default:
|
621
|
-
const parsedBody = parsedOutput.body;
|
622
|
-
return throwDefaultError({
|
623
|
-
output,
|
624
|
-
parsedBody,
|
625
|
-
errorCode,
|
626
|
-
});
|
627
|
-
}
|
628
|
-
};
|
629
|
-
var de_StartDeviceAuthorizationCommand = async (output, context) => {
|
630
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
631
|
-
return de_StartDeviceAuthorizationCommandError(output, context);
|
632
|
-
}
|
633
|
-
const contents = (0, smithy_client_8.map)({
|
634
|
-
$metadata: deserializeMetadata(output),
|
635
|
-
});
|
636
|
-
const data = (0, smithy_client_8.expectNonNull)((0, smithy_client_8.expectObject)(await parseBody(output.body, context)), "body");
|
637
|
-
const doc = (0, smithy_client_8.take)(data, {
|
638
|
-
deviceCode: smithy_client_8.expectString,
|
639
|
-
expiresIn: smithy_client_8.expectInt32,
|
640
|
-
interval: smithy_client_8.expectInt32,
|
641
|
-
userCode: smithy_client_8.expectString,
|
642
|
-
verificationUri: smithy_client_8.expectString,
|
643
|
-
verificationUriComplete: smithy_client_8.expectString,
|
644
|
-
});
|
645
|
-
Object.assign(contents, doc);
|
646
|
-
return contents;
|
647
|
-
};
|
648
|
-
var de_StartDeviceAuthorizationCommandError = async (output, context) => {
|
649
|
-
const parsedOutput = {
|
650
|
-
...output,
|
651
|
-
body: await parseErrorBody(output.body, context),
|
652
|
-
};
|
653
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
654
|
-
switch (errorCode) {
|
655
|
-
case "InternalServerException":
|
656
|
-
case "com.amazonaws.ssooidc#InternalServerException":
|
657
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
658
|
-
case "InvalidClientException":
|
659
|
-
case "com.amazonaws.ssooidc#InvalidClientException":
|
660
|
-
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
661
|
-
case "InvalidRequestException":
|
662
|
-
case "com.amazonaws.ssooidc#InvalidRequestException":
|
663
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
664
|
-
case "SlowDownException":
|
665
|
-
case "com.amazonaws.ssooidc#SlowDownException":
|
666
|
-
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
667
|
-
case "UnauthorizedClientException":
|
668
|
-
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
669
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
670
|
-
default:
|
671
|
-
const parsedBody = parsedOutput.body;
|
672
|
-
return throwDefaultError({
|
673
|
-
output,
|
674
|
-
parsedBody,
|
675
|
-
errorCode,
|
676
|
-
});
|
677
|
-
}
|
678
|
-
};
|
679
|
-
var throwDefaultError = (0, smithy_client_8.withBaseException)(SSOOIDCServiceException);
|
680
|
-
var de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
681
|
-
const contents = (0, smithy_client_8.map)({});
|
682
|
-
const data = parsedOutput.body;
|
683
|
-
const doc = (0, smithy_client_8.take)(data, {
|
684
|
-
error: smithy_client_8.expectString,
|
685
|
-
error_description: smithy_client_8.expectString,
|
686
|
-
});
|
687
|
-
Object.assign(contents, doc);
|
688
|
-
const exception = new AccessDeniedException({
|
689
|
-
$metadata: deserializeMetadata(parsedOutput),
|
690
|
-
...contents,
|
691
|
-
});
|
692
|
-
return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body);
|
693
|
-
};
|
694
|
-
var de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => {
|
695
|
-
const contents = (0, smithy_client_8.map)({});
|
696
|
-
const data = parsedOutput.body;
|
697
|
-
const doc = (0, smithy_client_8.take)(data, {
|
698
|
-
error: smithy_client_8.expectString,
|
699
|
-
error_description: smithy_client_8.expectString,
|
700
|
-
});
|
701
|
-
Object.assign(contents, doc);
|
702
|
-
const exception = new AuthorizationPendingException({
|
703
|
-
$metadata: deserializeMetadata(parsedOutput),
|
704
|
-
...contents,
|
705
|
-
});
|
706
|
-
return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body);
|
707
|
-
};
|
708
|
-
var de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
709
|
-
const contents = (0, smithy_client_8.map)({});
|
710
|
-
const data = parsedOutput.body;
|
711
|
-
const doc = (0, smithy_client_8.take)(data, {
|
712
|
-
error: smithy_client_8.expectString,
|
713
|
-
error_description: smithy_client_8.expectString,
|
714
|
-
});
|
715
|
-
Object.assign(contents, doc);
|
716
|
-
const exception = new ExpiredTokenException({
|
717
|
-
$metadata: deserializeMetadata(parsedOutput),
|
718
|
-
...contents,
|
719
|
-
});
|
720
|
-
return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body);
|
721
|
-
};
|
722
|
-
var de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
723
|
-
const contents = (0, smithy_client_8.map)({});
|
724
|
-
const data = parsedOutput.body;
|
725
|
-
const doc = (0, smithy_client_8.take)(data, {
|
726
|
-
error: smithy_client_8.expectString,
|
727
|
-
error_description: smithy_client_8.expectString,
|
728
|
-
});
|
729
|
-
Object.assign(contents, doc);
|
730
|
-
const exception = new InternalServerException({
|
731
|
-
$metadata: deserializeMetadata(parsedOutput),
|
732
|
-
...contents,
|
733
|
-
});
|
734
|
-
return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body);
|
735
|
-
};
|
736
|
-
var de_InvalidClientExceptionRes = async (parsedOutput, context) => {
|
737
|
-
const contents = (0, smithy_client_8.map)({});
|
738
|
-
const data = parsedOutput.body;
|
739
|
-
const doc = (0, smithy_client_8.take)(data, {
|
740
|
-
error: smithy_client_8.expectString,
|
741
|
-
error_description: smithy_client_8.expectString,
|
742
|
-
});
|
743
|
-
Object.assign(contents, doc);
|
744
|
-
const exception = new InvalidClientException({
|
745
|
-
$metadata: deserializeMetadata(parsedOutput),
|
746
|
-
...contents,
|
747
|
-
});
|
748
|
-
return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body);
|
749
|
-
};
|
750
|
-
var de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => {
|
751
|
-
const contents = (0, smithy_client_8.map)({});
|
752
|
-
const data = parsedOutput.body;
|
753
|
-
const doc = (0, smithy_client_8.take)(data, {
|
754
|
-
error: smithy_client_8.expectString,
|
755
|
-
error_description: smithy_client_8.expectString,
|
756
|
-
});
|
757
|
-
Object.assign(contents, doc);
|
758
|
-
const exception = new InvalidClientMetadataException({
|
759
|
-
$metadata: deserializeMetadata(parsedOutput),
|
760
|
-
...contents,
|
761
|
-
});
|
762
|
-
return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body);
|
763
|
-
};
|
764
|
-
var de_InvalidGrantExceptionRes = async (parsedOutput, context) => {
|
765
|
-
const contents = (0, smithy_client_8.map)({});
|
766
|
-
const data = parsedOutput.body;
|
767
|
-
const doc = (0, smithy_client_8.take)(data, {
|
768
|
-
error: smithy_client_8.expectString,
|
769
|
-
error_description: smithy_client_8.expectString,
|
770
|
-
});
|
771
|
-
Object.assign(contents, doc);
|
772
|
-
const exception = new InvalidGrantException({
|
773
|
-
$metadata: deserializeMetadata(parsedOutput),
|
774
|
-
...contents,
|
775
|
-
});
|
776
|
-
return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body);
|
777
|
-
};
|
778
|
-
var de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
779
|
-
const contents = (0, smithy_client_8.map)({});
|
780
|
-
const data = parsedOutput.body;
|
781
|
-
const doc = (0, smithy_client_8.take)(data, {
|
782
|
-
error: smithy_client_8.expectString,
|
783
|
-
error_description: smithy_client_8.expectString,
|
784
|
-
});
|
785
|
-
Object.assign(contents, doc);
|
786
|
-
const exception = new InvalidRequestException({
|
787
|
-
$metadata: deserializeMetadata(parsedOutput),
|
788
|
-
...contents,
|
789
|
-
});
|
790
|
-
return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body);
|
791
|
-
};
|
792
|
-
var de_InvalidScopeExceptionRes = async (parsedOutput, context) => {
|
793
|
-
const contents = (0, smithy_client_8.map)({});
|
794
|
-
const data = parsedOutput.body;
|
795
|
-
const doc = (0, smithy_client_8.take)(data, {
|
796
|
-
error: smithy_client_8.expectString,
|
797
|
-
error_description: smithy_client_8.expectString,
|
798
|
-
});
|
799
|
-
Object.assign(contents, doc);
|
800
|
-
const exception = new InvalidScopeException({
|
801
|
-
$metadata: deserializeMetadata(parsedOutput),
|
802
|
-
...contents,
|
803
|
-
});
|
804
|
-
return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body);
|
805
|
-
};
|
806
|
-
var de_SlowDownExceptionRes = async (parsedOutput, context) => {
|
807
|
-
const contents = (0, smithy_client_8.map)({});
|
808
|
-
const data = parsedOutput.body;
|
809
|
-
const doc = (0, smithy_client_8.take)(data, {
|
810
|
-
error: smithy_client_8.expectString,
|
811
|
-
error_description: smithy_client_8.expectString,
|
812
|
-
});
|
813
|
-
Object.assign(contents, doc);
|
814
|
-
const exception = new SlowDownException({
|
815
|
-
$metadata: deserializeMetadata(parsedOutput),
|
816
|
-
...contents,
|
817
|
-
});
|
818
|
-
return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body);
|
819
|
-
};
|
820
|
-
var de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
821
|
-
const contents = (0, smithy_client_8.map)({});
|
822
|
-
const data = parsedOutput.body;
|
823
|
-
const doc = (0, smithy_client_8.take)(data, {
|
824
|
-
error: smithy_client_8.expectString,
|
825
|
-
error_description: smithy_client_8.expectString,
|
826
|
-
});
|
827
|
-
Object.assign(contents, doc);
|
828
|
-
const exception = new UnauthorizedClientException({
|
829
|
-
$metadata: deserializeMetadata(parsedOutput),
|
830
|
-
...contents,
|
831
|
-
});
|
832
|
-
return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body);
|
833
|
-
};
|
834
|
-
var de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => {
|
835
|
-
const contents = (0, smithy_client_8.map)({});
|
836
|
-
const data = parsedOutput.body;
|
837
|
-
const doc = (0, smithy_client_8.take)(data, {
|
838
|
-
error: smithy_client_8.expectString,
|
839
|
-
error_description: smithy_client_8.expectString,
|
840
|
-
});
|
841
|
-
Object.assign(contents, doc);
|
842
|
-
const exception = new UnsupportedGrantTypeException({
|
843
|
-
$metadata: deserializeMetadata(parsedOutput),
|
844
|
-
...contents,
|
845
|
-
});
|
846
|
-
return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body);
|
847
|
-
};
|
848
|
-
var deserializeMetadata = (output) => {
|
849
|
-
var _a, _b;
|
850
|
-
return ({
|
851
|
-
httpStatusCode: output.statusCode,
|
852
|
-
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
853
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
854
|
-
cfId: output.headers["x-amz-cf-id"],
|
855
|
-
});
|
856
|
-
};
|
857
|
-
var collectBodyString = (streamBody, context) => (0, smithy_client_8.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
858
|
-
var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
859
|
-
if (encoded.length) {
|
860
|
-
return JSON.parse(encoded);
|
861
|
-
}
|
862
|
-
return {};
|
863
|
-
});
|
864
|
-
var parseErrorBody = async (errorBody, context) => {
|
865
|
-
var _a;
|
866
|
-
const value = await parseBody(errorBody, context);
|
867
|
-
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
868
|
-
return value;
|
869
|
-
};
|
870
|
-
var loadRestJsonErrorCode = (output, data) => {
|
871
|
-
const findKey = (object, key) => Object.keys(object).find((k2) => k2.toLowerCase() === key.toLowerCase());
|
872
|
-
const sanitizeErrorCode = (rawValue) => {
|
873
|
-
let cleanValue = rawValue;
|
874
|
-
if (typeof cleanValue === "number") {
|
875
|
-
cleanValue = cleanValue.toString();
|
876
|
-
}
|
877
|
-
if (cleanValue.indexOf(",") >= 0) {
|
878
|
-
cleanValue = cleanValue.split(",")[0];
|
879
|
-
}
|
880
|
-
if (cleanValue.indexOf(":") >= 0) {
|
881
|
-
cleanValue = cleanValue.split(":")[0];
|
882
|
-
}
|
883
|
-
if (cleanValue.indexOf("#") >= 0) {
|
884
|
-
cleanValue = cleanValue.split("#")[1];
|
885
|
-
}
|
886
|
-
return cleanValue;
|
887
|
-
};
|
888
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
889
|
-
if (headerKey !== void 0) {
|
890
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
891
|
-
}
|
892
|
-
if (data.code !== void 0) {
|
893
|
-
return sanitizeErrorCode(data.code);
|
894
|
-
}
|
895
|
-
if (data["__type"] !== void 0) {
|
896
|
-
return sanitizeErrorCode(data["__type"]);
|
897
|
-
}
|
898
|
-
};
|
899
|
-
class CreateTokenCommand extends smithy_client_7.Command {
|
900
|
-
constructor(input) {
|
901
|
-
super();
|
902
|
-
this.input = input;
|
903
|
-
}
|
904
|
-
static getEndpointParameterInstructions() {
|
905
|
-
return {
|
906
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
907
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
908
|
-
Region: { type: "builtInParams", name: "region" },
|
909
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
910
|
-
};
|
911
|
-
}
|
912
|
-
resolveMiddleware(clientStack, configuration, options) {
|
913
|
-
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
914
|
-
this.middlewareStack.use((0, middleware_endpoint_2.getEndpointPlugin)(configuration, _CreateTokenCommand.getEndpointParameterInstructions()));
|
915
|
-
const stack = clientStack.concat(this.middlewareStack);
|
916
|
-
const { logger } = configuration;
|
917
|
-
const clientName = "SSOOIDCClient";
|
918
|
-
const commandName = "CreateTokenCommand";
|
919
|
-
const handlerExecutionContext = {
|
920
|
-
logger,
|
921
|
-
clientName,
|
922
|
-
commandName,
|
923
|
-
inputFilterSensitiveLog: (_) => _,
|
924
|
-
outputFilterSensitiveLog: (_) => _,
|
925
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
926
|
-
service: "AWSSSOOIDCService",
|
927
|
-
operation: "CreateToken",
|
928
|
-
},
|
929
|
-
};
|
930
|
-
const { requestHandler } = configuration;
|
931
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
932
|
-
}
|
933
|
-
serialize(input, context) {
|
934
|
-
return se_CreateTokenCommand(input, context);
|
935
|
-
}
|
936
|
-
deserialize(output, context) {
|
937
|
-
return de_CreateTokenCommand(output, context);
|
938
|
-
}
|
939
|
-
}
|
940
|
-
exports.CreateTokenCommand = CreateTokenCommand;
|
941
|
-
const middleware_endpoint_3 = require("@smithy/middleware-endpoint");
|
942
|
-
const middleware_serde_2 = require("@smithy/middleware-serde");
|
943
|
-
const smithy_client_10 = require("@smithy/smithy-client");
|
944
|
-
const types_2 = require("@smithy/types");
|
945
|
-
class RegisterClientCommand extends smithy_client_10.Command {
|
946
|
-
constructor(input) {
|
947
|
-
super();
|
948
|
-
this.input = input;
|
949
|
-
}
|
950
|
-
static getEndpointParameterInstructions() {
|
951
|
-
return {
|
952
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
953
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
954
|
-
Region: { type: "builtInParams", name: "region" },
|
955
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
956
|
-
};
|
957
|
-
}
|
958
|
-
resolveMiddleware(clientStack, configuration, options) {
|
959
|
-
this.middlewareStack.use((0, middleware_serde_2.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
960
|
-
this.middlewareStack.use((0, middleware_endpoint_3.getEndpointPlugin)(configuration, _RegisterClientCommand.getEndpointParameterInstructions()));
|
961
|
-
const stack = clientStack.concat(this.middlewareStack);
|
962
|
-
const { logger } = configuration;
|
963
|
-
const clientName = "SSOOIDCClient";
|
964
|
-
const commandName = "RegisterClientCommand";
|
965
|
-
const handlerExecutionContext = {
|
966
|
-
logger,
|
967
|
-
clientName,
|
968
|
-
commandName,
|
969
|
-
inputFilterSensitiveLog: (_) => _,
|
970
|
-
outputFilterSensitiveLog: (_) => _,
|
971
|
-
[types_2.SMITHY_CONTEXT_KEY]: {
|
972
|
-
service: "AWSSSOOIDCService",
|
973
|
-
operation: "RegisterClient",
|
974
|
-
},
|
975
|
-
};
|
976
|
-
const { requestHandler } = configuration;
|
977
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
978
|
-
}
|
979
|
-
serialize(input, context) {
|
980
|
-
return se_RegisterClientCommand(input, context);
|
981
|
-
}
|
982
|
-
deserialize(output, context) {
|
983
|
-
return de_RegisterClientCommand(output, context);
|
984
|
-
}
|
985
|
-
}
|
986
|
-
const middleware_endpoint_4 = require("@smithy/middleware-endpoint");
|
987
|
-
const middleware_serde_3 = require("@smithy/middleware-serde");
|
988
|
-
const smithy_client_11 = require("@smithy/smithy-client");
|
989
|
-
const types_3 = require("@smithy/types");
|
990
|
-
class StartDeviceAuthorizationCommand extends smithy_client_11.Command {
|
991
|
-
constructor(input) {
|
992
|
-
super();
|
993
|
-
this.input = input;
|
994
|
-
}
|
995
|
-
static getEndpointParameterInstructions() {
|
996
|
-
return {
|
997
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
998
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
999
|
-
Region: { type: "builtInParams", name: "region" },
|
1000
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
1001
|
-
};
|
1002
|
-
}
|
1003
|
-
resolveMiddleware(clientStack, configuration, options) {
|
1004
|
-
this.middlewareStack.use((0, middleware_serde_3.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
1005
|
-
this.middlewareStack.use((0, middleware_endpoint_4.getEndpointPlugin)(configuration, _StartDeviceAuthorizationCommand.getEndpointParameterInstructions()));
|
1006
|
-
const stack = clientStack.concat(this.middlewareStack);
|
1007
|
-
const { logger } = configuration;
|
1008
|
-
const clientName = "SSOOIDCClient";
|
1009
|
-
const commandName = "StartDeviceAuthorizationCommand";
|
1010
|
-
const handlerExecutionContext = {
|
1011
|
-
logger,
|
1012
|
-
clientName,
|
1013
|
-
commandName,
|
1014
|
-
inputFilterSensitiveLog: (_) => _,
|
1015
|
-
outputFilterSensitiveLog: (_) => _,
|
1016
|
-
[types_3.SMITHY_CONTEXT_KEY]: {
|
1017
|
-
service: "AWSSSOOIDCService",
|
1018
|
-
operation: "StartDeviceAuthorization",
|
1019
|
-
},
|
1020
|
-
};
|
1021
|
-
const { requestHandler } = configuration;
|
1022
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
1023
|
-
}
|
1024
|
-
serialize(input, context) {
|
1025
|
-
return se_StartDeviceAuthorizationCommand(input, context);
|
1026
|
-
}
|
1027
|
-
deserialize(output, context) {
|
1028
|
-
return de_StartDeviceAuthorizationCommand(output, context);
|
1029
|
-
}
|
1030
|
-
}
|
1031
|
-
var commands = {
|
1032
|
-
CreateTokenCommand,
|
1033
|
-
RegisterClientCommand,
|
1034
|
-
StartDeviceAuthorizationCommand,
|
1035
|
-
};
|
1036
|
-
var SSOOIDC = class extends SSOOIDCClient {
|
1037
|
-
};
|
1038
|
-
(0, smithy_client_6.createAggregatedClient)(commands, SSOOIDC);
|