@aws-sdk/client-signin 3.952.0 → 3.953.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -110,14 +110,14 @@ class SigninClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- let SigninServiceException$1 = class SigninServiceException extends smithyClient.ServiceException {
113
+ class SigninServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, SigninServiceException.prototype);
117
117
  }
118
- };
118
+ }
119
119
 
120
- let AccessDeniedException$1 = class AccessDeniedException extends SigninServiceException$1 {
120
+ class AccessDeniedException extends SigninServiceException {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  error;
@@ -130,8 +130,8 @@ let AccessDeniedException$1 = class AccessDeniedException extends SigninServiceE
130
130
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
131
  this.error = opts.error;
132
132
  }
133
- };
134
- let InternalServerException$1 = class InternalServerException extends SigninServiceException$1 {
133
+ }
134
+ class InternalServerException extends SigninServiceException {
135
135
  name = "InternalServerException";
136
136
  $fault = "server";
137
137
  error;
@@ -144,8 +144,8 @@ let InternalServerException$1 = class InternalServerException extends SigninServ
144
144
  Object.setPrototypeOf(this, InternalServerException.prototype);
145
145
  this.error = opts.error;
146
146
  }
147
- };
148
- let TooManyRequestsError$1 = class TooManyRequestsError extends SigninServiceException$1 {
147
+ }
148
+ class TooManyRequestsError extends SigninServiceException {
149
149
  name = "TooManyRequestsError";
150
150
  $fault = "client";
151
151
  error;
@@ -158,8 +158,8 @@ let TooManyRequestsError$1 = class TooManyRequestsError extends SigninServiceExc
158
158
  Object.setPrototypeOf(this, TooManyRequestsError.prototype);
159
159
  this.error = opts.error;
160
160
  }
161
- };
162
- let ValidationException$1 = class ValidationException extends SigninServiceException$1 {
161
+ }
162
+ class ValidationException extends SigninServiceException {
163
163
  name = "ValidationException";
164
164
  $fault = "client";
165
165
  error;
@@ -172,7 +172,7 @@ let ValidationException$1 = class ValidationException extends SigninServiceExcep
172
172
  Object.setPrototypeOf(this, ValidationException.prototype);
173
173
  this.error = opts.error;
174
174
  }
175
- };
175
+ }
176
176
 
177
177
  const _ADE = "AccessDeniedException";
178
178
  const _AT = "AccessToken";
@@ -210,9 +210,9 @@ const _tO = "tokenOutput";
210
210
  const _tT = "tokenType";
211
211
  const n0 = "com.amazonaws.signin";
212
212
  var RefreshToken = [0, n0, _RT, 8, 0];
213
- var AccessDeniedException = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0]];
214
- schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
215
- var AccessToken = [
213
+ var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0]];
214
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
215
+ var AccessToken$ = [
216
216
  3,
217
217
  n0,
218
218
  _AT,
@@ -224,15 +224,15 @@ var AccessToken = [
224
224
  [0, { [_jN]: _sT }],
225
225
  ],
226
226
  ];
