@aws-sdk/client-pinpoint 3.40.0 → 3.45.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 (147) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/Pinpoint.js +30 -0
  3. package/dist-cjs/commands/SendOTPMessageCommand.js +36 -0
  4. package/dist-cjs/commands/VerifyOTPMessageCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/endpoints.js +9 -0
  7. package/dist-cjs/models/models_1.js +44 -2
  8. package/dist-cjs/protocols/Aws_restJson1.js +294 -4
  9. package/dist-es/Pinpoint.js +30 -0
  10. package/dist-es/commands/SendOTPMessageCommand.js +39 -0
  11. package/dist-es/commands/VerifyOTPMessageCommand.js +39 -0
  12. package/dist-es/commands/index.js +2 -0
  13. package/dist-es/endpoints.js +9 -0
  14. package/dist-es/models/models_1.js +28 -0
  15. package/dist-es/protocols/Aws_restJson1.js +310 -0
  16. package/dist-types/Pinpoint.d.ts +14 -0
  17. package/dist-types/PinpointClient.d.ts +4 -2
  18. package/dist-types/commands/CreateAppCommand.d.ts +1 -1
  19. package/dist-types/commands/CreateCampaignCommand.d.ts +1 -1
  20. package/dist-types/commands/CreateEmailTemplateCommand.d.ts +1 -1
  21. package/dist-types/commands/CreateExportJobCommand.d.ts +1 -1
  22. package/dist-types/commands/CreateImportJobCommand.d.ts +1 -1
  23. package/dist-types/commands/CreateInAppTemplateCommand.d.ts +1 -1
  24. package/dist-types/commands/CreateJourneyCommand.d.ts +1 -1
  25. package/dist-types/commands/CreatePushTemplateCommand.d.ts +1 -1
  26. package/dist-types/commands/CreateRecommenderConfigurationCommand.d.ts +1 -1
  27. package/dist-types/commands/CreateSegmentCommand.d.ts +1 -1
  28. package/dist-types/commands/CreateSmsTemplateCommand.d.ts +1 -1
  29. package/dist-types/commands/CreateVoiceTemplateCommand.d.ts +1 -1
  30. package/dist-types/commands/DeleteAdmChannelCommand.d.ts +1 -1
  31. package/dist-types/commands/DeleteApnsChannelCommand.d.ts +1 -1
  32. package/dist-types/commands/DeleteApnsSandboxChannelCommand.d.ts +1 -1
  33. package/dist-types/commands/DeleteApnsVoipChannelCommand.d.ts +1 -1
  34. package/dist-types/commands/DeleteApnsVoipSandboxChannelCommand.d.ts +1 -1
  35. package/dist-types/commands/DeleteAppCommand.d.ts +1 -1
  36. package/dist-types/commands/DeleteBaiduChannelCommand.d.ts +1 -1
  37. package/dist-types/commands/DeleteCampaignCommand.d.ts +1 -1
  38. package/dist-types/commands/DeleteEmailChannelCommand.d.ts +1 -1
  39. package/dist-types/commands/DeleteEmailTemplateCommand.d.ts +1 -1
  40. package/dist-types/commands/DeleteEndpointCommand.d.ts +1 -1
  41. package/dist-types/commands/DeleteEventStreamCommand.d.ts +1 -1
  42. package/dist-types/commands/DeleteGcmChannelCommand.d.ts +1 -1
  43. package/dist-types/commands/DeleteInAppTemplateCommand.d.ts +1 -1
  44. package/dist-types/commands/DeleteJourneyCommand.d.ts +1 -1
  45. package/dist-types/commands/DeletePushTemplateCommand.d.ts +1 -1
  46. package/dist-types/commands/DeleteRecommenderConfigurationCommand.d.ts +1 -1
  47. package/dist-types/commands/DeleteSegmentCommand.d.ts +1 -1
  48. package/dist-types/commands/DeleteSmsChannelCommand.d.ts +1 -1
  49. package/dist-types/commands/DeleteSmsTemplateCommand.d.ts +1 -1
  50. package/dist-types/commands/DeleteUserEndpointsCommand.d.ts +1 -1
  51. package/dist-types/commands/DeleteVoiceChannelCommand.d.ts +1 -1
  52. package/dist-types/commands/DeleteVoiceTemplateCommand.d.ts +1 -1
  53. package/dist-types/commands/GetAdmChannelCommand.d.ts +1 -1
  54. package/dist-types/commands/GetApnsChannelCommand.d.ts +1 -1
  55. package/dist-types/commands/GetApnsSandboxChannelCommand.d.ts +1 -1
  56. package/dist-types/commands/GetApnsVoipChannelCommand.d.ts +1 -1
  57. package/dist-types/commands/GetApnsVoipSandboxChannelCommand.d.ts +1 -1
  58. package/dist-types/commands/GetAppCommand.d.ts +1 -1
  59. package/dist-types/commands/GetApplicationDateRangeKpiCommand.d.ts +1 -1
  60. package/dist-types/commands/GetApplicationSettingsCommand.d.ts +1 -1
  61. package/dist-types/commands/GetAppsCommand.d.ts +1 -1
  62. package/dist-types/commands/GetBaiduChannelCommand.d.ts +1 -1
  63. package/dist-types/commands/GetCampaignActivitiesCommand.d.ts +1 -1
  64. package/dist-types/commands/GetCampaignCommand.d.ts +1 -1
  65. package/dist-types/commands/GetCampaignDateRangeKpiCommand.d.ts +1 -1
  66. package/dist-types/commands/GetCampaignVersionCommand.d.ts +1 -1
  67. package/dist-types/commands/GetCampaignVersionsCommand.d.ts +1 -1
  68. package/dist-types/commands/GetCampaignsCommand.d.ts +1 -1
  69. package/dist-types/commands/GetChannelsCommand.d.ts +1 -1
  70. package/dist-types/commands/GetEmailChannelCommand.d.ts +1 -1
  71. package/dist-types/commands/GetEmailTemplateCommand.d.ts +1 -1
  72. package/dist-types/commands/GetEndpointCommand.d.ts +1 -1
  73. package/dist-types/commands/GetEventStreamCommand.d.ts +1 -1
  74. package/dist-types/commands/GetExportJobCommand.d.ts +1 -1
  75. package/dist-types/commands/GetExportJobsCommand.d.ts +1 -1
  76. package/dist-types/commands/GetGcmChannelCommand.d.ts +1 -1
  77. package/dist-types/commands/GetImportJobCommand.d.ts +1 -1
  78. package/dist-types/commands/GetImportJobsCommand.d.ts +1 -1
  79. package/dist-types/commands/GetInAppMessagesCommand.d.ts +1 -1
  80. package/dist-types/commands/GetInAppTemplateCommand.d.ts +1 -1
  81. package/dist-types/commands/GetJourneyCommand.d.ts +1 -1
  82. package/dist-types/commands/GetJourneyDateRangeKpiCommand.d.ts +1 -1
  83. package/dist-types/commands/GetJourneyExecutionActivityMetricsCommand.d.ts +1 -1
  84. package/dist-types/commands/GetJourneyExecutionMetricsCommand.d.ts +1 -1
  85. package/dist-types/commands/GetPushTemplateCommand.d.ts +1 -1
  86. package/dist-types/commands/GetRecommenderConfigurationCommand.d.ts +1 -1
  87. package/dist-types/commands/GetRecommenderConfigurationsCommand.d.ts +1 -1
  88. package/dist-types/commands/GetSegmentCommand.d.ts +1 -1
  89. package/dist-types/commands/GetSegmentExportJobsCommand.d.ts +1 -1
  90. package/dist-types/commands/GetSegmentImportJobsCommand.d.ts +1 -1
  91. package/dist-types/commands/GetSegmentVersionCommand.d.ts +1 -1
  92. package/dist-types/commands/GetSegmentVersionsCommand.d.ts +1 -1
  93. package/dist-types/commands/GetSegmentsCommand.d.ts +1 -1
  94. package/dist-types/commands/GetSmsChannelCommand.d.ts +1 -1
  95. package/dist-types/commands/GetSmsTemplateCommand.d.ts +1 -1
  96. package/dist-types/commands/GetUserEndpointsCommand.d.ts +1 -1
  97. package/dist-types/commands/GetVoiceChannelCommand.d.ts +1 -1
  98. package/dist-types/commands/GetVoiceTemplateCommand.d.ts +1 -1
  99. package/dist-types/commands/ListJourneysCommand.d.ts +1 -1
  100. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  101. package/dist-types/commands/ListTemplateVersionsCommand.d.ts +1 -1
  102. package/dist-types/commands/ListTemplatesCommand.d.ts +1 -1
  103. package/dist-types/commands/PhoneNumberValidateCommand.d.ts +1 -1
  104. package/dist-types/commands/PutEventStreamCommand.d.ts +1 -1
  105. package/dist-types/commands/PutEventsCommand.d.ts +1 -1
  106. package/dist-types/commands/RemoveAttributesCommand.d.ts +1 -1
  107. package/dist-types/commands/SendMessagesCommand.d.ts +1 -1
  108. package/dist-types/commands/SendOTPMessageCommand.d.ts +35 -0
  109. package/dist-types/commands/SendUsersMessagesCommand.d.ts +1 -1
  110. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  111. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  112. package/dist-types/commands/UpdateAdmChannelCommand.d.ts +1 -1
  113. package/dist-types/commands/UpdateApnsChannelCommand.d.ts +1 -1
  114. package/dist-types/commands/UpdateApnsSandboxChannelCommand.d.ts +1 -1
  115. package/dist-types/commands/UpdateApnsVoipChannelCommand.d.ts +1 -1
  116. package/dist-types/commands/UpdateApnsVoipSandboxChannelCommand.d.ts +1 -1
  117. package/dist-types/commands/UpdateApplicationSettingsCommand.d.ts +1 -1
  118. package/dist-types/commands/UpdateBaiduChannelCommand.d.ts +1 -1
  119. package/dist-types/commands/UpdateCampaignCommand.d.ts +1 -1
  120. package/dist-types/commands/UpdateEmailChannelCommand.d.ts +1 -1
  121. package/dist-types/commands/UpdateEmailTemplateCommand.d.ts +1 -1
  122. package/dist-types/commands/UpdateEndpointCommand.d.ts +1 -1
  123. package/dist-types/commands/UpdateEndpointsBatchCommand.d.ts +1 -1
  124. package/dist-types/commands/UpdateGcmChannelCommand.d.ts +1 -1
  125. package/dist-types/commands/UpdateInAppTemplateCommand.d.ts +1 -1
  126. package/dist-types/commands/UpdateJourneyCommand.d.ts +1 -1
  127. package/dist-types/commands/UpdateJourneyStateCommand.d.ts +1 -1
  128. package/dist-types/commands/UpdatePushTemplateCommand.d.ts +1 -1
  129. package/dist-types/commands/UpdateRecommenderConfigurationCommand.d.ts +1 -1
  130. package/dist-types/commands/UpdateSegmentCommand.d.ts +1 -1
  131. package/dist-types/commands/UpdateSmsChannelCommand.d.ts +1 -1
  132. package/dist-types/commands/UpdateSmsTemplateCommand.d.ts +1 -1
  133. package/dist-types/commands/UpdateTemplateActiveVersionCommand.d.ts +1 -1
  134. package/dist-types/commands/UpdateVoiceChannelCommand.d.ts +1 -1
  135. package/dist-types/commands/UpdateVoiceTemplateCommand.d.ts +1 -1
  136. package/dist-types/commands/VerifyOTPMessageCommand.d.ts +35 -0
  137. package/dist-types/commands/index.d.ts +2 -0
  138. package/dist-types/models/models_1.d.ts +149 -0
  139. package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
  140. package/dist-types/ts3.4/Pinpoint.d.ts +10 -0
  141. package/dist-types/ts3.4/PinpointClient.d.ts +4 -2
  142. package/dist-types/ts3.4/commands/SendOTPMessageCommand.d.ts +17 -0
  143. package/dist-types/ts3.4/commands/VerifyOTPMessageCommand.d.ts +17 -0
  144. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  145. package/dist-types/ts3.4/models/models_1.d.ts +87 -0
  146. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
  147. package/package.json +6 -6
