@aws-sdk/client-ivschat 3.78.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 +11 -0
- package/LICENSE +201 -0
- package/README.md +374 -0
- package/dist-cjs/Ivschat.js +187 -0
- package/dist-cjs/IvschatClient.js +35 -0
- package/dist-cjs/commands/CreateChatTokenCommand.js +36 -0
- package/dist-cjs/commands/CreateRoomCommand.js +36 -0
- package/dist-cjs/commands/DeleteMessageCommand.js +36 -0
- package/dist-cjs/commands/DeleteRoomCommand.js +36 -0
- package/dist-cjs/commands/DisconnectUserCommand.js +36 -0
- package/dist-cjs/commands/GetRoomCommand.js +36 -0
- package/dist-cjs/commands/ListRoomsCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/SendEventCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateRoomCommand.js +36 -0
- package/dist-cjs/commands/index.js +15 -0
- package/dist-cjs/endpoints.js +131 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/IvschatServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +297 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListRoomsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1253 -0
- package/dist-cjs/runtimeConfig.browser.js +45 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/Ivschat.js +190 -0
- package/dist-es/IvschatClient.js +37 -0
- package/dist-es/commands/CreateChatTokenCommand.js +39 -0
- package/dist-es/commands/CreateRoomCommand.js +39 -0
- package/dist-es/commands/DeleteMessageCommand.js +39 -0
- package/dist-es/commands/DeleteRoomCommand.js +39 -0
- package/dist-es/commands/DisconnectUserCommand.js +39 -0
- package/dist-es/commands/GetRoomCommand.js +39 -0
- package/dist-es/commands/ListRoomsCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/SendEventCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateRoomCommand.js +39 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/endpoints.js +127 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/IvschatServiceException.js +12 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +235 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListRoomsPaginator.js +75 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1519 -0
- package/dist-es/runtimeConfig.browser.js +26 -0
- package/dist-es/runtimeConfig.js +28 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/Ivschat.d.ts +278 -0
- package/dist-types/IvschatClient.d.ts +332 -0
- package/dist-types/commands/CreateChatTokenCommand.d.ts +39 -0
- package/dist-types/commands/CreateRoomCommand.d.ts +35 -0
- package/dist-types/commands/DeleteMessageCommand.d.ts +38 -0
- package/dist-types/commands/DeleteRoomCommand.d.ts +35 -0
- package/dist-types/commands/DisconnectUserCommand.d.ts +36 -0
- package/dist-types/commands/GetRoomCommand.d.ts +35 -0
- package/dist-types/commands/ListRoomsCommand.d.ts +36 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/SendEventCommand.d.ts +37 -0
- package/dist-types/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateRoomCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/IvschatServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +762 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListRoomsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +38 -0
- package/dist-types/runtimeConfig.browser.d.ts +40 -0
- package/dist-types/runtimeConfig.d.ts +40 -0
- package/dist-types/runtimeConfig.native.d.ts +39 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/Ivschat.d.ts +65 -0
- package/dist-types/ts3.4/IvschatClient.d.ts +85 -0
- package/dist-types/ts3.4/commands/CreateChatTokenCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateRoomCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteMessageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteRoomCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisconnectUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRoomCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRoomsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SendEventCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateRoomCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/IvschatServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +438 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListRoomsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +93 -0
|
@@ -0,0 +1,762 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { IvschatServiceException as __BaseException } from "./IvschatServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* <p/>
|
|
5
|
+
*/
|
|
6
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
7
|
+
readonly name: "AccessDeniedException";
|
|
8
|
+
readonly $fault: "client";
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
13
|
+
}
|
|
14
|
+
export declare enum ChatTokenCapability {
|
|
15
|
+
DELETE_MESSAGE = "DELETE_MESSAGE",
|
|
16
|
+
DISCONNECT_USER = "DISCONNECT_USER",
|
|
17
|
+
SEND_MESSAGE = "SEND_MESSAGE"
|
|
18
|
+
}
|
|
19
|
+
export interface CreateChatTokenRequest {
|
|
20
|
+
/**
|
|
21
|
+
* <p>Identifier of the room that the client is trying to access. Currently this must be an
|
|
22
|
+
* ARN. </p>
|
|
23
|
+
*/
|
|
24
|
+
roomIdentifier: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* <p>Application-provided ID that uniquely identifies the user associated with this token.
|
|
27
|
+
* This can be any UTF-8 encoded text.</p>
|
|
28
|
+
*/
|
|
29
|
+
userId: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* <p>Set of capabilities that the user is allowed to perform in the room. Default: None (the
|
|
32
|
+
* capability to view messages is implicitly included in all requests).</p>
|
|
33
|
+
*/
|
|
34
|
+
capabilities?: (ChatTokenCapability | string)[];
|
|
35
|
+
/**
|
|
36
|
+
* <p>Session duration (in minutes), after which the session expires. Default: 60 (1
|
|
37
|
+
* hour).</p>
|
|
38
|
+
*/
|
|
39
|
+
sessionDurationInMinutes?: number;
|
|
40
|
+
/**
|
|
41
|
+
* <p>Application-provided attributes to encode into the token and attach to a chat session.
|
|
42
|
+
* Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1
|
|
43
|
+
* KB total.</p>
|
|
44
|
+
*/
|
|
45
|
+
attributes?: {
|
|
46
|
+
[key: string]: string;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export declare namespace CreateChatTokenRequest {
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
const filterSensitiveLog: (obj: CreateChatTokenRequest) => any;
|
|
54
|
+
}
|
|
55
|
+
export interface CreateChatTokenResponse {
|
|
56
|
+
/**
|
|
57
|
+
* <p>The issued client token, encrypted.</p>
|
|
58
|
+
*/
|
|
59
|
+
token?: string;
|
|
60
|
+
/**
|
|
61
|
+
* <p>Time after which the token is no longer valid and cannot be used to connect to a room.
|
|
62
|
+
* This is an ISO 8601 timestamp; <i>note that this is returned as a
|
|
63
|
+
* string</i>.</p>
|
|
64
|
+
*/
|
|
65
|
+
tokenExpirationTime?: Date;
|
|
66
|
+
/**
|
|
67
|
+
* <p>Time after which an end user's session is no longer valid. This is an ISO 8601
|
|
68
|
+
* timestamp; <i>note that this is returned as a string</i>.</p>
|
|
69
|
+
*/
|
|
70
|
+
sessionExpirationTime?: Date;
|
|
71
|
+
}
|
|
72
|
+
export declare namespace CreateChatTokenResponse {
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
const filterSensitiveLog: (obj: CreateChatTokenResponse) => any;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* <p/>
|
|
80
|
+
*/
|
|
81
|
+
export declare class PendingVerification extends __BaseException {
|
|
82
|
+
readonly name: "PendingVerification";
|
|
83
|
+
readonly $fault: "client";
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
constructor(opts: __ExceptionOptionType<PendingVerification, __BaseException>);
|
|
88
|
+
}
|
|
89
|
+
export declare enum ResourceType {
|
|
90
|
+
ROOM = "ROOM"
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* <p/>
|
|
94
|
+
*/
|
|
95
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
96
|
+
readonly name: "ResourceNotFoundException";
|
|
97
|
+
readonly $fault: "client";
|
|
98
|
+
/**
|
|
99
|
+
* <p/>
|
|
100
|
+
*/
|
|
101
|
+
resourceId: string | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* <p/>
|
|
104
|
+
*/
|
|
105
|
+
resourceType: ResourceType | string | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* <p>This object is used in the ValidationException error.</p>
|
|
113
|
+
*/
|
|
114
|
+
export interface ValidationExceptionField {
|
|
115
|
+
/**
|
|
116
|
+
* <p>Name of the field which failed validation.</p>
|
|
117
|
+
*/
|
|
118
|
+
name: string | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* <p>Explanation of the reason for the validation error.</p>
|
|
121
|
+
*/
|
|
122
|
+
message: string | undefined;
|
|
123
|
+
}
|
|
124
|
+
export declare namespace ValidationExceptionField {
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
128
|
+
const filterSensitiveLog: (obj: ValidationExceptionField) => any;
|
|
129
|
+
}
|
|
130
|
+
export declare enum ValidationExceptionReason {
|
|
131
|
+
FIELD_VALIDATION_FAILED = "FIELD_VALIDATION_FAILED",
|
|
132
|
+
OTHER = "OTHER",
|
|
133
|
+
UNKNOWN_OPERATION = "UNKNOWN_OPERATION"
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* <p/>
|
|
137
|
+
*/
|
|
138
|
+
export declare class ValidationException extends __BaseException {
|
|
139
|
+
readonly name: "ValidationException";
|
|
140
|
+
readonly $fault: "client";
|
|
141
|
+
/**
|
|
142
|
+
* <p/>
|
|
143
|
+
*/
|
|
144
|
+
reason: ValidationExceptionReason | string | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* <p/>
|
|
147
|
+
*/
|
|
148
|
+
fieldList?: ValidationExceptionField[];
|
|
149
|
+
/**
|
|
150
|
+
* @internal
|
|
151
|
+
*/
|
|
152
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* <p/>
|
|
156
|
+
*/
|
|
157
|
+
export declare class ConflictException extends __BaseException {
|
|
158
|
+
readonly name: "ConflictException";
|
|
159
|
+
readonly $fault: "client";
|
|
160
|
+
/**
|
|
161
|
+
* <p/>
|
|
162
|
+
*/
|
|
163
|
+
resourceId: string | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* <p/>
|
|
166
|
+
*/
|
|
167
|
+
resourceType: ResourceType | string | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* @internal
|
|
170
|
+
*/
|
|
171
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
172
|
+
}
|
|
173
|
+
export declare enum FallbackResult {
|
|
174
|
+
ALLOW = "ALLOW",
|
|
175
|
+
DENY = "DENY"
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* <p>Configuration information for optional message review.</p>
|
|
179
|
+
*/
|
|
180
|
+
export interface MessageReviewHandler {
|
|
181
|
+
/**
|
|
182
|
+
* <p>Identifier of the message review handler. Currently this must be an ARN of a lambda function.</p>
|
|
183
|
+
*/
|
|
184
|
+
uri?: string;
|
|
185
|
+
/**
|
|
186
|
+
* <p>Specifies the fallback behavior (whether the message is allowed or denied) if the handler
|
|
187
|
+
* does not return a valid response, encounters an error or times out. If allowed, the message is
|
|
188
|
+
* delivered with returned content to all users connected to the room. If denied, the message is
|
|
189
|
+
* not delivered to any user. Default: <code>ALLOW</code>.</p>
|
|
190
|
+
*/
|
|
191
|
+
fallbackResult?: FallbackResult | string;
|
|
192
|
+
}
|
|
193
|
+
export declare namespace MessageReviewHandler {
|
|
194
|
+
/**
|
|
195
|
+
* @internal
|
|
196
|
+
*/
|
|
197
|
+
const filterSensitiveLog: (obj: MessageReviewHandler) => any;
|
|
198
|
+
}
|
|
199
|
+
export interface CreateRoomRequest {
|
|
200
|
+
/**
|
|
201
|
+
* <p>Room name. The value does not need to be unique.</p>
|
|
202
|
+
*/
|
|
203
|
+
name?: string;
|
|
204
|
+
/**
|
|
205
|
+
* <p>Maximum number of messages per second that a client can send to the room. Default:
|
|
206
|
+
* 10.</p>
|
|
207
|
+
*/
|
|
208
|
+
maximumMessageRatePerSecond?: number;
|
|
209
|
+
/**
|
|
210
|
+
* <p>Maximum number of characters in a single message. Messages are expected to be UTF-8
|
|
211
|
+
* encoded and this limit applies specifically to rune/code-point count, not number of bytes.
|
|
212
|
+
* Default: 500.</p>
|
|
213
|
+
*/
|
|
214
|
+
maximumMessageLength?: number;
|
|
215
|
+
/**
|
|
216
|
+
* <p>Configuration information for optional review of messages.</p>
|
|
217
|
+
*/
|
|
218
|
+
messageReviewHandler?: MessageReviewHandler;
|
|
219
|
+
/**
|
|
220
|
+
* <p>Tags to attach to the resource. Array of maps, each of the form <code>string:string
|
|
221
|
+
* (key:value)</code>. </p>
|
|
222
|
+
*/
|
|
223
|
+
tags?: {
|
|
224
|
+
[key: string]: string;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
export declare namespace CreateRoomRequest {
|
|
228
|
+
/**
|
|
229
|
+
* @internal
|
|
230
|
+
*/
|
|
231
|
+
const filterSensitiveLog: (obj: CreateRoomRequest) => any;
|
|
232
|
+
}
|
|
233
|
+
export interface CreateRoomResponse {
|
|
234
|
+
/**
|
|
235
|
+
* <p>Room ARN, assigned by the system.</p>
|
|
236
|
+
*/
|
|
237
|
+
arn?: string;
|
|
238
|
+
/**
|
|
239
|
+
* <p>Room ID, generated by the system. This is a relative identifier, the part of the ARN
|
|
240
|
+
* that uniquely identifies the room.</p>
|
|
241
|
+
*/
|
|
242
|
+
id?: string;
|
|
243
|
+
/**
|
|
244
|
+
* <p>Room name, from the request (if specified).</p>
|
|
245
|
+
*/
|
|
246
|
+
name?: string;
|
|
247
|
+
/**
|
|
248
|
+
* <p>Time when the room was created. This is an ISO 8601 timestamp; <i>note that this
|
|
249
|
+
* is returned as a string</i>.</p>
|
|
250
|
+
*/
|
|
251
|
+
createTime?: Date;
|
|
252
|
+
/**
|
|
253
|
+
* <p>Time of the room’s last update. This is an ISO 8601 timestamp; <i>note that this
|
|
254
|
+
* is returned as a string</i>.</p>
|
|
255
|
+
*/
|
|
256
|
+
updateTime?: Date;
|
|
257
|
+
/**
|
|
258
|
+
* <p>Maximum number of messages per second that a client can send to the room, from the
|
|
259
|
+
* request.</p>
|
|
260
|
+
*/
|
|
261
|
+
maximumMessageRatePerSecond?: number;
|
|
262
|
+
/**
|
|
263
|
+
* <p>Maximum number of characters in a single message, from the request.</p>
|
|
264
|
+
*/
|
|
265
|
+
maximumMessageLength?: number;
|
|
266
|
+
/**
|
|
267
|
+
* <p>Configuration information for optional review of messages.</p>
|
|
268
|
+
*/
|
|
269
|
+
messageReviewHandler?: MessageReviewHandler;
|
|
270
|
+
/**
|
|
271
|
+
* <p>Tags attached to the resource, from the request.</p>
|
|
272
|
+
*/
|
|
273
|
+
tags?: {
|
|
274
|
+
[key: string]: string;
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
export declare namespace CreateRoomResponse {
|
|
278
|
+
/**
|
|
279
|
+
* @internal
|
|
280
|
+
*/
|
|
281
|
+
const filterSensitiveLog: (obj: CreateRoomResponse) => any;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* <p/>
|
|
285
|
+
*/
|
|
286
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
287
|
+
readonly name: "ServiceQuotaExceededException";
|
|
288
|
+
readonly $fault: "client";
|
|
289
|
+
/**
|
|
290
|
+
* <p/>
|
|
291
|
+
*/
|
|
292
|
+
resourceId: string | undefined;
|
|
293
|
+
/**
|
|
294
|
+
* <p/>
|
|
295
|
+
*/
|
|
296
|
+
resourceType: ResourceType | string | undefined;
|
|
297
|
+
/**
|
|
298
|
+
* <p/>
|
|
299
|
+
*/
|
|
300
|
+
limit: number | undefined;
|
|
301
|
+
/**
|
|
302
|
+
* @internal
|
|
303
|
+
*/
|
|
304
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
305
|
+
}
|
|
306
|
+
export interface DeleteMessageRequest {
|
|
307
|
+
/**
|
|
308
|
+
* <p>Identifier of the room where the message should be deleted. Currently this must be an
|
|
309
|
+
* ARN. </p>
|
|
310
|
+
*/
|
|
311
|
+
roomIdentifier: string | undefined;
|
|
312
|
+
/**
|
|
313
|
+
* <p>ID of the message to be deleted. This is the <code>Id</code> field in the received
|
|
314
|
+
* message (see <a href="https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-message-subscribe.html"> Message
|
|
315
|
+
* (Subscribe)</a> in the Chat Messaging API).</p>
|
|
316
|
+
*/
|
|
317
|
+
id: string | undefined;
|
|
318
|
+
/**
|
|
319
|
+
* <p>Reason for deleting the message.</p>
|
|
320
|
+
*/
|
|
321
|
+
reason?: string;
|
|
322
|
+
}
|
|
323
|
+
export declare namespace DeleteMessageRequest {
|
|
324
|
+
/**
|
|
325
|
+
* @internal
|
|
326
|
+
*/
|
|
327
|
+
const filterSensitiveLog: (obj: DeleteMessageRequest) => any;
|
|
328
|
+
}
|
|
329
|
+
export interface DeleteMessageResponse {
|
|
330
|
+
/**
|
|
331
|
+
* <p>Operation identifier, generated by Amazon IVS Chat.</p>
|
|
332
|
+
*/
|
|
333
|
+
id?: string;
|
|
334
|
+
}
|
|
335
|
+
export declare namespace DeleteMessageResponse {
|
|
336
|
+
/**
|
|
337
|
+
* @internal
|
|
338
|
+
*/
|
|
339
|
+
const filterSensitiveLog: (obj: DeleteMessageResponse) => any;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* <p/>
|
|
343
|
+
*/
|
|
344
|
+
export declare class ThrottlingException extends __BaseException {
|
|
345
|
+
readonly name: "ThrottlingException";
|
|
346
|
+
readonly $fault: "client";
|
|
347
|
+
/**
|
|
348
|
+
* <p/>
|
|
349
|
+
*/
|
|
350
|
+
resourceId: string | undefined;
|
|
351
|
+
/**
|
|
352
|
+
* <p/>
|
|
353
|
+
*/
|
|
354
|
+
resourceType: ResourceType | string | undefined;
|
|
355
|
+
/**
|
|
356
|
+
* <p/>
|
|
357
|
+
*/
|
|
358
|
+
limit: number | undefined;
|
|
359
|
+
/**
|
|
360
|
+
* @internal
|
|
361
|
+
*/
|
|
362
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
363
|
+
}
|
|
364
|
+
export interface DeleteRoomRequest {
|
|
365
|
+
/**
|
|
366
|
+
* <p>Identifier of the room to be deleted. Currently this must be an ARN.</p>
|
|
367
|
+
*/
|
|
368
|
+
identifier: string | undefined;
|
|
369
|
+
}
|
|
370
|
+
export declare namespace DeleteRoomRequest {
|
|
371
|
+
/**
|
|
372
|
+
* @internal
|
|
373
|
+
*/
|
|
374
|
+
const filterSensitiveLog: (obj: DeleteRoomRequest) => any;
|
|
375
|
+
}
|
|
376
|
+
export interface DisconnectUserRequest {
|
|
377
|
+
/**
|
|
378
|
+
* <p>Identifier of the room from which the user's clients should be disconnected. Currently
|
|
379
|
+
* this must be an ARN.</p>
|
|
380
|
+
*/
|
|
381
|
+
roomIdentifier: string | undefined;
|
|
382
|
+
/**
|
|
383
|
+
* <p>ID of the user (connection) to disconnect from the room.</p>
|
|
384
|
+
*/
|
|
385
|
+
userId: string | undefined;
|
|
386
|
+
/**
|
|
387
|
+
* <p>Reason for disconnecting the user.</p>
|
|
388
|
+
*/
|
|
389
|
+
reason?: string;
|
|
390
|
+
}
|
|
391
|
+
export declare namespace DisconnectUserRequest {
|
|
392
|
+
/**
|
|
393
|
+
* @internal
|
|
394
|
+
*/
|
|
395
|
+
const filterSensitiveLog: (obj: DisconnectUserRequest) => any;
|
|
396
|
+
}
|
|
397
|
+
export interface DisconnectUserResponse {
|
|
398
|
+
}
|
|
399
|
+
export declare namespace DisconnectUserResponse {
|
|
400
|
+
/**
|
|
401
|
+
* @internal
|
|
402
|
+
*/
|
|
403
|
+
const filterSensitiveLog: (obj: DisconnectUserResponse) => any;
|
|
404
|
+
}
|
|
405
|
+
export interface GetRoomRequest {
|
|
406
|
+
/**
|
|
407
|
+
* <p>Identifier of the room for which the configuration is to be retrieved. Currently this
|
|
408
|
+
* must be an ARN.</p>
|
|
409
|
+
*/
|
|
410
|
+
identifier: string | undefined;
|
|
411
|
+
}
|
|
412
|
+
export declare namespace GetRoomRequest {
|
|
413
|
+
/**
|
|
414
|
+
* @internal
|
|
415
|
+
*/
|
|
416
|
+
const filterSensitiveLog: (obj: GetRoomRequest) => any;
|
|
417
|
+
}
|
|
418
|
+
export interface GetRoomResponse {
|
|
419
|
+
/**
|
|
420
|
+
* <p>Room ARN, from the request (if <code>identifier</code> was an ARN).</p>
|
|
421
|
+
*/
|
|
422
|
+
arn?: string;
|
|
423
|
+
/**
|
|
424
|
+
* <p>Room ID, generated by the system. This is a relative identifier, the part of the ARN
|
|
425
|
+
* that uniquely identifies the room.</p>
|
|
426
|
+
*/
|
|
427
|
+
id?: string;
|
|
428
|
+
/**
|
|
429
|
+
* <p>Room name. The value does not need to be unique.</p>
|
|
430
|
+
*/
|
|
431
|
+
name?: string;
|
|
432
|
+
/**
|
|
433
|
+
* <p>Time when the room was created. This is an ISO 8601 timestamp; <i>note that this
|
|
434
|
+
* is returned as a string</i>.</p>
|
|
435
|
+
*/
|
|
436
|
+
createTime?: Date;
|
|
437
|
+
/**
|
|
438
|
+
* <p>Time of the room’s last update. This is an ISO 8601 timestamp; <i>note that this
|
|
439
|
+
* is returned as a string</i>.</p>
|
|
440
|
+
*/
|
|
441
|
+
updateTime?: Date;
|
|
442
|
+
/**
|
|
443
|
+
* <p>Maximum number of messages per second that a client can send to the room. Default:
|
|
444
|
+
* 10.</p>
|
|
445
|
+
*/
|
|
446
|
+
maximumMessageRatePerSecond?: number;
|
|
447
|
+
/**
|
|
448
|
+
* <p>Maximum number of characters in a single message. Messages are expected to be UTF-8
|
|
449
|
+
* encoded and this limit applies specifically to rune/code-point count, not number of bytes.
|
|
450
|
+
* Default: 500.</p>
|
|
451
|
+
*/
|
|
452
|
+
maximumMessageLength?: number;
|
|
453
|
+
/**
|
|
454
|
+
* <p>Configuration information for optional review of messages.</p>
|
|
455
|
+
*/
|
|
456
|
+
messageReviewHandler?: MessageReviewHandler;
|
|
457
|
+
/**
|
|
458
|
+
* <p>Tags attached to the resource. Array of maps, each of the form <code>string:string
|
|
459
|
+
* (key:value)</code>.</p>
|
|
460
|
+
*/
|
|
461
|
+
tags?: {
|
|
462
|
+
[key: string]: string;
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
export declare namespace GetRoomResponse {
|
|
466
|
+
/**
|
|
467
|
+
* @internal
|
|
468
|
+
*/
|
|
469
|
+
const filterSensitiveLog: (obj: GetRoomResponse) => any;
|
|
470
|
+
}
|
|
471
|
+
export interface ListRoomsRequest {
|
|
472
|
+
/**
|
|
473
|
+
* <p>Filters the list to match the specified room name.</p>
|
|
474
|
+
*/
|
|
475
|
+
name?: string;
|
|
476
|
+
/**
|
|
477
|
+
* <p>The first room to retrieve. This is used for pagination; see the <code>nextToken</code>
|
|
478
|
+
* response field.</p>
|
|
479
|
+
*/
|
|
480
|
+
nextToken?: string;
|
|
481
|
+
/**
|
|
482
|
+
* <p>Maximum number of rooms to return. Default: 50.</p>
|
|
483
|
+
*/
|
|
484
|
+
maxResults?: number;
|
|
485
|
+
/**
|
|
486
|
+
* <p>Filters the list to match the specified message review handler URI.</p>
|
|
487
|
+
*/
|
|
488
|
+
messageReviewHandlerUri?: string;
|
|
489
|
+
}
|
|
490
|
+
export declare namespace ListRoomsRequest {
|
|
491
|
+
/**
|
|
492
|
+
* @internal
|
|
493
|
+
*/
|
|
494
|
+
const filterSensitiveLog: (obj: ListRoomsRequest) => any;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* <p>Summary information about a room.</p>
|
|
498
|
+
*/
|
|
499
|
+
export interface RoomSummary {
|
|
500
|
+
/**
|
|
501
|
+
* <p>Room ARN.</p>
|
|
502
|
+
*/
|
|
503
|
+
arn?: string;
|
|
504
|
+
/**
|
|
505
|
+
* <p>Room ID, generated by the system. This is a relative identifier, the part of the ARN that
|
|
506
|
+
* uniquely identifies the room.</p>
|
|
507
|
+
*/
|
|
508
|
+
id?: string;
|
|
509
|
+
/**
|
|
510
|
+
* <p>Room name. The value does not need to be unique.</p>
|
|
511
|
+
*/
|
|
512
|
+
name?: string;
|
|
513
|
+
/**
|
|
514
|
+
* <p>Configuration information for optional review of messages.</p>
|
|
515
|
+
*/
|
|
516
|
+
messageReviewHandler?: MessageReviewHandler;
|
|
517
|
+
/**
|
|
518
|
+
* <p>Time when the room was created. This is an ISO 8601 timestamp; <i>note that this is
|
|
519
|
+
* returned as a string</i>. </p>
|
|
520
|
+
*/
|
|
521
|
+
createTime?: Date;
|
|
522
|
+
/**
|
|
523
|
+
* <p>Time of the room’s last update. This is an ISO 8601 timestamp; <i>note that this is
|
|
524
|
+
* returned as a string</i>. </p>
|
|
525
|
+
*/
|
|
526
|
+
updateTime?: Date;
|
|
527
|
+
/**
|
|
528
|
+
* <p>Tags attached to the resource. </p>
|
|
529
|
+
*/
|
|
530
|
+
tags?: {
|
|
531
|
+
[key: string]: string;
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
export declare namespace RoomSummary {
|
|
535
|
+
/**
|
|
536
|
+
* @internal
|
|
537
|
+
*/
|
|
538
|
+
const filterSensitiveLog: (obj: RoomSummary) => any;
|
|
539
|
+
}
|
|
540
|
+
export interface ListRoomsResponse {
|
|
541
|
+
/**
|
|
542
|
+
* <p>List of the matching rooms (summary information only).</p>
|
|
543
|
+
*/
|
|
544
|
+
rooms: RoomSummary[] | undefined;
|
|
545
|
+
/**
|
|
546
|
+
* <p>If there are more rooms than <code>maxResults</code>, use <code>nextToken</code> in the
|
|
547
|
+
* request to get the next set.</p>
|
|
548
|
+
*/
|
|
549
|
+
nextToken?: string;
|
|
550
|
+
}
|
|
551
|
+
export declare namespace ListRoomsResponse {
|
|
552
|
+
/**
|
|
553
|
+
* @internal
|
|
554
|
+
*/
|
|
555
|
+
const filterSensitiveLog: (obj: ListRoomsResponse) => any;
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* <p/>
|
|
559
|
+
*/
|
|
560
|
+
export declare class InternalServerException extends __BaseException {
|
|
561
|
+
readonly name: "InternalServerException";
|
|
562
|
+
readonly $fault: "server";
|
|
563
|
+
/**
|
|
564
|
+
* @internal
|
|
565
|
+
*/
|
|
566
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
567
|
+
}
|
|
568
|
+
export interface ListTagsForResourceRequest {
|
|
569
|
+
/**
|
|
570
|
+
* <p>The ARN of the resource to be retrieved. The ARN must be URL-encoded.</p>
|
|
571
|
+
*/
|
|
572
|
+
resourceArn: string | undefined;
|
|
573
|
+
}
|
|
574
|
+
export declare namespace ListTagsForResourceRequest {
|
|
575
|
+
/**
|
|
576
|
+
* @internal
|
|
577
|
+
*/
|
|
578
|
+
const filterSensitiveLog: (obj: ListTagsForResourceRequest) => any;
|
|
579
|
+
}
|
|
580
|
+
export interface ListTagsForResourceResponse {
|
|
581
|
+
/**
|
|
582
|
+
* <p>Tags to attach to the resource. Array of maps, each of the form <code>string:string
|
|
583
|
+
* (key:value)</code>.</p>
|
|
584
|
+
*/
|
|
585
|
+
tags: {
|
|
586
|
+
[key: string]: string;
|
|
587
|
+
} | undefined;
|
|
588
|
+
}
|
|
589
|
+
export declare namespace ListTagsForResourceResponse {
|
|
590
|
+
/**
|
|
591
|
+
* @internal
|
|
592
|
+
*/
|
|
593
|
+
const filterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
|
|
594
|
+
}
|
|
595
|
+
export interface SendEventRequest {
|
|
596
|
+
/**
|
|
597
|
+
* <p>Identifier of the room to which the event will be sent. Currently this must be an
|
|
598
|
+
* ARN.</p>
|
|
599
|
+
*/
|
|
600
|
+
roomIdentifier: string | undefined;
|
|
601
|
+
/**
|
|
602
|
+
* <p>Application-defined name of the event to send to clients.</p>
|
|
603
|
+
*/
|
|
604
|
+
eventName: string | undefined;
|
|
605
|
+
/**
|
|
606
|
+
* <p>Application-defined metadata to attach to the event sent to clients. The maximum length
|
|
607
|
+
* of the metadata is 1 KB total.</p>
|
|
608
|
+
*/
|
|
609
|
+
attributes?: {
|
|
610
|
+
[key: string]: string;
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
export declare namespace SendEventRequest {
|
|
614
|
+
/**
|
|
615
|
+
* @internal
|
|
616
|
+
*/
|
|
617
|
+
const filterSensitiveLog: (obj: SendEventRequest) => any;
|
|
618
|
+
}
|
|
619
|
+
export interface SendEventResponse {
|
|
620
|
+
/**
|
|
621
|
+
* <p>An identifier generated by Amazon IVS Chat. This identifier must be used in subsequent
|
|
622
|
+
* operations for this message, such as DeleteMessage.</p>
|
|
623
|
+
*/
|
|
624
|
+
id?: string;
|
|
625
|
+
}
|
|
626
|
+
export declare namespace SendEventResponse {
|
|
627
|
+
/**
|
|
628
|
+
* @internal
|
|
629
|
+
*/
|
|
630
|
+
const filterSensitiveLog: (obj: SendEventResponse) => any;
|
|
631
|
+
}
|
|
632
|
+
export interface TagResourceRequest {
|
|
633
|
+
/**
|
|
634
|
+
* <p>The ARN of the resource to be tagged. The ARN must be URL-encoded.</p>
|
|
635
|
+
*/
|
|
636
|
+
resourceArn: string | undefined;
|
|
637
|
+
/**
|
|
638
|
+
* <p>Array of tags to be added or updated.</p>
|
|
639
|
+
*/
|
|
640
|
+
tags: {
|
|
641
|
+
[key: string]: string;
|
|
642
|
+
} | undefined;
|
|
643
|
+
}
|
|
644
|
+
export declare namespace TagResourceRequest {
|
|
645
|
+
/**
|
|
646
|
+
* @internal
|
|
647
|
+
*/
|
|
648
|
+
const filterSensitiveLog: (obj: TagResourceRequest) => any;
|
|
649
|
+
}
|
|
650
|
+
export interface TagResourceResponse {
|
|
651
|
+
}
|
|
652
|
+
export declare namespace TagResourceResponse {
|
|
653
|
+
/**
|
|
654
|
+
* @internal
|
|
655
|
+
*/
|
|
656
|
+
const filterSensitiveLog: (obj: TagResourceResponse) => any;
|
|
657
|
+
}
|
|
658
|
+
export interface UntagResourceRequest {
|
|
659
|
+
/**
|
|
660
|
+
* <p>The ARN of the resource to be untagged. The ARN must be URL-encoded.</p>
|
|
661
|
+
*/
|
|
662
|
+
resourceArn: string | undefined;
|
|
663
|
+
/**
|
|
664
|
+
* <p>Array of tags to be removed.</p>
|
|
665
|
+
*/
|
|
666
|
+
tagKeys: string[] | undefined;
|
|
667
|
+
}
|
|
668
|
+
export declare namespace UntagResourceRequest {
|
|
669
|
+
/**
|
|
670
|
+
* @internal
|
|
671
|
+
*/
|
|
672
|
+
const filterSensitiveLog: (obj: UntagResourceRequest) => any;
|
|
673
|
+
}
|
|
674
|
+
export interface UntagResourceResponse {
|
|
675
|
+
}
|
|
676
|
+
export declare namespace UntagResourceResponse {
|
|
677
|
+
/**
|
|
678
|
+
* @internal
|
|
679
|
+
*/
|
|
680
|
+
const filterSensitiveLog: (obj: UntagResourceResponse) => any;
|
|
681
|
+
}
|
|
682
|
+
export interface UpdateRoomRequest {
|
|
683
|
+
/**
|
|
684
|
+
* <p>Identifier of the room to be updated. Currently this must be an ARN.</p>
|
|
685
|
+
*/
|
|
686
|
+
identifier: string | undefined;
|
|
687
|
+
/**
|
|
688
|
+
* <p>Room name. The value does not need to be unique.</p>
|
|
689
|
+
*/
|
|
690
|
+
name?: string;
|
|
691
|
+
/**
|
|
692
|
+
* <p>The maximum number of messages per second that a client can send to the room. Default:
|
|
693
|
+
* 10.</p>
|
|
694
|
+
*/
|
|
695
|
+
maximumMessageRatePerSecond?: number;
|
|
696
|
+
/**
|
|
697
|
+
* <p>The maximum number of characters in a single message. Messages are expected to be UTF-8
|
|
698
|
+
* encoded and this limit applies specifically to rune/code-point count, not number of bytes.
|
|
699
|
+
* Default: 500.</p>
|
|
700
|
+
*/
|
|
701
|
+
maximumMessageLength?: number;
|
|
702
|
+
/**
|
|
703
|
+
* <p>Configuration information for optional review of messages. Specify an empty <code>uri</code> string to disassociate a message review handler from the specified room.</p>
|
|
704
|
+
*/
|
|
705
|
+
messageReviewHandler?: MessageReviewHandler;
|
|
706
|
+
}
|
|
707
|
+
export declare namespace UpdateRoomRequest {
|
|
708
|
+
/**
|
|
709
|
+
* @internal
|
|
710
|
+
*/
|
|
711
|
+
const filterSensitiveLog: (obj: UpdateRoomRequest) => any;
|
|
712
|
+
}
|
|
713
|
+
export interface UpdateRoomResponse {
|
|
714
|
+
/**
|
|
715
|
+
* <p>Room ARN, from the request (if <code>identifier</code> was an ARN).</p>
|
|
716
|
+
*/
|
|
717
|
+
arn?: string;
|
|
718
|
+
/**
|
|
719
|
+
* <p>Room ID, generated by the system. This is a relative identifier, the part of the ARN
|
|
720
|
+
* that uniquely identifies the room.</p>
|
|
721
|
+
*/
|
|
722
|
+
id?: string;
|
|
723
|
+
/**
|
|
724
|
+
* <p>Room name, from the request.</p>
|
|
725
|
+
*/
|
|
726
|
+
name?: string;
|
|
727
|
+
/**
|
|
728
|
+
* <p>Time when the room was created. This is an ISO 8601 timestamp; <i>note that this
|
|
729
|
+
* is returned as a string</i>.</p>
|
|
730
|
+
*/
|
|
731
|
+
createTime?: Date;
|
|
732
|
+
/**
|
|
733
|
+
* <p>Time of the room’s last update. This is an ISO 8601 timestamp; <i>note
|
|
734
|
+
* that this is returned as a string</i>.</p>
|
|
735
|
+
*/
|
|
736
|
+
updateTime?: Date;
|
|
737
|
+
/**
|
|
738
|
+
* <p>Maximum number of messages per second that a client can send to the room, from the
|
|
739
|
+
* request.</p>
|
|
740
|
+
*/
|
|
741
|
+
maximumMessageRatePerSecond?: number;
|
|
742
|
+
/**
|
|
743
|
+
* <p>Maximum number of characters in a single message, from the request.</p>
|
|
744
|
+
*/
|
|
745
|
+
maximumMessageLength?: number;
|
|
746
|
+
/**
|
|
747
|
+
* <p>Configuration information for optional review of messages.</p>
|
|
748
|
+
*/
|
|
749
|
+
messageReviewHandler?: MessageReviewHandler;
|
|
750
|
+
/**
|
|
751
|
+
* <p>Tags attached to the resource.</p>
|
|
752
|
+
*/
|
|
753
|
+
tags?: {
|
|
754
|
+
[key: string]: string;
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
export declare namespace UpdateRoomResponse {
|
|
758
|
+
/**
|
|
759
|
+
* @internal
|
|
760
|
+
*/
|
|
761
|
+
const filterSensitiveLog: (obj: UpdateRoomResponse) => any;
|
|
762
|
+
}
|