@aws-sdk/client-pinpoint-sms-voice 3.716.0 → 3.723.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
@@ -139,7 +139,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
139
139
  }, "resolveRuntimeExtensions");
140
140
 
141
141
  // src/PinpointSMSVoiceClient.ts
142
- var _PinpointSMSVoiceClient = class _PinpointSMSVoiceClient extends import_smithy_client.Client {
142
+ var PinpointSMSVoiceClient = class extends import_smithy_client.Client {
143
+ static {
144
+ __name(this, "PinpointSMSVoiceClient");
145
+ }
146
+ /**
147
+ * The resolved configuration of PinpointSMSVoiceClient class. This is resolved and normalized from the {@link PinpointSMSVoiceClientConfig | constructor configuration interface}.
148
+ */
149
+ config;
143
150
  constructor(...[configuration]) {
144
151
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
145
152
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -149,7 +156,7 @@ var _PinpointSMSVoiceClient = class _PinpointSMSVoiceClient extends import_smith
149
156
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
150
157
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
151
158
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
152
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
159
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
153
160
  super(_config_8);
154
161
  this.config = _config_8;
155
162
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -177,8 +184,6 @@ var _PinpointSMSVoiceClient = class _PinpointSMSVoiceClient extends import_smith
177
184
  super.destroy();
178
185
  }
179
186
  };
180
- __name(_PinpointSMSVoiceClient, "PinpointSMSVoiceClient");
181
- var PinpointSMSVoiceClient = _PinpointSMSVoiceClient;
182
187
 
183
188
  // src/PinpointSMSVoice.ts
184
189
 
@@ -195,7 +200,10 @@ var import_core2 = require("@aws-sdk/core");
195
200
 
196
201
  // src/models/PinpointSMSVoiceServiceException.ts
197
202
 
198
- var _PinpointSMSVoiceServiceException = class _PinpointSMSVoiceServiceException extends import_smithy_client.ServiceException {
203
+ var PinpointSMSVoiceServiceException = class _PinpointSMSVoiceServiceException extends import_smithy_client.ServiceException {
204
+ static {
205
+ __name(this, "PinpointSMSVoiceServiceException");
206
+ }
199
207
  /**
200
208
  * @internal
201
209
  */
@@ -204,11 +212,15 @@ var _PinpointSMSVoiceServiceException = class _PinpointSMSVoiceServiceException
204
212
  Object.setPrototypeOf(this, _PinpointSMSVoiceServiceException.prototype);
205
213
  }
206
214
  };
207
- __name(_PinpointSMSVoiceServiceException, "PinpointSMSVoiceServiceException");
208
- var PinpointSMSVoiceServiceException = _PinpointSMSVoiceServiceException;
209
215
 
210
216
  // src/models/models_0.ts
211
- var _AlreadyExistsException = class _AlreadyExistsException extends PinpointSMSVoiceServiceException {
217
+ var AlreadyExistsException = class _AlreadyExistsException extends PinpointSMSVoiceServiceException {
218
+ static {
219
+ __name(this, "AlreadyExistsException");
220
+ }
221
+ name = "AlreadyExistsException";
222
+ $fault = "client";
223
+ Message;
212
224
  /**
213
225
  * @internal
214
226
  */
@@ -218,15 +230,17 @@ var _AlreadyExistsException = class _AlreadyExistsException extends PinpointSMSV
218
230
  $fault: "client",
219
231
  ...opts
220
232
  });
221
- this.name = "AlreadyExistsException";
222
- this.$fault = "client";
223
233
  Object.setPrototypeOf(this, _AlreadyExistsException.prototype);
224
234
  this.Message = opts.Message;
225
235
  }
226
236
  };
