@aws-sdk/client-frauddetector 3.48.0 → 3.52.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 (36) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist-cjs/FraudDetector.js +30 -0
  3. package/dist-cjs/commands/GetEventPredictionMetadataCommand.js +36 -0
  4. package/dist-cjs/commands/ListEventPredictionsCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +101 -2
  7. package/dist-cjs/pagination/ListEventPredictionsPaginator.js +35 -0
  8. package/dist-cjs/pagination/index.js +1 -0
  9. package/dist-cjs/protocols/Aws_json1_1.js +408 -3
  10. package/dist-es/FraudDetector.js +30 -0
  11. package/dist-es/commands/GetEventPredictionMetadataCommand.js +39 -0
  12. package/dist-es/commands/ListEventPredictionsCommand.js +39 -0
  13. package/dist-es/commands/index.js +2 -0
  14. package/dist-es/models/models_0.js +62 -0
  15. package/dist-es/pagination/ListEventPredictionsPaginator.js +74 -0
  16. package/dist-es/pagination/index.js +1 -0
  17. package/dist-es/protocols/Aws_json1_1.js +405 -0
  18. package/dist-types/FraudDetector.d.ts +29 -0
  19. package/dist-types/FraudDetectorClient.d.ts +4 -2
  20. package/dist-types/commands/GetEventPredictionMetadataCommand.d.ts +37 -0
  21. package/dist-types/commands/ListEventPredictionsCommand.d.ts +48 -0
  22. package/dist-types/commands/index.d.ts +2 -0
  23. package/dist-types/models/models_0.d.ts +551 -0
  24. package/dist-types/pagination/ListEventPredictionsPaginator.d.ts +4 -0
  25. package/dist-types/pagination/index.d.ts +1 -0
  26. package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
  27. package/dist-types/ts3.4/FraudDetector.d.ts +10 -0
  28. package/dist-types/ts3.4/FraudDetectorClient.d.ts +4 -2
  29. package/dist-types/ts3.4/commands/GetEventPredictionMetadataCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/ListEventPredictionsCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  32. package/dist-types/ts3.4/models/models_0.d.ts +224 -0
  33. package/dist-types/ts3.4/pagination/ListEventPredictionsPaginator.d.ts +4 -0
  34. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  35. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
  36. package/package.json +40 -34
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_json1_1PutExternalModelCommand = exports.serializeAws_json1_1PutEventTypeCommand = exports.serializeAws_json1_1PutEntityTypeCommand = exports.serializeAws_json1_1PutDetectorCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1GetVariablesCommand = exports.serializeAws_json1_1GetRulesCommand = exports.serializeAws_json1_1GetOutcomesCommand = exports.serializeAws_json1_1GetModelVersionCommand = exports.serializeAws_json1_1GetModelsCommand = exports.serializeAws_json1_1GetLabelsCommand = exports.serializeAws_json1_1GetKMSEncryptionKeyCommand = exports.serializeAws_json1_1GetExternalModelsCommand = exports.serializeAws_json1_1GetEventTypesCommand = exports.serializeAws_json1_1GetEventPredictionCommand = exports.serializeAws_json1_1GetEventCommand = exports.serializeAws_json1_1GetEntityTypesCommand = exports.serializeAws_json1_1GetDetectorVersionCommand = exports.serializeAws_json1_1GetDetectorsCommand = exports.serializeAws_json1_1GetDeleteEventsByEventTypeStatusCommand = exports.serializeAws_json1_1GetBatchPredictionJobsCommand = exports.serializeAws_json1_1GetBatchImportJobsCommand = exports.serializeAws_json1_1DescribeModelVersionsCommand = exports.serializeAws_json1_1DescribeDetectorCommand = exports.serializeAws_json1_1DeleteVariableCommand = exports.serializeAws_json1_1DeleteRuleCommand = exports.serializeAws_json1_1DeleteOutcomeCommand = exports.serializeAws_json1_1DeleteModelVersionCommand = exports.serializeAws_json1_1DeleteModelCommand = exports.serializeAws_json1_1DeleteLabelCommand = exports.serializeAws_json1_1DeleteExternalModelCommand = exports.serializeAws_json1_1DeleteEventTypeCommand = exports.serializeAws_json1_1DeleteEventsByEventTypeCommand = exports.serializeAws_json1_1DeleteEventCommand = exports.serializeAws_json1_1DeleteEntityTypeCommand = exports.serializeAws_json1_1DeleteDetectorVersionCommand = exports.serializeAws_json1_1DeleteDetectorCommand = exports.serializeAws_json1_1DeleteBatchPredictionJobCommand = exports.serializeAws_json1_1DeleteBatchImportJobCommand = exports.serializeAws_json1_1CreateVariableCommand = exports.serializeAws_json1_1CreateRuleCommand = exports.serializeAws_json1_1CreateModelVersionCommand = exports.serializeAws_json1_1CreateModelCommand = exports.serializeAws_json1_1CreateDetectorVersionCommand = exports.serializeAws_json1_1CreateBatchPredictionJobCommand = exports.serializeAws_json1_1CreateBatchImportJobCommand = exports.serializeAws_json1_1CancelBatchPredictionJobCommand = exports.serializeAws_json1_1CancelBatchImportJobCommand = exports.serializeAws_json1_1BatchGetVariableCommand = exports.serializeAws_json1_1BatchCreateVariableCommand = void 0;
4
- exports.deserializeAws_json1_1GetEntityTypesCommand = exports.deserializeAws_json1_1GetDetectorVersionCommand = exports.deserializeAws_json1_1GetDetectorsCommand = exports.deserializeAws_json1_1GetDeleteEventsByEventTypeStatusCommand = exports.deserializeAws_json1_1GetBatchPredictionJobsCommand = exports.deserializeAws_json1_1GetBatchImportJobsCommand = exports.deserializeAws_json1_1DescribeModelVersionsCommand = exports.deserializeAws_json1_1DescribeDetectorCommand = exports.deserializeAws_json1_1DeleteVariableCommand = exports.deserializeAws_json1_1DeleteRuleCommand = exports.deserializeAws_json1_1DeleteOutcomeCommand = exports.deserializeAws_json1_1DeleteModelVersionCommand = exports.deserializeAws_json1_1DeleteModelCommand = exports.deserializeAws_json1_1DeleteLabelCommand = exports.deserializeAws_json1_1DeleteExternalModelCommand = exports.deserializeAws_json1_1DeleteEventTypeCommand = exports.deserializeAws_json1_1DeleteEventsByEventTypeCommand = exports.deserializeAws_json1_1DeleteEventCommand = exports.deserializeAws_json1_1DeleteEntityTypeCommand = exports.deserializeAws_json1_1DeleteDetectorVersionCommand = exports.deserializeAws_json1_1DeleteDetectorCommand = exports.deserializeAws_json1_1DeleteBatchPredictionJobCommand = exports.deserializeAws_json1_1DeleteBatchImportJobCommand = exports.deserializeAws_json1_1CreateVariableCommand = exports.deserializeAws_json1_1CreateRuleCommand = exports.deserializeAws_json1_1CreateModelVersionCommand = exports.deserializeAws_json1_1CreateModelCommand = exports.deserializeAws_json1_1CreateDetectorVersionCommand = exports.deserializeAws_json1_1CreateBatchPredictionJobCommand = exports.deserializeAws_json1_1CreateBatchImportJobCommand = exports.deserializeAws_json1_1CancelBatchPredictionJobCommand = exports.deserializeAws_json1_1CancelBatchImportJobCommand = exports.deserializeAws_json1_1BatchGetVariableCommand = exports.deserializeAws_json1_1BatchCreateVariableCommand = exports.serializeAws_json1_1UpdateVariableCommand = exports.serializeAws_json1_1UpdateRuleVersionCommand = exports.serializeAws_json1_1UpdateRuleMetadataCommand = exports.serializeAws_json1_1UpdateModelVersionStatusCommand = exports.serializeAws_json1_1UpdateModelVersionCommand = exports.serializeAws_json1_1UpdateModelCommand = exports.serializeAws_json1_1UpdateEventLabelCommand = exports.serializeAws_json1_1UpdateDetectorVersionStatusCommand = exports.serializeAws_json1_1UpdateDetectorVersionMetadataCommand = exports.serializeAws_json1_1UpdateDetectorVersionCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1SendEventCommand = exports.serializeAws_json1_1PutOutcomeCommand = exports.serializeAws_json1_1PutLabelCommand = exports.serializeAws_json1_1PutKMSEncryptionKeyCommand = void 0;
5
- exports.deserializeAws_json1_1UpdateVariableCommand = exports.deserializeAws_json1_1UpdateRuleVersionCommand = exports.deserializeAws_json1_1UpdateRuleMetadataCommand = exports.deserializeAws_json1_1UpdateModelVersionStatusCommand = exports.deserializeAws_json1_1UpdateModelVersionCommand = exports.deserializeAws_json1_1UpdateModelCommand = exports.deserializeAws_json1_1UpdateEventLabelCommand = exports.deserializeAws_json1_1UpdateDetectorVersionStatusCommand = exports.deserializeAws_json1_1UpdateDetectorVersionMetadataCommand = exports.deserializeAws_json1_1UpdateDetectorVersionCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1SendEventCommand = exports.deserializeAws_json1_1PutOutcomeCommand = exports.deserializeAws_json1_1PutLabelCommand = exports.deserializeAws_json1_1PutKMSEncryptionKeyCommand = exports.deserializeAws_json1_1PutExternalModelCommand = exports.deserializeAws_json1_1PutEventTypeCommand = exports.deserializeAws_json1_1PutEntityTypeCommand = exports.deserializeAws_json1_1PutDetectorCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1GetVariablesCommand = exports.deserializeAws_json1_1GetRulesCommand = exports.deserializeAws_json1_1GetOutcomesCommand = exports.deserializeAws_json1_1GetModelVersionCommand = exports.deserializeAws_json1_1GetModelsCommand = exports.deserializeAws_json1_1GetLabelsCommand = exports.deserializeAws_json1_1GetKMSEncryptionKeyCommand = exports.deserializeAws_json1_1GetExternalModelsCommand = exports.deserializeAws_json1_1GetEventTypesCommand = exports.deserializeAws_json1_1GetEventPredictionCommand = exports.deserializeAws_json1_1GetEventCommand = void 0;
3
+ exports.serializeAws_json1_1PutEntityTypeCommand = exports.serializeAws_json1_1PutDetectorCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListEventPredictionsCommand = exports.serializeAws_json1_1GetVariablesCommand = exports.serializeAws_json1_1GetRulesCommand = exports.serializeAws_json1_1GetOutcomesCommand = exports.serializeAws_json1_1GetModelVersionCommand = exports.serializeAws_json1_1GetModelsCommand = exports.serializeAws_json1_1GetLabelsCommand = exports.serializeAws_json1_1GetKMSEncryptionKeyCommand = exports.serializeAws_json1_1GetExternalModelsCommand = exports.serializeAws_json1_1GetEventTypesCommand = exports.serializeAws_json1_1GetEventPredictionMetadataCommand = exports.serializeAws_json1_1GetEventPredictionCommand = exports.serializeAws_json1_1GetEventCommand = exports.serializeAws_json1_1GetEntityTypesCommand = exports.serializeAws_json1_1GetDetectorVersionCommand = exports.serializeAws_json1_1GetDetectorsCommand = exports.serializeAws_json1_1GetDeleteEventsByEventTypeStatusCommand = exports.serializeAws_json1_1GetBatchPredictionJobsCommand = exports.serializeAws_json1_1GetBatchImportJobsCommand = exports.serializeAws_json1_1DescribeModelVersionsCommand = exports.serializeAws_json1_1DescribeDetectorCommand = exports.serializeAws_json1_1DeleteVariableCommand = exports.serializeAws_json1_1DeleteRuleCommand = exports.serializeAws_json1_1DeleteOutcomeCommand = exports.serializeAws_json1_1DeleteModelVersionCommand = exports.serializeAws_json1_1DeleteModelCommand = exports.serializeAws_json1_1DeleteLabelCommand = exports.serializeAws_json1_1DeleteExternalModelCommand = exports.serializeAws_json1_1DeleteEventTypeCommand = exports.serializeAws_json1_1DeleteEventsByEventTypeCommand = exports.serializeAws_json1_1DeleteEventCommand = exports.serializeAws_json1_1DeleteEntityTypeCommand = exports.serializeAws_json1_1DeleteDetectorVersionCommand = exports.serializeAws_json1_1DeleteDetectorCommand = exports.serializeAws_json1_1DeleteBatchPredictionJobCommand = exports.serializeAws_json1_1DeleteBatchImportJobCommand = exports.serializeAws_json1_1CreateVariableCommand = exports.serializeAws_json1_1CreateRuleCommand = exports.serializeAws_json1_1CreateModelVersionCommand = exports.serializeAws_json1_1CreateModelCommand = exports.serializeAws_json1_1CreateDetectorVersionCommand = exports.serializeAws_json1_1CreateBatchPredictionJobCommand = exports.serializeAws_json1_1CreateBatchImportJobCommand = exports.serializeAws_json1_1CancelBatchPredictionJobCommand = exports.serializeAws_json1_1CancelBatchImportJobCommand = exports.serializeAws_json1_1BatchGetVariableCommand = exports.serializeAws_json1_1BatchCreateVariableCommand = void 0;
4
+ exports.deserializeAws_json1_1GetDetectorsCommand = exports.deserializeAws_json1_1GetDeleteEventsByEventTypeStatusCommand = exports.deserializeAws_json1_1GetBatchPredictionJobsCommand = exports.deserializeAws_json1_1GetBatchImportJobsCommand = exports.deserializeAws_json1_1DescribeModelVersionsCommand = exports.deserializeAws_json1_1DescribeDetectorCommand = exports.deserializeAws_json1_1DeleteVariableCommand = exports.deserializeAws_json1_1DeleteRuleCommand = exports.deserializeAws_json1_1DeleteOutcomeCommand = exports.deserializeAws_json1_1DeleteModelVersionCommand = exports.deserializeAws_json1_1DeleteModelCommand = exports.deserializeAws_json1_1DeleteLabelCommand = exports.deserializeAws_json1_1DeleteExternalModelCommand = exports.deserializeAws_json1_1DeleteEventTypeCommand = exports.deserializeAws_json1_1DeleteEventsByEventTypeCommand = exports.deserializeAws_json1_1DeleteEventCommand = exports.deserializeAws_json1_1DeleteEntityTypeCommand = exports.deserializeAws_json1_1DeleteDetectorVersionCommand = exports.deserializeAws_json1_1DeleteDetectorCommand = exports.deserializeAws_json1_1DeleteBatchPredictionJobCommand = exports.deserializeAws_json1_1DeleteBatchImportJobCommand = exports.deserializeAws_json1_1CreateVariableCommand = exports.deserializeAws_json1_1CreateRuleCommand = exports.deserializeAws_json1_1CreateModelVersionCommand = exports.deserializeAws_json1_1CreateModelCommand = exports.deserializeAws_json1_1CreateDetectorVersionCommand = exports.deserializeAws_json1_1CreateBatchPredictionJobCommand = exports.deserializeAws_json1_1CreateBatchImportJobCommand = exports.deserializeAws_json1_1CancelBatchPredictionJobCommand = exports.deserializeAws_json1_1CancelBatchImportJobCommand = exports.deserializeAws_json1_1BatchGetVariableCommand = exports.deserializeAws_json1_1BatchCreateVariableCommand = exports.serializeAws_json1_1UpdateVariableCommand = exports.serializeAws_json1_1UpdateRuleVersionCommand = exports.serializeAws_json1_1UpdateRuleMetadataCommand = exports.serializeAws_json1_1UpdateModelVersionStatusCommand = exports.serializeAws_json1_1UpdateModelVersionCommand = exports.serializeAws_json1_1UpdateModelCommand = exports.serializeAws_json1_1UpdateEventLabelCommand = exports.serializeAws_json1_1UpdateDetectorVersionStatusCommand = exports.serializeAws_json1_1UpdateDetectorVersionMetadataCommand = exports.serializeAws_json1_1UpdateDetectorVersionCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1SendEventCommand = exports.serializeAws_json1_1PutOutcomeCommand = exports.serializeAws_json1_1PutLabelCommand = exports.serializeAws_json1_1PutKMSEncryptionKeyCommand = exports.serializeAws_json1_1PutExternalModelCommand = exports.serializeAws_json1_1PutEventTypeCommand = void 0;
5
+ exports.deserializeAws_json1_1UpdateVariableCommand = exports.deserializeAws_json1_1UpdateRuleVersionCommand = exports.deserializeAws_json1_1UpdateRuleMetadataCommand = exports.deserializeAws_json1_1UpdateModelVersionStatusCommand = exports.deserializeAws_json1_1UpdateModelVersionCommand = exports.deserializeAws_json1_1UpdateModelCommand = exports.deserializeAws_json1_1UpdateEventLabelCommand = exports.deserializeAws_json1_1UpdateDetectorVersionStatusCommand = exports.deserializeAws_json1_1UpdateDetectorVersionMetadataCommand = exports.deserializeAws_json1_1UpdateDetectorVersionCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1SendEventCommand = exports.deserializeAws_json1_1PutOutcomeCommand = exports.deserializeAws_json1_1PutLabelCommand = exports.deserializeAws_json1_1PutKMSEncryptionKeyCommand = exports.deserializeAws_json1_1PutExternalModelCommand = exports.deserializeAws_json1_1PutEventTypeCommand = exports.deserializeAws_json1_1PutEntityTypeCommand = exports.deserializeAws_json1_1PutDetectorCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListEventPredictionsCommand = exports.deserializeAws_json1_1GetVariablesCommand = exports.deserializeAws_json1_1GetRulesCommand = exports.deserializeAws_json1_1GetOutcomesCommand = exports.deserializeAws_json1_1GetModelVersionCommand = exports.deserializeAws_json1_1GetModelsCommand = exports.deserializeAws_json1_1GetLabelsCommand = exports.deserializeAws_json1_1GetKMSEncryptionKeyCommand = exports.deserializeAws_json1_1GetExternalModelsCommand = exports.deserializeAws_json1_1GetEventTypesCommand = exports.deserializeAws_json1_1GetEventPredictionMetadataCommand = exports.deserializeAws_json1_1GetEventPredictionCommand = exports.deserializeAws_json1_1GetEventCommand = exports.deserializeAws_json1_1GetEntityTypesCommand = exports.deserializeAws_json1_1GetDetectorVersionCommand = void 0;
6
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
7
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const serializeAws_json1_1BatchCreateVariableCommand = async (input, context) => {
@@ -365,6 +365,16 @@ const serializeAws_json1_1GetEventPredictionCommand = async (input, context) =>
365
365
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
366
366
  };
