@aws-sdk/nested-clients 3.997.31 → 3.997.33

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.
Files changed (123) hide show
  1. package/dist-cjs/submodules/cognito-identity/index.js +11 -9
  2. package/dist-cjs/submodules/signin/index.js +121 -76
  3. package/dist-cjs/submodules/sso/index.js +6 -5
  4. package/dist-cjs/submodules/sso-oidc/index.js +6 -5
  5. package/dist-cjs/submodules/sts/index.js +1 -1
  6. package/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +12 -8
  7. package/dist-es/submodules/signin/Signin.js +2 -0
  8. package/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +6 -4
  9. package/dist-es/submodules/signin/commandBuilder.js +3 -0
  10. package/dist-es/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.js +4 -0
  11. package/dist-es/submodules/signin/commands/index.js +1 -0
  12. package/dist-es/submodules/signin/endpoint/bdd.js +80 -70
  13. package/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
  14. package/dist-es/submodules/signin/schemas/schemas_0.js +23 -0
  15. package/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +6 -4
  16. package/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +6 -4
  17. package/dist-es/submodules/sts/defaultRoleAssumers.js +1 -1
  18. package/dist-es/submodules/sts/defaultStsRoleAssumers.js +1 -1
  19. package/dist-types/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +1 -1
  20. package/dist-types/submodules/signin/Signin.d.ts +7 -0
  21. package/dist-types/submodules/signin/SigninClient.d.ts +3 -2
  22. package/dist-types/submodules/signin/auth/httpAuthSchemeProvider.d.ts +1 -1
  23. package/dist-types/submodules/signin/commandBuilder.d.ts +8 -4
  24. package/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +2 -2
  25. package/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +114 -0
  26. package/dist-types/submodules/signin/commands/index.d.ts +1 -0
  27. package/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
  28. package/dist-types/submodules/signin/models/models_0.d.ts +41 -3
  29. package/dist-types/submodules/signin/schemas/schemas_0.d.ts +3 -0
  30. package/dist-types/submodules/sso/auth/httpAuthSchemeProvider.d.ts +1 -1
  31. package/dist-types/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +1 -1
  32. package/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +3 -3
  33. package/dist-types/submodules/sts/defaultRoleAssumers.d.ts +3 -3
  34. package/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +3 -3
  35. package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentity.d.ts +7 -15
  36. package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentityClient.d.ts +8 -22
  37. package/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +5 -12
  38. package/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +11 -15
  39. package/dist-types/ts3.4/submodules/cognito-identity/commandBuilder.d.ts +7 -13
  40. package/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +4 -6
  41. package/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +6 -2
  42. package/dist-types/ts3.4/submodules/cognito-identity/endpoint/EndpointParameters.d.ts +1 -1
  43. package/dist-types/ts3.4/submodules/cognito-identity/endpoint/endpointResolver.d.ts +1 -1
  44. package/dist-types/ts3.4/submodules/cognito-identity/extensionConfiguration.d.ts +2 -1
  45. package/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +9 -28
  46. package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +13 -30
  47. package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +12 -26
  48. package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +13 -30
  49. package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +6 -12
  50. package/dist-types/ts3.4/submodules/cognito-identity/runtimeExtensions.d.ts +2 -4
  51. package/dist-types/ts3.4/submodules/cognito-identity/schemas/schemas_0.d.ts +1 -5
  52. package/dist-types/ts3.4/submodules/signin/Signin.d.ts +20 -3
  53. package/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +25 -27
  54. package/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +5 -12
  55. package/dist-types/ts3.4/submodules/signin/auth/httpAuthSchemeProvider.d.ts +11 -15
  56. package/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +13 -18
  57. package/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +9 -14
  58. package/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +42 -0
  59. package/dist-types/ts3.4/submodules/signin/commands/index.d.ts +1 -0
  60. package/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +2 -1
  61. package/dist-types/ts3.4/submodules/signin/endpoint/endpointResolver.d.ts +1 -1
  62. package/dist-types/ts3.4/submodules/signin/extensionConfiguration.d.ts +2 -1
  63. package/dist-types/ts3.4/submodules/signin/models/enums.d.ts +1 -2
  64. package/dist-types/ts3.4/submodules/signin/models/errors.d.ts +4 -12
  65. package/dist-types/ts3.4/submodules/signin/models/models_0.d.ts +9 -0
  66. package/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +13 -30
  67. package/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +12 -26
  68. package/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +13 -30
  69. package/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +5 -9
  70. package/dist-types/ts3.4/submodules/signin/runtimeExtensions.d.ts +1 -1
  71. package/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +4 -5
  72. package/dist-types/ts3.4/submodules/sso/SSO.d.ts +3 -3
  73. package/dist-types/ts3.4/submodules/sso/SSOClient.d.ts +13 -20
  74. package/dist-types/ts3.4/submodules/sso/auth/httpAuthExtensionConfiguration.d.ts +5 -12
  75. package/dist-types/ts3.4/submodules/sso/auth/httpAuthSchemeProvider.d.ts +10 -13
  76. package/dist-types/ts3.4/submodules/sso/commandBuilder.d.ts +7 -10
  77. package/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +5 -10
  78. package/dist-types/ts3.4/submodules/sso/endpoint/EndpointParameters.d.ts +1 -1
  79. package/dist-types/ts3.4/submodules/sso/endpoint/endpointResolver.d.ts +1 -1
  80. package/dist-types/ts3.4/submodules/sso/extensionConfiguration.d.ts +2 -1
  81. package/dist-types/ts3.4/submodules/sso/models/errors.d.ts +4 -12
  82. package/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +12 -27
  83. package/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +11 -23
  84. package/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +12 -27
  85. package/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +5 -9
  86. package/dist-types/ts3.4/submodules/sso/runtimeExtensions.d.ts +1 -1
  87. package/dist-types/ts3.4/submodules/sso/schemas/schemas_0.d.ts +1 -5
  88. package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDC.d.ts +4 -7
  89. package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +16 -29
  90. package/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +5 -12
  91. package/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +11 -15
  92. package/dist-types/ts3.4/submodules/sso-oidc/commandBuilder.d.ts +7 -10
  93. package/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -5
  94. package/dist-types/ts3.4/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +1 -1
  95. package/dist-types/ts3.4/submodules/sso-oidc/endpoint/endpointResolver.d.ts +1 -1
  96. package/dist-types/ts3.4/submodules/sso-oidc/extensionConfiguration.d.ts +2 -1
  97. package/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +11 -34
  98. package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +12 -27
  99. package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +11 -23
  100. package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +12 -27
  101. package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +5 -9
  102. package/dist-types/ts3.4/submodules/sso-oidc/runtimeExtensions.d.ts +1 -1
  103. package/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +1 -5
  104. package/dist-types/ts3.4/submodules/sts/STS.d.ts +7 -10
  105. package/dist-types/ts3.4/submodules/sts/STSClient.d.ts +16 -30
  106. package/dist-types/ts3.4/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +5 -12
  107. package/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +11 -16
  108. package/dist-types/ts3.4/submodules/sts/commandBuilder.d.ts +8 -18
  109. package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +3 -5
  110. package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +4 -6
  111. package/dist-types/ts3.4/submodules/sts/defaultRoleAssumers.d.ts +3 -3
  112. package/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +5 -7
  113. package/dist-types/ts3.4/submodules/sts/endpoint/EndpointParameters.d.ts +1 -1
  114. package/dist-types/ts3.4/submodules/sts/endpoint/endpointResolver.d.ts +1 -1
  115. package/dist-types/ts3.4/submodules/sts/extensionConfiguration.d.ts +2 -1
  116. package/dist-types/ts3.4/submodules/sts/models/errors.d.ts +7 -24
  117. package/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +14 -34
  118. package/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +14 -33
  119. package/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +14 -34
  120. package/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +6 -10
  121. package/dist-types/ts3.4/submodules/sts/runtimeExtensions.d.ts +1 -1
  122. package/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +1 -5
  123. package/package.json +53 -50
