@aws-sdk/client-personalize-runtime 3.952.0 → 3.954.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +61 -39
- package/dist-cjs/runtimeConfig.shared.js +6 -1
- package/dist-es/commands/GetActionRecommendationsCommand.js +2 -2
- package/dist-es/commands/GetPersonalizedRankingCommand.js +2 -2
- package/dist-es/commands/GetRecommendationsCommand.js +2 -2
- package/dist-es/index.js +1 -0
- package/dist-es/runtimeConfig.shared.js +6 -1
- package/dist-es/schemas/schemas_0.js +45 -38
- package/dist-types/PersonalizeRuntimeClient.d.ts +1 -10
- package/dist-types/index.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +6 -2
- package/dist-types/runtimeConfig.d.ts +6 -2
- package/dist-types/runtimeConfig.native.d.ts +6 -2
- package/dist-types/runtimeConfig.shared.d.ts +6 -1
- package/dist-types/schemas/schemas_0.d.ts +16 -28
- package/dist-types/ts3.4/PersonalizeRuntimeClient.d.ts +0 -4
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -5
- package/dist-types/ts3.4/runtimeConfig.d.ts +9 -5
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -5
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +9 -4
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +15 -30
- package/package.json +34 -34
package/dist-cjs/index.js
CHANGED
|
@@ -110,14 +110,14 @@ class PersonalizeRuntimeClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
class PersonalizeRuntimeServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, PersonalizeRuntimeServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
}
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
class InvalidInputException extends PersonalizeRuntimeServiceException {
|
|
121
121
|
name = "InvalidInputException";
|
|
122
122
|
$fault = "client";
|
|
123
123
|
constructor(opts) {
|
|
@@ -128,8 +128,8 @@ let InvalidInputException$1 = class InvalidInputException extends PersonalizeRun
|
|
|
128
128
|
});
|
|
129
129
|
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
130
130
|
}
|
|
131
|
-
}
|
|
132
|
-
|
|
131
|
+
}
|
|
132
|
+
class ResourceNotFoundException extends PersonalizeRuntimeServiceException {
|
|
133
133
|
name = "ResourceNotFoundException";
|
|
134
134
|
$fault = "client";
|
|
135
135
|
constructor(opts) {
|
|
@@ -140,7 +140,7 @@ let ResourceNotFoundException$1 = class ResourceNotFoundException extends Person
|
|
|
140
140
|
});
|
|
141
141
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
142
142
|
}
|
|
143
|
-
}
|
|
143
|
+
}
|
|
144
144
|
|
|
145
145
|
const _AL = "ActionList";
|
|
146
146
|
const _AV = "AttributeValue";
|
|
@@ -196,7 +196,7 @@ const _uI = "userId";
|
|
|
196
196
|
const n0 = "com.amazonaws.personalizeruntime";
|
|
197
197
|
var AttributeValue = [0, n0, _AV, 8, 0];
|
|
198
198
|
var FilterAttributeValue = [0, n0, _FAV, 8, 0];
|
|
199
|
-
var GetActionRecommendationsRequest = [
|
|
199
|
+
var GetActionRecommendationsRequest$ = [
|
|
200
200
|
3,
|
|
201
201
|
n0,
|
|
202
202
|
_GARR,
|
|
@@ -204,7 +204,7 @@ var GetActionRecommendationsRequest = [
|
|
|
204
204
|
[_cA, _uI, _nR, _fA, _fV],
|
|
205
205
|
[0, 0, 1, 0, [() => FilterValues, 0]],
|
|
206
206
|
];
|
|
207
|
-
var GetActionRecommendationsResponse = [
|
|
207
|
+
var GetActionRecommendationsResponse$ = [
|
|
208
208
|
3,
|
|
209
209
|
n0,
|
|
210
210
|
_GARRe,
|
|
@@ -212,7 +212,7 @@ var GetActionRecommendationsResponse = [
|
|
|
212
212
|
[_aL, _rI],
|
|
213
213
|
[() => ActionList, 0],
|
|
214
214
|
];
|
|
215
|
-
var GetPersonalizedRankingRequest = [
|
|
215
|
+
var GetPersonalizedRankingRequest$ = [
|
|
216
216
|
3,
|
|
217
217
|
n0,
|
|
218
218
|
_GPRR,
|
|
@@ -220,7 +220,7 @@ var GetPersonalizedRankingRequest = [
|
|
|
220
220
|
[_cA, _iL, _uI, _c, _fA, _fV, _mC],
|
|
221
221
|
[0, 64 | 0, 0, [() => Context, 0], 0, [() => FilterValues, 0], [2, n0, _MC, 0, 0, 64 | 0]],
|
|
222
222
|
];
|
|
223
|
-
var GetPersonalizedRankingResponse = [
|
|
223
|
+
var GetPersonalizedRankingResponse$ = [
|
|
224
224
|
3,
|
|
225
225
|
n0,
|
|
226
226
|
_GPRRe,
|
|
@@ -228,7 +228,7 @@ var GetPersonalizedRankingResponse = [
|
|
|
228
228
|
[_pR, _rI],
|
|
229
229
|
[[() => ItemList, 0], 0],
|
|
230
230
|
];
|
|
231
|
-
var GetRecommendationsRequest = [
|
|
231
|
+
var GetRecommendationsRequest$ = [
|
|
232
232
|
3,
|
|
233
233
|
n0,
|
|
234
234
|
_GRR,
|
|
@@ -236,11 +236,18 @@ var GetRecommendationsRequest = [
|
|
|
236
236
|
[_cA, _iI, _uI, _nR, _c, _fA, _fV, _rA, _p, _mC],
|
|
237
237
|
[0, 0, 0, 1, [() => Context, 0], 0, [() => FilterValues, 0], 0, [() => PromotionList, 0], [2, n0, _MC, 0, 0, 64 | 0]],
|
|
238
238
|
];
|
|
239
|
-
var GetRecommendationsResponse = [
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
239
|
+
var GetRecommendationsResponse$ = [
|
|
240
|
+
3,
|
|
241
|
+
n0,
|
|
242
|
+
_GRRe,
|
|
243
|
+
0,
|
|
244
|
+
[_iLt, _rI],
|
|
245
|
+
[[() => ItemList, 0], 0],
|
|
246
|
+
];
|
|
247
|
+
var InvalidInputException$ = [-3, n0, _IIE, { [_e]: _cl, [_hE]: 400 }, [_m], [0]];
|
|
248
|
+
schema.TypeRegistry.for(n0).registerError(InvalidInputException$, InvalidInputException);
|
|
249
|
+
var PredictedAction$ = [3, n0, _PA, 0, [_aI, _s], [0, 1]];
|
|
250
|
+
var PredictedItem$ = [
|
|
244
251
|
3,
|
|
245
252
|
n0,
|
|
246
253
|
_PI,
|
|
@@ -248,10 +255,10 @@ var PredictedItem = [
|
|
|
248
255
|
[_iI, _s, _pN, _me, _r],
|
|
249
256
|
[0, 1, 0, [() => Metadata, 0], 64 | 0],
|
|
250
257
|
];
|
|
251
|
-
var Promotion = [3, n0, _P, 0, [_n, _pPI, _fA, _fV], [0, 1, 0, [() => FilterValues, 0]]];
|
|
252
|
-
var ResourceNotFoundException = [-3, n0, _RNFE, { [_e]: _cl, [_hE]: 404 }, [_m], [0]];
|
|
253
|
-
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException
|
|
254
|
-
var PersonalizeRuntimeServiceException = [
|
|
258
|
+
var Promotion$ = [3, n0, _P, 0, [_n, _pPI, _fA, _fV], [0, 1, 0, [() => FilterValues, 0]]];
|
|
259
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _cl, [_hE]: 404 }, [_m], [0]];
|
|
260
|
+
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
261
|
+
var PersonalizeRuntimeServiceException$ = [
|
|
255
262
|
-3,
|
|
256
263
|
_sm,
|
|
257
264
|
"PersonalizeRuntimeServiceException",
|
|
@@ -259,36 +266,36 @@ var PersonalizeRuntimeServiceException = [
|
|
|
259
266
|
[],
|
|
260
267
|
[],
|
|
261
268
|
];
|
|
262
|
-
schema.TypeRegistry.for(_sm).registerError(PersonalizeRuntimeServiceException
|
|
263
|
-
var ActionList = [1, n0, _AL, 0, () => PredictedAction];
|
|
264
|
-
var ItemList = [1, n0, _IL, 0, [() => PredictedItem
|
|
265
|
-
var PromotionList = [1, n0, _PL, 0, [() => Promotion
|
|
269
|
+
schema.TypeRegistry.for(_sm).registerError(PersonalizeRuntimeServiceException$, PersonalizeRuntimeServiceException);
|
|
270
|
+
var ActionList = [1, n0, _AL, 0, () => PredictedAction$];
|
|
271
|
+
var ItemList = [1, n0, _IL, 0, [() => PredictedItem$, 0]];
|
|
272
|
+
var PromotionList = [1, n0, _PL, 0, [() => Promotion$, 0]];
|
|
266
273
|
var Context = [2, n0, _C, 0, [0, 0], [() => AttributeValue, 0]];
|
|
267
274
|
var FilterValues = [2, n0, _FV, 0, [0, 0], [() => FilterAttributeValue, 0]];
|
|
268
275
|
var Metadata = [2, n0, _M, 8, 0, 0];
|
|
269
|
-
var GetActionRecommendations = [
|
|
276
|
+
var GetActionRecommendations$ = [
|
|
270
277
|
9,
|
|
271
278
|
n0,
|
|
272
279
|
_GAR,
|
|
273
280
|
{ [_h]: ["POST", "/action-recommendations", 200] },
|
|
274
|
-
() => GetActionRecommendationsRequest
|
|
275
|
-
() => GetActionRecommendationsResponse
|
|
281
|
+
() => GetActionRecommendationsRequest$,
|
|
282
|
+
() => GetActionRecommendationsResponse$,
|
|
276
283
|
];
|
|
277
|
-
var GetPersonalizedRanking = [
|
|
284
|
+
var GetPersonalizedRanking$ = [
|
|
278
285
|
9,
|
|
279
286
|
n0,
|
|
280
287
|
_GPR,
|
|
281
288
|
{ [_h]: ["POST", "/personalize-ranking", 200] },
|
|
282
|
-
() => GetPersonalizedRankingRequest
|
|
283
|
-
() => GetPersonalizedRankingResponse
|
|
289
|
+
() => GetPersonalizedRankingRequest$,
|
|
290
|
+
() => GetPersonalizedRankingResponse$,
|
|
284
291
|
];
|
|
285
|
-
var GetRecommendations = [
|
|
292
|
+
var GetRecommendations$ = [
|
|
286
293
|
9,
|
|
287
294
|
n0,
|
|
288
295
|
_GR,
|
|
289
296
|
{ [_h]: ["POST", "/recommendations", 200] },
|
|
290
|
-
() => GetRecommendationsRequest
|
|
291
|
-
() => GetRecommendationsResponse
|
|
297
|
+
() => GetRecommendationsRequest$,
|
|
298
|
+
() => GetRecommendationsResponse$,
|
|
292
299
|
];
|
|
293
300
|
|
|
294
301
|
class GetActionRecommendationsCommand extends smithyClient.Command
|
|
@@ -299,7 +306,7 @@ class GetActionRecommendationsCommand extends smithyClient.Command
|
|
|
299
306
|
})
|
|
300
307
|
.s("AmazonPersonalizeRuntime", "GetActionRecommendations", {})
|
|
301
308
|
.n("PersonalizeRuntimeClient", "GetActionRecommendationsCommand")
|
|
302
|
-
.sc(GetActionRecommendations)
|
|
309
|
+
.sc(GetActionRecommendations$)
|
|
303
310
|
.build() {
|
|
304
311
|
}
|
|
305
312
|
|
|
@@ -311,7 +318,7 @@ class GetPersonalizedRankingCommand extends smithyClient.Command
|
|
|
311
318
|
})
|
|
312
319
|
.s("AmazonPersonalizeRuntime", "GetPersonalizedRanking", {})
|
|
313
320
|
.n("PersonalizeRuntimeClient", "GetPersonalizedRankingCommand")
|
|
314
|
-
.sc(GetPersonalizedRanking)
|
|
321
|
+
.sc(GetPersonalizedRanking$)
|
|
315
322
|
.build() {
|
|
316
323
|
}
|
|
317
324
|
|
|
@@ -323,7 +330,7 @@ class GetRecommendationsCommand extends smithyClient.Command
|
|
|
323
330
|
})
|
|
324
331
|
.s("AmazonPersonalizeRuntime", "GetRecommendations", {})
|
|
325
332
|
.n("PersonalizeRuntimeClient", "GetRecommendationsCommand")
|
|
326
|
-
.sc(GetRecommendations)
|
|
333
|
+
.sc(GetRecommendations$)
|
|
327
334
|
.build() {
|
|
328
335
|
}
|
|
329
336
|
|
|
@@ -344,11 +351,26 @@ Object.defineProperty(exports, "__Client", {
|
|
|
344
351
|
enumerable: true,
|
|
345
352
|
get: function () { return smithyClient.Client; }
|
|
346
353
|
});
|
|
354
|
+
exports.GetActionRecommendations$ = GetActionRecommendations$;
|
|
347
355
|
exports.GetActionRecommendationsCommand = GetActionRecommendationsCommand;
|
|
356
|
+
exports.GetActionRecommendationsRequest$ = GetActionRecommendationsRequest$;
|
|
357
|
+
exports.GetActionRecommendationsResponse$ = GetActionRecommendationsResponse$;
|
|
358
|
+
exports.GetPersonalizedRanking$ = GetPersonalizedRanking$;
|
|
348
359
|
exports.GetPersonalizedRankingCommand = GetPersonalizedRankingCommand;
|
|
360
|
+
exports.GetPersonalizedRankingRequest$ = GetPersonalizedRankingRequest$;
|
|
361
|
+
exports.GetPersonalizedRankingResponse$ = GetPersonalizedRankingResponse$;
|
|
362
|
+
exports.GetRecommendations$ = GetRecommendations$;
|
|
349
363
|
exports.GetRecommendationsCommand = GetRecommendationsCommand;
|
|
350
|
-
exports.
|
|
364
|
+
exports.GetRecommendationsRequest$ = GetRecommendationsRequest$;
|
|
365
|
+
exports.GetRecommendationsResponse$ = GetRecommendationsResponse$;
|
|
366
|
+
exports.InvalidInputException = InvalidInputException;
|
|
367
|
+
exports.InvalidInputException$ = InvalidInputException$;
|
|
351
368
|
exports.PersonalizeRuntime = PersonalizeRuntime;
|
|
352
369
|
exports.PersonalizeRuntimeClient = PersonalizeRuntimeClient;
|
|
353
|
-
exports.PersonalizeRuntimeServiceException = PersonalizeRuntimeServiceException
|
|
354
|
-
exports.
|
|
370
|
+
exports.PersonalizeRuntimeServiceException = PersonalizeRuntimeServiceException;
|
|
371
|
+
exports.PersonalizeRuntimeServiceException$ = PersonalizeRuntimeServiceException$;
|
|
372
|
+
exports.PredictedAction$ = PredictedAction$;
|
|
373
|
+
exports.PredictedItem$ = PredictedItem$;
|
|
374
|
+
exports.Promotion$ = Promotion$;
|
|
375
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
376
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
@@ -26,7 +26,12 @@ const getRuntimeConfig = (config) => {
|
|
|
26
26
|
},
|
|
27
27
|
],
|
|
28
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
-
protocol: config?.protocol ??
|
|
29
|
+
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
30
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
31
|
+
defaultNamespace: "com.amazonaws.personalizeruntime",
|
|
32
|
+
version: "2018-05-22",
|
|
33
|
+
serviceTarget: "AmazonPersonalizeRuntime",
|
|
34
|
+
},
|
|
30
35
|
serviceId: config?.serviceId ?? "Personalize Runtime",
|
|
31
36
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
32
37
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { GetActionRecommendations } from "../schemas/schemas_0";
|
|
4
|
+
import { GetActionRecommendations$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class GetActionRecommendationsCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class GetActionRecommendationsCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AmazonPersonalizeRuntime", "GetActionRecommendations", {})
|
|
13
13
|
.n("PersonalizeRuntimeClient", "GetActionRecommendationsCommand")
|
|
14
|
-
.sc(GetActionRecommendations)
|
|
14
|
+
.sc(GetActionRecommendations$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { GetPersonalizedRanking } from "../schemas/schemas_0";
|
|
4
|
+
import { GetPersonalizedRanking$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class GetPersonalizedRankingCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class GetPersonalizedRankingCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AmazonPersonalizeRuntime", "GetPersonalizedRanking", {})
|
|
13
13
|
.n("PersonalizeRuntimeClient", "GetPersonalizedRankingCommand")
|
|
14
|
-
.sc(GetPersonalizedRanking)
|
|
14
|
+
.sc(GetPersonalizedRanking$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import { GetRecommendations } from "../schemas/schemas_0";
|
|
4
|
+
import { GetRecommendations$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
6
|
export class GetRecommendationsCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
@@ -11,6 +11,6 @@ export class GetRecommendationsCommand extends $Command
|
|
|
11
11
|
})
|
|
12
12
|
.s("AmazonPersonalizeRuntime", "GetRecommendations", {})
|
|
13
13
|
.n("PersonalizeRuntimeClient", "GetRecommendationsCommand")
|
|
14
|
-
.sc(GetRecommendations)
|
|
14
|
+
.sc(GetRecommendations$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
package/dist-es/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./PersonalizeRuntimeClient";
|
|
2
2
|
export * from "./PersonalizeRuntime";
|
|
3
3
|
export * from "./commands";
|
|
4
|
+
export * from "./schemas/schemas_0";
|
|
4
5
|
export * from "./models/errors";
|
|
5
6
|
export { PersonalizeRuntimeServiceException } from "./models/PersonalizeRuntimeServiceException";
|
|
@@ -23,7 +23,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
23
|
},
|
|
24
24
|
],
|
|
25
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
-
protocol: config?.protocol ??
|
|
26
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
27
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
28
|
+
defaultNamespace: "com.amazonaws.personalizeruntime",
|
|
29
|
+
version: "2018-05-22",
|
|
30
|
+
serviceTarget: "AmazonPersonalizeRuntime",
|
|
31
|
+
},
|
|
27
32
|
serviceId: config?.serviceId ?? "Personalize Runtime",
|
|
28
33
|
urlParser: config?.urlParser ?? parseUrl,
|
|
29
34
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
@@ -51,11 +51,11 @@ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.personalizeruntime";
|
|
|
51
51
|
const _uI = "userId";
|
|
52
52
|
const n0 = "com.amazonaws.personalizeruntime";
|
|
53
53
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
54
|
-
import { InvalidInputException
|
|
55
|
-
import { PersonalizeRuntimeServiceException
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
export var GetActionRecommendationsRequest = [
|
|
54
|
+
import { InvalidInputException, ResourceNotFoundException } from "../models/errors";
|
|
55
|
+
import { PersonalizeRuntimeServiceException } from "../models/PersonalizeRuntimeServiceException";
|
|
56
|
+
var AttributeValue = [0, n0, _AV, 8, 0];
|
|
57
|
+
var FilterAttributeValue = [0, n0, _FAV, 8, 0];
|
|
58
|
+
export var GetActionRecommendationsRequest$ = [
|
|
59
59
|
3,
|
|
60
60
|
n0,
|
|
61
61
|
_GARR,
|
|
@@ -63,7 +63,7 @@ export var GetActionRecommendationsRequest = [
|
|
|
63
63
|
[_cA, _uI, _nR, _fA, _fV],
|
|
64
64
|
[0, 0, 1, 0, [() => FilterValues, 0]],
|
|
65
65
|
];
|
|
66
|
-
export var GetActionRecommendationsResponse = [
|
|
66
|
+
export var GetActionRecommendationsResponse$ = [
|
|
67
67
|
3,
|
|
68
68
|
n0,
|
|
69
69
|
_GARRe,
|
|
@@ -71,7 +71,7 @@ export var GetActionRecommendationsResponse = [
|
|
|
71
71
|
[_aL, _rI],
|
|
72
72
|
[() => ActionList, 0],
|
|
73
73
|
];
|
|
74
|
-
export var GetPersonalizedRankingRequest = [
|
|
74
|
+
export var GetPersonalizedRankingRequest$ = [
|
|
75
75
|
3,
|
|
76
76
|
n0,
|
|
77
77
|
_GPRR,
|
|
@@ -79,7 +79,7 @@ export var GetPersonalizedRankingRequest = [
|
|
|
79
79
|
[_cA, _iL, _uI, _c, _fA, _fV, _mC],
|
|
80
80
|
[0, 64 | 0, 0, [() => Context, 0], 0, [() => FilterValues, 0], [2, n0, _MC, 0, 0, 64 | 0]],
|
|
81
81
|
];
|
|
82
|
-
export var GetPersonalizedRankingResponse = [
|
|
82
|
+
export var GetPersonalizedRankingResponse$ = [
|
|
83
83
|
3,
|
|
84
84
|
n0,
|
|
85
85
|
_GPRRe,
|
|
@@ -87,7 +87,7 @@ export var GetPersonalizedRankingResponse = [
|
|
|
87
87
|
[_pR, _rI],
|
|
88
88
|
[[() => ItemList, 0], 0],
|
|
89
89
|
];
|
|
90
|
-
export var GetRecommendationsRequest = [
|
|
90
|
+
export var GetRecommendationsRequest$ = [
|
|
91
91
|
3,
|
|
92
92
|
n0,
|
|
93
93
|
_GRR,
|
|
@@ -95,11 +95,18 @@ export var GetRecommendationsRequest = [
|
|
|
95
95
|
[_cA, _iI, _uI, _nR, _c, _fA, _fV, _rA, _p, _mC],
|
|
96
96
|
[0, 0, 0, 1, [() => Context, 0], 0, [() => FilterValues, 0], 0, [() => PromotionList, 0], [2, n0, _MC, 0, 0, 64 | 0]],
|
|
97
97
|
];
|
|
98
|
-
export var GetRecommendationsResponse = [
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
export var GetRecommendationsResponse$ = [
|
|
99
|
+
3,
|
|
100
|
+
n0,
|
|
101
|
+
_GRRe,
|
|
102
|
+
0,
|
|
103
|
+
[_iLt, _rI],
|
|
104
|
+
[[() => ItemList, 0], 0],
|
|
105
|
+
];
|
|
106
|
+
export var InvalidInputException$ = [-3, n0, _IIE, { [_e]: _cl, [_hE]: 400 }, [_m], [0]];
|
|
107
|
+
TypeRegistry.for(n0).registerError(InvalidInputException$, InvalidInputException);
|
|
108
|
+
export var PredictedAction$ = [3, n0, _PA, 0, [_aI, _s], [0, 1]];
|
|
109
|
+
export var PredictedItem$ = [
|
|
103
110
|
3,
|
|
104
111
|
n0,
|
|
105
112
|
_PI,
|
|
@@ -107,10 +114,10 @@ export var PredictedItem = [
|
|
|
107
114
|
[_iI, _s, _pN, _me, _r],
|
|
108
115
|
[0, 1, 0, [() => Metadata, 0], 64 | 0],
|
|
109
116
|
];
|
|
110
|
-
export var Promotion = [3, n0, _P, 0, [_n, _pPI, _fA, _fV], [0, 1, 0, [() => FilterValues, 0]]];
|
|
111
|
-
export var ResourceNotFoundException = [-3, n0, _RNFE, { [_e]: _cl, [_hE]: 404 }, [_m], [0]];
|
|
112
|
-
TypeRegistry.for(n0).registerError(ResourceNotFoundException
|
|
113
|
-
export var PersonalizeRuntimeServiceException = [
|
|
117
|
+
export var Promotion$ = [3, n0, _P, 0, [_n, _pPI, _fA, _fV], [0, 1, 0, [() => FilterValues, 0]]];
|
|
118
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _cl, [_hE]: 404 }, [_m], [0]];
|
|
119
|
+
TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
120
|
+
export var PersonalizeRuntimeServiceException$ = [
|
|
114
121
|
-3,
|
|
115
122
|
_sm,
|
|
116
123
|
"PersonalizeRuntimeServiceException",
|
|
@@ -118,38 +125,38 @@ export var PersonalizeRuntimeServiceException = [
|
|
|
118
125
|
[],
|
|
119
126
|
[],
|
|
120
127
|
];
|
|
121
|
-
TypeRegistry.for(_sm).registerError(PersonalizeRuntimeServiceException
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
export var GetActionRecommendations = [
|
|
128
|
+
TypeRegistry.for(_sm).registerError(PersonalizeRuntimeServiceException$, PersonalizeRuntimeServiceException);
|
|
129
|
+
var ActionList = [1, n0, _AL, 0, () => PredictedAction$];
|
|
130
|
+
var ColumnNamesList = 64 | 0;
|
|
131
|
+
var InputList = 64 | 0;
|
|
132
|
+
var ItemList = [1, n0, _IL, 0, [() => PredictedItem$, 0]];
|
|
133
|
+
var PromotionList = [1, n0, _PL, 0, [() => Promotion$, 0]];
|
|
134
|
+
var ReasonList = 64 | 0;
|
|
135
|
+
var Context = [2, n0, _C, 0, [0, 0], [() => AttributeValue, 0]];
|
|
136
|
+
var FilterValues = [2, n0, _FV, 0, [0, 0], [() => FilterAttributeValue, 0]];
|
|
137
|
+
var Metadata = [2, n0, _M, 8, 0, 0];
|
|
138
|
+
var MetadataColumns = [2, n0, _MC, 0, 0, 64 | 0];
|
|
139
|
+
export var GetActionRecommendations$ = [
|
|
133
140
|
9,
|
|
134
141
|
n0,
|
|
135
142
|
_GAR,
|
|
136
143
|
{ [_h]: ["POST", "/action-recommendations", 200] },
|
|
137
|
-
() => GetActionRecommendationsRequest
|
|
138
|
-
() => GetActionRecommendationsResponse
|
|
144
|
+
() => GetActionRecommendationsRequest$,
|
|
145
|
+
() => GetActionRecommendationsResponse$,
|
|
139
146
|
];
|
|
140
|
-
export var GetPersonalizedRanking = [
|
|
147
|
+
export var GetPersonalizedRanking$ = [
|
|
141
148
|
9,
|
|
142
149
|
n0,
|
|
143
150
|
_GPR,
|
|
144
151
|
{ [_h]: ["POST", "/personalize-ranking", 200] },
|
|
145
|
-
() => GetPersonalizedRankingRequest
|
|
146
|
-
() => GetPersonalizedRankingResponse
|
|
152
|
+
() => GetPersonalizedRankingRequest$,
|
|
153
|
+
() => GetPersonalizedRankingResponse$,
|
|
147
154
|
];
|
|
148
|
-
export var GetRecommendations = [
|
|
155
|
+
export var GetRecommendations$ = [
|
|
149
156
|
9,
|
|
150
157
|
n0,
|
|
151
158
|
_GR,
|
|
152
159
|
{ [_h]: ["POST", "/recommendations", 200] },
|
|
153
|
-
() => GetRecommendationsRequest
|
|
154
|
-
() => GetRecommendationsResponse
|
|
160
|
+
() => GetRecommendationsRequest$,
|
|
161
|
+
() => GetRecommendationsResponse$,
|
|
155
162
|
];
|
|
@@ -5,7 +5,7 @@ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/m
|
|
|
5
5
|
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
6
|
import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
7
|
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
|
|
8
|
-
import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type
|
|
8
|
+
import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type Decoder as __Decoder, type Encoder as __Encoder, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { GetActionRecommendationsCommandInput, GetActionRecommendationsCommandOutput } from "./commands/GetActionRecommendationsCommand";
|
|
11
11
|
import { GetPersonalizedRankingCommandInput, GetPersonalizedRankingCommandOutput } from "./commands/GetPersonalizedRankingCommand";
|
|
@@ -144,15 +144,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
144
144
|
* Optional extensions
|
|
145
145
|
*/
|
|
146
146
|
extensions?: RuntimeExtension[];
|
|
147
|
-
/**
|
|
148
|
-
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
|
|
149
|
-
* may be overridden. A default will always be set by the client.
|
|
150
|
-
* Available options depend on the service's supported protocols and will not be validated by
|
|
151
|
-
* the client.
|
|
152
|
-
* @alpha
|
|
153
|
-
*
|
|
154
|
-
*/
|
|
155
|
-
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
156
147
|
/**
|
|
157
148
|
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
158
149
|
*/
|
package/dist-types/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
|
9
9
|
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
10
10
|
export type { PersonalizeRuntimeExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
|
+
export * from "./schemas/schemas_0";
|
|
12
13
|
export * from "./models/errors";
|
|
13
14
|
export type * from "./models/models_0";
|
|
14
15
|
export { PersonalizeRuntimeServiceException } from "./models/PersonalizeRuntimeServiceException";
|
|
@@ -17,8 +17,13 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
|
|
|
17
17
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
18
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
19
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
|
-
apiVersion: string;
|
|
21
20
|
cacheMiddleware?: boolean | undefined;
|
|
21
|
+
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
|
|
22
|
+
protocolSettings: {
|
|
23
|
+
defaultNamespace?: string;
|
|
24
|
+
[setting: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
apiVersion: string;
|
|
22
27
|
urlParser: import("@smithy/types").UrlParser;
|
|
23
28
|
base64Decoder: import("@smithy/types").Decoder;
|
|
24
29
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -29,7 +34,6 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
|
|
|
29
34
|
profile?: string;
|
|
30
35
|
logger: import("@smithy/types").Logger;
|
|
31
36
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
|
-
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
33
37
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
34
38
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
35
39
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
@@ -19,8 +19,13 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
|
|
|
19
19
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
22
|
-
apiVersion: string;
|
|
23
22
|
cacheMiddleware?: boolean | undefined;
|
|
23
|
+
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
|
|
24
|
+
protocolSettings: {
|
|
25
|
+
defaultNamespace?: string;
|
|
26
|
+
[setting: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
apiVersion: string;
|
|
24
29
|
urlParser: import("@smithy/types").UrlParser;
|
|
25
30
|
base64Decoder: import("@smithy/types").Decoder;
|
|
26
31
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -31,7 +36,6 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
|
|
|
31
36
|
profile?: string;
|
|
32
37
|
logger: import("@smithy/types").Logger;
|
|
33
38
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
-
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
35
39
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
36
40
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
37
41
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
@@ -6,8 +6,13 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
|
|
|
6
6
|
runtime: string;
|
|
7
7
|
sha256: import("@smithy/types").HashConstructor;
|
|
8
8
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
9
|
-
apiVersion: string;
|
|
10
9
|
cacheMiddleware?: boolean;
|
|
10
|
+
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
|
|
11
|
+
protocolSettings: {
|
|
12
|
+
defaultNamespace?: string;
|
|
13
|
+
[setting: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
apiVersion: string;
|
|
11
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
12
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
13
18
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
@@ -27,7 +32,6 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
|
|
|
27
32
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
33
|
logger: import("@smithy/types").Logger;
|
|
29
34
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
-
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
31
35
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
32
36
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
33
37
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
1
2
|
import type { PersonalizeRuntimeClientConfig } from "./PersonalizeRuntimeClient";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
@@ -14,7 +15,11 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
|
|
|
14
15
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PersonalizeRuntimeHttpAuthSchemeProvider;
|
|
15
16
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
17
|
logger: import("@smithy/types").Logger;
|
|
17
|
-
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").
|
|
18
|
+
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof AwsRestJsonProtocol;
|
|
19
|
+
protocolSettings: {
|
|
20
|
+
[setting: string]: unknown;
|
|
21
|
+
defaultNamespace?: string;
|
|
22
|
+
};
|
|
18
23
|
serviceId: string;
|
|
19
24
|
urlParser: import("@smithy/types").UrlParser;
|
|
20
25
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -1,28 +1,16 @@
|
|
|
1
|
-
import type { StaticErrorSchema,
|
|
2
|
-
export declare var
|
|
3
|
-
export declare var
|
|
4
|
-
export declare var
|
|
5
|
-
export declare var
|
|
6
|
-
export declare var
|
|
7
|
-
export declare var
|
|
8
|
-
export declare var
|
|
9
|
-
export declare var
|
|
10
|
-
export declare var
|
|
11
|
-
export declare var
|
|
12
|
-
export declare var
|
|
13
|
-
export declare var
|
|
14
|
-
export declare var
|
|
15
|
-
export declare var
|
|
16
|
-
export declare var
|
|
17
|
-
export declare var ColumnNamesList: number;
|
|
18
|
-
export declare var InputList: number;
|
|
19
|
-
export declare var ItemList: StaticListSchema;
|
|
20
|
-
export declare var PromotionList: StaticListSchema;
|
|
21
|
-
export declare var ReasonList: number;
|
|
22
|
-
export declare var Context: StaticMapSchema;
|
|
23
|
-
export declare var FilterValues: StaticMapSchema;
|
|
24
|
-
export declare var Metadata: StaticMapSchema;
|
|
25
|
-
export declare var MetadataColumns: StaticMapSchema;
|
|
26
|
-
export declare var GetActionRecommendations: StaticOperationSchema;
|
|
27
|
-
export declare var GetPersonalizedRanking: StaticOperationSchema;
|
|
28
|
-
export declare var GetRecommendations: StaticOperationSchema;
|
|
1
|
+
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
+
export declare var GetActionRecommendationsRequest$: StaticStructureSchema;
|
|
3
|
+
export declare var GetActionRecommendationsResponse$: StaticStructureSchema;
|
|
4
|
+
export declare var GetPersonalizedRankingRequest$: StaticStructureSchema;
|
|
5
|
+
export declare var GetPersonalizedRankingResponse$: StaticStructureSchema;
|
|
6
|
+
export declare var GetRecommendationsRequest$: StaticStructureSchema;
|
|
7
|
+
export declare var GetRecommendationsResponse$: StaticStructureSchema;
|
|
8
|
+
export declare var InvalidInputException$: StaticErrorSchema;
|
|
9
|
+
export declare var PredictedAction$: StaticStructureSchema;
|
|
10
|
+
export declare var PredictedItem$: StaticStructureSchema;
|
|
11
|
+
export declare var Promotion$: StaticStructureSchema;
|
|
12
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
13
|
+
export declare var PersonalizeRuntimeServiceException$: StaticErrorSchema;
|
|
14
|
+
export declare var GetActionRecommendations$: StaticOperationSchema;
|
|
15
|
+
export declare var GetPersonalizedRanking$: StaticOperationSchema;
|
|
16
|
+
export declare var GetRecommendations$: StaticOperationSchema;
|
|
@@ -29,13 +29,10 @@ import {
|
|
|
29
29
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
30
30
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
31
31
|
ChecksumConstructor as __ChecksumConstructor,
|
|
32
|
-
ClientProtocol,
|
|
33
32
|
Decoder as __Decoder,
|
|
34
33
|
Encoder as __Encoder,
|
|
35
34
|
HashConstructor as __HashConstructor,
|
|
36
35
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
37
|
-
HttpRequest,
|
|
38
|
-
HttpResponse,
|
|
39
36
|
Logger as __Logger,
|
|
40
37
|
Provider as __Provider,
|
|
41
38
|
StreamCollector as __StreamCollector,
|
|
@@ -99,7 +96,6 @@ export interface ClientDefaults
|
|
|
99
96
|
retryMode?: string | __Provider<string>;
|
|
100
97
|
logger?: __Logger;
|
|
101
98
|
extensions?: RuntimeExtension[];
|
|
102
|
-
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
103
99
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
104
100
|
}
|
|
105
101
|
export type PersonalizeRuntimeClientConfigType = Partial<
|
|
@@ -4,6 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
|
4
4
|
export { RuntimeExtension } from "./runtimeExtensions";
|
|
5
5
|
export { PersonalizeRuntimeExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
|
+
export * from "./schemas/schemas_0";
|
|
7
8
|
export * from "./models/errors";
|
|
8
9
|
export * from "./models/models_0";
|
|
9
10
|
export { PersonalizeRuntimeServiceException } from "./models/PersonalizeRuntimeServiceException";
|
|
@@ -28,8 +28,16 @@ export declare const getRuntimeConfig: (
|
|
|
28
28
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
29
29
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
30
30
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
31
|
-
apiVersion: string;
|
|
32
31
|
cacheMiddleware?: boolean | undefined;
|
|
32
|
+
protocol:
|
|
33
|
+
| import("@smithy/types").ClientProtocol<any, any>
|
|
34
|
+
| import("@smithy/types").ClientProtocolCtor<any, any>
|
|
35
|
+
| typeof import("@aws-sdk/core").AwsRestJsonProtocol;
|
|
36
|
+
protocolSettings: {
|
|
37
|
+
defaultNamespace?: string;
|
|
38
|
+
[setting: string]: unknown;
|
|
39
|
+
};
|
|
40
|
+
apiVersion: string;
|
|
33
41
|
urlParser: import("@smithy/types").UrlParser;
|
|
34
42
|
base64Decoder: import("@smithy/types").Decoder;
|
|
35
43
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -40,10 +48,6 @@ export declare const getRuntimeConfig: (
|
|
|
40
48
|
profile?: string;
|
|
41
49
|
logger: import("@smithy/types").Logger;
|
|
42
50
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
-
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
-
import("@smithy/types").HttpRequest,
|
|
45
|
-
import("@smithy/types").HttpResponse
|
|
46
|
-
>;
|
|
47
51
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
48
52
|
userAgentAppId?:
|
|
49
53
|
| string
|
|
@@ -28,8 +28,16 @@ export declare const getRuntimeConfig: (
|
|
|
28
28
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
29
29
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
30
30
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
31
|
-
apiVersion: string;
|
|
32
31
|
cacheMiddleware?: boolean | undefined;
|
|
32
|
+
protocol:
|
|
33
|
+
| import("@smithy/types").ClientProtocol<any, any>
|
|
34
|
+
| import("@smithy/types").ClientProtocolCtor<any, any>
|
|
35
|
+
| typeof import("@aws-sdk/core").AwsRestJsonProtocol;
|
|
36
|
+
protocolSettings: {
|
|
37
|
+
defaultNamespace?: string;
|
|
38
|
+
[setting: string]: unknown;
|
|
39
|
+
};
|
|
40
|
+
apiVersion: string;
|
|
33
41
|
urlParser: import("@smithy/types").UrlParser;
|
|
34
42
|
base64Decoder: import("@smithy/types").Decoder;
|
|
35
43
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -40,10 +48,6 @@ export declare const getRuntimeConfig: (
|
|
|
40
48
|
profile?: string;
|
|
41
49
|
logger: import("@smithy/types").Logger;
|
|
42
50
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
-
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
-
import("@smithy/types").HttpRequest,
|
|
45
|
-
import("@smithy/types").HttpResponse
|
|
46
|
-
>;
|
|
47
51
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
48
52
|
retryStrategy?:
|
|
49
53
|
| import("@smithy/types").RetryStrategy
|
|
@@ -10,8 +10,16 @@ export declare const getRuntimeConfig: (
|
|
|
10
10
|
| Record<string, unknown>
|
|
11
11
|
| import("@smithy/protocol-http").HttpHandler<any>
|
|
12
12
|
| import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
13
|
-
apiVersion: string;
|
|
14
13
|
cacheMiddleware?: boolean;
|
|
14
|
+
protocol:
|
|
15
|
+
| import("@smithy/types").ClientProtocol<any, any>
|
|
16
|
+
| import("@smithy/types").ClientProtocolCtor<any, any>
|
|
17
|
+
| typeof import("@aws-sdk/core").AwsRestJsonProtocol;
|
|
18
|
+
protocolSettings: {
|
|
19
|
+
defaultNamespace?: string;
|
|
20
|
+
[setting: string]: unknown;
|
|
21
|
+
};
|
|
22
|
+
apiVersion: string;
|
|
15
23
|
urlParser: import("@smithy/types").UrlParser;
|
|
16
24
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
17
25
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
@@ -39,10 +47,6 @@ export declare const getRuntimeConfig: (
|
|
|
39
47
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
40
48
|
logger: import("@smithy/types").Logger;
|
|
41
49
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
42
|
-
protocol: import("@smithy/types").ClientProtocol<
|
|
43
|
-
import("@smithy/types").HttpRequest,
|
|
44
|
-
import("@smithy/types").HttpResponse
|
|
45
|
-
>;
|
|
46
50
|
defaultsMode:
|
|
47
51
|
| import("@smithy/smithy-client").DefaultsMode
|
|
48
52
|
| import("@smithy/types").Provider<
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
1
2
|
import { PersonalizeRuntimeClientConfig } from "./PersonalizeRuntimeClient";
|
|
2
3
|
export declare const getRuntimeConfig: (
|
|
3
4
|
config: PersonalizeRuntimeClientConfig
|
|
@@ -16,10 +17,14 @@ export declare const getRuntimeConfig: (
|
|
|
16
17
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PersonalizeRuntimeHttpAuthSchemeProvider;
|
|
17
18
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
18
19
|
logger: import("@smithy/types").Logger;
|
|
19
|
-
protocol:
|
|
20
|
-
import("@smithy/types").
|
|
21
|
-
import("@smithy/types").
|
|
22
|
-
|
|
20
|
+
protocol:
|
|
21
|
+
| import("@smithy/types").ClientProtocol<any, any>
|
|
22
|
+
| import("@smithy/types").ClientProtocolCtor<any, any>
|
|
23
|
+
| typeof AwsRestJsonProtocol;
|
|
24
|
+
protocolSettings: {
|
|
25
|
+
[setting: string]: unknown;
|
|
26
|
+
defaultNamespace?: string;
|
|
27
|
+
};
|
|
23
28
|
serviceId: string;
|
|
24
29
|
urlParser: import("@smithy/types").UrlParser;
|
|
25
30
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -1,35 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StaticErrorSchema,
|
|
3
|
-
StaticListSchema,
|
|
4
|
-
StaticMapSchema,
|
|
5
3
|
StaticOperationSchema,
|
|
6
|
-
StaticSimpleSchema,
|
|
7
4
|
StaticStructureSchema,
|
|
8
5
|
} from "@smithy/types";
|
|
9
|
-
export declare var
|
|
10
|
-
export declare var
|
|
11
|
-
export declare var
|
|
12
|
-
export declare var
|
|
13
|
-
export declare var
|
|
14
|
-
export declare var
|
|
15
|
-
export declare var
|
|
16
|
-
export declare var
|
|
17
|
-
export declare var
|
|
18
|
-
export declare var
|
|
19
|
-
export declare var
|
|
20
|
-
export declare var
|
|
21
|
-
export declare var
|
|
22
|
-
export declare var
|
|
23
|
-
export declare var
|
|
24
|
-
export declare var ColumnNamesList: number;
|
|
25
|
-
export declare var InputList: number;
|
|
26
|
-
export declare var ItemList: StaticListSchema;
|
|
27
|
-
export declare var PromotionList: StaticListSchema;
|
|
28
|
-
export declare var ReasonList: number;
|
|
29
|
-
export declare var Context: StaticMapSchema;
|
|
30
|
-
export declare var FilterValues: StaticMapSchema;
|
|
31
|
-
export declare var Metadata: StaticMapSchema;
|
|
32
|
-
export declare var MetadataColumns: StaticMapSchema;
|
|
33
|
-
export declare var GetActionRecommendations: StaticOperationSchema;
|
|
34
|
-
export declare var GetPersonalizedRanking: StaticOperationSchema;
|
|
35
|
-
export declare var GetRecommendations: StaticOperationSchema;
|
|
6
|
+
export declare var GetActionRecommendationsRequest$: StaticStructureSchema;
|
|
7
|
+
export declare var GetActionRecommendationsResponse$: StaticStructureSchema;
|
|
8
|
+
export declare var GetPersonalizedRankingRequest$: StaticStructureSchema;
|
|
9
|
+
export declare var GetPersonalizedRankingResponse$: StaticStructureSchema;
|
|
10
|
+
export declare var GetRecommendationsRequest$: StaticStructureSchema;
|
|
11
|
+
export declare var GetRecommendationsResponse$: StaticStructureSchema;
|
|
12
|
+
export declare var InvalidInputException$: StaticErrorSchema;
|
|
13
|
+
export declare var PredictedAction$: StaticStructureSchema;
|
|
14
|
+
export declare var PredictedItem$: StaticStructureSchema;
|
|
15
|
+
export declare var Promotion$: StaticStructureSchema;
|
|
16
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
17
|
+
export declare var PersonalizeRuntimeServiceException$: StaticErrorSchema;
|
|
18
|
+
export declare var GetActionRecommendations$: StaticOperationSchema;
|
|
19
|
+
export declare var GetPersonalizedRanking$: StaticOperationSchema;
|
|
20
|
+
export declare var GetRecommendations$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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.954.0",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"build": "concurrently 'yarn:build:
|
|
6
|
+
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-personalize-runtime",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
@@ -21,41 +21,41 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^4.4.
|
|
36
|
-
"@smithy/core": "^3.
|
|
37
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
38
|
-
"@smithy/hash-node": "^4.2.
|
|
39
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
40
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
43
|
-
"@smithy/middleware-serde": "^4.2.
|
|
44
|
-
"@smithy/middleware-stack": "^4.2.
|
|
45
|
-
"@smithy/node-config-provider": "^4.3.
|
|
46
|
-
"@smithy/node-http-handler": "^4.4.
|
|
47
|
-
"@smithy/protocol-http": "^5.3.
|
|
48
|
-
"@smithy/smithy-client": "^4.
|
|
49
|
-
"@smithy/types": "^4.
|
|
50
|
-
"@smithy/url-parser": "^4.2.
|
|
24
|
+
"@aws-sdk/core": "3.954.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.954.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.953.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.953.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.953.0",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.954.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.953.0",
|
|
31
|
+
"@aws-sdk/types": "3.953.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.953.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.953.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.954.0",
|
|
35
|
+
"@smithy/config-resolver": "^4.4.4",
|
|
36
|
+
"@smithy/core": "^3.19.0",
|
|
37
|
+
"@smithy/fetch-http-handler": "^5.3.7",
|
|
38
|
+
"@smithy/hash-node": "^4.2.6",
|
|
39
|
+
"@smithy/invalid-dependency": "^4.2.6",
|
|
40
|
+
"@smithy/middleware-content-length": "^4.2.6",
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.0",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.16",
|
|
43
|
+
"@smithy/middleware-serde": "^4.2.7",
|
|
44
|
+
"@smithy/middleware-stack": "^4.2.6",
|
|
45
|
+
"@smithy/node-config-provider": "^4.3.6",
|
|
46
|
+
"@smithy/node-http-handler": "^4.4.6",
|
|
47
|
+
"@smithy/protocol-http": "^5.3.6",
|
|
48
|
+
"@smithy/smithy-client": "^4.10.1",
|
|
49
|
+
"@smithy/types": "^4.10.0",
|
|
50
|
+
"@smithy/url-parser": "^4.2.6",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
56
|
-
"@smithy/util-endpoints": "^3.2.
|
|
57
|
-
"@smithy/util-middleware": "^4.2.
|
|
58
|
-
"@smithy/util-retry": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.15",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.18",
|
|
56
|
+
"@smithy/util-endpoints": "^3.2.6",
|
|
57
|
+
"@smithy/util-middleware": "^4.2.6",
|
|
58
|
+
"@smithy/util-retry": "^4.2.6",
|
|
59
59
|
"@smithy/util-utf8": "^4.2.0",
|
|
60
60
|
"tslib": "^2.6.2"
|
|
61
61
|
},
|