227
- __name(_AlreadyExistsException, "AlreadyExistsException");
228
- var AlreadyExistsException = _AlreadyExistsException;
229
- var _BadRequestException = class _BadRequestException extends PinpointSMSVoiceServiceException {
237
+ var BadRequestException = class _BadRequestException extends PinpointSMSVoiceServiceException {
238
+ static {
239
+ __name(this, "BadRequestException");
240
+ }
241
+ name = "BadRequestException";
242
+ $fault = "client";
243
+ Message;
230
244
  /**
231
245
  * @internal
232
246
  */
@@ -236,15 +250,17 @@ var _BadRequestException = class _BadRequestException extends PinpointSMSVoiceSe
236
250
  $fault: "client",
237
251
  ...opts
238
252
  });
239
- this.name = "BadRequestException";
240
- this.$fault = "client";
241
253
  Object.setPrototypeOf(this, _BadRequestException.prototype);
242
254
  this.Message = opts.Message;
243
255
  }
244
256
  };
245
- __name(_BadRequestException, "BadRequestException");
246
- var BadRequestException = _BadRequestException;
247
- var _InternalServiceErrorException = class _InternalServiceErrorException extends PinpointSMSVoiceServiceException {
257
+ var InternalServiceErrorException = class _InternalServiceErrorException extends PinpointSMSVoiceServiceException {
258
+ static {
259
+ __name(this, "InternalServiceErrorException");
260
+ }
261
+ name = "InternalServiceErrorException";
262
+ $fault = "server";
263
+ Message;
248
264
  /**
249
265
  * @internal
250
266
  */
@@ -254,15 +270,17 @@ var _InternalServiceErrorException = class _InternalServiceErrorException extend
254
270
  $fault: "server",
255
271
  ...opts
256
272
  });
257
- this.name = "InternalServiceErrorException";
258
- this.$fault = "server";
259
273
  Object.setPrototypeOf(this, _InternalServiceErrorException.prototype);
260
274
  this.Message = opts.Message;
261
275
  }
262
276
  };
263
- __name(_InternalServiceErrorException, "InternalServiceErrorException");
264
- var InternalServiceErrorException = _InternalServiceErrorException;
265
- var _LimitExceededException = class _LimitExceededException extends PinpointSMSVoiceServiceException {
277
+ var LimitExceededException = class _LimitExceededException extends PinpointSMSVoiceServiceException {
278
+ static {
279
+ __name(this, "LimitExceededException");
280
+ }
281
+ name = "LimitExceededException";
282
+ $fault = "client";
283
+ Message;
266
284
  /**
267
285
  * @internal
268
286
  */
@@ -272,15 +290,17 @@ var _LimitExceededException = class _LimitExceededException extends PinpointSMSV
272
290
  $fault: "client",
273
291
  ...opts
274
292
  });
275
- this.name = "LimitExceededException";
276
- this.$fault = "client";
277
293
  Object.setPrototypeOf(this, _LimitExceededException.prototype);
278
294
  this.Message = opts.Message;
279
295
  }
280
296
  };
281
- __name(_LimitExceededException, "LimitExceededException");
282
- var LimitExceededException = _LimitExceededException;
283
- var _TooManyRequestsException = class _TooManyRequestsException extends PinpointSMSVoiceServiceException {
297
+ var TooManyRequestsException = class _TooManyRequestsException extends PinpointSMSVoiceServiceException {
298
+ static {
299
+ __name(this, "TooManyRequestsException");
300
+ }
301
+ name = "TooManyRequestsException";
302
+ $fault = "client";
303
+ Message;
284
304
  /**
285
305
  * @internal
286
306
  */
@@ -290,14 +310,10 @@ var _TooManyRequestsException = class _TooManyRequestsException extends Pinpoint
290
310
  $fault: "client",
291
311
  ...opts
292
312
  });
293
- this.name = "TooManyRequestsException";
294
- this.$fault = "client";
295
313
  Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
296
314
  this.Message = opts.Message;
297
315
  }
298
316
  };
