@aws-sdk/client-personalize-runtime 3.901.0 → 3.906.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.
Files changed (2) hide show
  1. package/dist-cjs/index.js +428 -530
  2. package/package.json +5 -5
package/dist-cjs/index.js CHANGED
@@ -1,552 +1,450 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "personalize",
25
+ });
10
26
  };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
31
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
32
  };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- GetActionRecommendationsCommand: () => GetActionRecommendationsCommand,
25
- GetActionRecommendationsRequestFilterSensitiveLog: () => GetActionRecommendationsRequestFilterSensitiveLog,
26
- GetPersonalizedRankingCommand: () => GetPersonalizedRankingCommand,
27
- GetPersonalizedRankingRequestFilterSensitiveLog: () => GetPersonalizedRankingRequestFilterSensitiveLog,
28
- GetPersonalizedRankingResponseFilterSensitiveLog: () => GetPersonalizedRankingResponseFilterSensitiveLog,
29
- GetRecommendationsCommand: () => GetRecommendationsCommand,
30
- GetRecommendationsRequestFilterSensitiveLog: () => GetRecommendationsRequestFilterSensitiveLog,
31
- GetRecommendationsResponseFilterSensitiveLog: () => GetRecommendationsResponseFilterSensitiveLog,
32
- InvalidInputException: () => InvalidInputException,
33
- PersonalizeRuntime: () => PersonalizeRuntime,
34
- PersonalizeRuntimeClient: () => PersonalizeRuntimeClient,
35
- PersonalizeRuntimeServiceException: () => PersonalizeRuntimeServiceException,
36
- PredictedItemFilterSensitiveLog: () => PredictedItemFilterSensitiveLog,
37
- PromotionFilterSensitiveLog: () => PromotionFilterSensitiveLog,
38
- ResourceNotFoundException: () => ResourceNotFoundException,
39
- __Client: () => import_smithy_client.Client
40
- });
41
- module.exports = __toCommonJS(index_exports);
42
-
43
- // src/PersonalizeRuntimeClient.ts
44
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
45
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
46
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
47
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
48
- var import_config_resolver = require("@smithy/config-resolver");
49
- var import_core = require("@smithy/core");
50
- var import_middleware_content_length = require("@smithy/middleware-content-length");
51
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
52
- var import_middleware_retry = require("@smithy/middleware-retry");
53
-
54
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
55
33
 
56
- // src/endpoint/EndpointParameters.ts
57
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
58
- return Object.assign(options, {
59
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
60
- useFipsEndpoint: options.useFipsEndpoint ?? false,
61
- defaultSigningName: "personalize"
62
- });
63
- }, "resolveClientEndpointParameters");
64
- var commonParams = {
65
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
66
- Endpoint: { type: "builtInParams", name: "endpoint" },
67
- Region: { type: "builtInParams", name: "region" },
68
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
69
71
  };
70
72
 
71
- // src/PersonalizeRuntimeClient.ts
72
- var import_runtimeConfig = require("././runtimeConfig");
73
-
74
- // src/runtimeExtensions.ts
75
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
76
- var import_protocol_http = require("@smithy/protocol-http");
77
- var import_smithy_client = require("@smithy/smithy-client");
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
78
78
 
79
- // src/auth/httpAuthExtensionConfiguration.ts
80
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
81
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
82
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
83
- let _credentials = runtimeConfig.credentials;
84
- return {
85
- setHttpAuthScheme(httpAuthScheme) {
86
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
87
- if (index === -1) {
88
- _httpAuthSchemes.push(httpAuthScheme);
89
- } else {
90
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
91
- }
92
- },
93
- httpAuthSchemes() {
94
- return _httpAuthSchemes;
95
- },
96
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
97
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
98
- },
99
- httpAuthSchemeProvider() {
100
- return _httpAuthSchemeProvider;
101
- },
102
- setCredentials(credentials) {
103
- _credentials = credentials;
104
- },
105
- credentials() {
106
- return _credentials;
79
+ class PersonalizeRuntimeClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultPersonalizeRuntimeHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
107
+ }
108
+ destroy() {
109
+ super.destroy();
107
110
  }
108
- };
109
- }, "getHttpAuthExtensionConfiguration");
110
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
111
- return {
112
- httpAuthSchemes: config.httpAuthSchemes(),
113
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
114
- credentials: config.credentials()
115
- };
116
- }, "resolveHttpAuthRuntimeConfig");
111
+ }
117
112
 