367
367
  exports.serializeAws_json1_1GetEventPredictionCommand = serializeAws_json1_1GetEventPredictionCommand;
368
+ const serializeAws_json1_1GetEventPredictionMetadataCommand = async (input, context) => {
369
+ const headers = {
370
+ "content-type": "application/x-amz-json-1.1",
371
+ "x-amz-target": "AWSHawksNestServiceFacade.GetEventPredictionMetadata",
372
+ };
373
+ let body;
374
+ body = JSON.stringify(serializeAws_json1_1GetEventPredictionMetadataRequest(input, context));
375
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
376
+ };
377
+ exports.serializeAws_json1_1GetEventPredictionMetadataCommand = serializeAws_json1_1GetEventPredictionMetadataCommand;
368
378
  const serializeAws_json1_1GetEventTypesCommand = async (input, context) => {
369
379
  const headers = {
370
380
  "content-type": "application/x-amz-json-1.1",
@@ -454,6 +464,16 @@ const serializeAws_json1_1GetVariablesCommand = async (input, context) => {
454
464
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
455
465
  };
456
466
  exports.serializeAws_json1_1GetVariablesCommand = serializeAws_json1_1GetVariablesCommand;
467
+ const serializeAws_json1_1ListEventPredictionsCommand = async (input, context) => {
468
+ const headers = {
469
+ "content-type": "application/x-amz-json-1.1",
470
+ "x-amz-target": "AWSHawksNestServiceFacade.ListEventPredictions",
471
+ };
472
+ let body;
473
+ body = JSON.stringify(serializeAws_json1_1ListEventPredictionsRequest(input, context));
474
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
475
+ };
476
+ exports.serializeAws_json1_1ListEventPredictionsCommand = serializeAws_json1_1ListEventPredictionsCommand;
457
477
  const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
458
478
  const headers = {
459
479
  "content-type": "application/x-amz-json-1.1",
@@ -3468,6 +3488,85 @@ const deserializeAws_json1_1GetEventPredictionCommandError = async (output, cont
3468
3488
  delete response.Message;
3469
3489
  return Promise.reject(Object.assign(new Error(message), response));
3470
3490
  };
3491
+ const deserializeAws_json1_1GetEventPredictionMetadataCommand = async (output, context) => {
3492
+ if (output.statusCode >= 300) {
3493
+ return deserializeAws_json1_1GetEventPredictionMetadataCommandError(output, context);
3494
+ }
3495
+ const data = await parseBody(output.body, context);
3496
+ let contents = {};
3497
+ contents = deserializeAws_json1_1GetEventPredictionMetadataResult(data, context);
3498
+ const response = {
3499
+ $metadata: deserializeMetadata(output),
3500
+ ...contents,
3501
+ };
3502
+ return Promise.resolve(response);
3503
+ };
3504
+ exports.deserializeAws_json1_1GetEventPredictionMetadataCommand = deserializeAws_json1_1GetEventPredictionMetadataCommand;
3505
+ const deserializeAws_json1_1GetEventPredictionMetadataCommandError = async (output, context) => {
3506
+ const parsedOutput = {
3507
+ ...output,
3508
+ body: await parseBody(output.body, context),
3509
+ };
3510
+ let response;
3511
+ let errorCode = "UnknownError";
3512
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3513
+ switch (errorCode) {
3514
+ case "AccessDeniedException":
3515
+ case "com.amazonaws.frauddetector#AccessDeniedException":
3516
+ response = {
3517
+ ...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
3518
+ name: errorCode,
3519
+ $metadata: deserializeMetadata(output),
3520
+ };
3521
+ break;
3522
+ case "InternalServerException":
3523
+ case "com.amazonaws.frauddetector#InternalServerException":
3524
+ response = {
3525
+ ...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
3526
+ name: errorCode,
3527
+ $metadata: deserializeMetadata(output),
3528
+ };
3529
+ break;
3530
+ case "ResourceNotFoundException":
3531
+ case "com.amazonaws.frauddetector#ResourceNotFoundException":
3532
+ response = {
3533
+ ...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
3534
+ name: errorCode,
3535
+ $metadata: deserializeMetadata(output),
3536
+ };
3537
+ break;
3538
+ case "ThrottlingException":
3539
+ case "com.amazonaws.frauddetector#ThrottlingException":
3540
+ response = {
3541
+ ...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
3542
+ name: errorCode,
3543
+ $metadata: deserializeMetadata(output),
3544
+ };
3545
+ break;
3546
+ case "ValidationException":
3547
+ case "com.amazonaws.frauddetector#ValidationException":
3548
+ response = {
3549
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
3550
+ name: errorCode,
3551
+ $metadata: deserializeMetadata(output),
3552
+ };
3553
+ break;
3554
+ default:
3555
+ const parsedBody = parsedOutput.body;
3556
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
3557
+ response = {
3558
+ ...parsedBody,
3559
+ name: `${errorCode}`,
3560
+ message: parsedBody.message || parsedBody.Message || errorCode,
3561
+ $fault: "client",
3562
+ $metadata: deserializeMetadata(output),
3563
+ };
3564
+ }
3565
+ const message = response.message || response.Message || errorCode;
3566
+ response.message = message;
3567
+ delete response.Message;
3568
+ return Promise.reject(Object.assign(new Error(message), response));
3569
+ };
3471
3570
  const deserializeAws_json1_1GetEventTypesCommand = async (output, context) => {
3472
3571
  if (output.statusCode >= 300) {
3473
3572
  return deserializeAws_json1_1GetEventTypesCommandError(output, context);
@@ -4171,6 +4270,77 @@ const deserializeAws_json1_1GetVariablesCommandError = async (output, context) =
4171
4270
  delete response.Message;
4172
4271
  return Promise.reject(Object.assign(new Error(message), response));
4173
4272
  };
4273
+ const deserializeAws_json1_1ListEventPredictionsCommand = async (output, context) => {
4274
+ if (output.statusCode >= 300) {
4275
+ return deserializeAws_json1_1ListEventPredictionsCommandError(output, context);
4276
+ }
4277
+ const data = await parseBody(output.body, context);
4278
+ let contents = {};
4279
+ contents = deserializeAws_json1_1ListEventPredictionsResult(data, context);
4280
+ const response = {
4281
+ $metadata: deserializeMetadata(output),
4282
+ ...contents,
4283
+ };
4284
+ return Promise.resolve(response);
4285
+ };
4286
+ exports.deserializeAws_json1_1ListEventPredictionsCommand = deserializeAws_json1_1ListEventPredictionsCommand;
4287
+ const deserializeAws_json1_1ListEventPredictionsCommandError = async (output, context) => {
4288
+ const parsedOutput = {
4289
+ ...output,
4290
+ body: await parseBody(output.body, context),
4291
+ };
4292
+ let response;
4293
+ let errorCode = "UnknownError";
4294
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4295
+ switch (errorCode) {
4296
+ case "AccessDeniedException":
4297
+ case "com.amazonaws.frauddetector#AccessDeniedException":
4298
+ response = {
4299
+ ...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
4300
+ name: errorCode,
4301
+ $metadata: deserializeMetadata(output),
4302
+ };
4303
+ break;
4304
+ case "InternalServerException":
4305
+ case "com.amazonaws.frauddetector#InternalServerException":
4306
+ response = {
4307
+ ...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
4308
+ name: errorCode,
4309
+ $metadata: deserializeMetadata(output),
4310
+ };
4311
+ break;
4312
+ case "ThrottlingException":
4313
+ case "com.amazonaws.frauddetector#ThrottlingException":
4314
+ response = {
4315
+ ...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
4316
+ name: errorCode,
4317
+ $metadata: deserializeMetadata(output),
4318
+ };
4319
+ break;
4320
+ case "ValidationException":
4321
+ case "com.amazonaws.frauddetector#ValidationException":
4322
+ response = {
4323
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
4324
+ name: errorCode,
4325
+ $metadata: deserializeMetadata(output),
4326
+ };
4327
+ break;
4328
+ default:
4329
+ const parsedBody = parsedOutput.body;
4330
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
4331
+ response = {
4332
+ ...parsedBody,
4333
+ name: `${errorCode}`,
4334
+ message: parsedBody.message || parsedBody.Message || errorCode,
4335
+ $fault: "client",
4336
+ $metadata: deserializeMetadata(output),
4337
+ };
4338
+ }
4339
+ const message = response.message || response.Message || errorCode;
4340
+ response.message = message;
4341
+ delete response.Message;
4342
+ return Promise.reject(Object.assign(new Error(message), response));
4343
+ };
4174
4344
  const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
4175
4345
  if (output.statusCode >= 300) {
4176
4346
  return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
@@ -6238,6 +6408,11 @@ const serializeAws_json1_1ExternalModelEndpointDataBlobMap = (input, context) =>
6238
6408
  };
6239
6409
  }, {});
6240
6410
  };
6411
+ const serializeAws_json1_1FilterCondition = (input, context) => {
6412
+ return {
6413
+ ...(input.value !== undefined && input.value !== null && { value: input.value }),
6414
+ };
6415
+ };
6241
6416
  const serializeAws_json1_1GetBatchImportJobsRequest = (input, context) => {
6242
6417
  return {
6243
6418
  ...(input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }),
@@ -6278,6 +6453,17 @@ const serializeAws_json1_1GetEntityTypesRequest = (input, context) => {
6278
6453
  ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
6279
6454
  };
6280
6455
  };
6456
+ const serializeAws_json1_1GetEventPredictionMetadataRequest = (input, context) => {
6457
+ return {
6458
+ ...(input.detectorId !== undefined && input.detectorId !== null && { detectorId: input.detectorId }),
6459
+ ...(input.detectorVersionId !== undefined &&
6460
+ input.detectorVersionId !== null && { detectorVersionId: input.detectorVersionId }),
6461
+ ...(input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId }),
6462
+ ...(input.eventTypeName !== undefined && input.eventTypeName !== null && { eventTypeName: input.eventTypeName }),
6463
+ ...(input.predictionTimestamp !== undefined &&
6464
+ input.predictionTimestamp !== null && { predictionTimestamp: input.predictionTimestamp }),
6465
+ };
6466
+ };
6281
6467
  const serializeAws_json1_1GetEventPredictionRequest = (input, context) => {
6282
6468
  return {
6283
6469
  ...(input.detectorId !== undefined && input.detectorId !== null && { detectorId: input.detectorId }),
@@ -6409,6 +6595,26 @@ const serializeAws_json1_1LabelSchema = (input, context) => {
6409
6595
  input.unlabeledEventsTreatment !== null && { unlabeledEventsTreatment: input.unlabeledEventsTreatment }),
6410
6596
  };
6411
6597
  };
6598
+ const serializeAws_json1_1ListEventPredictionsRequest = (input, context) => {
6599
+ return {
6600
+ ...(input.detectorId !== undefined &&
6601
+ input.detectorId !== null && { detectorId: serializeAws_json1_1FilterCondition(input.detectorId, context) }),
6602
+ ...(input.detectorVersionId !== undefined &&
6603
+ input.detectorVersionId !== null && {
6604
+ detectorVersionId: serializeAws_json1_1FilterCondition(input.detectorVersionId, context),
6605
+ }),
6606
+ ...(input.eventId !== undefined &&
6607
+ input.eventId !== null && { eventId: serializeAws_json1_1FilterCondition(input.eventId, context) }),
6608
+ ...(input.eventType !== undefined &&
6609
+ input.eventType !== null && { eventType: serializeAws_json1_1FilterCondition(input.eventType, context) }),
6610
+ ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
6611
+ ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
6612
+ ...(input.predictionTimeRange !== undefined &&
6613
+ input.predictionTimeRange !== null && {
6614
+ predictionTimeRange: serializeAws_json1_1PredictionTimeRange(input.predictionTimeRange, context),
6615
+ }),
6616
+ };
6617
+ };
6412
6618
  const serializeAws_json1_1listOfEntities = (input, context) => {
6413
6619
  return input
6414
6620
  .filter((e) => e != null)
@@ -6507,6 +6713,12 @@ const serializeAws_json1_1NonEmptyListOfStrings = (input, context) => {
6507
6713
  return entry;
6508
6714
  });
