@aws-sdk/client-personalize-runtime 3.170.0 → 3.171.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 +8 -0
- package/dist-types/ts3.4/PersonalizeRuntime.d.ts +0 -2
- package/dist-types/ts3.4/PersonalizeRuntimeClient.d.ts +0 -25
- package/dist-types/ts3.4/commands/GetPersonalizedRankingCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/GetRecommendationsCommand.d.ts +0 -2
- package/dist-types/ts3.4/models/PersonalizeRuntimeServiceException.d.ts +0 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -32
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +0 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -1
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.171.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.170.0...v3.171.0) (2022-09-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-personalize-runtime
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @aws-sdk/client-personalize-runtime
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
GetRecommendationsCommandOutput,
|
|
9
9
|
} from "./commands/GetRecommendationsCommand";
|
|
10
10
|
import { PersonalizeRuntimeClient } from "./PersonalizeRuntimeClient";
|
|
11
|
-
|
|
12
11
|
export declare class PersonalizeRuntime extends PersonalizeRuntimeClient {
|
|
13
12
|
getPersonalizedRanking(
|
|
14
13
|
args: GetPersonalizedRankingCommandInput,
|
|
@@ -23,7 +22,6 @@ export declare class PersonalizeRuntime extends PersonalizeRuntimeClient {
|
|
|
23
22
|
options: __HttpHandlerOptions,
|
|
24
23
|
cb: (err: any, data?: GetPersonalizedRankingCommandOutput) => void
|
|
25
24
|
): void;
|
|
26
|
-
|
|
27
25
|
getRecommendations(
|
|
28
26
|
args: GetRecommendationsCommandInput,
|
|
29
27
|
options?: __HttpHandlerOptions
|
|
@@ -59,47 +59,26 @@ export declare type ServiceOutputTypes =
|
|
|
59
59
|
export interface ClientDefaults
|
|
60
60
|
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
61
61
|
requestHandler?: __HttpHandler;
|
|
62
|
-
|
|
63
62
|
sha256?: __HashConstructor;
|
|
64
|
-
|
|
65
63
|
urlParser?: __UrlParser;
|
|
66
|
-
|
|
67
64
|
bodyLengthChecker?: __BodyLengthCalculator;
|
|
68
|
-
|
|
69
65
|
streamCollector?: __StreamCollector;
|
|
70
|
-
|
|
71
66
|
base64Decoder?: __Decoder;
|
|
72
|
-
|
|
73
67
|
base64Encoder?: __Encoder;
|
|
74
|
-
|
|
75
68
|
utf8Decoder?: __Decoder;
|
|
76
|
-
|
|
77
69
|
utf8Encoder?: __Encoder;
|
|
78
|
-
|
|
79
70
|
runtime?: string;
|
|
80
|
-
|
|
81
71
|
disableHostPrefix?: boolean;
|
|
82
|
-
|
|
83
72
|
maxAttempts?: number | __Provider<number>;
|
|
84
|
-
|
|
85
73
|
retryMode?: string | __Provider<string>;
|
|
86
|
-
|
|
87
74
|
logger?: __Logger;
|
|
88
|
-
|
|
89
75
|
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
90
|
-
|
|
91
76
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
92
|
-
|
|
93
77
|
serviceId?: string;
|
|
94
|
-
|
|
95
78
|
region?: string | __Provider<string>;
|
|
96
|
-
|
|
97
79
|
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
98
|
-
|
|
99
80
|
regionInfoProvider?: RegionInfoProvider;
|
|
100
|
-
|
|
101
81
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
102
|
-
|
|
103
82
|
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
104
83
|
}
|
|
105
84
|
declare type PersonalizeRuntimeClientConfigType = Partial<
|
|
@@ -112,7 +91,6 @@ declare type PersonalizeRuntimeClientConfigType = Partial<
|
|
|
112
91
|
HostHeaderInputConfig &
|
|
113
92
|
AwsAuthInputConfig &
|
|
114
93
|
UserAgentInputConfig;
|
|
115
|
-
|
|
116
94
|
export interface PersonalizeRuntimeClientConfig
|
|
117
95
|
extends PersonalizeRuntimeClientConfigType {}
|
|
118
96
|
declare type PersonalizeRuntimeClientResolvedConfigType =
|
|
@@ -124,10 +102,8 @@ declare type PersonalizeRuntimeClientResolvedConfigType =
|
|
|
124
102
|
HostHeaderResolvedConfig &
|
|
125
103
|
AwsAuthResolvedConfig &
|
|
126
104
|
UserAgentResolvedConfig;
|
|
127
|
-
|
|
128
105
|
export interface PersonalizeRuntimeClientResolvedConfig
|
|
129
106
|
extends PersonalizeRuntimeClientResolvedConfigType {}
|
|
130
|
-
|
|
131
107
|
export declare class PersonalizeRuntimeClient extends __Client<
|
|
132
108
|
__HttpHandlerOptions,
|
|
133
109
|
ServiceInputTypes,
|
|
@@ -136,7 +112,6 @@ export declare class PersonalizeRuntimeClient extends __Client<
|
|
|
136
112
|
> {
|
|
137
113
|
readonly config: PersonalizeRuntimeClientResolvedConfig;
|
|
138
114
|
constructor(configuration: PersonalizeRuntimeClientConfig);
|
|
139
|
-
|
|
140
115
|
destroy(): void;
|
|
141
116
|
}
|
|
142
117
|
export {};
|
|
@@ -19,7 +19,6 @@ export interface GetPersonalizedRankingCommandInput
|
|
|
19
19
|
export interface GetPersonalizedRankingCommandOutput
|
|
20
20
|
extends GetPersonalizedRankingResponse,
|
|
21
21
|
__MetadataBearer {}
|
|
22
|
-
|
|
23
22
|
export declare class GetPersonalizedRankingCommand extends $Command<
|
|
24
23
|
GetPersonalizedRankingCommandInput,
|
|
25
24
|
GetPersonalizedRankingCommandOutput,
|
|
@@ -27,7 +26,6 @@ export declare class GetPersonalizedRankingCommand extends $Command<
|
|
|
27
26
|
> {
|
|
28
27
|
readonly input: GetPersonalizedRankingCommandInput;
|
|
29
28
|
constructor(input: GetPersonalizedRankingCommandInput);
|
|
30
|
-
|
|
31
29
|
resolveMiddleware(
|
|
32
30
|
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
33
31
|
configuration: PersonalizeRuntimeClientResolvedConfig,
|
|
@@ -19,7 +19,6 @@ export interface GetRecommendationsCommandInput
|
|
|
19
19
|
export interface GetRecommendationsCommandOutput
|
|
20
20
|
extends GetRecommendationsResponse,
|
|
21
21
|
__MetadataBearer {}
|
|
22
|
-
|
|
23
22
|
export declare class GetRecommendationsCommand extends $Command<
|
|
24
23
|
GetRecommendationsCommandInput,
|
|
25
24
|
GetRecommendationsCommandOutput,
|
|
@@ -27,7 +26,6 @@ export declare class GetRecommendationsCommand extends $Command<
|
|
|
27
26
|
> {
|
|
28
27
|
readonly input: GetRecommendationsCommandInput;
|
|
29
28
|
constructor(input: GetRecommendationsCommandInput);
|
|
30
|
-
|
|
31
29
|
resolveMiddleware(
|
|
32
30
|
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
33
31
|
configuration: PersonalizeRuntimeClientResolvedConfig,
|
|
@@ -2,7 +2,6 @@ import {
|
|
|
2
2
|
ServiceException as __ServiceException,
|
|
3
3
|
ServiceExceptionOptions as __ServiceExceptionOptions,
|
|
4
4
|
} from "@aws-sdk/smithy-client";
|
|
5
|
-
|
|
6
5
|
export declare class PersonalizeRuntimeServiceException extends __ServiceException {
|
|
7
6
|
constructor(options: __ServiceExceptionOptions);
|
|
8
7
|
}
|
|
@@ -2,101 +2,69 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
|
|
|
2
2
|
import { PersonalizeRuntimeServiceException as __BaseException } from "./PersonalizeRuntimeServiceException";
|
|
3
3
|
export interface GetPersonalizedRankingRequest {
|
|
4
4
|
campaignArn: string | undefined;
|
|
5
|
-
|
|
6
5
|
inputList: string[] | undefined;
|
|
7
|
-
|
|
8
6
|
userId: string | undefined;
|
|
9
|
-
|
|
10
7
|
context?: Record<string, string>;
|
|
11
|
-
|
|
12
8
|
filterArn?: string;
|
|
13
|
-
|
|
14
9
|
filterValues?: Record<string, string>;
|
|
15
10
|
}
|
|
16
|
-
|
|
17
11
|
export interface PredictedItem {
|
|
18
12
|
itemId?: string;
|
|
19
|
-
|
|
20
13
|
score?: number;
|
|
21
|
-
|
|
22
14
|
promotionName?: string;
|
|
23
15
|
}
|
|
24
16
|
export interface GetPersonalizedRankingResponse {
|
|
25
17
|
personalizedRanking?: PredictedItem[];
|
|
26
|
-
|
|
27
18
|
recommendationId?: string;
|
|
28
19
|
}
|
|
29
|
-
|
|
30
20
|
export declare class InvalidInputException extends __BaseException {
|
|
31
21
|
readonly name: "InvalidInputException";
|
|
32
22
|
readonly $fault: "client";
|
|
33
|
-
|
|
34
23
|
constructor(
|
|
35
24
|
opts: __ExceptionOptionType<InvalidInputException, __BaseException>
|
|
36
25
|
);
|
|
37
26
|
}
|
|
38
|
-
|
|
39
27
|
export declare class ResourceNotFoundException extends __BaseException {
|
|
40
28
|
readonly name: "ResourceNotFoundException";
|
|
41
29
|
readonly $fault: "client";
|
|
42
|
-
|
|
43
30
|
constructor(
|
|
44
31
|
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
45
32
|
);
|
|
46
33
|
}
|
|
47
|
-
|
|
48
34
|
export interface Promotion {
|
|
49
35
|
name?: string;
|
|
50
|
-
|
|
51
36
|
percentPromotedItems?: number;
|
|
52
|
-
|
|
53
37
|
filterArn?: string;
|
|
54
|
-
|
|
55
38
|
filterValues?: Record<string, string>;
|
|
56
39
|
}
|
|
57
40
|
export interface GetRecommendationsRequest {
|
|
58
41
|
campaignArn?: string;
|
|
59
|
-
|
|
60
42
|
itemId?: string;
|
|
61
|
-
|
|
62
43
|
userId?: string;
|
|
63
|
-
|
|
64
44
|
numResults?: number;
|
|
65
|
-
|
|
66
45
|
context?: Record<string, string>;
|
|
67
|
-
|
|
68
46
|
filterArn?: string;
|
|
69
|
-
|
|
70
47
|
filterValues?: Record<string, string>;
|
|
71
|
-
|
|
72
48
|
recommenderArn?: string;
|
|
73
|
-
|
|
74
49
|
promotions?: Promotion[];
|
|
75
50
|
}
|
|
76
51
|
export interface GetRecommendationsResponse {
|
|
77
52
|
itemList?: PredictedItem[];
|
|
78
|
-
|
|
79
53
|
recommendationId?: string;
|
|
80
54
|
}
|
|
81
|
-
|
|
82
55
|
export declare const GetPersonalizedRankingRequestFilterSensitiveLog: (
|
|
83
56
|
obj: GetPersonalizedRankingRequest
|
|
84
57
|
) => any;
|
|
85
|
-
|
|
86
58
|
export declare const PredictedItemFilterSensitiveLog: (
|
|
87
59
|
obj: PredictedItem
|
|
88
60
|
) => any;
|
|
89
|
-
|
|
90
61
|
export declare const GetPersonalizedRankingResponseFilterSensitiveLog: (
|
|
91
62
|
obj: GetPersonalizedRankingResponse
|
|
92
63
|
) => any;
|
|
93
|
-
|
|
94
64
|
export declare const PromotionFilterSensitiveLog: (obj: Promotion) => any;
|
|
95
|
-
|
|
96
65
|
export declare const GetRecommendationsRequestFilterSensitiveLog: (
|
|
97
66
|
obj: GetRecommendationsRequest
|
|
98
67
|
) => any;
|
|
99
|
-
|
|
100
68
|
export declare const GetRecommendationsResponseFilterSensitiveLog: (
|
|
101
69
|
obj: GetRecommendationsResponse
|
|
102
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.171.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",
|
|
@@ -19,35 +19,35 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
30
|
-
"@aws-sdk/middleware-logger": "3.
|
|
31
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
-
"@aws-sdk/middleware-serde": "3.
|
|
34
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
-
"@aws-sdk/middleware-stack": "3.
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
37
|
-
"@aws-sdk/node-config-provider": "3.
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
39
|
-
"@aws-sdk/protocol-http": "3.
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
-
"@aws-sdk/types": "3.
|
|
42
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.171.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.171.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.171.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.171.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.171.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.171.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.171.0",
|
|
29
|
+
"@aws-sdk/middleware-host-header": "3.171.0",
|
|
30
|
+
"@aws-sdk/middleware-logger": "3.171.0",
|
|
31
|
+
"@aws-sdk/middleware-recursion-detection": "3.171.0",
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.171.0",
|
|
33
|
+
"@aws-sdk/middleware-serde": "3.171.0",
|
|
34
|
+
"@aws-sdk/middleware-signing": "3.171.0",
|
|
35
|
+
"@aws-sdk/middleware-stack": "3.171.0",
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "3.171.0",
|
|
37
|
+
"@aws-sdk/node-config-provider": "3.171.0",
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.171.0",
|
|
39
|
+
"@aws-sdk/protocol-http": "3.171.0",
|
|
40
|
+
"@aws-sdk/smithy-client": "3.171.0",
|
|
41
|
+
"@aws-sdk/types": "3.171.0",
|
|
42
|
+
"@aws-sdk/url-parser": "3.171.0",
|
|
43
43
|
"@aws-sdk/util-base64-browser": "3.170.0",
|
|
44
44
|
"@aws-sdk/util-base64-node": "3.170.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.170.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.170.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
50
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.171.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.171.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-browser": "3.171.0",
|
|
50
|
+
"@aws-sdk/util-user-agent-node": "3.171.0",
|
|
51
51
|
"@aws-sdk/util-utf8-browser": "3.170.0",
|
|
52
52
|
"@aws-sdk/util-utf8-node": "3.170.0",
|
|
53
53
|
"tslib": "^2.3.1"
|