118
- // src/runtimeExtensions.ts
119
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
120
- const extensionConfiguration = Object.assign(
121
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
122
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
123
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
124
- getHttpAuthExtensionConfiguration(runtimeConfig)
125
- );
126
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
127
- return Object.assign(
128
- runtimeConfig,
129
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
130
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
131
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
132
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
133
- );
134
- }, "resolveRuntimeExtensions");
113
+ class PersonalizeRuntimeServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, PersonalizeRuntimeServiceException.prototype);
117
+ }
118
+ }
119
+
120
+ class InvalidInputException extends PersonalizeRuntimeServiceException {
121
+ name = "InvalidInputException";
122
+ $fault = "client";
123
+ constructor(opts) {
124
+ super({
125
+ name: "InvalidInputException",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ Object.setPrototypeOf(this, InvalidInputException.prototype);
130
+ }
131
+ }
132
+ class ResourceNotFoundException extends PersonalizeRuntimeServiceException {
133
+ name = "ResourceNotFoundException";
134
+ $fault = "client";
135
+ constructor(opts) {
136
+ super({
137
+ name: "ResourceNotFoundException",
138
+ $fault: "client",
139
+ ...opts,
140
+ });
141
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
142
+ }
143
+ }
144
+ const GetActionRecommendationsRequestFilterSensitiveLog = (obj) => ({
145
+ ...obj,
146
+ ...(obj.filterValues && { filterValues: smithyClient.SENSITIVE_STRING }),
147
+ });
148
+ const GetPersonalizedRankingRequestFilterSensitiveLog = (obj) => ({
149
+ ...obj,
150
+ ...(obj.context && { context: smithyClient.SENSITIVE_STRING }),
151
+ ...(obj.filterValues && { filterValues: smithyClient.SENSITIVE_STRING }),
152
+ });
153
+ const PredictedItemFilterSensitiveLog = (obj) => ({
154
+ ...obj,
155
+ ...(obj.metadata && { metadata: smithyClient.SENSITIVE_STRING }),
156
+ });
157
+ const GetPersonalizedRankingResponseFilterSensitiveLog = (obj) => ({
158
+ ...obj,
159
+ ...(obj.personalizedRanking && {
160
+ personalizedRanking: obj.personalizedRanking.map((item) => PredictedItemFilterSensitiveLog(item)),
161
+ }),
162
+ });
163
+ const PromotionFilterSensitiveLog = (obj) => ({
164
+ ...obj,
165
+ ...(obj.filterValues && { filterValues: smithyClient.SENSITIVE_STRING }),
166
+ });
167
+ const GetRecommendationsRequestFilterSensitiveLog = (obj) => ({
168
+ ...obj,
169
+ ...(obj.context && { context: smithyClient.SENSITIVE_STRING }),
170
+ ...(obj.filterValues && { filterValues: smithyClient.SENSITIVE_STRING }),
171
+ ...(obj.promotions && { promotions: obj.promotions.map((item) => PromotionFilterSensitiveLog(item)) }),
172
+ });
173
+ const GetRecommendationsResponseFilterSensitiveLog = (obj) => ({
174
+ ...obj,
175
+ ...(obj.itemList && { itemList: obj.itemList.map((item) => PredictedItemFilterSensitiveLog(item)) }),
176
+ });
135
177
 
136
- // src/PersonalizeRuntimeClient.ts
137
- var PersonalizeRuntimeClient = class extends import_smithy_client.Client {
138
- static {
139
- __name(this, "PersonalizeRuntimeClient");
140
- }
141
- /**
142
- * The resolved configuration of PersonalizeRuntimeClient class. This is resolved and normalized from the {@link PersonalizeRuntimeClientConfig | constructor configuration interface}.
143
- */
144
- config;
145
- constructor(...[configuration]) {
146
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
147
- super(_config_0);
148
- this.initConfig = _config_0;
149
- const _config_1 = resolveClientEndpointParameters(_config_0);
150
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
151
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
152
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
153
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
154
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
155
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
156
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
157
- this.config = _config_8;
158
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
159
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
160
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
161
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
162
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
163
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
164
- this.middlewareStack.use(
165
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
166
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultPersonalizeRuntimeHttpAuthSchemeParametersProvider,
167
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
168
- "aws.auth#sigv4": config.credentials
169
- }), "identityProviderConfigProvider")
170
- })
171
- );
172
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
173
- }
174
- /**
175
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
176
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
177
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
178
- */
179
- destroy() {
180
- super.destroy();
181
- }
178
+ const se_GetActionRecommendationsCommand = async (input, context) => {
179
+ const b = core.requestBuilder(input, context);
180
+ const headers = {
181
+ "content-type": "application/json",
182
+ };
183
+ b.bp("/action-recommendations");
184
+ let body;
185
+ body = JSON.stringify(smithyClient.take(input, {
186
+ campaignArn: [],
187
+ filterArn: [],
188
+ filterValues: (_) => smithyClient._json(_),
189
+ numResults: [],
190
+ userId: [],
191
+ }));
192
+ b.m("POST").h(headers).b(body);
193
+ return b.build();
182
194
  };