299
- __name(_TooManyRequestsException, "TooManyRequestsException");
300
- var TooManyRequestsException = _TooManyRequestsException;
301
317
  var EventType = {
302
318
  ANSWERED: "ANSWERED",
303
319
  BUSY: "BUSY",
@@ -307,7 +323,13 @@ var EventType = {
307
323
  NO_ANSWER: "NO_ANSWER",
308
324
  RINGING: "RINGING"
309
325
  };
310
- var _NotFoundException = class _NotFoundException extends PinpointSMSVoiceServiceException {
326
+ var NotFoundException = class _NotFoundException extends PinpointSMSVoiceServiceException {
327
+ static {
328
+ __name(this, "NotFoundException");
329
+ }
330
+ name = "NotFoundException";
331
+ $fault = "client";
332
+ Message;
311
333
  /**
312
334
  * @internal
313
335
  */
@@ -317,14 +339,10 @@ var _NotFoundException = class _NotFoundException extends PinpointSMSVoiceServic
317
339
  $fault: "client",
318
340
  ...opts
319
341
  });
320
- this.name = "NotFoundException";
321
- this.$fault = "client";
322
342
  Object.setPrototypeOf(this, _NotFoundException.prototype);
323
343
  this.Message = opts.Message;
324
344
  }
325
345
  };
326
- __name(_NotFoundException, "NotFoundException");
327
- var NotFoundException = _NotFoundException;
328
346
 
329
347
  // src/protocols/Aws_restJson1.ts
330
348
  var se_CreateConfigurationSetCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -651,113 +669,121 @@ var _NT = "NextToken";
651
669
  var _PS = "PageSize";
652
670
 
653
671
  // src/commands/CreateConfigurationSetCommand.ts
654
- var _CreateConfigurationSetCommand = class _CreateConfigurationSetCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
672
+ var CreateConfigurationSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
655
673
  return [
656
674
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
657
675
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
658
676
  ];
659
677
  }).s("PinpointSMSVoice", "CreateConfigurationSet", {}).n("PinpointSMSVoiceClient", "CreateConfigurationSetCommand").f(void 0, void 0).ser(se_CreateConfigurationSetCommand).de(de_CreateConfigurationSetCommand).build() {
678
+ static {
679
+ __name(this, "CreateConfigurationSetCommand");
680
+ }
660
681
  };
661
- __name(_CreateConfigurationSetCommand, "CreateConfigurationSetCommand");
662
- var CreateConfigurationSetCommand = _CreateConfigurationSetCommand;
663
682
 
664
683
  // src/commands/CreateConfigurationSetEventDestinationCommand.ts
665
684
 
666
685
 
667
686
 
668
- var _CreateConfigurationSetEventDestinationCommand = class _CreateConfigurationSetEventDestinationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
687
+ var CreateConfigurationSetEventDestinationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
669
688
  return [
670
689
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
671
690
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
672
691
  ];
673
692
  }).s("PinpointSMSVoice", "CreateConfigurationSetEventDestination", {}).n("PinpointSMSVoiceClient", "CreateConfigurationSetEventDestinationCommand").f(void 0, void 0).ser(se_CreateConfigurationSetEventDestinationCommand).de(de_CreateConfigurationSetEventDestinationCommand).build() {
693
+ static {
694
+ __name(this, "CreateConfigurationSetEventDestinationCommand");
695
+ }
674
696
  };
675
- __name(_CreateConfigurationSetEventDestinationCommand, "CreateConfigurationSetEventDestinationCommand");
676
- var CreateConfigurationSetEventDestinationCommand = _CreateConfigurationSetEventDestinationCommand;
677
697
 
678
698
  // src/commands/DeleteConfigurationSetCommand.ts
679
699
 
680
700
 
681
701
 
682
- var _DeleteConfigurationSetCommand = class _DeleteConfigurationSetCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
702
+ var DeleteConfigurationSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
683
703
  return [
684
704
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
685
705
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
686
706
  ];
687
707
  }).s("PinpointSMSVoice", "DeleteConfigurationSet", {}).n("PinpointSMSVoiceClient", "DeleteConfigurationSetCommand").f(void 0, void 0).ser(se_DeleteConfigurationSetCommand).de(de_DeleteConfigurationSetCommand).build() {
708
+ static {
709
+ __name(this, "DeleteConfigurationSetCommand");
710
+ }
688
711
  };
