@aws-sdk/client-personalize-runtime 3.52.0 → 3.54.1
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 +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/PersonalizeRuntimeServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +28 -1
- package/dist-cjs/protocols/Aws_restJson1.js +28 -59
- package/dist-es/index.js +1 -0
- package/dist-es/models/PersonalizeRuntimeServiceException.js +12 -0
- package/dist-es/models/models_0.js +26 -1
- package/dist-es/protocols/Aws_restJson1.js +45 -70
- package/dist-types/PersonalizeRuntimeClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/PersonalizeRuntimeServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +16 -9
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/PersonalizeRuntimeClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/PersonalizeRuntimeServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +12 -9
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-personalize-runtime
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-personalize-runtime
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-personalize-runtime
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PersonalizeRuntimeServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./PersonalizeRuntime"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./PersonalizeRuntimeClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
var PersonalizeRuntimeServiceException_1 = require("./models/PersonalizeRuntimeServiceException");
|
|
10
|
+
Object.defineProperty(exports, "PersonalizeRuntimeServiceException", { enumerable: true, get: function () { return PersonalizeRuntimeServiceException_1.PersonalizeRuntimeServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PersonalizeRuntimeServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class PersonalizeRuntimeServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, PersonalizeRuntimeServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.PersonalizeRuntimeServiceException = PersonalizeRuntimeServiceException;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetRecommendationsResponse = exports.GetRecommendationsRequest = exports.GetPersonalizedRankingResponse = exports.PredictedItem = exports.GetPersonalizedRankingRequest = void 0;
|
|
3
|
+
exports.GetRecommendationsResponse = exports.GetRecommendationsRequest = exports.ResourceNotFoundException = exports.InvalidInputException = exports.GetPersonalizedRankingResponse = exports.PredictedItem = exports.GetPersonalizedRankingRequest = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
const PersonalizeRuntimeServiceException_1 = require("./PersonalizeRuntimeServiceException");
|
|
5
6
|
var GetPersonalizedRankingRequest;
|
|
6
7
|
(function (GetPersonalizedRankingRequest) {
|
|
7
8
|
GetPersonalizedRankingRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -22,6 +23,32 @@ var GetPersonalizedRankingResponse;
|
|
|
22
23
|
...obj,
|
|
23
24
|
});
|
|
24
25
|
})(GetPersonalizedRankingResponse = exports.GetPersonalizedRankingResponse || (exports.GetPersonalizedRankingResponse = {}));
|
|
26
|
+
class InvalidInputException extends PersonalizeRuntimeServiceException_1.PersonalizeRuntimeServiceException {
|
|
27
|
+
constructor(opts) {
|
|
28
|
+
super({
|
|
29
|
+
name: "InvalidInputException",
|
|
30
|
+
$fault: "client",
|
|
31
|
+
...opts,
|
|
32
|
+
});
|
|
33
|
+
this.name = "InvalidInputException";
|
|
34
|
+
this.$fault = "client";
|
|
35
|
+
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.InvalidInputException = InvalidInputException;
|
|
39
|
+
class ResourceNotFoundException extends PersonalizeRuntimeServiceException_1.PersonalizeRuntimeServiceException {
|
|
40
|
+
constructor(opts) {
|
|
41
|
+
super({
|
|
42
|
+
name: "ResourceNotFoundException",
|
|
43
|
+
$fault: "client",
|
|
44
|
+
...opts,
|
|
45
|
+
});
|
|
46
|
+
this.name = "ResourceNotFoundException";
|
|
47
|
+
this.$fault = "client";
|
|
48
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
25
52
|
var GetRecommendationsRequest;
|
|
26
53
|
(function (GetRecommendationsRequest) {
|
|
27
54
|
GetRecommendationsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1GetRecommendationsCommand = exports.deserializeAws_restJson1GetPersonalizedRankingCommand = exports.serializeAws_restJson1GetRecommendationsCommand = exports.serializeAws_restJson1GetPersonalizedRankingCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const PersonalizeRuntimeServiceException_1 = require("../models/PersonalizeRuntimeServiceException");
|
|
6
8
|
const serializeAws_restJson1GetPersonalizedRankingCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {
|
|
@@ -93,35 +95,19 @@ const deserializeAws_restJson1GetPersonalizedRankingCommandError = async (output
|
|
|
93
95
|
switch (errorCode) {
|
|
94
96
|
case "InvalidInputException":
|
|
95
97
|
case "com.amazonaws.personalizeruntime#InvalidInputException":
|
|
96
|
-
|
|
97
|
-
...(await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
98
|
-
name: errorCode,
|
|
99
|
-
$metadata: deserializeMetadata(output),
|
|
100
|
-
};
|
|
101
|
-
break;
|
|
98
|
+
throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
|
|
102
99
|
case "ResourceNotFoundException":
|
|
103
100
|
case "com.amazonaws.personalizeruntime#ResourceNotFoundException":
|
|
104
|
-
|
|
105
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
106
|
-
name: errorCode,
|
|
107
|
-
$metadata: deserializeMetadata(output),
|
|
108
|
-
};
|
|
109
|
-
break;
|
|
101
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
110
102
|
default:
|
|
111
103
|
const parsedBody = parsedOutput.body;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
...parsedBody,
|
|
115
|
-
name: `${errorCode}`,
|
|
116
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
104
|
+
response = new PersonalizeRuntimeServiceException_1.PersonalizeRuntimeServiceException({
|
|
105
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
117
106
|
$fault: "client",
|
|
118
107
|
$metadata: deserializeMetadata(output),
|
|
119
|
-
};
|
|
108
|
+
});
|
|
109
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
120
110
|
}
|
|
121
|
-
const message = response.message || response.Message || errorCode;
|
|
122
|
-
response.message = message;
|
|
123
|
-
delete response.Message;
|
|
124
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
125
111
|
};
|
|
126
112
|
const deserializeAws_restJson1GetRecommendationsCommand = async (output, context) => {
|
|
127
113
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -153,61 +139,43 @@ const deserializeAws_restJson1GetRecommendationsCommandError = async (output, co
|
|
|
153
139
|
switch (errorCode) {
|
|
154
140
|
case "InvalidInputException":
|
|
155
141
|
case "com.amazonaws.personalizeruntime#InvalidInputException":
|
|
156
|
-
|
|
157
|
-
...(await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
158
|
-
name: errorCode,
|
|
159
|
-
$metadata: deserializeMetadata(output),
|
|
160
|
-
};
|
|
161
|
-
break;
|
|
142
|
+
throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
|
|
162
143
|
case "ResourceNotFoundException":
|
|
163
144
|
case "com.amazonaws.personalizeruntime#ResourceNotFoundException":
|
|
164
|
-
|
|
165
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
166
|
-
name: errorCode,
|
|
167
|
-
$metadata: deserializeMetadata(output),
|
|
168
|
-
};
|
|
169
|
-
break;
|
|
145
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
170
146
|
default:
|
|
171
147
|
const parsedBody = parsedOutput.body;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
...parsedBody,
|
|
175
|
-
name: `${errorCode}`,
|
|
176
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
148
|
+
response = new PersonalizeRuntimeServiceException_1.PersonalizeRuntimeServiceException({
|
|
149
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
177
150
|
$fault: "client",
|
|
178
151
|
$metadata: deserializeMetadata(output),
|
|
179
|
-
};
|
|
152
|
+
});
|
|
153
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
180
154
|
}
|
|
181
|
-
const message = response.message || response.Message || errorCode;
|
|
182
|
-
response.message = message;
|
|
183
|
-
delete response.Message;
|
|
184
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
185
155
|
};
|
|
186
156
|
const deserializeAws_restJson1InvalidInputExceptionResponse = async (parsedOutput, context) => {
|
|
187
|
-
const contents = {
|
|
188
|
-
name: "InvalidInputException",
|
|
189
|
-
$fault: "client",
|
|
190
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
191
|
-
message: undefined,
|
|
192
|
-
};
|
|
157
|
+
const contents = {};
|
|
193
158
|
const data = parsedOutput.body;
|
|
194
159
|
if (data.message !== undefined && data.message !== null) {
|
|
195
160
|
contents.message = smithy_client_1.expectString(data.message);
|
|
196
161
|
}
|
|
197
|
-
|
|
162
|
+
const exception = new models_0_1.InvalidInputException({
|
|
163
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
164
|
+
...contents,
|
|
165
|
+
});
|
|
166
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
198
167
|
};
|
|
199
168
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
200
|
-
const contents = {
|
|
201
|
-
name: "ResourceNotFoundException",
|
|
202
|
-
$fault: "client",
|
|
203
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
204
|
-
message: undefined,
|
|
205
|
-
};
|
|
169
|
+
const contents = {};
|
|
206
170
|
const data = parsedOutput.body;
|
|
207
171
|
if (data.message !== undefined && data.message !== null) {
|
|
208
172
|
contents.message = smithy_client_1.expectString(data.message);
|
|
209
173
|
}
|
|
210
|
-
|
|
174
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
175
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
176
|
+
...contents,
|
|
177
|
+
});
|
|
178
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
211
179
|
};
|
|
212
180
|
const serializeAws_restJson1Context = (input, context) => {
|
|
213
181
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
@@ -242,7 +210,7 @@ const serializeAws_restJson1InputList = (input, context) => {
|
|
|
242
210
|
});
|
|
243
211
|
};
|
|
244
212
|
const deserializeAws_restJson1ItemList = (output, context) => {
|
|
245
|
-
|
|
213
|
+
const retVal = (output || [])
|
|
246
214
|
.filter((e) => e != null)
|
|
247
215
|
.map((entry) => {
|
|
248
216
|
if (entry === null) {
|
|
@@ -250,6 +218,7 @@ const deserializeAws_restJson1ItemList = (output, context) => {
|
|
|
250
218
|
}
|
|
251
219
|
return deserializeAws_restJson1PredictedItem(entry, context);
|
|
252
220
|
});
|
|
221
|
+
return retVal;
|
|
253
222
|
};
|
|
254
223
|
const deserializeAws_restJson1PredictedItem = (output, context) => {
|
|
255
224
|
return {
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var PersonalizeRuntimeServiceException = (function (_super) {
|
|
4
|
+
__extends(PersonalizeRuntimeServiceException, _super);
|
|
5
|
+
function PersonalizeRuntimeServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, PersonalizeRuntimeServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return PersonalizeRuntimeServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { PersonalizeRuntimeServiceException };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { PersonalizeRuntimeServiceException as __BaseException } from "./PersonalizeRuntimeServiceException";
|
|
3
4
|
export var GetPersonalizedRankingRequest;
|
|
4
5
|
(function (GetPersonalizedRankingRequest) {
|
|
5
6
|
GetPersonalizedRankingRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.context && { context: SENSITIVE_STRING })), (obj.filterValues && { filterValues: SENSITIVE_STRING }))); };
|
|
@@ -12,6 +13,30 @@ export var GetPersonalizedRankingResponse;
|
|
|
12
13
|
(function (GetPersonalizedRankingResponse) {
|
|
13
14
|
GetPersonalizedRankingResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
14
15
|
})(GetPersonalizedRankingResponse || (GetPersonalizedRankingResponse = {}));
|
|
16
|
+
var InvalidInputException = (function (_super) {
|
|
17
|
+
__extends(InvalidInputException, _super);
|
|
18
|
+
function InvalidInputException(opts) {
|
|
19
|
+
var _this = _super.call(this, __assign({ name: "InvalidInputException", $fault: "client" }, opts)) || this;
|
|
20
|
+
_this.name = "InvalidInputException";
|
|
21
|
+
_this.$fault = "client";
|
|
22
|
+
Object.setPrototypeOf(_this, InvalidInputException.prototype);
|
|
23
|
+
return _this;
|
|
24
|
+
}
|
|
25
|
+
return InvalidInputException;
|
|
26
|
+
}(__BaseException));
|
|
27
|
+
export { InvalidInputException };
|
|
28
|
+
var ResourceNotFoundException = (function (_super) {
|
|
29
|
+
__extends(ResourceNotFoundException, _super);
|
|
30
|
+
function ResourceNotFoundException(opts) {
|
|
31
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
32
|
+
_this.name = "ResourceNotFoundException";
|
|
33
|
+
_this.$fault = "client";
|
|
34
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
35
|
+
return _this;
|
|
36
|
+
}
|
|
37
|
+
return ResourceNotFoundException;
|
|
38
|
+
}(__BaseException));
|
|
39
|
+
export { ResourceNotFoundException };
|
|
15
40
|
export var GetRecommendationsRequest;
|
|
16
41
|
(function (GetRecommendationsRequest) {
|
|
17
42
|
GetRecommendationsRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.context && { context: SENSITIVE_STRING })), (obj.filterValues && { filterValues: SENSITIVE_STRING }))); };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { InvalidInputException, ResourceNotFoundException } from "../models/models_0";
|
|
5
|
+
import { PersonalizeRuntimeServiceException as __BaseException } from "../models/PersonalizeRuntimeServiceException";
|
|
4
6
|
export var serializeAws_restJson1GetPersonalizedRankingCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -84,16 +86,16 @@ export var deserializeAws_restJson1GetPersonalizedRankingCommand = function (out
|
|
|
84
86
|
});
|
|
85
87
|
}); };
|
|
86
88
|
var deserializeAws_restJson1GetPersonalizedRankingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
87
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
88
|
-
var
|
|
89
|
-
return __generator(this, function (
|
|
90
|
-
switch (
|
|
89
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
90
|
+
var _c;
|
|
91
|
+
return __generator(this, function (_d) {
|
|
92
|
+
switch (_d.label) {
|
|
91
93
|
case 0:
|
|
92
94
|
_a = [__assign({}, output)];
|
|
93
|
-
|
|
95
|
+
_c = {};
|
|
94
96
|
return [4, parseBody(output.body, context)];
|
|
95
97
|
case 1:
|
|
96
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
98
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
97
99
|
errorCode = "UnknownError";
|
|
98
100
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
99
101
|
_b = errorCode;
|
|
@@ -104,28 +106,18 @@ var deserializeAws_restJson1GetPersonalizedRankingCommandError = function (outpu
|
|
|
104
106
|
case "com.amazonaws.personalizeruntime#ResourceNotFoundException": return [3, 4];
|
|
105
107
|
}
|
|
106
108
|
return [3, 6];
|
|
107
|
-
case 2:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
case
|
|
111
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
112
|
-
return [3, 7];
|
|
113
|
-
case 4:
|
|
114
|
-
_d = [{}];
|
|
115
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
116
|
-
case 5:
|
|
117
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
118
|
-
return [3, 7];
|
|
109
|
+
case 2: return [4, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
110
|
+
case 3: throw _d.sent();
|
|
111
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
112
|
+
case 5: throw _d.sent();
|
|
119
113
|
case 6:
|
|
120
114
|
parsedBody = parsedOutput.body;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
response
|
|
127
|
-
delete response.Message;
|
|
128
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
115
|
+
response = new __BaseException({
|
|
116
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
117
|
+
$fault: "client",
|
|
118
|
+
$metadata: deserializeMetadata(output),
|
|
119
|
+
});
|
|
120
|
+
throw __decorateServiceException(response, parsedBody);
|
|
129
121
|
}
|
|
130
122
|
});
|
|
131
123
|
}); };
|
|
@@ -158,16 +150,16 @@ export var deserializeAws_restJson1GetRecommendationsCommand = function (output,
|
|
|
158
150
|
});
|
|
159
151
|
}); };
|
|
160
152
|
var deserializeAws_restJson1GetRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
161
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
162
|
-
var
|
|
163
|
-
return __generator(this, function (
|
|
164
|
-
switch (
|
|
153
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
154
|
+
var _c;
|
|
155
|
+
return __generator(this, function (_d) {
|
|
156
|
+
switch (_d.label) {
|
|
165
157
|
case 0:
|
|
166
158
|
_a = [__assign({}, output)];
|
|
167
|
-
|
|
159
|
+
_c = {};
|
|
168
160
|
return [4, parseBody(output.body, context)];
|
|
169
161
|
case 1:
|
|
170
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
162
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
171
163
|
errorCode = "UnknownError";
|
|
172
164
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
173
165
|
_b = errorCode;
|
|
@@ -178,61 +170,43 @@ var deserializeAws_restJson1GetRecommendationsCommandError = function (output, c
|
|
|
178
170
|
case "com.amazonaws.personalizeruntime#ResourceNotFoundException": return [3, 4];
|
|
179
171
|
}
|
|
180
172
|
return [3, 6];
|
|
181
|
-
case 2:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
case
|
|
185
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
186
|
-
return [3, 7];
|
|
187
|
-
case 4:
|
|
188
|
-
_d = [{}];
|
|
189
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
190
|
-
case 5:
|
|
191
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
192
|
-
return [3, 7];
|
|
173
|
+
case 2: return [4, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
174
|
+
case 3: throw _d.sent();
|
|
175
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
176
|
+
case 5: throw _d.sent();
|
|
193
177
|
case 6:
|
|
194
178
|
parsedBody = parsedOutput.body;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
response
|
|
201
|
-
delete response.Message;
|
|
202
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
179
|
+
response = new __BaseException({
|
|
180
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
181
|
+
$fault: "client",
|
|
182
|
+
$metadata: deserializeMetadata(output),
|
|
183
|
+
});
|
|
184
|
+
throw __decorateServiceException(response, parsedBody);
|
|
203
185
|
}
|
|
204
186
|
});
|
|
205
187
|
}); };
|
|
206
188
|
var deserializeAws_restJson1InvalidInputExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
207
|
-
var contents, data;
|
|
189
|
+
var contents, data, exception;
|
|
208
190
|
return __generator(this, function (_a) {
|
|
209
|
-
contents = {
|
|
210
|
-
name: "InvalidInputException",
|
|
211
|
-
$fault: "client",
|
|
212
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
213
|
-
message: undefined,
|
|
214
|
-
};
|
|
191
|
+
contents = {};
|
|
215
192
|
data = parsedOutput.body;
|
|
216
193
|
if (data.message !== undefined && data.message !== null) {
|
|
217
194
|
contents.message = __expectString(data.message);
|
|
218
195
|
}
|
|
219
|
-
|
|
196
|
+
exception = new InvalidInputException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
197
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
220
198
|
});
|
|
221
199
|
}); };
|
|
222
200
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
223
|
-
var contents, data;
|
|
201
|
+
var contents, data, exception;
|
|
224
202
|
return __generator(this, function (_a) {
|
|
225
|
-
contents = {
|
|
226
|
-
name: "ResourceNotFoundException",
|
|
227
|
-
$fault: "client",
|
|
228
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
229
|
-
message: undefined,
|
|
230
|
-
};
|
|
203
|
+
contents = {};
|
|
231
204
|
data = parsedOutput.body;
|
|
232
205
|
if (data.message !== undefined && data.message !== null) {
|
|
233
206
|
contents.message = __expectString(data.message);
|
|
234
207
|
}
|
|
235
|
-
|
|
208
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
209
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
236
210
|
});
|
|
237
211
|
}); };
|
|
238
212
|
var serializeAws_restJson1Context = function (input, context) {
|
|
@@ -266,7 +240,7 @@ var serializeAws_restJson1InputList = function (input, context) {
|
|
|
266
240
|
});
|
|
267
241
|
};
|
|
268
242
|
var deserializeAws_restJson1ItemList = function (output, context) {
|
|
269
|
-
|
|
243
|
+
var retVal = (output || [])
|
|
270
244
|
.filter(function (e) { return e != null; })
|
|
271
245
|
.map(function (entry) {
|
|
272
246
|
if (entry === null) {
|
|
@@ -274,6 +248,7 @@ var deserializeAws_restJson1ItemList = function (output, context) {
|
|
|
274
248
|
}
|
|
275
249
|
return deserializeAws_restJson1PredictedItem(entry, context);
|
|
276
250
|
});
|
|
251
|
+
return retVal;
|
|
277
252
|
};
|
|
278
253
|
var deserializeAws_restJson1PredictedItem = function (output, context) {
|
|
279
254
|
return {
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { GetPersonalizedRankingCommandInput, GetPersonalizedRankingCommandOutput } from "./commands/GetPersonalizedRankingCommand";
|
|
10
10
|
import { GetRecommendationsCommandInput, GetRecommendationsCommandOutput } from "./commands/GetRecommendationsCommand";
|
|
11
11
|
export declare type ServiceInputTypes = GetPersonalizedRankingCommandInput | GetRecommendationsCommandInput;
|
|
@@ -30,7 +30,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
30
30
|
* A function that can calculate the length of a request body.
|
|
31
31
|
* @internal
|
|
32
32
|
*/
|
|
33
|
-
bodyLengthChecker?:
|
|
33
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
34
34
|
/**
|
|
35
35
|
* A function that converts a stream into an array of bytes.
|
|
36
36
|
* @internal
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from PersonalizeRuntime service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class PersonalizeRuntimeServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { PersonalizeRuntimeServiceException as __BaseException } from "./PersonalizeRuntimeServiceException";
|
|
2
3
|
export interface GetPersonalizedRankingRequest {
|
|
3
4
|
/**
|
|
4
5
|
* <p>The Amazon Resource Name (ARN) of the campaign to use for generating the personalized
|
|
@@ -91,18 +92,24 @@ export declare namespace GetPersonalizedRankingResponse {
|
|
|
91
92
|
/**
|
|
92
93
|
* <p>Provide a valid value for the field or parameter.</p>
|
|
93
94
|
*/
|
|
94
|
-
export
|
|
95
|
-
name: "InvalidInputException";
|
|
96
|
-
$fault: "client";
|
|
97
|
-
|
|
95
|
+
export declare class InvalidInputException extends __BaseException {
|
|
96
|
+
readonly name: "InvalidInputException";
|
|
97
|
+
readonly $fault: "client";
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
|
|
98
102
|
}
|
|
99
103
|
/**
|
|
100
104
|
* <p>The specified resource does not exist.</p>
|
|
101
105
|
*/
|
|
102
|
-
export
|
|
103
|
-
name: "ResourceNotFoundException";
|
|
104
|
-
$fault: "client";
|
|
105
|
-
|
|
106
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
107
|
+
readonly name: "ResourceNotFoundException";
|
|
108
|
+
readonly $fault: "client";
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
112
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
106
113
|
}
|
|
107
114
|
export interface GetRecommendationsRequest {
|
|
108
115
|
/**
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
|
|
|
8
8
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
9
|
apiVersion: string;
|
|
10
10
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
13
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
14
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { GetPersonalizedRankingCommandInput, GetPersonalizedRankingCommandOutput } from "./commands/GetPersonalizedRankingCommand";
|
|
10
10
|
import { GetRecommendationsCommandInput, GetRecommendationsCommandOutput } from "./commands/GetRecommendationsCommand";
|
|
11
11
|
export declare type ServiceInputTypes = GetPersonalizedRankingCommandInput | GetRecommendationsCommandInput;
|
|
@@ -18,7 +18,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
18
18
|
|
|
19
19
|
urlParser?: __UrlParser;
|
|
20
20
|
|
|
21
|
-
bodyLengthChecker?:
|
|
21
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
22
22
|
|
|
23
23
|
streamCollector?: __StreamCollector;
|
|
24
24
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
|
|
3
|
+
export declare class PersonalizeRuntimeServiceException extends __ServiceException {
|
|
4
|
+
|
|
5
|
+
constructor(options: __ServiceExceptionOptions);
|
|
6
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { PersonalizeRuntimeServiceException as __BaseException } from "./PersonalizeRuntimeServiceException";
|
|
2
3
|
export interface GetPersonalizedRankingRequest {
|
|
3
4
|
|
|
4
5
|
campaignArn: string | undefined;
|
|
@@ -43,16 +44,18 @@ export declare namespace GetPersonalizedRankingResponse {
|
|
|
43
44
|
const filterSensitiveLog: (obj: GetPersonalizedRankingResponse) => any;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
export
|
|
47
|
-
name: "InvalidInputException";
|
|
48
|
-
$fault: "client";
|
|
49
|
-
|
|
47
|
+
export declare class InvalidInputException extends __BaseException {
|
|
48
|
+
readonly name: "InvalidInputException";
|
|
49
|
+
readonly $fault: "client";
|
|
50
|
+
|
|
51
|
+
constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
export
|
|
53
|
-
name: "ResourceNotFoundException";
|
|
54
|
-
$fault: "client";
|
|
55
|
-
|
|
54
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
55
|
+
readonly name: "ResourceNotFoundException";
|
|
56
|
+
readonly $fault: "client";
|
|
57
|
+
|
|
58
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
56
59
|
}
|
|
57
60
|
export interface GetRecommendationsRequest {
|
|
58
61
|
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
|
|
|
6
6
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
7
7
|
apiVersion: string;
|
|
8
8
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
11
11
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
12
12
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
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.54.1",
|
|
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",
|
|
@@ -18,34 +18,34 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.54.1",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.54.1",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.54.1",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.54.1",
|
|
25
|
+
"@aws-sdk/hash-node": "3.54.1",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.54.1",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.54.1",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.54.1",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.54.1",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.54.1",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.54.1",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.54.1",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.54.1",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.54.1",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.54.1",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.54.1",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.54.1",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.54.1",
|
|
39
|
+
"@aws-sdk/types": "3.54.1",
|
|
40
|
+
"@aws-sdk/url-parser": "3.54.1",
|
|
41
41
|
"@aws-sdk/util-base64-browser": "3.52.0",
|
|
42
42
|
"@aws-sdk/util-base64-node": "3.52.0",
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.54.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.54.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.54.1",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.54.1",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.54.1",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.54.1",
|
|
49
49
|
"@aws-sdk/util-utf8-browser": "3.52.0",
|
|
50
50
|
"@aws-sdk/util-utf8-node": "3.52.0",
|
|
51
51
|
"tslib": "^2.3.0"
|