6509
6715
  };
6716
+ const serializeAws_json1_1PredictionTimeRange = (input, context) => {
6717
+ return {
6718
+ ...(input.endTime !== undefined && input.endTime !== null && { endTime: input.endTime }),
6719
+ ...(input.startTime !== undefined && input.startTime !== null && { startTime: input.startTime }),
6720
+ };
6721
+ };
6510
6722
  const serializeAws_json1_1PutDetectorRequest = (input, context) => {
6511
6723
  return {
6512
6724
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
@@ -7091,6 +7303,51 @@ const deserializeAws_json1_1entityTypeList = (output, context) => {
7091
7303
  return deserializeAws_json1_1EntityType(entry, context);
7092
7304
  });
7093
7305
  };
7306
+ const deserializeAws_json1_1EvaluatedExternalModel = (output, context) => {
7307
+ return {
7308
+ inputVariables: output.inputVariables !== undefined && output.inputVariables !== null
7309
+ ? deserializeAws_json1_1MapOfStrings(output.inputVariables, context)
7310
+ : undefined,
7311
+ modelEndpoint: smithy_client_1.expectString(output.modelEndpoint),
7312
+ outputVariables: output.outputVariables !== undefined && output.outputVariables !== null
7313
+ ? deserializeAws_json1_1MapOfStrings(output.outputVariables, context)
7314
+ : undefined,
7315
+ useEventVariables: smithy_client_1.expectBoolean(output.useEventVariables),
7316
+ };
7317
+ };
7318
+ const deserializeAws_json1_1EvaluatedModelVersion = (output, context) => {
7319
+ return {
7320
+ evaluations: output.evaluations !== undefined && output.evaluations !== null
7321
+ ? deserializeAws_json1_1ListOfModelVersionEvaluations(output.evaluations, context)
7322
+ : undefined,
7323
+ modelId: smithy_client_1.expectString(output.modelId),
7324
+ modelType: smithy_client_1.expectString(output.modelType),
7325
+ modelVersion: smithy_client_1.expectString(output.modelVersion),
7326
+ };
7327
+ };
7328
+ const deserializeAws_json1_1EvaluatedRule = (output, context) => {
7329
+ return {
7330
+ evaluated: smithy_client_1.expectBoolean(output.evaluated),
7331
+ expression: smithy_client_1.expectString(output.expression),
7332
+ expressionWithValues: smithy_client_1.expectString(output.expressionWithValues),
7333
+ matched: smithy_client_1.expectBoolean(output.matched),
7334
+ outcomes: output.outcomes !== undefined && output.outcomes !== null
7335
+ ? deserializeAws_json1_1ListOfStrings(output.outcomes, context)
7336
+ : undefined,
7337
+ ruleId: smithy_client_1.expectString(output.ruleId),
7338
+ ruleVersion: smithy_client_1.expectString(output.ruleVersion),
7339
+ };
7340
+ };
7341
+ const deserializeAws_json1_1EvaluatedRuleList = (output, context) => {
7342
+ return (output || [])
7343
+ .filter((e) => e != null)
7344
+ .map((entry) => {
7345
+ if (entry === null) {
7346
+ return null;
7347
+ }
7348
+ return deserializeAws_json1_1EvaluatedRule(entry, context);
7349
+ });
7350
+ };
7094
7351
  const deserializeAws_json1_1Event = (output, context) => {
7095
7352
  return {
7096
7353
  currentLabel: smithy_client_1.expectString(output.currentLabel),
@@ -7117,6 +7374,16 @@ const deserializeAws_json1_1EventAttributeMap = (output, context) => {
7117
7374
  };
7118
7375
  }, {});