227
- var CreateOAuth2TokenRequest = [
227
+ var CreateOAuth2TokenRequest$ = [
228
228
  3,
229
229
  n0,
230
230
  _COATR,
231
231
  0,
232
232
  [_tI],
233
- [[() => CreateOAuth2TokenRequestBody, 16]],
233
+ [[() => CreateOAuth2TokenRequestBody$, 16]],
234
234
  ];
235
- var CreateOAuth2TokenRequestBody = [
235
+ var CreateOAuth2TokenRequestBody$ = [
236
236
  3,
237
237
  n0,
238
238
  _COATRB,
@@ -247,43 +247,43 @@ var CreateOAuth2TokenRequestBody = [
247
247
  [() => RefreshToken, { [_jN]: _rT }],
248
248
  ],
249
249
  ];
250
- var CreateOAuth2TokenResponse = [
250
+ var CreateOAuth2TokenResponse$ = [
251
251
  3,
252
252
  n0,
253
253
  _COATRr,
254
254
  0,
255
255
  [_tO],
256
- [[() => CreateOAuth2TokenResponseBody, 16]],
256
+ [[() => CreateOAuth2TokenResponseBody$, 16]],
257
257
  ];
258
- var CreateOAuth2TokenResponseBody = [
258
+ var CreateOAuth2TokenResponseBody$ = [
259
259
  3,
260
260
  n0,
261
261
  _COATRBr,
262
262
  0,
263
263
  [_aT, _tT, _eI, _rT, _iT],
264
264
  [
265
- [() => AccessToken, { [_jN]: _aT }],
265
+ [() => AccessToken$, { [_jN]: _aT }],
266
266
  [0, { [_jN]: _tT }],
267
267
  [1, { [_jN]: _eI }],
268
268
  [() => RefreshToken, { [_jN]: _rT }],
269
269
  [0, { [_jN]: _iT }],
270
270
  ],
271
271
  ];
272
- var InternalServerException = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_e, _m], [0, 0]];
273
- schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
274
- var TooManyRequestsError = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0]];
275
- schema.TypeRegistry.for(n0).registerError(TooManyRequestsError, TooManyRequestsError$1);
276
- var ValidationException = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0]];
277
- schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
278
- var SigninServiceException = [-3, _sm, "SigninServiceException", 0, [], []];
279
- schema.TypeRegistry.for(_sm).registerError(SigninServiceException, SigninServiceException$1);
280
- var CreateOAuth2Token = [
272
+ var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_e, _m], [0, 0]];
273
+ schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
274
+ var TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0]];
275
+ schema.TypeRegistry.for(n0).registerError(TooManyRequestsError$, TooManyRequestsError);
276
+ var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0]];
277
+ schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
278
+ var SigninServiceException$ = [-3, _sm, "SigninServiceException", 0, [], []];
279
+ schema.TypeRegistry.for(_sm).registerError(SigninServiceException$, SigninServiceException);
280
+ var CreateOAuth2Token$ = [
281
281
  9,
282
282
  n0,
283
283
  _COAT,
284
284
  { [_h]: ["POST", "/v1/token", 200] },
285
- () => CreateOAuth2TokenRequest,
286
- () => CreateOAuth2TokenResponse,
285
+ () => CreateOAuth2TokenRequest$,
286
+ () => CreateOAuth2TokenResponse$,
287
287
  ];
288
288
 
289
289
  class CreateOAuth2TokenCommand extends smithyClient.Command
@@ -294,7 +294,7 @@ class CreateOAuth2TokenCommand extends smithyClient.Command
294
294
  })
295
295
  .s("Signin", "CreateOAuth2Token", {})
296
296
  .n("SigninClient", "CreateOAuth2TokenCommand")
297
- .sc(CreateOAuth2Token)
297
+ .sc(CreateOAuth2Token$)
298
298
  .build() {
299
299
  }
300
300
 
@@ -322,12 +322,23 @@ Object.defineProperty(exports, "__Client", {
322
322
  enumerable: true,
323
323
  get: function () { return smithyClient.Client; }
324
324
  });
325
- exports.AccessDeniedException = AccessDeniedException$1;
325
+ exports.AccessDeniedException = AccessDeniedException;
326
+ exports.AccessDeniedException$ = AccessDeniedException$;
327
+ exports.AccessToken$ = AccessToken$;
328
+ exports.CreateOAuth2Token$ = CreateOAuth2Token$;
326
329
  exports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand;
327
- exports.InternalServerException = InternalServerException$1;
330
+ exports.CreateOAuth2TokenRequest$ = CreateOAuth2TokenRequest$;
331
+ exports.CreateOAuth2TokenRequestBody$ = CreateOAuth2TokenRequestBody$;
332
+ exports.CreateOAuth2TokenResponse$ = CreateOAuth2TokenResponse$;
333
+ exports.CreateOAuth2TokenResponseBody$ = CreateOAuth2TokenResponseBody$;
334
+ exports.InternalServerException = InternalServerException;
335
+ exports.InternalServerException$ = InternalServerException$;
328
336
  exports.OAuth2ErrorCode = OAuth2ErrorCode;
329
337
  exports.Signin = Signin;
330
338
  exports.SigninClient = SigninClient;