@@ -3299,6 +3299,46 @@ export var serializeAws_restJson1SendMessagesCommand = function (input, context)
3299
3299
  }
3300
3300
  });
3301
3301
  }); };
3302
+ export var serializeAws_restJson1SendOTPMessageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
3303
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
3304
+ return __generator(this, function (_c) {
3305
+ switch (_c.label) {
3306
+ case 0: return [4, context.endpoint()];
3307
+ case 1:
3308
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
3309
+ headers = {
3310
+ "content-type": "application/json",
3311
+ };
3312
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/otp";
3313
+ if (input.ApplicationId !== undefined) {
3314
+ labelValue = input.ApplicationId;
3315
+ if (labelValue.length <= 0) {
3316
+ throw new Error("Empty value provided for input HTTP label: ApplicationId.");
3317
+ }
3318
+ resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
3319
+ }
3320
+ else {
3321
+ throw new Error("No value provided for input HTTP label: ApplicationId.");
3322
+ }
3323
+ if (input.SendOTPMessageRequestParameters !== undefined) {
3324
+ body = serializeAws_restJson1SendOTPMessageRequestParameters(input.SendOTPMessageRequestParameters, context);
3325
+ }
3326
+ if (body === undefined) {
3327
+ body = {};
3328
+ }
3329
+ body = JSON.stringify(body);
3330
+ return [2, new __HttpRequest({
3331
+ protocol: protocol,
3332
+ hostname: hostname,
3333
+ port: port,
3334
+ method: "POST",
3335
+ headers: headers,
3336
+ path: resolvedPath,
3337
+ body: body,
3338
+ })];
3339
+ }
3340
+ });
3341
+ }); };
3302
3342
  export var serializeAws_restJson1SendUsersMessagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
3303
3343
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
3304
3344
  return __generator(this, function (_c) {
@@ -4451,6 +4491,46 @@ export var serializeAws_restJson1UpdateVoiceTemplateCommand = function (input, c
4451
4491
  }
4452
4492
  });
4453
4493
  }); };
