@aws-sdk/client-personalize-runtime 3.687.0 → 3.692.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.
@@ -11,12 +11,12 @@ export interface PredictedAction {
11
11
  * <p>The ID of the recommended action.</p>
12
12
  * @public
13
13
  */
14
- actionId?: string;
14
+ actionId?: string | undefined;
15
15
  /**
16
16
  * <p>The score of the recommended action. For information about action scores, see <a href="https://docs.aws.amazon.com/personalize/latest/dg/how-action-recommendation-scoring-works.html">How action recommendation scoring works</a>.</p>
17
17
  * @public
18
18
  */
19
- score?: number;
19
+ score?: number | undefined;
20
20
  }
21
21
  /**
22
22
  * @public
@@ -26,24 +26,24 @@ export interface GetActionRecommendationsRequest {
26
26
  * <p>The Amazon Resource Name (ARN) of the campaign to use for getting action recommendations. This campaign must deploy a solution version trained with a PERSONALIZED_ACTIONS recipe.</p>
27
27
  * @public
28
28
  */
29
- campaignArn?: string;
29
+ campaignArn?: string | undefined;
30
30
  /**
31
31
  * <p>The user ID of the user to provide action recommendations for.</p>
32
32
  * @public
33
33
  */
34
- userId?: string;
34
+ userId?: string | undefined;
35
35
  /**
36
36
  * <p>The number of results to return. The default is 5. The maximum is 100.</p>
37
37
  * @public
38
38
  */
39
- numResults?: number;
39
+ numResults?: number | undefined;
40
40
  /**
41
41
  * <p>The ARN of the filter to apply to the returned recommendations. For more information, see
42
42
  * <a href="https://docs.aws.amazon.com/personalize/latest/dg/filter.html">Filtering Recommendations</a>.</p>
43
43
  * <p>When using this parameter, be sure the filter resource is <code>ACTIVE</code>.</p>
44
44
  * @public
45
45
  */
46
- filterArn?: string;
46
+ filterArn?: string | undefined;
47
47
  /**
48
48
  * <p>The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case)
49
49
  * as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma.
@@ -57,7 +57,7 @@ export interface GetActionRecommendationsRequest {
57
57
  * <a href="https://docs.aws.amazon.com/personalize/latest/dg/filter.html">Filtering recommendations and user segments</a>.</p>
58
58
  * @public
59
59
  */
60
- filterValues?: Record<string, string>;
60
+ filterValues?: Record<string, string> | undefined;
61
61
  }
62
62
  /**
63
63
  * @public
@@ -69,12 +69,12 @@ export interface GetActionRecommendationsResponse {
69
69
  * works</a>.</p>
70
70
  * @public
71
71
  */
72
- actionList?: PredictedAction[];
72
+ actionList?: PredictedAction[] | undefined;
73
73
  /**
74
74
  * <p>The ID of the recommendation.</p>
75
75
  * @public
76
76
  */
77
- recommendationId?: string;
77
+ recommendationId?: string | undefined;
78
78
  }
79
79
  /**
80
80
  * <p>Provide a valid value for the field or parameter.</p>
@@ -128,14 +128,14 @@ export interface GetPersonalizedRankingRequest {
128
128
  * as the user's current location or device type.</p>
129
129
  * @public
130
130
  */
131
- context?: Record<string, string>;
131
+ context?: Record<string, string> | undefined;
132
132
  /**
133
133
  * <p>The Amazon Resource Name (ARN) of a filter you created to include items or exclude items from recommendations for a given user.
134
134
  * For more information, see
135
135
  * <a href="https://docs.aws.amazon.com/personalize/latest/dg/filter.html">Filtering Recommendations</a>.</p>
136
136
  * @public
137
137
  */
138
- filterArn?: string;
138
+ filterArn?: string | undefined;
139
139
  /**
140
140
  * <p>The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case)
141
141
  * as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma.
@@ -149,7 +149,7 @@ export interface GetPersonalizedRankingRequest {
149
149
  * <a href="https://docs.aws.amazon.com/personalize/latest/dg/filter.html">Filtering Recommendations</a>.</p>
150
150
  * @public
151
151
  */