331
- exports.SigninServiceException = SigninServiceException$1;
332
- exports.TooManyRequestsError = TooManyRequestsError$1;
333
- exports.ValidationException = ValidationException$1;
339
+ exports.SigninServiceException = SigninServiceException;
340
+ exports.SigninServiceException$ = SigninServiceException$;
341
+ exports.TooManyRequestsError = TooManyRequestsError;
342
+ exports.TooManyRequestsError$ = TooManyRequestsError$;
343
+ exports.ValidationException = ValidationException;
344
+ exports.ValidationException$ = ValidationException$;
@@ -32,7 +32,12 @@ const getRuntimeConfig = (config) => {
32
32
  },
33
33
  ],
34
34
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
35
- protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.signin" }),
35
+ protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
36
+ protocolSettings: config?.protocolSettings ?? {
37
+ defaultNamespace: "com.amazonaws.signin",
38
+ version: "2023-01-01",
39
+ serviceTarget: "Signin",
40
+ },
36
41
  serviceId: config?.serviceId ?? "Signin",
37
42
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
38
43
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { CreateOAuth2Token } from "../schemas/schemas_0";
4
+ import { CreateOAuth2Token$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class CreateOAuth2TokenCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class CreateOAuth2TokenCommand extends $Command
11
11
  })
12
12
  .s("Signin", "CreateOAuth2Token", {})
13
13
  .n("SigninClient", "CreateOAuth2TokenCommand")
14
- .sc(CreateOAuth2Token)
14
+ .sc(CreateOAuth2Token$)
15
15
  .build() {
16
16
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./SigninClient";
2
2
  export * from "./Signin";
3
3
  export * from "./commands";
4
+ export * from "./schemas/schemas_0";
4
5
  export * from "./models/enums";
5
6
  export * from "./models/errors";
6
7
  export { SigninServiceException } from "./models/SigninServiceException";
@@ -29,7 +29,12 @@ export const getRuntimeConfig = (config) => {
29
29
  },
30
30
  ],
31
31
  logger: config?.logger ?? new NoOpLogger(),
32
- protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.signin" }),
32
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
33
+ protocolSettings: config?.protocolSettings ?? {
34
+ defaultNamespace: "com.amazonaws.signin",
35
+ version: "2023-01-01",
36
+ serviceTarget: "Signin",
37
+ },
33
38
  serviceId: config?.serviceId ?? "Signin",
34
39
  urlParser: config?.urlParser ?? parseUrl,
35
40
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -34,12 +34,12 @@ const _tO = "tokenOutput";
34
34
  const _tT = "tokenType";
35
35
  const n0 = "com.amazonaws.signin";
36
36
  import { TypeRegistry } from "@smithy/core/schema";
37
- import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, TooManyRequestsError as __TooManyRequestsError, ValidationException as __ValidationException, } from "../models/errors";
38
- import { SigninServiceException as __SigninServiceException } from "../models/SigninServiceException";
39
- export var RefreshToken = [0, n0, _RT, 8, 0];
40
- export var AccessDeniedException = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0]];
41
- TypeRegistry.for(n0).registerError(AccessDeniedException, __AccessDeniedException);
42
- export var AccessToken = [
37
+ import { AccessDeniedException, InternalServerException, TooManyRequestsError, ValidationException, } from "../models/errors";
38
+ import { SigninServiceException } from "../models/SigninServiceException";
39
+ var RefreshToken = [0, n0, _RT, 8, 0];
40
+ export var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0]];
41
+ TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
42
+ export var AccessToken$ = [
43
43
  3,
44
44
  n0,
45
45
  _AT,
@@ -51,15 +51,15 @@ export var AccessToken = [
51
51
  [0, { [_jN]: _sT }],
52
52
  ],
53
53
  ];
