@aws-sdk/client-pinpoint-sms-voice 3.1075.0 → 3.1077.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
@@ -1,21 +1,58 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultPinpointSMSVoiceHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateConfigurationSet$, CreateConfigurationSetEventDestination$, DeleteConfigurationSet$, DeleteConfigurationSetEventDestination$, GetConfigurationSetEventDestinations$, ListConfigurationSets$, SendVoiceMessage$, UpdateConfigurationSetEventDestination$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { PinpointSMSVoiceServiceException } = require("./models/PinpointSMSVoiceServiceException");
18
- exports.PinpointSMSVoiceServiceException = PinpointSMSVoiceServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultPinpointSMSVoiceHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "sms-voice",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultPinpointSMSVoiceHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,495 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, i],
92
+ ["https://sms-voice.pinpoint-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://sms-voice.pinpoint-fips.{Region}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://sms-voice.pinpoint.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://sms-voice.pinpoint.{Region}.{PartitionResult#dnsSuffix}", i],
99
+ [a, "Invalid Configuration: Missing Region"]
100
+ ]
101
+ };
102
+ const root = 2;
103
+ const r = 100_000_000;
104
+ const nodes = new Int32Array([
105
+ -1, 1, -1,
106
+ 0, 12, 3,
107
+ 1, 4, r + 11,
108
+ 2, 5, r + 11,
109
+ 3, 8, 6,
110
+ 4, 7, r + 10,
111
+ 5, r + 8, r + 9,
112
+ 4, 10, 9,
113
+ 6, r + 6, r + 7,
114
+ 5, 11, r + 5,
115
+ 6, r + 4, r + 5,
116
+ 3, r + 1, 13,
117
+ 4, r + 2, r + 3,
118
+ ]);
119
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
120
+
121
+ const cache = new EndpointCache({
122
+ size: 50,
123
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
124
+ });
125
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
126
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
127
+ endpointParams: endpointParams,
128
+ logger: context.logger,
129
+ }));
130
+ };
131
+ customEndpointFunctions.aws = awsEndpointFunctions;
132
+
133
+ class PinpointSMSVoiceServiceException extends ServiceException {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, PinpointSMSVoiceServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class AlreadyExistsException extends PinpointSMSVoiceServiceException {
141
+ name = "AlreadyExistsException";
142
+ $fault = "client";
143
+ Message;
144
+ constructor(opts) {
145
+ super({
146
+ name: "AlreadyExistsException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ Object.setPrototypeOf(this, AlreadyExistsException.prototype);
151
+ this.Message = opts.Message;
152
+ }
153
+ }
154
+ class BadRequestException extends PinpointSMSVoiceServiceException {
155
+ name = "BadRequestException";
156
+ $fault = "client";
157
+ Message;
158
+ constructor(opts) {
159
+ super({
160
+ name: "BadRequestException",
161
+ $fault: "client",
162
+ ...opts,
163
+ });
164
+ Object.setPrototypeOf(this, BadRequestException.prototype);
165
+ this.Message = opts.Message;
166
+ }
167
+ }
168
+ class InternalServiceErrorException extends PinpointSMSVoiceServiceException {
169
+ name = "InternalServiceErrorException";
170
+ $fault = "server";
171
+ Message;
172
+ constructor(opts) {
173
+ super({
174
+ name: "InternalServiceErrorException",
175
+ $fault: "server",
176
+ ...opts,
177
+ });
178
+ Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
179
+ this.Message = opts.Message;
180
+ }
181
+ }
182
+ class LimitExceededException extends PinpointSMSVoiceServiceException {
183
+ name = "LimitExceededException";
184
+ $fault = "client";
185
+ Message;
186
+ constructor(opts) {
187
+ super({
188
+ name: "LimitExceededException",
189
+ $fault: "client",
190
+ ...opts,
191
+ });
192
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
193
+ this.Message = opts.Message;
194
+ }
195
+ }
196
+ class TooManyRequestsException extends PinpointSMSVoiceServiceException {
197
+ name = "TooManyRequestsException";
198
+ $fault = "client";
199
+ Message;
200
+ constructor(opts) {
201
+ super({
202
+ name: "TooManyRequestsException",
203
+ $fault: "client",
204
+ ...opts,
205
+ });
206
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
207
+ this.Message = opts.Message;
208
+ }
209
+ }
210
+ class NotFoundException extends PinpointSMSVoiceServiceException {
211
+ name = "NotFoundException";
212
+ $fault = "client";
213
+ Message;
214
+ constructor(opts) {
215
+ super({
216
+ name: "NotFoundException",
217
+ $fault: "client",
218
+ ...opts,
219
+ });
220
+ Object.setPrototypeOf(this, NotFoundException.prototype);
221
+ this.Message = opts.Message;
222
+ }
223
+ }
224
+
225
+ const _AEE = "AlreadyExistsException";
226
+ const _BRE = "BadRequestException";
227
+ const _C = "Content";
228
+ const _CCS = "CreateConfigurationSet";
229
+ const _CCSED = "CreateConfigurationSetEventDestination";
230
+ const _CCSEDR = "CreateConfigurationSetEventDestinationRequest";
231
+ const _CCSEDRr = "CreateConfigurationSetEventDestinationResponse";
232
+ const _CCSR = "CreateConfigurationSetRequest";
233
+ const _CCSRr = "CreateConfigurationSetResponse";
234
+ const _CI = "CallerId";
235
+ const _CIM = "CallInstructionsMessage";
236
+ const _CIMT = "CallInstructionsMessageType";
237
+ const _CS = "ConfigurationSets";
238
+ const _CSN = "ConfigurationSetName";
239
+ const _CWLD = "CloudWatchLogsDestination";
240
+ const _DCS = "DeleteConfigurationSet";
241
+ const _DCSED = "DeleteConfigurationSetEventDestination";
242
+ const _DCSEDR = "DeleteConfigurationSetEventDestinationRequest";
243
+ const _DCSEDRe = "DeleteConfigurationSetEventDestinationResponse";
244
+ const _DCSR = "DeleteConfigurationSetRequest";
245
+ const _DCSRe = "DeleteConfigurationSetResponse";
246
+ const _DPN = "DestinationPhoneNumber";
247
+ const _DSA = "DeliveryStreamArn";
248
+ const _E = "Enabled";
249
+ const _ED = "EventDestination";
250
+ const _EDD = "EventDestinationDefinition";
251
+ const _EDN = "EventDestinationName";
252
+ const _EDv = "EventDestinations";
253
+ const _GCSED = "GetConfigurationSetEventDestinations";
254
+ const _GCSEDR = "GetConfigurationSetEventDestinationsRequest";
255
+ const _GCSEDRe = "GetConfigurationSetEventDestinationsResponse";
256
+ const _IRA = "IamRoleArn";
257
+ const _ISEE = "InternalServiceErrorException";
258
+ const _KFD = "KinesisFirehoseDestination";
259
+ const _LC = "LanguageCode";
260
+ const _LCS = "ListConfigurationSets";
261
+ const _LCSR = "ListConfigurationSetsRequest";
262
+ const _LCSRi = "ListConfigurationSetsResponse";
263
+ const _LEE = "LimitExceededException";
264
+ const _LGA = "LogGroupArn";
265
+ const _M = "Message";
266
+ const _MET = "MatchingEventTypes";
267
+ const _MI = "MessageId";
268
+ const _N = "Name";
269
+ const _NFE = "NotFoundException";
270
+ const _NT = "NextToken";
271
+ const _OPN = "OriginationPhoneNumber";
272
+ const _PS = "PageSize";
273
+ const _PTM = "PlainTextMessage";
274
+ const _PTMT = "PlainTextMessageType";
275
+ const _SD = "SnsDestination";
276
+ const _SSMLM = "SSMLMessage";
277
+ const _SSMLMT = "SSMLMessageType";
278
+ const _SVM = "SendVoiceMessage";
279
+ const _SVMR = "SendVoiceMessageRequest";
280
+ const _SVMRe = "SendVoiceMessageResponse";
281
+ const _T = "Text";
282
+ const _TA = "TopicArn";
283
+ const _TMRE = "TooManyRequestsException";
284
+ const _UCSED = "UpdateConfigurationSetEventDestination";
285
+ const _UCSEDR = "UpdateConfigurationSetEventDestinationRequest";
286
+ const _UCSEDRp = "UpdateConfigurationSetEventDestinationResponse";
287
+ const _VI = "VoiceId";
288
+ const _VMC = "VoiceMessageContent";
289
+ const _c = "client";
290
+ const _e = "error";
291
+ const _h = "http";
292
+ const _hE = "httpError";
293
+ const _hQ = "httpQuery";
294
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.pinpointsmsvoice";
295
+ const _se = "server";
296
+ const n0 = "com.amazonaws.pinpointsmsvoice";
297
+ const _s_registry = TypeRegistry.for(_s);
298
+ var PinpointSMSVoiceServiceException$ = [-3, _s, "PinpointSMSVoiceServiceException", 0, [], []];
299
+ _s_registry.registerError(PinpointSMSVoiceServiceException$, PinpointSMSVoiceServiceException);
300
+ const n0_registry = TypeRegistry.for(n0);
301
+ var AlreadyExistsException$ = [-3, n0, _AEE,
302
+ { [_e]: _c, [_hE]: 409 },
303
+ [_M],
304
+ [0]
305
+ ];
306
+ n0_registry.registerError(AlreadyExistsException$, AlreadyExistsException);
307
+ var BadRequestException$ = [-3, n0, _BRE,
308
+ { [_e]: _c, [_hE]: 400 },
309
+ [_M],
310
+ [0]
311
+ ];
312
+ n0_registry.registerError(BadRequestException$, BadRequestException);
313
+ var InternalServiceErrorException$ = [-3, n0, _ISEE,
314
+ { [_e]: _se, [_hE]: 500 },
315
+ [_M],
316
+ [0]
317
+ ];
318
+ n0_registry.registerError(InternalServiceErrorException$, InternalServiceErrorException);
319
+ var LimitExceededException$ = [-3, n0, _LEE,
320
+ { [_e]: _c, [_hE]: 412 },
321
+ [_M],
322
+ [0]
323
+ ];
324
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
325
+ var NotFoundException$ = [-3, n0, _NFE,
326
+ { [_e]: _c, [_hE]: 404 },
327
+ [_M],
328
+ [0]
329
+ ];
330
+ n0_registry.registerError(NotFoundException$, NotFoundException);
331
+ var TooManyRequestsException$ = [-3, n0, _TMRE,
332
+ { [_e]: _c, [_hE]: 429 },
333
+ [_M],
334
+ [0]
335
+ ];
336
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
337
+ const errorTypeRegistries = [
338
+ _s_registry,
339
+ n0_registry,
340
+ ];
341
+ var CallInstructionsMessageType$ = [3, n0, _CIMT,
342
+ 0,
343
+ [_T],
344
+ [0]
345
+ ];
346
+ var CloudWatchLogsDestination$ = [3, n0, _CWLD,
347
+ 0,
348
+ [_IRA, _LGA],
349
+ [0, 0]
350
+ ];
351
+ var CreateConfigurationSetEventDestinationRequest$ = [3, n0, _CCSEDR,
352
+ 0,
353
+ [_CSN, _ED, _EDN],
354
+ [[0, 1], () => EventDestinationDefinition$, 0], 1
355
+ ];
356
+ var CreateConfigurationSetEventDestinationResponse$ = [3, n0, _CCSEDRr,
357
+ 0,
358
+ [],
359
+ []
360
+ ];
361
+ var CreateConfigurationSetRequest$ = [3, n0, _CCSR,
362
+ 0,
363
+ [_CSN],
364
+ [0]
365
+ ];
366
+ var CreateConfigurationSetResponse$ = [3, n0, _CCSRr,
367
+ 0,
368
+ [],
369
+ []
370
+ ];
371
+ var DeleteConfigurationSetEventDestinationRequest$ = [3, n0, _DCSEDR,
372
+ 0,
373
+ [_CSN, _EDN],
374
+ [[0, 1], [0, 1]], 2
375
+ ];
376
+ var DeleteConfigurationSetEventDestinationResponse$ = [3, n0, _DCSEDRe,
377
+ 0,
378
+ [],
379
+ []
380
+ ];
381
+ var DeleteConfigurationSetRequest$ = [3, n0, _DCSR,
382
+ 0,
383
+ [_CSN],
384
+ [[0, 1]], 1
385
+ ];
386
+ var DeleteConfigurationSetResponse$ = [3, n0, _DCSRe,
387
+ 0,
388
+ [],
389
+ []
390
+ ];
391
+ var EventDestination$ = [3, n0, _ED,
392
+ 0,
393
+ [_CWLD, _E, _KFD, _MET, _N, _SD],
394
+ [() => CloudWatchLogsDestination$, 2, () => KinesisFirehoseDestination$, 64 | 0, 0, () => SnsDestination$]
395
+ ];
396
+ var EventDestinationDefinition$ = [3, n0, _EDD,
397
+ 0,
398
+ [_CWLD, _E, _KFD, _MET, _SD],
399
+ [() => CloudWatchLogsDestination$, 2, () => KinesisFirehoseDestination$, 64 | 0, () => SnsDestination$]
400
+ ];
401
+ var GetConfigurationSetEventDestinationsRequest$ = [3, n0, _GCSEDR,
402
+ 0,
403
+ [_CSN],
404
+ [[0, 1]], 1
405
+ ];
406
+ var GetConfigurationSetEventDestinationsResponse$ = [3, n0, _GCSEDRe,
407
+ 0,
408
+ [_EDv],
409
+ [() => EventDestinations]
410
+ ];
411
+ var KinesisFirehoseDestination$ = [3, n0, _KFD,
412
+ 0,
413
+ [_DSA, _IRA],
414
+ [0, 0]
415
+ ];
416
+ var ListConfigurationSetsRequest$ = [3, n0, _LCSR,
417
+ 0,
418
+ [_NT, _PS],
419
+ [[0, { [_hQ]: _NT }], [0, { [_hQ]: _PS }]]
420
+ ];
421
+ var ListConfigurationSetsResponse$ = [3, n0, _LCSRi,
422
+ 0,
423
+ [_CS, _NT],
424
+ [64 | 0, 0]
425
+ ];
426
+ var PlainTextMessageType$ = [3, n0, _PTMT,
427
+ 0,
428
+ [_LC, _T, _VI],
429
+ [0, 0, 0]
430
+ ];
431
+ var SendVoiceMessageRequest$ = [3, n0, _SVMR,
432
+ 0,
433
+ [_CI, _CSN, _C, _DPN, _OPN],
434
+ [0, 0, () => VoiceMessageContent$, 0, 0]
435
+ ];
436
+ var SendVoiceMessageResponse$ = [3, n0, _SVMRe,
437
+ 0,
438
+ [_MI],
439
+ [0]
440
+ ];
441
+ var SnsDestination$ = [3, n0, _SD,
442
+ 0,
443
+ [_TA],
444
+ [0]
445
+ ];
446
+ var SSMLMessageType$ = [3, n0, _SSMLMT,
447
+ 0,
448
+ [_LC, _T, _VI],
449
+ [0, 0, 0]
450
+ ];
451
+ var UpdateConfigurationSetEventDestinationRequest$ = [3, n0, _UCSEDR,
452
+ 0,
453
+ [_CSN, _EDN, _ED],
454
+ [[0, 1], [0, 1], () => EventDestinationDefinition$], 2
455
+ ];
456
+ var UpdateConfigurationSetEventDestinationResponse$ = [3, n0, _UCSEDRp,
457
+ 0,
458
+ [],
459
+ []
460
+ ];
461
+ var VoiceMessageContent$ = [3, n0, _VMC,
462
+ 0,
463
+ [_CIM, _PTM, _SSMLM],
464
+ [() => CallInstructionsMessageType$, () => PlainTextMessageType$, () => SSMLMessageType$]
465
+ ];
466
+ var EventDestinations = [1, n0, _EDv,
467
+ 0, () => EventDestination$
468
+ ];
469
+ var CreateConfigurationSet$ = [9, n0, _CCS,
470
+ { [_h]: ["POST", "/v1/sms-voice/configuration-sets", 200] }, () => CreateConfigurationSetRequest$, () => CreateConfigurationSetResponse$
471
+ ];
472
+ var CreateConfigurationSetEventDestination$ = [9, n0, _CCSED,
473
+ { [_h]: ["POST", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations", 200] }, () => CreateConfigurationSetEventDestinationRequest$, () => CreateConfigurationSetEventDestinationResponse$
474
+ ];
475
+ var DeleteConfigurationSet$ = [9, n0, _DCS,
476
+ { [_h]: ["DELETE", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}", 200] }, () => DeleteConfigurationSetRequest$, () => DeleteConfigurationSetResponse$
477
+ ];
478
+ var DeleteConfigurationSetEventDestination$ = [9, n0, _DCSED,
479
+ { [_h]: ["DELETE", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", 200] }, () => DeleteConfigurationSetEventDestinationRequest$, () => DeleteConfigurationSetEventDestinationResponse$
480
+ ];
481
+ var GetConfigurationSetEventDestinations$ = [9, n0, _GCSED,
482
+ { [_h]: ["GET", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations", 200] }, () => GetConfigurationSetEventDestinationsRequest$, () => GetConfigurationSetEventDestinationsResponse$
483
+ ];
484
+ var ListConfigurationSets$ = [9, n0, _LCS,
485
+ { [_h]: ["GET", "/v1/sms-voice/configuration-sets", 200] }, () => ListConfigurationSetsRequest$, () => ListConfigurationSetsResponse$
486
+ ];
487
+ var SendVoiceMessage$ = [9, n0, _SVM,
488
+ { [_h]: ["POST", "/v1/sms-voice/voice/message", 200] }, () => SendVoiceMessageRequest$, () => SendVoiceMessageResponse$
489
+ ];
490
+ var UpdateConfigurationSetEventDestination$ = [9, n0, _UCSED,
491
+ { [_h]: ["PUT", "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", 200] }, () => UpdateConfigurationSetEventDestinationRequest$, () => UpdateConfigurationSetEventDestinationResponse$
492
+ ];
493
+
494
+ const getRuntimeConfig$1 = (config) => {
495
+ return {
496
+ apiVersion: "2018-09-05",
497
+ base64Decoder: config?.base64Decoder ?? fromBase64,
498
+ base64Encoder: config?.base64Encoder ?? toBase64,
499
+ disableHostPrefix: config?.disableHostPrefix ?? false,
500
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
501
+ extensions: config?.extensions ?? [],
502
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultPinpointSMSVoiceHttpAuthSchemeProvider,
503
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
504
+ {
505
+ schemeId: "aws.auth#sigv4",
506
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
507
+ signer: new AwsSdkSigV4Signer(),
508
+ },
509
+ ],
510
+ logger: config?.logger ?? new NoOpLogger(),
511
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
512
+ protocolSettings: config?.protocolSettings ?? {
513
+ defaultNamespace: "com.amazonaws.pinpointsmsvoice",
514
+ errorTypeRegistries,
515
+ version: "2018-09-05",
516
+ serviceTarget: "PinpointSMSVoice",
517
+ },
518
+ serviceId: config?.serviceId ?? "Pinpoint SMS Voice",
519
+ sha256: config?.sha256 ?? Sha256,
520
+ urlParser: config?.urlParser ?? parseUrl,
521
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
522
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
523
+ };
524
+ };
525
+
526
+ const getRuntimeConfig = (config) => {
527
+ emitWarningIfUnsupportedVersion(process.version);
528
+ const defaultsMode = resolveDefaultsModeConfig(config);
529
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
530
+ const clientSharedValues = getRuntimeConfig$1(config);
531
+ emitWarningIfUnsupportedVersion$1(process.version);
532
+ const loaderConfig = {
533
+ profile: config?.profile,
534
+ logger: clientSharedValues.logger,
535
+ };
536
+ return {
537
+ ...clientSharedValues,
538
+ ...config,
539
+ runtime: "node",
540
+ defaultsMode,
541
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
542
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
543
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
544
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
545
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
546
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
547
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
548
+ retryMode: config?.retryMode ??
549
+ loadConfig({
550
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
551
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
552
+ }, config),
553
+ streamCollector: config?.streamCollector ?? streamCollector,
554
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
555
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
556
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
557
+ };
558
+ };
559
+
34
560
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
561
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
562
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -231,14 +757,62 @@ const EventType = {
231
757
  RINGING: "RINGING",
232
758
  };
233
759
 
760
+ exports.AlreadyExistsException = AlreadyExistsException;
761
+ exports.AlreadyExistsException$ = AlreadyExistsException$;
762
+ exports.BadRequestException = BadRequestException;
763
+ exports.BadRequestException$ = BadRequestException$;
764
+ exports.CallInstructionsMessageType$ = CallInstructionsMessageType$;
765
+ exports.CloudWatchLogsDestination$ = CloudWatchLogsDestination$;
766
+ exports.CreateConfigurationSet$ = CreateConfigurationSet$;
234
767
  exports.CreateConfigurationSetCommand = CreateConfigurationSetCommand;
768
+ exports.CreateConfigurationSetEventDestination$ = CreateConfigurationSetEventDestination$;
235
769
  exports.CreateConfigurationSetEventDestinationCommand = CreateConfigurationSetEventDestinationCommand;
770
+ exports.CreateConfigurationSetEventDestinationRequest$ = CreateConfigurationSetEventDestinationRequest$;
771
+ exports.CreateConfigurationSetEventDestinationResponse$ = CreateConfigurationSetEventDestinationResponse$;
772
+ exports.CreateConfigurationSetRequest$ = CreateConfigurationSetRequest$;
773
+ exports.CreateConfigurationSetResponse$ = CreateConfigurationSetResponse$;
774
+ exports.DeleteConfigurationSet$ = DeleteConfigurationSet$;
236
775
  exports.DeleteConfigurationSetCommand = DeleteConfigurationSetCommand;
776
+ exports.DeleteConfigurationSetEventDestination$ = DeleteConfigurationSetEventDestination$;
237
777
  exports.DeleteConfigurationSetEventDestinationCommand = DeleteConfigurationSetEventDestinationCommand;
778
+ exports.DeleteConfigurationSetEventDestinationRequest$ = DeleteConfigurationSetEventDestinationRequest$;
779
+ exports.DeleteConfigurationSetEventDestinationResponse$ = DeleteConfigurationSetEventDestinationResponse$;
780
+ exports.DeleteConfigurationSetRequest$ = DeleteConfigurationSetRequest$;
781
+ exports.DeleteConfigurationSetResponse$ = DeleteConfigurationSetResponse$;
782
+ exports.EventDestination$ = EventDestination$;
783
+ exports.EventDestinationDefinition$ = EventDestinationDefinition$;
238
784
  exports.EventType = EventType;
785
+ exports.GetConfigurationSetEventDestinations$ = GetConfigurationSetEventDestinations$;
239
786
  exports.GetConfigurationSetEventDestinationsCommand = GetConfigurationSetEventDestinationsCommand;
787
+ exports.GetConfigurationSetEventDestinationsRequest$ = GetConfigurationSetEventDestinationsRequest$;
788
+ exports.GetConfigurationSetEventDestinationsResponse$ = GetConfigurationSetEventDestinationsResponse$;
789
+ exports.InternalServiceErrorException = InternalServiceErrorException;
790
+ exports.InternalServiceErrorException$ = InternalServiceErrorException$;
791
+ exports.KinesisFirehoseDestination$ = KinesisFirehoseDestination$;
792
+ exports.LimitExceededException = LimitExceededException;
793
+ exports.LimitExceededException$ = LimitExceededException$;
794
+ exports.ListConfigurationSets$ = ListConfigurationSets$;
240
795
  exports.ListConfigurationSetsCommand = ListConfigurationSetsCommand;
796
+ exports.ListConfigurationSetsRequest$ = ListConfigurationSetsRequest$;
797
+ exports.ListConfigurationSetsResponse$ = ListConfigurationSetsResponse$;
798
+ exports.NotFoundException = NotFoundException;
799
+ exports.NotFoundException$ = NotFoundException$;
241
800
  exports.PinpointSMSVoice = PinpointSMSVoice;
242
801
  exports.PinpointSMSVoiceClient = PinpointSMSVoiceClient;
802
+ exports.PinpointSMSVoiceServiceException = PinpointSMSVoiceServiceException;
803
+ exports.PinpointSMSVoiceServiceException$ = PinpointSMSVoiceServiceException$;
804
+ exports.PlainTextMessageType$ = PlainTextMessageType$;
805
+ exports.SSMLMessageType$ = SSMLMessageType$;
806
+ exports.SendVoiceMessage$ = SendVoiceMessage$;
243
807
  exports.SendVoiceMessageCommand = SendVoiceMessageCommand;
808
+ exports.SendVoiceMessageRequest$ = SendVoiceMessageRequest$;
809
+ exports.SendVoiceMessageResponse$ = SendVoiceMessageResponse$;
810
+ exports.SnsDestination$ = SnsDestination$;
811
+ exports.TooManyRequestsException = TooManyRequestsException;
812
+ exports.TooManyRequestsException$ = TooManyRequestsException$;
813
+ exports.UpdateConfigurationSetEventDestination$ = UpdateConfigurationSetEventDestination$;
244
814
  exports.UpdateConfigurationSetEventDestinationCommand = UpdateConfigurationSetEventDestinationCommand;
815
+ exports.UpdateConfigurationSetEventDestinationRequest$ = UpdateConfigurationSetEventDestinationRequest$;
816
+ exports.UpdateConfigurationSetEventDestinationResponse$ = UpdateConfigurationSetEventDestinationResponse$;
817
+ exports.VoiceMessageContent$ = VoiceMessageContent$;
818
+ exports.errorTypeRegistries = errorTypeRegistries;
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };