@aws-sdk/client-personalize-runtime 3.928.0 → 3.930.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.
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { PersonalizeRuntimeServiceException as __BaseException } from "./PersonalizeRuntimeServiceException";
3
2
  export class InvalidInputException extends __BaseException {
4
3
  name = "InvalidInputException";
@@ -24,36 +23,3 @@ export class ResourceNotFoundException extends __BaseException {
24
23
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
25
24
  }
26
25
  }
27
- export const GetActionRecommendationsRequestFilterSensitiveLog = (obj) => ({
28
- ...obj,
29
- ...(obj.filterValues && { filterValues: SENSITIVE_STRING }),
30
- });
31
- export const GetPersonalizedRankingRequestFilterSensitiveLog = (obj) => ({
32
- ...obj,
33
- ...(obj.context && { context: SENSITIVE_STRING }),
34
- ...(obj.filterValues && { filterValues: SENSITIVE_STRING }),
35
- });
36
- export const PredictedItemFilterSensitiveLog = (obj) => ({
37
- ...obj,
38
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
39
- });
40
- export const GetPersonalizedRankingResponseFilterSensitiveLog = (obj) => ({
41
- ...obj,
42
- ...(obj.personalizedRanking && {
43
- personalizedRanking: obj.personalizedRanking.map((item) => PredictedItemFilterSensitiveLog(item)),
44
- }),
45
- });
46
- export const PromotionFilterSensitiveLog = (obj) => ({
47
- ...obj,
48
- ...(obj.filterValues && { filterValues: SENSITIVE_STRING }),
49
- });
50
- export const GetRecommendationsRequestFilterSensitiveLog = (obj) => ({
51
- ...obj,
52
- ...(obj.context && { context: SENSITIVE_STRING }),
53
- ...(obj.filterValues && { filterValues: SENSITIVE_STRING }),
54
- ...(obj.promotions && { promotions: obj.promotions.map((item) => PromotionFilterSensitiveLog(item)) }),
55
- });
56
- export const GetRecommendationsResponseFilterSensitiveLog = (obj) => ({
57
- ...obj,
58
- ...(obj.itemList && { itemList: obj.itemList.map((item) => PredictedItemFilterSensitiveLog(item)) }),
59
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.personalizeruntime" }),
25
27
  serviceId: config?.serviceId ?? "Personalize Runtime",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -0,0 +1,181 @@
1
+ const _AL = "ActionList";
2
+ const _AV = "AttributeValue";
3
+ const _C = "Context";
4
+ const _FAV = "FilterAttributeValue";
5
+ const _FV = "FilterValues";
6
+ const _GAR = "GetActionRecommendations";
7
+ const _GARR = "GetActionRecommendationsRequest";
8
+ const _GARRe = "GetActionRecommendationsResponse";
9
+ const _GPR = "GetPersonalizedRanking";
10
+ const _GPRR = "GetPersonalizedRankingRequest";
11
+ const _GPRRe = "GetPersonalizedRankingResponse";
12
+ const _GR = "GetRecommendations";
13
+ const _GRR = "GetRecommendationsRequest";
14
+ const _GRRe = "GetRecommendationsResponse";
15
+ const _IIE = "InvalidInputException";
16
+ const _IL = "ItemList";
17
+ const _M = "Metadata";
18
+ const _MC = "MetadataColumns";
19
+ const _P = "Promotion";
20
+ const _PA = "PredictedAction";
21
+ const _PI = "PredictedItem";
22
+ const _PL = "PromotionList";
23
+ const _RNFE = "ResourceNotFoundException";
24
+ const _aI = "actionId";
25
+ const _aL = "actionList";
26
+ const _c = "context";
27
+ const _cA = "campaignArn";
28
+ const _cl = "client";
29
+ const _e = "error";
30
+ const _fA = "filterArn";
31
+ const _fV = "filterValues";
32
+ const _h = "http";
33
+ const _hE = "httpError";
34
+ const _iI = "itemId";
35
+ const _iL = "inputList";
36
+ const _iLt = "itemList";
37
+ const _m = "message";
38
+ const _mC = "metadataColumns";
39
+ const _me = "metadata";
40
+ const _n = "name";
41
+ const _nR = "numResults";
42
+ const _p = "promotions";
43
+ const _pN = "promotionName";
44
+ const _pPI = "percentPromotedItems";
45
+ const _pR = "personalizedRanking";
46
+ const _r = "reason";
47
+ const _rA = "recommenderArn";
48
+ const _rI = "recommendationId";
49
+ const _s = "score";
50
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.personalizeruntime";
51
+ const _uI = "userId";
52
+ const n0 = "com.amazonaws.personalizeruntime";
53
+ import { TypeRegistry } from "@smithy/core/schema";
54
+ import { InvalidInputException as __InvalidInputException, ResourceNotFoundException as __ResourceNotFoundException, } from "../models/index";
55
+ import { PersonalizeRuntimeServiceException as __PersonalizeRuntimeServiceException } from "../models/PersonalizeRuntimeServiceException";
56
+ export var AttributeValue = [0, n0, _AV, 8, 0];
57
+ export var FilterAttributeValue = [0, n0, _FAV, 8, 0];
58
+ export var GetActionRecommendationsRequest = [
59
+ 3,
60
+ n0,
61
+ _GARR,
62
+ 0,
63
+ [_cA, _uI, _nR, _fA, _fV],
64
+ [0, 0, 1, 0, [() => FilterValues, 0]],
65
+ ];
66
+ export var GetActionRecommendationsResponse = [
67
+ 3,
68
+ n0,
69
+ _GARRe,
70
+ 0,
71
+ [_aL, _rI],
72
+ [() => ActionList, 0],
73
+ ];
74
+ export var GetPersonalizedRankingRequest = [
75
+ 3,
76
+ n0,
77
+ _GPRR,
78
+ 0,
79
+ [_cA, _iL, _uI, _c, _fA, _fV, _mC],
80
+ [0, 64 | 0, 0, [() => Context, 0], 0, [() => FilterValues, 0], [2, n0, _MC, 0, 0, 64 | 0]],
81
+ ];
82
+ export var GetPersonalizedRankingResponse = [
83
+ 3,
84
+ n0,
85
+ _GPRRe,
86
+ 0,
87
+ [_pR, _rI],
88
+ [[() => ItemList, 0], 0],
89
+ ];
90
+ export var GetRecommendationsRequest = [
91
+ 3,
92
+ n0,
93
+ _GRR,
94
+ 0,
95
+ [_cA, _iI, _uI, _nR, _c, _fA, _fV, _rA, _p, _mC],
96
+ [0, 0, 0, 1, [() => Context, 0], 0, [() => FilterValues, 0], 0, [() => PromotionList, 0], [2, n0, _MC, 0, 0, 64 | 0]],
97
+ ];
98
+ export var GetRecommendationsResponse = [3, n0, _GRRe, 0, [_iLt, _rI], [[() => ItemList, 0], 0]];
99
+ export var InvalidInputException = [
100
+ -3,
101
+ n0,
102
+ _IIE,
103
+ {
104
+ [_e]: _cl,
105
+ [_hE]: 400,
106
+ },
107
+ [_m],
108
+ [0],
109
+ ];
110
+ TypeRegistry.for(n0).registerError(InvalidInputException, __InvalidInputException);
111
+ export var PredictedAction = [3, n0, _PA, 0, [_aI, _s], [0, 1]];
112
+ export var PredictedItem = [
113
+ 3,
114
+ n0,
115
+ _PI,
116
+ 0,
117
+ [_iI, _s, _pN, _me, _r],
118
+ [0, 1, 0, [() => Metadata, 0], 64 | 0],
119
+ ];
120
+ export var Promotion = [3, n0, _P, 0, [_n, _pPI, _fA, _fV], [0, 1, 0, [() => FilterValues, 0]]];
121
+ export var ResourceNotFoundException = [
122
+ -3,
123
+ n0,
124
+ _RNFE,
125
+ {
126
+ [_e]: _cl,
127
+ [_hE]: 404,
128
+ },
129
+ [_m],
130
+ [0],
131
+ ];
132
+ TypeRegistry.for(n0).registerError(ResourceNotFoundException, __ResourceNotFoundException);
133
+ export var PersonalizeRuntimeServiceException = [
134
+ -3,
135
+ _sm,
136
+ "PersonalizeRuntimeServiceException",
137
+ 0,
138
+ [],
139
+ [],
140
+ ];
141
+ TypeRegistry.for(_sm).registerError(PersonalizeRuntimeServiceException, __PersonalizeRuntimeServiceException);
142
+ export var ActionList = [1, n0, _AL, 0, () => PredictedAction];
143
+ export var ColumnNamesList = 64 | 0;
144
+ export var InputList = 64 | 0;
145
+ export var ItemList = [1, n0, _IL, 0, [() => PredictedItem, 0]];
146
+ export var PromotionList = [1, n0, _PL, 0, [() => Promotion, 0]];
147
+ export var ReasonList = 64 | 0;
148
+ export var Context = [2, n0, _C, 0, [0, 0], [() => AttributeValue, 0]];
149
+ export var FilterValues = [2, n0, _FV, 0, [0, 0], [() => FilterAttributeValue, 0]];
150
+ export var Metadata = [2, n0, _M, 8, 0, 0];
151
+ export var MetadataColumns = [2, n0, _MC, 0, 0, 64 | 0];
152
+ export var GetActionRecommendations = [
153
+ 9,
154
+ n0,
155
+ _GAR,
156
+ {
157
+ [_h]: ["POST", "/action-recommendations", 200],
158
+ },
159
+ () => GetActionRecommendationsRequest,
160
+ () => GetActionRecommendationsResponse,
161
+ ];
162
+ export var GetPersonalizedRanking = [
163
+ 9,
164
+ n0,
165
+ _GPR,
166
+ {
167
+ [_h]: ["POST", "/personalize-ranking", 200],
168
+ },
169
+ () => GetPersonalizedRankingRequest,
170
+ () => GetPersonalizedRankingResponse,
171
+ ];
172
+ export var GetRecommendations = [
173
+ 9,
174
+ n0,
175
+ _GR,
176
+ {
177
+ [_h]: ["POST", "/recommendations", 200],
178
+ },
179
+ () => GetRecommendationsRequest,
180
+ () => GetRecommendationsResponse,
181
+ ];
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
5
5
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
6
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
- import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { GetActionRecommendationsCommandInput, GetActionRecommendationsCommandOutput } from "./commands/GetActionRecommendationsCommand";
11
11
  import { GetPersonalizedRankingCommandInput, GetPersonalizedRankingCommandOutput } from "./commands/GetPersonalizedRankingCommand";
@@ -144,6 +144,15 @@ 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>;
147
156
  /**
148
157
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
149
158
  */
@@ -362,31 +362,3 @@ export interface GetRecommendationsResponse {
362
362
  */
363
363
  recommendationId?: string | undefined;
364
364
  }
365
- /**
366
- * @internal
367
- */
368
- export declare const GetActionRecommendationsRequestFilterSensitiveLog: (obj: GetActionRecommendationsRequest) => any;
369
- /**
370
- * @internal
371
- */
372
- export declare const GetPersonalizedRankingRequestFilterSensitiveLog: (obj: GetPersonalizedRankingRequest) => any;
373
- /**
374
- * @internal
375
- */
376
- export declare const PredictedItemFilterSensitiveLog: (obj: PredictedItem) => any;
377
- /**
378
- * @internal
379
- */
380
- export declare const GetPersonalizedRankingResponseFilterSensitiveLog: (obj: GetPersonalizedRankingResponse) => any;
381
- /**
382
- * @internal
383
- */
384
- export declare const PromotionFilterSensitiveLog: (obj: Promotion) => any;
385
- /**
386
- * @internal
387
- */
388
- export declare const GetRecommendationsRequestFilterSensitiveLog: (obj: GetRecommendationsRequest) => any;
389
- /**
390
- * @internal
391
- */
392
- export declare const GetRecommendationsResponseFilterSensitiveLog: (obj: GetRecommendationsResponse) => any;
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
29
29
  profile?: string;
30
30
  logger: import("@smithy/types").Logger;
31
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
32
33
  customUserAgent?: string | import("@smithy/types").UserAgent;
33
34
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
34
35
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
31
31
  profile?: string;
32
32
  logger: import("@smithy/types").Logger;
33
33
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
34
35
  customUserAgent?: string | import("@smithy/types").UserAgent;
35
36
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
36
37
  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;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
30
31
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent;
32
33
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: PersonalizeRuntimeClientConfig)
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PersonalizeRuntimeHttpAuthSchemeProvider;
15
15
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
16
  logger: import("@smithy/types").Logger;
17
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
17
18
  serviceId: string;
18
19
  urlParser: import("@smithy/types").UrlParser;
19
20
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,28 @@
1
+ import { StaticErrorSchema, StaticListSchema, StaticMapSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var AttributeValue: StaticSimpleSchema;
3
+ export declare var FilterAttributeValue: StaticSimpleSchema;
4
+ export declare var GetActionRecommendationsRequest: StaticStructureSchema;
5
+ export declare var GetActionRecommendationsResponse: StaticStructureSchema;
6
+ export declare var GetPersonalizedRankingRequest: StaticStructureSchema;
7
+ export declare var GetPersonalizedRankingResponse: StaticStructureSchema;
8
+ export declare var GetRecommendationsRequest: StaticStructureSchema;
9
+ export declare var GetRecommendationsResponse: StaticStructureSchema;
10
+ export declare var InvalidInputException: StaticErrorSchema;
11
+ export declare var PredictedAction: StaticStructureSchema;
12
+ export declare var PredictedItem: StaticStructureSchema;
13
+ export declare var Promotion: StaticStructureSchema;
14
+ export declare var ResourceNotFoundException: StaticErrorSchema;
15
+ export declare var PersonalizeRuntimeServiceException: StaticErrorSchema;
16
+ export declare var ActionList: StaticListSchema;
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;
@@ -30,10 +30,13 @@ import {
30
30
  BodyLengthCalculator as __BodyLengthCalculator,
31
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
32
32
  ChecksumConstructor as __ChecksumConstructor,
33
+ ClientProtocol,
33
34
  Decoder as __Decoder,
34
35
  Encoder as __Encoder,
35
36
  HashConstructor as __HashConstructor,
36
37
  HttpHandlerOptions as __HttpHandlerOptions,
38
+ HttpRequest,
39
+ HttpResponse,
37
40
  Logger as __Logger,
38
41
  Provider as __Provider,
39
42
  Provider,
@@ -96,6 +99,7 @@ export interface ClientDefaults
96
99
  retryMode?: string | __Provider<string>;
97
100
  logger?: __Logger;
98
101
  extensions?: RuntimeExtension[];
102
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
99
103
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
100
104
  }
101
105
  export type PersonalizeRuntimeClientConfigType = Partial<
@@ -71,22 +71,3 @@ export interface GetRecommendationsResponse {
71
71
  itemList?: PredictedItem[] | undefined;
72
72
  recommendationId?: string | undefined;
73
73
  }
74
- export declare const GetActionRecommendationsRequestFilterSensitiveLog: (
75
- obj: GetActionRecommendationsRequest
76
- ) => any;
77
- export declare const GetPersonalizedRankingRequestFilterSensitiveLog: (
78
- obj: GetPersonalizedRankingRequest
79
- ) => any;
80
- export declare const PredictedItemFilterSensitiveLog: (
81
- obj: PredictedItem
82
- ) => any;
83
- export declare const GetPersonalizedRankingResponseFilterSensitiveLog: (
84
- obj: GetPersonalizedRankingResponse
85
- ) => any;
86
- export declare const PromotionFilterSensitiveLog: (obj: Promotion) => any;
87
- export declare const GetRecommendationsRequestFilterSensitiveLog: (
88
- obj: GetRecommendationsRequest
89
- ) => any;
90
- export declare const GetRecommendationsResponseFilterSensitiveLog: (
91
- obj: GetRecommendationsResponse
92
- ) => any;
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
40
40
  profile?: string;
41
41
  logger: import("@smithy/types").Logger;
42
42
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
+ protocol: import("@smithy/types").ClientProtocol<
44
+ import("@smithy/types").HttpRequest,
45
+ import("@smithy/types").HttpResponse
46
+ >;
43
47
  customUserAgent?: string | import("@smithy/types").UserAgent;
44
48
  userAgentAppId?:
45
49
  | string
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
40
40
  profile?: string;
41
41
  logger: import("@smithy/types").Logger;
42
42
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
+ protocol: import("@smithy/types").ClientProtocol<
44
+ import("@smithy/types").HttpRequest,
45
+ import("@smithy/types").HttpResponse
46
+ >;
43
47
  customUserAgent?: string | import("@smithy/types").UserAgent;
44
48
  retryStrategy?:
45
49
  | import("@smithy/types").RetryStrategy
@@ -39,6 +39,10 @@ export declare const getRuntimeConfig: (
39
39
  retryMode: string | import("@smithy/types").Provider<string>;
40
40
  logger: import("@smithy/types").Logger;
41
41
  extensions: import("./runtimeExtensions").RuntimeExtension[];
42
+ protocol: import("@smithy/types").ClientProtocol<
43
+ import("@smithy/types").HttpRequest,
44
+ import("@smithy/types").HttpResponse
45
+ >;
42
46
  defaultsMode:
43
47
  | import("@smithy/smithy-client").DefaultsMode
44
48
  | import("@smithy/types").Provider<
@@ -16,6 +16,10 @@ export declare const getRuntimeConfig: (
16
16
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PersonalizeRuntimeHttpAuthSchemeProvider;
17
17
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
18
18
  logger: import("@smithy/types").Logger;
19
+ protocol: import("@smithy/types").ClientProtocol<
20
+ import("@smithy/types").HttpRequest,
21
+ import("@smithy/types").HttpResponse
22
+ >;
19
23
  serviceId: string;
20
24
  urlParser: import("@smithy/types").UrlParser;
21
25
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,35 @@
1
+ import {
2
+ StaticErrorSchema,
3
+ StaticListSchema,
4
+ StaticMapSchema,
5
+ StaticOperationSchema,
6
+ StaticSimpleSchema,
7
+ StaticStructureSchema,
8
+ } from "@smithy/types";
9
+ export declare var AttributeValue: StaticSimpleSchema;
10
+ export declare var FilterAttributeValue: StaticSimpleSchema;
11
+ export declare var GetActionRecommendationsRequest: StaticStructureSchema;
12
+ export declare var GetActionRecommendationsResponse: StaticStructureSchema;
13
+ export declare var GetPersonalizedRankingRequest: StaticStructureSchema;
14
+ export declare var GetPersonalizedRankingResponse: StaticStructureSchema;
15
+ export declare var GetRecommendationsRequest: StaticStructureSchema;
16
+ export declare var GetRecommendationsResponse: StaticStructureSchema;
17
+ export declare var InvalidInputException: StaticErrorSchema;
18
+ export declare var PredictedAction: StaticStructureSchema;
19
+ export declare var PredictedItem: StaticStructureSchema;
20
+ export declare var Promotion: StaticStructureSchema;
21
+ export declare var ResourceNotFoundException: StaticErrorSchema;
22
+ export declare var PersonalizeRuntimeServiceException: StaticErrorSchema;
23
+ export declare var ActionList: StaticListSchema;
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;
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.928.0",
4
+ "version": "3.930.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-personalize-runtime",
@@ -20,41 +20,41 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.928.0",
24
- "@aws-sdk/credential-provider-node": "3.928.0",
25
- "@aws-sdk/middleware-host-header": "3.922.0",
26
- "@aws-sdk/middleware-logger": "3.922.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.922.0",
28
- "@aws-sdk/middleware-user-agent": "3.928.0",
29
- "@aws-sdk/region-config-resolver": "3.925.0",
30
- "@aws-sdk/types": "3.922.0",
31
- "@aws-sdk/util-endpoints": "3.922.0",
32
- "@aws-sdk/util-user-agent-browser": "3.922.0",
33
- "@aws-sdk/util-user-agent-node": "3.928.0",
34
- "@smithy/config-resolver": "^4.4.2",
35
- "@smithy/core": "^3.17.2",
36
- "@smithy/fetch-http-handler": "^5.3.5",
37
- "@smithy/hash-node": "^4.2.4",
38
- "@smithy/invalid-dependency": "^4.2.4",
39
- "@smithy/middleware-content-length": "^4.2.4",
40
- "@smithy/middleware-endpoint": "^4.3.6",
41
- "@smithy/middleware-retry": "^4.4.6",
42
- "@smithy/middleware-serde": "^4.2.4",
43
- "@smithy/middleware-stack": "^4.2.4",
44
- "@smithy/node-config-provider": "^4.3.4",
45
- "@smithy/node-http-handler": "^4.4.4",
46
- "@smithy/protocol-http": "^5.3.4",
47
- "@smithy/smithy-client": "^4.9.2",
48
- "@smithy/types": "^4.8.1",
49
- "@smithy/url-parser": "^4.2.4",
23
+ "@aws-sdk/core": "3.930.0",
24
+ "@aws-sdk/credential-provider-node": "3.930.0",
25
+ "@aws-sdk/middleware-host-header": "3.930.0",
26
+ "@aws-sdk/middleware-logger": "3.930.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.930.0",
28
+ "@aws-sdk/middleware-user-agent": "3.930.0",
29
+ "@aws-sdk/region-config-resolver": "3.930.0",
30
+ "@aws-sdk/types": "3.930.0",
31
+ "@aws-sdk/util-endpoints": "3.930.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.930.0",
33
+ "@aws-sdk/util-user-agent-node": "3.930.0",
34
+ "@smithy/config-resolver": "^4.4.3",
35
+ "@smithy/core": "^3.18.2",
36
+ "@smithy/fetch-http-handler": "^5.3.6",
37
+ "@smithy/hash-node": "^4.2.5",
38
+ "@smithy/invalid-dependency": "^4.2.5",
39
+ "@smithy/middleware-content-length": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.9",
41
+ "@smithy/middleware-retry": "^4.4.9",
42
+ "@smithy/middleware-serde": "^4.2.5",
43
+ "@smithy/middleware-stack": "^4.2.5",
44
+ "@smithy/node-config-provider": "^4.3.5",
45
+ "@smithy/node-http-handler": "^4.4.5",
46
+ "@smithy/protocol-http": "^5.3.5",
47
+ "@smithy/smithy-client": "^4.9.5",
48
+ "@smithy/types": "^4.9.0",
49
+ "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.5",
54
- "@smithy/util-defaults-mode-node": "^4.2.8",
55
- "@smithy/util-endpoints": "^3.2.4",
56
- "@smithy/util-middleware": "^4.2.4",
57
- "@smithy/util-retry": "^4.2.4",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.8",
54
+ "@smithy/util-defaults-mode-node": "^4.2.11",
55
+ "@smithy/util-endpoints": "^3.2.5",
56
+ "@smithy/util-middleware": "^4.2.5",
57
+ "@smithy/util-retry": "^4.2.5",
58
58
  "@smithy/util-utf8": "^4.2.0",
59
59
  "tslib": "^2.6.2"
60
60
  },