54
- export var CreateOAuth2TokenRequest = [
54
+ export var CreateOAuth2TokenRequest$ = [
55
55
  3,
56
56
  n0,
57
57
  _COATR,
58
58
  0,
59
59
  [_tI],
60
- [[() => CreateOAuth2TokenRequestBody, 16]],
60
+ [[() => CreateOAuth2TokenRequestBody$, 16]],
61
61
  ];
62
- export var CreateOAuth2TokenRequestBody = [
62
+ export var CreateOAuth2TokenRequestBody$ = [
63
63
  3,
64
64
  n0,
65
65
  _COATRB,
@@ -74,41 +74,41 @@ export var CreateOAuth2TokenRequestBody = [
74
74
  [() => RefreshToken, { [_jN]: _rT }],
75
75
  ],
76
76
  ];
77
- export var CreateOAuth2TokenResponse = [
77
+ export var CreateOAuth2TokenResponse$ = [
78
78
  3,
79
79
  n0,
80
80
  _COATRr,
81
81
  0,
82
82
  [_tO],
83
- [[() => CreateOAuth2TokenResponseBody, 16]],
83
+ [[() => CreateOAuth2TokenResponseBody$, 16]],
84
84
  ];
85
- export var CreateOAuth2TokenResponseBody = [
85
+ export var CreateOAuth2TokenResponseBody$ = [
86
86
  3,
87
87
  n0,
88
88
  _COATRBr,
89
89
  0,
90
90
  [_aT, _tT, _eI, _rT, _iT],
91
91
  [
92
- [() => AccessToken, { [_jN]: _aT }],
92
+ [() => AccessToken$, { [_jN]: _aT }],
93
93
  [0, { [_jN]: _tT }],
94
94
  [1, { [_jN]: _eI }],
95
95
  [() => RefreshToken, { [_jN]: _rT }],
96
96
  [0, { [_jN]: _iT }],
97
97
  ],
98
98
  ];
99
- export var InternalServerException = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_e, _m], [0, 0]];
100
- TypeRegistry.for(n0).registerError(InternalServerException, __InternalServerException);
101
- export var TooManyRequestsError = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0]];
102
- TypeRegistry.for(n0).registerError(TooManyRequestsError, __TooManyRequestsError);
103
- export var ValidationException = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0]];
104
- TypeRegistry.for(n0).registerError(ValidationException, __ValidationException);
105
- export var SigninServiceException = [-3, _sm, "SigninServiceException", 0, [], []];
106
- TypeRegistry.for(_sm).registerError(SigninServiceException, __SigninServiceException);
107
- export var CreateOAuth2Token = [
99
+ export var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_e, _m], [0, 0]];
100
+ TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
101
+ export var TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0]];
102
+ TypeRegistry.for(n0).registerError(TooManyRequestsError$, TooManyRequestsError);
103
+ export var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0]];
104
+ TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
105
+ export var SigninServiceException$ = [-3, _sm, "SigninServiceException", 0, [], []];
106
+ TypeRegistry.for(_sm).registerError(SigninServiceException$, SigninServiceException);
107
+ export var CreateOAuth2Token$ = [
108
108
  9,
109
109
  n0,
110
110
  _COAT,
111
111
  { [_h]: ["POST", "/v1/token", 200] },
112
- () => CreateOAuth2TokenRequest,
113
- () => CreateOAuth2TokenResponse,
112
+ () => CreateOAuth2TokenRequest$,
113
+ () => CreateOAuth2TokenResponse$,
114
114
  ];
@@ -5,7 +5,7 @@ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/m
5
5
  import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
6
6
  import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
7
  import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
8
- import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type ClientProtocol, type Decoder as __Decoder, type Encoder as __Encoder, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type HttpRequest, type HttpResponse, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type Decoder as __Decoder, type Encoder as __Encoder, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput } from "./commands/CreateOAuth2TokenCommand";
11
11
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
@@ -142,15 +142,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
142
142
  * Optional extensions
143
143
  */
144
144
  extensions?: RuntimeExtension[];
145
- /**
146
- * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
147
- * may be overridden. A default will always be set by the client.
148
- * Available options depend on the service's supported protocols and will not be validated by
149
- * the client.
150
- * @alpha
151
- *
152
- */
153
- protocol?: ClientProtocol<HttpRequest, HttpResponse>;
154
145
  /**
155
146
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
156
147
  */
@@ -10,6 +10,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
10
10
  export type { RuntimeExtension } from "./runtimeExtensions";
11
11
  export type { SigninExtensionConfiguration } from "./extensionConfiguration";
12
12
  export * from "./commands";
13
+ export * from "./schemas/schemas_0";
13
14
  export * from "./models/enums";
