@aws-sdk/client-pinpoint-sms-voice 3.987.0 → 3.988.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
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
15
  var runtimeConfig = require('./runtimeConfig');
16
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
17
  var protocolHttp = require('@smithy/protocol-http');
18
+ var schemas_0 = require('./schemas/schemas_0');
19
+ var errors = require('./models/errors');
20
+ var PinpointSMSVoiceServiceException = require('./models/PinpointSMSVoiceServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -110,361 +113,6 @@ class PinpointSMSVoiceClient extends smithyClient.Client {
110
113
  }
111
114
  }
112
115
 
113
- class PinpointSMSVoiceServiceException extends smithyClient.ServiceException {
114
- constructor(options) {
115
- super(options);
116
- Object.setPrototypeOf(this, PinpointSMSVoiceServiceException.prototype);
117
- }
118
- }
119
-
120
- class AlreadyExistsException extends PinpointSMSVoiceServiceException {
121
- name = "AlreadyExistsException";
122
- $fault = "client";
123
- Message;
124
- constructor(opts) {
125
- super({
126
- name: "AlreadyExistsException",
127
- $fault: "client",
128
- ...opts,
129
- });
130
- Object.setPrototypeOf(this, AlreadyExistsException.prototype);
131
- this.Message = opts.Message;
132
- }
133
- }
134
- class BadRequestException extends PinpointSMSVoiceServiceException {
135
- name = "BadRequestException";
136
- $fault = "client";
137
- Message;
138
- constructor(opts) {
139
- super({
140
- name: "BadRequestException",
141
- $fault: "client",
142
- ...opts,
143
- });
144
- Object.setPrototypeOf(this, BadRequestException.prototype);
145
- this.Message = opts.Message;
146
- }
147
- }
148
- class InternalServiceErrorException extends PinpointSMSVoiceServiceException {
149
- name = "InternalServiceErrorException";
150
- $fault = "server";
151
- Message;
152
- constructor(opts) {
153
- super({
154
- name: "InternalServiceErrorException",
155
- $fault: "server",
156
- ...opts,
157
- });
158
- Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
159
- this.Message = opts.Message;
160
- }
161
- }
162
- class LimitExceededException extends PinpointSMSVoiceServiceException {
163
- name = "LimitExceededException";
164
- $fault = "client";
165
- Message;
166
- constructor(opts) {
167
- super({
168
- name: "LimitExceededException",
169
- $fault: "client",
170
- ...opts,
171
- });
172
- Object.setPrototypeOf(this, LimitExceededException.prototype);
173
- this.Message = opts.Message;
174
- }
175
- }
176
- class TooManyRequestsException extends PinpointSMSVoiceServiceException {
177
- name = "TooManyRequestsException";
178
- $fault = "client";
179
- Message;
180
- constructor(opts) {
181
- super({
182
- name: "TooManyRequestsException",
183
- $fault: "client",
184
- ...opts,
185
- });
186
- Object.setPrototypeOf(this, TooManyRequestsException.prototype);
187
- this.Message = opts.Message;
188
- }
189
- }
190
- class NotFoundException extends PinpointSMSVoiceServiceException {
191
- name = "NotFoundException";
192
- $fault = "client";
193
- Message;
194
- constructor(opts) {
195
- super({
196
- name: "NotFoundException",
197
- $fault: "client",
198
- ...opts,
199
- });
200
- Object.setPrototypeOf(this, NotFoundException.prototype);
201
- this.Message = opts.Message;
202
- }
203
- }
204
-
205
- const _AEE = "AlreadyExistsException";
206
- const _BRE = "BadRequestException";
207
- const _C = "Content";
208
- const _CCS = "CreateConfigurationSet";
209
- const _CCSED = "CreateConfigurationSetEventDestination";
210
- const _CCSEDR = "CreateConfigurationSetEventDestinationRequest";
211
- const _CCSEDRr = "CreateConfigurationSetEventDestinationResponse";
212
- const _CCSR = "CreateConfigurationSetRequest";
213
- const _CCSRr = "CreateConfigurationSetResponse";
214
- const _CI = "CallerId";
215
- const _CIM = "CallInstructionsMessage";
216
- const _CIMT = "CallInstructionsMessageType";
217
- const _CS = "ConfigurationSets";
218
- const _CSN = "ConfigurationSetName";
219
- const _CWLD = "CloudWatchLogsDestination";
220
- const _DCS = "DeleteConfigurationSet";
221
- const _DCSED = "DeleteConfigurationSetEventDestination";
222
- const _DCSEDR = "DeleteConfigurationSetEventDestinationRequest";
223
- const _DCSEDRe = "DeleteConfigurationSetEventDestinationResponse";
224
- const _DCSR = "DeleteConfigurationSetRequest";
225
- const _DCSRe = "DeleteConfigurationSetResponse";
226
- const _DPN = "DestinationPhoneNumber";
227
- const _DSA = "DeliveryStreamArn";
228
- const _E = "Enabled";
229
- const _ED = "EventDestination";
230
- const _EDD = "EventDestinationDefinition";
231
- const _EDN = "EventDestinationName";
232
- const _EDv = "EventDestinations";
233
- const _GCSED = "GetConfigurationSetEventDestinations";
234
- const _GCSEDR = "GetConfigurationSetEventDestinationsRequest";
235
- const _GCSEDRe = "GetConfigurationSetEventDestinationsResponse";
236
- const _IRA = "IamRoleArn";
237
- const _ISEE = "InternalServiceErrorException";
238
- const _KFD = "KinesisFirehoseDestination";
239
- const _LC = "LanguageCode";
240
- const _LCS = "ListConfigurationSets";
241
- const _LCSR = "ListConfigurationSetsRequest";
242
- const _LCSRi = "ListConfigurationSetsResponse";
243
- const _LEE = "LimitExceededException";
244
- const _LGA = "LogGroupArn";
245
- const _M = "Message";
246
- const _MET = "MatchingEventTypes";
247
- const _MI = "MessageId";
248
- const _N = "Name";
249
- const _NFE = "NotFoundException";
250
- const _NT = "NextToken";
251
- const _OPN = "OriginationPhoneNumber";
252
- const _PS = "PageSize";
253
- const _PTM = "PlainTextMessage";
254
- const _PTMT = "PlainTextMessageType";
255
- const _SD = "SnsDestination";
256
- const _SSMLM = "SSMLMessage";
257
- const _SSMLMT = "SSMLMessageType";
258
- const _SVM = "SendVoiceMessage";
259
- const _SVMR = "SendVoiceMessageRequest";
260
- const _SVMRe = "SendVoiceMessageResponse";
261
- const _T = "Text";
262
- const _TA = "TopicArn";
263
- const _TMRE = "TooManyRequestsException";
264
- const _UCSED = "UpdateConfigurationSetEventDestination";
265
- const _UCSEDR = "UpdateConfigurationSetEventDestinationRequest";
266
- const _UCSEDRp = "UpdateConfigurationSetEventDestinationResponse";
267
- const _VI = "VoiceId";
268
- const _VMC = "VoiceMessageContent";
269
- const _c = "client";
270
- const _e = "error";
271
- const _h = "http";
272
- const _hE = "httpError";
273
- const _hQ = "httpQuery";
274
- const _s = "server";
275
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.pinpointsmsvoice";
276
- const n0 = "com.amazonaws.pinpointsmsvoice";
277
- var AlreadyExistsException$ = [-3, n0, _AEE,
278
- { [_e]: _c, [_hE]: 409 },
279
- [_M],
280
- [0]
281
- ];
282
- schema.TypeRegistry.for(n0).registerError(AlreadyExistsException$, AlreadyExistsException);
283
- var BadRequestException$ = [-3, n0, _BRE,
284
- { [_e]: _c, [_hE]: 400 },
285
- [_M],
286
- [0]
287
- ];
288
- schema.TypeRegistry.for(n0).registerError(BadRequestException$, BadRequestException);
289
- var CallInstructionsMessageType$ = [3, n0, _CIMT,
290
- 0,
291
- [_T],
292
- [0]
293
- ];
294
- var CloudWatchLogsDestination$ = [3, n0, _CWLD,
295
- 0,
296
- [_IRA, _LGA],
297
- [0, 0]
298
- ];
299
- var CreateConfigurationSetEventDestinationRequest$ = [3, n0, _CCSEDR,
300
- 0,
301
- [_CSN, _ED, _EDN],
302
- [[0, 1], () => EventDestinationDefinition$, 0], 1
303
- ];
304
- var CreateConfigurationSetEventDestinationResponse$ = [3, n0, _CCSEDRr,
305
- 0,
306
- [],
307
- []
308
- ];
309
- var CreateConfigurationSetRequest$ = [3, n0, _CCSR,
310
- 0,
311
- [_CSN],
312
- [0]
313
- ];
314
- var CreateConfigurationSetResponse$ = [3, n0, _CCSRr,
315
- 0,
316
- [],
317
- []
318
- ];
319
- var DeleteConfigurationSetEventDestinationRequest$ = [3, n0, _DCSEDR,
320
- 0,
321
- [_CSN, _EDN],
322
- [[0, 1], [0, 1]], 2
323
- ];
324
- var DeleteConfigurationSetEventDestinationResponse$ = [3, n0, _DCSEDRe,
325
- 0,
326
- [],
327
- []
328
- ];
329
- var DeleteConfigurationSetRequest$ = [3, n0, _DCSR,
330
- 0,
331
- [_CSN],
332
- [[0, 1]], 1
333
- ];
334
- var DeleteConfigurationSetResponse$ = [3, n0, _DCSRe,
335
- 0,
336
- [],
337
- []
338
- ];
339
- var EventDestination$ = [3, n0, _ED,
340
- 0,
341
- [_CWLD, _E, _KFD, _MET, _N, _SD],
342
- [() => CloudWatchLogsDestination$, 2, () => KinesisFirehoseDestination$, 64 | 0, 0, () => SnsDestination$]
343
- ];
344
- var EventDestinationDefinition$ = [3, n0, _EDD,
345
- 0,
346
- [_CWLD, _E, _KFD, _MET, _SD],
347
- [() => CloudWatchLogsDestination$, 2, () => KinesisFirehoseDestination$, 64 | 0, () => SnsDestination$]
348
- ];
349
- var GetConfigurationSetEventDestinationsRequest$ = [3, n0, _GCSEDR,
350
- 0,
351
- [_CSN],
352
- [[0, 1]], 1
353
- ];
354
- var GetConfigurationSetEventDestinationsResponse$ = [3, n0, _GCSEDRe,
355
- 0,
356
- [_EDv],
357
- [() => EventDestinations]
358
- ];
359
- var InternalServiceErrorException$ = [-3, n0, _ISEE,
360
- { [_e]: _s, [_hE]: 500 },
361
- [_M],
362
- [0]
363
- ];
364
- schema.TypeRegistry.for(n0).registerError(InternalServiceErrorException$, InternalServiceErrorException);
365
- var KinesisFirehoseDestination$ = [3, n0, _KFD,
366
- 0,
367
- [_DSA, _IRA],
368
- [0, 0]
369
- ];
370
- var LimitExceededException$ = [-3, n0, _LEE,
371
- { [_e]: _c, [_hE]: 412 },
372
- [_M],
373
- [0]
374
- ];
375
- schema.TypeRegistry.for(n0).registerError(LimitExceededException$, LimitExceededException);
376
- var ListConfigurationSetsRequest$ = [3, n0, _LCSR,
377
- 0,
378
- [_NT, _PS],
379
- [[0, { [_hQ]: _NT }], [0, { [_hQ]: _PS }]]
380
- ];
381
- var ListConfigurationSetsResponse$ = [3, n0, _LCSRi,
382
- 0,
383
- [_CS, _NT],
384
- [64 | 0, 0]
385
- ];
386
- var NotFoundException$ = [-3, n0, _NFE,
387
- { [_e]: _c, [_hE]: 404 },
388
- [_M],
389
- [0]
390
- ];
391
- schema.TypeRegistry.for(n0).registerError(NotFoundException$, NotFoundException);
392
- var PlainTextMessageType$ = [3, n0, _PTMT,
393
- 0,
394
- [_LC, _T, _VI],
395
- [0, 0, 0]
396
- ];
397
- var SendVoiceMessageRequest$ = [3, n0, _SVMR,
398
- 0,
399
- [_CI, _CSN, _C, _DPN, _OPN],
400
- [0, 0, () => VoiceMessageContent$, 0, 0]
401
- ];
402
- var SendVoiceMessageResponse$ = [3, n0, _SVMRe,
403
- 0,
404
- [_MI],
405
- [0]
406
- ];
407
- var SnsDestination$ = [3, n0, _SD,
408
- 0,
409
- [_TA],
410
- [0]
411
- ];
412
- var SSMLMessageType$ = [3, n0, _SSMLMT,
413
- 0,
414
- [_LC, _T, _VI],
415
- [0, 0, 0]
416
- ];
417
- var TooManyRequestsException$ = [-3, n0, _TMRE,
418
- { [_e]: _c, [_hE]: 429 },
419
- [_M],
420
- [0]
421
- ];
422
- schema.TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);
423
- var UpdateConfigurationSetEventDestinationRequest$ = [3, n0, _UCSEDR,
424
- 0,
425
- [_CSN, _EDN, _ED],
426
- [[0, 1], [0, 1], () => EventDestinationDefinition$], 2
427
- ];
428
- var UpdateConfigurationSetEventDestinationResponse$ = [3, n0, _UCSEDRp,
429
- 0,
430
- [],
431
- []
432
- ];
433
- var VoiceMessageContent$ = [3, n0, _VMC,
434
- 0,
435
- [_CIM, _PTM, _SSMLM],
436
- [() => CallInstructionsMessageType$, () => PlainTextMessageType$, () => SSMLMessageType$]
437
- ];
438
- var PinpointSMSVoiceServiceException$ = [-3, _sm, "PinpointSMSVoiceServiceException", 0, [], []];
439
- schema.TypeRegistry.for(_sm).registerError(PinpointSMSVoiceServiceException$, PinpointSMSVoiceServiceException);
440
- var EventDestinations = [1, n0, _EDv,
441
- 0, () => EventDestination$
442
- ];
443
- var CreateConfigurationSet$ = [9, n0, _CCS,
444
- { [_h]: ["POST", "/v1/sms-voice/configuration-sets", 200] }, () => CreateConfigurationSetRequest$, () => CreateConfigurationSetResponse$
445
- ];
446
- var CreateConfigurationSetEventDestination$ = [9, n0, _CCSED,
447
- { [_h]: ["POST", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations", 200] }, () => CreateConfigurationSetEventDestinationRequest$, () => CreateConfigurationSetEventDestinationResponse$
448
- ];
449
- var DeleteConfigurationSet$ = [9, n0, _DCS,
450
- { [_h]: ["DELETE", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}", 200] }, () => DeleteConfigurationSetRequest$, () => DeleteConfigurationSetResponse$
451
- ];
452
- var DeleteConfigurationSetEventDestination$ = [9, n0, _DCSED,
453
- { [_h]: ["DELETE", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", 200] }, () => DeleteConfigurationSetEventDestinationRequest$, () => DeleteConfigurationSetEventDestinationResponse$
454
- ];
455
- var GetConfigurationSetEventDestinations$ = [9, n0, _GCSED,
456
- { [_h]: ["GET", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations", 200] }, () => GetConfigurationSetEventDestinationsRequest$, () => GetConfigurationSetEventDestinationsResponse$
457
- ];
458
- var ListConfigurationSets$ = [9, n0, _LCS,
459
- { [_h]: ["GET", "/v1/sms-voice/configuration-sets", 200] }, () => ListConfigurationSetsRequest$, () => ListConfigurationSetsResponse$
460
- ];
461
- var SendVoiceMessage$ = [9, n0, _SVM,
462
- { [_h]: ["POST", "/v1/sms-voice/voice/message", 200] }, () => SendVoiceMessageRequest$, () => SendVoiceMessageResponse$
463
- ];
464
- var UpdateConfigurationSetEventDestination$ = [9, n0, _UCSED,
465
- { [_h]: ["PUT", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", 200] }, () => UpdateConfigurationSetEventDestinationRequest$, () => UpdateConfigurationSetEventDestinationResponse$
466
- ];
467
-
468
116
  class CreateConfigurationSetCommand extends smithyClient.Command
469
117
  .classBuilder()
470
118
  .ep(commonParams)
@@ -473,7 +121,7 @@ class CreateConfigurationSetCommand extends smithyClient.Command
473
121
  })
474
122
  .s("PinpointSMSVoice", "CreateConfigurationSet", {})
475
123
  .n("PinpointSMSVoiceClient", "CreateConfigurationSetCommand")
476
- .sc(CreateConfigurationSet$)
124
+ .sc(schemas_0.CreateConfigurationSet$)
477
125
  .build() {
478
126
  }
479
127
 
@@ -485,7 +133,7 @@ class CreateConfigurationSetEventDestinationCommand extends smithyClient.Command
485
133
  })
486
134
  .s("PinpointSMSVoice", "CreateConfigurationSetEventDestination", {})
487
135
  .n("PinpointSMSVoiceClient", "CreateConfigurationSetEventDestinationCommand")
488
- .sc(CreateConfigurationSetEventDestination$)
136
+ .sc(schemas_0.CreateConfigurationSetEventDestination$)
489
137
  .build() {
490
138
  }
491
139
 
@@ -497,7 +145,7 @@ class DeleteConfigurationSetCommand extends smithyClient.Command
497
145
  })
498
146
  .s("PinpointSMSVoice", "DeleteConfigurationSet", {})
499
147
  .n("PinpointSMSVoiceClient", "DeleteConfigurationSetCommand")
500
- .sc(DeleteConfigurationSet$)
148
+ .sc(schemas_0.DeleteConfigurationSet$)
501
149
  .build() {
502
150
  }
503
151
 
@@ -509,7 +157,7 @@ class DeleteConfigurationSetEventDestinationCommand extends smithyClient.Command
509
157
  })
510
158
  .s("PinpointSMSVoice", "DeleteConfigurationSetEventDestination", {})
511
159
  .n("PinpointSMSVoiceClient", "DeleteConfigurationSetEventDestinationCommand")
512
- .sc(DeleteConfigurationSetEventDestination$)
160
+ .sc(schemas_0.DeleteConfigurationSetEventDestination$)
513
161
  .build() {
514
162
  }
515
163
 
@@ -521,7 +169,7 @@ class GetConfigurationSetEventDestinationsCommand extends smithyClient.Command
521
169
  })
