@aws-sdk/client-personalize-events 3.130.0 → 3.141.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/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update client endpoints as of 2022-08-01 ([aaf49f2](https://github.com/aws/aws-sdk-js-v3/commit/aaf49f21b371412e6ea7e00890b71a7b31991b66))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.137.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.136.1...v3.137.0) (2022-07-26)
18
+
19
+
20
+ ### Features
21
+
22
+ * **namespaces:** remove namespaces with only a log filter ([#3823](https://github.com/aws/aws-sdk-js-v3/issues/3823)) ([33e6822](https://github.com/aws/aws-sdk-js-v3/commit/33e68228fb64c53dd8f89e6be76dd5f46edc3cfd))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.131.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.130.0...v3.131.0) (2022-07-15)
29
+
30
+ **Note:** Version bump only for package @aws-sdk/client-personalize-events
31
+
32
+
33
+
34
+
35
+
6
36
  # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
37
 
8
38
 
package/README.md CHANGED
@@ -167,7 +167,7 @@ try {
167
167
  const data = await client.send(command);
168
168
  // process data.
169
169
  } catch (error) {
170
- const { requestId, cfId, extendedRequestId } = error.$metadata;
170
+ const { requestId, cfId, extendedRequestId } = error.$$metadata;
171
171
  console.log({ requestId, cfId, extendedRequestId });
172
172
  /**
173
173
  * The keys within exceptions are also parsed.
@@ -20,7 +20,7 @@ class PutEventsCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.PutEventsRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_0_1.PutEventsRequestFilterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -20,7 +20,7 @@ class PutItemsCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.PutItemsRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_0_1.PutItemsRequestFilterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -20,7 +20,7 @@ class PutUsersCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.PutUsersRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_0_1.PutUsersRequestFilterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PutUsersRequest = exports.User = exports.ResourceNotFoundException = exports.ResourceInUseException = exports.PutItemsRequest = exports.Item = exports.PutEventsRequest = exports.Event = exports.InvalidInputException = void 0;
3
+ exports.PutUsersRequestFilterSensitiveLog = exports.UserFilterSensitiveLog = exports.PutItemsRequestFilterSensitiveLog = exports.ItemFilterSensitiveLog = exports.PutEventsRequestFilterSensitiveLog = exports.EventFilterSensitiveLog = exports.ResourceNotFoundException = exports.ResourceInUseException = exports.InvalidInputException = void 0;
4
4
  const PersonalizeEventsServiceException_1 = require("./PersonalizeEventsServiceException");
5
5
  class InvalidInputException extends PersonalizeEventsServiceException_1.PersonalizeEventsServiceException {
6
6
  constructor(opts) {
@@ -15,30 +15,6 @@ class InvalidInputException extends PersonalizeEventsServiceException_1.Personal
15
15
  }
16
16
  }
17
17
  exports.InvalidInputException = InvalidInputException;
18
- var Event;
19
- (function (Event) {
20
- Event.filterSensitiveLog = (obj) => ({
21
- ...obj,
22
- });
23
- })(Event = exports.Event || (exports.Event = {}));
24
- var PutEventsRequest;
25
- (function (PutEventsRequest) {
26
- PutEventsRequest.filterSensitiveLog = (obj) => ({
27
- ...obj,
28
- });
29
- })(PutEventsRequest = exports.PutEventsRequest || (exports.PutEventsRequest = {}));
30
- var Item;
31
- (function (Item) {
32
- Item.filterSensitiveLog = (obj) => ({
33
- ...obj,
34
- });
35
- })(Item = exports.Item || (exports.Item = {}));
36
- var PutItemsRequest;
37
- (function (PutItemsRequest) {
38
- PutItemsRequest.filterSensitiveLog = (obj) => ({
39
- ...obj,
40
- });
41
- })(PutItemsRequest = exports.PutItemsRequest || (exports.PutItemsRequest = {}));
42
18
  class ResourceInUseException extends PersonalizeEventsServiceException_1.PersonalizeEventsServiceException {
43
19
  constructor(opts) {
44
20
  super({
@@ -65,15 +41,27 @@ class ResourceNotFoundException extends PersonalizeEventsServiceException_1.Pers
65
41
  }
66
42
  }
67
43
  exports.ResourceNotFoundException = ResourceNotFoundException;
68
- var User;
69
- (function (User) {
70
- User.filterSensitiveLog = (obj) => ({
71
- ...obj,
72
- });
73
- })(User = exports.User || (exports.User = {}));
74
- var PutUsersRequest;
75
- (function (PutUsersRequest) {
76
- PutUsersRequest.filterSensitiveLog = (obj) => ({
77
- ...obj,
78
- });
79
- })(PutUsersRequest = exports.PutUsersRequest || (exports.PutUsersRequest = {}));
44
+ const EventFilterSensitiveLog = (obj) => ({
45
+ ...obj,
46
+ });
47
+ exports.EventFilterSensitiveLog = EventFilterSensitiveLog;
48
+ const PutEventsRequestFilterSensitiveLog = (obj) => ({
49
+ ...obj,
50
+ });
51
+ exports.PutEventsRequestFilterSensitiveLog = PutEventsRequestFilterSensitiveLog;
52
+ const ItemFilterSensitiveLog = (obj) => ({
53
+ ...obj,
54
+ });
55
+ exports.ItemFilterSensitiveLog = ItemFilterSensitiveLog;
56
+ const PutItemsRequestFilterSensitiveLog = (obj) => ({
57
+ ...obj,
58
+ });
59
+ exports.PutItemsRequestFilterSensitiveLog = PutItemsRequestFilterSensitiveLog;
60
+ const UserFilterSensitiveLog = (obj) => ({
61
+ ...obj,
62
+ });
63
+ exports.UserFilterSensitiveLog = UserFilterSensitiveLog;
64
+ const PutUsersRequestFilterSensitiveLog = (obj) => ({
65
+ ...obj,
66
+ });
67
+ exports.PutUsersRequestFilterSensitiveLog = PutUsersRequestFilterSensitiveLog;
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { PutEventsRequest } from "../models/models_0";
4
+ import { PutEventsRequestFilterSensitiveLog } from "../models/models_0";
5
5
  import { deserializeAws_restJson1PutEventsCommand, serializeAws_restJson1PutEventsCommand, } from "../protocols/Aws_restJson1";
6
6
  var PutEventsCommand = (function (_super) {
7
7
  __extends(PutEventsCommand, _super);
@@ -20,7 +20,7 @@ var PutEventsCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: PutEventsRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: PutEventsRequestFilterSensitiveLog,
24
24
  outputFilterSensitiveLog: function (output) { return output; },
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { PutItemsRequest } from "../models/models_0";
4
+ import { PutItemsRequestFilterSensitiveLog } from "../models/models_0";
5
5
  import { deserializeAws_restJson1PutItemsCommand, serializeAws_restJson1PutItemsCommand, } from "../protocols/Aws_restJson1";
6
6
  var PutItemsCommand = (function (_super) {
7
7
  __extends(PutItemsCommand, _super);
@@ -20,7 +20,7 @@ var PutItemsCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: PutItemsRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: PutItemsRequestFilterSensitiveLog,
24
24
  outputFilterSensitiveLog: function (output) { return output; },
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { PutUsersRequest } from "../models/models_0";
4
+ import { PutUsersRequestFilterSensitiveLog } from "../models/models_0";
5
5
  import { deserializeAws_restJson1PutUsersCommand, serializeAws_restJson1PutUsersCommand, } from "../protocols/Aws_restJson1";
6
6
  var PutUsersCommand = (function (_super) {
7
7
  __extends(PutUsersCommand, _super);
@@ -20,7 +20,7 @@ var PutUsersCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: PutUsersRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: PutUsersRequestFilterSensitiveLog,
24
24
  outputFilterSensitiveLog: function (output) { return output; },
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
@@ -12,22 +12,6 @@ var InvalidInputException = (function (_super) {
12
12
  return InvalidInputException;
13
13
  }(__BaseException));
14
14
  export { InvalidInputException };
15
- export var Event;
16
- (function (Event) {
17
- Event.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
18
- })(Event || (Event = {}));
19
- export var PutEventsRequest;
20
- (function (PutEventsRequest) {
21
- PutEventsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
22
- })(PutEventsRequest || (PutEventsRequest = {}));
23
- export var Item;
24
- (function (Item) {
25
- Item.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
26
- })(Item || (Item = {}));
27
- export var PutItemsRequest;
28
- (function (PutItemsRequest) {
29
- PutItemsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
30
- })(PutItemsRequest || (PutItemsRequest = {}));
31
15
  var ResourceInUseException = (function (_super) {
32
16
  __extends(ResourceInUseException, _super);
33
17
  function ResourceInUseException(opts) {
@@ -52,11 +36,9 @@ var ResourceNotFoundException = (function (_super) {
52
36
  return ResourceNotFoundException;
53
37
  }(__BaseException));
54
38
  export { ResourceNotFoundException };
55
- export var User;
56
- (function (User) {
57
- User.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
58
- })(User || (User = {}));
59
- export var PutUsersRequest;
60
- (function (PutUsersRequest) {
61
- PutUsersRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
62
- })(PutUsersRequest || (PutUsersRequest = {}));
39
+ export var EventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
40
+ export var PutEventsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
41
+ export var ItemFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
42
+ export var PutItemsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
43
+ export var UserFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
44
+ export var PutUsersRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -63,12 +63,6 @@ export interface Event {
63
63
  */
64
64
  impression?: string[];
65
65
  }
66
- export declare namespace Event {
67
- /**
68
- * @internal
69
- */
70
- const filterSensitiveLog: (obj: Event) => any;
71
- }
72
66
  export interface PutEventsRequest {
73
67
  /**
74
68
  * <p>The tracking ID for the event.
@@ -91,12 +85,6 @@ export interface PutEventsRequest {
91
85
  */
92
86
  eventList: Event[] | undefined;
93
87
  }
94
- export declare namespace PutEventsRequest {
95
- /**
96
- * @internal
97
- */
98
- const filterSensitiveLog: (obj: PutEventsRequest) => any;
99
- }
100
88
  /**
101
89
  * <p>Represents item metadata added to an Items dataset using the
102
90
  * <code>PutItems</code> API. For more information see
@@ -118,12 +106,6 @@ export interface Item {
118
106
  */
119
107
  properties?: __LazyJsonString | string;
120
108
  }
121
- export declare namespace Item {
122
- /**
123
- * @internal
124
- */
125
- const filterSensitiveLog: (obj: Item) => any;
126
- }
127
109
  export interface PutItemsRequest {
128
110
  /**
129
111
  * <p>The Amazon Resource Name (ARN) of the Items dataset you are adding the item or items to.</p>
@@ -134,12 +116,6 @@ export interface PutItemsRequest {
134
116
  */
135
117
  items: Item[] | undefined;
136
118
  }
137
- export declare namespace PutItemsRequest {
138
- /**
139
- * @internal
140
- */
141
- const filterSensitiveLog: (obj: PutItemsRequest) => any;
142
- }
143
119
  /**
144
120
  * <p>The specified resource is in use.</p>
145
121
  */
@@ -183,12 +159,6 @@ export interface User {
183
159
  */
184
160
  properties?: __LazyJsonString | string;
185
161
  }
186
- export declare namespace User {
187
- /**
188
- * @internal
189
- */
190
- const filterSensitiveLog: (obj: User) => any;
191
- }
192
162
  export interface PutUsersRequest {
193
163
  /**
194
164
  * <p>The Amazon Resource Name (ARN) of the Users dataset you are adding the user or users to.</p>
@@ -199,9 +169,27 @@ export interface PutUsersRequest {
199
169
  */
200
170
  users: User[] | undefined;
201
171
  }
202
- export declare namespace PutUsersRequest {
203
- /**
204
- * @internal
205
- */
206
- const filterSensitiveLog: (obj: PutUsersRequest) => any;
207
- }
172
+ /**
173
+ * @internal
174
+ */
175
+ export declare const EventFilterSensitiveLog: (obj: Event) => any;
176
+ /**
177
+ * @internal
178
+ */
179
+ export declare const PutEventsRequestFilterSensitiveLog: (obj: PutEventsRequest) => any;
180
+ /**
181
+ * @internal
182
+ */
183
+ export declare const ItemFilterSensitiveLog: (obj: Item) => any;
184
+ /**
185
+ * @internal
186
+ */
187
+ export declare const PutItemsRequestFilterSensitiveLog: (obj: PutItemsRequest) => any;
188
+ /**
189
+ * @internal
190
+ */
191
+ export declare const UserFilterSensitiveLog: (obj: User) => any;
192
+ /**
193
+ * @internal
194
+ */
195
+ export declare const PutUsersRequestFilterSensitiveLog: (obj: PutUsersRequest) => any;
@@ -26,10 +26,6 @@ export interface Event {
26
26
 
27
27
  impression?: string[];
28
28
  }
29
- export declare namespace Event {
30
-
31
- const filterSensitiveLog: (obj: Event) => any;
32
- }
33
29
  export interface PutEventsRequest {
34
30
 
35
31
  trackingId: string | undefined;
@@ -40,10 +36,6 @@ export interface PutEventsRequest {
40
36
 
41
37
  eventList: Event[] | undefined;
42
38
  }
43
- export declare namespace PutEventsRequest {
44
-
45
- const filterSensitiveLog: (obj: PutEventsRequest) => any;
46
- }
47
39
 
48
40
  export interface Item {
49
41
 
@@ -51,20 +43,12 @@ export interface Item {
51
43
 
52
44
  properties?: __LazyJsonString | string;
53
45
  }
54
- export declare namespace Item {
55
-
56
- const filterSensitiveLog: (obj: Item) => any;
57
- }
58
46
  export interface PutItemsRequest {
59
47
 
60
48
  datasetArn: string | undefined;
61
49
 
62
50
  items: Item[] | undefined;
63
51
  }
64
- export declare namespace PutItemsRequest {
65
-
66
- const filterSensitiveLog: (obj: PutItemsRequest) => any;
67
- }
68
52
 
69
53
  export declare class ResourceInUseException extends __BaseException {
70
54
  readonly name: "ResourceInUseException";
@@ -86,17 +70,21 @@ export interface User {
86
70
 
87
71
  properties?: __LazyJsonString | string;
88
72
  }
89
- export declare namespace User {
90
-
91
- const filterSensitiveLog: (obj: User) => any;
92
- }
93
73
  export interface PutUsersRequest {
94
74
 
95
75
  datasetArn: string | undefined;
96
76
 
97
77
  users: User[] | undefined;
98
78
  }
99
- export declare namespace PutUsersRequest {
100
-
101
- const filterSensitiveLog: (obj: PutUsersRequest) => any;
102
- }
79
+
80
+ export declare const EventFilterSensitiveLog: (obj: Event) => any;
81
+
82
+ export declare const PutEventsRequestFilterSensitiveLog: (obj: PutEventsRequest) => any;
83
+
84
+ export declare const ItemFilterSensitiveLog: (obj: Item) => any;
85
+
86
+ export declare const PutItemsRequestFilterSensitiveLog: (obj: PutItemsRequest) => any;
87
+
88
+ export declare const UserFilterSensitiveLog: (obj: User) => any;
89
+
90
+ export declare const PutUsersRequestFilterSensitiveLog: (obj: PutUsersRequest) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-personalize-events",
3
3
  "description": "AWS SDK for JavaScript Personalize Events Client for Node.js, Browser and React Native",
4
- "version": "3.130.0",
4
+ "version": "3.141.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,10 +18,10 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.130.0",
21
+ "@aws-sdk/client-sts": "3.141.0",
22
22
  "@aws-sdk/config-resolver": "3.130.0",
23
- "@aws-sdk/credential-provider-node": "3.130.0",
24
- "@aws-sdk/fetch-http-handler": "3.127.0",
23
+ "@aws-sdk/credential-provider-node": "3.141.0",
24
+ "@aws-sdk/fetch-http-handler": "3.131.0",
25
25
  "@aws-sdk/hash-node": "3.127.0",
26
26
  "@aws-sdk/invalid-dependency": "3.127.0",
27
27
  "@aws-sdk/middleware-content-length": "3.127.0",
@@ -36,15 +36,15 @@
36
36
  "@aws-sdk/node-config-provider": "3.127.0",
37
37
  "@aws-sdk/node-http-handler": "3.127.0",
38
38
  "@aws-sdk/protocol-http": "3.127.0",
39
- "@aws-sdk/smithy-client": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.137.0",
40
40
  "@aws-sdk/types": "3.127.0",
41
41
  "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.130.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.137.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.137.0",
48
48
  "@aws-sdk/util-user-agent-browser": "3.127.0",
49
49
  "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",