@aws-sdk/client-ivschat 3.315.0 → 3.316.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Ivschat = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateChatTokenCommand_1 = require("./commands/CreateChatTokenCommand");
5
6
  const CreateLoggingConfigurationCommand_1 = require("./commands/CreateLoggingConfigurationCommand");
6
7
  const CreateRoomCommand_1 = require("./commands/CreateRoomCommand");
@@ -19,244 +20,26 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
19
20
  const UpdateLoggingConfigurationCommand_1 = require("./commands/UpdateLoggingConfigurationCommand");
20
21
  const UpdateRoomCommand_1 = require("./commands/UpdateRoomCommand");
21
22
  const IvschatClient_1 = require("./IvschatClient");
23
+ const commands = {
24
+ CreateChatTokenCommand: CreateChatTokenCommand_1.CreateChatTokenCommand,
25
+ CreateLoggingConfigurationCommand: CreateLoggingConfigurationCommand_1.CreateLoggingConfigurationCommand,
26
+ CreateRoomCommand: CreateRoomCommand_1.CreateRoomCommand,
27
+ DeleteLoggingConfigurationCommand: DeleteLoggingConfigurationCommand_1.DeleteLoggingConfigurationCommand,
28
+ DeleteMessageCommand: DeleteMessageCommand_1.DeleteMessageCommand,
29
+ DeleteRoomCommand: DeleteRoomCommand_1.DeleteRoomCommand,
30
+ DisconnectUserCommand: DisconnectUserCommand_1.DisconnectUserCommand,
31
+ GetLoggingConfigurationCommand: GetLoggingConfigurationCommand_1.GetLoggingConfigurationCommand,
32
+ GetRoomCommand: GetRoomCommand_1.GetRoomCommand,
33
+ ListLoggingConfigurationsCommand: ListLoggingConfigurationsCommand_1.ListLoggingConfigurationsCommand,
34
+ ListRoomsCommand: ListRoomsCommand_1.ListRoomsCommand,
35
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
36
+ SendEventCommand: SendEventCommand_1.SendEventCommand,
37
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
38
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
39
+ UpdateLoggingConfigurationCommand: UpdateLoggingConfigurationCommand_1.UpdateLoggingConfigurationCommand,
40
+ UpdateRoomCommand: UpdateRoomCommand_1.UpdateRoomCommand,
41
+ };
22
42
  class Ivschat extends IvschatClient_1.IvschatClient {
23
- createChatToken(args, optionsOrCb, cb) {
24
- const command = new CreateChatTokenCommand_1.CreateChatTokenCommand(args);
25
- if (typeof optionsOrCb === "function") {
26
- this.send(command, optionsOrCb);
27
- }
28
- else if (typeof cb === "function") {
29
- if (typeof optionsOrCb !== "object")
30
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
31
- this.send(command, optionsOrCb || {}, cb);
32
- }
33
- else {
34
- return this.send(command, optionsOrCb);
35
- }
36
- }
37
- createLoggingConfiguration(args, optionsOrCb, cb) {
38
- const command = new CreateLoggingConfigurationCommand_1.CreateLoggingConfigurationCommand(args);
39
- if (typeof optionsOrCb === "function") {
40
- this.send(command, optionsOrCb);
41
- }
42
- else if (typeof cb === "function") {
43
- if (typeof optionsOrCb !== "object")
44
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
45
- this.send(command, optionsOrCb || {}, cb);
46
- }
47
- else {
48
- return this.send(command, optionsOrCb);
49
- }
50
- }
51
- createRoom(args, optionsOrCb, cb) {
52
- const command = new CreateRoomCommand_1.CreateRoomCommand(args);
53
- if (typeof optionsOrCb === "function") {
54
- this.send(command, optionsOrCb);
55
- }
56
- else if (typeof cb === "function") {
57
- if (typeof optionsOrCb !== "object")
58
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
59
- this.send(command, optionsOrCb || {}, cb);
60
- }
61
- else {
62
- return this.send(command, optionsOrCb);
63
- }
64
- }
65
- deleteLoggingConfiguration(args, optionsOrCb, cb) {
66
- const command = new DeleteLoggingConfigurationCommand_1.DeleteLoggingConfigurationCommand(args);
67
- if (typeof optionsOrCb === "function") {
68
- this.send(command, optionsOrCb);
69
- }
70
- else if (typeof cb === "function") {
71
- if (typeof optionsOrCb !== "object")
72
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
73
- this.send(command, optionsOrCb || {}, cb);
74
- }
75
- else {
76
- return this.send(command, optionsOrCb);
77
- }
78
- }
79
- deleteMessage(args, optionsOrCb, cb) {
80
- const command = new DeleteMessageCommand_1.DeleteMessageCommand(args);
81
- if (typeof optionsOrCb === "function") {
82
- this.send(command, optionsOrCb);
83
- }
84
- else if (typeof cb === "function") {
85
- if (typeof optionsOrCb !== "object")
86
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
87
- this.send(command, optionsOrCb || {}, cb);
88
- }
89
- else {
90
- return this.send(command, optionsOrCb);
91
- }
92
- }
93
- deleteRoom(args, optionsOrCb, cb) {
94
- const command = new DeleteRoomCommand_1.DeleteRoomCommand(args);
95
- if (typeof optionsOrCb === "function") {
96
- this.send(command, optionsOrCb);
97
- }
98
- else if (typeof cb === "function") {
99
- if (typeof optionsOrCb !== "object")
100
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
101
- this.send(command, optionsOrCb || {}, cb);
102
- }
103
- else {
104
- return this.send(command, optionsOrCb);
105
- }
106
- }
107
- disconnectUser(args, optionsOrCb, cb) {
108
- const command = new DisconnectUserCommand_1.DisconnectUserCommand(args);
109
- if (typeof optionsOrCb === "function") {
110
- this.send(command, optionsOrCb);
111
- }
112
- else if (typeof cb === "function") {
113
- if (typeof optionsOrCb !== "object")
114
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
115
- this.send(command, optionsOrCb || {}, cb);
116
- }
117
- else {
118
- return this.send(command, optionsOrCb);
119
- }
120
- }
121
- getLoggingConfiguration(args, optionsOrCb, cb) {
122
- const command = new GetLoggingConfigurationCommand_1.GetLoggingConfigurationCommand(args);
123
- if (typeof optionsOrCb === "function") {
124
- this.send(command, optionsOrCb);
125
- }
126
- else if (typeof cb === "function") {
127
- if (typeof optionsOrCb !== "object")
128
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
129
- this.send(command, optionsOrCb || {}, cb);
130
- }
131
- else {
132
- return this.send(command, optionsOrCb);
133
- }
134
- }
135
- getRoom(args, optionsOrCb, cb) {
136
- const command = new GetRoomCommand_1.GetRoomCommand(args);
137
- if (typeof optionsOrCb === "function") {
138
- this.send(command, optionsOrCb);
139
- }
140
- else if (typeof cb === "function") {
141
- if (typeof optionsOrCb !== "object")
142
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
143
- this.send(command, optionsOrCb || {}, cb);
144
- }
145
- else {
146
- return this.send(command, optionsOrCb);
147
- }
148
- }
149
- listLoggingConfigurations(args, optionsOrCb, cb) {
150
- const command = new ListLoggingConfigurationsCommand_1.ListLoggingConfigurationsCommand(args);
151
- if (typeof optionsOrCb === "function") {
152
- this.send(command, optionsOrCb);
153
- }
154
- else if (typeof cb === "function") {
155
- if (typeof optionsOrCb !== "object")
156
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
157
- this.send(command, optionsOrCb || {}, cb);
158
- }
159
- else {
160
- return this.send(command, optionsOrCb);
161
- }
162
- }
163
- listRooms(args, optionsOrCb, cb) {
164
- const command = new ListRoomsCommand_1.ListRoomsCommand(args);
165
- if (typeof optionsOrCb === "function") {
166
- this.send(command, optionsOrCb);
167
- }
168
- else if (typeof cb === "function") {
169
- if (typeof optionsOrCb !== "object")
170
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
171
- this.send(command, optionsOrCb || {}, cb);
172
- }
173
- else {
174
- return this.send(command, optionsOrCb);
175
- }
176
- }
177
- listTagsForResource(args, optionsOrCb, cb) {
178
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
179
- if (typeof optionsOrCb === "function") {
180
- this.send(command, optionsOrCb);
181
- }
182
- else if (typeof cb === "function") {
183
- if (typeof optionsOrCb !== "object")
184
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
185
- this.send(command, optionsOrCb || {}, cb);
186
- }
187
- else {
188
- return this.send(command, optionsOrCb);
189
- }
190
- }
191
- sendEvent(args, optionsOrCb, cb) {
192
- const command = new SendEventCommand_1.SendEventCommand(args);
193
- if (typeof optionsOrCb === "function") {
194
- this.send(command, optionsOrCb);
195
- }
196
- else if (typeof cb === "function") {
197
- if (typeof optionsOrCb !== "object")
198
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
199
- this.send(command, optionsOrCb || {}, cb);
200
- }
201
- else {
202
- return this.send(command, optionsOrCb);
203
- }
204
- }
205
- tagResource(args, optionsOrCb, cb) {
206
- const command = new TagResourceCommand_1.TagResourceCommand(args);
207
- if (typeof optionsOrCb === "function") {
208
- this.send(command, optionsOrCb);
209
- }
210
- else if (typeof cb === "function") {
211
- if (typeof optionsOrCb !== "object")
212
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
213
- this.send(command, optionsOrCb || {}, cb);
214
- }
215
- else {
216
- return this.send(command, optionsOrCb);
217
- }
218
- }
219
- untagResource(args, optionsOrCb, cb) {
220
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
221
- if (typeof optionsOrCb === "function") {
222
- this.send(command, optionsOrCb);
223
- }
224
- else if (typeof cb === "function") {
225
- if (typeof optionsOrCb !== "object")
226
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
227
- this.send(command, optionsOrCb || {}, cb);
228
- }
229
- else {
230
- return this.send(command, optionsOrCb);
231
- }
232
- }
233
- updateLoggingConfiguration(args, optionsOrCb, cb) {
234
- const command = new UpdateLoggingConfigurationCommand_1.UpdateLoggingConfigurationCommand(args);
235
- if (typeof optionsOrCb === "function") {
236
- this.send(command, optionsOrCb);
237
- }
238
- else if (typeof cb === "function") {
239
- if (typeof optionsOrCb !== "object")
240
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
241
- this.send(command, optionsOrCb || {}, cb);
242
- }
243
- else {
244
- return this.send(command, optionsOrCb);
245
- }
246
- }
247
- updateRoom(args, optionsOrCb, cb) {
248
- const command = new UpdateRoomCommand_1.UpdateRoomCommand(args);
249
- if (typeof optionsOrCb === "function") {
250
- this.send(command, optionsOrCb);
251
- }
252
- else if (typeof cb === "function") {
253
- if (typeof optionsOrCb !== "object")
254
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
255
- this.send(command, optionsOrCb || {}, cb);
256
- }
257
- else {
258
- return this.send(command, optionsOrCb);
259
- }
260
- }
261
43
  }
