@aws-sdk/client-personalize-runtime 3.296.0 → 3.298.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/GetPersonalizedRankingCommand.js +1 -1
- package/dist-cjs/commands/GetRecommendationsCommand.js +1 -1
- package/dist-cjs/models/models_0.js +1 -13
- package/dist-es/commands/GetPersonalizedRankingCommand.js +2 -2
- package/dist-es/commands/GetRecommendationsCommand.js +2 -2
- package/dist-es/models/models_0.js +0 -9
- package/dist-types/PersonalizeRuntime.d.ts +3 -0
- package/dist-types/PersonalizeRuntimeClient.d.ts +24 -4
- package/dist-types/commands/GetPersonalizedRankingCommand.d.ts +16 -0
- package/dist-types/commands/GetRecommendationsCommand.d.ts +16 -0
- package/dist-types/models/PersonalizeRuntimeServiceException.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +16 -12
- package/dist-types/ts3.4/models/models_0.d.ts +0 -9
- package/package.json +4 -3
|
@@ -31,7 +31,7 @@ class GetPersonalizedRankingCommand extends smithy_client_1.Command {
|
|
|
31
31
|
clientName,
|
|
32
32
|
commandName,
|
|
33
33
|
inputFilterSensitiveLog: models_0_1.GetPersonalizedRankingRequestFilterSensitiveLog,
|
|
34
|
-
outputFilterSensitiveLog:
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -31,7 +31,7 @@ class GetRecommendationsCommand extends smithy_client_1.Command {
|
|
|
31
31
|
clientName,
|
|
32
32
|
commandName,
|
|
33
33
|
inputFilterSensitiveLog: models_0_1.GetRecommendationsRequestFilterSensitiveLog,
|
|
34
|
-
outputFilterSensitiveLog:
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.GetRecommendationsRequestFilterSensitiveLog = exports.PromotionFilterSensitiveLog = exports.GetPersonalizedRankingRequestFilterSensitiveLog = exports.ResourceNotFoundException = exports.InvalidInputException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const PersonalizeRuntimeServiceException_1 = require("./PersonalizeRuntimeServiceException");
|
|
6
6
|
class InvalidInputException extends PersonalizeRuntimeServiceException_1.PersonalizeRuntimeServiceException {
|
|
@@ -35,14 +35,6 @@ const GetPersonalizedRankingRequestFilterSensitiveLog = (obj) => ({
|
|
|
35
35
|
...(obj.filterValues && { filterValues: smithy_client_1.SENSITIVE_STRING }),
|
|
36
36
|
});
|
|
37
37
|
exports.GetPersonalizedRankingRequestFilterSensitiveLog = GetPersonalizedRankingRequestFilterSensitiveLog;
|
|
38
|
-
const PredictedItemFilterSensitiveLog = (obj) => ({
|
|
39
|
-
...obj,
|
|
40
|
-
});
|
|
41
|
-
exports.PredictedItemFilterSensitiveLog = PredictedItemFilterSensitiveLog;
|
|
42
|
-
const GetPersonalizedRankingResponseFilterSensitiveLog = (obj) => ({
|
|
43
|
-
...obj,
|
|
44
|
-
});
|
|
45
|
-
exports.GetPersonalizedRankingResponseFilterSensitiveLog = GetPersonalizedRankingResponseFilterSensitiveLog;
|
|
46
38
|
const PromotionFilterSensitiveLog = (obj) => ({
|
|
47
39
|
...obj,
|
|
48
40
|
...(obj.filterValues && { filterValues: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -55,7 +47,3 @@ const GetRecommendationsRequestFilterSensitiveLog = (obj) => ({
|
|
|
55
47
|
...(obj.promotions && { promotions: obj.promotions.map((item) => (0, exports.PromotionFilterSensitiveLog)(item)) }),
|
|
56
48
|
});
|
|
57
49
|
exports.GetRecommendationsRequestFilterSensitiveLog = GetRecommendationsRequestFilterSensitiveLog;
|
|
58
|
-
const GetRecommendationsResponseFilterSensitiveLog = (obj) => ({
|
|
59
|
-
...obj,
|
|
60
|
-
});
|
|
61
|
-
exports.GetRecommendationsResponseFilterSensitiveLog = GetRecommendationsResponseFilterSensitiveLog;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { GetPersonalizedRankingRequestFilterSensitiveLog,
|
|
4
|
+
import { GetPersonalizedRankingRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1GetPersonalizedRankingCommand, serializeAws_restJson1GetPersonalizedRankingCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class GetPersonalizedRankingCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
@@ -28,7 +28,7 @@ export class GetPersonalizedRankingCommand extends $Command {
|
|
|
28
28
|
clientName,
|
|
29
29
|
commandName,
|
|
30
30
|
inputFilterSensitiveLog: GetPersonalizedRankingRequestFilterSensitiveLog,
|
|
31
|
-
outputFilterSensitiveLog:
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
32
|
};
|
|
33
33
|
const { requestHandler } = configuration;
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { GetRecommendationsRequestFilterSensitiveLog,
|
|
4
|
+
import { GetRecommendationsRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1GetRecommendationsCommand, serializeAws_restJson1GetRecommendationsCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class GetRecommendationsCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
@@ -28,7 +28,7 @@ export class GetRecommendationsCommand extends $Command {
|
|
|
28
28
|
clientName,
|
|
29
29
|
commandName,
|
|
30
30
|
inputFilterSensitiveLog: GetRecommendationsRequestFilterSensitiveLog,
|
|
31
|
-
outputFilterSensitiveLog:
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
32
|
};
|
|
33
33
|
const { requestHandler } = configuration;
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -29,12 +29,6 @@ export const GetPersonalizedRankingRequestFilterSensitiveLog = (obj) => ({
|
|
|
29
29
|
...(obj.context && { context: SENSITIVE_STRING }),
|
|
30
30
|
...(obj.filterValues && { filterValues: SENSITIVE_STRING }),
|
|
31
31
|
});
|
|
32
|
-
export const PredictedItemFilterSensitiveLog = (obj) => ({
|
|
33
|
-
...obj,
|
|
34
|
-
});
|
|
35
|
-
export const GetPersonalizedRankingResponseFilterSensitiveLog = (obj) => ({
|
|
36
|
-
...obj,
|
|
37
|
-
});
|
|
38
32
|
export const PromotionFilterSensitiveLog = (obj) => ({
|
|
39
33
|
...obj,
|
|
40
34
|
...(obj.filterValues && { filterValues: SENSITIVE_STRING }),
|
|
@@ -45,6 +39,3 @@ export const GetRecommendationsRequestFilterSensitiveLog = (obj) => ({
|
|
|
45
39
|
...(obj.filterValues && { filterValues: SENSITIVE_STRING }),
|
|
46
40
|
...(obj.promotions && { promotions: obj.promotions.map((item) => PromotionFilterSensitiveLog(item)) }),
|
|
47
41
|
});
|
|
48
|
-
export const GetRecommendationsResponseFilterSensitiveLog = (obj) => ({
|
|
49
|
-
...obj,
|
|
50
|
-
});
|
|
@@ -3,10 +3,12 @@ import { GetPersonalizedRankingCommandInput, GetPersonalizedRankingCommandOutput
|
|
|
3
3
|
import { GetRecommendationsCommandInput, GetRecommendationsCommandOutput } from "./commands/GetRecommendationsCommand";
|
|
4
4
|
import { PersonalizeRuntimeClient } from "./PersonalizeRuntimeClient";
|
|
5
5
|
/**
|
|
6
|
+
* @public
|
|
6
7
|
* <p></p>
|
|
7
8
|
*/
|
|
8
9
|
export declare class PersonalizeRuntime extends PersonalizeRuntimeClient {
|
|
9
10
|
/**
|
|
11
|
+
* @public
|
|
10
12
|
* <p>Re-ranks a list of recommended items for the given user. The first item in the list is
|
|
11
13
|
* deemed the most likely item to be of interest to the user.</p>
|
|
12
14
|
* <note>
|
|
@@ -18,6 +20,7 @@ export declare class PersonalizeRuntime extends PersonalizeRuntimeClient {
|
|
|
18
20
|
getPersonalizedRanking(args: GetPersonalizedRankingCommandInput, cb: (err: any, data?: GetPersonalizedRankingCommandOutput) => void): void;
|
|
19
21
|
getPersonalizedRanking(args: GetPersonalizedRankingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPersonalizedRankingCommandOutput) => void): void;
|
|
20
22
|
/**
|
|
23
|
+
* @public
|
|
21
24
|
* <p>Returns a list of recommended items. For campaigns, the campaign's Amazon Resource Name (ARN) is required and the required user and item input depends on the recipe type used to
|
|
22
25
|
* create the solution backing the campaign as follows:</p>
|
|
23
26
|
* <ul>
|
|
@@ -10,15 +10,24 @@ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as
|
|
|
10
10
|
import { GetPersonalizedRankingCommandInput, GetPersonalizedRankingCommandOutput } from "./commands/GetPersonalizedRankingCommand";
|
|
11
11
|
import { GetRecommendationsCommandInput, GetRecommendationsCommandOutput } from "./commands/GetRecommendationsCommand";
|
|
12
12
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
13
16
|
export type ServiceInputTypes = GetPersonalizedRankingCommandInput | GetRecommendationsCommandInput;
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
14
20
|
export type ServiceOutputTypes = GetPersonalizedRankingCommandOutput | GetRecommendationsCommandOutput;
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
15
24
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
16
25
|
/**
|
|
17
26
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
18
27
|
*/
|
|
19
28
|
requestHandler?: __HttpHandler;
|
|
20
29
|
/**
|
|
21
|
-
* A constructor for a class implementing the {@link
|
|
30
|
+
* A constructor for a class implementing the {@link @aws-sdk/types#ChecksumConstructor} interface
|
|
22
31
|
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
23
32
|
* @internal
|
|
24
33
|
*/
|
|
@@ -108,23 +117,34 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
108
117
|
*/
|
|
109
118
|
logger?: __Logger;
|
|
110
119
|
/**
|
|
111
|
-
* The {@link
|
|
120
|
+
* The {@link @aws-sdk/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
112
121
|
*/
|
|
113
122
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
114
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
115
127
|
type PersonalizeRuntimeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
116
128
|
/**
|
|
117
|
-
*
|
|
129
|
+
* @public
|
|
130
|
+
*
|
|
131
|
+
* The configuration interface of PersonalizeRuntimeClient class constructor that set the region, credentials and other options.
|
|
118
132
|
*/
|
|
119
133
|
export interface PersonalizeRuntimeClientConfig extends PersonalizeRuntimeClientConfigType {
|
|
120
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
121
138
|
type PersonalizeRuntimeClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
122
139
|
/**
|
|
123
|
-
*
|
|
140
|
+
* @public
|
|
141
|
+
*
|
|
142
|
+
* The resolved configuration interface of PersonalizeRuntimeClient class. This is resolved and normalized from the {@link PersonalizeRuntimeClientConfig | constructor configuration interface}.
|
|
124
143
|
*/
|
|
125
144
|
export interface PersonalizeRuntimeClientResolvedConfig extends PersonalizeRuntimeClientResolvedConfigType {
|
|
126
145
|
}
|
|
127
146
|
/**
|
|
147
|
+
* @public
|
|
128
148
|
* <p></p>
|
|
129
149
|
*/
|
|
130
150
|
export declare class PersonalizeRuntimeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, PersonalizeRuntimeClientResolvedConfig> {
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { GetPersonalizedRankingRequest, GetPersonalizedRankingResponse } from "../models/models_0";
|
|
5
5
|
import { PersonalizeRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PersonalizeRuntimeClient";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link GetPersonalizedRankingCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface GetPersonalizedRankingCommandInput extends GetPersonalizedRankingRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link GetPersonalizedRankingCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface GetPersonalizedRankingCommandOutput extends GetPersonalizedRankingResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <p>Re-ranks a list of recommended items for the given user. The first item in the list is
|
|
18
23
|
* deemed the most likely item to be of interest to the user.</p>
|
|
19
24
|
* <note>
|
|
@@ -30,6 +35,8 @@ export interface GetPersonalizedRankingCommandOutput extends GetPersonalizedRank
|
|
|
30
35
|
* const response = await client.send(command);
|
|
31
36
|
* ```
|
|
32
37
|
*
|
|
38
|
+
* @param GetPersonalizedRankingCommandInput - {@link GetPersonalizedRankingCommandInput}
|
|
39
|
+
* @returns {@link GetPersonalizedRankingCommandOutput}
|
|
33
40
|
* @see {@link GetPersonalizedRankingCommandInput} for command's `input` shape.
|
|
34
41
|
* @see {@link GetPersonalizedRankingCommandOutput} for command's `response` shape.
|
|
35
42
|
* @see {@link PersonalizeRuntimeClientResolvedConfig | config} for PersonalizeRuntimeClient's `config` shape.
|
|
@@ -45,11 +52,20 @@ export interface GetPersonalizedRankingCommandOutput extends GetPersonalizedRank
|
|
|
45
52
|
export declare class GetPersonalizedRankingCommand extends $Command<GetPersonalizedRankingCommandInput, GetPersonalizedRankingCommandOutput, PersonalizeRuntimeClientResolvedConfig> {
|
|
46
53
|
readonly input: GetPersonalizedRankingCommandInput;
|
|
47
54
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
55
|
+
/**
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
48
58
|
constructor(input: GetPersonalizedRankingCommandInput);
|
|
49
59
|
/**
|
|
50
60
|
* @internal
|
|
51
61
|
*/
|
|
52
62
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PersonalizeRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetPersonalizedRankingCommandInput, GetPersonalizedRankingCommandOutput>;
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
53
66
|
private serialize;
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
54
70
|
private deserialize;
|
|
55
71
|
}
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { GetRecommendationsRequest, GetRecommendationsResponse } from "../models/models_0";
|
|
5
5
|
import { PersonalizeRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PersonalizeRuntimeClient";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link GetRecommendationsCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface GetRecommendationsCommandInput extends GetRecommendationsRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link GetRecommendationsCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface GetRecommendationsCommandOutput extends GetRecommendationsResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <p>Returns a list of recommended items. For campaigns, the campaign's Amazon Resource Name (ARN) is required and the required user and item input depends on the recipe type used to
|
|
18
23
|
* create the solution backing the campaign as follows:</p>
|
|
19
24
|
* <ul>
|
|
@@ -42,6 +47,8 @@ export interface GetRecommendationsCommandOutput extends GetRecommendationsRespo
|
|
|
42
47
|
* const response = await client.send(command);
|
|
43
48
|
* ```
|
|
44
49
|
*
|
|
50
|
+
* @param GetRecommendationsCommandInput - {@link GetRecommendationsCommandInput}
|
|
51
|
+
* @returns {@link GetRecommendationsCommandOutput}
|
|
45
52
|
* @see {@link GetRecommendationsCommandInput} for command's `input` shape.
|
|
46
53
|
* @see {@link GetRecommendationsCommandOutput} for command's `response` shape.
|
|
47
54
|
* @see {@link PersonalizeRuntimeClientResolvedConfig | config} for PersonalizeRuntimeClient's `config` shape.
|
|
@@ -57,11 +64,20 @@ export interface GetRecommendationsCommandOutput extends GetRecommendationsRespo
|
|
|
57
64
|
export declare class GetRecommendationsCommand extends $Command<GetRecommendationsCommandInput, GetRecommendationsCommandOutput, PersonalizeRuntimeClientResolvedConfig> {
|
|
58
65
|
readonly input: GetRecommendationsCommandInput;
|
|
59
66
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
67
|
+
/**
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
60
70
|
constructor(input: GetRecommendationsCommandInput);
|
|
61
71
|
/**
|
|
62
72
|
* @internal
|
|
63
73
|
*/
|
|
64
74
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PersonalizeRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetRecommendationsCommandInput, GetRecommendationsCommandOutput>;
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
65
78
|
private serialize;
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
66
82
|
private deserialize;
|
|
67
83
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
2
|
/**
|
|
3
|
+
* @public
|
|
4
|
+
*
|
|
3
5
|
* Base exception class for all service exceptions from PersonalizeRuntime service.
|
|
4
6
|
*/
|
|
5
7
|
export declare class PersonalizeRuntimeServiceException extends __ServiceException {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { PersonalizeRuntimeServiceException as __BaseException } from "./PersonalizeRuntimeServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
3
6
|
export interface GetPersonalizedRankingRequest {
|
|
4
7
|
/**
|
|
5
8
|
* <p>The Amazon Resource Name (ARN) of the campaign to use for generating the personalized
|
|
@@ -42,6 +45,7 @@ export interface GetPersonalizedRankingRequest {
|
|
|
42
45
|
filterValues?: Record<string, string>;
|
|
43
46
|
}
|
|
44
47
|
/**
|
|
48
|
+
* @public
|
|
45
49
|
* <p>An object that identifies an item.</p>
|
|
46
50
|
* <p>The and APIs return a list of
|
|
47
51
|
* <code>PredictedItem</code>s.</p>
|
|
@@ -61,6 +65,9 @@ export interface PredictedItem {
|
|
|
61
65
|
*/
|
|
62
66
|
promotionName?: string;
|
|
63
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
64
71
|
export interface GetPersonalizedRankingResponse {
|
|
65
72
|
/**
|
|
66
73
|
* <p>A list of items in order of most likely interest to the user. The maximum is 500.</p>
|
|
@@ -72,6 +79,7 @@ export interface GetPersonalizedRankingResponse {
|
|
|
72
79
|
recommendationId?: string;
|
|
73
80
|
}
|
|
74
81
|
/**
|
|
82
|
+
* @public
|
|
75
83
|
* <p>Provide a valid value for the field or parameter.</p>
|
|
76
84
|
*/
|
|
77
85
|
export declare class InvalidInputException extends __BaseException {
|
|
@@ -83,6 +91,7 @@ export declare class InvalidInputException extends __BaseException {
|
|
|
83
91
|
constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
|
|
84
92
|
}
|
|
85
93
|
/**
|
|
94
|
+
* @public
|
|
86
95
|
* <p>The specified resource does not exist.</p>
|
|
87
96
|
*/
|
|
88
97
|
export declare class ResourceNotFoundException extends __BaseException {
|
|
@@ -94,6 +103,7 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
94
103
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
95
104
|
}
|
|
96
105
|
/**
|
|
106
|
+
* @public
|
|
97
107
|
* <p>Contains information on a promotion. A promotion defines additional business rules that apply to a configurable subset of recommended items.</p>
|
|
98
108
|
*/
|
|
99
109
|
export interface Promotion {
|
|
@@ -124,6 +134,9 @@ export interface Promotion {
|
|
|
124
134
|
*/
|
|
125
135
|
filterValues?: Record<string, string>;
|
|
126
136
|
}
|
|
137
|
+
/**
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
127
140
|
export interface GetRecommendationsRequest {
|
|
128
141
|
/**
|
|
129
142
|
* <p>The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.</p>
|
|
@@ -179,6 +192,9 @@ export interface GetRecommendationsRequest {
|
|
|
179
192
|
*/
|
|
180
193
|
promotions?: Promotion[];
|
|
181
194
|
}
|
|
195
|
+
/**
|
|
196
|
+
* @public
|
|
197
|
+
*/
|
|
182
198
|
export interface GetRecommendationsResponse {
|
|
183
199
|
/**
|
|
184
200
|
* <p>A list of recommendations sorted in descending order by prediction score. There can be a
|
|
@@ -194,14 +210,6 @@ export interface GetRecommendationsResponse {
|
|
|
194
210
|
* @internal
|
|
195
211
|
*/
|
|
196
212
|
export declare const GetPersonalizedRankingRequestFilterSensitiveLog: (obj: GetPersonalizedRankingRequest) => any;
|
|
197
|
-
/**
|
|
198
|
-
* @internal
|
|
199
|
-
*/
|
|
200
|
-
export declare const PredictedItemFilterSensitiveLog: (obj: PredictedItem) => any;
|
|
201
|
-
/**
|
|
202
|
-
* @internal
|
|
203
|
-
*/
|
|
204
|
-
export declare const GetPersonalizedRankingResponseFilterSensitiveLog: (obj: GetPersonalizedRankingResponse) => any;
|
|
205
213
|
/**
|
|
206
214
|
* @internal
|
|
207
215
|
*/
|
|
@@ -210,7 +218,3 @@ export declare const PromotionFilterSensitiveLog: (obj: Promotion) => any;
|
|
|
210
218
|
* @internal
|
|
211
219
|
*/
|
|
212
220
|
export declare const GetRecommendationsRequestFilterSensitiveLog: (obj: GetRecommendationsRequest) => any;
|
|
213
|
-
/**
|
|
214
|
-
* @internal
|
|
215
|
-
*/
|
|
216
|
-
export declare const GetRecommendationsResponseFilterSensitiveLog: (obj: GetRecommendationsResponse) => any;
|
|
@@ -55,16 +55,7 @@ export interface GetRecommendationsResponse {
|
|
|
55
55
|
export declare const GetPersonalizedRankingRequestFilterSensitiveLog: (
|
|
56
56
|
obj: GetPersonalizedRankingRequest
|
|
57
57
|
) => any;
|
|
58
|
-
export declare const PredictedItemFilterSensitiveLog: (
|
|
59
|
-
obj: PredictedItem
|
|
60
|
-
) => any;
|
|
61
|
-
export declare const GetPersonalizedRankingResponseFilterSensitiveLog: (
|
|
62
|
-
obj: GetPersonalizedRankingResponse
|
|
63
|
-
) => any;
|
|
64
58
|
export declare const PromotionFilterSensitiveLog: (obj: Promotion) => any;
|
|
65
59
|
export declare const GetRecommendationsRequestFilterSensitiveLog: (
|
|
66
60
|
obj: GetRecommendationsRequest
|
|
67
61
|
) => any;
|
|
68
|
-
export declare const GetRecommendationsResponseFilterSensitiveLog: (
|
|
69
|
-
obj: GetRecommendationsResponse
|
|
70
|
-
) => any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-personalize-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Personalize Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.298.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",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"build:types": "tsc -p tsconfig.types.json",
|
|
12
12
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
13
13
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
14
|
+
"extract:docs": "api-extractor run --local",
|
|
14
15
|
"generate:client": "node ../../scripts/generate-clients/single-service --solo personalize-runtime"
|
|
15
16
|
},
|
|
16
17
|
"main": "./dist-cjs/index.js",
|
|
@@ -20,9 +21,9 @@
|
|
|
20
21
|
"dependencies": {
|
|
21
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.298.0",
|
|
24
25
|
"@aws-sdk/config-resolver": "3.296.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.298.0",
|
|
26
27
|
"@aws-sdk/fetch-http-handler": "3.296.0",
|
|
27
28
|
"@aws-sdk/hash-node": "3.296.0",
|
|
28
29
|
"@aws-sdk/invalid-dependency": "3.296.0",
|