@@ -46,14 +46,16 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
46
46
  const defaultCognitoIdentityHttpAuthSchemeProvider = (authParameters) => {
47
47
  const options = [];
48
48
  switch (authParameters.operation) {
49
- case "GetCredentialsForIdentity": {
50
- options.push(createSmithyApiNoAuthHttpAuthOption());
51
- break;
52
- }
53
- case "GetId": {
54
- options.push(createSmithyApiNoAuthHttpAuthOption());
55
- break;
56
- }
49
+ case "GetCredentialsForIdentity":
50
+ {
51
+ options.push(createSmithyApiNoAuthHttpAuthOption());
52
+ break;
53
+ }
54
+ case "GetId":
55
+ {
56
+ options.push(createSmithyApiNoAuthHttpAuthOption());
57
+ break;
58
+ }
57
59
  default: {
58
60
  options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
59
61
  }
@@ -81,7 +83,7 @@ const commonParams = {
81
83
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
82
84
  };
83
85
 
84
- var version = "3.997.30";
86
+ var version = "3.997.32";
85
87
  var packageInfo = {
86
88
  version: version};
87
89
 
@@ -46,10 +46,11 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
46
46
  const defaultSigninHttpAuthSchemeProvider = (authParameters) => {
47
47
  const options = [];
48
48
  switch (authParameters.operation) {
49
- case "CreateOAuth2Token": {
50
- options.push(createSmithyApiNoAuthHttpAuthOption());
51
- break;
52
- }
49
+ case "CreateOAuth2Token":
50
+ {
51
+ options.push(createSmithyApiNoAuthHttpAuthOption());
52
+ break;
53
+ }
53
54
  default: {
54
55
  options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
55
56
  }
@@ -77,58 +78,61 @@ const commonParams = {
77
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
78
79
  };
79
80
 
80
- var version = "3.997.30";
81
+ var version = "3.997.32";
81
82
  var packageInfo = {
82
83
  version: version};
83
84
 
84
- const p = "ref";
85
- const a = -1, b = true, c = "isSet", d = "booleanEquals", e = "PartitionResult", f = "stringEquals", g = "getAttr", h = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", i = { [p]: "Endpoint" }, j = { "fn": g, "argv": [{ [p]: e }, "name"] }, k = { [p]: e }, l = { [p]: "Region" }, m = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, n = {}, o = [l];
85
+ const s = "ref";
86
+ const a = -1, b = false, c = true, d = "isSet", e = "booleanEquals", f = "coalesce", g = "PartitionResult", h = "stringEquals", i = "getAttr", j = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k = { [s]: "Endpoint" }, l = { "fn": i, "argv": [{ [s]: g }, "name"] }, m = { [s]: "Region" }, n = { [s]: g }, o = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, p = {}, q = [m];
86
87
  const _data = {
87
88
  conditions: [
88
- [c, o],
89
- [d, [{ fn: "coalesce", argv: [{ [p]: "IsControlPlane" }, false] }, b]],
90
- [c, [i]],
91
- ["aws.partition", o, e],
92
- [d, [{ [p]: "UseFIPS" }, b]],
93
- [d, [{ [p]: "UseDualStack" }, b]],
94
- [f, [j, "aws"]],
95
- [f, [j, "aws-cn"]],
96
- [d, [{ fn: g, argv: [k, "supportsDualStack"] }, b]],
97
- [f, [l, "us-gov-west-1"]],
98
- [f, [j, "aws-us-gov"]],
99
- [d, [{ fn: g, argv: [k, "supportsFIPS"] }, b]],
100
- [f, [j, "aws-iso"]],
101
- [f, [j, "aws-iso-b"]],
102
- [f, [j, "aws-iso-f"]],
103
- [f, [j, "aws-iso-e"]],
104
- [f, [j, "aws-eusc"]]
89
+ [d, q],
90
+ [e, [{ fn: f, argv: [{ [s]: "IsControlPlane" }, b] }, c]],
91
+ [d, [k]],
92
+ ["aws.partition", q, g],
93
+ [e, [{ [s]: "UseFIPS" }, c]],
94
+ [h, [l, "aws"]],
95
+ [e, [{ fn: f, argv: [{ [s]: "IsOAuthEndpoint" }, b] }, c]],
96
+ [e, [{ [s]: "UseDualStack" }, c]],
97
+ [h, [l, "aws-cn"]],
98
+ [h, [m, "us-gov-west-1"]],
99
+ [h, [l, "aws-us-gov"]],
100
+ [e, [{ fn: i, argv: [n, "supportsFIPS"] }, c]],
101
+ [h, [l, "aws-iso"]],
102
+ [h, [l, "aws-iso-b"]],
103
+ [h, [l, "aws-iso-f"]],
104
+ [h, [l, "aws-iso-e"]],
105
+ [h, [l, "aws-eusc"]],
106
+ [e, [{ fn: i, argv: [n, "supportsDualStack"] }, c]]
105
107
  ],
106
108
  results: [
107
109
  [a],
108
- ["https://signin.{Region}.api.aws", m],
109
- ["https://signin.{Region}.api.amazonwebservices.com.cn", m],
110
- [h, m],
111
- ["https://{Region}.signin.aws.amazon.com", n],
112
- ["https://{Region}.signin.amazonaws.cn", n],
113
- ["https://{Region}.signin.amazonaws-us-gov.com", n],
114
- ["https://{Region}.signin.c2shome.ic.gov", n],
115
- ["https://{Region}.signin.sc2shome.sgov.gov", n],
116
- ["https://{Region}.signin.csphome.hci.ic.gov", n],
117
- ["https://{Region}.signin.csphome.adc-e.uk", n],
118
- ["https://{Region}.signin.amazonaws-eusc.eu", n],
119
- ["https://signin-fips.amazonaws-us-gov.com", n],
120
- ["https://{Region}.signin-fips.amazonaws-us-gov.com", n],
121
- ["https://{Region}.signin.{PartitionResult#dnsSuffix}", n],
110
+ ["https://signin.{Region}.api.aws", o],
111
+ ["https://signin.{Region}.api.amazonwebservices.com.cn", o],
112
+ [j, o],
113
+ [a, "FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],
114
+ ["https://{Region}.oauth.signin.aws", o],
115
+ ["https://{Region}.signin.aws.amazon.com", p],
116
+ ["https://{Region}.signin.amazonaws.cn", p],
117
+ ["https://{Region}.signin.amazonaws-us-gov.com", p],
118
+ ["https://{Region}.signin.c2shome.ic.gov", p],
119
+ ["https://{Region}.signin.sc2shome.sgov.gov", p],
120
+ ["https://{Region}.signin.csphome.hci.ic.gov", p],
121
+ ["https://{Region}.signin.csphome.adc-e.uk", p],
122
+ ["https://{Region}.signin.amazonaws-eusc.eu", p],
123
+ ["https://signin-fips.amazonaws-us-gov.com", p],
124
+ ["https://{Region}.signin-fips.amazonaws-us-gov.com", p],
125
+ ["https://{Region}.signin.{PartitionResult#dnsSuffix}", p],
122
126
  [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
123
127
  [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
124
- [i, n],
125
- ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", n],
128
+ [k, p],
129
+ ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", p],
126
130
  [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
127
- ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", n],
131
+ ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", p],
128
132
  [a, "FIPS is enabled but this partition does not support FIPS"],
129
- [h, n],
133
+ [j, p],
130
134
  [a, "DualStack is enabled but this partition does not support DualStack"],
131
- ["https://signin.{Region}.{PartitionResult#dnsSuffix}", n],
135
+ ["https://signin.{Region}.{PartitionResult#dnsSuffix}", p],
132
136
  [a, "Invalid Configuration: Missing Region"]
133
137
  ]
134
138
  };
@@ -136,44 +140,51 @@ const root = 2;
136
140
  const r = 100_000_000;
137
141
  const nodes = new Int32Array([
138
142
  -1, 1, -1,
139
- 0, 4, 3,
140
- 2, 30, r + 25,
141
- 1, 24, 5,
142
- 2, 30, 6,
143
- 3, 7, 26,
144
- 4, 18, 8,
145
- 5, 17, 9,
146
- 6, r + 4, 10,
147
- 7, r + 5, 11,
148
- 10, r + 6, 12,
149
- 12, r + 7, 13,
150
- 13, r + 8, 14,
151
- 14, r + 9, 15,
152
- 15, r + 10, 16,
153
- 16, r + 11, r + 14,
154
- 8, r + 22, r + 23,
155
- 5, 22, 19,
156
- 9, r + 12, 20,
157
- 10, r + 13, 21,
158
- 11, r + 20, r + 21,
159
- 8, 23, r + 19,
160
- 11, r + 18, r + 19,
161
- 2, 29, 25,
162
- 3, 32, 26,
163
- 4, 27, r + 25,
164
- 5, r + 25, 28,
165
- 9, r + 12, r + 25,
166
- 3, 32, 30,
167
- 4, r + 15, 31,
168
- 5, r + 16, r + 17,
169
- 6, r + 1, 33,
170
- 7, r + 2, r + 3,
143
+ 0, 6, 3,
144
+ 2, 36, 4,
145
+ 4, 5, r + 27,
146
+ 6, r + 4, r + 27,
147
+ 1, 29, 7,
148
+ 2, 36, 8,
149
+ 3, 9, 31,
150
+ 4, 22, 10,
151
+ 5, 19, 11,
152
+ 7, 21, 12,
153
+ 8, r + 7, 13,
154
+ 10, r + 8, 14,
155
+ 12, r + 9, 15,
156
+ 13, r + 10, 16,
157
+ 14, r + 11, 17,
158
+ 15, r + 12, 18,
159
+ 16, r + 13, r + 16,
160
+ 6, r + 5, 20,
161
+ 7, 21, r + 6,
162
+ 17, r + 24, r + 25,
163
+ 6, r + 4, 23,
164
+ 7, 27, 24,
165
+ 9, r + 14, 25,
166
+ 10, r + 15, 26,
167
+ 11, r + 22, r + 23,
168
+ 11, 28, r + 21,
169
+ 17, r + 20, r + 21,
170
+ 2, 35, 30,
171
+ 3, 39, 31,
172
+ 4, 32, r + 27,
173
+ 6, r + 4, 33,
174
+ 7, r + 27, 34,
175
+ 9, r + 14, r + 27,
176
+ 3, 39, 36,
177
+ 4, 38, 37,
178
+ 7, r + 18, r + 19,
179
+ 6, r + 4, r + 17,
180
+ 5, r + 1, 40,
181
+ 8, r + 2, r + 3,
171
182
  ]);
172
183
  const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
173
184
 
174
185
  const cache = new EndpointCache({
175
186
  size: 50,
176
- params: ["Endpoint", "IsControlPlane", "Region", "UseDualStack", "UseFIPS"],
187
+ params: ["Endpoint", "IsControlPlane", "IsOAuthEndpoint", "Region", "UseDualStack", "UseFIPS"],
177
188
  });
178
189
  const defaultEndpointResolver = (endpointParams, context = {}) => {
179
190
  return cache.get(endpointParams, () => decideEndpoint(bdd, {
@@ -254,24 +265,32 @@ const _COATR = "CreateOAuth2TokenRequest";
254
265
  const _COATRB = "CreateOAuth2TokenRequestBody";
255
266
  const _COATRBr = "CreateOAuth2TokenResponseBody";
256
267
  const _COATRr = "CreateOAuth2TokenResponse";
268
+ const _COATWIAM = "CreateOAuth2TokenWithIAM";
269
+ const _COATWIAMR = "CreateOAuth2TokenWithIAMRequest";
270
+ const _COATWIAMRr = "CreateOAuth2TokenWithIAMResponse";
257
271
  const _ISE = "InternalServerException";
272
+ const _OAAT = "OAuthAccessToken";
258
273
  const _RT = "RefreshToken";
259
274
  const _TMRE = "TooManyRequestsError";
260
275
  const _VE = "ValidationException";
261
276
  const _aKI = "accessKeyId";
262
277
  const _aT = "accessToken";
278
+ const _at = "access_token";
263
279
  const _c = "client";
264
280
  const _cI = "clientId";
265
281
  const _cV = "codeVerifier";
266
282
  const _co = "code";
267
283
  const _e = "error";
268
284
  const _eI = "expiresIn";
285
+ const _ei = "expires_in";
269
286
  const _gT = "grantType";
287
+ const _gt = "grant_type";
270
288
  const _h = "http";
271
289
  const _hE = "httpError";
272
290
  const _iT = "idToken";
273
291
  const _jN = "jsonName";
274
292
  const _m = "message";
293
+ const _r = "resource";
275
294
  const _rT = "refreshToken";
276
295
  const _rU = "redirectUri";
277
296
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
@@ -281,6 +300,7 @@ const _se = "server";
281
300
  const _tI = "tokenInput";
282
301
  const _tO = "tokenOutput";
283
302
  const _tT = "tokenType";
303
+ const _tt = "token_type";
284
304
  const n0 = "com.amazonaws.signin";
285
305
  const _s_registry = TypeRegistry.for(_s);
286
306
  var SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
@@ -314,6 +334,7 @@ const errorTypeRegistries = [
314
334
  _s_registry,
315
335
  n0_registry,
316
336
  ];
337
+ var OAuthAccessToken = [0, n0, _OAAT, 8, 0];
317
338
  var RefreshToken = [0, n0, _RT, 8, 0];
318
339
  var AccessToken$ = [3, n0, _AT,
319
340
  8,
@@ -340,9 +361,22 @@ var CreateOAuth2TokenResponseBody$ = [3, n0, _COATRBr,
340
361
  [_aT, _tT, _eI, _rT, _iT],
341
362
  [[() => AccessToken$, { [_jN]: _aT }], [0, { [_jN]: _tT }], [1, { [_jN]: _eI }], [() => RefreshToken, { [_jN]: _rT }], [0, { [_jN]: _iT }]], 4
342
363
  ];
364
+ var CreateOAuth2TokenWithIAMRequest$ = [3, n0, _COATWIAMR,
365
+ 0,
366
+ [_gT, _r],
367
+ [[0, { [_jN]: _gt }], 0], 2
368
+ ];
369
+ var CreateOAuth2TokenWithIAMResponse$ = [3, n0, _COATWIAMRr,
370
+ 0,
371
+ [_aT, _tT, _eI],
372
+ [[() => OAuthAccessToken, { [_jN]: _at }], [0, { [_jN]: _tt }], [1, { [_jN]: _ei }]], 3
373
+ ];
343
374
  var CreateOAuth2Token$ = [9, n0, _COAT,
344
375
  { [_h]: ["POST", "/v1/token", 200] }, () => CreateOAuth2TokenRequest$, () => CreateOAuth2TokenResponse$
345
376
  ];
377
+ var CreateOAuth2TokenWithIAM$ = [9, n0, _COATWIAM,
378
+ { [_h]: ["POST", "/v1/token?x-amz-client-auth-method=iam", 200] }, () => CreateOAuth2TokenWithIAMRequest$, () => CreateOAuth2TokenWithIAMResponse$
379
+ ];
346
380
 
347
381
  const getRuntimeConfig$1 = (config) => {
348
382
  return {
@@ -498,13 +532,20 @@ const command = makeBuilder(commonParams, "Signin", "SigninClient", getEndpointP
498
532
  const _ep0 = {
499
533
  IsControlPlane: { type: "staticContextParams", value: false },
500
534
  };
535
+ const _ep1 = {
536
+ IsOAuthEndpoint: { type: "staticContextParams", value: true },
537
+ };
501
538
  const _mw0 = (Command, cs, config, o) => [];
502
539
 
503
540
  class CreateOAuth2TokenCommand extends command(_ep0, _mw0, "CreateOAuth2Token", CreateOAuth2Token$) {
504
541
  }
505
542
 
543
+ class CreateOAuth2TokenWithIAMCommand extends command(_ep1, _mw0, "CreateOAuth2TokenWithIAM", CreateOAuth2TokenWithIAM$) {
544
+ }
545
+
506
546
  const commands = {
507
547
  CreateOAuth2TokenCommand,
548
+ CreateOAuth2TokenWithIAMCommand,
508
549
  };
509
550
  class Signin extends SigninClient {
510
551
  }
@@ -531,6 +572,10 @@ exports.CreateOAuth2TokenRequest$ = CreateOAuth2TokenRequest$;
531
572
  exports.CreateOAuth2TokenRequestBody$ = CreateOAuth2TokenRequestBody$;
532
573
  exports.CreateOAuth2TokenResponse$ = CreateOAuth2TokenResponse$;
533
574
  exports.CreateOAuth2TokenResponseBody$ = CreateOAuth2TokenResponseBody$;
575
+ exports.CreateOAuth2TokenWithIAM$ = CreateOAuth2TokenWithIAM$;
576
+ exports.CreateOAuth2TokenWithIAMCommand = CreateOAuth2TokenWithIAMCommand;
577
+ exports.CreateOAuth2TokenWithIAMRequest$ = CreateOAuth2TokenWithIAMRequest$;
578
+ exports.CreateOAuth2TokenWithIAMResponse$ = CreateOAuth2TokenWithIAMResponse$;
534
579
  exports.InternalServerException = InternalServerException;
535
580
  exports.InternalServerException$ = InternalServerException$;
536
581
  exports.OAuth2ErrorCode = OAuth2ErrorCode;
@@ -46,10 +46,11 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
46
46
  const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
47
47
  const options = [];
48
48
  switch (authParameters.operation) {
49
- case "GetRoleCredentials": {
50
- options.push(createSmithyApiNoAuthHttpAuthOption());
51
- break;
52
- }
49
+ case "GetRoleCredentials":
50
+ {
51
+ options.push(createSmithyApiNoAuthHttpAuthOption());
52
+ break;
53
+ }
53
54
  default: {
54
55
  options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
55
56
  }
@@ -77,7 +78,7 @@ const commonParams = {
77
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
78
79
  };
79
80
 
80
- var version = "3.997.30";
81
+ var version = "3.997.32";
81
82
  var packageInfo = {
82
83
  version: version};
83
84
 
@@ -46,10 +46,11 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
46
46
  const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
47
47
  const options = [];
48
48
  switch (authParameters.operation) {
49
- case "CreateToken": {
50
- options.push(createSmithyApiNoAuthHttpAuthOption());
51
- break;
52
- }
49
+ case "CreateToken":
50
+ {
51
+ options.push(createSmithyApiNoAuthHttpAuthOption());
52
+ break;
53
+ }
53
54
  default: {
54
55
  options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
55
56
  }
@@ -77,7 +78,7 @@ const commonParams = {
77
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
78
79
  };
79
80
 
80
- var version = "3.997.30";
81
+ var version = "3.997.32";
81
82
  var packageInfo = {
82
83
  version: version};
83
84
 
@@ -258,7 +258,7 @@ const commonParams = {
258
258
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
259
259
  };
260
260
 
261
- var version = "3.997.30";
261
+ var version = "3.997.32";
262
262
  var packageInfo = {
263
263
  version: version};
264
264
 
@@ -31,14 +31,18 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
31
31
  export const defaultCognitoIdentityHttpAuthSchemeProvider = (authParameters) => {
32
32
  const options = [];
33
33
  switch (authParameters.operation) {
34
- case "GetCredentialsForIdentity": {
35
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
36
- break;
37
- }
38
- case "GetId": {
39
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
40
- break;
41
- }
34
+ case "GetCredentialsForIdentity":
35
+ {
36
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
37
+ break;
38
+ }
39
+ ;
40
+ case "GetId":
41
+ {
42
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
43
+ break;
44
+ }
45
+ ;
42
46
  default: {
43
47
  options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
44
48
  }
@@ -1,8 +1,10 @@
1
1
  import { createAggregatedClient } from "@smithy/core/client";
2
2
  import { CreateOAuth2TokenCommand, } from "./commands/CreateOAuth2TokenCommand";
3
+ import { CreateOAuth2TokenWithIAMCommand, } from "./commands/CreateOAuth2TokenWithIAMCommand";
3
4
  import { SigninClient } from "./SigninClient";
4
5
  const commands = {
5
6
  CreateOAuth2TokenCommand,
7
+ CreateOAuth2TokenWithIAMCommand,
6
8
  };
7
9
  export class Signin extends SigninClient {
8
10
  }
@@ -31,10 +31,12 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
31
31
  export const defaultSigninHttpAuthSchemeProvider = (authParameters) => {
32
32
  const options = [];
33
33
  switch (authParameters.operation) {
34
- case "CreateOAuth2Token": {
35
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
36
- break;
37
- }
34
+ case "CreateOAuth2Token":
35
+ {
36
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
37
+ break;
38
+ }
39
+ ;
38
40
  default: {
39
41
  options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
40
42
  }
@@ -5,4 +5,7 @@ export const command = makeBuilder(commonParams, "Signin", "SigninClient", getEn
5
5
  export const _ep0 = {
6
6
  IsControlPlane: { type: "staticContextParams", value: false },
7
7
  };
8
+ export const _ep1 = {
9
+ IsOAuthEndpoint: { type: "staticContextParams", value: true },
10
+ };
8
11
  export const _mw0 = (Command, cs, config, o) => [];
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { CreateOAuth2TokenWithIAM$ } from "../schemas/schemas_0";
3
+ export class CreateOAuth2TokenWithIAMCommand extends command(_ep1, _mw0, "CreateOAuth2TokenWithIAM", CreateOAuth2TokenWithIAM$) {
4
+ }
@@ -1 +1,2 @@
1
1
  export * from "./CreateOAuth2TokenCommand";
2
+ export * from "./CreateOAuth2TokenWithIAMCommand";