262
44
  exports.Ivschat = Ivschat;
45
+ (0, smithy_client_1.createAggregatedClient)(commands, Ivschat);
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CreateChatTokenCommand, } from "./commands/CreateChatTokenCommand";
2
3
  import { CreateLoggingConfigurationCommand, } from "./commands/CreateLoggingConfigurationCommand";
3
4
  import { CreateRoomCommand } from "./commands/CreateRoomCommand";
@@ -16,243 +17,25 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
16
17
  import { UpdateLoggingConfigurationCommand, } from "./commands/UpdateLoggingConfigurationCommand";
17
18
  import { UpdateRoomCommand } from "./commands/UpdateRoomCommand";
18
19
  import { IvschatClient } from "./IvschatClient";
20
+ const commands = {
21
+ CreateChatTokenCommand,
22
+ CreateLoggingConfigurationCommand,
23
+ CreateRoomCommand,
24
+ DeleteLoggingConfigurationCommand,
25
+ DeleteMessageCommand,
26
+ DeleteRoomCommand,
27
+ DisconnectUserCommand,
28
+ GetLoggingConfigurationCommand,
29
+ GetRoomCommand,
30
+ ListLoggingConfigurationsCommand,
31
+ ListRoomsCommand,
32
+ ListTagsForResourceCommand,
33
+ SendEventCommand,
34
+ TagResourceCommand,
35
+ UntagResourceCommand,
36
+ UpdateLoggingConfigurationCommand,
37
+ UpdateRoomCommand,
38
+ };
19
39
  export class Ivschat extends IvschatClient {
20
- createChatToken(args, optionsOrCb, cb) {
21
- const command = new CreateChatTokenCommand(args);
22
- if (typeof optionsOrCb === "function") {
23
- this.send(command, optionsOrCb);
24
- }
25
- else if (typeof cb === "function") {
26
- if (typeof optionsOrCb !== "object")
27
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
28
- this.send(command, optionsOrCb || {}, cb);
29
- }
30
- else {
31
- return this.send(command, optionsOrCb);
32
- }
33
- }
34
- createLoggingConfiguration(args, optionsOrCb, cb) {
35
- const command = new CreateLoggingConfigurationCommand(args);
36
- if (typeof optionsOrCb === "function") {
37
- this.send(command, optionsOrCb);
38
- }
39
- else if (typeof cb === "function") {
40
- if (typeof optionsOrCb !== "object")
41
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
42
- this.send(command, optionsOrCb || {}, cb);
43
- }
44
- else {
45
- return this.send(command, optionsOrCb);
46
- }
47
- }
48
- createRoom(args, optionsOrCb, cb) {
49
- const command = new CreateRoomCommand(args);
50
- if (typeof optionsOrCb === "function") {
51
- this.send(command, optionsOrCb);
52
- }
53
- else if (typeof cb === "function") {
54
- if (typeof optionsOrCb !== "object")
55
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
56
- this.send(command, optionsOrCb || {}, cb);
57
- }
58
- else {
59
- return this.send(command, optionsOrCb);
60
- }
61
- }
62
- deleteLoggingConfiguration(args, optionsOrCb, cb) {
63
- const command = new DeleteLoggingConfigurationCommand(args);
64
- if (typeof optionsOrCb === "function") {
65
- this.send(command, optionsOrCb);
66
- }
67
- else if (typeof cb === "function") {
68
- if (typeof optionsOrCb !== "object")
69
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
70
- this.send(command, optionsOrCb || {}, cb);
71
- }
72
- else {
73
- return this.send(command, optionsOrCb);
74
- }
75
- }
76
- deleteMessage(args, optionsOrCb, cb) {
77
- const command = new DeleteMessageCommand(args);
78
- if (typeof optionsOrCb === "function") {
79
- this.send(command, optionsOrCb);
80
- }
81
- else if (typeof cb === "function") {
82
- if (typeof optionsOrCb !== "object")
83
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
84
- this.send(command, optionsOrCb || {}, cb);
85
- }
86
- else {
87
- return this.send(command, optionsOrCb);
88
- }
89
- }
90
- deleteRoom(args, optionsOrCb, cb) {
91
- const command = new DeleteRoomCommand(args);
92
- if (typeof optionsOrCb === "function") {
93
- this.send(command, optionsOrCb);
94
- }
95
- else if (typeof cb === "function") {
96
- if (typeof optionsOrCb !== "object")
97
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
98
- this.send(command, optionsOrCb || {}, cb);
99
- }
100
- else {
101
- return this.send(command, optionsOrCb);
102
- }
103
- }
104
- disconnectUser(args, optionsOrCb, cb) {
105
- const command = new DisconnectUserCommand(args);
106
- if (typeof optionsOrCb === "function") {
107
- this.send(command, optionsOrCb);
108
- }
109
- else if (typeof cb === "function") {
110
- if (typeof optionsOrCb !== "object")
111
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
112
- this.send(command, optionsOrCb || {}, cb);
113
- }
114
- else {
115
- return this.send(command, optionsOrCb);
116
- }
117
- }
118
- getLoggingConfiguration(args, optionsOrCb, cb) {
119
- const command = new GetLoggingConfigurationCommand(args);
120
- if (typeof optionsOrCb === "function") {
121
- this.send(command, optionsOrCb);
122
- }
123
- else if (typeof cb === "function") {
124
- if (typeof optionsOrCb !== "object")
125
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
126
- this.send(command, optionsOrCb || {}, cb);
127
- }
128
- else {
129
- return this.send(command, optionsOrCb);
130
- }
131
- }
132
- getRoom(args, optionsOrCb, cb) {
133
- const command = new GetRoomCommand(args);
134
- if (typeof optionsOrCb === "function") {
135
- this.send(command, optionsOrCb);
136
- }
137
- else if (typeof cb === "function") {
138
- if (typeof optionsOrCb !== "object")
139
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
140
- this.send(command, optionsOrCb || {}, cb);
141
- }
142
- else {
143
- return this.send(command, optionsOrCb);
144
- }
145
- }
146
- listLoggingConfigurations(args, optionsOrCb, cb) {
147
- const command = new ListLoggingConfigurationsCommand(args);
148
- if (typeof optionsOrCb === "function") {
149
- this.send(command, optionsOrCb);
150
- }
151
- else if (typeof cb === "function") {
152
- if (typeof optionsOrCb !== "object")
153
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
154
- this.send(command, optionsOrCb || {}, cb);
155
- }
156
- else {
157
- return this.send(command, optionsOrCb);
158
- }
159
- }
160
- listRooms(args, optionsOrCb, cb) {
161
- const command = new ListRoomsCommand(args);
162
- if (typeof optionsOrCb === "function") {
163
- this.send(command, optionsOrCb);
164
- }
165
- else if (typeof cb === "function") {
166
- if (typeof optionsOrCb !== "object")
167
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
168
- this.send(command, optionsOrCb || {}, cb);
169
- }
170
- else {
171
- return this.send(command, optionsOrCb);
172
- }
173
- }
174
- listTagsForResource(args, optionsOrCb, cb) {
175
- const command = new ListTagsForResourceCommand(args);
176
- if (typeof optionsOrCb === "function") {
177
- this.send(command, optionsOrCb);
178
- }
179
- else if (typeof cb === "function") {
180
- if (typeof optionsOrCb !== "object")
181
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
182
- this.send(command, optionsOrCb || {}, cb);
183
- }
184
- else {
185
- return this.send(command, optionsOrCb);
186
- }
187
- }
188
- sendEvent(args, optionsOrCb, cb) {
189
- const command = new SendEventCommand(args);
190
- if (typeof optionsOrCb === "function") {
191
- this.send(command, optionsOrCb);
192
- }
193
- else if (typeof cb === "function") {
194
- if (typeof optionsOrCb !== "object")
195
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
196
- this.send(command, optionsOrCb || {}, cb);
197
- }
198
- else {
199
- return this.send(command, optionsOrCb);
200
- }
201
- }
202
- tagResource(args, optionsOrCb, cb) {
203
- const command = new TagResourceCommand(args);
204
- if (typeof optionsOrCb === "function") {
205
- this.send(command, optionsOrCb);
206
- }
207
- else if (typeof cb === "function") {
208
- if (typeof optionsOrCb !== "object")
209
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
210
- this.send(command, optionsOrCb || {}, cb);
211
- }
212
- else {
213
- return this.send(command, optionsOrCb);
214
- }
215
- }
216
- untagResource(args, optionsOrCb, cb) {
217
- const command = new UntagResourceCommand(args);
218
- if (typeof optionsOrCb === "function") {
219
- this.send(command, optionsOrCb);
220
- }
221
- else if (typeof cb === "function") {
222
- if (typeof optionsOrCb !== "object")
223
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
224
- this.send(command, optionsOrCb || {}, cb);
225
- }
226
- else {
227
- return this.send(command, optionsOrCb);
228
- }
229
- }
230
- updateLoggingConfiguration(args, optionsOrCb, cb) {
231
- const command = new UpdateLoggingConfigurationCommand(args);
232
- if (typeof optionsOrCb === "function") {
233
- this.send(command, optionsOrCb);
234
- }
235
- else if (typeof cb === "function") {
236
- if (typeof optionsOrCb !== "object")
237
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
238
- this.send(command, optionsOrCb || {}, cb);
239
- }
240
- else {
241
- return this.send(command, optionsOrCb);
242
- }
243
- }
244
- updateRoom(args, optionsOrCb, cb) {
245
- const command = new UpdateRoomCommand(args);
246
- if (typeof optionsOrCb === "function") {
247
- this.send(command, optionsOrCb);
248
- }
249
- else if (typeof cb === "function") {
250
- if (typeof optionsOrCb !== "object")
251
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
252
- this.send(command, optionsOrCb || {}, cb);
253
- }
254
- else {
255
- return this.send(command, optionsOrCb);
256
- }
257
- }
258
40
  }