4494
+ export var serializeAws_restJson1VerifyOTPMessageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
4495
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
4496
+ return __generator(this, function (_c) {
4497
+ switch (_c.label) {
4498
+ case 0: return [4, context.endpoint()];
4499
+ case 1:
4500
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
4501
+ headers = {
4502
+ "content-type": "application/json",
4503
+ };
4504
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apps/{ApplicationId}/verify-otp";
4505
+ if (input.ApplicationId !== undefined) {
4506
+ labelValue = input.ApplicationId;
4507
+ if (labelValue.length <= 0) {
4508
+ throw new Error("Empty value provided for input HTTP label: ApplicationId.");
4509
+ }
4510
+ resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
4511
+ }
4512
+ else {
4513
+ throw new Error("No value provided for input HTTP label: ApplicationId.");
4514
+ }
4515
+ if (input.VerifyOTPMessageRequestParameters !== undefined) {
4516
+ body = serializeAws_restJson1VerifyOTPMessageRequestParameters(input.VerifyOTPMessageRequestParameters, context);
4517
+ }
4518
+ if (body === undefined) {
4519
+ body = {};
4520
+ }
4521
+ body = JSON.stringify(body);
4522
+ return [2, new __HttpRequest({
4523
+ protocol: protocol,
4524
+ hostname: hostname,
4525
+ port: port,
4526
+ method: "POST",
4527
+ headers: headers,
4528
+ path: resolvedPath,
4529
+ body: body,
4530
+ })];
4531
+ }
4532
+ });
4533
+ }); };
4454
4534
  export var deserializeAws_restJson1CreateAppCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4455
4535
  var contents, data, _a;
4456
4536
  return __generator(this, function (_b) {
@@ -13925,6 +14005,113 @@ var deserializeAws_restJson1SendMessagesCommandError = function (output, context
13925
14005
  }
13926
14006
  });
13927
14007
  }); };
14008
+ export var deserializeAws_restJson1SendOTPMessageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
14009
+ var contents, data, _a;
14010
+ return __generator(this, function (_b) {
14011
+ switch (_b.label) {
14012
+ case 0:
14013
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
14014
+ return [2, deserializeAws_restJson1SendOTPMessageCommandError(output, context)];
14015
+ }
14016
+ contents = {
14017
+ $metadata: deserializeMetadata(output),
14018
+ MessageResponse: undefined,
14019
+ };
14020
+ _a = __expectObject;
14021
+ return [4, parseBody(output.body, context)];
14022
+ case 1:
14023
+ data = _a.apply(void 0, [_b.sent()]);
14024
+ contents.MessageResponse = deserializeAws_restJson1MessageResponse(data, context);
14025
+ return [2, Promise.resolve(contents)];
14026
+ }
14027
+ });
14028
+ }); };
14029
+ var deserializeAws_restJson1SendOTPMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
14030
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
14031
+ var _k;
14032
+ return __generator(this, function (_l) {
14033
+ switch (_l.label) {
14034
+ case 0:
14035
+ _a = [__assign({}, output)];
14036
+ _k = {};
14037
+ return [4, parseBody(output.body, context)];
14038
+ case 1:
14039
+ parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
14040
+ errorCode = "UnknownError";
14041
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
14042
+ _b = errorCode;
14043
+ switch (_b) {
14044
+ case "BadRequestException": return [3, 2];
14045
+ case "com.amazonaws.pinpoint#BadRequestException": return [3, 2];
14046
+ case "ForbiddenException": return [3, 4];
14047
+ case "com.amazonaws.pinpoint#ForbiddenException": return [3, 4];
14048
+ case "InternalServerErrorException": return [3, 6];
14049
+ case "com.amazonaws.pinpoint#InternalServerErrorException": return [3, 6];
14050
+ case "MethodNotAllowedException": return [3, 8];
14051
+ case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3, 8];
14052
+ case "NotFoundException": return [3, 10];
14053
+ case "com.amazonaws.pinpoint#NotFoundException": return [3, 10];
14054
+ case "PayloadTooLargeException": return [3, 12];
14055
+ case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3, 12];
14056
+ case "TooManyRequestsException": return [3, 14];
14057
+ case "com.amazonaws.pinpoint#TooManyRequestsException": return [3, 14];
14058
+ }
14059
+ return [3, 16];
14060
+ case 2:
14061
+ _c = [{}];
14062
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
14063
+ case 3:
14064
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
14065
+ return [3, 17];
14066
+ case 4:
14067
+ _d = [{}];
14068
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
14069
+ case 5:
14070
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
14071
+ return [3, 17];
14072
+ case 6:
14073
+ _e = [{}];
14074
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
14075
+ case 7:
14076
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
14077
+ return [3, 17];
14078
+ case 8:
14079
+ _f = [{}];
14080
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
14081
+ case 9:
14082
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
14083
+ return [3, 17];
14084
+ case 10:
14085
+ _g = [{}];
14086
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
14087
+ case 11:
14088
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
14089
+ return [3, 17];
14090
+ case 12:
14091
+ _h = [{}];
14092
+ return [4, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
14093
+ case 13:
14094
+ response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
14095
+ return [3, 17];
14096
+ case 14:
14097
+ _j = [{}];
14098
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
14099
+ case 15:
14100
+ response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
14101
+ return [3, 17];
14102
+ case 16:
14103
+ parsedBody = parsedOutput.body;
14104
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
14105
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
14106
+ _l.label = 17;
14107
+ case 17:
14108
+ message = response.message || response.Message || errorCode;
14109
+ response.message = message;
14110
+ delete response.Message;
14111
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
14112
+ }
14113
+ });
14114
+ }); };
13928
14115
  export var deserializeAws_restJson1SendUsersMessagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
13929
14116
  var contents, data, _a;
13930
14117
  return __generator(this, function (_b) {
@@ -16696,6 +16883,113 @@ var deserializeAws_restJson1UpdateVoiceTemplateCommandError = function (output,
16696
16883
  }
16697
16884
  });
16698
16885
  }); };
