@aws-sdk/client-personalize 3.301.0 → 3.303.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.
@@ -81,34 +81,29 @@ class TooManyTagsException extends PersonalizeServiceException_1.PersonalizeServ
81
81
  }
82
82
  }
83
83
  exports.TooManyTagsException = TooManyTagsException;
84
- var IngestionMode;
85
- (function (IngestionMode) {
86
- IngestionMode["ALL"] = "ALL";
87
- IngestionMode["BULK"] = "BULK";
88
- IngestionMode["PUT"] = "PUT";
89
- })(IngestionMode = exports.IngestionMode || (exports.IngestionMode = {}));
90
- var Domain;
91
- (function (Domain) {
92
- Domain["ECOMMERCE"] = "ECOMMERCE";
93
- Domain["VIDEO_ON_DEMAND"] = "VIDEO_ON_DEMAND";
94
- })(Domain = exports.Domain || (exports.Domain = {}));
95
- var ImportMode;
96
- (function (ImportMode) {
97
- ImportMode["FULL"] = "FULL";
98
- ImportMode["INCREMENTAL"] = "INCREMENTAL";
99
- })(ImportMode = exports.ImportMode || (exports.ImportMode = {}));
100
- var ObjectiveSensitivity;
101
- (function (ObjectiveSensitivity) {
102
- ObjectiveSensitivity["HIGH"] = "HIGH";
103
- ObjectiveSensitivity["LOW"] = "LOW";
104
- ObjectiveSensitivity["MEDIUM"] = "MEDIUM";
105
- ObjectiveSensitivity["OFF"] = "OFF";
106
- })(ObjectiveSensitivity = exports.ObjectiveSensitivity || (exports.ObjectiveSensitivity = {}));
107
- var TrainingMode;
108
- (function (TrainingMode) {
109
- TrainingMode["FULL"] = "FULL";
110
- TrainingMode["UPDATE"] = "UPDATE";
111
- })(TrainingMode = exports.TrainingMode || (exports.TrainingMode = {}));
84
+ exports.IngestionMode = {
85
+ ALL: "ALL",
86
+ BULK: "BULK",
87
+ PUT: "PUT",
88
+ };
89
+ exports.Domain = {
90
+ ECOMMERCE: "ECOMMERCE",
91
+ VIDEO_ON_DEMAND: "VIDEO_ON_DEMAND",
92
+ };
93
+ exports.ImportMode = {
94
+ FULL: "FULL",
95
+ INCREMENTAL: "INCREMENTAL",
96
+ };
97
+ exports.ObjectiveSensitivity = {
98
+ HIGH: "HIGH",
99
+ LOW: "LOW",
100
+ MEDIUM: "MEDIUM",
101
+ OFF: "OFF",
102
+ };
103
+ exports.TrainingMode = {
104
+ FULL: "FULL",
105
+ UPDATE: "UPDATE",
106
+ };
112
107
  class InvalidNextTokenException extends PersonalizeServiceException_1.PersonalizeServiceException {
113
108
  constructor(opts) {
114
109
  super({
@@ -122,10 +117,9 @@ class InvalidNextTokenException extends PersonalizeServiceException_1.Personaliz
122
117
  }
123
118
  }
124
119
  exports.InvalidNextTokenException = InvalidNextTokenException;
125
- var RecipeProvider;
126
- (function (RecipeProvider) {
127
- RecipeProvider["SERVICE"] = "SERVICE";
128
- })(RecipeProvider = exports.RecipeProvider || (exports.RecipeProvider = {}));
120
+ exports.RecipeProvider = {
121
+ SERVICE: "SERVICE",
122
+ };
129
123
  class TooManyTagKeysException extends PersonalizeServiceException_1.PersonalizeServiceException {
130
124
  constructor(opts) {
131
125
  super({
@@ -72,34 +72,29 @@ export class TooManyTagsException extends __BaseException {
72
72
  Object.setPrototypeOf(this, TooManyTagsException.prototype);
73
73
  }
74
74
  }
75
- export var IngestionMode;
76
- (function (IngestionMode) {
77
- IngestionMode["ALL"] = "ALL";
78
- IngestionMode["BULK"] = "BULK";
79
- IngestionMode["PUT"] = "PUT";
80
- })(IngestionMode || (IngestionMode = {}));
81
- export var Domain;
82
- (function (Domain) {
83
- Domain["ECOMMERCE"] = "ECOMMERCE";
84
- Domain["VIDEO_ON_DEMAND"] = "VIDEO_ON_DEMAND";
85
- })(Domain || (Domain = {}));
86
- export var ImportMode;
87
- (function (ImportMode) {
88
- ImportMode["FULL"] = "FULL";
89
- ImportMode["INCREMENTAL"] = "INCREMENTAL";
90
- })(ImportMode || (ImportMode = {}));
91
- export var ObjectiveSensitivity;
92
- (function (ObjectiveSensitivity) {
93
- ObjectiveSensitivity["HIGH"] = "HIGH";
94
- ObjectiveSensitivity["LOW"] = "LOW";
95
- ObjectiveSensitivity["MEDIUM"] = "MEDIUM";
96
- ObjectiveSensitivity["OFF"] = "OFF";
97
- })(ObjectiveSensitivity || (ObjectiveSensitivity = {}));
98
- export var TrainingMode;
99
- (function (TrainingMode) {
100
- TrainingMode["FULL"] = "FULL";
101
- TrainingMode["UPDATE"] = "UPDATE";
102
- })(TrainingMode || (TrainingMode = {}));
75
+ export const IngestionMode = {
76
+ ALL: "ALL",
77
+ BULK: "BULK",
78
+ PUT: "PUT",
79
+ };
80
+ export const Domain = {
81
+ ECOMMERCE: "ECOMMERCE",
82
+ VIDEO_ON_DEMAND: "VIDEO_ON_DEMAND",
83
+ };
84
+ export const ImportMode = {
85
+ FULL: "FULL",
86
+ INCREMENTAL: "INCREMENTAL",
87
+ };
88
+ export const ObjectiveSensitivity = {
89
+ HIGH: "HIGH",
90
+ LOW: "LOW",
91
+ MEDIUM: "MEDIUM",
92
+ OFF: "OFF",
93
+ };
94
+ export const TrainingMode = {
95
+ FULL: "FULL",
96
+ UPDATE: "UPDATE",
97
+ };
103
98
  export class InvalidNextTokenException extends __BaseException {
104
99
  constructor(opts) {
105
100
  super({
@@ -112,10 +107,9 @@ export class InvalidNextTokenException extends __BaseException {
112
107
  Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
113
108
  }
114
109
  }
115
- export var RecipeProvider;
116
- (function (RecipeProvider) {
117
- RecipeProvider["SERVICE"] = "SERVICE";
118
- })(RecipeProvider || (RecipeProvider = {}));
110
+ export const RecipeProvider = {
111
+ SERVICE: "SERVICE",
112
+ };
119
113
  export class TooManyTagKeysException extends __BaseException {
120
114
  constructor(opts) {
121
115
  super({
@@ -508,12 +508,17 @@ export interface CreateDatasetResponse {
508
508
  }
509
509
  /**
510
510
  * @public
511
+ * @enum
511
512
  */
512
- export declare enum IngestionMode {
513
- ALL = "ALL",
514
- BULK = "BULK",
515
- PUT = "PUT"
516
- }
513
+ export declare const IngestionMode: {
514
+ readonly ALL: "ALL";
515
+ readonly BULK: "BULK";
516
+ readonly PUT: "PUT";
517
+ };
518
+ /**
519
+ * @public
520
+ */
521
+ export type IngestionMode = (typeof IngestionMode)[keyof typeof IngestionMode];
517
522
  /**
518
523
  * @public
519
524
  * <p>The output configuration parameters of a dataset export job.</p>
@@ -571,11 +576,16 @@ export interface CreateDatasetExportJobResponse {
571
576
  }
572
577
  /**
573
578
  * @public
579
+ * @enum
574
580
  */
575
- export declare enum Domain {
576
- ECOMMERCE = "ECOMMERCE",
577
- VIDEO_ON_DEMAND = "VIDEO_ON_DEMAND"
578
- }
581
+ export declare const Domain: {
582
+ readonly ECOMMERCE: "ECOMMERCE";
583
+ readonly VIDEO_ON_DEMAND: "VIDEO_ON_DEMAND";
584
+ };
585
+ /**
586
+ * @public
587
+ */
588
+ export type Domain = (typeof Domain)[keyof typeof Domain];
579
589
  /**
580
590
  * @public
581
591
  */
@@ -638,11 +648,16 @@ export interface DataSource {
638
648
  }
639
649
  /**
640
650
  * @public
651
+ * @enum
641
652
  */
642
- export declare enum ImportMode {
643
- FULL = "FULL",
644
- INCREMENTAL = "INCREMENTAL"
645
- }
653
+ export declare const ImportMode: {
654
+ readonly FULL: "FULL";
655
+ readonly INCREMENTAL: "INCREMENTAL";
656
+ };
657
+ /**
658
+ * @public
659
+ */
660
+ export type ImportMode = (typeof ImportMode)[keyof typeof ImportMode];
646
661
  /**
647
662
  * @public
648
663
  */
@@ -1064,13 +1079,18 @@ export interface HPOConfig {
1064
1079
  }
1065
1080
  /**
1066
1081
  * @public
1082
+ * @enum
1067
1083
  */
1068
- export declare enum ObjectiveSensitivity {
1069
- HIGH = "HIGH",
1070
- LOW = "LOW",
1071
- MEDIUM = "MEDIUM",
1072
- OFF = "OFF"
1073
- }
1084
+ export declare const ObjectiveSensitivity: {
1085
+ readonly HIGH: "HIGH";
1086
+ readonly LOW: "LOW";
1087
+ readonly MEDIUM: "MEDIUM";
1088
+ readonly OFF: "OFF";
1089
+ };
1090
+ /**
1091
+ * @public
1092
+ */
1093
+ export type ObjectiveSensitivity = (typeof ObjectiveSensitivity)[keyof typeof ObjectiveSensitivity];
1074
1094
  /**
1075
1095
  * @public
1076
1096
  * <p>Describes the additional objective for the solution, such as maximizing streaming
@@ -1187,11 +1207,16 @@ export interface CreateSolutionResponse {
1187
1207
  }
1188
1208
  /**
1189
1209
  * @public
1210
+ * @enum
1190
1211
  */
1191
- export declare enum TrainingMode {
1192
- FULL = "FULL",
1193
- UPDATE = "UPDATE"
1194
- }
1212
+ export declare const TrainingMode: {
1213
+ readonly FULL: "FULL";
1214
+ readonly UPDATE: "UPDATE";
1215
+ };
1216
+ /**
1217
+ * @public
1218
+ */
1219
+ export type TrainingMode = (typeof TrainingMode)[keyof typeof TrainingMode];
1195
1220
  /**
1196
1221
  * @public
1197
1222
  */
@@ -3570,10 +3595,15 @@ export interface ListMetricAttributionsResponse {
3570
3595
  }
3571
3596
  /**
3572
3597
  * @public
3598
+ * @enum
3573
3599
  */
3574
- export declare enum RecipeProvider {
3575
- SERVICE = "SERVICE"
3576
- }
3600
+ export declare const RecipeProvider: {
3601
+ readonly SERVICE: "SERVICE";
3602
+ };
3603
+ /**
3604
+ * @public
3605
+ */
3606
+ export type RecipeProvider = (typeof RecipeProvider)[keyof typeof RecipeProvider];
3577
3607
  /**
3578
3608
  * @public
3579
3609
  */
@@ -153,11 +153,12 @@ export interface CreateDatasetRequest {
153
153
  export interface CreateDatasetResponse {
154
154
  datasetArn?: string;
155
155
  }
156
- export declare enum IngestionMode {
157
- ALL = "ALL",
158
- BULK = "BULK",
159
- PUT = "PUT",
160
- }
156
+ export declare const IngestionMode: {
157
+ readonly ALL: "ALL";
158
+ readonly BULK: "BULK";
159
+ readonly PUT: "PUT";
160
+ };
161
+ export type IngestionMode = (typeof IngestionMode)[keyof typeof IngestionMode];
161
162
  export interface DatasetExportJobOutput {
162
163
  s3DataDestination: S3DataConfig | undefined;
163
164
  }
@@ -172,10 +173,11 @@ export interface CreateDatasetExportJobRequest {
172
173
  export interface CreateDatasetExportJobResponse {
173
174
  datasetExportJobArn?: string;
174
175
  }
175
- export declare enum Domain {
176
- ECOMMERCE = "ECOMMERCE",
177
- VIDEO_ON_DEMAND = "VIDEO_ON_DEMAND",
178
- }
176
+ export declare const Domain: {
177
+ readonly ECOMMERCE: "ECOMMERCE";
178
+ readonly VIDEO_ON_DEMAND: "VIDEO_ON_DEMAND";
179
+ };
180
+ export type Domain = (typeof Domain)[keyof typeof Domain];
179
181
  export interface CreateDatasetGroupRequest {
180
182
  name: string | undefined;
181
183
  roleArn?: string;
@@ -190,10 +192,11 @@ export interface CreateDatasetGroupResponse {
190
192
  export interface DataSource {
191
193
  dataLocation?: string;
192
194
  }
193
- export declare enum ImportMode {
194
- FULL = "FULL",
195
- INCREMENTAL = "INCREMENTAL",
196
- }
195
+ export declare const ImportMode: {
196
+ readonly FULL: "FULL";
197
+ readonly INCREMENTAL: "INCREMENTAL";
198
+ };
199
+ export type ImportMode = (typeof ImportMode)[keyof typeof ImportMode];
197
200
  export interface CreateDatasetImportJobRequest {
198
201
  jobName: string | undefined;
199
202
  datasetArn: string | undefined;
@@ -301,12 +304,14 @@ export interface HPOConfig {
301
304
  hpoResourceConfig?: HPOResourceConfig;
302
305
  algorithmHyperParameterRanges?: HyperParameterRanges;
303
306
  }
304
- export declare enum ObjectiveSensitivity {
305
- HIGH = "HIGH",
306
- LOW = "LOW",
307
- MEDIUM = "MEDIUM",
308
- OFF = "OFF",
309
- }
307
+ export declare const ObjectiveSensitivity: {
308
+ readonly HIGH: "HIGH";
309
+ readonly LOW: "LOW";
310
+ readonly MEDIUM: "MEDIUM";
311
+ readonly OFF: "OFF";
312
+ };
313
+ export type ObjectiveSensitivity =
314
+ (typeof ObjectiveSensitivity)[keyof typeof ObjectiveSensitivity];
310
315
  export interface OptimizationObjective {
311
316
  itemAttribute?: string;
312
317
  objectiveSensitivity?: ObjectiveSensitivity | string;
@@ -332,10 +337,11 @@ export interface CreateSolutionRequest {
332
337
  export interface CreateSolutionResponse {
333
338
  solutionArn?: string;
334
339
  }
335
- export declare enum TrainingMode {
336
- FULL = "FULL",
337
- UPDATE = "UPDATE",
338
- }
340
+ export declare const TrainingMode: {
341
+ readonly FULL: "FULL";
342
+ readonly UPDATE: "UPDATE";
343
+ };
344
+ export type TrainingMode = (typeof TrainingMode)[keyof typeof TrainingMode];
339
345
  export interface CreateSolutionVersionRequest {
340
346
  name?: string;
341
347
  solutionArn: string | undefined;
@@ -889,9 +895,11 @@ export interface ListMetricAttributionsResponse {
889
895
  metricAttributions?: MetricAttributionSummary[];
890
896
  nextToken?: string;
891
897
  }
892
- export declare enum RecipeProvider {
893
- SERVICE = "SERVICE",
894
- }
898
+ export declare const RecipeProvider: {
899
+ readonly SERVICE: "SERVICE";
900
+ };
901
+ export type RecipeProvider =
902
+ (typeof RecipeProvider)[keyof typeof RecipeProvider];
895
903
  export interface ListRecipesRequest {
896
904
  recipeProvider?: RecipeProvider | string;
897
905
  nextToken?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-personalize",
3
3
  "description": "AWS SDK for JavaScript Personalize Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.303.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",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",