@aws-sdk/client-pinpoint-sms-voice 3.927.0 → 3.929.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.
Files changed (29) hide show
  1. package/dist-cjs/index.js +383 -391
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/PinpointSMSVoiceClient.js +2 -0
  4. package/dist-es/commands/CreateConfigurationSetCommand.js +3 -9
  5. package/dist-es/commands/CreateConfigurationSetEventDestinationCommand.js +3 -9
  6. package/dist-es/commands/DeleteConfigurationSetCommand.js +3 -9
  7. package/dist-es/commands/DeleteConfigurationSetEventDestinationCommand.js +3 -9
  8. package/dist-es/commands/GetConfigurationSetEventDestinationsCommand.js +3 -9
  9. package/dist-es/commands/ListConfigurationSetsCommand.js +3 -9
  10. package/dist-es/commands/SendVoiceMessageCommand.js +3 -9
  11. package/dist-es/commands/UpdateConfigurationSetEventDestinationCommand.js +3 -9
  12. package/dist-es/runtimeConfig.shared.js +2 -0
  13. package/dist-es/schemas/schemas_0.js +352 -0
  14. package/dist-types/PinpointSMSVoiceClient.d.ts +10 -1
  15. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  16. package/dist-types/runtimeConfig.d.ts +1 -0
  17. package/dist-types/runtimeConfig.native.d.ts +1 -0
  18. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  19. package/dist-types/schemas/schemas_0.d.ts +45 -0
  20. package/dist-types/ts3.4/PinpointSMSVoiceClient.d.ts +4 -0
  21. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  22. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  23. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  24. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  25. package/dist-types/ts3.4/schemas/schemas_0.d.ts +50 -0
  26. package/package.json +5 -5
  27. package/dist-es/protocols/Aws_restJson1.js +0 -320
  28. package/dist-types/protocols/Aws_restJson1.d.ts +0 -74
  29. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -101
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class PinpointSMSVoiceClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class PinpointSMSVoiceClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class PinpointSMSVoiceServiceException extends smithyClient.ServiceException {
113
+ let PinpointSMSVoiceServiceException$1 = class PinpointSMSVoiceServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, PinpointSMSVoiceServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AlreadyExistsException extends PinpointSMSVoiceServiceException {
120
+ let AlreadyExistsException$1 = class AlreadyExistsException extends PinpointSMSVoiceServiceException$1 {
121
121
  name = "AlreadyExistsException";
122
122
  $fault = "client";
123
123
  Message;
@@ -130,8 +130,8 @@ class AlreadyExistsException extends PinpointSMSVoiceServiceException {
130
130
  Object.setPrototypeOf(this, AlreadyExistsException.prototype);
131
131
  this.Message = opts.Message;
132
132
  }
133
- }
134
- class BadRequestException extends PinpointSMSVoiceServiceException {
133
+ };
134
+ let BadRequestException$1 = class BadRequestException extends PinpointSMSVoiceServiceException$1 {
135
135
  name = "BadRequestException";
136
136
  $fault = "client";
137
137
  Message;
@@ -144,8 +144,8 @@ class BadRequestException extends PinpointSMSVoiceServiceException {
144
144
  Object.setPrototypeOf(this, BadRequestException.prototype);
145
145
  this.Message = opts.Message;
146
146
  }
147
- }
148
- class InternalServiceErrorException extends PinpointSMSVoiceServiceException {
147
+ };
148
+ let InternalServiceErrorException$1 = class InternalServiceErrorException extends PinpointSMSVoiceServiceException$1 {
149
149
  name = "InternalServiceErrorException";
150
150
  $fault = "server";
151
151
  Message;
@@ -158,8 +158,8 @@ class InternalServiceErrorException extends PinpointSMSVoiceServiceException {
158
158
  Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
159
159
  this.Message = opts.Message;
160
160
  }
161
- }
162
- class LimitExceededException extends PinpointSMSVoiceServiceException {
161
+ };
162
+ let LimitExceededException$1 = class LimitExceededException extends PinpointSMSVoiceServiceException$1 {
163
163
  name = "LimitExceededException";
164
164
  $fault = "client";
165
165
  Message;
@@ -172,8 +172,8 @@ class LimitExceededException extends PinpointSMSVoiceServiceException {
172
172
  Object.setPrototypeOf(this, LimitExceededException.prototype);
173
173
  this.Message = opts.Message;
174
174
  }
175
- }
176
- class TooManyRequestsException extends PinpointSMSVoiceServiceException {
175
+ };
176
+ let TooManyRequestsException$1 = class TooManyRequestsException extends PinpointSMSVoiceServiceException$1 {
177
177
  name = "TooManyRequestsException";
178
178
  $fault = "client";
179
179
  Message;
@@ -186,7 +186,7 @@ class TooManyRequestsException extends PinpointSMSVoiceServiceException {
186
186
  Object.setPrototypeOf(this, TooManyRequestsException.prototype);
187
187
  this.Message = opts.Message;
188
188
  }
189
- }
189
+ };
190
190
  const EventType = {
191
191
  ANSWERED: "ANSWERED",
192
192
  BUSY: "BUSY",
@@ -196,7 +196,7 @@ const EventType = {
196
196
  NO_ANSWER: "NO_ANSWER",
197
197
  RINGING: "RINGING",
198
198
  };
199
- class NotFoundException extends PinpointSMSVoiceServiceException {
199
+ let NotFoundException$1 = class NotFoundException extends PinpointSMSVoiceServiceException$1 {
200
200
  name = "NotFoundException";
201
201
  $fault = "client";
202
202
  Message;
@@ -209,337 +209,364 @@ class NotFoundException extends PinpointSMSVoiceServiceException {
209
209
  Object.setPrototypeOf(this, NotFoundException.prototype);
210
210
  this.Message = opts.Message;
211
211
  }
212
- }
213
-
214
- const se_CreateConfigurationSetCommand = async (input, context) => {
215
- const b = core.requestBuilder(input, context);
216
- const headers = {
217
- "content-type": "application/json",
218
- };
219
- b.bp("/v1/sms-voice/configuration-sets");
220
- let body;
221
- body = JSON.stringify(smithyClient.take(input, {
222
- ConfigurationSetName: [],
223
- }));
224
- b.m("POST").h(headers).b(body);
225
- return b.build();
226
- };
227
- const se_CreateConfigurationSetEventDestinationCommand = async (input, context) => {
228
- const b = core.requestBuilder(input, context);
229
- const headers = {
230
- "content-type": "application/json",
231
- };
232
- b.bp("/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations");
233
- b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
234
- let body;
235
- body = JSON.stringify(smithyClient.take(input, {
236
- EventDestination: (_) => smithyClient._json(_),
237
- EventDestinationName: [],
238
- }));
239
- b.m("POST").h(headers).b(body);
240
- return b.build();
241
- };
242
- const se_DeleteConfigurationSetCommand = async (input, context) => {
243
- const b = core.requestBuilder(input, context);
244
- const headers = {};
245
- b.bp("/v1/sms-voice/configuration-sets/{ConfigurationSetName}");
246
- b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
247
- let body;
248
- b.m("DELETE").h(headers).b(body);
249
- return b.build();
250
- };
251
- const se_DeleteConfigurationSetEventDestinationCommand = async (input, context) => {
252
- const b = core.requestBuilder(input, context);
253
- const headers = {};
254
- b.bp("/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}");
255
- b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
256
- b.p("EventDestinationName", () => input.EventDestinationName, "{EventDestinationName}", false);
257
- let body;
258
- b.m("DELETE").h(headers).b(body);
259
- return b.build();
260
- };
261
- const se_GetConfigurationSetEventDestinationsCommand = async (input, context) => {
262
- const b = core.requestBuilder(input, context);
263
- const headers = {};
264
- b.bp("/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations");
265
- b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
266
- let body;
267
- b.m("GET").h(headers).b(body);
268
- return b.build();
269
- };
270
- const se_ListConfigurationSetsCommand = async (input, context) => {
271
- const b = core.requestBuilder(input, context);
272
- const headers = {};
273
- b.bp("/v1/sms-voice/configuration-sets");
274
- const query = smithyClient.map({
275
- [_NT]: [, input[_NT]],
276
- [_PS]: [, input[_PS]],
277
- });
278
- let body;
279
- b.m("GET").h(headers).q(query).b(body);
280
- return b.build();
281
- };
282
- const se_SendVoiceMessageCommand = async (input, context) => {
283
- const b = core.requestBuilder(input, context);
284
- const headers = {
285
- "content-type": "application/json",
286
- };
287
- b.bp("/v1/sms-voice/voice/message");
288
- let body;
289
- body = JSON.stringify(smithyClient.take(input, {
290
- CallerId: [],
291
- ConfigurationSetName: [],
292
- Content: (_) => smithyClient._json(_),
293
- DestinationPhoneNumber: [],
294
- OriginationPhoneNumber: [],
295
- }));
296
- b.m("POST").h(headers).b(body);
297
- return b.build();
298
- };
299
- const se_UpdateConfigurationSetEventDestinationCommand = async (input, context) => {
300
- const b = core.requestBuilder(input, context);
301
- const headers = {
302
- "content-type": "application/json",
303
- };
304
- b.bp("/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}");
305
- b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
306
- b.p("EventDestinationName", () => input.EventDestinationName, "{EventDestinationName}", false);
307
- let body;
308
- body = JSON.stringify(smithyClient.take(input, {
309
- EventDestination: (_) => smithyClient._json(_),
310
- }));
311
- b.m("PUT").h(headers).b(body);
312
- return b.build();
313
- };
314
- const de_CreateConfigurationSetCommand = async (output, context) => {
315
- if (output.statusCode !== 200 && output.statusCode >= 300) {
316
- return de_CommandError(output, context);
317
- }
318
- const contents = smithyClient.map({
319
- $metadata: deserializeMetadata(output),
320
- });
321
- await smithyClient.collectBody(output.body, context);
322
- return contents;
323
- };
324
- const de_CreateConfigurationSetEventDestinationCommand = async (output, context) => {
325
- if (output.statusCode !== 200 && output.statusCode >= 300) {
326
- return de_CommandError(output, context);
327
- }
328
- const contents = smithyClient.map({
329
- $metadata: deserializeMetadata(output),
330
- });
331
- await smithyClient.collectBody(output.body, context);
332
- return contents;
333
- };
334
- const de_DeleteConfigurationSetCommand = async (output, context) => {
335
- if (output.statusCode !== 200 && output.statusCode >= 300) {
336
- return de_CommandError(output, context);
337
- }
338
- const contents = smithyClient.map({
339
- $metadata: deserializeMetadata(output),
340
- });
341
- await smithyClient.collectBody(output.body, context);
342
- return contents;
343
- };
344
- const de_DeleteConfigurationSetEventDestinationCommand = async (output, context) => {
345
- if (output.statusCode !== 200 && output.statusCode >= 300) {
346
- return de_CommandError(output, context);
347
- }
348
- const contents = smithyClient.map({
349
- $metadata: deserializeMetadata(output),
350
- });
351
- await smithyClient.collectBody(output.body, context);
352
- return contents;
353
- };
354
- const de_GetConfigurationSetEventDestinationsCommand = async (output, context) => {
355
- if (output.statusCode !== 200 && output.statusCode >= 300) {
356
- return de_CommandError(output, context);
357
- }
358
- const contents = smithyClient.map({
359
- $metadata: deserializeMetadata(output),
360
- });
361
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
362
- const doc = smithyClient.take(data, {
363
- EventDestinations: smithyClient._json,
364
- });
365
- Object.assign(contents, doc);
366
- return contents;
367
- };
368
- const de_ListConfigurationSetsCommand = async (output, context) => {
369
- if (output.statusCode !== 200 && output.statusCode >= 300) {
370
- return de_CommandError(output, context);
371
- }
372
- const contents = smithyClient.map({
373
- $metadata: deserializeMetadata(output),
374
- });
375
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
376
- const doc = smithyClient.take(data, {
377
- ConfigurationSets: smithyClient._json,
378
- NextToken: smithyClient.expectString,
379
- });
380
- Object.assign(contents, doc);
381
- return contents;
382
- };
383
- const de_SendVoiceMessageCommand = async (output, context) => {
384
- if (output.statusCode !== 200 && output.statusCode >= 300) {
385
- return de_CommandError(output, context);
386
- }
387
- const contents = smithyClient.map({
388
- $metadata: deserializeMetadata(output),
389
- });
390
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
391
- const doc = smithyClient.take(data, {
392
- MessageId: smithyClient.expectString,
393
- });
394
- Object.assign(contents, doc);
395
- return contents;
396
- };
397
- const de_UpdateConfigurationSetEventDestinationCommand = async (output, context) => {
398
- if (output.statusCode !== 200 && output.statusCode >= 300) {
399
- return de_CommandError(output, context);
400
- }
401
- const contents = smithyClient.map({
402
- $metadata: deserializeMetadata(output),
403
- });
404
- await smithyClient.collectBody(output.body, context);
405
- return contents;
406
- };
407
- const de_CommandError = async (output, context) => {
408
- const parsedOutput = {
409
- ...output,
410
- body: await core$1.parseJsonErrorBody(output.body, context),
411
- };
412
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
413
- switch (errorCode) {
414
- case "AlreadyExistsException":
415
- case "com.amazonaws.pinpointsmsvoice#AlreadyExistsException":
416
- throw await de_AlreadyExistsExceptionRes(parsedOutput);
417
- case "BadRequestException":
418
- case "com.amazonaws.pinpointsmsvoice#BadRequestException":
419
- throw await de_BadRequestExceptionRes(parsedOutput);
420
- case "InternalServiceErrorException":
421
- case "com.amazonaws.pinpointsmsvoice#InternalServiceErrorException":
422
- throw await de_InternalServiceErrorExceptionRes(parsedOutput);
423
- case "LimitExceededException":
424
- case "com.amazonaws.pinpointsmsvoice#LimitExceededException":
425
- throw await de_LimitExceededExceptionRes(parsedOutput);
426
- case "TooManyRequestsException":
427
- case "com.amazonaws.pinpointsmsvoice#TooManyRequestsException":
428
- throw await de_TooManyRequestsExceptionRes(parsedOutput);
429
- case "NotFoundException":
430
- case "com.amazonaws.pinpointsmsvoice#NotFoundException":
431
- throw await de_NotFoundExceptionRes(parsedOutput);
432
- default:
433
- const parsedBody = parsedOutput.body;
434
- return throwDefaultError({
435
- output,
436
- parsedBody,
437
- errorCode,
438
- });
439
- }
440
- };
441
- const throwDefaultError = smithyClient.withBaseException(PinpointSMSVoiceServiceException);
442
- const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
443
- const contents = smithyClient.map({});
444
- const data = parsedOutput.body;
445
- const doc = smithyClient.take(data, {
446
- Message: smithyClient.expectString,
447
- });
448
- Object.assign(contents, doc);
449
- const exception = new AlreadyExistsException({
450
- $metadata: deserializeMetadata(parsedOutput),
451
- ...contents,
452
- });
453
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
454
- };
455
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
456
- const contents = smithyClient.map({});
457
- const data = parsedOutput.body;
458
- const doc = smithyClient.take(data, {
459
- Message: smithyClient.expectString,
460
- });
461
- Object.assign(contents, doc);
462
- const exception = new BadRequestException({
463
- $metadata: deserializeMetadata(parsedOutput),
464
- ...contents,
465
- });
466
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
467
212
  };
468
- const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
469
- const contents = smithyClient.map({});
470
- const data = parsedOutput.body;
471
- const doc = smithyClient.take(data, {
472
- Message: smithyClient.expectString,
473
- });
474
- Object.assign(contents, doc);
475
- const exception = new InternalServiceErrorException({
476
- $metadata: deserializeMetadata(parsedOutput),
477
- ...contents,
478
- });
479
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
480
- };
481
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
482
- const contents = smithyClient.map({});
483
- const data = parsedOutput.body;
484
- const doc = smithyClient.take(data, {
485
- Message: smithyClient.expectString,
486
- });
487
- Object.assign(contents, doc);
488
- const exception = new LimitExceededException({
489
- $metadata: deserializeMetadata(parsedOutput),
490
- ...contents,
491
- });
492
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
493
- };
494
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
495
- const contents = smithyClient.map({});
496
- const data = parsedOutput.body;
497
- const doc = smithyClient.take(data, {
498
- Message: smithyClient.expectString,
499
- });
500
- Object.assign(contents, doc);
501
- const exception = new NotFoundException({
502
- $metadata: deserializeMetadata(parsedOutput),
503
- ...contents,
504
- });
505
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
506
- };
507
- const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
508
- const contents = smithyClient.map({});
509
- const data = parsedOutput.body;
510
- const doc = smithyClient.take(data, {
511
- Message: smithyClient.expectString,
512
- });
513
- Object.assign(contents, doc);
514
- const exception = new TooManyRequestsException({
515
- $metadata: deserializeMetadata(parsedOutput),
516
- ...contents,
517
- });
518
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
519
- };
520
- const deserializeMetadata = (output) => ({
521
- httpStatusCode: output.statusCode,
522
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
523
- extendedRequestId: output.headers["x-amz-id-2"],
524
- cfId: output.headers["x-amz-cf-id"],
525
- });
213
+
214
+ const _AEE = "AlreadyExistsException";
215
+ const _BRE = "BadRequestException";
216
+ const _C = "Content";
217
+ const _CCS = "CreateConfigurationSet";
218
+ const _CCSED = "CreateConfigurationSetEventDestination";
219
+ const _CCSEDR = "CreateConfigurationSetEventDestinationRequest";
220
+ const _CCSEDRr = "CreateConfigurationSetEventDestinationResponse";
221
+ const _CCSR = "CreateConfigurationSetRequest";
222
+ const _CCSRr = "CreateConfigurationSetResponse";
223
+ const _CI = "CallerId";
224
+ const _CIM = "CallInstructionsMessage";
225
+ const _CIMT = "CallInstructionsMessageType";
226
+ const _CS = "ConfigurationSets";
227
+ const _CSN = "ConfigurationSetName";
228
+ const _CWLD = "CloudWatchLogsDestination";
229
+ const _DCS = "DeleteConfigurationSet";
230
+ const _DCSED = "DeleteConfigurationSetEventDestination";
231
+ const _DCSEDR = "DeleteConfigurationSetEventDestinationRequest";
232
+ const _DCSEDRe = "DeleteConfigurationSetEventDestinationResponse";
233
+ const _DCSR = "DeleteConfigurationSetRequest";
234
+ const _DCSRe = "DeleteConfigurationSetResponse";
235
+ const _DPN = "DestinationPhoneNumber";
236
+ const _DSA = "DeliveryStreamArn";
237
+ const _E = "Enabled";
238
+ const _ED = "EventDestination";
239
+ const _EDD = "EventDestinationDefinition";
240
+ const _EDN = "EventDestinationName";
241
+ const _EDv = "EventDestinations";
242
+ const _GCSED = "GetConfigurationSetEventDestinations";
243
+ const _GCSEDR = "GetConfigurationSetEventDestinationsRequest";
244
+ const _GCSEDRe = "GetConfigurationSetEventDestinationsResponse";
245
+ const _IRA = "IamRoleArn";
246
+ const _ISEE = "InternalServiceErrorException";
247
+ const _KFD = "KinesisFirehoseDestination";
248
+ const _LC = "LanguageCode";
249
+ const _LCS = "ListConfigurationSets";
250
+ const _LCSR = "ListConfigurationSetsRequest";
251
+ const _LCSRi = "ListConfigurationSetsResponse";
252
+ const _LEE = "LimitExceededException";
253
+ const _LGA = "LogGroupArn";
254
+ const _M = "Message";
255
+ const _MET = "MatchingEventTypes";
256
+ const _MI = "MessageId";
257
+ const _N = "Name";
258
+ const _NFE = "NotFoundException";
526
259
  const _NT = "NextToken";