14
15
  export * from "./models/errors";
15
16
  export type * from "./models/models_0";
@@ -17,8 +17,13 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
17
17
  streamCollector: import("@smithy/types").StreamCollector;
18
18
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
19
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
- apiVersion: string;
21
20
  cacheMiddleware?: boolean | undefined;
21
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
22
+ protocolSettings: {
23
+ defaultNamespace?: string;
24
+ [setting: string]: unknown;
25
+ };
26
+ apiVersion: string;
22
27
  urlParser: import("@smithy/types").UrlParser;
23
28
  base64Decoder: import("@smithy/types").Decoder;
24
29
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -29,7 +34,6 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
29
34
  profile?: string;
30
35
  logger: import("@smithy/types").Logger;
31
36
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
33
37
  customUserAgent?: string | import("@smithy/types").UserAgent;
34
38
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
35
39
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -19,8 +19,13 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
19
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
22
- apiVersion: string;
23
22
  cacheMiddleware?: boolean | undefined;
23
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
24
+ protocolSettings: {
25
+ defaultNamespace?: string;
26
+ [setting: string]: unknown;
27
+ };
28
+ apiVersion: string;
24
29
  urlParser: import("@smithy/types").UrlParser;
25
30
  base64Decoder: import("@smithy/types").Decoder;
26
31
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -31,7 +36,6 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
31
36
  profile?: string;
32
37
  logger: import("@smithy/types").Logger;
33
38
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
35
39
  customUserAgent?: string | import("@smithy/types").UserAgent;
36
40
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
37
41
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
@@ -6,8 +6,13 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
- apiVersion: string;
10
9
  cacheMiddleware?: boolean;
10
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
11
+ protocolSettings: {
12
+ defaultNamespace?: string;
13
+ [setting: string]: unknown;
14
+ };
15
+ apiVersion: string;
11
16
  urlParser: import("@smithy/types").UrlParser;
12
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
13
18
  streamCollector: import("@smithy/types").StreamCollector;
@@ -27,7 +32,6 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
27
32
  retryMode: string | import("@smithy/types").Provider<string>;
28
33
  logger: import("@smithy/types").Logger;
29
34
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
31
35
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
32
36
  customUserAgent?: string | import("@smithy/types").UserAgent;
33
37
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoAuthSigner } from "@smithy/core";
3
4
  import type { IdentityProviderConfig } from "@smithy/types";
4
5
  import type { SigninClientConfig } from "./SigninClient";
@@ -25,7 +26,11 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
25
26
  signer: NoAuthSigner;
26
27
  })[];
27
28
  logger: import("@smithy/types").Logger;
28
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
29
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof AwsRestJsonProtocol;
30
+ protocolSettings: {
31
+ [setting: string]: unknown;
32
+ defaultNamespace?: string;
33
+ };
29
34
  serviceId: string;
30
35
  urlParser: import("@smithy/types").UrlParser;
31
36
  utf8Decoder: import("@smithy/types").Decoder;
