@aws-sdk/client-personalize-events 3.33.0 → 3.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/PersonalizeEvents.js +1 -7
- package/{dist/cjs → dist-cjs}/PersonalizeEventsClient.js +8 -19
- package/{dist/cjs → dist-cjs}/commands/PutEventsCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/PutItemsCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/PutUsersCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -28
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +3 -9
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/PersonalizeEvents.js +2 -8
- package/{dist/es → dist-es}/PersonalizeEventsClient.js +2 -13
- package/{dist/es → dist-es}/commands/PutEventsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/PutItemsCommand.js +4 -32
- package/{dist/es → dist-es}/commands/PutUsersCommand.js +4 -31
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -28
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +56 -62
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/PersonalizeEvents.d.ts +2 -2
- package/{dist/types → dist-types}/PersonalizeEventsClient.d.ts +4 -4
- package/{dist/types → dist-types}/commands/PutEventsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PutItemsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PutUsersCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/PersonalizeEvents.d.ts +6 -20
- package/dist-types/ts3.4/PersonalizeEventsClient.d.ts +70 -0
- package/dist-types/ts3.4/commands/PutEventsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutItemsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutUsersCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +111 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +52 -49
- package/PersonalizeEvents.ts +0 -94
- package/PersonalizeEventsClient.ts +0 -240
- package/commands/PutEventsCommand.ts +0 -99
- package/commands/PutItemsCommand.ts +0 -100
- package/commands/PutUsersCommand.ts +0 -99
- package/dist/cjs/PersonalizeEvents.js.map +0 -1
- package/dist/cjs/PersonalizeEventsClient.js.map +0 -1
- package/dist/cjs/commands/PutEventsCommand.js.map +0 -1
- package/dist/cjs/commands/PutItemsCommand.js.map +0 -1
- package/dist/cjs/commands/PutUsersCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/PersonalizeEvents.js.map +0 -1
- package/dist/es/PersonalizeEventsClient.js.map +0 -1
- package/dist/es/commands/PutEventsCommand.js.map +0 -1
- package/dist/es/commands/PutItemsCommand.js.map +0 -1
- package/dist/es/commands/PutUsersCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -7
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/PersonalizeEventsClient.d.ts +0 -137
- package/dist/types/ts3.4/commands/PutEventsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/PutItemsCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/PutUsersCommand.d.ts +0 -36
- package/dist/types/ts3.4/models/models_0.d.ts +0 -216
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -266
- package/protocols/Aws_restJson1.ts +0 -484
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
|
|
2
|
-
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
3
|
-
/**
|
|
4
|
-
* <p>Provide a valid value for the field or parameter.</p>
|
|
5
|
-
*/
|
|
6
|
-
export interface InvalidInputException extends __SmithyException, $MetadataBearer {
|
|
7
|
-
name: "InvalidInputException";
|
|
8
|
-
$fault: "client";
|
|
9
|
-
message?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare namespace InvalidInputException {
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
const filterSensitiveLog: (obj: InvalidInputException) => any;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* <p>Represents user interaction event information sent using the
|
|
19
|
-
* <code>PutEvents</code> API.</p>
|
|
20
|
-
*/
|
|
21
|
-
export interface Event {
|
|
22
|
-
/**
|
|
23
|
-
* <p>An ID associated with the event. If an event ID is not provided, Amazon Personalize generates
|
|
24
|
-
* a unique ID for the event. An event ID is not used as an input to the model. Amazon Personalize uses
|
|
25
|
-
* the event ID to distinquish unique events. Any subsequent events after the first with the
|
|
26
|
-
* same event ID are not used in model training.</p>
|
|
27
|
-
*/
|
|
28
|
-
eventId?: string;
|
|
29
|
-
/**
|
|
30
|
-
* <p>The type of event, such as click or download. This property corresponds to the <code>EVENT_TYPE</code>
|
|
31
|
-
* field of your Interactions schema and depends on the types of events you are tracking.</p>
|
|
32
|
-
*/
|
|
33
|
-
eventType: string | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* <p>The event value that corresponds to the <code>EVENT_VALUE</code> field of the Interactions schema.</p>
|
|
36
|
-
*/
|
|
37
|
-
eventValue?: number;
|
|
38
|
-
/**
|
|
39
|
-
* <p>The item ID key that corresponds to the <code>ITEM_ID</code> field of the Interactions schema.</p>
|
|
40
|
-
*/
|
|
41
|
-
itemId?: string;
|
|
42
|
-
/**
|
|
43
|
-
* <p>A string map of event-specific data that you might choose to record. For example, if a
|
|
44
|
-
* user rates a movie on your site, other than movie ID (<code>itemId</code>) and rating (<code>eventValue</code>)
|
|
45
|
-
* , you might also send the number of movie ratings made by the user.</p>
|
|
46
|
-
* <p>Each item in the map consists of a key-value pair. For example,</p>
|
|
47
|
-
*
|
|
48
|
-
* <p>
|
|
49
|
-
* <code>{"numberOfRatings": "12"}</code>
|
|
50
|
-
* </p>
|
|
51
|
-
* <p>The keys use camel case names that match the fields in the Interactions
|
|
52
|
-
* schema. In the above example, the <code>numberOfRatings</code> would match the
|
|
53
|
-
* 'NUMBER_OF_RATINGS' field defined in the Interactions schema.</p>
|
|
54
|
-
*/
|
|
55
|
-
properties?: __LazyJsonString | string;
|
|
56
|
-
/**
|
|
57
|
-
* <p>The timestamp (in Unix time) on the client side when the event occurred.</p>
|
|
58
|
-
*/
|
|
59
|
-
sentAt: Date | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* <p>The ID of the recommendation.</p>
|
|
62
|
-
*/
|
|
63
|
-
recommendationId?: string;
|
|
64
|
-
/**
|
|
65
|
-
* <p>A list of item IDs that represents the sequence of items you have shown the user. For example, <code>["itemId1", "itemId2", "itemId3"]</code>.</p>
|
|
66
|
-
*/
|
|
67
|
-
impression?: string[];
|
|
68
|
-
}
|
|
69
|
-
export declare namespace Event {
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
*/
|
|
73
|
-
const filterSensitiveLog: (obj: Event) => any;
|
|
74
|
-
}
|
|
75
|
-
export interface PutEventsRequest {
|
|
76
|
-
/**
|
|
77
|
-
* <p>The tracking ID for the event.
|
|
78
|
-
* The ID is generated by a call to the
|
|
79
|
-
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_CreateEventTracker.html">CreateEventTracker</a> API.</p>
|
|
80
|
-
*/
|
|
81
|
-
trackingId: string | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* <p>The user associated with the event.</p>
|
|
84
|
-
*/
|
|
85
|
-
userId?: string;
|
|
86
|
-
/**
|
|
87
|
-
* <p>The session ID associated with the user's visit. Your application generates the sessionId when a user first visits your website or uses your application.
|
|
88
|
-
* Amazon Personalize uses the sessionId to associate events with the user before they log in. For more information, see
|
|
89
|
-
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html">Recording Events</a>.</p>
|
|
90
|
-
*/
|
|
91
|
-
sessionId: string | undefined;
|
|
92
|
-
/**
|
|
93
|
-
* <p>A list of event data from the session.</p>
|
|
94
|
-
*/
|
|
95
|
-
eventList: Event[] | undefined;
|
|
96
|
-
}
|
|
97
|
-
export declare namespace PutEventsRequest {
|
|
98
|
-
/**
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
101
|
-
const filterSensitiveLog: (obj: PutEventsRequest) => any;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* <p>Represents item metadata added to an Items dataset using the
|
|
105
|
-
* <code>PutItems</code> API. For more information see
|
|
106
|
-
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/importing-items.html">Importing Items Incrementally</a>.
|
|
107
|
-
* </p>
|
|
108
|
-
*/
|
|
109
|
-
export interface Item {
|
|
110
|
-
/**
|
|
111
|
-
* <p>The ID associated with the item.</p>
|
|
112
|
-
*/
|
|
113
|
-
itemId: string | undefined;
|
|
114
|
-
/**
|
|
115
|
-
* <p>A string map of item-specific metadata. Each element in the map consists of a key-value pair.
|
|
116
|
-
* For example, <code>{"numberOfRatings": "12"}</code>.</p>
|
|
117
|
-
* <p>The keys use camel case names that match the fields in the schema for the Items
|
|
118
|
-
* dataset. In the previous example, the <code>numberOfRatings</code> matches the
|
|
119
|
-
* 'NUMBER_OF_RATINGS' field defined in the Items schema. For categorical string data, to include multiple categories for a single item,
|
|
120
|
-
* separate each category with a pipe separator (<code>|</code>). For example, <code>\"Horror|Action\"</code>.</p>
|
|
121
|
-
*/
|
|
122
|
-
properties?: __LazyJsonString | string;
|
|
123
|
-
}
|
|
124
|
-
export declare namespace Item {
|
|
125
|
-
/**
|
|
126
|
-
* @internal
|
|
127
|
-
*/
|
|
128
|
-
const filterSensitiveLog: (obj: Item) => any;
|
|
129
|
-
}
|
|
130
|
-
export interface PutItemsRequest {
|
|
131
|
-
/**
|
|
132
|
-
* <p>The Amazon Resource Name (ARN) of the Items dataset you are adding the item or items to.</p>
|
|
133
|
-
*/
|
|
134
|
-
datasetArn: string | undefined;
|
|
135
|
-
/**
|
|
136
|
-
* <p>A list of item data.</p>
|
|
137
|
-
*/
|
|
138
|
-
items: Item[] | undefined;
|
|
139
|
-
}
|
|
140
|
-
export declare namespace PutItemsRequest {
|
|
141
|
-
/**
|
|
142
|
-
* @internal
|
|
143
|
-
*/
|
|
144
|
-
const filterSensitiveLog: (obj: PutItemsRequest) => any;
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* <p>The specified resource is in use.</p>
|
|
148
|
-
*/
|
|
149
|
-
export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
|
|
150
|
-
name: "ResourceInUseException";
|
|
151
|
-
$fault: "client";
|
|
152
|
-
message?: string;
|
|
153
|
-
}
|
|
154
|
-
export declare namespace ResourceInUseException {
|
|
155
|
-
/**
|
|
156
|
-
* @internal
|
|
157
|
-
*/
|
|
158
|
-
const filterSensitiveLog: (obj: ResourceInUseException) => any;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* <p>Could not find the specified resource.</p>
|
|
162
|
-
*/
|
|
163
|
-
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
|
|
164
|
-
name: "ResourceNotFoundException";
|
|
165
|
-
$fault: "client";
|
|
166
|
-
message?: string;
|
|
167
|
-
}
|
|
168
|
-
export declare namespace ResourceNotFoundException {
|
|
169
|
-
/**
|
|
170
|
-
* @internal
|
|
171
|
-
*/
|
|
172
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* <p>Represents user metadata added to a Users dataset using the
|
|
176
|
-
* <code>PutUsers</code> API. For more information see
|
|
177
|
-
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/importing-users.html">Importing Users Incrementally</a>.</p>
|
|
178
|
-
*/
|
|
179
|
-
export interface User {
|
|
180
|
-
/**
|
|
181
|
-
* <p>The ID associated with the user.</p>
|
|
182
|
-
*/
|
|
183
|
-
userId: string | undefined;
|
|
184
|
-
/**
|
|
185
|
-
* <p>A string map of user-specific metadata. Each element in the map consists of a key-value pair.
|
|
186
|
-
* For example, <code>{"numberOfVideosWatched": "45"}</code>.</p>
|
|
187
|
-
* <p>The keys use camel case names that match the fields in the schema for the Users
|
|
188
|
-
* dataset. In the previous example, the <code>numberOfVideosWatched</code> matches the
|
|
189
|
-
* 'NUMBER_OF_VIDEOS_WATCHED' field defined in the Users schema. For categorical string data,
|
|
190
|
-
* to include multiple categories for a single user, separate each category with a pipe separator (<code>|</code>).
|
|
191
|
-
* For example, <code>\"Member|Frequent shopper\"</code>.</p>
|
|
192
|
-
*/
|
|
193
|
-
properties?: __LazyJsonString | string;
|
|
194
|
-
}
|
|
195
|
-
export declare namespace User {
|
|
196
|
-
/**
|
|
197
|
-
* @internal
|
|
198
|
-
*/
|
|
199
|
-
const filterSensitiveLog: (obj: User) => any;
|
|
200
|
-
}
|
|
201
|
-
export interface PutUsersRequest {
|
|
202
|
-
/**
|
|
203
|
-
* <p>The Amazon Resource Name (ARN) of the Users dataset you are adding the user or users to.</p>
|
|
204
|
-
*/
|
|
205
|
-
datasetArn: string | undefined;
|
|
206
|
-
/**
|
|
207
|
-
* <p>A list of user data.</p>
|
|
208
|
-
*/
|
|
209
|
-
users: User[] | undefined;
|
|
210
|
-
}
|
|
211
|
-
export declare namespace PutUsersRequest {
|
|
212
|
-
/**
|
|
213
|
-
* @internal
|
|
214
|
-
*/
|
|
215
|
-
const filterSensitiveLog: (obj: PutUsersRequest) => any;
|
|
216
|
-
}
|
package/endpoints.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
|
-
import { RegionInfoProvider } from "@aws-sdk/types";
|
|
3
|
-
|
|
4
|
-
const regionHash: RegionHash = {};
|
|
5
|
-
|
|
6
|
-
const partitionHash: PartitionHash = {
|
|
7
|
-
aws: {
|
|
8
|
-
regions: [
|
|
9
|
-
"af-south-1",
|
|
10
|
-
"ap-east-1",
|
|
11
|
-
"ap-northeast-1",
|
|
12
|
-
"ap-northeast-2",
|
|
13
|
-
"ap-northeast-3",
|
|
14
|
-
"ap-south-1",
|
|
15
|
-
"ap-southeast-1",
|
|
16
|
-
"ap-southeast-2",
|
|
17
|
-
"ca-central-1",
|
|
18
|
-
"eu-central-1",
|
|
19
|
-
"eu-north-1",
|
|
20
|
-
"eu-south-1",
|
|
21
|
-
"eu-west-1",
|
|
22
|
-
"eu-west-2",
|
|
23
|
-
"eu-west-3",
|
|
24
|
-
"me-south-1",
|
|
25
|
-
"sa-east-1",
|
|
26
|
-
"us-east-1",
|
|
27
|
-
"us-east-2",
|
|
28
|
-
"us-west-1",
|
|
29
|
-
"us-west-2",
|
|
30
|
-
],
|
|
31
|
-
hostname: "personalize-events.{region}.amazonaws.com",
|
|
32
|
-
},
|
|
33
|
-
"aws-cn": {
|
|
34
|
-
regions: ["cn-north-1", "cn-northwest-1"],
|
|
35
|
-
hostname: "personalize-events.{region}.amazonaws.com.cn",
|
|
36
|
-
},
|
|
37
|
-
"aws-iso": {
|
|
38
|
-
regions: ["us-iso-east-1"],
|
|
39
|
-
hostname: "personalize-events.{region}.c2s.ic.gov",
|
|
40
|
-
},
|
|
41
|
-
"aws-iso-b": {
|
|
42
|
-
regions: ["us-isob-east-1"],
|
|
43
|
-
hostname: "personalize-events.{region}.sc2s.sgov.gov",
|
|
44
|
-
},
|
|
45
|
-
"aws-us-gov": {
|
|
46
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
47
|
-
hostname: "personalize-events.{region}.amazonaws.com",
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
|
|
52
|
-
getRegionInfo(region, {
|
|
53
|
-
...options,
|
|
54
|
-
signingService: "personalize",
|
|
55
|
-
regionHash,
|
|
56
|
-
partitionHash,
|
|
57
|
-
});
|
package/jest.config.js
DELETED
package/models/models_0.ts
DELETED
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
import { LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
|
|
2
|
-
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* <p>Provide a valid value for the field or parameter.</p>
|
|
6
|
-
*/
|
|
7
|
-
export interface InvalidInputException extends __SmithyException, $MetadataBearer {
|
|
8
|
-
name: "InvalidInputException";
|
|
9
|
-
$fault: "client";
|
|
10
|
-
message?: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export namespace InvalidInputException {
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
export const filterSensitiveLog = (obj: InvalidInputException): any => ({
|
|
18
|
-
...obj,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* <p>Represents user interaction event information sent using the
|
|
24
|
-
* <code>PutEvents</code> API.</p>
|
|
25
|
-
*/
|
|
26
|
-
export interface Event {
|
|
27
|
-
/**
|
|
28
|
-
* <p>An ID associated with the event. If an event ID is not provided, Amazon Personalize generates
|
|
29
|
-
* a unique ID for the event. An event ID is not used as an input to the model. Amazon Personalize uses
|
|
30
|
-
* the event ID to distinquish unique events. Any subsequent events after the first with the
|
|
31
|
-
* same event ID are not used in model training.</p>
|
|
32
|
-
*/
|
|
33
|
-
eventId?: string;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* <p>The type of event, such as click or download. This property corresponds to the <code>EVENT_TYPE</code>
|
|
37
|
-
* field of your Interactions schema and depends on the types of events you are tracking.</p>
|
|
38
|
-
*/
|
|
39
|
-
eventType: string | undefined;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* <p>The event value that corresponds to the <code>EVENT_VALUE</code> field of the Interactions schema.</p>
|
|
43
|
-
*/
|
|
44
|
-
eventValue?: number;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* <p>The item ID key that corresponds to the <code>ITEM_ID</code> field of the Interactions schema.</p>
|
|
48
|
-
*/
|
|
49
|
-
itemId?: string;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* <p>A string map of event-specific data that you might choose to record. For example, if a
|
|
53
|
-
* user rates a movie on your site, other than movie ID (<code>itemId</code>) and rating (<code>eventValue</code>)
|
|
54
|
-
* , you might also send the number of movie ratings made by the user.</p>
|
|
55
|
-
* <p>Each item in the map consists of a key-value pair. For example,</p>
|
|
56
|
-
*
|
|
57
|
-
* <p>
|
|
58
|
-
* <code>{"numberOfRatings": "12"}</code>
|
|
59
|
-
* </p>
|
|
60
|
-
* <p>The keys use camel case names that match the fields in the Interactions
|
|
61
|
-
* schema. In the above example, the <code>numberOfRatings</code> would match the
|
|
62
|
-
* 'NUMBER_OF_RATINGS' field defined in the Interactions schema.</p>
|
|
63
|
-
*/
|
|
64
|
-
properties?: __LazyJsonString | string;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* <p>The timestamp (in Unix time) on the client side when the event occurred.</p>
|
|
68
|
-
*/
|
|
69
|
-
sentAt: Date | undefined;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* <p>The ID of the recommendation.</p>
|
|
73
|
-
*/
|
|
74
|
-
recommendationId?: string;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* <p>A list of item IDs that represents the sequence of items you have shown the user. For example, <code>["itemId1", "itemId2", "itemId3"]</code>.</p>
|
|
78
|
-
*/
|
|
79
|
-
impression?: string[];
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export namespace Event {
|
|
83
|
-
/**
|
|
84
|
-
* @internal
|
|
85
|
-
*/
|
|
86
|
-
export const filterSensitiveLog = (obj: Event): any => ({
|
|
87
|
-
...obj,
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface PutEventsRequest {
|
|
92
|
-
/**
|
|
93
|
-
* <p>The tracking ID for the event.
|
|
94
|
-
* The ID is generated by a call to the
|
|
95
|
-
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_CreateEventTracker.html">CreateEventTracker</a> API.</p>
|
|
96
|
-
*/
|
|
97
|
-
trackingId: string | undefined;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* <p>The user associated with the event.</p>
|
|
101
|
-
*/
|
|
102
|
-
userId?: string;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* <p>The session ID associated with the user's visit. Your application generates the sessionId when a user first visits your website or uses your application.
|
|
106
|
-
* Amazon Personalize uses the sessionId to associate events with the user before they log in. For more information, see
|
|
107
|
-
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html">Recording Events</a>.</p>
|
|
108
|
-
*/
|
|
109
|
-
sessionId: string | undefined;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* <p>A list of event data from the session.</p>
|
|
113
|
-
*/
|
|
114
|
-
eventList: Event[] | undefined;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export namespace PutEventsRequest {
|
|
118
|
-
/**
|
|
119
|
-
* @internal
|
|
120
|
-
*/
|
|
121
|
-
export const filterSensitiveLog = (obj: PutEventsRequest): any => ({
|
|
122
|
-
...obj,
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* <p>Represents item metadata added to an Items dataset using the
|
|
128
|
-
* <code>PutItems</code> API. For more information see
|
|
129
|
-
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/importing-items.html">Importing Items Incrementally</a>.
|
|
130
|
-
* </p>
|
|
131
|
-
*/
|
|
132
|
-
export interface Item {
|
|
133
|
-
/**
|
|
134
|
-
* <p>The ID associated with the item.</p>
|
|
135
|
-
*/
|
|
136
|
-
itemId: string | undefined;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* <p>A string map of item-specific metadata. Each element in the map consists of a key-value pair.
|
|
140
|
-
* For example, <code>{"numberOfRatings": "12"}</code>.</p>
|
|
141
|
-
* <p>The keys use camel case names that match the fields in the schema for the Items
|
|
142
|
-
* dataset. In the previous example, the <code>numberOfRatings</code> matches the
|
|
143
|
-
* 'NUMBER_OF_RATINGS' field defined in the Items schema. For categorical string data, to include multiple categories for a single item,
|
|
144
|
-
* separate each category with a pipe separator (<code>|</code>). For example, <code>\"Horror|Action\"</code>.</p>
|
|
145
|
-
*/
|
|
146
|
-
properties?: __LazyJsonString | string;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export namespace Item {
|
|
150
|
-
/**
|
|
151
|
-
* @internal
|
|
152
|
-
*/
|
|
153
|
-
export const filterSensitiveLog = (obj: Item): any => ({
|
|
154
|
-
...obj,
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export interface PutItemsRequest {
|
|
159
|
-
/**
|
|
160
|
-
* <p>The Amazon Resource Name (ARN) of the Items dataset you are adding the item or items to.</p>
|
|
161
|
-
*/
|
|
162
|
-
datasetArn: string | undefined;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* <p>A list of item data.</p>
|
|
166
|
-
*/
|
|
167
|
-
items: Item[] | undefined;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export namespace PutItemsRequest {
|
|
171
|
-
/**
|
|
172
|
-
* @internal
|
|
173
|
-
*/
|
|
174
|
-
export const filterSensitiveLog = (obj: PutItemsRequest): any => ({
|
|
175
|
-
...obj,
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* <p>The specified resource is in use.</p>
|
|
181
|
-
*/
|
|
182
|
-
export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
|
|
183
|
-
name: "ResourceInUseException";
|
|
184
|
-
$fault: "client";
|
|
185
|
-
message?: string;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export namespace ResourceInUseException {
|
|
189
|
-
/**
|
|
190
|
-
* @internal
|
|
191
|
-
*/
|
|
192
|
-
export const filterSensitiveLog = (obj: ResourceInUseException): any => ({
|
|
193
|
-
...obj,
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* <p>Could not find the specified resource.</p>
|
|
199
|
-
*/
|
|
200
|
-
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
|
|
201
|
-
name: "ResourceNotFoundException";
|
|
202
|
-
$fault: "client";
|
|
203
|
-
message?: string;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export namespace ResourceNotFoundException {
|
|
207
|
-
/**
|
|
208
|
-
* @internal
|
|
209
|
-
*/
|
|
210
|
-
export const filterSensitiveLog = (obj: ResourceNotFoundException): any => ({
|
|
211
|
-
...obj,
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* <p>Represents user metadata added to a Users dataset using the
|
|
217
|
-
* <code>PutUsers</code> API. For more information see
|
|
218
|
-
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/importing-users.html">Importing Users Incrementally</a>.</p>
|
|
219
|
-
*/
|
|
220
|
-
export interface User {
|
|
221
|
-
/**
|
|
222
|
-
* <p>The ID associated with the user.</p>
|
|
223
|
-
*/
|
|
224
|
-
userId: string | undefined;
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* <p>A string map of user-specific metadata. Each element in the map consists of a key-value pair.
|
|
228
|
-
* For example, <code>{"numberOfVideosWatched": "45"}</code>.</p>
|
|
229
|
-
* <p>The keys use camel case names that match the fields in the schema for the Users
|
|
230
|
-
* dataset. In the previous example, the <code>numberOfVideosWatched</code> matches the
|
|
231
|
-
* 'NUMBER_OF_VIDEOS_WATCHED' field defined in the Users schema. For categorical string data,
|
|
232
|
-
* to include multiple categories for a single user, separate each category with a pipe separator (<code>|</code>).
|
|
233
|
-
* For example, <code>\"Member|Frequent shopper\"</code>.</p>
|
|
234
|
-
*/
|
|
235
|
-
properties?: __LazyJsonString | string;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export namespace User {
|
|
239
|
-
/**
|
|
240
|
-
* @internal
|
|
241
|
-
*/
|
|
242
|
-
export const filterSensitiveLog = (obj: User): any => ({
|
|
243
|
-
...obj,
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export interface PutUsersRequest {
|
|
248
|
-
/**
|
|
249
|
-
* <p>The Amazon Resource Name (ARN) of the Users dataset you are adding the user or users to.</p>
|
|
250
|
-
*/
|
|
251
|
-
datasetArn: string | undefined;
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* <p>A list of user data.</p>
|
|
255
|
-
*/
|
|
256
|
-
users: User[] | undefined;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
export namespace PutUsersRequest {
|
|
260
|
-
/**
|
|
261
|
-
* @internal
|
|
262
|
-
*/
|
|
263
|
-
export const filterSensitiveLog = (obj: PutUsersRequest): any => ({
|
|
264
|
-
...obj,
|
|
265
|
-
});
|
|
266
|
-
}
|