7119
7376
  };
7377
+ const deserializeAws_json1_1EventPredictionSummary = (output, context) => {
7378
+ return {
7379
+ detectorId: smithy_client_1.expectString(output.detectorId),
7380
+ detectorVersionId: smithy_client_1.expectString(output.detectorVersionId),
7381
+ eventId: smithy_client_1.expectString(output.eventId),
7382
+ eventTimestamp: smithy_client_1.expectString(output.eventTimestamp),
7383
+ eventTypeName: smithy_client_1.expectString(output.eventTypeName),
7384
+ predictionTimestamp: smithy_client_1.expectString(output.predictionTimestamp),
7385
+ };
7386
+ };
7120
7387
  const deserializeAws_json1_1EventType = (output, context) => {
7121
7388
  return {
7122
7389
  arn: smithy_client_1.expectString(output.arn),
@@ -7149,6 +7416,13 @@ const deserializeAws_json1_1eventTypeList = (output, context) => {
7149
7416
  return deserializeAws_json1_1EventType(entry, context);
7150
7417
  });
7151
7418
  };
7419
+ const deserializeAws_json1_1EventVariableSummary = (output, context) => {
7420
+ return {
7421
+ name: smithy_client_1.expectString(output.name),
7422
+ source: smithy_client_1.expectString(output.source),
7423
+ value: smithy_client_1.expectString(output.value),
7424
+ };
7425
+ };
7152
7426
  const deserializeAws_json1_1ExternalEventsDetail = (output, context) => {
7153
7427
  return {
7154
7428
  dataAccessRoleArn: smithy_client_1.expectString(output.dataAccessRoleArn),
@@ -7304,6 +7578,35 @@ const deserializeAws_json1_1GetEntityTypesResult = (output, context) => {
7304
7578
  nextToken: smithy_client_1.expectString(output.nextToken),
7305
7579
  };
7306
7580
  };
7581
+ const deserializeAws_json1_1GetEventPredictionMetadataResult = (output, context) => {
7582
+ return {
7583
+ detectorId: smithy_client_1.expectString(output.detectorId),
7584
+ detectorVersionId: smithy_client_1.expectString(output.detectorVersionId),
7585
+ detectorVersionStatus: smithy_client_1.expectString(output.detectorVersionStatus),
7586
+ entityId: smithy_client_1.expectString(output.entityId),
7587
+ entityType: smithy_client_1.expectString(output.entityType),
7588
+ evaluatedExternalModels: output.evaluatedExternalModels !== undefined && output.evaluatedExternalModels !== null
7589
+ ? deserializeAws_json1_1ListOfEvaluatedExternalModels(output.evaluatedExternalModels, context)
7590
+ : undefined,
7591
+ evaluatedModelVersions: output.evaluatedModelVersions !== undefined && output.evaluatedModelVersions !== null
7592
+ ? deserializeAws_json1_1ListOfEvaluatedModelVersions(output.evaluatedModelVersions, context)
7593
+ : undefined,
7594
+ eventId: smithy_client_1.expectString(output.eventId),
7595
+ eventTimestamp: smithy_client_1.expectString(output.eventTimestamp),
7596
+ eventTypeName: smithy_client_1.expectString(output.eventTypeName),
7597
+ eventVariables: output.eventVariables !== undefined && output.eventVariables !== null
7598
+ ? deserializeAws_json1_1ListOfEventVariableSummaries(output.eventVariables, context)
7599
+ : undefined,
7600
+ outcomes: output.outcomes !== undefined && output.outcomes !== null
7601
+ ? deserializeAws_json1_1ListOfStrings(output.outcomes, context)
7602
+ : undefined,
7603
+ predictionTimestamp: smithy_client_1.expectString(output.predictionTimestamp),
7604
+ ruleExecutionMode: smithy_client_1.expectString(output.ruleExecutionMode),
7605
+ rules: output.rules !== undefined && output.rules !== null
7606
+ ? deserializeAws_json1_1EvaluatedRuleList(output.rules, context)
7607
+ : undefined,
7608
+ };
7609
+ };
7307
7610
  const deserializeAws_json1_1GetEventPredictionResult = (output, context) => {
7308
7611
  return {
7309
7612
  externalModelOutputs: output.externalModelOutputs !== undefined && output.externalModelOutputs !== null
@@ -7487,6 +7790,14 @@ const deserializeAws_json1_1LabelSchema = (output, context) => {
7487
7790
  unlabeledEventsTreatment: smithy_client_1.expectString(output.unlabeledEventsTreatment),
7488
7791
  };
7489
7792
  };
7793
+ const deserializeAws_json1_1ListEventPredictionsResult = (output, context) => {
7794
+ return {
7795
+ eventPredictionSummaries: output.eventPredictionSummaries !== undefined && output.eventPredictionSummaries !== null
7796
+ ? deserializeAws_json1_1ListOfEventPredictionSummaries(output.eventPredictionSummaries, context)
7797
+ : undefined,
7798
+ nextToken: smithy_client_1.expectString(output.nextToken),
7799
+ };
7800
+ };
7490
7801
  const deserializeAws_json1_1listOfEntities = (output, context) => {
7491
7802
  return (output || [])
7492
7803
  .filter((e) => e != null)
@@ -7497,6 +7808,46 @@ const deserializeAws_json1_1listOfEntities = (output, context) => {
7497
7808
  return deserializeAws_json1_1Entity(entry, context);
7498
7809
  });
7499
7810
  };
7811
+ const deserializeAws_json1_1ListOfEvaluatedExternalModels = (output, context) => {
7812
+ return (output || [])
7813
+ .filter((e) => e != null)
7814
+ .map((entry) => {
7815
+ if (entry === null) {
7816
+ return null;
7817
+ }
7818
+ return deserializeAws_json1_1EvaluatedExternalModel(entry, context);
7819
+ });
7820
+ };
7821
+ const deserializeAws_json1_1ListOfEvaluatedModelVersions = (output, context) => {
7822
+ return (output || [])
7823
+ .filter((e) => e != null)
7824
+ .map((entry) => {
7825
+ if (entry === null) {
7826
+ return null;
7827
+ }
7828
+ return deserializeAws_json1_1EvaluatedModelVersion(entry, context);
7829
+ });
7830
+ };
7831
+ const deserializeAws_json1_1ListOfEventPredictionSummaries = (output, context) => {
7832
+ return (output || [])
7833
+ .filter((e) => e != null)
7834
+ .map((entry) => {
7835
+ if (entry === null) {
7836
+ return null;
7837
+ }
7838
+ return deserializeAws_json1_1EventPredictionSummary(entry, context);
7839
+ });
7840
+ };
7841
+ const deserializeAws_json1_1ListOfEventVariableSummaries = (output, context) => {
7842
+ return (output || [])
7843
+ .filter((e) => e != null)
7844
+ .map((entry) => {
7845
+ if (entry === null) {
7846
+ return null;
7847
+ }
7848
+ return deserializeAws_json1_1EventVariableSummary(entry, context);
7849
+ });
7850
+ };
7500
7851
  const deserializeAws_json1_1ListOfExternalModelOutputs = (output, context) => {
7501
7852
  return (output || [])
7502
7853
  .filter((e) => e != null)
@@ -7527,6 +7878,16 @@ const deserializeAws_json1_1ListOfModelScores = (output, context) => {
7527
7878
  return deserializeAws_json1_1ModelScores(entry, context);
7528
7879
  });
7529
7880
  };