183
-
184
- // src/PersonalizeRuntime.ts
185
-
186
-
187
- // src/commands/GetActionRecommendationsCommand.ts
188
-
189
- var import_middleware_serde = require("@smithy/middleware-serde");
190
-
191
-
192
- // src/models/models_0.ts
193
-
194
-
195
- // src/models/PersonalizeRuntimeServiceException.ts
196
-
197
- var PersonalizeRuntimeServiceException = class _PersonalizeRuntimeServiceException extends import_smithy_client.ServiceException {
198
- static {
199
- __name(this, "PersonalizeRuntimeServiceException");
200
- }
201
- /**
202
- * @internal
203
- */
204
- constructor(options) {
205
- super(options);
206
- Object.setPrototypeOf(this, _PersonalizeRuntimeServiceException.prototype);
207
- }
195
+ const se_GetPersonalizedRankingCommand = async (input, context) => {
196
+ const b = core.requestBuilder(input, context);
197
+ const headers = {
198
+ "content-type": "application/json",
199
+ };
200
+ b.bp("/personalize-ranking");
201
+ let body;
202
+ body = JSON.stringify(smithyClient.take(input, {
203
+ campaignArn: [],
204
+ context: (_) => smithyClient._json(_),
205
+ filterArn: [],
206
+ filterValues: (_) => smithyClient._json(_),
207
+ inputList: (_) => smithyClient._json(_),
208
+ metadataColumns: (_) => smithyClient._json(_),
209
+ userId: [],
210
+ }));
211
+ b.m("POST").h(headers).b(body);
212
+ return b.build();
208
213
  };
209
-
210
- // src/models/models_0.ts
211
- var InvalidInputException = class _InvalidInputException extends PersonalizeRuntimeServiceException {
212
- static {
213
- __name(this, "InvalidInputException");
214
- }
215
- name = "InvalidInputException";
216
- $fault = "client";
217
- /**
218
- * @internal
219
- */
220
- constructor(opts) {
221
- super({
222
- name: "InvalidInputException",
223
- $fault: "client",
224
- ...opts
214
+ const se_GetRecommendationsCommand = async (input, context) => {
215
+ const b = core.requestBuilder(input, context);
216
+ const headers = {
217
+ "content-type": "application/json",
218
+ };
219
+ b.bp("/recommendations");
220
+ let body;
221
+ body = JSON.stringify(smithyClient.take(input, {
222
+ campaignArn: [],
223
+ context: (_) => smithyClient._json(_),
224
+ filterArn: [],
225
+ filterValues: (_) => smithyClient._json(_),
226
+ itemId: [],
227
+ metadataColumns: (_) => smithyClient._json(_),
228
+ numResults: [],
229
+ promotions: (_) => smithyClient._json(_),
230
+ recommenderArn: [],
231
+ userId: [],
232
+ }));
233
+ b.m("POST").h(headers).b(body);
234
+ return b.build();
235
+ };
236
+ const de_GetActionRecommendationsCommand = async (output, context) => {
237
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
238
+ return de_CommandError(output, context);
239
+ }
240
+ const contents = smithyClient.map({
241
+ $metadata: deserializeMetadata(output),
242
+ });
243
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
244
+ const doc = smithyClient.take(data, {
245
+ actionList: (_) => de_ActionList(_),
246
+ recommendationId: smithyClient.expectString,
225
247
  });
226
- Object.setPrototypeOf(this, _InvalidInputException.prototype);
227
- }
248
+ Object.assign(contents, doc);
249
+ return contents;
228
250
  };
229
- var ResourceNotFoundException = class _ResourceNotFoundException extends PersonalizeRuntimeServiceException {
230
- static {
231
- __name(this, "ResourceNotFoundException");
232
- }
233
- name = "ResourceNotFoundException";
234
- $fault = "client";
235
- /**
236
- * @internal
237
- */
238
- constructor(opts) {
239
- super({
240
- name: "ResourceNotFoundException",
241
- $fault: "client",
242
- ...opts
251
+ const de_GetPersonalizedRankingCommand = async (output, context) => {
252
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
253
+ return de_CommandError(output, context);
254
+ }
255
+ const contents = smithyClient.map({
256
+ $metadata: deserializeMetadata(output),
257
+ });
258
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
259
+ const doc = smithyClient.take(data, {
260
+ personalizedRanking: (_) => de_ItemList(_),
261
+ recommendationId: smithyClient.expectString,
243
262
  });
244
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
245
- }
263
+ Object.assign(contents, doc);
264
+ return contents;
246
265
  };
247
- var GetActionRecommendationsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
248
- ...obj,
249
- ...obj.filterValues && { filterValues: import_smithy_client.SENSITIVE_STRING }
250
- }), "GetActionRecommendationsRequestFilterSensitiveLog");
251
- var GetPersonalizedRankingRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
252
- ...obj,
253
- ...obj.context && { context: import_smithy_client.SENSITIVE_STRING },
254
- ...obj.filterValues && { filterValues: import_smithy_client.SENSITIVE_STRING }
255
- }), "GetPersonalizedRankingRequestFilterSensitiveLog");
256
- var PredictedItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
257
- ...obj,
258
- ...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
259
- }), "PredictedItemFilterSensitiveLog");
260
- var GetPersonalizedRankingResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
261
- ...obj,
262
- ...obj.personalizedRanking && {
263
- personalizedRanking: obj.personalizedRanking.map((item) => PredictedItemFilterSensitiveLog(item))
264
- }
265
- }), "GetPersonalizedRankingResponseFilterSensitiveLog");
266
- var PromotionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
267
- ...obj,
268
- ...obj.filterValues && { filterValues: import_smithy_client.SENSITIVE_STRING }
269
- }), "PromotionFilterSensitiveLog");
270
- var GetRecommendationsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
271
- ...obj,
272
- ...obj.context && { context: import_smithy_client.SENSITIVE_STRING },
273
- ...obj.filterValues && { filterValues: import_smithy_client.SENSITIVE_STRING },
274
- ...obj.promotions && { promotions: obj.promotions.map((item) => PromotionFilterSensitiveLog(item)) }
275
- }), "GetRecommendationsRequestFilterSensitiveLog");
276
- var GetRecommendationsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
277
- ...obj,
278
- ...obj.itemList && { itemList: obj.itemList.map((item) => PredictedItemFilterSensitiveLog(item)) }
279
- }), "GetRecommendationsResponseFilterSensitiveLog");
280
-
281
- // src/protocols/Aws_restJson1.ts
282
- var import_core2 = require("@aws-sdk/core");
283
-
284
-
285
- var se_GetActionRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
286
- const b = (0, import_core.requestBuilder)(input, context);
287
- const headers = {
288
- "content-type": "application/json"
289
- };
290
- b.bp("/action-recommendations");
291
- let body;
292
- body = JSON.stringify(
293
- (0, import_smithy_client.take)(input, {
294
- campaignArn: [],
295
- filterArn: [],
296
- filterValues: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filterValues"),
297
- numResults: [],
298
- userId: []
299
- })
300
- );
301
- b.m("POST").h(headers).b(body);
302
- return b.build();
303
- }, "se_GetActionRecommendationsCommand");
304
- var se_GetPersonalizedRankingCommand = /* @__PURE__ */ __name(async (input, context) => {
305
- const b = (0, import_core.requestBuilder)(input, context);
306
- const headers = {
307
- "content-type": "application/json"
308
- };
309
- b.bp("/personalize-ranking");
310
- let body;
311
- body = JSON.stringify(
312
- (0, import_smithy_client.take)(input, {
313
- campaignArn: [],
314
- context: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "context"),
315
- filterArn: [],
316
- filterValues: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filterValues"),
317
- inputList: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "inputList"),
318
- metadataColumns: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "metadataColumns"),
319
- userId: []
320
- })
321
- );
322
- b.m("POST").h(headers).b(body);
323
- return b.build();
324
- }, "se_GetPersonalizedRankingCommand");
325
- var se_GetRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
326
- const b = (0, import_core.requestBuilder)(input, context);
327
- const headers = {
328
- "content-type": "application/json"
329
- };
330
- b.bp("/recommendations");
331
- let body;
332
- body = JSON.stringify(
333
- (0, import_smithy_client.take)(input, {
334
- campaignArn: [],
335
- context: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "context"),
336
- filterArn: [],
337
- filterValues: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filterValues"),
338
- itemId: [],
339
- metadataColumns: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "metadataColumns"),
340
- numResults: [],
341
- promotions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "promotions"),
342
- recommenderArn: [],
343
- userId: []
344
- })
345
- );
346
- b.m("POST").h(headers).b(body);
347
- return b.build();
348
- }, "se_GetRecommendationsCommand");
349
- var de_GetActionRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
350
- if (output.statusCode !== 200 && output.statusCode >= 300) {
351
- return de_CommandError(output, context);
352
- }
353
- const contents = (0, import_smithy_client.map)({
354
- $metadata: deserializeMetadata(output)
355
- });
356
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
357
- const doc = (0, import_smithy_client.take)(data, {
358
- actionList: /* @__PURE__ */ __name((_) => de_ActionList(_, context), "actionList"),
359
- recommendationId: import_smithy_client.expectString
360
- });
361
- Object.assign(contents, doc);
362
- return contents;
363
- }, "de_GetActionRecommendationsCommand");
364
- var de_GetPersonalizedRankingCommand = /* @__PURE__ */ __name(async (output, context) => {
365
- if (output.statusCode !== 200 && output.statusCode >= 300) {
366
- return de_CommandError(output, context);
367
- }
368
- const contents = (0, import_smithy_client.map)({
369
- $metadata: deserializeMetadata(output)
370
- });
371
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
372
- const doc = (0, import_smithy_client.take)(data, {
373
- personalizedRanking: /* @__PURE__ */ __name((_) => de_ItemList(_, context), "personalizedRanking"),
374
- recommendationId: import_smithy_client.expectString
375
- });
376
- Object.assign(contents, doc);
377
- return contents;
378
- }, "de_GetPersonalizedRankingCommand");
379
- var de_GetRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
380
- if (output.statusCode !== 200 && output.statusCode >= 300) {
381
- return de_CommandError(output, context);
382
- }
383
- const contents = (0, import_smithy_client.map)({
384
- $metadata: deserializeMetadata(output)
385
- });
386
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
387
- const doc = (0, import_smithy_client.take)(data, {
388
- itemList: /* @__PURE__ */ __name((_) => de_ItemList(_, context), "itemList"),
389
- recommendationId: import_smithy_client.expectString
390
- });
391
- Object.assign(contents, doc);
392
- return contents;
393
- }, "de_GetRecommendationsCommand");
394
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
395
- const parsedOutput = {
396
- ...output,
397
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
398
- };
399
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
400
- switch (errorCode) {
401
- case "InvalidInputException":
402
- case "com.amazonaws.personalizeruntime#InvalidInputException":
403
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
404
- case "ResourceNotFoundException":
405
- case "com.amazonaws.personalizeruntime#ResourceNotFoundException":
406
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
407
- default:
408
- const parsedBody = parsedOutput.body;
409
- return throwDefaultError({
410
- output,
411
- parsedBody,
412
- errorCode
413
- });
414
- }
415
- }, "de_CommandError");
416
- var throwDefaultError = (0, import_smithy_client.withBaseException)(PersonalizeRuntimeServiceException);
417
- var de_InvalidInputExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
418
- const contents = (0, import_smithy_client.map)({});
419
- const data = parsedOutput.body;
420
- const doc = (0, import_smithy_client.take)(data, {
421
- message: import_smithy_client.expectString
422
- });
423
- Object.assign(contents, doc);
424
- const exception = new InvalidInputException({
425
- $metadata: deserializeMetadata(parsedOutput),
426
- ...contents
427
- });
428
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
429
- }, "de_InvalidInputExceptionRes");
430
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
431
- const contents = (0, import_smithy_client.map)({});
432
- const data = parsedOutput.body;
433
- const doc = (0, import_smithy_client.take)(data, {
434
- message: import_smithy_client.expectString
435
- });
436
- Object.assign(contents, doc);
437
- const exception = new ResourceNotFoundException({
438
- $metadata: deserializeMetadata(parsedOutput),
439
- ...contents
440
- });
441
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
442
- }, "de_ResourceNotFoundExceptionRes");
443
- var de_ActionList = /* @__PURE__ */ __name((output, context) => {
444
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
445
- return de_PredictedAction(entry, context);
446
- });
447
- return retVal;
448
- }, "de_ActionList");
449
- var de_ItemList = /* @__PURE__ */ __name((output, context) => {
450
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
451
- return de_PredictedItem(entry, context);
452
- });
453
- return retVal;
454
- }, "de_ItemList");
455
- var de_PredictedAction = /* @__PURE__ */ __name((output, context) => {
456
- return (0, import_smithy_client.take)(output, {
457
- actionId: import_smithy_client.expectString,
458
- score: import_smithy_client.limitedParseDouble
459
- });
460
- }, "de_PredictedAction");
461
- var de_PredictedItem = /* @__PURE__ */ __name((output, context) => {
462
- return (0, import_smithy_client.take)(output, {
463
- itemId: import_smithy_client.expectString,
464
- metadata: import_smithy_client._json,
465
- promotionName: import_smithy_client.expectString,
466
- reason: import_smithy_client._json,
467
- score: import_smithy_client.limitedParseDouble
468
- });
469
- }, "de_PredictedItem");
470
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
471
- httpStatusCode: output.statusCode,
472
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
473
- extendedRequestId: output.headers["x-amz-id-2"],
474
- cfId: output.headers["x-amz-cf-id"]
475
- }), "deserializeMetadata");
476
-
477
- // src/commands/GetActionRecommendationsCommand.ts
478
- var GetActionRecommendationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
479
- return [
480
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
481
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
482
- ];
483
- }).s("AmazonPersonalizeRuntime", "GetActionRecommendations", {}).n("PersonalizeRuntimeClient", "GetActionRecommendationsCommand").f(GetActionRecommendationsRequestFilterSensitiveLog, void 0).ser(se_GetActionRecommendationsCommand).de(de_GetActionRecommendationsCommand).build() {
484
- static {
485
- __name(this, "GetActionRecommendationsCommand");
486
- }
266
+ const de_GetRecommendationsCommand = async (output, context) => {
267
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
268
+ return de_CommandError(output, context);
269
+ }
270
+ const contents = smithyClient.map({
271
+ $metadata: deserializeMetadata(output),
272
+ });
273
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
274
+ const doc = smithyClient.take(data, {
275
+ itemList: (_) => de_ItemList(_),
276
+ recommendationId: smithyClient.expectString,
277
+ });
278
+ Object.assign(contents, doc);
279
+ return contents;
487
280
  };