152
- filterValues?: Record<string, string>;
152
+ filterValues?: Record<string, string> | undefined;
153
153
  /**
154
154
  * <p>If you enabled metadata in recommendations when you created or updated the campaign, specify metadata columns from your Items dataset to include
155
155
  * in the personalized ranking.
@@ -160,7 +160,7 @@ export interface GetPersonalizedRankingRequest {
160
160
  * </p>
161
161
  * @public
162
162
  */
163
- metadataColumns?: Record<string, string[]>;
163
+ metadataColumns?: Record<string, string[]> | undefined;
164
164
  }
165
165
  /**
166
166
  * <p>An object that identifies an item.</p>
@@ -173,23 +173,23 @@ export interface PredictedItem {
173
173
  * <p>The recommended item ID.</p>
174
174
  * @public
175
175
  */
176
- itemId?: string;
176
+ itemId?: string | undefined;
177
177
  /**
178
178
  * <p>A numeric representation of the model's certainty that the item will be the next user
179
179
  * selection. For more information on scoring logic, see <a>how-scores-work</a>.</p>
180
180
  * @public
181
181
  */
182
- score?: number;
182
+ score?: number | undefined;
183
183
  /**
184
184
  * <p>The name of the promotion that included the predicted item.</p>
185
185
  * @public
186
186
  */
187
- promotionName?: string;
187
+ promotionName?: string | undefined;
188
188
  /**
189
189
  * <p>Metadata about the item from your Items dataset.</p>
190
190
  * @public
191
191
  */
192
- metadata?: Record<string, string>;
192
+ metadata?: Record<string, string> | undefined;
193
193
  /**
194
194
  * <p>If you use User-Personalization-v2, a list of reasons for why the item was included in recommendations. Possible reasons include the following:</p>
195
195
  * <ul>
@@ -214,7 +214,7 @@ export interface PredictedItem {
214
214
  * </ul>
215
215
  * @public
216
216
  */
217
- reason?: string[];
217
+ reason?: string[] | undefined;
218
218
  }
219
219
  /**
220
220
  * @public
@@ -224,12 +224,12 @@ export interface GetPersonalizedRankingResponse {
224
224
  * <p>A list of items in order of most likely interest to the user. The maximum is 500.</p>
225
225
  * @public
226
226
  */
227
- personalizedRanking?: PredictedItem[];
227
+ personalizedRanking?: PredictedItem[] | undefined;
228
228
  /**
229
229
  * <p>The ID of the recommendation.</p>
230
230
  * @public
231
231
  */
232
- recommendationId?: string;
232
+ recommendationId?: string | undefined;
233
233
  }
234
234
  /**
235
235
  * <p>Contains information on a promotion. A promotion defines additional business rules that apply to a configurable subset of recommended items.</p>
@@ -240,18 +240,18 @@ export interface Promotion {
240
240
  * <p>The name of the promotion.</p>
241
241
  * @public
242
242
  */
243
- name?: string;
243
+ name?: string | undefined;
244
244
  /**
245
245
  * <p>The percentage of recommended items to apply the promotion to.</p>
246
246
  * @public
247
247
  */
248
- percentPromotedItems?: number;
248
+ percentPromotedItems?: number | undefined;
249
249
  /**
250
250
  * <p>The Amazon Resource Name (ARN) of the filter used by the promotion. This filter defines the criteria for promoted items. For more information, see
251
251
  * <a href="https://docs.aws.amazon.com/personalize/latest/dg/promoting-items.html#promotion-filters">Promotion filters</a>.</p>
252
252
  * @public
253
253
  */
254
- filterArn?: string;
254
+ filterArn?: string | undefined;
255
255
  /**
256
256
  * <p>The values to use when promoting items.
257
257
  * For each placeholder parameter in your promotion's filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma.
@@ -265,7 +265,7 @@ export interface Promotion {
265
265
  * <a href="https://docs.aws.amazon.com/personalize/latest/dg/filter.html">Filtering recommendations and user segments</a>.</p>
266
266
  * @public
267
267
  */
268
- filterValues?: Record<string, string>;
268
+ filterValues?: Record<string, string> | undefined;
269
269
  }