689
- __name(_DeleteConfigurationSetCommand, "DeleteConfigurationSetCommand");
690
- var DeleteConfigurationSetCommand = _DeleteConfigurationSetCommand;
691
712
 
692
713
  // src/commands/DeleteConfigurationSetEventDestinationCommand.ts
693
714
 
694
715
 
695
716
 
696
- var _DeleteConfigurationSetEventDestinationCommand = class _DeleteConfigurationSetEventDestinationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
717
+ var DeleteConfigurationSetEventDestinationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
697
718
  return [
698
719
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
699
720
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
700
721
  ];
701
722
  }).s("PinpointSMSVoice", "DeleteConfigurationSetEventDestination", {}).n("PinpointSMSVoiceClient", "DeleteConfigurationSetEventDestinationCommand").f(void 0, void 0).ser(se_DeleteConfigurationSetEventDestinationCommand).de(de_DeleteConfigurationSetEventDestinationCommand).build() {
723
+ static {
724
+ __name(this, "DeleteConfigurationSetEventDestinationCommand");
725
+ }
702
726
  };
703
- __name(_DeleteConfigurationSetEventDestinationCommand, "DeleteConfigurationSetEventDestinationCommand");
704
- var DeleteConfigurationSetEventDestinationCommand = _DeleteConfigurationSetEventDestinationCommand;
705
727
 
706
728
  // src/commands/GetConfigurationSetEventDestinationsCommand.ts
707
729
 
708
730
 
709
731
 
710
- var _GetConfigurationSetEventDestinationsCommand = class _GetConfigurationSetEventDestinationsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
732
+ var GetConfigurationSetEventDestinationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
711
733
  return [
712
734
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
713
735
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
714
736
  ];
715
737
  }).s("PinpointSMSVoice", "GetConfigurationSetEventDestinations", {}).n("PinpointSMSVoiceClient", "GetConfigurationSetEventDestinationsCommand").f(void 0, void 0).ser(se_GetConfigurationSetEventDestinationsCommand).de(de_GetConfigurationSetEventDestinationsCommand).build() {
738
+ static {
739
+ __name(this, "GetConfigurationSetEventDestinationsCommand");
740
+ }
716
741
  };
717
- __name(_GetConfigurationSetEventDestinationsCommand, "GetConfigurationSetEventDestinationsCommand");
718
- var GetConfigurationSetEventDestinationsCommand = _GetConfigurationSetEventDestinationsCommand;
719
742
 
720
743
  // src/commands/ListConfigurationSetsCommand.ts
721
744
 
722
745
 
723
746
 
724
- var _ListConfigurationSetsCommand = class _ListConfigurationSetsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
747
+ var ListConfigurationSetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
725
748
  return [
726
749
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
727
750
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
728
751
  ];
729
752
  }).s("PinpointSMSVoice", "ListConfigurationSets", {}).n("PinpointSMSVoiceClient", "ListConfigurationSetsCommand").f(void 0, void 0).ser(se_ListConfigurationSetsCommand).de(de_ListConfigurationSetsCommand).build() {
753
+ static {
754
+ __name(this, "ListConfigurationSetsCommand");
755
+ }
730
756
  };
731
- __name(_ListConfigurationSetsCommand, "ListConfigurationSetsCommand");
732
- var ListConfigurationSetsCommand = _ListConfigurationSetsCommand;
733
757
 
734
758
  // src/commands/SendVoiceMessageCommand.ts
735
759
 
736
760
 
737
761
 
738
- var _SendVoiceMessageCommand = class _SendVoiceMessageCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
762
+ var SendVoiceMessageCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
739
763
  return [
740
764
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
741
765
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
742
766
  ];
743
767
  }).s("PinpointSMSVoice", "SendVoiceMessage", {}).n("PinpointSMSVoiceClient", "SendVoiceMessageCommand").f(void 0, void 0).ser(se_SendVoiceMessageCommand).de(de_SendVoiceMessageCommand).build() {
768
+ static {
769
+ __name(this, "SendVoiceMessageCommand");
770
+ }
744
771
  };