260
+ const _OPN = "OriginationPhoneNumber";
527
261
  const _PS = "PageSize";
262
+ const _PTM = "PlainTextMessage";
263
+ const _PTMT = "PlainTextMessageType";
264
+ const _SD = "SnsDestination";
265
+ const _SSMLM = "SSMLMessage";
266
+ const _SSMLMT = "SSMLMessageType";
267
+ const _SVM = "SendVoiceMessage";
268
+ const _SVMR = "SendVoiceMessageRequest";
269
+ const _SVMRe = "SendVoiceMessageResponse";
270
+ const _T = "Text";
271
+ const _TA = "TopicArn";
272
+ const _TMRE = "TooManyRequestsException";
273
+ const _UCSED = "UpdateConfigurationSetEventDestination";
274
+ const _UCSEDR = "UpdateConfigurationSetEventDestinationRequest";
275
+ const _UCSEDRp = "UpdateConfigurationSetEventDestinationResponse";
276
+ const _VI = "VoiceId";
277
+ const _VMC = "VoiceMessageContent";
278
+ const _c = "client";
279
+ const _e = "error";
280
+ const _h = "http";
281
+ const _hE = "httpError";
282
+ const _hQ = "httpQuery";
283
+ const _s = "server";
284
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.pinpointsmsvoice";
285
+ const n0 = "com.amazonaws.pinpointsmsvoice";
286
+ var AlreadyExistsException = [
287
+ -3,
288
+ n0,
289
+ _AEE,
290
+ {
291
+ [_e]: _c,
292
+ [_hE]: 409,
293
+ },
294
+ [_M],
295
+ [0],
296
+ ];
297
+ schema.TypeRegistry.for(n0).registerError(AlreadyExistsException, AlreadyExistsException$1);
298
+ var BadRequestException = [
299
+ -3,
300
+ n0,
301
+ _BRE,
302
+ {
303
+ [_e]: _c,
304
+ [_hE]: 400,
305
+ },
306
+ [_M],
307
+ [0],
308
+ ];
309
+ schema.TypeRegistry.for(n0).registerError(BadRequestException, BadRequestException$1);
310
+ var CallInstructionsMessageType = [3, n0, _CIMT, 0, [_T], [0]];
311
+ var CloudWatchLogsDestination = [3, n0, _CWLD, 0, [_IRA, _LGA], [0, 0]];
312
+ var CreateConfigurationSetEventDestinationRequest = [
313
+ 3,
314
+ n0,
315
+ _CCSEDR,
316
+ 0,
317
+ [_CSN, _ED, _EDN],
318
+ [[0, 1], () => EventDestinationDefinition, 0],
319
+ ];
320
+ var CreateConfigurationSetEventDestinationResponse = [3, n0, _CCSEDRr, 0, [], []];
321
+ var CreateConfigurationSetRequest = [3, n0, _CCSR, 0, [_CSN], [0]];
322
+ var CreateConfigurationSetResponse = [3, n0, _CCSRr, 0, [], []];
323
+ var DeleteConfigurationSetEventDestinationRequest = [
324
+ 3,
325
+ n0,
326
+ _DCSEDR,
327
+ 0,
328
+ [_CSN, _EDN],
329
+ [
330
+ [0, 1],
331
+ [0, 1],
332
+ ],
333
+ ];
334
+ var DeleteConfigurationSetEventDestinationResponse = [3, n0, _DCSEDRe, 0, [], []];
335
+ var DeleteConfigurationSetRequest = [3, n0, _DCSR, 0, [_CSN], [[0, 1]]];
336
+ var DeleteConfigurationSetResponse = [3, n0, _DCSRe, 0, [], []];
337
+ var EventDestination = [
338
+ 3,
339
+ n0,
340
+ _ED,
341
+ 0,
342
+ [_CWLD, _E, _KFD, _MET, _N, _SD],
343
+ [() => CloudWatchLogsDestination, 2, () => KinesisFirehoseDestination, 64 | 0, 0, () => SnsDestination],
344
+ ];
345
+ var EventDestinationDefinition = [
346
+ 3,
347
+ n0,
348
+ _EDD,
349
+ 0,
350
+ [_CWLD, _E, _KFD, _MET, _SD],
351
+ [() => CloudWatchLogsDestination, 2, () => KinesisFirehoseDestination, 64 | 0, () => SnsDestination],
352
+ ];
353
+ var GetConfigurationSetEventDestinationsRequest = [3, n0, _GCSEDR, 0, [_CSN], [[0, 1]]];
354
+ var GetConfigurationSetEventDestinationsResponse = [
355
+ 3,
356
+ n0,
357
+ _GCSEDRe,
358
+ 0,
359
+ [_EDv],
360
+ [() => EventDestinations],
361
+ ];
362
+ var InternalServiceErrorException = [
363
+ -3,
364
+ n0,
365
+ _ISEE,
366
+ {
367
+ [_e]: _s,
368
+ [_hE]: 500,
369
+ },
370
+ [_M],
371
+ [0],
372
+ ];
373
+ schema.TypeRegistry.for(n0).registerError(InternalServiceErrorException, InternalServiceErrorException$1);
374
+ var KinesisFirehoseDestination = [3, n0, _KFD, 0, [_DSA, _IRA], [0, 0]];
375
+ var LimitExceededException = [
376
+ -3,
377
+ n0,
378
+ _LEE,
379
+ {
380
+ [_e]: _c,
381
+ [_hE]: 412,
382
+ },
383
+ [_M],
384
+ [0],
385
+ ];
386
+ schema.TypeRegistry.for(n0).registerError(LimitExceededException, LimitExceededException$1);
387
+ var ListConfigurationSetsRequest = [
388
+ 3,
389
+ n0,
390
+ _LCSR,
391
+ 0,
392
+ [_NT, _PS],
393
+ [
394
+ [
395
+ 0,
396
+ {
397
+ [_hQ]: _NT,
398
+ },
399
+ ],
400
+ [
401
+ 0,
402
+ {
403
+ [_hQ]: _PS,
404
+ },
405
+ ],
406
+ ],
407
+ ];
408
+ var ListConfigurationSetsResponse = [3, n0, _LCSRi, 0, [_CS, _NT], [64 | 0, 0]];
409
+ var NotFoundException = [
410
+ -3,
411
+ n0,
412
+ _NFE,
413
+ {
414
+ [_e]: _c,
415
+ [_hE]: 404,
416
+ },
417
+ [_M],
418
+ [0],
419
+ ];
420
+ schema.TypeRegistry.for(n0).registerError(NotFoundException, NotFoundException$1);
421
+ var PlainTextMessageType = [3, n0, _PTMT, 0, [_LC, _T, _VI], [0, 0, 0]];
422
+ var SendVoiceMessageRequest = [
423
+ 3,
424
+ n0,
425
+ _SVMR,
426
+ 0,
427
+ [_CI, _CSN, _C, _DPN, _OPN],
428
+ [0, 0, () => VoiceMessageContent, 0, 0],
429
+ ];
430
+ var SendVoiceMessageResponse = [3, n0, _SVMRe, 0, [_MI], [0]];
431
+ var SnsDestination = [3, n0, _SD, 0, [_TA], [0]];
432
+ var SSMLMessageType = [3, n0, _SSMLMT, 0, [_LC, _T, _VI], [0, 0, 0]];
433
+ var TooManyRequestsException = [
434
+ -3,
435
+ n0,
436
+ _TMRE,
437
+ {
438
+ [_e]: _c,
439
+ [_hE]: 429,
440
+ },
441
+ [_M],
442
+ [0],
443
+ ];
444
+ schema.TypeRegistry.for(n0).registerError(TooManyRequestsException, TooManyRequestsException$1);
445
+ var UpdateConfigurationSetEventDestinationRequest = [
446
+ 3,
447
+ n0,
448
+ _UCSEDR,
449
+ 0,
450
+ [_CSN, _ED, _EDN],
451
+ [[0, 1], () => EventDestinationDefinition, [0, 1]],
452
+ ];
453
+ var UpdateConfigurationSetEventDestinationResponse = [3, n0, _UCSEDRp, 0, [], []];
454
+ var VoiceMessageContent = [
455
+ 3,
456
+ n0,
457
+ _VMC,
458
+ 0,
459
+ [_CIM, _PTM, _SSMLM],
460
+ [() => CallInstructionsMessageType, () => PlainTextMessageType, () => SSMLMessageType],
461
+ ];
462
+ var PinpointSMSVoiceServiceException = [
463
+ -3,
464
+ _sm,
465
+ "PinpointSMSVoiceServiceException",
466
+ 0,
467
+ [],
468
+ [],
469
+ ];
470
+ schema.TypeRegistry.for(_sm).registerError(PinpointSMSVoiceServiceException, PinpointSMSVoiceServiceException$1);
471
+ var EventDestinations = [1, n0, _EDv, 0, () => EventDestination];
472
+ var CreateConfigurationSet = [
473
+ 9,
474
+ n0,
475
+ _CCS,
476
+ {
477
+ [_h]: ["POST", "/v1/sms-voice/configuration-sets", 200],
478
+ },
479
+ () => CreateConfigurationSetRequest,
480
+ () => CreateConfigurationSetResponse,
481
+ ];
482
+ var CreateConfigurationSetEventDestination = [
483
+ 9,
484
+ n0,
485
+ _CCSED,
486
+ {
487
+ [_h]: ["POST", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations", 200],
488
+ },
489
+ () => CreateConfigurationSetEventDestinationRequest,
490
+ () => CreateConfigurationSetEventDestinationResponse,
491
+ ];
492
+ var DeleteConfigurationSet = [
493
+ 9,
494
+ n0,
495
+ _DCS,
496
+ {
497
+ [_h]: ["DELETE", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}", 200],
498
+ },
499
+ () => DeleteConfigurationSetRequest,
500
+ () => DeleteConfigurationSetResponse,
501
+ ];
502
+ var DeleteConfigurationSetEventDestination = [
503
+ 9,
504
+ n0,
505
+ _DCSED,
506
+ {
507
+ [_h]: [
508
+ "DELETE",
509
+ "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}",
510
+ 200,
511
+ ],
512
+ },
513
+ () => DeleteConfigurationSetEventDestinationRequest,
514
+ () => DeleteConfigurationSetEventDestinationResponse,
515
+ ];
516
+ var GetConfigurationSetEventDestinations = [
517
+ 9,
518
+ n0,
519
+ _GCSED,
520
+ {
521
+ [_h]: ["GET", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations", 200],
522
+ },
523
+ () => GetConfigurationSetEventDestinationsRequest,
524
+ () => GetConfigurationSetEventDestinationsResponse,
525
+ ];
526
+ var ListConfigurationSets = [
527
+ 9,
528
+ n0,
529
+ _LCS,
530
+ {
531
+ [_h]: ["GET", "/v1/sms-voice/configuration-sets", 200],
532
+ },
533
+ () => ListConfigurationSetsRequest,
534
+ () => ListConfigurationSetsResponse,
535
+ ];
536
+ var SendVoiceMessage = [
537
+ 9,
538
+ n0,
539
+ _SVM,
540
+ {
541
+ [_h]: ["POST", "/v1/sms-voice/voice/message", 200],
542
+ },
543
+ () => SendVoiceMessageRequest,
544
+ () => SendVoiceMessageResponse,
545
+ ];
546
+ var UpdateConfigurationSetEventDestination = [
547
+ 9,
548
+ n0,
549
+ _UCSED,
550
+ {
551
+ [_h]: [
552
+ "PUT",
553
+ "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}",
554
+ 200,
555
+ ],
556
+ },
557
+ () => UpdateConfigurationSetEventDestinationRequest,
558
+ () => UpdateConfigurationSetEventDestinationResponse,
559
+ ];
528
560
 
529
561
  class CreateConfigurationSetCommand extends smithyClient.Command
530
562
  .classBuilder()
531
563
  .ep(commonParams)
532
564
  .m(function (Command, cs, config, o) {
533
- return [
534
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
535
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
536
- ];
565
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
537
566
  })
538
567
  .s("PinpointSMSVoice", "CreateConfigurationSet", {})
539
568
  .n("PinpointSMSVoiceClient", "CreateConfigurationSetCommand")
540
- .f(void 0, void 0)
541
- .ser(se_CreateConfigurationSetCommand)
542
- .de(de_CreateConfigurationSetCommand)
569
+ .sc(CreateConfigurationSet)
543
570
  .build() {
544
571
  }
545
572
 
@@ -547,16 +574,11 @@ class CreateConfigurationSetEventDestinationCommand extends smithyClient.Command
547
574
  .classBuilder()
548
575
  .ep(commonParams)
549
576
  .m(function (Command, cs, config, o) {
550
- return [
551
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
552
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
553
- ];
577
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
554
578
  })
555
579
  .s("PinpointSMSVoice", "CreateConfigurationSetEventDestination", {})
556
580
  .n("PinpointSMSVoiceClient", "CreateConfigurationSetEventDestinationCommand")
557
- .f(void 0, void 0)
558
- .ser(se_CreateConfigurationSetEventDestinationCommand)
559
- .de(de_CreateConfigurationSetEventDestinationCommand)
581
+ .sc(CreateConfigurationSetEventDestination)
560
582
  .build() {
561
583
  }
562
584
 
@@ -564,16 +586,11 @@ class DeleteConfigurationSetCommand extends smithyClient.Command
564
586
  .classBuilder()
565
587
  .ep(commonParams)
566
588
  .m(function (Command, cs, config, o) {
567
- return [
568
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
569
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
570
- ];
589
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
571
590
  })
572
591
  .s("PinpointSMSVoice", "DeleteConfigurationSet", {})
573
592
  .n("PinpointSMSVoiceClient", "DeleteConfigurationSetCommand")
574
- .f(void 0, void 0)
575
- .ser(se_DeleteConfigurationSetCommand)
576
- .de(de_DeleteConfigurationSetCommand)
593
+ .sc(DeleteConfigurationSet)
577
594
  .build() {
578
595
  }
579
596
 
@@ -581,16 +598,11 @@ class DeleteConfigurationSetEventDestinationCommand extends smithyClient.Command
581
598
  .classBuilder()
582
599
  .ep(commonParams)
583
600
  .m(function (Command, cs, config, o) {
584
- return [
585
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
586
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
587
- ];
601
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
588
602
  })
589
603
  .s("PinpointSMSVoice", "DeleteConfigurationSetEventDestination", {})
590
604
  .n("PinpointSMSVoiceClient", "DeleteConfigurationSetEventDestinationCommand")
591
- .f(void 0, void 0)
592
- .ser(se_DeleteConfigurationSetEventDestinationCommand)
593
- .de(de_DeleteConfigurationSetEventDestinationCommand)
605
+ .sc(DeleteConfigurationSetEventDestination)
594
606
  .build() {
595
607
  }
596
608
 
@@ -598,16 +610,11 @@ class GetConfigurationSetEventDestinationsCommand extends smithyClient.Command
598
610
  .classBuilder()
599
611
  .ep(commonParams)
600
612
  .m(function (Command, cs, config, o) {
601
- return [
602
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
603
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
604
- ];
613
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
605
614
  })
606
615
  .s("PinpointSMSVoice", "GetConfigurationSetEventDestinations", {})
607
616
  .n("PinpointSMSVoiceClient", "GetConfigurationSetEventDestinationsCommand")
608
- .f(void 0, void 0)
609
- .ser(se_GetConfigurationSetEventDestinationsCommand)
610
- .de(de_GetConfigurationSetEventDestinationsCommand)
617
+ .sc(GetConfigurationSetEventDestinations)
611
618
  .build() {
612
619
  }
613
620
 
@@ -615,16 +622,11 @@ class ListConfigurationSetsCommand extends smithyClient.Command
615
622
  .classBuilder()
616
623
  .ep(commonParams)
617
624
  .m(function (Command, cs, config, o) {
618
- return [
619
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
620
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
621
- ];
625
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
622
626
  })
623
627
  .s("PinpointSMSVoice", "ListConfigurationSets", {})
624
628
  .n("PinpointSMSVoiceClient", "ListConfigurationSetsCommand")
625
- .f(void 0, void 0)
626
- .ser(se_ListConfigurationSetsCommand)
627
- .de(de_ListConfigurationSetsCommand)
629
+ .sc(ListConfigurationSets)
628
630
  .build() {
629
631
  }
630
632
 
@@ -632,16 +634,11 @@ class SendVoiceMessageCommand extends smithyClient.Command
632
634
  .classBuilder()
633
635
  .ep(commonParams)
634
636
  .m(function (Command, cs, config, o) {
635
- return [
636
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
637
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
638
- ];
637
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
639
638
  })
640
639
  .s("PinpointSMSVoice", "SendVoiceMessage", {})
641
640
  .n("PinpointSMSVoiceClient", "SendVoiceMessageCommand")
642
- .f(void 0, void 0)
643
- .ser(se_SendVoiceMessageCommand)
644
- .de(de_SendVoiceMessageCommand)
641
+ .sc(SendVoiceMessage)
645
642
  .build() {
646
643
  }
647
644
 
@@ -649,16 +646,11 @@ class UpdateConfigurationSetEventDestinationCommand extends smithyClient.Command
649
646
  .classBuilder()
650
647
  .ep(commonParams)
651
648
  .m(function (Command, cs, config, o) {
652
- return [
653
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
654
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
655
- ];
649
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
656
650
  })
657
651
  .s("PinpointSMSVoice", "UpdateConfigurationSetEventDestination", {})
658
652
  .n("PinpointSMSVoiceClient", "UpdateConfigurationSetEventDestinationCommand")
659
- .f(void 0, void 0)
660
- .ser(se_UpdateConfigurationSetEventDestinationCommand)
661
- .de(de_UpdateConfigurationSetEventDestinationCommand)
653
+ .sc(UpdateConfigurationSetEventDestination)
662
654
  .build() {
663
655
  }
664
656
 
@@ -684,21 +676,21 @@ Object.defineProperty(exports, "__Client", {
684
676
  enumerable: true,
685
677
  get: function () { return smithyClient.Client; }
686
678
  });
687
- exports.AlreadyExistsException = AlreadyExistsException;
688
- exports.BadRequestException = BadRequestException;
679
+ exports.AlreadyExistsException = AlreadyExistsException$1;
680
+ exports.BadRequestException = BadRequestException$1;
689
681
  exports.CreateConfigurationSetCommand = CreateConfigurationSetCommand;
690
682
  exports.CreateConfigurationSetEventDestinationCommand = CreateConfigurationSetEventDestinationCommand;
691
683
  exports.DeleteConfigurationSetCommand = DeleteConfigurationSetCommand;
692
684
  exports.DeleteConfigurationSetEventDestinationCommand = DeleteConfigurationSetEventDestinationCommand;
693
685
  exports.EventType = EventType;
694
686
  exports.GetConfigurationSetEventDestinationsCommand = GetConfigurationSetEventDestinationsCommand;
695
- exports.InternalServiceErrorException = InternalServiceErrorException;
696
- exports.LimitExceededException = LimitExceededException;
687
+ exports.InternalServiceErrorException = InternalServiceErrorException$1;
688
+ exports.LimitExceededException = LimitExceededException$1;
697
689
  exports.ListConfigurationSetsCommand = ListConfigurationSetsCommand;
698
- exports.NotFoundException = NotFoundException;
690
+ exports.NotFoundException = NotFoundException$1;
699
691
  exports.PinpointSMSVoice = PinpointSMSVoice;
700
692
  exports.PinpointSMSVoiceClient = PinpointSMSVoiceClient;
701
- exports.PinpointSMSVoiceServiceException = PinpointSMSVoiceServiceException;
693
+ exports.PinpointSMSVoiceServiceException = PinpointSMSVoiceServiceException$1;
702
694
  exports.SendVoiceMessageCommand = SendVoiceMessageCommand;
703
- exports.TooManyRequestsException = TooManyRequestsException;
695
+ exports.TooManyRequestsException = TooManyRequestsException$1;
704
696
  exports.UpdateConfigurationSetEventDestinationCommand = UpdateConfigurationSetEventDestinationCommand;