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