745
- __name(_SendVoiceMessageCommand, "SendVoiceMessageCommand");
746
- var SendVoiceMessageCommand = _SendVoiceMessageCommand;
747
772
 
748
773
  // src/commands/UpdateConfigurationSetEventDestinationCommand.ts
749
774
 
750
775
 
751
776
 
752
- var _UpdateConfigurationSetEventDestinationCommand = class _UpdateConfigurationSetEventDestinationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
777
+ var UpdateConfigurationSetEventDestinationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
753
778
  return [
754
779
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
755
780
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
756
781
  ];
757
782
  }).s("PinpointSMSVoice", "UpdateConfigurationSetEventDestination", {}).n("PinpointSMSVoiceClient", "UpdateConfigurationSetEventDestinationCommand").f(void 0, void 0).ser(se_UpdateConfigurationSetEventDestinationCommand).de(de_UpdateConfigurationSetEventDestinationCommand).build() {
783
+ static {
784
+ __name(this, "UpdateConfigurationSetEventDestinationCommand");
785
+ }
758
786
  };
759
- __name(_UpdateConfigurationSetEventDestinationCommand, "UpdateConfigurationSetEventDestinationCommand");
760
- var UpdateConfigurationSetEventDestinationCommand = _UpdateConfigurationSetEventDestinationCommand;
761
787
 
762
788
  // src/PinpointSMSVoice.ts