41
+ createAggregatedClient(commands, Ivschat);
@@ -17,6 +17,110 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
17
17
  import { UpdateLoggingConfigurationCommandInput, UpdateLoggingConfigurationCommandOutput } from "./commands/UpdateLoggingConfigurationCommand";
18
18
  import { UpdateRoomCommandInput, UpdateRoomCommandOutput } from "./commands/UpdateRoomCommand";
19
19
  import { IvschatClient } from "./IvschatClient";
20
+ export interface Ivschat {
21
+ /**
22
+ * @see {@link CreateChatTokenCommand}
23
+ */
24
+ createChatToken(args: CreateChatTokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateChatTokenCommandOutput>;
25
+ createChatToken(args: CreateChatTokenCommandInput, cb: (err: any, data?: CreateChatTokenCommandOutput) => void): void;
26
+ createChatToken(args: CreateChatTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateChatTokenCommandOutput) => void): void;
27
+ /**
28
+ * @see {@link CreateLoggingConfigurationCommand}
29
+ */
30
+ createLoggingConfiguration(args: CreateLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateLoggingConfigurationCommandOutput>;
31
+ createLoggingConfiguration(args: CreateLoggingConfigurationCommandInput, cb: (err: any, data?: CreateLoggingConfigurationCommandOutput) => void): void;
32
+ createLoggingConfiguration(args: CreateLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLoggingConfigurationCommandOutput) => void): void;
33
+ /**
34
+ * @see {@link CreateRoomCommand}
35
+ */
36
+ createRoom(args: CreateRoomCommandInput, options?: __HttpHandlerOptions): Promise<CreateRoomCommandOutput>;
37
+ createRoom(args: CreateRoomCommandInput, cb: (err: any, data?: CreateRoomCommandOutput) => void): void;
38
+ createRoom(args: CreateRoomCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRoomCommandOutput) => void): void;
39
+ /**
40
+ * @see {@link DeleteLoggingConfigurationCommand}
41
+ */
42
+ deleteLoggingConfiguration(args: DeleteLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLoggingConfigurationCommandOutput>;
43
+ deleteLoggingConfiguration(args: DeleteLoggingConfigurationCommandInput, cb: (err: any, data?: DeleteLoggingConfigurationCommandOutput) => void): void;
44
+ deleteLoggingConfiguration(args: DeleteLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLoggingConfigurationCommandOutput) => void): void;
45
+ /**
46
+ * @see {@link DeleteMessageCommand}
47
+ */
48
+ deleteMessage(args: DeleteMessageCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMessageCommandOutput>;
49
+ deleteMessage(args: DeleteMessageCommandInput, cb: (err: any, data?: DeleteMessageCommandOutput) => void): void;
50
+ deleteMessage(args: DeleteMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMessageCommandOutput) => void): void;
51
+ /**
52
+ * @see {@link DeleteRoomCommand}
53
+ */
54
+ deleteRoom(args: DeleteRoomCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRoomCommandOutput>;
55
+ deleteRoom(args: DeleteRoomCommandInput, cb: (err: any, data?: DeleteRoomCommandOutput) => void): void;
56
+ deleteRoom(args: DeleteRoomCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRoomCommandOutput) => void): void;
57
+ /**
58
+ * @see {@link DisconnectUserCommand}
59
+ */
60
+ disconnectUser(args: DisconnectUserCommandInput, options?: __HttpHandlerOptions): Promise<DisconnectUserCommandOutput>;
61
+ disconnectUser(args: DisconnectUserCommandInput, cb: (err: any, data?: DisconnectUserCommandOutput) => void): void;
62
+ disconnectUser(args: DisconnectUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisconnectUserCommandOutput) => void): void;
63
+ /**
64
+ * @see {@link GetLoggingConfigurationCommand}
65
+ */
66
+ getLoggingConfiguration(args: GetLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetLoggingConfigurationCommandOutput>;
67
+ getLoggingConfiguration(args: GetLoggingConfigurationCommandInput, cb: (err: any, data?: GetLoggingConfigurationCommandOutput) => void): void;
68
+ getLoggingConfiguration(args: GetLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLoggingConfigurationCommandOutput) => void): void;
69
+ /**
70
+ * @see {@link GetRoomCommand}
71
+ */
72
+ getRoom(args: GetRoomCommandInput, options?: __HttpHandlerOptions): Promise<GetRoomCommandOutput>;
73
+ getRoom(args: GetRoomCommandInput, cb: (err: any, data?: GetRoomCommandOutput) => void): void;
74
+ getRoom(args: GetRoomCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRoomCommandOutput) => void): void;
75
+ /**
76
+ * @see {@link ListLoggingConfigurationsCommand}
77
+ */
78
+ listLoggingConfigurations(args: ListLoggingConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<ListLoggingConfigurationsCommandOutput>;
79
+ listLoggingConfigurations(args: ListLoggingConfigurationsCommandInput, cb: (err: any, data?: ListLoggingConfigurationsCommandOutput) => void): void;
80
+ listLoggingConfigurations(args: ListLoggingConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLoggingConfigurationsCommandOutput) => void): void;
81
+ /**
82
+ * @see {@link ListRoomsCommand}
83
+ */
84
+ listRooms(args: ListRoomsCommandInput, options?: __HttpHandlerOptions): Promise<ListRoomsCommandOutput>;
85
+ listRooms(args: ListRoomsCommandInput, cb: (err: any, data?: ListRoomsCommandOutput) => void): void;
86
+ listRooms(args: ListRoomsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRoomsCommandOutput) => void): void;
87
+ /**
88
+ * @see {@link ListTagsForResourceCommand}
89
+ */
90
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
91
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
92
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
93
+ /**
94
+ * @see {@link SendEventCommand}
95
+ */
96
+ sendEvent(args: SendEventCommandInput, options?: __HttpHandlerOptions): Promise<SendEventCommandOutput>;
97
+ sendEvent(args: SendEventCommandInput, cb: (err: any, data?: SendEventCommandOutput) => void): void;
98
+ sendEvent(args: SendEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendEventCommandOutput) => void): void;
99
+ /**
100
+ * @see {@link TagResourceCommand}
101
+ */
102
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
103
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
104
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
105
+ /**
106
+ * @see {@link UntagResourceCommand}
107
+ */
108
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
109
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
110
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
111
+ /**
112
+ * @see {@link UpdateLoggingConfigurationCommand}
113
+ */
114
+ updateLoggingConfiguration(args: UpdateLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLoggingConfigurationCommandOutput>;
115
+ updateLoggingConfiguration(args: UpdateLoggingConfigurationCommandInput, cb: (err: any, data?: UpdateLoggingConfigurationCommandOutput) => void): void;
116
+ updateLoggingConfiguration(args: UpdateLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLoggingConfigurationCommandOutput) => void): void;
117
+ /**
118
+ * @see {@link UpdateRoomCommand}
119
+ */
120
+ updateRoom(args: UpdateRoomCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRoomCommandOutput>;
121
+ updateRoom(args: UpdateRoomCommandInput, cb: (err: any, data?: UpdateRoomCommandOutput) => void): void;
122
+ updateRoom(args: UpdateRoomCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRoomCommandOutput) => void): void;
123
+ }
20
124
  /**
21
125
  * @public
22
126
  * <p>
@@ -239,145 +343,5 @@ import { IvschatClient } from "./IvschatClient";
239
343
  * for managing Chat resources; see the <a href="https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/chat-messaging-api.html"> Amazon IVS Chat Messaging API
240
344
  * Reference</a>.</p>
241
345
  */
