@aws-sdk/client-personalize-events 3.928.0 → 3.929.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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.personalizeevents" }),
28
30
  serviceId: config?.serviceId ?? "Personalize Events",
29
31
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
32
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class PersonalizeEventsClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { PutActionInteractionsRequestFilterSensitiveLog } from "../models/models_0";
6
- import { de_PutActionInteractionsCommand, se_PutActionInteractionsCommand } from "../protocols/Aws_restJson1";
4
+ import { PutActionInteractions } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class PutActionInteractionsCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AmazonPersonalizeEvents", "PutActionInteractions", {})
18
13
  .n("PersonalizeEventsClient", "PutActionInteractionsCommand")
19
- .f(PutActionInteractionsRequestFilterSensitiveLog, void 0)
20
- .ser(se_PutActionInteractionsCommand)
21
- .de(de_PutActionInteractionsCommand)
14
+ .sc(PutActionInteractions)
22
15
  .build() {
23
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { PutActionsRequestFilterSensitiveLog } from "../models/models_0";
6
- import { de_PutActionsCommand, se_PutActionsCommand } from "../protocols/Aws_restJson1";
4
+ import { PutActions } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class PutActionsCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AmazonPersonalizeEvents", "PutActions", {})
18
13
  .n("PersonalizeEventsClient", "PutActionsCommand")
19
- .f(PutActionsRequestFilterSensitiveLog, void 0)
20
- .ser(se_PutActionsCommand)
21
- .de(de_PutActionsCommand)
14
+ .sc(PutActions)
22
15
  .build() {
23
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { PutEventsRequestFilterSensitiveLog } from "../models/models_0";
6
- import { de_PutEventsCommand, se_PutEventsCommand } from "../protocols/Aws_restJson1";
4
+ import { PutEvents } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class PutEventsCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AmazonPersonalizeEvents", "PutEvents", {})
18
13
  .n("PersonalizeEventsClient", "PutEventsCommand")
19
- .f(PutEventsRequestFilterSensitiveLog, void 0)
20
- .ser(se_PutEventsCommand)
21
- .de(de_PutEventsCommand)
14
+ .sc(PutEvents)
22
15
  .build() {
23
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { PutItemsRequestFilterSensitiveLog } from "../models/models_0";
6
- import { de_PutItemsCommand, se_PutItemsCommand } from "../protocols/Aws_restJson1";
4
+ import { PutItems } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class PutItemsCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AmazonPersonalizeEvents", "PutItems", {})
18
13
  .n("PersonalizeEventsClient", "PutItemsCommand")
19
- .f(PutItemsRequestFilterSensitiveLog, void 0)
20
- .ser(se_PutItemsCommand)
21
- .de(de_PutItemsCommand)
14
+ .sc(PutItems)
22
15
  .build() {
23
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { PutUsersRequestFilterSensitiveLog } from "../models/models_0";
6
- import { de_PutUsersCommand, se_PutUsersCommand } from "../protocols/Aws_restJson1";
4
+ import { PutUsers } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class PutUsersCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AmazonPersonalizeEvents", "PutUsers", {})
18
13
  .n("PersonalizeEventsClient", "PutUsersCommand")
19
- .f(PutUsersRequestFilterSensitiveLog, void 0)
20
- .ser(se_PutUsersCommand)
21
- .de(de_PutUsersCommand)
14
+ .sc(PutUsers)
22
15
  .build() {
23
16
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING, } from "@smithy/smithy-client";
2
1
  import { PersonalizeEventsServiceException as __BaseException } from "./PersonalizeEventsServiceException";
3
2
  export class InvalidInputException extends __BaseException {
4
3
  name = "InvalidInputException";
@@ -36,51 +35,3 @@ export class ResourceNotFoundException extends __BaseException {
36
35
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
37
36
  }
38
37
  }
39
- export const ActionFilterSensitiveLog = (obj) => ({
40
- ...obj,
41
- ...(obj.properties && { properties: SENSITIVE_STRING }),
42
- });
43
- export const ActionInteractionFilterSensitiveLog = (obj) => ({
44
- ...obj,
45
- ...(obj.actionId && { actionId: SENSITIVE_STRING }),
46
- ...(obj.userId && { userId: SENSITIVE_STRING }),
47
- ...(obj.impression && { impression: SENSITIVE_STRING }),
48
- ...(obj.properties && { properties: SENSITIVE_STRING }),
49
- });
50
- export const PutActionInteractionsRequestFilterSensitiveLog = (obj) => ({
51
- ...obj,
52
- ...(obj.actionInteractions && {
53
- actionInteractions: obj.actionInteractions.map((item) => ActionInteractionFilterSensitiveLog(item)),
54
- }),
55
- });
56
- export const PutActionsRequestFilterSensitiveLog = (obj) => ({
57
- ...obj,
58
- ...(obj.actions && { actions: obj.actions.map((item) => ActionFilterSensitiveLog(item)) }),
59
- });
60
- export const EventFilterSensitiveLog = (obj) => ({
61
- ...obj,
62
- ...(obj.itemId && { itemId: SENSITIVE_STRING }),
63
- ...(obj.properties && { properties: SENSITIVE_STRING }),
64
- ...(obj.impression && { impression: SENSITIVE_STRING }),
65
- });
66
- export const PutEventsRequestFilterSensitiveLog = (obj) => ({
67
- ...obj,
68
- ...(obj.userId && { userId: SENSITIVE_STRING }),
69
- ...(obj.eventList && { eventList: SENSITIVE_STRING }),
70
- });
71
- export const ItemFilterSensitiveLog = (obj) => ({
72
- ...obj,
73
- ...(obj.properties && { properties: SENSITIVE_STRING }),
74
- });
75
- export const PutItemsRequestFilterSensitiveLog = (obj) => ({
76
- ...obj,
77
- ...(obj.items && { items: obj.items.map((item) => ItemFilterSensitiveLog(item)) }),
78
- });
79
- export const UserFilterSensitiveLog = (obj) => ({
80
- ...obj,
81
- ...(obj.properties && { properties: SENSITIVE_STRING }),
82
- });
83
- export const PutUsersRequestFilterSensitiveLog = (obj) => ({
84
- ...obj,
85
- ...(obj.users && { users: obj.users.map((item) => UserFilterSensitiveLog(item)) }),
86
- });
@@ -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.personalizeevents" }),
25
27
  serviceId: config?.serviceId ?? "Personalize Events",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -0,0 +1,283 @@
1
+ const _A = "Action";
2
+ const _AI = "ActionId";
3
+ const _AIL = "ActionInteractionsList";
4
+ const _AIc = "ActionInteraction";
5
+ const _AIct = "ActionImpression";
6
+ const _AL = "ActionList";
7
+ const _E = "Event";
8
+ const _EL = "EventList";
9
+ const _I = "Item";
10
+ const _II = "ItemId";
11
+ const _IIE = "InvalidInputException";
12
+ const _IL = "ItemList";
13
+ const _Im = "Impression";
14
+ const _MA = "MetricAttribution";
15
+ const _PA = "PutActions";
16
+ const _PAI = "PutActionInteractions";
17
+ const _PAIR = "PutActionInteractionsRequest";
18
+ const _PAR = "PutActionsRequest";
19
+ const _PE = "PutEvents";
20
+ const _PER = "PutEventsRequest";
21
+ const _PI = "PutItems";
22
+ const _PIR = "PutItemsRequest";
23
+ const _PU = "PutUsers";
24
+ const _PUR = "PutUsersRequest";
25
+ const _RIUE = "ResourceInUseException";
26
+ const _RNFE = "ResourceNotFoundException";
27
+ const _SJAIP = "SynthesizedJsonActionInteractionProperties";
28
+ const _SJAP = "SynthesizedJsonActionProperties";
29
+ const _SJEPJSON = "SynthesizedJsonEventPropertiesJSON";
30
+ const _SJIP = "SynthesizedJsonItemProperties";
31
+ const _SJUP = "SynthesizedJsonUserProperties";
32
+ const _U = "User";
33
+ const _UI = "UserId";
34
+ const _UL = "UserList";
35
+ const _a = "application/json";
36
+ const _aI = "actionId";
37
+ const _aIc = "actionInteractions";
38
+ const _ac = "actions";
39
+ const _c = "client";
40
+ const _dA = "datasetArn";
41
+ const _e = "error";
42
+ const _eAS = "eventAttributionSource";
43
+ const _eI = "eventId";
44
+ const _eL = "eventList";
45
+ const _eT = "eventType";
46
+ const _eV = "eventValue";
47
+ const _h = "http";
48
+ const _hE = "httpError";
49
+ const _i = "impression";
50
+ const _iI = "itemId";
51
+ const _it = "items";
52
+ const _m = "message";
53
+ const _mA = "metricAttribution";
54
+ const _mT = "mediaType";
55
+ const _p = "properties";
56
+ const _rI = "recommendationId";
57
+ const _s = "sensitive";
58
+ const _sA = "sentAt";
59
+ const _sI = "sessionId";
60
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.personalizeevents";
61
+ const _t = "timestamp";
62
+ const _tI = "trackingId";
63
+ const _u = "users";
64
+ const _uI = "userId";
65
+ const n0 = "com.amazonaws.personalizeevents";
66
+ import { TypeRegistry } from "@smithy/core/schema";
67
+ import { InvalidInputException as __InvalidInputException, ResourceInUseException as __ResourceInUseException, ResourceNotFoundException as __ResourceNotFoundException, } from "../models/index";
68
+ import { PersonalizeEventsServiceException as __PersonalizeEventsServiceException } from "../models/PersonalizeEventsServiceException";
69
+ export var ActionId = [0, n0, _AI, 8, 0];
70
+ export var ItemId = [0, n0, _II, 8, 0];
71
+ export var SynthesizedJsonActionInteractionProperties = [
72
+ 0,
73
+ n0,
74
+ _SJAIP,
75
+ {
76
+ [_mT]: _a,
77
+ [_s]: 1,
78
+ },
79
+ 0,
80
+ ];
81
+ export var SynthesizedJsonActionProperties = [
82
+ 0,
83
+ n0,
84
+ _SJAP,
85
+ {
86
+ [_mT]: _a,
87
+ [_s]: 1,
88
+ },
89
+ 0,
90
+ ];
91
+ export var SynthesizedJsonEventPropertiesJSON = [
92
+ 0,
93
+ n0,
94
+ _SJEPJSON,
95
+ {
96
+ [_mT]: _a,
97
+ [_s]: 1,
98
+ },
99
+ 0,
100
+ ];
101
+ export var SynthesizedJsonItemProperties = [
102
+ 0,
103
+ n0,
104
+ _SJIP,
105
+ {
106
+ [_mT]: _a,
107
+ [_s]: 1,
108
+ },
109
+ 0,
110
+ ];
111
+ export var SynthesizedJsonUserProperties = [
112
+ 0,
113
+ n0,
114
+ _SJUP,
115
+ {
116
+ [_mT]: _a,
117
+ [_s]: 1,
118
+ },
119
+ 0,
120
+ ];
121
+ export var UserId = [0, n0, _UI, 8, 0];
122
+ export var Action = [3, n0, _A, 0, [_aI, _p], [0, [() => SynthesizedJsonActionProperties, 0]]];
123
+ export var ActionInteraction = [
124
+ 3,
125
+ n0,
126
+ _AIc,
127
+ 0,
128
+ [_aI, _uI, _sI, _t, _eT, _eI, _rI, _i, _p],
129
+ [
130
+ [() => ActionId, 0],
131
+ [() => UserId, 0],
132
+ 0,
133
+ 4,
134
+ 0,
135
+ 0,
136
+ 0,
137
+ [() => ActionImpression, 0],
138
+ [() => SynthesizedJsonActionInteractionProperties, 0],
139
+ ],
140
+ ];
141
+ export var Event = [
142
+ 3,
143
+ n0,
144
+ _E,
145
+ 8,
146
+ [_eI, _eT, _eV, _iI, _p, _sA, _rI, _i, _mA],
147
+ [
148
+ 0,
149
+ 0,
150
+ 1,
151
+ [() => ItemId, 0],
152
+ [() => SynthesizedJsonEventPropertiesJSON, 0],
153
+ 4,
154
+ 0,
155
+ [() => Impression, 0],
156
+ () => MetricAttribution,
157
+ ],
158
+ ];
159
+ export var InvalidInputException = [
160
+ -3,
161
+ n0,
162
+ _IIE,
163
+ {
164
+ [_e]: _c,
165
+ [_hE]: 400,
166
+ },
167
+ [_m],
168
+ [0],
169
+ ];
170
+ TypeRegistry.for(n0).registerError(InvalidInputException, __InvalidInputException);
171
+ export var Item = [3, n0, _I, 0, [_iI, _p], [0, [() => SynthesizedJsonItemProperties, 0]]];
172
+ export var MetricAttribution = [3, n0, _MA, 0, [_eAS], [0]];
173
+ export var PutActionInteractionsRequest = [
174
+ 3,
175
+ n0,
176
+ _PAIR,
177
+ 0,
178
+ [_tI, _aIc],
179
+ [0, [() => ActionInteractionsList, 0]],
180
+ ];
181
+ export var PutActionsRequest = [3, n0, _PAR, 0, [_dA, _ac], [0, [() => ActionList, 0]]];
182
+ export var PutEventsRequest = [
183
+ 3,
184
+ n0,
185
+ _PER,
186
+ 0,
187
+ [_tI, _uI, _sI, _eL],
188
+ [0, [() => UserId, 0], 0, [() => EventList, 0]],
189
+ ];
190
+ export var PutItemsRequest = [3, n0, _PIR, 0, [_dA, _it], [0, [() => ItemList, 0]]];
191
+ export var PutUsersRequest = [3, n0, _PUR, 0, [_dA, _u], [0, [() => UserList, 0]]];
192
+ export var ResourceInUseException = [
193
+ -3,
194
+ n0,
195
+ _RIUE,
196
+ {
197
+ [_e]: _c,
198
+ [_hE]: 409,
199
+ },
200
+ [_m],
201
+ [0],
202
+ ];
203
+ TypeRegistry.for(n0).registerError(ResourceInUseException, __ResourceInUseException);
204
+ export var ResourceNotFoundException = [
205
+ -3,
206
+ n0,
207
+ _RNFE,
208
+ {
209
+ [_e]: _c,
210
+ [_hE]: 404,
211
+ },
212
+ [_m],
213
+ [0],
214
+ ];
215
+ TypeRegistry.for(n0).registerError(ResourceNotFoundException, __ResourceNotFoundException);
216
+ export var User = [3, n0, _U, 0, [_uI, _p], [0, [() => SynthesizedJsonUserProperties, 0]]];
217
+ export var __Unit = "unit";
218
+ export var PersonalizeEventsServiceException = [
219
+ -3,
220
+ _sm,
221
+ "PersonalizeEventsServiceException",
222
+ 0,
223
+ [],
224
+ [],
225
+ ];
226
+ TypeRegistry.for(_sm).registerError(PersonalizeEventsServiceException, __PersonalizeEventsServiceException);
227
+ export var ActionImpression = [1, n0, _AIct, 0, [() => ActionId, 0]];
228
+ export var ActionInteractionsList = [1, n0, _AIL, 0, [() => ActionInteraction, 0]];
229
+ export var ActionList = [1, n0, _AL, 0, [() => Action, 0]];
230
+ export var EventList = [1, n0, _EL, 0, [() => Event, 0]];
231
+ export var Impression = [1, n0, _Im, 0, [() => ItemId, 0]];
232
+ export var ItemList = [1, n0, _IL, 0, [() => Item, 0]];
233
+ export var UserList = [1, n0, _UL, 0, [() => User, 0]];
234
+ export var PutActionInteractions = [
235
+ 9,
236
+ n0,
237
+ _PAI,
238
+ {
239
+ [_h]: ["POST", "/action-interactions", 200],
240
+ },
241
+ () => PutActionInteractionsRequest,
242
+ () => __Unit,
243
+ ];
244
+ export var PutActions = [
245
+ 9,
246
+ n0,
247
+ _PA,
248
+ {
249
+ [_h]: ["POST", "/actions", 200],
250
+ },
251
+ () => PutActionsRequest,
252
+ () => __Unit,
253
+ ];
254
+ export var PutEvents = [
255
+ 9,
256
+ n0,
257
+ _PE,
258
+ {
259
+ [_h]: ["POST", "/events", 200],
260
+ },
261
+ () => PutEventsRequest,
262
+ () => __Unit,
263
+ ];
264
+ export var PutItems = [
265
+ 9,
266
+ n0,
267
+ _PI,
268
+ {
269
+ [_h]: ["POST", "/items", 200],
270
+ },
271
+ () => PutItemsRequest,
272
+ () => __Unit,
273
+ ];
274
+ export var PutUsers = [
275
+ 9,
276
+ n0,
277
+ _PU,
278
+ {
279
+ [_h]: ["POST", "/users", 200],
280
+ },
281
+ () => PutUsersRequest,
282
+ () => __Unit,
283
+ ];
@@ -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 { PutActionInteractionsCommandInput, PutActionInteractionsCommandOutput } from "./commands/PutActionInteractionsCommand";
11
11
  import { PutActionsCommandInput, PutActionsCommandOutput } from "./commands/PutActionsCommand";
@@ -146,6 +146,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
146
146
  * Optional extensions
147
147
  */
148
148
  extensions?: RuntimeExtension[];
149
+ /**
150
+ * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
151
+ * may be overridden. A default will always be set by the client.
152
+ * Available options depend on the service's supported protocols and will not be validated by
153
+ * the client.
154
+ * @alpha
155
+ *
156
+ */
157
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
149
158
  /**
150
159
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
151
160
  */
@@ -406,43 +406,3 @@ export interface PutUsersRequest {
406
406
  */
407
407
  users: User[] | undefined;
408
408
  }
409
- /**
410
- * @internal
411
- */
412
- export declare const ActionFilterSensitiveLog: (obj: Action) => any;
413
- /**
414
- * @internal
415
- */
416
- export declare const ActionInteractionFilterSensitiveLog: (obj: ActionInteraction) => any;
417
- /**
418
- * @internal
419
- */
420
- export declare const PutActionInteractionsRequestFilterSensitiveLog: (obj: PutActionInteractionsRequest) => any;
421
- /**
422
- * @internal
423
- */
424
- export declare const PutActionsRequestFilterSensitiveLog: (obj: PutActionsRequest) => any;
425
- /**
426
- * @internal
427
- */
428
- export declare const EventFilterSensitiveLog: (obj: Event) => any;
429
- /**
430
- * @internal
431
- */
432
- export declare const PutEventsRequestFilterSensitiveLog: (obj: PutEventsRequest) => any;
433
- /**
434
- * @internal
435
- */
436
- export declare const ItemFilterSensitiveLog: (obj: Item) => any;
437
- /**
438
- * @internal
439
- */
440
- export declare const PutItemsRequestFilterSensitiveLog: (obj: PutItemsRequest) => any;
441
- /**
442
- * @internal
443
- */
444
- export declare const UserFilterSensitiveLog: (obj: User) => any;
445
- /**
446
- * @internal
447
- */
448
- export declare const PutUsersRequestFilterSensitiveLog: (obj: PutUsersRequest) => any;
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: PersonalizeEventsClientConfig) =
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: PersonalizeEventsClientConfig) =
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: PersonalizeEventsClientConfig) =
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: PersonalizeEventsClientConfig) =
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PersonalizeEventsHttpAuthSchemeProvider;
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,37 @@
1
+ import { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var ActionId: StaticSimpleSchema;
3
+ export declare var ItemId: StaticSimpleSchema;
4
+ export declare var SynthesizedJsonActionInteractionProperties: StaticSimpleSchema;
5
+ export declare var SynthesizedJsonActionProperties: StaticSimpleSchema;
6
+ export declare var SynthesizedJsonEventPropertiesJSON: StaticSimpleSchema;
7
+ export declare var SynthesizedJsonItemProperties: StaticSimpleSchema;
8
+ export declare var SynthesizedJsonUserProperties: StaticSimpleSchema;
9
+ export declare var UserId: StaticSimpleSchema;
10
+ export declare var Action: StaticStructureSchema;
11
+ export declare var ActionInteraction: StaticStructureSchema;
12
+ export declare var Event: StaticStructureSchema;
13
+ export declare var InvalidInputException: StaticErrorSchema;
14
+ export declare var Item: StaticStructureSchema;
15
+ export declare var MetricAttribution: StaticStructureSchema;
16
+ export declare var PutActionInteractionsRequest: StaticStructureSchema;
17
+ export declare var PutActionsRequest: StaticStructureSchema;
18
+ export declare var PutEventsRequest: StaticStructureSchema;
19
+ export declare var PutItemsRequest: StaticStructureSchema;
20
+ export declare var PutUsersRequest: StaticStructureSchema;
21
+ export declare var ResourceInUseException: StaticErrorSchema;
22
+ export declare var ResourceNotFoundException: StaticErrorSchema;
23
+ export declare var User: StaticStructureSchema;
24
+ export declare var __Unit: "unit";
25
+ export declare var PersonalizeEventsServiceException: StaticErrorSchema;
26
+ export declare var ActionImpression: StaticListSchema;
27
+ export declare var ActionInteractionsList: StaticListSchema;
28
+ export declare var ActionList: StaticListSchema;
29
+ export declare var EventList: StaticListSchema;
30
+ export declare var Impression: StaticListSchema;
31
+ export declare var ItemList: StaticListSchema;
32
+ export declare var UserList: StaticListSchema;
33
+ export declare var PutActionInteractions: StaticOperationSchema;
34
+ export declare var PutActions: StaticOperationSchema;
35
+ export declare var PutEvents: StaticOperationSchema;
36
+ export declare var PutItems: StaticOperationSchema;
37
+ export declare var PutUsers: StaticOperationSchema;