@aws-sdk/client-frauddetector 3.100.0 → 3.105.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.105.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.104.0...v3.105.0) (2022-06-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** support recursion detection in Lambda ([#3654](https://github.com/aws/aws-sdk-js-v3/issues/3654)) ([ecfe46e](https://github.com/aws/aws-sdk-js-v3/commit/ecfe46ea1fd8b6e3812b75b3dc6c03554fb4b3fa))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-frauddetector
|
|
@@ -5,6 +5,7 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
5
5
|
const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
|
|
6
6
|
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
7
7
|
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
8
|
+
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
8
9
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
9
10
|
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
10
11
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
@@ -25,6 +26,7 @@ class FraudDetectorClient extends smithy_client_1.Client {
|
|
|
25
26
|
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
26
27
|
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
27
28
|
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
29
|
+
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
28
30
|
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
29
31
|
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
30
32
|
}
|
|
@@ -3,6 +3,7 @@ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-re
|
|
|
3
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
5
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
6
7
|
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
7
8
|
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
@@ -25,6 +26,7 @@ var FraudDetectorClient = (function (_super) {
|
|
|
25
26
|
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
26
27
|
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
27
28
|
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
28
30
|
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
29
31
|
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
30
32
|
return _this;
|
|
@@ -636,9 +636,7 @@ export interface LabelSchema {
|
|
|
636
636
|
* <p>The label mapper maps the Amazon Fraud Detector supported model classification labels (<code>FRAUD</code>, <code>LEGIT</code>) to the appropriate event type labels. For example, if "<code>FRAUD</code>" and "<code>LEGIT</code>" are Amazon Fraud Detector supported labels, this mapper could be: <code>{"FRAUD" => ["0"]</code>, <code>"LEGIT" => ["1"]}</code> or <code>{"FRAUD" => ["false"]</code>, <code>"LEGIT" => ["true"]}</code> or <code>{"FRAUD" => ["fraud", "abuse"]</code>, <code>"LEGIT" => ["legit", "safe"]}</code>. The value part of the mapper is a list, because you may have multiple label variants from your event type for a single Amazon Fraud Detector label.
|
|
637
637
|
* </p>
|
|
638
638
|
*/
|
|
639
|
-
labelMapper:
|
|
640
|
-
[key: string]: string[];
|
|
641
|
-
} | undefined;
|
|
639
|
+
labelMapper: Record<string, string[]> | undefined;
|
|
642
640
|
/**
|
|
643
641
|
* <p>The action to take for unlabeled events.</p>
|
|
644
642
|
*/
|
|
@@ -2027,9 +2025,7 @@ export interface Event {
|
|
|
2027
2025
|
/**
|
|
2028
2026
|
* <p>Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.</p>
|
|
2029
2027
|
*/
|
|
2030
|
-
eventVariables?:
|
|
2031
|
-
[key: string]: string;
|
|
2032
|
-
};
|
|
2028
|
+
eventVariables?: Record<string, string>;
|
|
2033
2029
|
/**
|
|
2034
2030
|
* <p>The label associated with the event.</p>
|
|
2035
2031
|
*/
|
|
@@ -2126,15 +2122,11 @@ export interface GetEventPredictionRequest {
|
|
|
2126
2122
|
* <p>If a null value is provided explicitly for a variable, the model and rules will use “null” as the value. If a variable is not provided (no variable name in the eventVariables map), model and rules
|
|
2127
2123
|
* will use the default value that is provided for the variable. </p>
|
|
2128
2124
|
*/
|
|
2129
|
-
eventVariables:
|
|
2130
|
-
[key: string]: string;
|
|
2131
|
-
} | undefined;
|
|
2125
|
+
eventVariables: Record<string, string> | undefined;
|
|
2132
2126
|
/**
|
|
2133
2127
|
* <p>The Amazon SageMaker model endpoint input data blobs.</p>
|
|
2134
2128
|
*/
|
|
2135
|
-
externalModelEndpointDataBlobs?:
|
|
2136
|
-
[key: string]: ModelEndpointDataBlob;
|
|
2137
|
-
};
|
|
2129
|
+
externalModelEndpointDataBlobs?: Record<string, ModelEndpointDataBlob>;
|
|
2138
2130
|
}
|
|
2139
2131
|
export declare namespace GetEventPredictionRequest {
|
|
2140
2132
|
/**
|
|
@@ -2175,9 +2167,7 @@ export interface ExternalModelOutputs {
|
|
|
2175
2167
|
/**
|
|
2176
2168
|
* <p>The fraud prediction scores from Amazon SageMaker model.</p>
|
|
2177
2169
|
*/
|
|
2178
|
-
outputs?:
|
|
2179
|
-
[key: string]: string;
|
|
2180
|
-
};
|
|
2170
|
+
outputs?: Record<string, string>;
|
|
2181
2171
|
}
|
|
2182
2172
|
export declare namespace ExternalModelOutputs {
|
|
2183
2173
|
/**
|
|
@@ -2196,9 +2186,7 @@ export interface ModelScores {
|
|
|
2196
2186
|
/**
|
|
2197
2187
|
* <p>The model's fraud prediction scores.</p>
|
|
2198
2188
|
*/
|
|
2199
|
-
scores?:
|
|
2200
|
-
[key: string]: number;
|
|
2201
|
-
};
|
|
2189
|
+
scores?: Record<string, number>;
|
|
2202
2190
|
}
|
|
2203
2191
|
export declare namespace ModelScores {
|
|
2204
2192
|
/**
|
|
@@ -2317,17 +2305,13 @@ export interface EvaluatedExternalModel {
|
|
|
2317
2305
|
* Input variables use for generating predictions.
|
|
2318
2306
|
* </p>
|
|
2319
2307
|
*/
|
|
2320
|
-
inputVariables?:
|
|
2321
|
-
[key: string]: string;
|
|
2322
|
-
};
|
|
2308
|
+
inputVariables?: Record<string, string>;
|
|
2323
2309
|
/**
|
|
2324
2310
|
* <p>
|
|
2325
2311
|
* Output variables.
|
|
2326
2312
|
* </p>
|
|
2327
2313
|
*/
|
|
2328
|
-
outputVariables?:
|
|
2329
|
-
[key: string]: string;
|
|
2330
|
-
};
|
|
2314
|
+
outputVariables?: Record<string, string>;
|
|
2331
2315
|
}
|
|
2332
2316
|
export declare namespace EvaluatedExternalModel {
|
|
2333
2317
|
/**
|
|
@@ -2846,15 +2830,11 @@ export interface ModelOutputConfiguration {
|
|
|
2846
2830
|
/**
|
|
2847
2831
|
* <p>A map of JSON keys in response from SageMaker to the Amazon Fraud Detector variables. </p>
|
|
2848
2832
|
*/
|
|
2849
|
-
jsonKeyToVariableMap?:
|
|
2850
|
-
[key: string]: string;
|
|
2851
|
-
};
|
|
2833
|
+
jsonKeyToVariableMap?: Record<string, string>;
|
|
2852
2834
|
/**
|
|
2853
2835
|
* <p>A map of CSV index values in the SageMaker response to the Amazon Fraud Detector variables. </p>
|
|
2854
2836
|
*/
|
|
2855
|
-
csvIndexToVariableMap?:
|
|
2856
|
-
[key: string]: string;
|
|
2857
|
-
};
|
|
2837
|
+
csvIndexToVariableMap?: Record<string, string>;
|
|
2858
2838
|
}
|
|
2859
2839
|
export declare namespace ModelOutputConfiguration {
|
|
2860
2840
|
/**
|
|
@@ -3850,9 +3830,7 @@ export interface SendEventRequest {
|
|
|
3850
3830
|
/**
|
|
3851
3831
|
* <p>Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.</p>
|
|
3852
3832
|
*/
|
|
3853
|
-
eventVariables:
|
|
3854
|
-
[key: string]: string;
|
|
3855
|
-
} | undefined;
|
|
3833
|
+
eventVariables: Record<string, string> | undefined;
|
|
3856
3834
|
/**
|
|
3857
3835
|
* <p>The label to associate with the event. Required if specifying <code>labelTimestamp</code>.</p>
|
|
3858
3836
|
*/
|
|
@@ -385,9 +385,7 @@ export declare enum UnlabeledEventsTreatment {
|
|
|
385
385
|
|
|
386
386
|
export interface LabelSchema {
|
|
387
387
|
|
|
388
|
-
labelMapper:
|
|
389
|
-
[key: string]: string[];
|
|
390
|
-
} | undefined;
|
|
388
|
+
labelMapper: Record<string, string[]> | undefined;
|
|
391
389
|
|
|
392
390
|
unlabeledEventsTreatment?: UnlabeledEventsTreatment | string;
|
|
393
391
|
}
|
|
@@ -1214,9 +1212,7 @@ export interface Event {
|
|
|
1214
1212
|
|
|
1215
1213
|
eventTimestamp?: string;
|
|
1216
1214
|
|
|
1217
|
-
eventVariables?:
|
|
1218
|
-
[key: string]: string;
|
|
1219
|
-
};
|
|
1215
|
+
eventVariables?: Record<string, string>;
|
|
1220
1216
|
|
|
1221
1217
|
currentLabel?: string;
|
|
1222
1218
|
|
|
@@ -1261,13 +1257,9 @@ export interface GetEventPredictionRequest {
|
|
|
1261
1257
|
|
|
1262
1258
|
eventTimestamp: string | undefined;
|
|
1263
1259
|
|
|
1264
|
-
eventVariables:
|
|
1265
|
-
[key: string]: string;
|
|
1266
|
-
} | undefined;
|
|
1260
|
+
eventVariables: Record<string, string> | undefined;
|
|
1267
1261
|
|
|
1268
|
-
externalModelEndpointDataBlobs?:
|
|
1269
|
-
[key: string]: ModelEndpointDataBlob;
|
|
1270
|
-
};
|
|
1262
|
+
externalModelEndpointDataBlobs?: Record<string, ModelEndpointDataBlob>;
|
|
1271
1263
|
}
|
|
1272
1264
|
export declare namespace GetEventPredictionRequest {
|
|
1273
1265
|
|
|
@@ -1292,9 +1284,7 @@ export interface ExternalModelOutputs {
|
|
|
1292
1284
|
|
|
1293
1285
|
externalModel?: ExternalModelSummary;
|
|
1294
1286
|
|
|
1295
|
-
outputs?:
|
|
1296
|
-
[key: string]: string;
|
|
1297
|
-
};
|
|
1287
|
+
outputs?: Record<string, string>;
|
|
1298
1288
|
}
|
|
1299
1289
|
export declare namespace ExternalModelOutputs {
|
|
1300
1290
|
|
|
@@ -1305,9 +1295,7 @@ export interface ModelScores {
|
|
|
1305
1295
|
|
|
1306
1296
|
modelVersion?: ModelVersion;
|
|
1307
1297
|
|
|
1308
|
-
scores?:
|
|
1309
|
-
[key: string]: number;
|
|
1310
|
-
};
|
|
1298
|
+
scores?: Record<string, number>;
|
|
1311
1299
|
}
|
|
1312
1300
|
export declare namespace ModelScores {
|
|
1313
1301
|
|
|
@@ -1366,13 +1354,9 @@ export interface EvaluatedExternalModel {
|
|
|
1366
1354
|
|
|
1367
1355
|
useEventVariables?: boolean;
|
|
1368
1356
|
|
|
1369
|
-
inputVariables?:
|
|
1370
|
-
[key: string]: string;
|
|
1371
|
-
};
|
|
1357
|
+
inputVariables?: Record<string, string>;
|
|
1372
1358
|
|
|
1373
|
-
outputVariables?:
|
|
1374
|
-
[key: string]: string;
|
|
1375
|
-
};
|
|
1359
|
+
outputVariables?: Record<string, string>;
|
|
1376
1360
|
}
|
|
1377
1361
|
export declare namespace EvaluatedExternalModel {
|
|
1378
1362
|
|
|
@@ -1614,13 +1598,9 @@ export interface ModelOutputConfiguration {
|
|
|
1614
1598
|
|
|
1615
1599
|
format: ModelOutputDataFormat | string | undefined;
|
|
1616
1600
|
|
|
1617
|
-
jsonKeyToVariableMap?:
|
|
1618
|
-
[key: string]: string;
|
|
1619
|
-
};
|
|
1601
|
+
jsonKeyToVariableMap?: Record<string, string>;
|
|
1620
1602
|
|
|
1621
|
-
csvIndexToVariableMap?:
|
|
1622
|
-
[key: string]: string;
|
|
1623
|
-
};
|
|
1603
|
+
csvIndexToVariableMap?: Record<string, string>;
|
|
1624
1604
|
}
|
|
1625
1605
|
export declare namespace ModelOutputConfiguration {
|
|
1626
1606
|
|
|
@@ -2151,9 +2131,7 @@ export interface SendEventRequest {
|
|
|
2151
2131
|
|
|
2152
2132
|
eventTimestamp: string | undefined;
|
|
2153
2133
|
|
|
2154
|
-
eventVariables:
|
|
2155
|
-
[key: string]: string;
|
|
2156
|
-
} | undefined;
|
|
2134
|
+
eventVariables: Record<string, string> | undefined;
|
|
2157
2135
|
|
|
2158
2136
|
assignedLabel?: string;
|
|
2159
2137
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-frauddetector",
|
|
3
3
|
"description": "AWS SDK for JavaScript Frauddetector Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.105.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,15 +18,16 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.105.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.80.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.105.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.78.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.78.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.78.0",
|
|
27
27
|
"@aws-sdk/middleware-content-length": "3.78.0",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "3.78.0",
|
|
29
29
|
"@aws-sdk/middleware-logger": "3.78.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.105.0",
|
|
30
31
|
"@aws-sdk/middleware-retry": "3.80.0",
|
|
31
32
|
"@aws-sdk/middleware-serde": "3.78.0",
|
|
32
33
|
"@aws-sdk/middleware-signing": "3.78.0",
|