522
170
  .s("PinpointSMSVoice", "GetConfigurationSetEventDestinations", {})
523
171
  .n("PinpointSMSVoiceClient", "GetConfigurationSetEventDestinationsCommand")
524
- .sc(GetConfigurationSetEventDestinations$)
172
+ .sc(schemas_0.GetConfigurationSetEventDestinations$)
525
173
  .build() {
526
174
  }
527
175
 
@@ -533,7 +181,7 @@ class ListConfigurationSetsCommand extends smithyClient.Command
533
181
  })
534
182
  .s("PinpointSMSVoice", "ListConfigurationSets", {})
535
183
  .n("PinpointSMSVoiceClient", "ListConfigurationSetsCommand")
536
- .sc(ListConfigurationSets$)
184
+ .sc(schemas_0.ListConfigurationSets$)
537
185
  .build() {
538
186
  }
539
187
 
@@ -545,7 +193,7 @@ class SendVoiceMessageCommand extends smithyClient.Command
545
193
  })
546
194
  .s("PinpointSMSVoice", "SendVoiceMessage", {})
547
195
  .n("PinpointSMSVoiceClient", "SendVoiceMessageCommand")
548
- .sc(SendVoiceMessage$)
196
+ .sc(schemas_0.SendVoiceMessage$)
549
197
  .build() {
550
198
  }