7881
+ const deserializeAws_json1_1ListOfModelVersionEvaluations = (output, context) => {
7882
+ return (output || [])
7883
+ .filter((e) => e != null)
7884
+ .map((entry) => {
7885
+ if (entry === null) {
7886
+ return null;
7887
+ }
7888
+ return deserializeAws_json1_1ModelVersionEvaluation(entry, context);
7889
+ });
7890
+ };
7530
7891
  const deserializeAws_json1_1ListOfModelVersions = (output, context) => {
7531
7892
  return (output || [])
7532
7893
  .filter((e) => e != null)
@@ -7557,6 +7918,16 @@ const deserializeAws_json1_1ListOfStrings = (output, context) => {
7557
7918
  return smithy_client_1.expectString(entry);
7558
7919
  });
7559
7920
  };
7921
+ const deserializeAws_json1_1listOfVariableImpactExplanations = (output, context) => {
7922
+ return (output || [])
7923
+ .filter((e) => e != null)
7924
+ .map((entry) => {
7925
+ if (entry === null) {
7926
+ return null;
7927
+ }
7928
+ return deserializeAws_json1_1VariableImpactExplanation(entry, context);
7929
+ });
7930
+ };
7560
7931
  const deserializeAws_json1_1ListTagsForResourceResult = (output, context) => {
7561
7932
  return {
7562
7933
  nextToken: smithy_client_1.expectString(output.nextToken),
@@ -7572,6 +7943,17 @@ const deserializeAws_json1_1LogOddsMetric = (output, context) => {
7572
7943
  variableType: smithy_client_1.expectString(output.variableType),
7573
7944
  };
7574
7945
  };
7946
+ const deserializeAws_json1_1MapOfStrings = (output, context) => {
7947
+ return Object.entries(output).reduce((acc, [key, value]) => {
7948
+ if (value === null) {
7949
+ return acc;
7950
+ }
7951
+ return {
7952
+ ...acc,
7953
+ [key]: smithy_client_1.expectString(value),
7954
+ };
7955
+ }, {});
7956
+ };
7575
7957
  const deserializeAws_json1_1MetricDataPoint = (output, context) => {
7576
7958
  return {
7577
7959
  fpr: smithy_client_1.limitedParseFloat32(output.fpr),
@@ -7694,6 +8076,15 @@ const deserializeAws_json1_1modelVersionDetailList = (output, context) => {
7694
8076
  return deserializeAws_json1_1ModelVersionDetail(entry, context);
7695
8077
  });
7696
8078
  };
8079
+ const deserializeAws_json1_1ModelVersionEvaluation = (output, context) => {
8080
+ return {
8081
+ evaluationScore: smithy_client_1.expectString(output.evaluationScore),
8082
+ outputVariableName: smithy_client_1.expectString(output.outputVariableName),
8083
+ predictionExplanations: output.predictionExplanations !== undefined && output.predictionExplanations !== null
8084
+ ? deserializeAws_json1_1PredictionExplanations(output.predictionExplanations, context)
8085
+ : undefined,
8086
+ };
8087
+ };
7697
8088
  const deserializeAws_json1_1NonEmptyListOfStrings = (output, context) => {
7698
8089
  return (output || [])
7699
8090
  .filter((e) => e != null)
@@ -7723,6 +8114,13 @@ const deserializeAws_json1_1OutcomeList = (output, context) => {
7723
8114
  return deserializeAws_json1_1Outcome(entry, context);
7724
8115
  });
7725
8116
  };