270
270
  /**
271
271
  * @public
@@ -275,39 +275,39 @@ export interface GetRecommendationsRequest {
275
275
  * <p>The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.</p>
276
276
  * @public
277
277
  */
278
- campaignArn?: string;
278
+ campaignArn?: string | undefined;
279
279
  /**
280
280
  * <p>The item ID to provide recommendations for.</p>
281
281
  * <p>Required for <code>RELATED_ITEMS</code> recipe type.</p>
282
282
  * @public
283
283
  */
284
- itemId?: string;
284
+ itemId?: string | undefined;
285
285
  /**
286
286
  * <p>The user ID to provide recommendations for.</p>
287
287
  * <p>Required for <code>USER_PERSONALIZATION</code> recipe type.</p>
288
288
  * @public
289
289
  */
290
- userId?: string;
290
+ userId?: string | undefined;
291
291
  /**
292
292
  * <p>The number of results to return. The default is 25. If you are including
293
293
  * metadata in recommendations, the maximum is 50. Otherwise, the maximum is 500.</p>
294
294
  * @public
295
295
  */
296
- numResults?: number;
296
+ numResults?: number | undefined;
297
297
  /**
298
298
  * <p>The contextual metadata to use when getting recommendations. Contextual metadata includes
299
299
  * any interaction information that might be relevant when getting a user's recommendations, such
300
300
  * as the user's current location or device type.</p>
301
301
  * @public
302
302
  */
303
- context?: Record<string, string>;
303
+ context?: Record<string, string> | undefined;
304
304
  /**
305
305
  * <p>The ARN of the filter to apply to the returned recommendations. For more information, see
306
306
  * <a href="https://docs.aws.amazon.com/personalize/latest/dg/filter.html">Filtering Recommendations</a>.</p>
307
307
  * <p>When using this parameter, be sure the filter resource is <code>ACTIVE</code>.</p>
308
308
  * @public
309
309
  */
310
- filterArn?: string;
310
+ filterArn?: string | undefined;
311
311
  /**
312
312
  * <p>The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case)
313
313
  * as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma.
@@ -321,19 +321,19 @@ export interface GetRecommendationsRequest {
321
321
  * <a href="https://docs.aws.amazon.com/personalize/latest/dg/filter.html">Filtering recommendations and user segments</a>.</p>
322
322
  * @public
323
323
  */
324
- filterValues?: Record<string, string>;
324
+ filterValues?: Record<string, string> | undefined;
325
325
  /**
326
326
  * <p>The Amazon Resource Name (ARN) of the recommender to use to get recommendations. Provide a recommender ARN if you
327
327
  * created a Domain dataset group with a recommender for a domain use case.</p>
328
328
  * @public
329
329
  */
330
- recommenderArn?: string;
330
+ recommenderArn?: string | undefined;
331
331
  /**
332
332
  * <p>The promotions to apply to the recommendation request.
333
333
  * A promotion defines additional business rules that apply to a configurable subset of recommended items.</p>
334
334
  * @public
335
335
  */
336
- promotions?: Promotion[];
336
+ promotions?: Promotion[] | undefined;
337
337
  /**
338
338
  * <p>If you enabled metadata in recommendations when you created or updated the campaign or recommender, specify the metadata columns from your Items dataset to include in item recommendations.
339
339
  * The map key is <code>ITEMS</code> and the value is a list of column names from your Items dataset.
@@ -344,7 +344,7 @@ export interface GetRecommendationsRequest {
344
344
  * </p>
345
345
  * @public
346
346
  */
347
- metadataColumns?: Record<string, string[]>;
347
+ metadataColumns?: Record<string, string[]> | undefined;
348
348
  }
349
349
  /**
350
350
  * @public
@@ -355,12 +355,12 @@ export interface GetRecommendationsResponse {
355
355
  * maximum of 500 items in the list.</p>
356
356
  * @public
357
357
  */
358
- itemList?: PredictedItem[];
358
+ itemList?: PredictedItem[] | undefined;
359
359
  /**
360
360
  * <p>The ID of the recommendation.</p>
361
361
  * @public
362
362
  */
363
- recommendationId?: string;
363
+ recommendationId?: string | undefined;
364
364
  }