@@ -1,13 +1,12 @@
1
- import type { StaticErrorSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
2
- export declare var RefreshToken: StaticSimpleSchema;
3
- export declare var AccessDeniedException: StaticErrorSchema;
4
- export declare var AccessToken: StaticStructureSchema;
5
- export declare var CreateOAuth2TokenRequest: StaticStructureSchema;
6
- export declare var CreateOAuth2TokenRequestBody: StaticStructureSchema;
7
- export declare var CreateOAuth2TokenResponse: StaticStructureSchema;
8
- export declare var CreateOAuth2TokenResponseBody: StaticStructureSchema;
9
- export declare var InternalServerException: StaticErrorSchema;
10
- export declare var TooManyRequestsError: StaticErrorSchema;
11
- export declare var ValidationException: StaticErrorSchema;
12
- export declare var SigninServiceException: StaticErrorSchema;
13
- export declare var CreateOAuth2Token: StaticOperationSchema;
1
+ import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var AccessDeniedException$: StaticErrorSchema;
3
+ export declare var AccessToken$: StaticStructureSchema;
4
+ export declare var CreateOAuth2TokenRequest$: StaticStructureSchema;
5
+ export declare var CreateOAuth2TokenRequestBody$: StaticStructureSchema;
6
+ export declare var CreateOAuth2TokenResponse$: StaticStructureSchema;
7
+ export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
8
+ export declare var InternalServerException$: StaticErrorSchema;
9
+ export declare var TooManyRequestsError$: StaticErrorSchema;
10
+ export declare var ValidationException$: StaticErrorSchema;
11
+ export declare var SigninServiceException$: StaticErrorSchema;
12
+ export declare var CreateOAuth2Token$: StaticOperationSchema;
@@ -29,13 +29,10 @@ import {
29
29
  BodyLengthCalculator as __BodyLengthCalculator,
30
30
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
31
31
  ChecksumConstructor as __ChecksumConstructor,
32
- ClientProtocol,
33
32
  Decoder as __Decoder,
34
33
  Encoder as __Encoder,
35
34
  HashConstructor as __HashConstructor,
36
35
  HttpHandlerOptions as __HttpHandlerOptions,
37
- HttpRequest,
38
- HttpResponse,
39
36
  Logger as __Logger,
40
37
  Provider as __Provider,
41
38
  StreamCollector as __StreamCollector,
@@ -85,7 +82,6 @@ export interface ClientDefaults
85
82
  retryMode?: string | __Provider<string>;
86
83
  logger?: __Logger;
87
84
  extensions?: RuntimeExtension[];
88
- protocol?: ClientProtocol<HttpRequest, HttpResponse>;
89
85
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
90
86
  }
91
87
  export type SigninClientConfigType = Partial<
@@ -4,6 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { SigninExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
+ export * from "./schemas/schemas_0";
7
8
  export * from "./models/enums";
8
9
  export * from "./models/errors";
9
10
  export * from "./models/models_0";
@@ -26,8 +26,16 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
26
26
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
27
27
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
28
28
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
29
- apiVersion: string;
30
29
  cacheMiddleware?: boolean | undefined;
30
+ protocol:
31
+ | import("@smithy/types").ClientProtocol<any, any>
32
+ | import("@smithy/types").ClientProtocolCtor<any, any>
33
+ | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
34
+ protocolSettings: {
35
+ defaultNamespace?: string;
36
+ [setting: string]: unknown;
37
+ };
38
+ apiVersion: string;
31
39
  urlParser: import("@smithy/types").UrlParser;
32
40
  base64Decoder: import("@smithy/types").Decoder;
33
41
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -38,10 +46,6 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
38
46
  profile?: string;
39
47
  logger: import("@smithy/types").Logger;
40
48
  extensions: import("./runtimeExtensions").RuntimeExtension[];
41
- protocol: import("@smithy/types").ClientProtocol<
42
- import("@smithy/types").HttpRequest,
43
- import("@smithy/types").HttpResponse
44
- >;
45
49
  customUserAgent?: string | import("@smithy/types").UserAgent;
46
50
  userAgentAppId?:
47
51
  | string
@@ -26,8 +26,16 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
26
26
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
27
27
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
28
28
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
29
- apiVersion: string;
30
29
  cacheMiddleware?: boolean | undefined;
30
+ protocol:
31
+ | import("@smithy/types").ClientProtocol<any, any>
32
+ | import("@smithy/types").ClientProtocolCtor<any, any>
33
+ | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
34
+ protocolSettings: {
35
+ defaultNamespace?: string;
36
+ [setting: string]: unknown;
37
+ };
38
+ apiVersion: string;
31
39
  urlParser: import("@smithy/types").UrlParser;
32
40
  base64Decoder: import("@smithy/types").Decoder;
33
41
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -38,10 +46,6 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
38
46
  profile?: string;
39
47
  logger: import("@smithy/types").Logger;
40
48
  extensions: import("./runtimeExtensions").RuntimeExtension[];
41
- protocol: import("@smithy/types").ClientProtocol<
42
- import("@smithy/types").HttpRequest,
43
- import("@smithy/types").HttpResponse
44
- >;
45
49
  customUserAgent?: string | import("@smithy/types").UserAgent;
46
50
  retryStrategy?:
47
51
  | import("@smithy/types").RetryStrategy
@@ -8,8 +8,16 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
8
8
  | Record<string, unknown>
9
9
  | import("@smithy/protocol-http").HttpHandler<any>
10
10
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
11
- apiVersion: string;
12
11
  cacheMiddleware?: boolean;
12
+ protocol:
13
+ | import("@smithy/types").ClientProtocol<any, any>
14
+ | import("@smithy/types").ClientProtocolCtor<any, any>
15
+ | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
16
+ protocolSettings: {
17
+ defaultNamespace?: string;
18
+ [setting: string]: unknown;
19
+ };
20
+ apiVersion: string;
13
21
  urlParser: import("@smithy/types").UrlParser;
14
22
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
15
23
  streamCollector: import("@smithy/types").StreamCollector;
@@ -37,10 +45,6 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
37
45
  retryMode: string | import("@smithy/types").Provider<string>;
38
46
  logger: import("@smithy/types").Logger;
39
47
  extensions: import("./runtimeExtensions").RuntimeExtension[];
40
- protocol: import("@smithy/types").ClientProtocol<
41
- import("@smithy/types").HttpRequest,
42
- import("@smithy/types").HttpResponse
43
- >;
44
48
  defaultsMode:
45
49
  | import("@smithy/smithy-client").DefaultsMode
46
50
  | import("@smithy/types").Provider<
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoAuthSigner } from "@smithy/core";
3
4
  import { IdentityProviderConfig } from "@smithy/types";
4
5
  import { SigninClientConfig } from "./SigninClient";
@@ -42,10 +43,14 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
42
43
  }