16886
+ export var deserializeAws_restJson1VerifyOTPMessageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
16887
+ var contents, data, _a;
16888
+ return __generator(this, function (_b) {
16889
+ switch (_b.label) {
16890
+ case 0:
16891
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
16892
+ return [2, deserializeAws_restJson1VerifyOTPMessageCommandError(output, context)];
16893
+ }
16894
+ contents = {
16895
+ $metadata: deserializeMetadata(output),
16896
+ VerificationResponse: undefined,
16897
+ };
16898
+ _a = __expectObject;
16899
+ return [4, parseBody(output.body, context)];
16900
+ case 1:
16901
+ data = _a.apply(void 0, [_b.sent()]);
16902
+ contents.VerificationResponse = deserializeAws_restJson1VerificationResponse(data, context);
16903
+ return [2, Promise.resolve(contents)];
16904
+ }
16905
+ });
16906
+ }); };
16907
+ var deserializeAws_restJson1VerifyOTPMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
16908
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
16909
+ var _k;
16910
+ return __generator(this, function (_l) {
16911
+ switch (_l.label) {
16912
+ case 0:
16913
+ _a = [__assign({}, output)];
16914
+ _k = {};
16915
+ return [4, parseBody(output.body, context)];
16916
+ case 1:
16917
+ parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
16918
+ errorCode = "UnknownError";
16919
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
16920
+ _b = errorCode;
16921
+ switch (_b) {
16922
+ case "BadRequestException": return [3, 2];
16923
+ case "com.amazonaws.pinpoint#BadRequestException": return [3, 2];
16924
+ case "ForbiddenException": return [3, 4];
16925
+ case "com.amazonaws.pinpoint#ForbiddenException": return [3, 4];
16926
+ case "InternalServerErrorException": return [3, 6];
16927
+ case "com.amazonaws.pinpoint#InternalServerErrorException": return [3, 6];
16928
+ case "MethodNotAllowedException": return [3, 8];
16929
+ case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3, 8];
16930
+ case "NotFoundException": return [3, 10];
16931
+ case "com.amazonaws.pinpoint#NotFoundException": return [3, 10];
16932
+ case "PayloadTooLargeException": return [3, 12];
16933
+ case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3, 12];
16934
+ case "TooManyRequestsException": return [3, 14];
16935
+ case "com.amazonaws.pinpoint#TooManyRequestsException": return [3, 14];
16936
+ }
16937
+ return [3, 16];
16938
+ case 2:
16939
+ _c = [{}];
16940
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
16941
+ case 3:
16942
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16943
+ return [3, 17];
16944
+ case 4:
16945
+ _d = [{}];
16946
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
16947
+ case 5:
16948
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16949
+ return [3, 17];
16950
+ case 6:
16951
+ _e = [{}];
16952
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
16953
+ case 7:
16954
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16955
+ return [3, 17];
16956
+ case 8:
16957
+ _f = [{}];
16958
+ return [4, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
16959
+ case 9:
16960
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16961
+ return [3, 17];
16962
+ case 10:
16963
+ _g = [{}];
16964
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
16965
+ case 11:
16966
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16967
+ return [3, 17];
16968
+ case 12:
16969
+ _h = [{}];
16970
+ return [4, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
16971
+ case 13:
16972
+ response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16973
+ return [3, 17];
16974
+ case 14:
16975
+ _j = [{}];
16976
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
16977
+ case 15:
16978
+ response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16979
+ return [3, 17];
16980
+ case 16:
16981
+ parsedBody = parsedOutput.body;
16982
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
16983
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
16984
+ _l.label = 17;
16985
+ case 17:
16986
+ message = response.message || response.Message || errorCode;
16987
+ response.message = message;
16988
+ delete response.Message;
16989
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
16990
+ }
16991
+ });
16992
+ }); };
16699
16993
  var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
16700
16994
  var contents, data;