8117
+ const deserializeAws_json1_1PredictionExplanations = (output, context) => {
8118
+ return {
8119
+ variableImpactExplanations: output.variableImpactExplanations !== undefined && output.variableImpactExplanations !== null
8120
+ ? deserializeAws_json1_1listOfVariableImpactExplanations(output.variableImpactExplanations, context)
8121
+ : undefined,
8122
+ };
8123
+ };
7726
8124
  const deserializeAws_json1_1PutDetectorResult = (output, context) => {
7727
8125
  return {};
7728
8126
  };
@@ -7921,6 +8319,13 @@ const deserializeAws_json1_1Variable = (output, context) => {
7921
8319
  variableType: smithy_client_1.expectString(output.variableType),
7922
8320
  };
7923
8321
  };
8322
+ const deserializeAws_json1_1VariableImpactExplanation = (output, context) => {
8323
+ return {
8324
+ eventVariableName: smithy_client_1.expectString(output.eventVariableName),
8325
+ logOddsImpact: smithy_client_1.limitedParseFloat32(output.logOddsImpact),
8326
+ relativeImpact: smithy_client_1.expectString(output.relativeImpact),
8327
+ };
8328
+ };
7924
8329
  const deserializeAws_json1_1VariableImportanceMetrics = (output, context) => {
7925
8330
  return {
7926
8331
  logOddsMetrics: output.logOddsMetrics !== undefined && output.logOddsMetrics !== null
@@ -35,6 +35,7 @@ import { GetDetectorVersionCommand, } from "./commands/GetDetectorVersionCommand
35
35
  import { GetEntityTypesCommand, } from "./commands/GetEntityTypesCommand";
36
36
  import { GetEventCommand } from "./commands/GetEventCommand";
37
37
  import { GetEventPredictionCommand, } from "./commands/GetEventPredictionCommand";
38
+ import { GetEventPredictionMetadataCommand, } from "./commands/GetEventPredictionMetadataCommand";
38
39
  import { GetEventTypesCommand, } from "./commands/GetEventTypesCommand";
39
40
  import { GetExternalModelsCommand, } from "./commands/GetExternalModelsCommand";
40
41
  import { GetKMSEncryptionKeyCommand, } from "./commands/GetKMSEncryptionKeyCommand";
@@ -44,6 +45,7 @@ import { GetModelVersionCommand, } from "./commands/GetModelVersionCommand";
44
45
  import { GetOutcomesCommand } from "./commands/GetOutcomesCommand";
45
46
  import { GetRulesCommand } from "./commands/GetRulesCommand";
46
47
  import { GetVariablesCommand, } from "./commands/GetVariablesCommand";
48
+ import { ListEventPredictionsCommand, } from "./commands/ListEventPredictionsCommand";
47
49
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
48
50
  import { PutDetectorCommand } from "./commands/PutDetectorCommand";
49
51
  import { PutEntityTypeCommand, } from "./commands/PutEntityTypeCommand";
@@ -575,6 +577,20 @@ var FraudDetector = (function (_super) {
575
577
  return this.send(command, optionsOrCb);
576
578
  }
577
579
  };
580
+ FraudDetector.prototype.getEventPredictionMetadata = function (args, optionsOrCb, cb) {
581
+ var command = new GetEventPredictionMetadataCommand(args);
582
+ if (typeof optionsOrCb === "function") {
583
+ this.send(command, optionsOrCb);
584
+ }
585
+ else if (typeof cb === "function") {
586
+ if (typeof optionsOrCb !== "object")
587
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
588
+ this.send(command, optionsOrCb || {}, cb);
589
+ }
590
+ else {
591
+ return this.send(command, optionsOrCb);
592
+ }
593
+ };
578
594
  FraudDetector.prototype.getEventTypes = function (args, optionsOrCb, cb) {
579
595
  var command = new GetEventTypesCommand(args);
580
596
  if (typeof optionsOrCb === "function") {
@@ -701,6 +717,20 @@ var FraudDetector = (function (_super) {
701
717
  return this.send(command, optionsOrCb);
702
718
  }
703
719
  };
720
+ FraudDetector.prototype.listEventPredictions = function (args, optionsOrCb, cb) {
721
+ var command = new ListEventPredictionsCommand(args);
722
+ if (typeof optionsOrCb === "function") {
723
+ this.send(command, optionsOrCb);
724
+ }
725
+ else if (typeof cb === "function") {
726
+ if (typeof optionsOrCb !== "object")
727
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
728
+ this.send(command, optionsOrCb || {}, cb);
729
+ }
730
+ else {
731
+ return this.send(command, optionsOrCb);
732
+ }
733
+ };
704
734
  FraudDetector.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
705
735
  var command = new ListTagsForResourceCommand(args);
706
736
  if (typeof optionsOrCb === "function") {