551
199
 
@@ -557,7 +205,7 @@ class UpdateConfigurationSetEventDestinationCommand extends smithyClient.Command
557
205
  })
558
206
  .s("PinpointSMSVoice", "UpdateConfigurationSetEventDestination", {})
559
207
  .n("PinpointSMSVoiceClient", "UpdateConfigurationSetEventDestinationCommand")
560
- .sc(UpdateConfigurationSetEventDestination$)
208
+ .sc(schemas_0.UpdateConfigurationSetEventDestination$)
561
209
  .build() {
562
210
  }
563
211
 
@@ -593,61 +241,30 @@ Object.defineProperty(exports, "__Client", {
593
241
  enumerable: true,
594
242
  get: function () { return smithyClient.Client; }
595
243
  });
596
- exports.AlreadyExistsException = AlreadyExistsException;
597
- exports.AlreadyExistsException$ = AlreadyExistsException$;
598
- exports.BadRequestException = BadRequestException;
599
- exports.BadRequestException$ = BadRequestException$;
600
- exports.CallInstructionsMessageType$ = CallInstructionsMessageType$;
601
- exports.CloudWatchLogsDestination$ = CloudWatchLogsDestination$;
602
- exports.CreateConfigurationSet$ = CreateConfigurationSet$;
244
+ Object.defineProperty(exports, "PinpointSMSVoiceServiceException", {
245
+ enumerable: true,
246
+ get: function () { return PinpointSMSVoiceServiceException.PinpointSMSVoiceServiceException; }
247
+ });
603
248
  exports.CreateConfigurationSetCommand = CreateConfigurationSetCommand;
604
- exports.CreateConfigurationSetEventDestination$ = CreateConfigurationSetEventDestination$;
605
249
  exports.CreateConfigurationSetEventDestinationCommand = CreateConfigurationSetEventDestinationCommand;