16701
16995
  return __generator(this, function (_a) {
@@ -17659,6 +17953,13 @@ var serializeAws_restJson1SegmentLocation = function (input, context) {
17659
17953
  var serializeAws_restJson1SegmentReference = function (input, context) {
17660
17954
  return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Version !== undefined && input.Version !== null && { Version: input.Version }));
17661
17955
  };
17956
+ var serializeAws_restJson1SendOTPMessageRequestParameters = function (input, context) {
17957
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowedAttempts !== undefined &&
17958
+ input.AllowedAttempts !== null && { AllowedAttempts: input.AllowedAttempts })), (input.BrandName !== undefined && input.BrandName !== null && { BrandName: input.BrandName })), (input.Channel !== undefined && input.Channel !== null && { Channel: input.Channel })), (input.CodeLength !== undefined && input.CodeLength !== null && { CodeLength: input.CodeLength })), (input.DestinationIdentity !== undefined &&
17959
+ input.DestinationIdentity !== null && { DestinationIdentity: input.DestinationIdentity })), (input.EntityId !== undefined && input.EntityId !== null && { EntityId: input.EntityId })), (input.Language !== undefined && input.Language !== null && { Language: input.Language })), (input.OriginationIdentity !== undefined &&
17960
+ input.OriginationIdentity !== null && { OriginationIdentity: input.OriginationIdentity })), (input.ReferenceId !== undefined && input.ReferenceId !== null && { ReferenceId: input.ReferenceId })), (input.TemplateId !== undefined && input.TemplateId !== null && { TemplateId: input.TemplateId })), (input.ValidityPeriod !== undefined &&
17961
+ input.ValidityPeriod !== null && { ValidityPeriod: input.ValidityPeriod }));
17962
+ };
17662
17963
  var serializeAws_restJson1SendUsersMessageRequest = function (input, context) {
17663
17964
  return __assign(__assign(__assign(__assign(__assign({}, (input.Context !== undefined &&
17664
17965
  input.Context !== null && { Context: serializeAws_restJson1MapOf__string(input.Context, context) })), (input.MessageConfiguration !== undefined &&
@@ -17768,6 +18069,10 @@ var serializeAws_restJson1UpdateRecommenderConfigurationShape = function (input,
17768
18069
  input.RecommendationsDisplayName !== null && { RecommendationsDisplayName: input.RecommendationsDisplayName })), (input.RecommendationsPerMessage !== undefined &&
17769
18070
  input.RecommendationsPerMessage !== null && { RecommendationsPerMessage: input.RecommendationsPerMessage }));
17770
18071
  };
18072
+ var serializeAws_restJson1VerifyOTPMessageRequestParameters = function (input, context) {
18073
+ return __assign(__assign(__assign({}, (input.DestinationIdentity !== undefined &&
18074
+ input.DestinationIdentity !== null && { DestinationIdentity: input.DestinationIdentity })), (input.Otp !== undefined && input.Otp !== null && { Otp: input.Otp })), (input.ReferenceId !== undefined && input.ReferenceId !== null && { ReferenceId: input.ReferenceId }));
18075
+ };
17771
18076
  var serializeAws_restJson1VoiceChannelRequest = function (input, context) {
17772
18077
  return __assign({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
17773
18078
  };
@@ -19843,6 +20148,11 @@ var deserializeAws_restJson1TreatmentResource = function (output, context) {
19843
20148
  TreatmentName: __expectString(output.TreatmentName),
19844
20149
  };
19845
20150
  };
20151
+ var deserializeAws_restJson1VerificationResponse = function (output, context) {
20152
+ return {
20153
+ Valid: __expectBoolean(output.Valid),
20154
+ };
20155
+ };
19846
20156
  var deserializeAws_restJson1VoiceChannelResponse = function (output, context) {
19847
20157
  return {
19848
20158
  ApplicationId: __expectString(output.ApplicationId),
@@ -89,6 +89,7 @@ import { PutEventsCommandInput, PutEventsCommandOutput } from "./commands/PutEve
89
89
  import { PutEventStreamCommandInput, PutEventStreamCommandOutput } from "./commands/PutEventStreamCommand";
90
90
  import { RemoveAttributesCommandInput, RemoveAttributesCommandOutput } from "./commands/RemoveAttributesCommand";
91
91
  import { SendMessagesCommandInput, SendMessagesCommandOutput } from "./commands/SendMessagesCommand";
92
+ import { SendOTPMessageCommandInput, SendOTPMessageCommandOutput } from "./commands/SendOTPMessageCommand";
92
93
  import { SendUsersMessagesCommandInput, SendUsersMessagesCommandOutput } from "./commands/SendUsersMessagesCommand";
93
94
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
94
95
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -116,6 +117,7 @@ import { UpdateSmsTemplateCommandInput, UpdateSmsTemplateCommandOutput } from ".
116
117
  import { UpdateTemplateActiveVersionCommandInput, UpdateTemplateActiveVersionCommandOutput } from "./commands/UpdateTemplateActiveVersionCommand";
117
118
  import { UpdateVoiceChannelCommandInput, UpdateVoiceChannelCommandOutput } from "./commands/UpdateVoiceChannelCommand";
118
119
  import { UpdateVoiceTemplateCommandInput, UpdateVoiceTemplateCommandOutput } from "./commands/UpdateVoiceTemplateCommand";
120
+ import { VerifyOTPMessageCommandInput, VerifyOTPMessageCommandOutput } from "./commands/VerifyOTPMessageCommand";
119
121
  import { PinpointClient } from "./PinpointClient";
120
122
  /**
121
123
  * <p>Doc Engage API - Amazon Pinpoint API</p>
@@ -661,6 +663,12 @@ export declare class Pinpoint extends PinpointClient {
661
663
  sendMessages(args: SendMessagesCommandInput, options?: __HttpHandlerOptions): Promise<SendMessagesCommandOutput>;
662
664
  sendMessages(args: SendMessagesCommandInput, cb: (err: any, data?: SendMessagesCommandOutput) => void): void;
663
665
  sendMessages(args: SendMessagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendMessagesCommandOutput) => void): void;
666
+ /**
667
+ * <p>Send an OTP message</p>
668
+ */
669
+ sendOTPMessage(args: SendOTPMessageCommandInput, options?: __HttpHandlerOptions): Promise<SendOTPMessageCommandOutput>;
670
+ sendOTPMessage(args: SendOTPMessageCommandInput, cb: (err: any, data?: SendOTPMessageCommandOutput) => void): void;
671
+ sendOTPMessage(args: SendOTPMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendOTPMessageCommandOutput) => void): void;
664
672
  /**
665
673
  * <p>Creates and sends a message to a list of users.</p>
666
674
  */
@@ -823,4 +831,10 @@ export declare class Pinpoint extends PinpointClient {
823
831
  updateVoiceTemplate(args: UpdateVoiceTemplateCommandInput, options?: __HttpHandlerOptions): Promise<UpdateVoiceTemplateCommandOutput>;
824
832
  updateVoiceTemplate(args: UpdateVoiceTemplateCommandInput, cb: (err: any, data?: UpdateVoiceTemplateCommandOutput) => void): void;
825
833
  updateVoiceTemplate(args: UpdateVoiceTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateVoiceTemplateCommandOutput) => void): void;
834
+ /**
835
+ * <p>Verify an OTP</p>
836
+ */
837
+ verifyOTPMessage(args: VerifyOTPMessageCommandInput, options?: __HttpHandlerOptions): Promise<VerifyOTPMessageCommandOutput>;
838
+ verifyOTPMessage(args: VerifyOTPMessageCommandInput, cb: (err: any, data?: VerifyOTPMessageCommandOutput) => void): void;
839
+ verifyOTPMessage(args: VerifyOTPMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifyOTPMessageCommandOutput) => void): void;
826
840
  }
@@ -96,6 +96,7 @@ import { PutEventsCommandInput, PutEventsCommandOutput } from "./commands/PutEve
96
96
  import { PutEventStreamCommandInput, PutEventStreamCommandOutput } from "./commands/PutEventStreamCommand";
97
97
  import { RemoveAttributesCommandInput, RemoveAttributesCommandOutput } from "./commands/RemoveAttributesCommand";
98
98
  import { SendMessagesCommandInput, SendMessagesCommandOutput } from "./commands/SendMessagesCommand";
99
+ import { SendOTPMessageCommandInput, SendOTPMessageCommandOutput } from "./commands/SendOTPMessageCommand";
99
100
  import { SendUsersMessagesCommandInput, SendUsersMessagesCommandOutput } from "./commands/SendUsersMessagesCommand";
100
101
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
101
102
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -123,8 +124,9 @@ import { UpdateSmsTemplateCommandInput, UpdateSmsTemplateCommandOutput } from ".
123
124
  import { UpdateTemplateActiveVersionCommandInput, UpdateTemplateActiveVersionCommandOutput } from "./commands/UpdateTemplateActiveVersionCommand";
124
125
  import { UpdateVoiceChannelCommandInput, UpdateVoiceChannelCommandOutput } from "./commands/UpdateVoiceChannelCommand";
125
126
  import { UpdateVoiceTemplateCommandInput, UpdateVoiceTemplateCommandOutput } from "./commands/UpdateVoiceTemplateCommand";
126
- export declare type ServiceInputTypes = CreateAppCommandInput | CreateCampaignCommandInput | CreateEmailTemplateCommandInput | CreateExportJobCommandInput | CreateImportJobCommandInput | CreateInAppTemplateCommandInput | CreateJourneyCommandInput | CreatePushTemplateCommandInput | CreateRecommenderConfigurationCommandInput | CreateSegmentCommandInput | CreateSmsTemplateCommandInput | CreateVoiceTemplateCommandInput | DeleteAdmChannelCommandInput | DeleteApnsChannelCommandInput | DeleteApnsSandboxChannelCommandInput | DeleteApnsVoipChannelCommandInput | DeleteApnsVoipSandboxChannelCommandInput | DeleteAppCommandInput | DeleteBaiduChannelCommandInput | DeleteCampaignCommandInput | DeleteEmailChannelCommandInput | DeleteEmailTemplateCommandInput | DeleteEndpointCommandInput | DeleteEventStreamCommandInput | DeleteGcmChannelCommandInput | DeleteInAppTemplateCommandInput | DeleteJourneyCommandInput | DeletePushTemplateCommandInput | DeleteRecommenderConfigurationCommandInput | DeleteSegmentCommandInput | DeleteSmsChannelCommandInput | DeleteSmsTemplateCommandInput | DeleteUserEndpointsCommandInput | DeleteVoiceChannelCommandInput | DeleteVoiceTemplateCommandInput | GetAdmChannelCommandInput | GetApnsChannelCommandInput | GetApnsSandboxChannelCommandInput | GetApnsVoipChannelCommandInput | GetApnsVoipSandboxChannelCommandInput | GetAppCommandInput | GetApplicationDateRangeKpiCommandInput | GetApplicationSettingsCommandInput | GetAppsCommandInput | GetBaiduChannelCommandInput | GetCampaignActivitiesCommandInput | GetCampaignCommandInput | GetCampaignDateRangeKpiCommandInput | GetCampaignVersionCommandInput | GetCampaignVersionsCommandInput | GetCampaignsCommandInput | GetChannelsCommandInput | GetEmailChannelCommandInput | GetEmailTemplateCommandInput | GetEndpointCommandInput | GetEventStreamCommandInput | GetExportJobCommandInput | GetExportJobsCommandInput | GetGcmChannelCommandInput | GetImportJobCommandInput | GetImportJobsCommandInput | GetInAppMessagesCommandInput | GetInAppTemplateCommandInput | GetJourneyCommandInput | GetJourneyDateRangeKpiCommandInput | GetJourneyExecutionActivityMetricsCommandInput | GetJourneyExecutionMetricsCommandInput | GetPushTemplateCommandInput | GetRecommenderConfigurationCommandInput | GetRecommenderConfigurationsCommandInput | GetSegmentCommandInput | GetSegmentExportJobsCommandInput | GetSegmentImportJobsCommandInput | GetSegmentVersionCommandInput | GetSegmentVersionsCommandInput | GetSegmentsCommandInput | GetSmsChannelCommandInput | GetSmsTemplateCommandInput | GetUserEndpointsCommandInput | GetVoiceChannelCommandInput | GetVoiceTemplateCommandInput | ListJourneysCommandInput | ListTagsForResourceCommandInput | ListTemplateVersionsCommandInput | ListTemplatesCommandInput | PhoneNumberValidateCommandInput | PutEventStreamCommandInput | PutEventsCommandInput | RemoveAttributesCommandInput | SendMessagesCommandInput | SendUsersMessagesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAdmChannelCommandInput | UpdateApnsChannelCommandInput | UpdateApnsSandboxChannelCommandInput | UpdateApnsVoipChannelCommandInput | UpdateApnsVoipSandboxChannelCommandInput | UpdateApplicationSettingsCommandInput | UpdateBaiduChannelCommandInput | UpdateCampaignCommandInput | UpdateEmailChannelCommandInput | UpdateEmailTemplateCommandInput | UpdateEndpointCommandInput | UpdateEndpointsBatchCommandInput | UpdateGcmChannelCommandInput | UpdateInAppTemplateCommandInput | UpdateJourneyCommandInput | UpdateJourneyStateCommandInput | UpdatePushTemplateCommandInput | UpdateRecommenderConfigurationCommandInput | UpdateSegmentCommandInput | UpdateSmsChannelCommandInput | UpdateSmsTemplateCommandInput | UpdateTemplateActiveVersionCommandInput | UpdateVoiceChannelCommandInput | UpdateVoiceTemplateCommandInput;
127
- export declare type ServiceOutputTypes = CreateAppCommandOutput | CreateCampaignCommandOutput | CreateEmailTemplateCommandOutput | CreateExportJobCommandOutput | CreateImportJobCommandOutput | CreateInAppTemplateCommandOutput | CreateJourneyCommandOutput | CreatePushTemplateCommandOutput | CreateRecommenderConfigurationCommandOutput | CreateSegmentCommandOutput | CreateSmsTemplateCommandOutput | CreateVoiceTemplateCommandOutput | DeleteAdmChannelCommandOutput | DeleteApnsChannelCommandOutput | DeleteApnsSandboxChannelCommandOutput | DeleteApnsVoipChannelCommandOutput | DeleteApnsVoipSandboxChannelCommandOutput | DeleteAppCommandOutput | DeleteBaiduChannelCommandOutput | DeleteCampaignCommandOutput | DeleteEmailChannelCommandOutput | DeleteEmailTemplateCommandOutput | DeleteEndpointCommandOutput | DeleteEventStreamCommandOutput | DeleteGcmChannelCommandOutput | DeleteInAppTemplateCommandOutput | DeleteJourneyCommandOutput | DeletePushTemplateCommandOutput | DeleteRecommenderConfigurationCommandOutput | DeleteSegmentCommandOutput | DeleteSmsChannelCommandOutput | DeleteSmsTemplateCommandOutput | DeleteUserEndpointsCommandOutput | DeleteVoiceChannelCommandOutput | DeleteVoiceTemplateCommandOutput | GetAdmChannelCommandOutput | GetApnsChannelCommandOutput | GetApnsSandboxChannelCommandOutput | GetApnsVoipChannelCommandOutput | GetApnsVoipSandboxChannelCommandOutput | GetAppCommandOutput | GetApplicationDateRangeKpiCommandOutput | GetApplicationSettingsCommandOutput | GetAppsCommandOutput | GetBaiduChannelCommandOutput | GetCampaignActivitiesCommandOutput | GetCampaignCommandOutput | GetCampaignDateRangeKpiCommandOutput | GetCampaignVersionCommandOutput | GetCampaignVersionsCommandOutput | GetCampaignsCommandOutput | GetChannelsCommandOutput | GetEmailChannelCommandOutput | GetEmailTemplateCommandOutput | GetEndpointCommandOutput | GetEventStreamCommandOutput | GetExportJobCommandOutput | GetExportJobsCommandOutput | GetGcmChannelCommandOutput | GetImportJobCommandOutput | GetImportJobsCommandOutput | GetInAppMessagesCommandOutput | GetInAppTemplateCommandOutput | GetJourneyCommandOutput | GetJourneyDateRangeKpiCommandOutput | GetJourneyExecutionActivityMetricsCommandOutput | GetJourneyExecutionMetricsCommandOutput | GetPushTemplateCommandOutput | GetRecommenderConfigurationCommandOutput | GetRecommenderConfigurationsCommandOutput | GetSegmentCommandOutput | GetSegmentExportJobsCommandOutput | GetSegmentImportJobsCommandOutput | GetSegmentVersionCommandOutput | GetSegmentVersionsCommandOutput | GetSegmentsCommandOutput | GetSmsChannelCommandOutput | GetSmsTemplateCommandOutput | GetUserEndpointsCommandOutput | GetVoiceChannelCommandOutput | GetVoiceTemplateCommandOutput | ListJourneysCommandOutput | ListTagsForResourceCommandOutput | ListTemplateVersionsCommandOutput | ListTemplatesCommandOutput | PhoneNumberValidateCommandOutput | PutEventStreamCommandOutput | PutEventsCommandOutput | RemoveAttributesCommandOutput | SendMessagesCommandOutput | SendUsersMessagesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAdmChannelCommandOutput | UpdateApnsChannelCommandOutput | UpdateApnsSandboxChannelCommandOutput | UpdateApnsVoipChannelCommandOutput | UpdateApnsVoipSandboxChannelCommandOutput | UpdateApplicationSettingsCommandOutput | UpdateBaiduChannelCommandOutput | UpdateCampaignCommandOutput | UpdateEmailChannelCommandOutput | UpdateEmailTemplateCommandOutput | UpdateEndpointCommandOutput | UpdateEndpointsBatchCommandOutput | UpdateGcmChannelCommandOutput | UpdateInAppTemplateCommandOutput | UpdateJourneyCommandOutput | UpdateJourneyStateCommandOutput | UpdatePushTemplateCommandOutput | UpdateRecommenderConfigurationCommandOutput | UpdateSegmentCommandOutput | UpdateSmsChannelCommandOutput | UpdateSmsTemplateCommandOutput | UpdateTemplateActiveVersionCommandOutput | UpdateVoiceChannelCommandOutput | UpdateVoiceTemplateCommandOutput;
127
+ import { VerifyOTPMessageCommandInput, VerifyOTPMessageCommandOutput } from "./commands/VerifyOTPMessageCommand";
128
+ export declare type ServiceInputTypes = CreateAppCommandInput | CreateCampaignCommandInput | CreateEmailTemplateCommandInput | CreateExportJobCommandInput | CreateImportJobCommandInput | CreateInAppTemplateCommandInput | CreateJourneyCommandInput | CreatePushTemplateCommandInput | CreateRecommenderConfigurationCommandInput | CreateSegmentCommandInput | CreateSmsTemplateCommandInput | CreateVoiceTemplateCommandInput | DeleteAdmChannelCommandInput | DeleteApnsChannelCommandInput | DeleteApnsSandboxChannelCommandInput | DeleteApnsVoipChannelCommandInput | DeleteApnsVoipSandboxChannelCommandInput | DeleteAppCommandInput | DeleteBaiduChannelCommandInput | DeleteCampaignCommandInput | DeleteEmailChannelCommandInput | DeleteEmailTemplateCommandInput | DeleteEndpointCommandInput | DeleteEventStreamCommandInput | DeleteGcmChannelCommandInput | DeleteInAppTemplateCommandInput | DeleteJourneyCommandInput | DeletePushTemplateCommandInput | DeleteRecommenderConfigurationCommandInput | DeleteSegmentCommandInput | DeleteSmsChannelCommandInput | DeleteSmsTemplateCommandInput | DeleteUserEndpointsCommandInput | DeleteVoiceChannelCommandInput | DeleteVoiceTemplateCommandInput | GetAdmChannelCommandInput | GetApnsChannelCommandInput | GetApnsSandboxChannelCommandInput | GetApnsVoipChannelCommandInput | GetApnsVoipSandboxChannelCommandInput | GetAppCommandInput | GetApplicationDateRangeKpiCommandInput | GetApplicationSettingsCommandInput | GetAppsCommandInput | GetBaiduChannelCommandInput | GetCampaignActivitiesCommandInput | GetCampaignCommandInput | GetCampaignDateRangeKpiCommandInput | GetCampaignVersionCommandInput | GetCampaignVersionsCommandInput | GetCampaignsCommandInput | GetChannelsCommandInput | GetEmailChannelCommandInput | GetEmailTemplateCommandInput | GetEndpointCommandInput | GetEventStreamCommandInput | GetExportJobCommandInput | GetExportJobsCommandInput | GetGcmChannelCommandInput | GetImportJobCommandInput | GetImportJobsCommandInput | GetInAppMessagesCommandInput | GetInAppTemplateCommandInput | GetJourneyCommandInput | GetJourneyDateRangeKpiCommandInput | GetJourneyExecutionActivityMetricsCommandInput | GetJourneyExecutionMetricsCommandInput | GetPushTemplateCommandInput | GetRecommenderConfigurationCommandInput | GetRecommenderConfigurationsCommandInput | GetSegmentCommandInput | GetSegmentExportJobsCommandInput | GetSegmentImportJobsCommandInput | GetSegmentVersionCommandInput | GetSegmentVersionsCommandInput | GetSegmentsCommandInput | GetSmsChannelCommandInput | GetSmsTemplateCommandInput | GetUserEndpointsCommandInput | GetVoiceChannelCommandInput | GetVoiceTemplateCommandInput | ListJourneysCommandInput | ListTagsForResourceCommandInput | ListTemplateVersionsCommandInput | ListTemplatesCommandInput | PhoneNumberValidateCommandInput | PutEventStreamCommandInput | PutEventsCommandInput | RemoveAttributesCommandInput | SendMessagesCommandInput | SendOTPMessageCommandInput | SendUsersMessagesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAdmChannelCommandInput | UpdateApnsChannelCommandInput | UpdateApnsSandboxChannelCommandInput | UpdateApnsVoipChannelCommandInput | UpdateApnsVoipSandboxChannelCommandInput | UpdateApplicationSettingsCommandInput | UpdateBaiduChannelCommandInput | UpdateCampaignCommandInput | UpdateEmailChannelCommandInput | UpdateEmailTemplateCommandInput | UpdateEndpointCommandInput | UpdateEndpointsBatchCommandInput | UpdateGcmChannelCommandInput | UpdateInAppTemplateCommandInput | UpdateJourneyCommandInput | UpdateJourneyStateCommandInput | UpdatePushTemplateCommandInput | UpdateRecommenderConfigurationCommandInput | UpdateSegmentCommandInput | UpdateSmsChannelCommandInput | UpdateSmsTemplateCommandInput | UpdateTemplateActiveVersionCommandInput | UpdateVoiceChannelCommandInput | UpdateVoiceTemplateCommandInput | VerifyOTPMessageCommandInput;
129
+ export declare type ServiceOutputTypes = CreateAppCommandOutput | CreateCampaignCommandOutput | CreateEmailTemplateCommandOutput | CreateExportJobCommandOutput | CreateImportJobCommandOutput | CreateInAppTemplateCommandOutput | CreateJourneyCommandOutput | CreatePushTemplateCommandOutput | CreateRecommenderConfigurationCommandOutput | CreateSegmentCommandOutput | CreateSmsTemplateCommandOutput | CreateVoiceTemplateCommandOutput | DeleteAdmChannelCommandOutput | DeleteApnsChannelCommandOutput | DeleteApnsSandboxChannelCommandOutput | DeleteApnsVoipChannelCommandOutput | DeleteApnsVoipSandboxChannelCommandOutput | DeleteAppCommandOutput | DeleteBaiduChannelCommandOutput | DeleteCampaignCommandOutput | DeleteEmailChannelCommandOutput | DeleteEmailTemplateCommandOutput | DeleteEndpointCommandOutput | DeleteEventStreamCommandOutput | DeleteGcmChannelCommandOutput | DeleteInAppTemplateCommandOutput | DeleteJourneyCommandOutput | DeletePushTemplateCommandOutput | DeleteRecommenderConfigurationCommandOutput | DeleteSegmentCommandOutput | DeleteSmsChannelCommandOutput | DeleteSmsTemplateCommandOutput | DeleteUserEndpointsCommandOutput | DeleteVoiceChannelCommandOutput | DeleteVoiceTemplateCommandOutput | GetAdmChannelCommandOutput | GetApnsChannelCommandOutput | GetApnsSandboxChannelCommandOutput | GetApnsVoipChannelCommandOutput | GetApnsVoipSandboxChannelCommandOutput | GetAppCommandOutput | GetApplicationDateRangeKpiCommandOutput | GetApplicationSettingsCommandOutput | GetAppsCommandOutput | GetBaiduChannelCommandOutput | GetCampaignActivitiesCommandOutput | GetCampaignCommandOutput | GetCampaignDateRangeKpiCommandOutput | GetCampaignVersionCommandOutput | GetCampaignVersionsCommandOutput | GetCampaignsCommandOutput | GetChannelsCommandOutput | GetEmailChannelCommandOutput | GetEmailTemplateCommandOutput | GetEndpointCommandOutput | GetEventStreamCommandOutput | GetExportJobCommandOutput | GetExportJobsCommandOutput | GetGcmChannelCommandOutput | GetImportJobCommandOutput | GetImportJobsCommandOutput | GetInAppMessagesCommandOutput | GetInAppTemplateCommandOutput | GetJourneyCommandOutput | GetJourneyDateRangeKpiCommandOutput | GetJourneyExecutionActivityMetricsCommandOutput | GetJourneyExecutionMetricsCommandOutput | GetPushTemplateCommandOutput | GetRecommenderConfigurationCommandOutput | GetRecommenderConfigurationsCommandOutput | GetSegmentCommandOutput | GetSegmentExportJobsCommandOutput | GetSegmentImportJobsCommandOutput | GetSegmentVersionCommandOutput | GetSegmentVersionsCommandOutput | GetSegmentsCommandOutput | GetSmsChannelCommandOutput | GetSmsTemplateCommandOutput | GetUserEndpointsCommandOutput | GetVoiceChannelCommandOutput | GetVoiceTemplateCommandOutput | ListJourneysCommandOutput | ListTagsForResourceCommandOutput | ListTemplateVersionsCommandOutput | ListTemplatesCommandOutput | PhoneNumberValidateCommandOutput | PutEventStreamCommandOutput | PutEventsCommandOutput | RemoveAttributesCommandOutput | SendMessagesCommandOutput | SendOTPMessageCommandOutput | SendUsersMessagesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAdmChannelCommandOutput | UpdateApnsChannelCommandOutput | UpdateApnsSandboxChannelCommandOutput | UpdateApnsVoipChannelCommandOutput | UpdateApnsVoipSandboxChannelCommandOutput | UpdateApplicationSettingsCommandOutput | UpdateBaiduChannelCommandOutput | UpdateCampaignCommandOutput | UpdateEmailChannelCommandOutput | UpdateEmailTemplateCommandOutput | UpdateEndpointCommandOutput | UpdateEndpointsBatchCommandOutput | UpdateGcmChannelCommandOutput | UpdateInAppTemplateCommandOutput | UpdateJourneyCommandOutput | UpdateJourneyStateCommandOutput | UpdatePushTemplateCommandOutput | UpdateRecommenderConfigurationCommandOutput | UpdateSegmentCommandOutput | UpdateSmsChannelCommandOutput | UpdateSmsTemplateCommandOutput | UpdateTemplateActiveVersionCommandOutput | UpdateVoiceChannelCommandOutput | UpdateVoiceTemplateCommandOutput | VerifyOTPMessageCommandOutput;
128
130
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
129
131
  /**
130
132
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -20,7 +20,7 @@ export interface CreateAppCommandOutput extends CreateAppResponse, __MetadataBea
20
20
  *
21
21
  * @see {@link CreateAppCommandInput} for command's `input` shape.
22
22
  * @see {@link CreateAppCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class CreateAppCommand extends $Command<CreateAppCommandInput, CreateAppCommandOutput, PinpointClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface CreateCampaignCommandOutput extends CreateCampaignResponse, __M
20
20
  *
21
21
  * @see {@link CreateCampaignCommandInput} for command's `input` shape.
22
22
  * @see {@link CreateCampaignCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class CreateCampaignCommand extends $Command<CreateCampaignCommandInput, CreateCampaignCommandOutput, PinpointClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface CreateEmailTemplateCommandOutput extends CreateEmailTemplateRes
20
20
  *
21
21
  * @see {@link CreateEmailTemplateCommandInput} for command's `input` shape.
22
22
  * @see {@link CreateEmailTemplateCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class CreateEmailTemplateCommand extends $Command<CreateEmailTemplateCommandInput, CreateEmailTemplateCommandOutput, PinpointClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface CreateExportJobCommandOutput extends CreateExportJobResponse, _
20
20
  *
21
21
  * @see {@link CreateExportJobCommandInput} for command's `input` shape.
22
22
  * @see {@link CreateExportJobCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class CreateExportJobCommand extends $Command<CreateExportJobCommandInput, CreateExportJobCommandOutput, PinpointClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface CreateImportJobCommandOutput extends CreateImportJobResponse, _
20
20
  *
21
21
  * @see {@link CreateImportJobCommandInput} for command's `input` shape.
22
22
  * @see {@link CreateImportJobCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class CreateImportJobCommand extends $Command<CreateImportJobCommandInput, CreateImportJobCommandOutput, PinpointClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface CreateInAppTemplateCommandOutput extends CreateInAppTemplateRes
20
20
  *
21
21
  * @see {@link CreateInAppTemplateCommandInput} for command's `input` shape.
22
22
  * @see {@link CreateInAppTemplateCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class CreateInAppTemplateCommand extends $Command<CreateInAppTemplateCommandInput, CreateInAppTemplateCommandOutput, PinpointClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface CreateJourneyCommandOutput extends CreateJourneyResponse, __Met
20
20
  *
21
21
  * @see {@link CreateJourneyCommandInput} for command's `input` shape.
22
22
  * @see {@link CreateJourneyCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class CreateJourneyCommand extends $Command<CreateJourneyCommandInput, CreateJourneyCommandOutput, PinpointClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface CreatePushTemplateCommandOutput extends CreatePushTemplateRespo
20
20
  *
21
21
  * @see {@link CreatePushTemplateCommandInput} for command's `input` shape.
22
22
  * @see {@link CreatePushTemplateCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class CreatePushTemplateCommand extends $Command<CreatePushTemplateCommandInput, CreatePushTemplateCommandOutput, PinpointClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface CreateRecommenderConfigurationCommandOutput extends CreateRecom
20
20
  *
21
21
  * @see {@link CreateRecommenderConfigurationCommandInput} for command's `input` shape.
22
22
  * @see {@link CreateRecommenderConfigurationCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class CreateRecommenderConfigurationCommand extends $Command<CreateRecommenderConfigurationCommandInput, CreateRecommenderConfigurationCommandOutput, PinpointClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface CreateSegmentCommandOutput extends CreateSegmentResponse, __Met
20
20
  *
21
21
  * @see {@link CreateSegmentCommandInput} for command's `input` shape.
22
22
  * @see {@link CreateSegmentCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class CreateSegmentCommand extends $Command<CreateSegmentCommandInput, CreateSegmentCommandOutput, PinpointClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface CreateSmsTemplateCommandOutput extends CreateSmsTemplateRespons
20
20
  *
21
21
  * @see {@link CreateSmsTemplateCommandInput} for command's `input` shape.
22
22
  * @see {@link CreateSmsTemplateCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class CreateSmsTemplateCommand extends $Command<CreateSmsTemplateCommandInput, CreateSmsTemplateCommandOutput, PinpointClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface CreateVoiceTemplateCommandOutput extends CreateVoiceTemplateRes
20
20
  *
21
21
  * @see {@link CreateVoiceTemplateCommandInput} for command's `input` shape.
22
22
  * @see {@link CreateVoiceTemplateCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class CreateVoiceTemplateCommand extends $Command<CreateVoiceTemplateCommandInput, CreateVoiceTemplateCommandOutput, PinpointClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface DeleteAdmChannelCommandOutput extends DeleteAdmChannelResponse,
20
20
  *
21
21
  * @see {@link DeleteAdmChannelCommandInput} for command's `input` shape.
22
22
  * @see {@link DeleteAdmChannelCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class DeleteAdmChannelCommand extends $Command<DeleteAdmChannelCommandInput, DeleteAdmChannelCommandOutput, PinpointClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface DeleteApnsChannelCommandOutput extends DeleteApnsChannelRespons
20
20
  *
21
21
  * @see {@link DeleteApnsChannelCommandInput} for command's `input` shape.
22
22
  * @see {@link DeleteApnsChannelCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class DeleteApnsChannelCommand extends $Command<DeleteApnsChannelCommandInput, DeleteApnsChannelCommandOutput, PinpointClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface DeleteApnsSandboxChannelCommandOutput extends DeleteApnsSandbox
20
20
  *
21
21
  * @see {@link DeleteApnsSandboxChannelCommandInput} for command's `input` shape.
22
22
  * @see {@link DeleteApnsSandboxChannelCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class DeleteApnsSandboxChannelCommand extends $Command<DeleteApnsSandboxChannelCommandInput, DeleteApnsSandboxChannelCommandOutput, PinpointClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface DeleteApnsVoipChannelCommandOutput extends DeleteApnsVoipChanne
20
20
  *
21
21
  * @see {@link DeleteApnsVoipChannelCommandInput} for command's `input` shape.
22
22
  * @see {@link DeleteApnsVoipChannelCommandOutput} for command's `response` shape.
23
- * @see {@link PinpointClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class DeleteApnsVoipChannelCommand extends $Command<DeleteApnsVoipChannelCommandInput, DeleteApnsVoipChannelCommandOutput, PinpointClientResolvedConfig> {