488
-
489
- // src/commands/GetPersonalizedRankingCommand.ts
490
-
491
-
492
-
493
- var GetPersonalizedRankingCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
494
- return [
495
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
496
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
497
- ];
498
- }).s("AmazonPersonalizeRuntime", "GetPersonalizedRanking", {}).n("PersonalizeRuntimeClient", "GetPersonalizedRankingCommand").f(GetPersonalizedRankingRequestFilterSensitiveLog, GetPersonalizedRankingResponseFilterSensitiveLog).ser(se_GetPersonalizedRankingCommand).de(de_GetPersonalizedRankingCommand).build() {
499
- static {
500
- __name(this, "GetPersonalizedRankingCommand");
501
- }
281
+ const de_CommandError = async (output, context) => {
282
+ const parsedOutput = {
283
+ ...output,
284
+ body: await core$1.parseJsonErrorBody(output.body, context),
285
+ };
286
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
287
+ switch (errorCode) {
288
+ case "InvalidInputException":
289
+ case "com.amazonaws.personalizeruntime#InvalidInputException":
290
+ throw await de_InvalidInputExceptionRes(parsedOutput);
291
+ case "ResourceNotFoundException":
292
+ case "com.amazonaws.personalizeruntime#ResourceNotFoundException":
293
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
294
+ default:
295
+ const parsedBody = parsedOutput.body;
296
+ return throwDefaultError({
297
+ output,
298
+ parsedBody,
299
+ errorCode,
300
+ });
301
+ }
502
302
  };
503
-
504
- // src/commands/GetRecommendationsCommand.ts
505
-
506
-
507
-
508
- var GetRecommendationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
509
- return [
510
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
511
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
512
- ];
513
- }).s("AmazonPersonalizeRuntime", "GetRecommendations", {}).n("PersonalizeRuntimeClient", "GetRecommendationsCommand").f(GetRecommendationsRequestFilterSensitiveLog, GetRecommendationsResponseFilterSensitiveLog).ser(se_GetRecommendationsCommand).de(de_GetRecommendationsCommand).build() {
514
- static {
515
- __name(this, "GetRecommendationsCommand");
516
- }
303
+ const throwDefaultError = smithyClient.withBaseException(PersonalizeRuntimeServiceException);
304
+ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
305
+ const contents = smithyClient.map({});
306
+ const data = parsedOutput.body;
307
+ const doc = smithyClient.take(data, {
308
+ message: smithyClient.expectString,
309
+ });
310
+ Object.assign(contents, doc);
311
+ const exception = new InvalidInputException({
312
+ $metadata: deserializeMetadata(parsedOutput),
313
+ ...contents,
314
+ });
315
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
517
316
  };