763
789
  var commands = {
@@ -770,10 +796,11 @@ var commands = {
770
796
  SendVoiceMessageCommand,
771
797
  UpdateConfigurationSetEventDestinationCommand
772
798
  };
773
- var _PinpointSMSVoice = class _PinpointSMSVoice extends PinpointSMSVoiceClient {
799
+ var PinpointSMSVoice = class extends PinpointSMSVoiceClient {
800
+ static {
801
+ __name(this, "PinpointSMSVoice");
802
+ }
774
803
  };
775
- __name(_PinpointSMSVoice, "PinpointSMSVoice");
776
- var PinpointSMSVoice = _PinpointSMSVoice;
777
804
  (0, import_smithy_client.createAggregatedClient)(commands, PinpointSMSVoice);
778
805
  // Annotate the CommonJS export names for ESM import in node:
779
806
 
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class PinpointSMSVoiceClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,65 +1,70 @@
1
1
  import { PinpointSMSVoiceServiceException as __BaseException } from "./PinpointSMSVoiceServiceException";
2
2
  export class AlreadyExistsException extends __BaseException {
3
+ name = "AlreadyExistsException";
4
+ $fault = "client";
5
+ Message;
3
6
  constructor(opts) {
4
7
  super({
5
8
  name: "AlreadyExistsException",
6
9
  $fault: "client",
7
10
  ...opts,
8
11
  });
9
- this.name = "AlreadyExistsException";
10
- this.$fault = "client";
11
12
  Object.setPrototypeOf(this, AlreadyExistsException.prototype);
12
13
  this.Message = opts.Message;
13
14
  }
14
15
  }
15
16
  export class BadRequestException extends __BaseException {
17
+ name = "BadRequestException";
18
+ $fault = "client";
19
+ Message;
16
20
  constructor(opts) {
17
21
  super({
18
22
  name: "BadRequestException",
19
23
  $fault: "client",
20
24
  ...opts,
21
25
  });
22
- this.name = "BadRequestException";
23
- this.$fault = "client";
24
26
  Object.setPrototypeOf(this, BadRequestException.prototype);
25
27
  this.Message = opts.Message;
26
28
  }
27
29
  }
28
30
  export class InternalServiceErrorException extends __BaseException {
31
+ name = "InternalServiceErrorException";
32
+ $fault = "server";
33
+ Message;
29
34
  constructor(opts) {
30
35
  super({
31
36
  name: "InternalServiceErrorException",
32
37
  $fault: "server",
33
38
  ...opts,
34
39
  });
35
- this.name = "InternalServiceErrorException";
36
- this.$fault = "server";
37
40
  Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
38
41
  this.Message = opts.Message;
39
42
  }
40
43
  }
41
44
  export class LimitExceededException extends __BaseException {
45
+ name = "LimitExceededException";
46
+ $fault = "client";
47
+ Message;
42
48
  constructor(opts) {
43
49
  super({
44
50
  name: "LimitExceededException",
45
51
  $fault: "client",
46
52
  ...opts,
47
53
  });
48
- this.name = "LimitExceededException";
49
- this.$fault = "client";
50
54
  Object.setPrototypeOf(this, LimitExceededException.prototype);
51
55
  this.Message = opts.Message;
52
56
  }
53
57
  }
54
58
  export class TooManyRequestsException extends __BaseException {
59
+ name = "TooManyRequestsException";
60
+ $fault = "client";
61
+ Message;
55
62
  constructor(opts) {
56
63
  super({
57
64
  name: "TooManyRequestsException",
58
65
  $fault: "client",
59
66
  ...opts,
60
67
  });
61
- this.name = "TooManyRequestsException";
62
- this.$fault = "client";
63
68
  Object.setPrototypeOf(this, TooManyRequestsException.prototype);
64
69
  this.Message = opts.Message;
65
70
  }
@@ -74,14 +79,15 @@ export const EventType = {
74
79
  RINGING: "RINGING",
75
80
  };
76
81
  export class NotFoundException extends __BaseException {
82
+ name = "NotFoundException";
83
+ $fault = "client";
84
+ Message;
77
85
  constructor(opts) {
78
86
  super({
79
87
  name: "NotFoundException",
80
88
  $fault: "client",
81
89
  ...opts,
82
90
  });
83
- this.name = "NotFoundException";
84
- this.$fault = "client";
85
91
  Object.setPrototypeOf(this, NotFoundException.prototype);
86
92
  this.Message = opts.Message;
87
93
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: PinpointSMSVoiceClientConfig) =>
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: PinpointSMSVoiceClientConfig) =>
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: PinpointSMSVoiceClientConfig) =>
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: PinpointSMSVoiceClientConfig) =>
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
- 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> | undefined;
34
+ 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;
35
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -8,9 +8,11 @@ export declare const getRuntimeConfig: (
8
8
  import("@smithy/smithy-client").ResolvedDefaultsMode
9
9
  >;
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
- credentialDefaultProvider: (
12
- input: any
13
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
11
+ credentialDefaultProvider:
12
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
13
+ | ((
14
+ _: unknown
15
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
14
16
  defaultUserAgentProvider: (
15
17
  config?:
16
18
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -8,13 +8,15 @@ export declare const getRuntimeConfig: (
8
8
  import("@smithy/smithy-client").ResolvedDefaultsMode
9
9
  >;
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
- credentialDefaultProvider: (
12
- init?:
13
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
- | undefined
15
- ) => import("@smithy/types").MemoizedProvider<
16
- import("@smithy/types").AwsCredentialIdentity
17
- >;
11
+ credentialDefaultProvider:
12
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
13
+ | ((
14
+ init?:
15
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
16
+ | undefined
17
+ ) => import("@smithy/types").MemoizedProvider<
18
+ import("@smithy/types").AwsCredentialIdentity
19
+ >);
18
20
  defaultUserAgentProvider: (
19
21
  config?:
20
22
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -30,9 +30,11 @@ export declare const getRuntimeConfig: (
30
30
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
31
31
  | undefined
32
32
  ) => Promise<import("@smithy/types").UserAgent>;
33
- credentialDefaultProvider: (
34
- input: any
35
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
33
+ credentialDefaultProvider:
34
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
35
+ | ((
36
+ _: unknown
37
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
36
38
  maxAttempts: number | import("@smithy/types").Provider<number>;
37
39
  retryMode: string | import("@smithy/types").Provider<string>;
38
40
  logger: import("@smithy/types").Logger;
@@ -52,11 +54,21 @@ export declare const getRuntimeConfig: (
52
54
  | import("@smithy/types").RetryStrategyV2
53
55
  | undefined;
54
56
  endpoint?:
55
- | string
56
- | import("@smithy/types").Endpoint
57
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
58
- | import("@smithy/types").EndpointV2
59
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
57
+ | ((
58
+ | string
59
+ | import("@smithy/types").Endpoint
60
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
61
+ | import("@smithy/types").EndpointV2
62
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
63
+ ) &
64
+ (
65
+ | string
66
+ | import("@smithy/types").Provider<string>
67
+ | import("@smithy/types").Endpoint
68
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
69
+ | import("@smithy/types").EndpointV2
70
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
71
+ ))
60
72
  | undefined;
61
73
  endpointProvider: (
62
74
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pinpoint-sms-voice",
3
3
  "description": "AWS SDK for JavaScript Pinpoint Sms Voice Client for Node.js, Browser and React Native",
4
- "version": "3.716.0",
4
+ "version": "3.723.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-pinpoint-sms-voice",
@@ -20,56 +20,56 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.716.0",
24
- "@aws-sdk/client-sts": "3.716.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.716.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.716.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.716.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.6",
43
- "@smithy/middleware-retry": "^3.0.31",
44
- "@smithy/middleware-serde": "^3.0.11",
45
- "@smithy/middleware-stack": "^3.0.11",
46
- "@smithy/node-config-provider": "^3.1.12",
47
- "@smithy/node-http-handler": "^3.3.2",
48
- "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.1",
50
- "@smithy/types": "^3.7.2",
51
- "@smithy/url-parser": "^3.0.11",
52
- "@smithy/util-base64": "^3.0.0",
53
- "@smithy/util-body-length-browser": "^3.0.0",
54
- "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.31",
56
- "@smithy/util-defaults-mode-node": "^3.0.31",
57
- "@smithy/util-endpoints": "^2.1.7",
58
- "@smithy/util-middleware": "^3.0.11",
59
- "@smithy/util-retry": "^3.0.11",
60
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.723.0",
24
+ "@aws-sdk/client-sts": "3.723.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.723.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.723.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.723.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.723.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-content-length": "^4.0.0",
42
+ "@smithy/middleware-endpoint": "^4.0.0",
43
+ "@smithy/middleware-retry": "^4.0.0",
44
+ "@smithy/middleware-serde": "^4.0.0",
45
+ "@smithy/middleware-stack": "^4.0.0",
46
+ "@smithy/node-config-provider": "^4.0.0",
47
+ "@smithy/node-http-handler": "^4.0.0",
48
+ "@smithy/protocol-http": "^5.0.0",
49
+ "@smithy/smithy-client": "^4.0.0",
50
+ "@smithy/types": "^4.0.0",
51
+ "@smithy/url-parser": "^4.0.0",
52
+ "@smithy/util-base64": "^4.0.0",
53
+ "@smithy/util-body-length-browser": "^4.0.0",
54
+ "@smithy/util-body-length-node": "^4.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
56
+ "@smithy/util-defaults-mode-node": "^4.0.0",
57
+ "@smithy/util-endpoints": "^3.0.0",
58
+ "@smithy/util-middleware": "^4.0.0",
59
+ "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-utf8": "^4.0.0",
61
61
  "tslib": "^2.6.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@tsconfig/node16": "16.1.3",
65
- "@types/node": "^16.18.96",
64
+ "@tsconfig/node18": "18.2.4",
65
+ "@types/node": "^18.19.69",
66
66
  "concurrently": "7.0.0",
67
67
  "downlevel-dts": "0.10.1",
68
68
  "rimraf": "3.0.2",
69
- "typescript": "~4.9.5"
69
+ "typescript": "~5.2.2"
70
70
  },
71
71
  "engines": {
72
- "node": ">=16.0.0"
72
+ "node": ">=18.0.0"
73
73
  },
74
74
  "typesVersions": {
75
75
  "<4.0": {