43
44
  )[];
44
45
  logger: import("@smithy/types").Logger;
45
- protocol: import("@smithy/types").ClientProtocol<
46
- import("@smithy/types").HttpRequest,
47
- import("@smithy/types").HttpResponse
48
- >;
46
+ protocol:
47
+ | import("@smithy/types").ClientProtocol<any, any>
48
+ | import("@smithy/types").ClientProtocolCtor<any, any>
49
+ | typeof AwsRestJsonProtocol;
50
+ protocolSettings: {
51
+ [setting: string]: unknown;
52
+ defaultNamespace?: string;
53
+ };
49
54
  serviceId: string;
50
55
  urlParser: import("@smithy/types").UrlParser;
51
56
  utf8Decoder: import("@smithy/types").Decoder;
@@ -1,18 +1,16 @@
1
1
  import {
2
2
  StaticErrorSchema,
3
3
  StaticOperationSchema,
4
- StaticSimpleSchema,
5
4
  StaticStructureSchema,
6
5
  } from "@smithy/types";
7
- export declare var RefreshToken: StaticSimpleSchema;
8
- export declare var AccessDeniedException: StaticErrorSchema;
9
- export declare var AccessToken: StaticStructureSchema;
10
- export declare var CreateOAuth2TokenRequest: StaticStructureSchema;
11
- export declare var CreateOAuth2TokenRequestBody: StaticStructureSchema;
12
- export declare var CreateOAuth2TokenResponse: StaticStructureSchema;
13
- export declare var CreateOAuth2TokenResponseBody: StaticStructureSchema;
14
- export declare var InternalServerException: StaticErrorSchema;
15
- export declare var TooManyRequestsError: StaticErrorSchema;
16
- export declare var ValidationException: StaticErrorSchema;
17
- export declare var SigninServiceException: StaticErrorSchema;
18
- export declare var CreateOAuth2Token: StaticOperationSchema;
6
+ export declare var AccessDeniedException$: StaticErrorSchema;
7
+ export declare var AccessToken$: StaticStructureSchema;
8
+ export declare var CreateOAuth2TokenRequest$: StaticStructureSchema;
9
+ export declare var CreateOAuth2TokenRequestBody$: StaticStructureSchema;
10
+ export declare var CreateOAuth2TokenResponse$: StaticStructureSchema;
11
+ export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
12
+ export declare var InternalServerException$: StaticErrorSchema;
13
+ export declare var TooManyRequestsError$: StaticErrorSchema;
14
+ export declare var ValidationException$: StaticErrorSchema;
15
+ export declare var SigninServiceException$: StaticErrorSchema;
16
+ export declare var CreateOAuth2Token$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-signin",
3
3
  "description": "AWS SDK for JavaScript Signin Client for Node.js, Browser and React Native",