242
- export declare class Ivschat extends IvschatClient {
243
- /**
244
- * @public
245
- * <p>Creates an encrypted token that is used by a chat participant to establish an individual
246
- * WebSocket chat connection to a room. When the token is used to connect to chat, the
247
- * connection is valid for the session duration specified in the request. The token becomes
248
- * invalid at the token-expiration timestamp included in the response.</p>
249
- * <p>Use the <code>capabilities</code> field to permit an end user to send messages or
250
- * moderate a room.</p>
251
- * <p>The <code>attributes</code> field securely attaches structured data to the chat session; the data is
252
- * included within each message sent by the end user and received by other participants in the
253
- * room. Common use cases for attributes include passing end-user profile data like an icon,
254
- * display name, colors, badges, and other display features.</p>
255
- * <p>Encryption keys are owned by Amazon IVS Chat and never used directly by your
256
- * application.</p>
257
- */
258
- createChatToken(args: CreateChatTokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateChatTokenCommandOutput>;
259
- createChatToken(args: CreateChatTokenCommandInput, cb: (err: any, data?: CreateChatTokenCommandOutput) => void): void;
260
- createChatToken(args: CreateChatTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateChatTokenCommandOutput) => void): void;
261
- /**
262
- * @public
263
- * <p>Creates a logging configuration that allows clients to store and record sent
264
- * messages.</p>
265
- */
266
- createLoggingConfiguration(args: CreateLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateLoggingConfigurationCommandOutput>;
267
- createLoggingConfiguration(args: CreateLoggingConfigurationCommandInput, cb: (err: any, data?: CreateLoggingConfigurationCommandOutput) => void): void;
268
- createLoggingConfiguration(args: CreateLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLoggingConfigurationCommandOutput) => void): void;
269
- /**
270
- * @public
271
- * <p>Creates a room that allows clients to connect and pass messages.</p>
272
- */
273
- createRoom(args: CreateRoomCommandInput, options?: __HttpHandlerOptions): Promise<CreateRoomCommandOutput>;
274
- createRoom(args: CreateRoomCommandInput, cb: (err: any, data?: CreateRoomCommandOutput) => void): void;
275
- createRoom(args: CreateRoomCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRoomCommandOutput) => void): void;
276
- /**
277
- * @public
278
- * <p>Deletes the specified logging configuration.</p>
279
- */
280
- deleteLoggingConfiguration(args: DeleteLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLoggingConfigurationCommandOutput>;
281
- deleteLoggingConfiguration(args: DeleteLoggingConfigurationCommandInput, cb: (err: any, data?: DeleteLoggingConfigurationCommandOutput) => void): void;
282
- deleteLoggingConfiguration(args: DeleteLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLoggingConfigurationCommandOutput) => void): void;
283
- /**
284
- * @public
285
- * <p>Sends an event to a specific room which directs clients to delete a specific message;
286
- * that is, unrender it from view and delete it from the client’s chat history. This event’s
287
- * <code>EventName</code> is <code>aws:DELETE_MESSAGE</code>. This replicates the <a href="https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-deletemessage-publish.html">
288
- * DeleteMessage</a> WebSocket operation in the Amazon IVS Chat Messaging API.</p>
289
- */
290
- deleteMessage(args: DeleteMessageCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMessageCommandOutput>;
291
- deleteMessage(args: DeleteMessageCommandInput, cb: (err: any, data?: DeleteMessageCommandOutput) => void): void;
292
- deleteMessage(args: DeleteMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMessageCommandOutput) => void): void;
293
- /**
294
- * @public
295
- * <p>Deletes the specified room.</p>
296
- */
297
- deleteRoom(args: DeleteRoomCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRoomCommandOutput>;
298
- deleteRoom(args: DeleteRoomCommandInput, cb: (err: any, data?: DeleteRoomCommandOutput) => void): void;
299
- deleteRoom(args: DeleteRoomCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRoomCommandOutput) => void): void;
300
- /**
301
- * @public
302
- * <p>Disconnects all connections using a specified user ID from a room. This replicates the
303
- * <a href="https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-disconnectuser-publish.html">
304
- * DisconnectUser</a> WebSocket operation in the Amazon IVS Chat Messaging API.</p>
305
- */
306
- disconnectUser(args: DisconnectUserCommandInput, options?: __HttpHandlerOptions): Promise<DisconnectUserCommandOutput>;
307
- disconnectUser(args: DisconnectUserCommandInput, cb: (err: any, data?: DisconnectUserCommandOutput) => void): void;
308
- disconnectUser(args: DisconnectUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisconnectUserCommandOutput) => void): void;
309
- /**
310
- * @public
311
- * <p>Gets the specified logging configuration.</p>
312
- */
313
- getLoggingConfiguration(args: GetLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetLoggingConfigurationCommandOutput>;
314
- getLoggingConfiguration(args: GetLoggingConfigurationCommandInput, cb: (err: any, data?: GetLoggingConfigurationCommandOutput) => void): void;
315
- getLoggingConfiguration(args: GetLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLoggingConfigurationCommandOutput) => void): void;
316
- /**
317
- * @public
318
- * <p>Gets the specified room.</p>
319
- */
320
- getRoom(args: GetRoomCommandInput, options?: __HttpHandlerOptions): Promise<GetRoomCommandOutput>;
321
- getRoom(args: GetRoomCommandInput, cb: (err: any, data?: GetRoomCommandOutput) => void): void;
322
- getRoom(args: GetRoomCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRoomCommandOutput) => void): void;
323
- /**
324
- * @public
325
- * <p>Gets summary information about all your logging configurations in the AWS region where
326
- * the API request is processed.</p>
327
- */
328
- listLoggingConfigurations(args: ListLoggingConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<ListLoggingConfigurationsCommandOutput>;
329
- listLoggingConfigurations(args: ListLoggingConfigurationsCommandInput, cb: (err: any, data?: ListLoggingConfigurationsCommandOutput) => void): void;
330
- listLoggingConfigurations(args: ListLoggingConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLoggingConfigurationsCommandOutput) => void): void;
331
- /**
332
- * @public
333
- * <p>Gets summary information about all your rooms in the AWS region where the API request is
334
- * processed. Results are sorted in descending order of <code>updateTime</code>.</p>
335
- */
336
- listRooms(args: ListRoomsCommandInput, options?: __HttpHandlerOptions): Promise<ListRoomsCommandOutput>;
337
- listRooms(args: ListRoomsCommandInput, cb: (err: any, data?: ListRoomsCommandOutput) => void): void;
338
- listRooms(args: ListRoomsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRoomsCommandOutput) => void): void;
339
- /**
340
- * @public
341
- * <p>Gets information about AWS tags for the specified ARN.</p>
342
- */
343
- listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
344
- listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
345
- listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
346
- /**
347
- * @public
348
- * <p>Sends an event to a room. Use this within your application’s business logic to send
349
- * events to clients of a room; e.g., to notify clients to change the way the chat UI is
350
- * rendered.</p>
351
- */
352
- sendEvent(args: SendEventCommandInput, options?: __HttpHandlerOptions): Promise<SendEventCommandOutput>;
353
- sendEvent(args: SendEventCommandInput, cb: (err: any, data?: SendEventCommandOutput) => void): void;
354
- sendEvent(args: SendEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendEventCommandOutput) => void): void;
355
- /**
356
- * @public
357
- * <p>Adds or updates tags for the AWS resource with the specified ARN.</p>
358
- */
359
- tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
360
- tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
361
- tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
362
- /**
363
- * @public
364
- * <p>Removes tags from the resource with the specified ARN.</p>
365
- */
366
- untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
367
- untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
368
- untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
369
- /**
370
- * @public
371
- * <p>Updates a specified logging configuration.</p>
372
- */
373
- updateLoggingConfiguration(args: UpdateLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLoggingConfigurationCommandOutput>;
374
- updateLoggingConfiguration(args: UpdateLoggingConfigurationCommandInput, cb: (err: any, data?: UpdateLoggingConfigurationCommandOutput) => void): void;
375
- updateLoggingConfiguration(args: UpdateLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLoggingConfigurationCommandOutput) => void): void;
376
- /**
377
- * @public
378
- * <p>Updates a room’s configuration.</p>
379
- */
380
- updateRoom(args: UpdateRoomCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRoomCommandOutput>;
381
- updateRoom(args: UpdateRoomCommandInput, cb: (err: any, data?: UpdateRoomCommandOutput) => void): void;
382
- updateRoom(args: UpdateRoomCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRoomCommandOutput) => void): void;
346
+ export declare class Ivschat extends IvschatClient implements Ivschat {
383
347
  }
@@ -68,7 +68,7 @@ import {
68
68
  UpdateRoomCommandOutput,
69
69
  } from "./commands/UpdateRoomCommand";
70
70
  import { IvschatClient } from "./IvschatClient";
71
- export declare class Ivschat extends IvschatClient {
71
+ export interface Ivschat {
72
72
  createChatToken(
73
73
  args: CreateChatTokenCommandInput,
74
74
  options?: __HttpHandlerOptions
@@ -291,3 +291,4 @@ export declare class Ivschat extends IvschatClient {
291
291
  cb: (err: any, data?: UpdateRoomCommandOutput) => void
292
292
  ): void;
293
293
  }
294
+ export declare class Ivschat extends IvschatClient implements Ivschat {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ivschat",
3
3
  "description": "AWS SDK for JavaScript Ivschat Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.316.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",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",