@aws-sdk/client-frauddetector 3.927.0 → 3.929.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist-cjs/index.js +1968 -2499
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/FraudDetectorClient.js +2 -0
  4. package/dist-es/commands/BatchCreateVariableCommand.js +3 -9
  5. package/dist-es/commands/BatchGetVariableCommand.js +3 -9
  6. package/dist-es/commands/CancelBatchImportJobCommand.js +3 -9
  7. package/dist-es/commands/CancelBatchPredictionJobCommand.js +3 -9
  8. package/dist-es/commands/CreateBatchImportJobCommand.js +3 -9
  9. package/dist-es/commands/CreateBatchPredictionJobCommand.js +3 -9
  10. package/dist-es/commands/CreateDetectorVersionCommand.js +3 -9
  11. package/dist-es/commands/CreateListCommand.js +3 -10
  12. package/dist-es/commands/CreateModelCommand.js +3 -9
  13. package/dist-es/commands/CreateModelVersionCommand.js +3 -9
  14. package/dist-es/commands/CreateRuleCommand.js +3 -10
  15. package/dist-es/commands/CreateVariableCommand.js +3 -9
  16. package/dist-es/commands/DeleteBatchImportJobCommand.js +3 -9
  17. package/dist-es/commands/DeleteBatchPredictionJobCommand.js +3 -9
  18. package/dist-es/commands/DeleteDetectorCommand.js +3 -9
  19. package/dist-es/commands/DeleteDetectorVersionCommand.js +3 -9
  20. package/dist-es/commands/DeleteEntityTypeCommand.js +3 -9
  21. package/dist-es/commands/DeleteEventCommand.js +3 -9
  22. package/dist-es/commands/DeleteEventTypeCommand.js +3 -9
  23. package/dist-es/commands/DeleteEventsByEventTypeCommand.js +3 -9
  24. package/dist-es/commands/DeleteExternalModelCommand.js +3 -9
  25. package/dist-es/commands/DeleteLabelCommand.js +3 -9
  26. package/dist-es/commands/DeleteListCommand.js +3 -9
  27. package/dist-es/commands/DeleteModelCommand.js +3 -9
  28. package/dist-es/commands/DeleteModelVersionCommand.js +3 -9
  29. package/dist-es/commands/DeleteOutcomeCommand.js +3 -9
  30. package/dist-es/commands/DeleteRuleCommand.js +3 -9
  31. package/dist-es/commands/DeleteVariableCommand.js +3 -9
  32. package/dist-es/commands/DescribeDetectorCommand.js +3 -9
  33. package/dist-es/commands/DescribeModelVersionsCommand.js +3 -9
  34. package/dist-es/commands/GetBatchImportJobsCommand.js +3 -9
  35. package/dist-es/commands/GetBatchPredictionJobsCommand.js +3 -9
  36. package/dist-es/commands/GetDeleteEventsByEventTypeStatusCommand.js +3 -9
  37. package/dist-es/commands/GetDetectorVersionCommand.js +3 -9
  38. package/dist-es/commands/GetDetectorsCommand.js +3 -9
  39. package/dist-es/commands/GetEntityTypesCommand.js +3 -9
  40. package/dist-es/commands/GetEventCommand.js +3 -10
  41. package/dist-es/commands/GetEventPredictionCommand.js +3 -10
  42. package/dist-es/commands/GetEventPredictionMetadataCommand.js +3 -10
  43. package/dist-es/commands/GetEventTypesCommand.js +3 -10
  44. package/dist-es/commands/GetExternalModelsCommand.js +3 -9
  45. package/dist-es/commands/GetKMSEncryptionKeyCommand.js +3 -9
  46. package/dist-es/commands/GetLabelsCommand.js +3 -9
  47. package/dist-es/commands/GetListElementsCommand.js +3 -10
  48. package/dist-es/commands/GetListsMetadataCommand.js +3 -9
  49. package/dist-es/commands/GetModelVersionCommand.js +3 -9
  50. package/dist-es/commands/GetModelsCommand.js +3 -9
  51. package/dist-es/commands/GetOutcomesCommand.js +3 -9
  52. package/dist-es/commands/GetRulesCommand.js +3 -10
  53. package/dist-es/commands/GetVariablesCommand.js +3 -9
  54. package/dist-es/commands/ListEventPredictionsCommand.js +3 -9
  55. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  56. package/dist-es/commands/PutDetectorCommand.js +3 -9
  57. package/dist-es/commands/PutEntityTypeCommand.js +3 -9
  58. package/dist-es/commands/PutEventTypeCommand.js +3 -9
  59. package/dist-es/commands/PutExternalModelCommand.js +3 -9
  60. package/dist-es/commands/PutKMSEncryptionKeyCommand.js +3 -9
  61. package/dist-es/commands/PutLabelCommand.js +3 -9
  62. package/dist-es/commands/PutOutcomeCommand.js +3 -9
  63. package/dist-es/commands/SendEventCommand.js +3 -10
  64. package/dist-es/commands/TagResourceCommand.js +3 -9
  65. package/dist-es/commands/UntagResourceCommand.js +3 -9
  66. package/dist-es/commands/UpdateDetectorVersionCommand.js +3 -9
  67. package/dist-es/commands/UpdateDetectorVersionMetadataCommand.js +3 -9
  68. package/dist-es/commands/UpdateDetectorVersionStatusCommand.js +3 -9
  69. package/dist-es/commands/UpdateEventLabelCommand.js +3 -9
  70. package/dist-es/commands/UpdateListCommand.js +3 -10
  71. package/dist-es/commands/UpdateModelCommand.js +3 -9
  72. package/dist-es/commands/UpdateModelVersionCommand.js +3 -9
  73. package/dist-es/commands/UpdateModelVersionStatusCommand.js +3 -9
  74. package/dist-es/commands/UpdateRuleMetadataCommand.js +3 -9
  75. package/dist-es/commands/UpdateRuleVersionCommand.js +3 -10
  76. package/dist-es/commands/UpdateVariableCommand.js +3 -9
  77. package/dist-es/models/models_0.js +0 -85
  78. package/dist-es/runtimeConfig.shared.js +7 -0
  79. package/dist-es/schemas/schemas_0.js +1808 -0
  80. package/dist-types/FraudDetectorClient.d.ts +10 -1
  81. package/dist-types/models/models_0.d.ts +0 -72
  82. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  83. package/dist-types/runtimeConfig.d.ts +1 -0
  84. package/dist-types/runtimeConfig.native.d.ts +1 -0
  85. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  86. package/dist-types/schemas/schemas_0.d.ts +357 -0
  87. package/dist-types/ts3.4/FraudDetectorClient.d.ts +4 -0
  88. package/dist-types/ts3.4/models/models_0.d.ts +0 -46
  89. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  90. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  91. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  92. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  93. package/dist-types/ts3.4/schemas/schemas_0.d.ts +364 -0
  94. package/package.json +5 -5
  95. package/dist-es/protocols/Aws_json1_1.js +0 -1869
  96. package/dist-types/protocols/Aws_json1_1.d.ts +0 -659
  97. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -881
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateModelVersionCommand, se_UpdateModelVersionCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateModelVersion } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateModelVersionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSHawksNestServiceFacade", "UpdateModelVersion", {})
17
13
  .n("FraudDetectorClient", "UpdateModelVersionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateModelVersionCommand)
20
- .de(de_UpdateModelVersionCommand)
14
+ .sc(UpdateModelVersion)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateModelVersionStatusCommand, se_UpdateModelVersionStatusCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateModelVersionStatus } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateModelVersionStatusCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSHawksNestServiceFacade", "UpdateModelVersionStatus", {})
17
13
  .n("FraudDetectorClient", "UpdateModelVersionStatusCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateModelVersionStatusCommand)
20
- .de(de_UpdateModelVersionStatusCommand)
14
+ .sc(UpdateModelVersionStatus)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateRuleMetadataCommand, se_UpdateRuleMetadataCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateRuleMetadata } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateRuleMetadataCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSHawksNestServiceFacade", "UpdateRuleMetadata", {})
17
13
  .n("FraudDetectorClient", "UpdateRuleMetadataCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateRuleMetadataCommand)
20
- .de(de_UpdateRuleMetadataCommand)
14
+ .sc(UpdateRuleMetadata)
21
15
  .build() {
22
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { UpdateRuleVersionRequestFilterSensitiveLog, } from "../models/models_0";
6
- import { de_UpdateRuleVersionCommand, se_UpdateRuleVersionCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateRuleVersion } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class UpdateRuleVersionCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AWSHawksNestServiceFacade", "UpdateRuleVersion", {})
18
13
  .n("FraudDetectorClient", "UpdateRuleVersionCommand")
19
- .f(UpdateRuleVersionRequestFilterSensitiveLog, void 0)
20
- .ser(se_UpdateRuleVersionCommand)
21
- .de(de_UpdateRuleVersionCommand)
14
+ .sc(UpdateRuleVersion)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateVariableCommand, se_UpdateVariableCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateVariable } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateVariableCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSHawksNestServiceFacade", "UpdateVariable", {})
17
13
  .n("FraudDetectorClient", "UpdateVariableCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateVariableCommand)
20
- .de(de_UpdateVariableCommand)
14
+ .sc(UpdateVariable)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { FraudDetectorServiceException as __BaseException } from "./FraudDetectorServiceException";
3
2
  export class AccessDeniedException extends __BaseException {
4
3
  name = "AccessDeniedException";
@@ -160,87 +159,3 @@ export const ModelVersionStatus = {
160
159
  INACTIVE: "INACTIVE",
161
160
  TRAINING_CANCELLED: "TRAINING_CANCELLED",
162
161
  };
163
- export const CreateListRequestFilterSensitiveLog = (obj) => ({
164
- ...obj,
165
- ...(obj.elements && { elements: SENSITIVE_STRING }),
166
- });
167
- export const CreateRuleRequestFilterSensitiveLog = (obj) => ({
168
- ...obj,
169
- ...(obj.expression && { expression: SENSITIVE_STRING }),
170
- });
171
- export const EntityFilterSensitiveLog = (obj) => ({
172
- ...obj,
173
- });
174
- export const EventFilterSensitiveLog = (obj) => ({
175
- ...obj,
176
- ...(obj.eventVariables && { eventVariables: SENSITIVE_STRING }),
177
- ...(obj.entities && { entities: SENSITIVE_STRING }),
178
- });
179
- export const GetEventResultFilterSensitiveLog = (obj) => ({
180
- ...obj,
181
- ...(obj.event && { event: EventFilterSensitiveLog(obj.event) }),
182
- });
183
- export const GetEventPredictionRequestFilterSensitiveLog = (obj) => ({
184
- ...obj,
185
- ...(obj.entities && { entities: SENSITIVE_STRING }),
186
- ...(obj.eventVariables && { eventVariables: SENSITIVE_STRING }),
187
- ...(obj.externalModelEndpointDataBlobs && { externalModelEndpointDataBlobs: SENSITIVE_STRING }),
188
- });
189
- export const EvaluatedExternalModelFilterSensitiveLog = (obj) => ({
190
- ...obj,
191
- ...(obj.inputVariables && { inputVariables: SENSITIVE_STRING }),
192
- ...(obj.outputVariables && { outputVariables: SENSITIVE_STRING }),
193
- });
194
- export const EventVariableSummaryFilterSensitiveLog = (obj) => ({
195
- ...obj,
196
- ...(obj.name && { name: SENSITIVE_STRING }),
197
- ...(obj.value && { value: SENSITIVE_STRING }),
198
- ...(obj.source && { source: SENSITIVE_STRING }),
199
- });
200
- export const EvaluatedRuleFilterSensitiveLog = (obj) => ({
201
- ...obj,
202
- ...(obj.expression && { expression: SENSITIVE_STRING }),
203
- ...(obj.expressionWithValues && { expressionWithValues: SENSITIVE_STRING }),
204
- });
205
- export const GetEventPredictionMetadataResultFilterSensitiveLog = (obj) => ({
206
- ...obj,
207
- ...(obj.eventVariables && {
208
- eventVariables: obj.eventVariables.map((item) => EventVariableSummaryFilterSensitiveLog(item)),
209
- }),
210
- ...(obj.rules && { rules: obj.rules.map((item) => EvaluatedRuleFilterSensitiveLog(item)) }),
211
- ...(obj.evaluatedExternalModels && {
212
- evaluatedExternalModels: obj.evaluatedExternalModels.map((item) => EvaluatedExternalModelFilterSensitiveLog(item)),
213
- }),
214
- });
215
- export const EventTypeFilterSensitiveLog = (obj) => ({
216
- ...obj,
217
- });
218
- export const GetEventTypesResultFilterSensitiveLog = (obj) => ({
219
- ...obj,
220
- ...(obj.eventTypes && { eventTypes: SENSITIVE_STRING }),
221
- });
222
- export const GetListElementsResultFilterSensitiveLog = (obj) => ({
223
- ...obj,
224
- ...(obj.elements && { elements: SENSITIVE_STRING }),
225
- });
226
- export const RuleDetailFilterSensitiveLog = (obj) => ({
227
- ...obj,
228
- ...(obj.expression && { expression: SENSITIVE_STRING }),
229
- });
230
- export const GetRulesResultFilterSensitiveLog = (obj) => ({
231
- ...obj,
232
- ...(obj.ruleDetails && { ruleDetails: obj.ruleDetails.map((item) => RuleDetailFilterSensitiveLog(item)) }),
233
- });
234
- export const SendEventRequestFilterSensitiveLog = (obj) => ({
235
- ...obj,
236
- ...(obj.eventVariables && { eventVariables: SENSITIVE_STRING }),
237
- ...(obj.entities && { entities: SENSITIVE_STRING }),
238
- });
239
- export const UpdateListRequestFilterSensitiveLog = (obj) => ({
240
- ...obj,
241
- ...(obj.elements && { elements: SENSITIVE_STRING }),
242
- });
243
- export const UpdateRuleVersionRequestFilterSensitiveLog = (obj) => ({
244
- ...obj,
245
- ...(obj.expression && { expression: SENSITIVE_STRING }),
246
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_1Protocol({
28
+ defaultNamespace: "com.amazonaws.frauddetector",
29
+ serviceTarget: "AWSHawksNestServiceFacade",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "FraudDetector",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,