4
- "version": "3.952.0",
4
+ "version": "3.953.0",
5
5
  "scripts": {
6
- "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
+ "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-signin",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
@@ -21,41 +21,41 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "3.947.0",
25
- "@aws-sdk/credential-provider-node": "3.952.0",
26
- "@aws-sdk/middleware-host-header": "3.936.0",
27
- "@aws-sdk/middleware-logger": "3.936.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.948.0",
29
- "@aws-sdk/middleware-user-agent": "3.947.0",
30
- "@aws-sdk/region-config-resolver": "3.936.0",
31
- "@aws-sdk/types": "3.936.0",
32
- "@aws-sdk/util-endpoints": "3.936.0",
33
- "@aws-sdk/util-user-agent-browser": "3.936.0",
34
- "@aws-sdk/util-user-agent-node": "3.947.0",
35
- "@smithy/config-resolver": "^4.4.3",
36
- "@smithy/core": "^3.18.7",
37
- "@smithy/fetch-http-handler": "^5.3.6",
38
- "@smithy/hash-node": "^4.2.5",
39
- "@smithy/invalid-dependency": "^4.2.5",
40
- "@smithy/middleware-content-length": "^4.2.5",
41
- "@smithy/middleware-endpoint": "^4.3.14",
42
- "@smithy/middleware-retry": "^4.4.14",
43
- "@smithy/middleware-serde": "^4.2.6",
44
- "@smithy/middleware-stack": "^4.2.5",
45
- "@smithy/node-config-provider": "^4.3.5",
46
- "@smithy/node-http-handler": "^4.4.5",
47
- "@smithy/protocol-http": "^5.3.5",
48
- "@smithy/smithy-client": "^4.9.10",
49
- "@smithy/types": "^4.9.0",
50
- "@smithy/url-parser": "^4.2.5",
24
+ "@aws-sdk/core": "3.953.0",
25
+ "@aws-sdk/credential-provider-node": "3.953.0",
26
+ "@aws-sdk/middleware-host-header": "3.953.0",
27
+ "@aws-sdk/middleware-logger": "3.953.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.953.0",
29
+ "@aws-sdk/middleware-user-agent": "3.953.0",
30
+ "@aws-sdk/region-config-resolver": "3.953.0",
31
+ "@aws-sdk/types": "3.953.0",
32
+ "@aws-sdk/util-endpoints": "3.953.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.953.0",
34
+ "@aws-sdk/util-user-agent-node": "3.953.0",
35
+ "@smithy/config-resolver": "^4.4.4",
36
+ "@smithy/core": "^3.19.0",
37
+ "@smithy/fetch-http-handler": "^5.3.7",
38
+ "@smithy/hash-node": "^4.2.6",
39
+ "@smithy/invalid-dependency": "^4.2.6",
40
+ "@smithy/middleware-content-length": "^4.2.6",
41
+ "@smithy/middleware-endpoint": "^4.3.15",
42
+ "@smithy/middleware-retry": "^4.4.15",
43
+ "@smithy/middleware-serde": "^4.2.7",
44
+ "@smithy/middleware-stack": "^4.2.6",
45
+ "@smithy/node-config-provider": "^4.3.6",
46
+ "@smithy/node-http-handler": "^4.4.6",
47
+ "@smithy/protocol-http": "^5.3.6",
48
+ "@smithy/smithy-client": "^4.10.0",
49
+ "@smithy/types": "^4.10.0",
50
+ "@smithy/url-parser": "^4.2.6",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.13",
55
- "@smithy/util-defaults-mode-node": "^4.2.16",
56
- "@smithy/util-endpoints": "^3.2.5",
57
- "@smithy/util-middleware": "^4.2.5",
58
- "@smithy/util-retry": "^4.2.5",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.14",
55
+ "@smithy/util-defaults-mode-node": "^4.2.17",
56
+ "@smithy/util-endpoints": "^3.2.6",
57
+ "@smithy/util-middleware": "^4.2.6",
58
+ "@smithy/util-retry": "^4.2.6",
59
59
  "@smithy/util-utf8": "^4.2.0",
60
60
  "tslib": "^2.6.2"
61
61
  },