606
- exports.CreateConfigurationSetEventDestinationRequest$ = CreateConfigurationSetEventDestinationRequest$;
607
- exports.CreateConfigurationSetEventDestinationResponse$ = CreateConfigurationSetEventDestinationResponse$;
608
- exports.CreateConfigurationSetRequest$ = CreateConfigurationSetRequest$;
609
- exports.CreateConfigurationSetResponse$ = CreateConfigurationSetResponse$;
610
- exports.DeleteConfigurationSet$ = DeleteConfigurationSet$;
611
250
  exports.DeleteConfigurationSetCommand = DeleteConfigurationSetCommand;
612
- exports.DeleteConfigurationSetEventDestination$ = DeleteConfigurationSetEventDestination$;
613
251
  exports.DeleteConfigurationSetEventDestinationCommand = DeleteConfigurationSetEventDestinationCommand;
614
- exports.DeleteConfigurationSetEventDestinationRequest$ = DeleteConfigurationSetEventDestinationRequest$;
615
- exports.DeleteConfigurationSetEventDestinationResponse$ = DeleteConfigurationSetEventDestinationResponse$;
616
- exports.DeleteConfigurationSetRequest$ = DeleteConfigurationSetRequest$;
617
- exports.DeleteConfigurationSetResponse$ = DeleteConfigurationSetResponse$;
618
- exports.EventDestination$ = EventDestination$;
619
- exports.EventDestinationDefinition$ = EventDestinationDefinition$;
620
252
  exports.EventType = EventType;
621
- exports.GetConfigurationSetEventDestinations$ = GetConfigurationSetEventDestinations$;
622
253
  exports.GetConfigurationSetEventDestinationsCommand = GetConfigurationSetEventDestinationsCommand;
623
- exports.GetConfigurationSetEventDestinationsRequest$ = GetConfigurationSetEventDestinationsRequest$;
624
- exports.GetConfigurationSetEventDestinationsResponse$ = GetConfigurationSetEventDestinationsResponse$;
625
- exports.InternalServiceErrorException = InternalServiceErrorException;
626
- exports.InternalServiceErrorException$ = InternalServiceErrorException$;
627
- exports.KinesisFirehoseDestination$ = KinesisFirehoseDestination$;
628
- exports.LimitExceededException = LimitExceededException;
629
- exports.LimitExceededException$ = LimitExceededException$;
630
- exports.ListConfigurationSets$ = ListConfigurationSets$;
631
254
  exports.ListConfigurationSetsCommand = ListConfigurationSetsCommand;
632
- exports.ListConfigurationSetsRequest$ = ListConfigurationSetsRequest$;
633
- exports.ListConfigurationSetsResponse$ = ListConfigurationSetsResponse$;
634
- exports.NotFoundException = NotFoundException;
635
- exports.NotFoundException$ = NotFoundException$;
636
255
  exports.PinpointSMSVoice = PinpointSMSVoice;
637
256
  exports.PinpointSMSVoiceClient = PinpointSMSVoiceClient;
638
- exports.PinpointSMSVoiceServiceException = PinpointSMSVoiceServiceException;
639
- exports.PinpointSMSVoiceServiceException$ = PinpointSMSVoiceServiceException$;
640
- exports.PlainTextMessageType$ = PlainTextMessageType$;
641
- exports.SSMLMessageType$ = SSMLMessageType$;
642
- exports.SendVoiceMessage$ = SendVoiceMessage$;
643
257
  exports.SendVoiceMessageCommand = SendVoiceMessageCommand;
644
- exports.SendVoiceMessageRequest$ = SendVoiceMessageRequest$;
645
- exports.SendVoiceMessageResponse$ = SendVoiceMessageResponse$;
646
- exports.SnsDestination$ = SnsDestination$;
647
- exports.TooManyRequestsException = TooManyRequestsException;
648
- exports.TooManyRequestsException$ = TooManyRequestsException$;
649
- exports.UpdateConfigurationSetEventDestination$ = UpdateConfigurationSetEventDestination$;
650
258
  exports.UpdateConfigurationSetEventDestinationCommand = UpdateConfigurationSetEventDestinationCommand;