365
365
  /**
366
366
  * @internal
@@ -1,19 +1,19 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { PersonalizeRuntimeServiceException as __BaseException } from "./PersonalizeRuntimeServiceException";
3
3
  export interface PredictedAction {
4
- actionId?: string;
5
- score?: number;
4
+ actionId?: string | undefined;
5
+ score?: number | undefined;
6
6
  }
7
7
  export interface GetActionRecommendationsRequest {
8
- campaignArn?: string;
9
- userId?: string;
10
- numResults?: number;
11
- filterArn?: string;
12
- filterValues?: Record<string, string>;
8
+ campaignArn?: string | undefined;
9
+ userId?: string | undefined;
10
+ numResults?: number | undefined;
11
+ filterArn?: string | undefined;
12
+ filterValues?: Record<string, string> | undefined;
13
13
  }
14
14
  export interface GetActionRecommendationsResponse {
15
- actionList?: PredictedAction[];
16
- recommendationId?: string;
15
+ actionList?: PredictedAction[] | undefined;
16
+ recommendationId?: string | undefined;
17
17
  }
18
18
  export declare class InvalidInputException extends __BaseException {
19
19
  readonly name: "InvalidInputException";
@@ -33,43 +33,43 @@ export interface GetPersonalizedRankingRequest {
33
33
  campaignArn: string | undefined;
34
34
  inputList: string[] | undefined;
35
35
  userId: string | undefined;
36
- context?: Record<string, string>;
37
- filterArn?: string;
38
- filterValues?: Record<string, string>;
39
- metadataColumns?: Record<string, string[]>;
36
+ context?: Record<string, string> | undefined;
37
+ filterArn?: string | undefined;
38
+ filterValues?: Record<string, string> | undefined;
39
+ metadataColumns?: Record<string, string[]> | undefined;
40
40
  }
41
41
  export interface PredictedItem {
42
- itemId?: string;
43
- score?: number;
44
- promotionName?: string;
45
- metadata?: Record<string, string>;
46
- reason?: string[];
42
+ itemId?: string | undefined;
43
+ score?: number | undefined;
44
+ promotionName?: string | undefined;
45
+ metadata?: Record<string, string> | undefined;
46
+ reason?: string[] | undefined;
47
47
  }
48
48
  export interface GetPersonalizedRankingResponse {
49
- personalizedRanking?: PredictedItem[];
50
- recommendationId?: string;
49
+ personalizedRanking?: PredictedItem[] | undefined;
50
+ recommendationId?: string | undefined;
51
51
  }
52
52
  export interface Promotion {
53
- name?: string;
54
- percentPromotedItems?: number;
55
- filterArn?: string;
56
- filterValues?: Record<string, string>;
53
+ name?: string | undefined;
54
+ percentPromotedItems?: number | undefined;
55
+ filterArn?: string | undefined;
56
+ filterValues?: Record<string, string> | undefined;
57
57
  }
58
58
  export interface GetRecommendationsRequest {
59
- campaignArn?: string;
60
- itemId?: string;
61
- userId?: string;
62
- numResults?: number;
63
- context?: Record<string, string>;
64
- filterArn?: string;
65
- filterValues?: Record<string, string>;
66
- recommenderArn?: string;
67
- promotions?: Promotion[];
68
- metadataColumns?: Record<string, string[]>;
59
+ campaignArn?: string | undefined;
60
+ itemId?: string | undefined;
61
+ userId?: string | undefined;
62
+ numResults?: number | undefined;
63
+ context?: Record<string, string> | undefined;
64
+ filterArn?: string | undefined;
65
+ filterValues?: Record<string, string> | undefined;
66
+ recommenderArn?: string | undefined;
67
+ promotions?: Promotion[] | undefined;
68
+ metadataColumns?: Record<string, string[]> | undefined;
69
69
  }
70
70
  export interface GetRecommendationsResponse {
71
- itemList?: PredictedItem[];
72
- recommendationId?: string;
71
+ itemList?: PredictedItem[] | undefined;
72
+ recommendationId?: string | undefined;
73
73
  }
74
74
  export declare const GetActionRecommendationsRequestFilterSensitiveLog: (
75
75
  obj: GetActionRecommendationsRequest
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.687.0",
4
+ "version": "3.692.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-personalize-runtime",
@@ -20,43 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.687.0",
24
- "@aws-sdk/client-sts": "3.687.0",
25
- "@aws-sdk/core": "3.686.0",
26
- "@aws-sdk/credential-provider-node": "3.687.0",
27
- "@aws-sdk/middleware-host-header": "3.686.0",
28
- "@aws-sdk/middleware-logger": "3.686.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.686.0",
30
- "@aws-sdk/middleware-user-agent": "3.687.0",
31
- "@aws-sdk/region-config-resolver": "3.686.0",
32
- "@aws-sdk/types": "3.686.0",
33
- "@aws-sdk/util-endpoints": "3.686.0",
34
- "@aws-sdk/util-user-agent-browser": "3.686.0",
35
- "@aws-sdk/util-user-agent-node": "3.687.0",
36
- "@smithy/config-resolver": "^3.0.10",
37
- "@smithy/core": "^2.5.1",
38
- "@smithy/fetch-http-handler": "^4.0.0",
39
- "@smithy/hash-node": "^3.0.8",
40
- "@smithy/invalid-dependency": "^3.0.8",
41
- "@smithy/middleware-content-length": "^3.0.10",
42
- "@smithy/middleware-endpoint": "^3.2.1",
43
- "@smithy/middleware-retry": "^3.0.25",
44
- "@smithy/middleware-serde": "^3.0.8",
45
- "@smithy/middleware-stack": "^3.0.8",
46
- "@smithy/node-config-provider": "^3.1.9",
47
- "@smithy/node-http-handler": "^3.2.5",
48
- "@smithy/protocol-http": "^4.1.5",
49
- "@smithy/smithy-client": "^3.4.2",
50
- "@smithy/types": "^3.6.0",
51
- "@smithy/url-parser": "^3.0.8",
23
+ "@aws-sdk/client-sso-oidc": "3.692.0",
24
+ "@aws-sdk/client-sts": "3.692.0",
25
+ "@aws-sdk/core": "3.692.0",
26
+ "@aws-sdk/credential-provider-node": "3.692.0",
27
+ "@aws-sdk/middleware-host-header": "3.692.0",
28
+ "@aws-sdk/middleware-logger": "3.692.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.692.0",
30
+ "@aws-sdk/middleware-user-agent": "3.692.0",
31
+ "@aws-sdk/region-config-resolver": "3.692.0",
32
+ "@aws-sdk/types": "3.692.0",
33
+ "@aws-sdk/util-endpoints": "3.692.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.692.0",
35
+ "@aws-sdk/util-user-agent-node": "3.692.0",
36
+ "@smithy/config-resolver": "^3.0.11",
37
+ "@smithy/core": "^2.5.2",
38
+ "@smithy/fetch-http-handler": "^4.1.0",
39
+ "@smithy/hash-node": "^3.0.9",
40
+ "@smithy/invalid-dependency": "^3.0.9",
41
+ "@smithy/middleware-content-length": "^3.0.11",
42
+ "@smithy/middleware-endpoint": "^3.2.2",
43
+ "@smithy/middleware-retry": "^3.0.26",
44
+ "@smithy/middleware-serde": "^3.0.9",
45
+ "@smithy/middleware-stack": "^3.0.9",
46
+ "@smithy/node-config-provider": "^3.1.10",
47
+ "@smithy/node-http-handler": "^3.3.0",
48
+ "@smithy/protocol-http": "^4.1.6",
49
+ "@smithy/smithy-client": "^3.4.3",
50
+ "@smithy/types": "^3.7.0",
51
+ "@smithy/url-parser": "^3.0.9",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.25",
56
- "@smithy/util-defaults-mode-node": "^3.0.25",
57
- "@smithy/util-endpoints": "^2.1.4",
58
- "@smithy/util-middleware": "^3.0.8",
59
- "@smithy/util-retry": "^3.0.8",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.26",
56
+ "@smithy/util-defaults-mode-node": "^3.0.26",
57
+ "@smithy/util-endpoints": "^2.1.5",
58
+ "@smithy/util-middleware": "^3.0.9",
59
+ "@smithy/util-retry": "^3.0.9",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
61
  "tslib": "^2.6.2"
62
62
  },