518
-
519
- // src/PersonalizeRuntime.ts
520
- var commands = {
521
- GetActionRecommendationsCommand,
522
- GetPersonalizedRankingCommand,
523
- GetRecommendationsCommand
317
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
318
+ const contents = smithyClient.map({});
319
+ const data = parsedOutput.body;
320
+ const doc = smithyClient.take(data, {
321
+ message: smithyClient.expectString,
322
+ });
323
+ Object.assign(contents, doc);
324
+ const exception = new ResourceNotFoundException({
325
+ $metadata: deserializeMetadata(parsedOutput),
326
+ ...contents,
327
+ });
328
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
524
329
  };
525
- var PersonalizeRuntime = class extends PersonalizeRuntimeClient {
526
- static {
527
- __name(this, "PersonalizeRuntime");
528
- }
330
+ const de_ActionList = (output, context) => {
331
+ const retVal = (output || [])
332
+ .filter((e) => e != null)
333
+ .map((entry) => {
334
+ return de_PredictedAction(entry);
335
+ });
336
+ return retVal;
529
337
  };
530
- (0, import_smithy_client.createAggregatedClient)(commands, PersonalizeRuntime);
531
- // Annotate the CommonJS export names for ESM import in node:
532
-
533
- 0 && (module.exports = {
534
- PersonalizeRuntimeServiceException,
535
- __Client,
536
- PersonalizeRuntimeClient,
537
- PersonalizeRuntime,
538
- $Command,
539
- GetActionRecommendationsCommand,
540
- GetPersonalizedRankingCommand,
541
- GetRecommendationsCommand,
542
- InvalidInputException,
543
- ResourceNotFoundException,
544
- GetActionRecommendationsRequestFilterSensitiveLog,
545
- GetPersonalizedRankingRequestFilterSensitiveLog,
546
- PredictedItemFilterSensitiveLog,
547
- GetPersonalizedRankingResponseFilterSensitiveLog,
548
- PromotionFilterSensitiveLog,
549
- GetRecommendationsRequestFilterSensitiveLog,
550
- GetRecommendationsResponseFilterSensitiveLog
338
+ const de_ItemList = (output, context) => {
339
+ const retVal = (output || [])
340
+ .filter((e) => e != null)
341
+ .map((entry) => {
342
+ return de_PredictedItem(entry);
343
+ });
344
+ return retVal;
345
+ };
346
+ const de_PredictedAction = (output, context) => {
347
+ return smithyClient.take(output, {
348
+ actionId: smithyClient.expectString,
349
+ score: smithyClient.limitedParseDouble,
350
+ });
351
+ };
352
+ const de_PredictedItem = (output, context) => {
353
+ return smithyClient.take(output, {
354
+ itemId: smithyClient.expectString,
355
+ metadata: smithyClient._json,
356
+ promotionName: smithyClient.expectString,
357
+ reason: smithyClient._json,
358
+ score: smithyClient.limitedParseDouble,
359
+ });
360
+ };
361
+ const deserializeMetadata = (output) => ({
362
+ httpStatusCode: output.statusCode,
363
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
364
+ extendedRequestId: output.headers["x-amz-id-2"],
365
+ cfId: output.headers["x-amz-cf-id"],
551
366
  });
552
367
 
368
+ class GetActionRecommendationsCommand extends smithyClient.Command
369
+ .classBuilder()
370
+ .ep(commonParams)
371
+ .m(function (Command, cs, config, o) {
372
+ return [
373
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
374
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
375
+ ];
376
+ })
377
+ .s("AmazonPersonalizeRuntime", "GetActionRecommendations", {})
378
+ .n("PersonalizeRuntimeClient", "GetActionRecommendationsCommand")
379
+ .f(GetActionRecommendationsRequestFilterSensitiveLog, void 0)
380
+ .ser(se_GetActionRecommendationsCommand)
381
+ .de(de_GetActionRecommendationsCommand)
382
+ .build() {
383
+ }
384
+
385
+ class GetPersonalizedRankingCommand extends smithyClient.Command
386
+ .classBuilder()
387
+ .ep(commonParams)
388
+ .m(function (Command, cs, config, o) {
389
+ return [
390
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
391
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
392
+ ];
393
+ })
394
+ .s("AmazonPersonalizeRuntime", "GetPersonalizedRanking", {})
395
+ .n("PersonalizeRuntimeClient", "GetPersonalizedRankingCommand")
396
+ .f(GetPersonalizedRankingRequestFilterSensitiveLog, GetPersonalizedRankingResponseFilterSensitiveLog)
397
+ .ser(se_GetPersonalizedRankingCommand)
398
+ .de(de_GetPersonalizedRankingCommand)
399
+ .build() {
400
+ }
401
+
402
+ class GetRecommendationsCommand extends smithyClient.Command
403
+ .classBuilder()
404
+ .ep(commonParams)
405
+ .m(function (Command, cs, config, o) {
406
+ return [
407
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
408
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
409
+ ];
410
+ })
411
+ .s("AmazonPersonalizeRuntime", "GetRecommendations", {})
412
+ .n("PersonalizeRuntimeClient", "GetRecommendationsCommand")
413
+ .f(GetRecommendationsRequestFilterSensitiveLog, GetRecommendationsResponseFilterSensitiveLog)
414
+ .ser(se_GetRecommendationsCommand)
415
+ .de(de_GetRecommendationsCommand)
416
+ .build() {
417
+ }
418
+
419
+ const commands = {
420
+ GetActionRecommendationsCommand,
421
+ GetPersonalizedRankingCommand,
422
+ GetRecommendationsCommand,
423
+ };
424
+ class PersonalizeRuntime extends PersonalizeRuntimeClient {
425
+ }
426
+ smithyClient.createAggregatedClient(commands, PersonalizeRuntime);
427
+
428
+ Object.defineProperty(exports, "$Command", {
429
+ enumerable: true,
430
+ get: function () { return smithyClient.Command; }
431
+ });
432
+ Object.defineProperty(exports, "__Client", {
433
+ enumerable: true,
434
+ get: function () { return smithyClient.Client; }
435
+ });
436
+ exports.GetActionRecommendationsCommand = GetActionRecommendationsCommand;
437
+ exports.GetActionRecommendationsRequestFilterSensitiveLog = GetActionRecommendationsRequestFilterSensitiveLog;
438
+ exports.GetPersonalizedRankingCommand = GetPersonalizedRankingCommand;
439
+ exports.GetPersonalizedRankingRequestFilterSensitiveLog = GetPersonalizedRankingRequestFilterSensitiveLog;
440
+ exports.GetPersonalizedRankingResponseFilterSensitiveLog = GetPersonalizedRankingResponseFilterSensitiveLog;
441
+ exports.GetRecommendationsCommand = GetRecommendationsCommand;
442
+ exports.GetRecommendationsRequestFilterSensitiveLog = GetRecommendationsRequestFilterSensitiveLog;
443
+ exports.GetRecommendationsResponseFilterSensitiveLog = GetRecommendationsResponseFilterSensitiveLog;
444
+ exports.InvalidInputException = InvalidInputException;
445
+ exports.PersonalizeRuntime = PersonalizeRuntime;
446
+ exports.PersonalizeRuntimeClient = PersonalizeRuntimeClient;
447
+ exports.PersonalizeRuntimeServiceException = PersonalizeRuntimeServiceException;
448
+ exports.PredictedItemFilterSensitiveLog = PredictedItemFilterSensitiveLog;
449
+ exports.PromotionFilterSensitiveLog = PromotionFilterSensitiveLog;
450
+ exports.ResourceNotFoundException = ResourceNotFoundException;
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.901.0",
4
+ "version": "3.906.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,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.901.0",
24
- "@aws-sdk/credential-provider-node": "3.901.0",
23
+ "@aws-sdk/core": "3.906.0",
24
+ "@aws-sdk/credential-provider-node": "3.906.0",
25
25
  "@aws-sdk/middleware-host-header": "3.901.0",
26
26
  "@aws-sdk/middleware-logger": "3.901.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.901.0",
28
- "@aws-sdk/middleware-user-agent": "3.901.0",
28
+ "@aws-sdk/middleware-user-agent": "3.906.0",
29
29
  "@aws-sdk/region-config-resolver": "3.901.0",
30
30
  "@aws-sdk/types": "3.901.0",
31
31
  "@aws-sdk/util-endpoints": "3.901.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.901.0",
33
- "@aws-sdk/util-user-agent-node": "3.901.0",
33
+ "@aws-sdk/util-user-agent-node": "3.906.0",
34
34
  "@smithy/config-resolver": "^4.3.0",
35
35
  "@smithy/core": "^3.14.0",
36
36
  "@smithy/fetch-http-handler": "^5.3.0",