651
- exports.UpdateConfigurationSetEventDestinationRequest$ = UpdateConfigurationSetEventDestinationRequest$;
652
- exports.UpdateConfigurationSetEventDestinationResponse$ = UpdateConfigurationSetEventDestinationResponse$;
653
- exports.VoiceMessageContent$ = VoiceMessageContent$;
259
+ Object.keys(schemas_0).forEach(function (k) {
260
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
261
+ enumerable: true,
262
+ get: function () { return schemas_0[k]; }
263
+ });
264
+ });
265
+ Object.keys(errors).forEach(function (k) {
266
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
267
+ enumerable: true,
268
+ get: function () { return errors[k]; }
269
+ });
270
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PinpointSMSVoiceServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class PinpointSMSVoiceServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, PinpointSMSVoiceServiceException.prototype);
10
+ }
11
+ }
12
+ exports.PinpointSMSVoiceServiceException = PinpointSMSVoiceServiceException;
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotFoundException = exports.TooManyRequestsException = exports.LimitExceededException = exports.InternalServiceErrorException = exports.BadRequestException = exports.AlreadyExistsException = void 0;
4
+ const PinpointSMSVoiceServiceException_1 = require("./PinpointSMSVoiceServiceException");
5
+ class AlreadyExistsException extends PinpointSMSVoiceServiceException_1.PinpointSMSVoiceServiceException {
6
+ name = "AlreadyExistsException";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "AlreadyExistsException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, AlreadyExistsException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.AlreadyExistsException = AlreadyExistsException;
20
+ class BadRequestException extends PinpointSMSVoiceServiceException_1.PinpointSMSVoiceServiceException {
21
+ name = "BadRequestException";
22
+ $fault = "client";
23
+ Message;
24
+ constructor(opts) {
25
+ super({
26
+ name: "BadRequestException",
27
+ $fault: "client",
28
+ ...opts,
29
+ });
30
+ Object.setPrototypeOf(this, BadRequestException.prototype);
31
+ this.Message = opts.Message;
32
+ }
33
+ }
34
+ exports.BadRequestException = BadRequestException;
35
+ class InternalServiceErrorException extends PinpointSMSVoiceServiceException_1.PinpointSMSVoiceServiceException {
36
+ name = "InternalServiceErrorException";
37
+ $fault = "server";
38
+ Message;
39
+ constructor(opts) {
40
+ super({
41
+ name: "InternalServiceErrorException",
42
+ $fault: "server",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
46
+ this.Message = opts.Message;
47
+ }
48
+ }
49
+ exports.InternalServiceErrorException = InternalServiceErrorException;
50
+ class LimitExceededException extends PinpointSMSVoiceServiceException_1.PinpointSMSVoiceServiceException {
51
+ name = "LimitExceededException";
52
+ $fault = "client";
53
+ Message;
54
+ constructor(opts) {
55
+ super({
56
+ name: "LimitExceededException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
61
+ this.Message = opts.Message;
62
+ }
63
+ }
64
+ exports.LimitExceededException = LimitExceededException;
65
+ class TooManyRequestsException extends PinpointSMSVoiceServiceException_1.PinpointSMSVoiceServiceException {
66
+ name = "TooManyRequestsException";
67
+ $fault = "client";
68
+ Message;
69
+ constructor(opts) {
70
+ super({
71
+ name: "TooManyRequestsException",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
76
+ this.Message = opts.Message;
77
+ }
78
+ }
79
+ exports.TooManyRequestsException = TooManyRequestsException;
80
+ class NotFoundException extends PinpointSMSVoiceServiceException_1.PinpointSMSVoiceServiceException {
81
+ name = "NotFoundException";
82
+ $fault = "client";
83
+ Message;
84
+ constructor(opts) {
85
+ super({
86
+ name: "NotFoundException",
87
+ $fault: "client",
88
+ ...opts,
89
+ });
90
+ Object.setPrototypeOf(this, NotFoundException.prototype);
91
+ this.Message = opts.Message;
92
+ }
93
+ }
94
+ exports.NotFoundException = NotFoundException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2018-09-05",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.pinpointsmsvoice",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2018-09-05",
33
35
  serviceTarget: "PinpointSMSVoice",
34
36
  },
@@ -0,0 +1,276 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateConfigurationSetEventDestination$ = exports.SendVoiceMessage$ = exports.ListConfigurationSets$ = exports.GetConfigurationSetEventDestinations$ = exports.DeleteConfigurationSetEventDestination$ = exports.DeleteConfigurationSet$ = exports.CreateConfigurationSetEventDestination$ = exports.CreateConfigurationSet$ = exports.VoiceMessageContent$ = exports.UpdateConfigurationSetEventDestinationResponse$ = exports.UpdateConfigurationSetEventDestinationRequest$ = exports.SSMLMessageType$ = exports.SnsDestination$ = exports.SendVoiceMessageResponse$ = exports.SendVoiceMessageRequest$ = exports.PlainTextMessageType$ = exports.ListConfigurationSetsResponse$ = exports.ListConfigurationSetsRequest$ = exports.KinesisFirehoseDestination$ = exports.GetConfigurationSetEventDestinationsResponse$ = exports.GetConfigurationSetEventDestinationsRequest$ = exports.EventDestinationDefinition$ = exports.EventDestination$ = exports.DeleteConfigurationSetResponse$ = exports.DeleteConfigurationSetRequest$ = exports.DeleteConfigurationSetEventDestinationResponse$ = exports.DeleteConfigurationSetEventDestinationRequest$ = exports.CreateConfigurationSetResponse$ = exports.CreateConfigurationSetRequest$ = exports.CreateConfigurationSetEventDestinationResponse$ = exports.CreateConfigurationSetEventDestinationRequest$ = exports.CloudWatchLogsDestination$ = exports.CallInstructionsMessageType$ = exports.errorTypeRegistries = exports.TooManyRequestsException$ = exports.NotFoundException$ = exports.LimitExceededException$ = exports.InternalServiceErrorException$ = exports.BadRequestException$ = exports.AlreadyExistsException$ = exports.PinpointSMSVoiceServiceException$ = void 0;
4
+ const _AEE = "AlreadyExistsException";
5
+ const _BRE = "BadRequestException";
6
+ const _C = "Content";
7
+ const _CCS = "CreateConfigurationSet";
8
+ const _CCSED = "CreateConfigurationSetEventDestination";
9
+ const _CCSEDR = "CreateConfigurationSetEventDestinationRequest";
10
+ const _CCSEDRr = "CreateConfigurationSetEventDestinationResponse";
11
+ const _CCSR = "CreateConfigurationSetRequest";
12
+ const _CCSRr = "CreateConfigurationSetResponse";
13
+ const _CI = "CallerId";
14
+ const _CIM = "CallInstructionsMessage";
15
+ const _CIMT = "CallInstructionsMessageType";
16
+ const _CS = "ConfigurationSets";
17
+ const _CSN = "ConfigurationSetName";
18
+ const _CWLD = "CloudWatchLogsDestination";
19
+ const _DCS = "DeleteConfigurationSet";
20
+ const _DCSED = "DeleteConfigurationSetEventDestination";
21
+ const _DCSEDR = "DeleteConfigurationSetEventDestinationRequest";
22
+ const _DCSEDRe = "DeleteConfigurationSetEventDestinationResponse";
23
+ const _DCSR = "DeleteConfigurationSetRequest";
24
+ const _DCSRe = "DeleteConfigurationSetResponse";
25
+ const _DPN = "DestinationPhoneNumber";
26
+ const _DSA = "DeliveryStreamArn";
27
+ const _E = "Enabled";
28
+ const _ED = "EventDestination";
29
+ const _EDD = "EventDestinationDefinition";
30
+ const _EDN = "EventDestinationName";
31
+ const _EDv = "EventDestinations";
32
+ const _GCSED = "GetConfigurationSetEventDestinations";
33
+ const _GCSEDR = "GetConfigurationSetEventDestinationsRequest";
34
+ const _GCSEDRe = "GetConfigurationSetEventDestinationsResponse";
35
+ const _IRA = "IamRoleArn";
36
+ const _ISEE = "InternalServiceErrorException";
37
+ const _KFD = "KinesisFirehoseDestination";
38
+ const _LC = "LanguageCode";
39
+ const _LCS = "ListConfigurationSets";
40
+ const _LCSR = "ListConfigurationSetsRequest";
41
+ const _LCSRi = "ListConfigurationSetsResponse";
42
+ const _LEE = "LimitExceededException";
43
+ const _LGA = "LogGroupArn";
44
+ const _M = "Message";
45
+ const _MET = "MatchingEventTypes";
46
+ const _MI = "MessageId";
47
+ const _N = "Name";
48
+ const _NFE = "NotFoundException";
49
+ const _NT = "NextToken";
50
+ const _OPN = "OriginationPhoneNumber";
51
+ const _PS = "PageSize";
52
+ const _PTM = "PlainTextMessage";
53
+ const _PTMT = "PlainTextMessageType";
54
+ const _SD = "SnsDestination";
55
+ const _SSMLM = "SSMLMessage";
56
+ const _SSMLMT = "SSMLMessageType";
57
+ const _SVM = "SendVoiceMessage";
58
+ const _SVMR = "SendVoiceMessageRequest";
59
+ const _SVMRe = "SendVoiceMessageResponse";
60
+ const _T = "Text";
61
+ const _TA = "TopicArn";
62
+ const _TMRE = "TooManyRequestsException";
63
+ const _UCSED = "UpdateConfigurationSetEventDestination";
64
+ const _UCSEDR = "UpdateConfigurationSetEventDestinationRequest";
65
+ const _UCSEDRp = "UpdateConfigurationSetEventDestinationResponse";
66
+ const _VI = "VoiceId";
67
+ const _VMC = "VoiceMessageContent";
68
+ const _c = "client";
69
+ const _e = "error";
70
+ const _h = "http";
71
+ const _hE = "httpError";
72
+ const _hQ = "httpQuery";
73
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.pinpointsmsvoice";
74
+ const _se = "server";
75
+ const n0 = "com.amazonaws.pinpointsmsvoice";
76
+ const schema_1 = require("@smithy/core/schema");
77
+ const errors_1 = require("../models/errors");
78
+ const PinpointSMSVoiceServiceException_1 = require("../models/PinpointSMSVoiceServiceException");
79
+ const _s_registry = schema_1.TypeRegistry.for(_s);
80
+ exports.PinpointSMSVoiceServiceException$ = [-3, _s, "PinpointSMSVoiceServiceException", 0, [], []];
81
+ _s_registry.registerError(exports.PinpointSMSVoiceServiceException$, PinpointSMSVoiceServiceException_1.PinpointSMSVoiceServiceException);
82
+ const n0_registry = schema_1.TypeRegistry.for(n0);
83
+ exports.AlreadyExistsException$ = [-3, n0, _AEE,
84
+ { [_e]: _c, [_hE]: 409 },
85
+ [_M],
86
+ [0]
87
+ ];
88
+ n0_registry.registerError(exports.AlreadyExistsException$, errors_1.AlreadyExistsException);
89
+ exports.BadRequestException$ = [-3, n0, _BRE,
90
+ { [_e]: _c, [_hE]: 400 },
91
+ [_M],
92
+ [0]
93
+ ];
94
+ n0_registry.registerError(exports.BadRequestException$, errors_1.BadRequestException);
95
+ exports.InternalServiceErrorException$ = [-3, n0, _ISEE,
96
+ { [_e]: _se, [_hE]: 500 },
97
+ [_M],
98
+ [0]
99
+ ];
100
+ n0_registry.registerError(exports.InternalServiceErrorException$, errors_1.InternalServiceErrorException);
101
+ exports.LimitExceededException$ = [-3, n0, _LEE,
102
+ { [_e]: _c, [_hE]: 412 },
103
+ [_M],
104
+ [0]
105
+ ];
106
+ n0_registry.registerError(exports.LimitExceededException$, errors_1.LimitExceededException);
107
+ exports.NotFoundException$ = [-3, n0, _NFE,
108
+ { [_e]: _c, [_hE]: 404 },
109
+ [_M],
110
+ [0]
111
+ ];
112
+ n0_registry.registerError(exports.NotFoundException$, errors_1.NotFoundException);
113
+ exports.TooManyRequestsException$ = [-3, n0, _TMRE,
114
+ { [_e]: _c, [_hE]: 429 },
115
+ [_M],
116
+ [0]
117
+ ];
118
+ n0_registry.registerError(exports.TooManyRequestsException$, errors_1.TooManyRequestsException);
119
+ exports.errorTypeRegistries = [
120
+ _s_registry,
121
+ n0_registry,
122
+ ];
123
+ exports.CallInstructionsMessageType$ = [3, n0, _CIMT,
124
+ 0,
125
+ [_T],
126
+ [0]
127
+ ];
128
+ exports.CloudWatchLogsDestination$ = [3, n0, _CWLD,
129
+ 0,
130
+ [_IRA, _LGA],
131
+ [0, 0]
132
+ ];
133
+ exports.CreateConfigurationSetEventDestinationRequest$ = [3, n0, _CCSEDR,
134
+ 0,
135
+ [_CSN, _ED, _EDN],
136
+ [[0, 1], () => exports.EventDestinationDefinition$, 0], 1
137
+ ];
138
+ exports.CreateConfigurationSetEventDestinationResponse$ = [3, n0, _CCSEDRr,
139
+ 0,
140
+ [],
141
+ []
142
+ ];
143
+ exports.CreateConfigurationSetRequest$ = [3, n0, _CCSR,
144
+ 0,
145
+ [_CSN],
146
+ [0]
147
+ ];
148
+ exports.CreateConfigurationSetResponse$ = [3, n0, _CCSRr,
149
+ 0,
150
+ [],
151
+ []
152
+ ];
153
+ exports.DeleteConfigurationSetEventDestinationRequest$ = [3, n0, _DCSEDR,
154
+ 0,
155
+ [_CSN, _EDN],
156
+ [[0, 1], [0, 1]], 2
157
+ ];
158
+ exports.DeleteConfigurationSetEventDestinationResponse$ = [3, n0, _DCSEDRe,
159
+ 0,
160
+ [],
161
+ []
162
+ ];
163
+ exports.DeleteConfigurationSetRequest$ = [3, n0, _DCSR,
164
+ 0,
165
+ [_CSN],
166
+ [[0, 1]], 1
167
+ ];
168
+ exports.DeleteConfigurationSetResponse$ = [3, n0, _DCSRe,
169
+ 0,
170
+ [],
171
+ []
172
+ ];
173
+ exports.EventDestination$ = [3, n0, _ED,
174
+ 0,
175
+ [_CWLD, _E, _KFD, _MET, _N, _SD],
176
+ [() => exports.CloudWatchLogsDestination$, 2, () => exports.KinesisFirehoseDestination$, 64 | 0, 0, () => exports.SnsDestination$]
177
+ ];
178
+ exports.EventDestinationDefinition$ = [3, n0, _EDD,
179
+ 0,
180
+ [_CWLD, _E, _KFD, _MET, _SD],
181
+ [() => exports.CloudWatchLogsDestination$, 2, () => exports.KinesisFirehoseDestination$, 64 | 0, () => exports.SnsDestination$]
182
+ ];
183
+ exports.GetConfigurationSetEventDestinationsRequest$ = [3, n0, _GCSEDR,
184
+ 0,
185
+ [_CSN],
186
+ [[0, 1]], 1
187
+ ];
188
+ exports.GetConfigurationSetEventDestinationsResponse$ = [3, n0, _GCSEDRe,
189
+ 0,
190
+ [_EDv],
191
+ [() => EventDestinations]
192
+ ];
193
+ exports.KinesisFirehoseDestination$ = [3, n0, _KFD,
194
+ 0,
195
+ [_DSA, _IRA],
196
+ [0, 0]
197
+ ];
198
+ exports.ListConfigurationSetsRequest$ = [3, n0, _LCSR,
199
+ 0,
200
+ [_NT, _PS],
201
+ [[0, { [_hQ]: _NT }], [0, { [_hQ]: _PS }]]
202
+ ];
203
+ exports.ListConfigurationSetsResponse$ = [3, n0, _LCSRi,
204
+ 0,
205
+ [_CS, _NT],
206
+ [64 | 0, 0]
207
+ ];
208
+ exports.PlainTextMessageType$ = [3, n0, _PTMT,
209
+ 0,
210
+ [_LC, _T, _VI],
211
+ [0, 0, 0]
212
+ ];
213
+ exports.SendVoiceMessageRequest$ = [3, n0, _SVMR,
214
+ 0,
215
+ [_CI, _CSN, _C, _DPN, _OPN],
216
+ [0, 0, () => exports.VoiceMessageContent$, 0, 0]
217
+ ];
218
+ exports.SendVoiceMessageResponse$ = [3, n0, _SVMRe,
219
+ 0,
220
+ [_MI],
221
+ [0]
222
+ ];
223
+ exports.SnsDestination$ = [3, n0, _SD,
224
+ 0,
225
+ [_TA],
226
+ [0]
227
+ ];
228
+ exports.SSMLMessageType$ = [3, n0, _SSMLMT,
229
+ 0,
230
+ [_LC, _T, _VI],
231
+ [0, 0, 0]
232
+ ];
233
+ exports.UpdateConfigurationSetEventDestinationRequest$ = [3, n0, _UCSEDR,
234
+ 0,
235
+ [_CSN, _EDN, _ED],
236
+ [[0, 1], [0, 1], () => exports.EventDestinationDefinition$], 2
237
+ ];
238
+ exports.UpdateConfigurationSetEventDestinationResponse$ = [3, n0, _UCSEDRp,
239
+ 0,
240
+ [],
241
+ []
242
+ ];
243
+ exports.VoiceMessageContent$ = [3, n0, _VMC,
244
+ 0,
245
+ [_CIM, _PTM, _SSMLM],
246
+ [() => exports.CallInstructionsMessageType$, () => exports.PlainTextMessageType$, () => exports.SSMLMessageType$]
247
+ ];
248
+ var ConfigurationSets = 64 | 0;
249
+ var EventDestinations = [1, n0, _EDv,
250
+ 0, () => exports.EventDestination$
251
+ ];
252
+ var EventTypes = 64 | 0;
253
+ exports.CreateConfigurationSet$ = [9, n0, _CCS,
254
+ { [_h]: ["POST", "/v1/sms-voice/configuration-sets", 200] }, () => exports.CreateConfigurationSetRequest$, () => exports.CreateConfigurationSetResponse$
255
+ ];
256
+ exports.CreateConfigurationSetEventDestination$ = [9, n0, _CCSED,
257
+ { [_h]: ["POST", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations", 200] }, () => exports.CreateConfigurationSetEventDestinationRequest$, () => exports.CreateConfigurationSetEventDestinationResponse$
258
+ ];
259
+ exports.DeleteConfigurationSet$ = [9, n0, _DCS,
260
+ { [_h]: ["DELETE", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}", 200] }, () => exports.DeleteConfigurationSetRequest$, () => exports.DeleteConfigurationSetResponse$
261
+ ];
262
+ exports.DeleteConfigurationSetEventDestination$ = [9, n0, _DCSED,
263
+ { [_h]: ["DELETE", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", 200] }, () => exports.DeleteConfigurationSetEventDestinationRequest$, () => exports.DeleteConfigurationSetEventDestinationResponse$
264
+ ];
265
+ exports.GetConfigurationSetEventDestinations$ = [9, n0, _GCSED,
266
+ { [_h]: ["GET", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations", 200] }, () => exports.GetConfigurationSetEventDestinationsRequest$, () => exports.GetConfigurationSetEventDestinationsResponse$
267
+ ];
268
+ exports.ListConfigurationSets$ = [9, n0, _LCS,
269
+ { [_h]: ["GET", "/v1/sms-voice/configuration-sets", 200] }, () => exports.ListConfigurationSetsRequest$, () => exports.ListConfigurationSetsResponse$
270
+ ];
271
+ exports.SendVoiceMessage$ = [9, n0, _SVM,
272
+ { [_h]: ["POST", "/v1/sms-voice/voice/message", 200] }, () => exports.SendVoiceMessageRequest$, () => exports.SendVoiceMessageResponse$
273
+ ];
274
+ exports.UpdateConfigurationSetEventDestination$ = [9, n0, _UCSED,
275
+ { [_h]: ["PUT", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", 200] }, () => exports.UpdateConfigurationSetEventDestinationRequest$, () => exports.UpdateConfigurationSetEventDestinationResponse$
276
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultPinpointSMSVoiceHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2018-09-05",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.pinpointsmsvoice",
30
+ errorTypeRegistries,
29
31
  version: "2018-09-05",
30
32
  serviceTarget: "PinpointSMSVoice",
31
33
  },
@@ -67,24 +67,56 @@ const _e = "error";
67
67
  const _h = "http";
68
68
  const _hE = "httpError";
69
69
  const _hQ = "httpQuery";
70
- const _s = "server";
71
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.pinpointsmsvoice";
70
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.pinpointsmsvoice";
71
+ const _se = "server";
72
72
  const n0 = "com.amazonaws.pinpointsmsvoice";
73
73
  import { TypeRegistry } from "@smithy/core/schema";
74
74
  import { AlreadyExistsException, BadRequestException, InternalServiceErrorException, LimitExceededException, NotFoundException, TooManyRequestsException, } from "../models/errors";
75
75
  import { PinpointSMSVoiceServiceException } from "../models/PinpointSMSVoiceServiceException";
76
+ const _s_registry = TypeRegistry.for(_s);
77
+ export var PinpointSMSVoiceServiceException$ = [-3, _s, "PinpointSMSVoiceServiceException", 0, [], []];
78
+ _s_registry.registerError(PinpointSMSVoiceServiceException$, PinpointSMSVoiceServiceException);
79
+ const n0_registry = TypeRegistry.for(n0);
76
80
  export var AlreadyExistsException$ = [-3, n0, _AEE,
77
81
  { [_e]: _c, [_hE]: 409 },
78
82
  [_M],
79
83
  [0]
80
84
  ];
81
- TypeRegistry.for(n0).registerError(AlreadyExistsException$, AlreadyExistsException);
85
+ n0_registry.registerError(AlreadyExistsException$, AlreadyExistsException);
82
86
  export var BadRequestException$ = [-3, n0, _BRE,
83
87
  { [_e]: _c, [_hE]: 400 },
84
88
  [_M],
85
89
  [0]
86
90
  ];
87
- TypeRegistry.for(n0).registerError(BadRequestException$, BadRequestException);
91
+ n0_registry.registerError(BadRequestException$, BadRequestException);
92
+ export var InternalServiceErrorException$ = [-3, n0, _ISEE,
93
+ { [_e]: _se, [_hE]: 500 },
94
+ [_M],
95
+ [0]
96
+ ];
97
+ n0_registry.registerError(InternalServiceErrorException$, InternalServiceErrorException);
98
+ export var LimitExceededException$ = [-3, n0, _LEE,
99
+ { [_e]: _c, [_hE]: 412 },
100
+ [_M],
101
+ [0]
102
+ ];
103
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
104
+ export var NotFoundException$ = [-3, n0, _NFE,
105
+ { [_e]: _c, [_hE]: 404 },
106
+ [_M],
107
+ [0]
108
+ ];
109
+ n0_registry.registerError(NotFoundException$, NotFoundException);
110
+ export var TooManyRequestsException$ = [-3, n0, _TMRE,
111
+ { [_e]: _c, [_hE]: 429 },
112
+ [_M],
113
+ [0]
114
+ ];
115
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
116
+ export const errorTypeRegistries = [
117
+ _s_registry,
118
+ n0_registry,
119
+ ];
88
120
  export var CallInstructionsMessageType$ = [3, n0, _CIMT,
89
121
  0,
90
122
  [_T],
@@ -155,23 +187,11 @@ export var GetConfigurationSetEventDestinationsResponse$ = [3, n0, _GCSEDRe,
155
187
  [_EDv],
156
188
  [() => EventDestinations]
157
189
  ];
158
- export var InternalServiceErrorException$ = [-3, n0, _ISEE,
159
- { [_e]: _s, [_hE]: 500 },
160
- [_M],
161
- [0]
162
- ];
163
- TypeRegistry.for(n0).registerError(InternalServiceErrorException$, InternalServiceErrorException);
164
190
  export var KinesisFirehoseDestination$ = [3, n0, _KFD,
165
191
  0,
166
192
  [_DSA, _IRA],
167
193
  [0, 0]
168
194
  ];
169
- export var LimitExceededException$ = [-3, n0, _LEE,
170
- { [_e]: _c, [_hE]: 412 },
171
- [_M],
172
- [0]
173
- ];
174
- TypeRegistry.for(n0).registerError(LimitExceededException$, LimitExceededException);
175
195
  export var ListConfigurationSetsRequest$ = [3, n0, _LCSR,
176
196
  0,
177
197
  [_NT, _PS],
@@ -182,12 +202,6 @@ export var ListConfigurationSetsResponse$ = [3, n0, _LCSRi,
182
202
  [_CS, _NT],
183
203
  [64 | 0, 0]
184
204
  ];
185
- export var NotFoundException$ = [-3, n0, _NFE,
186
- { [_e]: _c, [_hE]: 404 },
187
- [_M],
188
- [0]
189
- ];
190
- TypeRegistry.for(n0).registerError(NotFoundException$, NotFoundException);
191
205
  export var PlainTextMessageType$ = [3, n0, _PTMT,
192
206
  0,
193
207
  [_LC, _T, _VI],
@@ -213,12 +227,6 @@ export var SSMLMessageType$ = [3, n0, _SSMLMT,
213
227
  [_LC, _T, _VI],
214
228
  [0, 0, 0]
215
229
  ];
216
- export var TooManyRequestsException$ = [-3, n0, _TMRE,
217
- { [_e]: _c, [_hE]: 429 },
218
- [_M],
219
- [0]
220
- ];
221
- TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);
222
230
  export var UpdateConfigurationSetEventDestinationRequest$ = [3, n0, _UCSEDR,
223
231
  0,
224
232
  [_CSN, _EDN, _ED],
@@ -234,8 +242,6 @@ export var VoiceMessageContent$ = [3, n0, _VMC,
234
242
  [_CIM, _PTM, _SSMLM],
235
243
  [() => CallInstructionsMessageType$, () => PlainTextMessageType$, () => SSMLMessageType$]
236
244
  ];
237
- export var PinpointSMSVoiceServiceException$ = [-3, _sm, "PinpointSMSVoiceServiceException", 0, [], []];
238
- TypeRegistry.for(_sm).registerError(PinpointSMSVoiceServiceException$, PinpointSMSVoiceServiceException);
239
245
  var ConfigurationSets = 64 | 0;
240
246
  var EventDestinations = [1, n0, _EDv,
241
247
  0, () => EventDestination$
@@ -1,6 +1,18 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var PinpointSMSVoiceServiceException$: StaticErrorSchema;
2
4
  export declare var AlreadyExistsException$: StaticErrorSchema;
3
5
  export declare var BadRequestException$: StaticErrorSchema;
6
+ export declare var InternalServiceErrorException$: StaticErrorSchema;
7
+ export declare var LimitExceededException$: StaticErrorSchema;
8
+ export declare var NotFoundException$: StaticErrorSchema;
9
+ export declare var TooManyRequestsException$: StaticErrorSchema;
10
+ /**
11
+ * TypeRegistry instances containing modeled errors.
12
+ * @internal
13
+ *
14
+ */
15
+ export declare const errorTypeRegistries: TypeRegistry[];
4
16
  export declare var CallInstructionsMessageType$: StaticStructureSchema;
5
17
  export declare var CloudWatchLogsDestination$: StaticStructureSchema;
6
18
  export declare var CreateConfigurationSetEventDestinationRequest$: StaticStructureSchema;
@@ -15,22 +27,17 @@ export declare var EventDestination$: StaticStructureSchema;
15
27
  export declare var EventDestinationDefinition$: StaticStructureSchema;
16
28
  export declare var GetConfigurationSetEventDestinationsRequest$: StaticStructureSchema;
17
29
  export declare var GetConfigurationSetEventDestinationsResponse$: StaticStructureSchema;
18
- export declare var InternalServiceErrorException$: StaticErrorSchema;
19
30
  export declare var KinesisFirehoseDestination$: StaticStructureSchema;
20
- export declare var LimitExceededException$: StaticErrorSchema;
21
31
  export declare var ListConfigurationSetsRequest$: StaticStructureSchema;
22
32
  export declare var ListConfigurationSetsResponse$: StaticStructureSchema;
23
- export declare var NotFoundException$: StaticErrorSchema;
24
33
  export declare var PlainTextMessageType$: StaticStructureSchema;
25
34
  export declare var SendVoiceMessageRequest$: StaticStructureSchema;
26
35
  export declare var SendVoiceMessageResponse$: StaticStructureSchema;
27
36
  export declare var SnsDestination$: StaticStructureSchema;
28
37
  export declare var SSMLMessageType$: StaticStructureSchema;
29
- export declare var TooManyRequestsException$: StaticErrorSchema;
30
38
  export declare var UpdateConfigurationSetEventDestinationRequest$: StaticStructureSchema;
31
39
  export declare var UpdateConfigurationSetEventDestinationResponse$: StaticStructureSchema;
32
40
  export declare var VoiceMessageContent$: StaticStructureSchema;
33
- export declare var PinpointSMSVoiceServiceException$: StaticErrorSchema;
34
41
  export declare var CreateConfigurationSet$: StaticOperationSchema;
35
42
  export declare var CreateConfigurationSetEventDestination$: StaticOperationSchema;
36
43
  export declare var DeleteConfigurationSet$: StaticOperationSchema;
@@ -1,10 +1,17 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var PinpointSMSVoiceServiceException$: StaticErrorSchema;
6
8
  export declare var AlreadyExistsException$: StaticErrorSchema;
7
9
  export declare var BadRequestException$: StaticErrorSchema;
10
+ export declare var InternalServiceErrorException$: StaticErrorSchema;
11
+ export declare var LimitExceededException$: StaticErrorSchema;
12
+ export declare var NotFoundException$: StaticErrorSchema;
13
+ export declare var TooManyRequestsException$: StaticErrorSchema;
14
+ export declare const errorTypeRegistries: TypeRegistry[];
8
15
  export declare var CallInstructionsMessageType$: StaticStructureSchema;
9
16
  export declare var CloudWatchLogsDestination$: StaticStructureSchema;
10
17
  export declare var CreateConfigurationSetEventDestinationRequest$: StaticStructureSchema;
@@ -19,22 +26,17 @@ export declare var EventDestination$: StaticStructureSchema;
19
26
  export declare var EventDestinationDefinition$: StaticStructureSchema;
20
27
  export declare var GetConfigurationSetEventDestinationsRequest$: StaticStructureSchema;
21
28
  export declare var GetConfigurationSetEventDestinationsResponse$: StaticStructureSchema;
22
- export declare var InternalServiceErrorException$: StaticErrorSchema;
23
29
  export declare var KinesisFirehoseDestination$: StaticStructureSchema;
24
- export declare var LimitExceededException$: StaticErrorSchema;
25
30
  export declare var ListConfigurationSetsRequest$: StaticStructureSchema;
26
31
  export declare var ListConfigurationSetsResponse$: StaticStructureSchema;
27
- export declare var NotFoundException$: StaticErrorSchema;
28
32
  export declare var PlainTextMessageType$: StaticStructureSchema;
29
33
  export declare var SendVoiceMessageRequest$: StaticStructureSchema;
30
34
  export declare var SendVoiceMessageResponse$: StaticStructureSchema;
31
35
  export declare var SnsDestination$: StaticStructureSchema;
32
36
  export declare var SSMLMessageType$: StaticStructureSchema;
33
- export declare var TooManyRequestsException$: StaticErrorSchema;
34
37
  export declare var UpdateConfigurationSetEventDestinationRequest$: StaticStructureSchema;
35
38
  export declare var UpdateConfigurationSetEventDestinationResponse$: StaticStructureSchema;
36
39
  export declare var VoiceMessageContent$: StaticStructureSchema;
37
- export declare var PinpointSMSVoiceServiceException$: StaticErrorSchema;
38
40
  export declare var CreateConfigurationSet$: StaticOperationSchema;
39
41
  export declare var CreateConfigurationSetEventDestination$: StaticOperationSchema;
40
42
  export declare var DeleteConfigurationSet$: StaticOperationSchema;
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.987.0",
4
+ "version": "3.988.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-pinpoint-sms-voice",
@@ -21,38 +21,38 @@
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.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.988.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
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.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",